@itwin/core-react 3.0.0-extension.1 → 3.0.0
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 +129 -6
- 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.map +1 -1
- package/lib/cjs/core-react/tree/Node.js +1 -3
- 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.map +1 -1
- package/lib/esm/core-react/tree/Node.js +1 -3
- 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 +19 -21
- 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
package/lib/cjs/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.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,cAA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GG;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/cjs/core-react.js
CHANGED
|
@@ -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/
|
|
137
|
-
__exportStar(require("./core-react/
|
|
138
|
-
__exportStar(require("./core-react/
|
|
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
|
|
290
|
+
* @docs-group-description UiStateStorage
|
|
292
291
|
* Interfaces and classes for working with persistent UI settings.
|
|
293
292
|
*/
|
|
294
293
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-react.js","sourceRoot":"","sources":["../../src/core-react.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;AAE/F,gFAAgF;AAEhF,sDAAoC;AAEpC,2DAAyC;AACzC,oEAAkD;AAClD,+DAA6C;AAC7C,8DAA4C;AAE5C,wDAAsC;AACtC,wEAAsD;AACtD,6DAA2C;AAC3C,iEAA+C;AAC/C,sEAAoD;AACpD,wDAAsC;AACtC,kEAAgD;AAChD,+DAA6C;AAE7C,6DAA2C;AAC3C,uEAAqD;AAErD,yEAAuD;AAEvD,uEAAqD;AACrD,gFAA8D;AAC9D,8EAA4D;AAC5D,2EAAyD;AACzD,0EAAwD;AACxD,6EAA2D;AAC3D,4EAA0D;AAE1D,6DAA2C;AAC3C,sEAAoD;AACpD,mEAAiD;AAEjD,iFAA+D;AAE/D,+DAA6C;AAC7C,mEAAiD;AACjD,iEAA+C;AAC/C,mEAAiD;AACjD,gEAA8C;AAE9C,yEAAuD;AACvD,0EAAwD;AAExD,2EAAyD;AACzD,mEAAiD;AAEjD,0DAAwC;AACxC,yDAAuC;AAEvC,kEAAgD;AAChD,uEAAqD;AACrD,gEAA8C;AAE9C,mEAAiD;AACjD,6DAA2C;AAC3C,+DAA6C;AAC7C,iEAA+C;AAE/C,uEAAqD;AAErD,iEAA+C;AAE/C,2EAAyD;AAEzD,4DAA0C;AAC1C,iEAA+C;AAC/C,kEAAgD;AAChD,0EAAwD;AACxD,4EAA0D;AAC1D,mEAAiD;AACjD,sEAAoD;AACpD,8EAA4D;AAC5D,+DAA6C;AAE7C,+DAA6C;AAE7C,kEAAgD;AAChD,qEAAmD;AACnD,sEAAoD;AACpD,qEAAmD;AACnD,+DAA6C;AAE7C,qEAAmD;AACnD,0EAAwD;AAExD,4EAA0D;AAC1D,wEAAsD;AAEt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;AAC7D,wEAAsD;AACtD,mEAAiD;AACjD,uEAAqD;AACrD,6EAA2D;AAC3D,uEAAqD;AACrD,mFAAiE;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,sDAAoC;AAEpC,2DAAyC;AACzC,oEAAkD;AAClD,+DAA6C;AAC7C,8DAA4C;AAE5C,wDAAsC;AACtC,wEAAsD;AACtD,6DAA2C;AAC3C,iEAA+C;AAC/C,sEAAoD;AACpD,wDAAsC;AACtC,kEAAgD;AAChD,+DAA6C;AAE7C,6DAA2C;AAC3C,uEAAqD;AAErD,yEAAuD;AAEvD,uEAAqD;AACrD,gFAA8D;AAC9D,8EAA4D;AAC5D,2EAAyD;AACzD,0EAAwD;AACxD,6EAA2D;AAC3D,4EAA0D;AAE1D,6DAA2C;AAC3C,sEAAoD;AACpD,mEAAiD;AAEjD,iFAA+D;AAE/D,+DAA6C;AAC7C,mEAAiD;AACjD,iEAA+C;AAC/C,mEAAiD;AACjD,gEAA8C;AAE9C,yEAAuD;AACvD,0EAAwD;AAExD,2EAAyD;AACzD,mEAAiD;AAEjD,0DAAwC;AACxC,yDAAuC;AAEvC,kEAAgD;AAChD,uEAAqD;AACrD,gEAA8C;AAE9C,mEAAiD;AACjD,6DAA2C;AAC3C,+DAA6C;AAC7C,iEAA+C;AAE/C,uEAAqD;AAErD,iEAA+C;AAE/C,2EAAyD;AAEzD,4DAA0C;AAC1C,iEAA+C;AAC/C,kEAAgD;AAChD,0EAAwD;AACxD,4EAA0D;AAC1D,mEAAiD;AACjD,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ClD,oEAAkD;AAClD,kEAAgD;AAChD,oEAAkD;AAClD,+DAA6C;AAC7C,mEAAiD;AACjD,8EAA4D;AAE5D,yEAAuD;AACvD,8EAA4D;AAC5D,4EAA0D;AAC1D,kFAAgE;AAChE,6EAA2D;AAC3D,+EAA6D;AAC7D,wEAAsD;AACtD,mEAAiD;AACjD,uEAAqD;AACrD,6EAA2D;AAC3D,uEAAqD;AACrD,mFAAiE;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"]}
|
|
@@ -6,7 +6,7 @@ import "./colorthemes.scss";
|
|
|
6
6
|
import "./colorvariables.scss";
|
|
7
7
|
import "./layout-variables.scss";
|
|
8
8
|
import "./classes.scss";
|
|
9
|
-
import { Localization } from "@itwin/core-common";
|
|
9
|
+
import type { Localization } from "@itwin/core-common";
|
|
10
10
|
/**
|
|
11
11
|
* Manages the Localization service for the core-react package.
|
|
12
12
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiCore.d.ts","sourceRoot":"","sources":["../../../src/core-react/UiCore.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,4EAA4E;AAC5E,OAAO,oBAAoB,CAAC;AAC5B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,yBAAyB,CAAC;AACjC,OAAO,gBAAgB,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"UiCore.d.ts","sourceRoot":"","sources":["../../../src/core-react/UiCore.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,4EAA4E;AAC5E,OAAO,oBAAoB,CAAC;AAC5B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,yBAAyB,CAAC;AACjC,OAAO,gBAAgB,CAAC;AAGxB,OAAO,KAAK,EAAE,YAAY,E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Y,CAAC;IACtB,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,cAAc,CAAC,GAAQ;QACnC,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;QACpC,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACzE,OAAO,QAAQ,CAAC;IAClB,CAAC;;AAnEc,mBAAY,GAAG,KAAK,CAAC","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\n/** Import color variables, layout variables and Sass classes barrel file */\r\nimport \"./colorthemes.scss\";\r\nimport \"./colorvariables.scss\";\r\nimport \"./layout-variables.scss\";\r\nimport \"./classes.scss\";\r\n\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport { Localization } from \"@itwin/core-common\";\r\nimport { getClassName, UiError } from \"@itwin/appui-abstract\";\r\n\r\n// cSpell:ignore colorthemes colorvariables\r\n\r\n/**\r\n * Manages the Localization service for the core-react package.\r\n * @public\r\n */\r\nexport class UiCore {\r\n private static _initialized = false;\r\n private static _localization?: Localization;\r\n\r\n /**\r\n * Registers the Localization service namespace for UiCore.\r\n * @param localization The internationalization service created by the host application.\r\n */\r\n public static async initialize(localization: Localization): Promise<void> {\r\n if (UiCore._initialized) {\r\n Logger.logInfo(UiCore.loggerCategory(UiCore), `UiCore.initialize already called`);\r\n return;\r\n }\r\n\r\n UiCore._localization = localization;\r\n await UiCore._localization.registerNamespace(UiCore.localizationNamespace);\r\n UiCore._initialized = true;\r\n }\r\n\r\n /** Unregisters the UiCore localization namespace */\r\n public static terminate() {\r\n if (UiCore._localization)\r\n UiCore._localization.unregisterNamespace(UiCore.localizationNamespace);\r\n UiCore._localization = undefined;\r\n\r\n UiCore._initialized = false;\r\n }\r\n\r\n /** Determines if UiCore has been initialized */\r\n public static get initialized(): boolean { return UiCore._initialized; }\r\n\r\n /** The internationalization service created by the host application.\r\n * @internal\r\n */\r\n public static get localization(): Localization {\r\n // istanbul ignore else\r\n if (!UiCore._localization)\r\n throw new UiError(UiCore.loggerCategory(this), \"localization: UiCore.initialize has not been called. Unable to return Localization object.\");\r\n // istanbul ignore next\r\n return UiCore._localization;\r\n }\r\n\r\n /** The internationalization service namespace. */\r\n public static get localizationNamespace(): string {\r\n return \"UiCore\";\r\n }\r\n\r\n /** Calls localization.getLocalizedStringWithNamespace with the \"UiCore\" namespace. Do NOT include the namespace in the key.\r\n * @internal\r\n */\r\n public static translate(key: string | string[]): string {\r\n if (!UiCore._localization) {\r\n Logger.logError(UiCore.loggerCategory(this), `translate: UiCore must be initialize with a localization provider. Returning blank string.`);\r\n return \"\";\r\n }\r\n return UiCore._localization.getLocalizedStringWithNamespace(UiCore.localizationNamespace, key);\r\n }\r\n\r\n /** @internal */\r\n public static get packageName(): string {\r\n return \"core-react\";\r\n }\r\n\r\n /** @internal */\r\n public static loggerCategory(obj: any): string {\r\n const className = getClassName(obj);\r\n const category = UiCore.packageName + (className ? `.${className}` : \"\");\r\n return category;\r\n }\r\n\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"UiCore.js","sourceRoot":"","sources":["../../../src/core-react/UiCore.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,4EAA4E;AAC5E,OAAO,oBAAoB,CAAC;AAC5B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,yBAAyB,CAAC;AACjC,OAAO,gBAAgB,CAAC;AAExB,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAE9D,2CAA2C;AAE3C;;;GAGG;AACH,MAAM,OAAO,MAAM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C3I,OAAO,EAAE,CAAC;SACX;QACD,OAAO,MAAM,CAAC,aAAa,CAAC,+BAA+B,CAAC,MAAM,CAAC,qBAAqB,EAAE,GAAG,CAAC,CAAC;IACjG,CAAC;IAED,gBAAgB;IACT,MAAM,KAAK,WAAW;QAC3B,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,cAAc,CAAC,GAAQ;QACnC,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;QACpC,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACzE,OAAO,QAAQ,CAAC;IAClB,CAAC;;AAnEc,mBAAY,GAAG,KAAK,CAAC","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\n/** Import color variables, layout variables and Sass classes barrel file */\r\nimport \"./colorthemes.scss\";\r\nimport \"./colorvariables.scss\";\r\nimport \"./layout-variables.scss\";\r\nimport \"./classes.scss\";\r\n\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport type { Localization } from \"@itwin/core-common\";\r\nimport { getClassName, UiError } from \"@itwin/appui-abstract\";\r\n\r\n// cSpell:ignore colorthemes colorvariables\r\n\r\n/**\r\n * Manages the Localization service for the core-react package.\r\n * @public\r\n */\r\nexport class UiCore {\r\n private static _initialized = false;\r\n private static _localization?: Localization;\r\n\r\n /**\r\n * Registers the Localization service namespace for UiCore.\r\n * @param localization The internationalization service created by the host application.\r\n */\r\n public static async initialize(localization: Localization): Promise<void> {\r\n if (UiCore._initialized) {\r\n Logger.logInfo(UiCore.loggerCategory(UiCore), `UiCore.initialize already called`);\r\n return;\r\n }\r\n\r\n UiCore._localization = localization;\r\n await UiCore._localization.registerNamespace(UiCore.localizationNamespace);\r\n UiCore._initialized = true;\r\n }\r\n\r\n /** Unregisters the UiCore localization namespace */\r\n public static terminate() {\r\n if (UiCore._localization)\r\n UiCore._localization.unregisterNamespace(UiCore.localizationNamespace);\r\n UiCore._localization = undefined;\r\n\r\n UiCore._initialized = false;\r\n }\r\n\r\n /** Determines if UiCore has been initialized */\r\n public static get initialized(): boolean { return UiCore._initialized; }\r\n\r\n /** The internationalization service created by the host application.\r\n * @internal\r\n */\r\n public static get localization(): Localization {\r\n // istanbul ignore else\r\n if (!UiCore._localization)\r\n throw new UiError(UiCore.loggerCategory(this), \"localization: UiCore.initialize has not been called. Unable to return Localization object.\");\r\n // istanbul ignore next\r\n return UiCore._localization;\r\n }\r\n\r\n /** The internationalization service namespace. */\r\n public static get localizationNamespace(): string {\r\n return \"UiCore\";\r\n }\r\n\r\n /** Calls localization.getLocalizedStringWithNamespace with the \"UiCore\" namespace. Do NOT include the namespace in the key.\r\n * @internal\r\n */\r\n public static translate(key: string | string[]): string {\r\n if (!UiCore._localization) {\r\n Logger.logError(UiCore.loggerCategory(this), `translate: UiCore must be initialize with a localization provider. Returning blank string.`);\r\n return \"\";\r\n }\r\n return UiCore._localization.getLocalizedStringWithNamespace(UiCore.localizationNamespace, key);\r\n }\r\n\r\n /** @internal */\r\n public static get packageName(): string {\r\n return \"core-react\";\r\n }\r\n\r\n /** @internal */\r\n public static loggerCategory(obj: any): string {\r\n const className = getClassName(obj);\r\n const category = UiCore.packageName + (className ? `.${className}` : \"\");\r\n return category;\r\n }\r\n\r\n}\r\n"]}
|
|
@@ -16,7 +16,7 @@ import { ContextMenuDirection } from "./ContextMenuDirection";
|
|
|
16
16
|
export function PopupContextMenu(props) {
|
|
17
17
|
const { style, onSelect, onEsc, autoflip, edgeLimit, hotkeySelect, selectedIndex, children, ...popupProps } = props;
|
|
18
18
|
const menuDirection = getContextMenuDirectionFromRelativePosition(popupProps.position);
|
|
19
|
-
return (React.createElement(Popup, { ...popupProps, showShadow: false, showArrow: false, moveFocus: true, style: { ...style, border: "none" } },
|
|
19
|
+
return (React.createElement(Popup, { ...popupProps, closeOnNestedPopupOutsideClick: true, showShadow: false, showArrow: false, moveFocus: true, style: { ...style, border: "none" } },
|
|
20
20
|
React.createElement(ContextMenu, { opened: true, onSelect: onSelect, onEsc: onEsc, autoflip: autoflip, edgeLimit: edgeLimit, hotkeySelect: hotkeySelect, selectedIndex: selectedIndex, direction: menuDirection }, children)));
|
|
21
21
|
}
|
|
22
22
|
function getContextMenuDirectionFromRelativePosition(relativePosition) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopupContextMenu.js","sourceRoot":"","sources":["../../../../src/core-react/contextmenu/PopupContextMenu.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAgD9D;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAA4B;IAC3D,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IACpH,MAAM,aAAa,GAAG,2CAA2C,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IACvF,OAAO,CACL,oBAAC,KAAK,OAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"PopupContextMenu.js","sourceRoot":"","sources":["../../../../src/core-react/contextmenu/PopupContextMenu.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;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O;YAC3B,aAAa,GAAG,oBAAoB,CAAC,QAAQ,CAAC;YAC9C,MAAM;QACR,KAAK,gBAAgB,CAAC,QAAQ;YAC5B,aAAa,GAAG,oBAAoB,CAAC,OAAO,CAAC;YAC7C,MAAM;QACR,KAAK,gBAAgB,CAAC,IAAI;YACxB,aAAa,GAAG,oBAAoB,CAAC,IAAI,CAAC;YAC1C,MAAM;QACR,KAAK,gBAAgB,CAAC,KAAK;YACzB,aAAa,GAAG,oBAAoB,CAAC,KAAK,CAAC;YAC3C,MAAM;QACR,KAAK,gBAAgB,CAAC,MAAM;YAC1B,aAAa,GAAG,oBAAoB,CAAC,MAAM,CAAC;YAC5C,MAAM;QACR,KAAK,gBAAgB,CAAC,UAAU;YAC9B,aAAa,GAAG,oBAAoB,CAAC,WAAW,CAAC;YACjD,MAAM;QACR,KAAK,gBAAgB,CAAC,WAAW;YAC/B,aAAa,GAAG,oBAAoB,CAAC,UAAU,CAAC;YAChD,MAAM;KACT;IACD,OAAO,aAAa,CAAC;AACvB,CAAC","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 ContextMenu\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Popup } from \"../popup/Popup\";\r\nimport { ContextMenu } from \"./ContextMenu\";\r\nimport { RelativePosition } from \"@itwin/appui-abstract\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { ContextMenuDirection } from \"./ContextMenuDirection\";\r\n\r\n/** Properties for [[PopupContextMenu]] component\r\n * @public\r\n */\r\nexport interface PopupContextMenuProps extends CommonProps {\r\n /** Indicates whether the popup is shown or not (defaults to false) */\r\n isOpen: boolean;\r\n /** Direction (relative to the target) to which the popup is expanded (defaults to Bottom) */\r\n position?: RelativePosition;\r\n /** Target element to position popup */\r\n target?: HTMLElement | null;\r\n /** Function called when the popup is opened */\r\n onOpen?: () => void;\r\n /** Function called when user clicks outside the popup */\r\n onOutsideClick?: (e: MouseEvent) => void;\r\n /** Function called when the popup is closed */\r\n onClose?: () => void;\r\n /** Function called when the popup is closed on Enter */\r\n onEnter?: () => void;\r\n /** Top position (absolute positioning - defaults to 0) */\r\n top?: number;\r\n /** Left position (absolute positioning - defaults to 0) */\r\n left?: number;\r\n /** Offset from the parent (defaults to 4) */\r\n offset?: number;\r\n /** accessibility label */\r\n ariaLabel?: string;\r\n /** Indicates whether to use animation for open/close (defaults to true) */\r\n animate?: boolean;\r\n\r\n /** When list item or submenu is selected */\r\n onSelect?: (event: React.MouseEvent | undefined) => void;\r\n /** when Escape button is pressed */\r\n onEsc?: (event: React.KeyboardEvent) => void;\r\n /** Whether menu flips directions based on screen edge. Default: true */\r\n autoflip?: boolean;\r\n /** Whether menu hugs screen edge when autoflip is off. Default: true */\r\n edgeLimit?: boolean;\r\n /** Whether Hotkey press selects item, or just highlights item. Default: true */\r\n hotkeySelect?: boolean;\r\n /** starting menu item selected index Default: -1 */\r\n selectedIndex?: number;\r\n\r\n /** ContextMenu items */\r\n children?: React.ReactNode;\r\n}\r\n\r\n/** Component that displays a ContextMenu within a Popup component, allowing the target element to be specified.\r\n * @public\r\n */\r\nexport function PopupContextMenu(props: PopupContextMenuProps) {\r\n const { style, onSelect, onEsc, autoflip, edgeLimit, hotkeySelect, selectedIndex, children, ...popupProps } = props;\r\n const menuDirection = getContextMenuDirectionFromRelativePosition(popupProps.position);\r\n return (\r\n <Popup {...popupProps} closeOnNestedPopupOutsideClick\r\n showShadow={false} showArrow={false} moveFocus={true}\r\n style={{ ...style, border: \"none\" }}>\r\n <ContextMenu\r\n opened={true} onSelect={onSelect} onEsc={onEsc}\r\n autoflip={autoflip} edgeLimit={edgeLimit}\r\n hotkeySelect={hotkeySelect} selectedIndex={selectedIndex}\r\n direction={menuDirection}\r\n >\r\n {children}\r\n </ContextMenu>\r\n </Popup >\r\n );\r\n}\r\n\r\nfunction getContextMenuDirectionFromRelativePosition(relativePosition?: RelativePosition): ContextMenuDirection {\r\n let menuDirection = ContextMenuDirection.Bottom;\r\n switch (relativePosition) {\r\n case RelativePosition.Top:\r\n menuDirection = ContextMenuDirection.Top;\r\n break;\r\n case RelativePosition.TopLeft:\r\n menuDirection = ContextMenuDirection.TopRight;\r\n break;\r\n case RelativePosition.TopRight:\r\n menuDirection = ContextMenuDirection.TopLeft;\r\n break;\r\n case RelativePosition.Left:\r\n menuDirection = ContextMenuDirection.Left;\r\n break;\r\n case RelativePosition.Right:\r\n menuDirection = ContextMenuDirection.Right;\r\n break;\r\n case RelativePosition.Bottom:\r\n menuDirection = ContextMenuDirection.Bottom;\r\n break;\r\n case RelativePosition.BottomLeft:\r\n menuDirection = ContextMenuDirection.BottomRight;\r\n break;\r\n case RelativePosition.BottomRight:\r\n menuDirection = ContextMenuDirection.BottomLeft;\r\n break;\r\n }\r\n return menuDirection;\r\n}\r\n"]}
|
|
@@ -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
|
|
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
|
|
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
|
|
31
|
+
* @deprecated Use [DialogButtonDef]($appui-abstract) instead
|
|
32
32
|
*/
|
|
33
33
|
export interface DialogButtonDef {
|
|
34
34
|
/** type of button */
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
/** Enum for button types. Determines button label, and default button style.
|
|
9
9
|
* @public
|
|
10
|
-
* @deprecated Use DialogButtonType
|
|
10
|
+
* @deprecated Use [DialogButtonType]($appui-abstract) instead
|
|
11
11
|
*/
|
|
12
12
|
export var DialogButtonType;
|
|
13
13
|
(function (DialogButtonType) {
|
|
@@ -23,7 +23,7 @@ export var DialogButtonType;
|
|
|
23
23
|
})(DialogButtonType || (DialogButtonType = {}));
|
|
24
24
|
/** Enum for button style.
|
|
25
25
|
* @public
|
|
26
|
-
* @deprecated Use DialogButtonStyle
|
|
26
|
+
* @deprecated Use [DialogButtonStyle]($appui-abstract) instead
|
|
27
27
|
*/
|
|
28
28
|
export var DialogButtonStyle;
|
|
29
29
|
(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,MAAM,CAAN,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,KAAhB,gBAAgB,QAU3B;AAED;;;IAGI;AACJ,MAAM,CAAN,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,8BAAS,CAAA;IACT,wCAAmB,CAAA;IACnB,2CAAsB,CAAA;IACtB,iDAA4B,CAAA;AAC9B,CAAC,EALW,iBAAiB,KAAjB,iBAAiB,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
|
|
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,MAAM,CAAN,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,KAAhB,gBAAgB,QAU3B;AAED;;;IAGI;AACJ,MAAM,CAAN,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,8BAAS,CAAA;IACT,wCAAmB,CAAA;IACnB,2CAAsB,CAAA;IACtB,iDAA4B,CAAA;AAC9B,CAAC,EALW,iBAAiB,KAAjB,iBAAiB,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,10 +3,7 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
@import "./list.scss";
|
|
6
|
-
@import "~@itwin/core-react/lib/cjs/core-react/style/itwinui-overrides";
|
|
7
6
|
|
|
8
7
|
.uicore-expandable-blocks-list {
|
|
9
8
|
@include uicore-expandable-blocks-list;
|
|
10
|
-
|
|
11
|
-
@include small-itwinui-expandable-block;
|
|
12
9
|
}
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { FieldDef } from "./Form";
|
|
6
6
|
/** Properties used to create a [[Field]] in a [[Form]]
|
|
7
|
-
* @public
|
|
7
|
+
* @public @deprecated
|
|
8
8
|
*/
|
|
9
9
|
export interface FieldProps extends FieldDef {
|
|
10
10
|
id: string;
|
|
11
11
|
}
|
|
12
12
|
/** Component that represents a single field in an input form. Only four type of editors are supported. Field gets/sets state data from/to the context control by the form.
|
|
13
|
-
* @public
|
|
13
|
+
* @public @deprecated
|
|
14
14
|
*/
|
|
15
15
|
export declare class Field extends React.Component<FieldProps> {
|
|
16
16
|
constructor(props: FieldProps);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../../src/core-react/form/Field.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../../src/core-react/form/Field.tsx"],"names":[],"mappings":"AAKA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,QAAQ,EAAiC,MAAM,QAAQ,CAAC;AAIjE;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,QAAQ;IAE1C,EAAE,EAAE,MAAM,CAAC;CACZ;AAID;;GAEG;AACH,qBAAa,KAAM,SAAQ,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC;gBACxC,KAAK,EAAE,UAAU;IAI7B,OAAO,CAAC,sBAAsB,CAc5B;IAEc,MAAM;CAkDvB"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/* eslint-disable deprecation/deprecation */
|
|
5
6
|
/** @packageDocumentation
|
|
6
7
|
* @module Form
|
|
7
8
|
*/
|
|
@@ -9,7 +10,7 @@ import * as React from "react";
|
|
|
9
10
|
import { Checkbox, Input, Select, Textarea } from "@itwin/itwinui-react";
|
|
10
11
|
import { FormContext } from "./Form";
|
|
11
12
|
/** Component that represents a single field in an input form. Only four type of editors are supported. Field gets/sets state data from/to the context control by the form.
|
|
12
|
-
* @public
|
|
13
|
+
* @public @deprecated
|
|
13
14
|
*/
|
|
14
15
|
export class Field extends React.Component {
|
|
15
16
|
constructor(props) {
|
|
@@ -29,12 +30,12 @@ export class Field extends React.Component {
|
|
|
29
30
|
const selectOptions = this._generateSelectOptions(this.props.options);
|
|
30
31
|
return (React.createElement(FormContext.Consumer, null, (context) => (React.createElement("div", { className: "core-form-group" },
|
|
31
32
|
this.props.editor.toLowerCase() !== "checkbox" && this.props.label && React.createElement("label", { className: "core-form-label", htmlFor: this.props.id }, this.props.label),
|
|
32
|
-
this.props.editor.toLowerCase() === "textbox" && (React.createElement(Input, { id: this.props.id, value: context.values[this.props.id], onChange: (event) => context.setValues({ [this.props.id]: event.currentTarget.value }), className: "core-form-input" })),
|
|
33
|
+
this.props.editor.toLowerCase() === "textbox" && (React.createElement(Input, { id: this.props.id, value: context.values[this.props.id], onChange: (event) => context.setValues({ [this.props.id]: event.currentTarget.value }), className: "core-form-input", size: "small" })),
|
|
33
34
|
this.props.editor.toLowerCase() === "checkbox" && (React.createElement(Checkbox, { label: this.props.label, id: this.props.id, checked: context.values[this.props.id], onChange: () => context.setValues({ [this.props.id]: !context.values[this.props.id] }) })),
|
|
34
35
|
this.props.editor.toLowerCase() === "multilinetextbox" && (React.createElement(Textarea, { id: this.props.id, value: context.values[this.props.id], onChange: (event) => context.setValues({ [this.props.id]: event.currentTarget.value }), className: "core-form-textarea" })),
|
|
35
36
|
this.props.editor.toLowerCase() === "dropdown" && this.props.options && (React.createElement(Select, { id: this.props.id,
|
|
36
37
|
// name={this.props.id}
|
|
37
|
-
value: context.values[this.props.id], onChange: (newValue) => context.setValues({ [this.props.id]: newValue }), options: selectOptions, className: "core-form-select" }))))));
|
|
38
|
+
value: context.values[this.props.id], onChange: (newValue) => context.setValues({ [this.props.id]: newValue }), options: selectOptions, className: "core-form-select", size: "small" }))))));
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
//# sourceMappingURL=Field.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.js","sourceRoot":"","sources":["../../../../src/core-react/form/Field.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAA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AAC,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAC9E,OAAO,EAAE,aAAa,EACtB,SAAS,EAAC,kBAAkB,EAC5B,IAAI,EAAC,OAAO,GACZ,CACH,CACG,CACP,CACoB,CACxB,CAAC;IACJ,CAAC;CACF","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 Form\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Checkbox, Input, Select, SelectOption, Textarea } from \"@itwin/itwinui-react\";\r\nimport { FieldDef, FormContext, FormContextState } from \"./Form\";\r\n\r\n// cSpell:ignore multilinetextbox\r\n\r\n/** Properties used to create a [[Field]] in a [[Form]]\r\n * @public @deprecated\r\n */\r\nexport interface FieldProps extends FieldDef {\r\n /* The unique field name */\r\n id: string;\r\n}\r\n\r\ntype FieldDefOptions = FieldDef[\"options\"];\r\n\r\n/** Component that represents a single field in an input form. Only four type of editors are supported. Field gets/sets state data from/to the context control by the form.\r\n * @public @deprecated\r\n */\r\nexport class Field extends React.Component<FieldProps> {\r\n constructor(props: FieldProps) {\r\n super(props);\r\n }\r\n\r\n private _generateSelectOptions = (propOptions: FieldDefOptions): SelectOption<string>[] => {\r\n let selectOptions: SelectOption<string>[] = [];\r\n\r\n if (propOptions instanceof Array) {\r\n selectOptions = propOptions.map((option: string) => (\r\n { value: option, label: option }\r\n ));\r\n } else if (propOptions !== undefined) {\r\n selectOptions = Object.keys(propOptions).map((key) => (\r\n { value: key, label: propOptions[key] }\r\n ));\r\n }\r\n\r\n return selectOptions;\r\n };\r\n\r\n public override render() {\r\n const selectOptions = this._generateSelectOptions(this.props.options);\r\n\r\n return (\r\n <FormContext.Consumer>\r\n {(context: FormContextState | undefined) => (\r\n <div className=\"core-form-group\">\r\n {this.props.editor!.toLowerCase() !== \"checkbox\" && this.props.label && <label className=\"core-form-label\" htmlFor={this.props.id}>{this.props.label}</label>}\r\n\r\n {this.props.editor!.toLowerCase() === \"textbox\" && (\r\n <Input\r\n id={this.props.id}\r\n value={context!.values[this.props.id]}\r\n onChange={(event: React.ChangeEvent<HTMLInputElement>) => context!.setValues({ [this.props.id]: event.currentTarget.value })}\r\n className=\"core-form-input\"\r\n size=\"small\"\r\n />\r\n )}\r\n {this.props.editor!.toLowerCase() === \"checkbox\" && (\r\n <Checkbox\r\n label={this.props.label}\r\n id={this.props.id}\r\n checked={context!.values[this.props.id]}\r\n onChange={() => context!.setValues({ [this.props.id]: !context!.values[this.props.id] })}\r\n />\r\n )}\r\n {this.props.editor!.toLowerCase() === \"multilinetextbox\" && (\r\n <Textarea\r\n id={this.props.id}\r\n value={context!.values[this.props.id]}\r\n onChange={(event: React.ChangeEvent<HTMLTextAreaElement>) => context!.setValues({ [this.props.id]: event.currentTarget.value })}\r\n className=\"core-form-textarea\"\r\n />\r\n )}\r\n {this.props.editor!.toLowerCase() === \"dropdown\" && this.props.options && (\r\n <Select\r\n id={this.props.id}\r\n // name={this.props.id}\r\n value={context!.values[this.props.id]}\r\n onChange={(newValue: any) => context!.setValues({ [this.props.id]: newValue })}\r\n options={selectOptions}\r\n className=\"core-form-select\"\r\n size=\"small\"\r\n />\r\n )}\r\n </div>\r\n )}\r\n </FormContext.Consumer>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import "./Form.scss";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
/** The available editors for the fields in a [[Form]].
|
|
7
|
-
* @public
|
|
7
|
+
* @public @deprecated
|
|
8
8
|
*/
|
|
9
9
|
export declare type FieldEditor = "textbox" | "multilinetextbox" | "dropdown" | "checkbox";
|
|
10
10
|
/** Interface used to define each [[Field]] in a [[Form]]
|
|
11
|
-
* @public
|
|
11
|
+
* @public @deprecated
|
|
12
12
|
*/
|
|
13
13
|
export interface FieldDef {
|
|
14
14
|
label?: string;
|
|
@@ -19,13 +19,13 @@ export interface FieldDef {
|
|
|
19
19
|
value?: any;
|
|
20
20
|
}
|
|
21
21
|
/** Key/value pairs for all the field values with key being the field HTML Id.
|
|
22
|
-
* @public
|
|
22
|
+
* @public @deprecated
|
|
23
23
|
*/
|
|
24
24
|
export interface FieldValues {
|
|
25
25
|
[key: string]: any;
|
|
26
26
|
}
|
|
27
27
|
/** The state data used by [[Form]] to hold state of each [[Field]] and the result of submit button processing.
|
|
28
|
-
* @public
|
|
28
|
+
* @public @deprecated
|
|
29
29
|
*/
|
|
30
30
|
interface FormState {
|
|
31
31
|
values: FieldValues;
|
|
@@ -34,13 +34,13 @@ interface FormState {
|
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* FormContextState combines the Form's state data with the callbacks used to update the value of the state data.
|
|
37
|
-
* @public
|
|
37
|
+
* @public @deprecate
|
|
38
38
|
*/
|
|
39
39
|
export interface FormContextState extends FormState {
|
|
40
40
|
setValues: (values: FieldValues) => void;
|
|
41
41
|
}
|
|
42
42
|
/** React context used by Form as a Provider and by the Fields as Consumers and updaters.
|
|
43
|
-
* @public
|
|
43
|
+
* @public @deprecated
|
|
44
44
|
*/
|
|
45
45
|
export declare const FormContext: React.Context<FormContextState | undefined>;
|
|
46
46
|
/** Key/value pairs for all the field definitions to be displayed in a [[Form]].
|
|
@@ -112,7 +112,7 @@ export interface FormProps {
|
|
|
112
112
|
* </div >
|
|
113
113
|
* );
|
|
114
114
|
* }
|
|
115
|
-
* @public
|
|
115
|
+
* @public @deprecate
|
|
116
116
|
*/
|
|
117
117
|
export declare class Form extends React.Component<FormProps, FormState> {
|
|
118
118
|
private _submitButtonLabel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../src/core-react/form/Form.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../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;;;;;;;;;;;;;;;;;;;GAqDG;AACH,qBAAa,IAAK,SAAQ,KAAK,CAAC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC7D,OAAO,CAAC,kBAAkB,CAA8C;IACxE,OAAO,CAAC,YAAY,CAAwC;IAC5D,OAAO,CAAC,YAAY,CAAwC;gBAEhD,KAAK,EAAE,SAAS;IAa5B;;;OAGG;IACH,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,UAAU,CAEhB;IAEF,OAAO,CAAC,aAAa,CAgBnB;IAEc,MAAM;CA2BvB"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/* eslint-disable deprecation/deprecation */
|
|
5
6
|
/** @packageDocumentation
|
|
6
7
|
* @module Form
|
|
7
8
|
*/
|
|
@@ -11,7 +12,7 @@ import { UiCore } from "../UiCore";
|
|
|
11
12
|
import { Field } from "./Field";
|
|
12
13
|
import { Button } from "@itwin/itwinui-react";
|
|
13
14
|
/** React context used by Form as a Provider and by the Fields as Consumers and updaters.
|
|
14
|
-
* @public
|
|
15
|
+
* @public @deprecated
|
|
15
16
|
*/
|
|
16
17
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
17
18
|
export const FormContext = React.createContext(undefined);
|
|
@@ -68,7 +69,7 @@ FormContext.displayName = "core-react:FormContext";
|
|
|
68
69
|
* </div >
|
|
69
70
|
* );
|
|
70
71
|
* }
|
|
71
|
-
* @public
|
|
72
|
+
* @public @deprecate
|
|
72
73
|
*/
|
|
73
74
|
export class Form extends React.Component {
|
|
74
75
|
constructor(props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.js","sourceRoot":"","sources":["../../../../src/core-react/form/Form.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;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Aa,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,IAAI;oBACzH,6BAAK,SAAS,EAAC,qBAAqB;wBACjC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,oBAAC,KAAK,IAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,KAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,GAAI,CAAC;wBAC3F,6BAAK,SAAS,EAAC,kBAAkB;4BAC/B,6BAAK,SAAS,EAAC,mBAAmB;gCAChC,oBAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,iBAAiB,IAC9C,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CACzD,CACL;4BACL,aAAa,KAAK,KAAK,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CACtD,6BAAK,SAAS,EAAC,iBAAiB,EAAC,IAAI,EAAC,OAAO,IAAE,GAAG,IAAI,CAAC,YAAY,IAAI,QAAQ,IAAI,IAAI,CAAC,YAAY,EAAE,CAAO,CAC9G,CACG,CACF,CACD,CACH,CACe,CACxB,CAAC;IACJ,CAAC;CACF","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 Form\r\n */\r\n\r\nimport \"./Form.scss\";\r\nimport * as React from \"react\";\r\nimport { UiCore } from \"../UiCore\";\r\nimport { Field } from \"./Field\";\r\nimport { Button } from \"@itwin/itwinui-react\";\r\n\r\n// cSpell:ignore multilinetextbox\r\n\r\n/** The available editors for the fields in a [[Form]].\r\n * @public\r\n */\r\nexport type FieldEditor = \"textbox\" | \"multilinetextbox\" | \"dropdown\" | \"checkbox\";\r\n\r\n/** Interface used to define each [[Field]] in a [[Form]]\r\n * @public\r\n */\r\nexport interface FieldDef {\r\n /* The label text for the field */\r\n label?: string;\r\n\r\n /* The editor for the field */\r\n editor?: FieldEditor;\r\n\r\n /* The drop down items for the field */\r\n options?: string[] | { [key: string]: string };\r\n\r\n /* The initial field value */\r\n value?: any;\r\n}\r\n\r\n/** Key/value pairs for all the field values with key being the field HTML Id.\r\n * @public\r\n */\r\nexport interface FieldValues {\r\n [key: string]: any;\r\n}\r\n\r\n/** The state data used by [[Form]] to hold state of each [[Field]] and the result of submit button processing.\r\n * @public\r\n */\r\ninterface FormState {\r\n /* The field values */\r\n values: FieldValues;\r\n\r\n /* The errorMsg message return in catch of async submit button processing */\r\n errorMsg: string;\r\n\r\n /* Whether the form has been successfully submitted */\r\n submitSuccess?: boolean;\r\n}\r\n\r\n/**\r\n * FormContextState combines the Form's state data with the callbacks used to update the value of the state data.\r\n * @public\r\n */\r\nexport interface FormContextState extends FormState {\r\n setValues: (values: FieldValues) => void;\r\n}\r\n\r\n/** React context used by Form as a Provider and by the Fields as Consumers and updaters.\r\n * @public\r\n */\r\n// eslint-disable-next-line @typescript-eslint/naming-convention\r\nexport const FormContext = React.createContext<FormContextState | undefined>(undefined);\r\nFormContext.displayName = \"core-react:FormContext\";\r\n\r\n/** Key/value pairs for all the field definitions to be displayed in a [[Form]].\r\n * @public\r\n */\r\nexport interface FieldDefinitions {\r\n [key: string]: FieldDef;\r\n}\r\n\r\n/** Properties that define [[Form]] including the callback to be called when the Submit button is pressed.\r\n * @public\r\n */\r\nexport interface FormProps {\r\n /** Required async callback the processes the Form data and throws and Error if the data cannot be processed. */\r\n handleFormSubmit: (values: FieldValues) => Promise<void>;\r\n /** Definition used to create each Field in the Form. */\r\n fields: FieldDefinitions;\r\n /** Optional label which will override default Submit button label. */\r\n submitButtonLabel?: string;\r\n}\r\n\r\n/** Component used to create a Form using supplied properties to specify the fields of the Form.\r\n * @example\r\n * // Example of using a form as contents of a modal dialog.\r\n * export class ExampleForm extends React.Component {\r\n * public static open() {\r\n * const form = new ExampleForm({});\r\n * ModalDialogManager.openDialog(form.render());\r\n * }\r\n *\r\n * protected async handleSubmit(values: FieldValues): Promise<void> {\r\n * await this.processFormSubmission(values);\r\n * ModalDialogManager.closeDialog();\r\n * const msg = JSON.stringify(values);\r\n * IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, \"Form Submitted\", msg));\r\n * }\r\n *\r\n * protected async processFormSubmission(values: FieldValues): Promise<void> {\r\n * // if error occurs during async processing throw an Error and return error message back to form.\r\n * throw new Error(\"Error processing form\");\r\n * }\r\n *\r\n * protected handleCancel() {\r\n * ModalDialogManager.closeDialog();\r\n * }\r\n *\r\n * public render() {\r\n * const fields: FieldDefinitions = {\r\n * Name: {\r\n * label: this._nameLabel,\r\n * editor: \"textbox\",\r\n * value: \"John Smith\",\r\n * },\r\n * PickList: {\r\n * label: this._pickListLabel,\r\n * editor: \"dropdown\",\r\n * value: \"one\",\r\n * options: [\"one\", \"two\", \"three\", \"four\"],\r\n * },\r\n * };\r\n *\r\n * return (\r\n * <div>\r\n * <Dialog title=\"Example Form\"\r\n * opened={true}\r\n * onClose={() => this.handleCancel()}>\r\n * <Form handleFormSubmit={(values: FieldValues) => this.handleSubmit(values)}\r\n * fields={fields}\r\n * />\r\n * </Dialog>\r\n * </div >\r\n * );\r\n * }\r\n * @public\r\n */\r\nexport class Form extends React.Component<FormProps, FormState> {\r\n private _submitButtonLabel = UiCore.translate(\"form.submitButtonLabel\");\r\n private _errorPrefix = UiCore.translate(\"form.errorPrefix\");\r\n private _errorSuffix = UiCore.translate(\"form.errorSuffix\");\r\n\r\n constructor(props: FormProps) {\r\n super(props);\r\n\r\n // set initial values for field values\r\n const values: FieldValues = {};\r\n Object.keys(props.fields).forEach((key) => values[key] = props.fields[key].value);\r\n\r\n this.state = {\r\n errorMsg: \"\",\r\n values,\r\n };\r\n }\r\n\r\n /**\r\n * Returns whether there is an errorMsg message in the state/context\r\n * @param errorMsg - The form errorMsg\r\n */\r\n private haveError(errorMsg: string) {\r\n return errorMsg && errorMsg.length;\r\n }\r\n\r\n private _setValues = (values: FieldValues) => {\r\n this.setState((prevState) => ({ values: { ...prevState.values, ...values } }));\r\n };\r\n\r\n private _handleSubmit = (event: React.FormEvent<HTMLFormElement>, values: FieldValues) => {\r\n event.preventDefault();\r\n\r\n // istanbul ignore next\r\n if (!this.props.handleFormSubmit || !values || 0 === values.length)\r\n throw new Error(\"A handleFormSubmit function and values must be defined\");\r\n\r\n this.props.handleFormSubmit(values)\r\n .then(() => {\r\n // Currently we don't need to do anything if successful. Typically the hosting dialog will close when the\r\n // submission is successful.\r\n // console.log(rtnMsg);\r\n })\r\n .catch((reason: Error) => {\r\n this.setState({ submitSuccess: false, errorMsg: reason.message });\r\n });\r\n };\r\n\r\n public override render() {\r\n const { submitSuccess, errorMsg } = this.state;\r\n const { fields, submitButtonLabel } = this.props;\r\n const context: FormContextState = { ...this.state, setValues: this._setValues };\r\n\r\n return (\r\n <FormContext.Provider value={context}>\r\n <div className=\"core-form-wrapper\">\r\n <form onSubmit={(event: React.FormEvent<HTMLFormElement>) => this._handleSubmit(event, this.state.values)} noValidate={true}>\r\n <div className=\"core-form-container\">\r\n {Object.keys(fields).map((key) => <Field key={key} id={key} {...this.props.fields[key]} />)}\r\n <div className=\"core-form-footer\">\r\n <div className=\"core-form-buttons\">\r\n <Button type=\"submit\" styleType=\"high-visibility\">\r\n {submitButtonLabel ? submitButtonLabel : this._submitButtonLabel}\r\n </Button>\r\n </div>\r\n {submitSuccess === false && this.haveError(errorMsg) && (\r\n <div className=\"core-form-alert\" role=\"alert\">{`${this._errorPrefix}-${errorMsg} ${this._errorSuffix}`}</div>\r\n )}\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n </FormContext.Provider>\r\n );\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"Form.js","sourceRo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SAAS,EAAC,mBAAmB;gBAChC,8BAAM,QAAQ,EAAE,CAAC,KAAuC,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,IAAI;oBACzH,6BAAK,SAAS,EAAC,qBAAqB;wBACjC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,oBAAC,KAAK,IAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,KAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,GAAI,CAAC;wBAC3F,6BAAK,SAAS,EAAC,kBAAkB;4BAC/B,6BAAK,SAAS,EAAC,mBAAmB;gCAChC,oBAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,iBAAiB,IAC9C,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CACzD,CACL;4BACL,aAAa,KAAK,KAAK,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CACtD,6BAAK,SAAS,EAAC,iBAAiB,EAAC,IAAI,EAAC,OAAO,IAAE,GAAG,IAAI,CAAC,YAAY,IAAI,QAAQ,IAAI,IAAI,CAAC,YAAY,EAAE,CAAO,CAC9G,CACG,CACF,CACD,CACH,CACe,CACxB,CAAC;IACJ,CAAC;CACF","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 Form\r\n */\r\n\r\nimport \"./Form.scss\";\r\nimport * as React from \"react\";\r\nimport { UiCore } from \"../UiCore\";\r\nimport { Field } from \"./Field\";\r\nimport { Button } from \"@itwin/itwinui-react\";\r\n\r\n// cSpell:ignore multilinetextbox\r\n\r\n/** The available editors for the fields in a [[Form]].\r\n * @public @deprecated\r\n */\r\nexport type FieldEditor = \"textbox\" | \"multilinetextbox\" | \"dropdown\" | \"checkbox\";\r\n\r\n/** Interface used to define each [[Field]] in a [[Form]]\r\n * @public @deprecated\r\n */\r\nexport interface FieldDef {\r\n /* The label text for the field */\r\n label?: string;\r\n\r\n /* The editor for the field */\r\n editor?: FieldEditor;\r\n\r\n /* The drop down items for the field */\r\n options?: string[] | { [key: string]: string };\r\n\r\n /* The initial field value */\r\n value?: any;\r\n}\r\n\r\n/** Key/value pairs for all the field values with key being the field HTML Id.\r\n * @public @deprecated\r\n */\r\nexport interface FieldValues {\r\n [key: string]: any;\r\n}\r\n\r\n/** The state data used by [[Form]] to hold state of each [[Field]] and the result of submit button processing.\r\n * @public @deprecated\r\n */\r\ninterface FormState {\r\n /* The field values */\r\n values: FieldValues;\r\n\r\n /* The errorMsg message return in catch of async submit button processing */\r\n errorMsg: string;\r\n\r\n /* Whether the form has been successfully submitted */\r\n submitSuccess?: boolean;\r\n}\r\n\r\n/**\r\n * FormContextState combines the Form's state data with the callbacks used to update the value of the state data.\r\n * @public @deprecate\r\n */\r\nexport interface FormContextState extends FormState {\r\n setValues: (values: FieldValues) => void;\r\n}\r\n\r\n/** React context used by Form as a Provider and by the Fields as Consumers and updaters.\r\n * @public @deprecated\r\n */\r\n// eslint-disable-next-line @typescript-eslint/naming-convention\r\nexport const FormContext = React.createContext<FormContextState | undefined>(undefined);\r\nFormContext.displayName = \"core-react:FormContext\";\r\n\r\n/** Key/value pairs for all the field definitions to be displayed in a [[Form]].\r\n * @public\r\n */\r\nexport interface FieldDefinitions {\r\n [key: string]: FieldDef;\r\n}\r\n\r\n/** Properties that define [[Form]] including the callback to be called when the Submit button is pressed.\r\n * @public\r\n */\r\nexport interface FormProps {\r\n /** Required async callback the processes the Form data and throws and Error if the data cannot be processed. */\r\n handleFormSubmit: (values: FieldValues) => Promise<void>;\r\n /** Definition used to create each Field in the Form. */\r\n fields: FieldDefinitions;\r\n /** Optional label which will override default Submit button label. */\r\n submitButtonLabel?: string;\r\n}\r\n\r\n/** Component used to create a Form using supplied properties to specify the fields of the Form.\r\n * @example\r\n * // Example of using a form as contents of a modal dialog.\r\n * export class ExampleForm extends React.Component {\r\n * public static open() {\r\n * const form = new ExampleForm({});\r\n * ModalDialogManager.openDialog(form.render());\r\n * }\r\n *\r\n * protected async handleSubmit(values: FieldValues): Promise<void> {\r\n * await this.processFormSubmission(values);\r\n * ModalDialogManager.closeDialog();\r\n * const msg = JSON.stringify(values);\r\n * IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, \"Form Submitted\", msg));\r\n * }\r\n *\r\n * protected async processFormSubmission(values: FieldValues): Promise<void> {\r\n * // if error occurs during async processing throw an Error and return error message back to form.\r\n * throw new Error(\"Error processing form\");\r\n * }\r\n *\r\n * protected handleCancel() {\r\n * ModalDialogManager.closeDialog();\r\n * }\r\n *\r\n * public render() {\r\n * const fields: FieldDefinitions = {\r\n * Name: {\r\n * label: this._nameLabel,\r\n * editor: \"textbox\",\r\n * value: \"John Smith\",\r\n * },\r\n * PickList: {\r\n * label: this._pickListLabel,\r\n * editor: \"dropdown\",\r\n * value: \"one\",\r\n * options: [\"one\", \"two\", \"three\", \"four\"],\r\n * },\r\n * };\r\n *\r\n * return (\r\n * <div>\r\n * <Dialog title=\"Example Form\"\r\n * opened={true}\r\n * onClose={() => this.handleCancel()}>\r\n * <Form handleFormSubmit={(values: FieldValues) => this.handleSubmit(values)}\r\n * fields={fields}\r\n * />\r\n * </Dialog>\r\n * </div >\r\n * );\r\n * }\r\n * @public @deprecate\r\n */\r\nexport class Form extends React.Component<FormProps, FormState> {\r\n private _submitButtonLabel = UiCore.translate(\"form.submitButtonLabel\");\r\n private _errorPrefix = UiCore.translate(\"form.errorPrefix\");\r\n private _errorSuffix = UiCore.translate(\"form.errorSuffix\");\r\n\r\n constructor(props: FormProps) {\r\n super(props);\r\n\r\n // set initial values for field values\r\n const values: FieldValues = {};\r\n Object.keys(props.fields).forEach((key) => values[key] = props.fields[key].value);\r\n\r\n this.state = {\r\n errorMsg: \"\",\r\n values,\r\n };\r\n }\r\n\r\n /**\r\n * Returns whether there is an errorMsg message in the state/context\r\n * @param errorMsg - The form errorMsg\r\n */\r\n private haveError(errorMsg: string) {\r\n return errorMsg && errorMsg.length;\r\n }\r\n\r\n private _setValues = (values: FieldValues) => {\r\n this.setState((prevState) => ({ values: { ...prevState.values, ...values } }));\r\n };\r\n\r\n private _handleSubmit = (event: React.FormEvent<HTMLFormElement>, values: FieldValues) => {\r\n event.preventDefault();\r\n\r\n // istanbul ignore next\r\n if (!this.props.handleFormSubmit || !values || 0 === values.length)\r\n throw new Error(\"A handleFormSubmit function and values must be defined\");\r\n\r\n this.props.handleFormSubmit(values)\r\n .then(() => {\r\n // Currently we don't need to do anything if successful. Typically the hosting dialog will close when the\r\n // submission is successful.\r\n // console.log(rtnMsg);\r\n })\r\n .catch((reason: Error) => {\r\n this.setState({ submitSuccess: false, errorMsg: reason.message });\r\n });\r\n };\r\n\r\n public override render() {\r\n const { submitSuccess, errorMsg } = this.state;\r\n const { fields, submitButtonLabel } = this.props;\r\n const context: FormContextState = { ...this.state, setValues: this._setValues };\r\n\r\n return (\r\n <FormContext.Provider value={context}>\r\n <div className=\"core-form-wrapper\">\r\n <form onSubmit={(event: React.FormEvent<HTMLFormElement>) => this._handleSubmit(event, this.state.values)} noValidate={true}>\r\n <div className=\"core-form-container\">\r\n {Object.keys(fields).map((key) => <Field key={key} id={key} {...this.props.fields[key]} />)}\r\n <div className=\"core-form-footer\">\r\n <div className=\"core-form-buttons\">\r\n <Button type=\"submit\" styleType=\"high-visibility\">\r\n {submitButtonLabel ? submitButtonLabel : this._submitButtonLabel}\r\n </Button>\r\n </div>\r\n {submitSuccess === false && this.haveError(errorMsg) && (\r\n <div className=\"core-form-alert\" role=\"alert\">{`${this._errorPrefix}-${errorMsg} ${this._errorSuffix}`}</div>\r\n )}\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n </FormContext.Provider>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../../src/core-react/inputs/numberinput/NumberInput.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,oBAAoB,CAAC;AAE5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAS,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIzD;;GAEG;AACH,oBAAY,gBAAgB,GAAG,MAAM,GAAG,CAAC,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC,CAAC;AAEpF;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,UAAU,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;IAC7F,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yCAAyC;IACzC,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,iDAAiD;IACjD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kHAAkH;IAClH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0BAA0B;IAC1B,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;IACvD,sJAAsJ;IACtJ,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,cAAc,EAAE,MAAM,KAAK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