@itwin/core-react 3.0.0-dev.133 → 3.0.0-dev.138

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.
Files changed (83) hide show
  1. package/lib/cjs/core-react/dialog/DialogButtonDef.d.ts +3 -3
  2. package/lib/cjs/core-react/dialog/DialogButtonDef.js +2 -2
  3. package/lib/cjs/core-react/dialog/DialogButtonDef.js.map +1 -1
  4. package/lib/cjs/core-react/messagebox/MessageSeverity.d.ts +1 -1
  5. package/lib/cjs/core-react/messagebox/MessageSeverity.js +1 -1
  6. package/lib/cjs/core-react/messagebox/MessageSeverity.js.map +1 -1
  7. package/lib/cjs/core-react/select/ThemedSelect.d.ts +1 -1
  8. package/lib/cjs/core-react/select/ThemedSelect.js +1 -1
  9. package/lib/cjs/core-react/select/ThemedSelect.js.map +1 -1
  10. package/lib/cjs/core-react/uistate/LocalStateStorage.d.ts +17 -0
  11. package/lib/cjs/core-react/uistate/LocalStateStorage.d.ts.map +1 -0
  12. package/lib/cjs/core-react/{uisettings/LocalSettingsStorage.js → uistate/LocalStateStorage.js} +14 -20
  13. package/lib/cjs/core-react/uistate/LocalStateStorage.js.map +1 -0
  14. package/lib/{esm/core-react/uisettings/UiSetting.d.ts → cjs/core-react/uistate/UiStateEntry.d.ts} +15 -15
  15. package/lib/cjs/core-react/uistate/UiStateEntry.d.ts.map +1 -0
  16. package/lib/cjs/core-react/{uisettings/UiSetting.js → uistate/UiStateEntry.js} +16 -17
  17. package/lib/cjs/core-react/uistate/UiStateEntry.js.map +1 -0
  18. package/lib/cjs/core-react/uistate/UiStateStorage.d.ts +29 -0
  19. package/lib/cjs/core-react/uistate/UiStateStorage.d.ts.map +1 -0
  20. package/lib/cjs/core-react/uistate/UiStateStorage.js +22 -0
  21. package/lib/cjs/core-react/uistate/UiStateStorage.js.map +1 -0
  22. package/lib/cjs/core-react/utils/UiEvent.d.ts +1 -1
  23. package/lib/cjs/core-react/utils/UiEvent.js +1 -1
  24. package/lib/cjs/core-react/utils/UiEvent.js.map +1 -1
  25. package/lib/cjs/core-react.d.ts +4 -5
  26. package/lib/cjs/core-react.d.ts.map +1 -1
  27. package/lib/cjs/core-react.js +4 -5
  28. package/lib/cjs/core-react.js.map +1 -1
  29. package/lib/esm/core-react/dialog/DialogButtonDef.d.ts +3 -3
  30. package/lib/esm/core-react/dialog/DialogButtonDef.js +2 -2
  31. package/lib/esm/core-react/dialog/DialogButtonDef.js.map +1 -1
  32. package/lib/esm/core-react/messagebox/MessageSeverity.d.ts +1 -1
  33. package/lib/esm/core-react/messagebox/MessageSeverity.js +1 -1
  34. package/lib/esm/core-react/messagebox/MessageSeverity.js.map +1 -1
  35. package/lib/esm/core-react/select/ThemedSelect.d.ts +1 -1
  36. package/lib/esm/core-react/select/ThemedSelect.js +1 -1
  37. package/lib/esm/core-react/select/ThemedSelect.js.map +1 -1
  38. package/lib/esm/core-react/uistate/LocalStateStorage.d.ts +17 -0
  39. package/lib/esm/core-react/uistate/LocalStateStorage.d.ts.map +1 -0
  40. package/lib/esm/core-react/{uisettings/LocalSettingsStorage.js → uistate/LocalStateStorage.js} +12 -17
  41. package/lib/esm/core-react/uistate/LocalStateStorage.js.map +1 -0
  42. package/lib/{cjs/core-react/uisettings/UiSetting.d.ts → esm/core-react/uistate/UiStateEntry.d.ts} +15 -15
  43. package/lib/esm/core-react/uistate/UiStateEntry.d.ts.map +1 -0
  44. package/lib/esm/core-react/{uisettings/UiSetting.js → uistate/UiStateEntry.js} +14 -15
  45. package/lib/esm/core-react/uistate/UiStateEntry.js.map +1 -0
  46. package/lib/esm/core-react/uistate/UiStateStorage.d.ts +29 -0
  47. package/lib/esm/core-react/uistate/UiStateStorage.d.ts.map +1 -0
  48. package/lib/esm/core-react/uistate/UiStateStorage.js +19 -0
  49. package/lib/esm/core-react/uistate/UiStateStorage.js.map +1 -0
  50. package/lib/esm/core-react/utils/UiEvent.d.ts +1 -1
  51. package/lib/esm/core-react/utils/UiEvent.js +1 -1
  52. package/lib/esm/core-react/utils/UiEvent.js.map +1 -1
  53. package/lib/esm/core-react.d.ts +4 -5
  54. package/lib/esm/core-react.d.ts.map +1 -1
  55. package/lib/esm/core-react.js +4 -5
  56. package/lib/esm/core-react.js.map +1 -1
  57. package/package.json +10 -10
  58. package/lib/cjs/core-react/uisettings/LocalSettingsStorage.d.ts +0 -24
  59. package/lib/cjs/core-react/uisettings/LocalSettingsStorage.d.ts.map +0 -1
  60. package/lib/cjs/core-react/uisettings/LocalSettingsStorage.js.map +0 -1
  61. package/lib/cjs/core-react/uisettings/SessionSettingsStorage.d.ts +0 -24
  62. package/lib/cjs/core-react/uisettings/SessionSettingsStorage.d.ts.map +0 -1
  63. package/lib/cjs/core-react/uisettings/SessionSettingsStorage.js +0 -56
  64. package/lib/cjs/core-react/uisettings/SessionSettingsStorage.js.map +0 -1
  65. package/lib/cjs/core-react/uisettings/UiSetting.d.ts.map +0 -1
  66. package/lib/cjs/core-react/uisettings/UiSetting.js.map +0 -1
  67. package/lib/cjs/core-react/uisettings/UiSettingsStorage.d.ts +0 -33
  68. package/lib/cjs/core-react/uisettings/UiSettingsStorage.d.ts.map +0 -1
  69. package/lib/cjs/core-react/uisettings/UiSettingsStorage.js +0 -22
  70. package/lib/cjs/core-react/uisettings/UiSettingsStorage.js.map +0 -1
  71. package/lib/esm/core-react/uisettings/LocalSettingsStorage.d.ts +0 -24
  72. package/lib/esm/core-react/uisettings/LocalSettingsStorage.d.ts.map +0 -1
  73. package/lib/esm/core-react/uisettings/LocalSettingsStorage.js.map +0 -1
  74. package/lib/esm/core-react/uisettings/SessionSettingsStorage.d.ts +0 -24
  75. package/lib/esm/core-react/uisettings/SessionSettingsStorage.d.ts.map +0 -1
  76. package/lib/esm/core-react/uisettings/SessionSettingsStorage.js +0 -51
  77. package/lib/esm/core-react/uisettings/SessionSettingsStorage.js.map +0 -1
  78. package/lib/esm/core-react/uisettings/UiSetting.d.ts.map +0 -1
  79. package/lib/esm/core-react/uisettings/UiSetting.js.map +0 -1
  80. package/lib/esm/core-react/uisettings/UiSettingsStorage.d.ts +0 -33
  81. package/lib/esm/core-react/uisettings/UiSettingsStorage.d.ts.map +0 -1
  82. package/lib/esm/core-react/uisettings/UiSettingsStorage.js +0 -19
  83. package/lib/esm/core-react/uisettings/UiSettingsStorage.js.map +0 -1
@@ -3,7 +3,7 @@
3
3
  */
4
4
  /** Enum for button types. Determines button label, and default button style.
5
5
  * @public
6
- * @deprecated Use DialogButtonType in bentley/appui-abstract instead
6
+ * @deprecated Use [DialogButtonType]($appui-abstract) instead
7
7
  */
