@zanichelli/albe-web-components 19.6.0 → 20.0.0-RC1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/dist/cjs/{iconset-Cz-UsfoU.js → iconset-BIdMT0Ke.js} +4 -4
- package/dist/cjs/{iconset-Cz-UsfoU.js.map → iconset-BIdMT0Ke.js.map} +1 -1
- package/dist/cjs/index-CZz7uP-M.js +0 -80
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{reactive-controller-B2CuCldJ.js → reactive-controller-DJkjAuqS.js} +3 -3
- package/dist/cjs/{reactive-controller-B2CuCldJ.js.map → reactive-controller-DJkjAuqS.js.map} +1 -1
- package/dist/cjs/{utils-C0QY75C2.js → utils-BnCPu0Si.js} +2 -11
- package/dist/cjs/{utils-C0QY75C2.js.map → utils-BnCPu0Si.js.map} +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-accordion.cjs.entry.js +1 -1
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +120 -134
- package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-avatar.cjs.entry.js +2 -2
- package/dist/cjs/z-book-card.cjs.entry.js +1 -1
- package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
- package/dist/cjs/z-book-cover.cjs.entry.js +1 -1
- package/dist/cjs/z-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +2 -4
- package/dist/cjs/z-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/z-color-picker.cjs.entry.js +2 -2
- package/dist/cjs/z-combobox.cjs.entry.js +2 -2
- package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
- package/dist/cjs/z-date-picker.cjs.entry.js +2 -4
- package/dist/cjs/z-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +8 -8
- package/dist/cjs/z-file.cjs.entry.js +1 -1
- package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
- package/dist/cjs/z-info-box.cjs.entry.js +5 -3
- package/dist/cjs/z-info-box.cjs.entry.js.map +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +3 -3
- package/dist/cjs/z-info-reveal.cjs.entry.js.map +1 -1
- package/dist/cjs/z-input-range.cjs.entry.js +2 -2
- package/dist/cjs/z-logo.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
- package/dist/cjs/z-menu.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -6
- package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/z-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-popover.cjs.entry.js +2 -2
- package/dist/cjs/z-select.cjs.entry.js +4 -8
- package/dist/cjs/z-select.cjs.entry.js.map +1 -1
- package/dist/cjs/z-skip-to-content.cjs.entry.js +2 -2
- package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +2 -2
- package/dist/cjs/z-tbody.cjs.entry.js +1 -1
- package/dist/cjs/z-td.cjs.entry.js +1 -1
- package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
- package/dist/cjs/z-th.cjs.entry.js +1 -1
- package/dist/cjs/z-thead.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +3 -3
- package/dist/cjs/z-toggle-switch.cjs.entry.js +4 -4
- package/dist/cjs/z-tool.cjs.entry.js +3 -3
- package/dist/cjs/z-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/z-tr.cjs.entry.js +2 -2
- package/dist/cjs/z-tree-list.cjs.entry.js +1 -1
- package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -25
- package/dist/collection/components/book-card/z-book-card/index.js +1 -1
- package/dist/collection/components/book-card/z-book-card/index.js.map +1 -1
- package/dist/collection/components/date-picker/z-date-picker/index.js +5 -8
- package/dist/collection/components/date-picker/z-date-picker/index.js.map +1 -1
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js +2 -2
- package/dist/collection/components/file-upload/z-file/index.js +1 -1
- package/dist/collection/components/list/z-list/index.js +43 -38
- package/dist/collection/components/list/z-list/index.js.map +1 -1
- package/dist/collection/components/list/z-list-element/index.js +17 -31
- package/dist/collection/components/list/z-list-element/index.js.map +1 -1
- package/dist/collection/components/list/z-list-group/index.js +62 -37
- package/dist/collection/components/list/z-list-group/index.js.map +1 -1
- package/dist/collection/components/list/z-tree-list/index.js +1 -1
- package/dist/collection/components/table/cells/z-td/index.js +1 -1
- package/dist/collection/components/table/cells/z-th/index.js +1 -1
- package/dist/collection/components/table/z-table/index.js +1 -1
- package/dist/collection/components/table/z-tbody/index.js +1 -1
- package/dist/collection/components/table/z-tfoot/index.js +1 -1
- package/dist/collection/components/table/z-thead/index.js +1 -1
- package/dist/collection/components/table/z-tr/index.js +1 -1
- package/dist/collection/components/z-accordion/index.js +1 -1
- package/dist/collection/components/z-anchor-navigation/index.js +1 -1
- package/dist/collection/components/z-app-header/index.js +1 -1
- package/dist/collection/components/z-aria-alert/index.js +1 -1
- package/dist/collection/components/z-avatar/index.js +2 -2
- package/dist/collection/components/z-book-cover/index.js +1 -1
- package/dist/collection/components/z-breadcrumb/index.js +2 -2
- package/dist/collection/components/z-button/index.js +15 -48
- package/dist/collection/components/z-button/index.js.map +1 -1
- package/dist/collection/components/z-button-sort/index.js +1 -1
- package/dist/collection/components/z-chip/index.js +6 -9
- package/dist/collection/components/z-chip/index.js.map +1 -1
- package/dist/collection/components/z-color-picker/index.js +1 -1
- package/dist/collection/components/z-combobox/index.js +1 -1
- package/dist/collection/components/z-cover-hero/index.js +2 -2
- package/dist/collection/components/z-divider/index.js +1 -1
- package/dist/collection/components/z-ghost-loading/index.js +1 -1
- package/dist/collection/components/z-icon/index.js +1 -1
- package/dist/collection/components/z-icon/styles.css +6 -0
- package/dist/collection/components/z-info-box/index.js +55 -7
- package/dist/collection/components/z-info-box/index.js.map +1 -1
- package/dist/collection/components/z-info-box/styles.css +60 -10
- package/dist/collection/components/z-info-reveal/index.js +6 -6
- package/dist/collection/components/z-info-reveal/index.js.map +1 -1
- package/dist/collection/components/z-input/index.js +43 -64
- package/dist/collection/components/z-input/index.js.map +1 -1
- package/dist/collection/components/z-input-message/index.js +3 -27
- package/dist/collection/components/z-input-message/index.js.map +1 -1
- package/dist/collection/components/z-input-range/index.js +1 -1
- package/dist/collection/components/z-logo/index.js +1 -1
- package/dist/collection/components/z-menu-section/index.js +1 -1
- package/dist/collection/components/z-modal/index.js +4 -4
- package/dist/collection/components/z-navigation-tabs/index.js +5 -10
- package/dist/collection/components/z-navigation-tabs/index.js.map +1 -1
- package/dist/collection/components/z-notification/index.js +1 -1
- package/dist/collection/components/z-offcanvas/index.js +2 -2
- package/dist/collection/components/z-popover/index.js +1 -1
- package/dist/collection/components/z-searchbar/index.js +3 -3
- package/dist/collection/components/z-select/index.js +9 -15
- package/dist/collection/components/z-select/index.js.map +1 -1
- package/dist/collection/components/z-skip-to-content/index.js +1 -1
- package/dist/collection/components/z-stepper/index.js +1 -1
- package/dist/collection/components/z-stepper-item/index.js +1 -1
- package/dist/collection/components/z-tag/index.js +2 -2
- package/dist/collection/components/z-toast-notification/index.js +3 -3
- package/dist/collection/components/z-toast-notification-list/index.js +1 -1
- package/dist/collection/components/z-toggle-switch/index.js +3 -3
- package/dist/collection/components/z-tool/index.js +2 -2
- package/dist/collection/components/z-toolbar/index.js +1 -1
- package/dist/collection/components/z-tooltip/index.js +1 -1
- package/dist/collection/components/z-visually-hidden/index.js +1 -1
- package/dist/collection/constants/iconset.js +2 -2
- package/dist/collection/constants/iconset.js.map +1 -1
- package/dist/collection/utils/storybook-utils.js +31 -18
- package/dist/collection/utils/storybook-utils.js.map +1 -1
- package/dist/components/iconset.js +1 -1
- package/dist/components/iconset.js.map +1 -1
- package/dist/components/index.d.ts +0 -46
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/index10.js +1 -1
- package/dist/components/index10.js.map +1 -1
- package/dist/components/index11.js +1 -1
- package/dist/components/index11.js.map +1 -1
- package/dist/components/index12.js +1 -1
- package/dist/components/index12.js.map +1 -1
- package/dist/components/index13.js +1 -1
- package/dist/components/index13.js.map +1 -1
- package/dist/components/index14.js +1 -1
- package/dist/components/index14.js.map +1 -1
- package/dist/components/index15.js +1 -1
- package/dist/components/index15.js.map +1 -1
- package/dist/components/index16.js +1 -1
- package/dist/components/index16.js.map +1 -1
- package/dist/components/index17.js +1 -1
- package/dist/components/index17.js.map +1 -1
- package/dist/components/index18.js +1 -1
- package/dist/components/index18.js.map +1 -1
- package/dist/components/index19.js +1 -1
- package/dist/components/index19.js.map +1 -1
- package/dist/components/index20.js +1 -1
- package/dist/components/index20.js.map +1 -1
- package/dist/components/index21.js +1 -1
- package/dist/components/index21.js.map +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/index3.js.map +1 -1
- package/dist/components/index4.js +1 -1
- package/dist/components/index4.js.map +1 -1
- package/dist/components/index5.js +1 -1
- package/dist/components/index5.js.map +1 -1
- package/dist/components/index6.js +1 -1
- package/dist/components/index6.js.map +1 -1
- package/dist/components/index7.js +1 -1
- package/dist/components/index7.js.map +1 -1
- package/dist/components/index8.js +1 -1
- package/dist/components/index8.js.map +1 -1
- package/dist/components/index9.js +1 -1
- package/dist/components/index9.js.map +1 -1
- package/dist/components/reactive-controller.js +2 -2
- package/dist/components/utils.js +1 -1
- package/dist/components/utils.js.map +1 -1
- package/dist/components/z-accordion.js +1 -1
- package/dist/components/z-anchor-navigation.js +1 -1
- package/dist/components/z-app-header.js +1 -1
- package/dist/components/z-app-header.js.map +1 -1
- package/dist/components/z-aria-alert.js +1 -1
- package/dist/components/z-avatar.js +1 -1
- package/dist/components/z-book-card-app.js +1 -1
- package/dist/components/z-book-card.js +1 -1
- package/dist/components/z-book-card.js.map +1 -1
- package/dist/components/z-book-cover.js +1 -1
- package/dist/components/z-breadcrumb.js +1 -1
- package/dist/components/z-breadcrumb.js.map +1 -1
- package/dist/components/z-button-sort.js +1 -1
- package/dist/components/z-button.js +1 -1
- package/dist/components/z-carousel.js +1 -1
- package/dist/components/z-chip.js +1 -1
- package/dist/components/z-color-picker.js +1 -1
- package/dist/components/z-combobox.js +1 -1
- package/dist/components/z-combobox.js.map +1 -1
- package/dist/components/z-cover-hero.js +1 -1
- package/dist/components/z-date-picker.js +2 -2
- package/dist/components/z-date-picker.js.map +1 -1
- package/dist/components/z-divider.js +1 -1
- package/dist/components/z-dragdrop-area.js +1 -1
- package/dist/components/z-file-upload.js +1 -1
- package/dist/components/z-file.js +1 -1
- package/dist/components/z-ghost-loading.js +1 -1
- package/dist/components/z-info-box.js +1 -1
- package/dist/components/z-info-box.js.map +1 -1
- package/dist/components/z-info-reveal.js +1 -1
- package/dist/components/z-input-message.js +1 -1
- package/dist/components/z-input-range.js +1 -1
- package/dist/components/z-input.js +1 -1
- package/dist/components/z-list-element.js +1 -1
- package/dist/components/z-list-group.js +1 -1
- package/dist/components/z-list.js +1 -1
- package/dist/components/z-logo.js +1 -1
- package/dist/components/z-menu-section.js +1 -1
- package/dist/components/z-modal.js +1 -1
- package/dist/components/z-navigation-tabs.js +1 -1
- package/dist/components/z-navigation-tabs.js.map +1 -1
- package/dist/components/z-notification.js +1 -1
- package/dist/components/z-offcanvas.js +1 -1
- package/dist/components/z-pagination.js +1 -1
- package/dist/components/z-popover.js +1 -1
- package/dist/components/z-range-picker.js +1 -1
- package/dist/components/z-result-card.js +1 -1
- package/dist/components/z-searchbar.js +1 -1
- package/dist/components/z-select.js +1 -1
- package/dist/components/z-select.js.map +1 -1
- package/dist/components/z-skip-to-content.js +1 -1
- package/dist/components/z-stepper-item.js +1 -1
- package/dist/components/z-stepper.js +1 -1
- package/dist/components/z-table.js +1 -1
- package/dist/components/z-tag.js +1 -1
- package/dist/components/z-tbody.js +1 -1
- package/dist/components/z-td.js +1 -1
- package/dist/components/z-tfoot.js +1 -1
- package/dist/components/z-th.js +1 -1
- package/dist/components/z-thead.js +1 -1
- package/dist/components/z-toast-notification-list.js +1 -1
- package/dist/components/z-toast-notification.js +2 -2
- package/dist/components/z-toggle-switch.js +1 -1
- package/dist/components/z-tool.js +1 -1
- package/dist/components/z-toolbar.js +1 -1
- package/dist/components/z-tooltip.js +1 -1
- package/dist/components/z-tr.js +1 -1
- package/dist/components/z-tree-list.js +1 -1
- package/dist/components/z-tree-list.js.map +1 -1
- package/dist/components/z-visually-hidden.js +1 -1
- package/dist/esm/{iconset-AwzX9V8L.js → iconset-D1c5gR45.js} +4 -4
- package/dist/esm/{iconset-AwzX9V8L.js.map → iconset-D1c5gR45.js.map} +1 -1
- package/dist/esm/index-BcDWN4F1.js +0 -80
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{reactive-controller-C_qN1xPW.js → reactive-controller-CHemhYDp.js} +3 -3
- package/dist/esm/{reactive-controller-C_qN1xPW.js.map → reactive-controller-CHemhYDp.js.map} +1 -1
- package/dist/esm/{utils-CEdyahRZ.js → utils-CJc3A9NX.js} +3 -11
- package/dist/esm/{utils-CEdyahRZ.js.map → utils-CJc3A9NX.js.map} +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-accordion.entry.js +1 -1
- package/dist/esm/z-anchor-navigation.entry.js +1 -1
- package/dist/esm/z-app-header_12.entry.js +121 -135
- package/dist/esm/z-app-header_12.entry.js.map +1 -1
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +2 -2
- package/dist/esm/z-book-card.entry.js +1 -1
- package/dist/esm/z-book-card.entry.js.map +1 -1
- package/dist/esm/z-book-cover.entry.js +1 -1
- package/dist/esm/z-breadcrumb.entry.js +3 -3
- package/dist/esm/z-button-sort.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +2 -4
- package/dist/esm/z-chip.entry.js.map +1 -1
- package/dist/esm/z-color-picker.entry.js +2 -2
- package/dist/esm/z-combobox.entry.js +2 -2
- package/dist/esm/z-cover-hero.entry.js +2 -2
- package/dist/esm/z-date-picker.entry.js +2 -4
- package/dist/esm/z-date-picker.entry.js.map +1 -1
- package/dist/esm/z-dragdrop-area_2.entry.js +8 -8
- package/dist/esm/z-file.entry.js +1 -1
- package/dist/esm/z-ghost-loading.entry.js +1 -1
- package/dist/esm/z-info-box.entry.js +6 -4
- package/dist/esm/z-info-box.entry.js.map +1 -1
- package/dist/esm/z-info-reveal.entry.js +3 -3
- package/dist/esm/z-info-reveal.entry.js.map +1 -1
- package/dist/esm/z-input-range.entry.js +2 -2
- package/dist/esm/z-logo.entry.js +1 -1
- package/dist/esm/z-menu-section.entry.js +1 -1
- package/dist/esm/z-menu.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +2 -6
- package/dist/esm/z-navigation-tabs.entry.js.map +1 -1
- package/dist/esm/z-notification.entry.js +1 -1
- package/dist/esm/z-popover.entry.js +2 -2
- package/dist/esm/z-select.entry.js +4 -8
- package/dist/esm/z-select.entry.js.map +1 -1
- package/dist/esm/z-skip-to-content.entry.js +2 -2
- package/dist/esm/z-stepper-item.entry.js +1 -1
- package/dist/esm/z-stepper.entry.js +1 -1
- package/dist/esm/z-table.entry.js +2 -2
- package/dist/esm/z-tbody.entry.js +1 -1
- package/dist/esm/z-td.entry.js +1 -1
- package/dist/esm/z-tfoot.entry.js +1 -1
- package/dist/esm/z-th.entry.js +1 -1
- package/dist/esm/z-thead.entry.js +1 -1
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +3 -3
- package/dist/esm/z-toggle-switch.entry.js +4 -4
- package/dist/esm/z-tool.entry.js +3 -3
- package/dist/esm/z-toolbar.entry.js +1 -1
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/esm/z-tr.entry.js +2 -2
- package/dist/esm/z-tree-list.entry.js +1 -1
- package/dist/esm/z-visually-hidden.entry.js +1 -1
- package/dist/types/components/date-picker/z-date-picker/index.d.ts +1 -1
- package/dist/types/components/list/z-list/index.d.ts +6 -8
- package/dist/types/components/list/z-list-element/index.d.ts +2 -8
- package/dist/types/components/list/z-list-group/index.d.ts +3 -5
- package/dist/types/components/z-button/index.d.ts +4 -9
- package/dist/types/components/z-chip/index.d.ts +2 -2
- package/dist/types/components/z-info-box/index.d.ts +14 -2
- package/dist/types/components/z-info-reveal/index.d.ts +2 -2
- package/dist/types/components/z-input/index.d.ts +14 -14
- package/dist/types/components/z-input-message/index.d.ts +2 -5
- package/dist/types/components/z-navigation-tabs/index.d.ts +1 -1
- package/dist/types/components/z-select/index.d.ts +2 -2
- package/dist/types/components.d.ts +298 -1809
- package/dist/types/constants/iconset.d.ts +4 -4
- package/dist/types/utils/storybook-utils.d.ts +19 -12
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-cdfbcb3b.entry.js → p-02fb0bf9.entry.js} +2 -2
- package/{www/build/p-e1081a2f.entry.js → dist/web-components-library/p-067411f0.entry.js} +2 -2
- package/{www/build/p-136f336a.entry.js → dist/web-components-library/p-121f224a.entry.js} +2 -2
- package/dist/web-components-library/p-127a6dda.entry.js +2 -0
- package/dist/web-components-library/p-127a6dda.entry.js.map +1 -0
- package/{www/build/p-af6bdd6e.entry.js → dist/web-components-library/p-1e71577c.entry.js} +2 -2
- package/{www/build/p-4085be9a.entry.js → dist/web-components-library/p-1ef66142.entry.js} +2 -2
- package/{www/build/p-22cb956c.entry.js → dist/web-components-library/p-1efed23b.entry.js} +2 -2
- package/{www/build/p-ab221eac.entry.js → dist/web-components-library/p-222898cd.entry.js} +3 -3
- package/dist/web-components-library/{p-c39e4a49.entry.js → p-2bd1326c.entry.js} +2 -2
- package/dist/web-components-library/p-2bebbd04.entry.js +2 -0
- package/{www/build/p-5af96c6f.entry.js.map → dist/web-components-library/p-2bebbd04.entry.js.map} +1 -1
- package/dist/web-components-library/p-303fe1d0.entry.js +2 -0
- package/dist/web-components-library/p-303fe1d0.entry.js.map +1 -0
- package/{www/build/p-67476a7c.entry.js → dist/web-components-library/p-317cbb00.entry.js} +2 -2
- package/{www/build/p-6d382092.entry.js → dist/web-components-library/p-32bc925a.entry.js} +2 -2
- package/dist/web-components-library/{p-f36e7e6b.entry.js → p-33d993fe.entry.js} +2 -2
- package/{www/build/p-7313c22c.entry.js → dist/web-components-library/p-33e973b3.entry.js} +2 -2
- package/dist/web-components-library/p-33e973b3.entry.js.map +1 -0
- package/dist/web-components-library/{p-1a13cd9b.entry.js → p-3748979c.entry.js} +2 -2
- package/{www/build/p-20401d48.entry.js → dist/web-components-library/p-3a9a120f.entry.js} +2 -2
- package/dist/web-components-library/{p-0251d009.entry.js → p-4f6c86ce.entry.js} +2 -2
- package/dist/web-components-library/{p-5b3cfc2e.entry.js → p-51ebf661.entry.js} +2 -2
- package/{www/build/p-aa59ca29.entry.js → dist/web-components-library/p-53c51bf4.entry.js} +2 -2
- package/{www/build/p-aa59ca29.entry.js.map → dist/web-components-library/p-53c51bf4.entry.js.map} +1 -1
- package/dist/web-components-library/p-5a43af47.entry.js +2 -0
- package/dist/web-components-library/p-5a43af47.entry.js.map +1 -0
- package/dist/web-components-library/p-657802ce.entry.js +2 -0
- package/dist/web-components-library/{p-5c012917.entry.js.map → p-657802ce.entry.js.map} +1 -1
- package/{www/build/p-7b4f5936.entry.js → dist/web-components-library/p-6de548e3.entry.js} +2 -2
- package/dist/web-components-library/p-6de548e3.entry.js.map +1 -0
- package/dist/web-components-library/{p-0c9247be.entry.js → p-6ea349f6.entry.js} +2 -2
- package/dist/web-components-library/{p-39b91bfa.entry.js → p-7dbd0e3e.entry.js} +2 -2
- package/{www/build/p-aba618c3.entry.js → dist/web-components-library/p-89b30fce.entry.js} +2 -2
- package/dist/web-components-library/p-8b3257b4.entry.js +2 -0
- package/{www/build/p-b38bca77.entry.js → dist/web-components-library/p-8c3a7bc1.entry.js} +2 -2
- package/dist/web-components-library/{p-bb610386.entry.js → p-8d2704ee.entry.js} +2 -2
- package/dist/web-components-library/{p-82e87326.entry.js → p-8f4fcd01.entry.js} +2 -2
- package/dist/web-components-library/p-8fb3354e.entry.js +2 -0
- package/dist/web-components-library/{p-88c45ed6.entry.js → p-904c7fdd.entry.js} +2 -2
- package/{www/build/p-ip3tTfYi.js → dist/web-components-library/p-BjrC13Q0.js} +3 -3
- package/{www/build/p-ip3tTfYi.js.map → dist/web-components-library/p-BjrC13Q0.js.map} +1 -1
- package/dist/web-components-library/{p-AwzX9V8L.js → p-D1c5gR45.js} +2 -2
- package/{www/build/p-AwzX9V8L.js.map → dist/web-components-library/p-D1c5gR45.js.map} +1 -1
- package/{www/build/p-C_25lDQa.js → dist/web-components-library/p-DPrEzmhI.js} +2 -2
- package/{www/build/p-C_25lDQa.js.map → dist/web-components-library/p-DPrEzmhI.js.map} +1 -1
- package/dist/web-components-library/{p-b7d4b886.entry.js → p-a5187022.entry.js} +2 -2
- package/dist/web-components-library/{p-fa02ba25.entry.js → p-a52b3dd1.entry.js} +2 -2
- package/dist/web-components-library/p-a8f43afd.entry.js +2 -0
- package/{www/build/p-31883d39.entry.js → dist/web-components-library/p-b4e0cd5c.entry.js} +2 -2
- package/dist/web-components-library/p-b4e0cd5c.entry.js.map +1 -0
- package/dist/web-components-library/{p-869ba2b5.entry.js → p-b7620e80.entry.js} +2 -2
- package/dist/web-components-library/{p-a09646a9.entry.js → p-bc9237eb.entry.js} +2 -2
- package/dist/web-components-library/p-c217c65c.entry.js +2 -0
- package/dist/web-components-library/{p-41f63f0e.entry.js.map → p-c217c65c.entry.js.map} +1 -1
- package/dist/web-components-library/{p-7965766c.entry.js → p-ccedd440.entry.js} +2 -2
- package/dist/web-components-library/{p-8f6ff78c.entry.js → p-d6441232.entry.js} +2 -2
- package/{www/build/p-87ea0b0a.entry.js → dist/web-components-library/p-df5eeb75.entry.js} +2 -2
- package/{www/build/p-4a7431f6.entry.js → dist/web-components-library/p-dfb0e8d8.entry.js} +2 -2
- package/dist/web-components-library/p-e1ab33fe.entry.js +2 -0
- package/dist/web-components-library/p-e1ab33fe.entry.js.map +1 -0
- package/{www/build/p-a2eb700b.entry.js → dist/web-components-library/p-efe489a5.entry.js} +2 -2
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +9 -8
- package/react/components.d.ts +0 -23
- package/react/components.js +2 -25
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-cdfbcb3b.entry.js → p-02fb0bf9.entry.js} +2 -2
- package/{dist/web-components-library/p-e1081a2f.entry.js → www/build/p-067411f0.entry.js} +2 -2
- package/{dist/web-components-library/p-136f336a.entry.js → www/build/p-121f224a.entry.js} +2 -2
- package/www/build/p-127a6dda.entry.js +2 -0
- package/www/build/p-127a6dda.entry.js.map +1 -0
- package/{dist/web-components-library/p-af6bdd6e.entry.js → www/build/p-1e71577c.entry.js} +2 -2
- package/{dist/web-components-library/p-4085be9a.entry.js → www/build/p-1ef66142.entry.js} +2 -2
- package/{dist/web-components-library/p-22cb956c.entry.js → www/build/p-1efed23b.entry.js} +2 -2
- package/{dist/web-components-library/p-ab221eac.entry.js → www/build/p-222898cd.entry.js} +3 -3
- package/www/build/{p-c39e4a49.entry.js → p-2bd1326c.entry.js} +2 -2
- package/www/build/p-2bebbd04.entry.js +2 -0
- package/{dist/web-components-library/p-5af96c6f.entry.js.map → www/build/p-2bebbd04.entry.js.map} +1 -1
- package/www/build/p-303fe1d0.entry.js +2 -0
- package/www/build/p-303fe1d0.entry.js.map +1 -0
- package/{dist/web-components-library/p-67476a7c.entry.js → www/build/p-317cbb00.entry.js} +2 -2
- package/{dist/web-components-library/p-6d382092.entry.js → www/build/p-32bc925a.entry.js} +2 -2
- package/www/build/{p-f36e7e6b.entry.js → p-33d993fe.entry.js} +2 -2
- package/{dist/web-components-library/p-7313c22c.entry.js → www/build/p-33e973b3.entry.js} +2 -2
- package/www/build/p-33e973b3.entry.js.map +1 -0
- package/www/build/{p-1a13cd9b.entry.js → p-3748979c.entry.js} +2 -2
- package/{dist/web-components-library/p-20401d48.entry.js → www/build/p-3a9a120f.entry.js} +2 -2
- package/www/build/{p-0251d009.entry.js → p-4f6c86ce.entry.js} +2 -2
- package/www/build/{p-5b3cfc2e.entry.js → p-51ebf661.entry.js} +2 -2
- package/{dist/web-components-library/p-aa59ca29.entry.js → www/build/p-53c51bf4.entry.js} +2 -2
- package/{dist/web-components-library/p-aa59ca29.entry.js.map → www/build/p-53c51bf4.entry.js.map} +1 -1
- package/www/build/p-5a1df5b1.js +2 -0
- package/www/build/p-5a43af47.entry.js +2 -0
- package/www/build/p-5a43af47.entry.js.map +1 -0
- package/www/build/p-657802ce.entry.js +2 -0
- package/www/build/{p-5c012917.entry.js.map → p-657802ce.entry.js.map} +1 -1
- package/{dist/web-components-library/p-7b4f5936.entry.js → www/build/p-6de548e3.entry.js} +2 -2
- package/www/build/p-6de548e3.entry.js.map +1 -0
- package/www/build/{p-0c9247be.entry.js → p-6ea349f6.entry.js} +2 -2
- package/www/build/{p-39b91bfa.entry.js → p-7dbd0e3e.entry.js} +2 -2
- package/{dist/web-components-library/p-aba618c3.entry.js → www/build/p-89b30fce.entry.js} +2 -2
- package/www/build/p-8b3257b4.entry.js +2 -0
- package/{dist/web-components-library/p-b38bca77.entry.js → www/build/p-8c3a7bc1.entry.js} +2 -2
- package/www/build/{p-bb610386.entry.js → p-8d2704ee.entry.js} +2 -2
- package/www/build/{p-82e87326.entry.js → p-8f4fcd01.entry.js} +2 -2
- package/www/build/p-8fb3354e.entry.js +2 -0
- package/www/build/{p-88c45ed6.entry.js → p-904c7fdd.entry.js} +2 -2
- package/{dist/web-components-library/p-ip3tTfYi.js → www/build/p-BjrC13Q0.js} +3 -3
- package/{dist/web-components-library/p-ip3tTfYi.js.map → www/build/p-BjrC13Q0.js.map} +1 -1
- package/www/build/{p-AwzX9V8L.js → p-D1c5gR45.js} +2 -2
- package/{dist/web-components-library/p-AwzX9V8L.js.map → www/build/p-D1c5gR45.js.map} +1 -1
- package/{dist/web-components-library/p-C_25lDQa.js → www/build/p-DPrEzmhI.js} +2 -2
- package/{dist/web-components-library/p-C_25lDQa.js.map → www/build/p-DPrEzmhI.js.map} +1 -1
- package/www/build/{p-b7d4b886.entry.js → p-a5187022.entry.js} +2 -2
- package/www/build/{p-fa02ba25.entry.js → p-a52b3dd1.entry.js} +2 -2
- package/www/build/p-a8f43afd.entry.js +2 -0
- package/{dist/web-components-library/p-31883d39.entry.js → www/build/p-b4e0cd5c.entry.js} +2 -2
- package/www/build/p-b4e0cd5c.entry.js.map +1 -0
- package/www/build/{p-869ba2b5.entry.js → p-b7620e80.entry.js} +2 -2
- package/www/build/{p-a09646a9.entry.js → p-bc9237eb.entry.js} +2 -2
- package/www/build/p-c217c65c.entry.js +2 -0
- package/www/build/{p-41f63f0e.entry.js.map → p-c217c65c.entry.js.map} +1 -1
- package/www/build/{p-7965766c.entry.js → p-ccedd440.entry.js} +2 -2
- package/www/build/{p-8f6ff78c.entry.js → p-d6441232.entry.js} +2 -2
- package/{dist/web-components-library/p-87ea0b0a.entry.js → www/build/p-df5eeb75.entry.js} +2 -2
- package/{dist/web-components-library/p-4a7431f6.entry.js → www/build/p-dfb0e8d8.entry.js} +2 -2
- package/www/build/p-e1ab33fe.entry.js +2 -0
- package/www/build/p-e1ab33fe.entry.js.map +1 -0
- package/{dist/web-components-library/p-a2eb700b.entry.js → www/build/p-efe489a5.entry.js} +2 -2
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/cjs/z-alert.cjs.entry.js +0 -20
- package/dist/cjs/z-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/z-app-header-deprecated.cjs.entry.js +0 -192
- package/dist/cjs/z-app-header-deprecated.cjs.entry.js.map +0 -1
- package/dist/cjs/z-book-card-deprecated.cjs.entry.js +0 -127
- package/dist/cjs/z-book-card-deprecated.cjs.entry.js.map +0 -1
- package/dist/cjs/z-menu-deprecated.cjs.entry.js +0 -127
- package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +0 -1
- package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +0 -60
- package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +0 -64
- package/dist/cjs/z-myz-card-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +0 -37
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +0 -20
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +0 -70
- package/dist/cjs/z-myz-card-footer.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +0 -24
- package/dist/cjs/z-myz-card-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +0 -130
- package/dist/cjs/z-myz-card-info.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-card-list.cjs.entry.js +0 -39
- package/dist/cjs/z-myz-card-list.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +0 -109
- package/dist/cjs/z-myz-card_4.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-list-item.cjs.entry.js +0 -38
- package/dist/cjs/z-myz-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/z-myz-list.cjs.entry.js +0 -38
- package/dist/cjs/z-myz-list.cjs.entry.js.map +0 -1
- package/dist/cjs/z-otp.cjs.entry.js +0 -44
- package/dist/cjs/z-otp.cjs.entry.js.map +0 -1
- package/dist/cjs/z-panel-elem.cjs.entry.js +0 -30
- package/dist/cjs/z-panel-elem.cjs.entry.js.map +0 -1
- package/dist/cjs/z-section-title.cjs.entry.js +0 -34
- package/dist/cjs/z-section-title.cjs.entry.js.map +0 -1
- package/dist/cjs/z-slideshow.cjs.entry.js +0 -134
- package/dist/cjs/z-slideshow.cjs.entry.js.map +0 -1
- package/dist/cjs/z-toggle-button.cjs.entry.js +0 -37
- package/dist/cjs/z-toggle-button.cjs.entry.js.map +0 -1
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +0 -415
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.js.map +0 -1
- package/dist/collection/components/deprecated/z-app-header-deprecated/styles.css +0 -490
- package/dist/collection/components/deprecated/z-book-card-deprecated/index.js +0 -417
- package/dist/collection/components/deprecated/z-book-card-deprecated/index.js.map +0 -1
- package/dist/collection/components/deprecated/z-book-card-deprecated/styles.css +0 -492
- package/dist/collection/components/deprecated/z-menu-deprecated/index.js +0 -263
- package/dist/collection/components/deprecated/z-menu-deprecated/index.js.map +0 -1
- package/dist/collection/components/deprecated/z-menu-deprecated/styles.css +0 -220
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +0 -133
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js.map +0 -1
- package/dist/collection/components/deprecated/z-menu-section-deprecated/styles.css +0 -123
- package/dist/collection/components/deprecated/z-section-title/index.js +0 -94
- package/dist/collection/components/deprecated/z-section-title/index.js.map +0 -1
- package/dist/collection/components/deprecated/z-section-title/styles.css +0 -48
- package/dist/collection/components/deprecated/z-toggle-button/index.js +0 -157
- package/dist/collection/components/deprecated/z-toggle-button/index.js.map +0 -1
- package/dist/collection/components/deprecated/z-toggle-button/styles.css +0 -60
- package/dist/collection/components/z-panel-elem/index.js +0 -211
- package/dist/collection/components/z-panel-elem/index.js.map +0 -1
- package/dist/collection/components/z-panel-elem/styles.css +0 -46
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +0 -140
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card/styles.css +0 -44
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +0 -160
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/styles.css +0 -62
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +0 -23
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/styles.css +0 -13
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +0 -102
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/styles.css +0 -11
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +0 -190
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/styles.css +0 -76
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +0 -236
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/styles.css +0 -187
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +0 -23
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/styles.css +0 -20
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +0 -118
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +0 -59
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +0 -88
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/styles.css +0 -69
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +0 -206
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +0 -93
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +0 -63
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/styles.css +0 -46
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +0 -85
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/styles.css +0 -4
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +0 -207
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/styles.css +0 -66
- package/dist/collection/snowflakes/myz/z-alert/index.js +0 -52
- package/dist/collection/snowflakes/myz/z-alert/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/z-alert/styles.css +0 -28
- package/dist/collection/snowflakes/myz/z-otp/index.js +0 -131
- package/dist/collection/snowflakes/myz/z-otp/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/z-otp/styles.css +0 -52
- package/dist/collection/snowflakes/myz/z-slideshow/index.js +0 -187
- package/dist/collection/snowflakes/myz/z-slideshow/index.js.map +0 -1
- package/dist/collection/snowflakes/myz/z-slideshow/styles.css +0 -134
- package/dist/components/index22.js +0 -2
- package/dist/components/index22.js.map +0 -1
- package/dist/components/index23.js +0 -2
- package/dist/components/index23.js.map +0 -1
- package/dist/components/index24.js +0 -2
- package/dist/components/index24.js.map +0 -1
- package/dist/components/index25.js +0 -2
- package/dist/components/index25.js.map +0 -1
- package/dist/components/index26.js +0 -2
- package/dist/components/index26.js.map +0 -1
- package/dist/components/index27.js +0 -2
- package/dist/components/index27.js.map +0 -1
- package/dist/components/z-alert.d.ts +0 -11
- package/dist/components/z-alert.js +0 -2
- package/dist/components/z-alert.js.map +0 -1
- package/dist/components/z-app-header-deprecated.d.ts +0 -11
- package/dist/components/z-app-header-deprecated.js +0 -2
- package/dist/components/z-app-header-deprecated.js.map +0 -1
- package/dist/components/z-book-card-deprecated.d.ts +0 -11
- package/dist/components/z-book-card-deprecated.js +0 -2
- package/dist/components/z-book-card-deprecated.js.map +0 -1
- package/dist/components/z-menu-deprecated.d.ts +0 -11
- package/dist/components/z-menu-deprecated.js +0 -2
- package/dist/components/z-menu-deprecated.js.map +0 -1
- package/dist/components/z-menu-section-deprecated.d.ts +0 -11
- package/dist/components/z-menu-section-deprecated.js +0 -2
- package/dist/components/z-menu-section-deprecated.js.map +0 -1
- package/dist/components/z-myz-card-alert.d.ts +0 -11
- package/dist/components/z-myz-card-alert.js +0 -2
- package/dist/components/z-myz-card-alert.js.map +0 -1
- package/dist/components/z-myz-card-body.d.ts +0 -11
- package/dist/components/z-myz-card-body.js +0 -2
- package/dist/components/z-myz-card-body.js.map +0 -1
- package/dist/components/z-myz-card-cover.d.ts +0 -11
- package/dist/components/z-myz-card-cover.js +0 -2
- package/dist/components/z-myz-card-cover.js.map +0 -1
- package/dist/components/z-myz-card-dictionary.d.ts +0 -11
- package/dist/components/z-myz-card-dictionary.js +0 -2
- package/dist/components/z-myz-card-dictionary.js.map +0 -1
- package/dist/components/z-myz-card-footer-sections.d.ts +0 -11
- package/dist/components/z-myz-card-footer-sections.js +0 -2
- package/dist/components/z-myz-card-footer-sections.js.map +0 -1
- package/dist/components/z-myz-card-footer.d.ts +0 -11
- package/dist/components/z-myz-card-footer.js +0 -2
- package/dist/components/z-myz-card-footer.js.map +0 -1
- package/dist/components/z-myz-card-header.d.ts +0 -11
- package/dist/components/z-myz-card-header.js +0 -2
- package/dist/components/z-myz-card-header.js.map +0 -1
- package/dist/components/z-myz-card-icon.d.ts +0 -11
- package/dist/components/z-myz-card-icon.js +0 -2
- package/dist/components/z-myz-card-icon.js.map +0 -1
- package/dist/components/z-myz-card-info.d.ts +0 -11
- package/dist/components/z-myz-card-info.js +0 -2
- package/dist/components/z-myz-card-info.js.map +0 -1
- package/dist/components/z-myz-card-list.d.ts +0 -11
- package/dist/components/z-myz-card-list.js +0 -2
- package/dist/components/z-myz-card-list.js.map +0 -1
- package/dist/components/z-myz-card.d.ts +0 -11
- package/dist/components/z-myz-card.js +0 -2
- package/dist/components/z-myz-card.js.map +0 -1
- package/dist/components/z-myz-list-item.d.ts +0 -11
- package/dist/components/z-myz-list-item.js +0 -2
- package/dist/components/z-myz-list-item.js.map +0 -1
- package/dist/components/z-myz-list.d.ts +0 -11
- package/dist/components/z-myz-list.js +0 -2
- package/dist/components/z-myz-list.js.map +0 -1
- package/dist/components/z-otp.d.ts +0 -11
- package/dist/components/z-otp.js +0 -2
- package/dist/components/z-otp.js.map +0 -1
- package/dist/components/z-panel-elem.d.ts +0 -11
- package/dist/components/z-panel-elem.js +0 -2
- package/dist/components/z-panel-elem.js.map +0 -1
- package/dist/components/z-section-title.d.ts +0 -11
- package/dist/components/z-section-title.js +0 -2
- package/dist/components/z-section-title.js.map +0 -1
- package/dist/components/z-slideshow.d.ts +0 -11
- package/dist/components/z-slideshow.js +0 -2
- package/dist/components/z-slideshow.js.map +0 -1
- package/dist/components/z-toggle-button.d.ts +0 -11
- package/dist/components/z-toggle-button.js +0 -2
- package/dist/components/z-toggle-button.js.map +0 -1
- package/dist/esm/z-alert.entry.js +0 -18
- package/dist/esm/z-alert.entry.js.map +0 -1
- package/dist/esm/z-app-header-deprecated.entry.js +0 -190
- package/dist/esm/z-app-header-deprecated.entry.js.map +0 -1
- package/dist/esm/z-book-card-deprecated.entry.js +0 -125
- package/dist/esm/z-book-card-deprecated.entry.js.map +0 -1
- package/dist/esm/z-menu-deprecated.entry.js +0 -125
- package/dist/esm/z-menu-deprecated.entry.js.map +0 -1
- package/dist/esm/z-menu-section-deprecated.entry.js +0 -58
- package/dist/esm/z-menu-section-deprecated.entry.js.map +0 -1
- package/dist/esm/z-myz-card-alert.entry.js +0 -62
- package/dist/esm/z-myz-card-alert.entry.js.map +0 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +0 -35
- package/dist/esm/z-myz-card-dictionary.entry.js.map +0 -1
- package/dist/esm/z-myz-card-footer-sections.entry.js +0 -18
- package/dist/esm/z-myz-card-footer-sections.entry.js.map +0 -1
- package/dist/esm/z-myz-card-footer.entry.js +0 -68
- package/dist/esm/z-myz-card-footer.entry.js.map +0 -1
- package/dist/esm/z-myz-card-icon.entry.js +0 -22
- package/dist/esm/z-myz-card-icon.entry.js.map +0 -1
- package/dist/esm/z-myz-card-info.entry.js +0 -128
- package/dist/esm/z-myz-card-info.entry.js.map +0 -1
- package/dist/esm/z-myz-card-list.entry.js +0 -37
- package/dist/esm/z-myz-card-list.entry.js.map +0 -1
- package/dist/esm/z-myz-card_4.entry.js +0 -104
- package/dist/esm/z-myz-card_4.entry.js.map +0 -1
- package/dist/esm/z-myz-list-item.entry.js +0 -36
- package/dist/esm/z-myz-list-item.entry.js.map +0 -1
- package/dist/esm/z-myz-list.entry.js +0 -36
- package/dist/esm/z-myz-list.entry.js.map +0 -1
- package/dist/esm/z-otp.entry.js +0 -42
- package/dist/esm/z-otp.entry.js.map +0 -1
- package/dist/esm/z-panel-elem.entry.js +0 -28
- package/dist/esm/z-panel-elem.entry.js.map +0 -1
- package/dist/esm/z-section-title.entry.js +0 -32
- package/dist/esm/z-section-title.entry.js.map +0 -1
- package/dist/esm/z-slideshow.entry.js +0 -132
- package/dist/esm/z-slideshow.entry.js.map +0 -1
- package/dist/esm/z-toggle-button.entry.js +0 -35
- package/dist/esm/z-toggle-button.entry.js.map +0 -1
- package/dist/types/components/deprecated/z-app-header-deprecated/index.d.ts +0 -96
- package/dist/types/components/deprecated/z-book-card-deprecated/index.d.ts +0 -91
- package/dist/types/components/deprecated/z-menu-deprecated/index.d.ts +0 -60
- package/dist/types/components/deprecated/z-menu-section-deprecated/index.d.ts +0 -31
- package/dist/types/components/deprecated/z-section-title/index.d.ts +0 -25
- package/dist/types/components/deprecated/z-toggle-button/index.d.ts +0 -17
- package/dist/types/components/z-panel-elem/index.d.ts +0 -25
- package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +0 -17
- package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +0 -19
- package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +0 -8
- package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +0 -13
- package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +0 -24
- package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +0 -35
- package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +0 -8
- package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +0 -20
- package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +0 -10
- package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +0 -36
- package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +0 -10
- package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +0 -12
- package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +0 -25
- package/dist/types/snowflakes/myz/z-alert/index.d.ts +0 -10
- package/dist/types/snowflakes/myz/z-otp/index.d.ts +0 -17
- package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +0 -31
- package/dist/web-components-library/p-0673b282.entry.js +0 -2
- package/dist/web-components-library/p-0673b282.entry.js.map +0 -1
- package/dist/web-components-library/p-26788712.entry.js +0 -2
- package/dist/web-components-library/p-26788712.entry.js.map +0 -1
- package/dist/web-components-library/p-2fcbc1a1.entry.js +0 -2
- package/dist/web-components-library/p-2fcbc1a1.entry.js.map +0 -1
- package/dist/web-components-library/p-30d82cf1.entry.js +0 -2
- package/dist/web-components-library/p-30d82cf1.entry.js.map +0 -1
- package/dist/web-components-library/p-31883d39.entry.js.map +0 -1
- package/dist/web-components-library/p-39027ac1.entry.js +0 -2
- package/dist/web-components-library/p-39027ac1.entry.js.map +0 -1
- package/dist/web-components-library/p-39bb7ee4.entry.js +0 -2
- package/dist/web-components-library/p-39bb7ee4.entry.js.map +0 -1
- package/dist/web-components-library/p-3b70a97c.entry.js +0 -2
- package/dist/web-components-library/p-3b70a97c.entry.js.map +0 -1
- package/dist/web-components-library/p-41f63f0e.entry.js +0 -2
- package/dist/web-components-library/p-487e3fca.entry.js +0 -2
- package/dist/web-components-library/p-487e3fca.entry.js.map +0 -1
- package/dist/web-components-library/p-4c1b6c40.entry.js +0 -2
- package/dist/web-components-library/p-4c1b6c40.entry.js.map +0 -1
- package/dist/web-components-library/p-5af96c6f.entry.js +0 -2
- package/dist/web-components-library/p-5c012917.entry.js +0 -2
- package/dist/web-components-library/p-6c5937db.entry.js +0 -2
- package/dist/web-components-library/p-7313c22c.entry.js.map +0 -1
- package/dist/web-components-library/p-7b4f5936.entry.js.map +0 -1
- package/dist/web-components-library/p-817630e4.entry.js +0 -2
- package/dist/web-components-library/p-817630e4.entry.js.map +0 -1
- package/dist/web-components-library/p-831d85f5.entry.js +0 -2
- package/dist/web-components-library/p-831d85f5.entry.js.map +0 -1
- package/dist/web-components-library/p-873e12a2.entry.js +0 -2
- package/dist/web-components-library/p-873e12a2.entry.js.map +0 -1
- package/dist/web-components-library/p-908b8d73.entry.js +0 -2
- package/dist/web-components-library/p-908b8d73.entry.js.map +0 -1
- package/dist/web-components-library/p-9b181758.entry.js +0 -2
- package/dist/web-components-library/p-9b181758.entry.js.map +0 -1
- package/dist/web-components-library/p-a47b9059.entry.js +0 -2
- package/dist/web-components-library/p-a47b9059.entry.js.map +0 -1
- package/dist/web-components-library/p-a4df3220.entry.js +0 -2
- package/dist/web-components-library/p-a4df3220.entry.js.map +0 -1
- package/dist/web-components-library/p-a702edc4.entry.js +0 -2
- package/dist/web-components-library/p-a702edc4.entry.js.map +0 -1
- package/dist/web-components-library/p-ad4c702b.entry.js +0 -2
- package/dist/web-components-library/p-ad4c702b.entry.js.map +0 -1
- package/dist/web-components-library/p-b15d006f.entry.js +0 -2
- package/dist/web-components-library/p-b15d006f.entry.js.map +0 -1
- package/dist/web-components-library/p-bbb9029e.entry.js +0 -2
- package/dist/web-components-library/p-bbb9029e.entry.js.map +0 -1
- package/dist/web-components-library/p-cb7381a0.entry.js +0 -2
- package/dist/web-components-library/p-ccdfec00.entry.js +0 -2
- package/dist/web-components-library/p-ccdfec00.entry.js.map +0 -1
- package/dist/web-components-library/p-ec12d752.entry.js +0 -2
- package/dist/web-components-library/p-ec12d752.entry.js.map +0 -1
- package/dist/web-components-library/p-edbedacb.entry.js +0 -2
- package/dist/web-components-library/p-edbedacb.entry.js.map +0 -1
- package/dist/web-components-library/p-f6138bf7.entry.js +0 -2
- package/dist/web-components-library/p-f8bc8ed9.entry.js +0 -2
- package/dist/web-components-library/p-f8bc8ed9.entry.js.map +0 -1
- package/www/build/p-0673b282.entry.js +0 -2
- package/www/build/p-0673b282.entry.js.map +0 -1
- package/www/build/p-26788712.entry.js +0 -2
- package/www/build/p-26788712.entry.js.map +0 -1
- package/www/build/p-2fcbc1a1.entry.js +0 -2
- package/www/build/p-2fcbc1a1.entry.js.map +0 -1
- package/www/build/p-30d82cf1.entry.js +0 -2
- package/www/build/p-30d82cf1.entry.js.map +0 -1
- package/www/build/p-31883d39.entry.js.map +0 -1
- package/www/build/p-39027ac1.entry.js +0 -2
- package/www/build/p-39027ac1.entry.js.map +0 -1
- package/www/build/p-39bb7ee4.entry.js +0 -2
- package/www/build/p-39bb7ee4.entry.js.map +0 -1
- package/www/build/p-3b70a97c.entry.js +0 -2
- package/www/build/p-3b70a97c.entry.js.map +0 -1
- package/www/build/p-41f63f0e.entry.js +0 -2
- package/www/build/p-487e3fca.entry.js +0 -2
- package/www/build/p-487e3fca.entry.js.map +0 -1
- package/www/build/p-4c1b6c40.entry.js +0 -2
- package/www/build/p-4c1b6c40.entry.js.map +0 -1
- package/www/build/p-5af96c6f.entry.js +0 -2
- package/www/build/p-5c012917.entry.js +0 -2
- package/www/build/p-6c5937db.entry.js +0 -2
- package/www/build/p-7313c22c.entry.js.map +0 -1
- package/www/build/p-7b4f5936.entry.js.map +0 -1
- package/www/build/p-7ffd9721.js +0 -2
- package/www/build/p-817630e4.entry.js +0 -2
- package/www/build/p-817630e4.entry.js.map +0 -1
- package/www/build/p-831d85f5.entry.js +0 -2
- package/www/build/p-831d85f5.entry.js.map +0 -1
- package/www/build/p-873e12a2.entry.js +0 -2
- package/www/build/p-873e12a2.entry.js.map +0 -1
- package/www/build/p-908b8d73.entry.js +0 -2
- package/www/build/p-908b8d73.entry.js.map +0 -1
- package/www/build/p-9b181758.entry.js +0 -2
- package/www/build/p-9b181758.entry.js.map +0 -1
- package/www/build/p-a47b9059.entry.js +0 -2
- package/www/build/p-a47b9059.entry.js.map +0 -1
- package/www/build/p-a4df3220.entry.js +0 -2
- package/www/build/p-a4df3220.entry.js.map +0 -1
- package/www/build/p-a702edc4.entry.js +0 -2
- package/www/build/p-a702edc4.entry.js.map +0 -1
- package/www/build/p-ad4c702b.entry.js +0 -2
- package/www/build/p-ad4c702b.entry.js.map +0 -1
- package/www/build/p-b15d006f.entry.js +0 -2
- package/www/build/p-b15d006f.entry.js.map +0 -1
- package/www/build/p-bbb9029e.entry.js +0 -2
- package/www/build/p-bbb9029e.entry.js.map +0 -1
- package/www/build/p-cb7381a0.entry.js +0 -2
- package/www/build/p-ccdfec00.entry.js +0 -2
- package/www/build/p-ccdfec00.entry.js.map +0 -1
- package/www/build/p-ec12d752.entry.js +0 -2
- package/www/build/p-ec12d752.entry.js.map +0 -1
- package/www/build/p-edbedacb.entry.js +0 -2
- package/www/build/p-edbedacb.entry.js.map +0 -1
- package/www/build/p-f6138bf7.entry.js +0 -2
- package/www/build/p-f8bc8ed9.entry.js +0 -2
- package/www/build/p-f8bc8ed9.entry.js.map +0 -1
- /package/dist/web-components-library/{p-cdfbcb3b.entry.js.map → p-02fb0bf9.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e1081a2f.entry.js.map → p-067411f0.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-136f336a.entry.js.map → p-121f224a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-af6bdd6e.entry.js.map → p-1e71577c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-4085be9a.entry.js.map → p-1ef66142.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-22cb956c.entry.js.map → p-1efed23b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-ab221eac.entry.js.map → p-222898cd.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c39e4a49.entry.js.map → p-2bd1326c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-67476a7c.entry.js.map → p-317cbb00.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6d382092.entry.js.map → p-32bc925a.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f36e7e6b.entry.js.map → p-33d993fe.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-1a13cd9b.entry.js.map → p-3748979c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-20401d48.entry.js.map → p-3a9a120f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-0251d009.entry.js.map → p-4f6c86ce.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-5b3cfc2e.entry.js.map → p-51ebf661.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-0c9247be.entry.js.map → p-6ea349f6.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-39b91bfa.entry.js.map → p-7dbd0e3e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-aba618c3.entry.js.map → p-89b30fce.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f6138bf7.entry.js.map → p-8b3257b4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b38bca77.entry.js.map → p-8c3a7bc1.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-bb610386.entry.js.map → p-8d2704ee.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-82e87326.entry.js.map → p-8f4fcd01.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-cb7381a0.entry.js.map → p-8fb3354e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-88c45ed6.entry.js.map → p-904c7fdd.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b7d4b886.entry.js.map → p-a5187022.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fa02ba25.entry.js.map → p-a52b3dd1.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6c5937db.entry.js.map → p-a8f43afd.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-869ba2b5.entry.js.map → p-b7620e80.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a09646a9.entry.js.map → p-bc9237eb.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7965766c.entry.js.map → p-ccedd440.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8f6ff78c.entry.js.map → p-d6441232.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-87ea0b0a.entry.js.map → p-df5eeb75.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-4a7431f6.entry.js.map → p-dfb0e8d8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-a2eb700b.entry.js.map → p-efe489a5.entry.js.map} +0 -0
- /package/www/build/{p-cdfbcb3b.entry.js.map → p-02fb0bf9.entry.js.map} +0 -0
- /package/www/build/{p-e1081a2f.entry.js.map → p-067411f0.entry.js.map} +0 -0
- /package/www/build/{p-136f336a.entry.js.map → p-121f224a.entry.js.map} +0 -0
- /package/www/build/{p-af6bdd6e.entry.js.map → p-1e71577c.entry.js.map} +0 -0
- /package/www/build/{p-4085be9a.entry.js.map → p-1ef66142.entry.js.map} +0 -0
- /package/www/build/{p-22cb956c.entry.js.map → p-1efed23b.entry.js.map} +0 -0
- /package/www/build/{p-ab221eac.entry.js.map → p-222898cd.entry.js.map} +0 -0
- /package/www/build/{p-c39e4a49.entry.js.map → p-2bd1326c.entry.js.map} +0 -0
- /package/www/build/{p-67476a7c.entry.js.map → p-317cbb00.entry.js.map} +0 -0
- /package/www/build/{p-6d382092.entry.js.map → p-32bc925a.entry.js.map} +0 -0
- /package/www/build/{p-f36e7e6b.entry.js.map → p-33d993fe.entry.js.map} +0 -0
- /package/www/build/{p-1a13cd9b.entry.js.map → p-3748979c.entry.js.map} +0 -0
- /package/www/build/{p-20401d48.entry.js.map → p-3a9a120f.entry.js.map} +0 -0
- /package/www/build/{p-0251d009.entry.js.map → p-4f6c86ce.entry.js.map} +0 -0
- /package/www/build/{p-5b3cfc2e.entry.js.map → p-51ebf661.entry.js.map} +0 -0
- /package/www/build/{p-0c9247be.entry.js.map → p-6ea349f6.entry.js.map} +0 -0
- /package/www/build/{p-39b91bfa.entry.js.map → p-7dbd0e3e.entry.js.map} +0 -0
- /package/www/build/{p-aba618c3.entry.js.map → p-89b30fce.entry.js.map} +0 -0
- /package/www/build/{p-f6138bf7.entry.js.map → p-8b3257b4.entry.js.map} +0 -0
- /package/www/build/{p-b38bca77.entry.js.map → p-8c3a7bc1.entry.js.map} +0 -0
- /package/www/build/{p-bb610386.entry.js.map → p-8d2704ee.entry.js.map} +0 -0
- /package/www/build/{p-82e87326.entry.js.map → p-8f4fcd01.entry.js.map} +0 -0
- /package/www/build/{p-cb7381a0.entry.js.map → p-8fb3354e.entry.js.map} +0 -0
- /package/www/build/{p-88c45ed6.entry.js.map → p-904c7fdd.entry.js.map} +0 -0
- /package/www/build/{p-b7d4b886.entry.js.map → p-a5187022.entry.js.map} +0 -0
- /package/www/build/{p-fa02ba25.entry.js.map → p-a52b3dd1.entry.js.map} +0 -0
- /package/www/build/{p-6c5937db.entry.js.map → p-a8f43afd.entry.js.map} +0 -0
- /package/www/build/{p-869ba2b5.entry.js.map → p-b7620e80.entry.js.map} +0 -0
- /package/www/build/{p-a09646a9.entry.js.map → p-bc9237eb.entry.js.map} +0 -0
- /package/www/build/{p-7965766c.entry.js.map → p-ccedd440.entry.js.map} +0 -0
- /package/www/build/{p-8f6ff78c.entry.js.map → p-d6441232.entry.js.map} +0 -0
- /package/www/build/{p-87ea0b0a.entry.js.map → p-df5eeb75.entry.js.map} +0 -0
- /package/www/build/{p-4a7431f6.entry.js.map → p-dfb0e8d8.entry.js.map} +0 -0
- /package/www/build/{p-a2eb700b.entry.js.map → p-efe489a5.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as o,c as t,h as e}from"./p-BcDWN4F1.js";import{P as r}from"./p-DdetsoIY.js";const s=()=>`:host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-default-text);--z-tooltip-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base));--z-tooltip-padding:var(--space-unit)}z-popover{--z-popover-theme--surface:var(--z-tooltip-theme--surface);--z-popover-theme--text:var(--z-tooltip-theme--text);--z-popover-padding:var(--z-tooltip-padding);--z-popover-shadow-filter:var(--z-tooltip-shadow-filter)}:host([dark]) z-popover{--z-popover-theme--surface:var(--color-surface05);--z-popover-theme--text:var(--color-text-inverse)}`;const p=class{constructor(e){o(this,e);this.openChange=t(this,"openChange",7);this.position=r.AUTO;this.dark=false;this.open=false;this.closable=true}onPopoverOpenChange(){this.open=this.popoverEl.open}render(){return e("z-popover",{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as o,c as t,h as e}from"./p-BcDWN4F1.js";import{P as r}from"./p-DdetsoIY.js";const s=()=>`:host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-default-text);--z-tooltip-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base));--z-tooltip-padding:var(--space-unit)}z-popover{--z-popover-theme--surface:var(--z-tooltip-theme--surface);--z-popover-theme--text:var(--z-tooltip-theme--text);--z-popover-padding:var(--z-tooltip-padding);--z-popover-shadow-filter:var(--z-tooltip-shadow-filter)}:host([dark]) z-popover{--z-popover-theme--surface:var(--color-surface05);--z-popover-theme--text:var(--color-text-inverse)}`;const p=class{constructor(e){o(this,e);this.openChange=t(this,"openChange",7);this.position=r.AUTO;this.dark=false;this.open=false;this.closable=true}onPopoverOpenChange(){this.open=this.popoverEl.open}render(){return e("z-popover",{key:"fc20f5c5d66fb5b9dabd41dfb986b28fbedfad9d",ref:o=>this.popoverEl=o,bindTo:this.bindTo,open:this.open,position:this.position,closable:this.closable,center:true,showArrow:true,onOpenChange:o=>this.openChange.emit(o.detail)},e("slot",{key:"5c5a2e8be7183824b50fa87d18b6f26e4bb2c0f7"}))}};p.style=s();export{p as z_tooltip};
|
|
2
|
+
//# sourceMappingURL=p-6ea349f6.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as o,h as r,H as e,d as a}from"./p-BcDWN4F1.js";import{a2 as s}from"./p-DdetsoIY.js";import{a as i}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as o,h as r,H as e,d as a}from"./p-BcDWN4F1.js";import{a2 as s}from"./p-DdetsoIY.js";import{a as i}from"./p-DPrEzmhI.js";import"./p-Q-tWjk7P.js";const c=()=>`:host{display:grid;width:fit-content;padding:calc(var(--space-unit) * 2);background:var(--color-surface01);gap:var(--space-unit);grid-template-columns:repeat(9, calc(var(--space-unit) * 3));grid-template-rows:repeat(5, calc(var(--space-unit) * 3))}:host,*{box-sizing:border-box}button{--border-color:var(--color-surface05);padding:0;border:none;appearance:none;background:none;border-radius:var(--border-radius);cursor:pointer}button[data-color="#FFFFFF00"]{position:relative}button[data-color="#FFFFFF00"]::after{position:absolute;top:0;right:0;width:100%;height:100%;background:linear-gradient( -45deg, transparent 48%, var(--border-color) 48%, var(--border-color) 52%, transparent 52% );border-radius:var(--border-radius);content:""}button[aria-selected="true"]{box-shadow:0 0 0 1px var(--color-white), 0 0 0 3px var(--color-active-primary)}button:focus-visible{box-shadow:var(--shadow-focus-primary)}button .color-swatch{width:calc(var(--space-unit) * 3);height:calc(var(--space-unit) * 3);border:var(--border-size-small) solid var(--border-color);border-radius:var(--border-radius)}button[data-color="#FFFFFF00"]:disabled{--border-color:var(--color-disabled01-icon);cursor:not-allowed}button[data-color="#FFFFFF00"]:disabled .color-swatch{background-color:var(--color-disabled02)}`;const l={it:{"Select a color":"Seleziona un colore","Color swatch":"Campione di colore"},en:{"Select a color":"Select a color","Color swatch":"Color swatch"}};const n=5;const d=9;const h=class{constructor(r){t(this,r);this.colorSelected=o(this,"colorSelected",7);this.lng="it";this.disableTransparent=false;this.colorKeysByRow=[];this._colorButtons=[]}get colorButtons(){if(!this._colorButtons.length){this._colorButtons=Array.from(this.host.shadowRoot.querySelectorAll("button"))}return this._colorButtons}sortColorKeysByRow(){const t=Object.keys(s);const o=[];for(let r=0;r<n;r++){for(let e=0;e<d;e++){const a=e*n+r;if(a<t.length){o.push(t[a])}}}return o}moveFocusTo(t){this.colorButtons.forEach(((o,r)=>o.tabIndex=r===t?0:-1));this.colorButtons[t].focus()}validateTransparentSelection(){if(this.disableTransparent&&this.selectedColor==="#FFFFFF00"){this.selectedColor="#333333"}}emitColorSelected(){this.colorSelected.emit(this.selectedColor)}async setFocus(){this.colorButtons.forEach((t=>t.tabIndex=-1));const t=this.colorButtons.find((t=>t.ariaSelected==="true"))||this.colorButtons.find((t=>!t.disabled));if(!t){return}t.tabIndex=0;setTimeout((()=>{t.focus()}),50);this.host.tabIndex=-1}getNextIndexByKey(t,o,r){const e=Math.floor(t/d);const a=t%d;let s=t;switch(o){case"ArrowRight":{const t=a+1;const o=t>=d?(e+1)%n:e;s=o*d+t%d;if(s>=r){s=0}break}case"ArrowLeft":{const t=a-1;const o=t<0?(e-1+n)%n:e;s=o*d+(t+d)%d;if(s>=r){s=r-1}break}case"ArrowDown":{let t=e+1;let o=a;if(t>=n){t=0;o=(a+1)%d}s=t*d+o;if(s>=r){s=0}break}case"ArrowUp":{let t=e-1;let o=a;if(t<0){t=n-1;o=(a-1+d)%d}s=t*d+o;if(s>=r){s=r-1}break}}return s}handleKeyDown(t){var o,r;const e=t.composedPath()[0];if(!e.dataset.color){return}const a=this.colorButtons.indexOf(e);const s=this.colorButtons.length;if(a<0||!["ArrowRight","ArrowLeft","ArrowDown","ArrowUp"].includes(t.key)){return}let i=a;let c=0;do{i=this.getNextIndexByKey(i,t.key,s);c++}while(c<s&&((o=this.colorButtons[i])===null||o===void 0?void 0:o.disabled));if(i!==a&&i>=0&&i<s&&!((r=this.colorButtons[i])===null||r===void 0?void 0:r.disabled)){this.moveFocusTo(i);t.preventDefault();t.stopPropagation()}}handleBlur(t){const o=t.relatedTarget;if(!i(this.host,o)){this.host.tabIndex=0;this.colorButtons.forEach((t=>t.tabIndex=-1))}}componentWillLoad(){this.colorKeysByRow=this.sortColorKeysByRow()}render(){return r(e,{key:"a20a725ec68d917c9611ee844e33014a63baca19",role:"listbox","aria-label":this.htmlAriaLabel||l[this.lng]["Select a color"],tabIndex:0},this.colorKeysByRow.map((t=>{var o;return r("button",{class:"color-swatch","data-color":t,role:"option","aria-selected":((o=this.selectedColor)===null||o===void 0?void 0:o.toUpperCase())===t.toUpperCase()?"true":"false",tabIndex:-1,onClick:()=>this.selectedColor=t,disabled:this.disableTransparent&&t==="#FFFFFF00"},r("div",{class:"color-swatch",role:"img","aria-roledescription":l[this.lng]["Color swatch"],"aria-label":s[t][this.lng],title:s[t][this.lng],style:{backgroundColor:t}}))})))}get host(){return a(this)}static get watchers(){return{disableTransparent:[{validateTransparentSelection:0}],selectedColor:[{validateTransparentSelection:0},{emitColorSelected:0}]}}};h.style=c();export{h as z_color_picker};
|
|
2
|
+
//# sourceMappingURL=p-7dbd0e3e.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as o,h as a,H as n,d as t}from"./p-BcDWN4F1.js";import{B as i,e as r}from"./p-DdetsoIY.js";const e=()=>`html{scroll-behavior:smooth}z-anchor-navigation nav{display:none;flex-direction:column;justify-content:flex-start;row-gap:calc(var(--space-unit) / 2)}z-anchor-navigation[collapsed] nav{display:flex;margin-top:var(--space-unit)}z-anchor-navigation nav a{display:-webkit-box;overflow:clip;width:100%;box-sizing:border-box;padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);-webkit-box-orient:vertical;font-weight:inherit;-webkit-line-clamp:2;line-clamp:2;overflow-clip-margin:content-box;text-decoration:none}z-anchor-navigation nav>* a{color:inherit}z-anchor-navigation nav * a:not(:only-child){padding-right:calc(var(--space-unit) * 5)}@supports not (overflow-clip-margin: content-box){z-anchor-navigation nav a{display:inline-block;overflow:hidden;-webkit-line-clamp:none;line-clamp:none;text-overflow:ellipsis;white-space:nowrap}}z-anchor-navigation nav>*{position:relative;border-left:var(--border-size-large) solid var(--color-default-icon);color:var(--color-default-text);font-family:var(--font-family-sans);transition:background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out}z-anchor-navigation nav>[data-current]{border-left-color:var(--color-primary01);color:var(--color-primary01);font-weight:var(--font-sb)}z-anchor-navigation nav>*>*:is(z-button,button){position:absolute;top:50%;right:0;transform:translateY(-50%);transition:opacity 0.3s ease-in-out}z-anchor-navigation nav>*:focus:focus-visible,z-anchor-navigation nav>*>*:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}z-anchor-navigation nav button{padding:0;border:none;margin:0;background-color:transparent}@media (min-width: 768px){z-anchor-navigation:not([is-collapsed]) z-button.toggle{display:none !important}z-anchor-navigation:not([is-collapsed]) nav{display:flex}z-anchor-navigation nav>*>:is(z-button,button){opacity:0;pointer-events:none}@media (hover: hover){z-anchor-navigation nav>:is([data-current],:hover,:focus,:focus-within)>:is(z-button,button){fill:var(--color-default-icon);opacity:1;pointer-events:unset}z-anchor-navigation nav>*:hover{border-left-color:var(--color-hover-primary);background-color:var(--color-background);color:var(--color-hover-primary)}}z-anchor-navigation[hide-unselected] nav>*:not([data-current],:hover,:focus,:focus-within){color:transparent;fill:transparent}}`;const s=class{constructor(a){o(this,a);this.hideUnselected=false;this.autoCurrent=true;this.collapsedLabel="salta a";this.isCollapsed=false;this.collapsed=false}setCurrent(){const o=Array.from(this.nav.querySelectorAll("a")).find((o=>o.href===this.host.ownerDocument.location.href));Array.from(this.nav.children).forEach((a=>{const n=a instanceof HTMLAnchorElement?a:a.querySelector("a");const t=n===o;n.setAttribute("aria-current",t.toString());a.toggleAttribute("data-current",t)}))}toggleCollapsed(){this.collapsed=!this.collapsed}componentDidLoad(){if(this.autoCurrent){window.addEventListener("hashchange",this.setCurrent.bind(this));this.setCurrent()}}disconnectedCallback(){window.removeEventListener("hashchange",this.setCurrent)}render(){return a(n,{key:"f2cbf308e24c100b40858ad4370d7fb1b83c91b4",collapsed:this.collapsed,class:"z-scrollbar"},a("z-button",{key:"964c11320f7dff05208327e7f591ea90bad3763c",class:"toggle",size:r.SMALL,variant:i.SECONDARY,icon:this.collapsed?"chevron-up":"chevron-down",onClick:this.toggleCollapsed.bind(this)},this.collapsedLabel),a("nav",{key:"21a8634ee51e4a1a824685e95ef58ed6a87e10e2",ref:o=>this.nav=o},a("slot",{key:"bf93f6bd1d2948839da0e7e103f05ebd55135a33"})))}get host(){return t(this)}};s.style=e();export{s as z_anchor_navigation};
|
|
2
|
+
//# sourceMappingURL=p-89b30fce.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as a,H as i}from"./p-BcDWN4F1.js";const o=()=>`:host{position:relative;display:flex;width:100%;max-width:100%;box-sizing:border-box;flex-direction:row;padding:0;margin:0;font-family:var(--font-family-sans);font-weight:var(--font-rg);list-style:none}@media (min-width: 768px){:host{padding:0 calc(var(--space-unit) * 2)}}`;const e=class{constructor(a){t(this,a)}render(){return a(i,{key:"fb661e3345d1353a2e81bb173334610c9cd7d0ba",role:"navigation"},a("slot",{key:"03437692d75ea6c0367acb4441d1b797398f20b5"}))}};e.style=o();export{e as z_stepper};
|
|
2
|
+
//# sourceMappingURL=p-8b3257b4.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as o,d as n}from"./p-BcDWN4F1.js";import{P as s,g as a}from"./p-DdetsoIY.js";import{a as r}from"./p-C_25lDQa.js";import"./p-Q-tWjk7P.js";const h=()=>`:host,*{box-sizing:border-box}.z-tool{--z-tool-size:calc(var(--space-unit) * 5.5);--z-tool-icon-size:calc(var(--space-unit) * 2.5);position:relative;display:inline-flex;width:var(--z-tool-size);height:var(--z-tool-size);align-items:center;justify-content:center;padding:0;border:none;margin:0;background-color:var(--color-surface01);border-radius:var(--border-radius);cursor:pointer}:host(:is([active],[open])) .z-tool{box-shadow:inset 0 0 0 2px var(--color-primary01)}:host([open]) .z-tool{background:var(--color-primary03)}@media (hover: hover){:host(:hover),:host(.z-tool-tooltip-open){z-index:1}:host(:not([disabled])) .z-tool:hover{background-color:var(--color-primary03)}}.z-tool:focus:focus-visible{background-color:var(--color-primary03);outline:none}z-icon{--z-icon-width:var(--z-tool-icon-size);--z-icon-height:var(--z-tool-icon-size);display:block;fill:var(--color-default-icon)}:host([disabled]) .z-tool{color:var(--color-disabled01-icon);cursor:not-allowed}:host([disabled]) z-icon{fill:var(--color-disabled01-icon)}.z-tool-tooltip{--z-tooltip-padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);--z-tooltip-shadow-filter:drop-shadow(0 4px 8px var(--shadow-color-base));position:relative;z-index:2;font-family:var(--font-family-sans);white-space:nowrap}.z-tool-submenu{z-index:3;border-radius:calc(var(--border-radius) + var(--border-size-small))}.z-tool-submenu ::slotted(z-color-picker){border:var(--border-size-small) solid var(--color-surface03);border-radius:var(--border-radius)}@media (max-width: 767px) and (hover: none){.z-tool-tooltip{display:none !important}}`;const l=()=>`:root{--font-family-sans:"IBM Plex Sans", sans-serif;--font-family-serif:"IBM Plex Serif", serif;--font-lt:300;--font-rg:400;--font-sb:600;--font-bd:700;--font-size-1:0.75rem;--font-size-2:0.875rem;--font-size-3:1rem;--font-size-4:1.125rem;--font-size-5:1.25rem;--font-size-6:1.5rem;--font-size-7:1.75rem;--font-size-8:2rem;--font-size-9:2.25rem;--font-size-10:2.625rem;--font-size-11:3rem;--font-size-12:3.375rem;--font-size-13:3.75rem;--font-size-14:4.25rem;--font-size-15:4.75rem;--font-size-16:5.25rem;--font-size-17:5.75rem;--section-title-1:var(--font-sb) var(--font-size-11) / 1.083 var(--font-family-serif);--section-title-2:var(--font-sb) var(--font-size-10) / 1.142 var(--font-family-serif);--section-title-3:var(--font-sb) var(--font-size-9) / 1.222 var(--font-family-serif);--section-title-4:var(--font-sb) var(--font-size-8) / 1.25 var(--font-family-serif);--section-title-5:var(--font-sb) var(--font-size-7) / 1.2857 var(--font-family-serif);--section-title-6:var(--font-sb) var(--font-size-6) / 1.333 var(--font-family-serif)}.heading-1,.heading-1-sb,.heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.heading-2,.heading-2-sb,.heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.heading-3,.heading-3-sb,.heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.heading-4,.heading-4-sb,.heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.body-1,.body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.body-2,.body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.body-3,.body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.body-4,.body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.body-5,.body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.interactive-1,.interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.interactive-2,.interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.interactive-3,.interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.helper,.helper-sb{font-size:var(--font-size-1);font-style:italic;font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.section-title-1{font:var(--section-title-1)}.section-title-2{font:var(--section-title-2)}.section-title-3{font:var(--section-title-3)}.section-title-4{font:var(--section-title-4)}.section-title-5{font:var(--section-title-5)}.section-title-6{font:var(--section-title-6)}@media (min-width: 1152px){.heading-1,.heading-1-sb,.heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.heading-2,.heading-2-sb,.heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}}@media (max-width: 767px){.mobile-heading-1,.mobile-heading-1-sb,.mobile-heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.mobile-heading-2,.mobile-heading-2-sb,.mobile-heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.mobile-heading-3,.mobile-heading-3-sb,.mobile-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.mobile-heading-4,.mobile-heading-4-sb,.mobile-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.mobile-body-1,.mobile-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.mobile-body-2,.mobile-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.mobile-body-3,.mobile-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.mobile-body-4,.mobile-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.mobile-body-5,.mobile-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.mobile-interactive-1,.mobile-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.mobile-interactive-2,.mobile-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.mobile-interactive-3,.mobile-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.mobile-section-title-1{font:var(--section-title-1)}.mobile-section-title-2{font:var(--section-title-2)}.mobile-section-title-3{font:var(--section-title-3)}.mobile-section-title-4{font:var(--section-title-4)}.mobile-section-title-5{font:var(--section-title-5)}.mobile-section-title-6{font:var(--section-title-6)}.mobile-heading-1-lt,.mobile-heading-2-lt,.mobile-heading-3-lt,.mobile-heading-4-lt{font-weight:var(--font-lt)}.mobile-heading-1-sb,.mobile-heading-2-sb,.mobile-heading-3-sb,.mobile-heading-4-sb,.mobile-body-1-sb,.mobile-body-2-sb,.mobile-body-3-sb,.mobile-body-4-sb,.mobile-body-5-sb,.mobile-interactive-1-sb,.mobile-interactive-2-sb,.mobile-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 768px) and (max-width: 1151px){.tablet-heading-1,.tablet-heading-1-sb,.tablet-heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.tablet-heading-2,.tablet-heading-2-sb,.tablet-heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.tablet-heading-3,.tablet-heading-3-sb,.tablet-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.tablet-heading-4,.tablet-heading-4-sb,.tablet-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.tablet-body-1,.tablet-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.tablet-body-2,.tablet-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.tablet-body-3,.tablet-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.tablet-body-4,.tablet-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.tablet-body-5,.tablet-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.tablet-interactive-1,.tablet-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.tablet-interactive-2,.tablet-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.tablet-interactive-3,.tablet-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.tablet-section-title-1{font:var(--section-title-1)}.tablet-section-title-2{font:var(--section-title-2)}.tablet-section-title-3{font:var(--section-title-3)}.tablet-section-title-4{font:var(--section-title-4)}.tablet-section-title-5{font:var(--section-title-5)}.tablet-section-title-6{font:var(--section-title-6)}.tablet-heading-1-lt,.tablet-heading-2-lt,.tablet-heading-3-lt,.tablet-heading-4-lt{font-weight:var(--font-lt)}.tablet-heading-1-sb,.tablet-heading-2-sb,.tablet-heading-3-sb,.tablet-heading-4-sb,.tablet-body-1-sb,.tablet-body-2-sb,.tablet-body-3-sb,.tablet-body-4-sb,.tablet-body-5-sb,.tablet-interactive-1-sb,.tablet-interactive-2-sb,.tablet-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 1152px) and (max-width: 1365px){.desktop-heading-1,.desktop-heading-1-sb,.desktop-heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.desktop-heading-2,.desktop-heading-2-sb,.desktop-heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.desktop-heading-3,.desktop-heading-3-sb,.desktop-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.desktop-heading-4,.desktop-heading-4-sb,.desktop-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.desktop-body-1,.desktop-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.desktop-body-2,.desktop-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.desktop-body-3,.desktop-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.desktop-body-4,.desktop-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.desktop-body-5,.desktop-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.desktop-interactive-1,.desktop-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.desktop-interactive-2,.desktop-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.desktop-interactive-3,.desktop-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.desktop-section-title-1{font:var(--section-title-1)}.desktop-section-title-2{font:var(--section-title-2)}.desktop-section-title-3{font:var(--section-title-3)}.desktop-section-title-4{font:var(--section-title-4)}.desktop-section-title-5{font:var(--section-title-5)}.desktop-section-title-6{font:var(--section-title-6)}.desktop-heading-1-lt,.desktop-heading-2-lt,.desktop-heading-3-lt,.desktop-heading-4-lt{font-weight:var(--font-lt)}.desktop-heading-1-sb,.desktop-heading-2-sb,.desktop-heading-3-sb,.desktop-heading-4-sb,.desktop-body-1-sb,.desktop-body-2-sb,.desktop-body-3-sb,.desktop-body-4-sb,.desktop-body-5-sb,.desktop-interactive-1-sb,.desktop-interactive-2-sb,.desktop-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 1366px){.wide-heading-1,.wide-heading-1-sb,.wide-heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.wide-heading-2,.wide-heading-2-sb,.wide-heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.wide-heading-3,.wide-heading-3-sb,.wide-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.wide-heading-4,.wide-heading-4-sb,.wide-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.wide-body-1,.wide-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.wide-body-2,.wide-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.wide-body-3,.wide-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.wide-body-4,.wide-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.wide-body-5,.wide-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.wide-interactive-1,.wide-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.wide-interactive-2,.wide-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.wide-interactive-3,.wide-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.wide-section-title-1{font:var(--section-title-1)}.wide-section-title-2{font:var(--section-title-2)}.wide-section-title-3{font:var(--section-title-3)}.wide-section-title-4{font:var(--section-title-4)}.wide-section-title-5{font:var(--section-title-5)}.wide-section-title-6{font:var(--section-title-6)}.wide-heading-1-lt,.wide-heading-2-lt,.wide-heading-3-lt,.wide-heading-4-lt{font-weight:var(--font-lt)}.wide-heading-1-sb,.wide-heading-2-sb,.wide-heading-3-sb,.wide-heading-4-sb,.wide-body-1-sb,.wide-body-2-sb,.wide-body-3-sb,.wide-body-4-sb,.wide-body-5-sb,.wide-interactive-1-sb,.wide-interactive-2-sb,.wide-interactive-3-sb{font-weight:var(--font-sb)}}.heading-1-lt,.heading-2-lt,.heading-3-lt,.heading-4-lt{font-weight:var(--font-lt)}.heading-1-sb,.heading-2-sb,.heading-3-sb,.heading-4-sb,.body-1-sb,.body-2-sb,.body-3-sb,.body-4-sb,.body-5-sb,.interactive-1-sb,.interactive-2-sb,.interactive-3-sb,.helper-sb{font-weight:var(--font-sb)}`;const f=class{constructor(i){t(this,i);this.toggleSubmenu=e(this,"toggleSubmenu",7);this.toggleTooltip=e(this,"toggleTooltip",7);this.tooltipPosition=s.TOP;this.active=false;this.disabled=false;this.open=false;this.tooltipOpen=false;this.hasSlottedContent=false;this.isMobile=false;this.hasNestedOpenTools=false;this.isNested=false;this.handleTooltipOpen=t=>{if(!this.tooltip||this.open||!this.buttonRef.contains(t.target)){return}clearTimeout(this.hoverDelay);this.hoverDelay=setTimeout((()=>{this.tooltipOpen=true}),1e3)};this.handleTooltipClose=t=>{var e;if(!this.tooltip||((e=t.relatedTarget)===null||e===void 0?void 0:e.closest("z-tooltip"))===this.tooltipRef){return}clearTimeout(this.hoverDelay);this.tooltipOpen=false};this.handleClick=()=>{if(this.disabled||!this.hasSlottedContent){return}this.open=!this.open;if(this.open){const t=this.hostElement.querySelector(":scope > z-color-picker");if(t){t.setFocus();return}const e=this.hostElement.querySelector(":scope > z-toolbar z-tool[active]:not(:disabled)")||this.hostElement.querySelector(":scope > z-toolbar z-tool:not(:disabled)");e===null||e===void 0?void 0:e.setFocus()}};this.onTooltipOpenChange=t=>{if(t.target===this.tooltipRef){return}this.tooltipOpen=t.detail.open}}handleOpenChange(){this.toggleSubmenu.emit(this.open)}handleTooltipOpenChange(){this.toggleTooltip.emit(this.tooltipOpen)}handleKeyDown(t){if(!this.open||this.hasNestedOpenTools){return}switch(t.key){case a.ESC:t.stopPropagation();this.open=false;this.setFocus();break;case a.TAB:if(t.shiftKey&&t.target.closest("z-tool:not(:scope)")===this.hostElement){this.open=false}break}}onOutsideClick(t){const e=t.composedPath()[0];if(!this.open||r(this.hostElement,e)||this.hasNestedOpenTools){return}this.open=false}onNestedToolToggle(t){if(t.target===this.hostElement){return}if(t.detail===true){this.hasNestedOpenTools=true;return}this.hasNestedOpenTools=Array.from(this.hostElement.querySelectorAll("z-tool")).some((t=>t.open))}handleColorSelected(t){if(!Array.from(this.hostElement.children).includes(t.target)){return}this.indicatorColor=t.detail;this.open=false;this.setFocus()}handleExternalFocusin(t){const e=t.target;if(!r(this.hostElement,e)){this.open=false}}async setFocus(){if(this.disabled){return}setTimeout((()=>{var t;(t=this.buttonRef)===null||t===void 0?void 0:t.focus()}),50)}async setTabIndex(t){if(!this.buttonRef){return}this.buttonRef.tabIndex=this.disabled?-1:t}async closeTooltip(){clearTimeout(this.hoverDelay);this.tooltipOpen=false}componentWillLoad(){this.hasSlottedContent=this.hostElement.children.length>0;this.isNested=!!this.hostElement.closest("z-tool:not(:scope)");this.mainToolbar=this.hostElement.closest("z-toolbar:not(z-toolbar z-toolbar)");this.hasNestedOpenTools=!!this.hostElement.querySelector("z-tool[open]");this.mql=matchMedia("(max-width: 767px)");this.onMobileViewChange=t=>this.isMobile=t.matches;this.mql.addEventListener("change",this.onMobileViewChange);this.isMobile=this.mql.matches}disconnectedCallback(){var t;clearTimeout(this.hoverDelay);(t=this.mql)===null||t===void 0?void 0:t.removeEventListener("change",this.onMobileViewChange)}render(){return i(o,{key:"877a963cd0017bb4ee4ceee41269a7221c9b5657",class:{"z-tool-tooltip-open":this.tooltipOpen}},i("button",{key:"277956460cb28d4fa82751858e6ec223c60c3742",class:"z-tool",type:"button",ref:t=>this.buttonRef=t,"aria-pressed":this.hasSlottedContent?undefined:this.active?"true":"false","aria-expanded":this.hasSlottedContent?this.open?"true":"false":undefined,"aria-haspopup":this.hasSlottedContent?"true":undefined,"aria-label":this.htmlAriaLabel||this.tooltip||undefined,disabled:this.disabled,onClick:this.handleClick,onMouseEnter:this.handleTooltipOpen,onMouseLeave:this.handleTooltipClose,onFocus:this.handleTooltipOpen,onBlur:this.handleTooltipClose},i("z-icon",{key:"7adc9e77129028185370b067f087190c30ce65b1",ref:t=>this.iconRef=t,name:this.icon,indicatorColor:this.indicatorColor})),this.tooltip&&i("z-tooltip",{key:"1ad7d42bea522fe09f192f6a5437a56aa1c0dfce",class:"z-tool-tooltip",ref:t=>this.tooltipRef=t,bindTo:this.iconRef,open:this.tooltipOpen&&!this.open,position:this.isNested?s.BOTTOM:this.tooltipPosition,dark:true,onMouseLeave:this.handleTooltipClose,onBlur:this.handleTooltipClose,onOpenChange:this.onTooltipOpenChange},i("span",{key:"aa411388fce8b01983fed63a1c27505a53604a8c",class:"body-4"},this.tooltip)),this.hasSlottedContent&&i("z-popover",{key:"018b555d82f0fe05cf1029eabaf645f14f793079",class:"z-tool-submenu",open:this.open,bindTo:this.isMobile&&this.mainToolbar?this.mainToolbar:this.hostElement,center:true,closable:false,position:this.isMobile?s.TOP:s.BOTTOM},i("slot",{key:"cc57b7897e2341151ffa771a0c1d7ed22052faf7"})))}get hostElement(){return n(this)}static get watchers(){return{open:[{handleOpenChange:0}],tooltipOpen:[{handleTooltipOpenChange:0}]}}};f.style=h()+l();export{f as z_tool};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as e,h as i,H as o,d as n}from"./p-BcDWN4F1.js";import{P as s,g as a}from"./p-DdetsoIY.js";import{a as r}from"./p-DPrEzmhI.js";import"./p-Q-tWjk7P.js";const h=()=>`:host,*{box-sizing:border-box}.z-tool{--z-tool-size:calc(var(--space-unit) * 5.5);--z-tool-icon-size:calc(var(--space-unit) * 2.5);position:relative;display:inline-flex;width:var(--z-tool-size);height:var(--z-tool-size);align-items:center;justify-content:center;padding:0;border:none;margin:0;background-color:var(--color-surface01);border-radius:var(--border-radius);cursor:pointer}:host(:is([active],[open])) .z-tool{box-shadow:inset 0 0 0 2px var(--color-primary01)}:host([open]) .z-tool{background:var(--color-primary03)}@media (hover: hover){:host(:hover),:host(.z-tool-tooltip-open){z-index:1}:host(:not([disabled])) .z-tool:hover{background-color:var(--color-primary03)}}.z-tool:focus:focus-visible{background-color:var(--color-primary03);outline:none}z-icon{--z-icon-width:var(--z-tool-icon-size);--z-icon-height:var(--z-tool-icon-size);display:block;fill:var(--color-default-icon)}:host([disabled]) .z-tool{color:var(--color-disabled01-icon);cursor:not-allowed}:host([disabled]) z-icon{fill:var(--color-disabled01-icon)}.z-tool-tooltip{--z-tooltip-padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);--z-tooltip-shadow-filter:drop-shadow(0 4px 8px var(--shadow-color-base));position:relative;z-index:2;font-family:var(--font-family-sans);white-space:nowrap}.z-tool-submenu{z-index:3;border-radius:calc(var(--border-radius) + var(--border-size-small))}.z-tool-submenu ::slotted(z-color-picker){border:var(--border-size-small) solid var(--color-surface03);border-radius:var(--border-radius)}@media (max-width: 767px) and (hover: none){.z-tool-tooltip{display:none !important}}`;const l=()=>`:root{--font-family-sans:"IBM Plex Sans", sans-serif;--font-family-serif:"IBM Plex Serif", serif;--font-lt:300;--font-rg:400;--font-sb:600;--font-bd:700;--font-size-1:0.75rem;--font-size-2:0.875rem;--font-size-3:1rem;--font-size-4:1.125rem;--font-size-5:1.25rem;--font-size-6:1.5rem;--font-size-7:1.75rem;--font-size-8:2rem;--font-size-9:2.25rem;--font-size-10:2.625rem;--font-size-11:3rem;--font-size-12:3.375rem;--font-size-13:3.75rem;--font-size-14:4.25rem;--font-size-15:4.75rem;--font-size-16:5.25rem;--font-size-17:5.75rem;--section-title-1:var(--font-sb) var(--font-size-11) / 1.083 var(--font-family-serif);--section-title-2:var(--font-sb) var(--font-size-10) / 1.142 var(--font-family-serif);--section-title-3:var(--font-sb) var(--font-size-9) / 1.222 var(--font-family-serif);--section-title-4:var(--font-sb) var(--font-size-8) / 1.25 var(--font-family-serif);--section-title-5:var(--font-sb) var(--font-size-7) / 1.2857 var(--font-family-serif);--section-title-6:var(--font-sb) var(--font-size-6) / 1.333 var(--font-family-serif)}.heading-1,.heading-1-sb,.heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.heading-2,.heading-2-sb,.heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.heading-3,.heading-3-sb,.heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.heading-4,.heading-4-sb,.heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.body-1,.body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.body-2,.body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.body-3,.body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.body-4,.body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.body-5,.body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.interactive-1,.interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.interactive-2,.interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.interactive-3,.interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.helper,.helper-sb{font-size:var(--font-size-1);font-style:italic;font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.section-title-1{font:var(--section-title-1)}.section-title-2{font:var(--section-title-2)}.section-title-3{font:var(--section-title-3)}.section-title-4{font:var(--section-title-4)}.section-title-5{font:var(--section-title-5)}.section-title-6{font:var(--section-title-6)}@media (min-width: 1152px){.heading-1,.heading-1-sb,.heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.heading-2,.heading-2-sb,.heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}}@media (max-width: 767px){.mobile-heading-1,.mobile-heading-1-sb,.mobile-heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.mobile-heading-2,.mobile-heading-2-sb,.mobile-heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.mobile-heading-3,.mobile-heading-3-sb,.mobile-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.mobile-heading-4,.mobile-heading-4-sb,.mobile-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.mobile-body-1,.mobile-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.mobile-body-2,.mobile-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.mobile-body-3,.mobile-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.mobile-body-4,.mobile-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.mobile-body-5,.mobile-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.mobile-interactive-1,.mobile-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.mobile-interactive-2,.mobile-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.mobile-interactive-3,.mobile-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.mobile-section-title-1{font:var(--section-title-1)}.mobile-section-title-2{font:var(--section-title-2)}.mobile-section-title-3{font:var(--section-title-3)}.mobile-section-title-4{font:var(--section-title-4)}.mobile-section-title-5{font:var(--section-title-5)}.mobile-section-title-6{font:var(--section-title-6)}.mobile-heading-1-lt,.mobile-heading-2-lt,.mobile-heading-3-lt,.mobile-heading-4-lt{font-weight:var(--font-lt)}.mobile-heading-1-sb,.mobile-heading-2-sb,.mobile-heading-3-sb,.mobile-heading-4-sb,.mobile-body-1-sb,.mobile-body-2-sb,.mobile-body-3-sb,.mobile-body-4-sb,.mobile-body-5-sb,.mobile-interactive-1-sb,.mobile-interactive-2-sb,.mobile-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 768px) and (max-width: 1151px){.tablet-heading-1,.tablet-heading-1-sb,.tablet-heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.tablet-heading-2,.tablet-heading-2-sb,.tablet-heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.tablet-heading-3,.tablet-heading-3-sb,.tablet-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.tablet-heading-4,.tablet-heading-4-sb,.tablet-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.tablet-body-1,.tablet-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.tablet-body-2,.tablet-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.tablet-body-3,.tablet-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.tablet-body-4,.tablet-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.tablet-body-5,.tablet-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.tablet-interactive-1,.tablet-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.tablet-interactive-2,.tablet-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.tablet-interactive-3,.tablet-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.tablet-section-title-1{font:var(--section-title-1)}.tablet-section-title-2{font:var(--section-title-2)}.tablet-section-title-3{font:var(--section-title-3)}.tablet-section-title-4{font:var(--section-title-4)}.tablet-section-title-5{font:var(--section-title-5)}.tablet-section-title-6{font:var(--section-title-6)}.tablet-heading-1-lt,.tablet-heading-2-lt,.tablet-heading-3-lt,.tablet-heading-4-lt{font-weight:var(--font-lt)}.tablet-heading-1-sb,.tablet-heading-2-sb,.tablet-heading-3-sb,.tablet-heading-4-sb,.tablet-body-1-sb,.tablet-body-2-sb,.tablet-body-3-sb,.tablet-body-4-sb,.tablet-body-5-sb,.tablet-interactive-1-sb,.tablet-interactive-2-sb,.tablet-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 1152px) and (max-width: 1365px){.desktop-heading-1,.desktop-heading-1-sb,.desktop-heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.desktop-heading-2,.desktop-heading-2-sb,.desktop-heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.desktop-heading-3,.desktop-heading-3-sb,.desktop-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.desktop-heading-4,.desktop-heading-4-sb,.desktop-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.desktop-body-1,.desktop-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.desktop-body-2,.desktop-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.desktop-body-3,.desktop-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.desktop-body-4,.desktop-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.desktop-body-5,.desktop-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.desktop-interactive-1,.desktop-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.desktop-interactive-2,.desktop-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.desktop-interactive-3,.desktop-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.desktop-section-title-1{font:var(--section-title-1)}.desktop-section-title-2{font:var(--section-title-2)}.desktop-section-title-3{font:var(--section-title-3)}.desktop-section-title-4{font:var(--section-title-4)}.desktop-section-title-5{font:var(--section-title-5)}.desktop-section-title-6{font:var(--section-title-6)}.desktop-heading-1-lt,.desktop-heading-2-lt,.desktop-heading-3-lt,.desktop-heading-4-lt{font-weight:var(--font-lt)}.desktop-heading-1-sb,.desktop-heading-2-sb,.desktop-heading-3-sb,.desktop-heading-4-sb,.desktop-body-1-sb,.desktop-body-2-sb,.desktop-body-3-sb,.desktop-body-4-sb,.desktop-body-5-sb,.desktop-interactive-1-sb,.desktop-interactive-2-sb,.desktop-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 1366px){.wide-heading-1,.wide-heading-1-sb,.wide-heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.wide-heading-2,.wide-heading-2-sb,.wide-heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.wide-heading-3,.wide-heading-3-sb,.wide-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.wide-heading-4,.wide-heading-4-sb,.wide-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.wide-body-1,.wide-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.wide-body-2,.wide-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.wide-body-3,.wide-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.wide-body-4,.wide-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.wide-body-5,.wide-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.wide-interactive-1,.wide-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.wide-interactive-2,.wide-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.wide-interactive-3,.wide-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.wide-section-title-1{font:var(--section-title-1)}.wide-section-title-2{font:var(--section-title-2)}.wide-section-title-3{font:var(--section-title-3)}.wide-section-title-4{font:var(--section-title-4)}.wide-section-title-5{font:var(--section-title-5)}.wide-section-title-6{font:var(--section-title-6)}.wide-heading-1-lt,.wide-heading-2-lt,.wide-heading-3-lt,.wide-heading-4-lt{font-weight:var(--font-lt)}.wide-heading-1-sb,.wide-heading-2-sb,.wide-heading-3-sb,.wide-heading-4-sb,.wide-body-1-sb,.wide-body-2-sb,.wide-body-3-sb,.wide-body-4-sb,.wide-body-5-sb,.wide-interactive-1-sb,.wide-interactive-2-sb,.wide-interactive-3-sb{font-weight:var(--font-sb)}}.heading-1-lt,.heading-2-lt,.heading-3-lt,.heading-4-lt{font-weight:var(--font-lt)}.heading-1-sb,.heading-2-sb,.heading-3-sb,.heading-4-sb,.body-1-sb,.body-2-sb,.body-3-sb,.body-4-sb,.body-5-sb,.interactive-1-sb,.interactive-2-sb,.interactive-3-sb,.helper-sb{font-weight:var(--font-sb)}`;const f=class{constructor(i){t(this,i);this.toggleSubmenu=e(this,"toggleSubmenu",7);this.toggleTooltip=e(this,"toggleTooltip",7);this.tooltipPosition=s.TOP;this.active=false;this.disabled=false;this.open=false;this.tooltipOpen=false;this.hasSlottedContent=false;this.isMobile=false;this.hasNestedOpenTools=false;this.isNested=false;this.handleTooltipOpen=t=>{if(!this.tooltip||this.open||!this.buttonRef.contains(t.target)){return}clearTimeout(this.hoverDelay);this.hoverDelay=setTimeout((()=>{this.tooltipOpen=true}),1e3)};this.handleTooltipClose=t=>{var e;if(!this.tooltip||((e=t.relatedTarget)===null||e===void 0?void 0:e.closest("z-tooltip"))===this.tooltipRef){return}clearTimeout(this.hoverDelay);this.tooltipOpen=false};this.handleClick=()=>{if(this.disabled||!this.hasSlottedContent){return}this.open=!this.open;if(this.open){const t=this.hostElement.querySelector(":scope > z-color-picker");if(t){t.setFocus();return}const e=this.hostElement.querySelector(":scope > z-toolbar z-tool[active]:not(:disabled)")||this.hostElement.querySelector(":scope > z-toolbar z-tool:not(:disabled)");e===null||e===void 0?void 0:e.setFocus()}};this.onTooltipOpenChange=t=>{if(t.target===this.tooltipRef){return}this.tooltipOpen=t.detail.open}}handleOpenChange(){this.toggleSubmenu.emit(this.open)}handleTooltipOpenChange(){this.toggleTooltip.emit(this.tooltipOpen)}handleKeyDown(t){if(!this.open||this.hasNestedOpenTools){return}switch(t.key){case a.ESC:t.stopPropagation();this.open=false;this.setFocus();break;case a.TAB:if(t.shiftKey&&t.target.closest("z-tool:not(:scope)")===this.hostElement){this.open=false}break}}onOutsideClick(t){const e=t.composedPath()[0];if(!this.open||r(this.hostElement,e)||this.hasNestedOpenTools){return}this.open=false}onNestedToolToggle(t){if(t.target===this.hostElement){return}if(t.detail===true){this.hasNestedOpenTools=true;return}this.hasNestedOpenTools=Array.from(this.hostElement.querySelectorAll("z-tool")).some((t=>t.open))}handleColorSelected(t){if(!Array.from(this.hostElement.children).includes(t.target)){return}this.indicatorColor=t.detail;this.open=false;this.setFocus()}handleExternalFocusin(t){const e=t.target;if(!r(this.hostElement,e)){this.open=false}}async setFocus(){if(this.disabled){return}setTimeout((()=>{var t;(t=this.buttonRef)===null||t===void 0?void 0:t.focus()}),50)}async setTabIndex(t){if(!this.buttonRef){return}this.buttonRef.tabIndex=this.disabled?-1:t}async closeTooltip(){clearTimeout(this.hoverDelay);this.tooltipOpen=false}componentWillLoad(){this.hasSlottedContent=this.hostElement.children.length>0;this.isNested=!!this.hostElement.closest("z-tool:not(:scope)");this.mainToolbar=this.hostElement.closest("z-toolbar:not(z-toolbar z-toolbar)");this.hasNestedOpenTools=!!this.hostElement.querySelector("z-tool[open]");this.mql=matchMedia("(max-width: 767px)");this.onMobileViewChange=t=>this.isMobile=t.matches;this.mql.addEventListener("change",this.onMobileViewChange);this.isMobile=this.mql.matches}disconnectedCallback(){var t;clearTimeout(this.hoverDelay);(t=this.mql)===null||t===void 0?void 0:t.removeEventListener("change",this.onMobileViewChange)}render(){return i(o,{key:"6d82ae454718b00d21e6193325bc223de3409f7a",class:{"z-tool-tooltip-open":this.tooltipOpen}},i("button",{key:"79735e5831762281fef55e7033c6660a8b97de74",class:"z-tool",type:"button",ref:t=>this.buttonRef=t,"aria-pressed":this.hasSlottedContent?undefined:this.active?"true":"false","aria-expanded":this.hasSlottedContent?this.open?"true":"false":undefined,"aria-haspopup":this.hasSlottedContent?"true":undefined,"aria-label":this.htmlAriaLabel||this.tooltip||undefined,disabled:this.disabled,onClick:this.handleClick,onMouseEnter:this.handleTooltipOpen,onMouseLeave:this.handleTooltipClose,onFocus:this.handleTooltipOpen,onBlur:this.handleTooltipClose},i("z-icon",{key:"79be05619def07fd8a73812a8905f15f719fce83",ref:t=>this.iconRef=t,name:this.icon,indicatorColor:this.indicatorColor})),this.tooltip&&i("z-tooltip",{key:"9b5aa9d7f06b1ff6408f485c910a905c4c62d3e4",class:"z-tool-tooltip",ref:t=>this.tooltipRef=t,bindTo:this.iconRef,open:this.tooltipOpen&&!this.open,position:this.isNested?s.BOTTOM:this.tooltipPosition,dark:true,onMouseLeave:this.handleTooltipClose,onBlur:this.handleTooltipClose,onOpenChange:this.onTooltipOpenChange},i("span",{key:"82c6f40fc3a4d4932ea9ef8e05f02c2c8d5eaddf",class:"body-4"},this.tooltip)),this.hasSlottedContent&&i("z-popover",{key:"33dcbe345ca34c79720ed7a17eda2f5ab0561e90",class:"z-tool-submenu",open:this.open,bindTo:this.isMobile&&this.mainToolbar?this.mainToolbar:this.hostElement,center:true,closable:false,position:this.isMobile?s.TOP:s.BOTTOM},i("slot",{key:"1a42cca4cd67850cff48043819e144fc2b6ea47e"})))}get hostElement(){return n(this)}static get watchers(){return{open:[{handleOpenChange:0}],tooltipOpen:[{handleTooltipOpenChange:0}]}}};f.style=h()+l();export{f as z_tool};
|
|
2
|
+
//# sourceMappingURL=p-8c3a7bc1.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,d as o}from"./p-BcDWN4F1.js";import{e as s,I as a,i as r,g as n,l}from"./p-DdetsoIY.js";import{r as c,e as h,b as d}from"./p-C_25lDQa.js";import"./p-Q-tWjk7P.js";const p=()=>`.z-label{display:block;padding-bottom:var(--space-unit);color:var(--color-default-text);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);text-align:left;text-transform:uppercase}`;const m=()=>`:host{display:block;min-width:290px;color:var(--color-form-default-text);fill:var(--color-form-default-icon);font-family:var(--font-family-sans)}:host>div.fixed{position:relative}:host>div>.header{position:relative;z-index:10;display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--color-form-surface04);margin:0;background-color:var(--color-form-background);border-radius:var(--border-radius-small);cursor:pointer}:host([size="small"])>div>.header{min-height:34px;font-size:var(--font-size-2)}:host([size="x-small"])>div>.header{min-height:30px;font-size:var(--font-size-2)}:host>div>.header:hover{outline:var(--border-size-medium) solid var(--color-form-surface04);outline-offset:-2px}:host>div>div.header:focus:focus-visible{z-index:16;box-shadow:var(--shadow-focus-primary);outline:none}:host>div>.header>span.body-3>span{font-weight:var(--font-sb)}:host>div>.header>z-icon{fill:var(--color-form-default-icon);transform:rotate(360deg);transition:all 200ms linear}:host>div>.header>z-icon.small,:host>div>.header>z-icon.x-small{--z-icon-width:16px;--z-icon-height:16px}:host>div.open>.header{border:var(--border-size-small) solid var(--color-form-active-primary);border-radius:var(--border-radius-small) var(--border-radius-small) 0 0}:host>div.disabled{pointer-events:none}:host>div.disabled .header{border-color:var(--color-form-disabled03);fill:var(--color-form-disabled01-icon)}:host>div.disabled .header>span.body-3{color:var(--color-form-disabled03)}:host>div.disabled .header>z-icon:last-child{fill:var(--color-form-disabled01-icon)}:host>div.open>.header>z-icon{fill:var(--color-form-default-icon);transform:rotate(180deg);transition:all 200ms linear}:host>div>div.open-combo-data{display:none}:host>div.open>div.open-combo-data{position:relative;z-index:12;display:block;padding:var(--space-unit) calc(var(--space-unit) * 2);border:var(--border-size-small) solid var(--color-form-surface03);border-top:0;background-color:var(--color-form-background);border-radius:0;box-shadow:var(--shadow-2)}:host .open .open-combo-data z-input .z-label{color:var(--color-form-default-text)}:host>div.open>div.open-combo-data>div>div{overflow:auto;max-height:235px;padding:0;padding-left:var(--space-unit);margin-left:calc(var(--space-unit) * -1);}:host>div.open>div.open-combo-data>z-input{width:100%;margin-bottom:calc(var(--space-unit) * 2)}:host>div.open>div.open-combo-data>div>div>ul{max-height:235px;padding:0 calc(var(--space-unit) * 0.5);margin:0}:host .open-combo-data z-list-element{--background-color-list-element:var(--color-form-background);--background-hover-color-list-element:var(--color-form-surface03);--background-active-color-list-element:var(--color-form-surface03)}:host .open-combo-data z-list-element[disabled]{pointer-events:none}:host .open-combo-data z-list-element .option-wrap{display:flex;flex-direction:row;align-items:center;cursor:pointer;gap:var(--space-unit)}:host .open-combo-data z-list-element[size="medium"] .option-wrap,:host .open-combo-data z-list-element[size="small"] .option-wrap{--z-icon-width:16px;--z-icon-height:16px;font-size:var(--font-size-2);gap:calc(var(--space-unit) / 2)}:host .open-combo-data z-list-element .option-wrap>z-icon{fill:var(--color-primary01)}:host .open-combo-data z-list-element[disabled] .option-wrap>z-icon{fill:var(--color-disabled01)}:host .open-combo-data z-list-element .option-wrap>z-icon.focused{border-radius:var(--border-radius-small);box-shadow:var(--shadow-focus-primary);outline:none}:host .open-combo-data z-list-element .option-wrap>[role="option"]:focus,:host .open-combo-data z-list-element .option-wrap>[role="option"]:focus-visible{outline:none}::-webkit-scrollbar{width:6px;background:linear-gradient(to right, transparent 0 1px, var(--gray200) 1px 5px, transparent 5px 6px)}::-webkit-scrollbar-thumb{background-color:var(--color-primary01)}::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}@supports not selector(::-webkit-scrollbar-track){:host{scrollbar-color:var(--color-primary01) transparent}}:host>div.open>z-input{position:relative;z-index:1;width:238px;margin:0 calc(var(--space-unit) * 2);color:var(--color-form-active-primary)}:host>div.open>div.open-combo-data>div>div.search{overflow:hidden;max-height:none;margin-top:0}:host>div.open>div.open-combo-data>div>div.search>ul{overflow:auto;max-height:180px;padding:var(--space-unit) calc(var(--space-unit) * 2)}:host .open .open-combo-data .search .no-results{display:flex;align-items:center;column-gap:var(--space-unit)}:host>.open>.open-combo-data .search .close-search{display:flex;justify-content:center}:host>div.open>div.open-combo-data>div>div.search .close-search>a{display:inline-block;height:44px;color:var(--color-form-active-primary);cursor:pointer;font-size:14px;font-weight:var(--font-sb);line-height:44px;text-align:center;text-transform:uppercase}:host>div.open>div.open-combo-data>div>div.search .close-search>a:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 2) calc(var(--space-unit) * 1.5);border-bottom:var(--border-size-small) solid var(--gray800);margin-bottom:var(--space-unit);margin-left:calc(var(--space-unit) * -1);text-align:left}:host([size="small"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 0.5)}:host([size="x-small"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:var(--space-unit) calc(var(--space-unit) * 0.5)}`;const u=class{watchItems(){this.itemsList=typeof this.items==="string"?JSON.parse(this.items):this.items;this.selectedCounter=this.itemsList.filter((t=>t.checked)).length;this.updateRenderItemsList()}watchSearchValue(){this.filterItems(this.searchValue)}emitComboboxChange(){this.comboboxChange.emit({id:this.inputid,items:this.itemsList})}constructor(i){t(this,i);this.comboboxChange=e(this,"comboboxChange",7);this.inputid=`combo-${c()}`;this.disabled=false;this.hassearch=false;this.noresultslabel="Nessun risultato";this.isopen=false;this.isfixed=false;this.hascheckall=false;this.checkalltext="Seleziona tutti";this.uncheckalltext="Deseleziona tutti";this.maxcheckableitems=0;this.size=s.BIG;this.renderItemsList=[];this.focusedItemId="";this.itemsList=[];this.inputType=a.TEXT;this.toggleComboBox=this.toggleComboBox.bind(this);this.closeFilterItems=this.closeFilterItems.bind(this)}componentWillLoad(){this.watchItems()}componentWillRender(){this.selectedCounter=this.itemsList.filter((t=>t.checked)).length}getControlToListSize(){switch(this.size){case s.X_SMALL:return r.SMALL;case s.SMALL:return r.MEDIUM;default:return r.LARGE}}getOptionId(t){return`${this.inputid}-option-${t.id?h(`${t.id}`):h(`${t.name}`)}`}getCheckAllOptionId(){return`${this.inputid}-check-all`}allOptionsSelected(){return this.selectedCounter===this.itemsList.length}hasReachedMaxSelections(){return!!(this.maxcheckableitems&&this.selectedCounter>=this.maxcheckableitems)}handleHeaderKeyDown(t){if(t.code===n.ENTER&&!this.focusedItemId){this.toggleComboBox()}if(!this.isopen||this.hassearch){return}switch(t.code){case n.SPACE:case n.ENTER:if(this.focusedItemId){t.preventDefault();this.checkOption(this.focusedItemId)}break;case n.ESC:if(this.focusedItemId){this.focusedItemId=""}break;case n.ARROW_DOWN:case n.ARROW_UP:this.handleArrowsNavigation(t);break}}handleInputKeyDown(t){switch(t.code){case n.ENTER:case n.SPACE:if(this.focusedItemId){t.preventDefault();this.checkOption(this.focusedItemId);break}break;case n.ARROW_DOWN:case n.ARROW_UP:this.handleArrowsNavigation(t);break;case n.ESC:if(this.focusedItemId){this.focusedItemId="";break}this.closeFilterItems();break;case n.TAB:this.focusedItemId="";break}}checkOption(t){if(t===this.getCheckAllOptionId()){this.itemsList=this.itemsList.map((t=>Object.assign(Object.assign({},t),{checked:!this.allOptionsSelected()})));this.focusedItemId=this.getCheckAllOptionId()}else{this.itemsList=this.itemsList.map((e=>{if(t===this.getOptionId(e)){e.checked=!e.checked}return e}))}this.updateRenderItemsList();this.emitComboboxChange()}handleArrowsNavigation(t){if(![n.ARROW_DOWN,n.ARROW_UP].includes(t.code)||!this.isopen){return}t.preventDefault();t.stopPropagation();const e=this.focusedItemId?this.element.shadowRoot.querySelector(`#${this.focusedItemId}`):null;const i=Array.from(this.element.shadowRoot.querySelectorAll('[role="option"]'));if(!i.length){return}const o=e?i.indexOf(e):null;const s=0;const a=i.length-1;let r=null;if(t.code===n.ARROW_DOWN){r=o===null?i[s]:i[o+1]||i[a]}else if(t.code===n.ARROW_UP){r=o===null?i[a]:i[o-1]||i[s]}this.focusedItemId=r.id;r.scrollIntoView({block:"nearest",container:"nearest"})}updateRenderItemsList(){if(this.searchValue){this.filterItems(this.searchValue)}else{this.resetRenderItemsList()}}resetRenderItemsList(){const t=[];this.itemsList.forEach((e=>{t.push(Object.assign({},e))}));this.renderItemsList=t}filterItems(t){if(!t){return this.closeFilterItems()}this.resetRenderItemsList();this.renderItemsList=this.renderItemsList.filter((e=>{const i=e.name.toUpperCase().indexOf(t.toUpperCase());const o=i+t.length;const s=e.name.substring(0,i)+"<strong>"+e.name.substring(i,o)+"</strong>"+e.name.substring(o,e.name.length);e.name=s;return i>=0}))}closeFilterItems(){this.searchValue="";this.resetRenderItemsList()}toggleComboBox(){this.isopen=!this.isopen}getHeaderAriaLabel(){if(!this.label||this.selectedCounter<=0){return undefined}const t=this.selectedCounter===1?"elemento selezionato":"elementi selezionati";return`${this.label}: ${this.selectedCounter} ${t}`}getComboboxA11yAttributes(t){const e="combobox";const i=this.isopen?"true":"false";const o=this.isopen?this.focusedItemId:"";const s=`${this.inputid}_list`;if(t){return{role:e,"aria-label":this.htmlAriaLabel,"html-aria-expanded":i,"html-aria-activedescendant":o,"html-aria-controls":s}}return{role:e,"aria-expanded":i,"aria-activedescendant":o,"aria-controls":s}}renderHeader(){const t=!this.hassearch?this.getComboboxA11yAttributes(false):{};return i("div",Object.assign({class:"header",onClick:()=>this.toggleComboBox(),onKeyDown:t=>this.handleHeaderKeyDown(t),role:"button",tabindex:0,"aria-controls":"open-combo-data","aria-expanded":this.isopen?"true":"false","aria-label":this.getHeaderAriaLabel()},t),i("span",{class:"body-3"},this.label,i("span",null,this.selectedCounter>0&&` (${this.selectedCounter})`)),i("z-icon",{name:"caret-down",class:this.size}))}renderContent(){return i("div",{id:"open-combo-data",class:"open-combo-data"},this.hassearch&&this.renderSearchInput(),i("div",{role:"listbox","aria-label":this.label,"aria-multiselectable":"true",id:`${this.inputid}_list`,"aria-owns":`${this.hascheckall?`${this.getCheckAllOptionId()} `:``}${this.itemsList.map((t=>this.getOptionId(t))).join(" ")}`},this.renderItems()))}renderItems(){return i("div",{class:this.searchValue&&"search",tabIndex:-1,role:"presentation"},this.renderList(this.renderItemsList))}renderItem(t,e,o){const s=this.getOptionId(t);const a=!t.checked&&this.hasReachedMaxSelections();return i("z-list-element",{htmlTabindex:-1,dividerType:e!==o-1?l.ELEMENT:l.NONE,size:this.getControlToListSize(),role:"presentation",disabled:!!a},i("span",{class:"option-wrap",role:"presentation",onClick:()=>{this.focusedItemId="";this.checkOption(s)}},i("z-icon",{name:t.checked?"checkbox-checked":"checkbox",class:this.focusedItemId===s?"focused":""}),i("span",{id:s,role:a?"presentation":"option","aria-selected":t.checked?"true":"false","aria-label":a?undefined:d(t.name)},i("span",{"aria-hidden":"true",innerHTML:t.name}))))}renderList(t){if(!t){return}if(!t.length&&this.searchValue){return this.renderNoSearchResults()}if(this.hasgroupitems){return this.renderGroups(t)}return i("ul",{role:"presentation"},this.renderCheckAll(),t.map(((e,i)=>this.renderItem(e,i,t.length))))}renderGroups(t){const e=t.reduce(((e,i,o)=>{var s;const a=i.category||"Altra categoria";const r=this.renderItem(i,o,t.length);e[a]=(s=e[a])!==null&&s!==void 0?s:[];e[a].push(r);return e}),{});const o=Object.entries(e).map((([t,e],o)=>i("z-list-group",{size:this.getControlToListSize(),"divider-type":l.ELEMENT,"aria-labelledby":`${this.inputid}_list_group_${o}`},i("span",{class:"body-3-sb z-list-group-title",slot:"header-title",id:`${this.inputid}_list_group_${o}`,"aria-hidden":"true"},t),e.map((t=>t)))));return i("ul",{role:"presentation"},this.renderCheckAll(),o)}renderNoSearchResults(){return i("div",{class:"no-results"},i("span",null,this.noresultslabel))}renderSearchInput(){return i("z-input",Object.assign({htmlid:`${this.inputid}_search`,label:this.searchlabel,placeholder:this.searchplaceholder,htmltitle:this.searchtitle,type:this.inputType,value:this.searchValue,message:false,size:this.size,"html-aria-autocomplete":"list"},this.getComboboxA11yAttributes(true),{onKeyDown:t=>this.handleInputKeyDown(t),onInputChange:t=>{this.searchValue=t.detail.value;this.focusedItemId=""}}))}renderCheckAll(){if(!this.hascheckall||this.searchValue){return}const t=this.getCheckAllOptionId();const e=this.allOptionsSelected();const o=this.hasReachedMaxSelections()||this.maxcheckableitems&&this.maxcheckableitems<this.itemsList.length;return i("z-list-element",{class:"check-all-wrapper",role:"presentation",htmlTabindex:-1,dividerType:l.ELEMENT,dividerColor:"gray800",size:this.getControlToListSize(),disabled:!!o},i("span",{class:"option-wrap",role:"presentation",onClick:()=>this.checkOption(t)},i("z-icon",{name:e?"checkbox-checked":"checkbox",class:this.focusedItemId===t?"focused":""}),i("span",{id:t,role:o?"presentation":"option","aria-selected":e?"true":"false"},e?this.uncheckalltext:this.checkalltext)))}render(){return i("div",{key:"a2df3543d11b1e568d1aa397a0cc4acd78496a1b","data-action":`combo-${this.inputid}`,class:{open:this.isopen,fixed:this.isfixed,disabled:this.disabled},id:this.inputid},this.renderHeader(),!this.disabled&&this.renderContent())}get element(){return o(this)}static get watchers(){return{items:[{watchItems:0}],searchValue:[{watchSearchValue:0}]}}};u.style=p()+m();export{u as z_combobox};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as e,h as i,d as o}from"./p-BcDWN4F1.js";import{e as s,I as a,i as r,g as n,l}from"./p-DdetsoIY.js";import{r as c,e as h,b as d}from"./p-DPrEzmhI.js";import"./p-Q-tWjk7P.js";const p=()=>`.z-label{display:block;padding-bottom:var(--space-unit);color:var(--color-default-text);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);text-align:left;text-transform:uppercase}`;const m=()=>`:host{display:block;min-width:290px;color:var(--color-form-default-text);fill:var(--color-form-default-icon);font-family:var(--font-family-sans)}:host>div.fixed{position:relative}:host>div>.header{position:relative;z-index:10;display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--color-form-surface04);margin:0;background-color:var(--color-form-background);border-radius:var(--border-radius-small);cursor:pointer}:host([size="small"])>div>.header{min-height:34px;font-size:var(--font-size-2)}:host([size="x-small"])>div>.header{min-height:30px;font-size:var(--font-size-2)}:host>div>.header:hover{outline:var(--border-size-medium) solid var(--color-form-surface04);outline-offset:-2px}:host>div>div.header:focus:focus-visible{z-index:16;box-shadow:var(--shadow-focus-primary);outline:none}:host>div>.header>span.body-3>span{font-weight:var(--font-sb)}:host>div>.header>z-icon{fill:var(--color-form-default-icon);transform:rotate(360deg);transition:all 200ms linear}:host>div>.header>z-icon.small,:host>div>.header>z-icon.x-small{--z-icon-width:16px;--z-icon-height:16px}:host>div.open>.header{border:var(--border-size-small) solid var(--color-form-active-primary);border-radius:var(--border-radius-small) var(--border-radius-small) 0 0}:host>div.disabled{pointer-events:none}:host>div.disabled .header{border-color:var(--color-form-disabled03);fill:var(--color-form-disabled01-icon)}:host>div.disabled .header>span.body-3{color:var(--color-form-disabled03)}:host>div.disabled .header>z-icon:last-child{fill:var(--color-form-disabled01-icon)}:host>div.open>.header>z-icon{fill:var(--color-form-default-icon);transform:rotate(180deg);transition:all 200ms linear}:host>div>div.open-combo-data{display:none}:host>div.open>div.open-combo-data{position:relative;z-index:12;display:block;padding:var(--space-unit) calc(var(--space-unit) * 2);border:var(--border-size-small) solid var(--color-form-surface03);border-top:0;background-color:var(--color-form-background);border-radius:0;box-shadow:var(--shadow-2)}:host .open .open-combo-data z-input .z-label{color:var(--color-form-default-text)}:host>div.open>div.open-combo-data>div>div{overflow:auto;max-height:235px;padding:0;padding-left:var(--space-unit);margin-left:calc(var(--space-unit) * -1);}:host>div.open>div.open-combo-data>z-input{width:100%;margin-bottom:calc(var(--space-unit) * 2)}:host>div.open>div.open-combo-data>div>div>ul{max-height:235px;padding:0 calc(var(--space-unit) * 0.5);margin:0}:host .open-combo-data z-list-element{--background-color-list-element:var(--color-form-background);--background-hover-color-list-element:var(--color-form-surface03);--background-active-color-list-element:var(--color-form-surface03)}:host .open-combo-data z-list-element[disabled]{pointer-events:none}:host .open-combo-data z-list-element .option-wrap{display:flex;flex-direction:row;align-items:center;cursor:pointer;gap:var(--space-unit)}:host .open-combo-data z-list-element[size="medium"] .option-wrap,:host .open-combo-data z-list-element[size="small"] .option-wrap{--z-icon-width:16px;--z-icon-height:16px;font-size:var(--font-size-2);gap:calc(var(--space-unit) / 2)}:host .open-combo-data z-list-element .option-wrap>z-icon{fill:var(--color-primary01)}:host .open-combo-data z-list-element[disabled] .option-wrap>z-icon{fill:var(--color-disabled01)}:host .open-combo-data z-list-element .option-wrap>z-icon.focused{border-radius:var(--border-radius-small);box-shadow:var(--shadow-focus-primary);outline:none}:host .open-combo-data z-list-element .option-wrap>[role="option"]:focus,:host .open-combo-data z-list-element .option-wrap>[role="option"]:focus-visible{outline:none}::-webkit-scrollbar{width:6px;background:linear-gradient(to right, transparent 0 1px, var(--gray200) 1px 5px, transparent 5px 6px)}::-webkit-scrollbar-thumb{background-color:var(--color-primary01)}::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}@supports not selector(::-webkit-scrollbar-track){:host{scrollbar-color:var(--color-primary01) transparent}}:host>div.open>z-input{position:relative;z-index:1;width:238px;margin:0 calc(var(--space-unit) * 2);color:var(--color-form-active-primary)}:host>div.open>div.open-combo-data>div>div.search{overflow:hidden;max-height:none;margin-top:0}:host>div.open>div.open-combo-data>div>div.search>ul{overflow:auto;max-height:180px;padding:var(--space-unit) calc(var(--space-unit) * 2)}:host .open .open-combo-data .search .no-results{display:flex;align-items:center;column-gap:var(--space-unit)}:host>.open>.open-combo-data .search .close-search{display:flex;justify-content:center}:host>div.open>div.open-combo-data>div>div.search .close-search>a{display:inline-block;height:44px;color:var(--color-form-active-primary);cursor:pointer;font-size:14px;font-weight:var(--font-sb);line-height:44px;text-align:center;text-transform:uppercase}:host>div.open>div.open-combo-data>div>div.search .close-search>a:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 2) calc(var(--space-unit) * 1.5);border-bottom:var(--border-size-small) solid var(--gray800);margin-bottom:var(--space-unit);margin-left:calc(var(--space-unit) * -1);text-align:left}:host([size="small"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 0.5)}:host([size="x-small"])>div.open>div.open-combo-data>div>div.check-all-wrapper{padding:var(--space-unit) calc(var(--space-unit) * 0.5)}`;const u=class{watchItems(){this.itemsList=typeof this.items==="string"?JSON.parse(this.items):this.items;this.selectedCounter=this.itemsList.filter((t=>t.checked)).length;this.updateRenderItemsList()}watchSearchValue(){this.filterItems(this.searchValue)}emitComboboxChange(){this.comboboxChange.emit({id:this.inputid,items:this.itemsList})}constructor(i){t(this,i);this.comboboxChange=e(this,"comboboxChange",7);this.inputid=`combo-${c()}`;this.disabled=false;this.hassearch=false;this.noresultslabel="Nessun risultato";this.isopen=false;this.isfixed=false;this.hascheckall=false;this.checkalltext="Seleziona tutti";this.uncheckalltext="Deseleziona tutti";this.maxcheckableitems=0;this.size=s.BIG;this.renderItemsList=[];this.focusedItemId="";this.itemsList=[];this.inputType=a.TEXT;this.toggleComboBox=this.toggleComboBox.bind(this);this.closeFilterItems=this.closeFilterItems.bind(this)}componentWillLoad(){this.watchItems()}componentWillRender(){this.selectedCounter=this.itemsList.filter((t=>t.checked)).length}getControlToListSize(){switch(this.size){case s.X_SMALL:return r.SMALL;case s.SMALL:return r.MEDIUM;default:return r.LARGE}}getOptionId(t){return`${this.inputid}-option-${t.id?h(`${t.id}`):h(`${t.name}`)}`}getCheckAllOptionId(){return`${this.inputid}-check-all`}allOptionsSelected(){return this.selectedCounter===this.itemsList.length}hasReachedMaxSelections(){return!!(this.maxcheckableitems&&this.selectedCounter>=this.maxcheckableitems)}handleHeaderKeyDown(t){if(t.code===n.ENTER&&!this.focusedItemId){this.toggleComboBox()}if(!this.isopen||this.hassearch){return}switch(t.code){case n.SPACE:case n.ENTER:if(this.focusedItemId){t.preventDefault();this.checkOption(this.focusedItemId)}break;case n.ESC:if(this.focusedItemId){this.focusedItemId=""}break;case n.ARROW_DOWN:case n.ARROW_UP:this.handleArrowsNavigation(t);break}}handleInputKeyDown(t){switch(t.code){case n.ENTER:case n.SPACE:if(this.focusedItemId){t.preventDefault();this.checkOption(this.focusedItemId);break}break;case n.ARROW_DOWN:case n.ARROW_UP:this.handleArrowsNavigation(t);break;case n.ESC:if(this.focusedItemId){this.focusedItemId="";break}this.closeFilterItems();break;case n.TAB:this.focusedItemId="";break}}checkOption(t){if(t===this.getCheckAllOptionId()){this.itemsList=this.itemsList.map((t=>Object.assign(Object.assign({},t),{checked:!this.allOptionsSelected()})));this.focusedItemId=this.getCheckAllOptionId()}else{this.itemsList=this.itemsList.map((e=>{if(t===this.getOptionId(e)){e.checked=!e.checked}return e}))}this.updateRenderItemsList();this.emitComboboxChange()}handleArrowsNavigation(t){if(![n.ARROW_DOWN,n.ARROW_UP].includes(t.code)||!this.isopen){return}t.preventDefault();t.stopPropagation();const e=this.focusedItemId?this.element.shadowRoot.querySelector(`#${this.focusedItemId}`):null;const i=Array.from(this.element.shadowRoot.querySelectorAll('[role="option"]'));if(!i.length){return}const o=e?i.indexOf(e):null;const s=0;const a=i.length-1;let r=null;if(t.code===n.ARROW_DOWN){r=o===null?i[s]:i[o+1]||i[a]}else if(t.code===n.ARROW_UP){r=o===null?i[a]:i[o-1]||i[s]}this.focusedItemId=r.id;r.scrollIntoView({block:"nearest",container:"nearest"})}updateRenderItemsList(){if(this.searchValue){this.filterItems(this.searchValue)}else{this.resetRenderItemsList()}}resetRenderItemsList(){const t=[];this.itemsList.forEach((e=>{t.push(Object.assign({},e))}));this.renderItemsList=t}filterItems(t){if(!t){return this.closeFilterItems()}this.resetRenderItemsList();this.renderItemsList=this.renderItemsList.filter((e=>{const i=e.name.toUpperCase().indexOf(t.toUpperCase());const o=i+t.length;const s=e.name.substring(0,i)+"<strong>"+e.name.substring(i,o)+"</strong>"+e.name.substring(o,e.name.length);e.name=s;return i>=0}))}closeFilterItems(){this.searchValue="";this.resetRenderItemsList()}toggleComboBox(){this.isopen=!this.isopen}getHeaderAriaLabel(){if(!this.label||this.selectedCounter<=0){return undefined}const t=this.selectedCounter===1?"elemento selezionato":"elementi selezionati";return`${this.label}: ${this.selectedCounter} ${t}`}getComboboxA11yAttributes(t){const e="combobox";const i=this.isopen?"true":"false";const o=this.isopen?this.focusedItemId:"";const s=`${this.inputid}_list`;if(t){return{role:e,"aria-label":this.htmlAriaLabel,"html-aria-expanded":i,"html-aria-activedescendant":o,"html-aria-controls":s}}return{role:e,"aria-expanded":i,"aria-activedescendant":o,"aria-controls":s}}renderHeader(){const t=!this.hassearch?this.getComboboxA11yAttributes(false):{};return i("div",Object.assign({class:"header",onClick:()=>this.toggleComboBox(),onKeyDown:t=>this.handleHeaderKeyDown(t),role:"button",tabindex:0,"aria-controls":"open-combo-data","aria-expanded":this.isopen?"true":"false","aria-label":this.getHeaderAriaLabel()},t),i("span",{class:"body-3"},this.label,i("span",null,this.selectedCounter>0&&` (${this.selectedCounter})`)),i("z-icon",{name:"caret-down",class:this.size}))}renderContent(){return i("div",{id:"open-combo-data",class:"open-combo-data"},this.hassearch&&this.renderSearchInput(),i("div",{role:"listbox","aria-label":this.label,"aria-multiselectable":"true",id:`${this.inputid}_list`,"aria-owns":`${this.hascheckall?`${this.getCheckAllOptionId()} `:``}${this.itemsList.map((t=>this.getOptionId(t))).join(" ")}`},this.renderItems()))}renderItems(){return i("div",{class:this.searchValue&&"search",tabIndex:-1,role:"presentation"},this.renderList(this.renderItemsList))}renderItem(t,e,o){const s=this.getOptionId(t);const a=!t.checked&&this.hasReachedMaxSelections();return i("z-list-element",{htmlTabindex:-1,dividerType:e!==o-1?l.ELEMENT:l.NONE,size:this.getControlToListSize(),role:"presentation",disabled:!!a},i("span",{class:"option-wrap",role:"presentation",onClick:()=>{this.focusedItemId="";this.checkOption(s)}},i("z-icon",{name:t.checked?"checkbox-checked":"checkbox",class:this.focusedItemId===s?"focused":""}),i("span",{id:s,role:a?"presentation":"option","aria-selected":t.checked?"true":"false","aria-label":a?undefined:d(t.name)},i("span",{"aria-hidden":"true",innerHTML:t.name}))))}renderList(t){if(!t){return}if(!t.length&&this.searchValue){return this.renderNoSearchResults()}if(this.hasgroupitems){return this.renderGroups(t)}return i("ul",{role:"presentation"},this.renderCheckAll(),t.map(((e,i)=>this.renderItem(e,i,t.length))))}renderGroups(t){const e=t.reduce(((e,i,o)=>{var s;const a=i.category||"Altra categoria";const r=this.renderItem(i,o,t.length);e[a]=(s=e[a])!==null&&s!==void 0?s:[];e[a].push(r);return e}),{});const o=Object.entries(e).map((([t,e],o)=>i("z-list-group",{size:this.getControlToListSize(),"divider-type":l.ELEMENT,"aria-labelledby":`${this.inputid}_list_group_${o}`},i("span",{class:"body-3-sb z-list-group-title",slot:"header-title",id:`${this.inputid}_list_group_${o}`,"aria-hidden":"true"},t),e.map((t=>t)))));return i("ul",{role:"presentation"},this.renderCheckAll(),o)}renderNoSearchResults(){return i("div",{class:"no-results"},i("span",null,this.noresultslabel))}renderSearchInput(){return i("z-input",Object.assign({htmlid:`${this.inputid}_search`,label:this.searchlabel,placeholder:this.searchplaceholder,htmltitle:this.searchtitle,type:this.inputType,value:this.searchValue,message:false,size:this.size,"html-aria-autocomplete":"list"},this.getComboboxA11yAttributes(true),{onKeyDown:t=>this.handleInputKeyDown(t),onInputChange:t=>{this.searchValue=t.detail.value;this.focusedItemId=""}}))}renderCheckAll(){if(!this.hascheckall||this.searchValue){return}const t=this.getCheckAllOptionId();const e=this.allOptionsSelected();const o=this.hasReachedMaxSelections()||this.maxcheckableitems&&this.maxcheckableitems<this.itemsList.length;return i("z-list-element",{class:"check-all-wrapper",role:"presentation",htmlTabindex:-1,dividerType:l.ELEMENT,dividerColor:"gray800",size:this.getControlToListSize(),disabled:!!o},i("span",{class:"option-wrap",role:"presentation",onClick:()=>this.checkOption(t)},i("z-icon",{name:e?"checkbox-checked":"checkbox",class:this.focusedItemId===t?"focused":""}),i("span",{id:t,role:o?"presentation":"option","aria-selected":e?"true":"false"},e?this.uncheckalltext:this.checkalltext)))}render(){return i("div",{key:"d8c312f0c68c902a7c063f5ef8bfc1429e9c0183","data-action":`combo-${this.inputid}`,class:{open:this.isopen,fixed:this.isfixed,disabled:this.disabled},id:this.inputid},this.renderHeader(),!this.disabled&&this.renderContent())}get element(){return o(this)}static get watchers(){return{items:[{watchItems:0}],searchValue:[{watchSearchValue:0}]}}};u.style=p()+m();export{u as z_combobox};
|
|
2
|
+
//# sourceMappingURL=p-8d2704ee.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,c as t,h as i,H as l,d as n}from"./p-BcDWN4F1.js";import{g as s}from"./p-DdetsoIY.js";const r=()=>`:host{font-family:var(--font-family-sans)}z-list-element{position:relative;display:block;padding-top:var(--space-unit)}z-list-element::before,z-list-element::after{position:absolute;z-index:100;top:0.125rem;left:-0.5rem;content:""}z-list z-list-element::before{width:var(--space-unit);height:calc(var(--space-unit) * 2);border-bottom:var(--border-size-small) solid var(--color-disabled01-icon);border-left:var(--border-size-small) solid var(--color-disabled01-icon)}z-list z-list-element::after{width:var(--space-unit);height:100%;border-left:var(--border-size-small) solid var(--color-disabled01-icon)}z-list z-list-element:last-child::after,z-list>z-list-element::before,z-list>z-list-element::after,z-list>z-list-group>z-list-element::before,z-list>z-list-group>z-list-element::after{display:none}z-list>div.children-node{padding-left:calc(var(--space-unit) * 2)}z-list-element>.list-element{z-index:100;display:flex;justify-content:space-between;padding:0;color:var(--color-default-text);font-size:var(--font-size-2);font-style:normal;font-weight:var(--font-rg);text-decoration:none}z-list-element>.list-element.link-clickable{color:var(--color-primary01)}z-list-element>.list-element.link-clickable:hover{text-decoration:underline}z-list-element>.list-element .item.ellipsis{overflow:hidden}z-list-element .list-element::after{position:absolute;top:0;right:-0.0625rem;display:block;width:100%;height:calc(var(--space-unit) * 5);content:"";transform:translateX(-100%)}.item-label{overflow:hidden;flex-grow:1;font-size:var(--font-size-2);font-style:normal;font-weight:var(--font-rg);letter-spacing:0.0032rem;line-height:1.25rem;text-overflow:ellipsis;white-space:nowrap}.item-label.bold-item{font-weight:var(--font-sb)}.item.ellipsis{display:flex;overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}.children-node>z-list-element{padding:0;padding-top:0.125;padding-left:calc(var(--space-unit) * 1.25)}.item-icon{margin-right:var(--space-unit)}.no-icon-label{padding-left:var(--space-unit)}.children-node>z-list-element.no-icon-elm{padding-left:0}z-list-element>.list-element:focus:focus-visible{position:relative;z-index:200;box-shadow:var(--shadow-focus-primary);outline:none}@media (max-width: 767px){z-list-element::before,z-list-element::after{top:0.1875rem}z-list z-list-element::before{height:calc(var(--space-unit) * 2.5)}.children-node>z-list-element{padding-top:var(--space-unit)}}`;const
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,c as t,h as i,H as l,d as n}from"./p-BcDWN4F1.js";import{g as s}from"./p-DdetsoIY.js";const r=()=>`:host{font-family:var(--font-family-sans)}z-list-element{position:relative;display:block;padding-top:var(--space-unit)}z-list-element::before,z-list-element::after{position:absolute;z-index:100;top:0.125rem;left:-0.5rem;content:""}z-list z-list-element::before{width:var(--space-unit);height:calc(var(--space-unit) * 2);border-bottom:var(--border-size-small) solid var(--color-disabled01-icon);border-left:var(--border-size-small) solid var(--color-disabled01-icon)}z-list z-list-element::after{width:var(--space-unit);height:100%;border-left:var(--border-size-small) solid var(--color-disabled01-icon)}z-list z-list-element:last-child::after,z-list>z-list-element::before,z-list>z-list-element::after,z-list>z-list-group>z-list-element::before,z-list>z-list-group>z-list-element::after{display:none}z-list>div.children-node{padding-left:calc(var(--space-unit) * 2)}z-list-element>.list-element{z-index:100;display:flex;justify-content:space-between;padding:0;color:var(--color-default-text);font-size:var(--font-size-2);font-style:normal;font-weight:var(--font-rg);text-decoration:none}z-list-element>.list-element.link-clickable{color:var(--color-primary01)}z-list-element>.list-element.link-clickable:hover{text-decoration:underline}z-list-element>.list-element .item.ellipsis{overflow:hidden}z-list-element .list-element::after{position:absolute;top:0;right:-0.0625rem;display:block;width:100%;height:calc(var(--space-unit) * 5);content:"";transform:translateX(-100%)}.item-label{overflow:hidden;flex-grow:1;font-size:var(--font-size-2);font-style:normal;font-weight:var(--font-rg);letter-spacing:0.0032rem;line-height:1.25rem;text-overflow:ellipsis;white-space:nowrap}.item-label.bold-item{font-weight:var(--font-sb)}.item.ellipsis{display:flex;overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}.children-node>z-list-element{padding:0;padding-top:0.125;padding-left:calc(var(--space-unit) * 1.25)}.item-icon{margin-right:var(--space-unit)}.no-icon-label{padding-left:var(--space-unit)}.children-node>z-list-element.no-icon-elm{padding-left:0}z-list-element>.list-element:focus:focus-visible{position:relative;z-index:200;box-shadow:var(--shadow-focus-primary);outline:none}@media (max-width: 767px){z-list-element::before,z-list-element::after{top:0.1875rem}z-list z-list-element::before{height:calc(var(--space-unit) * 2.5)}.children-node>z-list-element{padding-top:var(--space-unit)}}`;const o=class{constructor(i){e(this,i);this.treeItemClicked=t(this,"treeItemClicked",7);this.items=[];this.parsedItems=[]}watchItems(){this.parsedItems=typeof this.items==="string"?JSON.parse(this.items):this.items}componentWillLoad(){this.watchItems()}handleClick(e){this.treeItemClicked.emit({id:e.id,name:e.name,url:e.url})}getFocusableElements(){return Array.from(this.host.shadowRoot.querySelectorAll('a[tabindex="0"]'))}getAncestor(e,t){let i=e;for(let e=0;e<t;e++){i=i===null||i===void 0?void 0:i.parentElement;if(!i){return}}return i}handleArrowNav(e){if(e.code===s.TAB){e.preventDefault();return}const t=this.getFocusableElements();const i=t.indexOf(e.target);if(i===-1){return}if(e.code===s.ARROW_DOWN||e.code===s.ARROW_UP){e.preventDefault();const l=i+(e.code===s.ARROW_DOWN?1:-1);if(l<0||l>=t.length){return}t[l].focus()}if(e.code===s.ARROW_LEFT){e.preventDefault();const l=this.getAncestor(t[i],4);if(!l||!l.children[0]||l.children[0].tagName.toLowerCase()!=="a"&&l.getAttribute("tabindex")===null){return}l.children[0].focus()}if(e.code===s.ARROW_RIGHT){e.preventDefault();const t=e.target.closest("z-list-element");if(!t){return}const i=t.querySelector("z-list");if(!i){return}const l=i.querySelector('a[tabindex="0"]');if(!l){return}l.focus()}}renderTreeList(e,t,l=1){var n,r;this.htmlTag=e.url?"a":"span";const o=i("z-list-element",{id:t,class:!e.icon?"no-icon-elm":"",clickable:Boolean(e.url),hasTreeItems:true,role:"none","aria-hidden":undefined},i(this.htmlTag,{class:{"list-element":true,"z-link":Boolean(e.url),"link-clickable":Boolean(e.url)},tabIndex:e.url?0:-1,onClick:()=>this.handleClick(e),onKeyUp:t=>{if(t.code===s.ENTER||t.code===s.SPACE){this.handleClick(e)}},onKeyDown:e=>this.handleArrowNav(e),role:e.url?"treeitem":undefined,"aria-hidden":e.url?undefined:"true","aria-expanded":((n=e.children)===null||n===void 0?void 0:n.length)>0&&true,"aria-level":l,"aria-label":e.name,href:e.url},i("span",{class:"item ellipsis"},e.icon&&i("z-icon",{width:16,height:16,fill:e.url?"color-primary01":"color-default-icon",class:"item-icon",name:e.icon}),i("span",{class:{"item-label":true,"no-icon-label":!e.icon,"bold-item":e.bold},title:e.name},e.name))),((r=e.children)===null||r===void 0?void 0:r.length)>0&&i("z-list",{role:"group"},i("div",{class:"children-node"},e.children.map(((e,t)=>this.renderTreeList(e,`${t}`,l+1))))));return o}render(){const e=this.parsedItems.some((e=>!!e.url));return i(l,{key:"266f20dbd53ba5e756e0fec544179e6bb319bd18",class:"tree-list",role:e?"navigation":"none","aria-hidden":e?undefined:"true","aria-labelledby":this.htmlAriaLabelledby},i("div",{key:"349d5a894c529036329f17c79b319e64e2c86731",tabIndex:-1,role:e?"tree":"none","aria-hidden":e?undefined:"true","aria-label":this.htmlSectionTitle},this.parsedItems.map(((e,t)=>this.renderTreeList(e,`${t}`)))))}get host(){return n(this)}static get watchers(){return{items:[{watchItems:0}]}}};o.style=r();export{o as z_tree_list};
|
|
2
|
+
//# sourceMappingURL=p-8f4fcd01.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as e,H as a}from"./p-BcDWN4F1.js";import{A as s}from"./p-DdetsoIY.js";const i=()=>`:host{display:inline-flex;overflow:hidden;align-items:center;justify-content:center;background-color:var(--gray700);border-radius:50%;font-family:var(--font-family-sans);text-transform:uppercase}:host(.small),:host(.small)>img{width:calc(var(--space-unit) * 3);height:calc(var(--space-unit) * 3)}:host(.medium),:host(.medium)>img{width:calc(var(--space-unit) * 4);height:calc(var(--space-unit) * 4)}:host(.large),:host(.large)>img{width:calc(var(--space-unit) * 5);height:calc(var(--space-unit) * 5)}:host>img{object-fit:cover}`;const r=class{constructor(e){t(this,e);var a,i;this.size=s.MEDIUM;this.textColor="color-white";this.backgroundColor="gray700";if(((a=this.text)===null||a===void 0?void 0:a.length)===0&&((i=this.image)===null||i===void 0?void 0:i.length)===0){console.warn("z-avatar must contain at least one prop between text and image")}}getTextSize(){if(this.size===s.SMALL){return"5"}else if(this.size===s.MEDIUM){return"4"}else if(this.size===s.LARGE){return"2"}}render(){return e(a,{key:"3420b1414f9869a0715dd0510dacdf7f5189d60a",class:{[this.size]:true,[`body-${this.getTextSize()}-sb`]:true},style:{color:`var(--${this.textColor})`,backgroundColor:`var(--${this.backgroundColor})`}},this.text&&!this.image&&e("span",{key:"0af7952baeb4cce47b083d508ab0ca0cb961e724"},this.text.substring(0,2)),this.image&&e("img",{key:"d74633bfd9fa75ee84cc2070ee6a549e755821d2",src:this.image,onError:()=>this.image=""}))}};r.style=i();export{r as z_avatar};
|
|
2
|
+
//# sourceMappingURL=p-8fb3354e.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as e,h as o,H as r,d as
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as e,h as o,H as r,d as s}from"./p-BcDWN4F1.js";import{P as a,S as n,e as i,B as l}from"./p-DdetsoIY.js";const c=()=>`:host{position:relative;display:flex;max-width:100%;align-items:center;background-color:var(--color-surface01);gap:calc(var(--space-unit) * 2) var(--space-unit)}:host,*{box-sizing:border-box}:host([sticky]){position:sticky;z-index:1;top:0;left:0;box-shadow:8px 0 16px -8px var(--shadow-color-base)}:host([menu-open]){z-index:2}.cell--content{display:flex;width:100%;height:100%;align-items:center}:host([show-menu]) .cell--content{column-gap:var(--space-unit)}.cell--menu-container{margin-left:auto}:host(:not([show-menu])) .cell--menu-container{opacity:0;pointer-events:none}:host(:is([show-menu],[menu-open])) .cell--menu-container,:host([show-menu]) .cell--menu-container:focus-within{z-index:1;opacity:1;pointer-events:all}:host .cell-popover{z-index:100}@media (min-width: 768px) and (hover: hover){:host([show-menu="hover"]) .cell--menu-container{opacity:0;pointer-events:none}:host([show-menu="hover"]:hover) .cell--menu-container{z-index:1;opacity:1;pointer-events:all}}`;const h=()=>`:host{z-index:1;padding:0;background-color:var(--color-background);font-weight:var(--font-sb)}:host([show-sorting]) .cell--content{column-gap:var(--space-unit)}.z-th--sort-button{position:relative;padding:0;border:none;background-color:transparent;cursor:pointer;outline:none}.z-th--sort-button:focus,.z-th--sort-button:focus-visible{box-shadow:var(--shadow-focus-primary);opacity:1;outline:none;pointer-events:all}@media (min-width: 768px) and (hover: hover){:host([show-sorting="hover"]) .z-th--sort-button{opacity:0;pointer-events:none}:host([show-sorting="hover"]:hover) .z-th--sort-button,:host([show-sorting="hover"]) .z-th--sort-button:focus:focus-visible,:host([show-sorting="always"]) .z-th--sort-button,:host([sorted]) .z-th--sort-button{opacity:1;pointer-events:all}}:host([show-sorting="hover"]:hover) .z-th--sort-button::after,:host([show-sorting="hover"]) .z-th--sort-button:focus:focus-visible::after,:host([show-sorting="always"]) .z-th--sort-button::after,:host([sorted]) .z-th--sort-button::after{position:absolute;top:6px;left:6px;width:calc(100% - 12px);height:calc(100% - 10px);background-color:transparent;content:""}`;const b=()=>`z-table,table.z-table{background-color:var(--color-surface01);--z-table--cells-padding:calc(var(--space-unit) * 2)}table.z-table{border-collapse:collapse}z-thead,table.z-table thead{background-color:var(--color-background);--z-table--cells-bottom-border-size:var(--border-size-medium)}z-tfoot,table.z-table tfoot{border-top:var(--border-size-medium) solid var(--color-surface03);border-bottom:var(--border-size-medium) solid var(--color-surface03)}z-tfoot z-tr,table.z-table tfoot tr{border-bottom:calc(var(--z-table--cells-bottom-border-size)) solid var(--color-surface03) !important}z-tr,table.z-table tr{border-bottom:var(--z-table--cells-bottom-border-size, var(--border-size-small)) solid var(--color-surface03)}z-td,z-th,table.z-table td,table.z-table th{padding:var(--z-table--cells-padding, calc(var(--space-unit) * 2));text-align:left}z-th:not(:first-child),z-td:not(:first-child),table.z-table th:not(:first-child),table.z-table td:not(:first-child){border-left:var(--z-table--cell-left-border, none)}z-table[bordered],table.z-table.z-table-bordered{--z-table--cell-left-border:1px solid var(--color-surface03)}table.z-table-hover>tbody>tr:hover>td,table.z-table-hover>tfoot>tr:hover>td{position:relative;background-color:var(--color-surface02)}table.z-table-hover>tbody>tr:hover>td::after,table.z-table-hover>tfoot>tr:hover>td::after{position:absolute;z-index:1;top:0;right:0;bottom:0;left:-1px;box-shadow:inset 0 var(--border-size-small) 0 var(--color-surface04), inset 0 calc(var(--border-size-small) * -1) 0 var(--color-surface04);content:""}table.z-table-hover>tbody>tr:hover>td:first-child::after,table.z-table-hover>thead>tr:hover>th:first-child::after,table.z-table-hover>tfoot>tr:hover>td:first-child::after{left:0}`;const d=class{constructor(o){t(this,o);this.sort=e(this,"sort",7);this.showMenu=null;this.showSorting=null;this.sticky=false;this.sorted=false;this.popoverPosition=a.AUTO;this.isMenuOpen=false}get ariaSortDirection(){if(!this.sortDirection){return null}return this.sortDirection===n.ASC?"ascending":"descending"}handleSort(){if(!this.sortDirection){this.sorted=false;return}this.sortDirection=this.sortDirection===n.ASC?n.DESC:n.ASC;this.sorted=true;this.sort.emit({sortDirection:this.sortDirection})}updateColspan(){if(this.colspan){this.host.style.gridColumn=`span ${this.colspan}`}else{this.host.style.removeProperty("grid-column")}}componentWillLoad(){this.updateColspan()}render(){return o(r,{key:"8e83039c2100fa4df3e205d6a4819cdc32b4789e",role:"columnheader","menu-open":this.isMenuOpen,"aria-sort":this.ariaSortDirection,sortable:this.showSorting},o("div",{key:"18c67051c7eed356980c97b08bd4981b5d8c9b18",class:"cell--content"},o("slot",{key:"05c6564192e37a01c6f79c81db4b7732dcc30451"}),this.showSorting&&o("button",{key:"45f0e2087f6050567bf7978f8421a146912e2cfd",class:"z-th--sort-button",type:"button",onClick:this.handleSort.bind(this)},o("z-icon",{key:"e53ad878d055d82b518212c99385b4d394503bf9",name:this.sortDirection===n.DESC?"arrow-simple-up":"arrow-simple-down",width:14,height:14})),this.showMenu&&o("div",{key:"660f2abf11cc879c3a5855149fbbfc7b57578b6a",class:"cell--menu-container"},o("z-button",{key:"37905939b31eeb5051ce5824787309629a935f14",variant:l.TERTIARY,icon:"contextual-menu",size:i.X_SMALL,ref:t=>this.menuTrigger=t,onClick:()=>this.popoverEl.open=!this.popoverEl.open}),o("z-popover",{key:"369c0918f021e0699c2178b2b023126fce518073",ref:t=>this.popoverEl=t,bindTo:this.menuTrigger,onOpenChange:t=>this.isMenuOpen=t.detail.open,position:this.popoverPosition},o("slot",{key:"b3364b3d95e4cd92fefce41bfcbb995b2b5eef70",name:"contextual-menu"})))))}get host(){return s(this)}static get watchers(){return{colspan:[{updateColspan:0}]}}};d.style=c()+(h()+b());export{d as z_th};
|
|
2
|
+
//# sourceMappingURL=p-904c7fdd.entry.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{d as e}from"./p-BcDWN4F1.js";import{t as r,
|
|
1
|
+
import{d as e}from"./p-BcDWN4F1.js";import{t as r,m as t,n,o as i,p as a,q as o,a as u,s as f}from"./p-DPrEzmhI.js";import{g as s}from"./p-DdetsoIY.js";
|
|
2
2
|
/*!
|
|
3
3
|
* focus-trap 8.2.1
|
|
4
4
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
5
|
-
*/function l(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function c(e){if(Array.isArray(e))return l(e)}function v(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=k(e))||r){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:true}:{done:false,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=true,o=false;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return u=e.done,e},e:function(e){o=true,a=e},f:function(){try{u||null==t.return||t.return()}finally{if(o)throw a}}}}function d(e,r,t){return(r=F(r))in e?Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true}):e[r]=t,e}function h(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function y(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?b(Object(t),true).forEach((function(r){d(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function w(e){return c(e)||h(e)||k(e)||p()}function m(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}function F(e){var r=m(e,"string");return"symbol"==typeof r?r:r+""}function k(e,r){if(e){if("string"==typeof e)return l(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(e,r):void 0}}var j={getActiveTrap:function e(r){if((r===null||r===void 0?void 0:r.length)>0){return r[r.length-1]}return null},activateTrap:function e(r,t){var n=j.getActiveTrap(r);if(t!==n){j.pauseTrap(r)}var i=r.indexOf(t);if(i===-1){r.push(t)}else{r.splice(i,1);r.push(t)}},deactivateTrap:function e(r,t){var n=r.indexOf(t);if(n!==-1){r.splice(n,1)}j.unpauseTrap(r)},pauseTrap:function e(r){var t=j.getActiveTrap(r);t===null||t===void 0||t._setPausedState(true)},unpauseTrap:function e(r){var t=j.getActiveTrap(r);if(t&&!t._isManuallyPaused()){t._setPausedState(false)}}};var S=function e(r){return r.tagName&&r.tagName.toLowerCase()==="input"&&typeof r.select==="function"};var T=function e(r){return(r===null||r===void 0?void 0:r.key)==="Escape"||(r===null||r===void 0?void 0:r.key)==="Esc"||(r===null||r===void 0?void 0:r.keyCode)===27};var O=function e(r){return(r===null||r===void 0?void 0:r.key)==="Tab"||(r===null||r===void 0?void 0:r.keyCode)===9};var D=function e(r){return O(r)&&!r.shiftKey};var E=function e(r){return O(r)&&r.shiftKey};var g=function e(r){return setTimeout(r,0)};var A=function e(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++){n[i-1]=arguments[i]}return typeof r==="function"?r.apply(void 0,n):r};var P=function e(r){return r.target.shadowRoot&&typeof r.composedPath==="function"?r.composedPath()[0]:r.target};var R=[];var C=function e(u,o){var f=(o===null||o===void 0?void 0:o.document)||document;var s=(o===null||o===void 0?void 0:o.trapStack)||R;var l=y({returnFocusOnDeactivate:true,escapeDeactivates:true,delayInitialFocus:true,delayReturnFocus:true,isolateSubtrees:false,isKeyForward:D,isKeyBackward:E},o);var c={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:false,paused:false,manuallyPaused:false,delayInitialFocusTimer:undefined,recentNavEvent:undefined};var d;var h=function e(r,t,n){return r&&r[t]!==undefined?r[t]:l[n||t]};var p=function e(r,t){var n=typeof(t===null||t===void 0?void 0:t.composedPath)==="function"?t.composedPath():undefined;return c.containerGroups.findIndex((function(e){var t=e.container,i=e.tabbableNodes;return t.contains(r)||(n===null||n===void 0?void 0:n.includes(t))||i.find((function(e){return e===r}))}))};var b=function e(r){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=t.hasFallback,i=n===void 0?false:n,a=t.params,u=a===void 0?[]:a;var o=l[r];if(typeof o==="function"){o=o.apply(void 0,w(u))}if(o===true){o=undefined}if(!o){if(o===undefined||o===false){return o}throw new Error("`".concat(r,"` was specified but was not a node, or did not return a node"))}var s=o;if(typeof o==="string"){try{s=f.querySelector(o)}catch(e){throw new Error("`".concat(r,'` appears to be an invalid selector; error="').concat(e.message,'"'))}if(!s){if(!i){throw new Error("`".concat(r,"` as selector refers to no known node"))}}}return s};var m=function e(r){var t=r.activeElement;if(!t){return null}if(t.shadowRoot&&t.shadowRoot.activeElement!==null){return m(t.shadowRoot)}return t};var F=function e(){var r=b("initialFocus",{hasFallback:true});if(r===false){return false}if(r===undefined||r&&!a(r,l.tabbableOptions)){var t=m(f);if(p(t)>=0){r=t}else{var n=c.tabbableGroups[0];var i=n&&n.firstTabbableNode;r=i||b("fallbackFocus")}}else if(r===null){r=b("fallbackFocus")}if(!r){throw new Error("Your focus-trap needs to have at least one focusable element")}return r};var k=function e(){c.containerGroups=c.containers.map((function(e){var a=r(e,l.tabbableOptions);var u=t(e,l.tabbableOptions);var o=a.length>0?a[0]:undefined;var f=a.length>0?a[a.length-1]:undefined;var s=u.find((function(e){return n(e)}));var c=u.slice().reverse().find((function(e){return n(e)}));var v=!!a.find((function(e){return i(e)>0}));return{container:e,tabbableNodes:a,focusableNodes:u,posTabIndexesFound:v,firstTabbableNode:o,lastTabbableNode:f,firstDomTabbableNode:s,lastDomTabbableNode:c,nextTabbableNode:function e(r){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var i=a.indexOf(r);if(i<0){if(t){return u.slice(u.indexOf(r)+1).find((function(e){return n(e)}))}return u.slice(0,u.indexOf(r)).reverse().find((function(e){return n(e)}))}return a[i+(t?1:-1)]}}}));c.tabbableGroups=c.containerGroups.filter((function(e){return e.tabbableNodes.length>0}));if(c.tabbableGroups.length<=0&&!b("fallbackFocus")){throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")}if(c.containerGroups.find((function(e){return e.posTabIndexesFound}))&&c.containerGroups.length>1){throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}};var C=function e(r){if(r===false){return}if(r===m(document)){return}if(!r||!r.focus){C(F());return}r.focus({preventScroll:!!l.preventScroll});c.mostRecentlyFocusedNode=r;if(S(r)){r.select()}};var N=function e(r){var t=b("setReturnFocus",{params:[r]});return t?t:t===false?false:r};var I=function e(r){var t=r.target,u=r.event,o=r.isBackward,f=o===void 0?false:o;t=t||P(u);k();var s=null;if(c.tabbableGroups.length>0){var v=p(t,u);var d=v>=0?c.containerGroups[v]:undefined;if(v<0){if(f){s=c.tabbableGroups[c.tabbableGroups.length-1].lastTabbableNode}else{s=c.tabbableGroups[0].firstTabbableNode}}else if(f){var h=c.tabbableGroups.findIndex((function(e){var r=e.firstTabbableNode;return t===r}));if(h<0&&(d.container===t||a(t,l.tabbableOptions)&&!n(t,l.tabbableOptions)&&!d.nextTabbableNode(t,false))){h=v}if(h>=0){var y=h===0?c.tabbableGroups.length-1:h-1;var w=c.tabbableGroups[y];s=i(t)>=0?w.lastTabbableNode:w.lastDomTabbableNode}else if(!O(u)){s=d.nextTabbableNode(t,false)}}else{var m=c.tabbableGroups.findIndex((function(e){var r=e.lastTabbableNode;return t===r}));if(m<0&&(d.container===t||a(t,l.tabbableOptions)&&!n(t,l.tabbableOptions)&&!d.nextTabbableNode(t))){m=v}if(m>=0){var F=m===c.tabbableGroups.length-1?0:m+1;var j=c.tabbableGroups[F];s=i(t)>=0?j.firstTabbableNode:j.firstDomTabbableNode}else if(!O(u)){s=d.nextTabbableNode(t)}}}else{s=b("fallbackFocus")}return s};var B=function e(r){var t=P(r);if(p(t,r)>=0){return}if(A(l.clickOutsideDeactivates,r)){d.deactivate({returnFocus:l.returnFocusOnDeactivate});return}if(A(l.allowOutsideClick,r)){return}r.preventDefault()};var x=function e(r){var t=P(r);var n=p(t,r)>=0;if(n||t instanceof Document){if(n){c.mostRecentlyFocusedNode=t}}else{r.stopImmediatePropagation();var a;var u=true;if(c.mostRecentlyFocusedNode){if(i(c.mostRecentlyFocusedNode)>0){var o=p(c.mostRecentlyFocusedNode);var f=c.containerGroups[o].tabbableNodes;if(f.length>0){var s=f.findIndex((function(e){return e===c.mostRecentlyFocusedNode}));if(s>=0){if(l.isKeyForward(c.recentNavEvent)){if(s+1<f.length){a=f[s+1];u=false}}else{if(s-1>=0){a=f[s-1];u=false}}}}}else{if(!c.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return i(e)>0}))}))){u=false}}}else{u=false}if(u){a=I({target:c.mostRecentlyFocusedNode,isBackward:l.isKeyBackward(c.recentNavEvent)})}if(a){C(a)}else{C(c.mostRecentlyFocusedNode||F())}}c.recentNavEvent=undefined};var U=function e(r){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;c.recentNavEvent=r;var n=I({event:r,isBackward:t});if(n){if(O(r)){r.preventDefault()}C(n)}};var W=function e(r){if(l.isKeyForward(r)||l.isKeyBackward(r)){U(r,l.isKeyBackward(r))}};var K=function e(r){if(T(r)&&A(l.escapeDeactivates,r)!==false){r.preventDefault();d.deactivate()}};var L=function e(r){var t=P(r);if(p(t,r)>=0){return}if(A(l.clickOutsideDeactivates,r)){return}if(A(l.allowOutsideClick,r)){return}r.preventDefault();r.stopImmediatePropagation()};var M=function e(){if(!c.active){return}j.activateTrap(s,d);var r;if(l.delayInitialFocus){r=new Promise((function(e){c.delayInitialFocusTimer=g((function(){C(F());e()}))}))}else{C(F())}f.addEventListener("focusin",x,true);f.addEventListener("mousedown",B,{capture:true,passive:false});f.addEventListener("touchstart",B,{capture:true,passive:false});f.addEventListener("click",L,{capture:true,passive:false});f.addEventListener("keydown",W,{capture:true,passive:false});f.addEventListener("keydown",K);return r};var _=function e(r){if(c.active&&!c.paused){d._setSubtreeIsolation(false)}c.adjacentElements.clear();c.alreadySilent.clear();var t=new Set;var n=new Set;var i=v(r),a;try{for(i.s();!(a=i.n()).done;){var u=a.value;t.add(u);var o=typeof ShadowRoot!=="undefined"&&u.getRootNode()instanceof ShadowRoot;var f=u;while(f){t.add(f);var s=f.parentElement;var l=[];if(s){l=s.children}else if(!s&&o){l=f.getRootNode().children;s=f.getRootNode().host;o=typeof ShadowRoot!=="undefined"&&s.getRootNode()instanceof ShadowRoot}var h=v(l),p;try{for(h.s();!(p=h.n()).done;){var b=p.value;n.add(b)}}catch(e){h.e(e)}finally{h.f()}f=s}}}catch(e){i.e(e)}finally{i.f()}t.forEach((function(e){n["delete"](e)}));c.adjacentElements=n};var Y=function e(){if(!c.active){return}f.removeEventListener("focusin",x,true);f.removeEventListener("mousedown",B,true);f.removeEventListener("touchstart",B,true);f.removeEventListener("click",L,true);f.removeEventListener("keydown",W,true);f.removeEventListener("keydown",K);return d};var G=function e(r){var t=c.mostRecentlyFocusedNode;if(!t){return}var n=r.some((function(e){var r=Array.from(e.removedNodes);return r.some((function(e){return e===t||typeof e.contains==="function"&&e.contains(t)}))}));if(n&&c.containers.some((function(e){return e===null||e===void 0?void 0:e.isConnected}))){k();var i=F();C(i)}};var q=typeof window!=="undefined"&&"MutationObserver"in window?new MutationObserver(G):undefined;var Q=function e(){if(!q){return}q.disconnect();if(c.active&&!c.paused){c.containers.map((function(e){q.observe(e,{subtree:true,childList:true})}))}};d={get active(){return c.active},get paused(){return c.paused},activate:function e(r){if(c.active){return this}var t=h(r,"onActivate");var n=h(r,"onPostActivate");var i=h(r,"checkCanFocusTrap");var a=j.getActiveTrap(s);var u=false;if(a&&!a.paused){var o;(o=a._setSubtreeIsolation)===null||o===void 0||o.call(a,false);u=true}try{if(!i){k()}c.active=true;c.paused=false;c.nodeFocusedBeforeActivation=m(f);t===null||t===void 0||t({trap:d});var l=function e(){if(i){k()}var r=function e(){d._setSubtreeIsolation(true);Q();n===null||n===void 0||n({trap:d})};var t=M();if(t){t.then(r)}else{r()}};if(i){i(c.containers.concat()).then(l,l);return this}l()}catch(e){if(a===j.getActiveTrap(s)&&u){var v;(v=a._setSubtreeIsolation)===null||v===void 0||v.call(a,true)}throw e}return this},deactivate:function e(r){if(!c.active){return this}var t=y({onDeactivate:l.onDeactivate,onPostDeactivate:l.onPostDeactivate,checkCanReturnFocus:l.checkCanReturnFocus},r);clearTimeout(c.delayInitialFocusTimer);c.delayInitialFocusTimer=undefined;if(!c.paused){d._setSubtreeIsolation(false)}c.alreadySilent.clear();Y();c.active=false;c.paused=false;Q();j.deactivateTrap(s,d);var n=h(t,"onDeactivate");var i=h(t,"onPostDeactivate");var a=h(t,"checkCanReturnFocus");var u=h(t,"delayReturnFocus");var o=h(t,"returnFocus","returnFocusOnDeactivate");n===null||n===void 0||n({trap:d});var f=function e(){if(o){C(N(c.nodeFocusedBeforeActivation))}i===null||i===void 0||i({trap:d})};var v=function e(){if(u&&o){g(f)}else{f()}};if(o&&a){a(N(c.nodeFocusedBeforeActivation)).then(v,v);return this}v();return this},pause:function e(r){if(!c.active){return this}c.manuallyPaused=true;return this._setPausedState(true,r)},unpause:function e(r){if(!c.active){return this}c.manuallyPaused=false;if(s[s.length-1]!==this){return this}return this._setPausedState(false,r)},updateContainerElements:function e(r){var t=[].concat(r).filter(Boolean);c.containers=t.map((function(e){return typeof e==="string"?f.querySelector(e):e}));if(l.isolateSubtrees){_(c.containers)}if(c.active){k();if(!c.paused){d._setSubtreeIsolation(true)}}Q();return this}};Object.defineProperties(d,{_isManuallyPaused:{value:function e(){return c.manuallyPaused}},_setPausedState:{value:function e(r,t){if(c.paused===r){return this}c.paused=r;if(r){var n=h(t,"onPause");var i=h(t,"onPostPause");n===null||n===void 0||n({trap:d});Y();d._setSubtreeIsolation(false);Q();i===null||i===void 0||i({trap:d})}else{var a=h(t,"onUnpause");var u=h(t,"onPostUnpause");a===null||a===void 0||a({trap:d});var o=function e(){k();var r=function e(){d._setSubtreeIsolation(true);Q();u===null||u===void 0||u({trap:d})};var t=M();if(t){t.then(r)}else{r()}};o()}return this}},_setSubtreeIsolation:{value:function e(r){if(l.isolateSubtrees){c.adjacentElements.forEach((function(e){var t;if(r){switch(l.isolateSubtrees){case"aria-hidden":if(e.ariaHidden==="true"||((t=e.getAttribute("aria-hidden"))===null||t===void 0?void 0:t.toLowerCase())==="true"){c.alreadySilent.add(e)}e.setAttribute("aria-hidden","true");break;default:if(e.inert||e.hasAttribute("inert")){c.alreadySilent.add(e)}e.setAttribute("inert",true);break}}else{if(c.alreadySilent.has(e));else{switch(l.isolateSubtrees){case"aria-hidden":e.removeAttribute("aria-hidden");break;default:e.removeAttribute("inert");break}}}}))}}}});d.updateContainerElements(u);return d};class N{constructor(r,t){this.config=t;this.host=r;this.host.addController(this);this.hostElement=e(this.host)}get trapRoot(){var e,r,t;return(t=(r=(e=this.config).getTrapRoot)===null||r===void 0?void 0:r.call(e))!==null&&t!==void 0?t:this.hostElement}getTabbableElements(){if(!this.trapRoot){return[]}if(this.config.tabbableElements){return typeof this.config.tabbableElements==="function"?this.config.tabbableElements():this.config.tabbableElements}return u(this.trapRoot)}focusFirstTrapElement(){var e;(e=this.getTabbableElements()[0])===null||e===void 0?void 0:e.focus()}focusLastTrapElement(){var e;const r=this.getTabbableElements();(e=r[r.length-1])===null||e===void 0?void 0:e.focus()}sync(){if(!this.trapRoot){return}if(!this.focusTrap){this.focusTrap=C(this.trapRoot,Object.assign({allowOutsideClick:true,clickOutsideDeactivates:false,escapeDeactivates:false,returnFocusOnDeactivate:true,initialFocus:()=>{var e;return(e=this.getTabbableElements()[0])!==null&&e!==void 0?e:this.config.fallbackFocus},onPostActivate:()=>this.focusFirstTrapElement(),isKeyForward:()=>false,isKeyBackward:()=>false,document:this.hostElement.ownerDocument},this.config))}if(this.config.isActive()){this.focusTrap.activate();return}this.focusTrap.deactivate()}handleWrapTab(e){if(e.key!==s.TAB||e.altKey||e.ctrlKey||e.metaKey||e.defaultPrevented){return}const r=this.getTabbableElements();if(!r.length){return}const t=f(this.hostElement.ownerDocument);const n=r[0];const i=r[r.length-1];const a=t?o(n,t):false;const u=t?o(i,t):false;if(e.shiftKey&&a){e.preventDefault();this.focusLastTrapElement();return}if(!e.shiftKey&&u){e.preventDefault();this.focusFirstTrapElement()}}deactivate(){var e;(e=this.focusTrap)===null||e===void 0?void 0:e.deactivate()}hostDisconnected(){this.deactivate()}}class I{constructor(){this.controllers=new Set}addController(e){this.controllers.add(e)}removeController(e){this.controllers.delete(e)}connectedCallback(){this.controllers.forEach((e=>{var r;return(r=e.hostConnected)===null||r===void 0?void 0:r.call(e)}))}disconnectedCallback(){this.controllers.forEach((e=>{var r;return(r=e.hostDisconnected)===null||r===void 0?void 0:r.call(e)}))}componentWillLoad(){this.controllers.forEach((e=>{var r;return(r=e.hostWillLoad)===null||r===void 0?void 0:r.call(e)}))}componentDidLoad(){this.controllers.forEach((e=>{var r;return(r=e.hostDidLoad)===null||r===void 0?void 0:r.call(e)}))}componentWillRender(){this.controllers.forEach((e=>{var r;return(r=e.hostWillRender)===null||r===void 0?void 0:r.call(e)}))}componentDidRender(){this.controllers.forEach((e=>{var r;return(r=e.hostDidRender)===null||r===void 0?void 0:r.call(e)}))}componentWillUpdate(){this.controllers.forEach((e=>{var r;return(r=e.hostWillUpdate)===null||r===void 0?void 0:r.call(e)}))}componentDidUpdate(){this.controllers.forEach((e=>{var r;return(r=e.hostDidUpdate)===null||r===void 0?void 0:r.call(e)}))}}export{N as F,I as R};
|
|
6
|
-
//# sourceMappingURL=p-
|
|
5
|
+
*/function l(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function c(e){if(Array.isArray(e))return l(e)}function v(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=k(e))||r){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:true}:{done:false,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=true,u=false;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){u=true,a=e},f:function(){try{o||null==t.return||t.return()}finally{if(u)throw a}}}}function d(e,r,t){return(r=F(r))in e?Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true}):e[r]=t,e}function h(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function y(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?b(Object(t),true).forEach((function(r){d(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function m(e){return c(e)||h(e)||k(e)||p()}function w(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}function F(e){var r=w(e,"string");return"symbol"==typeof r?r:r+""}function k(e,r){if(e){if("string"==typeof e)return l(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(e,r):void 0}}var j={getActiveTrap:function e(r){if((r===null||r===void 0?void 0:r.length)>0){return r[r.length-1]}return null},activateTrap:function e(r,t){var n=j.getActiveTrap(r);if(t!==n){j.pauseTrap(r)}var i=r.indexOf(t);if(i===-1){r.push(t)}else{r.splice(i,1);r.push(t)}},deactivateTrap:function e(r,t){var n=r.indexOf(t);if(n!==-1){r.splice(n,1)}j.unpauseTrap(r)},pauseTrap:function e(r){var t=j.getActiveTrap(r);t===null||t===void 0||t._setPausedState(true)},unpauseTrap:function e(r){var t=j.getActiveTrap(r);if(t&&!t._isManuallyPaused()){t._setPausedState(false)}}};var S=function e(r){return r.tagName&&r.tagName.toLowerCase()==="input"&&typeof r.select==="function"};var T=function e(r){return(r===null||r===void 0?void 0:r.key)==="Escape"||(r===null||r===void 0?void 0:r.key)==="Esc"||(r===null||r===void 0?void 0:r.keyCode)===27};var O=function e(r){return(r===null||r===void 0?void 0:r.key)==="Tab"||(r===null||r===void 0?void 0:r.keyCode)===9};var D=function e(r){return O(r)&&!r.shiftKey};var E=function e(r){return O(r)&&r.shiftKey};var g=function e(r){return setTimeout(r,0)};var A=function e(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++){n[i-1]=arguments[i]}return typeof r==="function"?r.apply(void 0,n):r};var P=function e(r){return r.target.shadowRoot&&typeof r.composedPath==="function"?r.composedPath()[0]:r.target};var R=[];var I=function e(o,u){var f=(u===null||u===void 0?void 0:u.document)||document;var s=(u===null||u===void 0?void 0:u.trapStack)||R;var l=y({returnFocusOnDeactivate:true,escapeDeactivates:true,delayInitialFocus:true,delayReturnFocus:true,isolateSubtrees:false,isKeyForward:D,isKeyBackward:E},u);var c={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:false,paused:false,manuallyPaused:false,delayInitialFocusTimer:undefined,recentNavEvent:undefined};var d;var h=function e(r,t,n){return r&&r[t]!==undefined?r[t]:l[n||t]};var p=function e(r,t){var n=typeof(t===null||t===void 0?void 0:t.composedPath)==="function"?t.composedPath():undefined;return c.containerGroups.findIndex((function(e){var t=e.container,i=e.tabbableNodes;return t.contains(r)||(n===null||n===void 0?void 0:n.includes(t))||i.find((function(e){return e===r}))}))};var b=function e(r){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=t.hasFallback,i=n===void 0?false:n,a=t.params,o=a===void 0?[]:a;var u=l[r];if(typeof u==="function"){u=u.apply(void 0,m(o))}if(u===true){u=undefined}if(!u){if(u===undefined||u===false){return u}throw new Error("`".concat(r,"` was specified but was not a node, or did not return a node"))}var s=u;if(typeof u==="string"){try{s=f.querySelector(u)}catch(e){throw new Error("`".concat(r,'` appears to be an invalid selector; error="').concat(e.message,'"'))}if(!s){if(!i){throw new Error("`".concat(r,"` as selector refers to no known node"))}}}return s};var w=function e(r){var t=r.activeElement;if(!t){return null}if(t.shadowRoot&&t.shadowRoot.activeElement!==null){return w(t.shadowRoot)}return t};var F=function e(){var r=b("initialFocus",{hasFallback:true});if(r===false){return false}if(r===undefined||r&&!a(r,l.tabbableOptions)){var t=w(f);if(p(t)>=0){r=t}else{var n=c.tabbableGroups[0];var i=n&&n.firstTabbableNode;r=i||b("fallbackFocus")}}else if(r===null){r=b("fallbackFocus")}if(!r){throw new Error("Your focus-trap needs to have at least one focusable element")}return r};var k=function e(){c.containerGroups=c.containers.map((function(e){var a=r(e,l.tabbableOptions);var o=t(e,l.tabbableOptions);var u=a.length>0?a[0]:undefined;var f=a.length>0?a[a.length-1]:undefined;var s=o.find((function(e){return n(e)}));var c=o.slice().reverse().find((function(e){return n(e)}));var v=!!a.find((function(e){return i(e)>0}));return{container:e,tabbableNodes:a,focusableNodes:o,posTabIndexesFound:v,firstTabbableNode:u,lastTabbableNode:f,firstDomTabbableNode:s,lastDomTabbableNode:c,nextTabbableNode:function e(r){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var i=a.indexOf(r);if(i<0){if(t){return o.slice(o.indexOf(r)+1).find((function(e){return n(e)}))}return o.slice(0,o.indexOf(r)).reverse().find((function(e){return n(e)}))}return a[i+(t?1:-1)]}}}));c.tabbableGroups=c.containerGroups.filter((function(e){return e.tabbableNodes.length>0}));if(c.tabbableGroups.length<=0&&!b("fallbackFocus")){throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")}if(c.containerGroups.find((function(e){return e.posTabIndexesFound}))&&c.containerGroups.length>1){throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}};var I=function e(r){if(r===false){return}if(r===w(document)){return}if(!r||!r.focus){I(F());return}r.focus({preventScroll:!!l.preventScroll});c.mostRecentlyFocusedNode=r;if(S(r)){r.select()}};var N=function e(r){var t=b("setReturnFocus",{params:[r]});return t?t:t===false?false:r};var C=function e(r){var t=r.target,o=r.event,u=r.isBackward,f=u===void 0?false:u;t=t||P(o);k();var s=null;if(c.tabbableGroups.length>0){var v=p(t,o);var d=v>=0?c.containerGroups[v]:undefined;if(v<0){if(f){s=c.tabbableGroups[c.tabbableGroups.length-1].lastTabbableNode}else{s=c.tabbableGroups[0].firstTabbableNode}}else if(f){var h=c.tabbableGroups.findIndex((function(e){var r=e.firstTabbableNode;return t===r}));if(h<0&&(d.container===t||a(t,l.tabbableOptions)&&!n(t,l.tabbableOptions)&&!d.nextTabbableNode(t,false))){h=v}if(h>=0){var y=h===0?c.tabbableGroups.length-1:h-1;var m=c.tabbableGroups[y];s=i(t)>=0?m.lastTabbableNode:m.lastDomTabbableNode}else if(!O(o)){s=d.nextTabbableNode(t,false)}}else{var w=c.tabbableGroups.findIndex((function(e){var r=e.lastTabbableNode;return t===r}));if(w<0&&(d.container===t||a(t,l.tabbableOptions)&&!n(t,l.tabbableOptions)&&!d.nextTabbableNode(t))){w=v}if(w>=0){var F=w===c.tabbableGroups.length-1?0:w+1;var j=c.tabbableGroups[F];s=i(t)>=0?j.firstTabbableNode:j.firstDomTabbableNode}else if(!O(o)){s=d.nextTabbableNode(t)}}}else{s=b("fallbackFocus")}return s};var B=function e(r){var t=P(r);if(p(t,r)>=0){return}if(A(l.clickOutsideDeactivates,r)){d.deactivate({returnFocus:l.returnFocusOnDeactivate});return}if(A(l.allowOutsideClick,r)){return}r.preventDefault()};var x=function e(r){var t=P(r);var n=p(t,r)>=0;if(n||t instanceof Document){if(n){c.mostRecentlyFocusedNode=t}}else{r.stopImmediatePropagation();var a;var o=true;if(c.mostRecentlyFocusedNode){if(i(c.mostRecentlyFocusedNode)>0){var u=p(c.mostRecentlyFocusedNode);var f=c.containerGroups[u].tabbableNodes;if(f.length>0){var s=f.findIndex((function(e){return e===c.mostRecentlyFocusedNode}));if(s>=0){if(l.isKeyForward(c.recentNavEvent)){if(s+1<f.length){a=f[s+1];o=false}}else{if(s-1>=0){a=f[s-1];o=false}}}}}else{if(!c.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return i(e)>0}))}))){o=false}}}else{o=false}if(o){a=C({target:c.mostRecentlyFocusedNode,isBackward:l.isKeyBackward(c.recentNavEvent)})}if(a){I(a)}else{I(c.mostRecentlyFocusedNode||F())}}c.recentNavEvent=undefined};var U=function e(r){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;c.recentNavEvent=r;var n=C({event:r,isBackward:t});if(n){if(O(r)){r.preventDefault()}I(n)}};var W=function e(r){if(l.isKeyForward(r)||l.isKeyBackward(r)){U(r,l.isKeyBackward(r))}};var K=function e(r){if(T(r)&&A(l.escapeDeactivates,r)!==false){r.preventDefault();d.deactivate()}};var L=function e(r){var t=P(r);if(p(t,r)>=0){return}if(A(l.clickOutsideDeactivates,r)){return}if(A(l.allowOutsideClick,r)){return}r.preventDefault();r.stopImmediatePropagation()};var M=function e(){if(!c.active){return}j.activateTrap(s,d);var r;if(l.delayInitialFocus){r=new Promise((function(e){c.delayInitialFocusTimer=g((function(){I(F());e()}))}))}else{I(F())}f.addEventListener("focusin",x,true);f.addEventListener("mousedown",B,{capture:true,passive:false});f.addEventListener("touchstart",B,{capture:true,passive:false});f.addEventListener("click",L,{capture:true,passive:false});f.addEventListener("keydown",W,{capture:true,passive:false});f.addEventListener("keydown",K);return r};var Y=function e(r){if(c.active&&!c.paused){d._setSubtreeIsolation(false)}c.adjacentElements.clear();c.alreadySilent.clear();var t=new Set;var n=new Set;var i=v(r),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;t.add(o);var u=typeof ShadowRoot!=="undefined"&&o.getRootNode()instanceof ShadowRoot;var f=o;while(f){t.add(f);var s=f.parentElement;var l=[];if(s){l=s.children}else if(!s&&u){l=f.getRootNode().children;s=f.getRootNode().host;u=typeof ShadowRoot!=="undefined"&&s.getRootNode()instanceof ShadowRoot}var h=v(l),p;try{for(h.s();!(p=h.n()).done;){var b=p.value;n.add(b)}}catch(e){h.e(e)}finally{h.f()}f=s}}}catch(e){i.e(e)}finally{i.f()}t.forEach((function(e){n["delete"](e)}));c.adjacentElements=n};var _=function e(){if(!c.active){return}f.removeEventListener("focusin",x,true);f.removeEventListener("mousedown",B,true);f.removeEventListener("touchstart",B,true);f.removeEventListener("click",L,true);f.removeEventListener("keydown",W,true);f.removeEventListener("keydown",K);return d};var G=function e(r){var t=c.mostRecentlyFocusedNode;if(!t){return}var n=r.some((function(e){var r=Array.from(e.removedNodes);return r.some((function(e){return e===t||typeof e.contains==="function"&&e.contains(t)}))}));if(n&&c.containers.some((function(e){return e===null||e===void 0?void 0:e.isConnected}))){k();var i=F();I(i)}};var q=typeof window!=="undefined"&&"MutationObserver"in window?new MutationObserver(G):undefined;var z=function e(){if(!q){return}q.disconnect();if(c.active&&!c.paused){c.containers.map((function(e){q.observe(e,{subtree:true,childList:true})}))}};d={get active(){return c.active},get paused(){return c.paused},activate:function e(r){if(c.active){return this}var t=h(r,"onActivate");var n=h(r,"onPostActivate");var i=h(r,"checkCanFocusTrap");var a=j.getActiveTrap(s);var o=false;if(a&&!a.paused){var u;(u=a._setSubtreeIsolation)===null||u===void 0||u.call(a,false);o=true}try{if(!i){k()}c.active=true;c.paused=false;c.nodeFocusedBeforeActivation=w(f);t===null||t===void 0||t({trap:d});var l=function e(){if(i){k()}var r=function e(){d._setSubtreeIsolation(true);z();n===null||n===void 0||n({trap:d})};var t=M();if(t){t.then(r)}else{r()}};if(i){i(c.containers.concat()).then(l,l);return this}l()}catch(e){if(a===j.getActiveTrap(s)&&o){var v;(v=a._setSubtreeIsolation)===null||v===void 0||v.call(a,true)}throw e}return this},deactivate:function e(r){if(!c.active){return this}var t=y({onDeactivate:l.onDeactivate,onPostDeactivate:l.onPostDeactivate,checkCanReturnFocus:l.checkCanReturnFocus},r);clearTimeout(c.delayInitialFocusTimer);c.delayInitialFocusTimer=undefined;if(!c.paused){d._setSubtreeIsolation(false)}c.alreadySilent.clear();_();c.active=false;c.paused=false;z();j.deactivateTrap(s,d);var n=h(t,"onDeactivate");var i=h(t,"onPostDeactivate");var a=h(t,"checkCanReturnFocus");var o=h(t,"delayReturnFocus");var u=h(t,"returnFocus","returnFocusOnDeactivate");n===null||n===void 0||n({trap:d});var f=function e(){if(u){I(N(c.nodeFocusedBeforeActivation))}i===null||i===void 0||i({trap:d})};var v=function e(){if(o&&u){g(f)}else{f()}};if(u&&a){a(N(c.nodeFocusedBeforeActivation)).then(v,v);return this}v();return this},pause:function e(r){if(!c.active){return this}c.manuallyPaused=true;return this._setPausedState(true,r)},unpause:function e(r){if(!c.active){return this}c.manuallyPaused=false;if(s[s.length-1]!==this){return this}return this._setPausedState(false,r)},updateContainerElements:function e(r){var t=[].concat(r).filter(Boolean);c.containers=t.map((function(e){return typeof e==="string"?f.querySelector(e):e}));if(l.isolateSubtrees){Y(c.containers)}if(c.active){k();if(!c.paused){d._setSubtreeIsolation(true)}}z();return this}};Object.defineProperties(d,{_isManuallyPaused:{value:function e(){return c.manuallyPaused}},_setPausedState:{value:function e(r,t){if(c.paused===r){return this}c.paused=r;if(r){var n=h(t,"onPause");var i=h(t,"onPostPause");n===null||n===void 0||n({trap:d});_();d._setSubtreeIsolation(false);z();i===null||i===void 0||i({trap:d})}else{var a=h(t,"onUnpause");var o=h(t,"onPostUnpause");a===null||a===void 0||a({trap:d});var u=function e(){k();var r=function e(){d._setSubtreeIsolation(true);z();o===null||o===void 0||o({trap:d})};var t=M();if(t){t.then(r)}else{r()}};u()}return this}},_setSubtreeIsolation:{value:function e(r){if(l.isolateSubtrees){c.adjacentElements.forEach((function(e){var t;if(r){switch(l.isolateSubtrees){case"aria-hidden":if(e.ariaHidden==="true"||((t=e.getAttribute("aria-hidden"))===null||t===void 0?void 0:t.toLowerCase())==="true"){c.alreadySilent.add(e)}e.setAttribute("aria-hidden","true");break;default:if(e.inert||e.hasAttribute("inert")){c.alreadySilent.add(e)}e.setAttribute("inert",true);break}}else{if(c.alreadySilent.has(e));else{switch(l.isolateSubtrees){case"aria-hidden":e.removeAttribute("aria-hidden");break;default:e.removeAttribute("inert");break}}}}))}}}});d.updateContainerElements(o);return d};class N{constructor(r,t){this.config=t;this.host=r;this.host.addController(this);this.hostElement=e(this.host)}get trapRoot(){var e,r,t;return(t=(r=(e=this.config).getTrapRoot)===null||r===void 0?void 0:r.call(e))!==null&&t!==void 0?t:this.hostElement}getTabbableElements(){if(!this.trapRoot){return[]}if(this.config.tabbableElements){return typeof this.config.tabbableElements==="function"?this.config.tabbableElements():this.config.tabbableElements}return o(this.trapRoot)}focusFirstTrapElement(){var e;(e=this.getTabbableElements()[0])===null||e===void 0?void 0:e.focus()}focusLastTrapElement(){var e;const r=this.getTabbableElements();(e=r[r.length-1])===null||e===void 0?void 0:e.focus()}sync(){if(!this.trapRoot){return}if(!this.focusTrap){this.focusTrap=I(this.trapRoot,Object.assign({allowOutsideClick:true,clickOutsideDeactivates:false,escapeDeactivates:false,returnFocusOnDeactivate:true,initialFocus:()=>{var e;return(e=this.getTabbableElements()[0])!==null&&e!==void 0?e:this.config.fallbackFocus},onPostActivate:()=>this.focusFirstTrapElement(),isKeyForward:()=>false,isKeyBackward:()=>false,document:this.hostElement.ownerDocument},this.config))}if(this.config.isActive()){this.focusTrap.activate();return}this.focusTrap.deactivate()}handleWrapTab(e){if(e.key!==s.TAB||e.altKey||e.ctrlKey||e.metaKey||e.defaultPrevented){return}const r=this.getTabbableElements();if(!r.length){return}const t=f(this.hostElement.ownerDocument);const n=r[0];const i=r[r.length-1];const a=t?u(n,t):false;const o=t?u(i,t):false;if(e.shiftKey&&a){e.preventDefault();this.focusLastTrapElement();return}if(!e.shiftKey&&o){e.preventDefault();this.focusFirstTrapElement()}}deactivate(){var e;(e=this.focusTrap)===null||e===void 0?void 0:e.deactivate()}hostDisconnected(){this.deactivate()}}class C{constructor(){this.controllers=new Set}addController(e){this.controllers.add(e)}removeController(e){this.controllers.delete(e)}connectedCallback(){this.controllers.forEach((e=>{var r;return(r=e.hostConnected)===null||r===void 0?void 0:r.call(e)}))}disconnectedCallback(){this.controllers.forEach((e=>{var r;return(r=e.hostDisconnected)===null||r===void 0?void 0:r.call(e)}))}componentWillLoad(){this.controllers.forEach((e=>{var r;return(r=e.hostWillLoad)===null||r===void 0?void 0:r.call(e)}))}componentDidLoad(){this.controllers.forEach((e=>{var r;return(r=e.hostDidLoad)===null||r===void 0?void 0:r.call(e)}))}componentWillRender(){this.controllers.forEach((e=>{var r;return(r=e.hostWillRender)===null||r===void 0?void 0:r.call(e)}))}componentDidRender(){this.controllers.forEach((e=>{var r;return(r=e.hostDidRender)===null||r===void 0?void 0:r.call(e)}))}componentWillUpdate(){this.controllers.forEach((e=>{var r;return(r=e.hostWillUpdate)===null||r===void 0?void 0:r.call(e)}))}componentDidUpdate(){this.controllers.forEach((e=>{var r;return(r=e.hostDidUpdate)===null||r===void 0?void 0:r.call(e)}))}}export{N as F,C as R};
|
|
6
|
+
//# sourceMappingURL=p-BjrC13Q0.js.map
|