@salesforce/design-system-react 11.0.0-alpha.8 → 11.0.0-alpha.9
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/cjs/components/accordion/index.cjs +1 -1
- package/dist/cjs/components/accordion/index.cjs.map +1 -1
- package/dist/cjs/components/alert/container.cjs +1 -1
- package/dist/cjs/components/alert/container.cjs.map +1 -1
- package/dist/cjs/components/avatar/index.cjs +1 -1
- package/dist/cjs/components/avatar/index.cjs.map +1 -1
- package/dist/cjs/components/button-stateful/check-props.cjs +2 -0
- package/dist/cjs/components/button-stateful/check-props.cjs.map +1 -0
- package/dist/cjs/components/button-stateful/component.cjs +2 -0
- package/dist/cjs/components/button-stateful/component.cjs.map +1 -0
- package/dist/cjs/components/button-stateful/index.cjs +1 -1
- package/dist/cjs/components/button-stateful/index.cjs.map +1 -1
- package/dist/cjs/components/carousel/index.cjs +1 -1
- package/dist/cjs/components/carousel/index.cjs.map +1 -1
- package/dist/cjs/components/checkbox/check-props.cjs +1 -1
- package/dist/cjs/components/checkbox/check-props.cjs.map +1 -1
- package/dist/cjs/components/checkbox/index.cjs +1 -1
- package/dist/cjs/components/checkbox/index.cjs.map +1 -1
- package/dist/cjs/components/color-picker/check-props.cjs +1 -1
- package/dist/cjs/components/color-picker/check-props.cjs.map +1 -1
- package/dist/cjs/components/color-picker/color-picker.cjs +1 -1
- package/dist/cjs/components/color-picker/color-picker.cjs.map +1 -1
- package/dist/cjs/components/color-picker/private/color-picker-tabs.cjs +2 -0
- package/dist/cjs/components/color-picker/private/color-picker-tabs.cjs.map +1 -0
- package/dist/cjs/components/color-picker/private/hsv-color.cjs +1 -1
- package/dist/cjs/components/color-picker/private/hsv-color.cjs.map +1 -1
- package/dist/cjs/components/combobox/check-props.cjs +1 -1
- package/dist/cjs/components/combobox/check-props.cjs.map +1 -1
- package/dist/cjs/components/combobox/combobox.cjs +1 -1
- package/dist/cjs/components/combobox/combobox.cjs.map +1 -1
- package/dist/cjs/components/combobox/index.cjs +1 -1
- package/dist/cjs/components/date-picker/check-props.cjs +1 -1
- package/dist/cjs/components/date-picker/check-props.cjs.map +1 -1
- package/dist/cjs/components/date-picker/date-picker.cjs +1 -1
- package/dist/cjs/components/date-picker/date-picker.cjs.map +1 -1
- package/dist/cjs/components/date-picker/index.cjs.map +1 -1
- package/dist/cjs/components/date-picker/private/calendar-wrapper.cjs.map +1 -1
- package/dist/cjs/components/expandable-section/index.cjs +1 -1
- package/dist/cjs/components/expandable-section/index.cjs.map +1 -1
- package/dist/cjs/components/icon/input-icon/index.cjs +1 -1
- package/dist/cjs/components/icon/input-icon/index.cjs.map +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/input/check-props.cjs +1 -1
- package/dist/cjs/components/input/check-props.cjs.map +1 -1
- package/dist/cjs/components/input/index.cjs +1 -1
- package/dist/cjs/components/input/index.cjs.map +1 -1
- package/dist/cjs/components/input/private/inner-input.cjs +1 -1
- package/dist/cjs/components/input/private/inner-input.cjs.map +1 -1
- package/dist/cjs/components/menu-dropdown/button-trigger.cjs +1 -1
- package/dist/cjs/components/menu-dropdown/button-trigger.cjs.map +1 -1
- package/dist/cjs/components/menu-dropdown/index.cjs.map +1 -1
- package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs +1 -1
- package/dist/cjs/components/menu-dropdown/menu-dropdown.cjs.map +1 -1
- package/dist/cjs/components/modal/index.cjs +1 -1
- package/dist/cjs/components/modal/index.cjs.map +1 -1
- package/dist/cjs/components/popover/index.cjs.map +1 -1
- package/dist/cjs/components/popover/popover.cjs +1 -1
- package/dist/cjs/components/popover/popover.cjs.map +1 -1
- package/dist/cjs/components/radio/check-props.cjs +1 -1
- package/dist/cjs/components/radio/check-props.cjs.map +1 -1
- package/dist/cjs/components/radio/index.cjs +1 -1
- package/dist/cjs/components/radio/index.cjs.map +1 -1
- package/dist/cjs/components/radio-button-group/index.cjs.map +1 -1
- package/dist/cjs/components/radio-button-group/radio.cjs.map +1 -1
- package/dist/cjs/components/radio-group/check-props.cjs +2 -0
- package/dist/cjs/components/radio-group/check-props.cjs.map +1 -0
- package/dist/cjs/components/radio-group/component.cjs +2 -0
- package/dist/cjs/components/radio-group/component.cjs.map +1 -0
- package/dist/cjs/components/radio-group/index.cjs +1 -1
- package/dist/cjs/components/radio-group/index.cjs.map +1 -1
- package/dist/cjs/components/setup-assistant/step.cjs +1 -1
- package/dist/cjs/components/setup-assistant/step.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/check-props.cjs +1 -1
- package/dist/cjs/components/simple-data-table/check-props.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/column.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/index.cjs +1 -1
- package/dist/cjs/components/simple-data-table/index.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/private/head.cjs +1 -1
- package/dist/cjs/components/simple-data-table/private/head.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/private/header-cell.cjs +1 -1
- package/dist/cjs/components/simple-data-table/private/header-cell.cjs.map +1 -1
- package/dist/cjs/components/simple-data-table/private/row.cjs +1 -1
- package/dist/cjs/components/simple-data-table/private/row.cjs.map +1 -1
- package/dist/cjs/components/slider/check-props.cjs +1 -1
- package/dist/cjs/components/slider/check-props.cjs.map +1 -1
- package/dist/cjs/components/slider/index.cjs +1 -1
- package/dist/cjs/components/slider/index.cjs.map +1 -1
- package/dist/cjs/components/split-view/index.cjs +1 -1
- package/dist/cjs/components/split-view/index.cjs.map +1 -1
- package/dist/cjs/components/split-view/listbox-check-props.cjs +1 -1
- package/dist/cjs/components/split-view/listbox-check-props.cjs.map +1 -1
- package/dist/cjs/components/split-view/listbox.cjs +1 -1
- package/dist/cjs/components/split-view/listbox.cjs.map +1 -1
- package/dist/cjs/components/tabs/check-props.cjs +2 -0
- package/dist/cjs/components/tabs/check-props.cjs.map +1 -0
- package/dist/cjs/components/tabs/component.cjs +2 -0
- package/dist/cjs/components/tabs/component.cjs.map +1 -0
- package/dist/cjs/components/tabs/index.cjs +1 -1
- package/dist/cjs/components/tabs/index.cjs.map +1 -1
- package/dist/cjs/components/tabs/panel.cjs.map +1 -1
- package/dist/cjs/components/textarea/check-props.cjs +1 -1
- package/dist/cjs/components/textarea/check-props.cjs.map +1 -1
- package/dist/cjs/components/textarea/index.cjs +1 -1
- package/dist/cjs/components/textarea/index.cjs.map +1 -1
- package/dist/cjs/components/toast/container.cjs +1 -1
- package/dist/cjs/components/toast/container.cjs.map +1 -1
- package/dist/cjs/components/tooltip/index.cjs +2 -2
- package/dist/cjs/components/tooltip/index.cjs.map +1 -1
- package/dist/cjs/components/tree/check-props.cjs +1 -1
- package/dist/cjs/components/tree/check-props.cjs.map +1 -1
- package/dist/cjs/components/tree/private/branch.cjs +1 -1
- package/dist/cjs/components/tree/private/branch.cjs.map +1 -1
- package/dist/cjs/components/tree/private/item.cjs +1 -1
- package/dist/cjs/components/tree/private/item.cjs.map +1 -1
- package/dist/cjs/components/tree/private/render-branch.cjs +1 -1
- package/dist/cjs/components/tree/private/render-branch.cjs.map +1 -1
- package/dist/cjs/components/tree/tree.cjs +1 -1
- package/dist/cjs/components/tree/tree.cjs.map +1 -1
- package/dist/cjs/components/vertical-navigation/check-props.cjs +2 -0
- package/dist/cjs/components/vertical-navigation/check-props.cjs.map +1 -0
- package/dist/cjs/components/vertical-navigation/component.cjs +2 -0
- package/dist/cjs/components/vertical-navigation/component.cjs.map +1 -0
- package/dist/cjs/components/vertical-navigation/index.cjs +1 -1
- package/dist/cjs/components/vertical-navigation/index.cjs.map +1 -1
- package/dist/cjs/components/welcome-mat/info-badge.cjs +1 -1
- package/dist/cjs/components/welcome-mat/info-badge.cjs.map +1 -1
- package/dist/cjs/utilities/hooks/index.cjs +1 -1
- package/dist/cjs/utilities/hooks/use-controllable-state.cjs +2 -0
- package/dist/cjs/utilities/hooks/use-controllable-state.cjs.map +1 -0
- package/dist/cjs/utilities/warning/required-property.cjs +2 -0
- package/dist/cjs/utilities/warning/required-property.cjs.map +1 -0
- package/dist/es/components/accordion/index.js +10 -8
- package/dist/es/components/accordion/index.js.map +1 -1
- package/dist/es/components/alert/container.js +1 -1
- package/dist/es/components/alert/container.js.map +1 -1
- package/dist/es/components/avatar/index.js +2 -1
- package/dist/es/components/avatar/index.js.map +1 -1
- package/dist/es/components/button-stateful/check-props.js +14 -0
- package/dist/es/components/button-stateful/check-props.js.map +1 -0
- package/dist/es/components/button-stateful/component.js +20 -0
- package/dist/es/components/button-stateful/component.js.map +1 -0
- package/dist/es/components/button-stateful/index.js +102 -94
- package/dist/es/components/button-stateful/index.js.map +1 -1
- package/dist/es/components/carousel/index.js +112 -130
- package/dist/es/components/carousel/index.js.map +1 -1
- package/dist/es/components/checkbox/check-props.js +14 -8
- package/dist/es/components/checkbox/check-props.js.map +1 -1
- package/dist/es/components/checkbox/index.js +40 -33
- package/dist/es/components/checkbox/index.js.map +1 -1
- package/dist/es/components/color-picker/check-props.js +16 -11
- package/dist/es/components/color-picker/check-props.js.map +1 -1
- package/dist/es/components/color-picker/color-picker.js +185 -169
- package/dist/es/components/color-picker/color-picker.js.map +1 -1
- package/dist/es/components/color-picker/private/color-picker-tabs.js +17 -0
- package/dist/es/components/color-picker/private/color-picker-tabs.js.map +1 -0
- package/dist/es/components/color-picker/private/hsv-color.js +1 -0
- package/dist/es/components/color-picker/private/hsv-color.js.map +1 -1
- package/dist/es/components/combobox/check-props.js +15 -14
- package/dist/es/components/combobox/check-props.js.map +1 -1
- package/dist/es/components/combobox/combobox.js +399 -399
- package/dist/es/components/combobox/combobox.js.map +1 -1
- package/dist/es/components/combobox/index.js +4 -4
- package/dist/es/components/date-picker/check-props.js +15 -9
- package/dist/es/components/date-picker/check-props.js.map +1 -1
- package/dist/es/components/date-picker/date-picker.js +144 -138
- package/dist/es/components/date-picker/date-picker.js.map +1 -1
- package/dist/es/components/date-picker/index.js.map +1 -1
- package/dist/es/components/date-picker/private/calendar-wrapper.js.map +1 -1
- package/dist/es/components/expandable-section/index.js +32 -26
- package/dist/es/components/expandable-section/index.js.map +1 -1
- package/dist/es/components/icon/input-icon/index.js +7 -2
- package/dist/es/components/icon/input-icon/index.js.map +1 -1
- package/dist/es/components/index.js +3 -3
- package/dist/es/components/input/check-props.js +19 -17
- package/dist/es/components/input/check-props.js.map +1 -1
- package/dist/es/components/input/index.js +153 -156
- package/dist/es/components/input/index.js.map +1 -1
- package/dist/es/components/input/private/inner-input.js +18 -18
- package/dist/es/components/input/private/inner-input.js.map +1 -1
- package/dist/es/components/menu-dropdown/button-trigger.js +7 -1
- package/dist/es/components/menu-dropdown/button-trigger.js.map +1 -1
- package/dist/es/components/menu-dropdown/index.js.map +1 -1
- package/dist/es/components/menu-dropdown/menu-dropdown.js +294 -269
- package/dist/es/components/menu-dropdown/menu-dropdown.js.map +1 -1
- package/dist/es/components/modal/index.js +1 -1
- package/dist/es/components/modal/index.js.map +1 -1
- package/dist/es/components/popover/index.js.map +1 -1
- package/dist/es/components/popover/popover.js +209 -205
- package/dist/es/components/popover/popover.js.map +1 -1
- package/dist/es/components/radio/check-props.js +8 -8
- package/dist/es/components/radio/check-props.js.map +1 -1
- package/dist/es/components/radio/index.js +15 -13
- package/dist/es/components/radio/index.js.map +1 -1
- package/dist/es/components/radio-button-group/index.js.map +1 -1
- package/dist/es/components/radio-button-group/radio.js.map +1 -1
- package/dist/es/components/radio-group/check-props.js +14 -0
- package/dist/es/components/radio-group/check-props.js.map +1 -0
- package/dist/es/components/radio-group/component.js +21 -0
- package/dist/es/components/radio-group/component.js.map +1 -0
- package/dist/es/components/radio-group/index.js +62 -38
- package/dist/es/components/radio-group/index.js.map +1 -1
- package/dist/es/components/setup-assistant/step.js +5 -4
- package/dist/es/components/setup-assistant/step.js.map +1 -1
- package/dist/es/components/simple-data-table/check-props.js +7 -6
- package/dist/es/components/simple-data-table/check-props.js.map +1 -1
- package/dist/es/components/simple-data-table/column.js.map +1 -1
- package/dist/es/components/simple-data-table/index.js +67 -49
- package/dist/es/components/simple-data-table/index.js.map +1 -1
- package/dist/es/components/simple-data-table/private/head.js +1 -1
- package/dist/es/components/simple-data-table/private/head.js.map +1 -1
- package/dist/es/components/simple-data-table/private/header-cell.js +50 -52
- package/dist/es/components/simple-data-table/private/header-cell.js.map +1 -1
- package/dist/es/components/simple-data-table/private/row.js +43 -57
- package/dist/es/components/simple-data-table/private/row.js.map +1 -1
- package/dist/es/components/slider/check-props.js +14 -12
- package/dist/es/components/slider/check-props.js.map +1 -1
- package/dist/es/components/slider/index.js +54 -48
- package/dist/es/components/slider/index.js.map +1 -1
- package/dist/es/components/split-view/index.js +23 -22
- package/dist/es/components/split-view/index.js.map +1 -1
- package/dist/es/components/split-view/listbox-check-props.js +10 -2
- package/dist/es/components/split-view/listbox-check-props.js.map +1 -1
- package/dist/es/components/split-view/listbox.js +67 -50
- package/dist/es/components/split-view/listbox.js.map +1 -1
- package/dist/es/components/tabs/check-props.js +15 -0
- package/dist/es/components/tabs/check-props.js.map +1 -0
- package/dist/es/components/tabs/component.js +28 -0
- package/dist/es/components/tabs/component.js.map +1 -0
- package/dist/es/components/tabs/index.js +84 -69
- package/dist/es/components/tabs/index.js.map +1 -1
- package/dist/es/components/tabs/panel.js.map +1 -1
- package/dist/es/components/textarea/check-props.js +1 -1
- package/dist/es/components/textarea/check-props.js.map +1 -1
- package/dist/es/components/textarea/index.js +3 -2
- package/dist/es/components/textarea/index.js.map +1 -1
- package/dist/es/components/toast/container.js +1 -1
- package/dist/es/components/toast/container.js.map +1 -1
- package/dist/es/components/tooltip/index.js +120 -109
- package/dist/es/components/tooltip/index.js.map +1 -1
- package/dist/es/components/tree/check-props.js +14 -9
- package/dist/es/components/tree/check-props.js.map +1 -1
- package/dist/es/components/tree/private/branch.js +38 -35
- package/dist/es/components/tree/private/branch.js.map +1 -1
- package/dist/es/components/tree/private/item.js +6 -8
- package/dist/es/components/tree/private/item.js.map +1 -1
- package/dist/es/components/tree/private/render-branch.js +9 -10
- package/dist/es/components/tree/private/render-branch.js.map +1 -1
- package/dist/es/components/tree/tree.js +126 -97
- package/dist/es/components/tree/tree.js.map +1 -1
- package/dist/es/components/vertical-navigation/check-props.js +13 -0
- package/dist/es/components/vertical-navigation/check-props.js.map +1 -0
- package/dist/es/components/vertical-navigation/component.js +27 -0
- package/dist/es/components/vertical-navigation/component.js.map +1 -0
- package/dist/es/components/vertical-navigation/index.js +27 -26
- package/dist/es/components/vertical-navigation/index.js.map +1 -1
- package/dist/es/components/welcome-mat/info-badge.js +14 -4
- package/dist/es/components/welcome-mat/info-badge.js.map +1 -1
- package/dist/es/utilities/hooks/index.js +2 -1
- package/dist/es/utilities/hooks/use-controllable-state.js +20 -0
- package/dist/es/utilities/hooks/use-controllable-state.js.map +1 -0
- package/dist/es/utilities/warning/required-property.js +15 -0
- package/dist/es/utilities/warning/required-property.js.map +1 -0
- package/dist/types/components/accordion/index.d.ts.map +1 -1
- package/dist/types/components/avatar/index.d.ts.map +1 -1
- package/dist/types/components/button-stateful/check-props.d.ts +3 -0
- package/dist/types/components/button-stateful/check-props.d.ts.map +1 -0
- package/dist/types/components/button-stateful/index.d.ts +34 -6
- package/dist/types/components/button-stateful/index.d.ts.map +1 -1
- package/dist/types/components/carousel/index.d.ts +26 -7
- package/dist/types/components/carousel/index.d.ts.map +1 -1
- package/dist/types/components/checkbox/check-props.d.ts +1 -0
- package/dist/types/components/checkbox/check-props.d.ts.map +1 -1
- package/dist/types/components/checkbox/index.d.ts +38 -9
- package/dist/types/components/checkbox/index.d.ts.map +1 -1
- package/dist/types/components/color-picker/check-props.d.ts.map +1 -1
- package/dist/types/components/color-picker/color-picker.d.ts +50 -11
- package/dist/types/components/color-picker/color-picker.d.ts.map +1 -1
- package/dist/types/components/color-picker/index.d.ts +2 -2
- package/dist/types/components/color-picker/index.d.ts.map +1 -1
- package/dist/types/components/color-picker/private/color-picker-tabs.d.ts +14 -0
- package/dist/types/components/color-picker/private/color-picker-tabs.d.ts.map +1 -0
- package/dist/types/components/color-picker/private/hsv-color.d.ts.map +1 -1
- package/dist/types/components/color-picker/types.d.ts +9 -5
- package/dist/types/components/color-picker/types.d.ts.map +1 -1
- package/dist/types/components/combobox/check-props.d.ts.map +1 -1
- package/dist/types/components/combobox/combobox.d.ts +41 -6
- package/dist/types/components/combobox/combobox.d.ts.map +1 -1
- package/dist/types/components/date-picker/check-props.d.ts.map +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +52 -17
- package/dist/types/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/types/components/date-picker/index.d.ts +1 -1
- package/dist/types/components/date-picker/index.d.ts.map +1 -1
- package/dist/types/components/date-picker/private/calendar-wrapper.d.ts +3 -1
- package/dist/types/components/date-picker/private/calendar-wrapper.d.ts.map +1 -1
- package/dist/types/components/expandable-section/index.d.ts +15 -3
- package/dist/types/components/expandable-section/index.d.ts.map +1 -1
- package/dist/types/components/icon/input-icon/index.d.ts.map +1 -1
- package/dist/types/components/input/check-props.d.ts.map +1 -1
- package/dist/types/components/input/index.d.ts +10 -4
- package/dist/types/components/input/index.d.ts.map +1 -1
- package/dist/types/components/input/private/inner-input.d.ts +2 -4
- package/dist/types/components/input/private/inner-input.d.ts.map +1 -1
- package/dist/types/components/menu-dropdown/button-trigger.d.ts.map +1 -1
- package/dist/types/components/menu-dropdown/index.d.ts +1 -1
- package/dist/types/components/menu-dropdown/index.d.ts.map +1 -1
- package/dist/types/components/menu-dropdown/menu-dropdown.d.ts +78 -15
- package/dist/types/components/menu-dropdown/menu-dropdown.d.ts.map +1 -1
- package/dist/types/components/popover/index.d.ts +1 -1
- package/dist/types/components/popover/index.d.ts.map +1 -1
- package/dist/types/components/popover/popover.d.ts +30 -3
- package/dist/types/components/popover/popover.d.ts.map +1 -1
- package/dist/types/components/radio/check-props.d.ts.map +1 -1
- package/dist/types/components/radio/index.d.ts +42 -9
- package/dist/types/components/radio/index.d.ts.map +1 -1
- package/dist/types/components/radio-button-group/index.d.ts +20 -10
- package/dist/types/components/radio-button-group/index.d.ts.map +1 -1
- package/dist/types/components/radio-button-group/radio.d.ts +7 -2
- package/dist/types/components/radio-button-group/radio.d.ts.map +1 -1
- package/dist/types/components/radio-group/check-props.d.ts +3 -0
- package/dist/types/components/radio-group/check-props.d.ts.map +1 -0
- package/dist/types/components/radio-group/index.d.ts +51 -8
- package/dist/types/components/radio-group/index.d.ts.map +1 -1
- package/dist/types/components/radio-group/radio.d.ts +7 -2
- package/dist/types/components/radio-group/radio.d.ts.map +1 -1
- package/dist/types/components/setup-assistant/step.d.ts +10 -2
- package/dist/types/components/setup-assistant/step.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/check-props.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/column.d.ts +4 -1
- package/dist/types/components/simple-data-table/column.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/index.d.ts +10 -2
- package/dist/types/components/simple-data-table/index.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/private/header-cell.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/private/row.d.ts +4 -2
- package/dist/types/components/simple-data-table/private/row.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/types.d.ts +40 -13
- package/dist/types/components/simple-data-table/types.d.ts.map +1 -1
- package/dist/types/components/slider/check-props.d.ts.map +1 -1
- package/dist/types/components/slider/index.d.ts +23 -10
- package/dist/types/components/slider/index.d.ts.map +1 -1
- package/dist/types/components/split-view/index.d.ts +12 -3
- package/dist/types/components/split-view/index.d.ts.map +1 -1
- package/dist/types/components/split-view/listbox-check-props.d.ts +1 -0
- package/dist/types/components/split-view/listbox-check-props.d.ts.map +1 -1
- package/dist/types/components/split-view/listbox.d.ts +41 -10
- package/dist/types/components/split-view/listbox.d.ts.map +1 -1
- package/dist/types/components/tabs/check-props.d.ts +3 -0
- package/dist/types/components/tabs/check-props.d.ts.map +1 -0
- package/dist/types/components/tabs/index.d.ts +46 -12
- package/dist/types/components/tabs/index.d.ts.map +1 -1
- package/dist/types/components/tabs/panel.d.ts +4 -0
- package/dist/types/components/tabs/panel.d.ts.map +1 -1
- package/dist/types/components/textarea/check-props.d.ts.map +1 -1
- package/dist/types/components/textarea/index.d.ts +14 -6
- package/dist/types/components/textarea/index.d.ts.map +1 -1
- package/dist/types/components/toast/container.d.ts +1 -1
- package/dist/types/components/tooltip/index.d.ts +49 -3
- package/dist/types/components/tooltip/index.d.ts.map +1 -1
- package/dist/types/components/tree/check-props.d.ts +1 -0
- package/dist/types/components/tree/check-props.d.ts.map +1 -1
- package/dist/types/components/tree/private/branch.d.ts +6 -1
- package/dist/types/components/tree/private/branch.d.ts.map +1 -1
- package/dist/types/components/tree/private/item.d.ts +3 -1
- package/dist/types/components/tree/private/item.d.ts.map +1 -1
- package/dist/types/components/tree/private/render-branch.d.ts +3 -1
- package/dist/types/components/tree/private/render-branch.d.ts.map +1 -1
- package/dist/types/components/tree/tree.d.ts +33 -6
- package/dist/types/components/tree/tree.d.ts.map +1 -1
- package/dist/types/components/tree/types.d.ts +23 -4
- package/dist/types/components/tree/types.d.ts.map +1 -1
- package/dist/types/components/vertical-navigation/check-props.d.ts +1 -0
- package/dist/types/components/vertical-navigation/check-props.d.ts.map +1 -1
- package/dist/types/components/vertical-navigation/index.d.ts +9 -4
- package/dist/types/components/vertical-navigation/index.d.ts.map +1 -1
- package/dist/types/components/welcome-mat/info-badge.d.ts.map +1 -1
- package/dist/types/types/components.d.ts +0 -2
- package/dist/types/types/components.d.ts.map +1 -1
- package/dist/types/utilities/hooks/index.d.ts +1 -0
- package/dist/types/utilities/hooks/index.d.ts.map +1 -1
- package/dist/types/utilities/hooks/use-controllable-state.d.ts +23 -0
- package/dist/types/utilities/hooks/use-controllable-state.d.ts.map +1 -0
- package/dist/types/utilities/warning/required-property.d.ts +3 -0
- package/dist/types/utilities/warning/required-property.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { COMBOBOX as e } from "../../utilities/constants.js";
|
|
2
2
|
import { IconSettingsContext as t } from "../icon-settings/index.js";
|
|
3
|
-
import n from "../../utilities/
|
|
4
|
-
import r from "../../utilities/
|
|
5
|
-
import i from "
|
|
3
|
+
import { useControllableState as n } from "../../utilities/hooks/use-controllable-state.js";
|
|
4
|
+
import r from "../../utilities/generate-id.js";
|
|
5
|
+
import i from "../../utilities/key-code.js";
|
|
6
|
+
import a from "../utilities/dialog/index.js";
|
|
6
7
|
import ee from "../button/index.js";
|
|
7
|
-
import
|
|
8
|
+
import te from "../../utilities/key-buffer.js";
|
|
8
9
|
import o from "../input/private/inner-input.js";
|
|
9
|
-
import
|
|
10
|
+
import ne from "../tooltip/private/field-level-help-tooltip.js";
|
|
10
11
|
import s from "../icon/input-icon/index.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { jsx as
|
|
12
|
+
import re from "../popover/index.js";
|
|
13
|
+
import ie from "./private/menu.js";
|
|
14
|
+
import ae from "../forms/private/label.js";
|
|
15
|
+
import oe from "../../utilities/key-callbacks.js";
|
|
16
|
+
import se from "../pill-container/private/selected-listbox.js";
|
|
17
|
+
import ce from "../../utilities/key-letter-menu-item-select.js";
|
|
18
|
+
import le from "../../utilities/menu-item-select-scroll.js";
|
|
19
|
+
import ue from "./check-props.js";
|
|
20
|
+
import de from "./component.js";
|
|
21
|
+
import fe, { useCallback as c, useContext as pe, useEffect as l, useRef as u, useState as d } from "react";
|
|
22
|
+
import f from "classnames";
|
|
23
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
23
24
|
import { dequal as me } from "dequal";
|
|
24
|
-
import he from "lodash.
|
|
25
|
-
import ge from "lodash.
|
|
26
|
-
import _e from "lodash.
|
|
27
|
-
import ve from "lodash.
|
|
28
|
-
import ye from "lodash.reject";
|
|
25
|
+
import he from "lodash.assign";
|
|
26
|
+
import ge from "lodash.findindex";
|
|
27
|
+
import _e from "lodash.find";
|
|
28
|
+
import ve from "lodash.reject";
|
|
29
29
|
//#region components/combobox/combobox.tsx
|
|
30
|
-
var
|
|
30
|
+
var h, ye = typeof document < "u", be = Symbol("actionItem"), xe = (e) => be in e, Se = (e, t) => ({
|
|
31
31
|
id: e.id || "",
|
|
32
32
|
icon: e.icon,
|
|
33
33
|
label: e.label,
|
|
34
34
|
disabled: e.disabled,
|
|
35
35
|
type: t,
|
|
36
|
-
[
|
|
37
|
-
}),
|
|
36
|
+
[be]: e
|
|
37
|
+
}), Ce = {
|
|
38
38
|
label: "",
|
|
39
39
|
loadingMenuItems: "Loading",
|
|
40
40
|
optionSelectedInMenu: "Current Selection:",
|
|
@@ -42,7 +42,7 @@ var m, be = typeof document < "u", xe = Symbol("actionItem"), Se = (e) => xe in
|
|
|
42
42
|
removeSingleSelectedOption: "Remove selected option",
|
|
43
43
|
removePill: ", Press delete or backspace to remove",
|
|
44
44
|
selectedListboxLabel: "Selected Options:"
|
|
45
|
-
},
|
|
45
|
+
}, we = {
|
|
46
46
|
deselectOption: "None",
|
|
47
47
|
label: "",
|
|
48
48
|
cancelButton: "Cancel",
|
|
@@ -54,22 +54,28 @@ var m, be = typeof document < "u", xe = Symbol("actionItem"), Se = (e) => xe in
|
|
|
54
54
|
removePillTitle: "Remove",
|
|
55
55
|
optionDisabledTooltipLabel: "This option is disabled.",
|
|
56
56
|
inputIconTitle: ""
|
|
57
|
-
},
|
|
58
|
-
let { assistiveText:
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
}, Te = {}, Ee = (Ee) => {
|
|
58
|
+
let { assistiveText: De = {}, "aria-describedby": Oe, className: g, classNameContainer: ke, classNameMenu: Ae, classNameMenuSubHeader: je, defaultIsOpen: Me, disabled: Ne, entityCombobox: Pe, errorText: _, events: Fe = {}, fieldLevelHelpTooltip: Ie, hasDeselect: Le, hasInputSpinner: Re, hasMenuSpinner: ze, hasStaticAlignment: Be, id: Ve, inheritWidthOf: He = "target", input: Ue, inputRef: We, isOpen: Ge, labels: Ke = {}, menuItemVisibleLength: qe, menuMaxWidth: Je, menuPosition: Ye = "absolute", multiple: v, onRenderMenuItem: Xe, options: y = [], optionsAddItem: Ze = [], optionsSearchEntity: Qe = [], popover: b, predefinedOptionsOnly: x, required: S = !1, selection: C = [], selectedListboxRef: $e, singleInputDisabled: et = !1, tooltipMenuItemDisabled: tt, value: w, variant: T = "base", renderMenuItem: nt, menuItem: rt } = Ee, E = he({}, Ce, De), D = he({}, we, Ke), O = he({}, Te, Fe), it = pe(t), k = u(null), A = u(null), at = u(null), ot = u(null), st = u(null), ct = u(new te()), lt = u(r()), ut = u(r()), j = c(() => Ve || lt.current, [Ve]), dt = `${j()}-deselect`, [M, N] = d(void 0), [P, F] = d(-1), [I, L] = d(C?.[0]), [R, z] = d(0), [ft, B] = d(!1), [V, pt, mt] = n(Ge, Me ?? !1), ht = u(V);
|
|
59
|
+
l(() => {
|
|
60
|
+
ht.current = V;
|
|
61
|
+
}, [V]);
|
|
62
|
+
let gt = u(void 0), [_t, vt] = d(V);
|
|
63
|
+
_t !== V && (vt(V), V || (N(void 0), F(-1)));
|
|
64
|
+
let [yt, bt] = d(!1);
|
|
65
|
+
l(() => {
|
|
66
|
+
ue(e, Ee, de);
|
|
61
67
|
}, []);
|
|
62
|
-
let
|
|
68
|
+
let H = c(() => !!V, [V]), xt = c(() => M && P !== -1, [M, P]), U = c(() => Oe || _ && ut.current, [Oe, _]), W = c(() => {
|
|
63
69
|
let e = {
|
|
64
70
|
id: dt,
|
|
65
71
|
label: D.deselectOption,
|
|
66
72
|
value: "",
|
|
67
73
|
type: "deselect"
|
|
68
|
-
}, t = Qe.map((e) =>
|
|
74
|
+
}, t = Qe.map((e) => Se(e, "header")), n = Ze.map((e) => Se(e, "footer"));
|
|
69
75
|
return [
|
|
70
76
|
...t.length > 0 ? t : [],
|
|
71
77
|
...Le ? [e] : [],
|
|
72
|
-
...
|
|
78
|
+
...y && y.length > 0 ? y : [],
|
|
73
79
|
...n.length > 0 ? n : []
|
|
74
80
|
];
|
|
75
81
|
}, [
|
|
@@ -78,100 +84,98 @@ var m, be = typeof document < "u", xe = Symbol("actionItem"), Se = (e) => xe in
|
|
|
78
84
|
Qe,
|
|
79
85
|
Ze,
|
|
80
86
|
Le,
|
|
81
|
-
|
|
82
|
-
]),
|
|
87
|
+
y
|
|
88
|
+
]), St = c(({ selection: e, option: t }) => !!_e(e, t), []), Ct = c(({ activeOptionIndex: e, offset: t, options: n }) => {
|
|
83
89
|
let r = e + t, i = n.length > r && r >= 0 && n[r].type === "separator" ? r + t : r;
|
|
84
90
|
return n.length > r && r >= 0 ? i : e;
|
|
85
|
-
}, []),
|
|
86
|
-
if (
|
|
87
|
-
if (
|
|
91
|
+
}, []), G = c((e, { trigger: t } = {}) => {
|
|
92
|
+
if (ht.current) {
|
|
93
|
+
if (mt || (ht.current = !1), gt.current = e, T === "popover" && t === "cancel") {
|
|
88
94
|
let n = b?.props;
|
|
89
95
|
n?.onClose && n.onClose(e, { trigger: t });
|
|
90
96
|
}
|
|
91
|
-
O.
|
|
97
|
+
O.onRequestClose && O.onRequestClose(e, {}), pt(!1);
|
|
92
98
|
}
|
|
93
99
|
}, [
|
|
94
|
-
|
|
100
|
+
mt,
|
|
95
101
|
T,
|
|
96
102
|
b,
|
|
97
|
-
O
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
let e =
|
|
102
|
-
F(t), N(C[0]), A.current !== null &&
|
|
103
|
+
O,
|
|
104
|
+
pt
|
|
105
|
+
]), wt = c((e, t) => {
|
|
106
|
+
if (h = { handleClose: G }, O.onOpen && O.onOpen(e, t || {}), T === "readonly") {
|
|
107
|
+
let e = W(), t = ge(e, (e) => me(e, C[0]));
|
|
108
|
+
F(t), N(C[0]), A.current !== null && le({
|
|
103
109
|
container: A.current,
|
|
104
110
|
focusedIndex: t
|
|
105
111
|
});
|
|
106
112
|
}
|
|
107
113
|
}, [
|
|
108
|
-
|
|
109
|
-
K,
|
|
114
|
+
G,
|
|
110
115
|
O,
|
|
111
116
|
T,
|
|
112
|
-
|
|
117
|
+
W,
|
|
113
118
|
C
|
|
114
|
-
]),
|
|
115
|
-
O.
|
|
119
|
+
]), K = c((e) => {
|
|
120
|
+
V || (O.onRequestOpen && O.onRequestOpen(e, {}), pt(!0));
|
|
116
121
|
}, [
|
|
122
|
+
V,
|
|
117
123
|
O,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
O.onRequestOpen ? O.onRequestOpen() : ft(!0);
|
|
122
|
-
}, [O]), bt = c(() => {
|
|
123
|
-
(!y && C.length === 0 && T === "inline-listbox" || y || T === "readonly") && q();
|
|
124
|
+
pt
|
|
125
|
+
]), Tt = c((e) => {
|
|
126
|
+
(!v && C.length === 0 && T === "inline-listbox" || v || T === "readonly") && K(e);
|
|
124
127
|
}, [
|
|
125
|
-
|
|
128
|
+
v,
|
|
126
129
|
C.length,
|
|
127
130
|
T,
|
|
128
|
-
|
|
131
|
+
K
|
|
129
132
|
]);
|
|
130
133
|
c((e) => {
|
|
131
|
-
|
|
132
|
-
}, [
|
|
133
|
-
let
|
|
134
|
-
if (
|
|
135
|
-
let t = n[
|
|
134
|
+
G(e, { trigger: "cancel" });
|
|
135
|
+
}, [G]);
|
|
136
|
+
let Et = c((e, { selection: t, option: n }) => {
|
|
137
|
+
if (xe(n)) {
|
|
138
|
+
let t = n[be], r = e;
|
|
136
139
|
t.onClick?.(r, { option: t }), O.onSelectActionItem?.(r, {
|
|
137
140
|
option: t,
|
|
138
|
-
value:
|
|
139
|
-
}),
|
|
141
|
+
value: w ?? ""
|
|
142
|
+
}), G(e);
|
|
140
143
|
return;
|
|
141
144
|
}
|
|
142
|
-
let r, i =
|
|
145
|
+
let r, i = St({
|
|
143
146
|
selection: t,
|
|
144
147
|
option: n
|
|
145
|
-
}),
|
|
146
|
-
r = n.id === dt ? [] :
|
|
148
|
+
}), a = !v && !i, ee = v && !i;
|
|
149
|
+
r = n.id === dt ? [] : a ? [n] : ee ? [...C, n] : ve(C, n), O.onSelect && O.onSelect(e, { selection: r }), G(e);
|
|
147
150
|
}, [
|
|
148
|
-
|
|
149
|
-
|
|
151
|
+
St,
|
|
152
|
+
v,
|
|
150
153
|
dt,
|
|
151
154
|
C,
|
|
152
155
|
O,
|
|
153
|
-
|
|
154
|
-
|
|
156
|
+
G,
|
|
157
|
+
w
|
|
158
|
+
]), q = c((e) => {
|
|
155
159
|
setTimeout(() => {
|
|
156
|
-
let t =
|
|
157
|
-
t && t.tagName === "DIV" && t.id === `${j()}-listbox` ? k.current && k.current.focus() : b ||
|
|
160
|
+
let t = ye ? document.activeElement : null;
|
|
161
|
+
t && t.tagName === "DIV" && t.id === `${j()}-listbox` ? k.current && k.current.focus() : b || G(e);
|
|
158
162
|
}, 200), O.onBlur && O.onBlur(e);
|
|
159
163
|
}, [
|
|
160
164
|
j,
|
|
161
165
|
b,
|
|
162
|
-
|
|
166
|
+
G,
|
|
163
167
|
O
|
|
164
|
-
]),
|
|
165
|
-
|
|
166
|
-
}, [
|
|
168
|
+
]), J = c((e) => {
|
|
169
|
+
Tt(e), O.onChange && O.onChange(e, { value: e.target.value });
|
|
170
|
+
}, [Tt, O]), Y = c((e) => {
|
|
167
171
|
O.onFocus && O.onFocus(e, {});
|
|
168
|
-
}, [O]),
|
|
169
|
-
if (M === void 0 && P === -1 && (
|
|
170
|
-
if (M && !
|
|
172
|
+
}, [O]), Dt = c((e) => {
|
|
173
|
+
if (M === void 0 && P === -1 && (V ? G(e, { trigger: "cancel" }) : e.shiftKey || K(e)), !M?.disabled) {
|
|
174
|
+
if (M && !xe(M) && (M.type === "header" || M.type === "footer")) {
|
|
171
175
|
M.onClick?.(e);
|
|
172
176
|
return;
|
|
173
177
|
}
|
|
174
|
-
|
|
178
|
+
xt() ? Et(e, {
|
|
175
179
|
option: M,
|
|
176
180
|
selection: C
|
|
177
181
|
}) : !x && e.target.value !== "" && O.onSubmit && O.onSubmit(e, { value: e.target.value });
|
|
@@ -179,133 +183,133 @@ var m, be = typeof document < "u", xe = Symbol("actionItem"), Se = (e) => xe in
|
|
|
179
183
|
}, [
|
|
180
184
|
M,
|
|
181
185
|
P,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
ht,
|
|
186
|
+
V,
|
|
187
|
+
K,
|
|
188
|
+
G,
|
|
186
189
|
xt,
|
|
190
|
+
Et,
|
|
187
191
|
C,
|
|
188
192
|
x,
|
|
189
193
|
O
|
|
190
|
-
]),
|
|
194
|
+
]), Ot = c((e, { direction: t }) => {
|
|
191
195
|
let n = {
|
|
192
196
|
next: 1,
|
|
193
197
|
previous: -1
|
|
194
|
-
}, r =
|
|
198
|
+
}, r = W(), i = Ct({
|
|
195
199
|
activeOptionIndex: P,
|
|
196
200
|
offset: n[t],
|
|
197
201
|
options: r
|
|
198
202
|
});
|
|
199
|
-
|
|
203
|
+
H() && A.current && le({
|
|
200
204
|
container: A.current,
|
|
201
205
|
focusedIndex: i
|
|
202
206
|
}), N(r[i]), F(i);
|
|
203
207
|
}, [
|
|
204
|
-
|
|
205
|
-
|
|
208
|
+
W,
|
|
209
|
+
Ct,
|
|
206
210
|
P,
|
|
207
|
-
|
|
208
|
-
]),
|
|
211
|
+
H
|
|
212
|
+
]), X = c((e, { direction: t }) => {
|
|
209
213
|
let n = {
|
|
210
214
|
next: 1,
|
|
211
215
|
previous: -1
|
|
212
216
|
}, r = R + 1 === C.length && t === "next", i = R === 0 && t === "previous";
|
|
213
|
-
if (r) L(C[0]), z(0),
|
|
214
|
-
else if (i) L(C[C.length - 1]), z(C.length - 1),
|
|
217
|
+
if (r) L(C[0]), z(0), B(!0);
|
|
218
|
+
else if (i) L(C[C.length - 1]), z(C.length - 1), B(!0);
|
|
215
219
|
else {
|
|
216
|
-
let e =
|
|
220
|
+
let e = Ct({
|
|
217
221
|
activeOptionIndex: R,
|
|
218
222
|
offset: n[t],
|
|
219
223
|
options: C
|
|
220
224
|
});
|
|
221
|
-
L(C[e]), z(e),
|
|
225
|
+
L(C[e]), z(e), B(!0);
|
|
222
226
|
}
|
|
223
227
|
}, [
|
|
224
228
|
R,
|
|
225
229
|
C,
|
|
226
|
-
|
|
227
|
-
]),
|
|
228
|
-
e.shiftKey ||
|
|
230
|
+
Ct
|
|
231
|
+
]), kt = c((e) => {
|
|
232
|
+
e.shiftKey || K(e), T !== "popover" && Ot(e, { direction: "next" });
|
|
229
233
|
}, [
|
|
230
|
-
|
|
234
|
+
K,
|
|
231
235
|
T,
|
|
232
|
-
|
|
233
|
-
]),
|
|
234
|
-
!e.shiftKey &&
|
|
235
|
-
}, [
|
|
236
|
-
at.current &&
|
|
237
|
-
}, []),
|
|
238
|
-
let t =
|
|
236
|
+
Ot
|
|
237
|
+
]), At = c((e) => {
|
|
238
|
+
!e.shiftKey && H() && Ot(e, { direction: "previous" });
|
|
239
|
+
}, [H, Ot]), jt = c(() => {
|
|
240
|
+
at.current && B(!0);
|
|
241
|
+
}, []), Mt = c((e) => {
|
|
242
|
+
let t = W(), n = ce({
|
|
239
243
|
key: e.key,
|
|
240
244
|
keyBuffer: ct.current,
|
|
241
245
|
keyCode: e.keyCode,
|
|
242
246
|
options: t
|
|
243
247
|
});
|
|
244
|
-
n !== void 0 && (
|
|
248
|
+
n !== void 0 && (H() && A.current && le({
|
|
245
249
|
container: A.current,
|
|
246
250
|
focusedIndex: n
|
|
247
251
|
}), N(t[n]), F(n));
|
|
248
|
-
}, [
|
|
252
|
+
}, [W, H]), Z = c((e) => {
|
|
249
253
|
let t = {
|
|
250
|
-
[
|
|
251
|
-
[
|
|
252
|
-
[
|
|
253
|
-
[
|
|
254
|
+
[i.DOWN]: { callback: kt },
|
|
255
|
+
[i.ENTER]: { callback: Dt },
|
|
256
|
+
[i.ESCAPE]: { callback: G },
|
|
257
|
+
[i.UP]: { callback: At }
|
|
254
258
|
};
|
|
255
|
-
T === "readonly" && (C.length > 2 ? t[
|
|
256
|
-
callback:
|
|
259
|
+
T === "readonly" && (C.length > 2 ? t[i.TAB] = { callback: jt } : t[i.TAB] = void 0, t.other = {
|
|
260
|
+
callback: Mt,
|
|
257
261
|
stopPropagation: !1
|
|
258
262
|
});
|
|
259
|
-
let n =
|
|
260
|
-
|
|
263
|
+
let n = H();
|
|
264
|
+
oe(e, {
|
|
261
265
|
callbacks: t,
|
|
262
266
|
stopPropagation: n
|
|
263
267
|
});
|
|
264
268
|
}, [
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
+
kt,
|
|
270
|
+
Dt,
|
|
271
|
+
G,
|
|
272
|
+
At,
|
|
269
273
|
T,
|
|
270
274
|
C.length,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
]),
|
|
275
|
-
|
|
276
|
-
}, []),
|
|
277
|
-
|
|
278
|
-
}, [
|
|
275
|
+
jt,
|
|
276
|
+
Mt,
|
|
277
|
+
H
|
|
278
|
+
]), Nt = c(() => {
|
|
279
|
+
B(!1);
|
|
280
|
+
}, []), Pt = c((e, { option: t, index: n }) => {
|
|
281
|
+
ft || (L(t), z(n), B(!0));
|
|
282
|
+
}, [ft]), Ft = c((e, { option: t, index: n }) => {
|
|
279
283
|
e.preventDefault();
|
|
280
|
-
let r = C.length === 1, i = C.length === 2 && T === "readonly" &&
|
|
281
|
-
(r || i) && k.current ? k.current.focus() :
|
|
284
|
+
let r = C.length === 1, i = C.length === 2 && T === "readonly" && v, a = n !== void 0 && n + 1 === C.length;
|
|
285
|
+
(r || i) && k.current ? k.current.focus() : a && n !== void 0 ? (L(C[n - 1]), z(n - 1), B(!0)) : n !== void 0 && (L(C[n + 1]), z(n), B(!0)), O.onRequestRemoveSelectedOption && O.onRequestRemoveSelectedOption(e, { selection: ve(C, t) });
|
|
282
286
|
}, [
|
|
283
287
|
C,
|
|
284
288
|
T,
|
|
285
|
-
|
|
289
|
+
v,
|
|
286
290
|
O
|
|
287
|
-
]),
|
|
291
|
+
]), It = c((e, { ref: t }) => {
|
|
288
292
|
t && (ot.current = t, ot.current.focus());
|
|
289
|
-
}, []),
|
|
290
|
-
k.current = e,
|
|
291
|
-
}, [
|
|
293
|
+
}, []), Q = c((e) => {
|
|
294
|
+
k.current = e, yt || bt(!0), We && We(e);
|
|
295
|
+
}, [yt, We]), Lt = c((e) => {
|
|
292
296
|
at.current = e, $e && $e(e);
|
|
293
|
-
}, [$e]),
|
|
297
|
+
}, [$e]), Rt = c((e) => {
|
|
294
298
|
A.current = e;
|
|
295
|
-
}, []),
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
}
|
|
299
|
-
let e =
|
|
299
|
+
}, []), zt = c(() => k.current, []), Bt = u(V);
|
|
300
|
+
l(() => {
|
|
301
|
+
Bt.current !== V && (Bt.current = V, V || (h && h.handleClose === G && (h = void 0), O.onClose && O.onClose(gt.current, {}))), gt.current = void 0;
|
|
302
|
+
}), l(() => {
|
|
303
|
+
let e = W();
|
|
300
304
|
if (M) {
|
|
301
|
-
let t =
|
|
305
|
+
let t = ge(e, (e) => me(e, M));
|
|
302
306
|
t === -1 ? (N(void 0), F(-1)) : F(t);
|
|
303
307
|
}
|
|
304
308
|
}, [
|
|
305
|
-
|
|
306
|
-
|
|
309
|
+
y,
|
|
310
|
+
W,
|
|
307
311
|
M
|
|
308
|
-
]),
|
|
312
|
+
]), l(() => {
|
|
309
313
|
if (C.length === 0) {
|
|
310
314
|
I !== void 0 && (L(void 0), z(0));
|
|
311
315
|
return;
|
|
@@ -318,23 +322,25 @@ var m, be = typeof document < "u", xe = Symbol("actionItem"), Se = (e) => xe in
|
|
|
318
322
|
C,
|
|
319
323
|
I,
|
|
320
324
|
R
|
|
321
|
-
]),
|
|
322
|
-
|
|
323
|
-
}, [
|
|
324
|
-
let
|
|
325
|
-
let t = /* @__PURE__ */
|
|
325
|
+
]), l(() => () => {
|
|
326
|
+
h && h.handleClose === G && (h = void 0);
|
|
327
|
+
}, [G]);
|
|
328
|
+
let Vt = c((e) => {
|
|
329
|
+
let t = /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("div", {
|
|
326
330
|
className: "slds-assistive-text",
|
|
327
331
|
id: `${j()}-label`,
|
|
328
332
|
children: E.popoverLabel
|
|
329
|
-
}), e] }), n = /* @__PURE__ */
|
|
333
|
+
}), e] }), n = /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(ee, {
|
|
330
334
|
label: D.cancelButton,
|
|
331
335
|
onClick: (e) => {
|
|
332
|
-
|
|
336
|
+
G(e, { trigger: "cancel" });
|
|
333
337
|
}
|
|
334
|
-
}), /* @__PURE__ */
|
|
338
|
+
}), /* @__PURE__ */ p(ee, {
|
|
335
339
|
label: D.doneButton,
|
|
336
340
|
variant: "brand",
|
|
337
|
-
onClick:
|
|
341
|
+
onClick: (e) => {
|
|
342
|
+
G(e);
|
|
343
|
+
}
|
|
338
344
|
})] }), r = {
|
|
339
345
|
ariaLabelledby: `${j()}-label`,
|
|
340
346
|
align: "bottom",
|
|
@@ -344,93 +350,92 @@ var m, be = typeof document < "u", xe = Symbol("actionItem"), Se = (e) => xe in
|
|
|
344
350
|
classNameFooter: "slds-popover__footer_form",
|
|
345
351
|
hasNoNubbin: !0,
|
|
346
352
|
id: j(),
|
|
347
|
-
isOpen:
|
|
353
|
+
isOpen: V,
|
|
348
354
|
hasNoTriggerStyles: !0,
|
|
349
|
-
onOpen:
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
355
|
+
onOpen: wt,
|
|
356
|
+
onRequestClose: (e, t) => {
|
|
357
|
+
G(e, { trigger: t?.trigger });
|
|
358
|
+
}
|
|
359
|
+
}, i = b?.props, a = he(r, i || {});
|
|
353
360
|
return a.body = t, delete a.children, a;
|
|
354
361
|
}, [
|
|
355
362
|
j,
|
|
356
363
|
E.popoverLabel,
|
|
357
364
|
D.cancelButton,
|
|
358
365
|
D.doneButton,
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
366
|
+
G,
|
|
367
|
+
V,
|
|
368
|
+
wt,
|
|
362
369
|
b
|
|
363
|
-
]),
|
|
364
|
-
let t =
|
|
365
|
-
if (!Ne &&
|
|
370
|
+
]), Ht = c(({ menuRenderer: e }) => {
|
|
371
|
+
let t = Ye;
|
|
372
|
+
if (!Ne && H()) {
|
|
366
373
|
let n = {
|
|
367
374
|
align: "bottom left",
|
|
368
375
|
context: it,
|
|
369
376
|
hasStaticAlignment: Be,
|
|
370
377
|
inheritWidthOf: He,
|
|
371
|
-
onClose: K,
|
|
372
378
|
onMouseDown: (e) => {
|
|
373
379
|
e.preventDefault();
|
|
374
380
|
},
|
|
375
|
-
onOpen:
|
|
376
|
-
onRequestTargetElement:
|
|
381
|
+
onOpen: wt,
|
|
382
|
+
onRequestTargetElement: zt,
|
|
377
383
|
position: t,
|
|
378
384
|
containerProps: {
|
|
379
385
|
id: `${j()}-listbox`,
|
|
380
386
|
role: "listbox"
|
|
381
387
|
}
|
|
382
388
|
};
|
|
383
|
-
return /* @__PURE__ */
|
|
389
|
+
return /* @__PURE__ */ p(a, {
|
|
384
390
|
...n,
|
|
385
391
|
children: e
|
|
386
392
|
});
|
|
387
393
|
}
|
|
388
394
|
return null;
|
|
389
395
|
}, [
|
|
390
|
-
|
|
396
|
+
Ye,
|
|
391
397
|
Ne,
|
|
392
|
-
|
|
398
|
+
H,
|
|
393
399
|
it,
|
|
394
400
|
Be,
|
|
395
401
|
He,
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
Pt,
|
|
402
|
+
wt,
|
|
403
|
+
zt,
|
|
399
404
|
j
|
|
400
|
-
]),
|
|
401
|
-
nt ?
|
|
405
|
+
]), Ut = Xe || rt, Wt;
|
|
406
|
+
nt ? Wt = (e) => nt({
|
|
402
407
|
...e,
|
|
403
408
|
assistiveText: E
|
|
404
|
-
}) :
|
|
409
|
+
}) : Ut && (Wt = ({ isSelected: e, option: t }) => /* @__PURE__ */ p(Ut, {
|
|
405
410
|
assistiveText: E,
|
|
406
411
|
selected: e,
|
|
407
412
|
option: t
|
|
408
413
|
}));
|
|
409
|
-
let
|
|
414
|
+
let Gt = c(() => {
|
|
410
415
|
let e = {
|
|
411
416
|
base: "icon-title-subtitle",
|
|
412
417
|
"inline-listbox": "icon-title-subtitle",
|
|
413
418
|
readonly: "checkbox"
|
|
414
419
|
}, t = T === "readonly" ? 5 : null;
|
|
415
|
-
return /* @__PURE__ */
|
|
420
|
+
return /* @__PURE__ */ p(ie, {
|
|
416
421
|
assistiveText: E,
|
|
417
422
|
activeOption: M,
|
|
418
423
|
activeOptionIndex: P,
|
|
419
|
-
classNameMenu:
|
|
420
|
-
classNameMenuSubHeader:
|
|
424
|
+
classNameMenu: Ae,
|
|
425
|
+
classNameMenuSubHeader: je,
|
|
421
426
|
inheritWidthOf: He,
|
|
422
427
|
inputId: j(),
|
|
423
428
|
inputValue: w,
|
|
424
|
-
isSelected:
|
|
425
|
-
itemVisibleLength:
|
|
429
|
+
isSelected: St,
|
|
430
|
+
itemVisibleLength: qe || t,
|
|
426
431
|
labels: { noOptionsFound: D.noOptionsFound || "" },
|
|
427
432
|
hasMenuSpinner: ze,
|
|
428
|
-
menuPosition:
|
|
429
|
-
menuRef:
|
|
430
|
-
maxWidth:
|
|
431
|
-
options:
|
|
432
|
-
onSelect:
|
|
433
|
-
renderMenuItem:
|
|
433
|
+
menuPosition: Ye,
|
|
434
|
+
menuRef: Rt,
|
|
435
|
+
maxWidth: Je,
|
|
436
|
+
options: W(),
|
|
437
|
+
onSelect: Et,
|
|
438
|
+
renderMenuItem: Wt,
|
|
434
439
|
selection: C,
|
|
435
440
|
tooltipMenuItemDisabled: tt,
|
|
436
441
|
variant: e[T]
|
|
@@ -440,42 +445,42 @@ var m, be = typeof document < "u", xe = Symbol("actionItem"), Se = (e) => xe in
|
|
|
440
445
|
E,
|
|
441
446
|
M,
|
|
442
447
|
P,
|
|
448
|
+
Ae,
|
|
443
449
|
je,
|
|
444
|
-
Me,
|
|
445
450
|
He,
|
|
446
451
|
j,
|
|
447
452
|
w,
|
|
448
|
-
|
|
449
|
-
|
|
453
|
+
St,
|
|
454
|
+
qe,
|
|
450
455
|
D.noOptionsFound,
|
|
451
456
|
ze,
|
|
452
|
-
|
|
453
|
-
Nt,
|
|
454
|
-
qe,
|
|
455
|
-
G,
|
|
456
|
-
xt,
|
|
457
|
+
Ye,
|
|
457
458
|
Rt,
|
|
459
|
+
Je,
|
|
460
|
+
W,
|
|
461
|
+
Et,
|
|
462
|
+
Wt,
|
|
458
463
|
C,
|
|
459
464
|
tt
|
|
460
|
-
]),
|
|
465
|
+
]), $ = Ue?.props || {}, Kt = () => /* @__PURE__ */ m("div", {
|
|
461
466
|
className: "slds-form-element__control",
|
|
462
467
|
children: [
|
|
463
|
-
/* @__PURE__ */
|
|
468
|
+
/* @__PURE__ */ p("div", {
|
|
464
469
|
className: "slds-combobox_container",
|
|
465
|
-
children: /* @__PURE__ */
|
|
466
|
-
className:
|
|
467
|
-
"slds-is-open":
|
|
470
|
+
children: /* @__PURE__ */ m("div", {
|
|
471
|
+
className: f("slds-combobox", "slds-dropdown-trigger", "slds-dropdown-trigger_click", "ignore-react-onclickoutside", {
|
|
472
|
+
"slds-is-open": H(),
|
|
468
473
|
"slds-has-error": _
|
|
469
|
-
},
|
|
474
|
+
}, g),
|
|
470
475
|
role: "combobox",
|
|
471
|
-
"aria-expanded":
|
|
476
|
+
"aria-expanded": H(),
|
|
472
477
|
"aria-haspopup": "listbox",
|
|
473
|
-
"aria-owns":
|
|
474
|
-
children: [/* @__PURE__ */
|
|
478
|
+
"aria-owns": H() ? `${j()}-listbox` : void 0,
|
|
479
|
+
children: [/* @__PURE__ */ p(o, {
|
|
475
480
|
"aria-autocomplete": "list",
|
|
476
|
-
"aria-controls":
|
|
481
|
+
"aria-controls": H() ? `${j()}-listbox` : void 0,
|
|
477
482
|
"aria-activedescendant": M ? `${j()}-listbox-option-${M.id}` : void 0,
|
|
478
|
-
"aria-describedby":
|
|
483
|
+
"aria-describedby": U(),
|
|
479
484
|
autoComplete: "off",
|
|
480
485
|
className: "slds-combobox__input",
|
|
481
486
|
containerProps: {
|
|
@@ -483,61 +488,60 @@ var m, be = typeof document < "u", xe = Symbol("actionItem"), Se = (e) => xe in
|
|
|
483
488
|
role: "none"
|
|
484
489
|
},
|
|
485
490
|
hasSpinner: Re,
|
|
486
|
-
iconRight: /* @__PURE__ */
|
|
491
|
+
iconRight: /* @__PURE__ */ p(s, {
|
|
487
492
|
category: "utility",
|
|
488
493
|
name: "search",
|
|
489
494
|
title: D.inputIconTitle
|
|
490
495
|
}),
|
|
491
496
|
id: j(),
|
|
492
|
-
onFocus:
|
|
493
|
-
onBlur:
|
|
494
|
-
onKeyDown:
|
|
495
|
-
inputRef:
|
|
496
|
-
onClick: () =>
|
|
497
|
-
onChange:
|
|
497
|
+
onFocus: Y,
|
|
498
|
+
onBlur: q,
|
|
499
|
+
onKeyDown: Z,
|
|
500
|
+
inputRef: Q,
|
|
501
|
+
onClick: (e) => K(e),
|
|
502
|
+
onChange: J,
|
|
498
503
|
placeholder: D.placeholder,
|
|
499
|
-
defaultValue: g,
|
|
500
504
|
readOnly: !!(x && M),
|
|
501
505
|
required: S,
|
|
502
506
|
role: "textbox",
|
|
503
507
|
value: x && M?.label || w,
|
|
504
|
-
|
|
505
|
-
}),
|
|
508
|
+
...$
|
|
509
|
+
}), Ht({ menuRenderer: Gt() })]
|
|
506
510
|
})
|
|
507
511
|
}),
|
|
508
|
-
/* @__PURE__ */
|
|
512
|
+
/* @__PURE__ */ p(se, {
|
|
509
513
|
activeOption: I,
|
|
510
514
|
activeOptionIndex: R,
|
|
511
515
|
assistiveText: E,
|
|
512
516
|
events: {
|
|
513
|
-
onBlurPill:
|
|
514
|
-
onPillFocus:
|
|
515
|
-
onRequestFocus:
|
|
516
|
-
onRequestFocusOnNextPill:
|
|
517
|
-
onRequestFocusOnPreviousPill:
|
|
518
|
-
onRequestRemove:
|
|
517
|
+
onBlurPill: Nt,
|
|
518
|
+
onPillFocus: Pt,
|
|
519
|
+
onRequestFocus: It,
|
|
520
|
+
onRequestFocusOnNextPill: X,
|
|
521
|
+
onRequestFocusOnPreviousPill: X,
|
|
522
|
+
onRequestRemove: Ft
|
|
519
523
|
},
|
|
520
524
|
id: `${j()}-selected-listbox`,
|
|
521
525
|
labels: D,
|
|
522
|
-
selectedListboxRef:
|
|
526
|
+
selectedListboxRef: Lt,
|
|
523
527
|
selection: C,
|
|
524
|
-
listboxHasFocus:
|
|
525
|
-
multiselectable:
|
|
528
|
+
listboxHasFocus: ft,
|
|
529
|
+
multiselectable: v
|
|
526
530
|
}),
|
|
527
|
-
_ && /* @__PURE__ */
|
|
531
|
+
_ && /* @__PURE__ */ p("div", {
|
|
528
532
|
className: "slds-has-error",
|
|
529
|
-
children: /* @__PURE__ */
|
|
530
|
-
id:
|
|
533
|
+
children: /* @__PURE__ */ p("div", {
|
|
534
|
+
id: U(),
|
|
531
535
|
className: "slds-form-element__help slds-has-error",
|
|
532
536
|
children: _
|
|
533
537
|
})
|
|
534
538
|
})
|
|
535
539
|
]
|
|
536
|
-
}),
|
|
540
|
+
}), qt = () => /* @__PURE__ */ p("div", {
|
|
537
541
|
className: "slds-form-element__control",
|
|
538
|
-
children: /* @__PURE__ */
|
|
539
|
-
className:
|
|
540
|
-
children: [C.length ? /* @__PURE__ */
|
|
542
|
+
children: /* @__PURE__ */ m("div", {
|
|
543
|
+
className: f("slds-combobox_container", { "slds-has-inline-listbox": C.length }),
|
|
544
|
+
children: [C.length ? /* @__PURE__ */ p(se, {
|
|
541
545
|
activeOption: I,
|
|
542
546
|
activeOptionIndex: R,
|
|
543
547
|
assistiveText: E,
|
|
@@ -546,34 +550,33 @@ var m, be = typeof document < "u", xe = Symbol("actionItem"), Se = (e) => xe in
|
|
|
546
550
|
listboxRole: "group",
|
|
547
551
|
listboxAriaOrientation: null,
|
|
548
552
|
events: {
|
|
549
|
-
onBlurPill:
|
|
550
|
-
onPillFocus:
|
|
551
|
-
onRequestFocus:
|
|
552
|
-
onRequestFocusOnNextPill:
|
|
553
|
-
onRequestFocusOnPreviousPill:
|
|
554
|
-
onRequestRemove:
|
|
553
|
+
onBlurPill: Nt,
|
|
554
|
+
onPillFocus: Pt,
|
|
555
|
+
onRequestFocus: It,
|
|
556
|
+
onRequestFocusOnNextPill: X,
|
|
557
|
+
onRequestFocusOnPreviousPill: X,
|
|
558
|
+
onRequestRemove: Ft
|
|
555
559
|
},
|
|
556
560
|
id: `${j()}-selected-listbox`,
|
|
557
561
|
labels: D,
|
|
558
|
-
selectedListboxRef:
|
|
562
|
+
selectedListboxRef: Lt,
|
|
559
563
|
selection: C,
|
|
560
|
-
listboxHasFocus:
|
|
561
|
-
multiselectable:
|
|
562
|
-
}) : null, /* @__PURE__ */
|
|
563
|
-
className:
|
|
564
|
-
"slds-is-open":
|
|
564
|
+
listboxHasFocus: ft,
|
|
565
|
+
multiselectable: v
|
|
566
|
+
}) : null, /* @__PURE__ */ m("div", {
|
|
567
|
+
className: f("slds-combobox", "slds-dropdown-trigger", "slds-dropdown-trigger_click", "ignore-react-onclickoutside", {
|
|
568
|
+
"slds-is-open": H(),
|
|
565
569
|
"slds-has-error": _
|
|
566
|
-
},
|
|
570
|
+
}, g),
|
|
567
571
|
role: "combobox",
|
|
568
|
-
"aria-expanded":
|
|
572
|
+
"aria-expanded": H(),
|
|
569
573
|
"aria-haspopup": "listbox",
|
|
570
574
|
children: [
|
|
571
|
-
/* @__PURE__ */
|
|
575
|
+
/* @__PURE__ */ p(o, {
|
|
572
576
|
"aria-autocomplete": "list",
|
|
573
|
-
"aria-controls":
|
|
577
|
+
"aria-controls": H() ? `${j()}-listbox` : void 0,
|
|
574
578
|
"aria-activedescendant": M ? `${j()}-listbox-option-${M.id}` : void 0,
|
|
575
|
-
"aria-describedby":
|
|
576
|
-
defaultValue: g,
|
|
579
|
+
"aria-describedby": U(),
|
|
577
580
|
autoComplete: "off",
|
|
578
581
|
className: "slds-combobox__input",
|
|
579
582
|
containerProps: {
|
|
@@ -581,54 +584,53 @@ var m, be = typeof document < "u", xe = Symbol("actionItem"), Se = (e) => xe in
|
|
|
581
584
|
role: "none"
|
|
582
585
|
},
|
|
583
586
|
hasSpinner: Re,
|
|
584
|
-
iconRight: /* @__PURE__ */
|
|
587
|
+
iconRight: /* @__PURE__ */ p(s, {
|
|
585
588
|
category: "utility",
|
|
586
589
|
name: "search",
|
|
587
590
|
title: D.inputIconTitle
|
|
588
591
|
}),
|
|
589
592
|
id: j(),
|
|
590
|
-
onFocus:
|
|
591
|
-
onBlur:
|
|
592
|
-
onKeyDown:
|
|
593
|
-
inputRef:
|
|
594
|
-
onClick: () =>
|
|
595
|
-
onChange:
|
|
593
|
+
onFocus: Y,
|
|
594
|
+
onBlur: q,
|
|
595
|
+
onKeyDown: Z,
|
|
596
|
+
inputRef: Q,
|
|
597
|
+
onClick: (e) => K(e),
|
|
598
|
+
onChange: J,
|
|
596
599
|
placeholder: D.placeholder,
|
|
597
600
|
readOnly: !!(x && M),
|
|
598
601
|
required: S,
|
|
599
602
|
role: "textbox",
|
|
600
603
|
value: x && M?.label || w,
|
|
601
|
-
|
|
604
|
+
...$
|
|
602
605
|
}),
|
|
603
|
-
|
|
604
|
-
_ && /* @__PURE__ */
|
|
605
|
-
id:
|
|
606
|
+
Ht({ menuRenderer: Gt() }),
|
|
607
|
+
_ && /* @__PURE__ */ p("div", {
|
|
608
|
+
id: U(),
|
|
606
609
|
className: "slds-form-element__help",
|
|
607
610
|
children: _
|
|
608
611
|
})
|
|
609
612
|
]
|
|
610
613
|
})]
|
|
611
614
|
})
|
|
612
|
-
}),
|
|
613
|
-
let e = C[0]?.icon, t = e &&
|
|
614
|
-
return /* @__PURE__ */
|
|
615
|
+
}), Jt = () => {
|
|
616
|
+
let e = C[0]?.icon, t = e && fe.isValidElement(e) ? fe.cloneElement(e, { containerClassName: "slds-combobox__input-entity-icon" }) : null, n = C[0]?.label ? C[0].label : w;
|
|
617
|
+
return /* @__PURE__ */ m("div", {
|
|
615
618
|
className: "slds-form-element__control",
|
|
616
|
-
children: [/* @__PURE__ */
|
|
617
|
-
className:
|
|
618
|
-
children: /* @__PURE__ */
|
|
619
|
-
className:
|
|
620
|
-
"slds-is-open":
|
|
619
|
+
children: [/* @__PURE__ */ p("div", {
|
|
620
|
+
className: f("slds-combobox_container", { "slds-has-inline-listbox": C.length }),
|
|
621
|
+
children: /* @__PURE__ */ m("div", {
|
|
622
|
+
className: f("slds-combobox", "slds-dropdown-trigger", "slds-dropdown-trigger_click", "ignore-react-onclickoutside", {
|
|
623
|
+
"slds-is-open": H(),
|
|
621
624
|
"slds-has-error": _
|
|
622
|
-
},
|
|
625
|
+
}, g),
|
|
623
626
|
role: "combobox",
|
|
624
|
-
"aria-expanded":
|
|
627
|
+
"aria-expanded": H(),
|
|
625
628
|
"aria-haspopup": "listbox",
|
|
626
|
-
children: [/* @__PURE__ */
|
|
627
|
-
defaultValue: g,
|
|
629
|
+
children: [/* @__PURE__ */ p(o, {
|
|
628
630
|
"aria-autocomplete": "list",
|
|
629
|
-
"aria-controls":
|
|
631
|
+
"aria-controls": H() ? `${j()}-listbox` : void 0,
|
|
630
632
|
"aria-activedescendant": M ? `${j()}-listbox-option-${M.id}` : void 0,
|
|
631
|
-
"aria-describedby":
|
|
633
|
+
"aria-describedby": U(),
|
|
632
634
|
autoComplete: "off",
|
|
633
635
|
className: "slds-combobox__input",
|
|
634
636
|
containerProps: {
|
|
@@ -637,7 +639,7 @@ var m, be = typeof document < "u", xe = Symbol("actionItem"), Se = (e) => xe in
|
|
|
637
639
|
},
|
|
638
640
|
disabled: et,
|
|
639
641
|
hasSpinner: Re,
|
|
640
|
-
iconRight: C.length ? /* @__PURE__ */
|
|
642
|
+
iconRight: C.length ? /* @__PURE__ */ p(s, {
|
|
641
643
|
assistiveText: { icon: E.removeSingleSelectedOption },
|
|
642
644
|
buttonRef: (e) => {
|
|
643
645
|
st.current = e;
|
|
@@ -646,77 +648,77 @@ var m, be = typeof document < "u", xe = Symbol("actionItem"), Se = (e) => xe in
|
|
|
646
648
|
iconPosition: "right",
|
|
647
649
|
name: "close",
|
|
648
650
|
onClick: (e) => {
|
|
649
|
-
|
|
651
|
+
Ft(e, { option: C[0] });
|
|
650
652
|
}
|
|
651
|
-
}) : /* @__PURE__ */
|
|
653
|
+
}) : /* @__PURE__ */ p(s, {
|
|
652
654
|
category: "utility",
|
|
653
655
|
name: "search"
|
|
654
656
|
}),
|
|
655
657
|
iconLeft: t,
|
|
656
658
|
id: j(),
|
|
657
|
-
onFocus:
|
|
658
|
-
onBlur:
|
|
659
|
-
onKeyDown:
|
|
660
|
-
inputRef:
|
|
661
|
-
onClick: () =>
|
|
659
|
+
onFocus: Y,
|
|
660
|
+
onBlur: q,
|
|
661
|
+
onKeyDown: Z,
|
|
662
|
+
inputRef: Q,
|
|
663
|
+
onClick: (e) => Tt(e),
|
|
662
664
|
onChange: (e) => {
|
|
663
|
-
C.length ||
|
|
665
|
+
C.length || J(e);
|
|
664
666
|
},
|
|
665
667
|
placeholder: D.placeholder,
|
|
666
668
|
readOnly: !!(x && M) || !!C.length,
|
|
667
669
|
required: S,
|
|
668
670
|
role: "textbox",
|
|
669
671
|
value: x ? M?.label || w : n,
|
|
670
|
-
|
|
671
|
-
}),
|
|
672
|
+
...$
|
|
673
|
+
}), Ht({ menuRenderer: Gt() })]
|
|
672
674
|
})
|
|
673
|
-
}), _ && /* @__PURE__ */
|
|
675
|
+
}), _ && /* @__PURE__ */ p("div", {
|
|
674
676
|
className: "slds-has-error",
|
|
675
|
-
children: /* @__PURE__ */
|
|
676
|
-
id:
|
|
677
|
+
children: /* @__PURE__ */ p("div", {
|
|
678
|
+
id: U(),
|
|
677
679
|
className: "slds-form-element__help",
|
|
678
680
|
children: _
|
|
679
681
|
})
|
|
680
682
|
})]
|
|
681
683
|
});
|
|
682
|
-
},
|
|
683
|
-
let e = b?.props, t =
|
|
684
|
-
return /* @__PURE__ */
|
|
684
|
+
}, Yt = () => {
|
|
685
|
+
let e = b?.props, t = Vt(e?.body);
|
|
686
|
+
return /* @__PURE__ */ m("div", {
|
|
685
687
|
className: "slds-form-element__control",
|
|
686
|
-
children: [/* @__PURE__ */
|
|
688
|
+
children: [/* @__PURE__ */ p("div", {
|
|
687
689
|
className: "slds-combobox_container",
|
|
688
|
-
children: /* @__PURE__ */
|
|
689
|
-
className:
|
|
690
|
-
"slds-is-open":
|
|
690
|
+
children: /* @__PURE__ */ p("div", {
|
|
691
|
+
className: f("slds-combobox", "slds-dropdown-trigger", "slds-dropdown-trigger_click", "ignore-react-onclickoutside", {
|
|
692
|
+
"slds-is-open": H(),
|
|
691
693
|
"slds-has-error": _
|
|
692
|
-
},
|
|
694
|
+
}, g),
|
|
693
695
|
role: "combobox",
|
|
694
|
-
"aria-expanded":
|
|
696
|
+
"aria-expanded": H(),
|
|
695
697
|
"aria-haspopup": "dialog",
|
|
696
|
-
children: /* @__PURE__ */
|
|
698
|
+
children: /* @__PURE__ */ p(re, {
|
|
697
699
|
...t,
|
|
698
|
-
children: /* @__PURE__ */
|
|
700
|
+
children: /* @__PURE__ */ p(o, {
|
|
699
701
|
"aria-autocomplete": "none",
|
|
700
|
-
"aria-controls":
|
|
701
|
-
"aria-describedby":
|
|
702
|
+
"aria-controls": H() ? `${j()}-popover` : void 0,
|
|
703
|
+
"aria-describedby": U(),
|
|
702
704
|
autoComplete: "off",
|
|
703
705
|
className: "slds-combobox__input",
|
|
704
706
|
containerProps: {
|
|
705
707
|
className: "slds-combobox__form-element",
|
|
706
708
|
role: "none"
|
|
707
709
|
},
|
|
708
|
-
iconRight: /* @__PURE__ */
|
|
710
|
+
iconRight: /* @__PURE__ */ p(s, {
|
|
709
711
|
category: "utility",
|
|
710
712
|
name: "down",
|
|
711
713
|
variant: "combobox"
|
|
712
714
|
}),
|
|
713
715
|
id: j(),
|
|
714
|
-
onFocus:
|
|
715
|
-
onBlur:
|
|
716
|
-
onKeyDown:
|
|
717
|
-
inputRef:
|
|
718
|
-
onClick: () =>
|
|
719
|
-
onChange:
|
|
716
|
+
onFocus: Y,
|
|
717
|
+
onBlur: q,
|
|
718
|
+
onKeyDown: Z,
|
|
719
|
+
inputRef: Q,
|
|
720
|
+
onClick: (e) => K(e),
|
|
721
|
+
onChange: J,
|
|
720
722
|
placeholder: D.placeholder,
|
|
721
723
|
readOnly: !0,
|
|
722
724
|
required: S,
|
|
@@ -725,117 +727,115 @@ var m, be = typeof document < "u", xe = Symbol("actionItem"), Se = (e) => xe in
|
|
|
725
727
|
})
|
|
726
728
|
})
|
|
727
729
|
})
|
|
728
|
-
}), _ && /* @__PURE__ */
|
|
730
|
+
}), _ && /* @__PURE__ */ p("div", {
|
|
729
731
|
className: "slds-has-error",
|
|
730
|
-
children: /* @__PURE__ */
|
|
731
|
-
id:
|
|
732
|
+
children: /* @__PURE__ */ p("div", {
|
|
733
|
+
id: U(),
|
|
732
734
|
className: "slds-form-element__help slds-has-error",
|
|
733
735
|
children: _
|
|
734
736
|
})
|
|
735
737
|
})]
|
|
736
738
|
});
|
|
737
|
-
},
|
|
739
|
+
}, Xt = () => {
|
|
738
740
|
let e = C.length > 1 ? D.multipleOptionsSelected || `${C.length} options selected` : C[0]?.label || "";
|
|
739
|
-
return /* @__PURE__ */
|
|
741
|
+
return /* @__PURE__ */ m("div", {
|
|
740
742
|
className: "slds-form-element__control",
|
|
741
743
|
children: [
|
|
742
|
-
/* @__PURE__ */
|
|
744
|
+
/* @__PURE__ */ p("div", {
|
|
743
745
|
className: "slds-combobox_container",
|
|
744
|
-
children: /* @__PURE__ */
|
|
745
|
-
className:
|
|
746
|
-
"slds-is-open":
|
|
746
|
+
children: /* @__PURE__ */ m("div", {
|
|
747
|
+
className: f("slds-combobox", "slds-dropdown-trigger", "slds-dropdown-trigger_click", "ignore-react-onclickoutside", {
|
|
748
|
+
"slds-is-open": H(),
|
|
747
749
|
"slds-has-error": _
|
|
748
|
-
},
|
|
750
|
+
}, g),
|
|
749
751
|
role: "combobox",
|
|
750
|
-
"aria-expanded":
|
|
752
|
+
"aria-expanded": H(),
|
|
751
753
|
"aria-haspopup": "listbox",
|
|
752
|
-
children: [/* @__PURE__ */
|
|
753
|
-
defaultValue: g,
|
|
754
|
+
children: [/* @__PURE__ */ p(o, {
|
|
754
755
|
"aria-autocomplete": "list",
|
|
755
|
-
"aria-controls":
|
|
756
|
+
"aria-controls": H() ? `${j()}-listbox` : void 0,
|
|
756
757
|
"aria-activedescendant": M ? `${j()}-listbox-option-${M.id}` : void 0,
|
|
757
|
-
"aria-describedby":
|
|
758
|
+
"aria-describedby": U(),
|
|
758
759
|
autoComplete: "off",
|
|
759
760
|
className: "slds-combobox__input",
|
|
760
761
|
containerProps: {
|
|
761
762
|
className: "slds-combobox__form-element",
|
|
762
763
|
role: "none"
|
|
763
764
|
},
|
|
764
|
-
iconRight: /* @__PURE__ */
|
|
765
|
+
iconRight: /* @__PURE__ */ p(s, {
|
|
765
766
|
category: "utility",
|
|
766
767
|
name: "down",
|
|
767
768
|
variant: "combobox"
|
|
768
769
|
}),
|
|
769
770
|
id: j(),
|
|
770
|
-
onFocus:
|
|
771
|
-
onBlur:
|
|
772
|
-
onKeyDown:
|
|
773
|
-
inputRef:
|
|
774
|
-
onClick: () =>
|
|
771
|
+
onFocus: Y,
|
|
772
|
+
onBlur: q,
|
|
773
|
+
onKeyDown: Z,
|
|
774
|
+
inputRef: Q,
|
|
775
|
+
onClick: (e) => Tt(e),
|
|
775
776
|
onChange: (e) => {
|
|
776
|
-
C.length ||
|
|
777
|
+
C.length || J(e);
|
|
777
778
|
},
|
|
778
779
|
placeholder: D.placeholderReadOnly,
|
|
779
780
|
readOnly: !0,
|
|
780
781
|
required: S,
|
|
781
782
|
role: "textbox",
|
|
782
783
|
value: e,
|
|
783
|
-
|
|
784
|
-
}),
|
|
784
|
+
...$
|
|
785
|
+
}), Ht({ menuRenderer: Gt() })]
|
|
785
786
|
})
|
|
786
787
|
}),
|
|
787
|
-
/* @__PURE__ */
|
|
788
|
+
/* @__PURE__ */ p(se, {
|
|
788
789
|
activeOption: I,
|
|
789
790
|
activeOptionIndex: R,
|
|
790
791
|
assistiveText: E,
|
|
791
792
|
events: {
|
|
792
|
-
onBlurPill:
|
|
793
|
-
onPillFocus:
|
|
794
|
-
onRequestFocus:
|
|
795
|
-
onRequestFocusOnNextPill:
|
|
796
|
-
onRequestFocusOnPreviousPill:
|
|
797
|
-
onRequestRemove:
|
|
793
|
+
onBlurPill: Nt,
|
|
794
|
+
onPillFocus: Pt,
|
|
795
|
+
onRequestFocus: It,
|
|
796
|
+
onRequestFocusOnNextPill: X,
|
|
797
|
+
onRequestFocusOnPreviousPill: X,
|
|
798
|
+
onRequestRemove: Ft
|
|
798
799
|
},
|
|
799
800
|
id: `${j()}-selected-listbox`,
|
|
800
801
|
labels: D,
|
|
801
|
-
selectedListboxRef:
|
|
802
|
+
selectedListboxRef: Lt,
|
|
802
803
|
selection: C,
|
|
803
|
-
listboxHasFocus:
|
|
804
|
+
listboxHasFocus: ft,
|
|
804
805
|
variant: T,
|
|
805
806
|
renderAtSelectionLength: 2,
|
|
806
|
-
multiselectable:
|
|
807
|
+
multiselectable: v
|
|
807
808
|
}),
|
|
808
|
-
_ && /* @__PURE__ */
|
|
809
|
+
_ && /* @__PURE__ */ p("div", {
|
|
809
810
|
className: "slds-has-error",
|
|
810
|
-
children: /* @__PURE__ */
|
|
811
|
-
id:
|
|
811
|
+
children: /* @__PURE__ */ p("div", {
|
|
812
|
+
id: U(),
|
|
812
813
|
className: "slds-form-element__help slds-has-error",
|
|
813
814
|
children: _
|
|
814
815
|
})
|
|
815
816
|
})
|
|
816
817
|
]
|
|
817
818
|
});
|
|
818
|
-
},
|
|
819
|
+
}, Zt = () => {
|
|
819
820
|
let e = M?.label, t = C[0]?.label, n = e || t || "";
|
|
820
|
-
return C[0]?.value === "" && (n = ""), /* @__PURE__ */
|
|
821
|
+
return C[0]?.value === "" && (n = ""), /* @__PURE__ */ p("div", {
|
|
821
822
|
className: "slds-form-element__control",
|
|
822
|
-
children: /* @__PURE__ */
|
|
823
|
+
children: /* @__PURE__ */ p("div", {
|
|
823
824
|
className: "slds-combobox_container",
|
|
824
|
-
children: /* @__PURE__ */
|
|
825
|
-
className:
|
|
826
|
-
"slds-is-open":
|
|
825
|
+
children: /* @__PURE__ */ m("div", {
|
|
826
|
+
className: f("slds-combobox", "slds-dropdown-trigger", "slds-dropdown-trigger_click", "ignore-react-onclickoutside", {
|
|
827
|
+
"slds-is-open": H(),
|
|
827
828
|
"slds-has-error": _
|
|
828
|
-
},
|
|
829
|
+
}, g),
|
|
829
830
|
role: "combobox",
|
|
830
|
-
"aria-expanded":
|
|
831
|
+
"aria-expanded": H(),
|
|
831
832
|
"aria-haspopup": "listbox",
|
|
832
833
|
children: [
|
|
833
|
-
/* @__PURE__ */
|
|
834
|
-
defaultValue: g,
|
|
834
|
+
/* @__PURE__ */ p(o, {
|
|
835
835
|
"aria-autocomplete": "list",
|
|
836
|
-
"aria-controls":
|
|
836
|
+
"aria-controls": H() ? `${j()}-listbox` : void 0,
|
|
837
837
|
"aria-activedescendant": M ? `${j()}-listbox-option-${M.id}` : void 0,
|
|
838
|
-
"aria-describedby":
|
|
838
|
+
"aria-describedby": U(),
|
|
839
839
|
autoComplete: "off",
|
|
840
840
|
className: "slds-combobox__input",
|
|
841
841
|
containerProps: {
|
|
@@ -843,30 +843,30 @@ var m, be = typeof document < "u", xe = Symbol("actionItem"), Se = (e) => xe in
|
|
|
843
843
|
role: "none"
|
|
844
844
|
},
|
|
845
845
|
disabled: et,
|
|
846
|
-
iconRight: /* @__PURE__ */
|
|
846
|
+
iconRight: /* @__PURE__ */ p(s, {
|
|
847
847
|
category: "utility",
|
|
848
848
|
name: "down",
|
|
849
849
|
variant: "combobox"
|
|
850
850
|
}),
|
|
851
851
|
id: j(),
|
|
852
|
-
onFocus:
|
|
853
|
-
onBlur:
|
|
854
|
-
onKeyDown:
|
|
855
|
-
inputRef:
|
|
856
|
-
onClick: () =>
|
|
852
|
+
onFocus: Y,
|
|
853
|
+
onBlur: q,
|
|
854
|
+
onKeyDown: Z,
|
|
855
|
+
inputRef: Q,
|
|
856
|
+
onClick: (e) => Tt(e),
|
|
857
857
|
onChange: (e) => {
|
|
858
|
-
C.length ||
|
|
858
|
+
C.length || J(e);
|
|
859
859
|
},
|
|
860
860
|
placeholder: D.placeholderReadOnly,
|
|
861
861
|
readOnly: !0,
|
|
862
862
|
required: S,
|
|
863
863
|
role: "textbox",
|
|
864
864
|
value: n,
|
|
865
|
-
|
|
865
|
+
...$
|
|
866
866
|
}),
|
|
867
|
-
|
|
868
|
-
_ && /* @__PURE__ */
|
|
869
|
-
id:
|
|
867
|
+
Ht({ menuRenderer: Gt() }),
|
|
868
|
+
_ && /* @__PURE__ */ p("div", {
|
|
869
|
+
id: U(),
|
|
870
870
|
className: "slds-form-element__help",
|
|
871
871
|
children: _
|
|
872
872
|
})
|
|
@@ -874,60 +874,60 @@ var m, be = typeof document < "u", xe = Symbol("actionItem"), Se = (e) => xe in
|
|
|
874
874
|
})
|
|
875
875
|
})
|
|
876
876
|
});
|
|
877
|
-
},
|
|
877
|
+
}, Qt = D.label || E?.label, $t = {
|
|
878
878
|
base: {
|
|
879
|
-
multiple:
|
|
880
|
-
single:
|
|
879
|
+
multiple: Kt,
|
|
880
|
+
single: Kt
|
|
881
881
|
},
|
|
882
882
|
"inline-listbox": {
|
|
883
|
-
multiple:
|
|
884
|
-
single:
|
|
883
|
+
multiple: qt,
|
|
884
|
+
single: Jt
|
|
885
885
|
},
|
|
886
886
|
popover: {
|
|
887
|
-
multiple:
|
|
888
|
-
single:
|
|
887
|
+
multiple: Yt,
|
|
888
|
+
single: Yt
|
|
889
889
|
},
|
|
890
890
|
readonly: {
|
|
891
|
-
multiple:
|
|
892
|
-
single:
|
|
891
|
+
multiple: Xt,
|
|
892
|
+
single: Zt
|
|
893
893
|
}
|
|
894
|
-
},
|
|
895
|
-
className:
|
|
894
|
+
}, en = v ? "multiple" : "single", tn = $t[T]?.[en], nn = /* @__PURE__ */ m("div", {
|
|
895
|
+
className: f("slds-form-element", ke),
|
|
896
896
|
children: [
|
|
897
|
-
Pe ? null : /* @__PURE__ */
|
|
897
|
+
Pe ? null : /* @__PURE__ */ p(ae, {
|
|
898
898
|
assistiveText: E,
|
|
899
899
|
htmlFor: j(),
|
|
900
900
|
label: D.label,
|
|
901
901
|
required: S
|
|
902
902
|
}),
|
|
903
|
-
Ie &&
|
|
904
|
-
|
|
903
|
+
Ie && Qt ? /* @__PURE__ */ p(ne, { fieldLevelHelpTooltip: Ie }) : null,
|
|
904
|
+
tn ? tn() : $t.base.multiple()
|
|
905
905
|
]
|
|
906
906
|
});
|
|
907
|
-
return Pe ? /* @__PURE__ */
|
|
907
|
+
return Pe ? /* @__PURE__ */ m("div", {
|
|
908
908
|
className: "slds-form-element",
|
|
909
|
-
children: [/* @__PURE__ */
|
|
909
|
+
children: [/* @__PURE__ */ p(ae, {
|
|
910
910
|
assistiveText: E,
|
|
911
911
|
htmlFor: j(),
|
|
912
912
|
label: D.label,
|
|
913
913
|
required: S
|
|
914
|
-
}), /* @__PURE__ */
|
|
914
|
+
}), /* @__PURE__ */ p("div", {
|
|
915
915
|
className: "slds-form-element__control",
|
|
916
|
-
children: /* @__PURE__ */
|
|
916
|
+
children: /* @__PURE__ */ m("div", {
|
|
917
917
|
className: "slds-combobox-group",
|
|
918
|
-
children: [/* @__PURE__ */
|
|
918
|
+
children: [/* @__PURE__ */ p("div", {
|
|
919
919
|
className: "slds-combobox_object-switcher slds-combobox-addon_start",
|
|
920
920
|
children: Pe
|
|
921
|
-
}), /* @__PURE__ */
|
|
921
|
+
}), /* @__PURE__ */ p("div", {
|
|
922
922
|
className: "slds-combobox_container slds-combobox-addon_end",
|
|
923
|
-
children:
|
|
923
|
+
children: nn
|
|
924
924
|
})]
|
|
925
925
|
})
|
|
926
926
|
})]
|
|
927
|
-
}) :
|
|
927
|
+
}) : nn;
|
|
928
928
|
};
|
|
929
|
-
|
|
929
|
+
Ee.displayName = e;
|
|
930
930
|
//#endregion
|
|
931
|
-
export {
|
|
931
|
+
export { Ee as default };
|
|
932
932
|
|
|
933
933
|
//# sourceMappingURL=combobox.js.map
|