@salesforce-ux/design-system 2.29.0 → 2.29.2
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/README.md +1 -1
- package/RELEASENOTES.general.md +2 -0
- package/RELEASENOTES.md +2 -0
- package/__internal/chunked/docs/common.js +1 -1
- package/__internal/chunked/docs/ui/components/accordion/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/alert/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/app-launcher/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/avatar-group/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/brand-band/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/builder-header/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/button-groups/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/button-icons/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/buttons/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/cards/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/checkbox-button/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/data-tables/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/datetime-picker/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/docked-composer/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/drop-zone/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/dynamic-icons/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/dynamic-menu/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/expression/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/form-element/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/global-header/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/global-navigation/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/input/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/list-builder/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/menus/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/page-headers/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/panels/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/path/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/picklist/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/rich-text-editor/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/scoped-notifications/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/setup-assistant/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/tabs/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/textarea/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/timepicker/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/toast/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/tree-grid/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/trees/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/vertical-navigation/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/components/welcome-mat/docs.mdx.js +1 -1
- package/__internal/chunked/docs/ui/utilities/grid/docs.mdx.js +1 -1
- package/__internal/chunked/showcase/common.js +1 -1
- package/__internal/chunked/showcase/ui/components/accordion/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/alert/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/app-launcher/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/avatar-group/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/button-groups/row/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/button-icons/stateful/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/buttons/dual-stateful/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/cards/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/checkbox-button/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/data-tables/advanced/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/data-tables/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/data-tables/hidden-header/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/data-tables/inline-edit/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/data-tables/responsive/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/datetime-picker/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/docked-composer/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/drop-zone/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/dynamic-icons/trend/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/dynamic-menu/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/expression/filters/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/expression/formula/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/form-element/compound/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/global-header/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/global-navigation/navigation-bar/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/global-navigation/navigation-tab-bar/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/input/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/list-builder/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/panels/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/path/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/picklist/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/rich-text-editor/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/scoped-notifications/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/setup-assistant/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/tabs/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/tabs/mobile-stack/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/tabs/sub-tabs/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/timepicker/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/toast/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/tree-grid/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/trees/base/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/vertical-navigation/list/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/vertical-navigation/radio-group/example.jsx.js +1 -1
- package/__internal/chunked/showcase/ui/components/welcome-mat/trailhead-connected/example.jsx.js +1 -1
- package/__internal/slds.umd.js +1 -1
- package/__internal/styles/salesforce-lightning-design-system_touch-demo.css +1 -1
- package/__internal/styles/salesforce-lightning-design-system_touch-demo.min.css +1 -1
- package/assets/images/avatar1.jpg +0 -0
- package/assets/images/avatar2.jpg +0 -0
- package/assets/images/avatar3.jpg +0 -0
- package/assets/images/carousel/carousel-01.jpg +0 -0
- package/assets/images/carousel/carousel-02.jpg +0 -0
- package/assets/images/carousel/carousel-03.jpg +0 -0
- package/assets/images/group_avatar_160.png +0 -0
- package/assets/images/group_avatar_200.png +0 -0
- package/assets/images/group_avatar_96.png +0 -0
- package/assets/images/placeholder-img@16x9.jpg +0 -0
- package/assets/images/placeholder-img@9x16.jpg +0 -0
- package/assets/images/popovers/popover-action.png +0 -0
- package/assets/images/popovers/popover-header.png +0 -0
- package/assets/images/product1.jpg +0 -0
- package/assets/images/product2.jpg +0 -0
- package/assets/images/product3.jpg +0 -0
- package/assets/images/profile_avatar_160.png +0 -0
- package/assets/images/profile_avatar_200.png +0 -0
- package/assets/images/profile_avatar_96.png +0 -0
- package/assets/images/spinners/slds_spinner.gif +0 -0
- package/assets/images/spinners/slds_spinner_brand.gif +0 -0
- package/assets/images/spinners/slds_spinner_inverse.gif +0 -0
- package/assets/images/themes/classic/banner-group-private-default-medium.png +0 -0
- package/assets/images/themes/classic/banner-group-private-default-small.png +0 -0
- package/assets/images/themes/classic/banner-group-private-default.png +0 -0
- package/assets/images/themes/classic/banner-group-public-default-medium.png +0 -0
- package/assets/images/themes/classic/banner-group-public-default-small.png +0 -0
- package/assets/images/themes/classic/banner-group-public-default.png +0 -0
- package/assets/images/themes/classic/banner-group-unlisted-default-medium.png +0 -0
- package/assets/images/themes/classic/banner-group-unlisted-default-small.png +0 -0
- package/assets/images/themes/classic/banner-group-unlisted-default.png +0 -0
- package/assets/images/themes/classic/banner-user-default-medium.png +0 -0
- package/assets/images/themes/classic/banner-user-default-small.png +0 -0
- package/assets/images/themes/classic/banner-user-default.png +0 -0
- package/assets/images/themes/oneSalesforce/banner-brand-default.png +0 -0
- package/assets/images/themes/oneSalesforce/banner-group-private-default-medium.png +0 -0
- package/assets/images/themes/oneSalesforce/banner-group-private-default-small.png +0 -0
- package/assets/images/themes/oneSalesforce/banner-group-private-default.png +0 -0
- package/assets/images/themes/oneSalesforce/banner-group-public-default-medium.png +0 -0
- package/assets/images/themes/oneSalesforce/banner-group-public-default-small.png +0 -0
- package/assets/images/themes/oneSalesforce/banner-group-public-default.png +0 -0
- package/assets/images/themes/oneSalesforce/banner-group-unlisted-default-medium.png +0 -0
- package/assets/images/themes/oneSalesforce/banner-group-unlisted-default-small.png +0 -0
- package/assets/images/themes/oneSalesforce/banner-group-unlisted-default.png +0 -0
- package/assets/images/themes/oneSalesforce/banner-user-default-medium.png +0 -0
- package/assets/images/themes/oneSalesforce/banner-user-default-small.png +0 -0
- package/assets/images/themes/oneSalesforce/banner-user-default.png +0 -0
- package/assets/images/welcome-mat/bg-info@2x.png +0 -0
- package/assets/images/welcome-mat/trailhead_badge@2x.png +0 -0
- package/assets/styles/salesforce-lightning-design-system-imports.sanitized.css +1 -1
- package/assets/styles/salesforce-lightning-design-system-legacy.css +15 -5
- package/assets/styles/salesforce-lightning-design-system-legacy.min.css +1 -1
- package/assets/styles/salesforce-lightning-design-system-offline.css +15 -5
- package/assets/styles/salesforce-lightning-design-system-offline.min.css +4 -4
- package/assets/styles/salesforce-lightning-design-system.css +15 -5
- package/assets/styles/salesforce-lightning-design-system.min.css +4 -4
- package/assets/styles/salesforce-lightning-design-system.sanitized.css +6 -1
- package/assets/styles/salesforce-lightning-design-system_touch.css +1 -1
- package/assets/styles/salesforce-lightning-design-system_touch.min.css +1 -1
- package/css/accordion/base/index.css +1 -1
- package/css/accordion/base/touch.css +1 -1
- package/css/activity-timeline/base/index.css +1 -1
- package/css/activity-timeline/base/touch.css +1 -1
- package/css/alert/base/index.css +1 -1
- package/css/app-launcher/base/index.css +1 -1
- package/css/avatar/base/index.css +1 -1
- package/css/avatar-group/base/index.css +1 -1
- package/css/badges/base/index.css +1 -1
- package/css/brand-band/base/index.css +1 -1
- package/css/breadcrumbs/base/index.css +1 -1
- package/css/breadcrumbs/kinetics/index.css +1 -1
- package/css/builder-header/base/index.css +1 -1
- package/css/button-groups/base/index.css +1 -1
- package/css/button-groups/list/index.css +1 -1
- package/css/button-groups/row/index.css +1 -1
- package/css/button-icons/base/index.css +1 -1
- package/css/button-icons/base/touch.css +1 -1
- package/css/button-icons/bordered-filled-container/index.css +1 -1
- package/css/button-icons/bordered-inverse/index.css +1 -1
- package/css/button-icons/bordered-transparent-container/index.css +1 -1
- package/css/button-icons/brand/index.css +1 -1
- package/css/button-icons/inverse/index.css +1 -1
- package/css/button-icons/sizing/index.css +1 -1
- package/css/button-icons/stateful/index.css +1 -1
- package/css/button-icons/transparent-container/index.css +1 -1
- package/css/buttons/base/index.css +1 -1
- package/css/buttons/base/touch.css +1 -1
- package/css/buttons/dual-stateful/index.css +1 -1
- package/css/buttons/kinetics/index.css +1 -1
- package/css/buttons/stateful/index.css +1 -1
- package/css/cards/base/index.css +1 -1
- package/css/cards/base/touch.css +1 -1
- package/css/cards/einstein/index.css +1 -1
- package/css/carousel/base/index.css +1 -1
- package/css/chat/base/index.css +11 -5
- package/css/chat/past/index.css +1 -1
- package/css/checkbox/base/index.css +1 -1
- package/css/checkbox/base/touch.css +1 -1
- package/css/checkbox/form-element/index.css +1 -1
- package/css/checkbox/form-element/touch.css +1 -1
- package/css/checkbox-button/base/index.css +1 -1
- package/css/checkbox-button/base/touch.css +1 -1
- package/css/checkbox-button-group/base/index.css +1 -1
- package/css/checkbox-button-group/base/touch.css +1 -1
- package/css/checkbox-toggle/base/index.css +1 -1
- package/css/checkbox-toggle/base/touch.css +1 -1
- package/css/color-picker/base/index.css +1 -1
- package/css/color-picker/custom-only/index.css +1 -1
- package/css/color-picker/predefined-only/index.css +1 -1
- package/css/color-picker/swatches-only/index.css +1 -1
- package/css/combobox/autocomplete/index.css +1 -1
- package/css/combobox/base/index.css +1 -1
- package/css/combobox/base/touch.css +1 -1
- package/css/combobox/deprecated-inline-listbox/index.css +1 -1
- package/css/combobox/deprecated-multi-entity/index.css +1 -1
- package/css/combobox/deprecated-readonly/index.css +1 -1
- package/css/combobox/dialog/index.css +1 -1
- package/css/common/index.css +5 -1
- package/css/counter/base/index.css +1 -1
- package/css/data-tables/base/index.css +1 -1
- package/css/data-tables/base/touch.css +1 -1
- package/css/data-tables/fixed-header/index.css +1 -1
- package/css/data-tables/hidden-header/index.css +1 -1
- package/css/data-tables/inline-edit/index.css +1 -1
- package/css/data-tables/responsive/index.css +1 -1
- package/css/datepickers/base/index.css +1 -1
- package/css/datepickers/range/index.css +1 -1
- package/css/datetime-picker/base/index.css +1 -1
- package/css/docked-composer/base/index.css +1 -1
- package/css/docked-composer/email/index.css +1 -1
- package/css/docked-form-footer/base/index.css +1 -1
- package/css/docked-utility-bar/base/index.css +1 -1
- package/css/docked-utility-bar/utility-panel/index.css +1 -1
- package/css/drop-zone/base/index.css +1 -1
- package/css/dueling-picklist/base/index.css +1 -1
- package/css/dynamic-icons/ellie/index.css +1 -1
- package/css/dynamic-icons/eq/index.css +1 -1
- package/css/dynamic-icons/global-action-help/index.css +1 -1
- package/css/dynamic-icons/score/index.css +1 -1
- package/css/dynamic-icons/strength/index.css +1 -1
- package/css/dynamic-icons/trend/index.css +1 -1
- package/css/dynamic-icons/typing/index.css +1 -1
- package/css/dynamic-icons/waffle/index.css +1 -1
- package/css/dynamic-menu/base/index.css +1 -1
- package/css/einstein-header/base/index.css +1 -1
- package/css/expandable-section/base/index.css +1 -1
- package/css/expression/base/index.css +1 -1
- package/css/expression/custom-logic/index.css +1 -1
- package/css/expression/filters/index.css +1 -1
- package/css/expression/formula/index.css +1 -1
- package/css/feeds/base/index.css +1 -1
- package/css/feeds/comment/index.css +1 -1
- package/css/feeds/post/index.css +1 -1
- package/css/feeds/post-with-attachments/index.css +1 -1
- package/css/file-selector/base/index.css +1 -1
- package/css/files/base/index.css +1 -1
- package/css/form-element/address/index.css +1 -1
- package/css/form-element/base/index.css +1 -1
- package/css/form-element/base/touch.css +1 -1
- package/css/form-element/compound/index.css +1 -1
- package/css/form-element/horizontal/index.css +1 -1
- package/css/form-element/horizontal/touch.css +1 -1
- package/css/form-element/record-detail/index.css +1 -1
- package/css/form-element/stacked/index.css +1 -1
- package/css/form-element/stacked/touch.css +1 -1
- package/css/form-layout/base/index.css +1 -1
- package/css/form-layout/compound/index.css +1 -1
- package/css/global-header/base/index.css +1 -1
- package/css/global-header/global-actions/index.css +1 -1
- package/css/global-header/notifications/index.css +1 -1
- package/css/global-navigation/navigation-bar/index.css +1 -1
- package/css/icons/action/index.css +1 -1
- package/css/icons/base/index.css +1 -1
- package/css/icons/custom/index.css +1 -1
- package/css/icons/doctype/index.css +1 -1
- package/css/icons/standard/index.css +1 -1
- package/css/illustration/base/index.css +1 -1
- package/css/input/base/index.css +1 -1
- package/css/input/base/touch.css +1 -1
- package/css/list-builder/base/index.css +1 -1
- package/css/lookups/base/index.css +1 -1
- package/css/lookups-mobile/combobox/index.css +1 -1
- package/css/lookups-mobile/faux-input/index.css +1 -1
- package/css/lookups-mobile/listbox/index.css +1 -1
- package/css/map/base/index.css +1 -1
- package/css/map/base/touch.css +1 -1
- package/css/menus/action-overflow/index.css +1 -1
- package/css/menus/dropdown/index.css +2 -1
- package/css/menus/dropdown/touch.css +1 -1
- package/css/menus/submenu/index.css +1 -1
- package/css/modals/base/index.css +1 -1
- package/css/modals/base/touch.css +1 -1
- package/css/notifications/base/index.css +1 -1
- package/css/page-headers/base/index.css +1 -1
- package/css/page-headers/record-home/index.css +1 -1
- package/css/page-headers/record-home-vertical/index.css +1 -1
- package/css/page-headers/related-list/index.css +1 -1
- package/css/panels/base/index.css +1 -1
- package/css/panels/detail/index.css +1 -1
- package/css/panels/filtering/index.css +1 -1
- package/css/path/base/index.css +1 -1
- package/css/path/base/touch.css +1 -1
- package/css/pills/base/index.css +1 -1
- package/css/pills/base/touch.css +1 -1
- package/css/pills/listbox-of-pill-options/index.css +1 -1
- package/css/popovers/base/index.css +1 -1
- package/css/popovers/brand/index.css +1 -1
- package/css/popovers/einstein/index.css +1 -1
- package/css/popovers/error/index.css +1 -1
- package/css/popovers/feature/index.css +1 -1
- package/css/popovers/nubbins/index.css +1 -1
- package/css/popovers/panels/index.css +1 -1
- package/css/popovers/prompt/index.css +1 -1
- package/css/popovers/prompt/touch.css +1 -1
- package/css/popovers/walkthrough/index.css +1 -1
- package/css/popovers/warning/index.css +1 -1
- package/css/progress-bar/base/index.css +1 -1
- package/css/progress-bar/vertical/index.css +1 -1
- package/css/progress-indicator/base/index.css +1 -1
- package/css/progress-indicator/base/touch.css +1 -1
- package/css/progress-indicator/vertical/index.css +1 -1
- package/css/progress-indicator/vertical/touch.css +1 -1
- package/css/progress-ring/base/index.css +1 -1
- package/css/prompt/base/index.css +1 -1
- package/css/publishers/base/index.css +1 -1
- package/css/publishers/comment/index.css +1 -1
- package/css/radio-button-group/base/index.css +1 -1
- package/css/radio-button-group/base/touch.css +1 -1
- package/css/radio-group/base/index.css +1 -1
- package/css/radio-group/base/touch.css +1 -1
- package/css/regions/base/index.css +1 -1
- package/css/rich-text-editor/base/index.css +1 -1
- package/css/scoped-notifications/base/index.css +1 -1
- package/css/scoped-tabs/base/index.css +1 -1
- package/css/select/base/index.css +1 -1
- package/css/setup-assistant/base/index.css +1 -1
- package/css/slider/base/index.css +1 -1
- package/css/slider/base/touch.css +1 -1
- package/css/spinners/base/index.css +1 -1
- package/css/split-view/base/index.css +1 -1
- package/css/summary-detail/base/index.css +1 -1
- package/css/tabs/base/index.css +1 -1
- package/css/tabs/mobile-stack/index.css +1 -1
- package/css/tabs/mobile-stack/touch.css +1 -1
- package/css/tabs/scrolling/index.css +1 -1
- package/css/tabs/sub-tabs/index.css +1 -1
- package/css/textarea/base/index.css +1 -1
- package/css/tiles/base/index.css +1 -1
- package/css/tiles/board/index.css +1 -1
- package/css/timepicker/base/index.css +1 -1
- package/css/toast/base/index.css +1 -1
- package/css/tooltips/base/index.css +1 -1
- package/css/tree-grid/base/index.css +1 -1
- package/css/trees/base/index.css +1 -1
- package/css/trial-bar/header/index.css +1 -1
- package/css/vertical-navigation/expandable-section/index.css +1 -1
- package/css/vertical-navigation/list/index.css +1 -1
- package/css/vertical-navigation/quickfind/index.css +1 -1
- package/css/vertical-navigation/radio-group/index.css +1 -1
- package/css/vertical-tabs/base/index.css +1 -1
- package/css/visual-picker/coverable-content/index.css +1 -1
- package/css/visual-picker/link/index.css +1 -1
- package/css/visual-picker/non-coverable-content/index.css +1 -1
- package/css/visual-picker/vertical/index.css +1 -1
- package/css/welcome-mat/base/index.css +1 -1
- package/css/welcome-mat/info-only/index.css +1 -1
- package/css/welcome-mat/splash/index.css +1 -1
- package/css/welcome-mat/trailhead-connected/index.css +1 -1
- package/package.json +1 -2
- package/scss/_config.scss +2 -2
- package/scss/_design-tokens.scss +1 -1
- package/scss/_init.scss +1 -1
- package/scss/_styling-hooks.scss +1 -1
- package/scss/components/_index.sanitized.scss +1 -1
- package/scss/components/_index.scss +1 -1
- package/scss/components/_kinetics.scss +1 -1
- package/scss/components/_touch.scss +1 -1
- package/scss/components/accordion/_doc.scss +1 -1
- package/scss/components/accordion/base/_index.scss +1 -1
- package/scss/components/accordion/base/_touch.scss +1 -1
- package/scss/components/activity-timeline/_doc.scss +1 -1
- package/scss/components/activity-timeline/base/_deprecate.scss +1 -1
- package/scss/components/activity-timeline/base/_index.scss +1 -1
- package/scss/components/activity-timeline/base/_touch.scss +1 -1
- package/scss/components/alert/_doc.scss +1 -1
- package/scss/components/alert/base/_index.scss +1 -1
- package/scss/components/app-launcher/_doc.scss +1 -1
- package/scss/components/app-launcher/base/_deprecate.scss +1 -1
- package/scss/components/app-launcher/base/_index.scss +1 -1
- package/scss/components/avatar/_doc.scss +1 -1
- package/scss/components/avatar/base/_index.scss +1 -1
- package/scss/components/avatar-group/_doc.scss +1 -1
- package/scss/components/avatar-group/base/_index.scss +1 -1
- package/scss/components/avatar-group/mixins/_index.scss +1 -1
- package/scss/components/badges/_doc.scss +1 -1
- package/scss/components/badges/base/_index.scss +1 -1
- package/scss/components/brand-band/_doc.scss +1 -1
- package/scss/components/brand-band/base/_index.scss +1 -1
- package/scss/components/breadcrumbs/_doc.scss +1 -1
- package/scss/components/breadcrumbs/base/_index.scss +1 -1
- package/scss/components/breadcrumbs/kinetics/_index.scss +1 -1
- package/scss/components/builder-header/_doc.scss +1 -1
- package/scss/components/builder-header/base/_index.scss +1 -1
- package/scss/components/button-groups/_doc.scss +1 -1
- package/scss/components/button-groups/base/_index.scss +1 -1
- package/scss/components/button-groups/list/_index.scss +1 -1
- package/scss/components/button-groups/row/_index.scss +1 -1
- package/scss/components/button-icons/_doc.scss +1 -1
- package/scss/components/button-icons/base/_deprecate.scss +1 -1
- package/scss/components/button-icons/base/_index.scss +1 -1
- package/scss/components/button-icons/base/_touch.scss +1 -1
- package/scss/components/button-icons/bordered-filled-container/_index.scss +1 -1
- package/scss/components/button-icons/bordered-inverse/_index.scss +1 -1
- package/scss/components/button-icons/bordered-transparent-container/_index.scss +1 -1
- package/scss/components/button-icons/brand/_index.scss +1 -1
- package/scss/components/button-icons/inverse/_index.scss +1 -1
- package/scss/components/button-icons/mixins/_index.scss +1 -1
- package/scss/components/button-icons/sizing/_index.scss +1 -1
- package/scss/components/button-icons/stateful/_index.scss +1 -1
- package/scss/components/button-icons/transparent-container/_index.scss +1 -1
- package/scss/components/buttons/_doc.scss +1 -1
- package/scss/components/buttons/base/_deprecate.scss +1 -1
- package/scss/components/buttons/base/_index.scss +1 -1
- package/scss/components/buttons/base/_touch.scss +1 -1
- package/scss/components/buttons/dual-stateful/_index.scss +1 -1
- package/scss/components/buttons/kinetics/_index.scss +1 -1
- package/scss/components/buttons/mixins/_index.scss +1 -1
- package/scss/components/buttons/stateful/_deprecate.scss +1 -1
- package/scss/components/buttons/stateful/_index.scss +1 -1
- package/scss/components/cards/_doc.scss +1 -1
- package/scss/components/cards/base/_blame.scss +1 -1
- package/scss/components/cards/base/_deprecate.scss +1 -1
- package/scss/components/cards/base/_index.scss +1 -1
- package/scss/components/cards/base/_touch.scss +1 -1
- package/scss/components/cards/einstein/_index.scss +1 -1
- package/scss/components/carousel/_doc.scss +1 -1
- package/scss/components/carousel/base/_index.scss +1 -1
- package/scss/components/chat/_doc.scss +1 -1
- package/scss/components/chat/base/_index.scss +8 -3
- package/scss/components/chat/past/_index.scss +1 -1
- package/scss/components/checkbox/_doc.scss +1 -1
- package/scss/components/checkbox/base/_deprecate.scss +1 -1
- package/scss/components/checkbox/base/_index.scss +1 -1
- package/scss/components/checkbox/base/_touch.scss +1 -1
- package/scss/components/checkbox/form-element/_index.scss +1 -1
- package/scss/components/checkbox/form-element/_touch.scss +1 -1
- package/scss/components/checkbox-button/_doc.scss +1 -1
- package/scss/components/checkbox-button/base/_deprecate.scss +1 -1
- package/scss/components/checkbox-button/base/_index.scss +1 -1
- package/scss/components/checkbox-button/base/_touch.scss +1 -1
- package/scss/components/checkbox-button-group/_doc.scss +1 -1
- package/scss/components/checkbox-button-group/base/_index.scss +1 -1
- package/scss/components/checkbox-button-group/base/_touch.scss +1 -1
- package/scss/components/checkbox-toggle/_doc.scss +1 -1
- package/scss/components/checkbox-toggle/base/_index.scss +1 -1
- package/scss/components/checkbox-toggle/base/_touch.scss +1 -1
- package/scss/components/color-picker/_doc.scss +1 -1
- package/scss/components/color-picker/base/_index.scss +1 -1
- package/scss/components/color-picker/custom-only/_index.scss +1 -1
- package/scss/components/color-picker/predefined-only/_index.scss +1 -1
- package/scss/components/color-picker/swatches-only/_index.scss +1 -1
- package/scss/components/combobox/_doc.scss +1 -1
- package/scss/components/combobox/autocomplete/_index.scss +1 -1
- package/scss/components/combobox/base/_index.scss +1 -1
- package/scss/components/combobox/base/_touch.scss +1 -1
- package/scss/components/combobox/deprecated-inline-listbox/_index.scss +1 -1
- package/scss/components/combobox/deprecated-multi-entity/_index.scss +1 -1
- package/scss/components/combobox/deprecated-readonly/_index.scss +1 -1
- package/scss/components/combobox/dialog/_index.scss +1 -1
- package/scss/components/counter/_doc.scss +1 -1
- package/scss/components/counter/base/_index.scss +1 -1
- package/scss/components/data-tables/_doc.scss +1 -1
- package/scss/components/data-tables/base/_blame.scss +1 -1
- package/scss/components/data-tables/base/_index.scss +1 -1
- package/scss/components/data-tables/base/_touch.scss +1 -1
- package/scss/components/data-tables/fixed-header/_index.scss +1 -1
- package/scss/components/data-tables/hidden-header/_index.scss +1 -1
- package/scss/components/data-tables/inline-edit/_index.scss +1 -1
- package/scss/components/data-tables/mixins/_index.scss +1 -1
- package/scss/components/data-tables/responsive/_index.scss +1 -1
- package/scss/components/datepickers/_doc.scss +1 -1
- package/scss/components/datepickers/base/_deprecate.scss +1 -1
- package/scss/components/datepickers/base/_index.scss +1 -1
- package/scss/components/datepickers/mixins/_index.scss +1 -1
- package/scss/components/datepickers/range/_index.scss +1 -1
- package/scss/components/datetime-picker/_doc.scss +1 -1
- package/scss/components/datetime-picker/base/_index.scss +1 -1
- package/scss/components/docked-composer/_doc.scss +1 -1
- package/scss/components/docked-composer/base/_deprecate.scss +1 -1
- package/scss/components/docked-composer/base/_index.scss +1 -1
- package/scss/components/docked-composer/email/_index.scss +1 -1
- package/scss/components/docked-form-footer/_doc.scss +1 -1
- package/scss/components/docked-form-footer/base/_index.scss +1 -1
- package/scss/components/docked-utility-bar/_doc.scss +1 -1
- package/scss/components/docked-utility-bar/base/_index.scss +1 -1
- package/scss/components/docked-utility-bar/utility-panel/_index.scss +1 -1
- package/scss/components/drop-zone/_doc.scss +1 -1
- package/scss/components/drop-zone/base/_index.scss +1 -1
- package/scss/components/dueling-picklist/_doc.scss +1 -1
- package/scss/components/dueling-picklist/base/_deprecate.scss +1 -1
- package/scss/components/dueling-picklist/base/_index.scss +1 -1
- package/scss/components/dynamic-icons/_doc.scss +1 -1
- package/scss/components/dynamic-icons/ellie/_index.scss +1 -1
- package/scss/components/dynamic-icons/eq/_index.scss +1 -1
- package/scss/components/dynamic-icons/global-action-help/_index.scss +1 -1
- package/scss/components/dynamic-icons/score/_index.scss +1 -1
- package/scss/components/dynamic-icons/strength/_index.scss +1 -1
- package/scss/components/dynamic-icons/trend/_index.scss +1 -1
- package/scss/components/dynamic-icons/typing/_index.scss +1 -1
- package/scss/components/dynamic-icons/waffle/_index.scss +1 -1
- package/scss/components/dynamic-menu/_doc.scss +1 -1
- package/scss/components/dynamic-menu/base/_index.scss +1 -1
- package/scss/components/einstein-header/base/_index.scss +1 -1
- package/scss/components/expandable-section/_doc.scss +1 -1
- package/scss/components/expandable-section/base/_deprecate.scss +1 -1
- package/scss/components/expandable-section/base/_index.scss +1 -1
- package/scss/components/expression/_doc.scss +1 -1
- package/scss/components/expression/base/_index.scss +1 -1
- package/scss/components/expression/custom-logic/_index.scss +1 -1
- package/scss/components/expression/filters/_index.scss +1 -1
- package/scss/components/expression/formula/_index.scss +1 -1
- package/scss/components/feeds/_doc.scss +1 -1
- package/scss/components/feeds/base/_index.scss +1 -1
- package/scss/components/feeds/comment/_deprecate.scss +1 -1
- package/scss/components/feeds/comment/_index.scss +1 -1
- package/scss/components/feeds/post/_index.scss +1 -1
- package/scss/components/feeds/post-with-attachments/_index.scss +1 -1
- package/scss/components/file-selector/_doc.scss +1 -1
- package/scss/components/file-selector/base/_index.scss +1 -1
- package/scss/components/files/_doc.scss +1 -1
- package/scss/components/files/base/_index.scss +1 -1
- package/scss/components/form-element/_doc.scss +1 -1
- package/scss/components/form-element/address/_index.scss +1 -1
- package/scss/components/form-element/base/_index.scss +1 -1
- package/scss/components/form-element/base/_touch.scss +1 -1
- package/scss/components/form-element/compound/_index.scss +1 -1
- package/scss/components/form-element/horizontal/_index.scss +1 -1
- package/scss/components/form-element/horizontal/_touch.scss +1 -1
- package/scss/components/form-element/record-detail/_index.scss +1 -1
- package/scss/components/form-element/stacked/_index.scss +1 -1
- package/scss/components/form-element/stacked/_touch.scss +1 -1
- package/scss/components/form-layout/_doc.scss +1 -1
- package/scss/components/form-layout/base/_index.scss +1 -1
- package/scss/components/form-layout/compound/_deprecate.scss +1 -1
- package/scss/components/form-layout/compound/_index.scss +1 -1
- package/scss/components/global-header/_doc.scss +1 -1
- package/scss/components/global-header/base/_deprecate.scss +1 -1
- package/scss/components/global-header/base/_index.scss +1 -1
- package/scss/components/global-header/global-actions/_index.scss +1 -1
- package/scss/components/global-header/notifications/_index.scss +1 -1
- package/scss/components/global-navigation/_doc.scss +1 -1
- package/scss/components/global-navigation/mixins/_index.scss +1 -1
- package/scss/components/global-navigation/navigation-bar/_index.scss +1 -1
- package/scss/components/icons/_doc.scss +1 -1
- package/scss/components/icons/action/_index.scss +1 -1
- package/scss/components/icons/base/_index.scss +1 -1
- package/scss/components/icons/custom/_index.scss +1 -1
- package/scss/components/icons/doctype/_index.scss +1 -1
- package/scss/components/icons/standard/_index.scss +1 -1
- package/scss/components/illustration/_doc.scss +1 -1
- package/scss/components/illustration/base/_index.scss +1 -1
- package/scss/components/input/_doc.scss +1 -1
- package/scss/components/input/base/_deprecate.scss +1 -1
- package/scss/components/input/base/_index.scss +1 -1
- package/scss/components/input/base/_touch.scss +1 -1
- package/scss/components/list-builder/_doc.scss +1 -1
- package/scss/components/list-builder/base/_index.scss +1 -1
- package/scss/components/lookups/_doc.scss +1 -1
- package/scss/components/lookups/base/_deprecate.scss +1 -1
- package/scss/components/lookups/base/_index.scss +1 -1
- package/scss/components/lookups-mobile/combobox/_index.scss +1 -1
- package/scss/components/lookups-mobile/faux-input/_index.scss +1 -1
- package/scss/components/lookups-mobile/listbox/_index.scss +1 -1
- package/scss/components/map/_doc.scss +1 -1
- package/scss/components/map/base/_index.scss +1 -1
- package/scss/components/map/base/_touch.scss +1 -1
- package/scss/components/menus/_doc.scss +1 -1
- package/scss/components/menus/action-overflow/_index.scss +1 -1
- package/scss/components/menus/dropdown/_deprecate.scss +1 -1
- package/scss/components/menus/dropdown/_index.scss +2 -1
- package/scss/components/menus/dropdown/_touch.scss +1 -1
- package/scss/components/menus/mixins/_index.scss +1 -1
- package/scss/components/menus/submenu/_index.scss +1 -1
- package/scss/components/modals/_doc.scss +1 -1
- package/scss/components/modals/base/_deprecate.scss +1 -1
- package/scss/components/modals/base/_index.scss +1 -1
- package/scss/components/modals/base/_touch.scss +1 -1
- package/scss/components/notifications/_doc.scss +1 -1
- package/scss/components/notifications/base/_index.scss +1 -1
- package/scss/components/page-headers/_doc.scss +1 -1
- package/scss/components/page-headers/base/_blame.scss +1 -1
- package/scss/components/page-headers/base/_index.scss +1 -1
- package/scss/components/page-headers/object-home/_deprecate.scss +1 -1
- package/scss/components/page-headers/record-home/_index.scss +1 -1
- package/scss/components/page-headers/record-home-vertical/_index.scss +1 -1
- package/scss/components/page-headers/related-list/_index.scss +1 -1
- package/scss/components/panels/_doc.scss +1 -1
- package/scss/components/panels/base/_index.scss +1 -1
- package/scss/components/panels/detail/_index.scss +1 -1
- package/scss/components/panels/filtering/_index.scss +1 -1
- package/scss/components/path/_doc.scss +1 -1
- package/scss/components/path/base/_index.scss +1 -1
- package/scss/components/path/base/_touch.scss +1 -1
- package/scss/components/path-simple/base/_deprecate.scss +1 -1
- package/scss/components/picklist/_doc.scss +1 -1
- package/scss/components/picklist/base/_deprecate.scss +1 -1
- package/scss/components/pills/_doc.scss +1 -1
- package/scss/components/pills/base/_deprecate.scss +1 -1
- package/scss/components/pills/base/_index.scss +1 -1
- package/scss/components/pills/base/_touch.scss +1 -1
- package/scss/components/pills/listbox-of-pill-options/_index.scss +1 -1
- package/scss/components/popovers/_doc.scss +1 -1
- package/scss/components/popovers/base/_index.scss +1 -1
- package/scss/components/popovers/brand/_index.scss +1 -1
- package/scss/components/popovers/einstein/_index.scss +1 -1
- package/scss/components/popovers/error/_index.scss +1 -1
- package/scss/components/popovers/feature/_index.scss +1 -1
- package/scss/components/popovers/nubbins/_index.scss +1 -1
- package/scss/components/popovers/panels/_index.scss +1 -1
- package/scss/components/popovers/prompt/_index.scss +1 -1
- package/scss/components/popovers/prompt/_touch.scss +1 -1
- package/scss/components/popovers/walkthrough/_deprecate.scss +1 -1
- package/scss/components/popovers/walkthrough/_index.scss +1 -1
- package/scss/components/popovers/warning/_index.scss +1 -1
- package/scss/components/process/wizard/_deprecate.scss +1 -1
- package/scss/components/progress-bar/_doc.scss +1 -1
- package/scss/components/progress-bar/base/_index.scss +1 -1
- package/scss/components/progress-bar/vertical/_index.scss +1 -1
- package/scss/components/progress-indicator/_doc.scss +1 -1
- package/scss/components/progress-indicator/base/_index.scss +1 -1
- package/scss/components/progress-indicator/base/_touch.scss +1 -1
- package/scss/components/progress-indicator/vertical/_index.scss +1 -1
- package/scss/components/progress-indicator/vertical/_touch.scss +1 -1
- package/scss/components/progress-ring/_doc.scss +1 -1
- package/scss/components/progress-ring/base/_index.scss +1 -1
- package/scss/components/prompt/_doc.scss +1 -1
- package/scss/components/prompt/base/_deprecate.scss +1 -1
- package/scss/components/prompt/base/_index.scss +1 -1
- package/scss/components/publishers/_doc.scss +1 -1
- package/scss/components/publishers/base/_index.scss +1 -1
- package/scss/components/publishers/comment/_index.scss +1 -1
- package/scss/components/radio-button-group/_doc.scss +1 -1
- package/scss/components/radio-button-group/base/_index.scss +1 -1
- package/scss/components/radio-button-group/base/_touch.scss +1 -1
- package/scss/components/radio-group/_doc.scss +1 -1
- package/scss/components/radio-group/base/_index.scss +1 -1
- package/scss/components/radio-group/base/_touch.scss +1 -1
- package/scss/components/regions/base/_index.scss +1 -1
- package/scss/components/rich-text-editor/_doc.scss +1 -1
- package/scss/components/rich-text-editor/base/_index.scss +1 -1
- package/scss/components/scoped-notifications/_doc.scss +1 -1
- package/scss/components/scoped-notifications/base/_index.scss +1 -1
- package/scss/components/scoped-tabs/_doc.scss +1 -1
- package/scss/components/scoped-tabs/base/_deprecate.scss +1 -1
- package/scss/components/scoped-tabs/base/_index.scss +1 -1
- package/scss/components/select/_doc.scss +1 -1
- package/scss/components/select/base/_index.scss +1 -1
- package/scss/components/setup-assistant/_doc.scss +1 -1
- package/scss/components/setup-assistant/base/_index.scss +1 -1
- package/scss/components/slider/_doc.scss +1 -1
- package/scss/components/slider/base/_index.scss +1 -1
- package/scss/components/slider/base/_touch.scss +1 -1
- package/scss/components/spinners/_doc.scss +1 -1
- package/scss/components/spinners/base/_index.scss +1 -1
- package/scss/components/split-view/_doc.scss +1 -1
- package/scss/components/split-view/base/_deprecate.scss +1 -1
- package/scss/components/split-view/base/_index.scss +1 -1
- package/scss/components/summary-detail/_doc.scss +1 -1
- package/scss/components/summary-detail/base/_index.scss +1 -1
- package/scss/components/tabs/_doc.scss +1 -1
- package/scss/components/tabs/base/_deprecate.scss +1 -1
- package/scss/components/tabs/base/_index.scss +1 -1
- package/scss/components/tabs/mixins/_index.scss +1 -1
- package/scss/components/tabs/mobile-stack/_deprecate.scss +1 -1
- package/scss/components/tabs/mobile-stack/_index.scss +1 -1
- package/scss/components/tabs/mobile-stack/_touch.scss +1 -1
- package/scss/components/tabs/scrolling/_index.scss +1 -1
- package/scss/components/tabs/sub-tabs/_index.scss +1 -1
- package/scss/components/textarea/_doc.scss +1 -1
- package/scss/components/textarea/base/_index.scss +1 -1
- package/scss/components/tiles/_doc.scss +1 -1
- package/scss/components/tiles/base/_index.scss +1 -1
- package/scss/components/tiles/board/_index.scss +1 -1
- package/scss/components/timepicker/_doc.scss +1 -1
- package/scss/components/timepicker/base/_deprecate.scss +1 -1
- package/scss/components/timepicker/base/_index.scss +1 -1
- package/scss/components/toast/_doc.scss +1 -1
- package/scss/components/toast/base/_index.scss +1 -1
- package/scss/components/toast/modal-toast/_deprecate.scss +1 -1
- package/scss/components/tooltips/_doc.scss +1 -1
- package/scss/components/tooltips/base/_deprecate.scss +1 -1
- package/scss/components/tooltips/base/_index.scss +1 -1
- package/scss/components/tree-grid/_doc.scss +1 -1
- package/scss/components/tree-grid/base/_index.scss +1 -1
- package/scss/components/trees/_doc.scss +1 -1
- package/scss/components/trees/base/_deprecate.scss +1 -1
- package/scss/components/trees/base/_index.scss +1 -1
- package/scss/components/trial-bar/_doc.scss +1 -1
- package/scss/components/trial-bar/header/_index.scss +1 -1
- package/scss/components/vertical-navigation/_doc.scss +1 -1
- package/scss/components/vertical-navigation/expandable-section/_index.scss +1 -1
- package/scss/components/vertical-navigation/list/_deprecate.scss +1 -1
- package/scss/components/vertical-navigation/list/_index.scss +1 -1
- package/scss/components/vertical-navigation/quickfind/_index.scss +1 -1
- package/scss/components/vertical-navigation/radio-group/_index.scss +1 -1
- package/scss/components/vertical-tabs/_doc.scss +1 -1
- package/scss/components/vertical-tabs/base/_index.scss +1 -1
- package/scss/components/visual-picker/_doc.scss +1 -1
- package/scss/components/visual-picker/coverable-content/_index.scss +1 -1
- package/scss/components/visual-picker/link/_index.scss +1 -1
- package/scss/components/visual-picker/non-coverable-content/_index.scss +1 -1
- package/scss/components/visual-picker/vertical/_index.scss +1 -1
- package/scss/components/welcome-mat/_doc.scss +1 -1
- package/scss/components/welcome-mat/base/_deprecate.scss +1 -1
- package/scss/components/welcome-mat/base/_index.scss +1 -1
- package/scss/components/welcome-mat/info-only/_index.scss +1 -1
- package/scss/components/welcome-mat/splash/_index.scss +1 -1
- package/scss/components/welcome-mat/trailhead-connected/_index.scss +1 -1
- package/scss/core/_vf-reset.scss +1 -1
- package/scss/dependencies/_appearance.scss +1 -1
- package/scss/dependencies/_core.scss +3 -1
- package/scss/dependencies/_forms.scss +1 -1
- package/scss/dependencies/_functions.scss +1 -1
- package/scss/dependencies/_index.scss +1 -1
- package/scss/dependencies/_interactions.scss +1 -1
- package/scss/dependencies/_kinetics.scss +1 -1
- package/scss/dependencies/_layout.scss +1 -1
- package/scss/dependencies/_lists.scss +1 -1
- package/scss/dependencies/_motion.scss +1 -1
- package/scss/dependencies/_popover.scss +1 -1
- package/scss/dependencies/_root.scss +1 -1
- package/scss/dependencies/_rtl.scss +1 -1
- package/scss/dependencies/_scrolling.scss +1 -1
- package/scss/dependencies/_sizing.scss +1 -1
- package/scss/dependencies/_tabs.scss +1 -1
- package/scss/dependencies/_text.scss +1 -1
- package/scss/dependencies/_theme.scss +1 -1
- package/scss/dependencies/_touch.scss +1 -1
- package/scss/dependencies/_typography.scss +1 -1
- package/scss/dependencies/_visibility.scss +1 -1
- package/scss/index-internal.scss +1 -1
- package/scss/index-sanitized.scss +1 -1
- package/scss/index-vf.scss +1 -1
- package/scss/index.scss +1 -1
- package/scss/legacy.scss +1 -1
- package/scss/touch/_index.scss +1 -1
- package/scss/touch/forms/edit-dialog/_index.scss +1 -1
- package/scss/touch/menus/action-overflow/_index.scss +1 -1
- package/scss/touch-demo.scss +1 -1
- package/scss/touch-internal.scss +1 -1
- package/scss/touch.scss +1 -1
- package/scss/utilities/_index.scss +1 -1
- package/scss/utilities/_touch.scss +1 -1
- package/scss/utilities/alignment/_doc.scss +1 -1
- package/scss/utilities/alignment/_index.scss +1 -1
- package/scss/utilities/borders/_doc.scss +1 -1
- package/scss/utilities/borders/_index.scss +1 -1
- package/scss/utilities/box/_doc.scss +1 -1
- package/scss/utilities/box/_index.scss +1 -1
- package/scss/utilities/color/_doc.scss +1 -1
- package/scss/utilities/color/_index.scss +1 -1
- package/scss/utilities/description-list/_doc.scss +1 -1
- package/scss/utilities/description-list/_index.scss +1 -1
- package/scss/utilities/floats/_doc.scss +1 -1
- package/scss/utilities/floats/_index.scss +1 -1
- package/scss/utilities/grid/_deprecate.scss +1 -1
- package/scss/utilities/grid/_doc.scss +1 -1
- package/scss/utilities/grid/_index.scss +1 -1
- package/scss/utilities/horizontal-list/_deprecate.scss +1 -1
- package/scss/utilities/horizontal-list/_doc.scss +1 -1
- package/scss/utilities/horizontal-list/_index.scss +1 -1
- package/scss/utilities/hyphenation/_doc.scss +1 -1
- package/scss/utilities/hyphenation/_index.scss +1 -1
- package/scss/utilities/index-with-dependencies.scss +1 -1
- package/scss/utilities/interactions/_doc.scss +1 -1
- package/scss/utilities/interactions/_index.scss +1 -1
- package/scss/utilities/layout/_doc.scss +1 -1
- package/scss/utilities/layout/_index.scss +1 -1
- package/scss/utilities/line-clamp/_doc.scss +1 -1
- package/scss/utilities/line-clamp/_index.scss +1 -1
- package/scss/utilities/margin/_doc.scss +1 -1
- package/scss/utilities/margin/_index.scss +1 -1
- package/scss/utilities/media-objects/_deprecate.scss +1 -1
- package/scss/utilities/media-objects/_doc.scss +1 -1
- package/scss/utilities/media-objects/_index.scss +1 -1
- package/scss/utilities/name-value-list/_doc.scss +1 -1
- package/scss/utilities/name-value-list/_index.scss +1 -1
- package/scss/utilities/padding/_doc.scss +1 -1
- package/scss/utilities/padding/_index.scss +1 -1
- package/scss/utilities/position/_doc.scss +1 -1
- package/scss/utilities/position/_index.scss +1 -1
- package/scss/utilities/print/_doc.scss +1 -1
- package/scss/utilities/print/_index.scss +1 -1
- package/scss/utilities/scrollable/_doc.scss +1 -1
- package/scss/utilities/scrollable/_index.scss +1 -1
- package/scss/utilities/sizing/_doc.scss +1 -1
- package/scss/utilities/sizing/_index.scss +1 -1
- package/scss/utilities/text/_doc.scss +1 -1
- package/scss/utilities/text/_index.scss +1 -1
- package/scss/utilities/text/_touch.scss +1 -1
- package/scss/utilities/themes/_doc.scss +1 -1
- package/scss/utilities/themes/_index.scss +1 -1
- package/scss/utilities/truncation/_doc.scss +1 -1
- package/scss/utilities/truncation/_index.scss +1 -1
- package/scss/utilities/vertical-list/_deprecate.scss +1 -1
- package/scss/utilities/vertical-list/_doc.scss +1 -1
- package/scss/utilities/vertical-list/_index.scss +1 -1
- package/scss/utilities/visibility/_deprecate.scss +1 -1
- package/scss/utilities/visibility/_doc.scss +1 -1
- package/scss/utilities/visibility/_index.scss +1 -1
- package/ui.aura-tokens.json +1 -1
- package/ui.component-tokens.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var SLDS;!function(){"use strict";var e,t,l,a={1594:function(e){e.exports=React},1981:function(e){e.exports=JSBeautify},5206:function(e){e.exports=ReactDOM},7247:function(e,t,l){l.r(t),l.d(t,{getContents:function(){return Be},getElement:function(){return Ie}});var a=l(1594),n=l.n(a),i=l(5671),r=l(6547),o=(l(3212),l(5619)),s=l(806),c=l(942),d=l.n(c),m=l(7412),u=l.n(m),b=l(6955),p=l(5006),E=l(3589),h=l(885),y=l(538);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},v.apply(null,arguments)}function g(e,t,l){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,"string");if("object"!=f(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}var x=n().createContext({isActionableMode:!1}),w="Cell content that is very long.\nIt also has a line break.\nIt has more than one line break",N=function(e){return n().createElement(R,null,n().createElement(k,null,n().createElement(L,{columnName:"Opportunity Name"})),n().createElement(k,null,n().createElement(L,{columnName:"Account Name"})),n().createElement(k,null,n().createElement(L,{columnName:"Close Date"})),n().createElement(k,null,n().createElement(L,{columnName:"Stage"})),n().createElement(k,null,n().createElement(L,{columnName:"Confidence"})),n().createElement(k,null,n().createElement(L,{columnName:"Amount"})),n().createElement(k,null,n().createElement(L,{columnName:"Contact"})))},C=function(e){return n().createElement(D,null,n().createElement(F,{"data-label":"Opportunity Name"},n().createElement(W,{cellText:e.title,cellLink:!0})),n().createElement(H,{"data-label":"Account Name",type:"base"},n().createElement(W,{cellText:"Cloudhub"})),n().createElement(H,{"data-label":"Close Date",type:"base"},n().createElement(W,{cellText:"4/14/2015"})),n().createElement(H,{"data-label":"Prospecting",type:"base"},n().createElement(W,{cellText:"Prospecting"})),n().createElement(H,{"data-label":"Confidence",type:"base"},n().createElement(W,{cellText:"20%"})),n().createElement(H,{"data-label":"Amount",type:"base"},n().createElement(W,{cellText:"$25k"})),n().createElement(H,{"data-label":"Contact",type:"base"},n().createElement(W,{cellLink:!0,cellText:"jrogers@cloudhub.com"})))};C.propTypes={title:u().string};var S=function(e){return n().createElement("div",{className:"slds-table_edit_container slds-is-relative"},e.children)};S.propTypes={children:u().node};var T=function(e){var t=d()("slds-table",{"slds-table_cell-buffer":e.hasCellBuffer,"slds-table_header-hidden":e.hasHiddenHeader,"slds-no-row-hover":e.hasNoRowHover,"slds-no-cell-focus":e.hasNoCellFocus,"slds-table_bordered":e.isBordered,"slds-table_col-bordered":e.isColBordered,"slds-table_edit":e.isEditable,"slds-table_fixed-layout":e.isFixedLayout,"slds-max-medium-table_stacked-horizontal":e.isResponsive,"slds-max-medium-table_stacked":e.isResponsiveStacked,"slds-table_resizable-cols":e.isResizable,"slds-table_striped":e.isStriped,"slds-tree slds-table_tree":"treegrid"===e.type,"slds-table_header-fixed":e.hasFixedHeader});return n().createElement("table",v({"aria-multiselectable":"multiple"===e.selectionType?"true":null,className:t,role:function(){var t=null;switch(e.type){case"advanced":t="grid";break;case"treegrid":t="treegrid"}return t}(),style:e.style},e.ariaLabelledBy&&g({},"aria-labelledby",e.ariaLabelledBy),e.ariaLabel&&g({},"aria-label",e.ariaLabel)),e.children)};T.displayName="Table",T.propTypes={ariaLabel:u().string,ariaLabelledBy:u().string,children:u().node,hasCellBuffer:u().bool,hasHiddenHeader:u().bool,hasNoCellFocus:u().bool,hasNoRowHover:u().bool,isBordered:u().bool,isColBordered:u().bool,isEditable:u().bool,isFixedLayout:u().bool,isResizable:u().bool,isResponsive:u().bool,isResponsiveStacked:u().bool,isStriped:u().bool,selectionType:u().oneOf(["multiple","single"]),style:u().object,type:u().oneOf(["advanced","base","treegrid"]).isRequired,hasFixedHeader:u().bool};var A=function(e){return n().createElement("thead",{className:e.isHidden?"slds-assistive-text":null},e.children)};A.displayName="THead",A.propTypes={children:u().node,isHidden:u().bool};var R=function(e){return n().createElement("tr",{className:"slds-line-height_reset"},e.children)};R.displayName="THeadTr",R.propTypes={children:u().node};var k=function(e){var t,l=(0,a.useContext)(x).isActionableMode,i=d()({"slds-has-button-menu":e.hasMenu,"slds-has-focus":e.hasFocus,"slds-is-resizable":e.isResizable,"slds-text-align_right":e.isRightAligned,"slds-is-sortable":e.isSortable,"slds-is-sorted":"ascending"===e.sortDirection||"descending"===e.sortDirection,"slds-is-sorted_asc":"ascending"===e.sortDirection,"slds-is-sorted_desc":"descending"===e.sortDirection,"slds-cell-wrap":e.hasWrap,"slds-cell_action-mode":l});return n().createElement("th",{"aria-sort":(t=null,e.isSortable&&(t=e.sortDirection||"none"),t),className:i,scope:!e.isDataTable&&"col",role:e.isDataTable&&"cell",style:e.style},e.isDataTable,e.children)};k.displayName="ColumnTh",k.propTypes={"aria-label":u().string,children:u().node,hasFocus:u().bool,hasMenu:u().bool,isResizable:u().bool,isRightAligned:u().bool,isSortable:u().bool,sortDirection:u().oneOf(["ascending","descending","none"]),style:u().object,hasWrap:u().bool,isDataTable:u().bool};var L=function(e){return n().createElement("div",{className:d()("slds-truncate",{"slds-assistive-text":e.isAssistiveText,"slds-cell-fixed":e.isFixedCell}),id:e.id,title:e.columnName},e.columnName)};L.displayName="ColumnHeader",L.propTypes={columnName:u().string.isRequired,id:u().string,isAssistiveText:u().bool,isFixedCell:u().bool},L.defaultProps={columnName:"Column Name",isDataTable:u().bool};var _=function(e){var t=s.Ay.uniqueId("cell-resize-handle-");return n().createElement("div",{className:"slds-resizable"},n().createElement("input",{"aria-label":e.label,className:"slds-resizable__input slds-assistive-text",id:t,max:"1000",min:"20",tabIndex:e.tabIndex,type:"range"}),n().createElement("span",{className:"slds-resizable__handle"},n().createElement("span",{className:"slds-resizable__divider"})))};_.displayName="ResizeControl",_.propTypes={label:u().string.isRequired,tabIndex:u().oneOf(["0","-1"])};var O=function(e){var t=(0,a.useContext)(x).isActionableMode,l=t?"0":"-1",i=function(){return n().createElement("div",{className:"slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate"},e.columnHeaderIcons?function(){var t=e.columnHeaderIcons.filter(function(t){return t.column===e.columnName.toLowerCase()});if(t.length)return t[0].icon}():null,n().createElement("span",{className:"slds-truncate",title:e.columnName},e.columnName),e.isSortable&&n().createElement(y.eX,{assistiveText:!1,className:"slds-icon-text-default slds-is-sortable__icon ",symbol:"arrowdown",title:!1}))};return n().createElement(n().Fragment,null,e.isSortable?n().createElement("a",{className:"slds-th__action slds-text-link_reset",href:"#",role:"button",tabIndex:l,onClick:function(e){return e.preventDefault()}},n().createElement("span",{className:"slds-assistive-text"},"Sort by: "),i()):n().createElement("div",{className:"slds-th__action"},i()),e.sortDirection&&n().createElement("span",{className:"slds-assistive-text","aria-live":"polite","aria-atomic":"true"},"Sorted ",e.sortDirection),e.hasMenu&&n().createElement(b.A,{"aria-haspopup":"true",assistiveText:"Show ".concat(e.columnName," column actions"),className:"slds-th__action-button slds-button_icon-x-small",iconClassName:"slds-button__icon_hint slds-button__icon_small",symbol:"chevrondown",tabIndex:t?"0":"-1",title:"Show ".concat(e.columnName," column actions")}),e.isResizable&&n().createElement(_,{label:e.columnName+" column width"||0,tabIndex:l}))};O.displayName="InteractiveColumnHeader",O.propTypes={columnName:u().string.isRequired,columnHeaderIcons:u().array,hasMenu:u().bool,isResizable:u().bool,isSortable:u().bool,sortDirection:u().oneOf(["ascending","descending"])},O.defaultProps={isResizable:!0,isSortable:!0};var I=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(n().Fragment,null,n().createElement("div",{className:"slds-th__action slds-th__action_form"},n().createElement(E.Sc,{tabIndex:t?"0":"-1",labelId:"check-select-all-label",label:"Select All",hideLabel:!0,checked:!!e.checked||null,groupId:"column-group-header",isDataTable:!0})))};I.displayName="SelectAllColumnHeader",I.propTypes={checked:u().bool};var B=function(e){var t=e.hasErrorColumn?"2rem":"3.25rem",l=e.mainColumnWidth||null;return n().createElement(A,{isHidden:e.isHidden},n().createElement(R,null,e.hasErrorColumn?n().createElement(k,{style:{width:"3.75rem"}},n().createElement(L,{columnName:"Errors",isAssistiveText:!0})):null,!e.hasNoRowSelection&&n().createElement(k,{isDataTable:!e.hasSingleRowSelect||!e.isHidden,isRightAligned:!e.hasErrorColumn||null,style:{width:t}},e.hasSingleRowSelect||e.isHidden?n().createElement(L,{columnName:"Choose a row to select",id:"column-group-header",isAssistiveText:!0}):n().createElement(I,{checked:e.selectAll})),e.columns.map(function(t,a){return n().createElement(k,{key:a,"aria-label":t,hasFocus:0===a?e.hasFocus:null,hasMenu:e.hasMenus,isResizable:e.isResizable&&!e.isHidden,isSortable:e.isSortable&&!e.isHidden,sortDirection:0===a?e.sortDirection:null,style:{width:0===a&&e.singleColumnWidth?e.singleColumnWidth:l}},n().createElement(O,{columnName:t,columnHeaderIcons:e.columnHeaderIcons,hasMenu:e.hasMenus,isResizable:e.isResizable&&!e.isHidden,isSortable:e.isSortable&&!e.isHidden,sortDirection:0===a?e.sortDirection:null}))}),e.hasRowLevelActions&&n().createElement(k,{style:{width:"3.25rem"}},n().createElement(L,{columnName:"Actions",isAssistiveText:!0}))))};B.displayName="AdvancedDataTableHead",B.propTypes={columnHeaderIcons:u().array,columns:u().array.isRequired,hasErrorColumn:u().bool,hasFocus:u().bool,hasMenus:u().bool,hasNoRowSelection:u().bool,hasRowLevelActions:u().bool,hasSingleRowSelect:u().bool,isHidden:u().bool,isResizable:u().bool,isSortable:u().bool,mainColumnWidth:u().string,selectAll:u().bool,singleColumnWidth:u().string,sortDirection:u().oneOf(["ascending","descending","none"])},B.defaultProps={hasRowLevelActions:!0,isResizable:!0,isSortable:!0};var q=function(e){return n().createElement("tbody",null,e.children)};q.displayName="TBody",q.propTypes={children:u().node};var D=function(e){return n().createElement("tr",{"aria-expanded":e.isExpanded,"aria-level":e.level,"aria-posinset":e.positionWithinLevel,"aria-selected":e.isSelected,"aria-setsize":e.numberOfItemsAtLevel,className:d()("slds-hint-parent",{"slds-align-top":e.isTopAligned,"slds-is-selected":e.isSelected}),tabIndex:e.tabIndex},e.children)};D.displayName="TBodyTr",D.propTypes={children:u().node,isExpanded:u().bool,isSelected:u().bool,isTopAligned:u().bool,level:u().string,positionWithinLevel:u().string,numberOfItemsAtLevel:u().string,tabIndex:u().oneOf(["0","-1"])};var H=function(e){var t=(0,a.useContext)(x).isActionableMode,l=d()({"slds-has-focus":e.hasFocus,"slds-cell-edit":e.isEditable,"slds-is-edited":e.isEdited,"slds-cell-error":e.isErrorCell,"slds-text-align_right":e.isRightAligned,"slds-cell-shrink":e.isShrunken,"slds-has-error":e.hasError,"slds-cell-wrap":e.hasWrap,"slds-cell_action-mode":t});return n().createElement("td",{"aria-readonly":e.isLocked,"aria-selected":e.isEditing,"aria-describedby":function(){if(e.isEdited)return"unsaved-cell-notification"}()||null,className:l||null,"data-label":e["data-label"],role:function(){var t=null;switch(e.type){case"advanced":case"treegrid":t="gridcell"}return t}(),style:e.style,tabIndex:e.tabIndex},e.children)};H.displayName="Td",H.propTypes={children:u().node,"data-label":u().string,hasError:u().bool,hasFocus:u().bool,isEditable:u().bool,isEdited:u().bool,isEditing:u().bool,isErrorCell:u().bool,isLocked:u().bool,isRightAligned:u().bool,isShrunken:u().bool,style:u().object,tabIndex:u().oneOf(["0","-1"]),type:u().oneOf(["advanced","base","treegrid"]).isRequired,hasWrap:u().bool};var F=function(e){var t=(0,a.useContext)(x).isActionableMode,l=d()({"slds-cell-edit":e.isEditable,"slds-has-focus":e.hasFocus,"slds-tree__item":"treegrid"===e.type,"slds-is-hovered":e.isItemHovered,"slds-cell-wrap":e.hasWrap,"slds-cell_action-mode":t});return n().createElement("th",{className:l||null,"data-label":e["data-label"],scope:"row",tabIndex:e.tabIndex},e.children)};F.displayName="RowTh",F.propTypes={children:u().node,"data-label":u().string,hasFocus:u().bool,isEditable:u().bool,tabIndex:u().oneOf(["0","-1"]),type:u().oneOf(["base","advanced","treegrid"]),isItemHovered:u().bool,hasWrap:u().bool};var P=function(e){return n().createElement(n().Fragment,null,e.hasSingleRowSelect?n().createElement(h.sx,{checked:e.checked,groupId:"column-group-header",hideLabel:!0,id:"radio-0".concat(e.index),label:"Select item ".concat(e.index),labelId:"radio-button-label-0".concat(e.index),tabIndex:e.inputTabIndex,isDataTable:!0}):n().createElement(E.Sc,{checked:e.checked,groupId:"column-group-header",hideLabel:!0,id:"checkbox-0".concat(e.index),label:"Select item ".concat(e.index),labelId:"check-button-label-0".concat(e.index),tabIndex:e.inputTabIndex,isDataTable:!0}))};P.displayName="SelectRowCell",P.propTypes={checked:u().bool,hasSingleRowSelect:u().bool,index:u().number.isRequired,inputTabIndex:u().oneOf(["0","-1"])};var z=function(e){var t=e.rowName,l=(0,a.useContext)(x).isActionableMode;return n().createElement(b.A,{assistiveText:"More actions for ".concat(t),"aria-haspopup":"true",className:"slds-button_icon-border-filled slds-button_icon-x-small",iconClassName:"slds-button__icon_hint slds-button__icon_small",symbol:"down",tabIndex:l?"0":"-1",title:"More actions for ".concat(t)})};z.displayName="RowActionsCell",z.propTypes={rowName:u().string.isRequired};var M=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(n().Fragment,null,n().createElement(b.A,{"aria-hidden":e.hasError?null:"true",assistiveText:"Item ".concat(e.index," has errors"),className:d()("slds-button_icon-error slds-m-horizontal_xxx-small",{"slds-hidden":!e.hasError}),id:"error-0"+e.index,symbol:"error",tabIndex:t?"0":"-1",title:"Item ".concat(e.index," has errors")}),n().createElement("span",{className:"slds-row-number slds-text-body_small slds-text-color_weak"}))};M.displayName="ErrorCell",M.propTypes={hasError:u().bool,index:u().number.isRequired};var W=function(e){var t=e.hasWrap,l=e.cellText,i=e.cellLink,r=(0,a.useContext)(x).isActionableMode;return n().createElement("div",{className:d()(t?"slds-line-clamp":"slds-truncate"),title:l},i?n().createElement("a",{href:"#",tabIndex:r?"0":"-1",onClick:function(e){e.preventDefault()}},l):l)};W.displayName="ReadOnlyCell",W.propTypes={cellLink:u().bool,cellText:u().string.isRequired,hasWrap:u().bool};var j=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(n().Fragment,null,n().createElement("span",{className:"slds-grid slds-grid_align-spread"},e.cellLink?n().createElement("a",{className:"slds-truncate",href:"#",id:"link-0".concat(e.index),tabIndex:t?"0":"-1",title:e.cellText,onClick:function(e){return e.preventDefault()}},e.cellText):n().createElement("span",{className:"slds-truncate",title:e.cellText},e.cellText),n().createElement(b.A,{assistiveText:e.buttonText,className:"slds-cell-edit__button slds-m-left_x-small",disabled:e.isLocked,iconClassName:d()("slds-button__icon_hint",{"slds-button__icon_edit":!e.isLocked,"slds-button__icon_lock slds-button__icon_small":e.isLocked}),symbol:e.isLocked?"lock":"edit",tabIndex:t?"0":"-1",title:e.buttonText})),e.showEdit&&n().createElement($,{isRequired:e.isRequired,hasError:e.hasError}),e.isEdited&&n().createElement("span",{id:"unsaved-cell-notification",class:"slds-hide"},"Unsaved"))};j.displayName="EditableCell",j.propTypes={buttonText:u().string.isRequired,cellLink:u().bool,cellText:u().string.isRequired,hasError:(0,s.VY)("showEdit",u().bool),index:u().number,isLocked:u().bool,isRequired:(0,s.VY)("showEdit",u().bool),showEdit:u().bool};var $=function(e){return n().createElement(p.AM,{className:"slds-popover slds-popover_edit",style:{position:"absolute",top:"0",left:"0.0625rem"}},n().createElement("div",{className:d()("slds-form-element slds-grid slds-wrap",{"slds-has-error":e.hasError})},n().createElement("label",{className:"slds-form-element__label slds-form-element__label_edit slds-no-flex",htmlFor:"company-01"},e.isRequired?n().createElement("abbr",{className:"slds-required",title:"required","aria-hidden":"true"},"*"):null,n().createElement("span",{className:"slds-assistive-text"},"Company")),n().createElement("div",{className:"slds-form-element__control slds-grow"},n().createElement("input",{"aria-describedby":e.hasError?"error-message-01":null,className:"slds-input",defaultValue:"Acme Enterprises",id:"company-01",required:e.isRequired,type:"text"})),e.hasError?n().createElement("div",{id:"error-message-01",className:"slds-form-element__help"},"This field is required"):null))};$.displayName="EditPopover",$.propTypes={hasError:u().bool,isRequired:u().bool};var X=[{id:"default",label:"Default",element:n().createElement(T,{isBordered:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example default base table of Opportunities"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"})))}],V=[{id:"data-table-striped-rows",label:"With striped rows",element:n().createElement(T,{isBordered:!0,isStriped:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example table of Opportunities with striped rows"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"}),n().createElement(C,{title:"Cloudhub"})))},{id:"data-table-no-hover",label:"With no row hovers",element:n().createElement(T,{isBordered:!0,hasCellBuffer:!0,hasNoRowHover:!0,type:"base",ariaLabel:"Example table of Opportunities with no row hovers"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"})))},{id:"data-table-vertical-borders",label:"With vertical borders",element:n().createElement(T,{isBordered:!0,isColBordered:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example table of Opportunities with vertical borders"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"})))},{id:"single-column",label:"Single Column",element:n().createElement(T,{isBordered:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example table of Opportunities with a single column"},n().createElement(A,null,n().createElement(R,null,n().createElement(k,null,n().createElement(L,{columnName:"Opportunity Name"})))),n().createElement(q,null,n().createElement(D,null,n().createElement(H,{"data-label":"Opportunity Name",type:"base"},n().createElement(W,{cellLink:!0,cellText:"Cloudhub"}))),n().createElement(D,null,n().createElement(H,{"data-label":"Opportunity Name",type:"base"},n().createElement(W,{cellLink:!0,cellText:"Cloudhub + Anypoint Connectors"})))))},{id:"no-borders",label:"No borders",element:n().createElement(T,{isStriped:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example table of Opportunities with no borders"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"}),n().createElement(C,{title:"Cloudhub"})))},{id:"headless",label:"Headless",element:n().createElement(T,{hasHiddenHeader:!0,isBordered:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example headless table of Opportunities"},n().createElement(A,{isHidden:!0},n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"}),n().createElement(C,{title:"Cloudhub"})))},{id:"headless-no-borders",label:"Headless with no borders",element:n().createElement(T,{hasHiddenHeader:!0,hasCellBuffer:!0,type:"base",ariaLabel:" Example headless table of Opportunities with no borders "},n().createElement(A,{isHidden:!0},n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"}),n().createElement(C,{title:"Cloudhub"})))},{id:"cell-content-truncated",label:"Cell content truncated",demoStyles:"max-width: 600px;",storybookStyles:!0,element:n().createElement(T,{isBordered:!0,isStriped:!0,hasCellBuffer:!0,isFixedLayout:!0,type:"base",ariaLabel:" Example headless table of Opportunities with cell content truncated "},n().createElement(A,null,n().createElement(R,null,n().createElement(k,null,n().createElement(L,{columnName:"Typical Column Header"})),n().createElement(k,null,n().createElement(L,{columnName:"Truncated, no wrap"})),n().createElement(k,null,n().createElement(L,{columnName:"Typical Column Header"})))),n().createElement(q,null,n().createElement(D,null,n().createElement(F,{"data-label":"Typical Column Header"},n().createElement(W,{cellText:"Typical cell content"})),n().createElement(H,{"data-label":"Truncated, no wrap",type:"base",hasWrap:!0},n().createElement(W,{cellText:w})),n().createElement(H,{"data-label":"Typical Column Header",type:"base"},n().createElement(W,{cellText:"Typical cell content"})))))},{id:"cell-content-wrapped",label:"Cell content wrapped",demoStyles:"max-width: 600px;",storybookStyles:!0,element:n().createElement(T,{isBordered:!0,isStriped:!0,hasCellBuffer:!0,isFixedLayout:!0,type:"base",ariaLabel:" Example headless table of Opportunities with cell content wrapped "},n().createElement(A,null,n().createElement(R,null,n().createElement(k,null,n().createElement(L,{columnName:"Typical Column Header"})),n().createElement(k,null,n().createElement(L,{columnName:"Wrapped, line clamped"})),n().createElement(k,null,n().createElement(L,{columnName:"Typical Column Header"})))),n().createElement(q,null,n().createElement(D,null,n().createElement(F,{"data-label":"Typical Column Header"},n().createElement(W,{cellText:"Typical cell content"})),n().createElement(H,{"data-label":"Wrapped, line clamped",type:"base",hasWrap:!0},n().createElement(W,{cellText:w,hasWrap:!0})),n().createElement(H,{"data-label":"Typical Column Header",type:"base"},n().createElement(W,{cellText:"Typical cell content"})))))},{id:"data-table-aria-labelledby",label:"Using aria-labelledby instead of aria-label",element:n().createElement(n().Fragment,null,n().createElement("h2",{id:"element-with-table-label",className:"slds-text-heading_medium slds-m-bottom_xx-small"},"Example data table of Opportunities"),n().createElement("h3",{id:"other-element-with-table-label",className:"slds-text-title slds-m-bottom_small"},"Using ",n().createElement("code",null,"aria-labelledby"),", instead of aria-label"),n().createElement(T,{isBordered:!0,hasCellBuffer:!0,type:"base",ariaLabelledBy:"element-with-table-label other-element-with-table-label"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"}))))}],G=l(4090),Y=l(8522),J=l(1391),Q=l(7852),U=l(5526),K=l(2711),Z=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(D,{isSelected:e.isSelected},n().createElement(H,{isRightAligned:!0,type:"advanced"},n().createElement(P,{checked:e.isSelected,hasSingleRowSelect:e.hasSingleRowSelect,index:e.index,inputTabIndex:t?"0":"-1"})),n().createElement(F,{hasFocus:!t&&1===e.index&&e.hasFocus,tabIndex:t||1!==e.index?null:"0"},n().createElement(W,{cellLink:!0,cellText:e.recordName})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.accountName})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.closeDate})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.stage})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.confidence})),e.hasScores&&e.amountScore&&e.amountScoreLabel?n().createElement(H,{type:"advanced"},n().createElement("div",{className:"slds-grid slds-grid_vertical-align-center"},n().createElement("div",{className:"slds-truncate",title:e.amount},e.amount),n().createElement("div",{className:"slds-icon_container slds-m-left_x-small slds-m-right_xx-small"},n().createElement(J.A,{"data-slds-state":e.amountScore})),n().createElement("div",{className:"slds-truncate",title:e.amountScoreLabel},e.amountScoreLabel))):n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.amount})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellLink:!0,cellText:e.contact})),e.hasRowActions&&n().createElement(H,{type:"advanced"},n().createElement(z,{rowName:e.recordName})))};Z.displayName="AdvancedDataTableTr",Z.propTypes={accountName:u().string.isRequired,amount:u().string.isRequired,amountScore:(0,s.VY)("amountScoreLabel",u().string),amountScoreLabel:(0,s.VY)("amountScore",u().string),closeDate:u().string.isRequired,confidence:u().string.isRequired,contact:u().string.isRequired,hasFocus:u().bool,hasRowActions:u().bool,hasScores:u().bool,index:u().number.isRequired,hasSingleRowSelect:u().bool,recordName:u().string.isRequired,isSelected:u().bool,stage:u().string.isRequired},Z.defaultProps={hasRowActions:!0};var ee=function(e){return n().createElement("div",{className:"slds-size_xx-small"},n().createElement("img",{alt:e.productName,src:e.productImgSrc,title:e.productName}))};ee.displayName="ProductImage",ee.propTypes={productImgSrc:u().string.isRequired,productName:u().string.isRequired};var te=function(e){return n().createElement(n().Fragment,null,n().createElement("p",null,n().createElement("s",null,e.priceOriginal)),n().createElement("p",null,e.priceDiscount))};te.displayName="ProductPriceCell",te.propTypes={priceDiscount:u().string.isRequired,priceOriginal:u().string.isRequired};var le=function(e){return n().createElement(Q.A,{figureLeft:n().createElement(ee,{productImgSrc:e.productImgSrc,productName:e.productName})},n().createElement(W,{cellLink:!0,cellText:e.productName}),n().createElement("ul",null,e.productProperties.map(function(e,t){return n().createElement("li",{className:"slds-truncate",key:t,title:"".concat(e.label,": ").concat(e.value)},e.label,": ",n().createElement("strong",null,e.value))})),n().createElement("p",{className:"slds-text-color_success"},e.labelInventory))};le.displayName="ProductItemDetailsCell",le.propTypes={labelInventory:u().string.isRequired,productImgSrc:u().string.isRequired,productName:u().string.isRequired,productProperties:u().array.isRequired};var ae=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(K.ZS,{inputId:e.inputId,labelClassName:"slds-assistive-text",labelContent:e.labelText},n().createElement(U.A,{className:"slds-size_xxx-small slds-text-align_center slds-p-horizontal_x-small",defaultValue:e.quantity,id:e.inputId,placeholder:" ",tabIndex:t?null:"-1"}))};ae.displayName="ProductQuantityCell",ae.propTypes={labelText:u().string.isRequired,inputId:u().string.isRequired,quantity:u().string};var ne=function(e){return n().createElement(D,{isTopAligned:!0},n().createElement(F,null,n().createElement(le,{labelInventory:e.labelInventory,productImgSrc:e.productImgSrc,productName:e.productName,productProperties:e.productProperties})),n().createElement(H,{type:"advanced"},n().createElement(ae,{inputId:"product-quantity-text-input-id-".concat(e.index),labelText:"".concat(e.productName," quantity"),quantity:e.quantity})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.dateAdded})),n().createElement(H,{type:"advanced"},n().createElement(te,{priceDiscount:e.priceDiscount,priceOriginal:e.priceOriginal})),n().createElement(H,{type:"advanced"},n().createElement(z,{rowName:e.productName})))};function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},ie.apply(null,arguments)}ne.displayName="ProductDataTableTr",ne.propTypes={dateAdded:u().string.isRequired,index:u().number.isRequired,labelInventory:u().string.isRequired,priceDiscount:u().string.isRequired,priceOriginal:u().string.isRequired,productImgSrc:u().string.isRequired,productName:u().string.isRequired,productProperties:u().array.isRequired,quantity:u().string};var re=["Name","Account Name","Close Date","Stage","Confidence","Amount","Contact"],oe=[{recordName:"Acme - 1,200 Widgets",accountName:"Acme",closeDate:"4/10/15",stage:"Value Proposition",confidence:"30%",amount:"$25,000,000",contact:"jrogers@acme.com",amountScore:"positive",amountScoreLabel:"High"},{recordName:"Acme - 200 Widgets",accountName:"Acme",closeDate:"1/31/15",stage:"Prospecting",confidence:"60%",amount:"$5,000,000",contact:"bob@acme.com"},{recordName:"salesforce.com - 1,000 Widgets",accountName:"salesforce.com",closeDate:"1/31/15 3:45PM",stage:"Id. Decision Makers",confidence:"70%",amount:"$25,000",contact:"nathan@salesforce.com",amountScore:"negative",amountScoreLabel:"Low"}],se=[].concat(oe).reverse(),ce=[{column:"account name",icon:n().createElement(Y.b$,{assistiveText:"Account",className:"slds-icon_x-small",containerClassName:"slds-m-right_xx-small",symbol:"account",title:"Account"})},{column:"confidence",icon:n().createElement("div",{className:"slds-icon_container slds-m-right_xx-small"},n().createElement(G.A,{assistiveText:"Einstein calculated",className:"slds-is-paused",title:"Einstein calculated"}))}],de=(oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))}),[{id:"cell-focused",label:"Cell Focused",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities with cell focused"},n().createElement(B,{columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e,{hasFocus:!0}))})))},{id:"actionable-mode",label:"Actionable Mode",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:!1,key:t},e))}))))},{id:"row-selected",label:"Row Selected (Actionable mode)",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode with row selected"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:1===t,key:t},e))}))))},{id:"all-row-selected",label:"All Rows Selected (Actionable mode)",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode with all rows selected"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re,selectAll:!0}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:!0,key:t},e))}))))},{id:"sorted-column-asc",label:"Sorted Ascending (Actionable mode)",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode with ascending column sorting"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re,sortDirection:"ascending"}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:!1,key:t},e))}))))},{id:"sorted-column-desc",label:"Sorted Descending (Actionable mode)",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode with descending column sorting"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re,sortDirection:"descending"}),n().createElement(q,null,se.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:!1,key:t},e))}))))},{id:"resized-column",label:"Column Resized (Actionable mode)",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode with resized column"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re,singleColumnWidth:"300px"}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:!1,key:t},e))}))))}]),me=[{id:"header-icon-menu-button",label:"Header Icon and Menu Button",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities with header icon and menu button"},n().createElement(B,{columnHeaderIcons:ce,columns:re,hasMenus:!0}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))})))},{id:"header-menu-button",label:"Header Menu Button",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities with header menu button"},n().createElement(B,{columns:re,hasMenus:!0}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))})))},{id:"cell-icon",label:"Cell Icon",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities with cell icon"},n().createElement(B,{columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e,{hasScores:!0}))})))},{id:"product-listing",label:"Product Listing",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table as product listing"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:["Product","Quantity","Date Added","Price"],hasNoRowSelection:!0}),n().createElement(q,null,[{productImgSrc:"/assets/images/product1.jpg",productName:"Baseball Cap",productProperties:[{label:"Size",value:"7 3/4"},{label:"Color",value:"Blue"},{label:"Item No.",value:"1007100"}],labelInventory:"In Stock",quantity:"1",dateAdded:"4/10/17",priceOriginal:"$23.00",priceDiscount:"$20.00"},{productImgSrc:"/assets/images/product2.jpg",productName:"Construction Hat",productProperties:[{label:"Size",value:"One size fits most"},{label:"Color",value:"Yellow"},{label:"Item No.",value:"2800100"}],labelInventory:"In Stock",quantity:"1",dateAdded:"4/10/17",priceOriginal:"$52.00",priceDiscount:"$40.00"},{productImgSrc:"/assets/images/product3.jpg",productName:"Campaign Hat",productProperties:[{label:"Size",value:"Small"},{label:"Color",value:"Tan"},{label:"Item No.",value:"2000100"}],labelInventory:"In Stock",quantity:"1",dateAdded:"4/10/17",priceOriginal:"$79.00",priceDiscount:"$59.00"}].map(function(e,t){return n().createElement(ne,ie({isSelected:!1,key:t,index:t+1},e))}))))},{id:"radio-group",label:"Radio Group",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,type:"advanced",ariaLabel:"Example advanced table as radio group"},n().createElement(B,{columns:re,hasSingleRowSelect:!0}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({hasSingleRowSelect:!0,index:t+1,key:t},e))})))},{id:"data-table-no-borders",label:"No borders",element:n().createElement(T,{isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table with no borders"},n().createElement(B,{columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))})))},{id:"data-table-headless",label:"Headless",element:n().createElement(T,{hasHiddenHeader:!0,isBordered:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced headless table"},n().createElement(B,{isHidden:!0,columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))})))},{id:"data-table-headless-no-borders",label:"Headless with no borders",element:n().createElement(T,{hasHiddenHeader:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced headless border-less table"},n().createElement(B,{isHidden:!0,columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))})))}];function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},ue.apply(null,arguments)}var be=function(e){return n().createElement("div",ue({className:"demo-only"},e),e.children)};be.propTypes={children:u().node};var pe=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(D,{isSelected:e.isSelected},n().createElement(H,{hasFocus:"error"===e.focusedCell,isEditable:!0,isErrorCell:!0,type:"advanced"},n().createElement(M,{hasError:e.showRowError,index:e.index})),n().createElement(H,{hasFocus:"selectRow"===e.focusedCell,isEditable:!0,tabIndex:t||"selectRow"!==e.focusableCell?null:"0",type:"advanced"},n().createElement(P,{checked:e.isSelected,index:e.index,inputTabIndex:t?"0":"-1"})),n().createElement(F,{hasFocus:"recordName"===e.focusedCell,isEditable:!0,tabIndex:t||"recordName"!==e.focusableCell?null:"0"},n().createElement(j,{buttonText:"Edit Name of "+e.recordName,cellLink:!0,cellText:e.recordName,index:e.index})),n().createElement(H,{hasError:e.showCellError,hasFocus:"accountName"===e.focusedCell,isEditable:!0,isEdited:e.showEditedCell,isEditing:e.showEdit,isLocked:e.isLocked,tabIndex:t||"accountName"!==e.focusableCell?null:"0",type:"advanced"},n().createElement(j,{buttonText:"Edit Account Name of "+e.recordName,cellText:e.accountName,hasError:e.showEditError,index:e.index,isLocked:e.isLocked,isRequired:e.showEditRequired,showEdit:e.showEdit,isEdited:e.showEditedCell})),n().createElement(H,{isEditable:!0,type:"advanced"},n().createElement(j,{buttonText:"Edit Close Date of "+e.recordName,cellText:e.closeDate,index:e.index})),n().createElement(H,{isEditable:!0,type:"advanced"},n().createElement(j,{buttonText:"Edit Stage of "+e.recordName,cellText:e.stage,index:e.index})),n().createElement(H,{isEditable:!0,isLocked:!0,type:"advanced"},n().createElement(j,{buttonText:"Edit Confidence of "+e.recordName,cellText:e.confidence,index:e.index,isLocked:!0})),n().createElement(H,{isEditable:!0,type:"advanced"},n().createElement(j,{buttonText:"Edit Amount of "+e.recordName,cellText:e.amount,index:e.index})),n().createElement(H,{isEditable:!0,type:"advanced"},n().createElement(j,{buttonText:"Edit Contact of "+e.recordName,cellText:e.contact,index:e.index})),n().createElement(H,{isEditable:!0,type:"advanced"},n().createElement(z,{isEditable:!0,rowName:e.recordName})))};pe.displayName="InlineEditTr",pe.propTypes={accountName:u().string.isRequired,amount:u().string.isRequired,closeDate:u().string.isRequired,confidence:u().string.isRequired,contact:u().string.isRequired,focusableCell:u().string,focusedCell:u().string,index:u().number.isRequired,isLocked:u().bool,recordName:u().string.isRequired,isSelected:u().bool,showCellError:(0,s.VY)("showRowError",u().bool),showEdit:u().bool,showEditError:u().bool,showEditRequired:u().bool,showEditedCell:u().bool,showRowError:u().bool,stage:u().string.isRequired};var Ee=l(3062),he=l(9249);function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},ye.apply(null,arguments)}var fe=s.Ay.uniqueId("dialog-heading-id-"),ve=["Name","Account Name","Close Date","Stage","Confidence","Amount","Contact"],ge=[{recordName:"Acme - 1,200 Widgets",accountName:"Acme",closeDate:"4/10/15",stage:"Value Proposition",confidence:"30%",amount:"$25,000,000",contact:"jrogers@acme.com"},{recordName:"Acme - 200 Widgets",accountName:"Acme",closeDate:"1/31/15",stage:"Prospecting",confidence:"60%",amount:"$5,000,000",contact:"bob@acme.com"},{recordName:"salesforce.com - 1,000 Widgets",accountName:"salesforce.com",closeDate:"1/31/15 3:45PM",stage:"Id. Decision Makers",confidence:"70%",amount:"$25,000",contact:"nathan@salesforce.com"}],xe=function(){return n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusedCell:0===t?"recordName":null,index:t+1,isSelected:!1,key:t},e))})))))},we=[{id:"default",label:"Default",element:n().createElement(S,null,n().createElement(T,{hasNoCellFocus:!0,isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example default inline edit table with cell focused"},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusableCell:"recordName",index:t+1,isSelected:!1,key:t},e))}))))}],Ne=[{id:"with-link",label:"Cell focused - Link (Actionable mode)",element:n().createElement(xe,null),script:"\n document.getElementById('link-01').focus()\n "},{id:"checkbox",label:"Cell focused - Checkbox (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with checkbox cell focused"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusedCell:0===t?"selectRow":null,index:t+1,isSelected:!1,key:t},e))}))))),script:"\n document.getElementById('checkbox-01').focus()\n "},{id:"focused",label:"Cell focused (Navigation mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in navigation mode with cell focused"},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusableCell:0===t?"accountName":null,focusedCell:0===t?"accountName":null,index:t+1,isSelected:!1,key:t},e))}))))},{id:"edit",label:"Cell edit (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell edit"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({index:t+1,isSelected:!1,key:t,showEdit:0===t},e))}))))),script:"\n document.getElementById('company-01').focus()\n document.getElementById('company-01').select()\n "},{id:"required",label:"Cell edit — Required (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with required cell edit"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({index:t+1,isSelected:!1,key:t,showEdit:0===t,showEditRequired:!0},e))}))))),script:"\n document.getElementById('company-01').focus()\n document.getElementById('company-01').select()\n "},{id:"error",label:"Cell edit — Error (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell error"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({index:t+1,isSelected:!1,key:t,showEdit:0===t,showEditError:!0,showEditRequired:!0},e))}))))),script:"\n document.getElementById('company-01').focus()\n document.getElementById('company-01').select()\n "},{id:"edited",label:"Cell edited (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell edited"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({index:t+1,isSelected:!1,key:t,showEditedCell:0===t},e))})))))},{id:"row-selected-with-edited-cell",label:"Row Selected with an Edited Cell",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell edited in selected row"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({className:0===t?"slds-is-selected":null,index:t+1,isSelected:0===t,key:t,showEditedCell:0===t},e))})))))},{id:"row-error",label:"Error - Row level on save (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell error on save"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusedCell:0===t?"accountName":null,index:t+1,isSelected:!1,key:t,showCellError:0===t,showRowError:0===t},e))}))))),script:"\n document.getElementById('button-01').focus()\n "},{id:"row-error-and-selected",label:"Error - Row level on save (Actionable mode) with entire row selected",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell error on save in selected row"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({className:0===t?"slds-is-selected":null,index:t+1,isSelected:0===t,key:t,showCellError:0===t,showRowError:0===t},e))})))))},{id:"row-error-focused",label:"Error indicator - Focused (Actionable mode)",element:n().createElement(be,{style:{marginTop:"100px",marginLeft:"10px"}},n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with error indicator focused"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusedCell:0===t?"error":null,index:t+1,isSelected:!1,key:t,showCellError:0===t,showRowError:0===t},e))})))),n().createElement(Ee.AM,{className:"slds-popover_error slds-nubbin_bottom-left",closeButton:!0,header:n().createElement(he.R5,{headingId:fe,symbol:"error",title:"Resolve error"}),headingId:fe,inverse:!0,style:{position:"absolute",top:"-56px"}},n().createElement("p",null,"Company encountered an error")))),script:"\n document.getElementById('error-01').focus()\n "},{id:"header-cell-focused",label:"Header cell focused (Navigation mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in navigation mode with header cell focused"},n().createElement(B,{columns:ve,hasErrorColumn:!0,hasFocus:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,{accountName:ge[t].accountName,amount:ge[t].amount,closeDate:ge[t].closeDate,confidence:ge[t].confidence,contact:ge[t].contact,index:t+1,isSelected:!1,key:t,recordName:ge[t].recordName,stage:ge[t].stage})}))))},{id:"header-cell-marked",label:"Header cell marked (Navigation mode)",element:n().createElement(S,null,n().createElement(T,{hasNoCellFocus:!0,isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in navigation mode with header cell marked"},n().createElement(B,{columns:ve,hasErrorColumn:!0,hasFocus:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,{accountName:ge[t].accountName,amount:ge[t].amount,closeDate:ge[t].closeDate,confidence:ge[t].confidence,contact:ge[t].contact,index:t+1,isSelected:!1,key:t,recordName:ge[t].recordName,stage:ge[t].stage})}))))}],Ce=i.XB.a,Se=i.XB.code,Te=i.XB.h2,Ae=i.XB.h3,Re=i.XB.h4,ke=i.XB.li,Le=i.XB.p,_e=i.XB.strong,Oe=i.XB.ul,Ie=function(){return(0,a.createElement)(i.Ay,{},(0,a.createElement)("div",{className:"doc lead"},"Data tables are an enhanced version of an HTML table and are used to display tabular data."),(0,a.createElement)(r.A,{exampleOnly:!0,demoStyles:"overflow: hidden;"},(0,s.NO)(de,"actionable-mode")),Te({id:"About-Data-Tables"},"About Data Tables"),Le({},"To initialize a data table, apply the ",Se({},"slds-table")," class to the ",Se({},"table")," element. This class creates a ",Se({},"table")," with formatted cells and allows you to use data table utilities."),Ae({id:"Accessibility"},"Accessibility"),Re({id:"Headers"},"Headers"),Le({},"To create an accessible table, the top row of column headers (",Se({},"th"),") are placed in a ",Se({},"thead"),". Each one receives the ",Se({},'scope="col"')," attribute. The first non-actionable (meaning that doesn't contain a checkbox or menu) column in each row should be marked as a th with a ",Se({},'scope="row"')," attribute."),Re({id:"Labeling"},"Labeling"),Le({},"To give additional context, like a caption or description, to a table for screen readers, the attributes ",Se({},"aria-labelledby")," or ",Se({},"aria-label")," can be used on the ",Se({},"table")," element."),Le({},"For ",Se({},"aria-label"),", set the description as the attribute value. Alternatively, if another element, or elements, can serve this purpose for the table, then set the value of ",Se({},"aria-labelledby")," with the ",Se({},"id")," of the element[s]."),Le({},"This example shows ",Se({},"aria-labelledby")," set with the ",Se({},"id"),"s of two separate elements to make up the label."),(0,a.createElement)(r.A,null,(0,s.NO)(V,"data-table-aria-labelledby")),Te({id:"Base"},"Base"),(0,a.createElement)(r.A,null,(0,s.NO)(X)),Ae({id:"Striped-rows"},"Striped rows"),(0,a.createElement)(r.A,null,(0,s.NO)(V,"data-table-striped-rows")),Ae({id:"Columns-dividers"},"Columns dividers"),(0,a.createElement)(r.A,null,(0,s.NO)(V,"data-table-vertical-borders")),Ae({id:"Rows-with-no-hover"},"Rows with no hover"),(0,a.createElement)(r.A,null,(0,s.NO)(V,"data-table-no-hover")),Ae({id:"Single-Column-table"},"Single Column table"),(0,a.createElement)(r.A,null,(0,s.NO)(V,"single-column")),Ae({id:"Headless"},"Headless"),(0,a.createElement)(r.A,null,(0,s.NO)(V,"headless")),Re({id:"With-no-borders"},"With no borders"),(0,a.createElement)(r.A,null,(0,s.NO)(V,"headless-no-borders")),Te({id:"Actionable-mode-Column-sorting-and-row-selection(s)"},"Actionable mode - Column sorting and row selection(s)"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(de,"actionable-mode")),Ae({id:"Single-row-selection"},"Single row selection"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(me,"radio-group")),Ae({id:"Navigation-mode-Cell-focused"},"Navigation mode - Cell focused"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(de,"cell-focused")),Ae({id:"Row-Selection"},"Row Selection"),Re({id:"Single-row-selected"},"Single row selected"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(de,"row-selected")),Re({id:"All-rows-selected"},"All rows selected"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(de,"all-row-selected")),Ae({id:"Column-sorting"},"Column sorting"),(0,a.createElement)(o.A,{type:"a11y",header:"Accessibility Note"},(0,a.createElement)("p",null,'The assistive text for the sort action contains `aria-live="polite"` so screen reader doesn\'t disrupt itself from announcing what the user is interacting with.')),Re({id:"Sorted-Ascending"},"Sorted Ascending"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(de,"sorted-column-asc")),Re({id:"Sorted-Descending"},"Sorted Descending"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(de,"sorted-column-desc")),Ae({id:"Column-resizing"},"Column resizing"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(de,"resized-column")),Ae({id:"Column-headers-with-overflow-actions-button-menu"},"Column headers with overflow actions button menu"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(me,"header-menu-button")),Ae({id:"Column-with-icons"},"Column with icons"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(me,"header-icon-menu-button")),Ae({id:"Cell-with-icons"},"Cell with icons"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(me,"cell-icon")),Te({id:"Inline-Edit"},"Inline Edit"),Ae({id:"Accessibility-2"},"Accessibility"),Le({},"The Advanced Data Table and Inline Edit Data Table are based on the semantics, roles and interaction model of the ARIA Grid. In SLDS we overlay the ",Ce({href:"http://w3c.github.io/aria/practices/aria-practices.html#grid"},"ARIA Grid")," on top of native HTML table semantics."),Le({},"The role of Grid comes with 2 distinct modes, Navigation mode and Actionable mode. Both come with very specific keyboard interaction modals. Navigation mode is the default mode of the Grid."),Le({},"Bold text for edited cell examples provide secondary indicators for text, along with yellow backgrounds, to indicate content is edited but unsaved."),Le({},_e({},"Navigation Mode")),Oe({},ke({},"Tabbing into the grid focuses the first data cell in the table."),ke({},"The second tab key press takes the user focus out of the grid onto the next focusable element on the page."),ke({},"Once the user has tabbed out of the grid, tabbing back into the grid will return focus to the last cell the user was focused on."),ke({},"Navigation in the grid is accomplished via the arrow keys."),ke({},"No actionable items in cell contents are focusable."),ke({},"Pressing the Enter key on a chosen grid cell, places the entire Grid into Actionable mode.")),Le({},_e({},"Actionable Mode")),Oe({},ke({},"Once in Actionable mode, all focusable items in the entire grid can be tabbed to."),ke({},"Arrow navigation still takes the user cell to cell in any direction, but focuses on the first actionable item in the cell, if there is one."),ke({},"Pressing the Escape key exits Actionable mode, placing the user back into Navigation mode, keeping the users cursor on the same cell they were focused in."),ke({},"When interacting with a component in a cell, such as a Menu, that also uses the Escape key as an exit action, pressing Escape will take the user back to the triggering element in the current cell. A subsequent press of Escape will return the user to Navigation mode.")),Le({},"For the purposes of these docs, the Default state of Inline Edit is representative of Navigation mode, all other states are assumed to be in Actionable Mode."),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(we)),Ae({id:"Keyboard-navigation"},"Keyboard navigation"),Re({id:"1st-cell-highlighted-(checkbox)"},"1st cell highlighted (checkbox)"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"checkbox")),Re({id:"2nd-cell-highlighted"},"2nd cell highlighted"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"with-link")),Re({id:"3rd-cell-highlighted"},"3rd cell highlighted"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"focused")),Ae({id:"Cell-Edit"},"Cell Edit"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"edit")),Re({id:"Required-form-element"},"Required form element"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"required")),Re({id:"Required-form-element-with-error"},"Required form element with error"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"error")),Re({id:"Edited-cell-(unsaved)"},"Edited cell (unsaved)"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"edited")),Re({id:"Edited-cell-with-row-selected-(unsaved)"},"Edited cell with row selected (unsaved)"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"row-selected-with-edited-cell")),Re({id:"Edited-cell-with-row-level-error-(unsaved)"},"Edited cell with row level error (unsaved)"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"row-error")),Re({id:"Edited-cell-with-focused-row-level-error-(unsaved)"},"Edited cell with focused row level error (unsaved)"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"row-error-focused")),Re({id:"Edited-cell-with-row-selected-and-row-level-error-(unsaved)"},"Edited cell with row selected and row level error (unsaved)"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"row-error-and-selected")),Ae({id:"Header-navigation"},"Header navigation"),Re({id:"Header-cell-focused"},"Header cell focused"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"header-cell-focused")),Re({id:"Header-cell-marked"},"Header cell marked"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"header-cell-marked")),Ae({id:"Cell-Content"},"Cell Content"),Le({},"As a default method, wrap any table cell content in a ",Se({},"<div>"),"."),Re({id:"Truncated"},"Truncated"),Le({},"Add the ",Se({},"slds-truncate")," class to truncate any content that might overflow the tables cell area."),(0,a.createElement)(r.A,{demoStyles:(0,s.GP)(V,"cell-content-truncated")},(0,s.NO)(V,"cell-content-truncated")),Re({id:"Wrapped"},"Wrapped"),Le({},"In those cases where long cell content is anticipated, use the ",Se({},"slds-cell-wrap")," class on the cell ",Se({},"<td>")," to have the text wrap within the cell’s width."),Le({},"Also, use the ",Se({},"slds-line-clamp")," class on the content-wrapping ",Se({},"<div>")," to clamp, or truncate, the cell content after a certain amount of lines. Other ",Ce({href:"/utilities/line-clamp"},"line clamping classes")," can be used in place for various line clamping limits. The clamping limit can also be changed by reassigning a value to the ",Se({},"line-clamp")," token."),(0,a.createElement)(r.A,{demoStyles:(0,s.GP)(V,"cell-content-wrapped")},(0,s.NO)(V,"cell-content-wrapped")))},Be=function(){return(0,i.Qr)(Ie())}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var l=n[e]={id:e,exports:{}};return a[e](l,l.exports,i),l.exports}i.m=a,i.amdO={},e=[],i.O=function(t,l,a,n){if(!l){var r=1/0;for(d=0;d<e.length;d++){l=e[d][0],a=e[d][1],n=e[d][2];for(var o=!0,s=0;s<l.length;s++)(!1&n||r>=n)&&Object.keys(i.O).every(function(e){return i.O[e](l[s])})?l.splice(s--,1):(o=!1,n<r&&(r=n));if(o){e.splice(d--,1);var c=a();void 0!==c&&(t=c)}}return t}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[l,a,n]},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},l=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(e,a){if(1&a&&(e=this(e)),8&a)return e;if("object"==typeof e&&e){if(4&a&&e.__esModule)return e;if(16&a&&"function"==typeof e.then)return e}var n=Object.create(null);i.r(n);var r={};t=t||[null,l({}),l([]),l(l)];for(var o=2&a&&e;("object"==typeof o||"function"==typeof o)&&!~t.indexOf(o);o=l(o))Object.getOwnPropertyNames(o).forEach(function(t){r[t]=function(){return e[t]}});return r.default=function(){return e},i.d(n,r),n},i.d=function(e,t){for(var l in t)i.o(t,l)&&!i.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},i.e=function(){return Promise.resolve()},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=4043,function(){var e={4043:0};i.O.j=function(t){return 0===e[t]};var t=function(t,l){var a,n,r=l[0],o=l[1],s=l[2],c=0;if(r.some(function(t){return 0!==e[t]})){for(a in o)i.o(o,a)&&(i.m[a]=o[a]);if(s)var d=s(i)}for(t&&t(l);c<r.length;c++)n=r[c],i.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return i.O(d)},l=self.webpackJsonpSLDS___internal_chunked_docs=self.webpackJsonpSLDS___internal_chunked_docs||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))}(),i.nc=void 0;var r=i.O(void 0,[3540],function(){return i(7247)});r=i.O(r),(SLDS=void 0===SLDS?{}:SLDS)["__internal/chunked/docs/./ui/components/data-tables/docs.mdx.js"]=r}();
|
|
1
|
+
var SLDS;!function(){"use strict";var e,t,l,a={1594:function(e){e.exports=React},1981:function(e){e.exports=JSBeautify},5206:function(e){e.exports=ReactDOM},7247:function(e,t,l){l.r(t),l.d(t,{getContents:function(){return Be},getElement:function(){return Ie}});var a=l(1594),n=l.n(a),i=l(5671),r=l(6547),o=(l(3212),l(5619)),s=l(806),c=l(942),d=l.n(c),m=l(4187),u=l.n(m),b=l(6955),p=l(5006),E=l(3589),h=l(885),y=l(538);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},v.apply(null,arguments)}function g(e,t,l){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,"string");if("object"!=f(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}var x=n().createContext({isActionableMode:!1}),w="Cell content that is very long.\nIt also has a line break.\nIt has more than one line break",N=function(e){return n().createElement(R,null,n().createElement(k,null,n().createElement(L,{columnName:"Opportunity Name"})),n().createElement(k,null,n().createElement(L,{columnName:"Account Name"})),n().createElement(k,null,n().createElement(L,{columnName:"Close Date"})),n().createElement(k,null,n().createElement(L,{columnName:"Stage"})),n().createElement(k,null,n().createElement(L,{columnName:"Confidence"})),n().createElement(k,null,n().createElement(L,{columnName:"Amount"})),n().createElement(k,null,n().createElement(L,{columnName:"Contact"})))},C=function(e){return n().createElement(D,null,n().createElement(F,{"data-label":"Opportunity Name"},n().createElement(W,{cellText:e.title,cellLink:!0})),n().createElement(H,{"data-label":"Account Name",type:"base"},n().createElement(W,{cellText:"Cloudhub"})),n().createElement(H,{"data-label":"Close Date",type:"base"},n().createElement(W,{cellText:"4/14/2015"})),n().createElement(H,{"data-label":"Prospecting",type:"base"},n().createElement(W,{cellText:"Prospecting"})),n().createElement(H,{"data-label":"Confidence",type:"base"},n().createElement(W,{cellText:"20%"})),n().createElement(H,{"data-label":"Amount",type:"base"},n().createElement(W,{cellText:"$25k"})),n().createElement(H,{"data-label":"Contact",type:"base"},n().createElement(W,{cellLink:!0,cellText:"jrogers@cloudhub.com"})))};C.propTypes={title:u().string};var S=function(e){return n().createElement("div",{className:"slds-table_edit_container slds-is-relative"},e.children)};S.propTypes={children:u().node};var T=function(e){var t=d()("slds-table",{"slds-table_cell-buffer":e.hasCellBuffer,"slds-table_header-hidden":e.hasHiddenHeader,"slds-no-row-hover":e.hasNoRowHover,"slds-no-cell-focus":e.hasNoCellFocus,"slds-table_bordered":e.isBordered,"slds-table_col-bordered":e.isColBordered,"slds-table_edit":e.isEditable,"slds-table_fixed-layout":e.isFixedLayout,"slds-max-medium-table_stacked-horizontal":e.isResponsive,"slds-max-medium-table_stacked":e.isResponsiveStacked,"slds-table_resizable-cols":e.isResizable,"slds-table_striped":e.isStriped,"slds-tree slds-table_tree":"treegrid"===e.type,"slds-table_header-fixed":e.hasFixedHeader});return n().createElement("table",v({"aria-multiselectable":"multiple"===e.selectionType?"true":null,className:t,role:function(){var t=null;switch(e.type){case"advanced":t="grid";break;case"treegrid":t="treegrid"}return t}(),style:e.style},e.ariaLabelledBy&&g({},"aria-labelledby",e.ariaLabelledBy),e.ariaLabel&&g({},"aria-label",e.ariaLabel)),e.children)};T.displayName="Table",T.propTypes={ariaLabel:u().string,ariaLabelledBy:u().string,children:u().node,hasCellBuffer:u().bool,hasHiddenHeader:u().bool,hasNoCellFocus:u().bool,hasNoRowHover:u().bool,isBordered:u().bool,isColBordered:u().bool,isEditable:u().bool,isFixedLayout:u().bool,isResizable:u().bool,isResponsive:u().bool,isResponsiveStacked:u().bool,isStriped:u().bool,selectionType:u().oneOf(["multiple","single"]),style:u().object,type:u().oneOf(["advanced","base","treegrid"]).isRequired,hasFixedHeader:u().bool};var A=function(e){return n().createElement("thead",{className:e.isHidden?"slds-assistive-text":null},e.children)};A.displayName="THead",A.propTypes={children:u().node,isHidden:u().bool};var R=function(e){return n().createElement("tr",{className:"slds-line-height_reset"},e.children)};R.displayName="THeadTr",R.propTypes={children:u().node};var k=function(e){var t,l=(0,a.useContext)(x).isActionableMode,i=d()({"slds-has-button-menu":e.hasMenu,"slds-has-focus":e.hasFocus,"slds-is-resizable":e.isResizable,"slds-text-align_right":e.isRightAligned,"slds-is-sortable":e.isSortable,"slds-is-sorted":"ascending"===e.sortDirection||"descending"===e.sortDirection,"slds-is-sorted_asc":"ascending"===e.sortDirection,"slds-is-sorted_desc":"descending"===e.sortDirection,"slds-cell-wrap":e.hasWrap,"slds-cell_action-mode":l});return n().createElement("th",{"aria-sort":(t=null,e.isSortable&&(t=e.sortDirection||"none"),t),className:i,scope:!e.isDataTable&&"col",role:e.isDataTable&&"cell",style:e.style},e.isDataTable,e.children)};k.displayName="ColumnTh",k.propTypes={"aria-label":u().string,children:u().node,hasFocus:u().bool,hasMenu:u().bool,isResizable:u().bool,isRightAligned:u().bool,isSortable:u().bool,sortDirection:u().oneOf(["ascending","descending","none"]),style:u().object,hasWrap:u().bool,isDataTable:u().bool};var L=function(e){return n().createElement("div",{className:d()("slds-truncate",{"slds-assistive-text":e.isAssistiveText,"slds-cell-fixed":e.isFixedCell}),id:e.id,title:e.columnName},e.columnName)};L.displayName="ColumnHeader",L.propTypes={columnName:u().string.isRequired,id:u().string,isAssistiveText:u().bool,isFixedCell:u().bool},L.defaultProps={columnName:"Column Name",isDataTable:u().bool};var _=function(e){var t=s.Ay.uniqueId("cell-resize-handle-");return n().createElement("div",{className:"slds-resizable"},n().createElement("input",{"aria-label":e.label,className:"slds-resizable__input slds-assistive-text",id:t,max:"1000",min:"20",tabIndex:e.tabIndex,type:"range"}),n().createElement("span",{className:"slds-resizable__handle"},n().createElement("span",{className:"slds-resizable__divider"})))};_.displayName="ResizeControl",_.propTypes={label:u().string.isRequired,tabIndex:u().oneOf(["0","-1"])};var O=function(e){var t=(0,a.useContext)(x).isActionableMode,l=t?"0":"-1",i=function(){return n().createElement("div",{className:"slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate"},e.columnHeaderIcons?function(){var t=e.columnHeaderIcons.filter(function(t){return t.column===e.columnName.toLowerCase()});if(t.length)return t[0].icon}():null,n().createElement("span",{className:"slds-truncate",title:e.columnName},e.columnName),e.isSortable&&n().createElement(y.eX,{assistiveText:!1,className:"slds-icon-text-default slds-is-sortable__icon ",symbol:"arrowdown",title:!1}))};return n().createElement(n().Fragment,null,e.isSortable?n().createElement("a",{className:"slds-th__action slds-text-link_reset",href:"#",role:"button",tabIndex:l,onClick:function(e){return e.preventDefault()}},n().createElement("span",{className:"slds-assistive-text"},"Sort by: "),i()):n().createElement("div",{className:"slds-th__action"},i()),e.sortDirection&&n().createElement("span",{className:"slds-assistive-text","aria-live":"polite","aria-atomic":"true"},"Sorted ",e.sortDirection),e.hasMenu&&n().createElement(b.A,{"aria-haspopup":"true",assistiveText:"Show ".concat(e.columnName," column actions"),className:"slds-th__action-button slds-button_icon-x-small",iconClassName:"slds-button__icon_hint slds-button__icon_small",symbol:"chevrondown",tabIndex:t?"0":"-1",title:"Show ".concat(e.columnName," column actions")}),e.isResizable&&n().createElement(_,{label:e.columnName+" column width"||0,tabIndex:l}))};O.displayName="InteractiveColumnHeader",O.propTypes={columnName:u().string.isRequired,columnHeaderIcons:u().array,hasMenu:u().bool,isResizable:u().bool,isSortable:u().bool,sortDirection:u().oneOf(["ascending","descending"])},O.defaultProps={isResizable:!0,isSortable:!0};var I=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(n().Fragment,null,n().createElement("div",{className:"slds-th__action slds-th__action_form"},n().createElement(E.Sc,{tabIndex:t?"0":"-1",labelId:"check-select-all-label",label:"Select All",hideLabel:!0,checked:!!e.checked||null,groupId:"column-group-header",isDataTable:!0})))};I.displayName="SelectAllColumnHeader",I.propTypes={checked:u().bool};var B=function(e){var t=e.hasErrorColumn?"2rem":"3.25rem",l=e.mainColumnWidth||null;return n().createElement(A,{isHidden:e.isHidden},n().createElement(R,null,e.hasErrorColumn?n().createElement(k,{style:{width:"3.75rem"}},n().createElement(L,{columnName:"Errors",isAssistiveText:!0})):null,!e.hasNoRowSelection&&n().createElement(k,{isDataTable:!e.hasSingleRowSelect||!e.isHidden,isRightAligned:!e.hasErrorColumn||null,style:{width:t}},e.hasSingleRowSelect||e.isHidden?n().createElement(L,{columnName:"Choose a row to select",id:"column-group-header",isAssistiveText:!0}):n().createElement(I,{checked:e.selectAll})),e.columns.map(function(t,a){return n().createElement(k,{key:a,"aria-label":t,hasFocus:0===a?e.hasFocus:null,hasMenu:e.hasMenus,isResizable:e.isResizable&&!e.isHidden,isSortable:e.isSortable&&!e.isHidden,sortDirection:0===a?e.sortDirection:null,style:{width:0===a&&e.singleColumnWidth?e.singleColumnWidth:l}},n().createElement(O,{columnName:t,columnHeaderIcons:e.columnHeaderIcons,hasMenu:e.hasMenus,isResizable:e.isResizable&&!e.isHidden,isSortable:e.isSortable&&!e.isHidden,sortDirection:0===a?e.sortDirection:null}))}),e.hasRowLevelActions&&n().createElement(k,{style:{width:"3.25rem"}},n().createElement(L,{columnName:"Actions",isAssistiveText:!0}))))};B.displayName="AdvancedDataTableHead",B.propTypes={columnHeaderIcons:u().array,columns:u().array.isRequired,hasErrorColumn:u().bool,hasFocus:u().bool,hasMenus:u().bool,hasNoRowSelection:u().bool,hasRowLevelActions:u().bool,hasSingleRowSelect:u().bool,isHidden:u().bool,isResizable:u().bool,isSortable:u().bool,mainColumnWidth:u().string,selectAll:u().bool,singleColumnWidth:u().string,sortDirection:u().oneOf(["ascending","descending","none"])},B.defaultProps={hasRowLevelActions:!0,isResizable:!0,isSortable:!0};var q=function(e){return n().createElement("tbody",null,e.children)};q.displayName="TBody",q.propTypes={children:u().node};var D=function(e){return n().createElement("tr",{"aria-expanded":e.isExpanded,"aria-level":e.level,"aria-posinset":e.positionWithinLevel,"aria-selected":e.isSelected,"aria-setsize":e.numberOfItemsAtLevel,className:d()("slds-hint-parent",{"slds-align-top":e.isTopAligned,"slds-is-selected":e.isSelected}),tabIndex:e.tabIndex},e.children)};D.displayName="TBodyTr",D.propTypes={children:u().node,isExpanded:u().bool,isSelected:u().bool,isTopAligned:u().bool,level:u().string,positionWithinLevel:u().string,numberOfItemsAtLevel:u().string,tabIndex:u().oneOf(["0","-1"])};var H=function(e){var t=(0,a.useContext)(x).isActionableMode,l=d()({"slds-has-focus":e.hasFocus,"slds-cell-edit":e.isEditable,"slds-is-edited":e.isEdited,"slds-cell-error":e.isErrorCell,"slds-text-align_right":e.isRightAligned,"slds-cell-shrink":e.isShrunken,"slds-has-error":e.hasError,"slds-cell-wrap":e.hasWrap,"slds-cell_action-mode":t});return n().createElement("td",{"aria-readonly":e.isLocked,"aria-selected":e.isEditing,"aria-describedby":function(){if(e.isEdited)return"unsaved-cell-notification"}()||null,className:l||null,"data-label":e["data-label"],role:function(){var t=null;switch(e.type){case"advanced":case"treegrid":t="gridcell"}return t}(),style:e.style,tabIndex:e.tabIndex},e.children)};H.displayName="Td",H.propTypes={children:u().node,"data-label":u().string,hasError:u().bool,hasFocus:u().bool,isEditable:u().bool,isEdited:u().bool,isEditing:u().bool,isErrorCell:u().bool,isLocked:u().bool,isRightAligned:u().bool,isShrunken:u().bool,style:u().object,tabIndex:u().oneOf(["0","-1"]),type:u().oneOf(["advanced","base","treegrid"]).isRequired,hasWrap:u().bool};var F=function(e){var t=(0,a.useContext)(x).isActionableMode,l=d()({"slds-cell-edit":e.isEditable,"slds-has-focus":e.hasFocus,"slds-tree__item":"treegrid"===e.type,"slds-is-hovered":e.isItemHovered,"slds-cell-wrap":e.hasWrap,"slds-cell_action-mode":t});return n().createElement("th",{className:l||null,"data-label":e["data-label"],scope:"row",tabIndex:e.tabIndex},e.children)};F.displayName="RowTh",F.propTypes={children:u().node,"data-label":u().string,hasFocus:u().bool,isEditable:u().bool,tabIndex:u().oneOf(["0","-1"]),type:u().oneOf(["base","advanced","treegrid"]),isItemHovered:u().bool,hasWrap:u().bool};var P=function(e){return n().createElement(n().Fragment,null,e.hasSingleRowSelect?n().createElement(h.sx,{checked:e.checked,groupId:"column-group-header",hideLabel:!0,id:"radio-0".concat(e.index),label:"Select item ".concat(e.index),labelId:"radio-button-label-0".concat(e.index),tabIndex:e.inputTabIndex,isDataTable:!0}):n().createElement(E.Sc,{checked:e.checked,groupId:"column-group-header",hideLabel:!0,id:"checkbox-0".concat(e.index),label:"Select item ".concat(e.index),labelId:"check-button-label-0".concat(e.index),tabIndex:e.inputTabIndex,isDataTable:!0}))};P.displayName="SelectRowCell",P.propTypes={checked:u().bool,hasSingleRowSelect:u().bool,index:u().number.isRequired,inputTabIndex:u().oneOf(["0","-1"])};var z=function(e){var t=e.rowName,l=(0,a.useContext)(x).isActionableMode;return n().createElement(b.A,{assistiveText:"More actions for ".concat(t),"aria-haspopup":"true",className:"slds-button_icon-border-filled slds-button_icon-x-small",iconClassName:"slds-button__icon_hint slds-button__icon_small",symbol:"down",tabIndex:l?"0":"-1",title:"More actions for ".concat(t)})};z.displayName="RowActionsCell",z.propTypes={rowName:u().string.isRequired};var M=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(n().Fragment,null,n().createElement(b.A,{"aria-hidden":e.hasError?null:"true",assistiveText:"Item ".concat(e.index," has errors"),className:d()("slds-button_icon-error slds-m-horizontal_xxx-small",{"slds-hidden":!e.hasError}),id:"error-0"+e.index,symbol:"error",tabIndex:t?"0":"-1",title:"Item ".concat(e.index," has errors")}),n().createElement("span",{className:"slds-row-number slds-text-body_small slds-text-color_weak"}))};M.displayName="ErrorCell",M.propTypes={hasError:u().bool,index:u().number.isRequired};var W=function(e){var t=e.hasWrap,l=e.cellText,i=e.cellLink,r=(0,a.useContext)(x).isActionableMode;return n().createElement("div",{className:d()(t?"slds-line-clamp":"slds-truncate"),title:l},i?n().createElement("a",{href:"#",tabIndex:r?"0":"-1",onClick:function(e){e.preventDefault()}},l):l)};W.displayName="ReadOnlyCell",W.propTypes={cellLink:u().bool,cellText:u().string.isRequired,hasWrap:u().bool};var j=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(n().Fragment,null,n().createElement("span",{className:"slds-grid slds-grid_align-spread"},e.cellLink?n().createElement("a",{className:"slds-truncate",href:"#",id:"link-0".concat(e.index),tabIndex:t?"0":"-1",title:e.cellText,onClick:function(e){return e.preventDefault()}},e.cellText):n().createElement("span",{className:"slds-truncate",title:e.cellText},e.cellText),n().createElement(b.A,{assistiveText:e.buttonText,className:"slds-cell-edit__button slds-m-left_x-small",disabled:e.isLocked,iconClassName:d()("slds-button__icon_hint",{"slds-button__icon_edit":!e.isLocked,"slds-button__icon_lock slds-button__icon_small":e.isLocked}),symbol:e.isLocked?"lock":"edit",tabIndex:t?"0":"-1",title:e.buttonText})),e.showEdit&&n().createElement($,{isRequired:e.isRequired,hasError:e.hasError}),e.isEdited&&n().createElement("span",{id:"unsaved-cell-notification",class:"slds-hide"},"Unsaved"))};j.displayName="EditableCell",j.propTypes={buttonText:u().string.isRequired,cellLink:u().bool,cellText:u().string.isRequired,hasError:(0,s.VY)("showEdit",u().bool),index:u().number,isLocked:u().bool,isRequired:(0,s.VY)("showEdit",u().bool),showEdit:u().bool};var $=function(e){return n().createElement(p.AM,{className:"slds-popover slds-popover_edit",style:{position:"absolute",top:"0",left:"0.0625rem"}},n().createElement("div",{className:d()("slds-form-element slds-grid slds-wrap",{"slds-has-error":e.hasError})},n().createElement("label",{className:"slds-form-element__label slds-form-element__label_edit slds-no-flex",htmlFor:"company-01"},e.isRequired?n().createElement("abbr",{className:"slds-required",title:"required","aria-hidden":"true"},"*"):null,n().createElement("span",{className:"slds-assistive-text"},"Company")),n().createElement("div",{className:"slds-form-element__control slds-grow"},n().createElement("input",{"aria-describedby":e.hasError?"error-message-01":null,className:"slds-input",defaultValue:"Acme Enterprises",id:"company-01",required:e.isRequired,type:"text"})),e.hasError?n().createElement("div",{id:"error-message-01",className:"slds-form-element__help"},"This field is required"):null))};$.displayName="EditPopover",$.propTypes={hasError:u().bool,isRequired:u().bool};var X=[{id:"default",label:"Default",element:n().createElement(T,{isBordered:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example default base table of Opportunities"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"})))}],V=[{id:"data-table-striped-rows",label:"With striped rows",element:n().createElement(T,{isBordered:!0,isStriped:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example table of Opportunities with striped rows"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"}),n().createElement(C,{title:"Cloudhub"})))},{id:"data-table-no-hover",label:"With no row hovers",element:n().createElement(T,{isBordered:!0,hasCellBuffer:!0,hasNoRowHover:!0,type:"base",ariaLabel:"Example table of Opportunities with no row hovers"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"})))},{id:"data-table-vertical-borders",label:"With vertical borders",element:n().createElement(T,{isBordered:!0,isColBordered:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example table of Opportunities with vertical borders"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"})))},{id:"single-column",label:"Single Column",element:n().createElement(T,{isBordered:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example table of Opportunities with a single column"},n().createElement(A,null,n().createElement(R,null,n().createElement(k,null,n().createElement(L,{columnName:"Opportunity Name"})))),n().createElement(q,null,n().createElement(D,null,n().createElement(H,{"data-label":"Opportunity Name",type:"base"},n().createElement(W,{cellLink:!0,cellText:"Cloudhub"}))),n().createElement(D,null,n().createElement(H,{"data-label":"Opportunity Name",type:"base"},n().createElement(W,{cellLink:!0,cellText:"Cloudhub + Anypoint Connectors"})))))},{id:"no-borders",label:"No borders",element:n().createElement(T,{isStriped:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example table of Opportunities with no borders"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"}),n().createElement(C,{title:"Cloudhub"})))},{id:"headless",label:"Headless",element:n().createElement(T,{hasHiddenHeader:!0,isBordered:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example headless table of Opportunities"},n().createElement(A,{isHidden:!0},n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"}),n().createElement(C,{title:"Cloudhub"})))},{id:"headless-no-borders",label:"Headless with no borders",element:n().createElement(T,{hasHiddenHeader:!0,hasCellBuffer:!0,type:"base",ariaLabel:" Example headless table of Opportunities with no borders "},n().createElement(A,{isHidden:!0},n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"}),n().createElement(C,{title:"Cloudhub"})))},{id:"cell-content-truncated",label:"Cell content truncated",demoStyles:"max-width: 600px;",storybookStyles:!0,element:n().createElement(T,{isBordered:!0,isStriped:!0,hasCellBuffer:!0,isFixedLayout:!0,type:"base",ariaLabel:" Example headless table of Opportunities with cell content truncated "},n().createElement(A,null,n().createElement(R,null,n().createElement(k,null,n().createElement(L,{columnName:"Typical Column Header"})),n().createElement(k,null,n().createElement(L,{columnName:"Truncated, no wrap"})),n().createElement(k,null,n().createElement(L,{columnName:"Typical Column Header"})))),n().createElement(q,null,n().createElement(D,null,n().createElement(F,{"data-label":"Typical Column Header"},n().createElement(W,{cellText:"Typical cell content"})),n().createElement(H,{"data-label":"Truncated, no wrap",type:"base",hasWrap:!0},n().createElement(W,{cellText:w})),n().createElement(H,{"data-label":"Typical Column Header",type:"base"},n().createElement(W,{cellText:"Typical cell content"})))))},{id:"cell-content-wrapped",label:"Cell content wrapped",demoStyles:"max-width: 600px;",storybookStyles:!0,element:n().createElement(T,{isBordered:!0,isStriped:!0,hasCellBuffer:!0,isFixedLayout:!0,type:"base",ariaLabel:" Example headless table of Opportunities with cell content wrapped "},n().createElement(A,null,n().createElement(R,null,n().createElement(k,null,n().createElement(L,{columnName:"Typical Column Header"})),n().createElement(k,null,n().createElement(L,{columnName:"Wrapped, line clamped"})),n().createElement(k,null,n().createElement(L,{columnName:"Typical Column Header"})))),n().createElement(q,null,n().createElement(D,null,n().createElement(F,{"data-label":"Typical Column Header"},n().createElement(W,{cellText:"Typical cell content"})),n().createElement(H,{"data-label":"Wrapped, line clamped",type:"base",hasWrap:!0},n().createElement(W,{cellText:w,hasWrap:!0})),n().createElement(H,{"data-label":"Typical Column Header",type:"base"},n().createElement(W,{cellText:"Typical cell content"})))))},{id:"data-table-aria-labelledby",label:"Using aria-labelledby instead of aria-label",element:n().createElement(n().Fragment,null,n().createElement("h2",{id:"element-with-table-label",className:"slds-text-heading_medium slds-m-bottom_xx-small"},"Example data table of Opportunities"),n().createElement("h3",{id:"other-element-with-table-label",className:"slds-text-title slds-m-bottom_small"},"Using ",n().createElement("code",null,"aria-labelledby"),", instead of aria-label"),n().createElement(T,{isBordered:!0,hasCellBuffer:!0,type:"base",ariaLabelledBy:"element-with-table-label other-element-with-table-label"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"}))))}],G=l(4090),Y=l(8522),J=l(1391),Q=l(7852),U=l(5526),K=l(2711),Z=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(D,{isSelected:e.isSelected},n().createElement(H,{isRightAligned:!0,type:"advanced"},n().createElement(P,{checked:e.isSelected,hasSingleRowSelect:e.hasSingleRowSelect,index:e.index,inputTabIndex:t?"0":"-1"})),n().createElement(F,{hasFocus:!t&&1===e.index&&e.hasFocus,tabIndex:t||1!==e.index?null:"0"},n().createElement(W,{cellLink:!0,cellText:e.recordName})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.accountName})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.closeDate})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.stage})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.confidence})),e.hasScores&&e.amountScore&&e.amountScoreLabel?n().createElement(H,{type:"advanced"},n().createElement("div",{className:"slds-grid slds-grid_vertical-align-center"},n().createElement("div",{className:"slds-truncate",title:e.amount},e.amount),n().createElement("div",{className:"slds-icon_container slds-m-left_x-small slds-m-right_xx-small"},n().createElement(J.A,{"data-slds-state":e.amountScore})),n().createElement("div",{className:"slds-truncate",title:e.amountScoreLabel},e.amountScoreLabel))):n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.amount})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellLink:!0,cellText:e.contact})),e.hasRowActions&&n().createElement(H,{type:"advanced"},n().createElement(z,{rowName:e.recordName})))};Z.displayName="AdvancedDataTableTr",Z.propTypes={accountName:u().string.isRequired,amount:u().string.isRequired,amountScore:(0,s.VY)("amountScoreLabel",u().string),amountScoreLabel:(0,s.VY)("amountScore",u().string),closeDate:u().string.isRequired,confidence:u().string.isRequired,contact:u().string.isRequired,hasFocus:u().bool,hasRowActions:u().bool,hasScores:u().bool,index:u().number.isRequired,hasSingleRowSelect:u().bool,recordName:u().string.isRequired,isSelected:u().bool,stage:u().string.isRequired},Z.defaultProps={hasRowActions:!0};var ee=function(e){return n().createElement("div",{className:"slds-size_xx-small"},n().createElement("img",{alt:e.productName,src:e.productImgSrc,title:e.productName}))};ee.displayName="ProductImage",ee.propTypes={productImgSrc:u().string.isRequired,productName:u().string.isRequired};var te=function(e){return n().createElement(n().Fragment,null,n().createElement("p",null,n().createElement("s",null,e.priceOriginal)),n().createElement("p",null,e.priceDiscount))};te.displayName="ProductPriceCell",te.propTypes={priceDiscount:u().string.isRequired,priceOriginal:u().string.isRequired};var le=function(e){return n().createElement(Q.A,{figureLeft:n().createElement(ee,{productImgSrc:e.productImgSrc,productName:e.productName})},n().createElement(W,{cellLink:!0,cellText:e.productName}),n().createElement("ul",null,e.productProperties.map(function(e,t){return n().createElement("li",{className:"slds-truncate",key:t,title:"".concat(e.label,": ").concat(e.value)},e.label,": ",n().createElement("strong",null,e.value))})),n().createElement("p",{className:"slds-text-color_success"},e.labelInventory))};le.displayName="ProductItemDetailsCell",le.propTypes={labelInventory:u().string.isRequired,productImgSrc:u().string.isRequired,productName:u().string.isRequired,productProperties:u().array.isRequired};var ae=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(K.ZS,{inputId:e.inputId,labelClassName:"slds-assistive-text",labelContent:e.labelText},n().createElement(U.A,{className:"slds-size_xxx-small slds-text-align_center slds-p-horizontal_x-small",defaultValue:e.quantity,id:e.inputId,placeholder:" ",tabIndex:t?null:"-1"}))};ae.displayName="ProductQuantityCell",ae.propTypes={labelText:u().string.isRequired,inputId:u().string.isRequired,quantity:u().string};var ne=function(e){return n().createElement(D,{isTopAligned:!0},n().createElement(F,null,n().createElement(le,{labelInventory:e.labelInventory,productImgSrc:e.productImgSrc,productName:e.productName,productProperties:e.productProperties})),n().createElement(H,{type:"advanced"},n().createElement(ae,{inputId:"product-quantity-text-input-id-".concat(e.index),labelText:"".concat(e.productName," quantity"),quantity:e.quantity})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.dateAdded})),n().createElement(H,{type:"advanced"},n().createElement(te,{priceDiscount:e.priceDiscount,priceOriginal:e.priceOriginal})),n().createElement(H,{type:"advanced"},n().createElement(z,{rowName:e.productName})))};function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},ie.apply(null,arguments)}ne.displayName="ProductDataTableTr",ne.propTypes={dateAdded:u().string.isRequired,index:u().number.isRequired,labelInventory:u().string.isRequired,priceDiscount:u().string.isRequired,priceOriginal:u().string.isRequired,productImgSrc:u().string.isRequired,productName:u().string.isRequired,productProperties:u().array.isRequired,quantity:u().string};var re=["Name","Account Name","Close Date","Stage","Confidence","Amount","Contact"],oe=[{recordName:"Acme - 1,200 Widgets",accountName:"Acme",closeDate:"4/10/15",stage:"Value Proposition",confidence:"30%",amount:"$25,000,000",contact:"jrogers@acme.com",amountScore:"positive",amountScoreLabel:"High"},{recordName:"Acme - 200 Widgets",accountName:"Acme",closeDate:"1/31/15",stage:"Prospecting",confidence:"60%",amount:"$5,000,000",contact:"bob@acme.com"},{recordName:"salesforce.com - 1,000 Widgets",accountName:"salesforce.com",closeDate:"1/31/15 3:45PM",stage:"Id. Decision Makers",confidence:"70%",amount:"$25,000",contact:"nathan@salesforce.com",amountScore:"negative",amountScoreLabel:"Low"}],se=[].concat(oe).reverse(),ce=[{column:"account name",icon:n().createElement(Y.b$,{assistiveText:"Account",className:"slds-icon_x-small",containerClassName:"slds-m-right_xx-small",symbol:"account",title:"Account"})},{column:"confidence",icon:n().createElement("div",{className:"slds-icon_container slds-m-right_xx-small"},n().createElement(G.A,{assistiveText:"Einstein calculated",className:"slds-is-paused",title:"Einstein calculated"}))}],de=(oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))}),[{id:"cell-focused",label:"Cell Focused",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities with cell focused"},n().createElement(B,{columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e,{hasFocus:!0}))})))},{id:"actionable-mode",label:"Actionable Mode",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:!1,key:t},e))}))))},{id:"row-selected",label:"Row Selected (Actionable mode)",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode with row selected"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:1===t,key:t},e))}))))},{id:"all-row-selected",label:"All Rows Selected (Actionable mode)",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode with all rows selected"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re,selectAll:!0}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:!0,key:t},e))}))))},{id:"sorted-column-asc",label:"Sorted Ascending (Actionable mode)",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode with ascending column sorting"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re,sortDirection:"ascending"}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:!1,key:t},e))}))))},{id:"sorted-column-desc",label:"Sorted Descending (Actionable mode)",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode with descending column sorting"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re,sortDirection:"descending"}),n().createElement(q,null,se.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:!1,key:t},e))}))))},{id:"resized-column",label:"Column Resized (Actionable mode)",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode with resized column"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re,singleColumnWidth:"300px"}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:!1,key:t},e))}))))}]),me=[{id:"header-icon-menu-button",label:"Header Icon and Menu Button",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities with header icon and menu button"},n().createElement(B,{columnHeaderIcons:ce,columns:re,hasMenus:!0}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))})))},{id:"header-menu-button",label:"Header Menu Button",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities with header menu button"},n().createElement(B,{columns:re,hasMenus:!0}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))})))},{id:"cell-icon",label:"Cell Icon",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities with cell icon"},n().createElement(B,{columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e,{hasScores:!0}))})))},{id:"product-listing",label:"Product Listing",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table as product listing"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:["Product","Quantity","Date Added","Price"],hasNoRowSelection:!0}),n().createElement(q,null,[{productImgSrc:"/assets/images/product1.jpg",productName:"Baseball Cap",productProperties:[{label:"Size",value:"7 3/4"},{label:"Color",value:"Blue"},{label:"Item No.",value:"1007100"}],labelInventory:"In Stock",quantity:"1",dateAdded:"4/10/17",priceOriginal:"$23.00",priceDiscount:"$20.00"},{productImgSrc:"/assets/images/product2.jpg",productName:"Construction Hat",productProperties:[{label:"Size",value:"One size fits most"},{label:"Color",value:"Yellow"},{label:"Item No.",value:"2800100"}],labelInventory:"In Stock",quantity:"1",dateAdded:"4/10/17",priceOriginal:"$52.00",priceDiscount:"$40.00"},{productImgSrc:"/assets/images/product3.jpg",productName:"Campaign Hat",productProperties:[{label:"Size",value:"Small"},{label:"Color",value:"Tan"},{label:"Item No.",value:"2000100"}],labelInventory:"In Stock",quantity:"1",dateAdded:"4/10/17",priceOriginal:"$79.00",priceDiscount:"$59.00"}].map(function(e,t){return n().createElement(ne,ie({isSelected:!1,key:t,index:t+1},e))}))))},{id:"radio-group",label:"Radio Group",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,type:"advanced",ariaLabel:"Example advanced table as radio group"},n().createElement(B,{columns:re,hasSingleRowSelect:!0}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({hasSingleRowSelect:!0,index:t+1,key:t},e))})))},{id:"data-table-no-borders",label:"No borders",element:n().createElement(T,{isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table with no borders"},n().createElement(B,{columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))})))},{id:"data-table-headless",label:"Headless",element:n().createElement(T,{hasHiddenHeader:!0,isBordered:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced headless table"},n().createElement(B,{isHidden:!0,columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))})))},{id:"data-table-headless-no-borders",label:"Headless with no borders",element:n().createElement(T,{hasHiddenHeader:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced headless border-less table"},n().createElement(B,{isHidden:!0,columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))})))}];function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},ue.apply(null,arguments)}var be=function(e){return n().createElement("div",ue({className:"demo-only"},e),e.children)};be.propTypes={children:u().node};var pe=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(D,{isSelected:e.isSelected},n().createElement(H,{hasFocus:"error"===e.focusedCell,isEditable:!0,isErrorCell:!0,type:"advanced"},n().createElement(M,{hasError:e.showRowError,index:e.index})),n().createElement(H,{hasFocus:"selectRow"===e.focusedCell,isEditable:!0,tabIndex:t||"selectRow"!==e.focusableCell?null:"0",type:"advanced"},n().createElement(P,{checked:e.isSelected,index:e.index,inputTabIndex:t?"0":"-1"})),n().createElement(F,{hasFocus:"recordName"===e.focusedCell,isEditable:!0,tabIndex:t||"recordName"!==e.focusableCell?null:"0"},n().createElement(j,{buttonText:"Edit Name of "+e.recordName,cellLink:!0,cellText:e.recordName,index:e.index})),n().createElement(H,{hasError:e.showCellError,hasFocus:"accountName"===e.focusedCell,isEditable:!0,isEdited:e.showEditedCell,isEditing:e.showEdit,isLocked:e.isLocked,tabIndex:t||"accountName"!==e.focusableCell?null:"0",type:"advanced"},n().createElement(j,{buttonText:"Edit Account Name of "+e.recordName,cellText:e.accountName,hasError:e.showEditError,index:e.index,isLocked:e.isLocked,isRequired:e.showEditRequired,showEdit:e.showEdit,isEdited:e.showEditedCell})),n().createElement(H,{isEditable:!0,type:"advanced"},n().createElement(j,{buttonText:"Edit Close Date of "+e.recordName,cellText:e.closeDate,index:e.index})),n().createElement(H,{isEditable:!0,type:"advanced"},n().createElement(j,{buttonText:"Edit Stage of "+e.recordName,cellText:e.stage,index:e.index})),n().createElement(H,{isEditable:!0,isLocked:!0,type:"advanced"},n().createElement(j,{buttonText:"Edit Confidence of "+e.recordName,cellText:e.confidence,index:e.index,isLocked:!0})),n().createElement(H,{isEditable:!0,type:"advanced"},n().createElement(j,{buttonText:"Edit Amount of "+e.recordName,cellText:e.amount,index:e.index})),n().createElement(H,{isEditable:!0,type:"advanced"},n().createElement(j,{buttonText:"Edit Contact of "+e.recordName,cellText:e.contact,index:e.index})),n().createElement(H,{isEditable:!0,type:"advanced"},n().createElement(z,{isEditable:!0,rowName:e.recordName})))};pe.displayName="InlineEditTr",pe.propTypes={accountName:u().string.isRequired,amount:u().string.isRequired,closeDate:u().string.isRequired,confidence:u().string.isRequired,contact:u().string.isRequired,focusableCell:u().string,focusedCell:u().string,index:u().number.isRequired,isLocked:u().bool,recordName:u().string.isRequired,isSelected:u().bool,showCellError:(0,s.VY)("showRowError",u().bool),showEdit:u().bool,showEditError:u().bool,showEditRequired:u().bool,showEditedCell:u().bool,showRowError:u().bool,stage:u().string.isRequired};var Ee=l(3062),he=l(9249);function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},ye.apply(null,arguments)}var fe=s.Ay.uniqueId("dialog-heading-id-"),ve=["Name","Account Name","Close Date","Stage","Confidence","Amount","Contact"],ge=[{recordName:"Acme - 1,200 Widgets",accountName:"Acme",closeDate:"4/10/15",stage:"Value Proposition",confidence:"30%",amount:"$25,000,000",contact:"jrogers@acme.com"},{recordName:"Acme - 200 Widgets",accountName:"Acme",closeDate:"1/31/15",stage:"Prospecting",confidence:"60%",amount:"$5,000,000",contact:"bob@acme.com"},{recordName:"salesforce.com - 1,000 Widgets",accountName:"salesforce.com",closeDate:"1/31/15 3:45PM",stage:"Id. Decision Makers",confidence:"70%",amount:"$25,000",contact:"nathan@salesforce.com"}],xe=function(){return n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusedCell:0===t?"recordName":null,index:t+1,isSelected:!1,key:t},e))})))))},we=[{id:"default",label:"Default",element:n().createElement(S,null,n().createElement(T,{hasNoCellFocus:!0,isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example default inline edit table with cell focused"},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusableCell:"recordName",index:t+1,isSelected:!1,key:t},e))}))))}],Ne=[{id:"with-link",label:"Cell focused - Link (Actionable mode)",element:n().createElement(xe,null),script:"\n document.getElementById('link-01').focus()\n "},{id:"checkbox",label:"Cell focused - Checkbox (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with checkbox cell focused"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusedCell:0===t?"selectRow":null,index:t+1,isSelected:!1,key:t},e))}))))),script:"\n document.getElementById('checkbox-01').focus()\n "},{id:"focused",label:"Cell focused (Navigation mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in navigation mode with cell focused"},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusableCell:0===t?"accountName":null,focusedCell:0===t?"accountName":null,index:t+1,isSelected:!1,key:t},e))}))))},{id:"edit",label:"Cell edit (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell edit"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({index:t+1,isSelected:!1,key:t,showEdit:0===t},e))}))))),script:"\n document.getElementById('company-01').focus()\n document.getElementById('company-01').select()\n "},{id:"required",label:"Cell edit — Required (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with required cell edit"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({index:t+1,isSelected:!1,key:t,showEdit:0===t,showEditRequired:!0},e))}))))),script:"\n document.getElementById('company-01').focus()\n document.getElementById('company-01').select()\n "},{id:"error",label:"Cell edit — Error (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell error"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({index:t+1,isSelected:!1,key:t,showEdit:0===t,showEditError:!0,showEditRequired:!0},e))}))))),script:"\n document.getElementById('company-01').focus()\n document.getElementById('company-01').select()\n "},{id:"edited",label:"Cell edited (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell edited"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({index:t+1,isSelected:!1,key:t,showEditedCell:0===t},e))})))))},{id:"row-selected-with-edited-cell",label:"Row Selected with an Edited Cell",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell edited in selected row"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({className:0===t?"slds-is-selected":null,index:t+1,isSelected:0===t,key:t,showEditedCell:0===t},e))})))))},{id:"row-error",label:"Error - Row level on save (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell error on save"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusedCell:0===t?"accountName":null,index:t+1,isSelected:!1,key:t,showCellError:0===t,showRowError:0===t},e))}))))),script:"\n document.getElementById('button-01').focus()\n "},{id:"row-error-and-selected",label:"Error - Row level on save (Actionable mode) with entire row selected",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell error on save in selected row"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({className:0===t?"slds-is-selected":null,index:t+1,isSelected:0===t,key:t,showCellError:0===t,showRowError:0===t},e))})))))},{id:"row-error-focused",label:"Error indicator - Focused (Actionable mode)",element:n().createElement(be,{style:{marginTop:"100px",marginLeft:"10px"}},n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with error indicator focused"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusedCell:0===t?"error":null,index:t+1,isSelected:!1,key:t,showCellError:0===t,showRowError:0===t},e))})))),n().createElement(Ee.AM,{className:"slds-popover_error slds-nubbin_bottom-left",closeButton:!0,header:n().createElement(he.R5,{headingId:fe,symbol:"error",title:"Resolve error"}),headingId:fe,inverse:!0,style:{position:"absolute",top:"-56px"}},n().createElement("p",null,"Company encountered an error")))),script:"\n document.getElementById('error-01').focus()\n "},{id:"header-cell-focused",label:"Header cell focused (Navigation mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in navigation mode with header cell focused"},n().createElement(B,{columns:ve,hasErrorColumn:!0,hasFocus:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,{accountName:ge[t].accountName,amount:ge[t].amount,closeDate:ge[t].closeDate,confidence:ge[t].confidence,contact:ge[t].contact,index:t+1,isSelected:!1,key:t,recordName:ge[t].recordName,stage:ge[t].stage})}))))},{id:"header-cell-marked",label:"Header cell marked (Navigation mode)",element:n().createElement(S,null,n().createElement(T,{hasNoCellFocus:!0,isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in navigation mode with header cell marked"},n().createElement(B,{columns:ve,hasErrorColumn:!0,hasFocus:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,{accountName:ge[t].accountName,amount:ge[t].amount,closeDate:ge[t].closeDate,confidence:ge[t].confidence,contact:ge[t].contact,index:t+1,isSelected:!1,key:t,recordName:ge[t].recordName,stage:ge[t].stage})}))))}],Ce=i.XB.a,Se=i.XB.code,Te=i.XB.h2,Ae=i.XB.h3,Re=i.XB.h4,ke=i.XB.li,Le=i.XB.p,_e=i.XB.strong,Oe=i.XB.ul,Ie=function(){return(0,a.createElement)(i.Ay,{},(0,a.createElement)("div",{className:"doc lead"},"Data tables are an enhanced version of an HTML table and are used to display tabular data."),(0,a.createElement)(r.A,{exampleOnly:!0,demoStyles:"overflow: hidden;"},(0,s.NO)(de,"actionable-mode")),Te({id:"About-Data-Tables"},"About Data Tables"),Le({},"To initialize a data table, apply the ",Se({},"slds-table")," class to the ",Se({},"table")," element. This class creates a ",Se({},"table")," with formatted cells and allows you to use data table utilities."),Ae({id:"Accessibility"},"Accessibility"),Re({id:"Headers"},"Headers"),Le({},"To create an accessible table, the top row of column headers (",Se({},"th"),") are placed in a ",Se({},"thead"),". Each one receives the ",Se({},'scope="col"')," attribute. The first non-actionable (meaning that doesn't contain a checkbox or menu) column in each row should be marked as a th with a ",Se({},'scope="row"')," attribute."),Re({id:"Labeling"},"Labeling"),Le({},"To give additional context, like a caption or description, to a table for screen readers, the attributes ",Se({},"aria-labelledby")," or ",Se({},"aria-label")," can be used on the ",Se({},"table")," element."),Le({},"For ",Se({},"aria-label"),", set the description as the attribute value. Alternatively, if another element, or elements, can serve this purpose for the table, then set the value of ",Se({},"aria-labelledby")," with the ",Se({},"id")," of the element[s]."),Le({},"This example shows ",Se({},"aria-labelledby")," set with the ",Se({},"id"),"s of two separate elements to make up the label."),(0,a.createElement)(r.A,null,(0,s.NO)(V,"data-table-aria-labelledby")),Te({id:"Base"},"Base"),(0,a.createElement)(r.A,null,(0,s.NO)(X)),Ae({id:"Striped-rows"},"Striped rows"),(0,a.createElement)(r.A,null,(0,s.NO)(V,"data-table-striped-rows")),Ae({id:"Columns-dividers"},"Columns dividers"),(0,a.createElement)(r.A,null,(0,s.NO)(V,"data-table-vertical-borders")),Ae({id:"Rows-with-no-hover"},"Rows with no hover"),(0,a.createElement)(r.A,null,(0,s.NO)(V,"data-table-no-hover")),Ae({id:"Single-Column-table"},"Single Column table"),(0,a.createElement)(r.A,null,(0,s.NO)(V,"single-column")),Ae({id:"Headless"},"Headless"),(0,a.createElement)(r.A,null,(0,s.NO)(V,"headless")),Re({id:"With-no-borders"},"With no borders"),(0,a.createElement)(r.A,null,(0,s.NO)(V,"headless-no-borders")),Te({id:"Actionable-mode-Column-sorting-and-row-selection(s)"},"Actionable mode - Column sorting and row selection(s)"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(de,"actionable-mode")),Ae({id:"Single-row-selection"},"Single row selection"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(me,"radio-group")),Ae({id:"Navigation-mode-Cell-focused"},"Navigation mode - Cell focused"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(de,"cell-focused")),Ae({id:"Row-Selection"},"Row Selection"),Re({id:"Single-row-selected"},"Single row selected"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(de,"row-selected")),Re({id:"All-rows-selected"},"All rows selected"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(de,"all-row-selected")),Ae({id:"Column-sorting"},"Column sorting"),(0,a.createElement)(o.A,{type:"a11y",header:"Accessibility Note"},(0,a.createElement)("p",null,'The assistive text for the sort action contains `aria-live="polite"` so screen reader doesn\'t disrupt itself from announcing what the user is interacting with.')),Re({id:"Sorted-Ascending"},"Sorted Ascending"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(de,"sorted-column-asc")),Re({id:"Sorted-Descending"},"Sorted Descending"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(de,"sorted-column-desc")),Ae({id:"Column-resizing"},"Column resizing"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(de,"resized-column")),Ae({id:"Column-headers-with-overflow-actions-button-menu"},"Column headers with overflow actions button menu"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(me,"header-menu-button")),Ae({id:"Column-with-icons"},"Column with icons"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(me,"header-icon-menu-button")),Ae({id:"Cell-with-icons"},"Cell with icons"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(me,"cell-icon")),Te({id:"Inline-Edit"},"Inline Edit"),Ae({id:"Accessibility-2"},"Accessibility"),Le({},"The Advanced Data Table and Inline Edit Data Table are based on the semantics, roles and interaction model of the ARIA Grid. In SLDS we overlay the ",Ce({href:"http://w3c.github.io/aria/practices/aria-practices.html#grid"},"ARIA Grid")," on top of native HTML table semantics."),Le({},"The role of Grid comes with 2 distinct modes, Navigation mode and Actionable mode. Both come with very specific keyboard interaction modals. Navigation mode is the default mode of the Grid."),Le({},"Bold text for edited cell examples provide secondary indicators for text, along with yellow backgrounds, to indicate content is edited but unsaved."),Le({},_e({},"Navigation Mode")),Oe({},ke({},"Tabbing into the grid focuses the first data cell in the table."),ke({},"The second tab key press takes the user focus out of the grid onto the next focusable element on the page."),ke({},"Once the user has tabbed out of the grid, tabbing back into the grid will return focus to the last cell the user was focused on."),ke({},"Navigation in the grid is accomplished via the arrow keys."),ke({},"No actionable items in cell contents are focusable."),ke({},"Pressing the Enter key on a chosen grid cell, places the entire Grid into Actionable mode.")),Le({},_e({},"Actionable Mode")),Oe({},ke({},"Once in Actionable mode, all focusable items in the entire grid can be tabbed to."),ke({},"Arrow navigation still takes the user cell to cell in any direction, but focuses on the first actionable item in the cell, if there is one."),ke({},"Pressing the Escape key exits Actionable mode, placing the user back into Navigation mode, keeping the users cursor on the same cell they were focused in."),ke({},"When interacting with a component in a cell, such as a Menu, that also uses the Escape key as an exit action, pressing Escape will take the user back to the triggering element in the current cell. A subsequent press of Escape will return the user to Navigation mode.")),Le({},"For the purposes of these docs, the Default state of Inline Edit is representative of Navigation mode, all other states are assumed to be in Actionable Mode."),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(we)),Ae({id:"Keyboard-navigation"},"Keyboard navigation"),Re({id:"1st-cell-highlighted-(checkbox)"},"1st cell highlighted (checkbox)"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"checkbox")),Re({id:"2nd-cell-highlighted"},"2nd cell highlighted"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"with-link")),Re({id:"3rd-cell-highlighted"},"3rd cell highlighted"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"focused")),Ae({id:"Cell-Edit"},"Cell Edit"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"edit")),Re({id:"Required-form-element"},"Required form element"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"required")),Re({id:"Required-form-element-with-error"},"Required form element with error"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"error")),Re({id:"Edited-cell-(unsaved)"},"Edited cell (unsaved)"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"edited")),Re({id:"Edited-cell-with-row-selected-(unsaved)"},"Edited cell with row selected (unsaved)"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"row-selected-with-edited-cell")),Re({id:"Edited-cell-with-row-level-error-(unsaved)"},"Edited cell with row level error (unsaved)"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"row-error")),Re({id:"Edited-cell-with-focused-row-level-error-(unsaved)"},"Edited cell with focused row level error (unsaved)"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"row-error-focused")),Re({id:"Edited-cell-with-row-selected-and-row-level-error-(unsaved)"},"Edited cell with row selected and row level error (unsaved)"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"row-error-and-selected")),Ae({id:"Header-navigation"},"Header navigation"),Re({id:"Header-cell-focused"},"Header cell focused"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"header-cell-focused")),Re({id:"Header-cell-marked"},"Header cell marked"),(0,a.createElement)(r.A,{demoStyles:"overflow: hidden;"},(0,s.NO)(Ne,"header-cell-marked")),Ae({id:"Cell-Content"},"Cell Content"),Le({},"As a default method, wrap any table cell content in a ",Se({},"<div>"),"."),Re({id:"Truncated"},"Truncated"),Le({},"Add the ",Se({},"slds-truncate")," class to truncate any content that might overflow the tables cell area."),(0,a.createElement)(r.A,{demoStyles:(0,s.GP)(V,"cell-content-truncated")},(0,s.NO)(V,"cell-content-truncated")),Re({id:"Wrapped"},"Wrapped"),Le({},"In those cases where long cell content is anticipated, use the ",Se({},"slds-cell-wrap")," class on the cell ",Se({},"<td>")," to have the text wrap within the cell’s width."),Le({},"Also, use the ",Se({},"slds-line-clamp")," class on the content-wrapping ",Se({},"<div>")," to clamp, or truncate, the cell content after a certain amount of lines. Other ",Ce({href:"/utilities/line-clamp"},"line clamping classes")," can be used in place for various line clamping limits. The clamping limit can also be changed by reassigning a value to the ",Se({},"line-clamp")," token."),(0,a.createElement)(r.A,{demoStyles:(0,s.GP)(V,"cell-content-wrapped")},(0,s.NO)(V,"cell-content-wrapped")))},Be=function(){return(0,i.Qr)(Ie())}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var l=n[e]={id:e,exports:{}};return a[e](l,l.exports,i),l.exports}i.m=a,i.amdO={},e=[],i.O=function(t,l,a,n){if(!l){var r=1/0;for(d=0;d<e.length;d++){l=e[d][0],a=e[d][1],n=e[d][2];for(var o=!0,s=0;s<l.length;s++)(!1&n||r>=n)&&Object.keys(i.O).every(function(e){return i.O[e](l[s])})?l.splice(s--,1):(o=!1,n<r&&(r=n));if(o){e.splice(d--,1);var c=a();void 0!==c&&(t=c)}}return t}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[l,a,n]},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},l=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(e,a){if(1&a&&(e=this(e)),8&a)return e;if("object"==typeof e&&e){if(4&a&&e.__esModule)return e;if(16&a&&"function"==typeof e.then)return e}var n=Object.create(null);i.r(n);var r={};t=t||[null,l({}),l([]),l(l)];for(var o=2&a&&e;("object"==typeof o||"function"==typeof o)&&!~t.indexOf(o);o=l(o))Object.getOwnPropertyNames(o).forEach(function(t){r[t]=function(){return e[t]}});return r.default=function(){return e},i.d(n,r),n},i.d=function(e,t){for(var l in t)i.o(t,l)&&!i.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},i.e=function(){return Promise.resolve()},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=4043,function(){var e={4043:0};i.O.j=function(t){return 0===e[t]};var t=function(t,l){var a,n,r=l[0],o=l[1],s=l[2],c=0;if(r.some(function(t){return 0!==e[t]})){for(a in o)i.o(o,a)&&(i.m[a]=o[a]);if(s)var d=s(i)}for(t&&t(l);c<r.length;c++)n=r[c],i.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return i.O(d)},l=self.webpackJsonpSLDS___internal_chunked_docs=self.webpackJsonpSLDS___internal_chunked_docs||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))}(),i.nc=void 0;var r=i.O(void 0,[3540],function(){return i(7247)});r=i.O(r),(SLDS=void 0===SLDS?{}:SLDS)["__internal/chunked/docs/./ui/components/data-tables/docs.mdx.js"]=r}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var SLDS;!function(){"use strict";var e,t,a,l={1594:function(e){e.exports=React},1668:function(e,t,a){a.r(t),a.d(t,{getContents:function(){return X},getElement:function(){return W}});var l=a(1594),i=a.n(l),n=a(5671),s=a(6547),r=a(5619),d=a(9741),o=a(7412),c=a.n(o),m=a(942),u=a.n(m),p=a(806),h=a(5159),f=a(6185),b=a(3964),g=a(538),E=a(6955),y=a(188),w=a(2711),v=a(5526),k="Format: ".concat("12/31/2024"),x=function(e){return i().createElement("div",{"aria-hidden":"false","aria-label":"Date picker: June",className:u()("slds-datepicker",e.className),role:"dialog"},e.children,i().createElement("button",{className:"slds-button slds-align_absolute-center slds-text-link"},"Today"))},S=function(e){return i().createElement("div",{className:"slds-datepicker__filter slds-grid"},i().createElement("div",{className:"slds-datepicker__filter_month slds-grid slds-grid_align-spread slds-grow"},i().createElement("div",{className:"slds-align-middle"},i().createElement(E.A,{assistiveText:"Previous Month",className:"slds-button_icon-container",symbol:"left",title:"Previous Month"})),i().createElement("h2",{"aria-atomic":"false","aria-live":"polite",className:"slds-align-middle",id:"".concat(e.idPrefix,"-month")},"June"),i().createElement("div",{className:"slds-align-middle"},i().createElement(E.A,{assistiveText:"Next Month",className:"slds-button_icon-container",symbol:"right",title:"Next Month"}))),i().createElement("div",{className:"slds-shrink-none"},i().createElement("label",{className:"slds-assistive-text",htmlFor:"".concat(e.idPrefix,"_select")},"Pick a Year"),i().createElement(y.l6,{id:"".concat(e.idPrefix,"_select")},i().createElement("option",null,"2021"),i().createElement("option",null,"2022"),i().createElement("option",null,"2023"))))},_=function(e){return i().createElement("tr",{id:"".concat(e.idPrefix,"-weekdays")},i().createElement("th",{id:"".concat(e.idPrefix,"-Sunday"),scope:"col"},i().createElement("abbr",{title:"Sunday"},"Sun")),i().createElement("th",{id:"".concat(e.idPrefix,"-Monday"),scope:"col"},i().createElement("abbr",{title:"Monday"},"Mon")),i().createElement("th",{id:"".concat(e.idPrefix,"-Tuesday"),scope:"col"},i().createElement("abbr",{title:"Tuesday"},"Tue")),i().createElement("th",{id:"".concat(e.idPrefix,"-Wednesday"),scope:"col"},i().createElement("abbr",{title:"Wednesday"},"Wed")),i().createElement("th",{id:"".concat(e.idPrefix,"-Thursday"),scope:"col"},i().createElement("abbr",{title:"Thursday"},"Thu")),i().createElement("th",{id:"".concat(e.idPrefix,"-Friday"),scope:"col"},i().createElement("abbr",{title:"Friday"},"Fri")),i().createElement("th",{id:"".concat(e.idPrefix,"-Saturday"),scope:"col"},i().createElement("abbr",{title:"Saturday"},"Sat")))},R=function(e){return i().createElement("tr",e,e.children)},O=function(e){return i().createElement("td",{"aria-disabled":e["aria-disabled"],"aria-selected":e["aria-selected"],"aria-current":e["aria-current"],className:u()(e.className,{"slds-day_adjacent-month":e.isAdjacentMonth}),role:"gridcell",tabIndex:e.tabIndex,"aria-label":e["aria-label"]},i().createElement("span",{className:"slds-day"},e.children))},D=function(e){return i().createElement(x,{className:"slds-dropdown slds-dropdown_left"},i().createElement(S,{idPrefix:e.idPrefix}),i().createElement("table",{"aria-multiselectable":"true",className:"slds-datepicker__month",role:"grid"},i().createElement("thead",null,i().createElement(_,{idPrefix:e.idPrefix})),i().createElement("tbody",null,i().createElement(R,null,i().createElement(O,{"aria-selected":"false",isAdjacentMonth:!0,"aria-label":"31 May 2020"},"31"),i().createElement(O,{"aria-selected":"false",tabIndex:"0","aria-label":"1 June 2020"},"1"),i().createElement(O,{"aria-selected":"false","aria-label":"2 June 2020"},"2"),i().createElement(O,{"aria-selected":"false","aria-label":"3 June 2020"},"3"),i().createElement(O,{"aria-selected":"false","aria-label":"4 June 2020"},"4"),i().createElement(O,{"aria-selected":"false","aria-label":"5 June 2020"},"5"),i().createElement(O,{"aria-selected":"false","aria-label":"6 June 2020"},"6")),i().createElement(R,null,i().createElement(O,{"aria-selected":"false","aria-label":"7 June 2020"},"7"),i().createElement(O,{"aria-selected":"false","aria-label":"8 June 2020"},"8"),i().createElement(O,{"aria-selected":"false","aria-label":"9 June 2020"},"9"),i().createElement(O,{"aria-selected":"false","aria-label":"10 June 2020"},"10"),i().createElement(O,{"aria-selected":"false","aria-label":"11 June 2020"},"11"),i().createElement(O,{"aria-selected":"false","aria-label":"12 June 2020"},"12"),i().createElement(O,{"aria-selected":"false","aria-label":"13 June 2020"},"13")),i().createElement(R,null,i().createElement(O,{"aria-selected":"false","aria-label":"14 June 2020"},"14"),i().createElement(O,{"aria-selected":"false","aria-label":"15 June 2020"},"15"),i().createElement(O,{"aria-selected":"false","aria-label":"16 June 2020"},"16"),i().createElement(O,{"aria-selected":"false","aria-label":"17 June 2020"},"17"),i().createElement(O,{"aria-selected":"false","aria-current":e.todayActive?"date":null,className:e.todayActive?"slds-is-today":null,"aria-label":"18 June 2020"},"18"),i().createElement(O,{"aria-selected":"false","aria-label":"19 June 2020"},"19"),i().createElement(O,{"aria-selected":"false","aria-label":"20 June 2020"},"20")),i().createElement(R,{className:u()({"slds-has-multi-selection":"week-4"===e.dateRange,"slds-has-multi-row-selection":e.dateRangeMulti})},i().createElement(O,{"aria-selected":"false","aria-label":"21 June 2020"},"21"),i().createElement(O,{"aria-selected":"false","aria-label":"22 June 2020"},"22"),i().createElement(O,{"aria-selected":"false","aria-label":"23 June 2020"},"23"),i().createElement(O,{"aria-selected":!e.dateSelected||"week-4"!==e.dateRange&&"week-4-5"!==e.dateRange?"false":"true",className:u()({"slds-is-selected":"single"===e.dateSelected&&("week-4"===e.dateRange||"week-4-5"===e.dateRange),"slds-is-selected slds-is-selected-multi":"single"!==e.dateSelected&&("week-4"===e.dateRange||"week-4-5"===e.dateRange)}),"aria-label":"24 June 2020"},"24"),i().createElement(O,{"aria-selected":"single"===e.dateSelected||"week-4"!==e.dateRange&&"week-4-5"!==e.dateRange?"false":"true",className:u()({"slds-is-selected slds-is-selected-multi":"single"!==e.dateSelected&&("week-4"===e.dateRange||"week-4-5"===e.dateRange),"slds-is-today":e.todayActiveInRange}),"aria-label":"25 June 2020","aria-current":e.todayActiveInRange?"date":null},"25"),i().createElement(O,{"aria-selected":"single"===e.dateSelected||"week-4"!==e.dateRange&&"week-4-5"!==e.dateRange?"false":"true",className:"single"===e.dateSelected||"week-4"!==e.dateRange&&"week-4-5"!==e.dateRange?null:"slds-is-selected slds-is-selected-multi","aria-label":"26 June 2020"},"26"),i().createElement(O,{"aria-selected":"single"===e.dateSelected||"week-4"!==e.dateRange&&"week-4-5"!==e.dateRange?"false":"true",className:"single"===e.dateSelected||"week-4"!==e.dateRange&&"week-4-5"!==e.dateRange?null:"slds-is-selected slds-is-selected-multi","aria-label":"27 June 2020"},"27")),i().createElement(R,{className:u()({"slds-has-multi-selection":"week-5"===e.dateRange,"slds-has-multi-row-selection":e.dateRangeMulti})},i().createElement(O,{"aria-selected":!e.dateSelected||"week-5"!==e.dateRange&&"week-4-5"!==e.dateRange?"false":"true",className:u()({"slds-is-selected":"single"===e.dateSelected&&"week-5"===e.dateRange,"slds-is-selected slds-is-selected-multi":"single"!==e.dateSelected&&("week-5"===e.dateRange||"week-4-5"===e.dateRange)}),"aria-label":"28 June 2020"},"28"),i().createElement(O,{"aria-selected":"single"===e.dateSelected||"week-5"!==e.dateRange&&"week-4-5"!==e.dateRange?"false":"true",className:"single"===e.dateSelected||"week-5"!==e.dateRange&&"week-4-5"!==e.dateRange?null:"slds-is-selected slds-is-selected-multi","aria-label":"29 June 2020"},"29"),i().createElement(O,{"aria-selected":"single"===e.dateSelected||"week-5"!==e.dateRange&&"week-4-5"!==e.dateRange?"false":"true",className:"single"===e.dateSelected||"week-5"!==e.dateRange&&"week-4-5"!==e.dateRange?null:"slds-is-selected slds-is-selected-multi","aria-label":"30 June 2020"},"30"),i().createElement(O,{"aria-selected":"single"!==e.dateSelected&&"week-5"===e.dateRange?"true":"false",className:u()("single"!==e.dateSelected&&"week-5"===e.dateRange?"slds-is-selected slds-is-selected-multi":null),isAdjacentMonth:!0,"aria-label":"1 July 2020"},"1"),i().createElement(O,{"aria-selected":"single"!==e.dateSelected&&"week-5"===e.dateRange?"true":"false",className:u()("single"!==e.dateSelected&&"week-5"===e.dateRange?"slds-is-selected slds-is-selected-multi":null),isAdjacentMonth:!0,"aria-label":"2 July 2020"},"2"),i().createElement(O,{"aria-selected":"single"!==e.dateSelected&&"week-5"===e.dateRange?"true":"false",className:u()("single"!==e.dateSelected&&"week-5"===e.dateRange?"slds-is-selected slds-is-selected-multi":null),isAdjacentMonth:!0,"aria-label":"3 July 2020"},"3"),i().createElement(O,{"aria-selected":"single"!==e.dateSelected&&"week-5"===e.dateRange?"true":"false",className:u()("single"!==e.dateSelected&&"week-5"===e.dateRange?"slds-is-selected slds-is-selected-multi":null),isAdjacentMonth:!0,"aria-label":"4 July 2020"},"4")))))};function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var l,i,n,s,r=[],d=!0,o=!1;try{if(n=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;d=!1}else for(;!(d=(l=n.call(a)).done)&&(r.push(l.value),r.length!==t);d=!0);}catch(e){o=!0,i=e}finally{try{if(!d&&null!=a.return&&(s=a.return(),Object(s)!==s))return}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?A(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,l=Array(t);a<t;a++)l[a]=e[a];return l}var T=function(e){var t=e.dateFormat,a=e.dropdown,n=e.dropdownIsOpen,s=e.hasFocus,r=e.hasError,d=e.isOpen,o=e.isRequired,c=e.isDisabled,m=e.listboxData,b=e.dateDefaultValue,y=e.showRequiredIndicator,k=e.hasTooltip,x=e.showTooltip,S=e.fieldLevelDateMessage,_=e.fieldLevelTimeMessage,R=e.showDateFormat,O=(0,l.useRef)(),D=N((0,l.useState)(""),2),A=D[0],T=D[1],J=N((0,l.useState)(""),2),I=J[0],M=J[1],q=N((0,l.useState)(p.Ay.uniqueId("example-unique-id-")),1)[0],P=N((0,l.useState)(p.Ay.uniqueId("example-unique-id-")),1)[0],j=N((0,l.useState)(p.Ay.uniqueId("example-unique-id-")),1)[0];(0,l.useEffect)(function(){O.current&&("id"in O.current&&O.current.id&&T(O.current.id),"ariaChecked"in O.current&&O.current.ariaChecked&&M(O.current.textContent))},[]);var F={"slds-is-open":n};return i().createElement("div",{className:"slds-form"},i().createElement("fieldset",{className:u()("slds-form-element slds-form-element_compound",{"slds-has-error":r,"slds-datetimepicker_has-tooltip":x})},i().createElement("legend",{className:"slds-form-element__label slds-form-element__legend"},o&&i().createElement("abbr",{className:"slds-required",title:"required","aria-hidden":"true"},"*"," "),"Date and Time"),i().createElement("div",{className:"slds-form-element__control"},i().createElement("div",{className:"slds-form-element__group"},i().createElement("div",{className:"slds-form-element__row"},i().createElement(w.ZS,{formElementClassName:u()("slds-dropdown-trigger slds-dropdown-trigger_click",F),labelContent:"Date",inputId:q,hasRightIcon:!0,dropdown:a,hasError:r,isRequired:o,showRequiredIndicator:y,hasTooltip:!(!k||!S)&&k,showTooltip:!(!x||!S)&&x,fieldLevelMessage:S,inlineMessage:!r&&t,hasHiddenInlineMessage:!R},i().createElement(v.A,{id:q,placeholder:"Select a date…",defaultValue:b,"aria-describedby":r&&q+"-error",required:o,disabled:c}),i().createElement(E.A,{className:"slds-input__icon slds-input__icon_right",symbol:"event",assistiveText:"Select a date",title:"Select a date",disabled:c})),i().createElement(h.Ay,{id:P,"aria-controls":j,"aria-activedescendant":A,autocomplete:!0,label:"Time",placeholder:"Select a time…",inputIconPosition:"right",hasError:r,isDisabled:c,hasTooltip:k&&_?k:null,showTooltip:x&&_?x:null,fieldLevelMessage:_,isOpen:d,rightInputIcon:i().createElement(g.eX,{symbol:"clock",className:u()("slds-icon slds-icon_x-small slds-icon-text-default",{"slds-icon-text-error":r,"slds-is-disabled":c}),containerClassName:"slds-input__icon slds-input__icon_right",assistiveText:!1,title:!1}),results:i().createElement(f.Ay,{className:"slds-dropdown_fluid slds-dropdown_left",id:j,snapshot:m,type:"plain",count:6,focusedRef:O}),resultsType:"listbox",hasInteractions:!0,hasFocus:s,value:I})))),r&&i().createElement("div",{className:"slds-form-element__help",id:q+"-error"},"Complete this field.")))};T.propTypes={dropdown:c().node,dropdownIsOpen:c().bool,hasFocus:c().bool,isOpen:c().bool,isRequired:c().bool,hasError:c().bool,listboxIsOpen:c().bool,listboxData:c().object.isRequired,dateDefaultValue:c().string,showRequiredIndicator:c().bool,isDisabled:c().bool,format:c().string},T.defaultProps={dropdown:i().createElement(D,{todayActive:!0}),dropdownIsOpen:!0,showRequiredIndicator:!1,isDisabled:!1};var J=i().createElement(T,{dateFormat:k,listboxData:b.eE}),I=(b.eE,[{id:"date-example-text-visible",label:"Date and Time - date example text visible",demoStyles:"height: 6rem;",element:i().createElement(T,{dropdown:null,listboxData:b.eE,dateFormat:k,showDateFormat:!0})},{id:"date-selection",label:"Date selected",element:i().createElement(T,{dropdown:i().createElement(D,{todayActive:!0,dateSelected:"single",dateRange:"week-4"}),dateDefaultValue:"06/24/2021",listboxData:b.eE,dateFormat:k})},{id:"time-selection",label:"Time selected",demoStyles:"height: 20rem;",storybookStyles:!0,element:i().createElement(T,{dropdown:i().createElement(D,{todayActive:!0,dateSelected:"single",dateRange:"week-4",value:"8:00am"}),dropdownIsOpen:!1,dateDefaultValue:"06/24/2021",isOpen:!0,hasFocus:!0,listboxData:b.F_,dateFormat:k})},{id:"required",label:"Date and Time - required",demoStyles:"height: 20rem;",element:i().createElement(T,{dropdownIsOpen:!1,isRequired:!0,listboxData:b.eE,dateFormat:k})},{id:"error",label:"Date and Time - error",demoStyles:"height: 20rem;",element:i().createElement(T,{dropdownIsOpen:!1,hasError:!0,listboxData:b.eE})},{id:"required-error",label:"Date and Time - required and has error",demoStyles:"height: 20rem;",element:i().createElement(T,{dropdownIsOpen:!1,isRequired:!0,hasError:!0,listboxData:b.eE})},{id:"datetimepicker-with-tooltip-for-datepicker",label:"Datetime Picker With Tooptip for datepicker",demoStyles:"height: 20rem;",element:i().createElement(T,{dropdownIsOpen:!0,listboxData:b.eE,isRequired:!0,dateDefaultValue:"Jan 1 2023",hasTooltip:!0,showTooltip:!0,fieldLevelDateMessage:"Format: mmm d yyyy | ex: Jan 1 2023",dateFormat:k})},{id:"datetimepicker-with-tooltip-for-timepicker",label:"Datetime Picker With Tooptip for timepicker",demoStyles:"height: 20rem;",element:i().createElement(T,{dropdown:i().createElement(D,{todayActive:!0,dateSelected:"single",dateRange:"week-4",value:"8:00 am"}),dropdownIsOpen:!1,dateDefaultValue:"Jan 1 2023",isOpen:!0,hasFocus:!0,hasTooltip:!0,showTooltip:!0,listboxData:b.F_,fieldLevelTimeMessage:"Format: hh:mm a | ex: 12:00 AM",dateFormat:k})},{id:"disabled",label:"Date and Time - disabled",demoStyles:"height: 10rem;",storybookStyles:!0,element:i().createElement(T,{dropdownIsOpen:!1,listboxData:b.eE,isDisabled:!0,dateFormat:k})},{id:"mobile",label:"Mobile",element:i().createElement(w.ZS,{labelContent:"Date",inputId:"date-input-id-mobile"},i().createElement(v.A,{id:"date-input-id-mobile",type:"datetime-local"}))}]),M=n.XB.a,q=n.XB.code,P=n.XB.h2,j=n.XB.h3,F=n.XB.h4,L=n.XB.li,B=n.XB.p,C=n.XB.strong,V=n.XB.ul,W=function(){return(0,l.createElement)(n.Ay,{},(0,l.createElement)("div",{className:"doc lead"},"A datetime picker is used to select a day and a time."),(0,l.createElement)(s.A,{exampleOnly:!0,demoStyles:"height: 28rem;"},(0,p.NO)(J)),P({id:"About-datetime-picker"},"About datetime picker"),j({id:"Implementation"},"Implementation"),B({},"The datetime is two ",M({href:"/components/form-element"},"form elements"),", each containing a label and text ",M({href:"/components/input"},"input"),", and a dropdown ",M({href:"/components/menus"},"menu"),", containing a grid-based calendar and filters. The date form element acts as a trigger for the dropdown."),(0,l.createElement)(r.A,{type:"warning"},(0,l.createElement)("p",null,"Placement of inline form elements inside a data table cell is not supported. Instead, use a button to invoke a popover, which does support form elements.")),B({},"The datetime picker has the following markup requirements:"),B({},C({},"All")),V({},L({},"Follow all accessibility requirements mentioned in the ",M({href:"/components/datepickers"},"Datepicker")," and ",M({href:"/components/timepicker"},"Timepicker")," blueprints.")),B({},C({},"Desktop")),V({},L({},"Add ",q({},".slds-is-open")," to the element with ",q({},".slds-dropdown-trigger")," to invoke the dropdown that contains the datepicker and the list of time options."),L({},"On the timepicker, the ",q({},".slds-has-focus")," modifier class is required on the ",q({},".slds-listbox__option")," element that has focus."),L({},"On the timepicker, the ",q({},".slds-is-selected")," modifier class is required on the ",q({},".slds-listbox__option")," element that has been selected."),L({},"On the datepicker, the ",q({},".slds-is-selected")," modifier class is required on the ",q({},"td")," element that has the selected day."),L({},"On the datepicker, the ",q({},".slds-is-today")," modifier class is required on the ",q({},"td")," element that is the current day.")),B({},C({},"Mobile")),V({},L({},"When on mobile, we want to leverage the native datetime picker by changing the ",q({},"input")," type from ",q({},"text")," to ",q({},"datetime-local")),L({},"The ",q({},'input type="datetime-local"')," will create an input field allowing a date and time to be easily entered — this includes year, month, day, hours, and minutes."),L({},"When switching ",q({},'input type="text"')," to ",q({},'input type="datetime-local"')," for mobile, we need to remove the ARIA attributes. The native rendering doesn't require these.",V({},L({},"On the element with the class ",q({},"slds-combobox"),", please remove ",q({},'role="combobox"'),", ",q({},"aria-expanded"),", and ",q({},"aria-haspopup"),"."),L({},"On the ",q({},"input")," that we just added ",q({},'type="datetime-local"')," to, please remove ",q({},"aria-controls"),", ",q({},"aria-autocomplete"),", and ",q({},'role="textbox"'),".")))),j({id:"Accessibility"},"Accessibility"),B({},"To display the datetime picker with maximum accessibility, the datetime field should be empty to start. When a user clicks, text input is activated, and the full date or time selector displays."),F({id:"Markup"},"Markup"),B({},C({},"Dialog:")),V({},L({},"A Date Format Visible variation displays a message about the expected date format. When the date field receives focus, a message appears under the field to show the expected date format. When focus is removed from the date field, the message is hidden and available as assistive text."),L({},"All datepicker fields marked as required with an * must have an accompanying legend. Example:\n",(0,l.createElement)(d.A,null))),P({id:"Base"},"Base"),(0,l.createElement)(s.A,{demoStyles:"height: 28rem;"},(0,p.NO)(J)),P({id:"States"},"States"),B({},"Adding ",q({},"slds-datetimepicker_has-tooltip")," to the element with ",q({},"slds-form-element_compound")," aligns the legend properly when there is an info tooltip."),j({id:"Date-selection"},"Date selection"),(0,l.createElement)(s.A,{demoStyles:"height: 28rem;"},(0,p.NO)(I,"date-selection")),j({id:"Time-selection"},"Time selection"),(0,l.createElement)(s.A,{demoStyles:"height: 28rem;"},(0,p.NO)(I,"time-selection")),j({id:"Date-Example-Text-Visible"},"Date Example Text Visible"),(0,l.createElement)(s.A,{demoStyles:"height: 6rem;"},(0,p.NO)(I,"date-example-text-visible")),j({id:"Mobile"},"Mobile"),B({},"Mobile example should be viewed in mobile devices for accurate visual representation. It should be noted that due to native device styling, the width of the input will not expand 100% on iOS devices. Learn more about mobile datetime picker in the ",M({href:"/components/datetime-picker/#Implementation"},"mobile implementation")," section above."),(0,l.createElement)(s.A,{demoStyles:"height: 5rem;"},(0,p.NO)(I,"mobile")))},X=function(){return(0,n.Qr)(W())}},1981:function(e){e.exports=JSBeautify},5206:function(e){e.exports=ReactDOM}},i={};function n(e){var t=i[e];if(void 0!==t)return t.exports;var a=i[e]={id:e,exports:{}};return l[e](a,a.exports,n),a.exports}n.m=l,n.amdO={},e=[],n.O=function(t,a,l,i){if(!a){var s=1/0;for(c=0;c<e.length;c++){a=e[c][0],l=e[c][1],i=e[c][2];for(var r=!0,d=0;d<a.length;d++)(!1&i||s>=i)&&Object.keys(n.O).every(function(e){return n.O[e](a[d])})?a.splice(d--,1):(r=!1,i<s&&(s=i));if(r){e.splice(c--,1);var o=l();void 0!==o&&(t=o)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[a,l,i]},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},a=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},n.t=function(e,l){if(1&l&&(e=this(e)),8&l)return e;if("object"==typeof e&&e){if(4&l&&e.__esModule)return e;if(16&l&&"function"==typeof e.then)return e}var i=Object.create(null);n.r(i);var s={};t=t||[null,a({}),a([]),a(a)];for(var r=2&l&&e;("object"==typeof r||"function"==typeof r)&&!~t.indexOf(r);r=a(r))Object.getOwnPropertyNames(r).forEach(function(t){s[t]=function(){return e[t]}});return s.default=function(){return e},n.d(i,s),i},n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.e=function(){return Promise.resolve()},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.j=7691,function(){var e={7691:0};n.O.j=function(t){return 0===e[t]};var t=function(t,a){var l,i,s=a[0],r=a[1],d=a[2],o=0;if(s.some(function(t){return 0!==e[t]})){for(l in r)n.o(r,l)&&(n.m[l]=r[l]);if(d)var c=d(n)}for(t&&t(a);o<s.length;o++)i=s[o],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(c)},a=self.webpackJsonpSLDS___internal_chunked_docs=self.webpackJsonpSLDS___internal_chunked_docs||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))}(),n.nc=void 0;var s=n.O(void 0,[3540],function(){return n(1668)});s=n.O(s),(SLDS=void 0===SLDS?{}:SLDS)["__internal/chunked/docs/./ui/components/datetime-picker/docs.mdx.js"]=s}();
|
|
1
|
+
var SLDS;!function(){"use strict";var e,t,a,l={1594:function(e){e.exports=React},1668:function(e,t,a){a.r(t),a.d(t,{getContents:function(){return X},getElement:function(){return W}});var l=a(1594),i=a.n(l),n=a(5671),s=a(6547),r=a(5619),d=a(9741),o=a(4187),c=a.n(o),m=a(942),u=a.n(m),p=a(806),h=a(5159),f=a(6185),b=a(3964),g=a(538),E=a(6955),y=a(188),w=a(2711),v=a(5526),k="Format: ".concat("12/31/2024"),x=function(e){return i().createElement("div",{"aria-hidden":"false","aria-label":"Date picker: June",className:u()("slds-datepicker",e.className),role:"dialog"},e.children,i().createElement("button",{className:"slds-button slds-align_absolute-center slds-text-link"},"Today"))},S=function(e){return i().createElement("div",{className:"slds-datepicker__filter slds-grid"},i().createElement("div",{className:"slds-datepicker__filter_month slds-grid slds-grid_align-spread slds-grow"},i().createElement("div",{className:"slds-align-middle"},i().createElement(E.A,{assistiveText:"Previous Month",className:"slds-button_icon-container",symbol:"left",title:"Previous Month"})),i().createElement("h2",{"aria-atomic":"false","aria-live":"polite",className:"slds-align-middle",id:"".concat(e.idPrefix,"-month")},"June"),i().createElement("div",{className:"slds-align-middle"},i().createElement(E.A,{assistiveText:"Next Month",className:"slds-button_icon-container",symbol:"right",title:"Next Month"}))),i().createElement("div",{className:"slds-shrink-none"},i().createElement("label",{className:"slds-assistive-text",htmlFor:"".concat(e.idPrefix,"_select")},"Pick a Year"),i().createElement(y.l6,{id:"".concat(e.idPrefix,"_select")},i().createElement("option",null,"2021"),i().createElement("option",null,"2022"),i().createElement("option",null,"2023"))))},_=function(e){return i().createElement("tr",{id:"".concat(e.idPrefix,"-weekdays")},i().createElement("th",{id:"".concat(e.idPrefix,"-Sunday"),scope:"col"},i().createElement("abbr",{title:"Sunday"},"Sun")),i().createElement("th",{id:"".concat(e.idPrefix,"-Monday"),scope:"col"},i().createElement("abbr",{title:"Monday"},"Mon")),i().createElement("th",{id:"".concat(e.idPrefix,"-Tuesday"),scope:"col"},i().createElement("abbr",{title:"Tuesday"},"Tue")),i().createElement("th",{id:"".concat(e.idPrefix,"-Wednesday"),scope:"col"},i().createElement("abbr",{title:"Wednesday"},"Wed")),i().createElement("th",{id:"".concat(e.idPrefix,"-Thursday"),scope:"col"},i().createElement("abbr",{title:"Thursday"},"Thu")),i().createElement("th",{id:"".concat(e.idPrefix,"-Friday"),scope:"col"},i().createElement("abbr",{title:"Friday"},"Fri")),i().createElement("th",{id:"".concat(e.idPrefix,"-Saturday"),scope:"col"},i().createElement("abbr",{title:"Saturday"},"Sat")))},R=function(e){return i().createElement("tr",e,e.children)},O=function(e){return i().createElement("td",{"aria-disabled":e["aria-disabled"],"aria-selected":e["aria-selected"],"aria-current":e["aria-current"],className:u()(e.className,{"slds-day_adjacent-month":e.isAdjacentMonth}),role:"gridcell",tabIndex:e.tabIndex,"aria-label":e["aria-label"]},i().createElement("span",{className:"slds-day"},e.children))},D=function(e){return i().createElement(x,{className:"slds-dropdown slds-dropdown_left"},i().createElement(S,{idPrefix:e.idPrefix}),i().createElement("table",{"aria-multiselectable":"true",className:"slds-datepicker__month",role:"grid"},i().createElement("thead",null,i().createElement(_,{idPrefix:e.idPrefix})),i().createElement("tbody",null,i().createElement(R,null,i().createElement(O,{"aria-selected":"false",isAdjacentMonth:!0,"aria-label":"31 May 2020"},"31"),i().createElement(O,{"aria-selected":"false",tabIndex:"0","aria-label":"1 June 2020"},"1"),i().createElement(O,{"aria-selected":"false","aria-label":"2 June 2020"},"2"),i().createElement(O,{"aria-selected":"false","aria-label":"3 June 2020"},"3"),i().createElement(O,{"aria-selected":"false","aria-label":"4 June 2020"},"4"),i().createElement(O,{"aria-selected":"false","aria-label":"5 June 2020"},"5"),i().createElement(O,{"aria-selected":"false","aria-label":"6 June 2020"},"6")),i().createElement(R,null,i().createElement(O,{"aria-selected":"false","aria-label":"7 June 2020"},"7"),i().createElement(O,{"aria-selected":"false","aria-label":"8 June 2020"},"8"),i().createElement(O,{"aria-selected":"false","aria-label":"9 June 2020"},"9"),i().createElement(O,{"aria-selected":"false","aria-label":"10 June 2020"},"10"),i().createElement(O,{"aria-selected":"false","aria-label":"11 June 2020"},"11"),i().createElement(O,{"aria-selected":"false","aria-label":"12 June 2020"},"12"),i().createElement(O,{"aria-selected":"false","aria-label":"13 June 2020"},"13")),i().createElement(R,null,i().createElement(O,{"aria-selected":"false","aria-label":"14 June 2020"},"14"),i().createElement(O,{"aria-selected":"false","aria-label":"15 June 2020"},"15"),i().createElement(O,{"aria-selected":"false","aria-label":"16 June 2020"},"16"),i().createElement(O,{"aria-selected":"false","aria-label":"17 June 2020"},"17"),i().createElement(O,{"aria-selected":"false","aria-current":e.todayActive?"date":null,className:e.todayActive?"slds-is-today":null,"aria-label":"18 June 2020"},"18"),i().createElement(O,{"aria-selected":"false","aria-label":"19 June 2020"},"19"),i().createElement(O,{"aria-selected":"false","aria-label":"20 June 2020"},"20")),i().createElement(R,{className:u()({"slds-has-multi-selection":"week-4"===e.dateRange,"slds-has-multi-row-selection":e.dateRangeMulti})},i().createElement(O,{"aria-selected":"false","aria-label":"21 June 2020"},"21"),i().createElement(O,{"aria-selected":"false","aria-label":"22 June 2020"},"22"),i().createElement(O,{"aria-selected":"false","aria-label":"23 June 2020"},"23"),i().createElement(O,{"aria-selected":!e.dateSelected||"week-4"!==e.dateRange&&"week-4-5"!==e.dateRange?"false":"true",className:u()({"slds-is-selected":"single"===e.dateSelected&&("week-4"===e.dateRange||"week-4-5"===e.dateRange),"slds-is-selected slds-is-selected-multi":"single"!==e.dateSelected&&("week-4"===e.dateRange||"week-4-5"===e.dateRange)}),"aria-label":"24 June 2020"},"24"),i().createElement(O,{"aria-selected":"single"===e.dateSelected||"week-4"!==e.dateRange&&"week-4-5"!==e.dateRange?"false":"true",className:u()({"slds-is-selected slds-is-selected-multi":"single"!==e.dateSelected&&("week-4"===e.dateRange||"week-4-5"===e.dateRange),"slds-is-today":e.todayActiveInRange}),"aria-label":"25 June 2020","aria-current":e.todayActiveInRange?"date":null},"25"),i().createElement(O,{"aria-selected":"single"===e.dateSelected||"week-4"!==e.dateRange&&"week-4-5"!==e.dateRange?"false":"true",className:"single"===e.dateSelected||"week-4"!==e.dateRange&&"week-4-5"!==e.dateRange?null:"slds-is-selected slds-is-selected-multi","aria-label":"26 June 2020"},"26"),i().createElement(O,{"aria-selected":"single"===e.dateSelected||"week-4"!==e.dateRange&&"week-4-5"!==e.dateRange?"false":"true",className:"single"===e.dateSelected||"week-4"!==e.dateRange&&"week-4-5"!==e.dateRange?null:"slds-is-selected slds-is-selected-multi","aria-label":"27 June 2020"},"27")),i().createElement(R,{className:u()({"slds-has-multi-selection":"week-5"===e.dateRange,"slds-has-multi-row-selection":e.dateRangeMulti})},i().createElement(O,{"aria-selected":!e.dateSelected||"week-5"!==e.dateRange&&"week-4-5"!==e.dateRange?"false":"true",className:u()({"slds-is-selected":"single"===e.dateSelected&&"week-5"===e.dateRange,"slds-is-selected slds-is-selected-multi":"single"!==e.dateSelected&&("week-5"===e.dateRange||"week-4-5"===e.dateRange)}),"aria-label":"28 June 2020"},"28"),i().createElement(O,{"aria-selected":"single"===e.dateSelected||"week-5"!==e.dateRange&&"week-4-5"!==e.dateRange?"false":"true",className:"single"===e.dateSelected||"week-5"!==e.dateRange&&"week-4-5"!==e.dateRange?null:"slds-is-selected slds-is-selected-multi","aria-label":"29 June 2020"},"29"),i().createElement(O,{"aria-selected":"single"===e.dateSelected||"week-5"!==e.dateRange&&"week-4-5"!==e.dateRange?"false":"true",className:"single"===e.dateSelected||"week-5"!==e.dateRange&&"week-4-5"!==e.dateRange?null:"slds-is-selected slds-is-selected-multi","aria-label":"30 June 2020"},"30"),i().createElement(O,{"aria-selected":"single"!==e.dateSelected&&"week-5"===e.dateRange?"true":"false",className:u()("single"!==e.dateSelected&&"week-5"===e.dateRange?"slds-is-selected slds-is-selected-multi":null),isAdjacentMonth:!0,"aria-label":"1 July 2020"},"1"),i().createElement(O,{"aria-selected":"single"!==e.dateSelected&&"week-5"===e.dateRange?"true":"false",className:u()("single"!==e.dateSelected&&"week-5"===e.dateRange?"slds-is-selected slds-is-selected-multi":null),isAdjacentMonth:!0,"aria-label":"2 July 2020"},"2"),i().createElement(O,{"aria-selected":"single"!==e.dateSelected&&"week-5"===e.dateRange?"true":"false",className:u()("single"!==e.dateSelected&&"week-5"===e.dateRange?"slds-is-selected slds-is-selected-multi":null),isAdjacentMonth:!0,"aria-label":"3 July 2020"},"3"),i().createElement(O,{"aria-selected":"single"!==e.dateSelected&&"week-5"===e.dateRange?"true":"false",className:u()("single"!==e.dateSelected&&"week-5"===e.dateRange?"slds-is-selected slds-is-selected-multi":null),isAdjacentMonth:!0,"aria-label":"4 July 2020"},"4")))))};function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var l,i,n,s,r=[],d=!0,o=!1;try{if(n=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;d=!1}else for(;!(d=(l=n.call(a)).done)&&(r.push(l.value),r.length!==t);d=!0);}catch(e){o=!0,i=e}finally{try{if(!d&&null!=a.return&&(s=a.return(),Object(s)!==s))return}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?A(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,l=Array(t);a<t;a++)l[a]=e[a];return l}var T=function(e){var t=e.dateFormat,a=e.dropdown,n=e.dropdownIsOpen,s=e.hasFocus,r=e.hasError,d=e.isOpen,o=e.isRequired,c=e.isDisabled,m=e.listboxData,b=e.dateDefaultValue,y=e.showRequiredIndicator,k=e.hasTooltip,x=e.showTooltip,S=e.fieldLevelDateMessage,_=e.fieldLevelTimeMessage,R=e.showDateFormat,O=(0,l.useRef)(),D=N((0,l.useState)(""),2),A=D[0],T=D[1],J=N((0,l.useState)(""),2),I=J[0],M=J[1],q=N((0,l.useState)(p.Ay.uniqueId("example-unique-id-")),1)[0],P=N((0,l.useState)(p.Ay.uniqueId("example-unique-id-")),1)[0],j=N((0,l.useState)(p.Ay.uniqueId("example-unique-id-")),1)[0];(0,l.useEffect)(function(){O.current&&("id"in O.current&&O.current.id&&T(O.current.id),"ariaChecked"in O.current&&O.current.ariaChecked&&M(O.current.textContent))},[]);var F={"slds-is-open":n};return i().createElement("div",{className:"slds-form"},i().createElement("fieldset",{className:u()("slds-form-element slds-form-element_compound",{"slds-has-error":r,"slds-datetimepicker_has-tooltip":x})},i().createElement("legend",{className:"slds-form-element__label slds-form-element__legend"},o&&i().createElement("abbr",{className:"slds-required",title:"required","aria-hidden":"true"},"*"," "),"Date and Time"),i().createElement("div",{className:"slds-form-element__control"},i().createElement("div",{className:"slds-form-element__group"},i().createElement("div",{className:"slds-form-element__row"},i().createElement(w.ZS,{formElementClassName:u()("slds-dropdown-trigger slds-dropdown-trigger_click",F),labelContent:"Date",inputId:q,hasRightIcon:!0,dropdown:a,hasError:r,isRequired:o,showRequiredIndicator:y,hasTooltip:!(!k||!S)&&k,showTooltip:!(!x||!S)&&x,fieldLevelMessage:S,inlineMessage:!r&&t,hasHiddenInlineMessage:!R},i().createElement(v.A,{id:q,placeholder:"Select a date…",defaultValue:b,"aria-describedby":r&&q+"-error",required:o,disabled:c}),i().createElement(E.A,{className:"slds-input__icon slds-input__icon_right",symbol:"event",assistiveText:"Select a date",title:"Select a date",disabled:c})),i().createElement(h.Ay,{id:P,"aria-controls":j,"aria-activedescendant":A,autocomplete:!0,label:"Time",placeholder:"Select a time…",inputIconPosition:"right",hasError:r,isDisabled:c,hasTooltip:k&&_?k:null,showTooltip:x&&_?x:null,fieldLevelMessage:_,isOpen:d,rightInputIcon:i().createElement(g.eX,{symbol:"clock",className:u()("slds-icon slds-icon_x-small slds-icon-text-default",{"slds-icon-text-error":r,"slds-is-disabled":c}),containerClassName:"slds-input__icon slds-input__icon_right",assistiveText:!1,title:!1}),results:i().createElement(f.Ay,{className:"slds-dropdown_fluid slds-dropdown_left",id:j,snapshot:m,type:"plain",count:6,focusedRef:O}),resultsType:"listbox",hasInteractions:!0,hasFocus:s,value:I})))),r&&i().createElement("div",{className:"slds-form-element__help",id:q+"-error"},"Complete this field.")))};T.propTypes={dropdown:c().node,dropdownIsOpen:c().bool,hasFocus:c().bool,isOpen:c().bool,isRequired:c().bool,hasError:c().bool,listboxIsOpen:c().bool,listboxData:c().object.isRequired,dateDefaultValue:c().string,showRequiredIndicator:c().bool,isDisabled:c().bool,format:c().string},T.defaultProps={dropdown:i().createElement(D,{todayActive:!0}),dropdownIsOpen:!0,showRequiredIndicator:!1,isDisabled:!1};var J=i().createElement(T,{dateFormat:k,listboxData:b.eE}),I=(b.eE,[{id:"date-example-text-visible",label:"Date and Time - date example text visible",demoStyles:"height: 6rem;",element:i().createElement(T,{dropdown:null,listboxData:b.eE,dateFormat:k,showDateFormat:!0})},{id:"date-selection",label:"Date selected",element:i().createElement(T,{dropdown:i().createElement(D,{todayActive:!0,dateSelected:"single",dateRange:"week-4"}),dateDefaultValue:"06/24/2021",listboxData:b.eE,dateFormat:k})},{id:"time-selection",label:"Time selected",demoStyles:"height: 20rem;",storybookStyles:!0,element:i().createElement(T,{dropdown:i().createElement(D,{todayActive:!0,dateSelected:"single",dateRange:"week-4",value:"8:00am"}),dropdownIsOpen:!1,dateDefaultValue:"06/24/2021",isOpen:!0,hasFocus:!0,listboxData:b.F_,dateFormat:k})},{id:"required",label:"Date and Time - required",demoStyles:"height: 20rem;",element:i().createElement(T,{dropdownIsOpen:!1,isRequired:!0,listboxData:b.eE,dateFormat:k})},{id:"error",label:"Date and Time - error",demoStyles:"height: 20rem;",element:i().createElement(T,{dropdownIsOpen:!1,hasError:!0,listboxData:b.eE})},{id:"required-error",label:"Date and Time - required and has error",demoStyles:"height: 20rem;",element:i().createElement(T,{dropdownIsOpen:!1,isRequired:!0,hasError:!0,listboxData:b.eE})},{id:"datetimepicker-with-tooltip-for-datepicker",label:"Datetime Picker With Tooptip for datepicker",demoStyles:"height: 20rem;",element:i().createElement(T,{dropdownIsOpen:!0,listboxData:b.eE,isRequired:!0,dateDefaultValue:"Jan 1 2023",hasTooltip:!0,showTooltip:!0,fieldLevelDateMessage:"Format: mmm d yyyy | ex: Jan 1 2023",dateFormat:k})},{id:"datetimepicker-with-tooltip-for-timepicker",label:"Datetime Picker With Tooptip for timepicker",demoStyles:"height: 20rem;",element:i().createElement(T,{dropdown:i().createElement(D,{todayActive:!0,dateSelected:"single",dateRange:"week-4",value:"8:00 am"}),dropdownIsOpen:!1,dateDefaultValue:"Jan 1 2023",isOpen:!0,hasFocus:!0,hasTooltip:!0,showTooltip:!0,listboxData:b.F_,fieldLevelTimeMessage:"Format: hh:mm a | ex: 12:00 AM",dateFormat:k})},{id:"disabled",label:"Date and Time - disabled",demoStyles:"height: 10rem;",storybookStyles:!0,element:i().createElement(T,{dropdownIsOpen:!1,listboxData:b.eE,isDisabled:!0,dateFormat:k})},{id:"mobile",label:"Mobile",element:i().createElement(w.ZS,{labelContent:"Date",inputId:"date-input-id-mobile"},i().createElement(v.A,{id:"date-input-id-mobile",type:"datetime-local"}))}]),M=n.XB.a,q=n.XB.code,P=n.XB.h2,j=n.XB.h3,F=n.XB.h4,L=n.XB.li,B=n.XB.p,C=n.XB.strong,V=n.XB.ul,W=function(){return(0,l.createElement)(n.Ay,{},(0,l.createElement)("div",{className:"doc lead"},"A datetime picker is used to select a day and a time."),(0,l.createElement)(s.A,{exampleOnly:!0,demoStyles:"height: 28rem;"},(0,p.NO)(J)),P({id:"About-datetime-picker"},"About datetime picker"),j({id:"Implementation"},"Implementation"),B({},"The datetime is two ",M({href:"/components/form-element"},"form elements"),", each containing a label and text ",M({href:"/components/input"},"input"),", and a dropdown ",M({href:"/components/menus"},"menu"),", containing a grid-based calendar and filters. The date form element acts as a trigger for the dropdown."),(0,l.createElement)(r.A,{type:"warning"},(0,l.createElement)("p",null,"Placement of inline form elements inside a data table cell is not supported. Instead, use a button to invoke a popover, which does support form elements.")),B({},"The datetime picker has the following markup requirements:"),B({},C({},"All")),V({},L({},"Follow all accessibility requirements mentioned in the ",M({href:"/components/datepickers"},"Datepicker")," and ",M({href:"/components/timepicker"},"Timepicker")," blueprints.")),B({},C({},"Desktop")),V({},L({},"Add ",q({},".slds-is-open")," to the element with ",q({},".slds-dropdown-trigger")," to invoke the dropdown that contains the datepicker and the list of time options."),L({},"On the timepicker, the ",q({},".slds-has-focus")," modifier class is required on the ",q({},".slds-listbox__option")," element that has focus."),L({},"On the timepicker, the ",q({},".slds-is-selected")," modifier class is required on the ",q({},".slds-listbox__option")," element that has been selected."),L({},"On the datepicker, the ",q({},".slds-is-selected")," modifier class is required on the ",q({},"td")," element that has the selected day."),L({},"On the datepicker, the ",q({},".slds-is-today")," modifier class is required on the ",q({},"td")," element that is the current day.")),B({},C({},"Mobile")),V({},L({},"When on mobile, we want to leverage the native datetime picker by changing the ",q({},"input")," type from ",q({},"text")," to ",q({},"datetime-local")),L({},"The ",q({},'input type="datetime-local"')," will create an input field allowing a date and time to be easily entered — this includes year, month, day, hours, and minutes."),L({},"When switching ",q({},'input type="text"')," to ",q({},'input type="datetime-local"')," for mobile, we need to remove the ARIA attributes. The native rendering doesn't require these.",V({},L({},"On the element with the class ",q({},"slds-combobox"),", please remove ",q({},'role="combobox"'),", ",q({},"aria-expanded"),", and ",q({},"aria-haspopup"),"."),L({},"On the ",q({},"input")," that we just added ",q({},'type="datetime-local"')," to, please remove ",q({},"aria-controls"),", ",q({},"aria-autocomplete"),", and ",q({},'role="textbox"'),".")))),j({id:"Accessibility"},"Accessibility"),B({},"To display the datetime picker with maximum accessibility, the datetime field should be empty to start. When a user clicks, text input is activated, and the full date or time selector displays."),F({id:"Markup"},"Markup"),B({},C({},"Dialog:")),V({},L({},"A Date Format Visible variation displays a message about the expected date format. When the date field receives focus, a message appears under the field to show the expected date format. When focus is removed from the date field, the message is hidden and available as assistive text."),L({},"All datepicker fields marked as required with an * must have an accompanying legend. Example:\n",(0,l.createElement)(d.A,null))),P({id:"Base"},"Base"),(0,l.createElement)(s.A,{demoStyles:"height: 28rem;"},(0,p.NO)(J)),P({id:"States"},"States"),B({},"Adding ",q({},"slds-datetimepicker_has-tooltip")," to the element with ",q({},"slds-form-element_compound")," aligns the legend properly when there is an info tooltip."),j({id:"Date-selection"},"Date selection"),(0,l.createElement)(s.A,{demoStyles:"height: 28rem;"},(0,p.NO)(I,"date-selection")),j({id:"Time-selection"},"Time selection"),(0,l.createElement)(s.A,{demoStyles:"height: 28rem;"},(0,p.NO)(I,"time-selection")),j({id:"Date-Example-Text-Visible"},"Date Example Text Visible"),(0,l.createElement)(s.A,{demoStyles:"height: 6rem;"},(0,p.NO)(I,"date-example-text-visible")),j({id:"Mobile"},"Mobile"),B({},"Mobile example should be viewed in mobile devices for accurate visual representation. It should be noted that due to native device styling, the width of the input will not expand 100% on iOS devices. Learn more about mobile datetime picker in the ",M({href:"/components/datetime-picker/#Implementation"},"mobile implementation")," section above."),(0,l.createElement)(s.A,{demoStyles:"height: 5rem;"},(0,p.NO)(I,"mobile")))},X=function(){return(0,n.Qr)(W())}},1981:function(e){e.exports=JSBeautify},5206:function(e){e.exports=ReactDOM}},i={};function n(e){var t=i[e];if(void 0!==t)return t.exports;var a=i[e]={id:e,exports:{}};return l[e](a,a.exports,n),a.exports}n.m=l,n.amdO={},e=[],n.O=function(t,a,l,i){if(!a){var s=1/0;for(c=0;c<e.length;c++){a=e[c][0],l=e[c][1],i=e[c][2];for(var r=!0,d=0;d<a.length;d++)(!1&i||s>=i)&&Object.keys(n.O).every(function(e){return n.O[e](a[d])})?a.splice(d--,1):(r=!1,i<s&&(s=i));if(r){e.splice(c--,1);var o=l();void 0!==o&&(t=o)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[a,l,i]},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},a=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},n.t=function(e,l){if(1&l&&(e=this(e)),8&l)return e;if("object"==typeof e&&e){if(4&l&&e.__esModule)return e;if(16&l&&"function"==typeof e.then)return e}var i=Object.create(null);n.r(i);var s={};t=t||[null,a({}),a([]),a(a)];for(var r=2&l&&e;("object"==typeof r||"function"==typeof r)&&!~t.indexOf(r);r=a(r))Object.getOwnPropertyNames(r).forEach(function(t){s[t]=function(){return e[t]}});return s.default=function(){return e},n.d(i,s),i},n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.e=function(){return Promise.resolve()},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.j=7691,function(){var e={7691:0};n.O.j=function(t){return 0===e[t]};var t=function(t,a){var l,i,s=a[0],r=a[1],d=a[2],o=0;if(s.some(function(t){return 0!==e[t]})){for(l in r)n.o(r,l)&&(n.m[l]=r[l]);if(d)var c=d(n)}for(t&&t(a);o<s.length;o++)i=s[o],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(c)},a=self.webpackJsonpSLDS___internal_chunked_docs=self.webpackJsonpSLDS___internal_chunked_docs||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))}(),n.nc=void 0;var s=n.O(void 0,[3540],function(){return n(1668)});s=n.O(s),(SLDS=void 0===SLDS?{}:SLDS)["__internal/chunked/docs/./ui/components/datetime-picker/docs.mdx.js"]=s}();
|