@itwin/core-react 3.7.0-dev.1 → 3.7.0-dev.3
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 +16 -1
- package/lib/cjs/core-react/UiCore.d.ts +40 -40
- package/lib/cjs/core-react/UiCore.js +85 -85
- package/lib/cjs/core-react/UiCore.js.map +1 -1
- package/lib/cjs/core-react/_geometry.scss +70 -70
- package/lib/cjs/core-react/_helpers.scss +51 -51
- package/lib/cjs/core-react/_math.scss +13 -13
- package/lib/cjs/core-react/_scrollbar.scss +51 -51
- package/lib/cjs/core-react/_typography.scss +44 -44
- package/lib/cjs/core-react/_z-index.scss +65 -65
- package/lib/cjs/core-react/autosuggest/AutoSuggest.d.ts +96 -96
- package/lib/cjs/core-react/autosuggest/AutoSuggest.js +174 -174
- package/lib/cjs/core-react/autosuggest/AutoSuggest.js.map +1 -1
- package/lib/cjs/core-react/autosuggest/AutoSuggest.scss +82 -82
- package/lib/cjs/core-react/badge/Badge.d.ts +18 -18
- package/lib/cjs/core-react/badge/Badge.js +26 -26
- package/lib/cjs/core-react/badge/Badge.js.map +1 -1
- package/lib/cjs/core-react/badge/Badge.scss +13 -13
- package/lib/cjs/core-react/badge/BadgeUtilities.d.ts +12 -12
- package/lib/cjs/core-react/badge/BadgeUtilities.js +38 -38
- package/lib/cjs/core-react/badge/BadgeUtilities.js.map +1 -1
- package/lib/cjs/core-react/badge/BetaBadge.d.ts +10 -10
- package/lib/cjs/core-react/badge/BetaBadge.js +23 -23
- package/lib/cjs/core-react/badge/BetaBadge.js.map +1 -1
- package/lib/cjs/core-react/badge/BetaBadge.scss +9 -9
- package/lib/cjs/core-react/badge/NewBadge.d.ts +10 -10
- package/lib/cjs/core-react/badge/NewBadge.js +23 -23
- package/lib/cjs/core-react/badge/NewBadge.js.map +1 -1
- package/lib/cjs/core-react/badge/NewBadge.scss +9 -9
- package/lib/cjs/core-react/base/Centered.d.ts +10 -10
- package/lib/cjs/core-react/base/Centered.js +20 -20
- package/lib/cjs/core-react/base/Centered.js.map +1 -1
- package/lib/cjs/core-react/base/Div.d.ts +16 -16
- package/lib/cjs/core-react/base/Div.js +20 -20
- package/lib/cjs/core-react/base/Div.js.map +1 -1
- package/lib/cjs/core-react/base/DivWithOutsideClick.d.ts +79 -79
- package/lib/cjs/core-react/base/DivWithOutsideClick.js +16 -16
- package/lib/cjs/core-react/base/DivWithOutsideClick.js.map +1 -1
- package/lib/cjs/core-react/base/FillCentered.d.ts +10 -10
- package/lib/cjs/core-react/base/FillCentered.js +20 -20
- package/lib/cjs/core-react/base/FillCentered.js.map +1 -1
- package/lib/cjs/core-react/base/FlexWrapContainer.d.ts +11 -11
- package/lib/cjs/core-react/base/FlexWrapContainer.js +21 -21
- package/lib/cjs/core-react/base/FlexWrapContainer.js.map +1 -1
- package/lib/cjs/core-react/base/Gap.d.ts +15 -15
- package/lib/cjs/core-react/base/Gap.js +20 -20
- package/lib/cjs/core-react/base/Gap.js.map +1 -1
- package/lib/cjs/core-react/base/PointerEvents.d.ts +7 -7
- package/lib/cjs/core-react/base/PointerEvents.js +17 -17
- package/lib/cjs/core-react/base/PointerEvents.js.map +1 -1
- package/lib/cjs/core-react/base/ScrollView.d.ts +11 -11
- package/lib/cjs/core-react/base/ScrollView.js +21 -21
- package/lib/cjs/core-react/base/ScrollView.js.map +1 -1
- package/lib/cjs/core-react/base/base.scss +42 -42
- package/lib/cjs/core-react/base/classes.scss +13 -13
- package/lib/cjs/core-react/base/index.scss +5 -5
- package/lib/cjs/core-react/button/Button.d.ts +47 -47
- package/lib/cjs/core-react/button/Button.js +85 -85
- package/lib/cjs/core-react/button/Button.js.map +1 -1
- package/lib/cjs/core-react/button/UnderlinedButton.d.ts +24 -24
- package/lib/cjs/core-react/button/UnderlinedButton.js +35 -35
- package/lib/cjs/core-react/button/UnderlinedButton.js.map +1 -1
- package/lib/cjs/core-react/button/UnderlinedButton.scss +32 -32
- package/lib/cjs/core-react/button/blue-large.scss +12 -12
- package/lib/cjs/core-react/button/blue.scss +25 -25
- package/lib/cjs/core-react/button/button.scss +81 -81
- package/lib/cjs/core-react/button/classes.scss +14 -14
- package/lib/cjs/core-react/button/disabled-large.scss +12 -12
- package/lib/cjs/core-react/button/disabled.scss +17 -17
- package/lib/cjs/core-react/button/hollow-large.scss +13 -13
- package/lib/cjs/core-react/button/hollow.scss +30 -30
- package/lib/cjs/core-react/button/index.scss +14 -14
- package/lib/cjs/core-react/button/primary-large.scss +12 -12
- package/lib/cjs/core-react/button/primary.scss +25 -25
- package/lib/cjs/core-react/button/variables.scss +19 -19
- package/lib/cjs/core-react/checkbox/Checkbox.d.ts +56 -56
- package/lib/cjs/core-react/checkbox/Checkbox.js +64 -64
- package/lib/cjs/core-react/checkbox/Checkbox.js.map +1 -1
- package/lib/cjs/core-react/checkbox/checkbox.scss +129 -129
- package/lib/cjs/core-react/checkbox/classes.scss +8 -8
- package/lib/cjs/core-react/checkbox/index.scss +8 -8
- package/lib/cjs/core-react/checklistbox/CheckListBox.d.ts +37 -37
- package/lib/cjs/core-react/checklistbox/CheckListBox.js +42 -42
- package/lib/cjs/core-react/checklistbox/CheckListBox.js.map +1 -1
- package/lib/cjs/core-react/checklistbox/CheckListBox.scss +22 -22
- package/lib/cjs/core-react/classes.scss +18 -18
- package/lib/cjs/core-react/colorthemes.scss +58 -58
- package/lib/cjs/core-react/colorvariables.scss +116 -116
- package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts +91 -91
- package/lib/cjs/core-react/contextmenu/ContextMenu.js +364 -364
- package/lib/cjs/core-react/contextmenu/ContextMenu.js.map +1 -1
- package/lib/cjs/core-react/contextmenu/ContextMenu.scss +238 -238
- package/lib/cjs/core-react/contextmenu/ContextMenuDirection.d.ts +18 -18
- package/lib/cjs/core-react/contextmenu/ContextMenuDirection.js +26 -26
- package/lib/cjs/core-react/contextmenu/ContextMenuDirection.js.map +1 -1
- package/lib/cjs/core-react/contextmenu/ContextMenuDivider.d.ts +12 -12
- package/lib/cjs/core-react/contextmenu/ContextMenuDivider.js +23 -23
- package/lib/cjs/core-react/contextmenu/ContextMenuDivider.js.map +1 -1
- package/lib/cjs/core-react/contextmenu/ContextMenuItem.d.ts +61 -61
- package/lib/cjs/core-react/contextmenu/ContextMenuItem.js +108 -108
- package/lib/cjs/core-react/contextmenu/ContextMenuItem.js.map +1 -1
- package/lib/cjs/core-react/contextmenu/ContextSubMenu.d.ts +51 -51
- package/lib/cjs/core-react/contextmenu/ContextSubMenu.js +159 -159
- package/lib/cjs/core-react/contextmenu/ContextSubMenu.js.map +1 -1
- package/lib/cjs/core-react/contextmenu/GlobalContextMenu.d.ts +34 -34
- package/lib/cjs/core-react/contextmenu/GlobalContextMenu.js +59 -59
- package/lib/cjs/core-react/contextmenu/GlobalContextMenu.js.map +1 -1
- package/lib/cjs/core-react/contextmenu/PopupContextMenu.d.ts +53 -53
- package/lib/cjs/core-react/contextmenu/PopupContextMenu.js +55 -55
- package/lib/cjs/core-react/contextmenu/PopupContextMenu.js.map +1 -1
- package/lib/cjs/core-react/contextmenu/TildeFinder.d.ts +18 -18
- package/lib/cjs/core-react/contextmenu/TildeFinder.js +70 -70
- package/lib/cjs/core-react/contextmenu/TildeFinder.js.map +1 -1
- package/lib/cjs/core-react/dialog/Dialog.d.ts +132 -132
- package/lib/cjs/core-react/dialog/Dialog.js +366 -366
- package/lib/cjs/core-react/dialog/Dialog.js.map +1 -1
- package/lib/cjs/core-react/dialog/Dialog.scss +245 -245
- package/lib/cjs/core-react/dialog/DialogButtonDef.d.ts +46 -46
- package/lib/cjs/core-react/dialog/DialogButtonDef.js +37 -37
- package/lib/cjs/core-react/dialog/DialogButtonDef.js.map +1 -1
- package/lib/cjs/core-react/dialog/GlobalDialog.d.ts +28 -28
- package/lib/cjs/core-react/dialog/GlobalDialog.js +53 -53
- package/lib/cjs/core-react/dialog/GlobalDialog.js.map +1 -1
- package/lib/cjs/core-react/elementseparator/ElementSeparator.d.ts +41 -41
- package/lib/cjs/core-react/elementseparator/ElementSeparator.js +163 -163
- package/lib/cjs/core-react/elementseparator/ElementSeparator.js.map +1 -1
- package/lib/cjs/core-react/elementseparator/ElementSeparator.scss +85 -85
- package/lib/cjs/core-react/enums/Alignment.d.ts +22 -22
- package/lib/cjs/core-react/enums/Alignment.js +31 -31
- package/lib/cjs/core-react/enums/Alignment.js.map +1 -1
- package/lib/cjs/core-react/enums/CheckBoxState.d.ts +20 -20
- package/lib/cjs/core-react/enums/CheckBoxState.js +19 -19
- package/lib/cjs/core-react/enums/CheckBoxState.js.map +1 -1
- package/lib/cjs/core-react/enums/Orientation.d.ts +11 -11
- package/lib/cjs/core-react/enums/Orientation.js +19 -19
- package/lib/cjs/core-react/enums/Orientation.js.map +1 -1
- package/lib/cjs/core-react/enums/SortDirection.d.ts +12 -12
- package/lib/cjs/core-react/enums/SortDirection.js +20 -20
- package/lib/cjs/core-react/enums/SortDirection.js.map +1 -1
- package/lib/cjs/core-react/enums/TimeFormat.d.ts +14 -14
- package/lib/cjs/core-react/enums/TimeFormat.js +22 -22
- package/lib/cjs/core-react/enums/TimeFormat.js.map +1 -1
- package/lib/cjs/core-react/expandable/ExpandableBlock.d.ts +33 -33
- package/lib/cjs/core-react/expandable/ExpandableBlock.js +35 -35
- package/lib/cjs/core-react/expandable/ExpandableBlock.js.map +1 -1
- package/lib/cjs/core-react/expandable/ExpandableBlock.scss +145 -145
- package/lib/cjs/core-react/expandable/ExpandableList.d.ts +35 -35
- package/lib/cjs/core-react/expandable/ExpandableList.js +57 -57
- package/lib/cjs/core-react/expandable/ExpandableList.js.map +1 -1
- package/lib/cjs/core-react/expandable/ExpandableList.scss +8 -8
- package/lib/cjs/core-react/expandable/classes.scss +7 -7
- package/lib/cjs/core-react/expandable/index.scss +5 -5
- package/lib/cjs/core-react/expandable/list.scss +45 -45
- package/lib/cjs/core-react/focus/ItemKeyboardNavigator.d.ts +53 -53
- package/lib/cjs/core-react/focus/ItemKeyboardNavigator.js +150 -150
- package/lib/cjs/core-react/focus/ItemKeyboardNavigator.js.map +1 -1
- package/lib/cjs/core-react/focustrap/FocusTrap.d.ts +28 -28
- package/lib/cjs/core-react/focustrap/FocusTrap.js +196 -196
- package/lib/cjs/core-react/focustrap/FocusTrap.js.map +1 -1
- package/lib/cjs/core-react/form/Field.d.ts +19 -19
- package/lib/cjs/core-react/form/Field.js +44 -44
- package/lib/cjs/core-react/form/Field.js.map +1 -1
- package/lib/cjs/core-react/form/Form.d.ts +131 -131
- package/lib/cjs/core-react/form/Form.js +131 -131
- package/lib/cjs/core-react/form/Form.js.map +1 -1
- package/lib/cjs/core-react/form/Form.scss +78 -78
- package/lib/cjs/core-react/hocs/withIsPressed.d.ts +77 -77
- package/lib/cjs/core-react/hocs/withIsPressed.js +46 -46
- package/lib/cjs/core-react/hocs/withIsPressed.js.map +1 -1
- package/lib/cjs/core-react/hocs/withOnOutsideClick.d.ts +103 -103
- package/lib/cjs/core-react/hocs/withOnOutsideClick.js +115 -115
- package/lib/cjs/core-react/hocs/withOnOutsideClick.js.map +1 -1
- package/lib/cjs/core-react/hocs/withTimeout.d.ts +74 -74
- package/lib/cjs/core-react/hocs/withTimeout.js +46 -46
- package/lib/cjs/core-react/hocs/withTimeout.js.map +1 -1
- package/lib/cjs/core-react/icons/IconComponent.d.ts +24 -24
- package/lib/cjs/core-react/icons/IconComponent.js +54 -54
- package/lib/cjs/core-react/icons/IconComponent.js.map +1 -1
- package/lib/cjs/core-react/icons/IconComponent.scss +20 -20
- package/lib/cjs/core-react/icons/SvgPath.d.ts +23 -23
- package/lib/cjs/core-react/icons/SvgPath.js +27 -27
- package/lib/cjs/core-react/icons/SvgPath.js.map +1 -1
- package/lib/cjs/core-react/icons/SvgSprite.d.ts +20 -20
- package/lib/cjs/core-react/icons/SvgSprite.js +26 -26
- package/lib/cjs/core-react/icons/SvgSprite.js.map +1 -1
- package/lib/cjs/core-react/icons/SvgSprite.scss +15 -15
- package/lib/cjs/core-react/icons/WebFontIcon.d.ts +26 -26
- package/lib/cjs/core-react/icons/WebFontIcon.js +22 -22
- package/lib/cjs/core-react/icons/WebFontIcon.js.map +1 -1
- package/lib/cjs/core-react/icons/WebFontIcon.scss +17 -17
- package/lib/cjs/core-react/icons/classes.scss +10 -10
- package/lib/cjs/core-react/icons/index.scss +6 -6
- package/lib/cjs/core-react/icons/mixins.scss +25 -25
- package/lib/cjs/core-react/icons/variables.scss +21 -21
- package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.d.ts +42 -42
- package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.js +56 -56
- package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.js.map +1 -1
- package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.scss +54 -54
- package/lib/cjs/core-react/index.scss +27 -27
- package/lib/cjs/core-react/inputs/Input.d.ts +22 -22
- package/lib/cjs/core-react/inputs/Input.js +46 -46
- package/lib/cjs/core-react/inputs/Input.js.map +1 -1
- package/lib/cjs/core-react/inputs/InputLabel.d.ts +18 -18
- package/lib/cjs/core-react/inputs/InputLabel.js +33 -33
- package/lib/cjs/core-react/inputs/InputLabel.js.map +1 -1
- package/lib/cjs/core-react/inputs/InputStatus.d.ts +11 -11
- package/lib/cjs/core-react/inputs/InputStatus.js +19 -19
- package/lib/cjs/core-react/inputs/InputStatus.js.map +1 -1
- package/lib/cjs/core-react/inputs/LabeledComponentProps.d.ts +33 -33
- package/lib/cjs/core-react/inputs/LabeledComponentProps.js +9 -9
- package/lib/cjs/core-react/inputs/LabeledComponentProps.js.map +1 -1
- package/lib/cjs/core-react/inputs/LabeledInput.d.ts +17 -17
- package/lib/cjs/core-react/inputs/LabeledInput.js +33 -33
- package/lib/cjs/core-react/inputs/LabeledInput.js.map +1 -1
- package/lib/cjs/core-react/inputs/LabeledTextarea.d.ts +17 -17
- package/lib/cjs/core-react/inputs/LabeledTextarea.js +31 -31
- package/lib/cjs/core-react/inputs/LabeledTextarea.js.map +1 -1
- package/lib/cjs/core-react/inputs/Textarea.d.ts +22 -22
- package/lib/cjs/core-react/inputs/Textarea.js +35 -35
- package/lib/cjs/core-react/inputs/Textarea.js.map +1 -1
- package/lib/cjs/core-react/inputs/classes.scss +10 -10
- package/lib/cjs/core-react/inputs/iconinput/IconInput.d.ts +23 -23
- package/lib/cjs/core-react/inputs/iconinput/IconInput.js +29 -29
- package/lib/cjs/core-react/inputs/iconinput/IconInput.js.map +1 -1
- package/lib/cjs/core-react/inputs/iconinput/IconInput.scss +35 -35
- package/lib/cjs/core-react/inputs/index.scss +11 -11
- package/lib/cjs/core-react/inputs/input.scss +60 -60
- package/lib/cjs/core-react/inputs/labeled-input.scss +103 -103
- package/lib/cjs/core-react/inputs/labeled-textarea.scss +77 -77
- package/lib/cjs/core-react/inputs/numberinput/NumberInput.d.ts +45 -45
- package/lib/cjs/core-react/inputs/numberinput/NumberInput.js +148 -148
- package/lib/cjs/core-react/inputs/numberinput/NumberInput.js.map +1 -1
- package/lib/cjs/core-react/inputs/numberinput/NumberInput.scss +89 -89
- package/lib/cjs/core-react/inputs/textarea.scss +55 -55
- package/lib/cjs/core-react/inputs/variables.scss +33 -33
- package/lib/cjs/core-react/layout-variables.scss +17 -17
- package/lib/cjs/core-react/listbox/Listbox.d.ts +55 -55
- package/lib/cjs/core-react/listbox/Listbox.js +222 -222
- package/lib/cjs/core-react/listbox/Listbox.js.map +1 -1
- package/lib/cjs/core-react/listbox/Listbox.scss +53 -53
- package/lib/cjs/core-react/loading/LoadingBar.d.ts +29 -29
- package/lib/cjs/core-react/loading/LoadingBar.js +40 -40
- package/lib/cjs/core-react/loading/LoadingBar.js.map +1 -1
- package/lib/cjs/core-react/loading/LoadingBar.scss +29 -29
- package/lib/cjs/core-react/loading/LoadingPrompt.d.ts +39 -39
- package/lib/cjs/core-react/loading/LoadingPrompt.js +44 -44
- package/lib/cjs/core-react/loading/LoadingPrompt.js.map +1 -1
- package/lib/cjs/core-react/loading/LoadingPrompt.scss +33 -33
- package/lib/cjs/core-react/loading/LoadingSpinner.d.ts +33 -33
- package/lib/cjs/core-react/loading/LoadingSpinner.js +45 -45
- package/lib/cjs/core-react/loading/LoadingSpinner.js.map +1 -1
- package/lib/cjs/core-react/loading/LoadingSpinner.scss +26 -26
- package/lib/cjs/core-react/loading/LoadingStatus.d.ts +24 -24
- package/lib/cjs/core-react/loading/LoadingStatus.js +37 -37
- package/lib/cjs/core-react/loading/LoadingStatus.js.map +1 -1
- package/lib/cjs/core-react/loading/LoadingStatus.scss +20 -20
- package/lib/cjs/core-react/loading/Spinner.d.ts +37 -37
- package/lib/cjs/core-react/loading/Spinner.js +60 -60
- package/lib/cjs/core-react/loading/Spinner.js.map +1 -1
- package/lib/cjs/core-react/loading/Spinner.scss +26 -26
- package/lib/cjs/core-react/loading/index.scss +5 -5
- package/lib/cjs/core-react/loading/mixins.scss +57 -57
- package/lib/cjs/core-react/messagebox/MessageBox.d.ts +64 -64
- package/lib/cjs/core-react/messagebox/MessageBox.js +70 -70
- package/lib/cjs/core-react/messagebox/MessageBox.js.map +1 -1
- package/lib/cjs/core-react/messagebox/MessageBox.scss +46 -46
- package/lib/cjs/core-react/messagebox/MessageSeverity.d.ts +15 -15
- package/lib/cjs/core-react/messagebox/MessageSeverity.js +23 -23
- package/lib/cjs/core-react/messagebox/MessageSeverity.js.map +1 -1
- package/lib/cjs/core-react/notification/MessageRenderer.d.ts +19 -19
- package/lib/cjs/core-react/notification/MessageRenderer.js +81 -81
- package/lib/cjs/core-react/notification/MessageRenderer.js.map +1 -1
- package/lib/cjs/core-react/notification/MessageType.d.ts +22 -22
- package/lib/cjs/core-react/notification/MessageType.js +24 -24
- package/lib/cjs/core-react/notification/MessageType.js.map +1 -1
- package/lib/cjs/core-react/popup/Popup.d.ts +109 -109
- package/lib/cjs/core-react/popup/Popup.js +419 -419
- package/lib/cjs/core-react/popup/Popup.js.map +1 -1
- package/lib/cjs/core-react/popup/Popup.scss +240 -240
- package/lib/cjs/core-react/progress-indicators/ProgressBar.d.ts +28 -28
- package/lib/cjs/core-react/progress-indicators/ProgressBar.js +47 -47
- package/lib/cjs/core-react/progress-indicators/ProgressBar.js.map +1 -1
- package/lib/cjs/core-react/progress-indicators/ProgressSpinner.d.ts +48 -48
- package/lib/cjs/core-react/progress-indicators/ProgressSpinner.js +73 -73
- package/lib/cjs/core-react/progress-indicators/ProgressSpinner.js.map +1 -1
- package/lib/cjs/core-react/progress-indicators/classes.scss +33 -33
- package/lib/cjs/core-react/progress-indicators/index.scss +6 -6
- package/lib/cjs/core-react/progress-indicators/progress-bar.scss +91 -91
- package/lib/cjs/core-react/progress-indicators/progress-spinner.scss +132 -132
- package/lib/cjs/core-react/radialmenu/Annulus.d.ts +54 -54
- package/lib/cjs/core-react/radialmenu/Annulus.js +82 -82
- package/lib/cjs/core-react/radialmenu/Annulus.js.map +1 -1
- package/lib/cjs/core-react/radialmenu/RadialMenu.d.ts +93 -93
- package/lib/cjs/core-react/radialmenu/RadialMenu.js +179 -179
- package/lib/cjs/core-react/radialmenu/RadialMenu.js.map +1 -1
- package/lib/cjs/core-react/radialmenu/RadialMenu.scss +56 -56
- package/lib/cjs/core-react/radio/Radio.d.ts +19 -19
- package/lib/cjs/core-react/radio/Radio.js +27 -27
- package/lib/cjs/core-react/radio/Radio.js.map +1 -1
- package/lib/cjs/core-react/radio/classes.scss +7 -7
- package/lib/cjs/core-react/radio/index.scss +8 -8
- package/lib/cjs/core-react/radio/radio.scss +89 -89
- package/lib/cjs/core-react/searchbox/SearchBox.d.ts +52 -52
- package/lib/cjs/core-react/searchbox/SearchBox.js +109 -109
- package/lib/cjs/core-react/searchbox/SearchBox.js.map +1 -1
- package/lib/cjs/core-react/searchbox/SearchBox.scss +53 -53
- package/lib/cjs/core-react/select/LabeledSelect.d.ts +19 -19
- package/lib/cjs/core-react/select/LabeledSelect.js +33 -33
- package/lib/cjs/core-react/select/LabeledSelect.js.map +1 -1
- package/lib/cjs/core-react/select/LabeledThemedSelect.d.ts +15 -15
- package/lib/cjs/core-react/select/LabeledThemedSelect.js +30 -30
- package/lib/cjs/core-react/select/LabeledThemedSelect.js.map +1 -1
- package/lib/cjs/core-react/select/Select.d.ts +52 -52
- package/lib/cjs/core-react/select/Select.js +59 -59
- package/lib/cjs/core-react/select/Select.js.map +1 -1
- package/lib/cjs/core-react/select/ThemedSelect.d.ts +103 -103
- package/lib/cjs/core-react/select/ThemedSelect.js +56 -56
- package/lib/cjs/core-react/select/ThemedSelect.js.map +1 -1
- package/lib/cjs/core-react/select/classes.scss +9 -9
- package/lib/cjs/core-react/select/index.scss +10 -10
- package/lib/cjs/core-react/select/labeled-select.scss +72 -72
- package/lib/cjs/core-react/select/labeled-themed-select.scss +77 -77
- package/lib/cjs/core-react/select/modalHelper.d.ts +4 -4
- package/lib/cjs/core-react/select/modalHelper.js +20 -20
- package/lib/cjs/core-react/select/modalHelper.js.map +1 -1
- package/lib/cjs/core-react/select/select.scss +73 -73
- package/lib/cjs/core-react/select/themed-select.scss +159 -159
- package/lib/cjs/core-react/settings/SettingsContainer.d.ts +30 -30
- package/lib/cjs/core-react/settings/SettingsContainer.js +121 -121
- package/lib/cjs/core-react/settings/SettingsContainer.js.map +1 -1
- package/lib/cjs/core-react/settings/SettingsContainer.scss +64 -64
- package/lib/cjs/core-react/settings/SettingsManager.d.ts +132 -132
- package/lib/cjs/core-react/settings/SettingsManager.js +122 -122
- package/lib/cjs/core-react/settings/SettingsManager.js.map +1 -1
- package/lib/cjs/core-react/slider/Slider.d.ts +79 -79
- package/lib/cjs/core-react/slider/Slider.js +90 -90
- package/lib/cjs/core-react/slider/Slider.js.map +1 -1
- package/lib/cjs/core-react/slider/Slider.scss +96 -96
- package/lib/cjs/core-react/splitbutton/SplitButton.d.ts +61 -61
- package/lib/cjs/core-react/splitbutton/SplitButton.js +103 -103
- package/lib/cjs/core-react/splitbutton/SplitButton.js.map +1 -1
- package/lib/cjs/core-react/splitbutton/SplitButton.scss +137 -137
- package/lib/cjs/core-react/style/baseline.scss +13 -13
- package/lib/cjs/core-react/style/breakpoints.scss +41 -41
- package/lib/cjs/core-react/style/colors.scss +77 -77
- package/lib/cjs/core-react/style/data-viz.scss +23 -23
- package/lib/cjs/core-react/style/index.scss +17 -17
- package/lib/cjs/core-react/style/itwinui-overrides.scss +24 -24
- package/lib/cjs/core-react/style/mixins.scss +28 -28
- package/lib/cjs/core-react/style/opacity.scss +17 -17
- package/lib/cjs/core-react/style/space.scss +17 -17
- package/lib/cjs/core-react/style/speed.scss +13 -13
- package/lib/cjs/core-react/style/themecolors.scss +129 -129
- package/lib/cjs/core-react/style/typography.scss +43 -43
- package/lib/cjs/core-react/style/variables.scss +13 -13
- package/lib/cjs/core-react/tabs/HorizontalTabs.d.ts +10 -10
- package/lib/cjs/core-react/tabs/HorizontalTabs.js +21 -21
- package/lib/cjs/core-react/tabs/HorizontalTabs.js.map +1 -1
- package/lib/cjs/core-react/tabs/Tabs.d.ts +71 -71
- package/lib/cjs/core-react/tabs/Tabs.js +125 -125
- package/lib/cjs/core-react/tabs/Tabs.js.map +1 -1
- package/lib/cjs/core-react/tabs/VerticalTabs.d.ts +9 -9
- package/lib/cjs/core-react/tabs/VerticalTabs.js +20 -20
- package/lib/cjs/core-react/tabs/VerticalTabs.js.map +1 -1
- package/lib/cjs/core-react/tabs/classes.scss +8 -8
- package/lib/cjs/core-react/tabs/horizontal.scss +77 -77
- package/lib/cjs/core-react/tabs/index.scss +6 -6
- package/lib/cjs/core-react/tabs/tabs.scss +117 -117
- package/lib/cjs/core-react/tabs/vertical.scss +64 -64
- package/lib/cjs/core-react/text/BlockText.d.ts +9 -9
- package/lib/cjs/core-react/text/BlockText.js +19 -19
- package/lib/cjs/core-react/text/BlockText.js.map +1 -1
- package/lib/cjs/core-react/text/BodyText.d.ts +9 -9
- package/lib/cjs/core-react/text/BodyText.js +19 -19
- package/lib/cjs/core-react/text/BodyText.js.map +1 -1
- package/lib/cjs/core-react/text/DisabledText.d.ts +6 -6
- package/lib/cjs/core-react/text/DisabledText.js +19 -19
- package/lib/cjs/core-react/text/DisabledText.js.map +1 -1
- package/lib/cjs/core-react/text/FilteredText.d.ts +24 -24
- package/lib/cjs/core-react/text/FilteredText.js +40 -40
- package/lib/cjs/core-react/text/FilteredText.js.map +1 -1
- package/lib/cjs/core-react/text/FilteredText.scss +10 -10
- package/lib/cjs/core-react/text/Headline.d.ts +10 -10
- package/lib/cjs/core-react/text/Headline.js +20 -20
- package/lib/cjs/core-react/text/Headline.js.map +1 -1
- package/lib/cjs/core-react/text/LeadingText.d.ts +10 -10
- package/lib/cjs/core-react/text/LeadingText.js +20 -20
- package/lib/cjs/core-react/text/LeadingText.js.map +1 -1
- package/lib/cjs/core-react/text/LeadingText2.d.ts +10 -10
- package/lib/cjs/core-react/text/LeadingText2.js +20 -20
- package/lib/cjs/core-react/text/LeadingText2.js.map +1 -1
- package/lib/cjs/core-react/text/MutedText.d.ts +9 -9
- package/lib/cjs/core-react/text/MutedText.js +19 -19
- package/lib/cjs/core-react/text/MutedText.js.map +1 -1
- package/lib/cjs/core-react/text/SmallText.d.ts +10 -10
- package/lib/cjs/core-react/text/SmallText.js +20 -20
- package/lib/cjs/core-react/text/SmallText.js.map +1 -1
- package/lib/cjs/core-react/text/StyledText.d.ts +16 -16
- package/lib/cjs/core-react/text/StyledText.js +20 -20
- package/lib/cjs/core-react/text/StyledText.js.map +1 -1
- package/lib/cjs/core-react/text/Subheading.d.ts +10 -10
- package/lib/cjs/core-react/text/Subheading.js +20 -20
- package/lib/cjs/core-react/text/Subheading.js.map +1 -1
- package/lib/cjs/core-react/text/Subheading2.d.ts +10 -10
- package/lib/cjs/core-react/text/Subheading2.js +20 -20
- package/lib/cjs/core-react/text/Subheading2.js.map +1 -1
- package/lib/cjs/core-react/text/TextProps.d.ts +10 -10
- package/lib/cjs/core-react/text/TextProps.js +9 -9
- package/lib/cjs/core-react/text/TextProps.js.map +1 -1
- package/lib/cjs/core-react/text/Title.d.ts +10 -10
- package/lib/cjs/core-react/text/Title.js +20 -20
- package/lib/cjs/core-react/text/Title.js.map +1 -1
- package/lib/cjs/core-react/text/Title2.d.ts +10 -10
- package/lib/cjs/core-react/text/Title2.js +20 -20
- package/lib/cjs/core-react/text/Title2.js.map +1 -1
- package/lib/cjs/core-react/text/block.scss +10 -10
- package/lib/cjs/core-react/text/body.scss +10 -10
- package/lib/cjs/core-react/text/classes.scss +18 -18
- package/lib/cjs/core-react/text/disabled.scss +10 -10
- package/lib/cjs/core-react/text/headline.scss +10 -10
- package/lib/cjs/core-react/text/index.scss +18 -18
- package/lib/cjs/core-react/text/leading-2.scss +11 -11
- package/lib/cjs/core-react/text/leading.scss +10 -10
- package/lib/cjs/core-react/text/mixins.scss +62 -62
- package/lib/cjs/core-react/text/muted.scss +10 -10
- package/lib/cjs/core-react/text/small.scss +10 -10
- package/lib/cjs/core-react/text/subheading-2.scss +11 -11
- package/lib/cjs/core-react/text/subheading.scss +11 -11
- package/lib/cjs/core-react/text/title-2.scss +11 -11
- package/lib/cjs/core-react/text/title.scss +10 -10
- package/lib/cjs/core-react/tiles/FeaturedTile.d.ts +10 -10
- package/lib/cjs/core-react/tiles/FeaturedTile.js +20 -20
- package/lib/cjs/core-react/tiles/FeaturedTile.js.map +1 -1
- package/lib/cjs/core-react/tiles/MinimalFeaturedTile.d.ts +10 -10
- package/lib/cjs/core-react/tiles/MinimalFeaturedTile.js +20 -20
- package/lib/cjs/core-react/tiles/MinimalFeaturedTile.js.map +1 -1
- package/lib/cjs/core-react/tiles/MinimalTile.d.ts +10 -10
- package/lib/cjs/core-react/tiles/MinimalTile.js +20 -20
- package/lib/cjs/core-react/tiles/MinimalTile.js.map +1 -1
- package/lib/cjs/core-react/tiles/Tile.d.ts +31 -31
- package/lib/cjs/core-react/tiles/Tile.js +39 -39
- package/lib/cjs/core-react/tiles/Tile.js.map +1 -1
- package/lib/cjs/core-react/tiles/classes.scss +7 -7
- package/lib/cjs/core-react/tiles/index.scss +5 -5
- package/lib/cjs/core-react/tiles/tile.scss +134 -134
- package/lib/cjs/core-react/toggle/LabeledToggle.d.ts +25 -25
- package/lib/cjs/core-react/toggle/LabeledToggle.js +28 -28
- package/lib/cjs/core-react/toggle/LabeledToggle.js.map +1 -1
- package/lib/cjs/core-react/toggle/LabeledToggle.scss +21 -21
- package/lib/cjs/core-react/toggle/Toggle.d.ts +51 -51
- package/lib/cjs/core-react/toggle/Toggle.js +104 -104
- package/lib/cjs/core-react/toggle/Toggle.js.map +1 -1
- package/lib/cjs/core-react/toggle/Toggle.scss +135 -135
- package/lib/cjs/core-react/tooltip/Tooltip.d.ts +33 -33
- package/lib/cjs/core-react/tooltip/Tooltip.js +56 -56
- package/lib/cjs/core-react/tooltip/Tooltip.js.map +1 -1
- package/lib/cjs/core-react/tooltip/Tooltip.scss +18 -18
- package/lib/cjs/core-react/tree/Branch.d.ts +19 -19
- package/lib/cjs/core-react/tree/Branch.js +23 -23
- package/lib/cjs/core-react/tree/Branch.js.map +1 -1
- package/lib/cjs/core-react/tree/Branch.scss +12 -12
- package/lib/cjs/core-react/tree/ExpansionToggle.d.ts +20 -20
- package/lib/cjs/core-react/tree/ExpansionToggle.js +28 -28
- package/lib/cjs/core-react/tree/ExpansionToggle.js.map +1 -1
- package/lib/cjs/core-react/tree/ExpansionToggle.scss +28 -28
- package/lib/cjs/core-react/tree/Node.d.ts +79 -79
- package/lib/cjs/core-react/tree/Node.d.ts.map +1 -1
- package/lib/cjs/core-react/tree/Node.js +88 -88
- package/lib/cjs/core-react/tree/Node.js.map +1 -1
- package/lib/cjs/core-react/tree/Node.scss +84 -84
- package/lib/cjs/core-react/tree/Placeholder.d.ts +22 -22
- package/lib/cjs/core-react/tree/Placeholder.js +31 -31
- package/lib/cjs/core-react/tree/Placeholder.js.map +1 -1
- package/lib/cjs/core-react/tree/Placeholder.scss +20 -20
- package/lib/cjs/core-react/tree/Tree.d.ts +28 -28
- package/lib/cjs/core-react/tree/Tree.js +100 -100
- package/lib/cjs/core-react/tree/Tree.js.map +1 -1
- package/lib/cjs/core-react/tree/Tree.scss +21 -21
- package/lib/cjs/core-react/uistate/LocalStateStorage.d.ts +16 -16
- package/lib/cjs/core-react/uistate/LocalStateStorage.js +49 -49
- package/lib/cjs/core-react/uistate/LocalStateStorage.js.map +1 -1
- package/lib/cjs/core-react/uistate/UiStateEntry.d.ts +30 -30
- package/lib/cjs/core-react/uistate/UiStateEntry.js +59 -59
- package/lib/cjs/core-react/uistate/UiStateEntry.js.map +1 -1
- package/lib/cjs/core-react/uistate/UiStateStorage.d.ts +28 -28
- package/lib/cjs/core-react/uistate/UiStateStorage.js +21 -21
- package/lib/cjs/core-react/uistate/UiStateStorage.js.map +1 -1
- package/lib/cjs/core-react/utils/IconHelper.d.ts +23 -23
- package/lib/cjs/core-react/utils/IconHelper.js +62 -62
- package/lib/cjs/core-react/utils/IconHelper.js.map +1 -1
- package/lib/cjs/core-react/utils/IconWebComponent.d.ts +10 -10
- package/lib/cjs/core-react/utils/IconWebComponent.js +72 -72
- package/lib/cjs/core-react/utils/IconWebComponent.js.map +1 -1
- package/lib/cjs/core-react/utils/Point.d.ts +37 -37
- package/lib/cjs/core-react/utils/Point.js +73 -73
- package/lib/cjs/core-react/utils/Point.js.map +1 -1
- package/lib/cjs/core-react/utils/PointProps.d.ts +11 -11
- package/lib/cjs/core-react/utils/PointProps.js +9 -9
- package/lib/cjs/core-react/utils/PointProps.js.map +1 -1
- package/lib/cjs/core-react/utils/Props.d.ts +38 -38
- package/lib/cjs/core-react/utils/Props.js +9 -9
- package/lib/cjs/core-react/utils/Props.js.map +1 -1
- package/lib/cjs/core-react/utils/Rectangle.d.ts +144 -144
- package/lib/cjs/core-react/utils/Rectangle.js +270 -270
- package/lib/cjs/core-react/utils/Rectangle.js.map +1 -1
- package/lib/cjs/core-react/utils/ScrollPositionMaintainer.d.ts +23 -23
- package/lib/cjs/core-react/utils/ScrollPositionMaintainer.js +36 -36
- package/lib/cjs/core-react/utils/ScrollPositionMaintainer.js.map +1 -1
- package/lib/cjs/core-react/utils/Size.d.ts +23 -23
- package/lib/cjs/core-react/utils/Size.js +32 -32
- package/lib/cjs/core-react/utils/Size.js.map +1 -1
- package/lib/cjs/core-react/utils/Timer.d.ts +35 -35
- package/lib/cjs/core-react/utils/Timer.js +64 -64
- package/lib/cjs/core-react/utils/Timer.js.map +1 -1
- package/lib/cjs/core-react/utils/UiEvent.d.ts +9 -9
- package/lib/cjs/core-react/utils/UiEvent.js +17 -17
- package/lib/cjs/core-react/utils/UiEvent.js.map +1 -1
- package/lib/cjs/core-react/utils/UiGeometry.d.ts +20 -20
- package/lib/cjs/core-react/utils/UiGeometry.js +28 -28
- package/lib/cjs/core-react/utils/UiGeometry.js.map +1 -1
- package/lib/cjs/core-react/utils/flattenChildren.d.ts +8 -8
- package/lib/cjs/core-react/utils/flattenChildren.js +27 -27
- package/lib/cjs/core-react/utils/flattenChildren.js.map +1 -1
- package/lib/cjs/core-react/utils/getBestBWContrastColor.d.ts +7 -7
- package/lib/cjs/core-react/utils/getBestBWContrastColor.js +22 -22
- package/lib/cjs/core-react/utils/getBestBWContrastColor.js.map +1 -1
- package/lib/cjs/core-react/utils/getCssVariable.d.ts +11 -11
- package/lib/cjs/core-react/utils/getCssVariable.js +31 -31
- package/lib/cjs/core-react/utils/getCssVariable.js.map +1 -1
- package/lib/cjs/core-react/utils/getDisplayName.d.ts +8 -8
- package/lib/cjs/core-react/utils/getDisplayName.js +21 -21
- package/lib/cjs/core-react/utils/getDisplayName.js.map +1 -1
- package/lib/cjs/core-react/utils/getUserColor.d.ts +7 -7
- package/lib/cjs/core-react/utils/getUserColor.js +38 -38
- package/lib/cjs/core-react/utils/getUserColor.js.map +1 -1
- package/lib/cjs/core-react/utils/hooks/ResizeObserverPolyfill.d.ts +4 -4
- package/lib/cjs/core-react/utils/hooks/ResizeObserverPolyfill.js +19 -19
- package/lib/cjs/core-react/utils/hooks/ResizeObserverPolyfill.js.map +1 -1
- package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.d.ts +7 -7
- package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.js +89 -89
- package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.js.map +1 -1
- package/lib/cjs/core-react/utils/hooks/useDisposable.d.ts +17 -17
- package/lib/cjs/core-react/utils/hooks/useDisposable.js +38 -38
- package/lib/cjs/core-react/utils/hooks/useDisposable.js.map +1 -1
- package/lib/cjs/core-react/utils/hooks/useEffectSkipFirst.d.ts +8 -8
- package/lib/cjs/core-react/utils/hooks/useEffectSkipFirst.js +26 -26
- package/lib/cjs/core-react/utils/hooks/useEffectSkipFirst.js.map +1 -1
- package/lib/cjs/core-react/utils/hooks/useEventListener.d.ts +11 -11
- package/lib/cjs/core-react/utils/hooks/useEventListener.js +43 -43
- package/lib/cjs/core-react/utils/hooks/useEventListener.js.map +1 -1
- package/lib/cjs/core-react/utils/hooks/useInterval.d.ts +5 -5
- package/lib/cjs/core-react/utils/hooks/useInterval.js +36 -36
- package/lib/cjs/core-react/utils/hooks/useInterval.js.map +1 -1
- package/lib/cjs/core-react/utils/hooks/useLifecycleLogging.d.ts +5 -5
- package/lib/cjs/core-react/utils/hooks/useLifecycleLogging.js +64 -64
- package/lib/cjs/core-react/utils/hooks/useLifecycleLogging.js.map +1 -1
- package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.d.ts +12 -12
- package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.js +92 -92
- package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.js.map +1 -1
- package/lib/cjs/core-react/utils/hooks/useProximityToMouse.d.ts +55 -55
- package/lib/cjs/core-react/utils/hooks/useProximityToMouse.js +114 -114
- package/lib/cjs/core-react/utils/hooks/useProximityToMouse.js.map +1 -1
- package/lib/cjs/core-react/utils/hooks/useRefEffect.d.ts +7 -7
- package/lib/cjs/core-react/utils/hooks/useRefEffect.js +23 -23
- package/lib/cjs/core-react/utils/hooks/useRefEffect.js.map +1 -1
- package/lib/cjs/core-react/utils/hooks/useRefState.d.ts +21 -21
- package/lib/cjs/core-react/utils/hooks/useRefState.js +35 -35
- package/lib/cjs/core-react/utils/hooks/useRefState.js.map +1 -1
- package/lib/cjs/core-react/utils/hooks/useRefs.d.ts +12 -12
- package/lib/cjs/core-react/utils/hooks/useRefs.js +53 -53
- package/lib/cjs/core-react/utils/hooks/useRefs.js.map +1 -1
- package/lib/cjs/core-react/utils/hooks/useResizeObserver.d.ts +39 -39
- package/lib/cjs/core-react/utils/hooks/useResizeObserver.js +208 -208
- package/lib/cjs/core-react/utils/hooks/useResizeObserver.js.map +1 -1
- package/lib/cjs/core-react/utils/hooks/useTargeted.d.ts +8 -8
- package/lib/cjs/core-react/utils/hooks/useTargeted.js +28 -28
- package/lib/cjs/core-react/utils/hooks/useTargeted.js.map +1 -1
- package/lib/cjs/core-react/utils/hooks/useThrottledFn.d.ts +15 -15
- package/lib/cjs/core-react/utils/hooks/useThrottledFn.js +25 -25
- package/lib/cjs/core-react/utils/hooks/useThrottledFn.js.map +1 -1
- package/lib/cjs/core-react/utils/hooks/useWidgetOpacityContext.d.ts +20 -20
- package/lib/cjs/core-react/utils/hooks/useWidgetOpacityContext.js +27 -27
- package/lib/cjs/core-react/utils/hooks/useWidgetOpacityContext.js.map +1 -1
- package/lib/cjs/core-react/utils/isPromiseLike.d.ts +7 -7
- package/lib/cjs/core-react/utils/isPromiseLike.js +17 -17
- package/lib/cjs/core-react/utils/isPromiseLike.js.map +1 -1
- package/lib/cjs/core-react/utils/shallowDiffers.d.ts +11 -11
- package/lib/cjs/core-react/utils/shallowDiffers.js +29 -29
- package/lib/cjs/core-react/utils/shallowDiffers.js.map +1 -1
- package/lib/cjs/core-react/utils/typeUtils.d.ts +7 -7
- package/lib/cjs/core-react/utils/typeUtils.js +9 -9
- package/lib/cjs/core-react/utils/typeUtils.js.map +1 -1
- package/lib/cjs/core-react.d.ts +275 -275
- package/lib/cjs/core-react.js +298 -298
- package/lib/cjs/core-react.js.map +1 -1
- package/lib/esm/core-react/UiCore.d.ts +40 -40
- package/lib/esm/core-react/UiCore.js +81 -81
- package/lib/esm/core-react/UiCore.js.map +1 -1
- package/lib/esm/core-react/_geometry.scss +70 -70
- package/lib/esm/core-react/_helpers.scss +51 -51
- package/lib/esm/core-react/_math.scss +13 -13
- package/lib/esm/core-react/_scrollbar.scss +51 -51
- package/lib/esm/core-react/_typography.scss +44 -44
- package/lib/esm/core-react/_z-index.scss +65 -65
- package/lib/esm/core-react/autosuggest/AutoSuggest.d.ts +96 -96
- package/lib/esm/core-react/autosuggest/AutoSuggest.js +170 -170
- package/lib/esm/core-react/autosuggest/AutoSuggest.js.map +1 -1
- package/lib/esm/core-react/autosuggest/AutoSuggest.scss +82 -82
- package/lib/esm/core-react/badge/Badge.d.ts +18 -18
- package/lib/esm/core-react/badge/Badge.js +22 -22
- package/lib/esm/core-react/badge/Badge.js.map +1 -1
- package/lib/esm/core-react/badge/Badge.scss +13 -13
- package/lib/esm/core-react/badge/BadgeUtilities.d.ts +12 -12
- package/lib/esm/core-react/badge/BadgeUtilities.js +34 -34
- package/lib/esm/core-react/badge/BadgeUtilities.js.map +1 -1
- package/lib/esm/core-react/badge/BetaBadge.d.ts +10 -10
- package/lib/esm/core-react/badge/BetaBadge.js +19 -19
- package/lib/esm/core-react/badge/BetaBadge.js.map +1 -1
- package/lib/esm/core-react/badge/BetaBadge.scss +9 -9
- package/lib/esm/core-react/badge/NewBadge.d.ts +10 -10
- package/lib/esm/core-react/badge/NewBadge.js +19 -19
- package/lib/esm/core-react/badge/NewBadge.js.map +1 -1
- package/lib/esm/core-react/badge/NewBadge.scss +9 -9
- package/lib/esm/core-react/base/Centered.d.ts +10 -10
- package/lib/esm/core-react/base/Centered.js +16 -16
- package/lib/esm/core-react/base/Centered.js.map +1 -1
- package/lib/esm/core-react/base/Div.d.ts +16 -16
- package/lib/esm/core-react/base/Div.js +16 -16
- package/lib/esm/core-react/base/Div.js.map +1 -1
- package/lib/esm/core-react/base/DivWithOutsideClick.d.ts +79 -79
- package/lib/esm/core-react/base/DivWithOutsideClick.js +13 -13
- package/lib/esm/core-react/base/DivWithOutsideClick.js.map +1 -1
- package/lib/esm/core-react/base/FillCentered.d.ts +10 -10
- package/lib/esm/core-react/base/FillCentered.js +16 -16
- package/lib/esm/core-react/base/FillCentered.js.map +1 -1
- package/lib/esm/core-react/base/FlexWrapContainer.d.ts +11 -11
- package/lib/esm/core-react/base/FlexWrapContainer.js +17 -17
- package/lib/esm/core-react/base/FlexWrapContainer.js.map +1 -1
- package/lib/esm/core-react/base/Gap.d.ts +15 -15
- package/lib/esm/core-react/base/Gap.js +16 -16
- package/lib/esm/core-react/base/Gap.js.map +1 -1
- package/lib/esm/core-react/base/PointerEvents.d.ts +7 -7
- package/lib/esm/core-react/base/PointerEvents.js +13 -13
- package/lib/esm/core-react/base/PointerEvents.js.map +1 -1
- package/lib/esm/core-react/base/ScrollView.d.ts +11 -11
- package/lib/esm/core-react/base/ScrollView.js +17 -17
- package/lib/esm/core-react/base/ScrollView.js.map +1 -1
- package/lib/esm/core-react/base/base.scss +42 -42
- package/lib/esm/core-react/base/classes.scss +13 -13
- package/lib/esm/core-react/base/index.scss +5 -5
- package/lib/esm/core-react/button/Button.d.ts +47 -47
- package/lib/esm/core-react/button/Button.js +80 -80
- package/lib/esm/core-react/button/Button.js.map +1 -1
- package/lib/esm/core-react/button/UnderlinedButton.d.ts +24 -24
- package/lib/esm/core-react/button/UnderlinedButton.js +31 -31
- package/lib/esm/core-react/button/UnderlinedButton.js.map +1 -1
- package/lib/esm/core-react/button/UnderlinedButton.scss +32 -32
- package/lib/esm/core-react/button/blue-large.scss +12 -12
- package/lib/esm/core-react/button/blue.scss +25 -25
- package/lib/esm/core-react/button/button.scss +81 -81
- package/lib/esm/core-react/button/classes.scss +14 -14
- package/lib/esm/core-react/button/disabled-large.scss +12 -12
- package/lib/esm/core-react/button/disabled.scss +17 -17
- package/lib/esm/core-react/button/hollow-large.scss +13 -13
- package/lib/esm/core-react/button/hollow.scss +30 -30
- package/lib/esm/core-react/button/index.scss +14 -14
- package/lib/esm/core-react/button/primary-large.scss +12 -12
- package/lib/esm/core-react/button/primary.scss +25 -25
- package/lib/esm/core-react/button/variables.scss +19 -19
- package/lib/esm/core-react/checkbox/Checkbox.d.ts +56 -56
- package/lib/esm/core-react/checkbox/Checkbox.js +60 -60
- package/lib/esm/core-react/checkbox/Checkbox.js.map +1 -1
- package/lib/esm/core-react/checkbox/checkbox.scss +129 -129
- package/lib/esm/core-react/checkbox/classes.scss +8 -8
- package/lib/esm/core-react/checkbox/index.scss +8 -8
- package/lib/esm/core-react/checklistbox/CheckListBox.d.ts +37 -37
- package/lib/esm/core-react/checklistbox/CheckListBox.js +36 -36
- package/lib/esm/core-react/checklistbox/CheckListBox.js.map +1 -1
- package/lib/esm/core-react/checklistbox/CheckListBox.scss +22 -22
- package/lib/esm/core-react/classes.scss +18 -18
- package/lib/esm/core-react/colorthemes.scss +58 -58
- package/lib/esm/core-react/colorvariables.scss +116 -116
- package/lib/esm/core-react/contextmenu/ContextMenu.d.ts +91 -91
- package/lib/esm/core-react/contextmenu/ContextMenu.js +360 -360
- package/lib/esm/core-react/contextmenu/ContextMenu.js.map +1 -1
- package/lib/esm/core-react/contextmenu/ContextMenu.scss +238 -238
- package/lib/esm/core-react/contextmenu/ContextMenuDirection.d.ts +18 -18
- package/lib/esm/core-react/contextmenu/ContextMenuDirection.js +23 -23
- package/lib/esm/core-react/contextmenu/ContextMenuDirection.js.map +1 -1
- package/lib/esm/core-react/contextmenu/ContextMenuDivider.d.ts +12 -12
- package/lib/esm/core-react/contextmenu/ContextMenuDivider.js +19 -19
- package/lib/esm/core-react/contextmenu/ContextMenuDivider.js.map +1 -1
- package/lib/esm/core-react/contextmenu/ContextMenuItem.d.ts +61 -61
- package/lib/esm/core-react/contextmenu/ContextMenuItem.js +104 -104
- package/lib/esm/core-react/contextmenu/ContextMenuItem.js.map +1 -1
- package/lib/esm/core-react/contextmenu/ContextSubMenu.d.ts +51 -51
- package/lib/esm/core-react/contextmenu/ContextSubMenu.js +155 -155
- package/lib/esm/core-react/contextmenu/ContextSubMenu.js.map +1 -1
- package/lib/esm/core-react/contextmenu/GlobalContextMenu.d.ts +34 -34
- package/lib/esm/core-react/contextmenu/GlobalContextMenu.js +55 -55
- package/lib/esm/core-react/contextmenu/GlobalContextMenu.js.map +1 -1
- package/lib/esm/core-react/contextmenu/PopupContextMenu.d.ts +53 -53
- package/lib/esm/core-react/contextmenu/PopupContextMenu.js +51 -51
- package/lib/esm/core-react/contextmenu/PopupContextMenu.js.map +1 -1
- package/lib/esm/core-react/contextmenu/TildeFinder.d.ts +18 -18
- package/lib/esm/core-react/contextmenu/TildeFinder.js +66 -66
- package/lib/esm/core-react/contextmenu/TildeFinder.js.map +1 -1
- package/lib/esm/core-react/dialog/Dialog.d.ts +132 -132
- package/lib/esm/core-react/dialog/Dialog.js +362 -362
- package/lib/esm/core-react/dialog/Dialog.js.map +1 -1
- package/lib/esm/core-react/dialog/Dialog.scss +245 -245
- package/lib/esm/core-react/dialog/DialogButtonDef.d.ts +46 -46
- package/lib/esm/core-react/dialog/DialogButtonDef.js +34 -34
- package/lib/esm/core-react/dialog/DialogButtonDef.js.map +1 -1
- package/lib/esm/core-react/dialog/GlobalDialog.d.ts +28 -28
- package/lib/esm/core-react/dialog/GlobalDialog.js +49 -49
- package/lib/esm/core-react/dialog/GlobalDialog.js.map +1 -1
- package/lib/esm/core-react/elementseparator/ElementSeparator.d.ts +41 -41
- package/lib/esm/core-react/elementseparator/ElementSeparator.js +159 -159
- package/lib/esm/core-react/elementseparator/ElementSeparator.js.map +1 -1
- package/lib/esm/core-react/elementseparator/ElementSeparator.scss +85 -85
- package/lib/esm/core-react/enums/Alignment.d.ts +22 -22
- package/lib/esm/core-react/enums/Alignment.js +28 -28
- package/lib/esm/core-react/enums/Alignment.js.map +1 -1
- package/lib/esm/core-react/enums/CheckBoxState.d.ts +20 -20
- package/lib/esm/core-react/enums/CheckBoxState.js +16 -16
- package/lib/esm/core-react/enums/CheckBoxState.js.map +1 -1
- package/lib/esm/core-react/enums/Orientation.d.ts +11 -11
- package/lib/esm/core-react/enums/Orientation.js +16 -16
- package/lib/esm/core-react/enums/Orientation.js.map +1 -1
- package/lib/esm/core-react/enums/SortDirection.d.ts +12 -12
- package/lib/esm/core-react/enums/SortDirection.js +17 -17
- package/lib/esm/core-react/enums/SortDirection.js.map +1 -1
- package/lib/esm/core-react/enums/TimeFormat.d.ts +14 -14
- package/lib/esm/core-react/enums/TimeFormat.js +19 -19
- package/lib/esm/core-react/enums/TimeFormat.js.map +1 -1
- package/lib/esm/core-react/expandable/ExpandableBlock.d.ts +33 -33
- package/lib/esm/core-react/expandable/ExpandableBlock.js +31 -31
- package/lib/esm/core-react/expandable/ExpandableBlock.js.map +1 -1
- package/lib/esm/core-react/expandable/ExpandableBlock.scss +145 -145
- package/lib/esm/core-react/expandable/ExpandableList.d.ts +35 -35
- package/lib/esm/core-react/expandable/ExpandableList.js +53 -53
- package/lib/esm/core-react/expandable/ExpandableList.js.map +1 -1
- package/lib/esm/core-react/expandable/ExpandableList.scss +8 -8
- package/lib/esm/core-react/expandable/classes.scss +7 -7
- package/lib/esm/core-react/expandable/index.scss +5 -5
- package/lib/esm/core-react/expandable/list.scss +45 -45
- package/lib/esm/core-react/focus/ItemKeyboardNavigator.d.ts +53 -53
- package/lib/esm/core-react/focus/ItemKeyboardNavigator.js +145 -145
- package/lib/esm/core-react/focus/ItemKeyboardNavigator.js.map +1 -1
- package/lib/esm/core-react/focustrap/FocusTrap.d.ts +28 -28
- package/lib/esm/core-react/focustrap/FocusTrap.js +191 -191
- package/lib/esm/core-react/focustrap/FocusTrap.js.map +1 -1
- package/lib/esm/core-react/form/Field.d.ts +19 -19
- package/lib/esm/core-react/form/Field.js +40 -40
- package/lib/esm/core-react/form/Field.js.map +1 -1
- package/lib/esm/core-react/form/Form.d.ts +131 -131
- package/lib/esm/core-react/form/Form.js +127 -127
- package/lib/esm/core-react/form/Form.js.map +1 -1
- package/lib/esm/core-react/form/Form.scss +78 -78
- package/lib/esm/core-react/hocs/withIsPressed.d.ts +77 -77
- package/lib/esm/core-react/hocs/withIsPressed.js +42 -42
- package/lib/esm/core-react/hocs/withIsPressed.js.map +1 -1
- package/lib/esm/core-react/hocs/withOnOutsideClick.d.ts +103 -103
- package/lib/esm/core-react/hocs/withOnOutsideClick.js +111 -111
- package/lib/esm/core-react/hocs/withOnOutsideClick.js.map +1 -1
- package/lib/esm/core-react/hocs/withTimeout.d.ts +74 -74
- package/lib/esm/core-react/hocs/withTimeout.js +42 -42
- package/lib/esm/core-react/hocs/withTimeout.js.map +1 -1
- package/lib/esm/core-react/icons/IconComponent.d.ts +24 -24
- package/lib/esm/core-react/icons/IconComponent.js +50 -50
- package/lib/esm/core-react/icons/IconComponent.js.map +1 -1
- package/lib/esm/core-react/icons/IconComponent.scss +20 -20
- package/lib/esm/core-react/icons/SvgPath.d.ts +23 -23
- package/lib/esm/core-react/icons/SvgPath.js +23 -23
- package/lib/esm/core-react/icons/SvgPath.js.map +1 -1
- package/lib/esm/core-react/icons/SvgSprite.d.ts +20 -20
- package/lib/esm/core-react/icons/SvgSprite.js +22 -22
- package/lib/esm/core-react/icons/SvgSprite.js.map +1 -1
- package/lib/esm/core-react/icons/SvgSprite.scss +15 -15
- package/lib/esm/core-react/icons/WebFontIcon.d.ts +26 -26
- package/lib/esm/core-react/icons/WebFontIcon.js +18 -18
- package/lib/esm/core-react/icons/WebFontIcon.js.map +1 -1
- package/lib/esm/core-react/icons/WebFontIcon.scss +17 -17
- package/lib/esm/core-react/icons/classes.scss +10 -10
- package/lib/esm/core-react/icons/index.scss +6 -6
- package/lib/esm/core-react/icons/mixins.scss +25 -25
- package/lib/esm/core-react/icons/variables.scss +21 -21
- package/lib/esm/core-react/imagecheckbox/ImageCheckBox.d.ts +42 -42
- package/lib/esm/core-react/imagecheckbox/ImageCheckBox.js +52 -52
- package/lib/esm/core-react/imagecheckbox/ImageCheckBox.js.map +1 -1
- package/lib/esm/core-react/imagecheckbox/ImageCheckBox.scss +54 -54
- package/lib/esm/core-react/index.scss +27 -27
- package/lib/esm/core-react/inputs/Input.d.ts +22 -22
- package/lib/esm/core-react/inputs/Input.js +43 -43
- package/lib/esm/core-react/inputs/Input.js.map +1 -1
- package/lib/esm/core-react/inputs/InputLabel.d.ts +18 -18
- package/lib/esm/core-react/inputs/InputLabel.js +29 -29
- package/lib/esm/core-react/inputs/InputLabel.js.map +1 -1
- package/lib/esm/core-react/inputs/InputStatus.d.ts +11 -11
- package/lib/esm/core-react/inputs/InputStatus.js +16 -16
- package/lib/esm/core-react/inputs/InputStatus.js.map +1 -1
- package/lib/esm/core-react/inputs/LabeledComponentProps.d.ts +33 -33
- package/lib/esm/core-react/inputs/LabeledComponentProps.js +8 -8
- package/lib/esm/core-react/inputs/LabeledComponentProps.js.map +1 -1
- package/lib/esm/core-react/inputs/LabeledInput.d.ts +17 -17
- package/lib/esm/core-react/inputs/LabeledInput.js +29 -29
- package/lib/esm/core-react/inputs/LabeledInput.js.map +1 -1
- package/lib/esm/core-react/inputs/LabeledTextarea.d.ts +17 -17
- package/lib/esm/core-react/inputs/LabeledTextarea.js +27 -27
- package/lib/esm/core-react/inputs/LabeledTextarea.js.map +1 -1
- package/lib/esm/core-react/inputs/Textarea.d.ts +22 -22
- package/lib/esm/core-react/inputs/Textarea.js +32 -32
- package/lib/esm/core-react/inputs/Textarea.js.map +1 -1
- package/lib/esm/core-react/inputs/classes.scss +10 -10
- package/lib/esm/core-react/inputs/iconinput/IconInput.d.ts +23 -23
- package/lib/esm/core-react/inputs/iconinput/IconInput.js +26 -26
- package/lib/esm/core-react/inputs/iconinput/IconInput.js.map +1 -1
- package/lib/esm/core-react/inputs/iconinput/IconInput.scss +35 -35
- package/lib/esm/core-react/inputs/index.scss +11 -11
- package/lib/esm/core-react/inputs/input.scss +60 -60
- package/lib/esm/core-react/inputs/labeled-input.scss +103 -103
- package/lib/esm/core-react/inputs/labeled-textarea.scss +77 -77
- package/lib/esm/core-react/inputs/numberinput/NumberInput.d.ts +45 -45
- package/lib/esm/core-react/inputs/numberinput/NumberInput.js +145 -145
- package/lib/esm/core-react/inputs/numberinput/NumberInput.js.map +1 -1
- package/lib/esm/core-react/inputs/numberinput/NumberInput.scss +89 -89
- package/lib/esm/core-react/inputs/textarea.scss +55 -55
- package/lib/esm/core-react/inputs/variables.scss +33 -33
- package/lib/esm/core-react/layout-variables.scss +17 -17
- package/lib/esm/core-react/listbox/Listbox.d.ts +55 -55
- package/lib/esm/core-react/listbox/Listbox.js +217 -217
- package/lib/esm/core-react/listbox/Listbox.js.map +1 -1
- package/lib/esm/core-react/listbox/Listbox.scss +53 -53
- package/lib/esm/core-react/loading/LoadingBar.d.ts +29 -29
- package/lib/esm/core-react/loading/LoadingBar.js +35 -35
- package/lib/esm/core-react/loading/LoadingBar.js.map +1 -1
- package/lib/esm/core-react/loading/LoadingBar.scss +29 -29
- package/lib/esm/core-react/loading/LoadingPrompt.d.ts +39 -39
- package/lib/esm/core-react/loading/LoadingPrompt.js +40 -40
- package/lib/esm/core-react/loading/LoadingPrompt.js.map +1 -1
- package/lib/esm/core-react/loading/LoadingPrompt.scss +33 -33
- package/lib/esm/core-react/loading/LoadingSpinner.d.ts +33 -33
- package/lib/esm/core-react/loading/LoadingSpinner.js +41 -41
- package/lib/esm/core-react/loading/LoadingSpinner.js.map +1 -1
- package/lib/esm/core-react/loading/LoadingSpinner.scss +26 -26
- package/lib/esm/core-react/loading/LoadingStatus.d.ts +24 -24
- package/lib/esm/core-react/loading/LoadingStatus.js +33 -33
- package/lib/esm/core-react/loading/LoadingStatus.js.map +1 -1
- package/lib/esm/core-react/loading/LoadingStatus.scss +20 -20
- package/lib/esm/core-react/loading/Spinner.d.ts +37 -37
- package/lib/esm/core-react/loading/Spinner.js +56 -56
- package/lib/esm/core-react/loading/Spinner.js.map +1 -1
- package/lib/esm/core-react/loading/Spinner.scss +26 -26
- package/lib/esm/core-react/loading/index.scss +5 -5
- package/lib/esm/core-react/loading/mixins.scss +57 -57
- package/lib/esm/core-react/messagebox/MessageBox.d.ts +64 -64
- package/lib/esm/core-react/messagebox/MessageBox.js +65 -65
- package/lib/esm/core-react/messagebox/MessageBox.js.map +1 -1
- package/lib/esm/core-react/messagebox/MessageBox.scss +46 -46
- package/lib/esm/core-react/messagebox/MessageSeverity.d.ts +15 -15
- package/lib/esm/core-react/messagebox/MessageSeverity.js +20 -20
- package/lib/esm/core-react/messagebox/MessageSeverity.js.map +1 -1
- package/lib/esm/core-react/notification/MessageRenderer.d.ts +19 -19
- package/lib/esm/core-react/notification/MessageRenderer.js +77 -77
- package/lib/esm/core-react/notification/MessageRenderer.js.map +1 -1
- package/lib/esm/core-react/notification/MessageType.d.ts +22 -22
- package/lib/esm/core-react/notification/MessageType.js +19 -19
- package/lib/esm/core-react/notification/MessageType.js.map +1 -1
- package/lib/esm/core-react/popup/Popup.d.ts +109 -109
- package/lib/esm/core-react/popup/Popup.js +415 -415
- package/lib/esm/core-react/popup/Popup.js.map +1 -1
- package/lib/esm/core-react/popup/Popup.scss +240 -240
- package/lib/esm/core-react/progress-indicators/ProgressBar.d.ts +28 -28
- package/lib/esm/core-react/progress-indicators/ProgressBar.js +43 -43
- package/lib/esm/core-react/progress-indicators/ProgressBar.js.map +1 -1
- package/lib/esm/core-react/progress-indicators/ProgressSpinner.d.ts +48 -48
- package/lib/esm/core-react/progress-indicators/ProgressSpinner.js +69 -69
- package/lib/esm/core-react/progress-indicators/ProgressSpinner.js.map +1 -1
- package/lib/esm/core-react/progress-indicators/classes.scss +33 -33
- package/lib/esm/core-react/progress-indicators/index.scss +6 -6
- package/lib/esm/core-react/progress-indicators/progress-bar.scss +91 -91
- package/lib/esm/core-react/progress-indicators/progress-spinner.scss +132 -132
- package/lib/esm/core-react/radialmenu/Annulus.d.ts +54 -54
- package/lib/esm/core-react/radialmenu/Annulus.js +75 -75
- package/lib/esm/core-react/radialmenu/Annulus.js.map +1 -1
- package/lib/esm/core-react/radialmenu/RadialMenu.d.ts +93 -93
- package/lib/esm/core-react/radialmenu/RadialMenu.js +174 -174
- package/lib/esm/core-react/radialmenu/RadialMenu.js.map +1 -1
- package/lib/esm/core-react/radialmenu/RadialMenu.scss +56 -56
- package/lib/esm/core-react/radio/Radio.d.ts +19 -19
- package/lib/esm/core-react/radio/Radio.js +23 -23
- package/lib/esm/core-react/radio/Radio.js.map +1 -1
- package/lib/esm/core-react/radio/classes.scss +7 -7
- package/lib/esm/core-react/radio/index.scss +8 -8
- package/lib/esm/core-react/radio/radio.scss +89 -89
- package/lib/esm/core-react/searchbox/SearchBox.d.ts +52 -52
- package/lib/esm/core-react/searchbox/SearchBox.js +105 -105
- package/lib/esm/core-react/searchbox/SearchBox.js.map +1 -1
- package/lib/esm/core-react/searchbox/SearchBox.scss +53 -53
- package/lib/esm/core-react/select/LabeledSelect.d.ts +19 -19
- package/lib/esm/core-react/select/LabeledSelect.js +29 -29
- package/lib/esm/core-react/select/LabeledSelect.js.map +1 -1
- package/lib/esm/core-react/select/LabeledThemedSelect.d.ts +15 -15
- package/lib/esm/core-react/select/LabeledThemedSelect.js +26 -26
- package/lib/esm/core-react/select/LabeledThemedSelect.js.map +1 -1
- package/lib/esm/core-react/select/Select.d.ts +52 -52
- package/lib/esm/core-react/select/Select.js +56 -56
- package/lib/esm/core-react/select/Select.js.map +1 -1
- package/lib/esm/core-react/select/ThemedSelect.d.ts +103 -103
- package/lib/esm/core-react/select/ThemedSelect.js +52 -52
- package/lib/esm/core-react/select/ThemedSelect.js.map +1 -1
- package/lib/esm/core-react/select/classes.scss +9 -9
- package/lib/esm/core-react/select/index.scss +10 -10
- package/lib/esm/core-react/select/labeled-select.scss +72 -72
- package/lib/esm/core-react/select/labeled-themed-select.scss +77 -77
- package/lib/esm/core-react/select/modalHelper.d.ts +4 -4
- package/lib/esm/core-react/select/modalHelper.js +16 -16
- package/lib/esm/core-react/select/modalHelper.js.map +1 -1
- package/lib/esm/core-react/select/select.scss +73 -73
- package/lib/esm/core-react/select/themed-select.scss +159 -159
- package/lib/esm/core-react/settings/SettingsContainer.d.ts +30 -30
- package/lib/esm/core-react/settings/SettingsContainer.js +115 -115
- package/lib/esm/core-react/settings/SettingsContainer.js.map +1 -1
- package/lib/esm/core-react/settings/SettingsContainer.scss +64 -64
- package/lib/esm/core-react/settings/SettingsManager.d.ts +132 -132
- package/lib/esm/core-react/settings/SettingsManager.js +113 -113
- package/lib/esm/core-react/settings/SettingsManager.js.map +1 -1
- package/lib/esm/core-react/slider/Slider.d.ts +79 -79
- package/lib/esm/core-react/slider/Slider.js +86 -86
- package/lib/esm/core-react/slider/Slider.js.map +1 -1
- package/lib/esm/core-react/slider/Slider.scss +96 -96
- package/lib/esm/core-react/splitbutton/SplitButton.d.ts +61 -61
- package/lib/esm/core-react/splitbutton/SplitButton.js +99 -99
- package/lib/esm/core-react/splitbutton/SplitButton.js.map +1 -1
- package/lib/esm/core-react/splitbutton/SplitButton.scss +137 -137
- package/lib/esm/core-react/style/baseline.scss +13 -13
- package/lib/esm/core-react/style/breakpoints.scss +41 -41
- package/lib/esm/core-react/style/colors.scss +77 -77
- package/lib/esm/core-react/style/data-viz.scss +23 -23
- package/lib/esm/core-react/style/index.scss +17 -17
- package/lib/esm/core-react/style/itwinui-overrides.scss +24 -24
- package/lib/esm/core-react/style/mixins.scss +28 -28
- package/lib/esm/core-react/style/opacity.scss +17 -17
- package/lib/esm/core-react/style/space.scss +17 -17
- package/lib/esm/core-react/style/speed.scss +13 -13
- package/lib/esm/core-react/style/themecolors.scss +129 -129
- package/lib/esm/core-react/style/typography.scss +43 -43
- package/lib/esm/core-react/style/variables.scss +13 -13
- package/lib/esm/core-react/tabs/HorizontalTabs.d.ts +10 -10
- package/lib/esm/core-react/tabs/HorizontalTabs.js +17 -17
- package/lib/esm/core-react/tabs/HorizontalTabs.js.map +1 -1
- package/lib/esm/core-react/tabs/Tabs.d.ts +71 -71
- package/lib/esm/core-react/tabs/Tabs.js +121 -121
- package/lib/esm/core-react/tabs/Tabs.js.map +1 -1
- package/lib/esm/core-react/tabs/VerticalTabs.d.ts +9 -9
- package/lib/esm/core-react/tabs/VerticalTabs.js +16 -16
- package/lib/esm/core-react/tabs/VerticalTabs.js.map +1 -1
- package/lib/esm/core-react/tabs/classes.scss +8 -8
- package/lib/esm/core-react/tabs/horizontal.scss +77 -77
- package/lib/esm/core-react/tabs/index.scss +6 -6
- package/lib/esm/core-react/tabs/tabs.scss +117 -117
- package/lib/esm/core-react/tabs/vertical.scss +64 -64
- package/lib/esm/core-react/text/BlockText.d.ts +9 -9
- package/lib/esm/core-react/text/BlockText.js +15 -15
- package/lib/esm/core-react/text/BlockText.js.map +1 -1
- package/lib/esm/core-react/text/BodyText.d.ts +9 -9
- package/lib/esm/core-react/text/BodyText.js +15 -15
- package/lib/esm/core-react/text/BodyText.js.map +1 -1
- package/lib/esm/core-react/text/DisabledText.d.ts +6 -6
- package/lib/esm/core-react/text/DisabledText.js +15 -15
- package/lib/esm/core-react/text/DisabledText.js.map +1 -1
- package/lib/esm/core-react/text/FilteredText.d.ts +24 -24
- package/lib/esm/core-react/text/FilteredText.js +36 -36
- package/lib/esm/core-react/text/FilteredText.js.map +1 -1
- package/lib/esm/core-react/text/FilteredText.scss +10 -10
- package/lib/esm/core-react/text/Headline.d.ts +10 -10
- package/lib/esm/core-react/text/Headline.js +16 -16
- package/lib/esm/core-react/text/Headline.js.map +1 -1
- package/lib/esm/core-react/text/LeadingText.d.ts +10 -10
- package/lib/esm/core-react/text/LeadingText.js +16 -16
- package/lib/esm/core-react/text/LeadingText.js.map +1 -1
- package/lib/esm/core-react/text/LeadingText2.d.ts +10 -10
- package/lib/esm/core-react/text/LeadingText2.js +16 -16
- package/lib/esm/core-react/text/LeadingText2.js.map +1 -1
- package/lib/esm/core-react/text/MutedText.d.ts +9 -9
- package/lib/esm/core-react/text/MutedText.js +15 -15
- package/lib/esm/core-react/text/MutedText.js.map +1 -1
- package/lib/esm/core-react/text/SmallText.d.ts +10 -10
- package/lib/esm/core-react/text/SmallText.js +16 -16
- package/lib/esm/core-react/text/SmallText.js.map +1 -1
- package/lib/esm/core-react/text/StyledText.d.ts +16 -16
- package/lib/esm/core-react/text/StyledText.js +16 -16
- package/lib/esm/core-react/text/StyledText.js.map +1 -1
- package/lib/esm/core-react/text/Subheading.d.ts +10 -10
- package/lib/esm/core-react/text/Subheading.js +16 -16
- package/lib/esm/core-react/text/Subheading.js.map +1 -1
- package/lib/esm/core-react/text/Subheading2.d.ts +10 -10
- package/lib/esm/core-react/text/Subheading2.js +16 -16
- package/lib/esm/core-react/text/Subheading2.js.map +1 -1
- package/lib/esm/core-react/text/TextProps.d.ts +10 -10
- package/lib/esm/core-react/text/TextProps.js +8 -8
- package/lib/esm/core-react/text/TextProps.js.map +1 -1
- package/lib/esm/core-react/text/Title.d.ts +10 -10
- package/lib/esm/core-react/text/Title.js +16 -16
- package/lib/esm/core-react/text/Title.js.map +1 -1
- package/lib/esm/core-react/text/Title2.d.ts +10 -10
- package/lib/esm/core-react/text/Title2.js +16 -16
- package/lib/esm/core-react/text/Title2.js.map +1 -1
- package/lib/esm/core-react/text/block.scss +10 -10
- package/lib/esm/core-react/text/body.scss +10 -10
- package/lib/esm/core-react/text/classes.scss +18 -18
- package/lib/esm/core-react/text/disabled.scss +10 -10
- package/lib/esm/core-react/text/headline.scss +10 -10
- package/lib/esm/core-react/text/index.scss +18 -18
- package/lib/esm/core-react/text/leading-2.scss +11 -11
- package/lib/esm/core-react/text/leading.scss +10 -10
- package/lib/esm/core-react/text/mixins.scss +62 -62
- package/lib/esm/core-react/text/muted.scss +10 -10
- package/lib/esm/core-react/text/small.scss +10 -10
- package/lib/esm/core-react/text/subheading-2.scss +11 -11
- package/lib/esm/core-react/text/subheading.scss +11 -11
- package/lib/esm/core-react/text/title-2.scss +11 -11
- package/lib/esm/core-react/text/title.scss +10 -10
- package/lib/esm/core-react/tiles/FeaturedTile.d.ts +10 -10
- package/lib/esm/core-react/tiles/FeaturedTile.js +16 -16
- package/lib/esm/core-react/tiles/FeaturedTile.js.map +1 -1
- package/lib/esm/core-react/tiles/MinimalFeaturedTile.d.ts +10 -10
- package/lib/esm/core-react/tiles/MinimalFeaturedTile.js +16 -16
- package/lib/esm/core-react/tiles/MinimalFeaturedTile.js.map +1 -1
- package/lib/esm/core-react/tiles/MinimalTile.d.ts +10 -10
- package/lib/esm/core-react/tiles/MinimalTile.js +16 -16
- package/lib/esm/core-react/tiles/MinimalTile.js.map +1 -1
- package/lib/esm/core-react/tiles/Tile.d.ts +31 -31
- package/lib/esm/core-react/tiles/Tile.js +35 -35
- package/lib/esm/core-react/tiles/Tile.js.map +1 -1
- package/lib/esm/core-react/tiles/classes.scss +7 -7
- package/lib/esm/core-react/tiles/index.scss +5 -5
- package/lib/esm/core-react/tiles/tile.scss +134 -134
- package/lib/esm/core-react/toggle/LabeledToggle.d.ts +25 -25
- package/lib/esm/core-react/toggle/LabeledToggle.js +24 -24
- package/lib/esm/core-react/toggle/LabeledToggle.js.map +1 -1
- package/lib/esm/core-react/toggle/LabeledToggle.scss +21 -21
- package/lib/esm/core-react/toggle/Toggle.d.ts +51 -51
- package/lib/esm/core-react/toggle/Toggle.js +101 -101
- package/lib/esm/core-react/toggle/Toggle.js.map +1 -1
- package/lib/esm/core-react/toggle/Toggle.scss +135 -135
- package/lib/esm/core-react/tooltip/Tooltip.d.ts +33 -33
- package/lib/esm/core-react/tooltip/Tooltip.js +51 -51
- package/lib/esm/core-react/tooltip/Tooltip.js.map +1 -1
- package/lib/esm/core-react/tooltip/Tooltip.scss +18 -18
- package/lib/esm/core-react/tree/Branch.d.ts +19 -19
- package/lib/esm/core-react/tree/Branch.js +19 -19
- package/lib/esm/core-react/tree/Branch.js.map +1 -1
- package/lib/esm/core-react/tree/Branch.scss +12 -12
- package/lib/esm/core-react/tree/ExpansionToggle.d.ts +20 -20
- package/lib/esm/core-react/tree/ExpansionToggle.js +24 -24
- package/lib/esm/core-react/tree/ExpansionToggle.js.map +1 -1
- package/lib/esm/core-react/tree/ExpansionToggle.scss +28 -28
- package/lib/esm/core-react/tree/Node.d.ts +79 -79
- package/lib/esm/core-react/tree/Node.d.ts.map +1 -1
- package/lib/esm/core-react/tree/Node.js +84 -84
- package/lib/esm/core-react/tree/Node.js.map +1 -1
- package/lib/esm/core-react/tree/Node.scss +84 -84
- package/lib/esm/core-react/tree/Placeholder.d.ts +22 -22
- package/lib/esm/core-react/tree/Placeholder.js +27 -27
- package/lib/esm/core-react/tree/Placeholder.js.map +1 -1
- package/lib/esm/core-react/tree/Placeholder.scss +20 -20
- package/lib/esm/core-react/tree/Tree.d.ts +28 -28
- package/lib/esm/core-react/tree/Tree.js +96 -96
- package/lib/esm/core-react/tree/Tree.js.map +1 -1
- package/lib/esm/core-react/tree/Tree.scss +21 -21
- package/lib/esm/core-react/uistate/LocalStateStorage.d.ts +16 -16
- package/lib/esm/core-react/uistate/LocalStateStorage.js +45 -45
- package/lib/esm/core-react/uistate/LocalStateStorage.js.map +1 -1
- package/lib/esm/core-react/uistate/UiStateEntry.d.ts +30 -30
- package/lib/esm/core-react/uistate/UiStateEntry.js +55 -55
- package/lib/esm/core-react/uistate/UiStateEntry.js.map +1 -1
- package/lib/esm/core-react/uistate/UiStateStorage.d.ts +28 -28
- package/lib/esm/core-react/uistate/UiStateStorage.js +18 -18
- package/lib/esm/core-react/uistate/UiStateStorage.js.map +1 -1
- package/lib/esm/core-react/utils/IconHelper.d.ts +23 -23
- package/lib/esm/core-react/utils/IconHelper.js +58 -58
- package/lib/esm/core-react/utils/IconHelper.js.map +1 -1
- package/lib/esm/core-react/utils/IconWebComponent.d.ts +10 -10
- package/lib/esm/core-react/utils/IconWebComponent.js +68 -68
- package/lib/esm/core-react/utils/IconWebComponent.js.map +1 -1
- package/lib/esm/core-react/utils/Point.d.ts +37 -37
- package/lib/esm/core-react/utils/Point.js +69 -69
- package/lib/esm/core-react/utils/Point.js.map +1 -1
- package/lib/esm/core-react/utils/PointProps.d.ts +11 -11
- package/lib/esm/core-react/utils/PointProps.js +8 -8
- package/lib/esm/core-react/utils/PointProps.js.map +1 -1
- package/lib/esm/core-react/utils/Props.d.ts +38 -38
- package/lib/esm/core-react/utils/Props.js +8 -8
- package/lib/esm/core-react/utils/Props.js.map +1 -1
- package/lib/esm/core-react/utils/Rectangle.d.ts +144 -144
- package/lib/esm/core-react/utils/Rectangle.js +266 -266
- package/lib/esm/core-react/utils/Rectangle.js.map +1 -1
- package/lib/esm/core-react/utils/ScrollPositionMaintainer.d.ts +23 -23
- package/lib/esm/core-react/utils/ScrollPositionMaintainer.js +32 -32
- package/lib/esm/core-react/utils/ScrollPositionMaintainer.js.map +1 -1
- package/lib/esm/core-react/utils/Size.d.ts +23 -23
- package/lib/esm/core-react/utils/Size.js +28 -28
- package/lib/esm/core-react/utils/Size.js.map +1 -1
- package/lib/esm/core-react/utils/Timer.d.ts +35 -35
- package/lib/esm/core-react/utils/Timer.js +60 -60
- package/lib/esm/core-react/utils/Timer.js.map +1 -1
- package/lib/esm/core-react/utils/UiEvent.d.ts +9 -9
- package/lib/esm/core-react/utils/UiEvent.js +13 -13
- package/lib/esm/core-react/utils/UiEvent.js.map +1 -1
- package/lib/esm/core-react/utils/UiGeometry.d.ts +20 -20
- package/lib/esm/core-react/utils/UiGeometry.js +24 -24
- package/lib/esm/core-react/utils/UiGeometry.js.map +1 -1
- package/lib/esm/core-react/utils/flattenChildren.d.ts +8 -8
- package/lib/esm/core-react/utils/flattenChildren.js +23 -23
- package/lib/esm/core-react/utils/flattenChildren.js.map +1 -1
- package/lib/esm/core-react/utils/getBestBWContrastColor.d.ts +7 -7
- package/lib/esm/core-react/utils/getBestBWContrastColor.js +18 -18
- package/lib/esm/core-react/utils/getBestBWContrastColor.js.map +1 -1
- package/lib/esm/core-react/utils/getCssVariable.d.ts +11 -11
- package/lib/esm/core-react/utils/getCssVariable.js +26 -26
- package/lib/esm/core-react/utils/getCssVariable.js.map +1 -1
- package/lib/esm/core-react/utils/getDisplayName.d.ts +8 -8
- package/lib/esm/core-react/utils/getDisplayName.js +17 -17
- package/lib/esm/core-react/utils/getDisplayName.js.map +1 -1
- package/lib/esm/core-react/utils/getUserColor.d.ts +7 -7
- package/lib/esm/core-react/utils/getUserColor.js +34 -34
- package/lib/esm/core-react/utils/getUserColor.js.map +1 -1
- package/lib/esm/core-react/utils/hooks/ResizeObserverPolyfill.d.ts +4 -4
- package/lib/esm/core-react/utils/hooks/ResizeObserverPolyfill.js +16 -16
- package/lib/esm/core-react/utils/hooks/ResizeObserverPolyfill.js.map +1 -1
- package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.d.ts +7 -7
- package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.js +85 -85
- package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.js.map +1 -1
- package/lib/esm/core-react/utils/hooks/useDisposable.d.ts +17 -17
- package/lib/esm/core-react/utils/hooks/useDisposable.js +33 -33
- package/lib/esm/core-react/utils/hooks/useDisposable.js.map +1 -1
- package/lib/esm/core-react/utils/hooks/useEffectSkipFirst.d.ts +8 -8
- package/lib/esm/core-react/utils/hooks/useEffectSkipFirst.js +22 -22
- package/lib/esm/core-react/utils/hooks/useEffectSkipFirst.js.map +1 -1
- package/lib/esm/core-react/utils/hooks/useEventListener.d.ts +11 -11
- package/lib/esm/core-react/utils/hooks/useEventListener.js +39 -39
- package/lib/esm/core-react/utils/hooks/useEventListener.js.map +1 -1
- package/lib/esm/core-react/utils/hooks/useInterval.d.ts +5 -5
- package/lib/esm/core-react/utils/hooks/useInterval.js +32 -32
- package/lib/esm/core-react/utils/hooks/useInterval.js.map +1 -1
- package/lib/esm/core-react/utils/hooks/useLifecycleLogging.d.ts +5 -5
- package/lib/esm/core-react/utils/hooks/useLifecycleLogging.js +60 -60
- package/lib/esm/core-react/utils/hooks/useLifecycleLogging.js.map +1 -1
- package/lib/esm/core-react/utils/hooks/useOnOutsideClick.d.ts +12 -12
- package/lib/esm/core-react/utils/hooks/useOnOutsideClick.js +88 -88
- package/lib/esm/core-react/utils/hooks/useOnOutsideClick.js.map +1 -1
- package/lib/esm/core-react/utils/hooks/useProximityToMouse.d.ts +55 -55
- package/lib/esm/core-react/utils/hooks/useProximityToMouse.js +102 -102
- package/lib/esm/core-react/utils/hooks/useProximityToMouse.js.map +1 -1
- package/lib/esm/core-react/utils/hooks/useRefEffect.d.ts +7 -7
- package/lib/esm/core-react/utils/hooks/useRefEffect.js +19 -19
- package/lib/esm/core-react/utils/hooks/useRefEffect.js.map +1 -1
- package/lib/esm/core-react/utils/hooks/useRefState.d.ts +21 -21
- package/lib/esm/core-react/utils/hooks/useRefState.js +31 -31
- package/lib/esm/core-react/utils/hooks/useRefState.js.map +1 -1
- package/lib/esm/core-react/utils/hooks/useRefs.d.ts +12 -12
- package/lib/esm/core-react/utils/hooks/useRefs.js +48 -48
- package/lib/esm/core-react/utils/hooks/useRefs.js.map +1 -1
- package/lib/esm/core-react/utils/hooks/useResizeObserver.d.ts +39 -39
- package/lib/esm/core-react/utils/hooks/useResizeObserver.js +201 -201
- package/lib/esm/core-react/utils/hooks/useResizeObserver.js.map +1 -1
- package/lib/esm/core-react/utils/hooks/useTargeted.d.ts +8 -8
- package/lib/esm/core-react/utils/hooks/useTargeted.js +24 -24
- package/lib/esm/core-react/utils/hooks/useTargeted.js.map +1 -1
- package/lib/esm/core-react/utils/hooks/useThrottledFn.d.ts +15 -15
- package/lib/esm/core-react/utils/hooks/useThrottledFn.js +21 -21
- package/lib/esm/core-react/utils/hooks/useThrottledFn.js.map +1 -1
- package/lib/esm/core-react/utils/hooks/useWidgetOpacityContext.d.ts +20 -20
- package/lib/esm/core-react/utils/hooks/useWidgetOpacityContext.js +23 -23
- package/lib/esm/core-react/utils/hooks/useWidgetOpacityContext.js.map +1 -1
- package/lib/esm/core-react/utils/isPromiseLike.d.ts +7 -7
- package/lib/esm/core-react/utils/isPromiseLike.js +13 -13
- package/lib/esm/core-react/utils/isPromiseLike.js.map +1 -1
- package/lib/esm/core-react/utils/shallowDiffers.d.ts +11 -11
- package/lib/esm/core-react/utils/shallowDiffers.js +25 -25
- package/lib/esm/core-react/utils/shallowDiffers.js.map +1 -1
- package/lib/esm/core-react/utils/typeUtils.d.ts +7 -7
- package/lib/esm/core-react/utils/typeUtils.js +8 -8
- package/lib/esm/core-react/utils/typeUtils.js.map +1 -1
- package/lib/esm/core-react.d.ts +275 -275
- package/lib/esm/core-react.js +280 -280
- package/lib/esm/core-react.js.map +1 -1
- package/lib/public/locales/en/UiCore.json +30 -30
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.js","sourceRoot":"","sources":["../../../../src/core-react/form/Field.tsx"],"names":[],"mappings":"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","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"Field.js","sourceRoot":"","sources":["../../../../src/core-react/form/Field.tsx"],"names":[],"mappings":"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","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/* eslint-disable deprecation/deprecation */\n/** @packageDocumentation\n * @module Form\n */\n\nimport * as React from \"react\";\nimport { Checkbox, Input, Select, SelectOption, Textarea } from \"@itwin/itwinui-react\";\nimport { FieldDef, FormContext, FormContextState } from \"./Form\";\n\n// cSpell:ignore multilinetextbox\n\n/** Properties used to create a [[Field]] in a [[Form]]\n * @public @deprecated in 3.0. Removed Forms implementation\n */\nexport interface FieldProps extends FieldDef {\n /* The unique field name */\n id: string;\n}\n\ntype FieldDefOptions = FieldDef[\"options\"];\n\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.\n * @public @deprecated in 3.0. Removed Forms implementation\n */\nexport class Field extends React.Component<FieldProps> {\n constructor(props: FieldProps) {\n super(props);\n }\n\n private _generateSelectOptions = (propOptions: FieldDefOptions): SelectOption<string>[] => {\n let selectOptions: SelectOption<string>[] = [];\n\n if (propOptions instanceof Array) {\n selectOptions = propOptions.map((option: string) => (\n { value: option, label: option }\n ));\n } else if (propOptions !== undefined) {\n selectOptions = Object.keys(propOptions).map((key) => (\n { value: key, label: propOptions[key] }\n ));\n }\n\n return selectOptions;\n };\n\n public override render() {\n const selectOptions = this._generateSelectOptions(this.props.options);\n\n return (\n <FormContext.Consumer>\n {(context: FormContextState | undefined) => (\n <div className=\"core-form-group\">\n {this.props.editor!.toLowerCase() !== \"checkbox\" && this.props.label && <label className=\"core-form-label\" htmlFor={this.props.id}>{this.props.label}</label>}\n\n {this.props.editor!.toLowerCase() === \"textbox\" && (\n <Input\n id={this.props.id}\n value={context!.values[this.props.id]}\n onChange={(event: React.ChangeEvent<HTMLInputElement>) => context!.setValues({ [this.props.id]: event.currentTarget.value })}\n className=\"core-form-input\"\n size=\"small\"\n />\n )}\n {this.props.editor!.toLowerCase() === \"checkbox\" && (\n <Checkbox\n label={this.props.label}\n id={this.props.id}\n checked={context!.values[this.props.id]}\n onChange={() => context!.setValues({ [this.props.id]: !context!.values[this.props.id] })}\n />\n )}\n {this.props.editor!.toLowerCase() === \"multilinetextbox\" && (\n <Textarea\n id={this.props.id}\n value={context!.values[this.props.id]}\n onChange={(event: React.ChangeEvent<HTMLTextAreaElement>) => context!.setValues({ [this.props.id]: event.currentTarget.value })}\n className=\"core-form-textarea\"\n />\n )}\n {this.props.editor!.toLowerCase() === \"dropdown\" && this.props.options && (\n <Select\n id={this.props.id}\n // name={this.props.id}\n value={context!.values[this.props.id]}\n onChange={(newValue: any) => context!.setValues({ [this.props.id]: newValue })}\n options={selectOptions}\n className=\"core-form-select\"\n size=\"small\"\n />\n )}\n </div>\n )}\n </FormContext.Consumer>\n );\n }\n}\n"]}
|
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Form
|
|
3
|
-
*/
|
|
4
|
-
import "./Form.scss";
|
|
5
|
-
import * as React from "react";
|
|
6
|
-
/** The available editors for the fields in a [[Form]].
|
|
7
|
-
* @public @deprecated in 3.0. Forms functionality was removed.
|
|
8
|
-
*/
|
|
9
|
-
export declare type FieldEditor = "textbox" | "multilinetextbox" | "dropdown" | "checkbox";
|
|
10
|
-
/** Interface used to define each [[Field]] in a [[Form]]
|
|
11
|
-
* @public @deprecated in 3.0.F orms functionality was removed.
|
|
12
|
-
*/
|
|
13
|
-
export interface FieldDef {
|
|
14
|
-
label?: string;
|
|
15
|
-
editor?: FieldEditor;
|
|
16
|
-
options?: string[] | {
|
|
17
|
-
[key: string]: string;
|
|
18
|
-
};
|
|
19
|
-
value?: any;
|
|
20
|
-
}
|
|
21
|
-
/** Key/value pairs for all the field values with key being the field HTML Id.
|
|
22
|
-
* @public @deprecated in 3.0. Forms functionality was removed.
|
|
23
|
-
*/
|
|
24
|
-
export interface FieldValues {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}
|
|
27
|
-
/** The state data used by [[Form]] to hold state of each [[Field]] and the result of submit button processing.
|
|
28
|
-
* @public @deprecated in 3.0. Forms functionality was removed.
|
|
29
|
-
*/
|
|
30
|
-
interface FormState {
|
|
31
|
-
values: FieldValues;
|
|
32
|
-
errorMsg: string;
|
|
33
|
-
submitSuccess?: boolean;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* FormContextState combines the Form's state data with the callbacks used to update the value of the state data.
|
|
37
|
-
* @public @deprecate
|
|
38
|
-
*/
|
|
39
|
-
export interface FormContextState extends FormState {
|
|
40
|
-
setValues: (values: FieldValues) => void;
|
|
41
|
-
}
|
|
42
|
-
/** React context used by Form as a Provider and by the Fields as Consumers and updaters.
|
|
43
|
-
* @public @deprecated in 3.0. Forms functionality was removed.
|
|
44
|
-
*/
|
|
45
|
-
export declare const FormContext: React.Context<FormContextState | undefined>;
|
|
46
|
-
/** Key/value pairs for all the field definitions to be displayed in a [[Form]].
|
|
47
|
-
* @public
|
|
48
|
-
*/
|
|
49
|
-
export interface FieldDefinitions {
|
|
50
|
-
[key: string]: FieldDef;
|
|
51
|
-
}
|
|
52
|
-
/** Properties that define [[Form]] including the callback to be called when the Submit button is pressed.
|
|
53
|
-
* @public
|
|
54
|
-
*/
|
|
55
|
-
export interface FormProps {
|
|
56
|
-
/** Required async callback the processes the Form data and throws and Error if the data cannot be processed. */
|
|
57
|
-
handleFormSubmit: (values: FieldValues) => Promise<void>;
|
|
58
|
-
/** Definition used to create each Field in the Form. */
|
|
59
|
-
fields: FieldDefinitions;
|
|
60
|
-
/** Optional label which will override default Submit button label. */
|
|
61
|
-
submitButtonLabel?: string;
|
|
62
|
-
}
|
|
63
|
-
/** Component used to create a Form using supplied properties to specify the fields of the Form.
|
|
64
|
-
* @example
|
|
65
|
-
* // Example of using a form as contents of a modal dialog.
|
|
66
|
-
* export class ExampleForm extends React.Component {
|
|
67
|
-
* public static open() {
|
|
68
|
-
* const form = new ExampleForm({});
|
|
69
|
-
* UiFramework.dialogs.modal.openDialog(form.render());
|
|
70
|
-
* }
|
|
71
|
-
*
|
|
72
|
-
* protected async handleSubmit(values: FieldValues): Promise<void> {
|
|
73
|
-
* await this.processFormSubmission(values);
|
|
74
|
-
* UiFramework.dialogs.modal.closeDialog();
|
|
75
|
-
* const msg = JSON.stringify(values);
|
|
76
|
-
* IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, "Form Submitted", msg));
|
|
77
|
-
* }
|
|
78
|
-
*
|
|
79
|
-
* protected async processFormSubmission(values: FieldValues): Promise<void> {
|
|
80
|
-
* // if error occurs during async processing throw an Error and return error message back to form.
|
|
81
|
-
* throw new Error("Error processing form");
|
|
82
|
-
* }
|
|
83
|
-
*
|
|
84
|
-
* protected handleCancel() {
|
|
85
|
-
* UiFramework.dialogs.modal.closeDialog();
|
|
86
|
-
* }
|
|
87
|
-
*
|
|
88
|
-
* public render() {
|
|
89
|
-
* const fields: FieldDefinitions = {
|
|
90
|
-
* Name: {
|
|
91
|
-
* label: this._nameLabel,
|
|
92
|
-
* editor: "textbox",
|
|
93
|
-
* value: "John Smith",
|
|
94
|
-
* },
|
|
95
|
-
* PickList: {
|
|
96
|
-
* label: this._pickListLabel,
|
|
97
|
-
* editor: "dropdown",
|
|
98
|
-
* value: "one",
|
|
99
|
-
* options: ["one", "two", "three", "four"],
|
|
100
|
-
* },
|
|
101
|
-
* };
|
|
102
|
-
*
|
|
103
|
-
* return (
|
|
104
|
-
* <div>
|
|
105
|
-
* <Dialog title="Example Form"
|
|
106
|
-
* opened={true}
|
|
107
|
-
* onClose={() => this.handleCancel()}>
|
|
108
|
-
* <Form handleFormSubmit={(values: FieldValues) => this.handleSubmit(values)}
|
|
109
|
-
* fields={fields}
|
|
110
|
-
* />
|
|
111
|
-
* </Dialog>
|
|
112
|
-
* </div >
|
|
113
|
-
* );
|
|
114
|
-
* }
|
|
115
|
-
* @public @deprecate
|
|
116
|
-
*/
|
|
117
|
-
export declare class Form extends React.Component<FormProps, FormState> {
|
|
118
|
-
private _submitButtonLabel;
|
|
119
|
-
private _errorPrefix;
|
|
120
|
-
private _errorSuffix;
|
|
121
|
-
constructor(props: FormProps);
|
|
122
|
-
/**
|
|
123
|
-
* Returns whether there is an errorMsg message in the state/context
|
|
124
|
-
* @param errorMsg - The form errorMsg
|
|
125
|
-
*/
|
|
126
|
-
private haveError;
|
|
127
|
-
private _setValues;
|
|
128
|
-
private _handleSubmit;
|
|
129
|
-
render(): JSX.Element;
|
|
130
|
-
}
|
|
131
|
-
export {};
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Form
|
|
3
|
+
*/
|
|
4
|
+
import "./Form.scss";
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
/** The available editors for the fields in a [[Form]].
|
|
7
|
+
* @public @deprecated in 3.0. Forms functionality was removed.
|
|
8
|
+
*/
|
|
9
|
+
export declare type FieldEditor = "textbox" | "multilinetextbox" | "dropdown" | "checkbox";
|
|
10
|
+
/** Interface used to define each [[Field]] in a [[Form]]
|
|
11
|
+
* @public @deprecated in 3.0.F orms functionality was removed.
|
|
12
|
+
*/
|
|
13
|
+
export interface FieldDef {
|
|
14
|
+
label?: string;
|
|
15
|
+
editor?: FieldEditor;
|
|
16
|
+
options?: string[] | {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
value?: any;
|
|
20
|
+
}
|
|
21
|
+
/** Key/value pairs for all the field values with key being the field HTML Id.
|
|
22
|
+
* @public @deprecated in 3.0. Forms functionality was removed.
|
|
23
|
+
*/
|
|
24
|
+
export interface FieldValues {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}
|
|
27
|
+
/** The state data used by [[Form]] to hold state of each [[Field]] and the result of submit button processing.
|
|
28
|
+
* @public @deprecated in 3.0. Forms functionality was removed.
|
|
29
|
+
*/
|
|
30
|
+
interface FormState {
|
|
31
|
+
values: FieldValues;
|
|
32
|
+
errorMsg: string;
|
|
33
|
+
submitSuccess?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* FormContextState combines the Form's state data with the callbacks used to update the value of the state data.
|
|
37
|
+
* @public @deprecate
|
|
38
|
+
*/
|
|
39
|
+
export interface FormContextState extends FormState {
|
|
40
|
+
setValues: (values: FieldValues) => void;
|
|
41
|
+
}
|
|
42
|
+
/** React context used by Form as a Provider and by the Fields as Consumers and updaters.
|
|
43
|
+
* @public @deprecated in 3.0. Forms functionality was removed.
|
|
44
|
+
*/
|
|
45
|
+
export declare const FormContext: React.Context<FormContextState | undefined>;
|
|
46
|
+
/** Key/value pairs for all the field definitions to be displayed in a [[Form]].
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
export interface FieldDefinitions {
|
|
50
|
+
[key: string]: FieldDef;
|
|
51
|
+
}
|
|
52
|
+
/** Properties that define [[Form]] including the callback to be called when the Submit button is pressed.
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
export interface FormProps {
|
|
56
|
+
/** Required async callback the processes the Form data and throws and Error if the data cannot be processed. */
|
|
57
|
+
handleFormSubmit: (values: FieldValues) => Promise<void>;
|
|
58
|
+
/** Definition used to create each Field in the Form. */
|
|
59
|
+
fields: FieldDefinitions;
|
|
60
|
+
/** Optional label which will override default Submit button label. */
|
|
61
|
+
submitButtonLabel?: string;
|
|
62
|
+
}
|
|
63
|
+
/** Component used to create a Form using supplied properties to specify the fields of the Form.
|
|
64
|
+
* @example
|
|
65
|
+
* // Example of using a form as contents of a modal dialog.
|
|
66
|
+
* export class ExampleForm extends React.Component {
|
|
67
|
+
* public static open() {
|
|
68
|
+
* const form = new ExampleForm({});
|
|
69
|
+
* UiFramework.dialogs.modal.openDialog(form.render());
|
|
70
|
+
* }
|
|
71
|
+
*
|
|
72
|
+
* protected async handleSubmit(values: FieldValues): Promise<void> {
|
|
73
|
+
* await this.processFormSubmission(values);
|
|
74
|
+
* UiFramework.dialogs.modal.closeDialog();
|
|
75
|
+
* const msg = JSON.stringify(values);
|
|
76
|
+
* IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, "Form Submitted", msg));
|
|
77
|
+
* }
|
|
78
|
+
*
|
|
79
|
+
* protected async processFormSubmission(values: FieldValues): Promise<void> {
|
|
80
|
+
* // if error occurs during async processing throw an Error and return error message back to form.
|
|
81
|
+
* throw new Error("Error processing form");
|
|
82
|
+
* }
|
|
83
|
+
*
|
|
84
|
+
* protected handleCancel() {
|
|
85
|
+
* UiFramework.dialogs.modal.closeDialog();
|
|
86
|
+
* }
|
|
87
|
+
*
|
|
88
|
+
* public render() {
|
|
89
|
+
* const fields: FieldDefinitions = {
|
|
90
|
+
* Name: {
|
|
91
|
+
* label: this._nameLabel,
|
|
92
|
+
* editor: "textbox",
|
|
93
|
+
* value: "John Smith",
|
|
94
|
+
* },
|
|
95
|
+
* PickList: {
|
|
96
|
+
* label: this._pickListLabel,
|
|
97
|
+
* editor: "dropdown",
|
|
98
|
+
* value: "one",
|
|
99
|
+
* options: ["one", "two", "three", "four"],
|
|
100
|
+
* },
|
|
101
|
+
* };
|
|
102
|
+
*
|
|
103
|
+
* return (
|
|
104
|
+
* <div>
|
|
105
|
+
* <Dialog title="Example Form"
|
|
106
|
+
* opened={true}
|
|
107
|
+
* onClose={() => this.handleCancel()}>
|
|
108
|
+
* <Form handleFormSubmit={(values: FieldValues) => this.handleSubmit(values)}
|
|
109
|
+
* fields={fields}
|
|
110
|
+
* />
|
|
111
|
+
* </Dialog>
|
|
112
|
+
* </div >
|
|
113
|
+
* );
|
|
114
|
+
* }
|
|
115
|
+
* @public @deprecate
|
|
116
|
+
*/
|
|
117
|
+
export declare class Form extends React.Component<FormProps, FormState> {
|
|
118
|
+
private _submitButtonLabel;
|
|
119
|
+
private _errorPrefix;
|
|
120
|
+
private _errorSuffix;
|
|
121
|
+
constructor(props: FormProps);
|
|
122
|
+
/**
|
|
123
|
+
* Returns whether there is an errorMsg message in the state/context
|
|
124
|
+
* @param errorMsg - The form errorMsg
|
|
125
|
+
*/
|
|
126
|
+
private haveError;
|
|
127
|
+
private _setValues;
|
|
128
|
+
private _handleSubmit;
|
|
129
|
+
render(): JSX.Element;
|
|
130
|
+
}
|
|
131
|
+
export {};
|
|
132
132
|
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/* eslint-disable deprecation/deprecation */
|
|
7
|
-
/** @packageDocumentation
|
|
8
|
-
* @module Form
|
|
9
|
-
*/
|
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.Form = exports.FormContext = void 0;
|
|
12
|
-
require("./Form.scss");
|
|
13
|
-
const React = require("react");
|
|
14
|
-
const UiCore_1 = require("../UiCore");
|
|
15
|
-
const Field_1 = require("./Field");
|
|
16
|
-
const itwinui_react_1 = require("@itwin/itwinui-react");
|
|
17
|
-
/** React context used by Form as a Provider and by the Fields as Consumers and updaters.
|
|
18
|
-
* @public @deprecated in 3.0. Forms functionality was removed.
|
|
19
|
-
*/
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
21
|
-
exports.FormContext = React.createContext(undefined);
|
|
22
|
-
exports.FormContext.displayName = "core-react:FormContext";
|
|
23
|
-
/** Component used to create a Form using supplied properties to specify the fields of the Form.
|
|
24
|
-
* @example
|
|
25
|
-
* // Example of using a form as contents of a modal dialog.
|
|
26
|
-
* export class ExampleForm extends React.Component {
|
|
27
|
-
* public static open() {
|
|
28
|
-
* const form = new ExampleForm({});
|
|
29
|
-
* UiFramework.dialogs.modal.openDialog(form.render());
|
|
30
|
-
* }
|
|
31
|
-
*
|
|
32
|
-
* protected async handleSubmit(values: FieldValues): Promise<void> {
|
|
33
|
-
* await this.processFormSubmission(values);
|
|
34
|
-
* UiFramework.dialogs.modal.closeDialog();
|
|
35
|
-
* const msg = JSON.stringify(values);
|
|
36
|
-
* IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, "Form Submitted", msg));
|
|
37
|
-
* }
|
|
38
|
-
*
|
|
39
|
-
* protected async processFormSubmission(values: FieldValues): Promise<void> {
|
|
40
|
-
* // if error occurs during async processing throw an Error and return error message back to form.
|
|
41
|
-
* throw new Error("Error processing form");
|
|
42
|
-
* }
|
|
43
|
-
*
|
|
44
|
-
* protected handleCancel() {
|
|
45
|
-
* UiFramework.dialogs.modal.closeDialog();
|
|
46
|
-
* }
|
|
47
|
-
*
|
|
48
|
-
* public render() {
|
|
49
|
-
* const fields: FieldDefinitions = {
|
|
50
|
-
* Name: {
|
|
51
|
-
* label: this._nameLabel,
|
|
52
|
-
* editor: "textbox",
|
|
53
|
-
* value: "John Smith",
|
|
54
|
-
* },
|
|
55
|
-
* PickList: {
|
|
56
|
-
* label: this._pickListLabel,
|
|
57
|
-
* editor: "dropdown",
|
|
58
|
-
* value: "one",
|
|
59
|
-
* options: ["one", "two", "three", "four"],
|
|
60
|
-
* },
|
|
61
|
-
* };
|
|
62
|
-
*
|
|
63
|
-
* return (
|
|
64
|
-
* <div>
|
|
65
|
-
* <Dialog title="Example Form"
|
|
66
|
-
* opened={true}
|
|
67
|
-
* onClose={() => this.handleCancel()}>
|
|
68
|
-
* <Form handleFormSubmit={(values: FieldValues) => this.handleSubmit(values)}
|
|
69
|
-
* fields={fields}
|
|
70
|
-
* />
|
|
71
|
-
* </Dialog>
|
|
72
|
-
* </div >
|
|
73
|
-
* );
|
|
74
|
-
* }
|
|
75
|
-
* @public @deprecate
|
|
76
|
-
*/
|
|
77
|
-
class Form extends React.Component {
|
|
78
|
-
constructor(props) {
|
|
79
|
-
super(props);
|
|
80
|
-
this._submitButtonLabel = UiCore_1.UiCore.translate("form.submitButtonLabel");
|
|
81
|
-
this._errorPrefix = UiCore_1.UiCore.translate("form.errorPrefix");
|
|
82
|
-
this._errorSuffix = UiCore_1.UiCore.translate("form.errorSuffix");
|
|
83
|
-
this._setValues = (values) => {
|
|
84
|
-
this.setState((prevState) => ({ values: { ...prevState.values, ...values } }));
|
|
85
|
-
};
|
|
86
|
-
this._handleSubmit = (event, values) => {
|
|
87
|
-
event.preventDefault();
|
|
88
|
-
// istanbul ignore next
|
|
89
|
-
if (!this.props.handleFormSubmit || !values || 0 === values.length)
|
|
90
|
-
throw new Error("A handleFormSubmit function and values must be defined");
|
|
91
|
-
this.props.handleFormSubmit(values)
|
|
92
|
-
.then(() => {
|
|
93
|
-
// Currently we don't need to do anything if successful. Typically the hosting dialog will close when the
|
|
94
|
-
// submission is successful.
|
|
95
|
-
// console.log(rtnMsg);
|
|
96
|
-
})
|
|
97
|
-
.catch((reason) => {
|
|
98
|
-
this.setState({ submitSuccess: false, errorMsg: reason.message });
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
// set initial values for field values
|
|
102
|
-
const values = {};
|
|
103
|
-
Object.keys(props.fields).forEach((key) => values[key] = props.fields[key].value);
|
|
104
|
-
this.state = {
|
|
105
|
-
errorMsg: "",
|
|
106
|
-
values,
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Returns whether there is an errorMsg message in the state/context
|
|
111
|
-
* @param errorMsg - The form errorMsg
|
|
112
|
-
*/
|
|
113
|
-
haveError(errorMsg) {
|
|
114
|
-
return errorMsg && errorMsg.length;
|
|
115
|
-
}
|
|
116
|
-
render() {
|
|
117
|
-
const { submitSuccess, errorMsg } = this.state;
|
|
118
|
-
const { fields, submitButtonLabel } = this.props;
|
|
119
|
-
const context = { ...this.state, setValues: this._setValues };
|
|
120
|
-
return (React.createElement(exports.FormContext.Provider, { value: context },
|
|
121
|
-
React.createElement("div", { className: "core-form-wrapper" },
|
|
122
|
-
React.createElement("form", { onSubmit: (event) => this._handleSubmit(event, this.state.values), noValidate: true },
|
|
123
|
-
React.createElement("div", { className: "core-form-container" },
|
|
124
|
-
Object.keys(fields).map((key) => React.createElement(Field_1.Field, { key: key, id: key, ...this.props.fields[key] })),
|
|
125
|
-
React.createElement("div", { className: "core-form-footer" },
|
|
126
|
-
React.createElement("div", { className: "core-form-buttons" },
|
|
127
|
-
React.createElement(itwinui_react_1.Button, { type: "submit", styleType: "high-visibility" }, submitButtonLabel ? submitButtonLabel : this._submitButtonLabel)),
|
|
128
|
-
submitSuccess === false && this.haveError(errorMsg) && (React.createElement("div", { className: "core-form-alert", role: "alert" }, `${this._errorPrefix}-${errorMsg} ${this._errorSuffix}`))))))));
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
exports.Form = Form;
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
/* eslint-disable deprecation/deprecation */
|
|
7
|
+
/** @packageDocumentation
|
|
8
|
+
* @module Form
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.Form = exports.FormContext = void 0;
|
|
12
|
+
require("./Form.scss");
|
|
13
|
+
const React = require("react");
|
|
14
|
+
const UiCore_1 = require("../UiCore");
|
|
15
|
+
const Field_1 = require("./Field");
|
|
16
|
+
const itwinui_react_1 = require("@itwin/itwinui-react");
|
|
17
|
+
/** React context used by Form as a Provider and by the Fields as Consumers and updaters.
|
|
18
|
+
* @public @deprecated in 3.0. Forms functionality was removed.
|
|
19
|
+
*/
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
21
|
+
exports.FormContext = React.createContext(undefined);
|
|
22
|
+
exports.FormContext.displayName = "core-react:FormContext";
|
|
23
|
+
/** Component used to create a Form using supplied properties to specify the fields of the Form.
|
|
24
|
+
* @example
|
|
25
|
+
* // Example of using a form as contents of a modal dialog.
|
|
26
|
+
* export class ExampleForm extends React.Component {
|
|
27
|
+
* public static open() {
|
|
28
|
+
* const form = new ExampleForm({});
|
|
29
|
+
* UiFramework.dialogs.modal.openDialog(form.render());
|
|
30
|
+
* }
|
|
31
|
+
*
|
|
32
|
+
* protected async handleSubmit(values: FieldValues): Promise<void> {
|
|
33
|
+
* await this.processFormSubmission(values);
|
|
34
|
+
* UiFramework.dialogs.modal.closeDialog();
|
|
35
|
+
* const msg = JSON.stringify(values);
|
|
36
|
+
* IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, "Form Submitted", msg));
|
|
37
|
+
* }
|
|
38
|
+
*
|
|
39
|
+
* protected async processFormSubmission(values: FieldValues): Promise<void> {
|
|
40
|
+
* // if error occurs during async processing throw an Error and return error message back to form.
|
|
41
|
+
* throw new Error("Error processing form");
|
|
42
|
+
* }
|
|
43
|
+
*
|
|
44
|
+
* protected handleCancel() {
|
|
45
|
+
* UiFramework.dialogs.modal.closeDialog();
|
|
46
|
+
* }
|
|
47
|
+
*
|
|
48
|
+
* public render() {
|
|
49
|
+
* const fields: FieldDefinitions = {
|
|
50
|
+
* Name: {
|
|
51
|
+
* label: this._nameLabel,
|
|
52
|
+
* editor: "textbox",
|
|
53
|
+
* value: "John Smith",
|
|
54
|
+
* },
|
|
55
|
+
* PickList: {
|
|
56
|
+
* label: this._pickListLabel,
|
|
57
|
+
* editor: "dropdown",
|
|
58
|
+
* value: "one",
|
|
59
|
+
* options: ["one", "two", "three", "four"],
|
|
60
|
+
* },
|
|
61
|
+
* };
|
|
62
|
+
*
|
|
63
|
+
* return (
|
|
64
|
+
* <div>
|
|
65
|
+
* <Dialog title="Example Form"
|
|
66
|
+
* opened={true}
|
|
67
|
+
* onClose={() => this.handleCancel()}>
|
|
68
|
+
* <Form handleFormSubmit={(values: FieldValues) => this.handleSubmit(values)}
|
|
69
|
+
* fields={fields}
|
|
70
|
+
* />
|
|
71
|
+
* </Dialog>
|
|
72
|
+
* </div >
|
|
73
|
+
* );
|
|
74
|
+
* }
|
|
75
|
+
* @public @deprecate
|
|
76
|
+
*/
|
|
77
|
+
class Form extends React.Component {
|
|
78
|
+
constructor(props) {
|
|
79
|
+
super(props);
|
|
80
|
+
this._submitButtonLabel = UiCore_1.UiCore.translate("form.submitButtonLabel");
|
|
81
|
+
this._errorPrefix = UiCore_1.UiCore.translate("form.errorPrefix");
|
|
82
|
+
this._errorSuffix = UiCore_1.UiCore.translate("form.errorSuffix");
|
|
83
|
+
this._setValues = (values) => {
|
|
84
|
+
this.setState((prevState) => ({ values: { ...prevState.values, ...values } }));
|
|
85
|
+
};
|
|
86
|
+
this._handleSubmit = (event, values) => {
|
|
87
|
+
event.preventDefault();
|
|
88
|
+
// istanbul ignore next
|
|
89
|
+
if (!this.props.handleFormSubmit || !values || 0 === values.length)
|
|
90
|
+
throw new Error("A handleFormSubmit function and values must be defined");
|
|
91
|
+
this.props.handleFormSubmit(values)
|
|
92
|
+
.then(() => {
|
|
93
|
+
// Currently we don't need to do anything if successful. Typically the hosting dialog will close when the
|
|
94
|
+
// submission is successful.
|
|
95
|
+
// console.log(rtnMsg);
|
|
96
|
+
})
|
|
97
|
+
.catch((reason) => {
|
|
98
|
+
this.setState({ submitSuccess: false, errorMsg: reason.message });
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
// set initial values for field values
|
|
102
|
+
const values = {};
|
|
103
|
+
Object.keys(props.fields).forEach((key) => values[key] = props.fields[key].value);
|
|
104
|
+
this.state = {
|
|
105
|
+
errorMsg: "",
|
|
106
|
+
values,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Returns whether there is an errorMsg message in the state/context
|
|
111
|
+
* @param errorMsg - The form errorMsg
|
|
112
|
+
*/
|
|
113
|
+
haveError(errorMsg) {
|
|
114
|
+
return errorMsg && errorMsg.length;
|
|
115
|
+
}
|
|
116
|
+
render() {
|
|
117
|
+
const { submitSuccess, errorMsg } = this.state;
|
|
118
|
+
const { fields, submitButtonLabel } = this.props;
|
|
119
|
+
const context = { ...this.state, setValues: this._setValues };
|
|
120
|
+
return (React.createElement(exports.FormContext.Provider, { value: context },
|
|
121
|
+
React.createElement("div", { className: "core-form-wrapper" },
|
|
122
|
+
React.createElement("form", { onSubmit: (event) => this._handleSubmit(event, this.state.values), noValidate: true },
|
|
123
|
+
React.createElement("div", { className: "core-form-container" },
|
|
124
|
+
Object.keys(fields).map((key) => React.createElement(Field_1.Field, { key: key, id: key, ...this.props.fields[key] })),
|
|
125
|
+
React.createElement("div", { className: "core-form-footer" },
|
|
126
|
+
React.createElement("div", { className: "core-form-buttons" },
|
|
127
|
+
React.createElement(itwinui_react_1.Button, { type: "submit", styleType: "high-visibility" }, submitButtonLabel ? submitButtonLabel : this._submitButtonLabel)),
|
|
128
|
+
submitSuccess === false && this.haveError(errorMsg) && (React.createElement("div", { className: "core-form-alert", role: "alert" }, `${this._errorPrefix}-${errorMsg} ${this._errorSuffix}`))))))));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
exports.Form = Form;
|
|
132
132
|
//# sourceMappingURL=Form.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.js","sourceRoot":"","sources":["../../../../src/core-react/form/Form.tsx"],"names":[],"mappings":"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","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 in 3.0. Forms functionality was removed.\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 in 3.0.F orms functionality was removed.\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 in 3.0. Forms functionality was removed.\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 in 3.0. Forms functionality was removed.\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 in 3.0. Forms functionality was removed.\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 * UiFramework.dialogs.modal.openDialog(form.render());\r\n * }\r\n *\r\n * protected async handleSubmit(values: FieldValues): Promise<void> {\r\n * await this.processFormSubmission(values);\r\n * UiFramework.dialogs.modal.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 * UiFramework.dialogs.modal.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
|
+
{"version":3,"file":"Form.js","sourceRoot":"","sources":["../../../../src/core-react/form/Form.tsx"],"names":[],"mappings":"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","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/* eslint-disable deprecation/deprecation */\n/** @packageDocumentation\n * @module Form\n */\n\nimport \"./Form.scss\";\nimport * as React from \"react\";\nimport { UiCore } from \"../UiCore\";\nimport { Field } from \"./Field\";\nimport { Button } from \"@itwin/itwinui-react\";\n\n// cSpell:ignore multilinetextbox\n\n/** The available editors for the fields in a [[Form]].\n * @public @deprecated in 3.0. Forms functionality was removed.\n */\nexport type FieldEditor = \"textbox\" | \"multilinetextbox\" | \"dropdown\" | \"checkbox\";\n\n/** Interface used to define each [[Field]] in a [[Form]]\n * @public @deprecated in 3.0.F orms functionality was removed.\n */\nexport interface FieldDef {\n /* The label text for the field */\n label?: string;\n\n /* The editor for the field */\n editor?: FieldEditor;\n\n /* The drop down items for the field */\n options?: string[] | { [key: string]: string };\n\n /* The initial field value */\n value?: any;\n}\n\n/** Key/value pairs for all the field values with key being the field HTML Id.\n * @public @deprecated in 3.0. Forms functionality was removed.\n */\nexport interface FieldValues {\n [key: string]: any;\n}\n\n/** The state data used by [[Form]] to hold state of each [[Field]] and the result of submit button processing.\n * @public @deprecated in 3.0. Forms functionality was removed.\n */\ninterface FormState {\n /* The field values */\n values: FieldValues;\n\n /* The errorMsg message return in catch of async submit button processing */\n errorMsg: string;\n\n /* Whether the form has been successfully submitted */\n submitSuccess?: boolean;\n}\n\n/**\n * FormContextState combines the Form's state data with the callbacks used to update the value of the state data.\n * @public @deprecate\n */\nexport interface FormContextState extends FormState {\n setValues: (values: FieldValues) => void;\n}\n\n/** React context used by Form as a Provider and by the Fields as Consumers and updaters.\n * @public @deprecated in 3.0. Forms functionality was removed.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const FormContext = React.createContext<FormContextState | undefined>(undefined);\nFormContext.displayName = \"core-react:FormContext\";\n\n/** Key/value pairs for all the field definitions to be displayed in a [[Form]].\n * @public\n */\nexport interface FieldDefinitions {\n [key: string]: FieldDef;\n}\n\n/** Properties that define [[Form]] including the callback to be called when the Submit button is pressed.\n * @public\n */\nexport interface FormProps {\n /** Required async callback the processes the Form data and throws and Error if the data cannot be processed. */\n handleFormSubmit: (values: FieldValues) => Promise<void>;\n /** Definition used to create each Field in the Form. */\n fields: FieldDefinitions;\n /** Optional label which will override default Submit button label. */\n submitButtonLabel?: string;\n}\n\n/** Component used to create a Form using supplied properties to specify the fields of the Form.\n * @example\n * // Example of using a form as contents of a modal dialog.\n * export class ExampleForm extends React.Component {\n * public static open() {\n * const form = new ExampleForm({});\n * UiFramework.dialogs.modal.openDialog(form.render());\n * }\n *\n * protected async handleSubmit(values: FieldValues): Promise<void> {\n * await this.processFormSubmission(values);\n * UiFramework.dialogs.modal.closeDialog();\n * const msg = JSON.stringify(values);\n * IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, \"Form Submitted\", msg));\n * }\n *\n * protected async processFormSubmission(values: FieldValues): Promise<void> {\n * // if error occurs during async processing throw an Error and return error message back to form.\n * throw new Error(\"Error processing form\");\n * }\n *\n * protected handleCancel() {\n * UiFramework.dialogs.modal.closeDialog();\n * }\n *\n * public render() {\n * const fields: FieldDefinitions = {\n * Name: {\n * label: this._nameLabel,\n * editor: \"textbox\",\n * value: \"John Smith\",\n * },\n * PickList: {\n * label: this._pickListLabel,\n * editor: \"dropdown\",\n * value: \"one\",\n * options: [\"one\", \"two\", \"three\", \"four\"],\n * },\n * };\n *\n * return (\n * <div>\n * <Dialog title=\"Example Form\"\n * opened={true}\n * onClose={() => this.handleCancel()}>\n * <Form handleFormSubmit={(values: FieldValues) => this.handleSubmit(values)}\n * fields={fields}\n * />\n * </Dialog>\n * </div >\n * );\n * }\n * @public @deprecate\n */\nexport class Form extends React.Component<FormProps, FormState> {\n private _submitButtonLabel = UiCore.translate(\"form.submitButtonLabel\");\n private _errorPrefix = UiCore.translate(\"form.errorPrefix\");\n private _errorSuffix = UiCore.translate(\"form.errorSuffix\");\n\n constructor(props: FormProps) {\n super(props);\n\n // set initial values for field values\n const values: FieldValues = {};\n Object.keys(props.fields).forEach((key) => values[key] = props.fields[key].value);\n\n this.state = {\n errorMsg: \"\",\n values,\n };\n }\n\n /**\n * Returns whether there is an errorMsg message in the state/context\n * @param errorMsg - The form errorMsg\n */\n private haveError(errorMsg: string) {\n return errorMsg && errorMsg.length;\n }\n\n private _setValues = (values: FieldValues) => {\n this.setState((prevState) => ({ values: { ...prevState.values, ...values } }));\n };\n\n private _handleSubmit = (event: React.FormEvent<HTMLFormElement>, values: FieldValues) => {\n event.preventDefault();\n\n // istanbul ignore next\n if (!this.props.handleFormSubmit || !values || 0 === values.length)\n throw new Error(\"A handleFormSubmit function and values must be defined\");\n\n this.props.handleFormSubmit(values)\n .then(() => {\n // Currently we don't need to do anything if successful. Typically the hosting dialog will close when the\n // submission is successful.\n // console.log(rtnMsg);\n })\n .catch((reason: Error) => {\n this.setState({ submitSuccess: false, errorMsg: reason.message });\n });\n };\n\n public override render() {\n const { submitSuccess, errorMsg } = this.state;\n const { fields, submitButtonLabel } = this.props;\n const context: FormContextState = { ...this.state, setValues: this._setValues };\n\n return (\n <FormContext.Provider value={context}>\n <div className=\"core-form-wrapper\">\n <form onSubmit={(event: React.FormEvent<HTMLFormElement>) => this._handleSubmit(event, this.state.values)} noValidate={true}>\n <div className=\"core-form-container\">\n {Object.keys(fields).map((key) => <Field key={key} id={key} {...this.props.fields[key]} />)}\n <div className=\"core-form-footer\">\n <div className=\"core-form-buttons\">\n <Button type=\"submit\" styleType=\"high-visibility\">\n {submitButtonLabel ? submitButtonLabel : this._submitButtonLabel}\n </Button>\n </div>\n {submitSuccess === false && this.haveError(errorMsg) && (\n <div className=\"core-form-alert\" role=\"alert\">{`${this._errorPrefix}-${errorMsg} ${this._errorSuffix}`}</div>\n )}\n </div>\n </div>\n </form>\n </div>\n </FormContext.Provider>\n );\n }\n}\n"]}
|