8
8
  export declare enum DialogButtonType {
9
9
  None = "",
@@ -18,7 +18,7 @@ export declare enum DialogButtonType {
18
18
  }
19
19
  /** Enum for button style.
20
20
  * @public
21
- * @deprecated Use DialogButtonStyle in bentley/appui-abstract instead
21
+ * @deprecated Use [DialogButtonStyle]($appui-abstract) instead
22
22
  */
23
23
  export declare enum DialogButtonStyle {
24
24
  None = "",
@@ -28,7 +28,7 @@ export declare enum DialogButtonStyle {
28
28
  }
29
29
  /** Interface for a dialog button in a button cluster
30
30
  * @public
31
- * @deprecated Use DialogButtonDef in bentley/appui-abstract instead
31
+ * @deprecated Use [DialogButtonDef]($appui-abstract) instead
32
32
  */
33
33
  export interface DialogButtonDef {
34
34
  /** type of button */
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.DialogButtonStyle = exports.DialogButtonType = void 0;
11
11
  /** Enum for button types. Determines button label, and default button style.
12
12
  * @public
13
- * @deprecated Use DialogButtonType in bentley/appui-abstract instead
13
+ * @deprecated Use [DialogButtonType]($appui-abstract) instead
14
14
  */
15
15
  var DialogButtonType;
16
16
  (function (DialogButtonType) {
@@ -26,7 +26,7 @@ var DialogButtonType;
26
26
  })(DialogButtonType = exports.DialogButtonType || (exports.DialogButtonType = {}));
27
27
  /** Enum for button style.
28
28
  * @public
29
- * @deprecated Use DialogButtonStyle in bentley/appui-abstract instead
29
+ * @deprecated Use [DialogButtonStyle]($appui-abstract) instead
30
30
  */
31
31
  var DialogButtonStyle;
32
32
  (function (DialogButtonStyle) {
@@ -1 +1 @@
1
- {"version":3,"file":"DialogButtonDef.js","sourceRoot":"","sources":["../../../../src/core-react/dialog/DialogButtonDef.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH;;;IAGI;AACJ,IAAY,gBAUX;AAVD,WAAY,gBAAgB;IAC1B,6BAAS,CAAA;IACT,mCAAe,CAAA;IACf,6BAAS,CAAA;IACT,qCAAiB,CAAA;IACjB,+BAAW,CAAA;IACX,6BAAS,CAAA;IACT,mCAAe,CAAA;IACf,iCAAa,CAAA;IACb,yCAAqB,CAAA;AACvB,CAAC,EAVW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAU3B;AAED;;;IAGI;AACJ,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,8BAAS,CAAA;IACT,wCAAmB,CAAA;IACnB,2CAAsB,CAAA;IACtB,iDAA4B,CAAA;AAC9B,CAAC,EALW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAK5B","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 Dialog\r\n */\r\n\r\n/** Enum for button types. Determines button label, and default button style.\r\n * @public\r\n * @deprecated Use DialogButtonType in bentley/appui-abstract instead\r\n */\r\nexport enum DialogButtonType {\r\n None = \"\",\r\n Close = \"close\",\r\n OK = \"ok\",\r\n Cancel = \"cancel\",\r\n Yes = \"yes\",\r\n No = \"no\",\r\n Retry = \"retry\",\r\n Next = \"next\",\r\n Previous = \"previous\"\r\n}\r\n\r\n/** Enum for button style.\r\n * @public\r\n * @deprecated Use DialogButtonStyle in bentley/appui-abstract instead\r\n */\r\nexport enum DialogButtonStyle {\r\n None = \"\",\r\n Primary = \"iui-cta\",\r\n Hollow = \"iui-default\",\r\n Blue = \"iui-high-visibility\",\r\n}\r\n\r\n/** Interface for a dialog button in a button cluster\r\n * @public\r\n * @deprecated Use DialogButtonDef in bentley/appui-abstract instead\r\n */\r\nexport interface DialogButtonDef {\r\n /** type of button */\r\n type: DialogButtonType; // eslint-disable-line deprecation/deprecation\r\n /** Triggered on button click */\r\n onClick: () => void;\r\n /** Which button style to decorate button width */\r\n buttonStyle?: DialogButtonStyle; // eslint-disable-line deprecation/deprecation\r\n /** Disable the button */\r\n disabled?: boolean;\r\n /** Custom label */\r\n label?: string;\r\n /** Custom CSS class */\r\n className?: string;\r\n}\r\n"]}
1
+ {"version":3,"file":"DialogButtonDef.js","sourceRoot":"","sources":["../../../../src/core-react/dialog/DialogButtonDef.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH;;;IAGI;AACJ,IAAY,gBAUX;AAVD,WAAY,gBAAgB;IAC1B,6BAAS,CAAA;IACT,mCAAe,CAAA;IACf,6BAAS,CAAA;IACT,qCAAiB,CAAA;IACjB,+BAAW,CAAA;IACX,6BAAS,CAAA;IACT,mCAAe,CAAA;IACf,iCAAa,CAAA;IACb,yCAAqB,CAAA;AACvB,CAAC,EAVW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAU3B;AAED;;;IAGI;AACJ,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,8BAAS,CAAA;IACT,wCAAmB,CAAA;IACnB,2CAAsB,CAAA;IACtB,iDAA4B,CAAA;AAC9B,CAAC,EALW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAK5B","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 Dialog\r\n */\r\n\r\n/** Enum for button types. Determines button label, and default button style.\r\n * @public\r\n * @deprecated Use [DialogButtonType]($appui-abstract) instead\r\n */\r\nexport enum DialogButtonType {\r\n None = \"\",\r\n Close = \"close\",\r\n OK = \"ok\",\r\n Cancel = \"cancel\",\r\n Yes = \"yes\",\r\n No = \"no\",\r\n Retry = \"retry\",\r\n Next = \"next\",\r\n Previous = \"previous\"\r\n}\r\n\r\n/** Enum for button style.\r\n * @public\r\n * @deprecated Use [DialogButtonStyle]($appui-abstract) instead\r\n */\r\nexport enum DialogButtonStyle {\r\n None = \"\",\r\n Primary = \"iui-cta\",\r\n Hollow = \"iui-default\",\r\n Blue = \"iui-high-visibility\",\r\n}\r\n\r\n/** Interface for a dialog button in a button cluster\r\n * @public\r\n * @deprecated Use [DialogButtonDef]($appui-abstract) instead\r\n */\r\nexport interface DialogButtonDef {\r\n /** type of button */\r\n type: DialogButtonType; // eslint-disable-line deprecation/deprecation\r\n /** Triggered on button click */\r\n onClick: () => void;\r\n /** Which button style to decorate button width */\r\n buttonStyle?: DialogButtonStyle; // eslint-disable-line deprecation/deprecation\r\n /** Disable the button */\r\n disabled?: boolean;\r\n /** Custom label */\r\n label?: string;\r\n /** Custom CSS class */\r\n className?: string;\r\n}\r\n"]}
@@ -3,7 +3,7 @@
3
3
  */
4
4
  /** Message Severity enum.
5
5
  * @public
6
- * @deprecated Use [MessageSeverity]($appui-abstract) in bentley/appui-abstract instead
6
+ * @deprecated Use [MessageSeverity]($appui-abstract) instead
7
7
  */
8
8
  export declare enum MessageSeverity {
9
9
  None = 0,
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.MessageSeverity = void 0;
11
11
  /** Message Severity enum.
12
12
  * @public
13
- * @deprecated Use [MessageSeverity]($appui-abstract) in bentley/appui-abstract instead
13
+ * @deprecated Use [MessageSeverity]($appui-abstract) instead
14
14
  */
15
15
  var MessageSeverity;
16
16
  (function (MessageSeverity) {
@@ -1 +1 @@
1
- {"version":3,"file":"MessageSeverity.js","sourceRoot":"","sources":["../../../../src/core-react/messagebox/MessageSeverity.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH;;;IAGI;AACJ,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,qDAAQ,CAAA;IACR,mEAAe,CAAA;IACf,6DAAY,CAAA;IACZ,2DAAW,CAAA;IACX,uDAAS,CAAA;IACT,uDAAS,CAAA;AACX,CAAC,EAPW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAO1B","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 Dialog\r\n */\r\n\r\n/** Message Severity enum.\r\n * @public\r\n * @deprecated Use [MessageSeverity]($appui-abstract) in bentley/appui-abstract instead\r\n */\r\nexport enum MessageSeverity {\r\n None = 0,\r\n Information = 1,\r\n Question = 2,\r\n Warning = 3,\r\n Error = 4,\r\n Fatal = 5,\r\n}\r\n"]}
1
+ {"version":3,"file":"MessageSeverity.js","sourceRoot":"","sources":["../../../../src/core-react/messagebox/MessageSeverity.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH;;;IAGI;AACJ,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,qDAAQ,CAAA;IACR,mEAAe,CAAA;IACf,6DAAY,CAAA;IACZ,2DAAW,CAAA;IACX,uDAAS,CAAA;IACT,uDAAS,CAAA;AACX,CAAC,EAPW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAO1B","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 Dialog\r\n */\r\n\r\n/** Message Severity enum.\r\n * @public\r\n * @deprecated Use [MessageSeverity]($appui-abstract) instead\r\n */\r\nexport enum MessageSeverity {\r\n None = 0,\r\n Information = 1,\r\n Question = 2,\r\n Warning = 3,\r\n Error = 4,\r\n Fatal = 5,\r\n}\r\n"]}
@@ -95,7 +95,7 @@ export declare type ThemedSelectProps = {
95
95
  tabSelectsValue?: boolean;
96
96
  value?: ValueType<OptionType>;
97
97
  };
98
- /** ThemedSelect is a wrapper for react-select with iModel.js UI theming applied
98
+ /** ThemedSelect is a wrapper for react-select with iTwin.js UI theming applied
99
99
  * @beta
100
100
  * @deprecated use Select from @itwin/itwinui-react
101
101
  */
@@ -20,7 +20,7 @@ const ThemedMenu = (props) => {
20
20
  return (React.createElement("div", { className: "uicore-reactSelectTop" },
21
21
  React.createElement(react_select_1.components.Menu, { ...props })));
22
22
  };
23
- /** ThemedSelect is a wrapper for react-select with iModel.js UI theming applied
23
+ /** ThemedSelect is a wrapper for react-select with iTwin.js UI theming applied
24
24
  * @beta
25
25
  * @deprecated use Select from @itwin/itwinui-react
26
26
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ThemedSelect.js","sourceRoot":"","sources":["../../../../src/core-react/select/ThemedSelect.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F,4CAA4C;AAC5C;;GAEG;;;AAEH,gCAA8B;AAC9B,2CAAoC;AACpC,+BAA+B;AAC/B,+CAAqD;AAKrD,sCAAmC;AACnC,4DAAiE;AACjE,+CAAkD;AAqLlD,MAAM,UAAU,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC3C,OAAO,CACL,6BAAK,SAAS,EAAC,uBAAuB;QACpC,oBAAC,yBAAU,CAAC,IAAI,OAAK,KAAK,GAAI,CAC1B,CACP,CAAC;AACJ,CAAC,CAAC;AACF;;;GAGG;AACH,gEAAgE;AAChE,SAAgB,YAAY,CAAC,KAAwB;;IACnD,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,EAAsB,CAAC;IACzD,MAAM,oBAAoB,GAAG,KAAK,CAAC,WAAW,CAAC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,KAAK,CAAC,UAAU,EAAE,KACjD,UAAU,GACd,CACE,CACP,CAAC;AACJ,CAAC;AArCD,oCAqCC","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/* eslint-disable deprecation/deprecation */\r\n/** @packageDocumentation\r\n * @module Select\r\n */\r\n\r\nimport \"./themed-select.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport Component, { components } from \"react-select\";\r\nimport { formatGroupLabel, getOptionLabel, getOptionValue } from \"react-select/src/builtins\";\r\nimport { SelectComponentsConfig } from \"react-select/src/components/index\";\r\nimport { MenuProps } from \"react-select/src/components/Menu\";\r\nimport { ActionMeta, FocusEventHandler, InputActionMeta, KeyboardEventHandler, ValueType } from \"react-select/src/types\";\r\nimport { UiCore } from \"../UiCore\";\r\nimport { getCssVariableAsNumber } from \"../utils/getCssVariable\";\r\nimport { getParentSelector } from \"./modalHelper\";\r\n\r\n// cspell:ignore reactselect builtins\r\n\r\n/* eslint-disable @typescript-eslint/no-shadow, @typescript-eslint/consistent-type-definitions, @typescript-eslint/array-type */\r\ntype FormatOptionLabelContext = \"menu\" | \"value\";\r\ntype FormatOptionLabelMeta = {\r\n context: FormatOptionLabelContext;\r\n inputValue: string;\r\n selectValue: ValueType<OptionType>;\r\n};\r\n\r\n/** OptionType for react-select 2.0 and above. which only accepts pairs of value & label strings\r\n * @beta\r\n * @deprecated use Select from @itwin/itwinui-react\r\n */\r\nexport interface OptionType {\r\n value: any;\r\n label: string;\r\n}\r\n/** OptionsType to match label/value pair OptionType\r\n * @beta\r\n * @deprecated use Select from @itwin/itwinui-react\r\n*/\r\nexport type OptionsType = Array<OptionType>;\r\n\r\n/** ThemedSelectProps to control specific features of ThemedSelect\r\n * @beta\r\n * @deprecated use Select from @itwin/itwinui-react\r\n */\r\nexport type ThemedSelectProps = {\r\n /* Aria label (for assistive tech) */\r\n \"aria-label\"?: string;\r\n /* HTML ID of an element that should be used as the label (for assistive tech) */\r\n \"aria-labelledby\"?: string;\r\n /* Focus the control when it is mounted */\r\n autoFocus?: boolean;\r\n /* Remove the currently focused option when the user presses backspace */\r\n backspaceRemovesValue?: boolean;\r\n /* Remove focus from the input when the user selects an option (handy for dismissing the keyboard on touch devices) */\r\n blurInputOnSelect?: boolean;\r\n /* When the user reaches the top/bottom of the menu, prevent scroll on the scroll-parent */\r\n captureMenuScroll?: boolean;\r\n /* Sets a className attribute on the outer component */\r\n className?: string;\r\n /* Close the select menu when the user selects an option */\r\n closeMenuOnSelect?: boolean;\r\n /*\r\n If `true`, close the select menu when the user scrolls the document/body.\r\n\r\n If a function, takes a standard javascript `ScrollEvent` you return a boolean:\r\n\r\n `true` => The menu closes\r\n\r\n `false` => The menu stays open\r\n\r\n This is useful when you have a scrollable modal and want to portal the menu out,\r\n but want to avoid graphical issues.\r\n */\r\n closeMenuOnScroll?: boolean | EventListener;\r\n /*\r\n This complex object includes all the compositional components that are used\r\n in `react-select`. If you wish to overwrite a component, pass in an object\r\n with the appropriate namespace.\r\n\r\n If you only wish to restyle a component, we recommend using the `styles` prop\r\n instead. For a list of the components that can be passed in, and the shape\r\n that will be passed to them, see [the components docs](/components)\r\n */\r\n components?: SelectComponentsConfig<OptionType>;\r\n /* Whether the value of the select, e.g. SingleValue, should be displayed in the control. */\r\n controlShouldRenderValue?: boolean;\r\n /* Ff true, the menu is open immediately */\r\n defaultMenuIsOpen?: boolean;\r\n /* Value set in the control by default */\r\n defaultValue?: ValueType<OptionType>;\r\n /** Provides ability to return reference to the outer HTMLDivElement */\r\n divRef?: React.Ref<HTMLDivElement>;\r\n /* Clear all values when the user presses escape AND the menu is closed */\r\n escapeClearsValue?: boolean;\r\n /* Custom method to filter whether an option should be displayed in the menu */\r\n filterOption?: ((\r\n option: OptionType,\r\n rawInput: string,\r\n ) => boolean) | null;\r\n /*\r\n Formats group labels in the menu as React components\r\n\r\n An example can be found in the [Replacing builtins](/advanced#replacing-builtins) documentation.\r\n*/\r\n formatGroupLabel?: typeof formatGroupLabel;\r\n /* Formats option labels in the menu and control as React components */\r\n formatOptionLabel?: (optionType: OptionType, formatLabelMeta: FormatOptionLabelMeta) => React.ReactNode;\r\n /* Resolves option data to a string to be displayed as the label by components */\r\n getOptionLabel?: typeof getOptionLabel;\r\n /* Resolves option data to a string to compare options and specify value attributes */\r\n getOptionValue?: typeof getOptionValue;\r\n /* Hide the selected option from the menu */\r\n hideSelectedOptions?: boolean;\r\n /* The id to set on the SelectContainer component. */\r\n id?: string;\r\n /* The value of the search input */\r\n inputValue?: string;\r\n /* The id of the search input */\r\n inputId?: string;\r\n /* Define an id prefix for the select components e.g. {your-id}-value */\r\n instanceId?: number | string;\r\n /* Is the select value clearable */\r\n isClearable?: boolean;\r\n /* Is the select disabled */\r\n isDisabled?: boolean;\r\n /* Is the select in a state of loading (async) */\r\n isLoading?: boolean;\r\n /*\r\n Override the built-in logic to detect whether an option is disabled\r\n\r\n An example can be found in the [Replacing builtins](/advanced#replacing-builtins) documentation.\r\n */\r\n isOptionDisabled?: (option: OptionType, options: OptionsType) => boolean | false;\r\n /* Support multiple selected options */\r\n isMulti?: boolean;\r\n /* If true, menu will not be opened in a portal */\r\n isMenuFixed?: boolean;\r\n /* Is the select direction right-to-left */\r\n isRtl?: boolean;\r\n /* Whether to enable search functionality */\r\n isSearchable?: boolean;\r\n /* Minimum height of the menu before flipping */\r\n minMenuHeight?: number;\r\n /* Maximum height of the menu before scrolling */\r\n maxMenuHeight?: number;\r\n /* Whether the menu is open */\r\n menuIsOpen?: boolean;\r\n /* Whether to block scroll events when the menu is open */\r\n menuShouldBlockScroll?: boolean;\r\n /* Whether the menu should be scrolled into view when it opens */\r\n menuShouldScrollIntoView?: boolean;\r\n /* Name of the HTML Input (optional - without this, no input will be rendered) */\r\n name?: string;\r\n /* Text to display when there are no options */\r\n noOptionsMessage?: (obj: { inputValue: string }) => string | null;\r\n /* Handle blur events on the control */\r\n onBlur?: FocusEventHandler;\r\n /* Handle change events on the select */\r\n onChange?: (value: ValueType<OptionType>, action: ActionMeta<OptionType>) => void;\r\n /* Handle focus events on the control */\r\n onFocus?: FocusEventHandler;\r\n /* Handle change events on the input */\r\n onInputChange?: (newValue: string, actionMeta?: InputActionMeta) => void;\r\n /* Handle key down events on the select */\r\n onKeyDown?: KeyboardEventHandler;\r\n /* Handle the menu opening */\r\n onMenuOpen?: () => void;\r\n /* Handle the menu closing */\r\n onMenuClose?: () => void;\r\n /* Fired when the user scrolls to the top of the menu */\r\n onMenuScrollToTop?: (e: React.SyntheticEvent<HTMLElement>) => void;\r\n /* Fired when the user scrolls to the bottom of the menu */\r\n onMenuScrollToBottom?: (e: React.SyntheticEvent<HTMLElement>) => void;\r\n /* Allows control of whether the menu is opened when the Select is focused */\r\n openMenuOnFocus?: boolean;\r\n /* Allows control of whether the menu is opened when the Select is clicked */\r\n openMenuOnClick?: boolean;\r\n /* Array of options that populate the select menu */\r\n options: OptionsType;\r\n /* Number of options to jump in menu when page{up|down} keys are used */\r\n pageSize?: number;\r\n /* Placeholder for the select value */\r\n placeholder?: string;\r\n /** Provides ability to return reference to the ThemedSelect */\r\n ref?: React.Ref<Component>;\r\n /* Sets additional styling */\r\n styles?: React.CSSProperties;\r\n /* Sets the tabIndex attribute on the input */\r\n tabIndex?: string;\r\n /* Select the currently focused option when the user presses tab */\r\n tabSelectsValue?: boolean;\r\n /* The value of the select; reflected by the selected option */\r\n value?: ValueType<OptionType>;\r\n};\r\n\r\nconst ThemedMenu = (props: MenuProps<any>) => { // eslint-disable-line @typescript-eslint/naming-convention\r\n return (\r\n <div className=\"uicore-reactSelectTop\">\r\n <components.Menu {...props} />\r\n </div>\r\n );\r\n};\r\n/** ThemedSelect is a wrapper for react-select with iModel.js UI theming applied\r\n * @beta\r\n * @deprecated use Select from @itwin/itwinui-react\r\n */\r\n// eslint-disable-next-line @typescript-eslint/naming-convention\r\nexport function ThemedSelect(props: ThemedSelectProps) {\r\n const noOptionLabel = React.useRef<string | undefined>();\r\n const defaultOptionMessage = React.useCallback(() => {\r\n if (!noOptionLabel.current) {\r\n noOptionLabel.current = UiCore.translate(\"reactelect.noSelectOption\");\r\n }\r\n return noOptionLabel.current;\r\n }, [noOptionLabel]);\r\n const noOptionFunction = props.noOptionsMessage ?? defaultOptionMessage;\r\n const selectClassName = classnames(\"uicore-reactSelectTop\", props.className);\r\n const portalTarget = !!props.isMenuFixed ? undefined : getParentSelector();\r\n const {\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n classNamePrefix, className, noOptionsMessage, menuPortalTarget, isMenuFixed, styles, components, divRef, ref,\r\n // eslint-disable-next-line comma-dangle\r\n ...otherProps // pass-through props\r\n } = props as any;\r\n const selectStyles = {\r\n ...props.styles,\r\n menuPortal: (base: React.CSSProperties) => ({ ...base, zIndex }),\r\n };\r\n\r\n const zIndex = getCssVariableAsNumber(\"--uicore-z-index-dialog-popup\");\r\n return (\r\n <div className={selectClassName} ref={divRef}>\r\n <Component\r\n ref={ref}\r\n classNamePrefix=\"react-select\"\r\n noOptionsMessage={noOptionFunction}\r\n menuPortalTarget={portalTarget}\r\n styles={selectStyles}\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n components={{ Menu: ThemedMenu, ...props.components }}\r\n {...otherProps}\r\n />\r\n </div>\r\n );\r\n}\r\n"]}
1
+ {"version":3,"file":"ThemedSelect.js","sourceRoot":"","sources":["../../../../src/core-react/select/ThemedSelect.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F,4CAA4C;AAC5C;;GAEG;;;AAEH,gCAA8B;AAC9B,2CAAoC;AACpC,+BAA+B;AAC/B,+CAAqD;AAKrD,sCAAmC;AACnC,4DAAiE;AACjE,+CAAkD;AAqLlD,MAAM,UAAU,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC3C,OAAO,CACL,6BAAK,SAAS,EAAC,uBAAuB;QACpC,oBAAC,y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E,GAAG,EAAE,MAAM;QAC1C,oBAAC,sBAAS,IACR,GAAG,EAAE,GAAG,EACR,eAAe,EAAC,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,EAClC,gBAAgB,EAAE,YAAY,EAC9B,MAAM,EAAE,YAAY;YACpB,gEAAgE;YAChE,UAAU,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC,UAAU,EAAE,KACjD,UAAU,GACd,CACE,CACP,CAAC;AACJ,CAAC;AArCD,oCAqCC","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/* eslint-disable deprecation/deprecation */\r\n/** @packageDocumentation\r\n * @module Select\r\n */\r\n\r\nimport \"./themed-select.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport Component, { components } from \"react-select\";\r\nimport { formatGroupLabel, getOptionLabel, getOptionValue } from \"react-select/src/builtins\";\r\nimport { SelectComponentsConfig } from \"react-select/src/components/index\";\r\nimport { MenuProps } from \"react-select/src/components/Menu\";\r\nimport { ActionMeta, FocusEventHandler, InputActionMeta, KeyboardEventHandler, ValueType } from \"react-select/src/types\";\r\nimport { UiCore } from \"../UiCore\";\r\nimport { getCssVariableAsNumber } from \"../utils/getCssVariable\";\r\nimport { getParentSelector } from \"./modalHelper\";\r\n\r\n// cspell:ignore reactselect builtins\r\n\r\n/* eslint-disable @typescript-eslint/no-shadow, @typescript-eslint/consistent-type-definitions, @typescript-eslint/array-type */\r\ntype FormatOptionLabelContext = \"menu\" | \"value\";\r\ntype FormatOptionLabelMeta = {\r\n context: FormatOptionLabelContext;\r\n inputValue: string;\r\n selectValue: ValueType<OptionType>;\r\n};\r\n\r\n/** OptionType for react-select 2.0 and above. which only accepts pairs of value & label strings\r\n * @beta\r\n * @deprecated use Select from @itwin/itwinui-react\r\n */\r\nexport interface OptionType {\r\n value: any;\r\n label: string;\r\n}\r\n/** OptionsType to match label/value pair OptionType\r\n * @beta\r\n * @deprecated use Select from @itwin/itwinui-react\r\n*/\r\nexport type OptionsType = Array<OptionType>;\r\n\r\n/** ThemedSelectProps to control specific features of ThemedSelect\r\n * @beta\r\n * @deprecated use Select from @itwin/itwinui-react\r\n */\r\nexport type ThemedSelectProps = {\r\n /* Aria label (for assistive tech) */\r\n \"aria-label\"?: string;\r\n /* HTML ID of an element that should be used as the label (for assistive tech) */\r\n \"aria-labelledby\"?: string;\r\n /* Focus the control when it is mounted */\r\n autoFocus?: boolean;\r\n /* Remove the currently focused option when the user presses backspace */\r\n backspaceRemovesValue?: boolean;\r\n /* Remove focus from the input when the user selects an option (handy for dismissing the keyboard on touch devices) */\r\n blurInputOnSelect?: boolean;\r\n /* When the user reaches the top/bottom of the menu, prevent scroll on the scroll-parent */\r\n captureMenuScroll?: boolean;\r\n /* Sets a className attribute on the outer component */\r\n className?: string;\r\n /* Close the select menu when the user selects an option */\r\n closeMenuOnSelect?: boolean;\r\n /*\r\n If `true`, close the select menu when the user scrolls the document/body.\r\n\r\n If a function, takes a standard javascript `ScrollEvent` you return a boolean:\r\n\r\n `true` => The menu closes\r\n\r\n `false` => The menu stays open\r\n\r\n This is useful when you have a scrollable modal and want to portal the menu out,\r\n but want to avoid graphical issues.\r\n */\r\n closeMenuOnScroll?: boolean | EventListener;\r\n /*\r\n This complex object includes all the compositional components that are used\r\n in `react-select`. If you wish to overwrite a component, pass in an object\r\n with the appropriate namespace.\r\n\r\n If you only wish to restyle a component, we recommend using the `styles` prop\r\n instead. For a list of the components that can be passed in, and the shape\r\n that will be passed to them, see [the components docs](/components)\r\n */\r\n components?: SelectComponentsConfig<OptionType>;\r\n /* Whether the value of the select, e.g. SingleValue, should be displayed in the control. */\r\n controlShouldRenderValue?: boolean;\r\n /* Ff true, the menu is open immediately */\r\n defaultMenuIsOpen?: boolean;\r\n /* Value set in the control by default */\r\n defaultValue?: ValueType<OptionType>;\r\n /** Provides ability to return reference to the outer HTMLDivElement */\r\n divRef?: React.Ref<HTMLDivElement>;\r\n /* Clear all values when the user presses escape AND the menu is closed */\r\n escapeClearsValue?: boolean;\r\n /* Custom method to filter whether an option should be displayed in the menu */\r\n filterOption?: ((\r\n option: OptionType,\r\n rawInput: string,\r\n ) => boolean) | null;\r\n /*\r\n Formats group labels in the menu as React components\r\n\r\n An example can be found in the [Replacing builtins](/advanced#replacing-builtins) documentation.\r\n*/\r\n formatGroupLabel?: typeof formatGroupLabel;\r\n /* Formats option labels in the menu and control as React components */\r\n formatOptionLabel?: (optionType: OptionType, formatLabelMeta: FormatOptionLabelMeta) => React.ReactNode;\r\n /* Resolves option data to a string to be displayed as the label by components */\r\n getOptionLabel?: typeof getOptionLabel;\r\n /* Resolves option data to a string to compare options and specify value attributes */\r\n getOptionValue?: typeof getOptionValue;\r\n /* Hide the selected option from the menu */\r\n hideSelectedOptions?: boolean;\r\n /* The id to set on the SelectContainer component. */\r\n id?: string;\r\n /* The value of the search input */\r\n inputValue?: string;\r\n /* The id of the search input */\r\n inputId?: string;\r\n /* Define an id prefix for the select components e.g. {your-id}-value */\r\n instanceId?: number | string;\r\n /* Is the select value clearable */\r\n isClearable?: boolean;\r\n /* Is the select disabled */\r\n isDisabled?: boolean;\r\n /* Is the select in a state of loading (async) */\r\n isLoading?: boolean;\r\n /*\r\n Override the built-in logic to detect whether an option is disabled\r\n\r\n An example can be found in the [Replacing builtins](/advanced#replacing-builtins) documentation.\r\n */\r\n isOptionDisabled?: (option: OptionType, options: OptionsType) => boolean | false;\r\n /* Support multiple selected options */\r\n isMulti?: boolean;\r\n /* If true, menu will not be opened in a portal */\r\n isMenuFixed?: boolean;\r\n /* Is the select direction right-to-left */\r\n isRtl?: boolean;\r\n /* Whether to enable search functionality */\r\n isSearchable?: boolean;\r\n /* Minimum height of the menu before flipping */\r\n minMenuHeight?: number;\r\n /* Maximum height of the menu before scrolling */\r\n maxMenuHeight?: number;\r\n /* Whether the menu is open */\r\n menuIsOpen?: boolean;\r\n /* Whether to block scroll events when the menu is open */\r\n menuShouldBlockScroll?: boolean;\r\n /* Whether the menu should be scrolled into view when it opens */\r\n menuShouldScrollIntoView?: boolean;\r\n /* Name of the HTML Input (optional - without this, no input will be rendered) */\r\n name?: string;\r\n /* Text to display when there are no options */\r\n noOptionsMessage?: (obj: { inputValue: string }) => string | null;\r\n /* Handle blur events on the control */\r\n onBlur?: FocusEventHandler;\r\n /* Handle change events on the select */\r\n onChange?: (value: ValueType<OptionType>, action: ActionMeta<OptionType>) => void;\r\n /* Handle focus events on the control */\r\n onFocus?: FocusEventHandler;\r\n /* Handle change events on the input */\r\n onInputChange?: (newValue: string, actionMeta?: InputActionMeta) => void;\r\n /* Handle key down events on the select */\r\n onKeyDown?: KeyboardEventHandler;\r\n /* Handle the menu opening */\r\n onMenuOpen?: () => void;\r\n /* Handle the menu closing */\r\n onMenuClose?: () => void;\r\n /* Fired when the user scrolls to the top of the menu */\r\n onMenuScrollToTop?: (e: React.SyntheticEvent<HTMLElement>) => void;\r\n /* Fired when the user scrolls to the bottom of the menu */\r\n onMenuScrollToBottom?: (e: React.SyntheticEvent<HTMLElement>) => void;\r\n /* Allows control of whether the menu is opened when the Select is focused */\r\n openMenuOnFocus?: boolean;\r\n /* Allows control of whether the menu is opened when the Select is clicked */\r\n openMenuOnClick?: boolean;\r\n /* Array of options that populate the select menu */\r\n options: OptionsType;\r\n /* Number of options to jump in menu when page{up|down} keys are used */\r\n pageSize?: number;\r\n /* Placeholder for the select value */\r\n placeholder?: string;\r\n /** Provides ability to return reference to the ThemedSelect */\r\n ref?: React.Ref<Component>;\r\n /* Sets additional styling */\r\n styles?: React.CSSProperties;\r\n /* Sets the tabIndex attribute on the input */\r\n tabIndex?: string;\r\n /* Select the currently focused option when the user presses tab */\r\n tabSelectsValue?: boolean;\r\n /* The value of the select; reflected by the selected option */\r\n value?: ValueType<OptionType>;\r\n};\r\n\r\nconst ThemedMenu = (props: MenuProps<any>) => { // eslint-disable-line @typescript-eslint/naming-convention\r\n return (\r\n <div className=\"uicore-reactSelectTop\">\r\n <components.Menu {...props} />\r\n </div>\r\n );\r\n};\r\n/** ThemedSelect is a wrapper for react-select with iTwin.js UI theming applied\r\n * @beta\r\n * @deprecated use Select from @itwin/itwinui-react\r\n */\r\n// eslint-disable-next-line @typescript-eslint/naming-convention\r\nexport function ThemedSelect(props: ThemedSelectProps) {\r\n const noOptionLabel = React.useRef<string | undefined>();\r\n const defaultOptionMessage = React.useCallback(() => {\r\n if (!noOptionLabel.current) {\r\n noOptionLabel.current = UiCore.translate(\"reactelect.noSelectOption\");\r\n }\r\n return noOptionLabel.current;\r\n }, [noOptionLabel]);\r\n const noOptionFunction = props.noOptionsMessage ?? defaultOptionMessage;\r\n const selectClassName = classnames(\"uicore-reactSelectTop\", props.className);\r\n const portalTarget = !!props.isMenuFixed ? undefined : getParentSelector();\r\n const {\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n classNamePrefix, className, noOptionsMessage, menuPortalTarget, isMenuFixed, styles, components, divRef, ref,\r\n // eslint-disable-next-line comma-dangle\r\n ...otherProps // pass-through props\r\n } = props as any;\r\n const selectStyles = {\r\n ...props.styles,\r\n menuPortal: (base: React.CSSProperties) => ({ ...base, zIndex }),\r\n };\r\n\r\n const zIndex = getCssVariableAsNumber(\"--uicore-z-index-dialog-popup\");\r\n return (\r\n <div className={selectClassName} ref={divRef}>\r\n <Component\r\n ref={ref}\r\n classNamePrefix=\"react-select\"\r\n noOptionsMessage={noOptionFunction}\r\n menuPortalTarget={portalTarget}\r\n styles={selectStyles}\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n components={{ Menu: ThemedMenu, ...props.components }}\r\n {...otherProps}\r\n />\r\n </div>\r\n );\r\n}\r\n"]}
@@ -0,0 +1,17 @@
1
+ /** @packageDocumentation
2
+ * @module UiStateStorage
3
+ */
4
+ import { UiStateStorage, UiStateStorageResult } from "./UiStateStorage";
5
+ /**
6
+ * Implementation of [[UiStateStorage]] using Window.localStorage.
7
+ * @public
8
+ */
9
+ export declare class LocalStateStorage implements UiStateStorage {
10
+ w: Window;
11
+ constructor(w?: Window);
12
+ getSetting(settingNamespace: string, settingName: string): Promise<UiStateStorageResult>;
13
+ saveSetting(settingNamespace: string, settingName: string, setting: any): Promise<UiStateStorageResult>;
14
+ hasSetting(settingNamespace: string, settingName: string): Promise<boolean>;
15
+ deleteSetting(settingNamespace: string, settingName: string): Promise<UiStateStorageResult>;
16
+ }
17
+ //# sourceMappingURL=LocalStateStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalStateStorage.d.ts","sourceRoot":"","sources":["../../../../src/core-react/uistate/LocalStateStorage.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAwB,MAAM,kBAAkB,CAAC;AAK9F;;;GAGG;AACH,qBAAa,iBAAkB,YAAW,cAAc;IAEnC,CAAC,EAAE,MAAM;gBAAT,CAAC,GAAE,MAAe;IAExB,UAAU,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAQxF,WAAW,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAKvG,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,oBAAoB,CAAC;CAQzG"}
@@ -4,29 +4,31 @@
4
4
  * See LICENSE.md in the project root for license terms and full copyright notice.
5
5
  *--------------------------------------------------------------------------------------------*/
6
6
  /** @packageDocumentation
7
- * @module UiSettings
7
+ * @module UiStateStorage
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.LocalUiSettings = exports.LocalSettingsStorage = void 0;
11
- const UiSettingsStorage_1 = require("./UiSettingsStorage");
10
+ exports.LocalStateStorage = void 0;
11
+ const UiStateStorage_1 = require("./UiStateStorage");
12
+ // All of the Settings APIs that are available in core-react should be fully deprecated. However, some of the usage and implementation
13
+ // of it from AppUI will continue to be supported there.
12
14
  /**
13
- * Implementation of [[UiSettingsStorage]] using Window.localStorage.
15
+ * Implementation of [[UiStateStorage]] using Window.localStorage.
14
16
  * @public
15
17
  */
16
- class LocalSettingsStorage {
18
+ class LocalStateStorage {
17
19
  constructor(w = window) {
18
20
  this.w = w;
19
21
  }
20
22
  async getSetting(settingNamespace, settingName) {
21
23
  const setting = this.w.localStorage.getItem(`${settingNamespace}.${settingName}`);
22
24
  if (setting !== null)
23
- return { status: UiSettingsStorage_1.UiSettingsStatus.Success, setting: JSON.parse(setting) };
25
+ return { status: UiStateStorage_1.UiStateStorageStatus.Success, setting: JSON.parse(setting) };
24
26
  else
25
- return { status: UiSettingsStorage_1.UiSettingsStatus.NotFound };
27
+ return { status: UiStateStorage_1.UiStateStorageStatus.NotFound };
26
28
  }
27
29
  async saveSetting(settingNamespace, settingName, setting) {
28
30
  this.w.localStorage.setItem(`${settingNamespace}.${settingName}`, JSON.stringify(setting));
29
- return { status: UiSettingsStorage_1.UiSettingsStatus.Success };
31
+ return { status: UiStateStorage_1.UiStateStorageStatus.Success };
30
32
  }
31
33
  async hasSetting(settingNamespace, settingName) {
32
34
  const name = `${settingNamespace}.${settingName}`;
@@ -39,18 +41,10 @@ class LocalSettingsStorage {
39
41
  const name = `${settingNamespace}.${settingName}`;
40
42
  const setting = this.w.localStorage.getItem(name);
41
43
  if (setting === null)
42
- return { status: UiSettingsStorage_1.UiSettingsStatus.NotFound };
44
+ return { status: UiStateStorage_1.UiStateStorageStatus.NotFound };
43
45
  this.w.localStorage.removeItem(name);
44
- return { status: UiSettingsStorage_1.UiSettingsStatus.Success };
46
+ return { status: UiStateStorage_1.UiStateStorageStatus.Success };
45
47
  }
46
48
  }
47
- exports.LocalSettingsStorage = LocalSettingsStorage;
48
- /** Alias for [[LocalSettingsStorage]]
49
- * @beta
50
- * @deprecated use [LocalSettingsStorage]($core-react) instead
51
- */
52
- class LocalUiSettings extends LocalSettingsStorage {
53
- constructor(w = window) { super(w); }
54
- }
55
- exports.LocalUiSettings = LocalUiSettings;
56
- //# sourceMappingURL=LocalSettingsStorage.js.map
49
+ exports.LocalStateStorage = LocalStateStorage;
50
+ //# sourceMappingURL=LocalStateStorage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalStateStorage.js","sourceRoot":"","sources":["../../../../src/core-react/uistate/LocalStateStorage.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,qDAA8F;AAE9F,sIAAsI;AACtI,wDAAwD;AAExD;;;GAGG;AACH,MAAa,iBAAiB;IAE5B,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,WAAW,EAAE,CAAC,CAAC;QAClF,IAAI,OAAO,KAAK,IAAI;YAClB,OAAO,EAAE,MAAM,EAAE,qCAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;;YAE9E,OAAO,EAAE,MAAM,EAAE,qCAAoB,CAAC,QAAQ,EAAE,CAAC;IACrD,CAAC;IAEM,KAAK,CAAC,WAAW,CAAC,gBAAwB,EAAE,WAAmB,EAAE,OAAY;QAClF,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,gBAAgB,IAAI,WAAW,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;QAC3F,OAAO,EAAE,MAAM,EAAE,qCAAoB,CAAC,OAAO,EAAE,CAAC;IAClD,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,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAClD,IAAI,OAAO,KAAK,IAAI;YAClB,OAAO,KAAK,CAAC;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,gBAAwB,EAAE,WAAmB;QACtE,MAAM,IAAI,GAAG,GAAG,gBAAgB,IAAI,WAAW,EAAE,CAAC;QAClD,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAClD,IAAI,OAAO,KAAK,IAAI;YAClB,OAAO,EAAE,MAAM,EAAE,qCAAoB,CAAC,QAAQ,EAAE,CAAC;QACnD,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACrC,OAAO,EAAE,MAAM,EAAE,qCAAoB,CAAC,OAAO,EAAE,CAAC;IAClD,CAAC;CACF;AAjCD,8CAiCC","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\nimport { UiStateStorage, UiStateStorageResult, UiStateStorageStatus } from \"./UiStateStorage\";\r\n\r\n// All of the Settings APIs that are available in core-react should be fully deprecated. However, some of the usage and implementation\r\n// of it from AppUI will continue to be supported there.\r\n\r\n/**\r\n * Implementation of [[UiStateStorage]] using Window.localStorage.\r\n * @public\r\n */\r\nexport class LocalStateStorage implements UiStateStorage {\r\n\r\n constructor(public w: Window = window) { }\r\n\r\n public async getSetting(settingNamespace: string, settingName: string): Promise<UiStateStorageResult> {\r\n const setting = this.w.localStorage.getItem(`${settingNamespace}.${settingName}`);\r\n if (setting !== null)\r\n return { status: UiStateStorageStatus.Success, setting: JSON.parse(setting) };\r\n else\r\n return { status: UiStateStorageStatus.NotFound };\r\n }\r\n\r\n public async saveSetting(settingNamespace: string, settingName: string, setting: any): Promise<UiStateStorageResult> {\r\n this.w.localStorage.setItem(`${settingNamespace}.${settingName}`, JSON.stringify(setting));\r\n return { status: UiStateStorageStatus.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<UiStateStorageResult> {\r\n const name = `${settingNamespace}.${settingName}`;\r\n const setting = this.w.localStorage.getItem(name);\r\n if (setting === null)\r\n return { status: UiStateStorageStatus.NotFound };\r\n this.w.localStorage.removeItem(name);\r\n return { status: UiStateStorageStatus.Success };\r\n }\r\n}\r\n"]}
@@ -1,31 +1,31 @@
1
1
  /** @packageDocumentation
2
- * @module UiSettings
2
+ * @module UiStateStorage
3
3
  */
4
- import { UiSettingsResult, UiSettingsStorage } from "./UiSettingsStorage";
5
- /** A Ui Setting with namespace and setting name.
4
+ import { UiStateStorage, UiStateStorageResult } from "./UiStateStorage";
5
+ /** A single UI State enter that is identified by namespace and setting name.
6
6
  * @public
7
7
  */
8
- export declare class UiSetting<T> {
8
+ export declare class UiStateEntry<T> {
9
9
  settingNamespace: string;
10
10
  settingName: string;
11
11
  getValue: () => T;
12
12
  applyValue?: ((v: T) => void) | undefined;
13
13
  defaultValue?: T | undefined;
14
14
  /** Constructor
15
- * @param settingNamespace Namespace for the setting, passed to UiSettings.
16
- * @param settingName Name for the setting, passed to UiSettings.
15
+ * @param settingNamespace Namespace for the setting, passed to UiStateStorage.
16
+ * @param settingName Name for the setting, passed to UiStateStorage.
17
17
  * @param getValue Function for getting the value from the application.
18
18
  * @param applyValue Function for applying the setting value to the application.
19
19
  * @param defaultValue Optional default value if not already stored.
20
20
  */
21
21
  constructor(settingNamespace: string, settingName: string, getValue: () => T, applyValue?: ((v: T) => void) | undefined, defaultValue?: T | undefined);
22
- /** Gets the setting from [[UiSettingsStorage]] */
23
- getSetting(storage: UiSettingsStorage): Promise<UiSettingsResult>;
24
- /** Saves the setting value from the `getValue` function to UiSettings */
25
- saveSetting(storage: UiSettingsStorage): Promise<UiSettingsResult>;
26
- /** Deletes the setting from UiSettings */
27
- deleteSetting(storage: UiSettingsStorage): Promise<UiSettingsResult>;
28
- /** Gets the setting from UiSettings and applies the value using the `applyValue` function */
29
- getSettingAndApplyValue(storage: UiSettingsStorage): Promise<UiSettingsResult>;
22
+ /** Gets the setting from [[UiStateStorage]] */
23
+ getSetting(storage: UiStateStorage): Promise<UiStateStorageResult>;
24
+ /** Saves the setting value from the `getValue` function to UiStateStorage */
25
+ saveSetting(storage: UiStateStorage): Promise<UiStateStorageResult>;
26
+ /** Deletes the setting from UiStateStorage */
27
+ deleteSetting(storage: UiStateStorage): Promise<UiStateStorageResult>;
28
+ /** Gets the setting from UiStateStorage and applies the value using the `applyValue` function */
29
+ getSettingAndApplyValue(storage: UiStateStorage): Promise<UiStateStorageResult>;
30
30
  }
31
- //# sourceMappingURL=UiSetting.d.ts.map
31
+ //# sourceMappingURL=UiStateEntry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UiStateEntry.d.ts","sourceRoot":"","sources":["../../../../src/core-react/uistate/UiStateEntry.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAwB,MAAM,kBAAkB,CAAC;AAE9F;;GAEG;AACH,qBAAa,YAAY,CAAC,CAAC;IAQC,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,+CAA+C;IAClC,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAI/E,6EAA6E;IAChE,WAAW,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAIhF,8CAA8C;IACjC,aAAa,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAIlF,iGAAiG;IACpF,uBAAuB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAc7F"}
@@ -4,19 +4,18 @@
4
4
  * See LICENSE.md in the project root for license terms and full copyright notice.
5
5
  *--------------------------------------------------------------------------------------------*/
6
6
  /** @packageDocumentation
7
- * @module UiSettings
7
+ * @module UiStateStorage
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.UiSetting = void 0;
11
- /* eslint-disable deprecation/deprecation */
12
- const UiSettingsStorage_1 = require("./UiSettingsStorage");
13
- /** A Ui Setting with namespace and setting name.
10
+ exports.UiStateEntry = void 0;
11
+ const UiStateStorage_1 = require("./UiStateStorage");
12
+ /** A single UI State enter that is identified by namespace and setting name.
14
13
  * @public
15
14
  */
16
- class UiSetting {
15
+ class UiStateEntry {
17
16
  /** Constructor
18
- * @param settingNamespace Namespace for the setting, passed to UiSettings.
19
- * @param settingName Name for the setting, passed to UiSettings.
17
+ * @param settingNamespace Namespace for the setting, passed to UiStateStorage.
18
+ * @param settingName Name for the setting, passed to UiStateStorage.
20
19
  * @param getValue Function for getting the value from the application.
21
20
  * @param applyValue Function for applying the setting value to the application.
22
21
  * @param defaultValue Optional default value if not already stored.
@@ -28,34 +27,34 @@ class UiSetting {
28
27
  this.applyValue = applyValue;
29
28
  this.defaultValue = defaultValue;
30
29
  }
31
- /** Gets the setting from [[UiSettingsStorage]] */
30
+ /** Gets the setting from [[UiStateStorage]] */
32
31
  async getSetting(storage) {
33
32
  return storage.getSetting(this.settingNamespace, this.settingName);
34
33
  }
35
- /** Saves the setting value from the `getValue` function to UiSettings */
34
+ /** Saves the setting value from the `getValue` function to UiStateStorage */
36
35
  async saveSetting(storage) {
37
36
  return storage.saveSetting(this.settingNamespace, this.settingName, this.getValue());
38
37
  }
39
- /** Deletes the setting from UiSettings */
38
+ /** Deletes the setting from UiStateStorage */
40
39
  async deleteSetting(storage) {
41
40
  return storage.deleteSetting(this.settingNamespace, this.settingName);
42
41
  }
43
- /** Gets the setting from UiSettings and applies the value using the `applyValue` function */
42
+ /** Gets the setting from UiStateStorage and applies the value using the `applyValue` function */
44
43
  async getSettingAndApplyValue(storage) {
45
44
  if (this.applyValue) {
46
45
  const result = await this.getSetting(storage);
47
- if (result.status === UiSettingsStorage_1.UiSettingsStatus.Success) {
46
+ if (result.status === UiStateStorage_1.UiStateStorageStatus.Success) {
48
47
  this.applyValue(result.setting);
49
48
  }
50
49
  else if (undefined !== this.defaultValue) {
51
50
  this.applyValue(this.defaultValue);
52
51
  result.setting = this.defaultValue;
53
- result.status = UiSettingsStorage_1.UiSettingsStatus.Success;
52
+ result.status = UiStateStorage_1.UiStateStorageStatus.Success;
54
53
  }
55
54
  return result;
56
55
  }
57
- return { status: UiSettingsStorage_1.UiSettingsStatus.Uninitialized };
56
+ return { status: UiStateStorage_1.UiStateStorageStatus.Uninitialized };
58
57
  }
59
58
  }
60
- exports.UiSetting = UiSetting;
61
- //# sourceMappingURL=UiSetting.js.map
59
+ exports.UiStateEntry = UiStateEntry;
60
+ //# sourceMappingURL=UiStateEntry.js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AO,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,qCAAoB,CAAC,OAAO,CAAC;aAC9C;YACD,OAAO,MAAM,CAAC;SACf;QACD,OAAO,EAAE,MAAM,EAAE,qCAAoB,CAAC,aAAa,EAAE,CAAC;IACxD,CAAC;CACF;AAzCD,oCAyCC","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\nimport { UiStateStorage, UiStateStorageResult, UiStateStorageStatus } from \"./UiStateStorage\";\r\n\r\n/** A single UI State enter that is identified by namespace and setting name.\r\n * @public\r\n */\r\nexport class UiStateEntry<T> {\r\n /** Constructor\r\n * @param settingNamespace Namespace for the setting, passed to UiStateStorage.\r\n * @param settingName Name for the setting, passed to UiStateStorage.\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 [[UiStateStorage]] */\r\n public async getSetting(storage: UiStateStorage): Promise<UiStateStorageResult> {\r\n return storage.getSetting(this.settingNamespace, this.settingName);\r\n }\r\n\r\n /** Saves the setting value from the `getValue` function to UiStateStorage */\r\n public async saveSetting(storage: UiStateStorage): Promise<UiStateStorageResult> {\r\n return storage.saveSetting(this.settingNamespace, this.settingName, this.getValue());\r\n }\r\n\r\n /** Deletes the setting from UiStateStorage */\r\n public async deleteSetting(storage: UiStateStorage): Promise<UiStateStorageResult> {\r\n return storage.deleteSetting(this.settingNamespace, this.settingName);\r\n }\r\n\r\n /** Gets the setting from UiStateStorage and applies the value using the `applyValue` function */\r\n public async getSettingAndApplyValue(storage: UiStateStorage): Promise<UiStateStorageResult> {\r\n if (this.applyValue) {\r\n const result = await this.getSetting(storage);\r\n if (result.status === UiStateStorageStatus.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 = UiStateStorageStatus.Success;\r\n }\r\n return result;\r\n }\r\n return { status: UiStateStorageStatus.Uninitialized };\r\n }\r\n}\r\n"]}
@@ -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,22 @@
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 UiStateStorage
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.UiStateStorageStatus = void 0;
11
+ /** Enum for [[UiStateStorage]] status.
12
+ * @public
13
+ */
14
+ var UiStateStorageStatus;
15
+ (function (UiStateStorageStatus) {
16
+ UiStateStorageStatus[UiStateStorageStatus["Success"] = 0] = "Success";
17
+ UiStateStorageStatus[UiStateStorageStatus["NotFound"] = 1] = "NotFound";
18
+ UiStateStorageStatus[UiStateStorageStatus["UnknownError"] = 2] = "UnknownError";
19
+ UiStateStorageStatus[UiStateStorageStatus["Uninitialized"] = 3] = "Uninitialized";
20
+ UiStateStorageStatus[UiStateStorageStatus["AuthorizationError"] = 4] = "AuthorizationError";
21
+ })(UiStateStorageStatus = exports.UiStateStorageStatus || (exports.UiStateStorageStatus = {}));
22
+ //# 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,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC9B,qEAAW,CAAA;IACX,uEAAY,CAAA;IACZ,+EAAgB,CAAA;IAChB,iFAAiB,CAAA;IACjB,2FAAsB,CAAA;AACxB,CAAC,EANW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,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,7 +2,7 @@
2
2
  * @module Utilities
3
3
  */
4
4
  import { BeUiEvent } from "@itwin/core-bentley";
5
- /** iModel.js UI UiEvent class is a subclass of BeEvent with argument type safety.
5
+ /** iTwin.js UI UiEvent class is a subclass of BeEvent with argument type safety.
6
6
  * @public
7
7
  */
8
8
  export declare class UiEvent<TEventArgs> extends BeUiEvent<TEventArgs> {
@@ -9,7 +9,7 @@
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.UiEvent = void 0;
11
11
  const core_bentley_1 = require("@itwin/core-bentley");
12
- /** iModel.js UI UiEvent class is a subclass of BeEvent with argument type safety.
12
+ /** iTwin.js UI UiEvent class is a subclass of BeEvent with argument type safety.
13
13
  * @public
14
14
  */
15
15
  class UiEvent extends core_bentley_1.BeUiEvent {
@@ -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,sDAAgD;AAEhD;;GAEG;AACH,MAAa,OAAoB,SAAQ,wBAAqB;CAAI;AAAlE,0BAAkE","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/** iModel.js UI UiEvent class is a subclass of BeEvent with argument type safety.\r\n * @public\r\n */\r\nexport class UiEvent<TEventArgs> extends BeUiEvent<TEventArgs> { }\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,sDAAgD;AAEhD;;GAEG;AACH,MAAa,OAAoB,SAAQ,wBAAqB;CAAI;AAAlE,0BAAkE","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\r\n */\r\nexport class UiEvent<TEventArgs> extends BeUiEvent<TEventArgs> { }\r\n"]}
@@ -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/uisettings/UiSetting";
114
- export * from "./core-react/uisettings/UiSettingsStorage";
115
- export * from "./core-react/uisettings/LocalSettingsStorage";
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 UiSettings
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.ts"],"names":[],"mappings":"AAOA,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;AAC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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"}
1
+ {"version":3,"file":"core-react.d.ts","sourceRoot":"","sources":["../../src/core-react.ts"],"names":[],"mappings":"AAOA,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,CA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AkD,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"}
@@ -133,10 +133,9 @@ var Tree_1 = require("./core-react/tree/Tree");
133
133
  Object.defineProperty(exports, "Tree", { enumerable: true, get: function () { return Tree_1.Tree; } });
134
134
  var Placeholder_1 = require("./core-react/tree/Placeholder");
135
135
  Object.defineProperty(exports, "TreeNodePlaceholder", { enumerable: true, get: function () { return Placeholder_1.TreeNodePlaceholder; } });
136
- __exportStar(require("./core-react/uisettings/UiSetting"), exports);
137
- __exportStar(require("./core-react/uisettings/UiSettingsStorage"), exports);
138
- __exportStar(require("./core-react/uisettings/LocalSettingsStorage"), exports);
139
- __exportStar(require("./core-react/uisettings/SessionSettingsStorage"), exports);
136
+ __exportStar(require("./core-react/uistate/UiStateEntry"), exports);
137
+ __exportStar(require("./core-react/uistate/UiStateStorage"), exports);
138
+ __exportStar(require("./core-react/uistate/LocalStateStorage"), exports);
140
139
  __exportStar(require("./core-react/utils/IconHelper"), exports);
141
140
  __exportStar(require("./core-react/utils/Point"), exports);
142
141
  __exportStar(require("./core-react/utils/PointProps"), exports);
@@ -288,7 +287,7 @@ __exportStar(require("./core-react/utils/hooks/useWidgetOpacityContext"), export
288
287
  * Presentation React components for working with a Tree.
289
288
  */
290
289
  /**
291
- * @docs-group-description UiSettings
290
+ * @docs-group-description UiStateStorage
292
291
  * Interfaces and classes for working with persistent UI settings.
293
292
  */
294
293
  /**