@procore/core-react 12.20.4 → 12.21.0-cdn.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/global.d.js.map +1 -1
- package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/Banner/Banner.js +34 -34
- package/dist/Banner/Banner.js.map +1 -1
- package/dist/Banner/Banner.styles.js +10 -10
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Calendar/Calendar.styles.js +8 -8
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.js +14 -14
- package/dist/Checkbox/Checkbox.styles.js.map +1 -1
- package/dist/Checkbox/CheckboxTooltip.js +1 -1
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/Dropzone/Dropzone.js +1 -1
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/EmptyState/EmptyState.styles.js +6 -6
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.styles.js +4 -4
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
- package/dist/FileSelect/FileSelect.js +8 -8
- package/dist/FileSelect/FileSelect.js.map +1 -1
- package/dist/FileSelect/FileSelect.styles.js +2 -2
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
- package/dist/FileSelect/GridSource/GridSource.js +1 -1
- package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
- package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
- package/dist/FileSelect/LocalSource/LocalSource.js +8 -8
- package/dist/FileSelect/LocalSource/LocalSource.js.map +1 -1
- package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
- package/dist/FileSelect/TreeSource/TreeSource.js +1 -1
- package/dist/FileSelect/TreeSource/TreeSource.js.map +1 -1
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileSelect/storyHelpers.js +1 -1
- package/dist/FileSelect/storyHelpers.js.map +1 -1
- package/dist/FileToken/FileToken.styles.js +4 -4
- package/dist/FilterToken/FilterToken.styles.js +5 -5
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.js +339 -339
- package/dist/Form/Form.js.map +1 -1
- package/dist/Form/Form.styles.js +14 -14
- package/dist/Form/StyledFormikForm.styles.d.ts +1 -1
- package/dist/Form/StyledFormikForm.styles.js +2 -2
- package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
- package/dist/Grid/Grid.styles.js +2 -2
- package/dist/GroupSelect/GroupSelect.styles.js +1 -1
- package/dist/Input/Input.styles.js +1 -1
- package/dist/Link/Link.styles.js +1 -1
- package/dist/ListPage/ListPage.styles.js +8 -8
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/MenuImperative/MenuImperative.d.ts +1 -0
- package/dist/MenuImperative/MenuImperative.js +1 -1
- package/dist/MenuImperative/MenuImperative.js.map +1 -1
- package/dist/MenuImperative/MenuImperative.styles.js +10 -10
- package/dist/Modal/Modal.styles.js +19 -19
- package/dist/Modal/Modal.styles.js.map +1 -1
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/Notation/Notation.js +1 -1
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/PageLayout/PageLayout.js +12 -12
- package/dist/PageLayout/PageLayout.js.map +1 -1
- package/dist/PageLayout/PageLayout.styles.js +25 -25
- package/dist/PageLayout/PageLayout.styles.js.map +1 -1
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
- package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
- package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
- package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Pagination/PaginationSelect.js +2 -2
- package/dist/Pagination/PaginationSelect.js.map +1 -1
- package/dist/Panel/Panel.js +15 -15
- package/dist/Panel/Panel.js.map +1 -1
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.js +2 -2
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- package/dist/Popover/Popover.styles.js +2 -2
- package/dist/Portal/Portal.styles.js +1 -1
- package/dist/ProgressBar/ProgressBar.styles.js +2 -2
- package/dist/RadioButton/RadioButton.styles.js +3 -3
- package/dist/Required/Required.styles.js +3 -3
- package/dist/Search/Search.styles.js +5 -5
- package/dist/Section/Section.styles.js +7 -7
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.styles.js +11 -11
- package/dist/Select/Select.styles.js.map +1 -1
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +66 -66
- package/dist/SuperSelect/SuperSelect.styles.js.map +1 -1
- package/dist/SuperSelect/useSuperSelect.js +30 -30
- package/dist/SuperSelect/useSuperSelect.js.map +1 -1
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.js +80 -80
- package/dist/Table/Table.js.map +1 -1
- package/dist/Table/Table.styles.js +56 -56
- package/dist/Table/Table.styles.js.map +1 -1
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.styles.js +15 -15
- package/dist/Tearsheet/Tearsheet.js +1 -1
- package/dist/Tearsheet/Tearsheet.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.styles.js +9 -9
- package/dist/Tearsheet/Tearsheet.styles.js.map +1 -1
- package/dist/TextArea/TextArea.styles.js +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.hooks.d.ts +10 -10
- package/dist/Thumbnail/Thumbnail.styles.js +55 -55
- package/dist/Thumbnail/Thumbnail.styles.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.js +16 -16
- package/dist/ThumbnailGrid/ThumbnailGrid.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TierSelectionTieredSelect.js +7 -7
- package/dist/TieredSelect/TierSelectionTieredSelect.js.map +1 -1
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/Tile/Tile.styles.js +8 -8
- package/dist/Title/Title.styles.js +7 -7
- package/dist/Toast/Toast.styles.js +3 -3
- package/dist/ToggleButton/ToggleButton.styles.js +1 -1
- package/dist/Token/Token.styles.js +3 -3
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
- package/dist/Tooltip/Tooltip.styles.js +2 -2
- package/dist/Tree/Tree.hooks.js +1 -1
- package/dist/Tree/Tree.hooks.js.map +1 -1
- package/dist/Tree/Tree.js +12 -12
- package/dist/Tree/Tree.js.map +1 -1
- package/dist/Tree/Tree.styles.js +9 -9
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/_hooks/I18n.d.ts +18 -9
- package/dist/_hooks/I18n.js +45 -29
- package/dist/_hooks/I18n.js.map +1 -1
- package/dist/_hooks/useFileUploader.js +1 -1
- package/dist/_hooks/useFileUploader.js.map +1 -1
- package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +13 -13
- package/dist/_typedoc/Box/Box.types.json +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
- package/dist/_typedoc/Button/Button.types.json +13 -13
- package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
- package/dist/_typedoc/Card/Card.types.json +6 -6
- package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
- package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
- package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
- package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
- package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
- package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
- package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
- package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
- package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
- package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
- package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
- package/dist/_typedoc/Flex/Flex.types.json +27 -27
- package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
- package/dist/_typedoc/Form/Form.types.json +741 -741
- package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +4 -4
- package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
- package/dist/_typedoc/Menu/Menu.types.json +62 -62
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
- package/dist/_typedoc/Modal/Modal.types.json +46 -46
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
- package/dist/_typedoc/PageLayout/PageLayout.types.json +29 -29
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +28 -28
- package/dist/_typedoc/Pill/Pill.types.json +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
- package/dist/_typedoc/Popover/Popover.types.json +15 -15
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
- package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
- package/dist/_typedoc/Required/Required.types.json +5 -5
- package/dist/_typedoc/Search/Search.types.json +19 -19
- package/dist/_typedoc/Section/Section.types.json +15 -15
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
- package/dist/_typedoc/Select/Select.types.json +60 -60
- package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
- package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +12 -12
- package/dist/_typedoc/Switch/Switch.types.json +3 -3
- package/dist/_typedoc/Table/Table.types.json +101 -101
- package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
- package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
- package/dist/_typedoc/Tile/Tile.types.json +30 -30
- package/dist/_typedoc/Title/Title.types.json +1 -1
- package/dist/_typedoc/Toast/Toast.types.json +4 -4
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
- package/dist/_typedoc/Token/Token.types.json +4 -4
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
- package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
- package/dist/_typedoc/Tree/Tree.types.json +86 -86
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +9 -9
- package/dist/_typedoc/_utils/types.json +3 -3
- package/dist/_utils/runInQueue.js +1 -1
- package/dist/_utils/runInQueue.js.map +1 -1
- package/package.json +4 -1
package/dist/Form/Form.js
CHANGED
|
@@ -7,34 +7,34 @@ var _excluded = ["initialValues", "onSubmit", "disabled", "enableConfirmNavigati
|
|
|
7
7
|
_excluded7 = ["children"],
|
|
8
8
|
_excluded8 = ["onBlur", "onChange", "field"],
|
|
9
9
|
_excluded9 = ["field"],
|
|
10
|
+
_excluded0 = ["onBlur", "onChange", "field"],
|
|
11
|
+
_excluded1 = ["decimalScale", "defaultValue", "field", "fillDecimalScale", "locale", "onChange", "prefix", "suffix"],
|
|
10
12
|
_excluded10 = ["onBlur", "onChange", "field"],
|
|
11
|
-
_excluded11 = ["
|
|
12
|
-
_excluded12 = ["
|
|
13
|
-
_excluded13 = ["
|
|
14
|
-
_excluded14 = ["
|
|
15
|
-
_excluded15 = ["
|
|
16
|
-
_excluded16 = ["field", "
|
|
17
|
-
_excluded17 = ["field"
|
|
18
|
-
_excluded18 = ["
|
|
19
|
-
_excluded19 = ["field"],
|
|
20
|
-
_excluded20 = ["
|
|
21
|
-
_excluded21 = ["field", "
|
|
22
|
-
_excluded22 = ["field", "getId", "getLabel", "isDisabledOption", "options"],
|
|
23
|
-
_excluded23 = ["field", "getId", "getLabel", "options"],
|
|
24
|
-
_excluded24 = ["
|
|
25
|
-
_excluded25 = ["
|
|
26
|
-
_excluded26 = ["getId", "getLabel"],
|
|
27
|
-
_excluded27 = ["getId", "getLabel"],
|
|
28
|
-
_excluded28 = ["
|
|
29
|
-
_excluded29 = ["afterHide", "afterShow", "beforeHide", "beforeShow", "field", "footer", "
|
|
30
|
-
_excluded30 = ["field", "onBlur", "
|
|
31
|
-
_excluded31 = ["afterHide", "afterShow", "beforeHide", "beforeShow", "
|
|
13
|
+
_excluded11 = ["currencyIsoCode", "currencyDisplay", "decimalScale", "suffix", "prefix"],
|
|
14
|
+
_excluded12 = ["onChange", "field"],
|
|
15
|
+
_excluded13 = ["onChange", "field"],
|
|
16
|
+
_excluded14 = ["field", "i18nScope", "tooltip", "hasRequiredMark", "inlineLabel", "onBlur", "onChange"],
|
|
17
|
+
_excluded15 = ["field", "tooltip", "inlineLabel", "i18nScope", "hasRequiredMark"],
|
|
18
|
+
_excluded16 = ["field", "onBlur", "onChange"],
|
|
19
|
+
_excluded17 = ["field"],
|
|
20
|
+
_excluded18 = ["onChange", "field"],
|
|
21
|
+
_excluded19 = ["field", "onBlur", "onChange", "onClick", "onContextMenu", "onCopy", "onCompositionEnd", "onCompositionStart", "onCompositionUpdate", "onCut", "onDrag", "onDragDrop", "onDragEnd", "onDragGesture", "onDragOver", "onDrop", "onFocus", "onInput", "onKeyDown", "onKeyPress", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseOut", "onMouseOver", "onMouseUp", "onPaste", "onReset", "onSubmit"],
|
|
22
|
+
_excluded20 = ["field", "getId", "getLabel", "isDisabledOption", "options"],
|
|
23
|
+
_excluded21 = ["field", "getId", "getLabel", "options"],
|
|
24
|
+
_excluded22 = ["field", "getId", "getLabel", "isDisabledOption", "isIndeterminateOption", "options"],
|
|
25
|
+
_excluded23 = ["field", "getId", "getLabel", "isDisabledOption", "isIndeterminateOption", "options"],
|
|
26
|
+
_excluded24 = ["getId", "getLabel"],
|
|
27
|
+
_excluded25 = ["getId", "getLabel"],
|
|
28
|
+
_excluded26 = ["afterHide", "field", "getGroup", "getId", "getLabel", "groupGetId", "groupGetLabel", "groupHeaderRenderer", "isSuggestedOption", "onClear", "onSearch", "onSelect", "searchComparator", "options", "optgroups", "optionRenderer"],
|
|
29
|
+
_excluded27 = ["afterHide", "afterShow", "beforeHide", "beforeShow", "field", "footer", "getId", "getGroup", "getLabel", "groupGetId", "groupGetLabel", "groupHeaderRenderer", "i18nScope", "isSuggestedOption", "options", "optgroups", "optionRenderer", "searchComparator", "onBlur", "onClear", "onSearch", "onSelect"],
|
|
30
|
+
_excluded28 = ["field", "onBlur", "onClear", "onSelect", "getId", "getLabel"],
|
|
31
|
+
_excluded29 = ["afterHide", "afterShow", "beforeHide", "beforeShow", "color", "field", "footer", "getColor", "getGroup", "getLabel", "getSuggested", "groupGetId", "groupGetLabel", "i18nScope", "onClear", "onSearch", "onSelect", "options", "optgroups"],
|
|
32
|
+
_excluded30 = ["field", "onBlur", "onChange", "getId", "getLabel"],
|
|
33
|
+
_excluded31 = ["afterHide", "afterShow", "beforeHide", "beforeShow", "emptyMessage", "field", "getGroup", "getId", "getLabel", "groupHeaderRenderer", "isOptionDisabled", "onChange", "onSearch", "onScrollBottom", "options", "optgroups", "optionRenderer", "placement", "placeholder", "tokenRenderer", "qa"],
|
|
32
34
|
_excluded32 = ["field", "onBlur", "onChange", "getId", "getLabel"],
|
|
33
|
-
_excluded33 = ["afterHide", "afterShow", "beforeHide", "beforeShow", "emptyMessage", "field", "getGroup", "getId", "getLabel", "
|
|
35
|
+
_excluded33 = ["afterHide", "afterShow", "beforeHide", "beforeShow", "emptyMessage", "field", "getGroup", "getId", "getLabel", "getOptGroup", "groupRenderer", "groups", "isOptionDisabled", "placeholder", "placement", "onChange", "onScrollBottom", "onSearch", "optgroups", "options", "optionRenderer", "optGroupRenderer", "tokenRenderer", "qa"],
|
|
34
36
|
_excluded34 = ["field", "onBlur", "onChange", "getId", "getLabel"],
|
|
35
|
-
_excluded35 = ["afterHide", "afterShow", "beforeHide", "beforeShow", "
|
|
36
|
-
_excluded36 = ["field", "onBlur", "onChange", "getId", "getLabel"],
|
|
37
|
-
_excluded37 = ["afterHide", "afterShow", "beforeHide", "beforeShow", "field", "getId", "getLabel", "getGroupId", "getNextGroupId", "getValueString", "i18nScope", "isLeaf", "isTierDisabled", "loadingMore", "onChange", "onClear", "onNavigate", "onScrollBottom", "onSearch", "onQuickCreate", "options", "selectableTiers"];
|
|
37
|
+
_excluded35 = ["afterHide", "afterShow", "beforeHide", "beforeShow", "field", "getId", "getLabel", "getGroupId", "getNextGroupId", "getValueString", "i18nScope", "isLeaf", "isTierDisabled", "loadingMore", "onChange", "onClear", "onNavigate", "onScrollBottom", "onSearch", "onQuickCreate", "options", "selectableTiers"];
|
|
38
38
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
39
39
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
40
40
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -646,9 +646,9 @@ export var TextInput = /*#__PURE__*/React.forwardRef(function TextInput(_ref9, r
|
|
|
646
646
|
* `<span ref={ref} {...props}>{field.input.value}</span>`.
|
|
647
647
|
* @deprecatedSince 12.21.0
|
|
648
648
|
*/
|
|
649
|
-
export var TextOutput = /*#__PURE__*/React.forwardRef(function TextOutput(
|
|
650
|
-
var field =
|
|
651
|
-
props = _objectWithoutProperties(
|
|
649
|
+
export var TextOutput = /*#__PURE__*/React.forwardRef(function TextOutput(_ref0, ref) {
|
|
650
|
+
var field = _ref0.field,
|
|
651
|
+
props = _objectWithoutProperties(_ref0, _excluded9);
|
|
652
652
|
return /*#__PURE__*/React.createElement("span", _extends({
|
|
653
653
|
ref: ref
|
|
654
654
|
}, props), field.input.value);
|
|
@@ -657,11 +657,11 @@ var FieldText = makeField(TextInput, TextOutput);
|
|
|
657
657
|
|
|
658
658
|
// NUMBER
|
|
659
659
|
|
|
660
|
-
export var NumberInput = /*#__PURE__*/React.forwardRef(function NumberInput(
|
|
661
|
-
var onBlur_ =
|
|
662
|
-
onChange_ =
|
|
663
|
-
field =
|
|
664
|
-
props = _objectWithoutProperties(
|
|
660
|
+
export var NumberInput = /*#__PURE__*/React.forwardRef(function NumberInput(_ref1, ref) {
|
|
661
|
+
var onBlur_ = _ref1.onBlur,
|
|
662
|
+
onChange_ = _ref1.onChange,
|
|
663
|
+
field = _ref1.field,
|
|
664
|
+
props = _objectWithoutProperties(_ref1, _excluded0);
|
|
665
665
|
var onBlur = function onBlur(e) {
|
|
666
666
|
field.input.onBlur(e);
|
|
667
667
|
onBlur_ === null || onBlur_ === void 0 ? void 0 : onBlur_(e);
|
|
@@ -689,16 +689,16 @@ export var NumberInput = /*#__PURE__*/React.forwardRef(function NumberInput(_ref
|
|
|
689
689
|
value: field.input.value
|
|
690
690
|
}, props));
|
|
691
691
|
});
|
|
692
|
-
export var NumberOutput = /*#__PURE__*/React.forwardRef(function NumberOutput(
|
|
693
|
-
var decimalScale =
|
|
694
|
-
defaultValue =
|
|
695
|
-
field =
|
|
696
|
-
fillDecimalScale =
|
|
697
|
-
_locale =
|
|
698
|
-
onChange =
|
|
699
|
-
prefix =
|
|
700
|
-
suffix =
|
|
701
|
-
props = _objectWithoutProperties(
|
|
692
|
+
export var NumberOutput = /*#__PURE__*/React.forwardRef(function NumberOutput(_ref10, ref) {
|
|
693
|
+
var decimalScale = _ref10.decimalScale,
|
|
694
|
+
defaultValue = _ref10.defaultValue,
|
|
695
|
+
field = _ref10.field,
|
|
696
|
+
fillDecimalScale = _ref10.fillDecimalScale,
|
|
697
|
+
_locale = _ref10.locale,
|
|
698
|
+
onChange = _ref10.onChange,
|
|
699
|
+
prefix = _ref10.prefix,
|
|
700
|
+
suffix = _ref10.suffix,
|
|
701
|
+
props = _objectWithoutProperties(_ref10, _excluded1);
|
|
702
702
|
var I18n = useI18nContext();
|
|
703
703
|
var locale = _locale || I18n.locale || defaultLocale;
|
|
704
704
|
var _useNumberFormat = useNumberFormat({
|
|
@@ -716,11 +716,11 @@ var FieldNumber = makeField(NumberInput, NumberOutput);
|
|
|
716
716
|
|
|
717
717
|
// CURRENCY
|
|
718
718
|
|
|
719
|
-
export var CurrencyInput = /*#__PURE__*/React.forwardRef(function CurrencyInput(
|
|
720
|
-
var onBlur_ =
|
|
721
|
-
onChange_ =
|
|
722
|
-
field =
|
|
723
|
-
props = _objectWithoutProperties(
|
|
719
|
+
export var CurrencyInput = /*#__PURE__*/React.forwardRef(function CurrencyInput(_ref11, ref) {
|
|
720
|
+
var onBlur_ = _ref11.onBlur,
|
|
721
|
+
onChange_ = _ref11.onChange,
|
|
722
|
+
field = _ref11.field,
|
|
723
|
+
props = _objectWithoutProperties(_ref11, _excluded10);
|
|
724
724
|
var onBlur = function onBlur(e) {
|
|
725
725
|
field.input.onBlur(e);
|
|
726
726
|
onBlur_ === null || onBlur_ === void 0 ? void 0 : onBlur_(e);
|
|
@@ -747,15 +747,15 @@ export var CurrencyInput = /*#__PURE__*/React.forwardRef(function CurrencyInput(
|
|
|
747
747
|
value: field.input.value
|
|
748
748
|
}, props));
|
|
749
749
|
});
|
|
750
|
-
export var CurrencyOutput = /*#__PURE__*/React.forwardRef(function CurrencyOutput(
|
|
751
|
-
var currencyIsoCode =
|
|
752
|
-
currencyDisplay =
|
|
753
|
-
|
|
754
|
-
decimalScale =
|
|
755
|
-
suffix =
|
|
756
|
-
|
|
757
|
-
prefix =
|
|
758
|
-
props = _objectWithoutProperties(
|
|
750
|
+
export var CurrencyOutput = /*#__PURE__*/React.forwardRef(function CurrencyOutput(_ref12, ref) {
|
|
751
|
+
var currencyIsoCode = _ref12.currencyIsoCode,
|
|
752
|
+
currencyDisplay = _ref12.currencyDisplay,
|
|
753
|
+
_ref12$decimalScale = _ref12.decimalScale,
|
|
754
|
+
decimalScale = _ref12$decimalScale === void 0 ? defaultCurrencyDecimalScale : _ref12$decimalScale,
|
|
755
|
+
suffix = _ref12.suffix,
|
|
756
|
+
_ref12$prefix = _ref12.prefix,
|
|
757
|
+
prefix = _ref12$prefix === void 0 ? defaultCurrencyInputPrefix : _ref12$prefix,
|
|
758
|
+
props = _objectWithoutProperties(_ref12, _excluded11);
|
|
759
759
|
var i18n = useI18nContext();
|
|
760
760
|
var locale = props.locale || i18n.locale || defaultLocale;
|
|
761
761
|
var numberProps = getCurrencyProps(locale, decimalScale, prefix || suffix, currencyIsoCode, currencyDisplay);
|
|
@@ -768,10 +768,10 @@ var FieldCurrency = makeField(CurrencyInput, CurrencyOutput);
|
|
|
768
768
|
|
|
769
769
|
// DATE
|
|
770
770
|
|
|
771
|
-
export var DateInput = /*#__PURE__*/React.forwardRef(function DateInput(
|
|
772
|
-
var _onChange =
|
|
773
|
-
field =
|
|
774
|
-
props = _objectWithoutProperties(
|
|
771
|
+
export var DateInput = /*#__PURE__*/React.forwardRef(function DateInput(_ref13, ref) {
|
|
772
|
+
var _onChange = _ref13.onChange,
|
|
773
|
+
field = _ref13.field,
|
|
774
|
+
props = _objectWithoutProperties(_ref13, _excluded12);
|
|
775
775
|
var value = field.input.value ? toDate(field.input.value, 'Form.DateSelect Create or Update Input') : undefined;
|
|
776
776
|
var onChange = function onChange(value) {
|
|
777
777
|
field.helpers.setValue(value);
|
|
@@ -786,10 +786,10 @@ export var DateInput = /*#__PURE__*/React.forwardRef(function DateInput(_ref15,
|
|
|
786
786
|
value: value
|
|
787
787
|
}, props));
|
|
788
788
|
});
|
|
789
|
-
export var DateOutput = /*#__PURE__*/React.forwardRef(function DateOutput(
|
|
790
|
-
var onChange =
|
|
791
|
-
field =
|
|
792
|
-
props = _objectWithoutProperties(
|
|
789
|
+
export var DateOutput = /*#__PURE__*/React.forwardRef(function DateOutput(_ref14, ref) {
|
|
790
|
+
var onChange = _ref14.onChange,
|
|
791
|
+
field = _ref14.field,
|
|
792
|
+
props = _objectWithoutProperties(_ref14, _excluded13);
|
|
793
793
|
var dateTime = useDateTime();
|
|
794
794
|
var value = field.input.value ? dateTime.format(toDate(field.input.value, 'Form.DateSelect Read Output'), 'numeric-date') : undefined;
|
|
795
795
|
var machineValue = field.input.value ? formatMachineDate(dateTime.shiftUtcToZonedTime(toDate(field.input.value))) : undefined;
|
|
@@ -803,15 +803,15 @@ var FieldDateSelect = makeField(DateInput, DateOutput);
|
|
|
803
803
|
|
|
804
804
|
// CHECKBOX
|
|
805
805
|
|
|
806
|
-
export var CheckboxInput = /*#__PURE__*/React.forwardRef(function CheckboxInput(
|
|
807
|
-
var field =
|
|
808
|
-
i18nScope =
|
|
809
|
-
tooltip =
|
|
810
|
-
hasRequiredMark =
|
|
811
|
-
inlineLabel =
|
|
812
|
-
_onBlur =
|
|
813
|
-
_onChange =
|
|
814
|
-
props = _objectWithoutProperties(
|
|
806
|
+
export var CheckboxInput = /*#__PURE__*/React.forwardRef(function CheckboxInput(_ref15, ref) {
|
|
807
|
+
var field = _ref15.field,
|
|
808
|
+
i18nScope = _ref15.i18nScope,
|
|
809
|
+
tooltip = _ref15.tooltip,
|
|
810
|
+
hasRequiredMark = _ref15.hasRequiredMark,
|
|
811
|
+
inlineLabel = _ref15.inlineLabel,
|
|
812
|
+
_onBlur = _ref15.onBlur,
|
|
813
|
+
_onChange = _ref15.onChange,
|
|
814
|
+
props = _objectWithoutProperties(_ref15, _excluded14);
|
|
815
815
|
var value = field.input.value || false;
|
|
816
816
|
var onBlur = function onBlur(e) {
|
|
817
817
|
field.input.onBlur(e);
|
|
@@ -835,14 +835,14 @@ export var CheckboxInput = /*#__PURE__*/React.forwardRef(function CheckboxInput(
|
|
|
835
835
|
tooltip: tooltip
|
|
836
836
|
}, props), inlineLabel);
|
|
837
837
|
});
|
|
838
|
-
export var CheckboxOutput = /*#__PURE__*/React.forwardRef(function CheckboxOutput(
|
|
839
|
-
var field =
|
|
840
|
-
tooltip =
|
|
841
|
-
inlineLabel =
|
|
842
|
-
|
|
843
|
-
i18nScope =
|
|
844
|
-
hasRequiredMark =
|
|
845
|
-
props = _objectWithoutProperties(
|
|
838
|
+
export var CheckboxOutput = /*#__PURE__*/React.forwardRef(function CheckboxOutput(_ref16, ref) {
|
|
839
|
+
var field = _ref16.field,
|
|
840
|
+
tooltip = _ref16.tooltip,
|
|
841
|
+
inlineLabel = _ref16.inlineLabel,
|
|
842
|
+
_ref16$i18nScope = _ref16.i18nScope,
|
|
843
|
+
i18nScope = _ref16$i18nScope === void 0 ? 'core.form.checkbox' : _ref16$i18nScope,
|
|
844
|
+
hasRequiredMark = _ref16.hasRequiredMark,
|
|
845
|
+
props = _objectWithoutProperties(_ref16, _excluded15);
|
|
846
846
|
var i18n = useI18nContext();
|
|
847
847
|
var yes = /*#__PURE__*/React.createElement("span", {
|
|
848
848
|
style: {
|
|
@@ -883,11 +883,11 @@ var FieldCheckbox = makeField(CheckboxInput, CheckboxOutput, {
|
|
|
883
883
|
|
|
884
884
|
// TEXTAREA
|
|
885
885
|
|
|
886
|
-
export var TextAreaInput = /*#__PURE__*/React.forwardRef(function TextAreaInput(
|
|
887
|
-
var field =
|
|
888
|
-
_onBlur =
|
|
889
|
-
_onChange =
|
|
890
|
-
props = _objectWithoutProperties(
|
|
886
|
+
export var TextAreaInput = /*#__PURE__*/React.forwardRef(function TextAreaInput(_ref17, ref) {
|
|
887
|
+
var field = _ref17.field,
|
|
888
|
+
_onBlur = _ref17.onBlur,
|
|
889
|
+
_onChange = _ref17.onChange,
|
|
890
|
+
props = _objectWithoutProperties(_ref17, _excluded16);
|
|
891
891
|
var onBlur = function onBlur(e) {
|
|
892
892
|
field.input.onBlur(e);
|
|
893
893
|
_onBlur && _onBlur(e);
|
|
@@ -907,9 +907,9 @@ export var TextAreaInput = /*#__PURE__*/React.forwardRef(function TextAreaInput(
|
|
|
907
907
|
value: field.input.value
|
|
908
908
|
}, props));
|
|
909
909
|
});
|
|
910
|
-
export var TextAreaOutput = /*#__PURE__*/React.forwardRef(function TextAreaOutput(
|
|
911
|
-
var field =
|
|
912
|
-
props = _objectWithoutProperties(
|
|
910
|
+
export var TextAreaOutput = /*#__PURE__*/React.forwardRef(function TextAreaOutput(_ref18, ref) {
|
|
911
|
+
var field = _ref18.field,
|
|
912
|
+
props = _objectWithoutProperties(_ref18, _excluded17);
|
|
913
913
|
return /*#__PURE__*/React.createElement(StyledFormOutputTextArea, _extends({
|
|
914
914
|
ref: ref
|
|
915
915
|
}, props), field.input.value);
|
|
@@ -918,10 +918,10 @@ var FieldTextArea = makeField(TextAreaInput, TextAreaOutput);
|
|
|
918
918
|
|
|
919
919
|
// RICHTEXT
|
|
920
920
|
|
|
921
|
-
export var RichTextInput = /*#__PURE__*/React.forwardRef(function RichTextInput(
|
|
922
|
-
var _onChange =
|
|
923
|
-
field =
|
|
924
|
-
props = _objectWithoutProperties(
|
|
921
|
+
export var RichTextInput = /*#__PURE__*/React.forwardRef(function RichTextInput(_ref19, ref) {
|
|
922
|
+
var _onChange = _ref19.onChange,
|
|
923
|
+
field = _ref19.field,
|
|
924
|
+
props = _objectWithoutProperties(_ref19, _excluded18);
|
|
925
925
|
var onChange = function onChange(value, isDirty) {
|
|
926
926
|
field.helpers.setValue(value, false, isDirty);
|
|
927
927
|
if (isDirty) {
|
|
@@ -936,38 +936,38 @@ export var RichTextInput = /*#__PURE__*/React.forwardRef(function RichTextInput(
|
|
|
936
936
|
onChange: onChange
|
|
937
937
|
}, props));
|
|
938
938
|
});
|
|
939
|
-
export var RichTextOutput = /*#__PURE__*/React.forwardRef(function RichTextOutput(
|
|
940
|
-
var field =
|
|
941
|
-
onBlur =
|
|
942
|
-
onChange =
|
|
943
|
-
onClick =
|
|
944
|
-
onContextMenu =
|
|
945
|
-
onCopy =
|
|
946
|
-
onCompositionEnd =
|
|
947
|
-
onCompositionStart =
|
|
948
|
-
onCompositionUpdate =
|
|
949
|
-
onCut =
|
|
950
|
-
onDrag =
|
|
951
|
-
onDragDrop =
|
|
952
|
-
onDragEnd =
|
|
953
|
-
onDragGesture =
|
|
954
|
-
onDragOver =
|
|
955
|
-
onDrop =
|
|
956
|
-
onFocus =
|
|
957
|
-
onInput =
|
|
958
|
-
onKeyDown =
|
|
959
|
-
onKeyPress =
|
|
960
|
-
onMouseDown =
|
|
961
|
-
onMouseEnter =
|
|
962
|
-
onMouseLeave =
|
|
963
|
-
onMouseMove =
|
|
964
|
-
onMouseOut =
|
|
965
|
-
onMouseOver =
|
|
966
|
-
onMouseUp =
|
|
967
|
-
onPaste =
|
|
968
|
-
onReset =
|
|
969
|
-
onSubmit =
|
|
970
|
-
props = _objectWithoutProperties(
|
|
939
|
+
export var RichTextOutput = /*#__PURE__*/React.forwardRef(function RichTextOutput(_ref20, ref) {
|
|
940
|
+
var field = _ref20.field,
|
|
941
|
+
onBlur = _ref20.onBlur,
|
|
942
|
+
onChange = _ref20.onChange,
|
|
943
|
+
onClick = _ref20.onClick,
|
|
944
|
+
onContextMenu = _ref20.onContextMenu,
|
|
945
|
+
onCopy = _ref20.onCopy,
|
|
946
|
+
onCompositionEnd = _ref20.onCompositionEnd,
|
|
947
|
+
onCompositionStart = _ref20.onCompositionStart,
|
|
948
|
+
onCompositionUpdate = _ref20.onCompositionUpdate,
|
|
949
|
+
onCut = _ref20.onCut,
|
|
950
|
+
onDrag = _ref20.onDrag,
|
|
951
|
+
onDragDrop = _ref20.onDragDrop,
|
|
952
|
+
onDragEnd = _ref20.onDragEnd,
|
|
953
|
+
onDragGesture = _ref20.onDragGesture,
|
|
954
|
+
onDragOver = _ref20.onDragOver,
|
|
955
|
+
onDrop = _ref20.onDrop,
|
|
956
|
+
onFocus = _ref20.onFocus,
|
|
957
|
+
onInput = _ref20.onInput,
|
|
958
|
+
onKeyDown = _ref20.onKeyDown,
|
|
959
|
+
onKeyPress = _ref20.onKeyPress,
|
|
960
|
+
onMouseDown = _ref20.onMouseDown,
|
|
961
|
+
onMouseEnter = _ref20.onMouseEnter,
|
|
962
|
+
onMouseLeave = _ref20.onMouseLeave,
|
|
963
|
+
onMouseMove = _ref20.onMouseMove,
|
|
964
|
+
onMouseOut = _ref20.onMouseOut,
|
|
965
|
+
onMouseOver = _ref20.onMouseOver,
|
|
966
|
+
onMouseUp = _ref20.onMouseUp,
|
|
967
|
+
onPaste = _ref20.onPaste,
|
|
968
|
+
onReset = _ref20.onReset,
|
|
969
|
+
onSubmit = _ref20.onSubmit,
|
|
970
|
+
props = _objectWithoutProperties(_ref20, _excluded19);
|
|
971
971
|
return /*#__PURE__*/React.createElement(TextEditorOutput, _extends({
|
|
972
972
|
value: field.input.value,
|
|
973
973
|
ref: ref
|
|
@@ -977,15 +977,15 @@ var FieldRichText = makeField(RichTextInput, RichTextOutput);
|
|
|
977
977
|
|
|
978
978
|
// RADIO BUTTONS
|
|
979
979
|
|
|
980
|
-
export var RadioButtonsInput = /*#__PURE__*/React.forwardRef(function RadioButtonsInput(
|
|
981
|
-
var field =
|
|
982
|
-
|
|
983
|
-
getId =
|
|
984
|
-
|
|
985
|
-
getLabel =
|
|
986
|
-
isDisabledOption =
|
|
987
|
-
options =
|
|
988
|
-
props = _objectWithoutProperties(
|
|
980
|
+
export var RadioButtonsInput = /*#__PURE__*/React.forwardRef(function RadioButtonsInput(_ref21, ref) {
|
|
981
|
+
var field = _ref21.field,
|
|
982
|
+
_ref21$getId = _ref21.getId,
|
|
983
|
+
getId = _ref21$getId === void 0 ? defaultGetId : _ref21$getId,
|
|
984
|
+
_ref21$getLabel = _ref21.getLabel,
|
|
985
|
+
getLabel = _ref21$getLabel === void 0 ? defaultGetLabel : _ref21$getLabel,
|
|
986
|
+
isDisabledOption = _ref21.isDisabledOption,
|
|
987
|
+
options = _ref21.options,
|
|
988
|
+
props = _objectWithoutProperties(_ref21, _excluded20);
|
|
989
989
|
if (!options || options.length === 0) return null;
|
|
990
990
|
var onSelect = function onSelect(option) {
|
|
991
991
|
return function () {
|
|
@@ -1007,13 +1007,13 @@ export var RadioButtonsInput = /*#__PURE__*/React.forwardRef(function RadioButto
|
|
|
1007
1007
|
}, getLabel(option));
|
|
1008
1008
|
}));
|
|
1009
1009
|
});
|
|
1010
|
-
export var RadioButtonsOutput = /*#__PURE__*/React.forwardRef(function RadioButtonsOutput(
|
|
1011
|
-
var field =
|
|
1012
|
-
getId =
|
|
1013
|
-
|
|
1014
|
-
getLabel =
|
|
1015
|
-
options =
|
|
1016
|
-
props = _objectWithoutProperties(
|
|
1010
|
+
export var RadioButtonsOutput = /*#__PURE__*/React.forwardRef(function RadioButtonsOutput(_ref22, ref) {
|
|
1011
|
+
var field = _ref22.field,
|
|
1012
|
+
getId = _ref22.getId,
|
|
1013
|
+
_ref22$getLabel = _ref22.getLabel,
|
|
1014
|
+
getLabel = _ref22$getLabel === void 0 ? defaultGetLabel : _ref22$getLabel,
|
|
1015
|
+
options = _ref22.options,
|
|
1016
|
+
props = _objectWithoutProperties(_ref22, _excluded21);
|
|
1017
1017
|
return /*#__PURE__*/React.createElement("span", _extends({
|
|
1018
1018
|
ref: ref
|
|
1019
1019
|
}, props), getLabel(field.input.value));
|
|
@@ -1022,16 +1022,16 @@ var FieldRadioButtons = makeField(RadioButtonsInput, RadioButtonsOutput);
|
|
|
1022
1022
|
|
|
1023
1023
|
// CHECKBOXES
|
|
1024
1024
|
|
|
1025
|
-
export var CheckboxesInput = /*#__PURE__*/React.forwardRef(function CheckboxesInput(
|
|
1026
|
-
var field =
|
|
1027
|
-
|
|
1028
|
-
getId =
|
|
1029
|
-
|
|
1030
|
-
getLabel =
|
|
1031
|
-
isDisabledOption =
|
|
1032
|
-
isIndeterminateOption =
|
|
1033
|
-
options =
|
|
1034
|
-
props = _objectWithoutProperties(
|
|
1025
|
+
export var CheckboxesInput = /*#__PURE__*/React.forwardRef(function CheckboxesInput(_ref23, ref) {
|
|
1026
|
+
var field = _ref23.field,
|
|
1027
|
+
_ref23$getId = _ref23.getId,
|
|
1028
|
+
getId = _ref23$getId === void 0 ? defaultGetId : _ref23$getId,
|
|
1029
|
+
_ref23$getLabel = _ref23.getLabel,
|
|
1030
|
+
getLabel = _ref23$getLabel === void 0 ? defaultGetLabel : _ref23$getLabel,
|
|
1031
|
+
isDisabledOption = _ref23.isDisabledOption,
|
|
1032
|
+
isIndeterminateOption = _ref23.isIndeterminateOption,
|
|
1033
|
+
options = _ref23.options,
|
|
1034
|
+
props = _objectWithoutProperties(_ref23, _excluded22);
|
|
1035
1035
|
if (!options || options.length === 0) return null;
|
|
1036
1036
|
var selectedIds = (field.input.value || emptyArray).map(getId);
|
|
1037
1037
|
var onSelect = function onSelect(changedOption) {
|
|
@@ -1061,15 +1061,15 @@ export var CheckboxesInput = /*#__PURE__*/React.forwardRef(function CheckboxesIn
|
|
|
1061
1061
|
}, getLabel(option));
|
|
1062
1062
|
}));
|
|
1063
1063
|
});
|
|
1064
|
-
export var CheckboxesOutput = /*#__PURE__*/React.forwardRef(function CheckboxesOutput(
|
|
1065
|
-
var field =
|
|
1066
|
-
getId =
|
|
1067
|
-
|
|
1068
|
-
getLabel =
|
|
1069
|
-
isDisabledOption =
|
|
1070
|
-
isIndeterminateOption =
|
|
1071
|
-
options =
|
|
1072
|
-
props = _objectWithoutProperties(
|
|
1064
|
+
export var CheckboxesOutput = /*#__PURE__*/React.forwardRef(function CheckboxesOutput(_ref24, ref) {
|
|
1065
|
+
var field = _ref24.field,
|
|
1066
|
+
getId = _ref24.getId,
|
|
1067
|
+
_ref24$getLabel = _ref24.getLabel,
|
|
1068
|
+
getLabel = _ref24$getLabel === void 0 ? defaultGetLabel : _ref24$getLabel,
|
|
1069
|
+
isDisabledOption = _ref24.isDisabledOption,
|
|
1070
|
+
isIndeterminateOption = _ref24.isIndeterminateOption,
|
|
1071
|
+
options = _ref24.options,
|
|
1072
|
+
props = _objectWithoutProperties(_ref24, _excluded23);
|
|
1073
1073
|
return /*#__PURE__*/React.createElement("span", _extends({
|
|
1074
1074
|
ref: ref
|
|
1075
1075
|
}, props), field.input.value && field.input.value.map(getLabel).join(', '));
|
|
@@ -1082,18 +1082,18 @@ var lowerStartsWith = function lowerStartsWith(query) {
|
|
|
1082
1082
|
var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
1083
1083
|
return startsWith(toLower(query), toLower(value));
|
|
1084
1084
|
};
|
|
1085
|
-
export function useOptions(
|
|
1086
|
-
var value =
|
|
1087
|
-
optgroups =
|
|
1088
|
-
|
|
1089
|
-
options =
|
|
1090
|
-
getLabel =
|
|
1091
|
-
getId =
|
|
1092
|
-
groupGetId =
|
|
1093
|
-
|
|
1094
|
-
getGroup =
|
|
1095
|
-
|
|
1096
|
-
comparator =
|
|
1085
|
+
export function useOptions(_ref25) {
|
|
1086
|
+
var value = _ref25.value,
|
|
1087
|
+
optgroups = _ref25.optgroups,
|
|
1088
|
+
_ref25$options = _ref25.options,
|
|
1089
|
+
options = _ref25$options === void 0 ? emptyArray : _ref25$options,
|
|
1090
|
+
getLabel = _ref25.getLabel,
|
|
1091
|
+
getId = _ref25.getId,
|
|
1092
|
+
groupGetId = _ref25.groupGetId,
|
|
1093
|
+
_ref25$getGroup = _ref25.getGroup,
|
|
1094
|
+
getGroup = _ref25$getGroup === void 0 ? defaultGetGroup : _ref25$getGroup,
|
|
1095
|
+
_ref25$comparator = _ref25.comparator,
|
|
1096
|
+
comparator = _ref25$comparator === void 0 ? lowerStartsWith : _ref25$comparator;
|
|
1097
1097
|
var _React$useState3 = React.useState(''),
|
|
1098
1098
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
1099
1099
|
query = _React$useState4[0],
|
|
@@ -1149,43 +1149,43 @@ export function useOptions(_ref27) {
|
|
|
1149
1149
|
search: search
|
|
1150
1150
|
};
|
|
1151
1151
|
}
|
|
1152
|
-
function defaultOptionRenderer(item,
|
|
1153
|
-
var getId =
|
|
1154
|
-
getLabel =
|
|
1155
|
-
props = _objectWithoutProperties(
|
|
1152
|
+
function defaultOptionRenderer(item, _ref26) {
|
|
1153
|
+
var getId = _ref26.getId,
|
|
1154
|
+
getLabel = _ref26.getLabel,
|
|
1155
|
+
props = _objectWithoutProperties(_ref26, _excluded24);
|
|
1156
1156
|
return /*#__PURE__*/React.createElement(Select.Option, props, getLabel(item));
|
|
1157
1157
|
}
|
|
1158
|
-
function defaultGroupHeaderRenderer(group,
|
|
1159
|
-
var getId =
|
|
1160
|
-
getLabel =
|
|
1161
|
-
props = _objectWithoutProperties(
|
|
1158
|
+
function defaultGroupHeaderRenderer(group, _ref27) {
|
|
1159
|
+
var getId = _ref27.getId,
|
|
1160
|
+
getLabel = _ref27.getLabel,
|
|
1161
|
+
props = _objectWithoutProperties(_ref27, _excluded25);
|
|
1162
1162
|
return /*#__PURE__*/React.createElement(Select.OptGroup, props, getLabel(group));
|
|
1163
1163
|
}
|
|
1164
|
-
export var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(
|
|
1165
|
-
var _afterHide =
|
|
1166
|
-
field =
|
|
1167
|
-
|
|
1168
|
-
getGroup =
|
|
1169
|
-
|
|
1170
|
-
getId =
|
|
1171
|
-
|
|
1172
|
-
getLabel =
|
|
1173
|
-
|
|
1174
|
-
groupGetId =
|
|
1175
|
-
|
|
1176
|
-
groupGetLabel =
|
|
1177
|
-
|
|
1178
|
-
groupHeaderRenderer =
|
|
1179
|
-
isSuggestedOption =
|
|
1180
|
-
_onClear =
|
|
1181
|
-
_onSearch =
|
|
1182
|
-
_onSelect =
|
|
1183
|
-
searchComparator =
|
|
1184
|
-
options =
|
|
1185
|
-
optgroups =
|
|
1186
|
-
|
|
1187
|
-
optionRenderer =
|
|
1188
|
-
props = _objectWithoutProperties(
|
|
1164
|
+
export var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(_ref28, ref) {
|
|
1165
|
+
var _afterHide = _ref28.afterHide,
|
|
1166
|
+
field = _ref28.field,
|
|
1167
|
+
_ref28$getGroup = _ref28.getGroup,
|
|
1168
|
+
getGroup = _ref28$getGroup === void 0 ? defaultGetGroup : _ref28$getGroup,
|
|
1169
|
+
_ref28$getId = _ref28.getId,
|
|
1170
|
+
getId = _ref28$getId === void 0 ? defaultGetId : _ref28$getId,
|
|
1171
|
+
_ref28$getLabel = _ref28.getLabel,
|
|
1172
|
+
getLabel = _ref28$getLabel === void 0 ? defaultGetLabel : _ref28$getLabel,
|
|
1173
|
+
_ref28$groupGetId = _ref28.groupGetId,
|
|
1174
|
+
groupGetId = _ref28$groupGetId === void 0 ? defaultGetId : _ref28$groupGetId,
|
|
1175
|
+
_ref28$groupGetLabel = _ref28.groupGetLabel,
|
|
1176
|
+
groupGetLabel = _ref28$groupGetLabel === void 0 ? defaultGetLabel : _ref28$groupGetLabel,
|
|
1177
|
+
_ref28$groupHeaderRen = _ref28.groupHeaderRenderer,
|
|
1178
|
+
groupHeaderRenderer = _ref28$groupHeaderRen === void 0 ? defaultGroupHeaderRenderer : _ref28$groupHeaderRen,
|
|
1179
|
+
isSuggestedOption = _ref28.isSuggestedOption,
|
|
1180
|
+
_onClear = _ref28.onClear,
|
|
1181
|
+
_onSearch = _ref28.onSearch,
|
|
1182
|
+
_onSelect = _ref28.onSelect,
|
|
1183
|
+
searchComparator = _ref28.searchComparator,
|
|
1184
|
+
options = _ref28.options,
|
|
1185
|
+
optgroups = _ref28.optgroups,
|
|
1186
|
+
_ref28$optionRenderer = _ref28.optionRenderer,
|
|
1187
|
+
optionRenderer = _ref28$optionRenderer === void 0 ? defaultOptionRenderer : _ref28$optionRenderer,
|
|
1188
|
+
props = _objectWithoutProperties(_ref28, _excluded26);
|
|
1189
1189
|
var menu = useOptions({
|
|
1190
1190
|
options: options,
|
|
1191
1191
|
optgroups: optgroups,
|
|
@@ -1251,44 +1251,109 @@ export var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(_ref
|
|
|
1251
1251
|
});
|
|
1252
1252
|
}));
|
|
1253
1253
|
});
|
|
1254
|
-
export var SelectOutput = /*#__PURE__*/React.forwardRef(function SelectOutput(
|
|
1254
|
+
export var SelectOutput = /*#__PURE__*/React.forwardRef(function SelectOutput(_ref29, ref) {
|
|
1255
|
+
var afterHide = _ref29.afterHide,
|
|
1256
|
+
afterShow = _ref29.afterShow,
|
|
1257
|
+
beforeHide = _ref29.beforeHide,
|
|
1258
|
+
beforeShow = _ref29.beforeShow,
|
|
1259
|
+
field = _ref29.field,
|
|
1260
|
+
footer = _ref29.footer,
|
|
1261
|
+
getId = _ref29.getId,
|
|
1262
|
+
getGroup = _ref29.getGroup,
|
|
1263
|
+
_ref29$getLabel = _ref29.getLabel,
|
|
1264
|
+
getLabel = _ref29$getLabel === void 0 ? defaultGetLabel : _ref29$getLabel,
|
|
1265
|
+
groupGetId = _ref29.groupGetId,
|
|
1266
|
+
groupGetLabel = _ref29.groupGetLabel,
|
|
1267
|
+
groupHeaderRenderer = _ref29.groupHeaderRenderer,
|
|
1268
|
+
i18nScope = _ref29.i18nScope,
|
|
1269
|
+
isSuggestedOption = _ref29.isSuggestedOption,
|
|
1270
|
+
options = _ref29.options,
|
|
1271
|
+
optgroups = _ref29.optgroups,
|
|
1272
|
+
optionRenderer = _ref29.optionRenderer,
|
|
1273
|
+
searchComparator = _ref29.searchComparator,
|
|
1274
|
+
onBlur = _ref29.onBlur,
|
|
1275
|
+
onClear = _ref29.onClear,
|
|
1276
|
+
onSearch = _ref29.onSearch,
|
|
1277
|
+
onSelect = _ref29.onSelect,
|
|
1278
|
+
props = _objectWithoutProperties(_ref29, _excluded27);
|
|
1279
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
1280
|
+
ref: ref
|
|
1281
|
+
}, props), getLabel(field.input.value));
|
|
1282
|
+
});
|
|
1283
|
+
var FieldSelect = makeField(SelectInput, SelectOutput);
|
|
1284
|
+
|
|
1285
|
+
// PILL SELECT
|
|
1286
|
+
|
|
1287
|
+
export var PillSelectInput = /*#__PURE__*/React.forwardRef(function PillSelectInput(_ref30, ref) {
|
|
1288
|
+
var field = _ref30.field,
|
|
1289
|
+
_onBlur = _ref30.onBlur,
|
|
1290
|
+
_onClear = _ref30.onClear,
|
|
1291
|
+
_onSelect = _ref30.onSelect,
|
|
1292
|
+
_ref30$getId = _ref30.getId,
|
|
1293
|
+
getId = _ref30$getId === void 0 ? defaultGetId : _ref30$getId,
|
|
1294
|
+
_ref30$getLabel = _ref30.getLabel,
|
|
1295
|
+
getLabel = _ref30$getLabel === void 0 ? defaultGetLabel : _ref30$getLabel,
|
|
1296
|
+
props = _objectWithoutProperties(_ref30, _excluded28);
|
|
1297
|
+
var onBlur = function onBlur(e) {
|
|
1298
|
+
field.helpers.setTouched(true);
|
|
1299
|
+
_onBlur && _onBlur(e);
|
|
1300
|
+
};
|
|
1301
|
+
var onClear = function onClear(e) {
|
|
1302
|
+
field.helpers.setValue(null);
|
|
1303
|
+
_onClear && _onClear(e);
|
|
1304
|
+
};
|
|
1305
|
+
var onSelect = function onSelect(selection) {
|
|
1306
|
+
field.helpers.setValue(selection.item);
|
|
1307
|
+
_onSelect && _onSelect(selection);
|
|
1308
|
+
};
|
|
1309
|
+
return /*#__PURE__*/React.createElement(PillSelect, _extends({
|
|
1310
|
+
block: true,
|
|
1311
|
+
disabled: field.meta.disabled,
|
|
1312
|
+
error: field.meta.error,
|
|
1313
|
+
getId: getId,
|
|
1314
|
+
getLabel: getLabel,
|
|
1315
|
+
onBlur: onBlur,
|
|
1316
|
+
onClear: _onClear || _onClear === undefined ? onClear : undefined,
|
|
1317
|
+
onSelect: onSelect,
|
|
1318
|
+
ref: ref,
|
|
1319
|
+
value: field.input.value
|
|
1320
|
+
}, props));
|
|
1321
|
+
});
|
|
1322
|
+
export var PillSelectOutput = /*#__PURE__*/React.forwardRef(function PillSelectOutput(_ref31, ref) {
|
|
1255
1323
|
var afterHide = _ref31.afterHide,
|
|
1256
1324
|
afterShow = _ref31.afterShow,
|
|
1257
1325
|
beforeHide = _ref31.beforeHide,
|
|
1258
1326
|
beforeShow = _ref31.beforeShow,
|
|
1327
|
+
color = _ref31.color,
|
|
1259
1328
|
field = _ref31.field,
|
|
1260
1329
|
footer = _ref31.footer,
|
|
1261
|
-
|
|
1330
|
+
_ref31$getColor = _ref31.getColor,
|
|
1331
|
+
getColor = _ref31$getColor === void 0 ? defaultGetColor : _ref31$getColor,
|
|
1262
1332
|
getGroup = _ref31.getGroup,
|
|
1263
1333
|
_ref31$getLabel = _ref31.getLabel,
|
|
1264
1334
|
getLabel = _ref31$getLabel === void 0 ? defaultGetLabel : _ref31$getLabel,
|
|
1335
|
+
getSuggested = _ref31.getSuggested,
|
|
1265
1336
|
groupGetId = _ref31.groupGetId,
|
|
1266
1337
|
groupGetLabel = _ref31.groupGetLabel,
|
|
1267
|
-
groupHeaderRenderer = _ref31.groupHeaderRenderer,
|
|
1268
1338
|
i18nScope = _ref31.i18nScope,
|
|
1269
|
-
isSuggestedOption = _ref31.isSuggestedOption,
|
|
1270
|
-
options = _ref31.options,
|
|
1271
|
-
optgroups = _ref31.optgroups,
|
|
1272
|
-
optionRenderer = _ref31.optionRenderer,
|
|
1273
|
-
searchComparator = _ref31.searchComparator,
|
|
1274
|
-
onBlur = _ref31.onBlur,
|
|
1275
1339
|
onClear = _ref31.onClear,
|
|
1276
1340
|
onSearch = _ref31.onSearch,
|
|
1277
1341
|
onSelect = _ref31.onSelect,
|
|
1342
|
+
options = _ref31.options,
|
|
1343
|
+
optgroups = _ref31.optgroups,
|
|
1278
1344
|
props = _objectWithoutProperties(_ref31, _excluded29);
|
|
1279
|
-
return /*#__PURE__*/React.createElement(
|
|
1280
|
-
|
|
1345
|
+
return /*#__PURE__*/React.createElement(Pill, _extends({
|
|
1346
|
+
color: getColor(field.input.value)
|
|
1281
1347
|
}, props), getLabel(field.input.value));
|
|
1282
1348
|
});
|
|
1283
|
-
var
|
|
1349
|
+
var FieldPillSelect = makeField(PillSelectInput, PillSelectOutput);
|
|
1284
1350
|
|
|
1285
|
-
//
|
|
1351
|
+
// MULTISELECT
|
|
1286
1352
|
|
|
1287
|
-
export var
|
|
1353
|
+
export var MultiSelectInput = /*#__PURE__*/React.forwardRef(function MultiSelectInput(_ref32, ref) {
|
|
1288
1354
|
var field = _ref32.field,
|
|
1289
1355
|
_onBlur = _ref32.onBlur,
|
|
1290
|
-
|
|
1291
|
-
_onSelect = _ref32.onSelect,
|
|
1356
|
+
_onChange = _ref32.onChange,
|
|
1292
1357
|
_ref32$getId = _ref32.getId,
|
|
1293
1358
|
getId = _ref32$getId === void 0 ? defaultGetId : _ref32$getId,
|
|
1294
1359
|
_ref32$getLabel = _ref32.getLabel,
|
|
@@ -1298,59 +1363,55 @@ export var PillSelectInput = /*#__PURE__*/React.forwardRef(function PillSelectIn
|
|
|
1298
1363
|
field.helpers.setTouched(true);
|
|
1299
1364
|
_onBlur && _onBlur(e);
|
|
1300
1365
|
};
|
|
1301
|
-
var
|
|
1302
|
-
field.helpers.setValue(
|
|
1303
|
-
|
|
1304
|
-
};
|
|
1305
|
-
var onSelect = function onSelect(selection) {
|
|
1306
|
-
field.helpers.setValue(selection.item);
|
|
1307
|
-
_onSelect && _onSelect(selection);
|
|
1366
|
+
var onChange = function onChange(value, e) {
|
|
1367
|
+
field.helpers.setValue(value);
|
|
1368
|
+
_onChange && _onChange(value, e);
|
|
1308
1369
|
};
|
|
1309
|
-
return /*#__PURE__*/React.createElement(
|
|
1370
|
+
return /*#__PURE__*/React.createElement(MultiSelect, _extends({
|
|
1310
1371
|
block: true,
|
|
1311
1372
|
disabled: field.meta.disabled,
|
|
1312
1373
|
error: field.meta.error,
|
|
1313
1374
|
getId: getId,
|
|
1314
1375
|
getLabel: getLabel,
|
|
1315
1376
|
onBlur: onBlur,
|
|
1316
|
-
|
|
1317
|
-
onSelect: onSelect,
|
|
1377
|
+
onChange: onChange,
|
|
1318
1378
|
ref: ref,
|
|
1319
1379
|
value: field.input.value
|
|
1320
1380
|
}, props));
|
|
1321
1381
|
});
|
|
1322
|
-
export var
|
|
1382
|
+
export var MultiSelectOutput = /*#__PURE__*/React.forwardRef(function MultiSelectOutput(_ref33, ref) {
|
|
1323
1383
|
var afterHide = _ref33.afterHide,
|
|
1324
1384
|
afterShow = _ref33.afterShow,
|
|
1325
1385
|
beforeHide = _ref33.beforeHide,
|
|
1326
1386
|
beforeShow = _ref33.beforeShow,
|
|
1327
|
-
|
|
1387
|
+
emptyMessage = _ref33.emptyMessage,
|
|
1328
1388
|
field = _ref33.field,
|
|
1329
|
-
footer = _ref33.footer,
|
|
1330
|
-
_ref33$getColor = _ref33.getColor,
|
|
1331
|
-
getColor = _ref33$getColor === void 0 ? defaultGetColor : _ref33$getColor,
|
|
1332
1389
|
getGroup = _ref33.getGroup,
|
|
1390
|
+
getId = _ref33.getId,
|
|
1333
1391
|
_ref33$getLabel = _ref33.getLabel,
|
|
1334
1392
|
getLabel = _ref33$getLabel === void 0 ? defaultGetLabel : _ref33$getLabel,
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
i18nScope = _ref33.i18nScope,
|
|
1339
|
-
onClear = _ref33.onClear,
|
|
1393
|
+
groupHeaderRenderer = _ref33.groupHeaderRenderer,
|
|
1394
|
+
isOptionDisabled = _ref33.isOptionDisabled,
|
|
1395
|
+
onChange = _ref33.onChange,
|
|
1340
1396
|
onSearch = _ref33.onSearch,
|
|
1341
|
-
|
|
1397
|
+
onScrollBottom = _ref33.onScrollBottom,
|
|
1342
1398
|
options = _ref33.options,
|
|
1343
1399
|
optgroups = _ref33.optgroups,
|
|
1400
|
+
optionRenderer = _ref33.optionRenderer,
|
|
1401
|
+
placement = _ref33.placement,
|
|
1402
|
+
placeholder = _ref33.placeholder,
|
|
1403
|
+
tokenRenderer = _ref33.tokenRenderer,
|
|
1404
|
+
qa = _ref33.qa,
|
|
1344
1405
|
props = _objectWithoutProperties(_ref33, _excluded31);
|
|
1345
|
-
return /*#__PURE__*/React.createElement(
|
|
1346
|
-
|
|
1347
|
-
}, props),
|
|
1406
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
1407
|
+
ref: ref
|
|
1408
|
+
}, props), field.input.value && field.input.value.map(getLabel).join(', '));
|
|
1348
1409
|
});
|
|
1349
|
-
var
|
|
1410
|
+
var FieldMultiSelect = makeField(MultiSelectInput, MultiSelectOutput);
|
|
1350
1411
|
|
|
1351
|
-
//
|
|
1412
|
+
// GROUP SELECT
|
|
1352
1413
|
|
|
1353
|
-
export var
|
|
1414
|
+
export var GroupSelectInput = /*#__PURE__*/React.forwardRef(function GroupSelectInput(_ref34, ref) {
|
|
1354
1415
|
var field = _ref34.field,
|
|
1355
1416
|
_onBlur = _ref34.onBlur,
|
|
1356
1417
|
_onChange = _ref34.onChange,
|
|
@@ -1367,7 +1428,7 @@ export var MultiSelectInput = /*#__PURE__*/React.forwardRef(function MultiSelect
|
|
|
1367
1428
|
field.helpers.setValue(value);
|
|
1368
1429
|
_onChange && _onChange(value, e);
|
|
1369
1430
|
};
|
|
1370
|
-
return /*#__PURE__*/React.createElement(
|
|
1431
|
+
return /*#__PURE__*/React.createElement(GroupSelect, _extends({
|
|
1371
1432
|
block: true,
|
|
1372
1433
|
disabled: field.meta.disabled,
|
|
1373
1434
|
error: field.meta.error,
|
|
@@ -1379,7 +1440,7 @@ export var MultiSelectInput = /*#__PURE__*/React.forwardRef(function MultiSelect
|
|
|
1379
1440
|
value: field.input.value
|
|
1380
1441
|
}, props));
|
|
1381
1442
|
});
|
|
1382
|
-
export var
|
|
1443
|
+
export var GroupSelectOutput = /*#__PURE__*/React.forwardRef(function GroupSelectOutput(_ref35, ref) {
|
|
1383
1444
|
var afterHide = _ref35.afterHide,
|
|
1384
1445
|
afterShow = _ref35.afterShow,
|
|
1385
1446
|
beforeHide = _ref35.beforeHide,
|
|
@@ -1390,16 +1451,19 @@ export var MultiSelectOutput = /*#__PURE__*/React.forwardRef(function MultiSelec
|
|
|
1390
1451
|
getId = _ref35.getId,
|
|
1391
1452
|
_ref35$getLabel = _ref35.getLabel,
|
|
1392
1453
|
getLabel = _ref35$getLabel === void 0 ? defaultGetLabel : _ref35$getLabel,
|
|
1393
|
-
|
|
1454
|
+
getOptGroup = _ref35.getOptGroup,
|
|
1455
|
+
groupRenderer = _ref35.groupRenderer,
|
|
1456
|
+
groups = _ref35.groups,
|
|
1394
1457
|
isOptionDisabled = _ref35.isOptionDisabled,
|
|
1458
|
+
placeholder = _ref35.placeholder,
|
|
1459
|
+
placement = _ref35.placement,
|
|
1395
1460
|
onChange = _ref35.onChange,
|
|
1396
|
-
onSearch = _ref35.onSearch,
|
|
1397
1461
|
onScrollBottom = _ref35.onScrollBottom,
|
|
1398
|
-
|
|
1462
|
+
onSearch = _ref35.onSearch,
|
|
1399
1463
|
optgroups = _ref35.optgroups,
|
|
1464
|
+
options = _ref35.options,
|
|
1400
1465
|
optionRenderer = _ref35.optionRenderer,
|
|
1401
|
-
|
|
1402
|
-
placeholder = _ref35.placeholder,
|
|
1466
|
+
optGroupRenderer = _ref35.optGroupRenderer,
|
|
1403
1467
|
tokenRenderer = _ref35.tokenRenderer,
|
|
1404
1468
|
qa = _ref35.qa,
|
|
1405
1469
|
props = _objectWithoutProperties(_ref35, _excluded33);
|
|
@@ -1407,11 +1471,11 @@ export var MultiSelectOutput = /*#__PURE__*/React.forwardRef(function MultiSelec
|
|
|
1407
1471
|
ref: ref
|
|
1408
1472
|
}, props), field.input.value && field.input.value.map(getLabel).join(', '));
|
|
1409
1473
|
});
|
|
1410
|
-
var
|
|
1474
|
+
var FieldGroupSelect = makeField(GroupSelectInput, GroupSelectOutput);
|
|
1411
1475
|
|
|
1412
|
-
//
|
|
1476
|
+
// TIERED SELECT
|
|
1413
1477
|
|
|
1414
|
-
export var
|
|
1478
|
+
export var TieredSelectInput = /*#__PURE__*/React.forwardRef(function TieredSelectInput(_ref36, ref) {
|
|
1415
1479
|
var field = _ref36.field,
|
|
1416
1480
|
_onBlur = _ref36.onBlur,
|
|
1417
1481
|
_onChange = _ref36.onChange,
|
|
@@ -1424,11 +1488,11 @@ export var GroupSelectInput = /*#__PURE__*/React.forwardRef(function GroupSelect
|
|
|
1424
1488
|
field.helpers.setTouched(true);
|
|
1425
1489
|
_onBlur && _onBlur(e);
|
|
1426
1490
|
};
|
|
1427
|
-
var onChange = function onChange(
|
|
1428
|
-
field.helpers.setValue(value);
|
|
1429
|
-
_onChange && _onChange(
|
|
1491
|
+
var onChange = function onChange(selection) {
|
|
1492
|
+
field.helpers.setValue(selection.value);
|
|
1493
|
+
_onChange && _onChange(selection);
|
|
1430
1494
|
};
|
|
1431
|
-
return /*#__PURE__*/React.createElement(
|
|
1495
|
+
return /*#__PURE__*/React.createElement(TieredSelect, _extends({
|
|
1432
1496
|
block: true,
|
|
1433
1497
|
disabled: field.meta.disabled,
|
|
1434
1498
|
error: field.meta.error,
|
|
@@ -1440,97 +1504,33 @@ export var GroupSelectInput = /*#__PURE__*/React.forwardRef(function GroupSelect
|
|
|
1440
1504
|
value: field.input.value
|
|
1441
1505
|
}, props));
|
|
1442
1506
|
});
|
|
1443
|
-
export var
|
|
1507
|
+
export var TieredSelectOutput = /*#__PURE__*/React.forwardRef(function TieredSelectOutput(_ref37, ref) {
|
|
1444
1508
|
var afterHide = _ref37.afterHide,
|
|
1445
1509
|
afterShow = _ref37.afterShow,
|
|
1446
1510
|
beforeHide = _ref37.beforeHide,
|
|
1447
1511
|
beforeShow = _ref37.beforeShow,
|
|
1448
|
-
emptyMessage = _ref37.emptyMessage,
|
|
1449
1512
|
field = _ref37.field,
|
|
1450
|
-
getGroup = _ref37.getGroup,
|
|
1451
1513
|
getId = _ref37.getId,
|
|
1452
1514
|
_ref37$getLabel = _ref37.getLabel,
|
|
1453
1515
|
getLabel = _ref37$getLabel === void 0 ? defaultGetLabel : _ref37$getLabel,
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1516
|
+
getGroupId = _ref37.getGroupId,
|
|
1517
|
+
getNextGroupId = _ref37.getNextGroupId,
|
|
1518
|
+
getValueString = _ref37.getValueString,
|
|
1519
|
+
i18nScope = _ref37.i18nScope,
|
|
1520
|
+
isLeaf = _ref37.isLeaf,
|
|
1521
|
+
isTierDisabled = _ref37.isTierDisabled,
|
|
1522
|
+
loadingMore = _ref37.loadingMore,
|
|
1460
1523
|
onChange = _ref37.onChange,
|
|
1524
|
+
onClear = _ref37.onClear,
|
|
1525
|
+
onNavigate = _ref37.onNavigate,
|
|
1461
1526
|
onScrollBottom = _ref37.onScrollBottom,
|
|
1462
1527
|
onSearch = _ref37.onSearch,
|
|
1463
|
-
|
|
1528
|
+
onQuickCreate = _ref37.onQuickCreate,
|
|
1464
1529
|
options = _ref37.options,
|
|
1465
|
-
|
|
1466
|
-
optGroupRenderer = _ref37.optGroupRenderer,
|
|
1467
|
-
tokenRenderer = _ref37.tokenRenderer,
|
|
1468
|
-
qa = _ref37.qa,
|
|
1530
|
+
selectableTiers = _ref37.selectableTiers,
|
|
1469
1531
|
props = _objectWithoutProperties(_ref37, _excluded35);
|
|
1470
1532
|
return /*#__PURE__*/React.createElement("span", _extends({
|
|
1471
1533
|
ref: ref
|
|
1472
|
-
}, props), field.input.value && field.input.value.map(getLabel).join(', '));
|
|
1473
|
-
});
|
|
1474
|
-
var FieldGroupSelect = makeField(GroupSelectInput, GroupSelectOutput);
|
|
1475
|
-
|
|
1476
|
-
// TIERED SELECT
|
|
1477
|
-
|
|
1478
|
-
export var TieredSelectInput = /*#__PURE__*/React.forwardRef(function TieredSelectInput(_ref38, ref) {
|
|
1479
|
-
var field = _ref38.field,
|
|
1480
|
-
_onBlur = _ref38.onBlur,
|
|
1481
|
-
_onChange = _ref38.onChange,
|
|
1482
|
-
_ref38$getId = _ref38.getId,
|
|
1483
|
-
getId = _ref38$getId === void 0 ? defaultGetId : _ref38$getId,
|
|
1484
|
-
_ref38$getLabel = _ref38.getLabel,
|
|
1485
|
-
getLabel = _ref38$getLabel === void 0 ? defaultGetLabel : _ref38$getLabel,
|
|
1486
|
-
props = _objectWithoutProperties(_ref38, _excluded36);
|
|
1487
|
-
var onBlur = function onBlur(e) {
|
|
1488
|
-
field.helpers.setTouched(true);
|
|
1489
|
-
_onBlur && _onBlur(e);
|
|
1490
|
-
};
|
|
1491
|
-
var onChange = function onChange(selection) {
|
|
1492
|
-
field.helpers.setValue(selection.value);
|
|
1493
|
-
_onChange && _onChange(selection);
|
|
1494
|
-
};
|
|
1495
|
-
return /*#__PURE__*/React.createElement(TieredSelect, _extends({
|
|
1496
|
-
block: true,
|
|
1497
|
-
disabled: field.meta.disabled,
|
|
1498
|
-
error: field.meta.error,
|
|
1499
|
-
getId: getId,
|
|
1500
|
-
getLabel: getLabel,
|
|
1501
|
-
onBlur: onBlur,
|
|
1502
|
-
onChange: onChange,
|
|
1503
|
-
ref: ref,
|
|
1504
|
-
value: field.input.value
|
|
1505
|
-
}, props));
|
|
1506
|
-
});
|
|
1507
|
-
export var TieredSelectOutput = /*#__PURE__*/React.forwardRef(function TieredSelectOutput(_ref39, ref) {
|
|
1508
|
-
var afterHide = _ref39.afterHide,
|
|
1509
|
-
afterShow = _ref39.afterShow,
|
|
1510
|
-
beforeHide = _ref39.beforeHide,
|
|
1511
|
-
beforeShow = _ref39.beforeShow,
|
|
1512
|
-
field = _ref39.field,
|
|
1513
|
-
getId = _ref39.getId,
|
|
1514
|
-
_ref39$getLabel = _ref39.getLabel,
|
|
1515
|
-
getLabel = _ref39$getLabel === void 0 ? defaultGetLabel : _ref39$getLabel,
|
|
1516
|
-
getGroupId = _ref39.getGroupId,
|
|
1517
|
-
getNextGroupId = _ref39.getNextGroupId,
|
|
1518
|
-
getValueString = _ref39.getValueString,
|
|
1519
|
-
i18nScope = _ref39.i18nScope,
|
|
1520
|
-
isLeaf = _ref39.isLeaf,
|
|
1521
|
-
isTierDisabled = _ref39.isTierDisabled,
|
|
1522
|
-
loadingMore = _ref39.loadingMore,
|
|
1523
|
-
onChange = _ref39.onChange,
|
|
1524
|
-
onClear = _ref39.onClear,
|
|
1525
|
-
onNavigate = _ref39.onNavigate,
|
|
1526
|
-
onScrollBottom = _ref39.onScrollBottom,
|
|
1527
|
-
onSearch = _ref39.onSearch,
|
|
1528
|
-
onQuickCreate = _ref39.onQuickCreate,
|
|
1529
|
-
options = _ref39.options,
|
|
1530
|
-
selectableTiers = _ref39.selectableTiers,
|
|
1531
|
-
props = _objectWithoutProperties(_ref39, _excluded37);
|
|
1532
|
-
return /*#__PURE__*/React.createElement("span", _extends({
|
|
1533
|
-
ref: ref
|
|
1534
1534
|
}, props), field.input.value && field.input.value.map(function (tier) {
|
|
1535
1535
|
return getLabel(tier);
|
|
1536
1536
|
}).join(' > '));
|