@dso-toolkit/core 31.1.0 → 31.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/collection/components/tree-view/tree-view.interfaces.js +1 -0
- package/dist/collection/components/tree-view/tree-view.js +4 -4
- package/dist/types/components/tree-view/tree-view.d.ts +1 -1
- package/dist/types/components/tree-view/tree-view.interfaces.d.ts +24 -0
- package/dist/types/components.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -163,7 +163,7 @@ export class TreeView {
|
|
|
163
163
|
"references": {
|
|
164
164
|
"TreeViewItem": {
|
|
165
165
|
"location": "import",
|
|
166
|
-
"path": "
|
|
166
|
+
"path": "./tree-view.interfaces"
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
},
|
|
@@ -191,7 +191,7 @@ export class TreeView {
|
|
|
191
191
|
"references": {
|
|
192
192
|
"TreeViewItem": {
|
|
193
193
|
"location": "import",
|
|
194
|
-
"path": "
|
|
194
|
+
"path": "./tree-view.interfaces"
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
}
|
|
@@ -211,7 +211,7 @@ export class TreeView {
|
|
|
211
211
|
"references": {
|
|
212
212
|
"TreeViewItem": {
|
|
213
213
|
"location": "import",
|
|
214
|
-
"path": "
|
|
214
|
+
"path": "./tree-view.interfaces"
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -231,7 +231,7 @@ export class TreeView {
|
|
|
231
231
|
"references": {
|
|
232
232
|
"TreeViewItem": {
|
|
233
233
|
"location": "import",
|
|
234
|
-
"path": "
|
|
234
|
+
"path": "./tree-view.interfaces"
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentInterface, Event, EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { TreeViewItem } from '
|
|
2
|
+
import { TreeViewItem } from './tree-view.interfaces';
|
|
3
3
|
export declare class TreeView implements ComponentInterface {
|
|
4
4
|
/**
|
|
5
5
|
* The collection of TreeViewItems
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface TreeViewItem<T> {
|
|
2
|
+
/** The reference of type T */
|
|
3
|
+
reference: T;
|
|
4
|
+
/** The label of the item */
|
|
5
|
+
label: string;
|
|
6
|
+
/** The optional href of the item (creates a link) */
|
|
7
|
+
href?: string;
|
|
8
|
+
/** Indicates whether the item has children */
|
|
9
|
+
hasItems: boolean;
|
|
10
|
+
/** The array of child items */
|
|
11
|
+
items?: TreeViewItem<T>[];
|
|
12
|
+
/** Indicates whether the node is open and child items are shown */
|
|
13
|
+
open?: boolean;
|
|
14
|
+
/** Indicates the node is loading child items */
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
/** An optional array of icons */
|
|
17
|
+
icons?: TreeViewItemIcon[];
|
|
18
|
+
}
|
|
19
|
+
export interface TreeViewItemIcon {
|
|
20
|
+
/** The icon type */
|
|
21
|
+
icon: string;
|
|
22
|
+
/** The label for the icon */
|
|
23
|
+
label: string;
|
|
24
|
+
}
|
|
@@ -12,7 +12,7 @@ import { BaseLayer } from "./components/map-base-layers/map-base-layers.interfac
|
|
|
12
12
|
import { Overlay } from "./components/map-overlays/map-overlays.interfaces";
|
|
13
13
|
import { ContentAnchor } from "./components/ozon-content/ozon-content.interfaces";
|
|
14
14
|
import { SelectableChangeEvent } from "./components/selectable/selectable";
|
|
15
|
-
import { TreeViewItem } from "
|
|
15
|
+
import { TreeViewItem } from "./components/tree-view/tree-view.interfaces";
|
|
16
16
|
export namespace Components {
|
|
17
17
|
interface DsoAlert {
|
|
18
18
|
/**
|