@itwin/core-react 3.0.0-extension.0 → 3.0.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 +136 -6
- package/ContributeGuidelines.md +1 -1
- package/LICENSE.md +1 -1
- package/lib/cjs/core-react/UiCore.d.ts +1 -1
- package/lib/cjs/core-react/UiCore.d.ts.map +1 -1
- package/lib/cjs/core-react/UiCore.js.map +1 -1
- package/lib/cjs/core-react/contextmenu/PopupContextMenu.js +1 -1
- package/lib/cjs/core-react/contextmenu/PopupContextMenu.js.map +1 -1
- package/lib/cjs/core-react/dialog/DialogButtonDef.d.ts +3 -3
- package/lib/cjs/core-react/dialog/DialogButtonDef.js +2 -2
- package/lib/cjs/core-react/dialog/DialogButtonDef.js.map +1 -1
- package/lib/cjs/core-react/expandable/ExpandableList.scss +0 -3
- package/lib/cjs/core-react/form/Field.d.ts +2 -2
- package/lib/cjs/core-react/form/Field.d.ts.map +1 -1
- package/lib/cjs/core-react/form/Field.js +4 -3
- package/lib/cjs/core-react/form/Field.js.map +1 -1
- package/lib/cjs/core-react/form/Form.d.ts +7 -7
- package/lib/cjs/core-react/form/Form.d.ts.map +1 -1
- package/lib/cjs/core-react/form/Form.js +3 -2
- package/lib/cjs/core-react/form/Form.js.map +1 -1
- package/lib/cjs/core-react/icons/IconComponent.scss +5 -0
- package/lib/cjs/core-react/inputs/numberinput/NumberInput.d.ts.map +1 -1
- package/lib/cjs/core-react/inputs/numberinput/NumberInput.js +3 -2
- package/lib/cjs/core-react/inputs/numberinput/NumberInput.js.map +1 -1
- package/lib/cjs/core-react/inputs/numberinput/NumberInput.scss +13 -0
- package/lib/cjs/core-react/messagebox/MessageBox.d.ts.map +1 -1
- package/lib/cjs/core-react/messagebox/MessageBox.js +3 -0
- package/lib/cjs/core-react/messagebox/MessageBox.js.map +1 -1
- package/lib/cjs/core-react/messagebox/MessageBox.scss +2 -0
- package/lib/cjs/core-react/messagebox/MessageSeverity.d.ts +1 -1
- package/lib/cjs/core-react/messagebox/MessageSeverity.js +1 -1
- package/lib/cjs/core-react/messagebox/MessageSeverity.js.map +1 -1
- package/lib/cjs/core-react/popup/Popup.d.ts +6 -1
- package/lib/cjs/core-react/popup/Popup.d.ts.map +1 -1
- package/lib/cjs/core-react/popup/Popup.js +13 -4
- package/lib/cjs/core-react/popup/Popup.js.map +1 -1
- package/lib/cjs/core-react/popup/Popup.scss +11 -2
- package/lib/cjs/core-react/select/ThemedSelect.d.ts +1 -1
- package/lib/cjs/core-react/select/ThemedSelect.js +1 -1
- package/lib/cjs/core-react/select/ThemedSelect.js.map +1 -1
- package/lib/cjs/core-react/style/itwinui-overrides.scss +0 -68
- package/lib/cjs/core-react/tree/Node.d.ts +1 -0
- package/lib/cjs/core-react/tree/Node.d.ts.map +1 -1
- package/lib/cjs/core-react/tree/Node.js +19 -6
- package/lib/cjs/core-react/tree/Node.js.map +1 -1
- package/lib/cjs/core-react/tree/Node.scss +14 -7
- package/lib/cjs/core-react/uistate/LocalStateStorage.d.ts +17 -0
- package/lib/cjs/core-react/uistate/LocalStateStorage.d.ts.map +1 -0
- package/lib/cjs/core-react/{uisettings/LocalSettingsStorage.js → uistate/LocalStateStorage.js} +14 -20
- package/lib/cjs/core-react/uistate/LocalStateStorage.js.map +1 -0
- package/lib/{esm/core-react/uisettings/UiSetting.d.ts → cjs/core-react/uistate/UiStateEntry.d.ts} +15 -15
- package/lib/cjs/core-react/uistate/UiStateEntry.d.ts.map +1 -0
- package/lib/cjs/core-react/{uisettings/UiSetting.js → uistate/UiStateEntry.js} +16 -16
- package/lib/cjs/core-react/uistate/UiStateEntry.js.map +1 -0
- package/lib/cjs/core-react/uistate/UiStateStorage.d.ts +29 -0
- package/lib/cjs/core-react/uistate/UiStateStorage.d.ts.map +1 -0
- package/lib/cjs/core-react/uistate/UiStateStorage.js +22 -0
- package/lib/cjs/core-react/uistate/UiStateStorage.js.map +1 -0
- package/lib/cjs/core-react/utils/UiEvent.d.ts +2 -2
- package/lib/cjs/core-react/utils/UiEvent.js +2 -2
- package/lib/cjs/core-react/utils/UiEvent.js.map +1 -1
- package/lib/cjs/core-react.d.ts +4 -5
- package/lib/cjs/core-react.d.ts.map +1 -1
- package/lib/cjs/core-react.js +4 -5
- package/lib/cjs/core-react.js.map +1 -1
- package/lib/esm/core-react/UiCore.d.ts +1 -1
- package/lib/esm/core-react/UiCore.d.ts.map +1 -1
- package/lib/esm/core-react/UiCore.js.map +1 -1
- package/lib/esm/core-react/contextmenu/PopupContextMenu.js +1 -1
- package/lib/esm/core-react/contextmenu/PopupContextMenu.js.map +1 -1
- package/lib/esm/core-react/dialog/DialogButtonDef.d.ts +3 -3
- package/lib/esm/core-react/dialog/DialogButtonDef.js +2 -2
- package/lib/esm/core-react/dialog/DialogButtonDef.js.map +1 -1
- package/lib/esm/core-react/expandable/ExpandableList.scss +0 -3
- package/lib/esm/core-react/form/Field.d.ts +2 -2
- package/lib/esm/core-react/form/Field.d.ts.map +1 -1
- package/lib/esm/core-react/form/Field.js +4 -3
- package/lib/esm/core-react/form/Field.js.map +1 -1
- package/lib/esm/core-react/form/Form.d.ts +7 -7
- package/lib/esm/core-react/form/Form.d.ts.map +1 -1
- package/lib/esm/core-react/form/Form.js +3 -2
- package/lib/esm/core-react/form/Form.js.map +1 -1
- package/lib/esm/core-react/icons/IconComponent.scss +5 -0
- package/lib/esm/core-react/inputs/numberinput/NumberInput.d.ts.map +1 -1
- package/lib/esm/core-react/inputs/numberinput/NumberInput.js +3 -2
- package/lib/esm/core-react/inputs/numberinput/NumberInput.js.map +1 -1
- package/lib/esm/core-react/inputs/numberinput/NumberInput.scss +13 -0
- package/lib/esm/core-react/messagebox/MessageBox.d.ts.map +1 -1
- package/lib/esm/core-react/messagebox/MessageBox.js +3 -0
- package/lib/esm/core-react/messagebox/MessageBox.js.map +1 -1
- package/lib/esm/core-react/messagebox/MessageBox.scss +2 -0
- package/lib/esm/core-react/messagebox/MessageSeverity.d.ts +1 -1
- package/lib/esm/core-react/messagebox/MessageSeverity.js +1 -1
- package/lib/esm/core-react/messagebox/MessageSeverity.js.map +1 -1
- package/lib/esm/core-react/popup/Popup.d.ts +6 -1
- package/lib/esm/core-react/popup/Popup.d.ts.map +1 -1
- package/lib/esm/core-react/popup/Popup.js +13 -4
- package/lib/esm/core-react/popup/Popup.js.map +1 -1
- package/lib/esm/core-react/popup/Popup.scss +11 -2
- package/lib/esm/core-react/select/ThemedSelect.d.ts +1 -1
- package/lib/esm/core-react/select/ThemedSelect.js +1 -1
- package/lib/esm/core-react/select/ThemedSelect.js.map +1 -1
- package/lib/esm/core-react/style/itwinui-overrides.scss +0 -68
- package/lib/esm/core-react/tree/Node.d.ts +1 -0
- package/lib/esm/core-react/tree/Node.d.ts.map +1 -1
- package/lib/esm/core-react/tree/Node.js +19 -6
- package/lib/esm/core-react/tree/Node.js.map +1 -1
- package/lib/esm/core-react/tree/Node.scss +14 -7
- package/lib/esm/core-react/uistate/LocalStateStorage.d.ts +17 -0
- package/lib/esm/core-react/uistate/LocalStateStorage.d.ts.map +1 -0
- package/lib/esm/core-react/{uisettings/LocalSettingsStorage.js → uistate/LocalStateStorage.js} +12 -17
- package/lib/esm/core-react/uistate/LocalStateStorage.js.map +1 -0
- package/lib/{cjs/core-react/uisettings/UiSetting.d.ts → esm/core-react/uistate/UiStateEntry.d.ts} +15 -15
- package/lib/esm/core-react/uistate/UiStateEntry.d.ts.map +1 -0
- package/lib/esm/core-react/{uisettings/UiSetting.js → uistate/UiStateEntry.js} +14 -14
- package/lib/esm/core-react/uistate/UiStateEntry.js.map +1 -0
- package/lib/esm/core-react/uistate/UiStateStorage.d.ts +29 -0
- package/lib/esm/core-react/uistate/UiStateStorage.d.ts.map +1 -0
- package/lib/esm/core-react/uistate/UiStateStorage.js +19 -0
- package/lib/esm/core-react/uistate/UiStateStorage.js.map +1 -0
- package/lib/esm/core-react/utils/UiEvent.d.ts +2 -2
- package/lib/esm/core-react/utils/UiEvent.js +2 -2
- package/lib/esm/core-react/utils/UiEvent.js.map +1 -1
- package/lib/esm/core-react.d.ts +4 -5
- package/lib/esm/core-react.d.ts.map +1 -1
- package/lib/esm/core-react.js +4 -5
- package/lib/esm/core-react.js.map +1 -1
- package/package.json +20 -22
- package/lib/cjs/core-react/uisettings/LocalSettingsStorage.d.ts +0 -24
- package/lib/cjs/core-react/uisettings/LocalSettingsStorage.d.ts.map +0 -1
- package/lib/cjs/core-react/uisettings/LocalSettingsStorage.js.map +0 -1
- package/lib/cjs/core-react/uisettings/SessionSettingsStorage.d.ts +0 -24
- package/lib/cjs/core-react/uisettings/SessionSettingsStorage.d.ts.map +0 -1
- package/lib/cjs/core-react/uisettings/SessionSettingsStorage.js +0 -56
- package/lib/cjs/core-react/uisettings/SessionSettingsStorage.js.map +0 -1
- package/lib/cjs/core-react/uisettings/UiSetting.d.ts.map +0 -1
- package/lib/cjs/core-react/uisettings/UiSetting.js.map +0 -1
- package/lib/cjs/core-react/uisettings/UiSettingsStorage.d.ts +0 -33
- package/lib/cjs/core-react/uisettings/UiSettingsStorage.d.ts.map +0 -1
- package/lib/cjs/core-react/uisettings/UiSettingsStorage.js +0 -22
- package/lib/cjs/core-react/uisettings/UiSettingsStorage.js.map +0 -1
- package/lib/esm/core-react/uisettings/LocalSettingsStorage.d.ts +0 -24
- package/lib/esm/core-react/uisettings/LocalSettingsStorage.d.ts.map +0 -1
- package/lib/esm/core-react/uisettings/LocalSettingsStorage.js.map +0 -1
- package/lib/esm/core-react/uisettings/SessionSettingsStorage.d.ts +0 -24
- package/lib/esm/core-react/uisettings/SessionSettingsStorage.d.ts.map +0 -1
- package/lib/esm/core-react/uisettings/SessionSettingsStorage.js +0 -51
- package/lib/esm/core-react/uisettings/SessionSettingsStorage.js.map +0 -1
- package/lib/esm/core-react/uisettings/UiSetting.d.ts.map +0 -1
- package/lib/esm/core-react/uisettings/UiSetting.js.map +0 -1
- package/lib/esm/core-react/uisettings/UiSettingsStorage.d.ts +0 -33
- package/lib/esm/core-react/uisettings/UiSettingsStorage.d.ts.map +0 -1
- package/lib/esm/core-react/uisettings/UiSettingsStorage.js +0 -19
- package/lib/esm/core-react/uisettings/UiSettingsStorage.js.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module UiStateStorage
|
|
3
|
+
*/
|
|
4
|
+
/** Interface for getting, saving and deleting settings.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface UiStateStorage {
|
|
8
|
+
getSetting(settingNamespace: string, settingName: string): Promise<UiStateStorageResult>;
|
|
9
|
+
saveSetting(settingNamespace: string, settingName: string, setting: any): Promise<UiStateStorageResult>;
|
|
10
|
+
deleteSetting(settingNamespace: string, settingName: string): Promise<UiStateStorageResult>;
|
|
11
|
+
}
|
|
12
|
+
/** Enum for [[UiStateStorage]] status.
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export declare enum UiStateStorageStatus {
|
|
16
|
+
Success = 0,
|
|
17
|
+
NotFound = 1,
|
|
18
|
+
UnknownError = 2,
|
|
19
|
+
Uninitialized = 3,
|
|
20
|
+
AuthorizationError = 4
|
|
21
|
+
}
|
|
22
|
+
/** Interface for result of accessing UI state setting in [[UiStateStorage]].
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export interface UiStateStorageResult {
|
|
26
|
+
status: UiStateStorageStatus;
|
|
27
|
+
setting?: any;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=UiStateStorage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UiStateStorage.d.ts","sourceRoot":"","sources":["../../../../src/core-react/uistate/UiStateStorage.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,UAAU,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACzF,WAAW,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACxG,aAAa,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAC7F;AAED;;GAEG;AACH,oBAAY,oBAAoB;IAC9B,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,YAAY,IAAI;IAChB,aAAa,IAAI;IACjB,kBAAkB,IAAI;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,OAAO,CAAC,EAAE,GAAG,CAAC;CACf"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/** @packageDocumentation
|
|
6
|
+
* @module UiStateStorage
|
|
7
|
+
*/
|
|
8
|
+
/** Enum for [[UiStateStorage]] status.
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export var UiStateStorageStatus;
|
|
12
|
+
(function (UiStateStorageStatus) {
|
|
13
|
+
UiStateStorageStatus[UiStateStorageStatus["Success"] = 0] = "Success";
|
|
14
|
+
UiStateStorageStatus[UiStateStorageStatus["NotFound"] = 1] = "NotFound";
|
|
15
|
+
UiStateStorageStatus[UiStateStorageStatus["UnknownError"] = 2] = "UnknownError";
|
|
16
|
+
UiStateStorageStatus[UiStateStorageStatus["Uninitialized"] = 3] = "Uninitialized";
|
|
17
|
+
UiStateStorageStatus[UiStateStorageStatus["AuthorizationError"] = 4] = "AuthorizationError";
|
|
18
|
+
})(UiStateStorageStatus || (UiStateStorageStatus = {}));
|
|
19
|
+
//# sourceMappingURL=UiStateStorage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UiStateStorage.js","sourceRoot":"","sources":["../../../../src/core-react/uistate/UiStateStorage.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH;;GAEG;AACH,MAAM,CAAN,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC9B,qEAAW,CAAA;IACX,uEAAY,CAAA;IACZ,+EAAgB,CAAA;IAChB,iFAAiB,CAAA;IACjB,2FAAsB,CAAA;AACxB,CAAC,EANW,oBAAoB,KAApB,oBAAoB,QAM/B","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module UiStateStorage\r\n */\r\n\r\n/** Interface for getting, saving and deleting settings.\r\n * @public\r\n */\r\nexport interface UiStateStorage {\r\n getSetting(settingNamespace: string, settingName: string): Promise<UiStateStorageResult>;\r\n saveSetting(settingNamespace: string, settingName: string, setting: any): Promise<UiStateStorageResult>;\r\n deleteSetting(settingNamespace: string, settingName: string): Promise<UiStateStorageResult>;\r\n}\r\n\r\n/** Enum for [[UiStateStorage]] status.\r\n * @public\r\n */\r\nexport enum UiStateStorageStatus {\r\n Success = 0,\r\n NotFound = 1,\r\n UnknownError = 2,\r\n Uninitialized = 3,\r\n AuthorizationError = 4,\r\n}\r\n\r\n/** Interface for result of accessing UI state setting in [[UiStateStorage]].\r\n * @public\r\n */\r\nexport interface UiStateStorageResult {\r\n status: UiStateStorageStatus;\r\n setting?: any;\r\n}\r\n"]}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @module Utilities
|
|
3
3
|
*/
|
|
4
4
|
import { BeUiEvent } from "@itwin/core-bentley";
|
|
5
|
-
/**
|
|
6
|
-
* @public
|
|
5
|
+
/** iTwin.js UI UiEvent class is a subclass of BeEvent with argument type safety.
|
|
6
|
+
* @public @deprecated Use UiEvent in appui-abstract instead
|
|
7
7
|
*/
|
|
8
8
|
export declare class UiEvent<TEventArgs> extends BeUiEvent<TEventArgs> {
|
|
9
9
|
}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module Utilities
|
|
7
7
|
*/
|
|
8
8
|
import { BeUiEvent } from "@itwin/core-bentley";
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
9
|
+
/** iTwin.js UI UiEvent class is a subclass of BeEvent with argument type safety.
|
|
10
|
+
* @public @deprecated Use UiEvent in appui-abstract instead
|
|
11
11
|
*/
|
|
12
12
|
export class UiEvent extends BeUiEvent {
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiEvent.js","sourceRoot":"","sources":["../../../../src/core-react/utils/UiEvent.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD;;GAEG;AACH,MAAM,OAAO,OAAoB,SAAQ,SAAqB;CAAI","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Utilities\r\n */\r\n\r\nimport { BeUiEvent } from \"@itwin/core-bentley\";\r\n\r\n/**
|
|
1
|
+
{"version":3,"file":"UiEvent.js","sourceRoot":"","sources":["../../../../src/core-react/utils/UiEvent.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD;;GAEG;AACH,MAAM,OAAO,OAAoB,SAAQ,SAAqB;CAAI","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Utilities\r\n */\r\n\r\nimport { BeUiEvent } from \"@itwin/core-bentley\";\r\n\r\n/** iTwin.js UI UiEvent class is a subclass of BeEvent with argument type safety.\r\n * @public @deprecated Use UiEvent in appui-abstract instead\r\n */\r\nexport class UiEvent<TEventArgs> extends BeUiEvent<TEventArgs> { }\r\n"]}
|
package/lib/esm/core-react.d.ts
CHANGED
|
@@ -110,10 +110,9 @@ export { TreeBranch, TreeBranchProps } from "./core-react/tree/Branch";
|
|
|
110
110
|
export { TreeNode, TreeNodeProps, NodeCheckboxProps, NodeCheckboxRenderer, NodeCheckboxRenderProps } from "./core-react/tree/Node";
|
|
111
111
|
export { Tree, TreeProps } from "./core-react/tree/Tree";
|
|
112
112
|
export { TreeNodePlaceholder, TreeNodePlaceholderProps } from "./core-react/tree/Placeholder";
|
|
113
|
-
export * from "./core-react/
|
|
114
|
-
export * from "./core-react/
|
|
115
|
-
export * from "./core-react/
|
|
116
|
-
export * from "./core-react/uisettings/SessionSettingsStorage";
|
|
113
|
+
export * from "./core-react/uistate/UiStateEntry";
|
|
114
|
+
export * from "./core-react/uistate/UiStateStorage";
|
|
115
|
+
export * from "./core-react/uistate/LocalStateStorage";
|
|
117
116
|
export * from "./core-react/utils/IconHelper";
|
|
118
117
|
export * from "./core-react/utils/Point";
|
|
119
118
|
export * from "./core-react/utils/PointProps";
|
|
@@ -265,7 +264,7 @@ export * from "./core-react/utils/hooks/useWidgetOpacityContext";
|
|
|
265
264
|
* Presentation React components for working with a Tree.
|
|
266
265
|
*/
|
|
267
266
|
/**
|
|
268
|
-
* @docs-group-description
|
|
267
|
+
* @docs-group-description UiStateStorage
|
|
269
268
|
* Interfaces and classes for working with persistent UI settings.
|
|
270
269
|
*/
|
|
271
270
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-react.d.ts","sourceRoot":"","sources":["../../src/core-react.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Ac,8CAA8C,CAAC;AAC7D,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,kDAAkD,CAAC;AAEjE;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG"}
|
package/lib/esm/core-react.js
CHANGED
|
@@ -115,10 +115,9 @@ export { TreeBranch } from "./core-react/tree/Branch";
|
|
|
115
115
|
export { TreeNode } from "./core-react/tree/Node";
|
|
116
116
|
export { Tree } from "./core-react/tree/Tree";
|
|
117
117
|
export { TreeNodePlaceholder } from "./core-react/tree/Placeholder";
|
|
118
|
-
export * from "./core-react/
|
|
119
|
-
export * from "./core-react/
|
|
120
|
-
export * from "./core-react/
|
|
121
|
-
export * from "./core-react/uisettings/SessionSettingsStorage";
|
|
118
|
+
export * from "./core-react/uistate/UiStateEntry";
|
|
119
|
+
export * from "./core-react/uistate/UiStateStorage";
|
|
120
|
+
export * from "./core-react/uistate/LocalStateStorage";
|
|
122
121
|
export * from "./core-react/utils/IconHelper";
|
|
123
122
|
export * from "./core-react/utils/Point";
|
|
124
123
|
export * from "./core-react/utils/PointProps";
|
|
@@ -270,7 +269,7 @@ export * from "./core-react/utils/hooks/useWidgetOpacityContext";
|
|
|
270
269
|
* Presentation React components for working with a Tree.
|
|
271
270
|
*/
|
|
272
271
|
/**
|
|
273
|
-
* @docs-group-description
|
|
272
|
+
* @docs-group-description UiStateStorage
|
|
274
273
|
* Interfaces and classes for working with persistent UI settings.
|
|
275
274
|
*/
|
|
276
275
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-react.js","sourceRoot":"","sources":["../../src/core-react.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F,gFAAgF;AAEhF,cAAc,qBAAqB,CAAC;AAEpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uCAAuC,CAAC;AACtD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAE7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AAErD,cAAc,wCAAwC,CAAC;AAEvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,0CAA0C,CAAC;AACzD,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2CAA2C,CAAC;AAE1D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AAEjD,cAAc,gDAAgD,CAAC;AAE/D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAE9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AAExD,cAAc,0CAA0C,C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CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,6CAA6C,CAAC;AAE5D,cAAc,wCAAwC,CAAC;AACvD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iDAAiD,CAAC;AAChE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,kDAAkD,CAAC;AAEjE;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n// cSpell:ignore focustrap imagecheckbox iconinput hocs numberinput numericinput\r\n\r\nexport * from \"./core-react/UiCore\";\r\n\r\nexport * from \"./core-react/badge/Badge\";\r\nexport * from \"./core-react/badge/BadgeUtilities\";\r\nexport * from \"./core-react/badge/BetaBadge\";\r\nexport * from \"./core-react/badge/NewBadge\";\r\n\r\nexport * from \"./core-react/base/Div\";\r\nexport * from \"./core-react/base/DivWithOutsideClick\";\r\nexport * from \"./core-react/base/Centered\";\r\nexport * from \"./core-react/base/FillCentered\";\r\nexport * from \"./core-react/base/FlexWrapContainer\";\r\nexport * from \"./core-react/base/Gap\";\r\nexport * from \"./core-react/base/PointerEvents\";\r\nexport * from \"./core-react/base/ScrollView\";\r\n\r\nexport * from \"./core-react/button/Button\";\r\nexport * from \"./core-react/button/UnderlinedButton\";\r\n\r\nexport * from \"./core-react/checklistbox/CheckListBox\";\r\n\r\nexport * from \"./core-react/contextmenu/ContextMenu\";\r\nexport * from \"./core-react/contextmenu/ContextMenuDirection\";\r\nexport * from \"./core-react/contextmenu/ContextMenuDivider\";\r\nexport * from \"./core-react/contextmenu/ContextMenuItem\";\r\nexport * from \"./core-react/contextmenu/ContextSubMenu\";\r\nexport * from \"./core-react/contextmenu/GlobalContextMenu\";\r\nexport * from \"./core-react/contextmenu/PopupContextMenu\";\r\n\r\nexport * from \"./core-react/dialog/Dialog\";\r\nexport * from \"./core-react/dialog/DialogButtonDef\";\r\nexport * from \"./core-react/dialog/GlobalDialog\";\r\n\r\nexport * from \"./core-react/elementseparator/ElementSeparator\";\r\n\r\nexport * from \"./core-react/enums/Alignment\";\r\nexport * from \"./core-react/enums/CheckBoxState\";\r\nexport * from \"./core-react/enums/Orientation\";\r\nexport * from \"./core-react/enums/SortDirection\";\r\nexport * from \"./core-react/enums/TimeFormat\";\r\n\r\nexport * from \"./core-react/expandable/ExpandableList\";\r\nexport * from \"./core-react/expandable/ExpandableBlock\";\r\n\r\nexport * from \"./core-react/focus/ItemKeyboardNavigator\";\r\nexport * from \"./core-react/focustrap/FocusTrap\";\r\n\r\nexport * from \"./core-react/form/Field\";\r\nexport * from \"./core-react/form/Form\";\r\n\r\nexport * from \"./core-react/hocs/withIsPressed\";\r\nexport * from \"./core-react/hocs/withOnOutsideClick\";\r\nexport * from \"./core-react/hocs/withTimeout\";\r\n\r\nexport * from \"./core-react/icons/IconComponent\";\r\nexport * from \"./core-react/icons/SvgPath\";\r\nexport * from \"./core-react/icons/SvgSprite\";\r\nexport * from \"./core-react/icons/WebFontIcon\";\r\n\r\nexport * from \"./core-react/autosuggest/AutoSuggest\";\r\n\r\nexport * from \"./core-react/checkbox/Checkbox\";\r\n\r\nexport * from \"./core-react/imagecheckbox/ImageCheckBox\";\r\n\r\nexport * from \"./core-react/inputs/Input\";\r\nexport * from \"./core-react/inputs/InputLabel\";\r\nexport * from \"./core-react/inputs/InputStatus\";\r\nexport * from \"./core-react/inputs/iconinput/IconInput\";\r\nexport * from \"./core-react/inputs/LabeledComponentProps\";\r\nexport * from \"./core-react/inputs/LabeledInput\";\r\nexport * from \"./core-react/inputs/LabeledTextarea\";\r\nexport * from \"./core-react/inputs/numberinput/NumberInput\";\r\nexport * from \"./core-react/inputs/Textarea\";\r\n\r\nexport * from \"./core-react/listbox/Listbox\";\r\n\r\nexport * from \"./core-react/loading/LoadingBar\";\r\nexport * from \"./core-react/loading/LoadingPrompt\";\r\nexport * from \"./core-react/loading/LoadingSpinner\";\r\nexport * from \"./core-react/loading/LoadingStatus\";\r\nexport * from \"./core-react/loading/Spinner\";\r\n\r\nexport * from \"./core-react/messagebox/MessageBox\";\r\nexport * from \"./core-react/messagebox/MessageSeverity\";\r\n\r\nexport * from \"./core-react/notification/MessageRenderer\";\r\nexport * from \"./core-react/notification/MessageType\";\r\n\r\nexport * from \"./core-react/popup/Popup\";\r\n\r\nexport * from \"./core-react/progress-indicators/ProgressBar\";\r\nexport * from \"./core-react/progress-indicators/ProgressSpinner\";\r\n\r\nexport * from \"./core-react/radialmenu/RadialMenu\";\r\nexport * from \"./core-react/radialmenu/Annulus\";\r\nexport * from \"./core-react/radio/Radio\";\r\n\r\nexport * from \"./core-react/select/LabeledSelect\";\r\nexport * from \"./core-react/select/Select\";\r\nexport * from \"./core-react/select/ThemedSelect\";\r\nexport * from \"./core-react/select/LabeledThemedSelect\";\r\nexport * from \"./core-react/searchbox/SearchBox\";\r\n\r\nexport * from \"./core-react/settings/SettingsManager\";\r\nexport * from \"./core-react/settings/SettingsContainer\";\r\n\r\nexport * from \"./core-react/slider/Slider\";\r\n\r\nexport * from \"./core-react/splitbutton/SplitButton\";\r\n\r\nexport * from \"./core-react/tabs/HorizontalTabs\";\r\nexport * from \"./core-react/tabs/VerticalTabs\";\r\nexport * from \"./core-react/tabs/Tabs\";\r\n\r\nexport * from \"./core-react/text/BodyText\";\r\nexport * from \"./core-react/text/BlockText\";\r\nexport * from \"./core-react/text/DisabledText\";\r\nexport * from \"./core-react/text/FilteredText\";\r\nexport * from \"./core-react/text/Headline\";\r\nexport * from \"./core-react/text/LeadingText\";\r\nexport * from \"./core-react/text/LeadingText2\";\r\nexport * from \"./core-react/text/MutedText\";\r\nexport * from \"./core-react/text/SmallText\";\r\nexport * from \"./core-react/text/Subheading\";\r\nexport * from \"./core-react/text/Subheading2\";\r\nexport * from \"./core-react/text/StyledText\";\r\nexport * from \"./core-react/text/TextProps\";\r\nexport * from \"./core-react/text/Title\";\r\nexport * from \"./core-react/text/Title2\";\r\n\r\nexport * from \"./core-react/tiles/FeaturedTile\";\r\nexport * from \"./core-react/tiles/MinimalFeaturedTile\";\r\nexport * from \"./core-react/tiles/MinimalTile\";\r\nexport * from \"./core-react/tiles/Tile\";\r\n\r\nexport * from \"./core-react/toggle/Toggle\";\r\nexport * from \"./core-react/toggle/LabeledToggle\";\r\n\r\nexport * from \"./core-react/tooltip/Tooltip\";\r\n\r\nexport { ExpansionToggle, ExpansionToggleProps } from \"./core-react/tree/ExpansionToggle\";\r\nexport { TreeBranch, TreeBranchProps } from \"./core-react/tree/Branch\";\r\nexport { TreeNode, TreeNodeProps, NodeCheckboxProps, NodeCheckboxRenderer, NodeCheckboxRenderProps } from \"./core-react/tree/Node\";\r\nexport { Tree, TreeProps } from \"./core-react/tree/Tree\";\r\nexport { TreeNodePlaceholder, TreeNodePlaceholderProps } from \"./core-react/tree/Placeholder\";\r\n\r\nexport * from \"./core-react/uisettings/UiSetting\";\r\nexport * from \"./core-react/uisettings/UiSettingsStorage\";\r\nexport * from \"./core-react/uisettings/LocalSettingsStorage\";\r\nexport * from \"./core-react/uisettings/SessionSettingsStorage\";\r\n\r\nexport * from \"./core-react/utils/IconHelper\";\r\nexport * from \"./core-react/utils/Point\";\r\nexport * from \"./core-react/utils/PointProps\";\r\nexport * from \"./core-react/utils/Props\";\r\nexport * from \"./core-react/utils/Rectangle\";\r\nexport * from \"./core-react/utils/Size\";\r\nexport * from \"./core-react/utils/Timer\";\r\nexport * from \"./core-react/utils/UiEvent\";\r\nexport * from \"./core-react/utils/UiGeometry\";\r\nexport * from \"./core-react/utils/flattenChildren\";\r\nexport * from \"./core-react/utils/getBestBWContrastColor\";\r\nexport * from \"./core-react/utils/getCssVariable\";\r\nexport * from \"./core-react/utils/getDisplayName\";\r\nexport * from \"./core-react/utils/getUserColor\";\r\nexport * from \"./core-react/utils/shallowDiffers\";\r\nexport * from \"./core-react/utils/typeUtils\";\r\nexport * from \"./core-react/utils/isPromiseLike\";\r\nexport * from \"./core-react/utils/ScrollPositionMaintainer\";\r\n\r\nexport * from \"./core-react/utils/hooks/useDisposable\";\r\nexport * from \"./core-react/utils/hooks/useEffectSkipFirst\";\r\nexport * from \"./core-react/utils/hooks/useEventListener\";\r\nexport * from \"./core-react/utils/hooks/ResizeObserverPolyfill\";\r\nexport * from \"./core-react/utils/hooks/useOnOutsideClick\";\r\nexport * from \"./core-react/utils/hooks/useProximityToMouse\";\r\nexport * from \"./core-react/utils/hooks/useRefEffect\";\r\nexport * from \"./core-react/utils/hooks/useRefs\";\r\nexport * from \"./core-react/utils/hooks/useRefState\";\r\nexport * from \"./core-react/utils/hooks/useResizeObserver\";\r\nexport * from \"./core-react/utils/hooks/useTargeted\";\r\nexport * from \"./core-react/utils/hooks/useWidgetOpacityContext\";\r\n\r\n/** @docs-package-description\r\n * The core-react package contains general purpose React components, such as Dialog, MessageBox, SearchBox, RadialMenu and SplitButton.\r\n * For more information, see [learning about core-react]($docs/learning/ui/core/index.md).\r\n */\r\n/**\r\n * @docs-group-description AutoSuggest\r\n * Component for input with an auto-suggestion dropdown.\r\n */\r\n/**\r\n * @docs-group-description Base\r\n * Low-level classes and components for building application UI.\r\n */\r\n/**\r\n * @docs-group-description Button\r\n * Components for working with various Buttons.\r\n */\r\n/**\r\n * @docs-group-description Checkbox\r\n * Component is a wrapper for the `<input type=\"checkbox\">` HTML element.\r\n */\r\n/**\r\n * @docs-group-description CheckListBox\r\n * Components for working with a Check listbox.\r\n */\r\n/**\r\n * @docs-group-description Common\r\n * Common classes and enums used across various UI components.\r\n */\r\n/**\r\n * @docs-group-description ContextMenu\r\n * Components for working with a Context Menu.\r\n */\r\n/**\r\n * @docs-group-description Dialog\r\n * Components for working with a Dialog or MessageBox.\r\n */\r\n/**\r\n * @docs-group-description ElementSeparator\r\n * Components for working with a ElementSeparator.\r\n */\r\n/**\r\n * @docs-group-description Expandable\r\n * Components for working with a ExpandableBlock or ExpandableList.\r\n */\r\n/**\r\n * @docs-group-description Form\r\n * Components used to create a Form using supplied properties to specify fields.\r\n */\r\n/**\r\n * @docs-group-description Icon\r\n * Component that renders core-react icon when given an icon name or SVG source.\r\n */\r\n/**\r\n * @docs-group-description Inputs\r\n * Components for working with input controls, such as Input, IconInput, NumberInput and Textarea.\r\n */\r\n/**\r\n * @docs-group-description Loading\r\n * Components for working with Loading spinners and progress indicators and bars.\r\n */\r\n/**\r\n * @docs-group-description Notification\r\n * Components for working with messages and tooltips.\r\n */\r\n/**\r\n * @docs-group-description Popup\r\n * Components for working with a Popup.\r\n */\r\n/**\r\n * @docs-group-description RadialMenu\r\n * Components for working with a RadialMenu.\r\n */\r\n/**\r\n * @docs-group-description Radio\r\n * Component is a wrapper for the `<input type=\"radio\">` HTML element.\r\n */\r\n/**\r\n * @docs-group-description SearchBox\r\n * Components for working with a SearchBox.\r\n */\r\n/**\r\n * @docs-group-description Select\r\n * Component is a wrapper for the `<select>` HTML element.\r\n */\r\n/**\r\n * @docs-group-description Settings\r\n * Manager and UI Components that allow users to modify settings for different packages and extensions.\r\n */\r\n/**\r\n * @docs-group-description Slider\r\n * Component displays a range slider with thumbs for changing the value.\r\n */\r\n/**\r\n * @docs-group-description SplitButton\r\n * Components for working with a SplitButton.\r\n */\r\n/**\r\n * @docs-group-description Tabs\r\n * Components for working with horizontal or vertical tabs.\r\n */\r\n/**\r\n * @docs-group-description Text\r\n * Components for working with styled text.\r\n */\r\n/**\r\n * @docs-group-description Tiles\r\n * Components for a container rendering elements that can be grouped together.\r\n */\r\n/**\r\n * @docs-group-description Toggle\r\n * Components for working with a Toggle switch.\r\n */\r\n/**\r\n * @docs-group-description Tooltip\r\n * Components for working with a Tooltip.\r\n */\r\n/**\r\n * @docs-group-description Tree\r\n * Presentation React components for working with a Tree.\r\n */\r\n/**\r\n * @docs-group-description UiSettings\r\n * Interfaces and classes for working with persistent UI settings.\r\n */\r\n/**\r\n * @docs-group-description Utilities\r\n * Various utility classes, functions and React hooks for working with a UI.\r\n */\r\n"]}
|
|
1
|
+
{"version":3,"file":"core-react.js","sourceRoot":"","sources":["../../src/core-react.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F,gFAAgF;AAEhF,cAAc,qBAAqB,CAAC;AAEpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uCAAuC,CAAC;AACtD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;A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AAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,kDAAkD,CAAC;AAEjE;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n// cSpell:ignore focustrap imagecheckbox iconinput hocs numberinput numericinput\r\n\r\nexport * from \"./core-react/UiCore\";\r\n\r\nexport * from \"./core-react/badge/Badge\";\r\nexport * from \"./core-react/badge/BadgeUtilities\";\r\nexport * from \"./core-react/badge/BetaBadge\";\r\nexport * from \"./core-react/badge/NewBadge\";\r\n\r\nexport * from \"./core-react/base/Div\";\r\nexport * from \"./core-react/base/DivWithOutsideClick\";\r\nexport * from \"./core-react/base/Centered\";\r\nexport * from \"./core-react/base/FillCentered\";\r\nexport * from \"./core-react/base/FlexWrapContainer\";\r\nexport * from \"./core-react/base/Gap\";\r\nexport * from \"./core-react/base/PointerEvents\";\r\nexport * from \"./core-react/base/ScrollView\";\r\n\r\nexport * from \"./core-react/button/Button\";\r\nexport * from \"./core-react/button/UnderlinedButton\";\r\n\r\nexport * from \"./core-react/checklistbox/CheckListBox\";\r\n\r\nexport * from \"./core-react/contextmenu/ContextMenu\";\r\nexport * from \"./core-react/contextmenu/ContextMenuDirection\";\r\nexport * from \"./core-react/contextmenu/ContextMenuDivider\";\r\nexport * from \"./core-react/contextmenu/ContextMenuItem\";\r\nexport * from \"./core-react/contextmenu/ContextSubMenu\";\r\nexport * from \"./core-react/contextmenu/GlobalContextMenu\";\r\nexport * from \"./core-react/contextmenu/PopupContextMenu\";\r\n\r\nexport * from \"./core-react/dialog/Dialog\";\r\nexport * from \"./core-react/dialog/DialogButtonDef\";\r\nexport * from \"./core-react/dialog/GlobalDialog\";\r\n\r\nexport * from \"./core-react/elementseparator/ElementSeparator\";\r\n\r\nexport * from \"./core-react/enums/Alignment\";\r\nexport * from \"./core-react/enums/CheckBoxState\";\r\nexport * from \"./core-react/enums/Orientation\";\r\nexport * from \"./core-react/enums/SortDirection\";\r\nexport * from \"./core-react/enums/TimeFormat\";\r\n\r\nexport * from \"./core-react/expandable/ExpandableList\";\r\nexport * from \"./core-react/expandable/ExpandableBlock\";\r\n\r\nexport * from \"./core-react/focus/ItemKeyboardNavigator\";\r\nexport * from \"./core-react/focustrap/FocusTrap\";\r\n\r\nexport * from \"./core-react/form/Field\";\r\nexport * from \"./core-react/form/Form\";\r\n\r\nexport * from \"./core-react/hocs/withIsPressed\";\r\nexport * from \"./core-react/hocs/withOnOutsideClick\";\r\nexport * from \"./core-react/hocs/withTimeout\";\r\n\r\nexport * from \"./core-react/icons/IconComponent\";\r\nexport * from \"./core-react/icons/SvgPath\";\r\nexport * from \"./core-react/icons/SvgSprite\";\r\nexport * from \"./core-react/icons/WebFontIcon\";\r\n\r\nexport * from \"./core-react/autosuggest/AutoSuggest\";\r\n\r\nexport * from \"./core-react/checkbox/Checkbox\";\r\n\r\nexport * from \"./core-react/imagecheckbox/ImageCheckBox\";\r\n\r\nexport * from \"./core-react/inputs/Input\";\r\nexport * from \"./core-react/inputs/InputLabel\";\r\nexport * from \"./core-react/inputs/InputStatus\";\r\nexport * from \"./core-react/inputs/iconinput/IconInput\";\r\nexport * from \"./core-react/inputs/LabeledComponentProps\";\r\nexport * from \"./core-react/inputs/LabeledInput\";\r\nexport * from \"./core-react/inputs/LabeledTextarea\";\r\nexport * from \"./core-react/inputs/numberinput/NumberInput\";\r\nexport * from \"./core-react/inputs/Textarea\";\r\n\r\nexport * from \"./core-react/listbox/Listbox\";\r\n\r\nexport * from \"./core-react/loading/LoadingBar\";\r\nexport * from \"./core-react/loading/LoadingPrompt\";\r\nexport * from \"./core-react/loading/LoadingSpinner\";\r\nexport * from \"./core-react/loading/LoadingStatus\";\r\nexport * from \"./core-react/loading/Spinner\";\r\n\r\nexport * from \"./core-react/messagebox/MessageBox\";\r\nexport * from \"./core-react/messagebox/MessageSeverity\";\r\n\r\nexport * from \"./core-react/notification/MessageRenderer\";\r\nexport * from \"./core-react/notification/MessageType\";\r\n\r\nexport * from \"./core-react/popup/Popup\";\r\n\r\nexport * from \"./core-react/progress-indicators/ProgressBar\";\r\nexport * from \"./core-react/progress-indicators/ProgressSpinner\";\r\n\r\nexport * from \"./core-react/radialmenu/RadialMenu\";\r\nexport * from \"./core-react/radialmenu/Annulus\";\r\nexport * from \"./core-react/radio/Radio\";\r\n\r\nexport * from \"./core-react/select/LabeledSelect\";\r\nexport * from \"./core-react/select/Select\";\r\nexport * from \"./core-react/select/ThemedSelect\";\r\nexport * from \"./core-react/select/LabeledThemedSelect\";\r\nexport * from \"./core-react/searchbox/SearchBox\";\r\n\r\nexport * from \"./core-react/settings/SettingsManager\";\r\nexport * from \"./core-react/settings/SettingsContainer\";\r\n\r\nexport * from \"./core-react/slider/Slider\";\r\n\r\nexport * from \"./core-react/splitbutton/SplitButton\";\r\n\r\nexport * from \"./core-react/tabs/HorizontalTabs\";\r\nexport * from \"./core-react/tabs/VerticalTabs\";\r\nexport * from \"./core-react/tabs/Tabs\";\r\n\r\nexport * from \"./core-react/text/BodyText\";\r\nexport * from \"./core-react/text/BlockText\";\r\nexport * from \"./core-react/text/DisabledText\";\r\nexport * from \"./core-react/text/FilteredText\";\r\nexport * from \"./core-react/text/Headline\";\r\nexport * from \"./core-react/text/LeadingText\";\r\nexport * from \"./core-react/text/LeadingText2\";\r\nexport * from \"./core-react/text/MutedText\";\r\nexport * from \"./core-react/text/SmallText\";\r\nexport * from \"./core-react/text/Subheading\";\r\nexport * from \"./core-react/text/Subheading2\";\r\nexport * from \"./core-react/text/StyledText\";\r\nexport * from \"./core-react/text/TextProps\";\r\nexport * from \"./core-react/text/Title\";\r\nexport * from \"./core-react/text/Title2\";\r\n\r\nexport * from \"./core-react/tiles/FeaturedTile\";\r\nexport * from \"./core-react/tiles/MinimalFeaturedTile\";\r\nexport * from \"./core-react/tiles/MinimalTile\";\r\nexport * from \"./core-react/tiles/Tile\";\r\n\r\nexport * from \"./core-react/toggle/Toggle\";\r\nexport * from \"./core-react/toggle/LabeledToggle\";\r\n\r\nexport * from \"./core-react/tooltip/Tooltip\";\r\n\r\nexport { ExpansionToggle, ExpansionToggleProps } from \"./core-react/tree/ExpansionToggle\";\r\nexport { TreeBranch, TreeBranchProps } from \"./core-react/tree/Branch\";\r\nexport { TreeNode, TreeNodeProps, NodeCheckboxProps, NodeCheckboxRenderer, NodeCheckboxRenderProps } from \"./core-react/tree/Node\";\r\nexport { Tree, TreeProps } from \"./core-react/tree/Tree\";\r\nexport { TreeNodePlaceholder, TreeNodePlaceholderProps } from \"./core-react/tree/Placeholder\";\r\n\r\nexport * from \"./core-react/uistate/UiStateEntry\";\r\nexport * from \"./core-react/uistate/UiStateStorage\";\r\nexport * from \"./core-react/uistate/LocalStateStorage\";\r\n\r\nexport * from \"./core-react/utils/IconHelper\";\r\nexport * from \"./core-react/utils/Point\";\r\nexport * from \"./core-react/utils/PointProps\";\r\nexport * from \"./core-react/utils/Props\";\r\nexport * from \"./core-react/utils/Rectangle\";\r\nexport * from \"./core-react/utils/Size\";\r\nexport * from \"./core-react/utils/Timer\";\r\nexport * from \"./core-react/utils/UiEvent\";\r\nexport * from \"./core-react/utils/UiGeometry\";\r\nexport * from \"./core-react/utils/flattenChildren\";\r\nexport * from \"./core-react/utils/getBestBWContrastColor\";\r\nexport * from \"./core-react/utils/getCssVariable\";\r\nexport * from \"./core-react/utils/getDisplayName\";\r\nexport * from \"./core-react/utils/getUserColor\";\r\nexport * from \"./core-react/utils/shallowDiffers\";\r\nexport * from \"./core-react/utils/typeUtils\";\r\nexport * from \"./core-react/utils/isPromiseLike\";\r\nexport * from \"./core-react/utils/ScrollPositionMaintainer\";\r\n\r\nexport * from \"./core-react/utils/hooks/useDisposable\";\r\nexport * from \"./core-react/utils/hooks/useEffectSkipFirst\";\r\nexport * from \"./core-react/utils/hooks/useEventListener\";\r\nexport * from \"./core-react/utils/hooks/ResizeObserverPolyfill\";\r\nexport * from \"./core-react/utils/hooks/useOnOutsideClick\";\r\nexport * from \"./core-react/utils/hooks/useProximityToMouse\";\r\nexport * from \"./core-react/utils/hooks/useRefEffect\";\r\nexport * from \"./core-react/utils/hooks/useRefs\";\r\nexport * from \"./core-react/utils/hooks/useRefState\";\r\nexport * from \"./core-react/utils/hooks/useResizeObserver\";\r\nexport * from \"./core-react/utils/hooks/useTargeted\";\r\nexport * from \"./core-react/utils/hooks/useWidgetOpacityContext\";\r\n\r\n/** @docs-package-description\r\n * The core-react package contains general purpose React components, such as Dialog, MessageBox, SearchBox, RadialMenu and SplitButton.\r\n * For more information, see [learning about core-react]($docs/learning/ui/core/index.md).\r\n */\r\n/**\r\n * @docs-group-description AutoSuggest\r\n * Component for input with an auto-suggestion dropdown.\r\n */\r\n/**\r\n * @docs-group-description Base\r\n * Low-level classes and components for building application UI.\r\n */\r\n/**\r\n * @docs-group-description Button\r\n * Components for working with various Buttons.\r\n */\r\n/**\r\n * @docs-group-description Checkbox\r\n * Component is a wrapper for the `<input type=\"checkbox\">` HTML element.\r\n */\r\n/**\r\n * @docs-group-description CheckListBox\r\n * Components for working with a Check listbox.\r\n */\r\n/**\r\n * @docs-group-description Common\r\n * Common classes and enums used across various UI components.\r\n */\r\n/**\r\n * @docs-group-description ContextMenu\r\n * Components for working with a Context Menu.\r\n */\r\n/**\r\n * @docs-group-description Dialog\r\n * Components for working with a Dialog or MessageBox.\r\n */\r\n/**\r\n * @docs-group-description ElementSeparator\r\n * Components for working with a ElementSeparator.\r\n */\r\n/**\r\n * @docs-group-description Expandable\r\n * Components for working with a ExpandableBlock or ExpandableList.\r\n */\r\n/**\r\n * @docs-group-description Form\r\n * Components used to create a Form using supplied properties to specify fields.\r\n */\r\n/**\r\n * @docs-group-description Icon\r\n * Component that renders core-react icon when given an icon name or SVG source.\r\n */\r\n/**\r\n * @docs-group-description Inputs\r\n * Components for working with input controls, such as Input, IconInput, NumberInput and Textarea.\r\n */\r\n/**\r\n * @docs-group-description Loading\r\n * Components for working with Loading spinners and progress indicators and bars.\r\n */\r\n/**\r\n * @docs-group-description Notification\r\n * Components for working with messages and tooltips.\r\n */\r\n/**\r\n * @docs-group-description Popup\r\n * Components for working with a Popup.\r\n */\r\n/**\r\n * @docs-group-description RadialMenu\r\n * Components for working with a RadialMenu.\r\n */\r\n/**\r\n * @docs-group-description Radio\r\n * Component is a wrapper for the `<input type=\"radio\">` HTML element.\r\n */\r\n/**\r\n * @docs-group-description SearchBox\r\n * Components for working with a SearchBox.\r\n */\r\n/**\r\n * @docs-group-description Select\r\n * Component is a wrapper for the `<select>` HTML element.\r\n */\r\n/**\r\n * @docs-group-description Settings\r\n * Manager and UI Components that allow users to modify settings for different packages and extensions.\r\n */\r\n/**\r\n * @docs-group-description Slider\r\n * Component displays a range slider with thumbs for changing the value.\r\n */\r\n/**\r\n * @docs-group-description SplitButton\r\n * Components for working with a SplitButton.\r\n */\r\n/**\r\n * @docs-group-description Tabs\r\n * Components for working with horizontal or vertical tabs.\r\n */\r\n/**\r\n * @docs-group-description Text\r\n * Components for working with styled text.\r\n */\r\n/**\r\n * @docs-group-description Tiles\r\n * Components for a container rendering elements that can be grouped together.\r\n */\r\n/**\r\n * @docs-group-description Toggle\r\n * Components for working with a Toggle switch.\r\n */\r\n/**\r\n * @docs-group-description Tooltip\r\n * Components for working with a Tooltip.\r\n */\r\n/**\r\n * @docs-group-description Tree\r\n * Presentation React components for working with a Tree.\r\n */\r\n/**\r\n * @docs-group-description UiStateStorage\r\n * Interfaces and classes for working with persistent UI settings.\r\n */\r\n/**\r\n * @docs-group-description Utilities\r\n * Various utility classes, functions and React hooks for working with a UI.\r\n */\r\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/core-react",
|
|
3
|
-
"version": "3.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
|
+
"description": "iTwin.js UI core components",
|
|
5
5
|
"main": "lib/cjs/core-react.js",
|
|
6
6
|
"module": "lib/esm/core-react.js",
|
|
7
7
|
"typings": "lib/cjs/core-react",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "https://github.com/
|
|
12
|
+
"url": "https://github.com/iTwin/itwinjs-core/tree/master/ui/core-react"
|
|
13
13
|
},
|
|
14
14
|
"keywords": [
|
|
15
15
|
"Bentley",
|
|
@@ -23,9 +23,8 @@
|
|
|
23
23
|
"url": "http://www.bentley.com"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@itwin/
|
|
27
|
-
"@itwin/core-
|
|
28
|
-
"@itwin/appui-abstract": "^3.0.0-extension.0",
|
|
26
|
+
"@itwin/appui-abstract": "^3.0.1",
|
|
27
|
+
"@itwin/core-bentley": "^3.0.1",
|
|
29
28
|
"react": "^17.0.0",
|
|
30
29
|
"react-dom": "^17.0.0"
|
|
31
30
|
},
|
|
@@ -34,14 +33,14 @@
|
|
|
34
33
|
"NOTE: All tools used by scripts in this package must be listed as devDependencies"
|
|
35
34
|
],
|
|
36
35
|
"devDependencies": {
|
|
37
|
-
"@itwin/
|
|
38
|
-
"@itwin/
|
|
39
|
-
"@itwin/
|
|
40
|
-
"@itwin/
|
|
41
|
-
"@itwin/core-i18n": "3.0.
|
|
42
|
-
"@itwin/
|
|
36
|
+
"@itwin/appui-abstract": "3.0.1",
|
|
37
|
+
"@itwin/build-tools": "3.0.1",
|
|
38
|
+
"@itwin/core-bentley": "3.0.1",
|
|
39
|
+
"@itwin/core-common": "3.0.1",
|
|
40
|
+
"@itwin/core-i18n": "3.0.1",
|
|
41
|
+
"@itwin/eslint-plugin": "3.0.1",
|
|
43
42
|
"@testing-library/react": "^12.0.0",
|
|
44
|
-
"@testing-library/react-hooks": "^
|
|
43
|
+
"@testing-library/react-hooks": "^7.0.2",
|
|
45
44
|
"@testing-library/user-event": "^13.2.1",
|
|
46
45
|
"@types/chai": "^4.1.4",
|
|
47
46
|
"@types/chai-as-promised": "^7",
|
|
@@ -52,11 +51,10 @@
|
|
|
52
51
|
"@types/lodash": "^4.14.0",
|
|
53
52
|
"@types/mocha": "^8.2.2",
|
|
54
53
|
"@types/node": "14.14.31",
|
|
55
|
-
"@types/react": "^17.0.
|
|
54
|
+
"@types/react": "^17.0.37",
|
|
56
55
|
"@types/react-autosuggest": "10.1.2",
|
|
57
56
|
"@types/react-dom": "^17.0.0",
|
|
58
57
|
"@types/react-select": "3.0.26",
|
|
59
|
-
"@types/testing-library__react-hooks": "^3.1.0",
|
|
60
58
|
"@types/sinon": "^9.0.0",
|
|
61
59
|
"@types/sinon-chai": "^3.2.0",
|
|
62
60
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.3",
|
|
@@ -64,7 +62,7 @@
|
|
|
64
62
|
"chai-as-promised": "^7",
|
|
65
63
|
"chai-jest-snapshot": "^2.0.0",
|
|
66
64
|
"chai-spies": "1.0.0",
|
|
67
|
-
"
|
|
65
|
+
"cpx2": "^3.0.0",
|
|
68
66
|
"enzyme": "^3.4.0",
|
|
69
67
|
"enzyme-to-json": "^3.3.4",
|
|
70
68
|
"eslint": "^7.11.0",
|
|
@@ -82,7 +80,6 @@
|
|
|
82
80
|
"sinon": "^9.0.2",
|
|
83
81
|
"sinon-chai": "^3.2.0",
|
|
84
82
|
"ts-node": "^7.0.1",
|
|
85
|
-
"tsconfig-paths": "^3.3.2",
|
|
86
83
|
"typemoq": "^2.1.0",
|
|
87
84
|
"typescript": "~4.4.0",
|
|
88
85
|
"xmlhttprequest": "^1.8.0"
|
|
@@ -93,13 +90,13 @@
|
|
|
93
90
|
],
|
|
94
91
|
"dependencies": {
|
|
95
92
|
"@bentley/icons-generic-webfont": "^1.0.15",
|
|
96
|
-
"@itwin/itwinui-css": "^0.
|
|
97
|
-
"@itwin/itwinui-react": "
|
|
93
|
+
"@itwin/itwinui-css": "^0.37.0",
|
|
94
|
+
"@itwin/itwinui-react": "~1.28.0",
|
|
98
95
|
"classnames": "^2.3.1",
|
|
99
96
|
"dompurify": "^2.0.12",
|
|
100
97
|
"lodash": "^4.17.10",
|
|
101
98
|
"react-autosuggest": "^10.1.0",
|
|
102
|
-
"react-select": "3.
|
|
99
|
+
"react-select": "3.2.0",
|
|
103
100
|
"resize-observer-polyfill": "1.5.1"
|
|
104
101
|
},
|
|
105
102
|
"nyc": {
|
|
@@ -136,10 +133,11 @@
|
|
|
136
133
|
"pseudolocalize": "betools pseudolocalize --englishDir ./public/locales/en --out ./public/locales/en-PSEUDO",
|
|
137
134
|
"clean": "rimraf lib .rush/temp/package-deps*.json",
|
|
138
135
|
"cover": "nyc npm -s test",
|
|
139
|
-
"docs": "betools docs --includes=../../generated-docs/extract --json=../../generated-docs/ui/core-react/file.json --tsIndexFile=./core-react.ts --onlyJson",
|
|
136
|
+
"docs": "betools docs --includes=../../generated-docs/extract --json=../../generated-docs/ui/core-react/file.json --tsIndexFile=./core-react.ts --onlyJson --excludeGlob=**/declarations.d.ts",
|
|
140
137
|
"lint": "eslint -f visualstudio \"./src/**/*.{ts,tsx}\" 1>&2",
|
|
141
138
|
"extract-api": "betools extract-api --entry=core-react",
|
|
142
139
|
"test": "mocha --config ../.mocharc.json \"./lib/cjs/test/**/*.test.js\"",
|
|
143
140
|
"test:watch": "npm -s test -- --reporter min --watch-extensions ts,tsx --watch"
|
|
144
|
-
}
|
|
141
|
+
},
|
|
142
|
+
"readme": "# @itwin/core-react\r\n\r\nCopyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.\r\n\r\n## Description\r\n\r\nThe __@itwin/core-react__ package contains general purpose React components, such as Dialog, MessageBox, SearchBox, RadialMenu and SplitButton.\r\n\r\n## Documentation\r\n\r\nSee the [iTwin.js](https://www.itwinjs.org) documentation for more information.\r\n"
|
|
145
143
|
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module UiSettings
|
|
3
|
-
*/
|
|
4
|
-
import { UiSettingsResult, UiSettingsStorage } from "./UiSettingsStorage";
|
|
5
|
-
/**
|
|
6
|
-
* Implementation of [[UiSettingsStorage]] using Window.localStorage.
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export declare class LocalSettingsStorage implements UiSettingsStorage {
|
|
10
|
-
w: Window;
|
|
11
|
-
constructor(w?: Window);
|
|
12
|
-
getSetting(settingNamespace: string, settingName: string): Promise<UiSettingsResult>;
|
|
13
|
-
saveSetting(settingNamespace: string, settingName: string, setting: any): Promise<UiSettingsResult>;
|
|
14
|
-
hasSetting(settingNamespace: string, settingName: string): Promise<boolean>;
|
|
15
|
-
deleteSetting(settingNamespace: string, settingName: string): Promise<UiSettingsResult>;
|
|
16
|
-
}
|
|
17
|
-
/** Alias for [[LocalSettingsStorage]]
|
|
18
|
-
* @beta
|
|
19
|
-
* @deprecated use [LocalSettingsStorage]($core-react) instead
|
|
20
|
-
*/
|
|
21
|
-
export declare class LocalUiSettings extends LocalSettingsStorage {
|
|
22
|
-
constructor(w?: Window);
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=LocalSettingsStorage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LocalSettingsStorage.d.ts","sourceRoot":"","sources":["../../../../src/core-react/uisettings/LocalSettingsStorage.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAoB,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE5F;;;GAGG;AACH,qBAAa,oBAAqB,YAAW,iBAAiB;IAEzC,CAAC,EAAE,MAAM;gBAAT,CAAC,GAAE,MAAe;IAExB,UAAU,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAQpF,WAAW,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAKnG,UAAU,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAQ3E,aAAa,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAQrG;AAED;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,oBAAoB;gBAC3C,CAAC,GAAE,MAAe;CAC/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LocalSettingsStorage.js","sourceRoot":"","sources":["../../../../src/core-react/uisettings/LocalSettingsStorage.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2DAA4F;AAE5F;;;GAGG;AACH,MAAa,oBAAoB;IAE/B,YAAmB,IAAY,MAAM;QAAlB,MAAC,GAAD,CAAC,CAAiB;IAAI,CAAC;IAEnC,KAAK,CAAC,UAAU,CAAC,gBAAwB,EAAE,WAAmB;QACnE,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,gBAAgB,IAAI,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,CAAC,OAAO,EAAE,CAAC;IAC9C,CAAC;CACF;AAjCD,oDAiCC;AAED;;;GAGG;AACH,MAAa,eAAgB,SAAQ,oBAAoB;IACvD,YAAY,IAAY,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC9C;AAFD,0CAEC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module UiSettings\r\n */\r\n\r\nimport { UiSettingsResult, UiSettingsStatus, UiSettingsStorage } from \"./UiSettingsStorage\";\r\n\r\n/**\r\n * Implementation of [[UiSettingsStorage]] using Window.localStorage.\r\n * @public\r\n */\r\nexport class LocalSettingsStorage implements UiSettingsStorage {\r\n\r\n constructor(public w: Window = window) { }\r\n\r\n public async getSetting(settingNamespace: string, settingName: string): Promise<UiSettingsResult> {\r\n const setting = this.w.localStorage.getItem(`${settingNamespace}.${settingName}`);\r\n if (setting !== null)\r\n return { status: UiSettingsStatus.Success, setting: JSON.parse(setting) };\r\n else\r\n return { status: UiSettingsStatus.NotFound };\r\n }\r\n\r\n public async saveSetting(settingNamespace: string, settingName: string, setting: any): Promise<UiSettingsResult> {\r\n this.w.localStorage.setItem(`${settingNamespace}.${settingName}`, JSON.stringify(setting));\r\n return { status: UiSettingsStatus.Success };\r\n }\r\n\r\n public async hasSetting(settingNamespace: string, settingName: string): Promise<boolean> {\r\n const name = `${settingNamespace}.${settingName}`;\r\n const setting = this.w.localStorage.getItem(name);\r\n if (setting === null)\r\n return false;\r\n return true;\r\n }\r\n\r\n public async deleteSetting(settingNamespace: string, settingName: string): Promise<UiSettingsResult> {\r\n const name = `${settingNamespace}.${settingName}`;\r\n const setting = this.w.localStorage.getItem(name);\r\n if (setting === null)\r\n return { status: UiSettingsStatus.NotFound };\r\n this.w.localStorage.removeItem(name);\r\n return { status: UiSettingsStatus.Success };\r\n }\r\n}\r\n\r\n/** Alias for [[LocalSettingsStorage]]\r\n * @beta\r\n * @deprecated use [LocalSettingsStorage]($core-react) instead\r\n */\r\nexport class LocalUiSettings extends LocalSettingsStorage {\r\n constructor(w: Window = window) { super(w); }\r\n}\r\n\r\n"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module UiSettings
|
|
3
|
-
*/
|
|
4
|
-
import { UiSettingsResult, UiSettingsStorage } from "./UiSettingsStorage";
|
|
5
|
-
/**
|
|
6
|
-
* Implementation of [[UiSettings]] using Window.sessionStorage.
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export declare class SessionSettingsStorage implements UiSettingsStorage {
|
|
10
|
-
w: Window;
|
|
11
|
-
constructor(w?: Window);
|
|
12
|
-
getSetting(settingNamespace: string, settingName: string): Promise<UiSettingsResult>;
|
|
13
|
-
saveSetting(settingNamespace: string, settingName: string, setting: any): Promise<UiSettingsResult>;
|
|
14
|
-
deleteSetting(settingNamespace: string, settingName: string): Promise<UiSettingsResult>;
|
|
15
|
-
hasSetting(settingNamespace: string, settingName: string): Promise<boolean>;
|
|
16
|
-
}
|
|
17
|
-
/** Alias for [[SessionSettingsStorage]]
|
|
18
|
-
* @beta
|
|
19
|
-
* @deprecated use [SessionSettingsStorage]($core-react) instead
|
|
20
|
-
*/
|
|
21
|
-
export declare class SessionUiSettings extends SessionSettingsStorage {
|
|
22
|
-
constructor(w?: Window);
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=SessionSettingsStorage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SessionSettingsStorage.d.ts","sourceRoot":"","sources":["../../../../src/core-react/uisettings/SessionSettingsStorage.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAoB,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE5F;;;GAGG;AACH,qBAAa,sBAAuB,YAAW,iBAAiB;IAE3C,CAAC,EAAE,MAAM;gBAAT,CAAC,GAAE,MAAe;IAExB,UAAU,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAQpF,WAAW,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAKnG,aAAa,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IASvF,UAAU,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAQzF;AAED;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,sBAAsB;gBAC/C,CAAC,GAAE,MAAe;CAC/B"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/** @packageDocumentation
|
|
7
|
-
* @module UiSettings
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.SessionUiSettings = exports.SessionSettingsStorage = void 0;
|
|
11
|
-
const UiSettingsStorage_1 = require("./UiSettingsStorage");
|
|
12
|
-
/**
|
|
13
|
-
* Implementation of [[UiSettings]] using Window.sessionStorage.
|
|
14
|
-
* @public
|
|
15
|
-
*/
|
|
16
|
-
class SessionSettingsStorage {
|
|
17
|
-
constructor(w = window) {
|
|
18
|
-
this.w = w;
|
|
19
|
-
}
|
|
20
|
-
async getSetting(settingNamespace, settingName) {
|
|
21
|
-
const setting = this.w.sessionStorage.getItem(`${settingNamespace}.${settingName}`);
|
|
22
|
-
if (setting !== null)
|
|
23
|
-
return { status: UiSettingsStorage_1.UiSettingsStatus.Success, setting: JSON.parse(setting) };
|
|
24
|
-
else
|
|
25
|
-
return { status: UiSettingsStorage_1.UiSettingsStatus.NotFound };
|
|
26
|
-
}
|
|
27
|
-
async saveSetting(settingNamespace, settingName, setting) {
|
|
28
|
-
this.w.sessionStorage.setItem(`${settingNamespace}.${settingName}`, JSON.stringify(setting));
|
|
29
|
-
return { status: UiSettingsStorage_1.UiSettingsStatus.Success };
|
|
30
|
-
}
|
|
31
|
-
async deleteSetting(settingNamespace, settingName) {
|
|
32
|
-
const name = `${settingNamespace}.${settingName}`;
|
|
33
|
-
const setting = this.w.sessionStorage.getItem(name);
|
|
34
|
-
if (setting === null)
|
|
35
|
-
return { status: UiSettingsStorage_1.UiSettingsStatus.NotFound };
|
|
36
|
-
this.w.sessionStorage.removeItem(name);
|
|
37
|
-
return { status: UiSettingsStorage_1.UiSettingsStatus.Success };
|
|
38
|
-
}
|
|
39
|
-
async hasSetting(settingNamespace, settingName) {
|
|
40
|
-
const name = `${settingNamespace}.${settingName}`;
|
|
41
|
-
const setting = this.w.sessionStorage.getItem(name);
|
|
42
|
-
if (setting === null)
|
|
43
|
-
return false;
|
|
44
|
-
return true;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.SessionSettingsStorage = SessionSettingsStorage;
|
|
48
|
-
/** Alias for [[SessionSettingsStorage]]
|
|
49
|
-
* @beta
|
|
50
|
-
* @deprecated use [SessionSettingsStorage]($core-react) instead
|
|
51
|
-
*/
|
|
52
|
-
class SessionUiSettings extends SessionSettingsStorage {
|
|
53
|
-
constructor(w = window) { super(w); }
|
|
54
|
-
}
|
|
55
|
-
exports.SessionUiSettings = SessionUiSettings;
|
|
56
|
-
//# sourceMappingURL=SessionSettingsStorage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SessionSettingsStorage.js","sourceRo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AAU,CAAC,IAAI,CAAC,CAAC;QACvC,OAAO,EAAE,MAAM,EAAE,oCAAgB,CAAC,OAAO,EAAE,CAAC;IAC9C,CAAC;IAEM,KAAK,CAAC,UAAU,CAAC,gBAAwB,EAAE,WAAmB;QACnE,MAAM,IAAI,GAAG,GAAG,gBAAgB,IAAI,WAAW,EAAE,CAAC;QAClD,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,OAAO,KAAK,IAAI;YAClB,OAAO,KAAK,CAAC;QACf,OAAO,IAAI,CAAC;IACd,CAAC;CAEF;AAlCD,wDAkCC;AAED;;;GAGG;AACH,MAAa,iBAAkB,SAAQ,sBAAsB;IAC3D,YAAY,IAAY,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC9C;AAFD,8CAEC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module UiSettings\r\n */\r\n\r\nimport { UiSettingsResult, UiSettingsStatus, UiSettingsStorage } from \"./UiSettingsStorage\";\r\n\r\n/**\r\n * Implementation of [[UiSettings]] using Window.sessionStorage.\r\n * @public\r\n */\r\nexport class SessionSettingsStorage implements UiSettingsStorage {\r\n\r\n constructor(public w: Window = window) { }\r\n\r\n public async getSetting(settingNamespace: string, settingName: string): Promise<UiSettingsResult> {\r\n const setting = this.w.sessionStorage.getItem(`${settingNamespace}.${settingName}`);\r\n if (setting !== null)\r\n return { status: UiSettingsStatus.Success, setting: JSON.parse(setting) };\r\n else\r\n return { status: UiSettingsStatus.NotFound };\r\n }\r\n\r\n public async saveSetting(settingNamespace: string, settingName: string, setting: any): Promise<UiSettingsResult> {\r\n this.w.sessionStorage.setItem(`${settingNamespace}.${settingName}`, JSON.stringify(setting));\r\n return { status: UiSettingsStatus.Success };\r\n }\r\n\r\n public async deleteSetting(settingNamespace: string, settingName: string): Promise<UiSettingsResult> {\r\n const name = `${settingNamespace}.${settingName}`;\r\n const setting = this.w.sessionStorage.getItem(name);\r\n if (setting === null)\r\n return { status: UiSettingsStatus.NotFound };\r\n this.w.sessionStorage.removeItem(name);\r\n return { status: UiSettingsStatus.Success };\r\n }\r\n\r\n public async hasSetting(settingNamespace: string, settingName: string): Promise<boolean> {\r\n const name = `${settingNamespace}.${settingName}`;\r\n const setting = this.w.sessionStorage.getItem(name);\r\n if (setting === null)\r\n return false;\r\n return true;\r\n }\r\n\r\n}\r\n\r\n/** Alias for [[SessionSettingsStorage]]\r\n * @beta\r\n * @deprecated use [SessionSettingsStorage]($core-react) instead\r\n */\r\nexport class SessionUiSettings extends SessionSettingsStorage {\r\n constructor(w: Window = window) { super(w); }\r\n}\r\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UiSetting.d.ts","sourceRoot":"","sources":["../../../../src/core-react/uisettings/UiSetting.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAoB,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE5F;;GAEG;AACH,qBAAa,SAAS,CAAC,CAAC;IAQI,gBAAgB,EAAE,MAAM;IAAS,WAAW,EAAE,MAAM;IAAS,QAAQ,EAAE,MAAM,CAAC;IAAS,UAAU,CAAC,OAAM,CAAC,KAAK,IAAI;IAAS,YAAY,CAAC;IAPlK;;;;;;OAMG;gBACuB,gBAAgB,EAAE,MAAM,EAAS,WAAW,EAAE,MAAM,EAAS,QAAQ,EAAE,MAAM,CAAC,EAAS,UAAU,CAAC,OAAM,CAAC,KAAK,IAAI,aAAA,EAAS,YAAY,CAAC,eAAG;IAGrK,kDAAkD;IACrC,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAI9E,yEAAyE;IAC5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IACtF,KAAK,CAAC,uBAAuB,CAAC,OAA0B;QAC7D,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YAC9C,IAAI,MAAM,CAAC,MAAM,KAAK,oCAAgB,CAAC,OAAO,EAAE;gBAC9C,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;aACjC;iBAAM,IAAI,SAAS,KAAK,IAAI,CAAC,YAAY,EAAE;gBAC1C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;gBACnC,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC;gBACnC,MAAM,CAAC,MAAM,GAAG,oCAAgB,CAAC,OAAO,CAAC;aAC1C;YACD,OAAO,MAAM,CAAC;SACf;QACD,OAAO,EAAE,MAAM,EAAE,oCAAgB,CAAC,aAAa,EAAE,CAAC;IACpD,CAAC;CACF;AAzCD,8BAyCC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module UiSettings\r\n */\r\n\r\nimport { UiSettingsResult, UiSettingsStatus, UiSettingsStorage } from \"./UiSettingsStorage\";\r\n\r\n/** A Ui Setting with namespace and setting name.\r\n * @public\r\n */\r\nexport class UiSetting<T> {\r\n /** Constructor\r\n * @param settingNamespace Namespace for the setting, passed to UiSettings.\r\n * @param settingName Name for the setting, passed to UiSettings.\r\n * @param getValue Function for getting the value from the application.\r\n * @param applyValue Function for applying the setting value to the application.\r\n * @param defaultValue Optional default value if not already stored.\r\n */\r\n public constructor(public settingNamespace: string, public settingName: string, public getValue: () => T, public applyValue?: (v: T) => void, public defaultValue?: T) {\r\n }\r\n\r\n /** Gets the setting from [[UiSettingsStorage]] */\r\n public async getSetting(storage: UiSettingsStorage): Promise<UiSettingsResult> {\r\n return storage.getSetting(this.settingNamespace, this.settingName);\r\n }\r\n\r\n /** Saves the setting value from the `getValue` function to UiSettings */\r\n public async saveSetting(storage: UiSettingsStorage): Promise<UiSettingsResult> {\r\n return storage.saveSetting(this.settingNamespace, this.settingName, this.getValue());\r\n }\r\n\r\n /** Deletes the setting from UiSettings */\r\n public async deleteSetting(storage: UiSettingsStorage): Promise<UiSettingsResult> {\r\n return storage.deleteSetting(this.settingNamespace, this.settingName);\r\n }\r\n\r\n /** Gets the setting from UiSettings and applies the value using the `applyValue` function */\r\n public async getSettingAndApplyValue(storage: UiSettingsStorage): Promise<UiSettingsResult> {\r\n if (this.applyValue) {\r\n const result = await this.getSetting(storage);\r\n if (result.status === UiSettingsStatus.Success) {\r\n this.applyValue(result.setting);\r\n } else if (undefined !== this.defaultValue) {\r\n this.applyValue(this.defaultValue);\r\n result.setting = this.defaultValue;\r\n result.status = UiSettingsStatus.Success;\r\n }\r\n return result;\r\n }\r\n return { status: UiSettingsStatus.Uninitialized };\r\n }\r\n}\r\n"]}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module UiSettings
|
|
3
|
-
*/
|
|
4
|
-
/** Interface for getting, saving and deleting settings.
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export interface UiSettingsStorage {
|
|
8
|
-
getSetting(settingNamespace: string, settingName: string): Promise<UiSettingsResult>;
|
|
9
|
-
saveSetting(settingNamespace: string, settingName: string, setting: any): Promise<UiSettingsResult>;
|
|
10
|
-
deleteSetting(settingNamespace: string, settingName: string): Promise<UiSettingsResult>;
|
|
11
|
-
}
|
|
12
|
-
/** Alias for [[UiSettingsStorage]]
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
export declare type UiSettings = UiSettingsStorage;
|
|
16
|
-
/** Enum for [[UiSettingsStorage]] status.
|
|
17
|
-
* @public
|
|
18
|
-
*/
|
|
19
|
-
export declare enum UiSettingsStatus {
|
|
20
|
-
Success = 0,
|
|
21
|
-
NotFound = 1,
|
|
22
|
-
UnknownError = 2,
|
|
23
|
-
Uninitialized = 3,
|
|
24
|
-
AuthorizationError = 4
|
|
25
|
-
}
|
|
26
|
-
/** Interface for result of accessing setting in [[UiSettingsStorage]].
|
|
27
|
-
* @public
|
|
28
|
-
*/
|
|
29
|
-
export interface UiSettingsResult {
|
|
30
|
-
status: UiSettingsStatus;
|
|
31
|
-
setting?: any;
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=UiSettingsStorage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UiSettingsStorage.d.ts","sourceRoot":"","sources":["../../../../src/core-react/uisettings/UiSettingsStorage.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACrF,WAAW,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACpG,aAAa,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACzF;AAED;;GAEG;AACH,oBAAY,UAAU,GAAG,iBAAiB,CAAC;AAE3C;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,YAAY,IAAI;IAChB,aAAa,IAAI;IACjB,kBAAkB,IAAI;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,gBAAgB,CAAC;IACzB,OAAO,CAAC,EAAE,GAAG,CAAC;CACf"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/** @packageDocumentation
|
|
7
|
-
* @module UiSettings
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.UiSettingsStatus = void 0;
|
|
11
|
-
/** Enum for [[UiSettingsStorage]] status.
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
var UiSettingsStatus;
|
|
15
|
-
(function (UiSettingsStatus) {
|
|
16
|
-
UiSettingsStatus[UiSettingsStatus["Success"] = 0] = "Success";
|
|
17
|
-
UiSettingsStatus[UiSettingsStatus["NotFound"] = 1] = "NotFound";
|
|
18
|
-
UiSettingsStatus[UiSettingsStatus["UnknownError"] = 2] = "UnknownError";
|
|
19
|
-
UiSettingsStatus[UiSettingsStatus["Uninitialized"] = 3] = "Uninitialized";
|
|
20
|
-
UiSettingsStatus[UiSettingsStatus["AuthorizationError"] = 4] = "AuthorizationError";
|
|
21
|
-
})(UiSettingsStatus = exports.UiSettingsStatus || (exports.UiSettingsStatus = {}));
|
|
22
|
-
//# sourceMappingURL=UiSettingsStorage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UiSettingsStorage.js","sourceRoot":"","sources":["../../../../src/core-react/uisettings/UiSettingsStorage.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAgBH;;GAEG;AACH,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,6DAAW,CAAA;IACX,+DAAY,CAAA;IACZ,uEAAgB,CAAA;IAChB,yEAAiB,CAAA;IACjB,mFAAsB,CAAA;AACxB,CAAC,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module UiSettings\r\n */\r\n\r\n/** Interface for getting, saving and deleting settings.\r\n * @public\r\n */\r\nexport interface UiSettingsStorage {\r\n getSetting(settingNamespace: string, settingName: string): Promise<UiSettingsResult>;\r\n saveSetting(settingNamespace: string, settingName: string, setting: any): Promise<UiSettingsResult>;\r\n deleteSetting(settingNamespace: string, settingName: string): Promise<UiSettingsResult>;\r\n}\r\n\r\n/** Alias for [[UiSettingsStorage]]\r\n * @public\r\n */\r\nexport type UiSettings = UiSettingsStorage;\r\n\r\n/** Enum for [[UiSettingsStorage]] status.\r\n * @public\r\n */\r\nexport enum UiSettingsStatus {\r\n Success = 0,\r\n NotFound = 1,\r\n UnknownError = 2,\r\n Uninitialized = 3,\r\n AuthorizationError = 4,\r\n}\r\n\r\n/** Interface for result of accessing setting in [[UiSettingsStorage]].\r\n * @public\r\n */\r\nexport interface UiSettingsResult {\r\n status: UiSettingsStatus;\r\n setting?: any;\r\n}\r\n"]}
|