@salesforce/design-system-react 11.0.0-alpha.6 → 11.0.0-alpha.7
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/panel.cjs +1 -1
- package/dist/cjs/components/accordion/panel.cjs.map +1 -1
- package/dist/cjs/components/badge/index.cjs +1 -1
- package/dist/cjs/components/badge/index.cjs.map +1 -1
- package/dist/cjs/components/builder-header/check-props.cjs +2 -0
- package/dist/cjs/components/builder-header/check-props.cjs.map +1 -0
- package/dist/cjs/components/builder-header/component.cjs +2 -0
- package/dist/cjs/components/builder-header/component.cjs.map +1 -0
- package/dist/cjs/components/builder-header/toolbar.cjs +1 -1
- package/dist/cjs/components/builder-header/toolbar.cjs.map +1 -1
- package/dist/cjs/components/carousel/check-props.cjs +2 -0
- package/dist/cjs/components/carousel/check-props.cjs.map +1 -0
- package/dist/cjs/components/carousel/component.cjs +2 -0
- package/dist/cjs/components/carousel/component.cjs.map +1 -0
- package/dist/cjs/components/carousel/index.cjs +1 -1
- package/dist/cjs/components/carousel/index.cjs.map +1 -1
- package/dist/cjs/components/carousel/private/carousel-item.cjs +1 -1
- package/dist/cjs/components/carousel/private/carousel-item.cjs.map +1 -1
- package/dist/cjs/components/checkbox/check-props.cjs +2 -0
- package/dist/cjs/components/checkbox/check-props.cjs.map +1 -0
- package/dist/cjs/components/checkbox/component.cjs +2 -0
- package/dist/cjs/components/checkbox/component.cjs.map +1 -0
- package/dist/cjs/components/checkbox/index.cjs +1 -1
- package/dist/cjs/components/checkbox/index.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.map +1 -1
- package/dist/cjs/components/combobox/private/menu.cjs +1 -1
- package/dist/cjs/components/combobox/private/menu.cjs.map +1 -1
- package/dist/cjs/components/dynamic-icon/index.cjs +1 -1
- package/dist/cjs/components/dynamic-icon/index.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/menu-dropdown/check-props.cjs +1 -1
- package/dist/cjs/components/menu-dropdown/check-props.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/page-header/check-props.cjs +2 -0
- package/dist/cjs/components/page-header/check-props.cjs.map +1 -0
- package/dist/cjs/components/page-header/component.cjs +2 -0
- package/dist/cjs/components/page-header/component.cjs.map +1 -0
- package/dist/cjs/components/page-header/index.cjs +1 -1
- package/dist/cjs/components/page-header/index.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/base/index.cjs +1 -1
- package/dist/cjs/components/page-header/private/base/index.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/controls.cjs +1 -1
- package/dist/cjs/components/page-header/private/controls.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/object-home/index.cjs +1 -1
- package/dist/cjs/components/page-header/private/object-home/index.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/record-home/index.cjs +1 -1
- package/dist/cjs/components/page-header/private/record-home/index.cjs.map +1 -1
- package/dist/cjs/components/page-header/private/related-list/index.cjs +1 -1
- package/dist/cjs/components/page-header/private/related-list/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/progress-indicator/check-props.cjs +1 -1
- package/dist/cjs/components/progress-indicator/check-props.cjs.map +1 -1
- package/dist/cjs/components/progress-indicator/component.cjs +2 -0
- package/dist/cjs/components/progress-indicator/component.cjs.map +1 -0
- package/dist/cjs/components/progress-indicator/index.cjs +1 -1
- package/dist/cjs/components/progress-indicator/index.cjs.map +1 -1
- package/dist/cjs/components/progress-indicator/private/step-vertical.cjs +1 -1
- package/dist/cjs/components/progress-indicator/private/step-vertical.cjs.map +1 -1
- package/dist/cjs/components/radio/check-props.cjs +2 -0
- package/dist/cjs/components/radio/check-props.cjs.map +1 -0
- package/dist/cjs/components/radio/component.cjs +2 -0
- package/dist/cjs/components/radio/component.cjs.map +1 -0
- package/dist/cjs/components/radio/index.cjs +1 -1
- package/dist/cjs/components/radio/index.cjs.map +1 -1
- package/dist/cjs/components/setup-assistant/check-props.cjs +1 -1
- package/dist/cjs/components/setup-assistant/check-props.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/index.cjs +1 -1
- package/dist/cjs/components/simple-data-table/index.cjs.map +1 -1
- package/dist/cjs/components/slider/check-props.cjs +2 -0
- package/dist/cjs/components/slider/check-props.cjs.map +1 -0
- package/dist/cjs/components/slider/component.cjs +2 -0
- package/dist/cjs/components/slider/component.cjs.map +1 -0
- 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/check-props.cjs +1 -1
- package/dist/cjs/components/split-view/check-props.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 +2 -0
- package/dist/cjs/components/split-view/listbox-check-props.cjs.map +1 -0
- 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/split-view/private/list-item-content.cjs +1 -1
- package/dist/cjs/components/split-view/private/list-item-content.cjs.map +1 -1
- package/dist/cjs/components/split-view/private/list-item-with-content.cjs +1 -1
- package/dist/cjs/components/split-view/private/list-item-with-content.cjs.map +1 -1
- package/dist/cjs/components/split-view/private/toggle-button.cjs +1 -1
- package/dist/cjs/components/split-view/private/toggle-button.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/tree/check-props.cjs +1 -1
- package/dist/cjs/components/tree/check-props.cjs.map +1 -1
- package/dist/cjs/components/tree/component.cjs +2 -0
- package/dist/cjs/components/tree/component.cjs.map +1 -0
- package/dist/cjs/components/tree/tree.cjs +1 -1
- package/dist/cjs/components/tree/tree.cjs.map +1 -1
- package/dist/cjs/components/trial-bar/check-props.cjs +2 -0
- package/dist/cjs/components/trial-bar/check-props.cjs.map +1 -0
- package/dist/cjs/components/trial-bar/component.cjs +2 -0
- package/dist/cjs/components/trial-bar/component.cjs.map +1 -0
- package/dist/cjs/components/trial-bar/index.cjs +1 -1
- package/dist/cjs/components/trial-bar/index.cjs.map +1 -1
- package/dist/cjs/components/utilities/menu-list/index.cjs +1 -1
- package/dist/cjs/components/utilities/menu-list/index.cjs.map +1 -1
- package/dist/cjs/components/utilities/menu-list/item.cjs +1 -1
- package/dist/cjs/components/utilities/menu-list/item.cjs.map +1 -1
- package/dist/cjs/components/utilities/utility-icon/index.cjs +1 -1
- package/dist/cjs/components/utilities/utility-icon/index.cjs.map +1 -1
- package/dist/cjs/components/vertical-navigation/private/item.cjs +1 -1
- package/dist/cjs/components/vertical-navigation/private/item.cjs.map +1 -1
- package/dist/cjs/components/welcome-mat/check-props.cjs +2 -0
- package/dist/cjs/components/welcome-mat/check-props.cjs.map +1 -0
- package/dist/cjs/components/welcome-mat/component.cjs +2 -0
- package/dist/cjs/components/welcome-mat/component.cjs.map +1 -0
- package/dist/cjs/components/welcome-mat/index.cjs +1 -1
- package/dist/cjs/components/welcome-mat/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/warning/deprecated-property-value.cjs +2 -0
- package/dist/cjs/utilities/warning/deprecated-property-value.cjs.map +1 -0
- package/dist/es/components/accordion/panel.js +1 -1
- package/dist/es/components/accordion/panel.js.map +1 -1
- package/dist/es/components/badge/index.js +6 -5
- package/dist/es/components/badge/index.js.map +1 -1
- package/dist/es/components/builder-header/check-props.js +13 -0
- package/dist/es/components/builder-header/check-props.js.map +1 -0
- package/dist/es/components/builder-header/component.js +65 -0
- package/dist/es/components/builder-header/component.js.map +1 -0
- package/dist/es/components/builder-header/toolbar.js +18 -13
- package/dist/es/components/builder-header/toolbar.js.map +1 -1
- package/dist/es/components/carousel/check-props.js +13 -0
- package/dist/es/components/carousel/check-props.js.map +1 -0
- package/dist/es/components/carousel/component.js +27 -0
- package/dist/es/components/carousel/component.js.map +1 -0
- package/dist/es/components/carousel/index.js +121 -109
- package/dist/es/components/carousel/index.js.map +1 -1
- package/dist/es/components/carousel/private/carousel-item.js +1 -2
- package/dist/es/components/carousel/private/carousel-item.js.map +1 -1
- package/dist/es/components/checkbox/check-props.js +14 -0
- package/dist/es/components/checkbox/check-props.js.map +1 -0
- package/dist/es/components/checkbox/component.js +35 -0
- package/dist/es/components/checkbox/component.js.map +1 -0
- package/dist/es/components/checkbox/index.js +124 -112
- package/dist/es/components/checkbox/index.js.map +1 -1
- package/dist/es/components/combobox/check-props.js +1 -1
- package/dist/es/components/combobox/check-props.js.map +1 -1
- package/dist/es/components/combobox/combobox.js +208 -200
- package/dist/es/components/combobox/combobox.js.map +1 -1
- package/dist/es/components/combobox/index.js.map +1 -1
- package/dist/es/components/combobox/private/menu.js +5 -7
- package/dist/es/components/combobox/private/menu.js.map +1 -1
- package/dist/es/components/dynamic-icon/index.js +1 -1
- package/dist/es/components/dynamic-icon/index.js.map +1 -1
- package/dist/es/components/input/index.js +138 -136
- package/dist/es/components/input/index.js.map +1 -1
- package/dist/es/components/menu-dropdown/check-props.js +1 -1
- package/dist/es/components/menu-dropdown/check-props.js.map +1 -1
- package/dist/es/components/menu-dropdown/index.js.map +1 -1
- package/dist/es/components/menu-dropdown/menu-dropdown.js +192 -185
- package/dist/es/components/menu-dropdown/menu-dropdown.js.map +1 -1
- package/dist/es/components/page-header/check-props.js +31 -0
- package/dist/es/components/page-header/check-props.js.map +1 -0
- package/dist/es/components/page-header/component.js +35 -0
- package/dist/es/components/page-header/component.js.map +1 -0
- package/dist/es/components/page-header/index.js +56 -38
- package/dist/es/components/page-header/index.js.map +1 -1
- package/dist/es/components/page-header/private/base/index.js +1 -1
- package/dist/es/components/page-header/private/base/index.js.map +1 -1
- package/dist/es/components/page-header/private/controls.js +1 -1
- package/dist/es/components/page-header/private/controls.js.map +1 -1
- package/dist/es/components/page-header/private/object-home/index.js +4 -4
- package/dist/es/components/page-header/private/object-home/index.js.map +1 -1
- package/dist/es/components/page-header/private/record-home/index.js +1 -1
- package/dist/es/components/page-header/private/record-home/index.js.map +1 -1
- package/dist/es/components/page-header/private/related-list/index.js +2 -2
- package/dist/es/components/page-header/private/related-list/index.js.map +1 -1
- package/dist/es/components/popover/popover.js +130 -130
- package/dist/es/components/popover/popover.js.map +1 -1
- package/dist/es/components/progress-indicator/check-props.js +11 -8
- package/dist/es/components/progress-indicator/check-props.js.map +1 -1
- package/dist/es/components/progress-indicator/component.js +35 -0
- package/dist/es/components/progress-indicator/component.js.map +1 -0
- package/dist/es/components/progress-indicator/index.js +74 -71
- package/dist/es/components/progress-indicator/index.js.map +1 -1
- package/dist/es/components/progress-indicator/private/step-vertical.js +23 -20
- package/dist/es/components/progress-indicator/private/step-vertical.js.map +1 -1
- package/dist/es/components/radio/check-props.js +13 -0
- package/dist/es/components/radio/check-props.js.map +1 -0
- package/dist/es/components/radio/component.js +24 -0
- package/dist/es/components/radio/component.js.map +1 -0
- package/dist/es/components/radio/index.js +94 -80
- package/dist/es/components/radio/index.js.map +1 -1
- package/dist/es/components/setup-assistant/check-props.js +12 -7
- package/dist/es/components/setup-assistant/check-props.js.map +1 -1
- package/dist/es/components/setup-assistant/step.js +7 -7
- package/dist/es/components/setup-assistant/step.js.map +1 -1
- package/dist/es/components/simple-data-table/check-props.js +1 -1
- package/dist/es/components/simple-data-table/check-props.js.map +1 -1
- package/dist/es/components/simple-data-table/index.js +17 -10
- package/dist/es/components/simple-data-table/index.js.map +1 -1
- package/dist/es/components/slider/check-props.js +17 -0
- package/dist/es/components/slider/check-props.js.map +1 -0
- package/dist/es/components/slider/component.js +35 -0
- package/dist/es/components/slider/component.js.map +1 -0
- package/dist/es/components/slider/index.js +69 -53
- package/dist/es/components/slider/index.js.map +1 -1
- package/dist/es/components/split-view/check-props.js +2 -2
- package/dist/es/components/split-view/check-props.js.map +1 -1
- package/dist/es/components/split-view/index.js +8 -5
- package/dist/es/components/split-view/index.js.map +1 -1
- package/dist/es/components/split-view/listbox-check-props.js +13 -0
- package/dist/es/components/split-view/listbox-check-props.js.map +1 -0
- package/dist/es/components/split-view/listbox.js +41 -35
- package/dist/es/components/split-view/listbox.js.map +1 -1
- package/dist/es/components/split-view/private/list-item-content.js +1 -1
- package/dist/es/components/split-view/private/list-item-content.js.map +1 -1
- package/dist/es/components/split-view/private/list-item-with-content.js +6 -1
- package/dist/es/components/split-view/private/list-item-with-content.js.map +1 -1
- package/dist/es/components/split-view/private/toggle-button.js +2 -2
- package/dist/es/components/split-view/private/toggle-button.js.map +1 -1
- package/dist/es/components/tabs/panel.js.map +1 -1
- package/dist/es/components/textarea/check-props.js +11 -10
- package/dist/es/components/textarea/check-props.js.map +1 -1
- package/dist/es/components/textarea/index.js +59 -47
- package/dist/es/components/textarea/index.js.map +1 -1
- package/dist/es/components/tree/check-props.js +10 -9
- package/dist/es/components/tree/check-props.js.map +1 -1
- package/dist/es/components/tree/component.js +25 -0
- package/dist/es/components/tree/component.js.map +1 -0
- package/dist/es/components/tree/tree.js +76 -74
- package/dist/es/components/tree/tree.js.map +1 -1
- package/dist/es/components/trial-bar/check-props.js +13 -0
- package/dist/es/components/trial-bar/check-props.js.map +1 -0
- package/dist/es/components/trial-bar/component.js +24 -0
- package/dist/es/components/trial-bar/component.js.map +1 -0
- package/dist/es/components/trial-bar/index.js +27 -21
- package/dist/es/components/trial-bar/index.js.map +1 -1
- package/dist/es/components/utilities/menu-list/index.js +1 -0
- package/dist/es/components/utilities/menu-list/index.js.map +1 -1
- package/dist/es/components/utilities/menu-list/item.js +5 -3
- package/dist/es/components/utilities/menu-list/item.js.map +1 -1
- package/dist/es/components/utilities/utility-icon/index.js +2 -1
- package/dist/es/components/utilities/utility-icon/index.js.map +1 -1
- package/dist/es/components/vertical-navigation/private/item.js +1 -1
- package/dist/es/components/vertical-navigation/private/item.js.map +1 -1
- package/dist/es/components/welcome-mat/check-props.js +13 -0
- package/dist/es/components/welcome-mat/check-props.js.map +1 -0
- package/dist/es/components/welcome-mat/component.js +46 -0
- package/dist/es/components/welcome-mat/component.js.map +1 -0
- package/dist/es/components/welcome-mat/index.js +61 -55
- package/dist/es/components/welcome-mat/index.js.map +1 -1
- package/dist/es/components/welcome-mat/info-badge.js +19 -11
- package/dist/es/components/welcome-mat/info-badge.js.map +1 -1
- package/dist/es/utilities/warning/deprecated-property-value.js +18 -0
- package/dist/es/utilities/warning/deprecated-property-value.js.map +1 -0
- package/dist/types/components/accordion/panel.d.ts.map +1 -1
- package/dist/types/components/badge/index.d.ts +4 -2
- package/dist/types/components/badge/index.d.ts.map +1 -1
- package/dist/types/components/builder-header/check-props.d.ts +3 -0
- package/dist/types/components/builder-header/check-props.d.ts.map +1 -0
- package/dist/types/components/builder-header/toolbar.d.ts +6 -4
- package/dist/types/components/builder-header/toolbar.d.ts.map +1 -1
- package/dist/types/components/carousel/check-props.d.ts +3 -0
- package/dist/types/components/carousel/check-props.d.ts.map +1 -0
- package/dist/types/components/carousel/index.d.ts +9 -7
- package/dist/types/components/carousel/index.d.ts.map +1 -1
- package/dist/types/components/carousel/private/carousel-item.d.ts +4 -4
- package/dist/types/components/carousel/private/carousel-item.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 +9 -3
- package/dist/types/components/checkbox/index.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 +29 -15
- package/dist/types/components/combobox/combobox.d.ts.map +1 -1
- package/dist/types/components/combobox/index.d.ts +1 -1
- package/dist/types/components/combobox/index.d.ts.map +1 -1
- package/dist/types/components/combobox/private/menu.d.ts +11 -6
- package/dist/types/components/combobox/private/menu.d.ts.map +1 -1
- package/dist/types/components/dynamic-icon/index.d.ts.map +1 -1
- package/dist/types/components/input/index.d.ts.map +1 -1
- package/dist/types/components/menu-dropdown/check-props.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 +22 -3
- package/dist/types/components/menu-dropdown/menu-dropdown.d.ts.map +1 -1
- package/dist/types/components/page-header/check-props.d.ts.map +1 -1
- package/dist/types/components/page-header/index.d.ts +15 -4
- package/dist/types/components/page-header/index.d.ts.map +1 -1
- package/dist/types/components/page-header/private/base/index.d.ts.map +1 -1
- package/dist/types/components/page-header/private/controls.d.ts +4 -4
- package/dist/types/components/page-header/private/controls.d.ts.map +1 -1
- package/dist/types/components/page-header/private/object-home/index.d.ts.map +1 -1
- package/dist/types/components/page-header/private/record-home/index.d.ts.map +1 -1
- package/dist/types/components/page-header/private/types.d.ts +6 -6
- package/dist/types/components/page-header/private/types.d.ts.map +1 -1
- package/dist/types/components/popover/popover.d.ts.map +1 -1
- package/dist/types/components/progress-indicator/check-props.d.ts.map +1 -1
- package/dist/types/components/progress-indicator/index.d.ts +7 -1
- package/dist/types/components/progress-indicator/index.d.ts.map +1 -1
- package/dist/types/components/progress-indicator/private/step-vertical.d.ts +4 -7
- package/dist/types/components/progress-indicator/private/step-vertical.d.ts.map +1 -1
- package/dist/types/components/radio/check-props.d.ts +1 -0
- package/dist/types/components/radio/check-props.d.ts.map +1 -1
- package/dist/types/components/radio/index.d.ts +10 -4
- package/dist/types/components/radio/index.d.ts.map +1 -1
- package/dist/types/components/setup-assistant/check-props.d.ts.map +1 -1
- package/dist/types/components/setup-assistant/step.d.ts +12 -6
- 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/index.d.ts.map +1 -1
- package/dist/types/components/simple-data-table/types.d.ts +21 -8
- package/dist/types/components/simple-data-table/types.d.ts.map +1 -1
- package/dist/types/components/slider/check-props.d.ts +3 -0
- package/dist/types/components/slider/check-props.d.ts.map +1 -0
- package/dist/types/components/slider/index.d.ts +26 -5
- package/dist/types/components/slider/index.d.ts.map +1 -1
- package/dist/types/components/split-view/check-props.d.ts.map +1 -1
- package/dist/types/components/split-view/index.d.ts +9 -5
- package/dist/types/components/split-view/index.d.ts.map +1 -1
- package/dist/types/components/split-view/listbox-check-props.d.ts +3 -0
- package/dist/types/components/split-view/listbox-check-props.d.ts.map +1 -0
- package/dist/types/components/split-view/listbox.d.ts +19 -3
- package/dist/types/components/split-view/listbox.d.ts.map +1 -1
- package/dist/types/components/split-view/private/list-item-with-content.d.ts +10 -1
- package/dist/types/components/split-view/private/list-item-with-content.d.ts.map +1 -1
- package/dist/types/components/split-view/private/toggle-button.d.ts +3 -3
- package/dist/types/components/split-view/private/toggle-button.d.ts.map +1 -1
- package/dist/types/components/tabs/panel.d.ts +5 -1
- 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 +23 -3
- package/dist/types/components/textarea/index.d.ts.map +1 -1
- package/dist/types/components/tree/check-props.d.ts.map +1 -1
- package/dist/types/components/tree/index.d.ts +1 -1
- package/dist/types/components/tree/index.d.ts.map +1 -1
- package/dist/types/components/tree/tree.d.ts +12 -4
- package/dist/types/components/tree/tree.d.ts.map +1 -1
- package/dist/types/components/tree/types.d.ts +7 -1
- package/dist/types/components/tree/types.d.ts.map +1 -1
- package/dist/types/components/trial-bar/check-props.d.ts +3 -0
- package/dist/types/components/trial-bar/check-props.d.ts.map +1 -0
- package/dist/types/components/trial-bar/index.d.ts +15 -7
- package/dist/types/components/trial-bar/index.d.ts.map +1 -1
- package/dist/types/components/utilities/menu-list/index.d.ts +5 -1
- package/dist/types/components/utilities/menu-list/index.d.ts.map +1 -1
- package/dist/types/components/utilities/menu-list/item.d.ts +3 -1
- package/dist/types/components/utilities/menu-list/item.d.ts.map +1 -1
- package/dist/types/components/utilities/utility-icon/index.d.ts.map +1 -1
- package/dist/types/components/welcome-mat/check-props.d.ts +3 -0
- package/dist/types/components/welcome-mat/check-props.d.ts.map +1 -0
- package/dist/types/components/welcome-mat/index.d.ts +9 -3
- package/dist/types/components/welcome-mat/index.d.ts.map +1 -1
- package/dist/types/components/welcome-mat/info-badge.d.ts +7 -3
- package/dist/types/components/welcome-mat/info-badge.d.ts.map +1 -1
- package/package.json +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/simple-data-table/index.tsx"],"sourcesContent":["/* eslint-disable max-lines */\n/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// # Data Table Component\n\n// Implements the [Data Table design pattern](https://www.lightningdesignsystem.com/components/data-tables) in React.\n\nimport React, { type ReactElement, type ReactNode } from 'react';\n\nimport classNames from 'classnames';\nimport assign from 'lodash.assign';\nimport { dequal as isEqual } from 'dequal';\nimport memoize from 'memoize-one';\nimport reject from 'lodash.reject';\n// This component's `checkProps` which issues warnings to developers about properties when in development mode (similar to React's built in development tools)\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\n\nimport {\n\tcanUseDOM,\n\tcanUseEventListeners,\n} from '../../utilities/execution-environment';\n// ## Children\nimport SimpleDataTableCell from './cell';\nimport SimpleDataTableColumn from './column';\nimport SimpleDataTableHead from './private/head';\nimport SimpleDataTableRow from './private/row';\nimport SimpleDataTableRowActions from './row-actions';\nimport TableContext from './private/table-context';\nimport Mode, { type ModeType } from './private/mode';\nimport Spinner from '../spinner';\n\nimport KEYS from '../../utilities/key-code';\nimport generateId from '../../utilities/generate-id';\nimport mapKeyEventCallbacks from '../../utilities/key-callbacks';\n\nimport {\n\tSIMPLE_DATA_TABLE,\n\tSIMPLE_DATA_TABLE_CELL,\n\tSIMPLE_DATA_TABLE_HEAD,\n\tSIMPLE_DATA_TABLE_ROW,\n} from '../../utilities/constants';\n\nimport type {\n\tSimpleDataTableProps,\n\tSimpleDataTableItem,\n\tSimpleDataTableColumnConfig,\n\tSimpleDataTableColumnProps,\n\tSimpleDataTableCellProps,\n\tSimpleDataTableAssistiveText,\n} from './types';\n\n// The main SimpleDataTable component's state.\ninterface SimpleDataTableState {\n\t// Currently selected cell\n\tactiveCell: { rowIndex: number; columnIndex: number };\n\t// Interactive element within a cell that receives focus when in actionable mode\n\tactiveElement: string | null;\n\t// The table can be in navigation or actionable mode\n\tmode: ModeType;\n\t// The table currently has focus\n\ttableHasFocus: boolean;\n\t// Allows for keyboard navigation\n\tallowKeyboardNavigation?: boolean;\n}\n\n// Safely get the length of an array, returning 0 for invalid input.\nconst count = (array: unknown): number =>\n\tArray.isArray(array) ? array.length : 0;\n\nconst defaultProps = {\n\tassistiveText: {\n\t\tactionsHeader: 'Actions',\n\t\tcolumnSort: 'Sort by: ',\n\t\tcolumnSortedAscending: 'Sorted Ascending',\n\t\tcolumnSortedDescending: 'Sorted Descending',\n\t\tselectAllRows: 'Select all rows',\n\t\tselectRow: 'Select row',\n\t\tselectRowGroup: 'Choose a row to select',\n\t\tloadingMore: 'Loading more',\n\t},\n\tselection: [] as SimpleDataTableItem[],\n\tdisabledSelection: [] as SimpleDataTableItem[],\n\thasMore: false,\n\tloadMoreOffset: 20,\n};\n\nconst getAssistiveText = memoize(\n\t(\n\t\tassistiveText: SimpleDataTableAssistiveText | undefined,\n\t\tactionsHeaderText: string | undefined,\n\t\tcolumnSortText: string | undefined,\n\t\tcolumnSortedAscendingText: string | undefined,\n\t\tcolumnSortedDescendingText: string | undefined,\n\t\tselectAllRowsText: string | undefined,\n\t\tselectRowText: string | undefined\n\t): SimpleDataTableAssistiveText => {\n\t\tconst result: SimpleDataTableAssistiveText = {\n\t\t\t...defaultProps.assistiveText,\n\t\t\t...assistiveText,\n\t\t};\n\t\tif (actionsHeaderText) {\n\t\t\tresult.actionsHeader = actionsHeaderText;\n\t\t}\n\t\tif (selectAllRowsText) {\n\t\t\tresult.selectAllRows = selectAllRowsText;\n\t\t}\n\t\tif (columnSortedAscendingText) {\n\t\t\tresult.columnSortedAscending = columnSortedAscendingText;\n\t\t}\n\t\tif (columnSortedDescendingText) {\n\t\t\tresult.columnSortedDescending = columnSortedDescendingText;\n\t\t}\n\t\tif (columnSortText) {\n\t\t\tresult.columnSort = columnSortText;\n\t\t}\n\t\tif (selectRowText) {\n\t\t\tresult.selectRow = selectRowText;\n\t\t}\n\t\treturn result;\n\t},\n\tisEqual\n);\n\nconst getColumnsAndRowActions = memoize(\n\t(\n\t\tchildren: ReactNode,\n\t\tid: string | undefined,\n\t\tfixedHeader: boolean | undefined,\n\t\tfixedLayout: boolean | undefined,\n\t\titems: SimpleDataTableItem[],\n\t\tsearch: string | undefined\n\t): {\n\t\tcolumns: SimpleDataTableColumnConfig[];\n\t\tRowActions: ReactElement | null;\n\t} => {\n\t\tconst columns: SimpleDataTableColumnConfig[] = [];\n\t\tlet RowActions: ReactElement | null = null;\n\n\t\tReact.Children.forEach(children, (child) => {\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t\tconst element = child as ReactElement<any> | null;\n\t\t\tconst elementType = element?.type as { displayName?: string } | undefined;\n\t\t\tif (\n\t\t\t\telement &&\n\t\t\t\telementType?.displayName === SimpleDataTableColumn.displayName\n\t\t\t) {\n\t\t\t\tconst { children: columnChildren, ...columnProps } = element.props;\n\t\t\t\tconst props: Record<string, unknown> = {\n\t\t\t\t\tfixedLayout,\n\t\t\t\t\tsearch,\n\t\t\t\t\titems,\n\t\t\t\t\t...columnProps,\n\t\t\t\t};\n\t\t\t\tif (id) {\n\t\t\t\t\tprops.id = id;\n\t\t\t\t}\n\n\t\t\t\tlet Cell;\n\t\t\t\tconst cellChild = columnChildren as ReactElement | undefined;\n\t\t\t\tconst cellChildType = cellChild?.type as\n\t\t\t\t\t{ displayName?: string } | undefined;\n\t\t\t\tif (\n\t\t\t\t\tcellChild &&\n\t\t\t\t\tcellChildType?.displayName === SIMPLE_DATA_TABLE_CELL\n\t\t\t\t) {\n\t\t\t\t\tCell = cellChild.type;\n\t\t\t\t\tassign(props, cellChild.props);\n\t\t\t\t} else {\n\t\t\t\t\tCell = SimpleDataTableCell;\n\t\t\t\t}\n\n\t\t\t\tcolumns.push({\n\t\t\t\t\tCell: Cell as React.ComponentType<SimpleDataTableCellProps>,\n\t\t\t\t\tprops: props as SimpleDataTableColumnProps,\n\t\t\t\t});\n\t\t\t} else if (\n\t\t\t\telement &&\n\t\t\t\telementType?.displayName === SimpleDataTableRowActions.displayName\n\t\t\t) {\n\t\t\t\tconst { dropdown } = element.props;\n\t\t\t\tconst dropdownPropOverrides: { menuPosition?: string } = {};\n\t\t\t\tif (fixedHeader) {\n\t\t\t\t\tdropdownPropOverrides.menuPosition = 'overflowBoundaryElement';\n\t\t\t\t}\n\t\t\t\tRowActions = React.cloneElement(element, {\n\t\t\t\t\tdropdown: dropdown\n\t\t\t\t\t\t? React.cloneElement(dropdown, dropdownPropOverrides)\n\t\t\t\t\t\t: null,\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\treturn { columns, RowActions };\n\t},\n\tisEqual\n);\n\n/**\n * SimpleDataTables support the display of structured data in rows and columns with an HTML table. To sort, filter or paginate the table, simply update the data passed in the items to the table and it will re-render itself appropriately. The table will throw a sort event as needed, and helper components for paging and filtering are coming soon.\n *\n * NOTE: for horizontal scrolling with `fixedHeader`-enabled SimpleDataTables, see the `style` property description\n */\nclass SimpleDataTable extends React.Component<\n\tSimpleDataTableProps,\n\tSimpleDataTableState\n> {\n\t// ### Display Name\n\t// Always use the canonical component name as the React display name.\n\tstatic displayName = SIMPLE_DATA_TABLE;\n\n\tstatic defaultProps = defaultProps;\n\n\tgeneratedId: string;\n\n\theaderRefs: {\n\t\taction: (HTMLElement | null)[];\n\t\tcolumn: (HTMLElement | null)[];\n\t\tselect: (HTMLElement | null)[];\n\t};\n\n\tscrollerRef: HTMLElement | null;\n\n\t// Map of cells to interactive elements within that cell\n\tinteractiveElements: Record<number, Record<number, string[]>>;\n\n\ttableRef?: HTMLTableElement | null;\n\n\tconstructor(props: SimpleDataTableProps) {\n\t\tsuper(props);\n\t\tthis.generatedId = generateId();\n\t\tthis.headerRefs = {\n\t\t\taction: [],\n\t\t\tcolumn: [],\n\t\t\tselect: [],\n\t\t};\n\t\tthis.scrollerRef = null;\n\t\tthis.state = {\n\t\t\t// Currently selected cell\n\t\t\tactiveCell: {\n\t\t\t\trowIndex: 1,\n\t\t\t\tcolumnIndex: this.props.selectRows ? 1 : 0,\n\t\t\t},\n\t\t\t// Interactive element within a cell that receives focus when in actionable mode\n\t\t\tactiveElement: null,\n\t\t\t// The table can be in navigation or actionable mode\n\t\t\tmode: Mode.NAVIGATION,\n\t\t\t// The table currently has focus\n\t\t\ttableHasFocus: false,\n\t\t\t// Allows for keyboard navigation. This is useful for temporarily disabling keyboard navigation\n\t\t\t// when another component requires its own focus behavior (e.g. menu dropdown).\n\t\t\tallowKeyboardNavigation: props.keyboardNavigation,\n\t\t};\n\t\t// Map of cells to interactive elements within that cell\n\t\tthis.interactiveElements = {};\n\t\tthis.changeActiveCell = this.changeActiveCell.bind(this);\n\t\tthis.changeActiveElement = this.changeActiveElement.bind(this);\n\t\tthis.handleKeyDown = this.handleKeyDown.bind(this);\n\t\tthis.registerInteractiveElement =\n\t\t\tthis.registerInteractiveElement.bind(this);\n\n\t\t// `checkProps` issues warnings to developers about properties (similar to React's built in development tools)\n\t\t(checkProps as (name: string, props: unknown, doc?: unknown) => void)(\n\t\t\tSIMPLE_DATA_TABLE,\n\t\t\tprops,\n\t\t\tcomponentDoc\n\t\t);\n\t}\n\n\tcomponentDidMount() {\n\t\tif (this.props.fixedHeader) {\n\t\t\tthis.toggleFixedHeaderListeners(true);\n\t\t\tthis.resizeFixedHeaders();\n\t\t}\n\t}\n\n\tcomponentDidUpdate(\n\t\t_prevProps: SimpleDataTableProps,\n\t\tprevState: SimpleDataTableState\n\t) {\n\t\tif (this.props.fixedHeader) {\n\t\t\tthis.resizeFixedHeaders();\n\t\t\t// If the first page of results isn't enough to allow the user to scroll it causes\n\t\t\t// the user to get into a state where they cannot load the second page.\n\t\t\t// Simulating a scroll here will ensure that enough rows are loaded to enable scrolling\n\t\t\tthis.loadMoreIfNeeded();\n\t\t}\n\n\t\tif (\n\t\t\tthis.state.allowKeyboardNavigation &&\n\t\t\t!prevState.allowKeyboardNavigation\n\t\t) {\n\t\t\t// When re-enabling keyboard navigation (e.g. when a dropdown closes), mark that\n\t\t\t// focus has returned to the table. This must wait until after `allowKeyboardNavigation`\n\t\t\t// is set in `onClose` because the callback could focus the incorrect element (e.g. dropdown\n\t\t\t// trigger) when it executes.\n\t\t\t// eslint-disable-next-line react/no-did-update-set-state\n\t\t\tthis.setState({ tableHasFocus: true });\n\t\t}\n\t}\n\n\tcomponentWillUnmount() {\n\t\tthis.toggleFixedHeaderListeners(false);\n\t}\n\n\tgetId() {\n\t\treturn this.props.id || this.generatedId;\n\t}\n\n\tgetFirstInteractiveElement(\n\t\trowIndex: number,\n\t\tcolumnIndex: number\n\t): string | null {\n\t\tif (\n\t\t\tthis.state.mode === Mode.ACTIONABLE &&\n\t\t\tthis.interactiveElements[rowIndex] &&\n\t\t\tthis.interactiveElements[rowIndex][columnIndex]\n\t\t) {\n\t\t\treturn this.interactiveElements[rowIndex][columnIndex][0];\n\t\t}\n\t\treturn null;\n\t}\n\n\tgetTableContext = memoize(\n\t\t(\n\t\t\tstate: SimpleDataTableState,\n\t\t\tisKeyboardNavigation: boolean | undefined\n\t\t) => ({\n\t\t\tactiveCell: state.activeCell,\n\t\t\tactiveElement: state.activeElement,\n\t\t\tmode: state.mode,\n\t\t\ttableHasFocus: state.tableHasFocus,\n\t\t\tchangeActiveCell: this.changeActiveCell,\n\t\t\tchangeActiveElement: this.changeActiveElement,\n\t\t\thandleKeyDown: this.handleKeyDown,\n\t\t\tregisterInteractiveElement: this.registerInteractiveElement,\n\t\t\tallowKeyboardNavigation: state.allowKeyboardNavigation ?? false,\n\t\t\tsetAllowKeyboardNavigation: (allowKeyboardNavigation: boolean) => {\n\t\t\t\tif (isKeyboardNavigation) {\n\t\t\t\t\tthis.setState({ allowKeyboardNavigation });\n\t\t\t\t}\n\t\t\t},\n\t\t})\n\t);\n\n\thandleToggleAll = (\n\t\te: React.SyntheticEvent,\n\t\t{ checked }: { checked: boolean }\n\t) => {\n\t\tconst selection = this.props.selection ?? [];\n\t\tconst disabledSelection = this.props.disabledSelection ?? [];\n\t\tconst selectedDisabledItems = selection.filter((item) =>\n\t\t\tdisabledSelection.includes(item)\n\t\t);\n\t\tconst enabledItems = this.props.items.filter(\n\t\t\t(item) => !disabledSelection.includes(item)\n\t\t);\n\n\t\tconst newSelection = (\n\t\t\tchecked\n\t\t\t\t? [...enabledItems, ...selectedDisabledItems]\n\t\t\t\t: [...selectedDisabledItems]\n\t\t).filter((item) => item.type !== 'header-row');\n\n\t\t// REMOVE AT NEXT BREAKING CHANGE\n\t\t// `onChange` is deprecated and replaced with `onRowChange`\n\t\tif (typeof this.props.onChange === 'function') {\n\t\t\tthis.props.onChange(newSelection, e);\n\t\t}\n\n\t\tif (typeof this.props.onRowChange === 'function') {\n\t\t\tthis.props.onRowChange(e, { selection: newSelection });\n\t\t}\n\t};\n\n\thandleRowToggle = (\n\t\titem: SimpleDataTableItem,\n\t\tselected: boolean,\n\t\te: React.SyntheticEvent\n\t) => {\n\t\t// REMOVE AT NEXT BREAKING CHANGE\n\t\t// `onChange` is deprecated and replaced with `onRowChange`\n\t\tif (typeof this.props.onChange === 'function') {\n\t\t\tlet selection;\n\n\t\t\tif (selected) {\n\t\t\t\tselection =\n\t\t\t\t\tthis.props.selectRows === 'radio'\n\t\t\t\t\t\t? [item]\n\t\t\t\t\t\t: [...(this.props.selection ?? []), item];\n\t\t\t} else {\n\t\t\t\tselection = reject(this.props.selection ?? [], item);\n\t\t\t}\n\n\t\t\tthis.props.onChange(selection, e);\n\t\t}\n\t\t// DEPRECATED CODE ENDS HERE\n\n\t\tif (typeof this.props.onRowChange === 'function') {\n\t\t\tlet selection;\n\n\t\t\tif (selected) {\n\t\t\t\tselection =\n\t\t\t\t\tthis.props.selectRows === 'radio'\n\t\t\t\t\t\t? [item]\n\t\t\t\t\t\t: [...(this.props.selection ?? []), item];\n\t\t\t} else {\n\t\t\t\tselection = reject(this.props.selection ?? [], item);\n\t\t\t}\n\n\t\t\tthis.props.onRowChange(e, { selection });\n\t\t}\n\t};\n\n\tresizeFixedHeaders = (event?: Event) => {\n\t\tconst headerRefs = [\n\t\t\t...this.headerRefs.select,\n\t\t\t...this.headerRefs.column,\n\t\t\t...this.headerRefs.action,\n\t\t];\n\n\t\tif (this.props.onFixedHeaderResize) {\n\t\t\tthis.props.onFixedHeaderResize(event ?? null, {\n\t\t\t\theaderRefs: headerRefs.filter(Boolean) as HTMLElement[],\n\t\t\t\tscrollerRef: this.scrollerRef,\n\t\t\t});\n\t\t} else if (headerRefs.length > 0) {\n\t\t\tlet documentScrollLeft = 0;\n\n\t\t\tif (canUseDOM) {\n\t\t\t\tdocumentScrollLeft = document.documentElement.scrollLeft;\n\t\t\t}\n\n\t\t\theaderRefs.forEach((column) => {\n\t\t\t\tif (column && canUseDOM) {\n\t\t\t\t\tconst columnLeft =\n\t\t\t\t\t\tcolumn.getBoundingClientRect().left + documentScrollLeft;\n\t\t\t\t\tlet wrapperLeft = 0;\n\n\t\t\t\t\tif (this.scrollerRef) {\n\t\t\t\t\t\twrapperLeft =\n\t\t\t\t\t\t\tthis.scrollerRef.getBoundingClientRect().left +\n\t\t\t\t\t\t\tdocumentScrollLeft;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst cellFixed = column.querySelector(\n\t\t\t\t\t\t'.slds-cell-fixed'\n\t\t\t\t\t) as HTMLElement | null;\n\n\t\t\t\t\tif (cellFixed) {\n\t\t\t\t\t\tcellFixed.style.left = `${columnLeft - wrapperLeft}px`;\n\t\t\t\t\t\tcellFixed.style.width = `${column.offsetWidth}px`;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t};\n\n\tloadMoreIfNeeded = () => {\n\t\tif (this.props.hasMore && this.props.onLoadMore && this.scrollerRef) {\n\t\t\tconst { scrollTop, offsetHeight, scrollHeight } = this.scrollerRef;\n\t\t\tif (\n\t\t\t\tscrollTop + offsetHeight >\n\t\t\t\tscrollHeight - (this.props.loadMoreOffset ?? 0)\n\t\t\t) {\n\t\t\t\tthis.props.onLoadMore();\n\t\t\t}\n\t\t}\n\t};\n\n\ttoggleFixedHeaderListeners = (attach: boolean) => {\n\t\tif (this.props.onToggleFixedHeaderListeners) {\n\t\t\tthis.props.onToggleFixedHeaderListeners(\n\t\t\t\t{},\n\t\t\t\t{\n\t\t\t\t\tattach,\n\t\t\t\t\tresizeHandler: this.resizeFixedHeaders,\n\t\t\t\t\tscrollerRef: this.scrollerRef,\n\t\t\t\t}\n\t\t\t);\n\t\t} else {\n\t\t\tconst method = attach ? 'addEventListener' : 'removeEventListener';\n\t\t\tif (canUseEventListeners) {\n\t\t\t\twindow[method]('resize', this.resizeFixedHeaders as EventListener);\n\t\t\t\twindow[method]('resize', this.loadMoreIfNeeded as EventListener);\n\t\t\t}\n\t\t\tif (canUseEventListeners && this.scrollerRef) {\n\t\t\t\tthis.scrollerRef[method](\n\t\t\t\t\t'scroll',\n\t\t\t\t\tthis.resizeFixedHeaders as EventListener\n\t\t\t\t);\n\t\t\t\tthis.scrollerRef[method](\n\t\t\t\t\t'scroll',\n\t\t\t\t\tthis.loadMoreIfNeeded as EventListener\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t};\n\n\t// eslint-disable-next-line camelcase\n\tUNSAFE_componentWillUpdate(nextProps: SimpleDataTableProps) {\n\t\tif (this.props.items !== nextProps.items) {\n\t\t\tthis.interactiveElements = {};\n\t\t}\n\t}\n\n\tchangeActiveCell(rowIndex: number, columnIndex: number) {\n\t\tthis.setState({\n\t\t\ttableHasFocus: true,\n\t\t\tactiveCell: { rowIndex, columnIndex },\n\t\t});\n\t}\n\n\tchangeActiveElement(activeElement: string | null) {\n\t\tthis.setState({ activeElement, mode: Mode.ACTIONABLE });\n\t}\n\n\thandleKeyDown(event: React.KeyboardEvent) {\n\t\tmapKeyEventCallbacks(event, {\n\t\t\tcallbacks: {\n\t\t\t\t[KEYS.UP]: { callback: () => this.handleKeyDownUp() },\n\t\t\t\t[KEYS.DOWN]: { callback: () => this.handleKeyDownDown() },\n\t\t\t\t[KEYS.LEFT]: { callback: () => this.handleKeyDownLeft() },\n\t\t\t\t[KEYS.RIGHT]: { callback: () => this.handleKeyDownRight() },\n\t\t\t\t[KEYS.ENTER]: { callback: () => this.handleKeyDownEnter() },\n\t\t\t\t[KEYS.ESCAPE]: { callback: () => this.handleKeyDownEscape() },\n\t\t\t\t[KEYS.TAB]:\n\t\t\t\t\tthis.state.mode === Mode.ACTIONABLE\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tcallback: (evt: React.KeyboardEvent) =>\n\t\t\t\t\t\t\t\t\tthis.handleKeyTabPress(evt),\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: null,\n\t\t\t},\n\t\t});\n\t}\n\n\thandleKeyDownUp() {\n\t\tconst newRowIndex = Math.max(this.state.activeCell.rowIndex - 1, 0);\n\t\tconst activeElement = this.getFirstInteractiveElement(\n\t\t\tnewRowIndex,\n\t\t\tthis.state.activeCell.columnIndex\n\t\t);\n\t\tif (newRowIndex !== this.state.activeCell.rowIndex) {\n\t\t\tthis.setState((prevState) => ({\n\t\t\t\tactiveCell: {\n\t\t\t\t\trowIndex: newRowIndex,\n\t\t\t\t\tcolumnIndex: prevState.activeCell.columnIndex,\n\t\t\t\t},\n\t\t\t\tactiveElement,\n\t\t\t}));\n\t\t}\n\t}\n\n\thandleKeyDownDown() {\n\t\tconst newRowIndex = Math.min(\n\t\t\tthis.state.activeCell.rowIndex + 1,\n\t\t\tthis.props.items.length\n\t\t);\n\t\tconst activeElement = this.getFirstInteractiveElement(\n\t\t\tnewRowIndex,\n\t\t\tthis.state.activeCell.columnIndex\n\t\t);\n\t\tif (newRowIndex !== this.state.activeCell.rowIndex) {\n\t\t\tthis.setState((prevState) => ({\n\t\t\t\tactiveCell: {\n\t\t\t\t\trowIndex: newRowIndex,\n\t\t\t\t\tcolumnIndex: prevState.activeCell.columnIndex,\n\t\t\t\t},\n\t\t\t\tactiveElement,\n\t\t\t}));\n\t\t}\n\t}\n\n\thandleKeyDownLeft() {\n\t\tconst newColumnIndex = Math.max(this.state.activeCell.columnIndex - 1, 0);\n\t\tconst activeElement = this.getFirstInteractiveElement(\n\t\t\tthis.state.activeCell.rowIndex,\n\t\t\tnewColumnIndex\n\t\t);\n\t\tif (newColumnIndex !== this.state.activeCell.columnIndex) {\n\t\t\tthis.setState((prevState) => ({\n\t\t\t\tactiveCell: {\n\t\t\t\t\trowIndex: prevState.activeCell.rowIndex,\n\t\t\t\t\tcolumnIndex: newColumnIndex,\n\t\t\t\t},\n\t\t\t\tactiveElement,\n\t\t\t}));\n\t\t}\n\t}\n\n\thandleKeyDownRight() {\n\t\tconst newColumnIndex = Math.min(\n\t\t\tthis.state.activeCell.columnIndex + 1,\n\t\t\tReact.Children.count(this.props.children) -\n\t\t\t\t(this.props.selectRows ? 0 : 1)\n\t\t);\n\t\tconst activeElement = this.getFirstInteractiveElement(\n\t\t\tthis.state.activeCell.rowIndex,\n\t\t\tnewColumnIndex\n\t\t);\n\t\tif (newColumnIndex !== this.state.activeCell.columnIndex) {\n\t\t\tthis.setState((prevState) => ({\n\t\t\t\tactiveCell: {\n\t\t\t\t\trowIndex: prevState.activeCell.rowIndex,\n\t\t\t\t\tcolumnIndex: newColumnIndex,\n\t\t\t\t},\n\t\t\t\tactiveElement,\n\t\t\t}));\n\t\t}\n\t}\n\n\thandleKeyDownEnter() {\n\t\tif (this.state.mode === Mode.NAVIGATION) {\n\t\t\tconst { rowIndex, columnIndex } = this.state.activeCell;\n\t\t\tlet activeElement: string | null = null;\n\t\t\tif (\n\t\t\t\tthis.interactiveElements[rowIndex] &&\n\t\t\t\tthis.interactiveElements[rowIndex][columnIndex]\n\t\t\t) {\n\t\t\t\t[activeElement] = this.interactiveElements[rowIndex][columnIndex];\n\t\t\t}\n\t\t\tthis.setState({\n\t\t\t\tmode: Mode.ACTIONABLE,\n\t\t\t\tactiveElement,\n\t\t\t});\n\t\t}\n\t}\n\n\thandleKeyDownEscape() {\n\t\tif (this.state.mode === Mode.ACTIONABLE) {\n\t\t\tthis.setState({\n\t\t\t\tmode: Mode.NAVIGATION,\n\t\t\t\tactiveElement: null,\n\t\t\t});\n\t\t}\n\t}\n\n\tmoveNext(event: React.KeyboardEvent, rowIndex: number, columnIndex: number) {\n\t\tconst headers = [\n\t\t\t...this.headerRefs.select,\n\t\t\t...this.headerRefs.column,\n\t\t\t...this.headerRefs.action,\n\t\t];\n\t\tlet newRowIndex = 0;\n\t\tlet newColumnIndex = 0;\n\n\t\tif (event.shiftKey) {\n\t\t\tif (columnIndex - 1 >= 0) {\n\t\t\t\tnewColumnIndex = columnIndex - 1;\n\t\t\t\tnewRowIndex = rowIndex;\n\t\t\t} else {\n\t\t\t\tif (rowIndex > 0) newRowIndex = rowIndex - 1;\n\t\t\t\telse newRowIndex = this.props.items.length;\n\n\t\t\t\tnewColumnIndex = headers.length - 1;\n\t\t\t}\n\t\t} else if (columnIndex + 1 < headers.length) {\n\t\t\tnewColumnIndex = columnIndex + 1;\n\t\t\tnewRowIndex = rowIndex;\n\t\t} else {\n\t\t\tif (rowIndex < this.props.items.length) newRowIndex = rowIndex + 1;\n\t\t\telse newRowIndex = 0;\n\n\t\t\tnewColumnIndex = 0;\n\t\t}\n\n\t\tthis.changeActiveCell(newRowIndex, newColumnIndex);\n\t}\n\n\thandleNextActionable(event: React.KeyboardEvent): string | null {\n\t\tconst { rowIndex, columnIndex } = this.state.activeCell;\n\t\tconst currentActiveElement = this.state.activeElement;\n\t\tconst rowActiveElements =\n\t\t\tthis.interactiveElements[rowIndex] &&\n\t\t\tthis.interactiveElements[rowIndex][columnIndex]\n\t\t\t\t? this.interactiveElements[rowIndex][columnIndex]\n\t\t\t\t: null;\n\n\t\tif (rowActiveElements) {\n\t\t\tif (currentActiveElement) {\n\t\t\t\tconst index = rowActiveElements.indexOf(currentActiveElement);\n\n\t\t\t\tif (event.shiftKey) {\n\t\t\t\t\treturn index > 0 ? rowActiveElements[index - 1] : null;\n\t\t\t\t}\n\t\t\t\treturn index < rowActiveElements.length - 1\n\t\t\t\t\t? rowActiveElements[index + 1]\n\t\t\t\t\t: null;\n\t\t\t}\n\t\t\treturn !event.shiftKey\n\t\t\t\t? rowActiveElements[0]\n\t\t\t\t: rowActiveElements[rowActiveElements.length - 1];\n\t\t}\n\t\treturn null;\n\t}\n\n\thandleKeyTabPress(event: React.KeyboardEvent) {\n\t\tconst { rowIndex, columnIndex } = this.state.activeCell;\n\n\t\tif (this.state.mode === Mode.ACTIONABLE) {\n\t\t\tconst nextActionable = this.handleNextActionable(event);\n\n\t\t\tif (nextActionable) {\n\t\t\t\tthis.setState({ activeElement: nextActionable });\n\t\t\t} else if (rowIndex === 0) {\n\t\t\t\tconst headers = [\n\t\t\t\t\t...this.headerRefs.select,\n\t\t\t\t\t...this.headerRefs.column,\n\t\t\t\t\t...this.headerRefs.action,\n\t\t\t\t];\n\t\t\t\tlet newIndex = 0;\n\n\t\t\t\tif (!event.shiftKey)\n\t\t\t\t\tnewIndex = columnIndex + 1 < headers.length ? columnIndex + 1 : 0;\n\t\t\t\telse\n\t\t\t\t\tnewIndex =\n\t\t\t\t\t\tcolumnIndex - 1 >= 0 ? columnIndex - 1 : headers.length - 1;\n\t\t\t\tthis.setState({\n\t\t\t\t\tmode: Mode.ACTIONABLE,\n\t\t\t\t\tactiveElement: null,\n\t\t\t\t});\n\n\t\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\t\theaders.forEach((header, index) => {\n\t\t\t\t\tif (!header) return;\n\t\t\t\t\tif (index === newIndex) {\n\t\t\t\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\t\t\t\theader.tabIndex = 0;\n\t\t\t\t\t\theader.focus();\n\t\t\t\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\t\t\t} else header.tabIndex = -1;\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis.moveNext(event, rowIndex, columnIndex);\n\t\t\t\tthis.setState({\n\t\t\t\t\tmode: Mode.ACTIONABLE,\n\t\t\t\t\tactiveElement: null,\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\tregisterInteractiveElement(\n\t\trowIndex: number,\n\t\tcolumnIndex: number,\n\t\telementId: string\n\t) {\n\t\tif (!this.interactiveElements[rowIndex]) {\n\t\t\tthis.interactiveElements[rowIndex] = {};\n\t\t}\n\t\tconst existingElements =\n\t\t\tthis.interactiveElements[rowIndex][columnIndex] || [];\n\n\t\tif (!existingElements.includes(elementId)) {\n\t\t\tthis.interactiveElements[rowIndex][columnIndex] = [\n\t\t\t\t...existingElements,\n\t\t\t\telementId,\n\t\t\t];\n\t\t}\n\t}\n\n\t// ### Render\n\trender() {\n\t\tconst ariaProps: { 'aria-multiselectable'?: 'true' } = {};\n\t\tconst numHeaderRows = 1;\n\t\tconst selection = this.props.selection ?? [];\n\t\tconst disabledSelection = this.props.disabledSelection ?? [];\n\t\tconst numRows = count(this.props.items);\n\t\tconst numSelected = count(\n\t\t\tselection.filter((item) => !disabledSelection.includes(item))\n\t\t);\n\t\tconst numNonHeaderRows = count(\n\t\t\tthis.props.items.filter(\n\t\t\t\t(item) =>\n\t\t\t\t\titem.type !== 'header-row' && !disabledSelection.includes(item)\n\t\t\t)\n\t\t);\n\t\tconst canSelectRows =\n\t\t\tthis.props.selectRows && numNonHeaderRows > 0\n\t\t\t\t? this.props.selectRows\n\t\t\t\t: false;\n\t\tconst allSelected = canSelectRows && numNonHeaderRows === numSelected;\n\t\tconst indeterminateSelected =\n\t\t\tcanSelectRows && numNonHeaderRows !== numSelected && numSelected !== 0;\n\n\t\tconst { columns, RowActions } = getColumnsAndRowActions(\n\t\t\tthis.props.children,\n\t\t\tthis.props.id,\n\t\t\tthis.props.fixedHeader,\n\t\t\tthis.props.fixedLayout,\n\t\t\tthis.props.items,\n\t\t\tthis.props.search\n\t\t);\n\n\t\tconst assistiveText = getAssistiveText(\n\t\t\tthis.props.assistiveText,\n\t\t\tthis.props.assistiveTextForActionsHeader,\n\t\t\tthis.props.assistiveTextForSelectAllRows,\n\t\t\tthis.props.assistiveTextForColumnSortedAscending,\n\t\t\tthis.props.assistiveTextForColumnSortedDescending,\n\t\t\tthis.props.assistiveTextForColumnSort,\n\t\t\tthis.props.assistiveTextForSelectRow\n\t\t);\n\n\t\tif (this.props.selectRows && this.props.selectRows !== 'radio') {\n\t\t\tariaProps['aria-multiselectable'] = 'true';\n\t\t}\n\n\t\t// This guarantees there are never any old header references if props change\n\t\tthis.headerRefs = {\n\t\t\taction: RowActions ? this.headerRefs.action : [],\n\t\t\tcolumn: this.headerRefs.column.slice(0, columns.length),\n\t\t\tselect: canSelectRows ? this.headerRefs.select : [],\n\t\t};\n\n\t\tlet component = (\n\t\t\t<React.Fragment>\n\t\t\t\t<TableContext.Provider\n\t\t\t\t\tvalue={this.getTableContext(\n\t\t\t\t\t\tthis.state,\n\t\t\t\t\t\tthis.props.keyboardNavigation\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t<table\n\t\t\t\t\t\t{...ariaProps}\n\t\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t\t'slds-table',\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t'slds-table_fixed-layout': this.props.fixedLayout,\n\t\t\t\t\t\t\t\t'slds-table_header-fixed': this.props.fixedHeader,\n\t\t\t\t\t\t\t\t'slds-table_resizable-cols': this.props.fixedLayout,\n\t\t\t\t\t\t\t\t'slds-table_bordered': !this.props.unborderedRow,\n\t\t\t\t\t\t\t\t'slds-table_cell-buffer':\n\t\t\t\t\t\t\t\t\t!this.props.fixedLayout && !this.props.unbufferedCell,\n\t\t\t\t\t\t\t\t'slds-max-medium-table_stacked': this.props.stacked,\n\t\t\t\t\t\t\t\t'slds-max-medium-table_stacked-horizontal':\n\t\t\t\t\t\t\t\t\tthis.props.stackedHorizontal,\n\t\t\t\t\t\t\t\t'slds-table_striped': this.props.striped,\n\t\t\t\t\t\t\t\t'slds-table_col-bordered': this.props.columnBordered,\n\t\t\t\t\t\t\t\t'slds-no-row-hover': this.props.noRowHover,\n\t\t\t\t\t\t\t\t'slds-table_header-hidden': this.props.isHeadless,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tthis.props.className\n\t\t\t\t\t\t)}\n\t\t\t\t\t\tid={this.getId()}\n\t\t\t\t\t\tref={(node) => {\n\t\t\t\t\t\t\tif (node) {\n\t\t\t\t\t\t\t\tthis.tableRef = node;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}}\n\t\t\t\t\t\trole={this.props.fixedLayout ? 'grid' : undefined}\n\t\t\t\t\t\tonBlur={(event) => {\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tthis.tableRef &&\n\t\t\t\t\t\t\t\t!this.tableRef.contains(event.relatedTarget as Node)\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tthis.setState({\n\t\t\t\t\t\t\t\t\ttableHasFocus: false,\n\t\t\t\t\t\t\t\t\tmode: Mode.NAVIGATION,\n\t\t\t\t\t\t\t\t\tactiveElement: null,\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tstyle={this.props.style}\n\t\t\t\t\t>\n\t\t\t\t\t\t<SimpleDataTableHead\n\t\t\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\t\t\tallSelected={allSelected}\n\t\t\t\t\t\t\tfixedHeader={this.props.fixedHeader}\n\t\t\t\t\t\t\tfixedLayout={this.props.fixedLayout}\n\t\t\t\t\t\t\theaderRefs={(ref, index) => {\n\t\t\t\t\t\t\t\tif (index === 'action' || index === 'select') {\n\t\t\t\t\t\t\t\t\tif (ref) {\n\t\t\t\t\t\t\t\t\t\tthis.headerRefs[index][0] = ref;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tthis.headerRefs[index] = [];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tthis.headerRefs.column[index] = ref;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tisHidden={this.props.isHeadless}\n\t\t\t\t\t\t\tindeterminateSelected={indeterminateSelected}\n\t\t\t\t\t\t\tcanSelectRows={canSelectRows}\n\t\t\t\t\t\t\tcolumns={columns}\n\t\t\t\t\t\t\tid={`${this.getId()}-${SIMPLE_DATA_TABLE_HEAD}`}\n\t\t\t\t\t\t\tonToggleAll={this.handleToggleAll}\n\t\t\t\t\t\t\tonSort={this.props.onSort}\n\t\t\t\t\t\t\tshowRowActions={!!RowActions}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t{numRows > 0\n\t\t\t\t\t\t\t\t? this.props.items.map((item, index) => {\n\t\t\t\t\t\t\t\t\t\tconst rowId =\n\t\t\t\t\t\t\t\t\t\t\tthis.getId() && item.id\n\t\t\t\t\t\t\t\t\t\t\t\t? `${this.getId()}-${SIMPLE_DATA_TABLE_ROW}-${item.id}`\n\t\t\t\t\t\t\t\t\t\t\t\t: generateId();\n\t\t\t\t\t\t\t\t\t\treturn this.props.onRenderSubHeadingRow &&\n\t\t\t\t\t\t\t\t\t\t\titem.type === 'header-row' ? (\n\t\t\t\t\t\t\t\t\t\t\tthis.props.onRenderSubHeadingRow({\n\t\t\t\t\t\t\t\t\t\t\t\tassistiveText,\n\t\t\t\t\t\t\t\t\t\t\t\tclassNameRow: item.classNameRow,\n\t\t\t\t\t\t\t\t\t\t\t\tcolumns,\n\t\t\t\t\t\t\t\t\t\t\t\tkey: rowId,\n\t\t\t\t\t\t\t\t\t\t\t\tid: rowId,\n\t\t\t\t\t\t\t\t\t\t\t\ttableId: this.getId(),\n\t\t\t\t\t\t\t\t\t\t\t\titem,\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t\t<SimpleDataTableRow\n\t\t\t\t\t\t\t\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\t\t\t\t\t\t\t\tcanSelectRows={canSelectRows}\n\t\t\t\t\t\t\t\t\t\t\t\tclassName={item.classNameRow}\n\t\t\t\t\t\t\t\t\t\t\t\tcolumns={columns}\n\t\t\t\t\t\t\t\t\t\t\t\tfixedLayout={this.props.fixedLayout}\n\t\t\t\t\t\t\t\t\t\t\t\tid={rowId}\n\t\t\t\t\t\t\t\t\t\t\t\tindex={index}\n\t\t\t\t\t\t\t\t\t\t\t\titem={item}\n\t\t\t\t\t\t\t\t\t\t\t\tkey={rowId}\n\t\t\t\t\t\t\t\t\t\t\t\tonToggle={this.handleRowToggle}\n\t\t\t\t\t\t\t\t\t\t\t\tselection={this.props.selection}\n\t\t\t\t\t\t\t\t\t\t\t\tdisabledSelection={this.props.disabledSelection}\n\t\t\t\t\t\t\t\t\t\t\t\trowActions={RowActions}\n\t\t\t\t\t\t\t\t\t\t\t\ttableId={this.getId()}\n\t\t\t\t\t\t\t\t\t\t\t\trowIndex={index + numHeaderRows}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t: // Someday this should be an element to render when the table is empty\n\t\t\t\t\t\t\t\t\tnull}\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t</table>\n\t\t\t\t</TableContext.Provider>\n\t\t\t\t{this.props.fixedHeader && this.props.hasMore && (\n\t\t\t\t\t<div className=\"slds-is-relative slds-p-around_large\">\n\t\t\t\t\t\t<Spinner\n\t\t\t\t\t\t\tassistiveText={{ label: this.props.assistiveText?.loadingMore }}\n\t\t\t\t\t\t\thasContainer={false}\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\tvariant=\"brand\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</React.Fragment>\n\t\t);\n\n\t\tif (this.props.fixedHeader) {\n\t\t\tconst border = '1px solid var(--slds-g-color-border-1)';\n\t\t\tconst styles: React.CSSProperties = {\n\t\t\t\tborderTop: border,\n\t\t\t\theight: '100%',\n\t\t\t};\n\n\t\t\tif (this.props.joined) {\n\t\t\t\tstyles.borderBottom = border;\n\t\t\t\tstyles.borderLeft = border;\n\t\t\t\tstyles.borderRight = border;\n\t\t\t\tstyles.borderTop = 'none';\n\t\t\t\tstyles.borderRadius =\n\t\t\t\t\t'0 0 var(--slds-g-radius-border-2) var(--slds-g-radius-border-2)';\n\t\t\t}\n\n\t\t\tconst fixedScrollerStyle: React.CSSProperties = {\n\t\t\t\theight: '100%',\n\t\t\t\toverflow: 'auto',\n\t\t\t};\n\n\t\t\tcomponent = (\n\t\t\t\t<div\n\t\t\t\t\tclassName=\"slds-table_header-fixed_container\"\n\t\t\t\t\tstyle={styles}\n\t\t\t\t\tonScroll={(e) => {\n\t\t\t\t\t\tconst containerScrollLeft = (e.target as HTMLElement).scrollLeft;\n\n\t\t\t\t\t\tif (containerScrollLeft > 0) {\n\t\t\t\t\t\t\t(e.target as HTMLElement).scrollLeft = 0;\n\t\t\t\t\t\t\tif (this.scrollerRef) {\n\t\t\t\t\t\t\t\tthis.scrollerRef.scrollLeft = containerScrollLeft;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName=\"slds-table_header-fixed_scroller\"\n\t\t\t\t\t\tref={(ref) => {\n\t\t\t\t\t\t\tthis.scrollerRef = ref;\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tstyle={fixedScrollerStyle}\n\t\t\t\t\t>\n\t\t\t\t\t\t{component}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn component;\n\t}\n}\n\nexport default SimpleDataTable;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAoEA,IAAM,KAAS,MACd,MAAM,QAAQ,CAAK,IAAI,EAAM,SAAS,GAEjC,IAAe;CACpB,eAAe;EACd,eAAe;EACf,YAAY;EACZ,uBAAuB;EACvB,wBAAwB;EACxB,eAAe;EACf,WAAW;EACX,gBAAgB;EAChB,aAAa;CACd;CACA,WAAW,CAAC;CACZ,mBAAmB,CAAC;CACpB,SAAS;CACT,gBAAgB;AACjB,GAEM,IAAmB,GAEvB,GACA,GACA,GACA,GACA,GACA,GACA,MACkC;CAClC,IAAM,IAAuC;EAC5C,GAAG,EAAa;EAChB,GAAG;CACJ;CAmBA,OAlBI,MACH,EAAO,gBAAgB,IAEpB,MACH,EAAO,gBAAgB,IAEpB,MACH,EAAO,wBAAwB,IAE5B,MACH,EAAO,yBAAyB,IAE7B,MACH,EAA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B,EAAE,OAAuB;KAEtD,AAAI,IAAsB,MACzB,EAAG,OAAuB,aAAa,GACnC,KAAK,gBACR,KAAK,YAAY,aAAa;IAGjC;IAEA,UAAA,kBAAC,OAAD;KACC,WAAU;KACV,MAAM,MAAQ;MACb,KAAK,cAAc;KACpB;KACA,OAAO;MAxBT,QAAQ;MACR,UAAU;KAuBD;KAEN,UAAA;IACG,CAAA;GACD,CAAA;EAEP;EAEA,OAAO;CACR;AACD"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/simple-data-table/index.tsx"],"sourcesContent":["/* eslint-disable max-lines */\n/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// # Data Table Component\n\n// Implements the [Data Table design pattern](https://www.lightningdesignsystem.com/components/data-tables) in React.\n\nimport React, { type ReactElement, type ReactNode } from 'react';\n\nimport classNames from 'classnames';\nimport assign from 'lodash.assign';\nimport { dequal as isEqual } from 'dequal';\nimport memoize from 'memoize-one';\nimport reject from 'lodash.reject';\n// This component's `checkProps` which issues warnings to developers about properties when in development mode (similar to React's built in development tools)\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\n\nimport {\n\tcanUseDOM,\n\tcanUseEventListeners,\n} from '../../utilities/execution-environment';\n// ## Children\nimport SimpleDataTableCell from './cell';\nimport SimpleDataTableColumn from './column';\nimport SimpleDataTableHead from './private/head';\nimport SimpleDataTableRow from './private/row';\nimport SimpleDataTableRowActions from './row-actions';\nimport TableContext from './private/table-context';\nimport Mode, { type ModeType } from './private/mode';\nimport Spinner from '../spinner';\n\nimport KEYS from '../../utilities/key-code';\nimport generateId from '../../utilities/generate-id';\nimport mapKeyEventCallbacks from '../../utilities/key-callbacks';\n\nimport {\n\tSIMPLE_DATA_TABLE,\n\tSIMPLE_DATA_TABLE_CELL,\n\tSIMPLE_DATA_TABLE_HEAD,\n\tSIMPLE_DATA_TABLE_ROW,\n} from '../../utilities/constants';\n\nimport type {\n\tSimpleDataTableProps,\n\tSimpleDataTableItem,\n\tSimpleDataTableColumnConfig,\n\tSimpleDataTableColumnProps,\n\tSimpleDataTableCellProps,\n\tSimpleDataTableAssistiveText,\n} from './types';\n\n// The main SimpleDataTable component's state.\ninterface SimpleDataTableState {\n\t// Currently selected cell\n\tactiveCell: { rowIndex: number; columnIndex: number };\n\t// Interactive element within a cell that receives focus when in actionable mode\n\tactiveElement: string | null;\n\t// The table can be in navigation or actionable mode\n\tmode: ModeType;\n\t// The table currently has focus\n\ttableHasFocus: boolean;\n\t// Allows for keyboard navigation\n\tallowKeyboardNavigation?: boolean;\n}\n\n// Safely get the length of an array, returning 0 for invalid input.\nconst count = (array: unknown): number =>\n\tArray.isArray(array) ? array.length : 0;\n\nconst defaultProps = {\n\tassistiveText: {\n\t\tactionsHeader: 'Actions',\n\t\tcolumnSort: 'Sort by: ',\n\t\tcolumnSortedAscending: 'Sorted Ascending',\n\t\tcolumnSortedDescending: 'Sorted Descending',\n\t\tselectAllRows: 'Select all rows',\n\t\tselectRow: 'Select row',\n\t\tselectRowGroup: 'Choose a row to select',\n\t\tloadingMore: 'Loading more',\n\t},\n\tselection: [] as SimpleDataTableItem[],\n\tdisabledSelection: [] as SimpleDataTableItem[],\n\thasMore: false,\n\tloadMoreOffset: 20,\n};\n\nconst getAssistiveText = memoize(\n\t(\n\t\tassistiveText: SimpleDataTableAssistiveText | undefined,\n\t\tactionsHeaderText: string | undefined,\n\t\tcolumnSortText: string | undefined,\n\t\tcolumnSortedAscendingText: string | undefined,\n\t\tcolumnSortedDescendingText: string | undefined,\n\t\tselectAllRowsText: string | undefined,\n\t\tselectRowText: string | undefined\n\t): SimpleDataTableAssistiveText => {\n\t\tconst result: SimpleDataTableAssistiveText = {\n\t\t\t...defaultProps.assistiveText,\n\t\t\t...assistiveText,\n\t\t};\n\t\tif (actionsHeaderText) {\n\t\t\tresult.actionsHeader = actionsHeaderText;\n\t\t}\n\t\tif (selectAllRowsText) {\n\t\t\tresult.selectAllRows = selectAllRowsText;\n\t\t}\n\t\tif (columnSortedAscendingText) {\n\t\t\tresult.columnSortedAscending = columnSortedAscendingText;\n\t\t}\n\t\tif (columnSortedDescendingText) {\n\t\t\tresult.columnSortedDescending = columnSortedDescendingText;\n\t\t}\n\t\tif (columnSortText) {\n\t\t\tresult.columnSort = columnSortText;\n\t\t}\n\t\tif (selectRowText) {\n\t\t\tresult.selectRow = selectRowText;\n\t\t}\n\t\treturn result;\n\t},\n\tisEqual\n);\n\nconst getColumnsAndRowActions = memoize(\n\t(\n\t\tchildren: ReactNode,\n\t\tid: string | undefined,\n\t\tfixedHeader: boolean | undefined,\n\t\tfixedLayout: boolean | undefined,\n\t\titems: SimpleDataTableItem[],\n\t\tsearch: string | undefined\n\t): {\n\t\tcolumns: SimpleDataTableColumnConfig[];\n\t\tRowActions: ReactElement | null;\n\t} => {\n\t\tconst columns: SimpleDataTableColumnConfig[] = [];\n\t\tlet RowActions: ReactElement | null = null;\n\n\t\tReact.Children.forEach(children, (child) => {\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t\tconst element = child as ReactElement<any> | null;\n\t\t\tconst elementType = element?.type as { displayName?: string } | undefined;\n\t\t\tif (\n\t\t\t\telement &&\n\t\t\t\telementType?.displayName === SimpleDataTableColumn.displayName\n\t\t\t) {\n\t\t\t\tconst { children: columnChildren, ...columnProps } = element.props;\n\t\t\t\tconst props: Record<string, unknown> = {\n\t\t\t\t\tfixedLayout,\n\t\t\t\t\tsearch,\n\t\t\t\t\titems,\n\t\t\t\t\t...columnProps,\n\t\t\t\t};\n\t\t\t\tif (id) {\n\t\t\t\t\tprops.id = id;\n\t\t\t\t}\n\n\t\t\t\tlet Cell;\n\t\t\t\tconst cellChild = columnChildren as ReactElement | undefined;\n\t\t\t\tconst cellChildType = cellChild?.type as\n\t\t\t\t\t{ displayName?: string } | undefined;\n\t\t\t\tif (\n\t\t\t\t\tcellChild &&\n\t\t\t\t\tcellChildType?.displayName === SIMPLE_DATA_TABLE_CELL\n\t\t\t\t) {\n\t\t\t\t\tCell = cellChild.type;\n\t\t\t\t\tassign(props, cellChild.props);\n\t\t\t\t} else {\n\t\t\t\t\tCell = SimpleDataTableCell;\n\t\t\t\t}\n\n\t\t\t\tcolumns.push({\n\t\t\t\t\tCell: Cell as React.ComponentType<SimpleDataTableCellProps>,\n\t\t\t\t\tprops: props as SimpleDataTableColumnProps,\n\t\t\t\t});\n\t\t\t} else if (\n\t\t\t\telement &&\n\t\t\t\telementType?.displayName === SimpleDataTableRowActions.displayName\n\t\t\t) {\n\t\t\t\tconst { dropdown } = element.props;\n\t\t\t\tconst dropdownPropOverrides: { menuPosition?: string } = {};\n\t\t\t\tif (fixedHeader) {\n\t\t\t\t\tdropdownPropOverrides.menuPosition = 'overflowBoundaryElement';\n\t\t\t\t}\n\t\t\t\tRowActions = React.cloneElement(element, {\n\t\t\t\t\tdropdown: dropdown\n\t\t\t\t\t\t? React.cloneElement(dropdown, dropdownPropOverrides)\n\t\t\t\t\t\t: null,\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\treturn { columns, RowActions };\n\t},\n\tisEqual\n);\n\n/**\n * SimpleDataTables support the display of structured data in rows and columns with an HTML table. To sort, filter or paginate the table, simply update the data passed in the items to the table and it will re-render itself appropriately. The table will throw a sort event as needed, and helper components for paging and filtering are coming soon.\n *\n * NOTE: for horizontal scrolling with `fixedHeader`-enabled SimpleDataTables, see the `style` property description\n */\nclass SimpleDataTable extends React.Component<\n\tSimpleDataTableProps,\n\tSimpleDataTableState\n> {\n\t// ### Display Name\n\t// Always use the canonical component name as the React display name.\n\tstatic displayName = SIMPLE_DATA_TABLE;\n\n\tstatic defaultProps = defaultProps;\n\n\tgeneratedId: string;\n\n\theaderRefs: {\n\t\taction: (HTMLElement | null)[];\n\t\tcolumn: (HTMLElement | null)[];\n\t\tselect: (HTMLElement | null)[];\n\t};\n\n\tscrollerRef: HTMLElement | null;\n\n\t// Map of cells to interactive elements within that cell\n\tinteractiveElements: Record<number, Record<number, string[]>>;\n\n\ttableRef?: HTMLTableElement | null;\n\n\tconstructor(props: SimpleDataTableProps) {\n\t\tsuper(props);\n\t\tthis.generatedId = generateId();\n\t\tthis.headerRefs = {\n\t\t\taction: [],\n\t\t\tcolumn: [],\n\t\t\tselect: [],\n\t\t};\n\t\tthis.scrollerRef = null;\n\t\tthis.state = {\n\t\t\t// Currently selected cell\n\t\t\tactiveCell: {\n\t\t\t\trowIndex: 1,\n\t\t\t\tcolumnIndex: this.props.selectRows ? 1 : 0,\n\t\t\t},\n\t\t\t// Interactive element within a cell that receives focus when in actionable mode\n\t\t\tactiveElement: null,\n\t\t\t// The table can be in navigation or actionable mode\n\t\t\tmode: Mode.NAVIGATION,\n\t\t\t// The table currently has focus\n\t\t\ttableHasFocus: false,\n\t\t\t// Allows for keyboard navigation. This is useful for temporarily disabling keyboard navigation\n\t\t\t// when another component requires its own focus behavior (e.g. menu dropdown).\n\t\t\tallowKeyboardNavigation: props.keyboardNavigation,\n\t\t};\n\t\t// Map of cells to interactive elements within that cell\n\t\tthis.interactiveElements = {};\n\t\tthis.changeActiveCell = this.changeActiveCell.bind(this);\n\t\tthis.changeActiveElement = this.changeActiveElement.bind(this);\n\t\tthis.handleKeyDown = this.handleKeyDown.bind(this);\n\t\tthis.registerInteractiveElement =\n\t\t\tthis.registerInteractiveElement.bind(this);\n\n\t\t// `checkProps` issues warnings to developers about properties (similar to React's built in development tools)\n\t\t(checkProps as (name: string, props: unknown, doc?: unknown) => void)(\n\t\t\tSIMPLE_DATA_TABLE,\n\t\t\tprops,\n\t\t\tcomponentDoc\n\t\t);\n\t}\n\n\tcomponentDidMount() {\n\t\tif (this.props.fixedHeader) {\n\t\t\tthis.toggleFixedHeaderListeners(true);\n\t\t\tthis.resizeFixedHeaders();\n\t\t}\n\t}\n\n\tcomponentDidUpdate(\n\t\t_prevProps: SimpleDataTableProps,\n\t\tprevState: SimpleDataTableState\n\t) {\n\t\tif (this.props.fixedHeader) {\n\t\t\tthis.resizeFixedHeaders();\n\t\t\t// If the first page of results isn't enough to allow the user to scroll it causes\n\t\t\t// the user to get into a state where they cannot load the second page.\n\t\t\t// Simulating a scroll here will ensure that enough rows are loaded to enable scrolling\n\t\t\tthis.loadMoreIfNeeded();\n\t\t}\n\n\t\tif (\n\t\t\tthis.state.allowKeyboardNavigation &&\n\t\t\t!prevState.allowKeyboardNavigation\n\t\t) {\n\t\t\t// When re-enabling keyboard navigation (e.g. when a dropdown closes), mark that\n\t\t\t// focus has returned to the table. This must wait until after `allowKeyboardNavigation`\n\t\t\t// is set in `onClose` because the callback could focus the incorrect element (e.g. dropdown\n\t\t\t// trigger) when it executes.\n\t\t\t// eslint-disable-next-line react/no-did-update-set-state\n\t\t\tthis.setState({ tableHasFocus: true });\n\t\t}\n\t}\n\n\tcomponentWillUnmount() {\n\t\tthis.toggleFixedHeaderListeners(false);\n\t}\n\n\tgetId() {\n\t\treturn this.props.id || this.generatedId;\n\t}\n\n\tgetFirstInteractiveElement(\n\t\trowIndex: number,\n\t\tcolumnIndex: number\n\t): string | null {\n\t\tif (\n\t\t\tthis.state.mode === Mode.ACTIONABLE &&\n\t\t\tthis.interactiveElements[rowIndex] &&\n\t\t\tthis.interactiveElements[rowIndex][columnIndex]\n\t\t) {\n\t\t\treturn this.interactiveElements[rowIndex][columnIndex][0];\n\t\t}\n\t\treturn null;\n\t}\n\n\tgetTableContext = memoize(\n\t\t(\n\t\t\tstate: SimpleDataTableState,\n\t\t\tisKeyboardNavigation: boolean | undefined\n\t\t) => ({\n\t\t\tactiveCell: state.activeCell,\n\t\t\tactiveElement: state.activeElement,\n\t\t\tmode: state.mode,\n\t\t\ttableHasFocus: state.tableHasFocus,\n\t\t\tchangeActiveCell: this.changeActiveCell,\n\t\t\tchangeActiveElement: this.changeActiveElement,\n\t\t\thandleKeyDown: this.handleKeyDown,\n\t\t\tregisterInteractiveElement: this.registerInteractiveElement,\n\t\t\tallowKeyboardNavigation: state.allowKeyboardNavigation ?? false,\n\t\t\tsetAllowKeyboardNavigation: (allowKeyboardNavigation: boolean) => {\n\t\t\t\tif (isKeyboardNavigation) {\n\t\t\t\t\tthis.setState({ allowKeyboardNavigation });\n\t\t\t\t}\n\t\t\t},\n\t\t})\n\t);\n\n\thandleToggleAll = (\n\t\te: React.SyntheticEvent,\n\t\t{ checked }: { checked: boolean }\n\t) => {\n\t\tconst selection = this.props.selection ?? [];\n\t\tconst disabledSelection = this.props.disabledSelection ?? [];\n\t\tconst selectedDisabledItems = selection.filter((item) =>\n\t\t\tdisabledSelection.includes(item)\n\t\t);\n\t\tconst enabledItems = this.props.items.filter(\n\t\t\t(item) => !disabledSelection.includes(item)\n\t\t);\n\n\t\tconst newSelection = (\n\t\t\tchecked\n\t\t\t\t? [...enabledItems, ...selectedDisabledItems]\n\t\t\t\t: [...selectedDisabledItems]\n\t\t).filter((item) => item.type !== 'header-row');\n\n\t\t// REMOVE AT NEXT BREAKING CHANGE\n\t\t// `onChange` is deprecated and replaced with `onRowChange`\n\t\tif (typeof this.props.onChange === 'function') {\n\t\t\tthis.props.onChange(newSelection, e);\n\t\t}\n\n\t\tif (typeof this.props.onRowChange === 'function') {\n\t\t\tthis.props.onRowChange(e, { selection: newSelection });\n\t\t}\n\t};\n\n\thandleRowToggle = (\n\t\titem: SimpleDataTableItem,\n\t\tselected: boolean,\n\t\te: React.SyntheticEvent\n\t) => {\n\t\t// REMOVE AT NEXT BREAKING CHANGE\n\t\t// `onChange` is deprecated and replaced with `onRowChange`\n\t\tif (typeof this.props.onChange === 'function') {\n\t\t\tlet selection;\n\n\t\t\tif (selected) {\n\t\t\t\tselection =\n\t\t\t\t\tthis.props.selectRows === 'radio'\n\t\t\t\t\t\t? [item]\n\t\t\t\t\t\t: [...(this.props.selection ?? []), item];\n\t\t\t} else {\n\t\t\t\tselection = reject(this.props.selection ?? [], item);\n\t\t\t}\n\n\t\t\tthis.props.onChange(selection, e);\n\t\t}\n\t\t// DEPRECATED CODE ENDS HERE\n\n\t\tif (typeof this.props.onRowChange === 'function') {\n\t\t\tlet selection;\n\n\t\t\tif (selected) {\n\t\t\t\tselection =\n\t\t\t\t\tthis.props.selectRows === 'radio'\n\t\t\t\t\t\t? [item]\n\t\t\t\t\t\t: [...(this.props.selection ?? []), item];\n\t\t\t} else {\n\t\t\t\tselection = reject(this.props.selection ?? [], item);\n\t\t\t}\n\n\t\t\tthis.props.onRowChange(e, { selection });\n\t\t}\n\t};\n\n\tresizeFixedHeaders = (event?: Event) => {\n\t\tconst headerRefs = [\n\t\t\t...this.headerRefs.select,\n\t\t\t...this.headerRefs.column,\n\t\t\t...this.headerRefs.action,\n\t\t];\n\n\t\tif (this.props.onFixedHeaderResize) {\n\t\t\tthis.props.onFixedHeaderResize(event ?? null, {\n\t\t\t\theaderRefs: headerRefs.filter(Boolean) as HTMLElement[],\n\t\t\t\tscrollerRef: this.scrollerRef,\n\t\t\t});\n\t\t} else if (headerRefs.length > 0) {\n\t\t\tlet documentScrollLeft = 0;\n\n\t\t\tif (canUseDOM) {\n\t\t\t\tdocumentScrollLeft = document.documentElement.scrollLeft;\n\t\t\t}\n\n\t\t\theaderRefs.forEach((column) => {\n\t\t\t\tif (column && canUseDOM) {\n\t\t\t\t\tconst columnLeft =\n\t\t\t\t\t\tcolumn.getBoundingClientRect().left + documentScrollLeft;\n\t\t\t\t\tlet wrapperLeft = 0;\n\n\t\t\t\t\tif (this.scrollerRef) {\n\t\t\t\t\t\twrapperLeft =\n\t\t\t\t\t\t\tthis.scrollerRef.getBoundingClientRect().left +\n\t\t\t\t\t\t\tdocumentScrollLeft;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst cellFixed = column.querySelector(\n\t\t\t\t\t\t'.slds-cell-fixed'\n\t\t\t\t\t) as HTMLElement | null;\n\n\t\t\t\t\tif (cellFixed) {\n\t\t\t\t\t\tcellFixed.style.left = `${columnLeft - wrapperLeft}px`;\n\t\t\t\t\t\tcellFixed.style.width = `${column.offsetWidth}px`;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t};\n\n\tloadMoreIfNeeded = () => {\n\t\tif (this.props.hasMore && this.props.onLoadMore && this.scrollerRef) {\n\t\t\tconst { scrollTop, offsetHeight, scrollHeight } = this.scrollerRef;\n\t\t\tif (\n\t\t\t\tscrollTop + offsetHeight >\n\t\t\t\tscrollHeight - (this.props.loadMoreOffset ?? 0)\n\t\t\t) {\n\t\t\t\tthis.props.onLoadMore();\n\t\t\t}\n\t\t}\n\t};\n\n\ttoggleFixedHeaderListeners = (attach: boolean) => {\n\t\tif (this.props.onToggleFixedHeaderListeners) {\n\t\t\tthis.props.onToggleFixedHeaderListeners(\n\t\t\t\t{},\n\t\t\t\t{\n\t\t\t\t\tattach,\n\t\t\t\t\tresizeHandler: this.resizeFixedHeaders,\n\t\t\t\t\tscrollerRef: this.scrollerRef,\n\t\t\t\t}\n\t\t\t);\n\t\t} else {\n\t\t\tconst method = attach ? 'addEventListener' : 'removeEventListener';\n\t\t\tif (canUseEventListeners) {\n\t\t\t\twindow[method]('resize', this.resizeFixedHeaders as EventListener);\n\t\t\t\twindow[method]('resize', this.loadMoreIfNeeded as EventListener);\n\t\t\t}\n\t\t\tif (canUseEventListeners && this.scrollerRef) {\n\t\t\t\tthis.scrollerRef[method](\n\t\t\t\t\t'scroll',\n\t\t\t\t\tthis.resizeFixedHeaders as EventListener\n\t\t\t\t);\n\t\t\t\tthis.scrollerRef[method](\n\t\t\t\t\t'scroll',\n\t\t\t\t\tthis.loadMoreIfNeeded as EventListener\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t};\n\n\t// eslint-disable-next-line camelcase\n\tUNSAFE_componentWillUpdate(nextProps: SimpleDataTableProps) {\n\t\tif (this.props.items !== nextProps.items) {\n\t\t\tthis.interactiveElements = {};\n\t\t}\n\t}\n\n\tchangeActiveCell(rowIndex: number, columnIndex: number) {\n\t\tthis.setState({\n\t\t\ttableHasFocus: true,\n\t\t\tactiveCell: { rowIndex, columnIndex },\n\t\t});\n\t}\n\n\tchangeActiveElement(activeElement: string | null) {\n\t\tthis.setState({ activeElement, mode: Mode.ACTIONABLE });\n\t}\n\n\thandleKeyDown(event: React.KeyboardEvent) {\n\t\tmapKeyEventCallbacks(event, {\n\t\t\tcallbacks: {\n\t\t\t\t[KEYS.UP]: { callback: () => this.handleKeyDownUp() },\n\t\t\t\t[KEYS.DOWN]: { callback: () => this.handleKeyDownDown() },\n\t\t\t\t[KEYS.LEFT]: { callback: () => this.handleKeyDownLeft() },\n\t\t\t\t[KEYS.RIGHT]: { callback: () => this.handleKeyDownRight() },\n\t\t\t\t[KEYS.ENTER]: { callback: () => this.handleKeyDownEnter() },\n\t\t\t\t[KEYS.ESCAPE]: { callback: () => this.handleKeyDownEscape() },\n\t\t\t\t[KEYS.TAB]:\n\t\t\t\t\tthis.state.mode === Mode.ACTIONABLE\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tcallback: (evt: React.KeyboardEvent) =>\n\t\t\t\t\t\t\t\t\tthis.handleKeyTabPress(evt),\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: null,\n\t\t\t},\n\t\t});\n\t}\n\n\thandleKeyDownUp() {\n\t\tconst newRowIndex = Math.max(this.state.activeCell.rowIndex - 1, 0);\n\t\tconst activeElement = this.getFirstInteractiveElement(\n\t\t\tnewRowIndex,\n\t\t\tthis.state.activeCell.columnIndex\n\t\t);\n\t\tif (newRowIndex !== this.state.activeCell.rowIndex) {\n\t\t\tthis.setState((prevState) => ({\n\t\t\t\tactiveCell: {\n\t\t\t\t\trowIndex: newRowIndex,\n\t\t\t\t\tcolumnIndex: prevState.activeCell.columnIndex,\n\t\t\t\t},\n\t\t\t\tactiveElement,\n\t\t\t}));\n\t\t}\n\t}\n\n\thandleKeyDownDown() {\n\t\tconst newRowIndex = Math.min(\n\t\t\tthis.state.activeCell.rowIndex + 1,\n\t\t\tthis.props.items.length\n\t\t);\n\t\tconst activeElement = this.getFirstInteractiveElement(\n\t\t\tnewRowIndex,\n\t\t\tthis.state.activeCell.columnIndex\n\t\t);\n\t\tif (newRowIndex !== this.state.activeCell.rowIndex) {\n\t\t\tthis.setState((prevState) => ({\n\t\t\t\tactiveCell: {\n\t\t\t\t\trowIndex: newRowIndex,\n\t\t\t\t\tcolumnIndex: prevState.activeCell.columnIndex,\n\t\t\t\t},\n\t\t\t\tactiveElement,\n\t\t\t}));\n\t\t}\n\t}\n\n\thandleKeyDownLeft() {\n\t\tconst newColumnIndex = Math.max(this.state.activeCell.columnIndex - 1, 0);\n\t\tconst activeElement = this.getFirstInteractiveElement(\n\t\t\tthis.state.activeCell.rowIndex,\n\t\t\tnewColumnIndex\n\t\t);\n\t\tif (newColumnIndex !== this.state.activeCell.columnIndex) {\n\t\t\tthis.setState((prevState) => ({\n\t\t\t\tactiveCell: {\n\t\t\t\t\trowIndex: prevState.activeCell.rowIndex,\n\t\t\t\t\tcolumnIndex: newColumnIndex,\n\t\t\t\t},\n\t\t\t\tactiveElement,\n\t\t\t}));\n\t\t}\n\t}\n\n\thandleKeyDownRight() {\n\t\tconst newColumnIndex = Math.min(\n\t\t\tthis.state.activeCell.columnIndex + 1,\n\t\t\tReact.Children.count(this.props.children) -\n\t\t\t\t(this.props.selectRows ? 0 : 1)\n\t\t);\n\t\tconst activeElement = this.getFirstInteractiveElement(\n\t\t\tthis.state.activeCell.rowIndex,\n\t\t\tnewColumnIndex\n\t\t);\n\t\tif (newColumnIndex !== this.state.activeCell.columnIndex) {\n\t\t\tthis.setState((prevState) => ({\n\t\t\t\tactiveCell: {\n\t\t\t\t\trowIndex: prevState.activeCell.rowIndex,\n\t\t\t\t\tcolumnIndex: newColumnIndex,\n\t\t\t\t},\n\t\t\t\tactiveElement,\n\t\t\t}));\n\t\t}\n\t}\n\n\thandleKeyDownEnter() {\n\t\tif (this.state.mode === Mode.NAVIGATION) {\n\t\t\tconst { rowIndex, columnIndex } = this.state.activeCell;\n\t\t\tlet activeElement: string | null = null;\n\t\t\tif (\n\t\t\t\tthis.interactiveElements[rowIndex] &&\n\t\t\t\tthis.interactiveElements[rowIndex][columnIndex]\n\t\t\t) {\n\t\t\t\t[activeElement] = this.interactiveElements[rowIndex][columnIndex];\n\t\t\t}\n\t\t\tthis.setState({\n\t\t\t\tmode: Mode.ACTIONABLE,\n\t\t\t\tactiveElement,\n\t\t\t});\n\t\t}\n\t}\n\n\thandleKeyDownEscape() {\n\t\tif (this.state.mode === Mode.ACTIONABLE) {\n\t\t\tthis.setState({\n\t\t\t\tmode: Mode.NAVIGATION,\n\t\t\t\tactiveElement: null,\n\t\t\t});\n\t\t}\n\t}\n\n\tmoveNext(event: React.KeyboardEvent, rowIndex: number, columnIndex: number) {\n\t\tconst headers = [\n\t\t\t...this.headerRefs.select,\n\t\t\t...this.headerRefs.column,\n\t\t\t...this.headerRefs.action,\n\t\t];\n\t\tlet newRowIndex = 0;\n\t\tlet newColumnIndex = 0;\n\n\t\tif (event.shiftKey) {\n\t\t\tif (columnIndex - 1 >= 0) {\n\t\t\t\tnewColumnIndex = columnIndex - 1;\n\t\t\t\tnewRowIndex = rowIndex;\n\t\t\t} else {\n\t\t\t\tif (rowIndex > 0) newRowIndex = rowIndex - 1;\n\t\t\t\telse newRowIndex = this.props.items.length;\n\n\t\t\t\tnewColumnIndex = headers.length - 1;\n\t\t\t}\n\t\t} else if (columnIndex + 1 < headers.length) {\n\t\t\tnewColumnIndex = columnIndex + 1;\n\t\t\tnewRowIndex = rowIndex;\n\t\t} else {\n\t\t\tif (rowIndex < this.props.items.length) newRowIndex = rowIndex + 1;\n\t\t\telse newRowIndex = 0;\n\n\t\t\tnewColumnIndex = 0;\n\t\t}\n\n\t\tthis.changeActiveCell(newRowIndex, newColumnIndex);\n\t}\n\n\thandleNextActionable(event: React.KeyboardEvent): string | null {\n\t\tconst { rowIndex, columnIndex } = this.state.activeCell;\n\t\tconst currentActiveElement = this.state.activeElement;\n\t\tconst rowActiveElements =\n\t\t\tthis.interactiveElements[rowIndex] &&\n\t\t\tthis.interactiveElements[rowIndex][columnIndex]\n\t\t\t\t? this.interactiveElements[rowIndex][columnIndex]\n\t\t\t\t: null;\n\n\t\tif (rowActiveElements) {\n\t\t\tif (currentActiveElement) {\n\t\t\t\tconst index = rowActiveElements.indexOf(currentActiveElement);\n\n\t\t\t\tif (event.shiftKey) {\n\t\t\t\t\treturn index > 0 ? rowActiveElements[index - 1] : null;\n\t\t\t\t}\n\t\t\t\treturn index < rowActiveElements.length - 1\n\t\t\t\t\t? rowActiveElements[index + 1]\n\t\t\t\t\t: null;\n\t\t\t}\n\t\t\treturn !event.shiftKey\n\t\t\t\t? rowActiveElements[0]\n\t\t\t\t: rowActiveElements[rowActiveElements.length - 1];\n\t\t}\n\t\treturn null;\n\t}\n\n\thandleKeyTabPress(event: React.KeyboardEvent) {\n\t\tconst { rowIndex, columnIndex } = this.state.activeCell;\n\n\t\tif (this.state.mode === Mode.ACTIONABLE) {\n\t\t\tconst nextActionable = this.handleNextActionable(event);\n\n\t\t\tif (nextActionable) {\n\t\t\t\tthis.setState({ activeElement: nextActionable });\n\t\t\t} else if (rowIndex === 0) {\n\t\t\t\tconst headers = [\n\t\t\t\t\t...this.headerRefs.select,\n\t\t\t\t\t...this.headerRefs.column,\n\t\t\t\t\t...this.headerRefs.action,\n\t\t\t\t];\n\t\t\t\tlet newIndex = 0;\n\n\t\t\t\tif (!event.shiftKey)\n\t\t\t\t\tnewIndex = columnIndex + 1 < headers.length ? columnIndex + 1 : 0;\n\t\t\t\telse\n\t\t\t\t\tnewIndex =\n\t\t\t\t\t\tcolumnIndex - 1 >= 0 ? columnIndex - 1 : headers.length - 1;\n\t\t\t\tthis.setState({\n\t\t\t\t\tmode: Mode.ACTIONABLE,\n\t\t\t\t\tactiveElement: null,\n\t\t\t\t});\n\n\t\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\t\theaders.forEach((header, index) => {\n\t\t\t\t\tif (!header) return;\n\t\t\t\t\tif (index === newIndex) {\n\t\t\t\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\t\t\t\theader.tabIndex = 0;\n\t\t\t\t\t\theader.focus();\n\t\t\t\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\t\t\t} else header.tabIndex = -1;\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis.moveNext(event, rowIndex, columnIndex);\n\t\t\t\tthis.setState({\n\t\t\t\t\tmode: Mode.ACTIONABLE,\n\t\t\t\t\tactiveElement: null,\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\tregisterInteractiveElement(\n\t\trowIndex: number,\n\t\tcolumnIndex: number,\n\t\telementId: string\n\t) {\n\t\tif (!this.interactiveElements[rowIndex]) {\n\t\t\tthis.interactiveElements[rowIndex] = {};\n\t\t}\n\t\tconst existingElements =\n\t\t\tthis.interactiveElements[rowIndex][columnIndex] || [];\n\n\t\tif (!existingElements.includes(elementId)) {\n\t\t\tthis.interactiveElements[rowIndex][columnIndex] = [\n\t\t\t\t...existingElements,\n\t\t\t\telementId,\n\t\t\t];\n\t\t}\n\t}\n\n\t// ### Render\n\trender() {\n\t\tconst ariaProps: { 'aria-multiselectable'?: 'true' } = {};\n\t\tconst numHeaderRows = 1;\n\t\tconst selection = this.props.selection ?? [];\n\t\tconst disabledSelection = this.props.disabledSelection ?? [];\n\t\tconst numRows = count(this.props.items);\n\t\tconst numSelected = count(\n\t\t\tselection.filter((item) => !disabledSelection.includes(item))\n\t\t);\n\t\tconst numNonHeaderRows = count(\n\t\t\tthis.props.items.filter(\n\t\t\t\t(item) =>\n\t\t\t\t\titem.type !== 'header-row' && !disabledSelection.includes(item)\n\t\t\t)\n\t\t);\n\t\tconst canSelectRows =\n\t\t\tthis.props.selectRows && numNonHeaderRows > 0\n\t\t\t\t? this.props.selectRows\n\t\t\t\t: false;\n\t\tconst allSelected = canSelectRows && numNonHeaderRows === numSelected;\n\t\tconst indeterminateSelected =\n\t\t\tcanSelectRows && numNonHeaderRows !== numSelected && numSelected !== 0;\n\n\t\tconst { columns, RowActions } = getColumnsAndRowActions(\n\t\t\tthis.props.children,\n\t\t\tthis.props.id,\n\t\t\tthis.props.fixedHeader,\n\t\t\tthis.props.fixedLayout,\n\t\t\tthis.props.items,\n\t\t\tthis.props.search\n\t\t);\n\n\t\tconst assistiveText = getAssistiveText(\n\t\t\tthis.props.assistiveText,\n\t\t\tthis.props.assistiveTextForActionsHeader,\n\t\t\tthis.props.assistiveTextForColumnSort,\n\t\t\tthis.props.assistiveTextForColumnSortedAscending,\n\t\t\tthis.props.assistiveTextForColumnSortedDescending,\n\t\t\tthis.props.assistiveTextForSelectAllRows,\n\t\t\tthis.props.assistiveTextForSelectRow\n\t\t);\n\n\t\tif (this.props.selectRows && this.props.selectRows !== 'radio') {\n\t\t\tariaProps['aria-multiselectable'] = 'true';\n\t\t}\n\n\t\t// This guarantees there are never any old header references if props change\n\t\tthis.headerRefs = {\n\t\t\taction: RowActions ? this.headerRefs.action : [],\n\t\t\tcolumn: this.headerRefs.column.slice(0, columns.length),\n\t\t\tselect: canSelectRows ? this.headerRefs.select : [],\n\t\t};\n\n\t\tlet component = (\n\t\t\t<React.Fragment>\n\t\t\t\t<TableContext.Provider\n\t\t\t\t\tvalue={this.getTableContext(\n\t\t\t\t\t\tthis.state,\n\t\t\t\t\t\tthis.props.keyboardNavigation\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t<table\n\t\t\t\t\t\t{...ariaProps}\n\t\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t\t'slds-table',\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t'slds-table_fixed-layout': this.props.fixedLayout,\n\t\t\t\t\t\t\t\t'slds-table_header-fixed': this.props.fixedHeader,\n\t\t\t\t\t\t\t\t'slds-table_resizable-cols': this.props.fixedLayout,\n\t\t\t\t\t\t\t\t'slds-table_bordered': !this.props.unborderedRow,\n\t\t\t\t\t\t\t\t'slds-table_cell-buffer':\n\t\t\t\t\t\t\t\t\t!this.props.fixedLayout && !this.props.unbufferedCell,\n\t\t\t\t\t\t\t\t'slds-max-medium-table_stacked': this.props.stacked,\n\t\t\t\t\t\t\t\t'slds-max-medium-table_stacked-horizontal':\n\t\t\t\t\t\t\t\t\tthis.props.stackedHorizontal,\n\t\t\t\t\t\t\t\t'slds-table_striped': this.props.striped,\n\t\t\t\t\t\t\t\t'slds-table_col-bordered': this.props.columnBordered,\n\t\t\t\t\t\t\t\t'slds-no-row-hover': this.props.noRowHover,\n\t\t\t\t\t\t\t\t'slds-table_header-hidden': this.props.isHeadless,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tthis.props.className\n\t\t\t\t\t\t)}\n\t\t\t\t\t\tid={this.getId()}\n\t\t\t\t\t\tref={(node) => {\n\t\t\t\t\t\t\tif (node) {\n\t\t\t\t\t\t\t\tthis.tableRef = node;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}}\n\t\t\t\t\t\trole={this.props.fixedLayout ? 'grid' : undefined}\n\t\t\t\t\t\tonBlur={(event) => {\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tthis.tableRef &&\n\t\t\t\t\t\t\t\t!this.tableRef.contains(event.relatedTarget as Node)\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tthis.setState({\n\t\t\t\t\t\t\t\t\ttableHasFocus: false,\n\t\t\t\t\t\t\t\t\tmode: Mode.NAVIGATION,\n\t\t\t\t\t\t\t\t\tactiveElement: null,\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tstyle={this.props.style}\n\t\t\t\t\t>\n\t\t\t\t\t\t<SimpleDataTableHead\n\t\t\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\t\t\tallSelected={allSelected}\n\t\t\t\t\t\t\tfixedHeader={this.props.fixedHeader}\n\t\t\t\t\t\t\tfixedLayout={this.props.fixedLayout}\n\t\t\t\t\t\t\theaderRefs={(ref, index) => {\n\t\t\t\t\t\t\t\tif (index === 'action' || index === 'select') {\n\t\t\t\t\t\t\t\t\tif (ref) {\n\t\t\t\t\t\t\t\t\t\tthis.headerRefs[index][0] = ref;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tthis.headerRefs[index] = [];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tthis.headerRefs.column[index] = ref;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tisHidden={this.props.isHeadless}\n\t\t\t\t\t\t\tindeterminateSelected={indeterminateSelected}\n\t\t\t\t\t\t\tcanSelectRows={canSelectRows}\n\t\t\t\t\t\t\tcolumns={columns}\n\t\t\t\t\t\t\tid={`${this.getId()}-${SIMPLE_DATA_TABLE_HEAD}`}\n\t\t\t\t\t\t\tonToggleAll={this.handleToggleAll}\n\t\t\t\t\t\t\tonSort={this.props.onSort}\n\t\t\t\t\t\t\tshowRowActions={!!RowActions}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t{numRows > 0\n\t\t\t\t\t\t\t\t? this.props.items.map((item, index) => {\n\t\t\t\t\t\t\t\t\t\tconst rowId =\n\t\t\t\t\t\t\t\t\t\t\tthis.getId() && item.id\n\t\t\t\t\t\t\t\t\t\t\t\t? `${this.getId()}-${SIMPLE_DATA_TABLE_ROW}-${item.id}`\n\t\t\t\t\t\t\t\t\t\t\t\t: generateId();\n\t\t\t\t\t\t\t\t\t\tif (item.type === 'header-row') {\n\t\t\t\t\t\t\t\t\t\t\tconst subHeadingRowData = {\n\t\t\t\t\t\t\t\t\t\t\t\tassistiveText,\n\t\t\t\t\t\t\t\t\t\t\t\tclassNameRow: item.classNameRow,\n\t\t\t\t\t\t\t\t\t\t\t\tcolumns,\n\t\t\t\t\t\t\t\t\t\t\t\tid: rowId,\n\t\t\t\t\t\t\t\t\t\t\t\ttableId: this.getId(),\n\t\t\t\t\t\t\t\t\t\t\t\titem,\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\tif (this.props.renderSubHeadingRow) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<React.Fragment key={rowId}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{this.props.renderSubHeadingRow(subHeadingRowData)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</React.Fragment>\n\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif (this.props.onRenderSubHeadingRow) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn this.props.onRenderSubHeadingRow({\n\t\t\t\t\t\t\t\t\t\t\t\t\t...subHeadingRowData,\n\t\t\t\t\t\t\t\t\t\t\t\t\tkey: rowId,\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t<SimpleDataTableRow\n\t\t\t\t\t\t\t\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\t\t\t\t\t\t\t\tcanSelectRows={canSelectRows}\n\t\t\t\t\t\t\t\t\t\t\t\tclassName={item.classNameRow}\n\t\t\t\t\t\t\t\t\t\t\t\tcolumns={columns}\n\t\t\t\t\t\t\t\t\t\t\t\tfixedLayout={this.props.fixedLayout}\n\t\t\t\t\t\t\t\t\t\t\t\tid={rowId}\n\t\t\t\t\t\t\t\t\t\t\t\tindex={index}\n\t\t\t\t\t\t\t\t\t\t\t\titem={item}\n\t\t\t\t\t\t\t\t\t\t\t\tkey={rowId}\n\t\t\t\t\t\t\t\t\t\t\t\tonToggle={this.handleRowToggle}\n\t\t\t\t\t\t\t\t\t\t\t\tselection={this.props.selection}\n\t\t\t\t\t\t\t\t\t\t\t\tdisabledSelection={this.props.disabledSelection}\n\t\t\t\t\t\t\t\t\t\t\t\trowActions={RowActions}\n\t\t\t\t\t\t\t\t\t\t\t\ttableId={this.getId()}\n\t\t\t\t\t\t\t\t\t\t\t\trowIndex={index + numHeaderRows}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t: // Someday this should be an element to render when the table is empty\n\t\t\t\t\t\t\t\t\tnull}\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t</table>\n\t\t\t\t</TableContext.Provider>\n\t\t\t\t{this.props.fixedHeader && this.props.hasMore && (\n\t\t\t\t\t<div className=\"slds-is-relative slds-p-around_large\">\n\t\t\t\t\t\t<Spinner\n\t\t\t\t\t\t\tassistiveText={{ label: this.props.assistiveText?.loadingMore }}\n\t\t\t\t\t\t\thasContainer={false}\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\tvariant=\"brand\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</React.Fragment>\n\t\t);\n\n\t\tif (this.props.fixedHeader) {\n\t\t\tconst border = '1px solid var(--slds-g-color-border-1)';\n\t\t\tconst styles: React.CSSProperties = {\n\t\t\t\tborderTop: border,\n\t\t\t\theight: '100%',\n\t\t\t};\n\n\t\t\tif (this.props.joined) {\n\t\t\t\tstyles.borderBottom = border;\n\t\t\t\tstyles.borderLeft = border;\n\t\t\t\tstyles.borderRight = border;\n\t\t\t\tstyles.borderTop = 'none';\n\t\t\t\tstyles.borderRadius =\n\t\t\t\t\t'0 0 var(--slds-g-radius-border-2) var(--slds-g-radius-border-2)';\n\t\t\t}\n\n\t\t\tconst fixedScrollerStyle: React.CSSProperties = {\n\t\t\t\theight: '100%',\n\t\t\t\toverflow: 'auto',\n\t\t\t};\n\n\t\t\tcomponent = (\n\t\t\t\t<div\n\t\t\t\t\tclassName=\"slds-table_header-fixed_container\"\n\t\t\t\t\tstyle={styles}\n\t\t\t\t\tonScroll={(e) => {\n\t\t\t\t\t\tconst containerScrollLeft = (e.target as HTMLElement).scrollLeft;\n\n\t\t\t\t\t\tif (containerScrollLeft > 0) {\n\t\t\t\t\t\t\t(e.target as HTMLElement).scrollLeft = 0;\n\t\t\t\t\t\t\tif (this.scrollerRef) {\n\t\t\t\t\t\t\t\tthis.scrollerRef.scrollLeft = containerScrollLeft;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName=\"slds-table_header-fixed_scroller\"\n\t\t\t\t\t\tref={(ref) => {\n\t\t\t\t\t\t\tthis.scrollerRef = ref;\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tstyle={fixedScrollerStyle}\n\t\t\t\t\t>\n\t\t\t\t\t\t{component}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn component;\n\t}\n}\n\nexport default SimpleDataTable;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAoEA,IAAM,KAAS,MACd,MAAM,QAAQ,CAAK,IAAI,EAAM,SAAS,GAEjC,IAAe;CACpB,eAAe;EACd,eAAe;EACf,YAAY;EACZ,uBAAuB;EACvB,wBAAwB;EACxB,eAAe;EACf,WAAW;EACX,gBAAgB;EAChB,aAAa;CACd;CACA,WAAW,CAAC;CACZ,mBAAmB,CAAC;CACpB,SAAS;CACT,gBAAgB;AACjB,GAEM,IAAmB,GAEvB,GACA,GACA,GACA,GACA,GACA,GACA,MACkC;CAClC,IAAM,IAAuC;EAC5C,GAAG,EAAa;EAChB,GAAG;CACJ;CAmBA,OAlBI,MACH,EAAO,gBAAgB,IAEpB,MACH,EAAO,gBAAgB,IAEpB,MACH,EAAO,wBAAwB,IAE5B,MACH,EAAO,yBAAyB,IAE7B,MACH,EAAO,aAAa,IAEjB,MACH,EAAO,YAAY,IAEb;AACR,GACA,CACD,GAEM,IAA0B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B,EAAO,YAAY,QACnB,EAAO,eACN,oEAQF,IACC,kBAAC,OAAD;IACC,WAAU;IACV,OAAO;IACP,WAAW,MAAM;KAChB,IAAM,IAAuB,EAAE,OAAuB;KAEtD,AAAI,IAAsB,MACzB,EAAG,OAAuB,aAAa,GACnC,KAAK,gBACR,KAAK,YAAY,aAAa;IAGjC;IAEA,UAAA,kBAAC,OAAD;KACC,WAAU;KACV,MAAM,MAAQ;MACb,KAAK,cAAc;KACpB;KACA,OAAO;MAxBT,QAAQ;MACR,UAAU;KAuBD;KAEN,UAAA;IACG,CAAA;GACD,CAAA;EAEP;EAEA,OAAO;CACR;AACD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import e from "../../utilities/get-component-doc.js";
|
|
2
|
+
import t from "../../utilities/warning/deprecated-property.js";
|
|
3
|
+
import n from "../../utilities/warning/only-one-of-properties.js";
|
|
4
|
+
//#region components/slider/check-props.js
|
|
5
|
+
var r = function() {};
|
|
6
|
+
process.env.NODE_ENV !== "production" && (r = function(r, i, a) {
|
|
7
|
+
let o = e(a);
|
|
8
|
+
t(r, i.errorText, "errorText", "labels.error` and `hasError", o("labels")), t(r, i.label, "label", "labels.label", o("labels")), n(r, {
|
|
9
|
+
"labels.label": i.labels?.label ?? i.label,
|
|
10
|
+
"assistiveText.label": i.assistiveText?.label
|
|
11
|
+
}, o());
|
|
12
|
+
});
|
|
13
|
+
var i = r;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { i as default };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=check-props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-props.js","names":[],"sources":["../../../../components/slider/check-props.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n/* eslint-disable import/no-mutable-exports */\n\nimport deprecatedProperty from '../../utilities/warning/deprecated-property';\nimport onlyOneOfProperties from '../../utilities/warning/only-one-of-properties';\nimport getComponentDocFn from '../../utilities/get-component-doc';\n\nlet checkProps = function checkPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckProps = function checkPropsFunction(COMPONENT, props, jsonDoc) {\n\t\tconst createDocUrl = getComponentDocFn(jsonDoc);\n\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.errorText,\n\t\t\t'errorText',\n\t\t\t'labels.error` and `hasError',\n\t\t\tcreateDocUrl('labels')\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.label,\n\t\t\t'label',\n\t\t\t'labels.label',\n\t\t\tcreateDocUrl('labels')\n\t\t);\n\t\tonlyOneOfProperties(\n\t\t\tCOMPONENT,\n\t\t\t{\n\t\t\t\t'labels.label': props.labels?.label ?? props.label,\n\t\t\t\t'assistiveText.label': props.assistiveText?.label,\n\t\t\t},\n\t\t\tcreateDocUrl()\n\t\t);\n\t};\n}\n\nexport default checkProps;\n"],"mappings":";;;;AAQA,IAAI,IAAa,WAA8B,CAAC;AAEhD,QAAA,IAAA,aAA6B,iBAC5B,IAAa,SAA4B,GAAW,GAAO,GAAS;CACnE,IAAM,IAAe,EAAkB,CAAO;CAgB9C,AAdA,EACC,GACA,EAAM,WACN,aACA,+BACA,EAAa,QAAQ,CACtB,GACA,EACC,GACA,EAAM,OACN,SACA,gBACA,EAAa,QAAQ,CACtB,GACA,EACC,GACA;EACC,gBAAgB,EAAM,QAAQ,SAAS,EAAM;EAC7C,uBAAuB,EAAM,eAAe;CAC7C,GACA,EAAa,CACd;AACD;AAGD,IAAA,IAAe"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region components/slider/component.json
|
|
2
|
+
var e = "slider", t = "prod", n = "Slider", r = {
|
|
3
|
+
component: e,
|
|
4
|
+
status: t,
|
|
5
|
+
"display-name": "Slider",
|
|
6
|
+
classKey: n,
|
|
7
|
+
"SLDS-component-path": "/components/slider",
|
|
8
|
+
"site-stories": [
|
|
9
|
+
{
|
|
10
|
+
heading: "Base",
|
|
11
|
+
path: "/__examples__/base.jsx"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
heading: "Disabled",
|
|
15
|
+
path: "/__examples__/disabled.jsx"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
heading: "Error",
|
|
19
|
+
path: "/__examples__/error.jsx"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
heading: "Size Variants",
|
|
23
|
+
path: "/__examples__/sizes.jsx"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
heading: "Vertical",
|
|
27
|
+
path: "/__examples__/vertical.jsx"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"url-slug": "slider"
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { n as classKey, e as component, r as default, t as status };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.js","names":[],"sources":["../../../../components/slider/component.json"],"sourcesContent":["{\n\t\"component\": \"slider\",\n\t\"status\": \"prod\",\n\t\"display-name\": \"Slider\",\n\t\"classKey\": \"Slider\",\n\t\"SLDS-component-path\": \"/components/slider\",\n\t\"site-stories\": [\n\t\t{\n\t\t\t\"heading\": \"Base\",\n\t\t\t\"path\": \"/__examples__/base.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Disabled\",\n\t\t\t\"path\": \"/__examples__/disabled.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Error\",\n\t\t\t\"path\": \"/__examples__/error.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Size Variants\",\n\t\t\t\"path\": \"/__examples__/sizes.jsx\"\n\t\t},\n\t\t{\n\t\t\t\"heading\": \"Vertical\",\n\t\t\t\"path\": \"/__examples__/vertical.jsx\"\n\t\t}\n\t],\n\t\"url-slug\": \"slider\"\n}\n"],"mappings":""}
|
|
@@ -1,84 +1,100 @@
|
|
|
1
1
|
import { SLIDER as e } from "../../utilities/constants.js";
|
|
2
2
|
import t from "../../utilities/get-aria-props.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
3
|
+
import n from "./check-props.js";
|
|
4
|
+
import r from "./component.js";
|
|
5
|
+
import { useCallback as i, useEffect as a, useId as o } from "react";
|
|
6
|
+
import s from "classnames";
|
|
7
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
8
|
//#region components/slider/index.tsx
|
|
7
|
-
var
|
|
8
|
-
let
|
|
9
|
-
...
|
|
10
|
-
...
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
var u = { disabled: "Disabled" }, d = ({ "aria-describedby": d, assistiveText: f, classNameContainer: p, defaultValue: m, disabled: h, errorText: g, hasError: _, id: v, label: y, labels: b, max: x = 100, min: S = 0, name: C, onChange: w, onInput: T, size: E, step: D = 1, value: O, vertical: k, ...A }) => {
|
|
10
|
+
let j = o(), M = o(), N = v || j, P = _ ?? !!g, F = P ? b?.error ?? g : void 0, I = d || (F ? M : void 0), L = {
|
|
11
|
+
...u,
|
|
12
|
+
...f
|
|
13
|
+
}, R = b?.label ?? y, z = R || L.label;
|
|
14
|
+
a(() => {
|
|
15
|
+
n(e, {
|
|
16
|
+
assistiveText: f,
|
|
17
|
+
errorText: g,
|
|
18
|
+
label: y,
|
|
19
|
+
labels: b
|
|
20
|
+
}, r);
|
|
21
|
+
}, [
|
|
22
|
+
f,
|
|
23
|
+
g,
|
|
24
|
+
y,
|
|
25
|
+
b
|
|
26
|
+
]);
|
|
27
|
+
let B = t(A);
|
|
28
|
+
I && (B["aria-describedby"] = I);
|
|
29
|
+
let V = i((e) => {
|
|
30
|
+
w?.(e, { value: Number(e.target.value) });
|
|
31
|
+
}, [w]), H = i((e) => {
|
|
32
|
+
T?.(e, { value: Number(e.target.value) });
|
|
33
|
+
}, [T]), U = O ?? m ?? 0;
|
|
34
|
+
return /* @__PURE__ */ l("div", {
|
|
35
|
+
className: s("slds-form-element", { "slds-has-error": P }, p),
|
|
36
|
+
children: [/* @__PURE__ */ c("label", {
|
|
37
|
+
className: s("slds-form-element__label", { "slds-assistive-text": L.label && !R }),
|
|
38
|
+
htmlFor: N,
|
|
39
|
+
children: /* @__PURE__ */ l("span", {
|
|
24
40
|
className: "slds-slider-label",
|
|
25
41
|
children: [
|
|
26
|
-
|
|
42
|
+
z && /* @__PURE__ */ c("span", {
|
|
27
43
|
className: "slds-slider-label__label",
|
|
28
|
-
children:
|
|
44
|
+
children: z
|
|
29
45
|
}),
|
|
30
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ l("span", {
|
|
31
47
|
className: "slds-slider-label__range",
|
|
32
48
|
children: [
|
|
33
|
-
|
|
49
|
+
S,
|
|
34
50
|
" - ",
|
|
35
|
-
|
|
51
|
+
x
|
|
36
52
|
]
|
|
37
53
|
}),
|
|
38
|
-
|
|
54
|
+
h && /* @__PURE__ */ l("span", {
|
|
39
55
|
className: "slds-assistive-text",
|
|
40
|
-
children: [" ",
|
|
56
|
+
children: [" ", L.disabled]
|
|
41
57
|
})
|
|
42
58
|
]
|
|
43
59
|
})
|
|
44
|
-
}), /* @__PURE__ */
|
|
60
|
+
}), /* @__PURE__ */ l("div", {
|
|
45
61
|
className: "slds-form-element__control",
|
|
46
|
-
children: [/* @__PURE__ */
|
|
47
|
-
className:
|
|
48
|
-
"slds-slider_vertical":
|
|
49
|
-
"slds-size_x-small":
|
|
50
|
-
"slds-size_small":
|
|
51
|
-
"slds-size_medium":
|
|
52
|
-
"slds-size_large":
|
|
62
|
+
children: [/* @__PURE__ */ l("div", {
|
|
63
|
+
className: s("slds-slider", {
|
|
64
|
+
"slds-slider_vertical": k,
|
|
65
|
+
"slds-size_x-small": E === "x-small",
|
|
66
|
+
"slds-size_small": E === "small",
|
|
67
|
+
"slds-size_medium": E === "medium",
|
|
68
|
+
"slds-size_large": E === "large"
|
|
53
69
|
}),
|
|
54
|
-
children: [/* @__PURE__ */
|
|
70
|
+
children: [/* @__PURE__ */ c("input", {
|
|
55
71
|
type: "range",
|
|
56
|
-
id:
|
|
57
|
-
name:
|
|
72
|
+
id: N,
|
|
73
|
+
name: C,
|
|
58
74
|
className: "slds-slider__range",
|
|
59
|
-
min:
|
|
60
|
-
max:
|
|
61
|
-
step:
|
|
62
|
-
disabled:
|
|
63
|
-
onChange:
|
|
64
|
-
onInput:
|
|
65
|
-
...
|
|
66
|
-
...
|
|
67
|
-
}), /* @__PURE__ */
|
|
75
|
+
min: S,
|
|
76
|
+
max: x,
|
|
77
|
+
step: D,
|
|
78
|
+
disabled: h,
|
|
79
|
+
onChange: V,
|
|
80
|
+
onInput: H,
|
|
81
|
+
...B,
|
|
82
|
+
...O === void 0 ? { defaultValue: m } : { value: O }
|
|
83
|
+
}), /* @__PURE__ */ c("span", {
|
|
68
84
|
className: "slds-slider__value",
|
|
69
85
|
"aria-hidden": "true",
|
|
70
|
-
children:
|
|
86
|
+
children: U
|
|
71
87
|
})]
|
|
72
|
-
}),
|
|
73
|
-
id:
|
|
88
|
+
}), F && /* @__PURE__ */ c("div", {
|
|
89
|
+
id: I,
|
|
74
90
|
className: "slds-form-element__help",
|
|
75
|
-
children:
|
|
91
|
+
children: F
|
|
76
92
|
})]
|
|
77
93
|
})]
|
|
78
94
|
});
|
|
79
95
|
};
|
|
80
|
-
|
|
96
|
+
d.displayName = e;
|
|
81
97
|
//#endregion
|
|
82
|
-
export {
|
|
98
|
+
export { d as default };
|
|
83
99
|
|
|
84
100
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/slider/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, {
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/slider/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, {\n\tuseId,\n\tuseCallback,\n\tuseEffect,\n\ttype ChangeEvent,\n\ttype FormEvent,\n\ttype ReactNode,\n} from 'react';\nimport classNames from 'classnames';\nimport { SLIDER } from '../../utilities/constants';\nimport getAriaProps from '../../utilities/get-aria-props';\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\n\n/**\n * Slider size options\n */\nexport type SliderSize = 'x-small' | 'small' | 'medium' | 'large';\n\n/**\n * Assistive text for Slider\n */\nexport interface SliderAssistiveText {\n\t/** Text for disabled state */\n\tdisabled?: string;\n\t/** Visually hidden label */\n\tlabel?: string;\n}\n\n/**\n * Labels for Slider\n */\nexport interface SliderLabels {\n\t/** Error message shown below the slider while `hasError` is true */\n\terror?: ReactNode;\n\t/** Visible label */\n\tlabel?: ReactNode;\n}\n\n/**\n * Props for the Slider component\n */\nexport interface SliderProps {\n\t/** ARIA describedby attribute */\n\t'aria-describedby'?: string;\n\t/**\n\t * **Assistive text for accessibility**\n\t * * `disabled`: Read after the range while the slider is disabled\n\t * * `label`: Visually hidden label. Use instead of `labels.label`.\n\t */\n\tassistiveText?: SliderAssistiveText;\n\t/** CSS classes for the container */\n\tclassNameContainer?: string | string[] | Record<string, boolean>;\n\t/** Initial value for uncontrolled usage */\n\tdefaultValue?: number;\n\t/** Whether the slider is disabled */\n\tdisabled?: boolean;\n\t/** @deprecated Use `labels.error` and `hasError` instead. */\n\terrorText?: string;\n\t/** Puts the slider in an error state and shows `labels.error` */\n\thasError?: boolean;\n\t/** HTML id attribute */\n\tid?: string;\n\t/** @deprecated Use `labels.label` instead. */\n\tlabel?: string;\n\t/**\n\t * **Text labels for internationalization**\n\t * * `error`: Error message shown below the slider while `hasError` is true\n\t * * `label`: Visible label. Use `assistiveText.label` for a visually hidden label.\n\t */\n\tlabels?: SliderLabels;\n\t/** Maximum value (default: 100) */\n\tmax?: number;\n\t/** Minimum value (default: 0) */\n\tmin?: number;\n\t/** Form input name */\n\tname?: string;\n\t/** Called when value changes */\n\tonChange?: (\n\t\tevent: ChangeEvent<HTMLInputElement>,\n\t\tdata: { value: number }\n\t) => void;\n\t/** Called on input event */\n\tonInput?: (\n\t\tevent: FormEvent<HTMLInputElement>,\n\t\tdata: { value: number }\n\t) => void;\n\t/** Size of the slider */\n\tsize?: SliderSize;\n\t/** Step increment (default: 1) */\n\tstep?: number;\n\t/** Controlled value */\n\tvalue?: number;\n\t/** Display vertically */\n\tvertical?: boolean;\n}\n\nconst defaultAssistiveText: SliderAssistiveText = {\n\tdisabled: 'Disabled',\n};\n\n/**\n * The ability to style sliders with CSS varies across browsers.\n * Using this component ensures sliders look the same everywhere.\n */\nconst Slider = ({\n\t'aria-describedby': ariaDescribedBy,\n\tassistiveText: propAssistiveText,\n\tclassNameContainer,\n\tdefaultValue,\n\tdisabled,\n\terrorText,\n\thasError: hasErrorProp,\n\tid: propId,\n\tlabel: labelProp,\n\tlabels,\n\tmax = 100,\n\tmin = 0,\n\tname,\n\tonChange,\n\tonInput,\n\tsize,\n\tstep = 1,\n\tvalue,\n\tvertical,\n\t...rest\n}: SliderProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst generatedErrorId = useId();\n\n\tconst id = propId || generatedId;\n\t// `errorText` is deprecated: it sets both the error state and the message\n\tconst hasError = hasErrorProp ?? !!errorText;\n\tconst errorMessage = hasError ? (labels?.error ?? errorText) : undefined;\n\tconst errorId =\n\t\tariaDescribedBy || (errorMessage ? generatedErrorId : undefined);\n\tconst assistiveText = { ...defaultAssistiveText, ...propAssistiveText };\n\t// `label` is deprecated\n\tconst label = labels?.label ?? labelProp;\n\tconst labelText = label || assistiveText.label;\n\n\tuseEffect(() => {\n\t\tcheckProps(\n\t\t\tSLIDER,\n\t\t\t{ assistiveText: propAssistiveText, errorText, label: labelProp, labels },\n\t\t\tcomponentDoc\n\t\t);\n\t}, [propAssistiveText, errorText, labelProp, labels]);\n\n\tconst ariaProps = getAriaProps(rest) as Record<string, unknown>;\n\tif (errorId) {\n\t\tariaProps['aria-describedby'] = errorId;\n\t}\n\n\tconst handleChange = useCallback(\n\t\t(event: ChangeEvent<HTMLInputElement>) => {\n\t\t\tonChange?.(event, { value: Number(event.target.value) });\n\t\t},\n\t\t[onChange]\n\t);\n\n\tconst handleInput = useCallback(\n\t\t(event: FormEvent<HTMLInputElement>) => {\n\t\t\tonInput?.(event, {\n\t\t\t\tvalue: Number((event.target as HTMLInputElement).value),\n\t\t\t});\n\t\t},\n\t\t[onInput]\n\t);\n\n\tconst displayValue = value ?? defaultValue ?? 0;\n\n\treturn (\n\t\t<div\n\t\t\tclassName={classNames(\n\t\t\t\t'slds-form-element',\n\t\t\t\t{ 'slds-has-error': hasError },\n\t\t\t\tclassNameContainer as string\n\t\t\t)}\n\t\t>\n\t\t\t<label\n\t\t\t\tclassName={classNames('slds-form-element__label', {\n\t\t\t\t\t'slds-assistive-text': assistiveText.label && !label,\n\t\t\t\t})}\n\t\t\t\thtmlFor={id}\n\t\t\t>\n\t\t\t\t<span className=\"slds-slider-label\">\n\t\t\t\t\t{labelText && (\n\t\t\t\t\t\t<span className=\"slds-slider-label__label\">{labelText}</span>\n\t\t\t\t\t)}\n\t\t\t\t\t<span className=\"slds-slider-label__range\">\n\t\t\t\t\t\t{min} - {max}\n\t\t\t\t\t</span>\n\t\t\t\t\t{disabled && (\n\t\t\t\t\t\t<span className=\"slds-assistive-text\">\n\t\t\t\t\t\t\t{' '}\n\t\t\t\t\t\t\t{assistiveText.disabled}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t)}\n\t\t\t\t</span>\n\t\t\t</label>\n\t\t\t<div className=\"slds-form-element__control\">\n\t\t\t\t<div\n\t\t\t\t\tclassName={classNames('slds-slider', {\n\t\t\t\t\t\t'slds-slider_vertical': vertical,\n\t\t\t\t\t\t'slds-size_x-small': size === 'x-small',\n\t\t\t\t\t\t'slds-size_small': size === 'small',\n\t\t\t\t\t\t'slds-size_medium': size === 'medium',\n\t\t\t\t\t\t'slds-size_large': size === 'large',\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t<input\n\t\t\t\t\t\ttype=\"range\"\n\t\t\t\t\t\tid={id}\n\t\t\t\t\t\tname={name}\n\t\t\t\t\t\tclassName=\"slds-slider__range\"\n\t\t\t\t\t\tmin={min}\n\t\t\t\t\t\tmax={max}\n\t\t\t\t\t\tstep={step}\n\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\t\tonInput={handleInput}\n\t\t\t\t\t\t{...ariaProps}\n\t\t\t\t\t\t{...(value !== undefined ? { value } : { defaultValue })}\n\t\t\t\t\t/>\n\t\t\t\t\t<span className=\"slds-slider__value\" aria-hidden=\"true\">\n\t\t\t\t\t\t{displayValue}\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t\t{errorMessage && (\n\t\t\t\t\t<div id={errorId} className=\"slds-form-element__help\">\n\t\t\t\t\t\t{errorMessage}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nSlider.displayName = SLIDER;\n\nexport default Slider;\n"],"mappings":";;;;;;;;AAoGA,IAAM,IAA4C,EACjD,UAAU,WACX,GAMM,KAAU,EACf,oBAAoB,GACpB,eAAe,GACf,uBACA,iBACA,aACA,cACA,UAAU,GACV,IAAI,GACJ,OAAO,GACP,WACA,SAAM,KACN,SAAM,GACN,SACA,aACA,YACA,SACA,UAAO,GACP,UACA,aACA,GAAG,QACmC;CACtC,IAAM,IAAc,EAAM,GACpB,IAAmB,EAAM,GAEzB,IAAK,KAAU,GAEf,IAAW,KAAgB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AS;KAC9B,mBAAmB,MAAS;KAC5B,oBAAoB,MAAS;KAC7B,mBAAmB,MAAS;IAC7B,CAAC;IAPF,UAAA,CASC,kBAAC,SAAD;KACC,MAAK;KACD;KACE;KACN,WAAU;KACL;KACA;KACC;KACI;KACV,UAAU;KACV,SAAS;KACT,GAAI;KACJ,GAAK,MAAU,KAAA,IAAwB,EAAE,gBAAa,IAA3B,EAAE,SAAM;IACnC,CAAA,GACD,kBAAC,QAAD;KAAM,WAAU;KAAqB,eAAY;KAC/C,UAAA;IACI,CAAA,CACF;GACJ,CAAA,GAAA,KACA,kBAAC,OAAD;IAAK,IAAI;IAAS,WAAU;IAC1B,UAAA;GACG,CAAA,CAEF;EACD,CAAA,CAAA;;AAEP;AAEA,EAAO,cAAc"}
|
|
@@ -3,8 +3,8 @@ import t from "../../utilities/warning/deprecated-property.js";
|
|
|
3
3
|
//#region components/split-view/check-props.js
|
|
4
4
|
var n = function() {};
|
|
5
5
|
process.env.NODE_ENV !== "production" && (n = function(n, r = {}, i) {
|
|
6
|
-
let a = e(i), o = r.events || {};
|
|
7
|
-
t(n, o.onOpen, "events.onOpen", "events.onToggle", a("events")), t(n, o.onClose, "events.onClose", "events.onToggle", a("events"));
|
|
6
|
+
let a = e(i), o = r.events || {}, s = r.assistiveText || {};
|
|
7
|
+
t(n, o.onOpen, "events.onOpen", "events.onToggle", a("events")), t(n, o.onClose, "events.onClose", "events.onToggle", a("events")), t(n, s.toggleButtonOpen, "assistiveText.toggleButtonOpen", "assistiveText.closeToggle", `The old key was the text shown while open. ${a("assistiveText")}`), t(n, s.toggleButtonClose, "assistiveText.toggleButtonClose", "assistiveText.openToggle", `The old key was the text shown while closed. ${a("assistiveText")}`);
|
|
8
8
|
});
|
|
9
9
|
var r = n;
|
|
10
10
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-props.js","names":[],"sources":["../../../../components/split-view/check-props.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n/* eslint-disable import/no-mutable-exports */\n\nimport deprecatedProperty from '../../utilities/warning/deprecated-property';\nimport getComponentDocFn from '../../utilities/get-component-doc';\n\nlet checkProps = function checkPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckProps = function checkPropsFunction(COMPONENT, props = {}, jsonDoc) {\n\t\tconst createDocUrl = getComponentDocFn(jsonDoc);\n\t\tconst events = props.events || {};\n\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tevents.onOpen,\n\t\t\t'events.onOpen',\n\t\t\t'events.onToggle',\n\t\t\tcreateDocUrl('events')\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tevents.onClose,\n\t\t\t'events.onClose',\n\t\t\t'events.onToggle',\n\t\t\tcreateDocUrl('events')\n\t\t);\n\t};\n}\n\nexport default checkProps;\n"],"mappings":";;;AAOA,IAAI,IAAa,WAA8B,CAAC;AAEhD,QAAA,IAAA,aAA6B,iBAC5B,IAAa,SAA4B,GAAW,IAAQ,CAAC,GAAG,GAAS;CACxE,IAAM,IAAe,EAAkB,CAAO,GACxC,IAAS,EAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"check-props.js","names":[],"sources":["../../../../components/split-view/check-props.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n/* eslint-disable import/no-mutable-exports */\n\nimport deprecatedProperty from '../../utilities/warning/deprecated-property';\nimport getComponentDocFn from '../../utilities/get-component-doc';\n\nlet checkProps = function checkPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckProps = function checkPropsFunction(COMPONENT, props = {}, jsonDoc) {\n\t\tconst createDocUrl = getComponentDocFn(jsonDoc);\n\t\tconst events = props.events || {};\n\t\tconst assistiveText = props.assistiveText || {};\n\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tevents.onOpen,\n\t\t\t'events.onOpen',\n\t\t\t'events.onToggle',\n\t\t\tcreateDocUrl('events')\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tevents.onClose,\n\t\t\t'events.onClose',\n\t\t\t'events.onToggle',\n\t\t\tcreateDocUrl('events')\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tassistiveText.toggleButtonOpen,\n\t\t\t'assistiveText.toggleButtonOpen',\n\t\t\t'assistiveText.closeToggle',\n\t\t\t`The old key was the text shown while open. ${createDocUrl('assistiveText')}`\n\t\t);\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tassistiveText.toggleButtonClose,\n\t\t\t'assistiveText.toggleButtonClose',\n\t\t\t'assistiveText.openToggle',\n\t\t\t`The old key was the text shown while closed. ${createDocUrl('assistiveText')}`\n\t\t);\n\t};\n}\n\nexport default checkProps;\n"],"mappings":";;;AAOA,IAAI,IAAa,WAA8B,CAAC;AAEhD,QAAA,IAAA,aAA6B,iBAC5B,IAAa,SAA4B,GAAW,IAAQ,CAAC,GAAG,GAAS;CACxE,IAAM,IAAe,EAAkB,CAAO,GACxC,IAAS,EAAM,UAAU,CAAC,GAC1B,IAAgB,EAAM,iBAAiB,CAAC;CAuB9C,AArBA,EACC,GACA,EAAO,QACP,iBACA,mBACA,EAAa,QAAQ,CACtB,GACA,EACC,GACA,EAAO,SACP,kBACA,mBACA,EAAa,QAAQ,CACtB,GACA,EACC,GACA,EAAc,kBACd,kCACA,6BACA,8CAA8C,EAAa,eAAe,GAC3E,GACA,EACC,GACA,EAAc,mBACd,mCACA,4BACA,gDAAgD,EAAa,eAAe,GAC7E;AACD;AAGD,IAAA,IAAe"}
|
|
@@ -7,15 +7,18 @@ import l from "classnames";
|
|
|
7
7
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
8
|
//#region components/split-view/index.tsx
|
|
9
9
|
var f = {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
closeToggle: "Close split view",
|
|
11
|
+
openToggle: "Open split view"
|
|
12
12
|
}, p = ({ assistiveText: p, className: m, detail: h, events: g = {}, id: _, isOpen: v, master: y, masterWidth: b = "20rem" }) => {
|
|
13
13
|
let x = s(), S = _ || x, C = {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
closeToggle: p?.closeToggle ?? p?.toggleButtonOpen ?? f.closeToggle,
|
|
15
|
+
openToggle: p?.openToggle ?? p?.toggleButtonClose ?? f.openToggle
|
|
16
16
|
};
|
|
17
17
|
o(() => {
|
|
18
|
-
r(e, {
|
|
18
|
+
r(e, {
|
|
19
|
+
assistiveText: p,
|
|
20
|
+
events: g
|
|
21
|
+
}, i);
|
|
19
22
|
}, []);
|
|
20
23
|
let [w, T] = c(typeof v != "boolean" || v), E = typeof v == "boolean" ? v : w, D = `master_view_${S}`, O = a((e) => {
|
|
21
24
|
typeof v != "boolean" && T((e) => !e), g.onToggle ? g.onToggle(e, { isOpen: !E }) : E && g.onClose ? g.onClose(e) : !E && g.onOpen && g.onOpen(e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/split-view/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, {\n\tuseState,\n\tuseId,\n\tuseCallback,\n\tuseEffect,\n\ttype
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../components/split-view/index.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, {\n\tuseState,\n\tuseId,\n\tuseCallback,\n\tuseEffect,\n\ttype ReactNode,\n\ttype MouseEvent,\n} from 'react';\nimport classNames from 'classnames';\nimport ToggleButton, { TOGGLE_BUTTON_WIDTH } from './private/toggle-button';\nimport { SPLIT_VIEW } from '../../utilities/constants';\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\n\n/**\n * Assistive text for SplitView\n */\nexport interface SplitViewAssistiveText {\n\t/** Text for the toggle button while the split view is open (the button closes it) */\n\tcloseToggle?: string;\n\t/** Text for the toggle button while the split view is closed (the button opens it) */\n\topenToggle?: string;\n\t/** @deprecated Use `closeToggle` instead. Despite its name, this is the text shown while open. */\n\ttoggleButtonOpen?: string;\n\t/** @deprecated Use `openToggle` instead. Despite its name, this is the text shown while closed. */\n\ttoggleButtonClose?: string;\n}\n\n/**\n * Data passed to `events.onToggle`\n */\nexport interface SplitViewToggleData {\n\t/** The requested (next) open state: `true` when the toggle asks to open, `false` when it asks to close */\n\tisOpen: boolean;\n}\n\n/**\n * Event handlers for SplitView\n */\nexport interface SplitViewEvents {\n\t/**\n\t * Called when the toggle button is clicked. `data.isOpen` is the requested (next) open state.\n\t * In controlled mode (`isOpen` passed), update `isOpen` from this callback.\n\t */\n\tonToggle?: (\n\t\tevent: MouseEvent<HTMLButtonElement>,\n\t\tdata: SplitViewToggleData\n\t) => void;\n\t/**\n\t * Called when the split view closes. Only called when `events.onToggle` is not provided.\n\t * @deprecated use `events.onToggle`\n\t */\n\tonClose?: (event: MouseEvent<HTMLButtonElement>) => void;\n\t/**\n\t * Called when the split view opens. Only called when `events.onToggle` is not provided.\n\t * @deprecated use `events.onToggle`\n\t */\n\tonOpen?: (event: MouseEvent<HTMLButtonElement>) => void;\n}\n\n/**\n * Props for the SplitView component\n */\nexport interface SplitViewProps {\n\t/** Assistive text for accessibility */\n\tassistiveText?: SplitViewAssistiveText;\n\t/** CSS classes */\n\tclassName?: string | string[] | Record<string, boolean>;\n\t/** Detail panel content (required) */\n\tdetail: ReactNode;\n\t/**\n\t * **Event handlers**\n\t * * `onToggle`: Called with `(event, { isOpen })` when the toggle button is clicked; `isOpen` is the requested (next) state.\n\t * * `onOpen` / `onClose`: Deprecated, use `onToggle`.\n\t */\n\tevents?: SplitViewEvents;\n\t/** HTML id */\n\tid?: string;\n\t/** Whether the split view is open */\n\tisOpen?: boolean;\n\t/** Master panel content (required) */\n\tmaster: ReactNode;\n\t/** Width of the master section */\n\tmasterWidth?: string;\n}\n\nconst defaultAssistiveText = {\n\tcloseToggle: 'Close split view',\n\topenToggle: 'Open split view',\n};\n\n/**\n * Split view is used to navigate between records in a list while staying on the same screen.\n */\nconst SplitView = ({\n\tassistiveText: propAssistiveText,\n\tclassName,\n\tdetail,\n\tevents = {},\n\tid: propId,\n\tisOpen: controlledIsOpen,\n\tmaster,\n\tmasterWidth = '20rem',\n}: SplitViewProps): React.ReactElement => {\n\tconst generatedId = useId();\n\tconst id = propId || generatedId;\n\tconst assistiveText = {\n\t\tcloseToggle:\n\t\t\tpropAssistiveText?.closeToggle ??\n\t\t\tpropAssistiveText?.toggleButtonOpen ??\n\t\t\tdefaultAssistiveText.closeToggle,\n\t\topenToggle:\n\t\t\tpropAssistiveText?.openToggle ??\n\t\t\tpropAssistiveText?.toggleButtonClose ??\n\t\t\tdefaultAssistiveText.openToggle,\n\t};\n\n\t// Check props in development\n\tuseEffect(() => {\n\t\tcheckProps(\n\t\t\tSPLIT_VIEW,\n\t\t\t{ assistiveText: propAssistiveText, events },\n\t\t\tcomponentDoc\n\t\t);\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, []); // Only run on mount\n\n\t// Support both controlled and uncontrolled modes\n\tconst [internalIsOpen, setInternalIsOpen] = useState(\n\t\ttypeof controlledIsOpen === 'boolean' ? controlledIsOpen : true\n\t);\n\n\tconst isOpen =\n\t\ttypeof controlledIsOpen === 'boolean' ? controlledIsOpen : internalIsOpen;\n\tconst masterViewId = `master_view_${id}`;\n\n\tconst handleToggle = useCallback(\n\t\t(event: MouseEvent<HTMLButtonElement>) => {\n\t\t\tif (typeof controlledIsOpen !== 'boolean') {\n\t\t\t\tsetInternalIsOpen((prev) => !prev);\n\t\t\t}\n\n\t\t\tif (events.onToggle) {\n\t\t\t\tevents.onToggle(event, { isOpen: !isOpen });\n\t\t\t} else if (isOpen && events.onClose) {\n\t\t\t\tevents.onClose(event);\n\t\t\t} else if (!isOpen && events.onOpen) {\n\t\t\t\tevents.onOpen(event);\n\t\t\t}\n\t\t},\n\t\t[controlledIsOpen, isOpen, events]\n\t);\n\n\treturn (\n\t\t<div\n\t\t\tid={id}\n\t\t\tclassName={classNames('slds-grid', className as string)}\n\t\t\tstyle={{ height: '100%' }}\n\t\t>\n\t\t\t<div\n\t\t\t\tstyle={{\n\t\t\t\t\tmaxWidth: isOpen ? masterWidth : '0',\n\t\t\t\t\tminWidth: isOpen ? masterWidth : '0',\n\t\t\t\t}}\n\t\t\t\tclassName={classNames('slds-split-view_container', {\n\t\t\t\t\t'slds-is-open': isOpen,\n\t\t\t\t\t'slds-is-closed': !isOpen,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<ToggleButton\n\t\t\t\t\tassistiveText={assistiveText}\n\t\t\t\t\tariaControls={masterViewId}\n\t\t\t\t\tisOpen={isOpen}\n\t\t\t\t\tevents={{\n\t\t\t\t\t\tonClick: handleToggle,\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t\t<article\n\t\t\t\t\tid={masterViewId}\n\t\t\t\t\tclassName=\"slds-split-view slds-grid slds-grid_vertical slds-grow slds-scrollable_none\"\n\t\t\t\t>\n\t\t\t\t\t{isOpen ? master : null}\n\t\t\t\t</article>\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tstyle={{ marginLeft: TOGGLE_BUTTON_WIDTH }}\n\t\t\t\tclassName=\"slds-grow slds-scrollable_y\"\n\t\t\t>\n\t\t\t\t{detail}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nSplitView.displayName = SPLIT_VIEW;\n\nexport default SplitView;\n"],"mappings":";;;;;;;;AAyFA,IAAM,IAAuB;CAC5B,aAAa;CACb,YAAY;AACb,GAKM,KAAa,EAClB,eAA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UAAA;EACG,CAAA,CACD;;AAEP;AAEA,EAAU,cAAc"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import e from "../../utilities/get-component-doc.js";
|
|
2
|
+
import t from "../../utilities/warning/deprecated-property.js";
|
|
3
|
+
//#region components/split-view/listbox-check-props.js
|
|
4
|
+
var n = function() {};
|
|
5
|
+
process.env.NODE_ENV !== "production" && (n = function(n, r, i) {
|
|
6
|
+
let a = e(i);
|
|
7
|
+
t(n, r.listItem, "listItem", "renderListItem", `\`renderListItem\` is a function called with \`{ isFocused, isSelected, isUnread, item }\`, not a component. ${a("renderListItem")}`);
|
|
8
|
+
});
|
|
9
|
+
var r = n;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { r as default };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=listbox-check-props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listbox-check-props.js","names":[],"sources":["../../../../components/split-view/listbox-check-props.js"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n/* eslint-disable import/no-mutable-exports */\n\nimport deprecatedProperty from '../../utilities/warning/deprecated-property';\nimport getComponentDocFn from '../../utilities/get-component-doc';\n\nlet checkProps = function checkPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckProps = function checkPropsFunction(COMPONENT, props, jsonDoc) {\n\t\tconst createDocUrl = getComponentDocFn(jsonDoc);\n\n\t\tdeprecatedProperty(\n\t\t\tCOMPONENT,\n\t\t\tprops.listItem,\n\t\t\t'listItem',\n\t\t\t'renderListItem',\n\t\t\t`\\`renderListItem\\` is a function called with \\`{ isFocused, isSelected, isUnread, item }\\`, not a component. ${createDocUrl('renderListItem')}`\n\t\t);\n\t};\n}\n\nexport default checkProps;\n"],"mappings":";;;AAOA,IAAI,IAAa,WAA8B,CAAC;AAEhD,QAAA,IAAA,aAA6B,iBAC5B,IAAa,SAA4B,GAAW,GAAO,GAAS;CACnE,IAAM,IAAe,EAAkB,CAAO;CAE9C,EACC,GACA,EAAM,UACN,YACA,kBACA,gHAAgH,EAAa,gBAAgB,GAC9I;AACD;AAGD,IAAA,IAAe"}
|