;
- view: DiagramView;
- isViewOnly?: boolean;
-
- searchCriteria?: SearchCriteria;
- onSearchCriteriaChanged: (criteria: SearchCriteria) => void;
-}
-
-const INTRO_CLASSES = `Navigate through class tree and click a class to select it.
-When the class is selected, its instances are shown in Instances panel
-Double-click the class expands it and displays its subclasses.
`;
-
-const INTRO_INSTANCES = `Instances of the selected class are displayed here.
-You can select one or several instances and drag-and-drop them directly on canvas to
- start your diagram.
`;
-
-const INTRO_DIAGRAM = `Main working area
Zooming: Ctrl-mousewheel or pinch-zoom on touchpad
-Pan: Ctrl-mouse drag or mouse wheel
Filtering related instances
-When you select an element on the diagram the Ontodia shows a funnel icon underneath the
- element. By clicking the funnel icon, you can filter the related elements into the Instances panel.
-Then related elements can be drag-and-dropped into the diagram.
-By repeating it you can navigate from one element to another as far as you like and your way
- will be shown on the diagram.
`;
-
-const INTRO_CONNECTIONS = `Connections panel lists all the connection present in the data source.
-You can define which connections Ontodia should display and which should stay hidden.
-You can also change the way they are shown on the diagram: it’s either with the name above
- them or without it.
`;
-
-const INTRO_RESIZE = `Panels can be resized and collapsed.
`;
-
-export class WorkspaceMarkup extends React.Component {
- element: HTMLElement;
- classTreePanel: HTMLElement;
- linkTypesPanel: HTMLElement;
- paperArea: PaperArea;
-
- private untilMouseUpClasses: string[] = [];
-
- render() {
- let leftPanel = (
- this.untilMouseUp({
- preventTextSelection: true,
- horizontalResizing: true,
- })}
- tutorialProps={{
- 'data-position': 'right',
- 'data-step': '7',
- 'data-intro-id': 'resize',
- 'data-intro': INTRO_RESIZE,
- }}>
- this.untilMouseUp({
- preventTextSelection: true,
- verticalResizing: true,
- })}>
- this.classTreePanel = e}
- tutorialProps={{
- 'data-position': 'right',
- 'data-step': '1',
- 'data-intro-id': 'tree-view',
- 'data-intro': INTRO_CLASSES,
- }}>
-
-
-
-
-
-
- );
-
- let rightPanel = (
- this.untilMouseUp({
- preventTextSelection: true,
- horizontalResizing: true,
- })}>
- this.untilMouseUp({
- preventTextSelection: true,
- verticalResizing: true,
- })}>
- this.linkTypesPanel = e}
- tutorialProps={{
- 'data-position': 'left',
- 'data-step': '4',
- 'data-intro-id': 'link-types-toolbox',
- 'data-intro': INTRO_CONNECTIONS,
- }}>
-
-
-
- );
-
- return (
- this.element = e} className='ontodia'>
-
{this.props.toolbar}
-
- {!this.props.isViewOnly ? leftPanel : null}
-
-
this.paperArea = el}
- model={this.props.view.model}
- paper={this.props.view.paper}
- zoomOptions={{min: 0.2, max: 2, maxFit: 1, fitPadding: 20}}
- preventTextSelection={() => this.preventTextSelection()}
- onDragDrop={(e, position) => this.props.view.onDragDrop(e, position)} />
-
- {!this.props.isViewOnly ? rightPanel : null}
-
-
- );
- }
-
- componentDidMount() {
- document.addEventListener('mouseup', this.onDocumentMouseUp);
- }
-
- componentWillUnmount() {
- document.removeEventListener('mouseup', this.onDocumentMouseUp);
- }
-
- preventTextSelection() {
- this.untilMouseUp({preventTextSelection: true});
- }
-
- private untilMouseUp(params: {
- preventTextSelection?: boolean;
- horizontalResizing?: boolean;
- verticalResizing?: boolean;
- }) {
- this.untilMouseUpClasses = [];
- if (params.preventTextSelection) {
- this.untilMouseUpClasses.push('ontodia--unselectable');
- }
- if (params.horizontalResizing) {
- this.untilMouseUpClasses.push('ontodia--horizontal-resizing');
- }
- if (params.verticalResizing) {
- this.untilMouseUpClasses.push('ontodia--vertical-resizing');
- }
-
- for (const className of this.untilMouseUpClasses) {
- this.element.classList.add(className);
- }
- }
-
- private onDocumentMouseUp = () => {
- for (const className of this.untilMouseUpClasses) {
- this.element.classList.remove(className);
- }
- this.untilMouseUpClasses = [];
- }
-}
-
-export default WorkspaceMarkup;
diff --git a/DKBFrontEnd/src/styles/_misc.scss b/DKBFrontEnd/src/styles/_misc.scss
deleted file mode 100644
index cedd487db..000000000
--- a/DKBFrontEnd/src/styles/_misc.scss
+++ /dev/null
@@ -1,5 +0,0 @@
-/* JointJS */
-.link-tools .tool-remove { display: none }
-.link-tools .tool-options { display: none }
-.marker-arrowheads { display: none }
-.selection .handle.rotate { display: none; } /* disables the rotate tool */
diff --git a/DKBFrontEnd/src/styles/diagram/_connectionsMenu.scss b/DKBFrontEnd/src/styles/diagram/_connectionsMenu.scss
deleted file mode 100644
index debc963fe..000000000
--- a/DKBFrontEnd/src/styles/diagram/_connectionsMenu.scss
+++ /dev/null
@@ -1,244 +0,0 @@
-.ontodia-connections-menu {
- position: absolute;
- width: 300px;
- height: 300px;
- border-radius: 3px;
- display: flex;
- flex-direction: column;
- box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.38);
-}
-
-.ontodia-connections-menu_bread-crumbs {
- padding: 10px;
- padding-bottom: 0px;
- overflow: hidden;
- text-overflow: ellipsis;
- height: 27px;
- min-height: 27px;
- flex-grow: 0;
-}
-
-.ontodia-connections-menu__title-label {
- position: absolute;
- top: -11px;
- left: 10px;
- background: white;
- padding-left: 3px;
- padding-right: 3px;
- border-radius: 6px;
-}
-
-.ontodia-connections-menu_search-line {
- padding: 10px;
-}
-
-.ontodia-connections-menu_links-list {
- padding: 5px;
- overflow-x: hidden;
- overflow-y: auto;
- border-top: 1px solid #dbdbdb;
- flex-grow: 1;
- margin-bottom: 0px;
-}
-
-.ocm_links-list-empty {
- display: flex;
- align-items: center;
-}
-
-.ontodia-connections-menu_links-list__empty {
- width: 100%;
- position: relative;
- font-size: x-large;
- color: #cbcbcb;
- text-align: center;
-}
-
-.ontodia-connections-menu__loading,
-.ontodia-connections-menu__error {
- width: 100%;
- height: 100%;
- position: relative;
- font-size: x-large;
- display: flex;
- color: #cbcbcb;
- align-items: center;
- justify-content: center;
-}
-.ontodia-connections-menu__loading-objects {
- border: 1px solid gray;
- flex-grow: 1;
- box-shadow: inset 0px 0px 23px -8px gray;
- background-color: whitesmoke;
- position: relative;
- font-size: x-large;
- display: flex;
- color: #cbcbcb;
- align-items: center;
- justify-content: center;
- margin-bottom: 5px;
-}
-
-.ontodia-connections-menu__progress-bar {
- opacity: 0;
- height: 0px;
- -webkit-transition: 0.3s;
- -moz-transition: 0.3s;
- transition: 0.3s;
-
- &--loading {
- height: 10px;
- opacity: 1;
- }
-
- &--error {
- height: 10px;
- opacity: 1;
- > .progress-bar { background-color: #E72F2F; }
- }
-}
-
-.element-in-popup-menu {
- display: flex;
- padding: 5px 10px;
- margin: 5px 10px;
- border-radius: 5px;
-}
-.element-in-popup-menu:hover {
- background-color: #e6e6e6;
-}
-
-.element-in-popup-menu.unchecked {
- background-color: rgba(255, 255, 255, 0.79);
-}
-.element-in-popup-menu_disabled-line {
- pointer-events: none;
- cursor: not-allowed;
-}
-
-.element-in-popup-menu__checkbox {
- min-width: 13px;
-}
-
-.element-in-popup-menu__link-label {
- flex-grow: 1;
- margin-left: 5px;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-
-.link-in-popup-menu {
- display: flex;
- padding: 5px 5px 5px 10px;
- border-radius: 5px;
- align-items: center;
- margin-bottom: 4px;
- box-shadow: 0px 0px 23px -5px #dbdbdb inset;
-}
-
-.link-in-popup-menu:hover {
- background-color: whitesmoke;
-}
-
-.link-in-popup-menu__link-title {
- flex-grow: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.link-in-popup-menu__count {
- float: right;
- margin-left: 10px;
-}
-.link-in-popup-menu__count.badge {
- min-width: 21px;
-}
-
-.link-in-popup-menu__navigate-button {
- float: right;
- background-image: url("../images/expand-link.png");
- width: 16px;
- height: 16px;
- opacity: 0.5;
- margin-left: 10px;
- min-width: 16px;
- background-size: cover;
-}
-
-.link-in-popup-menu__navigate-button:hover {
- opacity: 1;
-}
-
-.ontodia-connections-menu_links-list__loading {
- text-align: center;
- width: 100%;
- position: relative;
- font-size: x-large;
- color: #cbcbcb;
-}
-
-.ontodia-connections-menu_links-list__hr {
- margin-top: 10px;
- margin-bottom: 10px;
-}
-
-.ontodia-connections-menu_objects-panel {
- flex-grow: 1;
- padding: 10px;
- position: relative;
- display: flex;
- flex-direction: column;
- padding-top: 0px;
-}
-
-.ontodia-connections-menu_objects-panel__select-all {
- white-space: nowrap;
- margin-bottom: 5px;
- display: flex;
-
- input {
- display: inline-block;
- }
-
- .undefined {
- opacity: 0.3;
- }
-
- span {
- margin-left: 5px;
- }
-}
-
-
-.ontodia-connections-menu_objects-panel_bottom-panel {
- height: 25px;
- white-space: nowrap;
-}
-
-.ontodia-connections-menu_objects-panel_bottom-panel__count-label {
- height: 25px;
- float: left;
- padding: 0px 5px;
- font-size: larger;
- display: flex;
- align-items: center;
- max-width: 60%;
-}
-
-.btn.ontodia-connections-menu_objects-panel_bottom-panel__add-button {
- height: 25px;
- padding-top: 1px;
- padding-bottom: 2px;
-}
-
-.ontodia-connections-menu_objects-panel_objects-list {
- border: 1px solid gray;
- height: 0;
- flex-grow: 1;
- box-shadow: inset 0px 0px 23px -8px gray;
- background-color: whitesmoke;
- overflow-x: hidden;
- overflow-y: scroll;
- margin-bottom: 5px;
-}
diff --git a/DKBFrontEnd/src/styles/diagram/_elementLayer.scss b/DKBFrontEnd/src/styles/diagram/_elementLayer.scss
deleted file mode 100644
index 15044ad44..000000000
--- a/DKBFrontEnd/src/styles/diagram/_elementLayer.scss
+++ /dev/null
@@ -1,24 +0,0 @@
-.ontodia-overlayed-element {
- cursor: move;
- outline: none;
-}
-
-.ontodia-overlayed-element,
-.ontodia-exported-element {
- // set defaults for all inherited properties
- box-sizing: border-box;
- color: black;
- font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
- font-size: 14px;
- line-height: 1.42857143;
-
- // http://stackoverflow.com/questions/6664460/line-height-affects-images
- img { vertical-align: middle; }
-}
-
-// remove link fill on exported SVG
-.link .connection { fill: none; }
-.link .connection-wrap {
- fill: none;
- opacity: 0;
-}
diff --git a/DKBFrontEnd/src/styles/diagram/_halo.scss b/DKBFrontEnd/src/styles/diagram/_halo.scss
deleted file mode 100644
index 3259e9b79..000000000
--- a/DKBFrontEnd/src/styles/diagram/_halo.scss
+++ /dev/null
@@ -1,75 +0,0 @@
-.ontodia-halo {
- position: absolute;
- pointer-events: none;
-
- @mixin halo-button {
- position: absolute;
- background-size: cover;
- cursor: pointer;
- pointer-events: auto;
- opacity: 0.5;
- transition: opacity 0.3s;
- width: 16px;
- height: 16px;
- }
-
- &__navigate {
- @include halo-button;
- bottom: calc(50% - 10px);
- right: -17px;
- margin-left: -8px;
-
- &:hover {
- opacity: 1;
- }
-
- &--open {
- background-image: url("../images/connections.png");
- }
-
- &--closed {
- background-image: url("../images/close-connections.png");
- }
- }
-
- &__delete {
- @include halo-button;
- background-image: url("../images/delete.png");
- top: -16px;
- right: -16px;
-
- &:hover {
- opacity: 1;
- }
- }
-
- &__expand {
- @include halo-button;
- bottom: -17px;
- left: 50%;
- margin-left: -8px;
-
- &:hover {
- opacity: 1;
- }
-
- &--open {
- background-image: url("../images/expand-properties.png");
- }
-
- &--closed {
- background-image: url("../images/collapse-properties.png");
- }
- }
-
- &__add-to-filter {
- @include halo-button;
- background-image: url("../images/add-to-filter.png");
- bottom: -17px;
- right: -17px;
-
- &:hover {
- opacity: 1;
- }
- }
-}
diff --git a/DKBFrontEnd/src/styles/diagram/_paperArea.scss b/DKBFrontEnd/src/styles/diagram/_paperArea.scss
deleted file mode 100644
index 8037d27f5..000000000
--- a/DKBFrontEnd/src/styles/diagram/_paperArea.scss
+++ /dev/null
@@ -1,24 +0,0 @@
-.paper-area {
- flex: auto;
- cursor: default;
- overflow: scroll;
-
- // create new layer to to fix “repaints on scroll” bottleneck
- -webkit-transform: translateZ(0);
- -moz-transform: translateZ(0);
- transform: translateZ(0);
-
- background-image: url('../images/transparent-background.png');
- .paper {
- margin: 0;
- position: relative;
- display: inline-block;
- border: 1px solid black;
- background-color: white;
- }
-}
-
-.uiElementView__iri {
- fill: #969696;
- font-size: smaller;
-}
diff --git a/DKBFrontEnd/src/styles/main.scss b/DKBFrontEnd/src/styles/main.scss
deleted file mode 100644
index 0c46c20ba..000000000
--- a/DKBFrontEnd/src/styles/main.scss
+++ /dev/null
@@ -1,26 +0,0 @@
-@import "misc";
-
-@import "diagram/connectionsMenu";
-@import "diagram/elementLayer";
-@import "diagram/halo";
-@import "diagram/paperArea";
-
-@import "viewUtils/spinner";
-
-@import "widgets/classTree";
-@import "widgets/instancesSearch";
-@import "widgets/linksToolbox";
-@import "widgets/listElementView";
-@import "widgets/progress";
-@import "widgets/toolbar";
-
-@import "workspace/accordion";
-@import "workspace/resizableSidebar";
-@import "workspace/workspace";
-
-@import "templates/icons";
-@import "templates/bigIcon";
-@import "templates/defaultElement";
-@import "templates/leftBar";
-@import "templates/organization";
-@import "templates/person";
diff --git a/DKBFrontEnd/src/styles/templates/_bigIcon.scss b/DKBFrontEnd/src/styles/templates/_bigIcon.scss
deleted file mode 100644
index 99b06b2ba..000000000
--- a/DKBFrontEnd/src/styles/templates/_bigIcon.scss
+++ /dev/null
@@ -1,153 +0,0 @@
-.ontodia-big-icon-container {
- max-width: 400px;
- float: left;
-}
-
-.ontodia-big-icon-template {
- border-radius: 10px;
- border-style: solid;
- border-width: 1px;
-}
-
-.ontodia-big-icon-template_body {
- margin-left: 13px;
- height: 100%;
- border-radius: 3px;
- border-top-right-radius: 10px;
- border-bottom-right-radius: 10px;
- border-left-style: solid;
- border-left-width: 1px;
- padding: 3px 6px 3px 6px;
- background: white;
- display: flex;
- align-items: center;
- justify-content: space-between;
- overflow: hidden;
-}
-
-.ontodia-big-icon-template_body__label {
- font-size: 19px;
- white-space: nowrap;
- font-weight: 100;
- margin-bottom: -7px;
- width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-
-.ontodia-big-icon-template_body_type-container {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-size: 11px;
- font-style: italic;
- color: #afafaf;
- font-weight: 100;
- display: flex;
-}
-
-.ontodia-big-icon-template_body_type-container__type {
- width: 0;
- flex-grow: 1;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-
-.ontodia-big-icon-template_body__icon {
- position: inherit !important;
- font-size: x-large;
- margin: 5px 6px 5px 15px;
- display: flex;
-}
-
-.ontodia-big-icon-template_property {
- border-radius: 10px;
- background-color: white;
- margin-top: 5px;
- border: 1px solid;
-}
-
-.ontodia-big-icon-template_property__image {
- width: 100%;
- border-top-left-radius: 10px;
- border-top-right-radius: 10px;
- border-bottom: 1px solid;
-}
-
-.ontodia-big-icon-template_property_content {
- width: 100%;
- height: 100%;
- padding: 9px;
-}
-
-.ontodia-big-icon-template_property_content_iri-line {
- width: 100%;
- overflow: hidden;
- display: flex;
-}
-
-.ontodia-big-icon-template_property_content_iri-line__label {
- font-size: 12px;
- font-weight: 100;
- margin-right: 4px;
- color: #b6b6b6;
-}
-
-.ontodia-big-icon-template_property_content_iri-line__iri {
- font-size: 12px;
- width: 100%;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
-}
-
-.ontodia-big-icon-template_property_content_iri-line__iri a {
- color: #b6b6b6;
-}
-
-.ontodia-big-icon-template_property_content__hr {
- margin: 5px 0px 5px 0px;
-}
-
-.ontodia-big-icon-template_property_content_property-table {
- font-size: 15px;
- font-weight: 100;
- max-height: 200px;
- overflow-y: scroll;
- overflow-x: hidden;
-}
-
-.ontodia-big-icon-template_property_content_property-table_row {
- white-space: nowrap;
-}
-
-.ontodia-big-icon-template_property_content_property-table_row__key {
- display: inline-block;
- width: 50%;
- text-overflow: ellipsis;
- overflow: hidden;
- vertical-align: top;
-}
-
-.ontodia-big-icon-template_property_content_property-table_row_key {
- display: inline-block;
- width: 50%;
- text-overflow: ellipsis;
- overflow: hidden;
- vertical-align: top;
-}
-
-.ontodia-big-icon-template_property_content_property-table_row_key_values {
- display: inline-block;
- width: 50%;
- text-overflow: ellipsis;
- overflow: hidden;
-}
-
-.ontodia-big-icon-template_property_content_property-table_row_key_values__value {
- width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: initial;
- padding-right: 10px;
-}
diff --git a/DKBFrontEnd/src/styles/templates/_defaultElement.scss b/DKBFrontEnd/src/styles/templates/_defaultElement.scss
deleted file mode 100644
index ba200f8ef..000000000
--- a/DKBFrontEnd/src/styles/templates/_defaultElement.scss
+++ /dev/null
@@ -1,142 +0,0 @@
-.ontodia-default-template {
- max-width: 450px;
- float: left;
- border-radius: 12px;
- border-style: solid;
- border-width: 1px;
-
- &__thumbnail {
- text-align: center;
- > img {
- max-width: 200px;
- border-bottom: 1px solid;
- }
- }
-
- &[data-expanded='true'] &__thumbnail > img {
- max-width: 350px;
- }
-}
-
-.ontodia-default-template_type-line {
- padding: 0px 7px;
- color: white;
- height: 18px;
- margin-bottom: 2px;
- overflow: hidden;
- display: flex;
- align-items: baseline;
- margin-top: -3px;
-}
-
-div.ontodia-default-template_type-line__icon {
- position: inherit !important;
- margin-right: 4px;
-}
-
-.ontodia-default-template_type-line_text-container {
- flex-grow: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- width: 0;
-}
-.ontodia-default-template_type-line_text-container__text {
- display: inline;
- white-space: nowrap;
- font-size: 12px;
-}
-
-.ontodia-default-template_body {
- border-bottom-left-radius: 12px;
- border-bottom-right-radius: 12px;
- border-top-style: solid;
- border-top-width: 1px;
- background: white;
- padding: 7px 10px 8px 10px;
- overflow: hidden;
- display: flex;
- flex-direction: column;
-}
-
-.ontodia-default-template_body__label {
- font-size: 19px;
- font-weight: 100;
- overflow: hidden;
- text-overflow: ellipsis;
- margin-bottom: 0;
- white-space: nowrap;
- word-wrap: break-word;
-}
-
-.ontodia-default-template_body_expander {
- width: 100%;
- overflow: hidden;
- display: flex;
-}
-
-.ontodia-default-template_body_expander__iri_label {
- font-size: 12px;
- font-weight: 100;
- margin-right: 15px;
- color: #b6b6b6;
-}
-
-.ontodia-default-template_body_expander_iri {
- font-size: 12px;
- width: 100%;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
-}
-
-.ontodia-default-template_body_expander_iri__link {
- color: #b6b6b6;
-}
-
-.ontodia-default-template_body_expander__hr {
- margin: 5px 0px 5px 0px;
-}
-
-.ontodia-default-template_body_expander_property-table {
- font-size: 15px;
- font-weight: 100;
- margin-bottom: 5px;
- max-height: 200px;
- overflow-y: scroll;
- overflow-x: hidden;
-}
-
-.ontodia-default-template_body_expander_property-table_row {
- white-space: nowrap;
-}
-
-.ontodia-default-template_body_expander_property-table_row__key {
- display: inline-block;
- width: 50%;
- text-overflow: ellipsis;
- overflow: hidden;
- vertical-align: top;
-}
-
-.ontodia-default-template_body_expander_property-table_row_key {
- display: inline-block;
- width: 50%;
- text-overflow: ellipsis;
- overflow: hidden;
- vertical-align: top;
-}
-
-.ontodia-default-template_body_expander_property-table_row_key_values {
- display: inline-block;
- width: 50%;
- text-overflow: ellipsis;
- overflow: hidden;
-}
-
-.ontodia-default-template_body_expander_property-table_row_key_values__value {
- width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: initial;
- padding-right: 10px;
-}
diff --git a/DKBFrontEnd/src/styles/templates/_icons.scss b/DKBFrontEnd/src/styles/templates/_icons.scss
deleted file mode 100644
index 8382b682a..000000000
--- a/DKBFrontEnd/src/styles/templates/_icons.scss
+++ /dev/null
@@ -1,104 +0,0 @@
-.ontodia-default-icon::after {
- content: "\25EF";
- min-width: 10px;
- min-height: 10px;
- border-radius: 100px;
- overflow: hidden;
- font-style: normal;
- font-size: 12px;
-}
-
-.ontodia-class-icon::after {
- content: "C";
- font-weight: bold;
- min-width: 10px;
- min-height: 10px;
- border-radius: 100px;
- overflow: hidden;
- font-style: normal;
-}
-.jstree-icon.jstree-themeicon-custom.ontodia-tree-icon.ontodia-class-icon {
- color: #eaac77;
- background-color: #fff6f0;
- border: 1px solid #d99292;
-}
-
-.ontodia-object-property-icon::after {
- content: "OP";
- font-weight: bold;
- min-width: 10px;
- min-height: 10px;
- border-radius: 100px;
- overflow: hidden;
- font-style: normal;
-}
-
-.jstree-icon.jstree-themeicon-custom.ontodia-tree-icon.ontodia-object-property-icon {
- font-size: 11px;
- color: #34c7f3;
- border: 1px solid #2dd6e6;
-}
-
-.ontodia-datatype-property-icon::after {
- content: "DP";
- font-weight: bold;
- min-width: 10px;
- min-height: 10px;
- border-radius: 100px;
- overflow: hidden;
- font-style: normal;
-}
-.jstree-icon.jstree-themeicon-custom.ontodia-tree-icon.ontodia-datatype-property-icon {
- font-size: 11px;
- color: #34c7f3;
-}
-
-.ontodia-person-icon::after {
- content: "\1F464";
- min-width: 10px;
- min-height: 10px;
- border-radius: 100px;
- overflow: hidden;
- font-style: normal;
-}
-
-.ontodia-country-icon::after {
- content: "\2690"; //U+2690
- min-width: 10px;
- min-height: 10px;
- border-radius: 100px;
- overflow: hidden;
- font-style: normal;
-}
-
-.jstree-icon.jstree-themeicon-custom.ontodia-tree-icon.ontodia-person-icon {
- color: #eb7777;
-}
-
-.ontodia-organization-icon::after {
- content: "Org";
- font-weight: bold;
- min-width: 10px;
- min-height: 10px;
- overflow: hidden;
- font-style: normal;
-}
-.jstree-icon.jstree-themeicon-custom.ontodia-tree-icon.ontodia-organization-icon {
- font-size: 9px;
- color: #4c9d6c;
- background-color: #dcffe2;
- border: 1px solid #69b286;
-}
-.jstree-default .jstree-icon.jstree-themeicon-custom.ontodia-tree-icon {
- height: 20px;
- width: 20px;
- line-height: 20px;
-}
-.jstree-icon.jstree-themeicon-custom.ontodia-tree-icon {
- color: #1573b0;
- background-color: aliceblue;
- border-radius: 15px;
- border: 1px solid #92bdd9;
- overflow: hidden;
- font-size: 15px;
-}
diff --git a/DKBFrontEnd/src/styles/templates/_leftBar.scss b/DKBFrontEnd/src/styles/templates/_leftBar.scss
deleted file mode 100644
index 26f4fd929..000000000
--- a/DKBFrontEnd/src/styles/templates/_leftBar.scss
+++ /dev/null
@@ -1,132 +0,0 @@
-.ontodia-left-bar-template {
- max-width: 400px;
- float: left;
- border-radius: 10px;
- border-style: solid;
- border-width: 1px;
-}
-
-.ontodia-left-bar-template_body {
- height: 100%;
- border-radius: 2px;
- border-top-right-radius: 10px;
- border-bottom-right-radius: 10px;
- border-left-style: solid;
- border-left-width: 1px;
- padding: 2px 10px 0px 6px;
- margin-left: 13px;
- background: white;
- overflow: hidden;
-}
-
-.ontodia-left-bar-template_body__image {
- width: 100%;
- margin: 5px 0px;
- border: 1px solid #bdbdbd;
-}
-
-.ontodia-left-bar-template_body_type-line {
- display: flex;
- overflow: hidden;
- margin-top: 0px;
- margin-bottom: -3px;
- align-items: baseline;
-}
-
-.ontodia-left-bar-template_body_type-line__icon {
- position: inherit !important;
- margin-right: 4px;
-}
-
-.ontodia-left-bar-template_body_type-line__type {
- white-space: nowrap;
- font-size: 12px;
- font-weight: 100;
- width: 0;
- flex-grow: 1;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-
-.ontodia-left-bar-template_body__label {
- font-size: 19px;
- white-space: nowrap;
- font-weight: 100;
- margin-bottom: -3px;
- width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-
-.ontodia-left-bar-template_body_expander {
- width: 100%;
- overflow: hidden;
- display: flex;
-}
-
-.ontodia-left-bar-template_body_expander__iri_label {
- font-size: 12px;
- font-weight: 100;
- margin-right: 4px;
- color: #b6b6b6;
-}
-
-.ontodia-left-bar-template_body_expander_iri {
- font-size: 12px;
- width: 100%;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
-}
-
-.ontodia-left-bar-template_body_expander_iri__link {
- color: #b6b6b6;
-}
-
-.ontodia-left-bar-template_body_expander__hr {
- margin: 5px 0px 5px 0px;
-}
-
-.ontodia-left-bar-template_body_expander_property-table {
- font-size: 15px;
- font-weight: 100;
- margin-bottom: 5px;
- max-height: 200px;
- overflow-y: scroll;
- overflow-x: hidden;
-}
-
-.ontodia-left-bar-template_body_expander_property-table_row {
- white-space: nowrap;
-}
-
-.ontodia-left-bar-template_body_expander_property-table_row__key {
- display: inline-block;
- width: 50%;
- text-overflow: ellipsis;
- overflow: hidden;
- vertical-align: top;
-}
-
-.ontodia-left-bar-template_body_expander_property-table_row_key {
- display: inline-block;
- width: 50%;
- text-overflow: ellipsis;
- overflow: hidden;
- vertical-align: top;
-}
-
-.ontodia-left-bar-template_body_expander_property-table_row_key_values {
- display: inline-block;
- width: 50%;
- text-overflow: ellipsis;
- overflow: hidden;
-}
-
-.ontodia-left-bar-template_body_expander_property-table_row_key_values__value {
- width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: initial;
- padding-right: 10px;
-}
diff --git a/DKBFrontEnd/src/styles/templates/_organization.scss b/DKBFrontEnd/src/styles/templates/_organization.scss
deleted file mode 100644
index 01707a34f..000000000
--- a/DKBFrontEnd/src/styles/templates/_organization.scss
+++ /dev/null
@@ -1,52 +0,0 @@
-.ontodia-organization-template {
- border: 2px solid;
- max-width: 400px;
- border-radius: 2px;
-
- &__properties {
- width: 100%;
- }
-}
-
-.ontodia-organization-template_body {
- height: 100%;
- border-radius: 2px;
- padding: 3px 12px 3px 12px;
- background: white;
- display: flex;
- align-items: stretch;
- justify-content: space-between;
- overflow: hidden;
- flex-direction: column;
-}
-
-.ontodia-organization-template_body__logo {
- position: inherit !important;
- font-size: x-large;
- margin: 5px 0px;
- border: 1px solid;
- padding: 5px 6px;
- flex-grow: 1;
- display: flex;
- justify-content: center;
- align-items: center;
-}
-
-.ontodia-organization-template_body_data {
- flex-grow: 1;
-}
-
-.ontodia-organization-template_body_data__types {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-size: 12px;
- font-weight: 100;
-}
-
-.ontodia-organization-template_body_data__label {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- margin-bottom: 0px;
-}
diff --git a/DKBFrontEnd/src/styles/templates/_person.scss b/DKBFrontEnd/src/styles/templates/_person.scss
deleted file mode 100644
index 2defcebcf..000000000
--- a/DKBFrontEnd/src/styles/templates/_person.scss
+++ /dev/null
@@ -1,170 +0,0 @@
-.ontodia-person-container {
- max-width: 400px;
- float: left;
-}
-
-.ontodia-person-template {
- border-radius: 10px;
- border-style: solid;
- border-width: 1px;
-}
-
-.ontodia-person-template_body {
- margin-left: 13px;
- border-radius: 3px;
- border-top-right-radius: 10px;
- border-bottom-right-radius: 10px;
- border-left-style: solid;
- border-left-width: 1px;
- padding: 3px 12px 3px 0px;
- background: white;
- display: flex;
- align-items: center;
- justify-content: space-between;
- overflow: hidden;
-}
-
-.ontodia-person-template_body_main-part__label {
- font-size: 19px;
- white-space: nowrap;
- font-weight: 100;
- margin-bottom: -7px;
- width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-
-.ontodia-person-template_body_main-part_type-container {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-size: 11px;
- font-style: italic;
- color: #afafaf;
- font-weight: 100;
- display: flex;
-}
-
-.ontodia-person-template_body_main-part_type-container__type {
- width: 0;
- flex-grow: 1;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-
-.ontodia-person-template_body__icon {
- position: inherit !important;
- font-size: 30px;
- margin: 5px 10px 5px 10px;
- border: 1px solid;
- /*padding: 5px 6px;*/
- flex-grow: 0;
-}
-
-.ontodia-person-template_body_photo {
- position: inherit !important;
- font-size: x-large;
- margin: 5px 8px 5px 8px;
- border: 1px solid;
- flex-grow: 0;
- height: 40px;
-}
-
-.ontodia-person-template_body_photo__image {
- height: 100%;
-}
-
-.ontodia-person-template_body_main-part {
- flex-grow: 1;
-}
-
-.ontodia-person-template_property {
- border-radius: 10px;
- background-color: white;
- margin-top: 5px;
- border: 1px solid;
-}
-
-.ontodia-person-template_property_content {
- width: 100%;
- padding: 9px;
-}
-
-.ontodia-person-template_property_content_iri-line {
- width: 100%;
- overflow: hidden;
- display: flex;
-}
-
-.ontodia-person-template_property_content_iri-line__label {
- font-size: 12px;
- font-weight: 100;
- margin-right: 4px;
- color: #b6b6b6;
-}
-
-.ontodia-person-template_property_content_iri-line__iri {
- font-size: 12px;
- width: 100%;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
-}
-
-.ontodia-person-template_property_content_iri-line__iri a {
- color: #b6b6b6;
-}
-
-.ontodia-person-template_property__image {
- width: 100%;
- border-top-left-radius: 10px;
- border-top-right-radius: 10px;
- border-bottom: 1px solid;
-}
-
-.ontodia-person-template_property_content__hr {
- margin: 5px 0px 5px 0px;
-}
-
-.ontodia-person-template_property_content_property-table {
- font-size: 15px;
- font-weight: 100;
- max-height: 200px;
- overflow-y: scroll;
- overflow-x: hidden;
-}
-
-.ontodia-person-template_property_content_property-table_row {
- white-space: nowrap;
-}
-
-.ontodia-person-template_property_content_property-table_row__key {
- display: inline-block;
- width: 50%;
- text-overflow: ellipsis;
- overflow: hidden;
- vertical-align: top;
-}
-
-.ontodia-person-template_property_content_property-table_row_key {
- display: inline-block;
- width: 50%;
- text-overflow: ellipsis;
- overflow: hidden;
- vertical-align: top;
-}
-
-.ontodia-person-template_property_content_property-table_row_key_values {
- display: inline-block;
- width: 50%;
- text-overflow: ellipsis;
- overflow: hidden;
-}
-
-.ontodia-person-template_property_content_property-table_row_key_values__value {
- width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: initial;
- padding-right: 10px;
-}
diff --git a/DKBFrontEnd/src/styles/viewUtils/_spinner.scss b/DKBFrontEnd/src/styles/viewUtils/_spinner.scss
deleted file mode 100644
index 99f5d8232..000000000
--- a/DKBFrontEnd/src/styles/viewUtils/_spinner.scss
+++ /dev/null
@@ -1,17 +0,0 @@
-.ontodia-spinner {
- &__arrow {
- animation-name: ontodia-spinner-rotation;
- animation-duration: 1.5s;
- animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
- animation-iteration-count: infinite;
- }
-
- &[data-error='true'] &__arrow {
- animation-iteration-count: 1;
- }
-}
-
-@keyframes ontodia-spinner-rotation {
- 0% { transform: rotate(0deg); }
- 100% { transform: rotate(360deg); }
-}
diff --git a/DKBFrontEnd/src/styles/widgets/_classTree.scss b/DKBFrontEnd/src/styles/widgets/_classTree.scss
deleted file mode 100644
index 5fee685b5..000000000
--- a/DKBFrontEnd/src/styles/widgets/_classTree.scss
+++ /dev/null
@@ -1,44 +0,0 @@
-.ontodia-class-tree {
- flex: auto;
- display: flex;
- flex-direction: column;
-
- &__filter {
- flex-shrink: 0;
- margin: 10px 0 10px 0;
- }
-
- &__filter-group {
- margin-left: 10px;
- margin-right: 10px;
- }
-
- &__rest {
- height: 0;
- flex-grow: 1;
- overflow-y: scroll;
- border-top: 1px solid rgb(221, 221, 221);
- }
-
- .jstree-icon.default-tree-icon::after {
- content: url("../images/tree-leaf.png");
- max-width: 19px;
- max-height: 19px;
- margin: 2px;
- }
-
- .ontodia-icon {
- display: inline-block;
- width: 1em;
- height: 1em;
- background-size: auto 100%;
- vertical-align: middle;
- }
-
- .jstree-icon.parent-tree-icon::after {
- content: url("../images/tree-leaf-folder.png");
- max-width: 19px;
- max-height: 19px;
- margin: 2px;
- }
-}
diff --git a/DKBFrontEnd/src/styles/widgets/_instancesSearch.scss b/DKBFrontEnd/src/styles/widgets/_instancesSearch.scss
deleted file mode 100644
index c7ecff205..000000000
--- a/DKBFrontEnd/src/styles/widgets/_instancesSearch.scss
+++ /dev/null
@@ -1,73 +0,0 @@
-.ontodia-instances-search {
- flex: auto;
- display: flex;
- flex-direction: column;
-
- &__criteria {
- flex-shrink: 0;
- margin: 10px 0 10px 0;
- }
-
- &__criterions {
- padding-left: 15px;
- margin-bottom: 10px;
- &:empty { margin-bottom: 0; }
- }
-
- &__criterion {
- display: block;
- position: relative;
- width: 100%;
- }
-
- &__criterion-class {
- border: black 1px dashed;
- background: rgb(255, 210, 33);
- padding: 0 .5em 0 .5em;
- word-wrap: break-word;
- }
-
- &__criterion-element {
- border: black 1px dashed;
- background: rgb(255, 131, 92);
- padding: 0 .5em 0 .5em;
- word-wrap: break-word;
- }
-
- &__criterion-link-type {
- border: black 1px dashed;
- background: rgb(202, 255, 206);
- padding: 0 .5em 0 .5em;
- word-wrap: break-word;
- }
-
- &__criterion-remove {
- float: right;
- margin: 0 10px 4px 4px;
- }
-
- &__text-criteria { margin: 0 10px; }
-
- &__rest {
- height: 0;
- flex-grow: 1;
- overflow-y: scroll;
- border-top: 1px solid rgb(221, 221, 221);
- }
-
- &__results {
- padding-left: 0;
- padding-top: 10px;
- margin: 0 10px 0 10px;
- }
-
- &[data-state='finished'] &__results:empty:before {
- content: 'No items correspond to the specified criteria.';
- font-style: italic;
- }
-
- &__rest-end { margin: 5px 10px 15px 10px; }
- &__load-more {
- width: 100%;
- }
-}
diff --git a/DKBFrontEnd/src/styles/widgets/_linksToolbox.scss b/DKBFrontEnd/src/styles/widgets/_linksToolbox.scss
deleted file mode 100644
index 09a553df7..000000000
--- a/DKBFrontEnd/src/styles/widgets/_linksToolbox.scss
+++ /dev/null
@@ -1,136 +0,0 @@
-.link-types-toolbox {
- flex: auto;
- display: flex;
- flex-direction: column;
- margin-bottom: 0;
-
- &__heading {
- padding: 10px;
- }
-
- &__searching-box {
- display: flex;
- align-items: center;
- }
-
- &__clearSearch {
- margin-left: -25px;
- -webkit-appearance: none;
- padding: 0;
- cursor: pointer;
- background: 0 0;
- border: 0;
- }
-
- &__switch-all {
- margin-top: 5px;
- }
-
- &__rest {
- border-top: 1px solid #dddddd;
- flex: auto;
- display: flex;
- flex-direction: column;
- }
-}
-
-.link-types-toolbox .panel-heading {
- flex-shrink: 0;
- -webkit-flex-shrink: 0; /* safari 8 */
-}
-.link-types-toolbox .link-lists {
- flex: auto;
- height: 0;
- overflow-y: scroll;
-}
-.link-types-toolbox ul {
- margin-bottom: 0;
-}
-.link-types-toolbox .links-heading {
- margin-left: .4em;
-}
-.link-types-toolbox .links-heading span {
- border: black 1px dashed;
- background: rgb(255, 131, 92);
- padding: 0 .5em 0 .5em;
- word-wrap: break-word;
- line-height: 1.3;
-}
-
-.link-types-toolbox__heading .link-types-toolbox-controls {
- padding: 5px 15px;
- font-size: 14px;
- font-style: italic;
-}
-.link-types-toolbox__heading .link-types-toolbox-controls > span {
- padding-left: .3em;
-}
-
-.list-group .linkInToolBox {
- padding: 0 0 0 5px;
- word-break: break-word;
-}
-.linkInToolBox > div {
- display: inline;
-}
-.linkInToolBox .label {
- margin-left: .5em;
- white-space: normal;
- word-wrap: normal;
-}
-
-.linkInToolBox .badge {
- display: none;
- margin-left: .5em;
- white-space: normal;
- word-wrap: normal;
-}
-.connected-links .linkInToolBox .badge {
- /* show connection count badge only in "Connected to Element" list */
- display: inline;
-}
-.linkInToolBox .link-title {
- font-size: 16px;
- color: black;
- display: inline;
-}
-.linkInToolBox .btn-group {
- float: left;
- margin-top: 2px;
- margin-right: 6px;
- margin-bottom: 2px;
-}
-.linkInToolBox .btn.btn-default {
- border-color: rgb(195, 195, 195);
-}
-.linkInToolBox .filter-button {
- display: none;
- float: right;
- margin: 3px;
- cursor: pointer;
- opacity: 0.4;
- transition: opacity 200ms 0ms;
-}
-.linkInToolBox:hover .filter-button {
- opacity: 1.0;
- transition: opacity 200ms 0ms;
-}
-.connected-links .linkInToolBox .filter-button {
- /* show filter button only in "Connected to Element" list */
- display: inline;
-}
-.linkInToolBox .filter-button img {
- content: url("../images/add-to-filter.png");
- width: 20px;
- height: 20px;
-}
-.link-in-popup-menu .filter-button img {
- opacity: 0.4;
- margin-left: 10px;
- content: url("../images/add-to-filter.png");
- width: 20px;
- height: 20px;
-}
-.link-in-popup-menu .filter-button img:hover {
- opacity: 1;
-}
diff --git a/DKBFrontEnd/src/styles/widgets/_listElementView.scss b/DKBFrontEnd/src/styles/widgets/_listElementView.scss
deleted file mode 100644
index b1397c596..000000000
--- a/DKBFrontEnd/src/styles/widgets/_listElementView.scss
+++ /dev/null
@@ -1,25 +0,0 @@
-.ontodia-list-element-view {
- display: block;
- background: #808080;
- padding: 1px 1px 1px 20px;
- border-radius: 10px;
- margin: 0 0 2px 0;
- opacity: 1.0;
- cursor: move;
-
- &--disabled {
- opacity: 0.4;
- cursor: default;
- }
-
- &__label {
- background: white;
- border-radius: 10px;
- font-family: "Andale Mono", sans-serif;
- font-size: 15px;
- min-height: 1.3em;
- padding-left: 7px;
- padding-right: 5px;
- overflow-wrap: break-word;
- }
-}
diff --git a/DKBFrontEnd/src/styles/widgets/_progress.scss b/DKBFrontEnd/src/styles/widgets/_progress.scss
deleted file mode 100644
index cf9a87973..000000000
--- a/DKBFrontEnd/src/styles/widgets/_progress.scss
+++ /dev/null
@@ -1,27 +0,0 @@
-.stateBasedProgress .progress {
- flex-shrink: 0;
- -webkit-flex-shrink: 0; /* safari 8 */
- width: 100%;
- border-radius: 0;
- margin-bottom: 0;
-}
-
-.stateBasedProgress:not([data-state]) .progress {
- height: 0;
-}
-
-.stateBasedProgress[data-state='querying'] .progress,
-.stateBasedProgress[data-state='error'] .progress {
- /* property name | duration | delay */
- transition: height 300ms 300ms;
-}
-
-.stateBasedProgress[data-state='error'] .progress-bar {
- background-color: #E72F2F;
-}
-
-.stateBasedProgress[data-state='finished'] .progress {
- height: 0;
- /* property name | duration | delay */
- transition: height 200ms 0ms;
-}
diff --git a/DKBFrontEnd/src/styles/widgets/_toolbar.scss b/DKBFrontEnd/src/styles/widgets/_toolbar.scss
deleted file mode 100644
index 310da42fb..000000000
--- a/DKBFrontEnd/src/styles/widgets/_toolbar.scss
+++ /dev/null
@@ -1,23 +0,0 @@
-.ontodia-toolbar {
- &__language-selector {
- padding: 5px;
- margin-top: 4px;
-
- > label > span { vertical-align: middle; }
- }
-}
-
-.ontodia-toolbar {
- background: rgba(0, 0, 0, 0.15);
-}
-.ontodia-toolbar > .btn-group {
- margin-left: 10px;
-}
-.ontodia-toolbar > .btn-group > button {
- margin-top: 5px;
- margin-bottom: 5px;
-}
-.ontodia-toolbar .ontodia-toolbar__undo,
-.ontodia-toolbar .ontodia-toolbar__redo {
- display: none;
-}
diff --git a/DKBFrontEnd/src/styles/workspace/_accordion.scss b/DKBFrontEnd/src/styles/workspace/_accordion.scss
deleted file mode 100644
index 63b769599..000000000
--- a/DKBFrontEnd/src/styles/workspace/_accordion.scss
+++ /dev/null
@@ -1,81 +0,0 @@
-.ontodia-accordion {
- flex: auto;
- flex-direction: column;
- height: 100%;
-
- &:not(&--resizing) .ontodia-accordion-item {
- transition: height 0.3s ease-in-out;
- }
-}
-
-.ontodia-accordion-item {
- display: flex;
- flex-direction: column;
- position: relative;
- border-top: 1px solid lightgray;
-
- &__handle {
- position: absolute;
- height: 5px;
- bottom: -2.5px;
- left: 0;
- width: 100%;
- z-index: 2;
- cursor: ns-resize;
- }
-
- &__inner {
- flex: auto;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- }
-
- &__body {
- flex: auto;
- display: flex;
- flex-direction: column;
- }
-
- &__header {
- padding-left: 20px;
- position: relative;
-
- flex-shrink: 0;
- font-size: 16px;
- background: #E4E4E4;
- cursor: default;
- /* unselectable */
- -webkit-touch-callout: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
-
- &:before {
- border-top: 6px solid #555555;
- border-left: 3.5px solid transparent;
- border-right: 3.5px solid transparent;
- content: "";
- position: absolute;
- top: 50%;
- left: 7px;
- margin-top: -3px;
-
- -webkit-transition: 0.1s;
- -moz-transition: 0.1s;
- transition: 0.1s;
- }
- }
-
- &--collapsed &__header:before {
- -webkit-transform: rotate(-90deg);
- -moz-transform: rotate(-90deg);
- -ms-transform: rotate(-90deg);
- transform: rotate(-90deg);
- }
-
- &--collapsed &__body {
- display: none;
- }
-}
diff --git a/DKBFrontEnd/src/styles/workspace/_resizableSidebar.scss b/DKBFrontEnd/src/styles/workspace/_resizableSidebar.scss
deleted file mode 100644
index d88b3df36..000000000
--- a/DKBFrontEnd/src/styles/workspace/_resizableSidebar.scss
+++ /dev/null
@@ -1,73 +0,0 @@
-.ontodia-drag-resizable-column {
- display: flex;
- flex-direction: column;
- position: relative;
-
- &__handle {
- background: #fff url("../images/resizable-column-handle.png") repeat;
- height: 100%;
- position: absolute;
- top: 0;
- width: 8px;
- z-index: 2;
- -webkit-transition: 0.3s;
- -moz-transition: 0.3s;
- transition: 0.3s;
- cursor: ew-resize;
- }
-
- &__handle-btn {
- background: #eee;
- cursor: pointer;
- height: 40px;
- position: absolute;
- top: 50%;
- left: 0;
- margin-top: -20px;
- width: 100%;
- z-index: 1;
- -webkit-transition: 0.3s;
- -moz-transition: 0.3s;
- transition: 0.3s;
-
- &::before {
- background-position: 0 0 ;
- background-repeat: no-repeat;
- background-size: cover;
- content: "";
- height: 6px;
- position: absolute;
- top: 50%;
- left: 50%;
- margin-top: -3px;
- margin-left: -3px;
- width: 6px;
- -webkit-transition: 0.3s;
- -moz-transition: 0.3s;
- transition: 0.3s;
- }
-
- &:hover {
- background: #b3b3b3;
- transform: scale(1.2);
- }
- }
-
- &--closed &__handle-btn {
- &::before { transform: rotate(180deg); }
- }
-
- &--docked-left { margin-right: 8px; }
- &--docked-left &__handle { right: -8px; }
- &--docked-left &__handle-btn {
- &::before { background-image: url("../images/arrow-left.png"); }
- &:hover::before { background-image: url("../images/arrow-left1.png"); }
- }
-
- &--docked-right { margin-left: 8px; }
- &--docked-right &__handle { left: -8px; }
- &--docked-right &__handle-btn {
- &::before { background-image: url("../images/arrow-right.png"); }
- &:hover::before { background-image: url("../images/arrow-right1.png"); }
- }
-}
diff --git a/DKBFrontEnd/src/styles/workspace/_workspace.scss b/DKBFrontEnd/src/styles/workspace/_workspace.scss
deleted file mode 100644
index e4fde793f..000000000
--- a/DKBFrontEnd/src/styles/workspace/_workspace.scss
+++ /dev/null
@@ -1,36 +0,0 @@
-.ontodia {
- display: flex;
- flex-direction: column;
- height: 100%;
- box-sizing: border-box;
-
- &__header {
- display: flex;
- flex-direction: column;
- flex: 0 0 auto;
- }
-
- &__workspace {
- display: flex;
- flex: auto;
- overflow: hidden;
- }
-
- &__main-panel {
- display: flex;
- flex: auto;
- overflow: hidden;
- width: 0;
- }
-
- &--unselectable {
- -webkit-touch-callout: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- }
-
- &--horizontal-resizing * { cursor: ew-resize !important; }
- &--vertical-resizing * { cursor: ns-resize !important; }
-}
diff --git a/DKBFrontEnd/src/tsconfig.json b/DKBFrontEnd/src/tsconfig.json
deleted file mode 100644
index 8f76ebd97..000000000
--- a/DKBFrontEnd/src/tsconfig.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "compilerOptions": {
- "target": "es5",
- "module": "commonjs",
- "jsx": "react",
- "lib": [
- "dom",
- "es2015"
- ],
- "noImplicitAny": true,
- "noImplicitThis": true,
- "noImplicitReturns": true
- },
- "include": [
- "./index.ts",
- "./src/**/*.ts",
- "./src/**/*.tsx",
- "./typings/index.d.ts",
- "./typings/local.d.ts"
- ],
- "compileOnSave": false
-}
diff --git a/DKBFrontEnd/src/tslint.json b/DKBFrontEnd/src/tslint.json
deleted file mode 100644
index 601f87a24..000000000
--- a/DKBFrontEnd/src/tslint.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "rules": {
- "class-name": true,
- "comment-format": [true, "check-space"],
- "curly": true,
- "eofline": true,
- "forin": true,
- "indent": [true, "spaces"],
- "label-position": true,
- "label-undefined": true,
- "max-line-length": [true, 120],
- "member-access": false,
- "member-ordering": [false, "public-before-private", "static-before-instance", "variables-before-functions"],
- "no-arg": true,
- "no-bitwise": true,
- "no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
- "no-construct": true,
- "no-debugger": true,
- "no-duplicate-key": true,
- "no-duplicate-variable": true,
- "no-empty": true,
- "no-eval": true,
- "no-inferrable-types": true,
- "no-shadowed-variable": true,
- "no-string-literal": false,
- "no-switch-case-fall-through": true,
- "no-trailing-whitespace": true,
- "no-unused-expression": true,
- "no-unused-variable": true,
- "no-unreachable": true,
- "no-use-before-declare": true,
- "no-var-keyword": true,
- "object-literal-sort-keys": false,
- "one-line": [true,
- "check-open-brace",
- "check-catch",
- "check-else",
- "check-finally",
- "check-whitespace"
- ],
- "quotemark": [true, "single", "avoid-escape"],
- "radix": true,
- "semicolon": [true, "always"],
- "trailing-comma": [true,
- {
- "singleline": "never",
- "multiline": "always"
- }],
- "triple-equals": [true, "allow-null-check"],
- "typedef-whitespace": [true,
- {
- "call-signature": "nospace",
- "index-signature": "nospace",
- "parameter": "nospace",
- "property-declaration": "nospace",
- "variable-declaration": "nospace"
- }, {
- "call-signature": "onespace",
- "index-signature": "onespace",
- "parameter": "onespace",
- "property-declaration": "onespace",
- "variable-declaration": "onespace"
- }],
- "variable-name": false,
- "whitespace": [true, "check-branch", "check-decl", "check-operator", "check-separator", "check-type"]
- }
-}
diff --git a/DKBFrontEnd/src/typings/README b/DKBFrontEnd/src/typings/README
deleted file mode 100644
index 4396d8333..000000000
--- a/DKBFrontEnd/src/typings/README
+++ /dev/null
@@ -1,9 +0,0 @@
-See https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/declaration%20files/Library%20Structures.md
-for declaration files authoring.
-
-/globals - global libraries installed from Typings
-/modules - modular libraries installed from Typings
-/local - global libraries authored by us
-/local-modules - modular libraries authored by us
-
-Important: modular libraries should follow pattern {library-name}/index.d.ts
diff --git a/DKBFrontEnd/src/typings/globals/jstree/index.d.ts b/DKBFrontEnd/src/typings/globals/jstree/index.d.ts
deleted file mode 100644
index a691ccb4c..000000000
--- a/DKBFrontEnd/src/typings/globals/jstree/index.d.ts
+++ /dev/null
@@ -1,1909 +0,0 @@
-// Generated by typings
-// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/00dd9a1cf6c5b748d51e6d470ce6117bb383ea6c/jstree/jstree.d.ts
-interface JQueryStatic {
- /**
- * holds all jstree related functions and variables,
- * including the actual class and methods to create,
- * access and manipulate instances.
- * @property jstree
- * @type {JSTreeStatic}
- */
- jstree?: JSTreeStatic;
-}
-
-interface JQuery {
- /**
- * Create an instance, get an instance or invoke a command on a instance.
- *
- * If there is no instance associated with the current node a new one is created
- * and `arg` is used to extend `$.jstree.defaults` for this new instance. There would be no return value (chaining is not broken).
- *
- * If there is an existing instance and `arg` is a string the command specified by `arg` is executed on the instance,
- * with any additional arguments passed to the function. If the function returns a value it will be returned (chaining could break depending on function).
- *
- * If there is an existing instance and `arg` is not a string the instance itself is returned (similar to `$.jstree.reference`).
- *
- * In any other case - nothing is returned and chaining is not broken.
- *
- * __Examples__
- *
- * $('#tree1').jstree(); // creates an instance
- * $('#tree2').jstree({ plugins : [] }); // create an instance with some options
- * $('#tree1').jstree('open_node', '#branch_1'); // call a method on an existing instance, passing additional arguments
- * $('#tree2').jstree(); // get an existing instance (or create an instance)
- * $('#tree2').jstree(true); // get an existing instance (will not create new instance)
- * $('#branch_1').jstree().select_node('#branch_1'); // get an instance (using a nested element and call a method)
- *
- * @name $().jstree([arg])
- * @param {String|Object} arg
- * @return {Mixed}
- */
- jstree(): JSTree;
- jstree(options: JSTreeStaticDefaults): JSTree;
- jstree(arg: boolean): JSTree;
- jstree(...args: any[]): any;
-}
-
-interface JSTreeStatic {
- /**
- * specifies the jstree version in use
- * @name $.jstree.version
- */
- version: string;
-
- /**
- * holds all the default options used when creating new instances
- * @name $.jstree.defaults
- */
- defaults: JSTreeStaticDefaults;
-
- /**
- * stores all loaded jstree plugins (used internally)
- * @name $.jstree.plugins
- */
- plugins: any[];
- path: string;
- idregex: any;
- root: string;
-
- /**
- * creates a jstree instance
- * @name $.jstree.create(el [, options])
- * @param {DOMElement|jQuery|String} el the element to create the instance on, can be jQuery extended or a selector
- * @param {Object} options options for this instance (extends `$.jstree.defaults`)
- * @return {jsTree} the new instance
- */
- create(el: HTMLElement|JQuery|string, options?: JSTreeStaticDefaults): JSTree;
-
- /**
- * remove all traces of jstree from the DOM and destroy all instances
- * @name $.jstree.destroy()
- */
- destroy(): void;
-
- /**
- * the jstree class constructor, used only internally
- * @private
- * @name $.jstree.core(id)
- * @param {Number} id this instance's index
- */
- core(id: number): void;
-
- /**
- * get a reference to an existing instance
- *
- * __Examples__
- *
- * // provided a container with an ID of "tree", and a nested node with an ID of "branch"
- * // all of there will return the same instance
- * $.jstree.reference('tree');
- * $.jstree.reference('#tree');
- * $.jstree.reference($('#tree'));
- * $.jstree.reference(document.getElementByID('tree'));
- * $.jstree.reference('branch');
- * $.jstree.reference('#branch');
- * $.jstree.reference($('#branch'));
- * $.jstree.reference(document.getElementByID('branch'));
- *
- * @name $.jstree.reference(needle)
- * @param {DOMElement|jQuery|String} needle
- * @return {jsTree|null} the instance or `null` if not found
- */
- reference(needle: HTMLElement|JQuery|string): JSTree;
-}
-
-interface JSTreeStaticDefaults {
- /**
- * configure which plugins will be active on an instance.
- * Should be an array of strings, where each element is a plugin name.
- * The default is `[]`
- * @name $.jstree.defaults.plugins
- */
- plugins: string[];
-
- /**
- * stores all defaults for the core
- * @name $.jstree.defaults.core
- */
- core: JSTreeStaticDefaultsCore;
-
- /**
- * stores all defaults for the checkbox plugin
- */
- checkbox?: JSTreeStaticDefaultsCheckbox;
-
- /**
- * stores all defaults for the contextmenu plugin
- */
- contextmenu?: JSTreeStaticDefaultsContextMenu;
-
- /**
- * stores all defaults for the drag'n'drop plugin
- */
- dnd?: JSTreeStaticDefaultsDragNDrop;
-
- /**
- * Adds massload functionality to jsTree, so that multiple nodes can be loaded in a single request (only useful with lazy loading).
- */
- massload?: JSTreeStaticDefaultsMassload;
-
- /**
- * stores all defaults for the search plugin
- */
- search?: JSTreeStaticDefaultsSearch;
-
- /**
- * the settings function used to sort the nodes.
- * It is executed in the tree's context, accepts two nodes as arguments and should return `1` or `-1`.
- * @name $.jstree.defaults.sort
- * @plugin sort
- */
- sort?: (x: any, y: any) => number;
-
- /**
- * stores all defaults for the state plugin
- */
- state?: JSTreeStaticDefaultsState;
-
- /**
- * An object storing all types as key value pairs,
- * where the key is the type name and the value is an object
- * that could contain following keys (all optional).
- * max_children the maximum number of immediate children this node type can have.
- * Do not specify or set to -1 for unlimited.
- * max_depth the maximum number of nesting this node type can have.
- * A value of 1 would mean that the node can have children, but no grandchildren.
- * Do not specify or set to -1 for unlimited.
- * valid_children an array of node type strings, that nodes of this type can have as children.
- * Do not specify or set to -1 for no limits.
- * icon a string - can be a path to an icon or a className, if using an image
- * that is in the current directory use a ./ prefix, otherwise it will be detected as a class.
- * Omit to use the default icon from your theme.
- * There are two predefined types:
- * # represents the root of the tree, for example max_children would control the maximum number of root nodes.
- * default represents the default node - any settings here will be applied to all nodes that do not have a type specified.
- */
- types?: any;
-
- /**
- * stores all defaults for the unique plugin
- * @name $.jstree.defaults.unique
- * @plugin unique
- */
- unique?: JSTreeStaticDefaultsUnique;
-}
-
-interface JSTreeStaticDefaultsCore {
- /**
- * data configuration
- *
- * If left as `false` the HTML inside the jstree container element is used to populate the tree (that should be an unordered list with list items).
- *
- * You can also pass in a HTML string or a JSON array here.
- *
- * It is possible to pass in a standard jQuery-like AJAX config and jstree will automatically determine if the response is JSON or HTML and use that to populate the tree.
- * In addition to the standard jQuery ajax options here you can suppy functions for `data` and `url`, the functions will be run in the current instance's scope and a param will be passed indicating which node is being loaded, the return value of those functions will be used.
- *
- * The last option is to specify a function, that function will receive the node being loaded as argument and a second param which is a function which should be called with the result.
- *
- * __Examples__
- *
- * // AJAX
- * $('#tree').jstree({
- * 'core' : {
- * 'data' : {
- * 'url' : '/get/children/',
- * 'data' : function (node) {
- * return { 'id' : node.id };
- * }
- * }
- * });
- *
- * // direct data
- * $('#tree').jstree({
- * 'core' : {
- * 'data' : [
- * 'Simple root node',
- * {
- * 'id' : 'node_2',
- * 'text' : 'Root node with options',
- * 'state' : { 'opened' : true, 'selected' : true },
- * 'children' : [ { 'text' : 'Child 1' }, 'Child 2']
- * }
- * ]
- * });
- *
- * // function
- * $('#tree').jstree({
- * 'core' : {
- * 'data' : function (obj, callback) {
- * callback.call(this, ['Root 1', 'Root 2']);
- * }
- * });
- *
- * @name $.jstree.defaults.core.data
- */
- data?: any;
-
- /**
- * configure the various strings used throughout the tree
- *
- * You can use an object where the key is the string you need to replace and the value is your replacement.
- * Another option is to specify a function which will be called with an argument of the needed string and should return the replacement.
- * If left as `false` no replacement is made.
- *
- * __Examples__
- *
- * $('#tree').jstree({
- * 'core' : {
- * 'strings' : {
- * 'Loading ...' : 'Please wait ...'
- * }
- * }
- * });
- *
- * @name $.jstree.defaults.core.strings
- */
- strings?: any;
-
- /**
- * determines what happens when a user tries to modify the structure of the tree
- * If left as `false` all operations like create, rename, delete, move or copy are prevented.
- * You can set this to `true` to allow all interactions or use a function to have better control.
- *
- * __Examples__
- *
- * $('#tree').jstree({
- * 'core' : {
- * 'check_callback' : function (operation, node, node_parent, node_position, more) {
- * // operation can be 'create_node', 'rename_node', 'delete_node', 'move_node' or 'copy_node'
- * // in case of 'rename_node' node_position is filled with the new node name
- * return operation === 'rename_node' ? true : false;
- * }
- * }
- * });
- *
- * @name $.jstree.defaults.core.check_callback
- */
- check_callback?: any;
-
- /**
- * a callback called with a single object parameter in the instance's scope when something goes wrong (operation prevented, ajax failed, etc)
- * @name $.jstree.defaults.core.error
- */
- error: () => any;
-
- /**
- * the open / close animation duration in milliseconds - set this to `false` to disable the animation (default is `200`)
- * @name $.jstree.defaults.core.animation
- */
- animation?: any;
-
- /**
- * a boolean indicating if multiple nodes can be selected
- * @name $.jstree.defaults.core.multiple
- */
- multiple?: boolean;
-
- /**
- * theme configuration object
- * @name $.jstree.defaults.core.themes
- */
- themes?: JSTreeStaticDefaultsCoreThemes;
-
- /**
- * if left as `true` all parents of all selected nodes will be opened once the tree loads (so that all selected nodes are visible to the user)
- * @name $.jstree.defaults.core.expand_selected_onload
- */
- expand_selected_onload?: boolean;
-
- /**
- * if left as `true` web workers will be used to parse incoming JSON data where possible, so that the UI will not be blocked by large requests.
- * Workers are however about 30% slower. Defaults to `true`
- * @name $.jstree.defaults.core.worker
- */
- worker?: boolean;
-
- /**
- * Force node text to plain text (and escape HTML). Defaults to `false`
- * @name $.jstree.defaults.core.force_text
- */
- force_text?: boolean;
-
- /**
- * Should the node should be toggled if the text is double clicked . Defaults to `true`
- * @name $.jstree.defaults.core.dblclick_toggle
- */
- dblclick_toggle?: boolean;
-}
-
-interface JSTreeStaticDefaultsCoreThemes {
- /**
- * the name of the theme to use (if left as `false` the default theme is used)
- * @name $.jstree.defaults.core.themes.name
- */
- name?: string;
-
- /**
- * the URL of the theme's CSS file, leave this as `false` if you have manually included the theme CSS (recommended). You can set this to `true` too which will try to autoload the theme.
- * @name $.jstree.defaults.core.themes.url
- */
- url?: string;
-
- /**
- * the location of all jstree themes - only used if `url` is set to `true`
- * @name $.jstree.defaults.core.themes.dir
- */
- dir?: string;
-
- /**
- * a boolean indicating if connecting dots are shown
- * @name $.jstree.defaults.core.themes.dots
- */
- dots?: boolean;
-
- /**
- * a boolean indicating if node icons are shown
- * @name $.jstree.defaults.core.themes.icons
- */
- icons?: boolean;
-
- /**
- * a boolean indicating if the tree background is striped
- * @name $.jstree.defaults.core.themes.stripes
- */
- stripes?: boolean;
-
- /**
- * a string (or boolean `false`) specifying the theme variant to use (if the theme supports variants)
- * @name $.jstree.defaults.core.themes.variant
- */
- variant?: any;
-
- /**
- * a boolean specifying if a reponsive version of the theme should kick in on smaller screens (if the theme supports it). Defaults to `false`.
- * @name $.jstree.defaults.core.themes.responsive
- */
- responsive?: boolean;
-}
-
-interface JSTreeStaticDefaultsCheckbox {
- /**
- * a boolean indicating if checkboxes should be visible (can be changed at a later time using `show_checkboxes()` and `hide_checkboxes`). Defaults to `true`.
- * @name $.jstree.defaults.checkbox.visible
- * @plugin checkbox
- */
- visible: boolean;
-
- /**
- * a boolean indicating if checkboxes should cascade down and have an undetermined state. Defaults to `true`.
- * @name $.jstree.defaults.checkbox.three_state
- * @plugin checkbox
- */
- three_state: boolean;
-
- /**
- * a boolean indicating if clicking anywhere on the node should act as clicking on the checkbox. Defaults to `true`.
- * @name $.jstree.defaults.checkbox.whole_node
- * @plugin checkbox
- */
- whole_node: boolean;
-
- /**
- * a boolean indicating if the selected style of a node should be kept, or removed. Defaults to `true`.
- * @name $.jstree.defaults.checkbox.keep_selected_style
- * @plugin checkbox
- */
- keep_selected_style: boolean;
-
- /**
- * This setting controls how cascading and undetermined nodes are applied.
- * If 'up' is in the string - cascading up is enabled, if 'down' is in the string - cascading down is enabled, if 'undetermined' is in the string - undetermined nodes will be used.
- * If `three_state` is set to `true` this setting is automatically set to 'up+down+undetermined'. Defaults to ''.
- * @name $.jstree.defaults.checkbox.cascade
- * @plugin checkbox
- */
- cascade: boolean;
-
- /**
- * This setting controls if checkbox are bound to the general tree selection
- * or to an internal array maintained by the checkbox plugin.
- * Defaults to `true`, only set to `false` if you know exactly what you are doing.
- * @name $.jstree.defaults.checkbox.tie_selection
- * @plugin checkbox
- */
- tie_selection: boolean;
-}
-
-interface JSTreeStaticDefaultsContextMenu {
- /**
- * a boolean indicating if the node should be selected when the context menu is invoked on it. Defaults to `true`.
- * @name $.jstree.defaults.contextmenu.select_node
- * @plugin contextmenu
- */
- select_node: boolean;
-
- /**
- * a boolean indicating if the menu should be shown aligned with the node. Defaults to `true`, otherwise the mouse coordinates are used.
- * @name $.jstree.defaults.contextmenu.show_at_node
- * @plugin contextmenu
- */
- show_at_node: boolean;
-
- /**
- * an object of actions, or a function that accepts a node and a callback function and calls the callback function with an object of actions available for that node (you can also return the items too).
- *
- * Each action consists of a key (a unique name) and a value which is an object with the following properties (only label and action are required). Once a menu item is activated the `action` function will be invoked with an object containing the following keys: item - the contextmenu item definition as seen below, reference - the DOM node that was used (the tree node), element - the contextmenu DOM element, position - an object with x/y properties indicating the position of the menu.
- *
- * * `separator_before` - a boolean indicating if there should be a separator before this item
- * * `separator_after` - a boolean indicating if there should be a separator after this item
- * * `_disabled` - a boolean indicating if this action should be disabled
- * * `label` - a string - the name of the action (could be a function returning a string)
- * * `title` - a string - an optional tooltip for the item
- * * `action` - a function to be executed if this item is chosen, the function will receive
- * * `icon` - a string, can be a path to an icon or a className, if using an image that is in the current directory use a `./` prefix, otherwise it will be detected as a class
- * * `shortcut` - keyCode which will trigger the action if the menu is open (for example `113` for rename, which equals F2)
- * * `shortcut_label` - shortcut label (like for example `F2` for rename)
- * * `submenu` - an object with the same structure as $.jstree.defaults.contextmenu.items which can be used to create a submenu - each key will be rendered as a separate option in a submenu that will appear once the current item is hovered
- *
- * @name $.jstree.defaults.contextmenu.items
- * @plugin contextmenu
- */
- items: any;
-}
-
-interface JSTreeStaticDefaultsDragNDrop {
- /**
- * a boolean indicating if a copy should be possible while dragging (by pressint the meta key or Ctrl). Defaults to `true`.
- * @name $.jstree.defaults.dnd.copy
- * @plugin dnd
- */
- copy: boolean;
-
- /**
- * a number indicating how long a node should remain hovered while dragging to be opened. Defaults to `500`.
- * @name $.jstree.defaults.dnd.open_timeout
- * @plugin dnd
- */
- open_timeout: number;
-
- /**
- * a function invoked each time a node is about to be dragged, invoked in the tree's scope and receives the nodes about to be dragged as an argument (array) - return `false` to prevent dragging
- * @name $.jstree.defaults.dnd.is_draggable
- * @plugin dnd
- */
- is_draggable: boolean;
-
- /**
- * a boolean indicating if checks should constantly be made while the user is dragging the node (as opposed to checking only on drop), default is `true`
- * @name $.jstree.defaults.dnd.check_while_dragging
- * @plugin dnd
- */
- check_while_dragging: boolean;
-
- /**
- * a boolean indicating if nodes from this tree should only be copied with dnd (as opposed to moved), default is `false`
- * @name $.jstree.defaults.dnd.always_copy
- * @plugin dnd
- */
- always_copy: boolean;
-
- /**
- * when dropping a node "inside", this setting indicates the position the node should go to - it can be an integer or a string: "first" (same as 0) or "last", default is `0`
- * @name $.jstree.defaults.dnd.inside_pos
- * @plugin dnd
- */
- inside_pos: any;
-
- /**
- * when starting the drag on a node that is selected this setting controls if all selected nodes are dragged or only the single node, default is `true`, which means all selected nodes are dragged when the drag is started on a selected node
- * @name $.jstree.defaults.dnd.drag_selection
- * @plugin dnd
- */
- drag_selection: boolean;
-
- /**
- * controls whether dnd works on touch devices. If left as boolean true dnd will work the same as in desktop browsers, which in some cases may impair scrolling. If set to boolean false dnd will not work on touch devices. There is a special third option - string "selected" which means only selected nodes can be dragged on touch devices.
- * @name $.jstree.defaults.dnd.touch
- * @plugin dnd
- */
- touch: boolean;
-
- /**
- * controls whether items can be dropped anywhere on the node, not just on the anchor, by default only the node anchor is a valid drop target. Works best with the wholerow plugin. If enabled on mobile depending on the interface it might be hard for the user to cancel the drop, since the whole tree container will be a valid drop target.
- * @name $.jstree.defaults.dnd.large_drop_target
- * @plugin dnd
- */
- large_drop_target: boolean;
-
- /**
- * controls whether a drag can be initiated from any part of the node and not just the text/icon part, works best with the wholerow plugin. Keep in mind it can cause problems with tree scrolling on mobile depending on the interface - in that case set the touch option to "selected".
- * @name $.jstree.defaults.dnd.large_drag_target
- * @plugin dnd
- */
- large_drag_target: boolean;
-
- /**
- * controls whether use HTML5 dnd api instead of classical. That will allow better integration of dnd events with other HTML5 controls.
- * @reference http://caniuse.com/#feat=dragndrop
- * @name $.jstree.defaults.dnd.use_html5
- * @plugin dnd
- */
- use_html5: boolean;
-}
-
-interface JSTreeStaticDefaultsMassload {
- /**
- * massload configuration
- *
- * It is possible to set this to a standard jQuery-like AJAX config.
- * In addition to the standard jQuery ajax options here you can supply functions for `data` and `url`, the functions will be run in the current instance's scope and a param will be passed indicating which node IDs need to be loaded, the return value of those functions will be used.
- *
- * You can also set this to a function, that function will receive the node IDs being loaded as argument and a second param which is a function (callback) which should be called with the result.
- *
- * Both the AJAX and the function approach rely on the same return value - an object where the keys are the node IDs, and the value is the children of that node as an array.
- *
- * {
- * "id1" : [{ "text" : "Child of ID1", "id" : "c1" }, { "text" : "Another child of ID1", "id" : "c2" }],
- * "id2" : [{ "text" : "Child of ID2", "id" : "c3" }]
- * }
- *
- * @name $.jstree.defaults.massload
- * @plugin massload
- */
-
- url: any;
-
- data: any;
-}
-
-interface JSTreeStaticDefaultsSearch {
- /**
- * a jQuery-like AJAX config, which jstree uses if a server should be queried for results.
- *
- * A `str` (which is the search string) parameter will be added with the request,
- * an optional `inside` parameter will be added if the search is limited to a node id.
- * The expected result is a JSON array with nodes that need to be opened so that matching nodes will be revealed.
- * Leave this setting as `false` to not query the server. You can also set this to a function,
- * which will be invoked in the instance's scope and receive 3 parameters - the search string,
- * the callback to call with the array of nodes to load, and the optional node ID to limit the search to
- * @name $.jstree.defaults.search.ajax
- * @plugin search
- */
- ajax: any;
-
- /**
- * Indicates if the search should be fuzzy or not (should `chnd3` match `child node 3`). Default is `true`.
- * @name $.jstree.defaults.search.fuzzy
- * @plugin search
- */
- fuzzy: boolean;
-
- /**
- * Indicates if the search should be case sensitive. Default is `false`.
- * @name $.jstree.defaults.search.case_sensitive
- * @plugin search
- */
- case_sensitive: boolean;
-
- /**
- * Indicates if the tree should be filtered (by default) to show only matching nodes
- * (keep in mind this can be a heavy on large trees in old browsers).
- * This setting can be changed at runtime when calling the search method. Default is `false`.
- * @name $.jstree.defaults.search.show_only_matches
- * @plugin search
- */
- show_only_matches: boolean;
-
- /**
- * Indicates if the children of matched element are shown (when show_only_matches is true)
- * This setting can be changed at runtime when calling the search method. Default is `false`.
- * @name $.jstree.defaults.search.show_only_matches_children
- * @plugin search
- */
- show_only_matches_children: boolean;
-
- /**
- * Indicates if all nodes opened to reveal the search result,
- * should be closed when the search is cleared or a new search is performed. Default is `true`.
- * @name $.jstree.defaults.search.close_opened_onclear
- * @plugin search
- */
- close_opened_onclear: boolean;
-
- /**
- * Indicates if only leaf nodes should be included in search results. Default is `false`.
- * @name $.jstree.defaults.search.search_leaves_only
- * @plugin search
- */
- search_leaves_only: boolean;
-
- /**
- * If set to a function it wil be called in the instance's scope with two arguments -
- * search string and node (where node will be every node in the structure, so use with caution).
- * If the function returns a truthy value the node will be considered a match
- * (it might not be displayed if search_only_leaves is set to true and the node is not a leaf). Default is `false`.
- * @name $.jstree.defaults.search.search_callback
- * @plugin search
- */
- search_callback: any;
-}
-
-interface JSTreeStaticDefaultsState {
- /**
- * A string for the key to use when saving the current tree (change if using multiple trees in your project). Defaults to `jstree`.
- * @name $.jstree.defaults.state.key
- * @plugin state
- */
- key: string;
-
- /**
- * A space separated list of events that trigger a state save. Defaults to `changed.jstree open_node.jstree close_node.jstree`.
- * @name $.jstree.defaults.state.events
- * @plugin state
- */
- events: string;
-
- /**
- * Time in milliseconds after which the state will expire. Defaults to 'false' meaning - no expire.
- * @name $.jstree.defaults.state.ttl
- * @plugin state
- */
- ttl: any;
-
- /**
- * A function that will be executed prior to restoring state with one argument - the state object. Can be used to clear unwanted parts of the state.
- * @name $.jstree.defaults.state.filter
- * @plugin state
- */
- filter: any;
-}
-
-interface JSTreeStaticDefaultsUnique {
- /**
- * Indicates if the comparison should be case sensitive. Default is `false`.
- * @name $.jstree.defaults.unique.case_sensitive
- * @plugin unique
- */
- case_sensitive: boolean;
- /**
- * A callback executed in the instance's scope when a new node is created
- * and the name is already taken, the two arguments are the conflicting name and the counter.
- * The default will produce results like `New node (2)`.
- * @name $.jstree.defaults.unique.duplicate
- * @plugin unique
- */
- duplicate: (name: string, counter: number) => string;
-}
-
-interface JSTree extends JQuery {
- /**
- * used to decorate an instance with a plugin. Used internally.
- * @private
- * @name plugin(deco [, opts])
- * @param {String} deco the plugin to decorate with
- * @param {Object} opts options for the plugin
- * @return {jsTree}
- */
- plugin: (deco: string, opts?: any) => JSTree;
-
- /**
- * used to decorate an instance with a plugin. Used internally.
- * @private
- * @name init(el, options)
- * @param {DOMElement|jQuery|String} el the element we are transforming
- * @param {Object} options options for this instance
- * @trigger init.jstree, loading.jstree, loaded.jstree, ready.jstree, changed.jstree
- */
- init: (el: HTMLElement|JQuery|string, options:any) => void;
-
- /**
- * destroy an instance
- * @name destroy()
- * @param {Boolean} keep_html if not set to `true` the container will be emptied, otherwise the current DOM elements will be kept intact
- */
- destroy: (keep_html?: boolean) => void;
-
- /**
- * part of the destroying of an instance. Used internally.
- * @private
- * @name teardown()
- */
- teardown: () => void;
-
- /**
- * bind all events. Used internally.
- * @private
- * @name bind()
- */
- bind: () => any;
-
- /**
- * part of the destroying of an instance. Used internally.
- * @private
- * @name unbind()
- */
- unbind: () => any;
-
- /**
- * trigger an event. Used internally.
- * @private
- * @name trigger(ev [, data])
- * @param {String} ev the name of the event to trigger
- * @param {Object} data additional data to pass with the event
- */
- /*
- * defined in JQuery
- */
- // trigger: (ev: string, data?: Object) => any;
-
- /**
- * returns the jQuery extended instance container
- * @name get_container()
- * @return {jQuery}
- */
- get_container: () => JQuery;
-
- /**
- * returns the jQuery extended main UL node inside the instance container. Used internally.
- * @private
- * @name get_container_ul()
- * @return {jQuery}
- */
- get_container_ul: () => JQuery;
-
- /**
- * gets string replacements (localization). Used internally.
- * @private
- * @name get_string(key)
- * @param {String} key
- * @return {String}
- */
- get_string: (key: string) => string;
-
- /**
- * gets the first child of a DOM node. Used internally.
- * @private
- * @name _firstChild(dom)
- * @param {DOMElement} dom
- * @return {DOMElement}
- */
- _firstChild: (dom: HTMLElement) => HTMLElement;
-
- /**
- * gets the next sibling of a DOM node. Used internally.
- * @private
- * @name _nextSibling(dom)
- * @param {DOMElement} dom
- * @return {DOMElement}
- */
- _nextSibling: (dom: HTMLElement) => HTMLElement;
-
- /**
- * gets the previous sibling of a DOM node. Used internally.
- * @private
- * @name _previousSibling(dom)
- * @param {DOMElement} dom
- * @return {DOMElement}
- */
- _previousSibling: (dom: HTMLElement) => HTMLElement;
-
- /**
- * get the JSON representation of a node (or the actual jQuery extended DOM node) by using any input (child DOM element, ID string, selector, etc)
- * @name get_node(obj [, as_dom])
- * @param {mixed} obj
- * @param {Boolean} as_dom
- * @return {Object|jQuery}
- */
- get_node: (obj: any, as_dom?: boolean) => any;
-
- /**
- * get the path to a node, either consisting of node texts, or of node IDs, optionally glued together (otherwise an array)
- * @name get_path(obj [, glue, ids])
- * @param {mixed} obj the node
- * @param {String} glue if you want the path as a string - pass the glue here (for example '/'), if a falsy value is supplied here, an array is returned
- * @param {Boolean} ids if set to true build the path using ID, otherwise node text is used
- * @return {mixed}
- */
- get_path: (obj: any, glue?: string, ids?: boolean) => any;
-
- /**
- * get the next visible node that is below the `obj` node. If `strict` is set to `true` only sibling nodes are returned.
- * @name get_next_dom(obj [, strict])
- * @param {mixed} obj
- * @param {Boolean} strict
- * @return {jQuery}
- */
- get_next_dom: (obj: any, strict?: boolean) => JQuery;
-
- /**
- * get the previous visible node that is above the `obj` node. If `strict` is set to `true` only sibling nodes are returned.
- * @name get_prev_dom(obj [, strict])
- * @param {mixed} obj
- * @param {Boolean} strict
- * @return {jQuery}
- */
- get_prev_dom: (obj: any, strict?: boolean) => JQuery;
-
- /**
- * get the parent ID of a node
- * @name get_parent(obj)
- * @param {mixed} obj
- * @return {String}
- */
- get_parent: (obj: any) => string;
-
- /**
- * get a jQuery collection of all the children of a node (node must be rendered)
- * @name get_children_dom(obj)
- * @param {mixed} obj
- * @return {jQuery}
- */
- get_children_dom: (obj: any) => JQuery;
-
- /**
- * checks if a node has children
- * @name is_parent(obj)
- * @param {mixed} obj
- * @return {Boolean}
- */
- is_parent: (obj: any) => boolean;
-
- /**
- * checks if a node is loaded (its children are available)
- * @name is_loaded(obj)
- * @param {mixed} obj
- * @return {Boolean}
- */
- is_loaded: (obj: any) => boolean;
-
- /**
- * check if a node is currently loading (fetching children)
- * @name is_loading(obj)
- * @param {mixed} obj
- * @return {Boolean}
- */
- is_loading: (obj: any) => boolean;
-
- /**
- * check if a node is opened
- * @name is_open(obj)
- * @param {mixed} obj
- * @return {Boolean}
- */
- is_open: (obj: any) => boolean;
-
- /**
- * check if a node is in a closed state
- * @name is_closed(obj)
- * @param {mixed} obj
- * @return {Boolean}
- */
- is_closed: (obj: any) => boolean;
-
- /**
- * check if a node has no children
- * @name is_leaf(obj)
- * @param {mixed} obj
- * @return {Boolean}
- */
- is_leaf: (obj: any) => boolean;
-
- /**
- * loads a node (fetches its children using the `core.data` setting). Multiple nodes can be passed to by using an array.
- * @name load_node(obj [, callback])
- * @param {mixed} obj
- * @param {function} callback a function to be executed once loading is conplete, the function is executed in the instance's scope
- * and receives two arguments - the node and a boolean status
- * @return {Boolean}
- * @trigger load_node.jstree
- */
- load_node: (obj: any, callback: (node: any, status: boolean) => void) => boolean;
-
- /**
- * load an array of nodes (will also load unavailable nodes as soon as the appear in the structure). Used internally.
- * @private
- * @name _load_nodes(nodes [, callback])
- * @param {array} nodes
- * @param {function} callback a function to be executed once loading is complete, the function is executed in the instance's scope and receives one argument - the array passed to _load_nodes
- * @param {Boolean} is_callback - if false reloads node (AP - original comment missing in source code)
- * @param {Boolean} force_reload - if true force reloads node (AP - original comment missing in source code)
- */
- _load_nodes: (nodes: any[], callback?: (nodes: any[]) => void, is_callback?: boolean, force_reload?: boolean) => void;
-
- /**
- * loads all unloaded nodes
- * @name load_all([obj, callback])
- * @param {mixed} obj the node to load recursively, omit to load all nodes in the tree
- * @param {function} callback a function to be executed once loading all the nodes is complete,
- * @trigger load_all.jstree
- */
- load_all: (obj: any, callback: () => void) => void;
-
- /**
- * handles the actual loading of a node. Used only internally.
- * @private
- * @name _load_node(obj [, callback])
- * @param {mixed} obj
- * @param {function} callback a function to be executed once loading is complete, the function is executed in the instance's scope and receives one argument - a boolean status
- * @return {Boolean}
- */
- _load_node: (obj: any, callback?: (status: boolean) => void) => boolean;
-
- /**
- * adds a node to the list of nodes to redraw. Used only internally.
- * @private
- * @name _node_changed(obj)
- * @param {mixed} obj
- */
- _node_changed: (obj: any) => void;
-
- /**
- * appends HTML content to the tree. Used internally.
- * @private
- * @name _append_html_data(obj, data)
- * @param {mixed} obj the node to append to
- * @param {String} data the HTML string to parse and append
- * @param {function} callback function which takes boolean flag executes after append (AP: originally lack of comment)
- * @trigger model.jstree, changed.jstree
- */
- _append_html_data: (dom: any, data: string, cb: (flag: boolean) => void) => void;
-
- /**
- * appends JSON content to the tree. Used internally.
- * @private
- * @name _append_json_data(obj, data)
- * @param {mixed} dom the node to append to
- * @param {String} data the JSON object to parse and append
- * @param {function} cb function which takes boolean flag executes after append (AP: originally lack of comment)
- * @param {Boolean} force_processing internal param - do not set
- * @trigger model.jstree, changed.jstree
- */
- _append_json_data: (dom: any, data: string, cb: (flag: boolean) => void, force_processing: boolean) => void;
-
- /**
- * parses a node from a jQuery object and appends them to the in memory tree model. Used internally.
- * @private
- * @name _parse_model_from_html(d [, p, ps])
- * @param {jQuery} d the jQuery object to parse
- * @param {String} p the parent ID
- * @param {Array} ps list of all parents
- * @return {String} the ID of the object added to the model
- */
- _parse_model_from_html: (d: JQuery, p?: string, ps?: any[]) => string;
-
- /**
- * parses a node from a JSON object (used when dealing with flat data, which has no nesting of children, but has id and parent properties) and appends it to the in memory tree model. Used internally.
- * @private
- * @name _parse_model_from_flat_json(d [, p, ps])
- * @param {Object} d the JSON object to parse
- * @param {String} p the parent ID
- * @param {Array} ps list of all parents
- * @return {String} the ID of the object added to the model
- */
- _parse_model_from_flat_json: (d: any, p?: string, ps?: any[]) => string;
-
- /**
- * parses a node from a JSON object and appends it to the in memory tree model. Used internally.
- * @private
- * @name _parse_model_from_json(d [, p, ps])
- * @param {Object} d the JSON object to parse
- * @param {String} p the parent ID
- * @param {Array} ps list of all parents
- * @return {String} the ID of the object added to the model
- */
- _parse_model_from_json: (d: any, p?: string, ps?: any[]) => string;
-
- /**
- * redraws all nodes that need to be redrawn. Used internally.
- * @private
- * @name _redraw()
- * @trigger redraw.jstree
- */
- _redraw: () => void ;
-
- /**
- * redraws all nodes that need to be redrawn or optionally - the whole tree
- * @name redraw([full])
- * @param {Boolean} full if set to `true` all nodes are redrawn.
- */
- redraw: (full?: boolean) => void;
-
- /**
- * redraws a single node's children. Used internally.
- * @private
- * @name draw_children(node)
- * @param {mixed} node the node whose children will be redrawn
- */
- draw_children: (node: any) => void;
-
- /**
- * redraws a single node. Used internally.
- * @private
- * @name redraw_node(node, deep, is_callback, force_render)
- * @param {mixed} node the node to redraw
- * @param {Boolean} deep should child nodes be redrawn too
- * @param {Boolean} is_callback is this a recursion call
- * @param {Boolean} force_render should children of closed parents be drawn anyway
- */
- redraw_node: (node: any, deep: boolean, is_callback: boolean, force_render: boolean) => void;
-
- /**
- * opens a node, revaling its children. If the node is not loaded it will be loaded and opened once ready.
- * @name open_node(obj [, callback, animation])
- * @param {mixed} obj the node to open
- * @param {Function} callback a function to execute once the node is opened
- * @param {Number} animation the animation duration in milliseconds
- * when opening the node (overrides the `core.animation` setting). Use `false` for no animation.
- * @trigger open_node.jstree, after_open.jstree, before_open.jstree
- */
- open_node: (obj: any, callback?: any, animation?: any) => void;
-
- /**
- * opens every parent of a node (node should be loaded)
- * @name _open_to(obj)
- * @param {mixed} obj the node to reveal
- * @private
- */
- _open_to: (obj:any) => void;
-
- /**
- * closes a node, hiding its children
- * @name close_node(obj [, animation])
- * @param {mixed} obj the node to close
- * @param {Number} animation the animation duration in milliseconds
- * when closing the node (overrides the `core.animation` setting). Use `false` for no animation.
- * @trigger close_node.jstree, after_close.jstree
- */
- close_node: (obj: any, animation?: any) => void;
-
- /**
- * toggles a node - closing it if it is open, opening it if it is closed
- * @name toggle_node(obj)
- * @param {mixed} obj the node to toggle
- */
- toggle_node: (obj: any) => void;
-
- /**
- * opens all nodes within a node (or the tree), revaling their children. If the node is not loaded it will be loaded and opened once ready.
- * @name open_all([obj, animation, original_obj])
- * @param {mixed} obj the node to open recursively, omit to open all nodes in the tree
- * @param {Number} animation the animation duration in milliseconds when opening the nodes, the default is no animation
- * @param {jQuery} reference to the node that started the process (internal use)
- * @trigger open_all.jstree
- */
- open_all: (obj?: any, animation?: number, original_obj?: any) => void;
-
- /**
- * closes all nodes within a node (or the tree), revaling their children
- * @name close_all([obj, animation])
- * @param {mixed} obj the node to close recursively, omit to close all nodes in the tree
- * @param {Number} animation the animation duration in milliseconds when closing the nodes, the default is no animation
- * @trigger close_all.jstree
- */
- close_all: (obj?: any, animation?: number) => void;
-
- /**
- * checks if a node is disabled (not selectable)
- * @name is_disabled(obj)
- * @param {mixed} obj
- * @return {Boolean}
- */
- is_disabled: (obj: any) => boolean;
-
- /**
- * enables a node - so that it can be selected
- * @name enable_node(obj)
- * @param {mixed} obj the node to enable
- * @trigger enable_node.jstree
- */
- enable_node: (obj: any) => boolean;
-
- /**
- * disables a node - so that it can not be selected
- * @name disable_node(obj)
- * @param {mixed} obj the node to disable
- * @trigger disable_node.jstree
- */
- disable_node: (obj: any) => boolean;
-
- /**
- * determines if a node is hidden
- * @name is_hidden(obj)
- * @param {mixed} obj the node
- */
- is_hidden: (obj: any) => boolean;
-
- /**
- * hides a node - it is still in the structure but will not be visible
- * @name hide_node(obj)
- * @param {mixed} obj the node to hide
- * @param {Boolean} skip_redraw internal parameter controlling if redraw is called
- * @trigger hide_node.jstree
- */
- hide_node: (obj: any, skip_redraw: boolean) => boolean;
-
- /**
- * shows a node
- * @name show_node(obj)
- * @param {mixed} obj the node to show
- * @param {Boolean} skip_redraw internal parameter controlling if redraw is called
- * @trigger show_node.jstree
- */
- show_node: (obj: any, skip_redraw: boolean) => boolean;
-
- /**
- * hides all nodes
- * @name hide_all()
- * @trigger hide_all.jstree
- */
- hide_all: (skip_redraw: boolean) => boolean;
-
- /**
- * shows all nodes
- * @name show_all()
- * @trigger show_all.jstree
- */
- show_all: (skip_redraw: boolean) => boolean;
-
- /**
- * called when a node is selected by the user. Used internally.
- * @private
- * @name activate_node(obj, e)
- * @param {mixed} obj the node
- * @param {Object} e the related event
- * @trigger activate_node.jstree, changed.jstree
- */
- activate_node: (obj: any, e: any) => void;
-
- /**
- * applies the hover state on a node, called when a node is hovered by the user. Used internally.
- * @private
- * @name hover_node(obj)
- * @param {mixed} obj
- * @trigger hover_node.jstree
- */
- hover_node: (obj: any) => void;
-
- /**
- * removes the hover state from a nodecalled when a node is no longer hovered by the user. Used internally.
- * @private
- * @name dehover_node(obj)
- * @param {mixed} obj
- * @trigger dehover_node.jstree
- */
- dehover_node: (obj: any) => void;
-
- /**
- * select a node
- * @name select_node(obj [, supress_event, prevent_open])
- * @param {mixed} obj an array can be used to select multiple nodes
- * @param {Boolean} supress_event if set to `true` the `changed.jstree` event won't be triggered
- * @param {Boolean} prevent_open if set to `true` parents of the selected node won't be opened
- * @trigger select_node.jstree, changed.jstree
- */
- select_node: (obj: any, supress_event?: boolean, prevent_open?: boolean, e?: any) => any;
-
- /**
- * deselect a node
- * @name deselect_node(obj [, supress_event])
- * @param {mixed} obj an array can be used to deselect multiple nodes
- * @param {Boolean} supress_event if set to `true` the `changed.jstree` event won't be triggered
- * @trigger deselect_node.jstree, changed.jstree
- */
- deselect_node: (obj: any, supress_event?: boolean, e?: any) => void;
-
- /**
- * select all nodes in the tree
- * @name select_all([supress_event])
- * @param {Boolean} supress_event if set to `true` the `changed.jstree` event won't be triggered
- * @trigger select_all.jstree, changed.jstree
- */
- select_all: (supress_event?: boolean) => void;
-
- /**
- * deselect all selected nodes
- * @name deselect_all([supress_event])
- * @param {Boolean} supress_event if set to `true` the `changed.jstree` event won't be triggered
- * @trigger deselect_all.jstree, changed.jstree
- */
- deselect_all: (supress_event?: boolean) => void;
-
- /**
- * checks if a node is selected
- * @name is_selected(obj)
- * @param {mixed} obj
- * @return {Boolean}
- */
- is_selected: (obj: any) => boolean;
-
- /**
- * get an array of all selected nodes
- * @name get_selected([full])
- * @param {mixed} full if set to `true` the returned array will consist of the full node objects, otherwise - only IDs will be returned
- * @return {Array}
- */
- get_selected: (full?: any) => any[];
-
- /**
- * get an array of all top level selected nodes (ignoring children of selected nodes)
- * @name get_top_selected([full])
- * @param {mixed} full if set to `true` the returned array will consist of the full node objects, otherwise - only IDs will be returned
- * @return {Array}
- */
- get_top_selected: (full?: any) => any[];
-
- /**
- * get an array of all bottom level selected nodes (ignoring selected parents)
- * @name get_top_selected([full])
- * @param {mixed} full if set to `true` the returned array will consist of the full node objects, otherwise - only IDs will be returned
- * @return {Array}
- */
- get_bottom_selected: (full?: any) => any[];
-
- /**
- * gets the current state of the tree so that it can be restored later with `set_state(state)`. Used internally.
- * @name get_state()
- * @private
- * @return {Object}
- */
- get_state: () => any;
-
- /**
- * sets the state of the tree. Used internally.
- * @name set_state(state [, callback])
- * @private
- * @param {Object} state the state to restore
- * @param {Function} callback an optional function to execute once the state is restored.
- * @trigger set_state.jstree
- */
- set_state: (state: any, callback: () => void) => void;
-
- /**
- * refreshes the tree - all nodes are reloaded with calls to `load_node`.
- * @name refresh()
- * @param {Boolean} skip_loading an option to skip showing the loading indicator
- * @param {Mixed} forget_state if set to `true` state will not be reapplied,
- * if set to a function (receiving the current state as argument) the result of that function will be used as state
- * @trigger refresh.jstree
- */
- refresh: (skip_loading: boolean, forget_state: any) => void;
-
- /**
- * refreshes a node in the tree (reload its children) all opened nodes inside that node are reloaded with calls to `load_node`.
- * @name refresh_node(obj)
- * @param {mixed} obj the node
- * @trigger refresh_node.jstree
- */
- refresh_node: (obj: any) => void;
-
- /**
- * set (change) the ID of a node
- * @name set_id(obj, id)
- * @param {mixed} obj the node
- * @param {String} id the new ID
- * @return {Boolean}
- */
- set_id: (obj: any, id: string) => boolean;
-
- /**
- * get the text value of a node
- * @name get_text(obj)
- * @param {mixed} obj the node
- * @return {String}
- */
- get_text: (obj: any) => string;
-
- /**
- * set the text value of a node. Used internally, please use `rename_node(obj, val)`.
- * @private
- * @name set_text(obj, val)
- * @param {mixed} obj the node, you can pass an array to set the text on multiple nodes
- * @param {String} val the new text value
- * @return {Boolean}
- * @trigger set_text.jstree
- */
- set_text: (obj:any, val:string) => boolean;
-
- /**
- * gets a JSON representation of a node (or the whole tree)
- * @name get_json([obj, options])
- * @param {mixed} obj
- * @param {Object} options
- * @param {Boolean} options.no_state do not return state information
- * @param {Boolean} options.no_id do not return ID
- * @param {Boolean} options.no_children do not include children
- * @param {Boolean} options.no_data do not include node data
- * @param {Boolean} options.no_li_attr do not include LI attributes
- * @param {Boolean} options.no_a_attr do not include A attributes
- * @param {Boolean} options.flat return flat JSON instead of nested
- * @return {Object}
- */
- get_json: (obj?: any, options?: JSTreeGetJsonOptions, flat?: boolean) => any;
-
- /**
- * create a new node (do not confuse with load_node)
- * @name create_node([obj, node, pos, callback, is_loaded])
- * @param {mixed} par the parent node (to create a root node use either "#" (string) or `null`)
- * @param {mixed} node the data for the new node (a valid JSON object, or a simple string with the name)
- * @param {mixed} pos the index at which to insert the node, "first" and "last" are also supported, default is "last"
- * @param {Function} callback a function to be called once the node is created
- * @param {Boolean} is_loaded internal argument indicating if the parent node was succesfully loaded
- * @return {String} the ID of the newly create node
- * @trigger model.jstree, create_node.jstree
- */
- create_node: (par?: any, node?: any, pos?: any, callback?: any, is_loaded?: boolean) => string;
-
- /**
- * set the text value of a node
- * @name rename_node(obj, val)
- * @param {mixed} obj the node, you can pass an array to rename multiple nodes to the same name
- * @param {String} val the new text value
- * @return {Boolean}
- * @trigger rename_node.jstree
- */
- rename_node: (obj: any, val: string) => boolean;
-
- /**
- * remove a node
- * @name delete_node(obj)
- * @param {mixed} obj the node, you can pass an array to delete multiple nodes
- * @return {Boolean}
- * @trigger delete_node.jstree, changed.jstree
- */
- delete_node: (obj: any) => boolean;
-
- /**
- * check if an operation is premitted on the tree. Used internally.
- * @private
- * @name check(chk, obj, par, pos)
- * @param {String} chk the operation to check, can be "create_node", "rename_node", "delete_node", "copy_node" or "move_node"
- * @param {mixed} obj the node
- * @param {mixed} par the parent
- * @param {mixed} pos the position to insert at, or if "rename_node" - the new name
- * @param {mixed} more some various additional information, for example if a "move_node" operations is triggered by DND this will be the hovered node
- * @return {Boolean}
- */
- check: (chk: string, obj: any, par: any, pos: any, more: any) => boolean;
-
- /**
- * get the last error
- * @name last_error()
- * @return {Object}
- */
- last_error: () => any;
-
- /**
- * move a node to a new parent
- * @name move_node(obj, par [, pos, callback, is_loaded])
- * @param {mixed} obj the node to move, pass an array to move multiple nodes
- * @param {mixed} par the new parent
- * @param {mixed} pos the position to insert at (besides integer values, "first" and "last" are supported, as well as "before" and "after"), defaults to integer `0`
- * @param {function} callback a function to call once the move is completed, receives 3 arguments - the node, the new parent and the position
- * @param {Boolean} is_loaded internal parameter indicating if the parent node has been loaded
- * @param {Boolean} skip_redraw internal parameter indicating if the tree should be redrawn
- * @param {Boolean} instance internal parameter indicating if the node comes from another instance
- * @trigger move_node.jstree
- */
- move_node: (obj: any, par: any, pos?: any, callback?: (node: any, new_par: any, pos: any) => void, is_loaded?: boolean, skip_redraw?: boolean, origin?: boolean) => void;
-
- /**
- * copy a node to a new parent
- * @name copy_node(obj, par [, pos, callback, is_loaded])
- * @param {mixed} obj the node to copy, pass an array to copy multiple nodes
- * @param {mixed} par the new parent
- * @param {mixed} pos the position to insert at (besides integer values, "first" and "last" are supported, as well as "before" and "after"), defaults to integer `0`
- * @param {function} callback a function to call once the move is completed, receives 3 arguments - the node, the new parent and the position
- * @param {Boolean} is_loaded internal parameter indicating if the parent node has been loaded
- * @param {Boolean} skip_redraw internal parameter indicating if the tree should be redrawn
- * @param {Boolean} instance internal parameter indicating if the node comes from another instance
- * @trigger model.jstree copy_node.jstree
- */
- copy_node: (obj: any, par: any, pos?: any, callback?: (node: any, new_par: any, pos: any) => void, is_loaded?: boolean, skip_redraw?: boolean, origin?: boolean) => void;
-
- /**
- * cut a node (a later call to `paste(obj)` would move the node)
- * @name cut(obj)
- * @param {mixed} obj multiple objects can be passed using an array
- * @trigger cut.jstree
- */
- cut: (obj: any) => void;
-
- /**
- * copy a node (a later call to `paste(obj)` would copy the node)
- * @name copy(obj)
- * @param {mixed} obj multiple objects can be passed using an array
- * @trigger copy.jstre
- */
- copy: (obj: any) => void;
-
- /**
- * get the current buffer (any nodes that are waiting for a paste operation)
- * @name get_buffer()
- * @return {Object} an object consisting of `mode` ("copy_node" or "move_node"), `node` (an array of objects) and `inst` (the instance)
- */
- get_buffer: () => Buffer;
-
- /**
- * check if there is something in the buffer to paste
- * @name can_paste()
- * @return {Boolean}
- */
- can_paste: () => boolean;
-
- /**
- * copy or move the previously cut or copied nodes to a new parent
- * @name paste(obj [, pos])
- * @param {mixed} obj the new parent
- * @param {mixed} pos the position to insert at (besides integer, "first" and "last" are supported), defaults to integer `0`
- * @trigger paste.jstree
- */
- paste: (obj: any, pos: any) => void;
-
- /**
- * clear the buffer of previously copied or cut nodes
- * @name clear_buffer()
- * @trigger clear_buffer.jstree
- */
- clear_buffer: () => void;
-
- /**
- * put a node in edit mode (input field to rename the node)
- * @name edit(obj [, default_text, callback])
- * @param {mixed} obj
- * @param {String} default_text the text to populate the input with (if omitted or set to a non-string value the node's text value is used)
- * @param {Function} callback a function to be called once the text box is blurred, it is called in the instance's scope and receives the node, a status parameter (true if the rename is successful, false otherwise) and a boolean indicating if the user cancelled the edit. You can access the node's title using .text
- */
- edit: (obj: any, default_text?: string, callback?: (node: any, status: boolean, canceled: boolean) => void) => void;
-
- /**
- * changes the theme
- * @name set_theme(theme_name [, theme_url])
- * @param {String} theme_name the name of the new theme to apply
- * @param {mixed} theme_url the location of the CSS file for this theme. Omit or set to `false`
- * if you manually included the file. Set to `true` to autoload from the `core.themes.dir` directory.
- * @trigger set_theme.jstree
- */
- set_theme: (theme_name: string, theme_url?: any) => void;
-
- /**
- * gets the name of the currently applied theme name
- * @name get_theme()
- * @return {String}
- */
- get_theme: () => string;
-
- /**
- * changes the theme variant (if the theme has variants)
- * @name set_theme_variant(variant_name)
- * @param {String|Boolean} variant_name the variant to apply (if `false` is used the current variant is removed)
- */
- set_theme_variant: (variant_name: any) => void;
-
- /**
- * gets the name of the currently applied theme variant
- * @name get_theme()
- * @return {String}
- */
- get_theme_variant: () => string;
-
- /**
- * shows a striped background on the container (if the theme supports it)
- * @name show_stripes()
- */
- show_stripes: () => void;
-
- /**
- * hides the striped background on the container
- * @name hide_stripes()
- */
- hide_stripes: () => void;
-
- /**
- * toggles the striped background on the container
- * @name toggle_stripes()
- */
- toggle_stripes: () => void;
-
- /**
- * shows the connecting dots (if the theme supports it)
- * @name show_dots()
- */
- show_dots: () => void;
-
- /**
- * hides the connecting dots
- * @name hide_dots()
- */
- hide_dots: () => void;
-
- /**
- * toggles the connecting dots
- * @name toggle_dots()
- */
- toggle_dots: () => void;
-
- /**
- * show the node icons
- * @name show_icons()
- */
- show_icons: () => void;
-
- /**
- * hide the node icons
- * @name hide_icons()
- */
- hide_icons: () => void;
-
- /**
- * toggle the node icons
- * @name toggle_icons()
- */
- toggle_icons: () => void;
-
- /**
- * set the node icon for a node
- * @name set_icon(obj, icon)
- * @param {mixed} obj
- * @param {String} icon the new icon - can be a path to an icon or a className,
- * if using an image that is in the current directory use a `./` prefix, otherwise it will be detected as a class
- */
- set_icon: (obj: any, icon: string) => void;
-
- /**
- * get the node icon for a node
- * @name get_icon(obj)
- * @param {mixed} obj
- * @return {String}
- */
- get_icon: (obj: any) => string;
-
- /**
- * hide the icon on an individual node
- * @name hide_icon(obj)
- * @param {mixed} obj
- */
- hide_icon: (obj: any) => void;
-
- /**
- * show the icon on an individual node
- * @name show_icon(obj)
- * @param {mixed} obj
- */
- show_icon: (obj: any) => void;
-
- /**
- * checkbox plugin
- */
-
- /**
- * set the undetermined state where and if necessary. Used internally.
- * @private
- * @name _undetermined()
- * @plugin checkbox
- */
- _undetermined: () => void;
-
- /**
- * show the node checkbox icons
- * @name show_checkboxes()
- * @plugin checkbox
- */
- show_checkboxes: () => void;
-
- /**
- * hide the node checkbox icons
- * @name hide_checkboxes()
- * @plugin checkbox
- */
- hide_checkboxes: () => void;
-
- /**
- * toggle the node icons
- * @name toggle_checkboxes()
- * @plugin checkbox
- */
- toggle_checkboxes: () => void;
-
- /**
- * checks if a node is in an undetermined state
- * @name is_undetermined(obj)
- * @param {mixed} obj
- * @return {Boolean}
- */
- is_undetermined: (obj: any) => boolean;
-
- /**
- * disable a node's checkbox
- * @name disable_checkbox(obj)
- * @param {mixed} obj an array can be used too
- * @trigger disable_checkbox.jstree
- * @plugin checkbox
- */
- disable_checkbox: (obj: any) => boolean;
-
- /**
- * enable a node's checkbox
- * @name disable_checkbox(obj)
- * @param {mixed} obj an array can be used too
- * @trigger enable_checkbox.jstree
- * @plugin checkbox
- */
- enable_checkbox: (obj: any) => boolean;
-
- /**
- * check a node (only if tie_selection in checkbox settings is false, otherwise select_node will be called internally)
- * @name check_node(obj)
- * @param {mixed} obj an array can be used to check multiple nodes
- * @trigger check_node.jstree
- * @plugin checkbox
- */
- check_node: (obj: any, e: any) => any;
-
- /**
- * uncheck a node (only if tie_selection in checkbox settings is false, otherwise deselect_node will be called internally)
- * @name deselect_node(obj)
- * @param {mixed} obj an array can be used to deselect multiple nodes
- * @trigger uncheck_node.jstree
- * @plugin checkbox
- */
- uncheck_node: (obj: any, e: any) => any;
-
- /**
- * checks all nodes in the tree (only if tie_selection in checkbox settings is false, otherwise select_all will be called internally)
- * @name check_all()
- * @trigger check_all.jstree, changed.jstree
- * @plugin checkbox
- */
- check_all: () => any;
-
- /**
- * uncheck all checked nodes (only if tie_selection in checkbox settings is false, otherwise deselect_all will be called internally)
- * @name uncheck_all()
- * @trigger uncheck_all.jstree
- * @plugin checkbox
- */
- uncheck_all: () => any;
-
- /**
- * checks if a node is checked (if tie_selection is on in the settings this function will return the same as is_selected)
- * @name is_checked(obj)
- * @param {mixed} obj
- * @return {Boolean}
- * @plugin checkbox
- */
- is_checked: (obj: any) => boolean;
-
- /**
- * get an array of all checked nodes (if tie_selection is on in the settings this function will return the same as get_selected)
- * @name get_checked([full])
- * @param {mixed} full if set to `true` the returned array will consist of the full node objects, otherwise - only IDs will be returned
- * @return {Array}
- * @plugin checkbox
- */
- get_checked: (full: any) => any[];
-
- /**
- * get an array of all top level checked nodes (ignoring children of checked nodes) (if tie_selection is on in the settings this function will return the same as get_top_selected)
- * @name get_top_checked([full])
- * @param {mixed} full if set to `true` the returned array will consist of the full node objects, otherwise - only IDs will be returned
- * @return {Array}
- * @plugin checkbox
- */
- get_top_checked: (full: any) => any[];
-
- /**
- * get an array of all bottom level checked nodes (ignoring selected parents) (if tie_selection is on in the settings this function will return the same as get_bottom_selected)
- * @name get_bottom_checked([full])
- * @param {mixed} full if set to `true` the returned array will consist of the full node objects, otherwise - only IDs will be returned
- * @return {Array}
- * @plugin checkbox
- */
- get_bottom_checked: (full: any) => any[];
-
- /**
- * context menu plugin
- */
-
- /**
- * prepare and show the context menu for a node
- * @name show_contextmenu(obj [, x, y])
- * @param {mixed} obj the node
- * @param {Number} x the x-coordinate relative to the document to show the menu at
- * @param {Number} y the y-coordinate relative to the document to show the menu at
- * @param {Object} e the event if available that triggered the contextmenu
- * @plugin contextmenu
- * @trigger show_contextmenu.jstree
- */
- show_contextmenu: (obj: any, x?: number, y?: number, e?: any) => void;
-
- /**
- * show the prepared context menu for a node
- * @name _show_contextmenu(obj, x, y, i)
- * @param {mixed} obj the node
- * @param {Number} x the x-coordinate relative to the document to show the menu at
- * @param {Number} y the y-coordinate relative to the document to show the menu at
- * @param {Number} i the object of items to show
- * @plugin contextmenu
- * @trigger show_contextmenu.jstree
- * @private
- */
- _show_contextmenu: (obj: any, x: number, y: number, i: number) => void;
-
- /**
- * search plugin
- */
-
- /**
- * used to search the tree nodes for a given string
- * @name search(str [, skip_async])
- * @param {String} str the search string
- * @param {Boolean} skip_async if set to true server will not be queried even if configured
- * @param {Boolean} show_only_matches if set to true only matching nodes will be shown (keep in mind this can be very slow on large trees or old browsers)
- * @param {mixed} inside an optional node to whose children to limit the search
- * @param {Boolean} append if set to true the results of this search are appended to the previous search
- * @param {Boolean} show_only_matches_children show only matched children
- * @plugin search
- * @trigger search.jstree
- */
- search: (str: string, skip_async?: boolean, show_only_matches?: boolean, inside?: any, append?: boolean, show_only_matches_children?: boolean) => void;
-
- /**
- * used to clear the last search (removes classes and shows all nodes if filtering is on)
- * @name clear_search()
- * @plugin search
- * @trigger clear_search.jstree
- */
- clear_search: () => void;
-
- /**
- * opens nodes that need to be opened to reveal the search results. Used only internally.
- * @private
- * @name _search_open(d)
- * @param {Array} d an array of node IDs
- * @plugin search
- */
- _search_open: (d: string[]) => void;
-
- /**
- * sort plugin
- */
-
- /**
- * used to sort a node's children
- * @private
- * @name sort(obj [, deep])
- * @param {mixed} obj the node
- * @param {Boolean} deep if set to `true` nodes are sorted recursively.
- * @plugin sort
- * @trigger search.jstree
- */
- sort: (obj: any, deep?: boolean) => void;
-
- /**
- * state plugin
- */
-
- /**
- * save the state
- * @name save_state()
- * @plugin state
- */
- save_state: () => void;
-
- /**
- * restore the state from the user's computer
- * @name restore_state()
- * @plugin state
- */
- restore_state: () => void;
-
- /**
- * clear the state on the user's computer
- * @name clear_state()
- * @plugin state
- */
- clear_state: () => void;
-
- /**
- * types plugin
- */
-
- /**
- * used to retrieve the type settings object for a node
- * @name get_rules(obj)
- * @param {mixed} obj the node to find the rules for
- * @return {Object}
- * @plugin types
- */
- get_rules: (obj: any) => any;
-
- /**
- * used to retrieve the type string or settings object for a node
- * @name get_type(obj [, rules])
- * @param {mixed} obj the node to find the rules for
- * @param {Boolean} rules if set to `true` instead of a string the settings object will be returned
- * @return {String|Object}
- * @plugin types
- */
- get_type: (obj: any, rules?: any) => any;
-
- /**
- * used to change a node's type
- * @name set_type(obj, type)
- * @param {mixed} obj the node to change
- * @param {String} type the new type
- * @plugin types
- */
- set_type: (obj: any, type: string) => any;
-}
-
-interface JSTreeGetJsonOptions {
- /**
- * do not return state information
- */
- no_state: boolean;
-
- /**
- * do not return ID
- */
- no_id: boolean;
-
- /**
- * do not include children
- */
- no_children: boolean;
-
- /**
- * do not include node data
- */
- no_data: boolean;
-
- /**
- * do not include LI attributes
- */
- no_li_attr: boolean;
-
- /**
- * do not include A attributes
- */
- no_a_attr: boolean;
-
- /**
- * return flat JSON instead of nested
- */
- flat: boolean;
-}
-
-interface JSTreeBindOptions {
- inst?: any;
- args?: any;
- rslt?: any;
- rlbk?: any;
-}
-
-interface Buffer {
- mode: string;
- node: any[];
- inst: any;
-}
diff --git a/DKBFrontEnd/src/typings/globals/jstree/typings.json b/DKBFrontEnd/src/typings/globals/jstree/typings.json
deleted file mode 100644
index 83064e642..000000000
--- a/DKBFrontEnd/src/typings/globals/jstree/typings.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "resolution": "main",
- "tree": {
- "src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/00dd9a1cf6c5b748d51e6d470ce6117bb383ea6c/jstree/jstree.d.ts",
- "raw": "registry:dt/jstree#0.0.0+20160815165627",
- "typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/00dd9a1cf6c5b748d51e6d470ce6117bb383ea6c/jstree/jstree.d.ts"
- }
-}
diff --git a/DKBFrontEnd/src/typings/index.d.ts b/DKBFrontEnd/src/typings/index.d.ts
deleted file mode 100644
index 224e9fc89..000000000
--- a/DKBFrontEnd/src/typings/index.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-///
diff --git a/DKBFrontEnd/src/typings/local-modules/d3/index.d.ts b/DKBFrontEnd/src/typings/local-modules/d3/index.d.ts
deleted file mode 100644
index 4fd941379..000000000
--- a/DKBFrontEnd/src/typings/local-modules/d3/index.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-declare module 'd3' {
- export type Dispatch = any;
-}
diff --git a/DKBFrontEnd/src/typings/local-modules/detect-browser/index.d.ts b/DKBFrontEnd/src/typings/local-modules/detect-browser/index.d.ts
deleted file mode 100644
index 14d21e7db..000000000
--- a/DKBFrontEnd/src/typings/local-modules/detect-browser/index.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-declare module DetectBrowser {
- const name: string;
- const version: string;
-}
-
-declare module 'detect-browser' {
- export = DetectBrowser;
-}
diff --git a/DKBFrontEnd/src/typings/local-modules/handlebars/index.d.ts b/DKBFrontEnd/src/typings/local-modules/handlebars/index.d.ts
deleted file mode 100644
index ea85fb98f..000000000
--- a/DKBFrontEnd/src/typings/local-modules/handlebars/index.d.ts
+++ /dev/null
@@ -1,290 +0,0 @@
-// Generated by typings
-// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/6c95a70c7498a144915c36660c6698ddaeb431b4/handlebars/handlebars.d.ts
-declare module "handlebars" {
-namespace Handlebars {
- export function registerHelper(name: string, fn: Function, inverse?: boolean): void;
- export function registerHelper(name: Object): void;
- export function registerPartial(name: string, str: any): void;
- export function unregisterHelper(name: string): void;
- export function unregisterPartial(name: string): void;
- export function K(): void;
- export function createFrame(object: any): any;
- export function Exception(message: string): void;
- export function log(level: number, obj: any): void;
- export function parse(input: string): hbs.AST.Program;
- export function compile(input: any, options?: CompileOptions): HandlebarsTemplateDelegate;
- export function precompile(input: any, options?: PrecompileOptions): TemplateSpecification;
- export function template(precompilation: TemplateSpecification): HandlebarsTemplateDelegate;
-
- export function create(): typeof Handlebars;
-
- export var SafeString: typeof hbs.SafeString;
- export var escapeExpression: typeof hbs.Utils.escapeExpression;
- export var Utils: typeof hbs.Utils;
- export var logger: Logger;
- export var templates: HandlebarsTemplates;
- export var helpers: any;
-
- export function registerDecorator(name: string, fn: Function): void;
- export function registerDecorator(obj: {[name: string] : Function}): void;
- export function unregisterDecorator(name: string): void;
-
- export function noConflict(): typeof Handlebars;
-
- export module AST {
- export var helpers: hbs.AST.helpers;
- }
-
- interface ICompiler {
- accept(node: hbs.AST.Node): void;
- Program(program: hbs.AST.Program): void;
- BlockStatement(block: hbs.AST.BlockStatement): void;
- PartialStatement(partial: hbs.AST.PartialStatement): void;
- PartialBlockStatement(partial: hbs.AST.PartialBlockStatement): void;
- DecoratorBlock(decorator: hbs.AST.DecoratorBlock): void;
- Decorator(decorator: hbs.AST.Decorator): void;
- MustacheStatement(mustache: hbs.AST.MustacheStatement): void;
- ContentStatement(content: hbs.AST.ContentStatement): void;
- CommentStatement(comment?: hbs.AST.CommentStatement): void;
- SubExpression(sexpr: hbs.AST.SubExpression): void;
- PathExpression(path: hbs.AST.PathExpression): void;
- StringLiteral(str: hbs.AST.StringLiteral): void;
- NumberLiteral(num: hbs.AST.NumberLiteral): void;
- BooleanLiteral(bool: hbs.AST.BooleanLiteral): void;
- UndefinedLiteral(): void;
- NullLiteral(): void;
- Hash(hash: hbs.AST.Hash): void;
- }
-
- export class Visitor implements ICompiler {
- accept(node: hbs.AST.Node): void;
- acceptKey(node: hbs.AST.Node, name: string): void;
- acceptArray(arr: hbs.AST.Expression[]): void;
- Program(program: hbs.AST.Program): void;
- BlockStatement(block: hbs.AST.BlockStatement): void;
- PartialStatement(partial: hbs.AST.PartialStatement): void;
- PartialBlockStatement(partial: hbs.AST.PartialBlockStatement): void;
- DecoratorBlock(decorator: hbs.AST.DecoratorBlock): void;
- Decorator(decorator: hbs.AST.Decorator): void;
- MustacheStatement(mustache: hbs.AST.MustacheStatement): void;
- ContentStatement(content: hbs.AST.ContentStatement): void;
- CommentStatement(comment?: hbs.AST.CommentStatement): void;
- SubExpression(sexpr: hbs.AST.SubExpression): void;
- PathExpression(path: hbs.AST.PathExpression): void;
- StringLiteral(str: hbs.AST.StringLiteral): void;
- NumberLiteral(num: hbs.AST.NumberLiteral): void;
- BooleanLiteral(bool: hbs.AST.BooleanLiteral): void;
- UndefinedLiteral(): void;
- NullLiteral(): void;
- Hash(hash: hbs.AST.Hash): void;
- }
-
- /**
- * Implement this interface on your MVW/MVVM/MVC views such as Backbone.View
- **/
- interface HandlebarsTemplatable {
- template: HandlebarsTemplateDelegate;
- }
-
- interface HandlebarsTemplateDelegate {
- (context: any, options?: any): string;
- }
-
- interface HandlebarsTemplates {
- [index: string]: HandlebarsTemplateDelegate;
- }
-
- interface TemplateSpecification {
-
- }
-
- interface CompileOptions {
- data?: boolean;
- compat?: boolean;
- knownHelpers?: {
- helperMissing?: boolean;
- blockHelperMissing?: boolean;
- each?: boolean;
- if?: boolean;
- unless?: boolean;
- with?: boolean;
- log?: boolean;
- lookup?: boolean;
- }
- knownHelpersOnly?: boolean;
- noEscape?: boolean;
- strict?: boolean;
- assumeObjects?: boolean;
- preventIndent?: boolean;
- ignoreStandalone?: boolean;
- explicitPartialContext?: boolean;
- }
-
- interface PrecompileOptions extends CompileOptions {
- srcName?: string;
- destName?: string;
- }
-
- namespace hbs {
- class SafeString {
- constructor(str: string);
- static toString(): string;
- }
-
- namespace Utils {
- function escapeExpression(str: string): string;
- function createFrame(obj: Object): Object;
- function isEmpty(obj: any) : boolean;
- function extend(obj: any, ...source: any[]): any;
- function toString(obj: any): string;
- function isArray(obj: any): boolean;
- function isFunction(obj: any): boolean;
- }
- }
-
- interface Logger {
- DEBUG: number;
- INFO: number;
- WARN: number;
- ERROR: number;
- level: number;
-
- methodMap: { [level: number]: string };
-
- log(level: number, obj: string): void;
- }
-
- namespace hbs {
- namespace AST {
- interface Node {
- type: string;
- loc: SourceLocation;
- }
-
- interface SourceLocation {
- source: string;
- start: Position;
- end: Position;
- }
-
- interface Position {
- line: number;
- column: number;
- }
-
- interface Program extends Node {
- body: Statement[];
- blockParams: string[];
- }
-
- interface Statement extends Node {}
-
- interface MustacheStatement extends Statement {
- path: PathExpression | Literal;
- params: Expression[];
- hash: Hash;
- escaped: boolean;
- strip: StripFlags;
- }
-
- interface Decorator extends MustacheStatement { }
-
- interface BlockStatement extends Statement {
- path: PathExpression;
- params: Expression[];
- hash: Hash;
- program: Program;
- inverse: Program;
- openStrip: StripFlags;
- inverseStrip: StripFlags;
- closeStrip: StripFlags;
- }
-
- interface DecoratorBlock extends BlockStatement { }
-
- interface PartialStatement extends Statement {
- name: PathExpression | SubExpression;
- params: Expression[];
- hash: Hash;
- indent: string;
- strip: StripFlags;
- }
-
- interface PartialBlockStatement extends Statement {
- name: PathExpression | SubExpression;
- params: Expression[],
- hash: Hash,
- program: Program,
- openStrip: StripFlags,
- closeStrip: StripFlags
- }
-
- interface ContentStatement extends Statement {
- value: string;
- original: StripFlags;
- }
-
- interface CommentStatement extends Statement {
- value: string;
- strip: StripFlags;
- }
-
- interface Expression extends Node {}
-
- interface SubExpression extends Expression {
- path: PathExpression;
- params: Expression[];
- hash: Hash;
- }
-
- interface PathExpression extends Expression {
- data: boolean;
- depth: number;
- parts: string[];
- original: string;
- }
-
- interface Literal extends Expression {}
- interface StringLiteral extends Literal {
- value: string;
- original: string;
- }
-
- interface BooleanLiteral extends Literal {
- value: boolean;
- original: boolean;
- }
-
- interface NumberLiteral extends Literal {
- value: number;
- original: number;
- }
-
- interface UndefinedLiteral extends Literal {}
-
- interface NullLiteral extends Literal {}
-
- interface Hash extends Node {
- pairs: HashPair[];
- }
-
- interface HashPair extends Node {
- key: string;
- value: Expression;
- }
-
- interface StripFlags {
- open: boolean;
- close: boolean;
- }
-
- interface helpers {
- helperExpression(node: Node): boolean;
- scopeId(path: PathExpression): boolean;
- simpleId(path: PathExpression): boolean;
- }
- }
- }
-}
- export = Handlebars;
-}
diff --git a/DKBFrontEnd/src/typings/local-modules/handlebars/typings.json b/DKBFrontEnd/src/typings/local-modules/handlebars/typings.json
deleted file mode 100644
index afe2b904e..000000000
--- a/DKBFrontEnd/src/typings/local-modules/handlebars/typings.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "resolution": "main",
- "tree": {
- "src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/6c95a70c7498a144915c36660c6698ddaeb431b4/handlebars/handlebars.d.ts",
- "raw": "registry:dt/handlebars#4.0.5+20160804082238",
- "typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/6c95a70c7498a144915c36660c6698ddaeb431b4/handlebars/handlebars.d.ts"
- }
-}
diff --git a/DKBFrontEnd/src/typings/local-modules/intro.js/index.d.ts b/DKBFrontEnd/src/typings/local-modules/intro.js/index.d.ts
deleted file mode 100644
index 564e09981..000000000
--- a/DKBFrontEnd/src/typings/local-modules/intro.js/index.d.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-
-declare module "intro.js" {
- interface IntroJs {
- start(): IntroJs;
- goToStep(step: number): IntroJs;
- nextStep(): IntroJs;
- previousStep(): IntroJs;
- exit(): IntroJs;
- setOption(option: string, value: string|number|boolean): IntroJs;
- setOptions(options: { [option: string]: string|number|boolean }): IntroJs;
- refresh(): IntroJs;
- addHints(): IntroJs;
- onhintclick(providedCallback: () => void): IntroJs;
- onhintsadded(providedCallback: () => void): IntroJs;
- onhintclose(providedCallback: () => void): IntroJs;
- oncomplete(providedCallback: () => void): IntroJs;
- onexit(providedCallback: () => void): IntroJs;
- onchange(providedCallback: () => void): IntroJs;
- onbeforechange(providedCallback: () => void): IntroJs;
- onafterchange(providedCallback: (element: HTMLElement) => void): IntroJs;
- }
-
- export function introJs(targetElm?: HTMLElement): IntroJs;
-}
diff --git a/DKBFrontEnd/src/typings/local-modules/jointjs/index.d.ts b/DKBFrontEnd/src/typings/local-modules/jointjs/index.d.ts
deleted file mode 100644
index 2369447ef..000000000
--- a/DKBFrontEnd/src/typings/local-modules/jointjs/index.d.ts
+++ /dev/null
@@ -1,373 +0,0 @@
-// Type definitions for Joint JS 0.6
-// Project: http://www.jointjs.com/
-// Definitions by: Aidan Reel , David Durman
-// Definitions: https://github.com/borisyankov/DefinitelyTyped
-
-declare module 'jointjs' {
- import * as Backbone from 'backbone';
-
-namespace joint {
-
- namespace dia {
-
- interface IElementSize {
- width: number;
- height: number;
- }
-
- /**
- * The model holding all the cells (elements and links) of the diagram.
- * The collection of all the cells is stored in the property cells.
- */
- class Graph extends Backbone.Model {
- initialize(): void;
- fromJSON(json: any): void;
- clear(): void;
- /**
- * Add a new cell to the graph. If cell is an array, all the cells in the array will be added to the graph.
- */
- addCell(cell: Cell, options?: any): void;
- /**
- * Add new cells to the graph. This is just a syntactic sugar to the addCell method.
- * Calling addCell with an array of cells is an equivalent to calling addCells.
- */
- addCells(cells: Cell[], options?: any): void;
- getConnectedLinks(cell: Cell, options?: any): Link[];
- disconnectLinks(cell: Cell): void;
- removeLinks(cell: Cell[]): void;
- getElements(): Element[];
- getLinks(): Link[];
- /**
- * Reset cells in the graph. Update all the cells in the graph in one bulk.
- * This is a more efficient method of adding cells to the graph if you you want to
- * replace all the cells in one go.
- * @param cells
- * @param options optionally contain additional data that is passed over to
- * the event listeners of the graph reset event
- */
- resetCells(cells: Cell[], options?: any): void;
- hasActiveBatch(name: string): void;
- }
-
- class Cell extends Backbone.Model {
- toJSON(): void;
- remove(options?: any): void;
- toFront(): void;
- toBack(): void;
- getBBox(): void;
- embed(cell: Cell): void;
- unembed(cell: Cell): void;
- getEmbeddedCells(): Cell[];
- clone(opt?: any): Backbone.Model; // @todo: return can either be Cell or Cell[].
- attr(attrs: any): Cell;
- attr(path: string, value: any): Cell;
- }
-
- class Element extends Cell {
- position(x?: number, y?: number): {x: number; y: number};
- translate(tx: number, ty?: number): Element;
- resize(width: number, height: number, opt?: any): Element;
- rotate(angle: number, absolute?: boolean): Element;
- }
-
- class Link extends Cell {
- defaults(): any;
- disconnect(): Link;
- label(idx?: number, value?: LinkLabelAttributes): any; // @todo: returns either a label under idx or Link if both idx and value were passed
- }
-
- export interface LinkLabelAttributes {
- position?: number;
- attrs?: {
- rect?: {
- fill?: string;
- 'stroke'?: string;
- 'stroke-width'?: number;
- };
- text?: {
- fill?: string;
- 'stroke'?: string;
- 'stroke-width'?: number;
- };
- };
- }
-
- export interface LinkAttributes {
- attrs?: {
- '.connection'?: {
- fill?: string;
- stroke?: string;
- 'stroke-width'?: number;
- 'stroke-dasharray'?: string;
- },
- '.marker-source'?: {
- fill?: string;
- stroke?: string;
- 'stroke-width'?: number;
- d?: string;
- },
- '.marker-target'?: {
- fill?: string;
- stroke?: string;
- 'stroke-width'?: number;
- d?: string;
- }
- };
- labels?: LinkLabelAttributes[];
- connector?: {
- name?: string;
- args?: {
- radius?: number;
- };
- };
- router?: {
- name?: string;
- args?: {
- startDirections?: string[];
- endDirections?: string[];
- excludeTypes?: string[];
- };
- };
- z?: number;
- }
-
- interface PaperFitToContentOptions {
- gridWidth?: number;
- gridHeight?: number;
- padding?: number | {top: number; right: number; bottom: number; left: number;}
- allowNewOrigin?: string; // one of ['negative'|'positive'|'any']
- minWidth?: number;
- minHeight?: number;
- maxWidth?: number;
- maxHeight?: number;
- }
- interface PaperScaleToFitOptions {
- padding?: number;
- preserveAspectRatio?: boolean;
- minScale?: number;
- maxScale?: number;
- minScaleX?: number;
- minScaleY?: number;
- maxScaleX?: number;
- maxScaleY?: number;
- scaleGrid?: number;
- fittingBBox?: {x?: number; y?: number; width?: number; height?: number;}
- }
- interface PaperOptions extends Backbone.ViewOptions {
- gridSize?: number;
- elementView?: typeof ElementView;
- linkView?: typeof LinkView;
- width?: number;
- height?: number;
- origin?: { x: number; y: number; };
- async?: boolean;
- preventContextMenu?: boolean;
- guard?: (evt: any, view: joint.dia.CellView) => boolean;
- }
- class Paper extends Backbone.View {
- constructor(options?: PaperOptions);
- options: PaperOptions;
- svg: SVGElement;
- viewport: SVGGElement;
- setDimensions(width: number, height: number): void;
- scale(sx: number, sy?: number, ox?: number, oy?: number): Paper;
- rotate(deg: number, ox?: number, oy?: number): Paper; // @todo not released yet though it's in the source code already
- findView(el: any): CellView;
- findViewByModel(modelOrId: any): CellView;
- findViewsFromPoint(p: { x: number; y: number; }): CellView[];
- findViewsInArea(r: { x: number; y: number; width: number; height: number; }): CellView[];
- fitToContent(opt?: PaperFitToContentOptions): void;
- snapToGrid(p: { x: number; y: number; }): { x: number; y: number; };
- scaleContentToFit(opt?: PaperScaleToFitOptions): void;
- toPNG(callback: (png: string) => void): void;
- toSVG(callback: (svg: string) => void): void;
- openAsSVG(): void;
- print(): void;
- getContentBBox(): g.rect;
- setOrigin(x: number, y: number): void;
- }
-
- class ElementView extends CellView {
- scale(sx: number, sy: number): void;
- resize(): void;
- update(cell?: any, renderingOnlyAttrs?: any): void;
- }
-
- class CellView extends Backbone.View {
- getBBox(): { x: number; y: number; width: number; height: number; };
- highlight(el?: any): void;
- unhighlight(el?: any): void;
- findMagnet(el: any): void;
- getSelector(el: any): void;
- }
-
- class LinkView extends CellView {
- getConnectionLength(): number;
- getPointAtLength(length: number): { x: number; y: number; };
- }
-
- /** Rappid only */
- class CommandManager extends Backbone.Model {
- constructor(options?: CommandManagerOptions);
- initialize(): void;
- undo(): void;
- initBatchCommand(): void;
- storeBatchCommand(): void;
- redo(): void;
- reset(): void;
- }
-
- /** Rappid only */
- interface CommandManagerOptions {
- graph: Graph;
- cmdBeforeAdd?: (cmdName: string, cell: Cell, graph: Graph, options: any) => boolean;
- }
- }
-
- namespace ui {
- /** Rappid only */
- class PaperScroller extends Backbone.View {
- startPanning(evt: MouseEvent): void;
- zoom(size: any, opts: any): void;
- zoomToFit(params: any): void;
- toLocalPoint(x: number, y: number): {x: number; y: number};
- center(): void;
- adjustPaper(): void;
- }
-
- /** Rappid only */
- interface SnaplinesOptions extends Backbone.ViewOptions {
- paper: joint.dia.Paper;
- }
-
- /** Rappid only */
- class Snaplines extends Backbone.View {
- constructor(options: SnaplinesOptions);
- startListening(): void;
- }
-
- /** Rappid only */
- interface SelectionViewOptions extends Backbone.ViewOptions {
- paper: joint.dia.Paper;
- graph: joint.dia.Graph;
- }
-
- /** Rappid only */
- class SelectionView extends Backbone.View {
- constructor(options: SelectionViewOptions);
- startSelecting(evt: MouseEvent): void;
- cancelSelection(): void;
- createSelectionBox(view: joint.dia.CellView): void;
- destroySelectionBox(view: joint.dia.CellView): void;
- }
-
- /** Rappid only */
- class Halo extends Backbone.View {
- constructor(options: HaloOptions);
- options: HaloOptions;
- addHandle(options: { name:string; position: string; icon: string; }): void;
- removeHandle(name: string): void;
- changeHandle(name: string, options: { position: string; icon: string; }): void;
- }
-
- /** Rappid only */
- interface HaloOptions {
- graph: joint.dia.Graph;
- paper: joint.dia.Paper;
- cellView: joint.dia.CellView;
- /**
- * The preferred side for a self-loop link created from Halo ("top"|"bottom"|"left"|"right"), default is "top"
- */
- linkLoopPreferredSide?: string;
- /**
- * The self-loop link width in pixels, default is 40
- */
- linkLoopWidth?: number;
- /**
- * The angle increments the rotate action snaps to, default is 15
- */
- rotateAngleGrid?: number;
- /**
- * A function that returns an HTML string with the content that will be used in the information box below the element.
- * Default is x,y,width,height coordinates and dimensions of the element.
- */
- boxContent?: boolean | ((cellView: joint.dia.CellView, boxDOMElement: HTMLElement) => string);
- /**
- * If set to true, the model position and dimensions will be used as a basis for the Halo tools position.
- * By default, this is set to false which causes the Halo tools position be based on the bounding box of
- * the element view. Sometimes though, your shapes can have certain SVG sub elements that stick out
- * of the view and you don't want these sub elements to affect the Halo tools position.
- * In this case, set the useModelGeometry to true.
- */
- useModelGeometry?: boolean;
- }
- }
-
- namespace shapes {
- module basic {
- class Generic extends joint.dia.Element { }
- class Rect extends Generic { }
- class Text extends Generic { }
- class Circle extends Generic { }
- class Image extends Generic { }
- }
- }
-
- namespace util {
- function uuid(): string;
- function guid(obj: any): string;
- function mixin(objects: any[]): any;
- function supplement(objects: any[]): any;
- function deepMixin(objects: any[]): any;
- function deepSupplement(objects: any, defaultIndicator?: any): any;
- function imageToDataUri(url: string, callback: (error: Error, dataUri: string) => void): void;
- function normalizeEvent(params: any): any;
- }
-
- function V(element: SVGElement): V;
-
- interface V {
- node: SVGAElement;
- attr(name: string): string;
- attr(name: string, value: string): void;
- attr(attrs: {}): void;
- scale(): {sx: number; sy: number;}
- bbox(withoutTransformations?: boolean, target?: Element): g.rect;
- }
-
- export namespace g {
- function point(x: number, y: number): point;
- function point(p: {x: number; y: number;}): point;
- interface point {
- x: number;
- y: number;
- }
-
- function rect(x: number, y: number, w: number, h: number): rect;
- interface rect {
- x: number;
- y: number;
- width: number;
- height: number;
- toString(): string;
- origin(): point;
- corner(): point;
- topRight(): point;
- bottomLeft(): point;
- center(): point;
- intersect(r: rect): boolean;
- /// @return 'left' | 'right' | 'top' | 'bottom'
- sideNearestToPoint(p: point): string;
- containsPoint(p: point): boolean;
- containsRect(r: rect): boolean;
- pointNearestToPoint(p: point): point;
- intersectionWithLineFromCenterToPoint(p: point, angle: number): point;
- moveAndExpand(r: rect): rect;
- round(decimals: number): rect;
- normalize(): rect;
- bbox(angle: number): rect;
- }
- }
-}
- export = joint;
-}
diff --git a/DKBFrontEnd/src/typings/local-modules/n3/index.d.ts b/DKBFrontEnd/src/typings/local-modules/n3/index.d.ts
deleted file mode 100644
index afaaacdb0..000000000
--- a/DKBFrontEnd/src/typings/local-modules/n3/index.d.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-declare module "n3" {
- class N3Parser {
- parse(
- string: string,
- callback: (error: any, triple: Triple | undefined, prefix: any) => any
- ): void;
- }
-
- function Parser(): N3Parser;
-
- interface Triple {
- subject: string;
- predicate: string;
- object: string;
- }
-}
diff --git a/DKBFrontEnd/src/typings/local-modules/webcola/index.d.ts b/DKBFrontEnd/src/typings/local-modules/webcola/index.d.ts
deleted file mode 100644
index 9b5a12dab..000000000
--- a/DKBFrontEnd/src/typings/local-modules/webcola/index.d.ts
+++ /dev/null
@@ -1,978 +0,0 @@
-declare module 'webcola' {
- import * as D3 from 'd3';
- function applyPacking(graphs: Array, w: any, h: any, node_size: any, desired_ratio?: number): void;
- function separateGraphs(nodes: any, links: any): any[];
- export module vpsc {
-
- class PositionStats {
- scale: number;
- AB: number;
- AD: number;
- A2: number;
- constructor(scale: number);
- addVariable(v: Variable): void;
- getPosn(): number;
- }
- class Constraint {
- left: Variable;
- right: Variable;
- gap: number;
- equality: boolean;
- lm: number;
- active: boolean;
- unsatisfiable: boolean;
- constructor(left: Variable, right: Variable, gap: number, equality?: boolean);
- slack(): number;
- }
- class Variable {
- desiredPosition: number;
- weight: number;
- scale: number;
- offset: number;
- block: Block;
- cIn: Constraint[];
- cOut: Constraint[];
- constructor(desiredPosition: number, weight?: number, scale?: number);
- dfdv(): number;
- position(): number;
- visitNeighbours(prev: Variable, f: (c: Constraint, next: Variable) => void): void;
- }
- class Block {
- vars: Variable[];
- posn: number;
- ps: PositionStats;
- blockInd: number;
- constructor(v: Variable);
- private addVariable(v);
- updateWeightedPosition(): void;
- private compute_lm(v, u, postAction);
- private populateSplitBlock(v, prev);
- traverse(visit: (c: Constraint) => any, acc: any[], v?: Variable, prev?: Variable): void;
- findMinLM(): Constraint;
- private findMinLMBetween(lv, rv);
- private findPath(v, prev, to, visit);
- isActiveDirectedPathBetween(u: Variable, v: Variable): boolean;
- static split(c: Constraint): Block[];
- private static createSplitBlock(startVar);
- splitBetween(vl: Variable, vr: Variable): {
- constraint: Constraint;
- lb: Block;
- rb: Block;
- };
- mergeAcross(b: Block, c: Constraint, dist: number): void;
- cost(): number;
- }
- class Blocks {
- vs: Variable[];
- private list;
- constructor(vs: Variable[]);
- cost(): number;
- insert(b: Block): void;
- remove(b: Block): void;
- merge(c: Constraint): void;
- forEach(f: (b: Block, i: number) => void): void;
- updateBlockPositions(): void;
- split(inactive: Constraint[]): void;
- }
- class Solver {
- vs: Variable[];
- cs: Constraint[];
- bs: Blocks;
- inactive: Constraint[];
- static LAGRANGIAN_TOLERANCE: number;
- static ZERO_UPPERBOUND: number;
- constructor(vs: Variable[], cs: Constraint[]);
- cost(): number;
- setStartingPositions(ps: number[]): void;
- setDesiredPositions(ps: number[]): void;
- private mostViolated();
- satisfy(): void;
- solve(): number;
- }
- }
- export module vpsc {
-
- interface Leaf {
- bounds: Rectangle;
- variable: Variable;
- }
- interface Group {
- bounds: Rectangle;
- padding: number;
- stiffness: number;
- leaves: Leaf[];
- groups: Group[];
- minVar: Variable;
- maxVar: Variable;
- }
- function computeGroupBounds(g: Group): Rectangle;
- class Rectangle {
- x: number;
- X: number;
- y: number;
- Y: number;
- constructor(x: number, X: number, y: number, Y: number);
- static empty(): Rectangle;
- cx(): number;
- cy(): number;
- overlapX(r: Rectangle): number;
- overlapY(r: Rectangle): number;
- setXCentre(cx: number): void;
- setYCentre(cy: number): void;
- width(): number;
- height(): number;
- union(r: Rectangle): Rectangle;
- /**
- * return any intersection points between the given line and the sides of this rectangle
- * @method lineIntersection
- * @param x1 number first x coord of line
- * @param y1 number first y coord of line
- * @param x2 number second x coord of line
- * @param y2 number second y coord of line
- * @return any intersection points found
- */
- lineIntersections(x1: number, y1: number, x2: number, y2: number): Array<{
- x: number;
- y: number;
- }>;
- /**
- * return any intersection points between a line extending from the centre of this rectangle to the given point,
- * and the sides of this rectangle
- * @method lineIntersection
- * @param x2 number second x coord of line
- * @param y2 number second y coord of line
- * @return any intersection points found
- */
- rayIntersection(x2: number, y2: number): {
- x: number;
- y: number;
- };
- vertices(): {
- x: number;
- y: number;
- }[];
- static lineIntersection(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, x4: number, y4: number): {
- x: number;
- y: number;
- };
- inflate(pad: number): Rectangle;
- }
- function makeEdgeBetween(link: any, source: Rectangle, target: Rectangle, ah: number): void;
- function makeEdgeTo(s: {
- x: number;
- y: number;
- }, target: Rectangle, ah: number): {
- x: number;
- y: number;
- };
- function generateXConstraints(rs: Rectangle[], vars: Variable[]): Constraint[];
- function generateYConstraints(rs: Rectangle[], vars: Variable[]): Constraint[];
- function generateXGroupConstraints(root: Group): Constraint[];
- function generateYGroupConstraints(root: Group): Constraint[];
- function removeOverlaps(rs: Rectangle[]): void;
- interface GraphNode extends Leaf {
- fixed: boolean;
- width: number;
- height: number;
- x: number;
- y: number;
- px: number;
- py: number;
- }
- class IndexedVariable extends Variable {
- index: number;
- constructor(index: number, w: number);
- }
- class Projection {
- private nodes;
- private groups;
- private rootGroup;
- private avoidOverlaps;
- private xConstraints;
- private yConstraints;
- private variables;
- constructor(nodes: GraphNode[], groups: Group[], rootGroup?: Group, constraints?: any[], avoidOverlaps?: boolean);
- private createSeparation(c);
- private makeFeasible(c);
- private createAlignment(c);
- private createConstraints(constraints);
- private setupVariablesAndBounds(x0, y0, desired, getDesired);
- xProject(x0: number[], y0: number[], x: number[]): void;
- yProject(x0: number[], y0: number[], y: number[]): void;
- projectFunctions(): {
- (x0: number[], y0: number[], r: number[]): void;
- }[];
- private project(x0, y0, start, desired, getDesired, cs, generateConstraints, updateNodeBounds, updateGroupBounds);
- private solve(vs, cs, starting, desired);
- }
- }
- export module geom {
-
- class Point {
- x: number;
- y: number;
- }
- class LineSegment {
- x1: number;
- y1: number;
- x2: number;
- y2: number;
- constructor(x1: number, y1: number, x2: number, y2: number);
- }
- class PolyPoint extends Point {
- polyIndex: number;
- }
- /** tests if a point is Left|On|Right of an infinite line.
- * @param points P0, P1, and P2
- * @return >0 for P2 left of the line through P0 and P1
- * =0 for P2 on the line
- * <0 for P2 right of the line
- */
- function isLeft(P0: Point, P1: Point, P2: Point): number;
- /**
- * returns the convex hull of a set of points using Andrew's monotone chain algorithm
- * see: http://geomalgorithms.com/a10-_hull-1.html#Monotone%20Chain
- * @param S array of points
- * @return the convex hull as an array of points
- */
- function ConvexHull(S: Point[]): Point[];
- function clockwiseRadialSweep(p: Point, P: Point[], f: (point: Point) => void): void;
- function tangent_PolyPolyC(V: Point[], W: Point[], t1: (a: Point, b: Point[]) => number, t2: (a: Point, b: Point[]) => number, cmp1: (a: Point, b: Point, c: Point) => boolean, cmp2: (a: Point, b: Point, c: Point) => boolean): {
- t1: number;
- t2: number;
- };
- function LRtangent_PolyPolyC(V: Point[], W: Point[]): {
- t1: number;
- t2: number;
- };
- function RLtangent_PolyPolyC(V: Point[], W: Point[]): {
- t1: number;
- t2: number;
- };
- function LLtangent_PolyPolyC(V: Point[], W: Point[]): {
- t1: number;
- t2: number;
- };
- function RRtangent_PolyPolyC(V: Point[], W: Point[]): {
- t1: number;
- t2: number;
- };
- class BiTangent {
- t1: number;
- t2: number;
- constructor(t1: number, t2: number);
- }
- class BiTangents {
- rl: BiTangent;
- lr: BiTangent;
- ll: BiTangent;
- rr: BiTangent;
- }
- class TVGPoint extends Point {
- vv: VisibilityVertex;
- }
- class VisibilityVertex {
- id: number;
- polyid: number;
- polyvertid: number;
- p: TVGPoint;
- constructor(id: number, polyid: number, polyvertid: number, p: TVGPoint);
- }
- class VisibilityEdge {
- source: VisibilityVertex;
- target: VisibilityVertex;
- constructor(source: VisibilityVertex, target: VisibilityVertex);
- length(): number;
- }
- class TangentVisibilityGraph {
- P: TVGPoint[][];
- V: VisibilityVertex[];
- E: VisibilityEdge[];
- constructor(P: TVGPoint[][], g0?: {
- V: VisibilityVertex[];
- E: VisibilityEdge[];
- });
- addEdgeIfVisible(u: TVGPoint, v: TVGPoint, i1: number, i2: number): void;
- addPoint(p: TVGPoint, i1: number): VisibilityVertex;
- private intersectsPolys(l, i1, i2);
- }
- function tangents(V: Point[], W: Point[]): BiTangents;
- function polysOverlap(p: Point[], q: Point[]): boolean;
- }
- /**
- * @module cola
- */
-
- /**
- * Descent respects a collection of locks over nodes that should not move
- * @class Locks
- */
- class Locks {
- locks: any;
- /**
- * add a lock on the node at index id
- * @method add
- * @param id index of node to be locked
- * @param x required position for node
- */
- add(id: number, x: number[]): void;
- /**
- * @method clear clear all locks
- */
- clear(): void;
- /**
- * @isEmpty
- * @returns false if no locks exist
- */
- isEmpty(): boolean;
- /**
- * perform an operation on each lock
- * @apply
- */
- apply(f: (id: number, x: number[]) => void): void;
- }
- /**
- * Uses a gradient descent approach to reduce a stress or p-stress goal function over a graph with specified ideal edge lengths or a square matrix of dissimilarities.
- * The standard stress function over a graph nodes with position vectors x,y,z is (mathematica input):
- * stress[x_,y_,z_,D_,w_]:=Sum[w[[i,j]] (length[x[[i]],y[[i]],z[[i]],x[[j]],y[[j]],z[[j]]]-d[[i,j]])^2,{i,Length[x]-1},{j,i+1,Length[x]}]
- * where: D is a square matrix of ideal separations between nodes, w is matrix of weights for those separations
- * length[x1_, y1_, z1_, x2_, y2_, z2_] = Sqrt[(x1 - x2)^2 + (y1 - y2)^2 + (z1 - z2)^2]
- * below, we use wij = 1/(Dij^2)
- *
- * @class Descent
- */
- class Descent {
- D: number[][];
- G: number[][];
- threshold: number;
- /** Hessian Matrix
- * @property H {number[][][]}
- */
- H: number[][][];
- /** gradient vector
- * @property G {number[][]}
- */
- g: number[][];
- /** positions vector
- * @property x {number[][]}
- */
- x: number[][];
- /**
- * @property k {number} dimensionality
- */
- k: number;
- /**
- * number of data-points / nodes / size of vectors/matrices
- * @property n {number}
- */
- n: number;
- locks: Locks;
- private static zeroDistance;
- private minD;
- private Hd;
- private a;
- private b;
- private c;
- private d;
- private e;
- private ia;
- private ib;
- private xtmp;
- numGridSnapNodes: number;
- snapGridSize: number;
- snapStrength: number;
- scaleSnapByMaxH: boolean;
- private random;
- project: {
- (x0: number[], y0: number[], r: number[]): void;
- }[];
- /**
- * @method constructor
- * @param x {number[][]} initial coordinates for nodes
- * @param D {number[][]} matrix of desired distances between pairs of nodes
- * @param G {number[][]} [default=null] if specified, G is a matrix of weights for goal terms between pairs of nodes.
- * If G[i][j] > 1 and the separation between nodes i and j is greater than their ideal distance, then there is no contribution for this pair to the goal
- * If G[i][j] <= 1 then it is used as a weighting on the contribution of the variance between ideal and actual separation between i and j to the goal function
- */
- constructor(x: number[][], D: number[][], G?: number[][]);
- static createSquareMatrix(n: number, f: (i: number, j: number) => number): number[][];
- private offsetDir();
- computeDerivatives(x: number[][]): void;
- private static dotProd(a, b);
- private static rightMultiply(m, v, r);
- computeStepSize(d: number[][]): number;
- reduceStress(): number;
- private static copy(a, b);
- private stepAndProject(x0, r, d, stepSize);
- private static mApply(m, n, f);
- private matrixApply(f);
- private computeNextPosition(x0, r);
- run(iterations: number): number;
- rungeKutta(): number;
- private static mid(a, b, m);
- takeDescentStep(x: number[], d: number[], stepSize: number): void;
- computeStress(): number;
- }
- class PseudoRandom {
- seed: number;
- private a;
- private c;
- private m;
- private range;
- constructor(seed?: number);
- getNext(): number;
- getNextBetween(min: number, max: number): number;
- }
- export module powergraph {
-
- interface LinkAccessor {
- getSourceIndex(l: Link): number;
- getTargetIndex(l: Link): number;
- getType(l: Link): number;
- }
- class PowerEdge {
- source: any;
- target: any;
- type: number;
- constructor(source: any, target: any, type: number);
- }
- class Configuration {
- private linkAccessor;
- modules: Module[];
- roots: ModuleSet[];
- R: number;
- constructor(n: number, edges: Link[], linkAccessor: LinkAccessor, rootGroup?: any[]);
- private initModulesFromGroup(group);
- merge(a: Module, b: Module, k?: number): Module;
- private rootMerges(k?);
- greedyMerge(): boolean;
- private nEdges(a, b);
- getGroupHierarchy(retargetedEdges: PowerEdge[]): any[];
- allEdges(): PowerEdge[];
- static getEdges(modules: ModuleSet, es: PowerEdge[]): void;
- }
- class Module {
- id: number;
- outgoing: LinkSets;
- incoming: LinkSets;
- children: ModuleSet;
- definition: any;
- gid: number;
- constructor(id: number, outgoing?: LinkSets, incoming?: LinkSets, children?: ModuleSet, definition?: any);
- getEdges(es: PowerEdge[]): void;
- isLeaf(): boolean;
- isIsland(): boolean;
- isPredefined(): boolean;
- }
- class ModuleSet {
- table: any;
- count(): number;
- intersection(other: ModuleSet): ModuleSet;
- intersectionCount(other: ModuleSet): number;
- contains(id: number): boolean;
- add(m: Module): void;
- remove(m: Module): void;
- forAll(f: (m: Module) => void): void;
- modules(): Module[];
- }
- class LinkSets {
- sets: any;
- n: number;
- count(): number;
- contains(id: number): boolean;
- add(linktype: number, m: Module): void;
- remove(linktype: number, m: Module): void;
- forAll(f: (ms: ModuleSet, linktype: number) => void): void;
- forAllModules(f: (m: Module) => void): void;
- intersection(other: LinkSets): LinkSets;
- }
- function getGroups(nodes: any[], links: Link[], la: LinkAccessor, rootGroup?: any[]): {
- groups: any[];
- powerEdges: PowerEdge[];
- };
- }
- /**
- * @module cola
- */
-
- interface LinkAccessor {
- getSourceIndex(l: Link): number;
- getTargetIndex(l: Link): number;
- }
- interface LinkLengthAccessor extends LinkAccessor {
- setLength(l: Link, value: number): void;
- }
- /** modify the specified link lengths based on the symmetric difference of their neighbours
- * @class symmetricDiffLinkLengths
- */
- function symmetricDiffLinkLengths(links: Link[], la: LinkLengthAccessor, w?: number): void;
- /** modify the specified links lengths based on the jaccard difference between their neighbours
- * @class jaccardLinkLengths
- */
- function jaccardLinkLengths(links: Link[], la: LinkLengthAccessor, w?: number): void;
- interface IConstraint {
- left: number;
- right: number;
- gap: number;
- }
- interface DirectedEdgeConstraints {
- axis: string;
- gap: number;
- }
- interface LinkSepAccessor extends LinkAccessor {
- getMinSeparation(l: Link): number;
- }
- /** generate separation constraints for all edges unless both their source and sink are in the same strongly connected component
- * @class generateDirectedEdgeConstraints
- */
- function generateDirectedEdgeConstraints(n: number, links: Link[], axis: string, la: LinkSepAccessor): IConstraint[];
- export class PairingHeap {
- elem: T;
- private subheaps;
- constructor(elem: T);
- toString(selector: any): string;
- forEach(f: any): void;
- count(): number;
- min(): T;
- empty(): boolean;
- contains(h: PairingHeap): boolean;
- isHeap(lessThan: (a: T, b: T) => boolean): boolean;
- insert(obj: T, lessThan: any): PairingHeap;
- merge(heap2: PairingHeap, lessThan: any): PairingHeap;
- removeMin(lessThan: (a: T, b: T) => boolean): PairingHeap |