@itwin/components-react 5.27.1 → 5.28.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/CHANGELOG.md +22 -0
- package/lib/cjs/components-react/common/HighlightedText.scss +8 -0
- package/lib/components-react/UiComponents.json +0 -1
- package/lib/components-react/abstract-types.d.ts +8 -0
- package/lib/components-react/abstract-types.d.ts.map +1 -0
- package/lib/components-react/abstract-types.js +6 -0
- package/lib/components-react/abstract-types.js.map +1 -0
- package/lib/components-react/common/HighlightedText.d.ts +6 -0
- package/lib/components-react/common/HighlightedText.d.ts.map +1 -1
- package/lib/components-react/common/HighlightedText.js +7 -4
- package/lib/components-react/common/HighlightedText.js.map +1 -1
- package/lib/components-react/common/HighlightedText.scss +8 -0
- package/lib/components-react/common/selection/SelectionHandler.d.ts +3 -0
- package/lib/components-react/common/selection/SelectionHandler.d.ts.map +1 -1
- package/lib/components-react/common/selection/SelectionHandler.js.map +1 -1
- package/lib/components-react/common/selection/SelectionModes.d.ts +3 -0
- package/lib/components-react/common/selection/SelectionModes.d.ts.map +1 -1
- package/lib/components-react/common/selection/SelectionModes.js +4 -0
- package/lib/components-react/common/selection/SelectionModes.js.map +1 -1
- package/lib/components-react/editors/CustomNumberEditor.d.ts +1 -0
- package/lib/components-react/editors/CustomNumberEditor.d.ts.map +1 -1
- package/lib/components-react/editors/CustomNumberEditor.js +9 -2
- package/lib/components-react/editors/CustomNumberEditor.js.map +1 -1
- package/lib/components-react/editors/NumericInputEditor.d.ts +1 -0
- package/lib/components-react/editors/NumericInputEditor.d.ts.map +1 -1
- package/lib/components-react/editors/NumericInputEditor.js +7 -0
- package/lib/components-react/editors/NumericInputEditor.js.map +1 -1
- package/lib/components-react/editors/TextEditor.d.ts +3 -0
- package/lib/components-react/editors/TextEditor.d.ts.map +1 -1
- package/lib/components-react/editors/TextEditor.js +21 -3
- package/lib/components-react/editors/TextEditor.js.map +1 -1
- package/lib/components-react/editors/TextareaEditor.d.ts +1 -0
- package/lib/components-react/editors/TextareaEditor.d.ts.map +1 -1
- package/lib/components-react/editors/TextareaEditor.js +7 -0
- package/lib/components-react/editors/TextareaEditor.js.map +1 -1
- package/lib/components-react/new-editors/interop/old-editors/CustomNumber.d.ts.map +1 -1
- package/lib/components-react/new-editors/interop/old-editors/CustomNumber.js +3 -0
- package/lib/components-react/new-editors/interop/old-editors/CustomNumber.js.map +1 -1
- package/lib/components-react/new-editors/interop/old-editors/NumericInput.js +3 -0
- package/lib/components-react/new-editors/interop/old-editors/NumericInput.js.map +1 -1
- package/lib/components-react/properties/renderers/value/MergedPropertyValueRenderer.d.ts +1 -1
- package/lib/components-react/properties/renderers/value/MergedPropertyValueRenderer.d.ts.map +1 -1
- package/lib/components-react/properties/renderers/value/MergedPropertyValueRenderer.js +4 -7
- package/lib/components-react/properties/renderers/value/MergedPropertyValueRenderer.js.map +1 -1
- package/lib/components-react/tree/HighlightingEngine.d.ts +5 -0
- package/lib/components-react/tree/HighlightingEngine.d.ts.map +1 -1
- package/lib/components-react/tree/HighlightingEngine.js +3 -0
- package/lib/components-react/tree/HighlightingEngine.js.map +1 -1
- package/lib/components-react/tree/ImageLoader.d.ts +2 -0
- package/lib/components-react/tree/ImageLoader.d.ts.map +1 -1
- package/lib/components-react/tree/ImageLoader.js +1 -0
- package/lib/components-react/tree/ImageLoader.js.map +1 -1
- package/lib/components-react/tree/SimpleTreeDataProvider.d.ts +2 -0
- package/lib/components-react/tree/SimpleTreeDataProvider.d.ts.map +1 -1
- package/lib/components-react/tree/SimpleTreeDataProvider.js +1 -0
- package/lib/components-react/tree/SimpleTreeDataProvider.js.map +1 -1
- package/lib/components-react/tree/TreeDataProvider.d.ts +14 -0
- package/lib/components-react/tree/TreeDataProvider.d.ts.map +1 -1
- package/lib/components-react/tree/TreeDataProvider.js +5 -0
- package/lib/components-react/tree/TreeDataProvider.js.map +1 -1
- package/lib/components-react/tree/controlled/Observable.d.ts +9 -0
- package/lib/components-react/tree/controlled/Observable.d.ts.map +1 -1
- package/lib/components-react/tree/controlled/Observable.js +2 -0
- package/lib/components-react/tree/controlled/Observable.js.map +1 -1
- package/lib/components-react/tree/controlled/TreeActions.d.ts +1 -0
- package/lib/components-react/tree/controlled/TreeActions.d.ts.map +1 -1
- package/lib/components-react/tree/controlled/TreeActions.js.map +1 -1
- package/lib/components-react/tree/controlled/TreeEventDispatcher.d.ts.map +1 -1
- package/lib/components-react/tree/controlled/TreeEventDispatcher.js.map +1 -1
- package/lib/components-react/tree/controlled/TreeEventHandler.d.ts +3 -0
- package/lib/components-react/tree/controlled/TreeEventHandler.d.ts.map +1 -1
- package/lib/components-react/tree/controlled/TreeEventHandler.js +2 -0
- package/lib/components-react/tree/controlled/TreeEventHandler.js.map +1 -1
- package/lib/components-react/tree/controlled/TreeEvents.d.ts +7 -0
- package/lib/components-react/tree/controlled/TreeEvents.d.ts.map +1 -1
- package/lib/components-react/tree/controlled/TreeEvents.js.map +1 -1
- package/lib/components-react/tree/controlled/TreeHooks.d.ts +5 -0
- package/lib/components-react/tree/controlled/TreeHooks.d.ts.map +1 -1
- package/lib/components-react/tree/controlled/TreeHooks.js +6 -2
- package/lib/components-react/tree/controlled/TreeHooks.js.map +1 -1
- package/lib/components-react/tree/controlled/TreeModel.d.ts +18 -0
- package/lib/components-react/tree/controlled/TreeModel.d.ts.map +1 -1
- package/lib/components-react/tree/controlled/TreeModel.js +7 -0
- package/lib/components-react/tree/controlled/TreeModel.js.map +1 -1
- package/lib/components-react/tree/controlled/TreeModelSource.d.ts +2 -0
- package/lib/components-react/tree/controlled/TreeModelSource.d.ts.map +1 -1
- package/lib/components-react/tree/controlled/TreeModelSource.js +1 -0
- package/lib/components-react/tree/controlled/TreeModelSource.js.map +1 -1
- package/lib/components-react/tree/controlled/TreeNodeLoader.d.ts +9 -0
- package/lib/components-react/tree/controlled/TreeNodeLoader.d.ts.map +1 -1
- package/lib/components-react/tree/controlled/TreeNodeLoader.js +4 -1
- package/lib/components-react/tree/controlled/TreeNodeLoader.js.map +1 -1
- package/lib/components-react/tree/controlled/component/ControlledTree.d.ts +3 -0
- package/lib/components-react/tree/controlled/component/ControlledTree.d.ts.map +1 -1
- package/lib/components-react/tree/controlled/component/ControlledTree.js +4 -3
- package/lib/components-react/tree/controlled/component/ControlledTree.js.map +1 -1
- package/lib/components-react/tree/controlled/component/NodeContent.d.ts +2 -1
- package/lib/components-react/tree/controlled/component/NodeContent.d.ts.map +1 -1
- package/lib/components-react/tree/controlled/component/NodeContent.js +3 -4
- package/lib/components-react/tree/controlled/component/NodeContent.js.map +1 -1
- package/lib/components-react/tree/controlled/component/TreeNodeEditor.d.ts +3 -0
- package/lib/components-react/tree/controlled/component/TreeNodeEditor.d.ts.map +1 -1
- package/lib/components-react/tree/controlled/component/TreeNodeEditor.js +2 -0
- package/lib/components-react/tree/controlled/component/TreeNodeEditor.js.map +1 -1
- package/lib/components-react/tree/controlled/component/TreeNodeRenderer.d.ts +3 -0
- package/lib/components-react/tree/controlled/component/TreeNodeRenderer.d.ts.map +1 -1
- package/lib/components-react/tree/controlled/component/TreeNodeRenderer.js +5 -7
- package/lib/components-react/tree/controlled/component/TreeNodeRenderer.js.map +1 -1
- package/lib/components-react/tree/controlled/component/TreeRenderer.d.ts +4 -0
- package/lib/components-react/tree/controlled/component/TreeRenderer.d.ts.map +1 -1
- package/lib/components-react/tree/controlled/component/TreeRenderer.js +3 -6
- package/lib/components-react/tree/controlled/component/TreeRenderer.js.map +1 -1
- package/lib/components-react/tree/controlled/internal/SparseTree.d.ts +1 -0
- package/lib/components-react/tree/controlled/internal/SparseTree.d.ts.map +1 -1
- package/lib/components-react/tree/controlled/internal/SparseTree.js +2 -0
- package/lib/components-react/tree/controlled/internal/SparseTree.js.map +1 -1
- package/lib/components-react/tree/controlled/internal/TreeModelMutator.d.ts.map +1 -1
- package/lib/components-react/tree/controlled/internal/TreeModelMutator.js +1 -0
- package/lib/components-react/tree/controlled/internal/TreeModelMutator.js.map +1 -1
- package/lib/components-react/tree/controlled/internal/TreeSelectionManager.d.ts.map +1 -1
- package/lib/components-react/tree/controlled/internal/TreeSelectionManager.js.map +1 -1
- package/lib/components-react.d.ts +2 -0
- package/lib/components-react.d.ts.map +1 -1
- package/lib/components-react.js +1 -0
- package/lib/components-react.js.map +1 -1
- package/lib/esm/components-react/common/HighlightedText.scss +8 -0
- package/lib/public/locales/en/UiComponents.json +0 -1
- package/package.json +41 -38
|
@@ -7,6 +7,7 @@ import * as React from "react";
|
|
|
7
7
|
* Properties for identifying an active highlight on a node in a tree.
|
|
8
8
|
* @see [[HighlightableTreeProps.activeMatch]]
|
|
9
9
|
* @public
|
|
10
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
10
11
|
*/
|
|
11
12
|
export interface ActiveMatchInfo {
|
|
12
13
|
nodeId: string;
|
|
@@ -16,6 +17,7 @@ export interface ActiveMatchInfo {
|
|
|
16
17
|
* Properties for highlighting nodes in a tree.
|
|
17
18
|
* @see [[ControlledTreeProps.nodeHighlightingProps]]
|
|
18
19
|
* @public
|
|
20
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
19
21
|
*/
|
|
20
22
|
export interface HighlightableTreeProps {
|
|
21
23
|
searchText: string;
|
|
@@ -24,6 +26,7 @@ export interface HighlightableTreeProps {
|
|
|
24
26
|
/**
|
|
25
27
|
* Properties for a highlightable [[TreeNode]]
|
|
26
28
|
* @public
|
|
29
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
27
30
|
*/
|
|
28
31
|
export interface HighlightableTreeNodeProps {
|
|
29
32
|
searchText: string;
|
|
@@ -32,10 +35,12 @@ export interface HighlightableTreeNodeProps {
|
|
|
32
35
|
/**
|
|
33
36
|
* Tree highlighting engine
|
|
34
37
|
* @public
|
|
38
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
35
39
|
*/
|
|
36
40
|
export declare class HighlightingEngine {
|
|
37
41
|
private _searchText;
|
|
38
42
|
private _activeMatch?;
|
|
43
|
+
/** @deprecated in 5.28.0. Use `HIGHLIGHT_ACTIVE_CLASS_NAME` instead. */
|
|
39
44
|
static readonly ACTIVE_CLASS_NAME = "components-activehighlight";
|
|
40
45
|
constructor(props: HighlightableTreeProps);
|
|
41
46
|
isNodeActive(node: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HighlightingEngine.d.ts","sourceRoot":"","sources":["../../../src/components-react/tree/HighlightingEngine.tsx"],"names":[],"mappings":"AAIA;;GAEG;
|
|
1
|
+
{"version":3,"file":"HighlightingEngine.d.ts","sourceRoot":"","sources":["../../../src/components-react/tree/HighlightingEngine.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,2BAA2B,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,YAAY,CAAC,CAAkB;IACvC,wEAAwE;IACxE,gBAAuB,iBAAiB,gCAAgC;gBAE5D,KAAK,EAAE,sBAAsB;IAKlC,YAAY,CAAC,IAAI,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE;IAIlC,mBAAmB,CAAC,IAAI,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE;IAIzC,iBAAiB,CAAC,IAAI,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,0BAA0B;WAO7D,eAAe,CAC3B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,0BAA0B,GAChC,KAAK,CAAC,SAAS;CAInB"}
|
|
@@ -5,16 +5,19 @@
|
|
|
5
5
|
/** @packageDocumentation
|
|
6
6
|
* @module Tree
|
|
7
7
|
*/
|
|
8
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
8
9
|
import "./HighlightingEngine.scss";
|
|
9
10
|
import * as React from "react";
|
|
10
11
|
import { HighlightedText } from "../common/HighlightedText.js";
|
|
11
12
|
/**
|
|
12
13
|
* Tree highlighting engine
|
|
13
14
|
* @public
|
|
15
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
14
16
|
*/
|
|
15
17
|
export class HighlightingEngine {
|
|
16
18
|
_searchText;
|
|
17
19
|
_activeMatch;
|
|
20
|
+
/** @deprecated in 5.28.0. Use `HIGHLIGHT_ACTIVE_CLASS_NAME` instead. */
|
|
18
21
|
static ACTIVE_CLASS_NAME = "components-activehighlight";
|
|
19
22
|
constructor(props) {
|
|
20
23
|
this._searchText = props.searchText;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HighlightingEngine.js","sourceRoot":"","sources":["../../../src/components-react/tree/HighlightingEngine.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,2BAA2B,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"HighlightingEngine.js","sourceRoot":"","sources":["../../../src/components-react/tree/HighlightingEngine.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,qDAAqD;AAErD,OAAO,2BAA2B,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAkC/D;;;;GAIG;AACH,MAAM,OAAO,kBAAkB;IACrB,WAAW,CAAS;IACpB,YAAY,CAAmB;IACvC,wEAAwE;IACjE,MAAM,CAAU,iBAAiB,GAAG,4BAA4B,CAAC;IAExE,YAAY,KAA6B;QACvC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,UAAU,CAAC;QACpC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,WAAW,CAAC;IACxC,CAAC;IAEM,YAAY,CAAC,IAAqB;QACvC,OAAO,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,EAAE,KAAK,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC;IACnE,CAAC;IAEM,mBAAmB,CAAC,IAAqB;QAC9C,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,YAAa,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;IAC7E,CAAC;IAEM,iBAAiB,CAAC,IAAqB;QAC5C,OAAO;YACL,UAAU,EAAE,IAAI,CAAC,WAAW;YAC5B,gBAAgB,EAAE,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC;SACjD,CAAC;IACJ,CAAC;IAEM,MAAM,CAAC,eAAe,CAC3B,IAAY,EACZ,KAAiC;QAEjC,IAAI,KAAK,CAAC,UAAU;YAAE,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,IAAI,KAAM,KAAK,GAAI,CAAC;QACxE,OAAO,IAAI,CAAC;IACd,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tree\n */\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\nimport \"./HighlightingEngine.scss\";\nimport * as React from \"react\";\nimport { HighlightedText } from \"../common/HighlightedText.js\";\n\n/**\n * Properties for identifying an active highlight on a node in a tree.\n * @see [[HighlightableTreeProps.activeMatch]]\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport interface ActiveMatchInfo {\n nodeId: string;\n matchIndex: number;\n}\n\n/**\n * Properties for highlighting nodes in a tree.\n * @see [[ControlledTreeProps.nodeHighlightingProps]]\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport interface HighlightableTreeProps {\n searchText: string;\n activeMatch?: ActiveMatchInfo;\n}\n\n/**\n * Properties for a highlightable [[TreeNode]]\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport interface HighlightableTreeNodeProps {\n searchText: string;\n activeMatchIndex?: number;\n}\n\n/**\n * Tree highlighting engine\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport class HighlightingEngine {\n private _searchText: string;\n private _activeMatch?: ActiveMatchInfo;\n /** @deprecated in 5.28.0. Use `HIGHLIGHT_ACTIVE_CLASS_NAME` instead. */\n public static readonly ACTIVE_CLASS_NAME = \"components-activehighlight\";\n\n constructor(props: HighlightableTreeProps) {\n this._searchText = props.searchText;\n this._activeMatch = props.activeMatch;\n }\n\n public isNodeActive(node: { id?: string }) {\n return this._activeMatch && node.id === this._activeMatch.nodeId;\n }\n\n public getActiveMatchIndex(node: { id?: string }) {\n return this.isNodeActive(node) ? this._activeMatch!.matchIndex : undefined;\n }\n\n public createRenderProps(node: { id?: string }): HighlightableTreeNodeProps {\n return {\n searchText: this._searchText,\n activeMatchIndex: this.getActiveMatchIndex(node),\n };\n }\n\n public static renderNodeLabel(\n text: string,\n props: HighlightableTreeNodeProps\n ): React.ReactNode {\n if (props.searchText) return <HighlightedText text={text} {...props} />;\n return text;\n }\n}\n"]}
|
|
@@ -5,12 +5,14 @@ import type { IImageLoader, LoadedImage } from "../common/IImageLoader.js";
|
|
|
5
5
|
import type { TreeNodeItem } from "./TreeDataProvider.js";
|
|
6
6
|
/** Interface for a tree image loader
|
|
7
7
|
* @public
|
|
8
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
8
9
|
*/
|
|
9
10
|
export interface ITreeImageLoader extends IImageLoader {
|
|
10
11
|
load: (item: TreeNodeItem) => LoadedImage | undefined;
|
|
11
12
|
}
|
|
12
13
|
/** Default image loader for the tree
|
|
13
14
|
* @public
|
|
15
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
14
16
|
*/
|
|
15
17
|
export declare class TreeImageLoader implements ITreeImageLoader {
|
|
16
18
|
/** Loads image data from either [[TreeNodeItem]] */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageLoader.d.ts","sourceRoot":"","sources":["../../../src/components-react/tree/ImageLoader.ts"],"names":[],"mappings":"AAIA;;GAEG;
|
|
1
|
+
{"version":3,"file":"ImageLoader.d.ts","sourceRoot":"","sources":["../../../src/components-react/tree/ImageLoader.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,IAAI,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,WAAW,GAAG,SAAS,CAAC;CACvD;AAED;;;GAGG;AACH,qBAAa,eAAgB,YAAW,gBAAgB;IACtD,oDAAoD;IAC7C,IAAI,CAAC,IAAI,EAAE,YAAY,GAAG,WAAW,GAAG,SAAS;CAQzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageLoader.js","sourceRoot":"","sources":["../../../src/components-react/tree/ImageLoader.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;
|
|
1
|
+
{"version":3,"file":"ImageLoader.js","sourceRoot":"","sources":["../../../src/components-react/tree/ImageLoader.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAeH;;;GAGG;AACH,MAAM,OAAO,eAAe;IAC1B,oDAAoD;IAC7C,IAAI,CAAC,IAAkB;QAC5B,IAAI,CAAC,IAAI,CAAC,IAAI;YAAE,OAAO,SAAS,CAAC;QAEjC,OAAO;YACL,UAAU,EAAE,cAAc;YAC1B,KAAK,EAAE,IAAI,CAAC,IAAI;SACjB,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tree\n */\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\nimport type { IImageLoader, LoadedImage } from \"../common/IImageLoader.js\";\nimport type { TreeNodeItem } from \"./TreeDataProvider.js\";\n\n/** Interface for a tree image loader\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport interface ITreeImageLoader extends IImageLoader {\n load: (item: TreeNodeItem) => LoadedImage | undefined;\n}\n\n/** Default image loader for the tree\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport class TreeImageLoader implements ITreeImageLoader {\n /** Loads image data from either [[TreeNodeItem]] */\n public load(item: TreeNodeItem): LoadedImage | undefined {\n if (!item.icon) return undefined;\n\n return {\n sourceType: \"webfont-icon\",\n value: item.icon,\n };\n }\n}\n"]}
|
|
@@ -8,11 +8,13 @@ import type { ITreeDataProvider, TreeNodeItem } from "./TreeDataProvider.js";
|
|
|
8
8
|
* key - Parent id.
|
|
9
9
|
* value - Child tree node items.
|
|
10
10
|
* @public
|
|
11
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
11
12
|
*/
|
|
12
13
|
export type SimpleTreeDataProviderHierarchy = Map<string | undefined, TreeNodeItem[]>;
|
|
13
14
|
/**
|
|
14
15
|
* A tree data provider using [[SimpleTreeDataProviderHierarchy]].
|
|
15
16
|
* @public
|
|
17
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
16
18
|
*/
|
|
17
19
|
export declare class SimpleTreeDataProvider implements ITreeDataProvider {
|
|
18
20
|
private _hierarchy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleTreeDataProvider.d.ts","sourceRoot":"","sources":["../../../src/components-react/tree/SimpleTreeDataProvider.ts"],"names":[],"mappings":"AAIA;;GAEG;
|
|
1
|
+
{"version":3,"file":"SimpleTreeDataProvider.d.ts","sourceRoot":"","sources":["../../../src/components-react/tree/SimpleTreeDataProvider.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE7E;;;;;;GAMG;AACH,MAAM,MAAM,+BAA+B,GAAG,GAAG,CAC/C,MAAM,GAAG,SAAS,EAClB,YAAY,EAAE,CACf,CAAC;AAEF;;;;GAIG;AACH,qBAAa,sBAAuB,YAAW,iBAAiB;IAC9D,OAAO,CAAC,UAAU,CAAkC;gBAEjC,SAAS,EAAE,+BAA+B;IAI7D,OAAO,CAAC,kBAAkB;IAkBb,QAAQ,CACnB,MAAM,CAAC,EAAE,YAAY,EACrB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,YAAY,EAAE,CAAC;IAIb,aAAa,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;CAGnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleTreeDataProvider.js","sourceRoot":"","sources":["../../../src/components-react/tree/SimpleTreeDataProvider.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;
|
|
1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C;IACxE,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tree\n */\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\nimport type { PageOptions } from \"../common/PageOptions.js\";\nimport type { ITreeDataProvider, TreeNodeItem } from \"./TreeDataProvider.js\";\n\n/**\n * Used by [[SimpleTreeDataProvider]].\n * key - Parent id.\n * value - Child tree node items.\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport type SimpleTreeDataProviderHierarchy = Map<\n string | undefined,\n TreeNodeItem[]\n>;\n\n/**\n * A tree data provider using [[SimpleTreeDataProviderHierarchy]].\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport class SimpleTreeDataProvider implements ITreeDataProvider {\n private _hierarchy: SimpleTreeDataProviderHierarchy;\n\n public constructor(hierarchy: SimpleTreeDataProviderHierarchy) {\n this._hierarchy = hierarchy;\n }\n\n private getNodesByParentId(\n parentId?: string,\n pageOptions?: PageOptions\n ): TreeNodeItem[] {\n const nodes = this._hierarchy.get(parentId);\n\n if (!nodes) return [];\n\n if (!pageOptions) return [...nodes];\n\n let pageEndIndex: number | undefined;\n if (pageOptions.size !== undefined && pageOptions.size !== 0) {\n pageEndIndex = pageOptions.size;\n pageEndIndex += pageOptions.start ? pageOptions.start : 0;\n }\n return nodes.slice(pageOptions.start, pageEndIndex);\n }\n\n public async getNodes(\n parent?: TreeNodeItem,\n pageOptions?: PageOptions\n ): Promise<TreeNodeItem[]> {\n return this.getNodesByParentId(parent ? parent.id : undefined, pageOptions);\n }\n\n public async getNodesCount(parent?: TreeNodeItem): Promise<number> {\n return this.getNodesByParentId(parent ? parent.id : undefined).length;\n }\n}\n"]}
|
|
@@ -8,6 +8,7 @@ import type { CheckBoxState } from "../common/CheckBoxState.js";
|
|
|
8
8
|
/**
|
|
9
9
|
* A node item which can be displayed in a tree.
|
|
10
10
|
* @public
|
|
11
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
11
12
|
*/
|
|
12
13
|
export interface TreeNodeItem {
|
|
13
14
|
id: string;
|
|
@@ -32,30 +33,36 @@ export interface TreeNodeItem {
|
|
|
32
33
|
}
|
|
33
34
|
/** A [[TreeNodeItem]] for immediately loaded trees
|
|
34
35
|
* @public
|
|
36
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
35
37
|
*/
|
|
36
38
|
export interface ImmediatelyLoadedTreeNodeItem extends TreeNodeItem {
|
|
37
39
|
children?: TreeNodeItem[];
|
|
38
40
|
}
|
|
39
41
|
/** A [[TreeNodeItem]] for delay-loaded trees
|
|
40
42
|
* @public
|
|
43
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
41
44
|
*/
|
|
42
45
|
export interface DelayLoadedTreeNodeItem extends TreeNodeItem {
|
|
43
46
|
hasChildren?: boolean;
|
|
44
47
|
}
|
|
45
48
|
/** Array of tree node data elements
|
|
46
49
|
* @public
|
|
50
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
47
51
|
*/
|
|
48
52
|
export type TreeDataProviderRaw = ImmediatelyLoadedTreeNodeItem[];
|
|
49
53
|
/** A Promise for TreeDataProviderRaw
|
|
50
54
|
* @public
|
|
55
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
51
56
|
*/
|
|
52
57
|
export type TreeDataProviderPromise = Promise<TreeDataProviderRaw>;
|
|
53
58
|
/** Signature for a method that returns TreeDataProviderPromise for supplied parent node
|
|
54
59
|
* @public
|
|
60
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
55
61
|
*/
|
|
56
62
|
export type TreeDataProviderMethod = (node?: TreeNodeItem) => Promise<DelayLoadedTreeNodeItem[]>;
|
|
57
63
|
/** Interface for a tree data provider class
|
|
58
64
|
* @public
|
|
65
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
59
66
|
*/
|
|
60
67
|
export interface ITreeDataProvider {
|
|
61
68
|
getNodesCount(parent?: TreeNodeItem): Promise<number>;
|
|
@@ -63,22 +70,27 @@ export interface ITreeDataProvider {
|
|
|
63
70
|
}
|
|
64
71
|
/** Type definition for all Tree data providers
|
|
65
72
|
* @public
|
|
73
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
66
74
|
*/
|
|
67
75
|
export type TreeDataProvider = TreeDataProviderRaw | TreeDataProviderPromise | TreeDataProviderMethod | ITreeDataProvider;
|
|
68
76
|
/** Checks if [[TreeDataProvider]] is a [[TreeDataProviderRaw]]
|
|
69
77
|
* @public
|
|
78
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
70
79
|
*/
|
|
71
80
|
export declare const isTreeDataProviderRaw: (provider: TreeDataProvider) => provider is TreeDataProviderRaw;
|
|
72
81
|
/** Checks if [[TreeDataProvider]] is a [[TreeDataProviderPromise]]
|
|
73
82
|
* @public
|
|
83
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
74
84
|
*/
|
|
75
85
|
export declare const isTreeDataProviderPromise: (provider: TreeDataProvider) => provider is TreeDataProviderPromise;
|
|
76
86
|
/** Checks if [[TreeDataProvider]] is a [[TreeDataProviderMethod]]
|
|
77
87
|
* @public
|
|
88
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
78
89
|
*/
|
|
79
90
|
export declare const isTreeDataProviderMethod: (provider: TreeDataProvider) => provider is TreeDataProviderMethod;
|
|
80
91
|
/** Checks if [[TreeDataProvider]] is an [[ITreeDataProvider]]
|
|
81
92
|
* @public
|
|
93
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
82
94
|
*/
|
|
83
95
|
export declare const isTreeDataProviderInterface: (provider: TreeDataProvider) => provider is ITreeDataProvider;
|
|
84
96
|
/**
|
|
@@ -86,11 +98,13 @@ export declare const isTreeDataProviderInterface: (provider: TreeDataProvider) =
|
|
|
86
98
|
* @param node node to check
|
|
87
99
|
* @returns whether node has children
|
|
88
100
|
* @public
|
|
101
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
89
102
|
*/
|
|
90
103
|
export declare const hasChildren: (node: TreeNodeItem) => boolean;
|
|
91
104
|
/**
|
|
92
105
|
* EditableTreeDataProvider provides cell editing processing for the Tree.
|
|
93
106
|
* @public
|
|
107
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
94
108
|
*/
|
|
95
109
|
export interface EditableTreeDataProvider extends ITreeDataProvider {
|
|
96
110
|
updateLabel(nodeItem: TreeNodeItem, newLabel: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeDataProvider.d.ts","sourceRoot":"","sources":["../../../src/components-react/tree/TreeDataProvider.ts"],"names":[],"mappings":"AAIA;;GAEG;
|
|
1
|
+
{"version":3,"file":"TreeDataProvider.d.ts","sourceRoot":"","sources":["../../../src/components-react/tree/TreeDataProvider.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,cAAc,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE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gBAAgB,KACzB,QAAQ,IAAI,mBAEd,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,aAC1B,gBAAgB,KACzB,QAAQ,IAAI,uBAEd,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,aACzB,gBAAgB,KACzB,QAAQ,IAAI,sBAEd,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,2BAA2B,aAC5B,gBAAgB,KACzB,QAAQ,IAAI,iBAKd,CAAC;AACF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,SAAU,YAAY,YAW7C,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB;IACjE,WAAW,CAAC,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7D"}
|
|
@@ -7,24 +7,28 @@
|
|
|
7
7
|
*/
|
|
8
8
|
/** Checks if [[TreeDataProvider]] is a [[TreeDataProviderRaw]]
|
|
9
9
|
* @public
|
|
10
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
10
11
|
*/
|
|
11
12
|
export const isTreeDataProviderRaw = (provider) => {
|
|
12
13
|
return Array.isArray(provider);
|
|
13
14
|
};
|
|
14
15
|
/** Checks if [[TreeDataProvider]] is a [[TreeDataProviderPromise]]
|
|
15
16
|
* @public
|
|
17
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
16
18
|
*/
|
|
17
19
|
export const isTreeDataProviderPromise = (provider) => {
|
|
18
20
|
return undefined !== provider.then;
|
|
19
21
|
};
|
|
20
22
|
/** Checks if [[TreeDataProvider]] is a [[TreeDataProviderMethod]]
|
|
21
23
|
* @public
|
|
24
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
22
25
|
*/
|
|
23
26
|
export const isTreeDataProviderMethod = (provider) => {
|
|
24
27
|
return typeof provider === "function";
|
|
25
28
|
};
|
|
26
29
|
/** Checks if [[TreeDataProvider]] is an [[ITreeDataProvider]]
|
|
27
30
|
* @public
|
|
31
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
28
32
|
*/
|
|
29
33
|
export const isTreeDataProviderInterface = (provider) => {
|
|
30
34
|
const candidate = provider;
|
|
@@ -35,6 +39,7 @@ export const isTreeDataProviderInterface = (provider) => {
|
|
|
35
39
|
* @param node node to check
|
|
36
40
|
* @returns whether node has children
|
|
37
41
|
* @public
|
|
42
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
38
43
|
*/
|
|
39
44
|
export const hasChildren = (node) => {
|
|
40
45
|
const nodeAsImmediate = node;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeDataProvider.js","sourceRoot":"","sources":["../../../src/components-react/tree/TreeDataProvider.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;
|
|
1
|
+
{"version":3,"file":"TreeDataProvider.js","sourceRoot":"","sources":["../../../src/components-react/tree/TreeDataProvider.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AA4FH;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,QAA0B,EACO,EAAE;IACnC,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AACjC,CAAC,CAAC;AACF;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,QAA0B,EACW,EAAE;IACvC,OAAO,SAAS,KAAM,QAAoC,CAAC,IAAI,CAAC;AAClE,CAAC,CAAC;AACF;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,QAA0B,EACU,EAAE;IACtC,OAAO,OAAO,QAAQ,KAAK,UAAU,CAAC;AACxC,CAAC,CAAC;AACF;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,QAA0B,EACK,EAAE;IACjC,MAAM,SAAS,GAAG,QAA6B,CAAC;IAChD,OAAO,CACL,SAAS,KAAK,SAAS,CAAC,QAAQ,IAAI,SAAS,KAAK,SAAS,CAAC,aAAa,CAC1E,CAAC;AACJ,CAAC,CAAC;AACF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAkB,EAAE,EAAE;IAChD,MAAM,eAAe,GAAG,IAAqC,CAAC;IAC9D,IACE,UAAU,IAAI,eAAe;QAC7B,eAAe,CAAC,QAAQ;QACxB,eAAe,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC;QAEnC,OAAO,IAAI,CAAC;IACd,MAAM,aAAa,GAAG,IAA+B,CAAC;IACtD,IAAI,aAAa,IAAI,aAAa,IAAI,aAAa,CAAC,WAAW;QAAE,OAAO,IAAI,CAAC;IAC7E,OAAO,KAAK,CAAC;AACf,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tree\n */\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\nimport type { PropertyRecord } from \"@itwin/appui-abstract\";\nimport type { PageOptions } from \"../common/PageOptions.js\";\nimport type { ItemStyle } from \"../properties/ItemStyle.js\";\nimport type { CheckBoxState } from \"../common/CheckBoxState.js\";\n\n/**\n * A node item which can be displayed in a tree.\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport interface TreeNodeItem {\n id: string;\n parentId?: string;\n label: PropertyRecord;\n description?: string;\n autoExpand?: boolean;\n icon?: string;\n isSelectionDisabled?: boolean;\n isCheckboxVisible?: boolean;\n isCheckboxDisabled?: boolean;\n checkBoxState?: CheckBoxState;\n isEditable?: boolean;\n style?: ItemStyle;\n /**\n * A key-value pairs data structure that can be used by data provider\n * to store some custom data for this node item.\n */\n extendedData?: { [key: string]: any };\n}\n\n/** A [[TreeNodeItem]] for immediately loaded trees\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport interface ImmediatelyLoadedTreeNodeItem extends TreeNodeItem {\n children?: TreeNodeItem[];\n}\n\n/** A [[TreeNodeItem]] for delay-loaded trees\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport interface DelayLoadedTreeNodeItem extends TreeNodeItem {\n hasChildren?: boolean;\n}\n\n/** Array of tree node data elements\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport type TreeDataProviderRaw = ImmediatelyLoadedTreeNodeItem[];\n\n/** A Promise for TreeDataProviderRaw\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport type TreeDataProviderPromise = Promise<TreeDataProviderRaw>;\n\n/** Signature for a method that returns TreeDataProviderPromise for supplied parent node\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport type TreeDataProviderMethod = (\n node?: TreeNodeItem\n) => Promise<DelayLoadedTreeNodeItem[]>;\n\n/** Interface for a tree data provider class\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport interface ITreeDataProvider {\n getNodesCount(parent?: TreeNodeItem): Promise<number>;\n getNodes(\n parent?: TreeNodeItem,\n page?: PageOptions\n ): Promise<DelayLoadedTreeNodeItem[]>;\n}\n\n/** Type definition for all Tree data providers\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport type TreeDataProvider =\n | TreeDataProviderRaw\n | TreeDataProviderPromise\n | TreeDataProviderMethod\n | ITreeDataProvider;\n\n/** Checks if [[TreeDataProvider]] is a [[TreeDataProviderRaw]]\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport const isTreeDataProviderRaw = (\n provider: TreeDataProvider\n): provider is TreeDataProviderRaw => {\n return Array.isArray(provider);\n};\n/** Checks if [[TreeDataProvider]] is a [[TreeDataProviderPromise]]\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport const isTreeDataProviderPromise = (\n provider: TreeDataProvider\n): provider is TreeDataProviderPromise => {\n return undefined !== (provider as TreeDataProviderPromise).then;\n};\n/** Checks if [[TreeDataProvider]] is a [[TreeDataProviderMethod]]\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport const isTreeDataProviderMethod = (\n provider: TreeDataProvider\n): provider is TreeDataProviderMethod => {\n return typeof provider === \"function\";\n};\n/** Checks if [[TreeDataProvider]] is an [[ITreeDataProvider]]\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport const isTreeDataProviderInterface = (\n provider: TreeDataProvider\n): provider is ITreeDataProvider => {\n const candidate = provider as ITreeDataProvider;\n return (\n undefined !== candidate.getNodes && undefined !== candidate.getNodesCount\n );\n};\n/**\n * Determines whether node has children\n * @param node node to check\n * @returns whether node has children\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport const hasChildren = (node: TreeNodeItem) => {\n const nodeAsImmediate = node as ImmediatelyLoadedTreeNodeItem;\n if (\n \"children\" in nodeAsImmediate &&\n nodeAsImmediate.children &&\n nodeAsImmediate.children.length > 0\n )\n return true;\n const nodeAsDelayed = node as DelayLoadedTreeNodeItem;\n if (\"hasChildren\" in nodeAsDelayed && nodeAsDelayed.hasChildren) return true;\n return false;\n};\n\n/**\n * EditableTreeDataProvider provides cell editing processing for the Tree.\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport interface EditableTreeDataProvider extends ITreeDataProvider {\n updateLabel(nodeItem: TreeNodeItem, newLabel: string): void;\n}\n"]}
|
|
@@ -5,6 +5,7 @@ import { Observable as RxjsObservable } from "rxjs";
|
|
|
5
5
|
/**
|
|
6
6
|
* Helper method that creates an Observable from Iterable or Promise.
|
|
7
7
|
* @public
|
|
8
|
+
* @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.
|
|
8
9
|
*/
|
|
9
10
|
export declare function from<T>(iterable: Iterable<T> | PromiseLike<T>): Observable<T>;
|
|
10
11
|
/**
|
|
@@ -21,6 +22,7 @@ export declare function from<T>(iterable: Iterable<T> | PromiseLike<T>): Observa
|
|
|
21
22
|
* ```
|
|
22
23
|
*
|
|
23
24
|
* @public
|
|
25
|
+
* @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.
|
|
24
26
|
*/
|
|
25
27
|
export interface Observable<T> extends Subscribable<T> {
|
|
26
28
|
}
|
|
@@ -28,6 +30,7 @@ export interface Observable<T> extends Subscribable<T> {
|
|
|
28
30
|
* Subscribable interface compatible with [rxjs](https://github.com/ReactiveX/rxjs)
|
|
29
31
|
* This interface ensures that consumers are not required to have rxjs as dependency.
|
|
30
32
|
* @public
|
|
33
|
+
* @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.
|
|
31
34
|
*/
|
|
32
35
|
export interface Subscribable<T> {
|
|
33
36
|
subscribe(observer?: Observer<T>): Subscription;
|
|
@@ -40,12 +43,14 @@ export interface Subscribable<T> {
|
|
|
40
43
|
* Observer interface compatible with [rxjs](https://github.com/ReactiveX/rxjs)
|
|
41
44
|
* This interface ensures that consumers are not required to have rxjs as dependency.
|
|
42
45
|
* @public
|
|
46
|
+
* @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.
|
|
43
47
|
*/
|
|
44
48
|
export declare type Observer<T> = NextObserver<T> | ErrorObserver<T> | CompletionObserver<T>;
|
|
45
49
|
/**
|
|
46
50
|
* Unsubscribable interface compatible with [rxjs](https://github.com/ReactiveX/rxjs)
|
|
47
51
|
* This interface ensures that consumers are not required to have rxjs as dependency.
|
|
48
52
|
* @public
|
|
53
|
+
* @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.
|
|
49
54
|
*/
|
|
50
55
|
export interface Unsubscribable {
|
|
51
56
|
unsubscribe(): void;
|
|
@@ -54,6 +59,7 @@ export interface Unsubscribable {
|
|
|
54
59
|
* Subscription interface compatible with [rxjs](https://github.com/ReactiveX/rxjs)
|
|
55
60
|
* This interface ensures that consumers are not required to have rxjs as dependency.
|
|
56
61
|
* @public
|
|
62
|
+
* @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.
|
|
57
63
|
*/
|
|
58
64
|
export interface Subscription extends Unsubscribable {
|
|
59
65
|
readonly closed: boolean;
|
|
@@ -64,6 +70,7 @@ export interface Subscription extends Unsubscribable {
|
|
|
64
70
|
* NextObserver interface compatible with [rxjs](https://github.com/ReactiveX/rxjs)
|
|
65
71
|
* This interface ensures that consumers are not required to have rxjs as dependency.
|
|
66
72
|
* @public
|
|
73
|
+
* @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.
|
|
67
74
|
*/
|
|
68
75
|
export interface NextObserver<T> {
|
|
69
76
|
closed?: boolean;
|
|
@@ -75,6 +82,7 @@ export interface NextObserver<T> {
|
|
|
75
82
|
* ErrorObserver interface compatible with [rxjs](https://github.com/ReactiveX/rxjs)
|
|
76
83
|
* This interface ensures that consumers are not required to have rxjs as dependency.
|
|
77
84
|
* @public
|
|
85
|
+
* @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.
|
|
78
86
|
*/
|
|
79
87
|
export interface ErrorObserver<T> {
|
|
80
88
|
closed?: boolean;
|
|
@@ -86,6 +94,7 @@ export interface ErrorObserver<T> {
|
|
|
86
94
|
* CompletionObserver interface compatible with [rxjs](https://github.com/ReactiveX/rxjs)
|
|
87
95
|
* This interface ensures that consumers are not required to have rxjs as dependency.
|
|
88
96
|
* @public
|
|
97
|
+
* @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.
|
|
89
98
|
*/
|
|
90
99
|
export interface CompletionObserver<T> {
|
|
91
100
|
closed?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Observable.d.ts","sourceRoot":"","sources":["../../../../src/components-react/tree/controlled/Observable.ts"],"names":[],"mappings":"AAIA;;GAEG;
|
|
1
|
+
{"version":3,"file":"Observable.d.ts","sourceRoot":"","sources":["../../../../src/components-react/tree/controlled/Observable.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,EAAoB,UAAU,IAAI,cAAc,EAAE,MAAM,MAAM,CAAC;AAEtE;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAE7E;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,CAAC;CAAG;AAEzD;;;;;GAKG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,SAAS,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC;IAChD,SAAS,CACP,IAAI,EAAE,IAAI,GAAG,SAAS,EACtB,KAAK,EAAE,IAAI,GAAG,SAAS,EACvB,QAAQ,EAAE,MAAM,IAAI,GACnB,YAAY,CAAC;IAChB,SAAS,CACP,IAAI,EAAE,IAAI,GAAG,SAAS,EACtB,KAAK,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,EAC3B,QAAQ,CAAC,EAAE,MAAM,IAAI,GACpB,YAAY,CAAC;IAChB,SAAS,CAEP,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EACxB,KAAK,EAAE,IAAI,GAAG,SAAS,EACvB,QAAQ,EAAE,MAAM,IAAI,GACnB,YAAY,CAAC;IAChB,SAAS,CACP,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EACzB,KAAK,C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AK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAC3B,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,gBAAgB;AAChB,wBAAgB,gBAAgB,CAAC,CAAC,EAChC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,GACxB,cAAc,CAAC,CAAC,CAAC,CAInB"}
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
/** @packageDocumentation
|
|
6
6
|
* @module Tree
|
|
7
7
|
*/
|
|
8
|
+
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
8
9
|
import { from as rxjsFrom, Observable as RxjsObservable } from "rxjs";
|
|
9
10
|
/**
|
|
10
11
|
* Helper method that creates an Observable from Iterable or Promise.
|
|
11
12
|
* @public
|
|
13
|
+
* @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.
|
|
12
14
|
*/
|
|
13
15
|
export function from(iterable) {
|
|
14
16
|
return rxjsFrom(iterable);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Observable.js","sourceRoot":"","sources":["../../../../src/components-react/tree/controlled/Observable.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,MAAM,CAAC;AAEtE
|
|
1
|
+
{"version":3,"file":"Observable.js","sourceRoot":"","sources":["../../../../src/components-react/tree/controlled/Observable.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,qDAAqD;AAErD,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,MAAM,CAAC;AAEtE;;;;GAIG;AACH,MAAM,UAAU,IAAI,CAAI,QAAsC;IAC5D,OAAO,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC5B,CAAC;AA2HD,gBAAgB;AAChB,MAAM,UAAU,gBAAgB,CAC9B,UAAyB;IAEzB,OAAO,IAAI,cAAc,CAAC,CAAC,UAAU,EAAE,EAAE;QACvC,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tree\n */\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\nimport { from as rxjsFrom, Observable as RxjsObservable } from \"rxjs\";\n\n/**\n * Helper method that creates an Observable from Iterable or Promise.\n * @public\n * @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.\n */\nexport function from<T>(iterable: Iterable<T> | PromiseLike<T>): Observable<T> {\n return rxjsFrom(iterable);\n}\n\n/**\n * Observable interface compatible with [rxjs](https://github.com/ReactiveX/rxjs)\n * This interface ensures that consumers are not required to have rxjs as dependency.\n *\n * To use it with [rxjs](https://github.com/ReactiveX/rxjs) operators wrap it inside\n * `Observable` from [rxjs](https://github.com/ReactiveX/rxjs). Example:\n *\n * ```\n * import { Observable as RxjsObservable } from \"rxjs\";\n *\n * new RxjsObservable((subscriber) => thisObservable.subscribe(subscriber));\n * ```\n *\n * @public\n * @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.\n */\nexport interface Observable<T> extends Subscribable<T> {} // eslint-disable-line @typescript-eslint/no-empty-object-type\n\n/**\n * Subscribable interface compatible with [rxjs](https://github.com/ReactiveX/rxjs)\n * This interface ensures that consumers are not required to have rxjs as dependency.\n * @public\n * @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.\n */\nexport interface Subscribable<T> {\n subscribe(observer?: Observer<T>): Subscription;\n subscribe(\n next: null | undefined,\n error: null | undefined,\n complete: () => void\n ): Subscription;\n subscribe(\n next: null | undefined,\n error: (error: any) => void,\n complete?: () => void\n ): Subscription;\n subscribe(\n // eslint-disable-next-line @typescript-eslint/unified-signatures\n next: (value: T) => void,\n error: null | undefined,\n complete: () => void\n ): Subscription;\n subscribe(\n next?: (value: T) => void,\n error?: (error: any) => void,\n complete?: () => void\n ): Subscription;\n}\n\n/**\n * Observer interface compatible with [rxjs](https://github.com/ReactiveX/rxjs)\n * This interface ensures that consumers are not required to have rxjs as dependency.\n * @public\n * @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.\n */\nexport declare type Observer<T> =\n | NextObserver<T>\n | ErrorObserver<T>\n | CompletionObserver<T>;\n\n/**\n * Unsubscribable interface compatible with [rxjs](https://github.com/ReactiveX/rxjs)\n * This interface ensures that consumers are not required to have rxjs as dependency.\n * @public\n * @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.\n */\nexport interface Unsubscribable {\n unsubscribe(): void;\n}\n\n/**\n * Subscription interface compatible with [rxjs](https://github.com/ReactiveX/rxjs)\n * This interface ensures that consumers are not required to have rxjs as dependency.\n * @public\n * @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.\n */\nexport interface Subscription extends Unsubscribable {\n readonly closed: boolean;\n unsubscribe(): void;\n add(tearDown: Unsubscribable | (() => void) | void): void;\n}\n\n/**\n * NextObserver interface compatible with [rxjs](https://github.com/ReactiveX/rxjs)\n * This interface ensures that consumers are not required to have rxjs as dependency.\n * @public\n * @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.\n */\nexport interface NextObserver<T> {\n closed?: boolean;\n next: (value: T) => void;\n error?: (err: any) => void;\n complete?: () => void;\n}\n\n/**\n * ErrorObserver interface compatible with [rxjs](https://github.com/ReactiveX/rxjs)\n * This interface ensures that consumers are not required to have rxjs as dependency.\n * @public\n * @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.\n */\nexport interface ErrorObserver<T> {\n closed?: boolean;\n next?: (value: T) => void;\n error: (err: any) => void;\n complete?: () => void;\n}\n\n/**\n * CompletionObserver interface compatible with [rxjs](https://github.com/ReactiveX/rxjs)\n * This interface ensures that consumers are not required to have rxjs as dependency.\n * @public\n * @deprecated in 5.28.0. Use [rxjs](https://github.com/ReactiveX/rxjs) directly.\n */\nexport interface CompletionObserver<T> {\n closed?: boolean;\n next?: (value: T) => void;\n error?: (err: any) => void;\n complete: () => void;\n}\n\n/** @internal */\nexport function toRxjsObservable<T>(\n observable: Observable<T>\n): RxjsObservable<T> {\n return new RxjsObservable((subscriber) => {\n observable.subscribe(subscriber);\n });\n}\n"]}
|
|
@@ -5,6 +5,7 @@ import type { CheckBoxState } from "../../common/CheckBoxState.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* Tree actions that can be performed on tree.
|
|
7
7
|
* @public
|
|
8
|
+
* @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.
|
|
8
9
|
*/
|
|
9
10
|
export interface TreeActions {
|
|
10
11
|
onNodeCheckboxClicked: (nodeId: string, newState: CheckBoxState) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeActions.d.ts","sourceRoot":"","sources":["../../../../src/components-react/tree/controlled/TreeActions.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE
|
|
1
|
+
{"version":3,"file":"TreeActions.d.ts","sourceRoot":"","sources":["../../../../src/components-react/tree/controlled/TreeActions.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,qBAAqB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAC;IACzE,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IACjE,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,qBAAqB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;IACpD,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;CACnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeActions.js","sourceRoot":"","sources":["../../../../src/components-react/tree/controlled/TreeActions.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tree\n */\n\nimport type { CheckBoxState } from \"../../common/CheckBoxState.js\";\n\n/**\n * Tree actions that can be performed on tree.\n * @public\n */\nexport interface TreeActions {\n onNodeCheckboxClicked: (nodeId: string, newState: CheckBoxState) => void;\n onNodeExpanded: (nodeId: string) => void;\n onNodeCollapsed: (nodeId: string) => void;\n onNodeClicked: (nodeId: string, event: React.MouseEvent) => void;\n onNodeMouseDown: (nodeId: string) => void;\n onNodeMouseMove: (nodeId: string) => void;\n onNodeEditorActivated: (nodeId: string) => void;\n onTreeKeyDown: (event: React.KeyboardEvent) => void;\n onTreeKeyUp: (event: React.KeyboardEvent) => void;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"TreeActions.js","sourceRoot":"","sources":["../../../../src/components-react/tree/controlled/TreeActions.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tree\n */\n\nimport type { CheckBoxState } from \"../../common/CheckBoxState.js\";\n\n/**\n * Tree actions that can be performed on tree.\n * @public\n * @deprecated in 5.28.0. Use Tree component from `@stratakit/structures` instead.\n */\nexport interface TreeActions {\n onNodeCheckboxClicked: (nodeId: string, newState: CheckBoxState) => void;\n onNodeExpanded: (nodeId: string) => void;\n onNodeCollapsed: (nodeId: string) => void;\n onNodeClicked: (nodeId: string, event: React.MouseEvent) => void;\n onNodeMouseDown: (nodeId: string) => void;\n onNodeMouseMove: (nodeId: string) => void;\n onNodeEditorActivated: (nodeId: string) => void;\n onTreeKeyDown: (event: React.KeyboardEvent) => void;\n onTreeKeyUp: (event: React.KeyboardEvent) => void;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeEventDispatcher.d.ts","sourceRoot":"","sources":["../../../../src/components-react/tree/controlled/TreeEventDispatcher.ts"],"names":[],"mappings":"AAIA;;GAEG;
|
|
1
|
+
{"version":3,"file":"TreeEventDispatcher.d.ts","sourceRoot":"","sources":["../../../../src/components-react/tree/controlled/TreeEventDispatcher.ts"],"names":[],"mappings":"AAIA;;GAEG;AAwBH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAU9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAGV,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM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