@zanichelli/albe-web-components 19.3.0-RC5 → 19.3.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 +32 -0
- package/dist/cjs/{iconset-Bcbz2MS1.js → iconset-oiCBBbd2.js} +15 -3
- package/dist/cjs/{index-2H1EJ2Tl.js → index-D_S5lGcb.js} +5 -5
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/web-components-library.cjs.js +2 -2
- package/dist/cjs/z-accordion.cjs.entry.js +1 -1
- package/dist/cjs/z-alert.cjs.entry.js +2 -2
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +137 -204
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-avatar.cjs.entry.js +1 -1
- package/dist/cjs/z-book-card-app.cjs.entry.js +1 -1
- package/dist/cjs/z-book-card-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-book-card.cjs.entry.js +1 -1
- package/dist/cjs/z-book-cover.cjs.entry.js +1 -1
- package/dist/cjs/z-breadcrumb.cjs.entry.js +6 -6
- package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/cjs/z-card.cjs.entry.js +1 -1
- package/dist/cjs/z-carousel.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +1 -1
- package/dist/cjs/z-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/z-combobox.cjs.entry.js +6 -4
- package/dist/cjs/z-cover-hero.cjs.entry.js +1 -1
- package/dist/cjs/z-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +1 -1
- package/dist/cjs/z-file-upload.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
- package/dist/cjs/z-logo.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-section-deprecated.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-myz-card-alert.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-list.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card_4.cjs.entry.js +5 -5
- package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-list.cjs.entry.js +2 -2
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
- package/dist/cjs/z-notification.cjs.entry.js +3 -3
- package/dist/cjs/z-otp.cjs.entry.js +3 -3
- package/dist/cjs/z-pagination.cjs.entry.js +3 -3
- package/dist/cjs/z-panel-elem.cjs.entry.js +1 -1
- package/dist/cjs/z-popover.cjs.entry.js +1 -1
- package/dist/cjs/z-range-picker.cjs.entry.js +1 -1
- package/dist/cjs/z-result-card.cjs.entry.js +1 -1
- package/dist/cjs/z-section-title.cjs.entry.js +1 -1
- package/dist/cjs/z-select.cjs.entry.js +1 -1
- package/dist/cjs/z-skip-to-content.cjs.entry.js +2 -2
- package/dist/cjs/z-slideshow.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper-item.cjs.entry.js +2 -2
- package/dist/cjs/z-stepper.cjs.entry.js +2 -2
- package/dist/cjs/z-table.cjs.entry.js +1 -1
- package/dist/cjs/z-tbody.cjs.entry.js +1 -1
- package/dist/cjs/z-td.cjs.entry.js +4 -4
- package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
- package/dist/cjs/z-th.cjs.entry.js +6 -4
- package/dist/cjs/z-thead.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
- package/dist/cjs/z-toast-notification.cjs.entry.js +96 -35
- package/dist/cjs/z-toggle-button.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 +2 -2
- package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/z-tr.cjs.entry.js +1 -1
- 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/components/css-components/z-scrollbar/styles.css +40 -0
- package/dist/collection/components/table/cells/{z-td/styles.css → z-table-cells.css} +0 -1
- package/dist/collection/components/table/cells/z-td/index.js +3 -3
- package/dist/collection/components/table/cells/z-th/index.js +3 -3
- package/dist/collection/components/table/cells/z-th/styles.css +0 -72
- package/dist/collection/components/z-app-header/index.js +21 -2
- package/dist/collection/components/z-app-header/index.stories.js +25 -9
- package/dist/collection/components/z-breadcrumb/index.js +5 -5
- package/dist/collection/components/z-button/index.js +5 -2
- package/dist/collection/components/z-combobox/index.js +3 -3
- package/dist/collection/components/z-combobox/styles.css +0 -12
- package/dist/collection/components/z-input/index.js +3 -3
- package/dist/collection/components/z-input/styles-checkbox-radio.css +130 -0
- package/dist/collection/components/z-input/styles-general.css +166 -0
- package/dist/collection/components/z-input/styles-text.css +87 -0
- package/dist/collection/components/z-input/styles-textarea.css +19 -0
- package/dist/collection/components/z-notification/index.js +3 -2
- package/dist/collection/components/z-notification/index.stories.js +79 -77
- package/dist/collection/components/z-notification/styles.css +8 -6
- package/dist/collection/components/z-pagination/index.js +2 -2
- package/dist/collection/components/z-searchbar/index.js +133 -193
- package/dist/collection/components/z-searchbar/index.stories.js +12 -16
- package/dist/collection/components/z-searchbar/styles.css +87 -201
- 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-toast-notification/index.js +3 -3
- package/dist/collection/components/z-toast-notification-list/index.js +1 -1
- package/dist/collection/components/z-toggle-button/index.js +2 -2
- package/dist/collection/components/z-toggle-switch/index.js +3 -3
- package/dist/collection/components/z-tool/index.js +3 -3
- package/dist/collection/components/z-toolbar/index.js +1 -1
- package/dist/collection/components/z-tooltip/index.js +1 -1
- package/dist/collection/constants/iconset.js +15 -3
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
- package/dist/components/iconset.js +1 -1
- package/dist/components/index13.js +1 -1
- package/dist/components/index22.js +1 -1
- package/dist/components/index23.js +1 -1
- package/dist/components/index24.js +1 -1
- package/dist/components/index25.js +1 -1
- package/dist/components/index26.js +1 -1
- package/dist/components/index27.js +1 -1
- package/dist/components/index4.js +1 -1
- package/dist/components/index5.js +1 -1
- package/dist/components/index7.js +1 -1
- package/dist/components/z-app-header.js +1 -1
- package/dist/components/z-breadcrumb.js +1 -1
- package/dist/components/z-combobox.js +1 -1
- package/dist/components/z-myz-card-alert.js +1 -1
- package/dist/components/z-myz-card-dictionary.js +1 -1
- package/dist/components/z-myz-card-footer-sections.js +1 -1
- package/dist/components/z-myz-card-footer.js +1 -1
- package/dist/components/z-myz-card-icon.js +1 -1
- package/dist/components/z-myz-card-info.js +1 -1
- package/dist/components/z-myz-card-list.js +1 -1
- package/dist/components/z-myz-list.js +1 -1
- package/dist/components/z-notification.js +1 -1
- package/dist/components/z-otp.js +1 -1
- package/dist/components/z-pagination.js +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-td.js +1 -1
- package/dist/components/z-th.js +1 -1
- package/dist/components/z-toast-notification-list.js +1 -1
- package/dist/components/z-toast-notification.js +1 -1
- package/dist/components/z-toggle-button.js +1 -1
- 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/esm/{iconset-BanpkIXZ.js → iconset-CjHS9zeM.js} +15 -3
- package/dist/esm/{index-ByN2sYu6.js → index-DPdXlnVe.js} +5 -5
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-0PByxJyN.js → utils-DYd3kO0P.js} +1 -1
- package/dist/esm/web-components-library.js +3 -3
- package/dist/esm/z-accordion.entry.js +1 -1
- package/dist/esm/z-alert.entry.js +2 -2
- package/dist/esm/z-anchor-navigation.entry.js +1 -1
- package/dist/esm/z-app-header-deprecated.entry.js +1 -1
- package/dist/esm/z-app-header_12.entry.js +139 -206
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +1 -1
- package/dist/esm/z-book-card-app.entry.js +1 -1
- package/dist/esm/z-book-card-deprecated.entry.js +2 -2
- package/dist/esm/z-book-card.entry.js +1 -1
- package/dist/esm/z-book-cover.entry.js +1 -1
- package/dist/esm/z-breadcrumb.entry.js +7 -7
- package/dist/esm/z-button-sort.entry.js +1 -1
- package/dist/esm/z-card.entry.js +1 -1
- package/dist/esm/z-carousel.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +1 -1
- package/dist/esm/z-color-picker.entry.js +2 -2
- package/dist/esm/z-combobox.entry.js +7 -5
- package/dist/esm/z-cover-hero.entry.js +1 -1
- package/dist/esm/z-date-picker.entry.js +1 -1
- package/dist/esm/z-dragdrop-area_2.entry.js +1 -1
- package/dist/esm/z-file-upload.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/z-info-reveal.entry.js +1 -1
- package/dist/esm/z-logo.entry.js +1 -1
- package/dist/esm/z-menu-deprecated.entry.js +1 -1
- package/dist/esm/z-menu-section-deprecated.entry.js +1 -1
- package/dist/esm/z-menu-section.entry.js +1 -1
- package/dist/esm/z-menu.entry.js +2 -2
- package/dist/esm/z-myz-card-alert.entry.js +2 -2
- package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
- package/dist/esm/z-myz-card-footer-sections.entry.js +2 -2
- package/dist/esm/z-myz-card-footer.entry.js +2 -2
- package/dist/esm/z-myz-card-icon.entry.js +2 -2
- package/dist/esm/z-myz-card-info.entry.js +3 -3
- package/dist/esm/z-myz-card-list.entry.js +2 -2
- package/dist/esm/z-myz-card_4.entry.js +5 -5
- package/dist/esm/z-myz-list-item.entry.js +3 -3
- package/dist/esm/z-myz-list.entry.js +2 -2
- package/dist/esm/z-navigation-tabs.entry.js +1 -1
- package/dist/esm/z-notification.entry.js +3 -3
- package/dist/esm/z-otp.entry.js +3 -3
- package/dist/esm/z-pagination.entry.js +3 -3
- package/dist/esm/z-panel-elem.entry.js +1 -1
- package/dist/esm/z-popover.entry.js +2 -2
- package/dist/esm/z-range-picker.entry.js +1 -1
- package/dist/esm/z-result-card.entry.js +1 -1
- package/dist/esm/z-section-title.entry.js +1 -1
- package/dist/esm/z-select.entry.js +2 -2
- package/dist/esm/z-skip-to-content.entry.js +3 -3
- package/dist/esm/z-slideshow.entry.js +2 -2
- package/dist/esm/z-stepper-item.entry.js +2 -2
- package/dist/esm/z-stepper.entry.js +2 -2
- 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 +4 -4
- package/dist/esm/z-tfoot.entry.js +1 -1
- package/dist/esm/z-th.entry.js +6 -4
- package/dist/esm/z-thead.entry.js +1 -1
- package/dist/esm/z-toast-notification-list.entry.js +2 -2
- package/dist/esm/z-toast-notification.entry.js +96 -35
- package/dist/esm/z-toggle-button.entry.js +3 -3
- package/dist/esm/z-toggle-switch.entry.js +5 -5
- package/dist/esm/z-tool.entry.js +4 -4
- package/dist/esm/z-toolbar.entry.js +2 -2
- package/dist/esm/z-tooltip.entry.js +2 -2
- 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/z-app-header/index.d.ts +4 -0
- package/dist/types/components/z-app-header/index.stories.d.ts +7 -0
- package/dist/types/components/z-notification/index.d.ts +2 -1
- package/dist/types/components/z-notification/index.stories.d.ts +27 -22
- package/dist/types/components/z-searchbar/index.d.ts +26 -28
- package/dist/types/components/z-searchbar/index.stories.d.ts +4 -0
- package/dist/types/components.d.ts +42 -18
- package/dist/types/constants/iconset.d.ts +30 -6
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/p-087956fa.entry.js +1 -0
- package/dist/web-components-library/{p-9b181c2c.entry.js → p-10e5e16e.entry.js} +1 -1
- package/dist/web-components-library/{p-8f945346.entry.js → p-13e7f751.entry.js} +1 -1
- package/dist/web-components-library/{p-366d2553.entry.js → p-14b804f9.entry.js} +1 -1
- package/{www/build/p-9d3bde23.entry.js → dist/web-components-library/p-1580db58.entry.js} +1 -1
- package/dist/web-components-library/p-15825811.entry.js +1 -0
- package/dist/web-components-library/{p-1210c90f.entry.js → p-1993b0ad.entry.js} +1 -1
- package/dist/web-components-library/{p-eb722234.entry.js → p-1a95491d.entry.js} +1 -1
- package/dist/web-components-library/{p-ebdbd84c.entry.js → p-1d023220.entry.js} +1 -1
- package/dist/web-components-library/{p-5fc4048b.entry.js → p-21c85e04.entry.js} +1 -1
- package/dist/web-components-library/{p-081b1648.entry.js → p-23b46642.entry.js} +1 -1
- package/dist/web-components-library/{p-59d4ac9e.entry.js → p-299f0f85.entry.js} +1 -1
- package/dist/web-components-library/p-29dde955.entry.js +1 -0
- package/dist/web-components-library/p-2c036e17.entry.js +1 -0
- package/dist/web-components-library/{p-c23bfec2.entry.js → p-2d4c01c3.entry.js} +1 -1
- package/dist/web-components-library/p-2dabe353.entry.js +1 -0
- package/dist/web-components-library/{p-1afd69ba.entry.js → p-2df6d169.entry.js} +1 -1
- package/dist/web-components-library/{p-2f99634d.entry.js → p-2ef82e17.entry.js} +1 -1
- package/dist/web-components-library/{p-30c86858.entry.js → p-324933f6.entry.js} +1 -1
- package/{www/build/p-50b59012.entry.js → dist/web-components-library/p-37e84b71.entry.js} +1 -1
- package/dist/web-components-library/{p-1e984688.entry.js → p-3c53e451.entry.js} +1 -1
- package/dist/web-components-library/{p-5883dbc1.entry.js → p-3ea03d34.entry.js} +1 -1
- package/dist/web-components-library/p-41584e90.entry.js +1 -0
- package/{www/build/p-6ece59b5.entry.js → dist/web-components-library/p-50e10a10.entry.js} +1 -1
- package/dist/web-components-library/{p-17429bce.entry.js → p-52899754.entry.js} +1 -1
- package/dist/web-components-library/p-53670be4.entry.js +1 -0
- package/dist/web-components-library/{p-02e588b4.entry.js → p-583b8152.entry.js} +1 -1
- package/dist/web-components-library/{p-afab22fc.entry.js → p-5a05dc1e.entry.js} +1 -1
- package/dist/web-components-library/{p-a975b91d.entry.js → p-5d20fc3d.entry.js} +1 -1
- package/{www/build/p-5c85b7f4.entry.js → dist/web-components-library/p-622466f9.entry.js} +1 -1
- package/dist/web-components-library/{p-0727e9aa.entry.js → p-658f022d.entry.js} +1 -1
- package/dist/web-components-library/{p-ecea3d09.entry.js → p-6bd35edf.entry.js} +1 -1
- package/dist/web-components-library/{p-00f09ae2.entry.js → p-7226f07a.entry.js} +1 -1
- package/dist/web-components-library/p-7371a543.entry.js +2 -0
- package/dist/web-components-library/{p-b5c180bc.entry.js → p-77bf39a4.entry.js} +1 -1
- package/dist/web-components-library/{p-acf23ad8.entry.js → p-788eaac7.entry.js} +1 -1
- package/{www/build/p-631f111d.entry.js → dist/web-components-library/p-7bf7539a.entry.js} +1 -1
- package/dist/web-components-library/p-81eb43fd.entry.js +1 -0
- package/dist/web-components-library/{p-abfdc045.entry.js → p-8261c869.entry.js} +1 -1
- package/{www/build/p-5bb77af2.entry.js → dist/web-components-library/p-83da1031.entry.js} +1 -1
- package/{www/build/p-d57c5efc.entry.js → dist/web-components-library/p-85cac60d.entry.js} +1 -1
- package/dist/web-components-library/{p-2294f1b0.entry.js → p-88a3ba7c.entry.js} +1 -1
- package/dist/web-components-library/{p-0ca6e928.entry.js → p-8a8df4f4.entry.js} +1 -1
- package/dist/web-components-library/{p-040fbd28.entry.js → p-8b026993.entry.js} +1 -1
- package/dist/web-components-library/{p-294f7b4e.entry.js → p-8d7e2e16.entry.js} +1 -1
- package/dist/web-components-library/{p-19536f5e.entry.js → p-8de064a4.entry.js} +1 -1
- package/dist/web-components-library/{p-aabb5aea.entry.js → p-8f4a04aa.entry.js} +1 -1
- package/dist/web-components-library/{p-D4yqZKyM.js → p-CPsEG702.js} +1 -1
- package/dist/web-components-library/p-CjHS9zeM.js +1 -0
- package/dist/web-components-library/{p-ByN2sYu6.js → p-DPdXlnVe.js} +1 -1
- package/dist/web-components-library/{p-58933ba5.entry.js → p-a4f673f8.entry.js} +1 -1
- package/dist/web-components-library/{p-a336c241.entry.js → p-aa4fc3d3.entry.js} +1 -1
- package/{www/build/p-48d72b52.entry.js → dist/web-components-library/p-aa72d766.entry.js} +1 -1
- package/{www/build/p-b38d52e5.entry.js → dist/web-components-library/p-ad2cd7fc.entry.js} +1 -1
- package/dist/web-components-library/{p-241eaed0.entry.js → p-b6223d7e.entry.js} +1 -1
- package/{www/build/p-41b55222.entry.js → dist/web-components-library/p-b851f20b.entry.js} +1 -1
- package/dist/web-components-library/{p-d304ce44.entry.js → p-b9343431.entry.js} +1 -1
- package/dist/web-components-library/{p-a3a7c406.entry.js → p-be354b22.entry.js} +1 -1
- package/dist/web-components-library/{p-c8f40472.entry.js → p-c42ddd93.entry.js} +1 -1
- package/dist/web-components-library/{p-896470e8.entry.js → p-c4e7bd16.entry.js} +1 -1
- package/dist/web-components-library/{p-794c613e.entry.js → p-c944a943.entry.js} +1 -1
- package/dist/web-components-library/{p-4b0a730e.entry.js → p-cd33f4b1.entry.js} +1 -1
- package/dist/web-components-library/{p-ad2ed505.entry.js → p-cdd88182.entry.js} +1 -1
- package/dist/web-components-library/{p-8745878e.entry.js → p-d3053434.entry.js} +1 -1
- package/dist/web-components-library/{p-fade8c19.entry.js → p-d63665c1.entry.js} +1 -1
- package/dist/web-components-library/{p-1b851174.entry.js → p-dabccb20.entry.js} +1 -1
- package/dist/web-components-library/p-dc5ab2cc.entry.js +1 -0
- package/dist/web-components-library/{p-5797bf38.entry.js → p-dfd43710.entry.js} +1 -1
- package/dist/web-components-library/{p-0a819ab4.entry.js → p-e1d0a6e3.entry.js} +1 -1
- package/dist/web-components-library/p-e48497f0.entry.js +1 -0
- package/dist/web-components-library/{p-a9534450.entry.js → p-ec4940ce.entry.js} +1 -1
- package/dist/web-components-library/{p-ed74f357.entry.js → p-eddc2d19.entry.js} +1 -1
- package/dist/web-components-library/{p-6d53942a.entry.js → p-ef5018bb.entry.js} +1 -1
- package/dist/web-components-library/{p-f5e7fa96.entry.js → p-f7e46ef2.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.css +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +3 -3
- package/www/build/index.esm.js +1 -1
- package/www/build/p-087956fa.entry.js +1 -0
- package/www/build/{p-9b181c2c.entry.js → p-10e5e16e.entry.js} +1 -1
- package/www/build/{p-8f945346.entry.js → p-13e7f751.entry.js} +1 -1
- package/www/build/{p-366d2553.entry.js → p-14b804f9.entry.js} +1 -1
- package/{dist/web-components-library/p-9d3bde23.entry.js → www/build/p-1580db58.entry.js} +1 -1
- package/www/build/p-15825811.entry.js +1 -0
- package/www/build/{p-1210c90f.entry.js → p-1993b0ad.entry.js} +1 -1
- package/www/build/{p-eb722234.entry.js → p-1a95491d.entry.js} +1 -1
- package/www/build/{p-ebdbd84c.entry.js → p-1d023220.entry.js} +1 -1
- package/www/build/{p-5fc4048b.entry.js → p-21c85e04.entry.js} +1 -1
- package/www/build/{p-081b1648.entry.js → p-23b46642.entry.js} +1 -1
- package/www/build/{p-59d4ac9e.entry.js → p-299f0f85.entry.js} +1 -1
- package/www/build/p-29dde955.entry.js +1 -0
- package/www/build/p-2c036e17.entry.js +1 -0
- package/www/build/{p-c23bfec2.entry.js → p-2d4c01c3.entry.js} +1 -1
- package/www/build/p-2dabe353.entry.js +1 -0
- package/www/build/{p-1afd69ba.entry.js → p-2df6d169.entry.js} +1 -1
- package/www/build/{p-2f99634d.entry.js → p-2ef82e17.entry.js} +1 -1
- package/www/build/{p-30c86858.entry.js → p-324933f6.entry.js} +1 -1
- package/{dist/web-components-library/p-50b59012.entry.js → www/build/p-37e84b71.entry.js} +1 -1
- package/www/build/{p-1e984688.entry.js → p-3c53e451.entry.js} +1 -1
- package/www/build/{p-5883dbc1.entry.js → p-3ea03d34.entry.js} +1 -1
- package/www/build/p-41584e90.entry.js +1 -0
- package/{dist/web-components-library/p-6ece59b5.entry.js → www/build/p-50e10a10.entry.js} +1 -1
- package/www/build/{p-17429bce.entry.js → p-52899754.entry.js} +1 -1
- package/www/build/p-53670be4.entry.js +1 -0
- package/www/build/{p-02e588b4.entry.js → p-583b8152.entry.js} +1 -1
- package/www/build/{p-afab22fc.entry.js → p-5a05dc1e.entry.js} +1 -1
- package/www/build/{p-a975b91d.entry.js → p-5d20fc3d.entry.js} +1 -1
- package/{dist/web-components-library/p-5c85b7f4.entry.js → www/build/p-622466f9.entry.js} +1 -1
- package/www/build/{p-0727e9aa.entry.js → p-658f022d.entry.js} +1 -1
- package/www/build/{p-ecea3d09.entry.js → p-6bd35edf.entry.js} +1 -1
- package/www/build/{p-00f09ae2.entry.js → p-7226f07a.entry.js} +1 -1
- package/www/build/p-7371a543.entry.js +2 -0
- package/www/build/{p-b5c180bc.entry.js → p-77bf39a4.entry.js} +1 -1
- package/www/build/{p-acf23ad8.entry.js → p-788eaac7.entry.js} +1 -1
- package/{dist/web-components-library/p-631f111d.entry.js → www/build/p-7bf7539a.entry.js} +1 -1
- package/www/build/p-81eb43fd.entry.js +1 -0
- package/www/build/{p-abfdc045.entry.js → p-8261c869.entry.js} +1 -1
- package/{dist/web-components-library/p-5bb77af2.entry.js → www/build/p-83da1031.entry.js} +1 -1
- package/{dist/web-components-library/p-d57c5efc.entry.js → www/build/p-85cac60d.entry.js} +1 -1
- package/www/build/{p-2294f1b0.entry.js → p-88a3ba7c.entry.js} +1 -1
- package/www/build/{p-0ca6e928.entry.js → p-8a8df4f4.entry.js} +1 -1
- package/www/build/{p-040fbd28.entry.js → p-8b026993.entry.js} +1 -1
- package/www/build/{p-294f7b4e.entry.js → p-8d7e2e16.entry.js} +1 -1
- package/www/build/{p-19536f5e.entry.js → p-8de064a4.entry.js} +1 -1
- package/www/build/{p-aabb5aea.entry.js → p-8f4a04aa.entry.js} +1 -1
- package/www/build/{p-D4yqZKyM.js → p-CPsEG702.js} +1 -1
- package/www/build/p-CjHS9zeM.js +1 -0
- package/www/build/{p-ByN2sYu6.js → p-DPdXlnVe.js} +1 -1
- package/www/build/{p-58933ba5.entry.js → p-a4f673f8.entry.js} +1 -1
- package/www/build/{p-a336c241.entry.js → p-aa4fc3d3.entry.js} +1 -1
- package/{dist/web-components-library/p-48d72b52.entry.js → www/build/p-aa72d766.entry.js} +1 -1
- package/{dist/web-components-library/p-b38d52e5.entry.js → www/build/p-ad2cd7fc.entry.js} +1 -1
- package/www/build/{p-241eaed0.entry.js → p-b6223d7e.entry.js} +1 -1
- package/{dist/web-components-library/p-41b55222.entry.js → www/build/p-b851f20b.entry.js} +1 -1
- package/www/build/{p-d304ce44.entry.js → p-b9343431.entry.js} +1 -1
- package/www/build/{p-a3a7c406.entry.js → p-be354b22.entry.js} +1 -1
- package/www/build/{p-c8f40472.entry.js → p-c42ddd93.entry.js} +1 -1
- package/www/build/{p-896470e8.entry.js → p-c4e7bd16.entry.js} +1 -1
- package/www/build/{p-ea2cbe37.js → p-c5c5a64f.js} +1 -1
- package/www/build/{p-813bd63b.css → p-c60c851a.css} +1 -1
- package/www/build/{p-794c613e.entry.js → p-c944a943.entry.js} +1 -1
- package/www/build/{p-4b0a730e.entry.js → p-cd33f4b1.entry.js} +1 -1
- package/www/build/{p-ad2ed505.entry.js → p-cdd88182.entry.js} +1 -1
- package/www/build/{p-8745878e.entry.js → p-d3053434.entry.js} +1 -1
- package/www/build/{p-fade8c19.entry.js → p-d63665c1.entry.js} +1 -1
- package/www/build/{p-1b851174.entry.js → p-dabccb20.entry.js} +1 -1
- package/www/build/p-dc5ab2cc.entry.js +1 -0
- package/www/build/{p-5797bf38.entry.js → p-dfd43710.entry.js} +1 -1
- package/www/build/{p-0a819ab4.entry.js → p-e1d0a6e3.entry.js} +1 -1
- package/www/build/p-e48497f0.entry.js +1 -0
- package/www/build/{p-a9534450.entry.js → p-ec4940ce.entry.js} +1 -1
- package/www/build/{p-ed74f357.entry.js → p-eddc2d19.entry.js} +1 -1
- package/www/build/{p-6d53942a.entry.js → p-ef5018bb.entry.js} +1 -1
- package/www/build/{p-f5e7fa96.entry.js → p-f7e46ef2.entry.js} +1 -1
- package/www/build/web-components-library.css +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/collection/components/z-input/styles.css +0 -406
- package/dist/web-components-library/p-062ba668.entry.js +0 -1
- package/dist/web-components-library/p-0eb7baa4.entry.js +0 -1
- package/dist/web-components-library/p-1c5bbea1.entry.js +0 -1
- package/dist/web-components-library/p-27f93251.entry.js +0 -1
- package/dist/web-components-library/p-314302ce.entry.js +0 -1
- package/dist/web-components-library/p-3c861d49.entry.js +0 -1
- package/dist/web-components-library/p-7a55d688.entry.js +0 -2
- package/dist/web-components-library/p-8042aaf7.entry.js +0 -1
- package/dist/web-components-library/p-BanpkIXZ.js +0 -1
- package/dist/web-components-library/p-a1127213.entry.js +0 -1
- package/dist/web-components-library/p-afcabf3b.entry.js +0 -1
- package/dist/web-components-library/p-db0a60fc.entry.js +0 -1
- package/www/build/p-062ba668.entry.js +0 -1
- package/www/build/p-0eb7baa4.entry.js +0 -1
- package/www/build/p-1c5bbea1.entry.js +0 -1
- package/www/build/p-27f93251.entry.js +0 -1
- package/www/build/p-314302ce.entry.js +0 -1
- package/www/build/p-3c861d49.entry.js +0 -1
- package/www/build/p-7a55d688.entry.js +0 -2
- package/www/build/p-8042aaf7.entry.js +0 -1
- package/www/build/p-BanpkIXZ.js +0 -1
- package/www/build/p-a1127213.entry.js +0 -1
- package/www/build/p-afcabf3b.entry.js +0 -1
- package/www/build/p-db0a60fc.entry.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-D_S5lGcb.js');
|
|
4
4
|
var index$1 = require('./index-wGaSHN1_.js');
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const zTableCellsCss = () => `:host{position:relative;display:flex;max-width:100%;align-items:center;padding:calc(var(--z-table--cells-padding, calc(var(--space-unit) * 2)));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}}`;
|
|
7
7
|
|
|
8
8
|
const ZTd = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -45,7 +45,7 @@ const ZTd = class {
|
|
|
45
45
|
this.updateColspan();
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (index.h(index.Host, { key: '
|
|
48
|
+
return (index.h(index.Host, { key: '3de2b08ae7ba78632945b3c7a18c39cbc91dd03f', role: "cell", "menu-open": this.isMenuOpen }, index.h("div", { key: '0c281b227221cbd01d76ee8e5909d2ea77071f9a', class: "cell--content" }, index.h("slot", { key: 'fb6a90291b513310d4f48ea3a26c5dfe197d6434' }), this.showMenu && (index.h("div", { key: 'dd2c301848ea64effee47f2c5e690eab30259d19', class: "cell--menu-container prevent-expand" }, index.h("z-button", { key: 'b010e8ef6fcd68289f1e5599216c416dcf866788', variant: index$1.ButtonVariant.TERTIARY, icon: "contextual-menu", size: index$1.ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: this.onMenuButtonClick.bind(this) }), index.h("z-popover", { key: '055d4c47c314f74939b4de3ec60ad43d20beaad2', class: "cell-popover", ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, index.h("slot", { key: '2d097873fe805093434e9b932c0e36082f5a15a5', name: "contextual-menu" })))))));
|
|
49
49
|
}
|
|
50
50
|
get host() { return index.getElement(this); }
|
|
51
51
|
static get watchers() { return {
|
|
@@ -54,6 +54,6 @@ const ZTd = class {
|
|
|
54
54
|
}]
|
|
55
55
|
}; }
|
|
56
56
|
};
|
|
57
|
-
ZTd.style =
|
|
57
|
+
ZTd.style = zTableCellsCss();
|
|
58
58
|
|
|
59
59
|
exports.z_td = ZTd;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-D_S5lGcb.js');
|
|
4
4
|
|
|
5
5
|
const stylesCss = () => `:host{display:block;box-sizing:border-box;border-top:1px solid var(--color-surface03);border-bottom:1px solid var(--color-surface03)}:host([sticky]){position:sticky;z-index:1;bottom:0;background-color:var(--color-surface01)}`;
|
|
6
6
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-D_S5lGcb.js');
|
|
4
4
|
var index$1 = require('./index-wGaSHN1_.js');
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const zTableCellsCss = () => `:host{position:relative;display:flex;max-width:100%;align-items:center;padding:calc(var(--z-table--cells-padding, calc(var(--space-unit) * 2)));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}}`;
|
|
7
|
+
|
|
8
|
+
const stylesCss = () => `:host{z-index:1;padding:0;background-color:var(--color-background);font-weight:var(--font-sb)}.cell--content{padding:var(--z-table--cells-padding, calc(var(--space-unit) * 2))}: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:""}`;
|
|
7
9
|
|
|
8
10
|
const ZTh = class {
|
|
9
11
|
constructor(hostRef) {
|
|
@@ -72,7 +74,7 @@ const ZTh = class {
|
|
|
72
74
|
this.updateColspan();
|
|
73
75
|
}
|
|
74
76
|
render() {
|
|
75
|
-
return (index.h(index.Host, { key: '
|
|
77
|
+
return (index.h(index.Host, { key: 'deec9e49e024f48b68fe8f54ebb141dcc2b19ec1', role: "columnheader", "menu-open": this.isMenuOpen, "aria-sort": this.ariaSortDirection, sortable: this.showSorting }, index.h("div", { key: '65fefbfef58a64f3287a2f1b5defd301392bba2b', class: "cell--content" }, index.h("slot", { key: 'a88011856bacb3b2e0875ed46b8b1468660e5b31' }), this.showSorting && (index.h("button", { key: '46f462137de04bb88eda2e14767660fc4629f087', class: "z-th--sort-button", type: "button", onClick: this.handleSort.bind(this) }, index.h("z-icon", { key: 'bcfe38f7ff932f2074dad3ab11b5df5867292654', name: this.sortDirection === index$1.SortDirection.DESC ? "arrow-simple-up" : "arrow-simple-down", width: 14, height: 14 }))), this.showMenu && (index.h("div", { key: '90ccc4ecc6f49f8d41a45c9979fabebfd8bcad01', class: "cell--menu-container" }, index.h("z-button", { key: '58b57db3a7129b6a811eca6f014a7b2c02050a41', variant: index$1.ButtonVariant.TERTIARY, icon: "contextual-menu", size: index$1.ControlSize.X_SMALL, ref: (el) => (this.menuTrigger = el), onClick: () => (this.popoverEl.open = !this.popoverEl.open) }), index.h("z-popover", { key: '927004bdbc077e358c00b765d58b64a70f95c83d', ref: (el) => (this.popoverEl = el), bindTo: this.menuTrigger, onOpenChange: (event) => (this.isMenuOpen = event.detail.open), position: this.popoverPosition }, index.h("slot", { key: '3b5dbcb8631fa4383366ff718c7e9a080b7ca3be', name: "contextual-menu" })))))));
|
|
76
78
|
}
|
|
77
79
|
get host() { return index.getElement(this); }
|
|
78
80
|
static get watchers() { return {
|
|
@@ -81,6 +83,6 @@ const ZTh = class {
|
|
|
81
83
|
}]
|
|
82
84
|
}; }
|
|
83
85
|
};
|
|
84
|
-
ZTh.style = stylesCss();
|
|
86
|
+
ZTh.style = zTableCellsCss() + stylesCss();
|
|
85
87
|
|
|
86
88
|
exports.z_th = ZTh;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-D_S5lGcb.js');
|
|
4
4
|
|
|
5
5
|
const stylesCss = () => `:host{--z-table--cells-bottom-border-size:var( --border-size-medium );--z-table--cells-background:var( --color-background );display:block;box-sizing:border-box}:host([sticky]){position:sticky;z-index:2;top:0;box-shadow:0 2px 4px -2px var(--shadow-color-base)}:host(:focus-visible){box-shadow:none;outline:none}`;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-D_S5lGcb.js');
|
|
4
4
|
var index$1 = require('./index-wGaSHN1_.js');
|
|
5
5
|
|
|
6
6
|
const stylesCss = () => `:host{position:fixed;z-index:10000;display:flex;flex-flow:column nowrap;margin-top:calc(var(--space-unit) * 2);margin-bottom:calc(var(--space-unit) * 2);font-family:var(--font-family-sans);font-weight:var(--font-rg)}::slotted(z-toast-notification){width:100vw}::slotted(:not(:last-child)){margin-bottom:calc(var(--space-unit) * 1)}:host([position="bottom-centre"]),:host([position="bottom-right"]),:host([position="bottom-left"]){bottom:0;align-items:flex-end;justify-content:flex-end}:host([position="top-left"]),:host([position="top-right"]),:host([position="top-centre"]){top:0;align-items:flex-start;justify-content:flex-start}@media only screen and (min-width: 768px){:host{margin:calc(var(--space-unit) * 3)}:host([position="top-centre"]){top:0;left:50%;align-items:center;justify-content:flex-start;transform:translateX(-50%)}:host([position="top-left"]){top:0;left:0;align-items:flex-start;justify-content:flex-start}:host([position="top-right"]){top:0;right:0;align-items:flex-end;justify-content:flex-start}:host([position="bottom-centre"]){bottom:0;left:50%;align-items:center;justify-content:flex-end;transform:translateX(-50%)}:host([position="bottom-right"]){right:0;bottom:0;align-items:flex-end;justify-content:flex-end}:host([position="bottom-left"]){bottom:0;left:0;align-items:flex-start;justify-content:flex-end}::slotted(z-toast-notification){width:50vw}}@media only screen and (min-width: 1366px){:host{margin:calc(var(--space-unit) * 4)}::slotted(z-toast-notification){width:33vw}}`;
|
|
@@ -45,7 +45,7 @@ const ZToastNotificationList = class {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return index.h("slot", { key: '
|
|
48
|
+
return index.h("slot", { key: '8219e6e96e73aee72df4e2d8d2e0e9155e8f7a2e', name: "toasts" });
|
|
49
49
|
}
|
|
50
50
|
get hostElement() { return index.getElement(this); }
|
|
51
51
|
static get watchers() { return {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-D_S5lGcb.js');
|
|
4
4
|
var index$1 = require('./index-wGaSHN1_.js');
|
|
5
5
|
var _commonjsHelpers = require('./_commonjsHelpers-CFO10eej.js');
|
|
6
6
|
|
|
7
|
-
/*! @license DOMPurify 3.
|
|
7
|
+
/*! @license DOMPurify 3.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.0/LICENSE */
|
|
8
8
|
|
|
9
9
|
const {
|
|
10
10
|
entries,
|
|
@@ -33,12 +33,18 @@ if (!seal) {
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
if (!apply) {
|
|
36
|
-
apply = function apply(
|
|
37
|
-
|
|
36
|
+
apply = function apply(func, thisArg) {
|
|
37
|
+
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
38
|
+
args[_key - 2] = arguments[_key];
|
|
39
|
+
}
|
|
40
|
+
return func.apply(thisArg, args);
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
if (!construct) {
|
|
41
|
-
construct = function construct(Func
|
|
44
|
+
construct = function construct(Func) {
|
|
45
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
46
|
+
args[_key2 - 1] = arguments[_key2];
|
|
47
|
+
}
|
|
42
48
|
return new Func(...args);
|
|
43
49
|
};
|
|
44
50
|
}
|
|
@@ -67,8 +73,8 @@ function unapply(func) {
|
|
|
67
73
|
if (thisArg instanceof RegExp) {
|
|
68
74
|
thisArg.lastIndex = 0;
|
|
69
75
|
}
|
|
70
|
-
for (var
|
|
71
|
-
args[
|
|
76
|
+
for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
77
|
+
args[_key3 - 1] = arguments[_key3];
|
|
72
78
|
}
|
|
73
79
|
return apply(func, thisArg, args);
|
|
74
80
|
};
|
|
@@ -79,12 +85,12 @@ function unapply(func) {
|
|
|
79
85
|
* @param func - The constructor function to be wrapped and called.
|
|
80
86
|
* @returns A new function that constructs an instance of the given constructor function with the provided arguments.
|
|
81
87
|
*/
|
|
82
|
-
function unconstruct(
|
|
88
|
+
function unconstruct(Func) {
|
|
83
89
|
return function () {
|
|
84
|
-
for (var
|
|
85
|
-
args[
|
|
90
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
91
|
+
args[_key4] = arguments[_key4];
|
|
86
92
|
}
|
|
87
|
-
return construct(
|
|
93
|
+
return construct(Func, args);
|
|
88
94
|
};
|
|
89
95
|
}
|
|
90
96
|
/**
|
|
@@ -183,8 +189,8 @@ function lookupGetter(object, prop) {
|
|
|
183
189
|
return fallbackValue;
|
|
184
190
|
}
|
|
185
191
|
|
|
186
|
-
const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
|
|
187
|
-
const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
|
|
192
|
+
const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'search', 'section', 'select', 'shadow', 'slot', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
|
|
193
|
+
const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'enterkeyhint', 'exportparts', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'inputmode', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'part', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
|
|
188
194
|
const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);
|
|
189
195
|
// List of SVG elements that are disallowed by default.
|
|
190
196
|
// We still need to know them so that we can do namespace
|
|
@@ -197,9 +203,9 @@ const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mgly
|
|
|
197
203
|
const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
|
|
198
204
|
const text = freeze(['#text']);
|
|
199
205
|
|
|
200
|
-
const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
|
|
201
|
-
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
|
|
202
|
-
const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', '
|
|
206
|
+
const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'exportparts', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inert', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'part', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
|
|
207
|
+
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'mask-type', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
|
|
208
|
+
const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnalign', 'columnlines', 'columnspacing', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lquote', 'lspace', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
|
|
203
209
|
const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
|
|
204
210
|
|
|
205
211
|
// eslint-disable-next-line unicorn/better-regex
|
|
@@ -296,7 +302,7 @@ const _createHooksMap = function _createHooksMap() {
|
|
|
296
302
|
function createDOMPurify() {
|
|
297
303
|
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
298
304
|
const DOMPurify = root => createDOMPurify(root);
|
|
299
|
-
DOMPurify.version = '3.
|
|
305
|
+
DOMPurify.version = '3.4.0';
|
|
300
306
|
DOMPurify.removed = [];
|
|
301
307
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
302
308
|
// Not running in a browser, provide a factory function
|
|
@@ -407,6 +413,21 @@ function createDOMPurify() {
|
|
|
407
413
|
let FORBID_TAGS = null;
|
|
408
414
|
/* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
|
|
409
415
|
let FORBID_ATTR = null;
|
|
416
|
+
/* Config object to store ADD_TAGS/ADD_ATTR functions (when used as functions) */
|
|
417
|
+
const EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {
|
|
418
|
+
tagCheck: {
|
|
419
|
+
writable: true,
|
|
420
|
+
configurable: false,
|
|
421
|
+
enumerable: true,
|
|
422
|
+
value: null
|
|
423
|
+
},
|
|
424
|
+
attributeCheck: {
|
|
425
|
+
writable: true,
|
|
426
|
+
configurable: false,
|
|
427
|
+
enumerable: true,
|
|
428
|
+
value: null
|
|
429
|
+
}
|
|
430
|
+
}));
|
|
410
431
|
/* Decide if ARIA attributes are okay */
|
|
411
432
|
let ALLOW_ARIA_ATTR = true;
|
|
412
433
|
/* Decide if custom data attributes are okay */
|
|
@@ -557,7 +578,7 @@ function createDOMPurify() {
|
|
|
557
578
|
NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
|
|
558
579
|
MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
|
|
559
580
|
HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
|
|
560
|
-
CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING ||
|
|
581
|
+
CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || create(null);
|
|
561
582
|
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
|
|
562
583
|
CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
|
|
563
584
|
}
|
|
@@ -576,7 +597,7 @@ function createDOMPurify() {
|
|
|
576
597
|
/* Parse profile info */
|
|
577
598
|
if (USE_PROFILES) {
|
|
578
599
|
ALLOWED_TAGS = addToSet({}, text);
|
|
579
|
-
ALLOWED_ATTR =
|
|
600
|
+
ALLOWED_ATTR = create(null);
|
|
580
601
|
if (USE_PROFILES.html === true) {
|
|
581
602
|
addToSet(ALLOWED_TAGS, html$1);
|
|
582
603
|
addToSet(ALLOWED_ATTR, html);
|
|
@@ -597,18 +618,30 @@ function createDOMPurify() {
|
|
|
597
618
|
addToSet(ALLOWED_ATTR, xml);
|
|
598
619
|
}
|
|
599
620
|
}
|
|
621
|
+
/* Always reset function-based ADD_TAGS / ADD_ATTR checks to prevent
|
|
622
|
+
* leaking across calls when switching from function to array config */
|
|
623
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = null;
|
|
624
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = null;
|
|
600
625
|
/* Merge configuration parameters */
|
|
601
626
|
if (cfg.ADD_TAGS) {
|
|
602
|
-
if (
|
|
603
|
-
|
|
627
|
+
if (typeof cfg.ADD_TAGS === 'function') {
|
|
628
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
|
|
629
|
+
} else {
|
|
630
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
631
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
632
|
+
}
|
|
633
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
604
634
|
}
|
|
605
|
-
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
606
635
|
}
|
|
607
636
|
if (cfg.ADD_ATTR) {
|
|
608
|
-
if (
|
|
609
|
-
|
|
637
|
+
if (typeof cfg.ADD_ATTR === 'function') {
|
|
638
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
|
|
639
|
+
} else {
|
|
640
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
641
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
642
|
+
}
|
|
643
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
610
644
|
}
|
|
611
|
-
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
612
645
|
}
|
|
613
646
|
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
614
647
|
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
@@ -619,6 +652,12 @@ function createDOMPurify() {
|
|
|
619
652
|
}
|
|
620
653
|
addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
|
|
621
654
|
}
|
|
655
|
+
if (cfg.ADD_FORBID_CONTENTS) {
|
|
656
|
+
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
|
|
657
|
+
FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
|
658
|
+
}
|
|
659
|
+
addToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);
|
|
660
|
+
}
|
|
622
661
|
/* Add #text in case KEEP_CONTENT is set to true */
|
|
623
662
|
if (KEEP_CONTENT) {
|
|
624
663
|
ALLOWED_TAGS['#text'] = true;
|
|
@@ -905,6 +944,11 @@ function createDOMPurify() {
|
|
|
905
944
|
_forceRemove(currentNode);
|
|
906
945
|
return true;
|
|
907
946
|
}
|
|
947
|
+
/* Remove risky CSS construction leading to mXSS */
|
|
948
|
+
if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && tagName === 'style' && _isNode(currentNode.firstElementChild)) {
|
|
949
|
+
_forceRemove(currentNode);
|
|
950
|
+
return true;
|
|
951
|
+
}
|
|
908
952
|
/* Remove any occurrence of processing instructions */
|
|
909
953
|
if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
|
|
910
954
|
_forceRemove(currentNode);
|
|
@@ -916,7 +960,7 @@ function createDOMPurify() {
|
|
|
916
960
|
return true;
|
|
917
961
|
}
|
|
918
962
|
/* Remove element if anything forbids its presence */
|
|
919
|
-
if (
|
|
963
|
+
if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
|
|
920
964
|
/* Check if we have a custom element to handle */
|
|
921
965
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
922
966
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
@@ -980,6 +1024,10 @@ function createDOMPurify() {
|
|
|
980
1024
|
*/
|
|
981
1025
|
// eslint-disable-next-line complexity
|
|
982
1026
|
const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
|
|
1027
|
+
/* FORBID_ATTR must always win, even if ADD_ATTR predicate would allow it */
|
|
1028
|
+
if (FORBID_ATTR[lcName]) {
|
|
1029
|
+
return false;
|
|
1030
|
+
}
|
|
983
1031
|
/* Make sure attribute cannot clobber */
|
|
984
1032
|
if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
|
|
985
1033
|
return false;
|
|
@@ -988,12 +1036,12 @@ function createDOMPurify() {
|
|
|
988
1036
|
(https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
|
|
989
1037
|
XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
|
|
990
1038
|
We don't need to check the value; it's always URI safe. */
|
|
991
|
-
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
1039
|
+
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
992
1040
|
if (
|
|
993
1041
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
994
1042
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
995
1043
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
996
|
-
_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) ||
|
|
1044
|
+
_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName, lcTag)) ||
|
|
997
1045
|
// Alternative, second condition checks if it's an `is`-attribute, AND
|
|
998
1046
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
999
1047
|
lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {
|
|
@@ -1072,7 +1120,12 @@ function createDOMPurify() {
|
|
|
1072
1120
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
1073
1121
|
}
|
|
1074
1122
|
/* Work around a security issue with comments inside attributes */
|
|
1075
|
-
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
|
1123
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
|
|
1124
|
+
_removeAttribute(name, currentNode);
|
|
1125
|
+
continue;
|
|
1126
|
+
}
|
|
1127
|
+
/* Make sure we cannot easily use animated hrefs, even if animations are allowed */
|
|
1128
|
+
if (lcName === 'attributename' && stringMatch(value, 'href')) {
|
|
1076
1129
|
_removeAttribute(name, currentNode);
|
|
1077
1130
|
continue;
|
|
1078
1131
|
}
|
|
@@ -1146,7 +1199,7 @@ function createDOMPurify() {
|
|
|
1146
1199
|
*
|
|
1147
1200
|
* @param fragment to iterate over recursively
|
|
1148
1201
|
*/
|
|
1149
|
-
const
|
|
1202
|
+
const _sanitizeShadowDOM2 = function _sanitizeShadowDOM(fragment) {
|
|
1150
1203
|
let shadowNode = null;
|
|
1151
1204
|
const shadowIterator = _createNodeIterator(fragment);
|
|
1152
1205
|
/* Execute a hook if present */
|
|
@@ -1160,7 +1213,7 @@ function createDOMPurify() {
|
|
|
1160
1213
|
_sanitizeAttributes(shadowNode);
|
|
1161
1214
|
/* Deep shadow DOM detected */
|
|
1162
1215
|
if (shadowNode.content instanceof DocumentFragment) {
|
|
1163
|
-
|
|
1216
|
+
_sanitizeShadowDOM2(shadowNode.content);
|
|
1164
1217
|
}
|
|
1165
1218
|
}
|
|
1166
1219
|
/* Execute a hook if present */
|
|
@@ -1255,7 +1308,7 @@ function createDOMPurify() {
|
|
|
1255
1308
|
_sanitizeAttributes(currentNode);
|
|
1256
1309
|
/* Shadow DOM detected, sanitize it */
|
|
1257
1310
|
if (currentNode.content instanceof DocumentFragment) {
|
|
1258
|
-
|
|
1311
|
+
_sanitizeShadowDOM2(currentNode.content);
|
|
1259
1312
|
}
|
|
1260
1313
|
}
|
|
1261
1314
|
/* If we sanitized `dirty` in-place, return it. */
|
|
@@ -1264,6 +1317,14 @@ function createDOMPurify() {
|
|
|
1264
1317
|
}
|
|
1265
1318
|
/* Return sanitized string or DOM */
|
|
1266
1319
|
if (RETURN_DOM) {
|
|
1320
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
1321
|
+
body.normalize();
|
|
1322
|
+
let html = body.innerHTML;
|
|
1323
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
1324
|
+
html = stringReplace(html, expr, ' ');
|
|
1325
|
+
});
|
|
1326
|
+
body.innerHTML = html;
|
|
1327
|
+
}
|
|
1267
1328
|
if (RETURN_DOM_FRAGMENT) {
|
|
1268
1329
|
returnNode = createDocumentFragment.call(body.ownerDocument);
|
|
1269
1330
|
while (body.firstChild) {
|
|
@@ -4139,19 +4200,19 @@ const ZToastNotification = class {
|
|
|
4139
4200
|
}
|
|
4140
4201
|
}
|
|
4141
4202
|
render() {
|
|
4142
|
-
return (index.h(index.Host, { key: '
|
|
4203
|
+
return (index.h(index.Host, { key: '6d582aa79426417081842e17e0ccb61fffec81a0', style: { "--percentuale": `${this.percentage}%` }, class: { [this.transition]: !!this.transition, [this.type]: !!this.type }, onAnimationEnd: (e) => {
|
|
4143
4204
|
if (this.autoclose && e.animationName.includes("slidein")) {
|
|
4144
4205
|
this.startClosingTimeout(this.autoclose);
|
|
4145
4206
|
}
|
|
4146
4207
|
if (e.animationName.includes("slideout")) {
|
|
4147
4208
|
this.hostElement.parentNode.removeChild(this.hostElement);
|
|
4148
4209
|
}
|
|
4149
|
-
} }, index.h("div", { key: '
|
|
4210
|
+
} }, index.h("div", { key: '3b509ad43470b3bd5ceec401d28ce887a7f1de10', class: "toast-notification-container" }, index.h("div", { key: '7caaa8f330f15214c827eb89666ea2fdbbde3920', class: "toast-notification-content" }, index.h("div", { key: '49ad47ccf665b0bbcdbf94430cc2dab1e05219ab', class: "toast-notification-text" }, this.heading && index.h("span", { key: 'c2ea1e161d8c6bbefc9cff2ff27eadc713f5c133', class: "title" }, this.heading), index.h("span", { key: 'f93072a79ae141440445746ad654de84b50d2441', class: "message" }, index.h("slot", { key: '09d8108c415599d93b67925496fd52416fac4907', name: "message" }, this.message && index.h("span", { key: '011e00ae54cee5a33059cef9760576781c63f737', innerHTML: purify.sanitize(this.message) })))), index.h("div", { key: '67bde6f049f31a6b4e7d84c720b036f974bedba7', class: "button-container", hidden: !this.hasSlottedButton }, index.h("slot", { key: 'c92a7087e89012ee690c8e41577ccee412be112f', name: "button", onSlotchange: () => this.checkSlottedButton() }))), this.closebutton && (index.h("button", { key: '41198c2a426c339046948b8969d3002aee7607c3', class: "close-button", "aria-label": "Chiudi notifica", onClick: () => this.close(SLIDE_OUT_TRANSITION_MAP[this.transition], true), onKeyDown: (e) => {
|
|
4150
4211
|
if (e.code == index$1.KeyboardCode.SPACE || e.code == index$1.KeyboardCode.ENTER) {
|
|
4151
4212
|
e.preventDefault();
|
|
4152
4213
|
this.close(SLIDE_OUT_TRANSITION_MAP[this.transition], true);
|
|
4153
4214
|
}
|
|
4154
|
-
} }, index.h("z-icon", { key: '
|
|
4215
|
+
} }, index.h("z-icon", { key: '3316d0e9e999039cd99eb96faa37c81219e5617b', name: "multiply-circled" }))))));
|
|
4155
4216
|
}
|
|
4156
4217
|
get hostElement() { return index.getElement(this); }
|
|
4157
4218
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-D_S5lGcb.js');
|
|
4
4
|
|
|
5
5
|
const stylesCss = () => `button{display:flex;height:36px;align-items:center;padding-right:calc(var(--space-unit) * 2);padding-left:0;border:var(--border-size-medium) solid;border-color:transparent;background-color:var(--color-surface01);border-radius:var(--border-radius);box-shadow:var(--shadow-2);color:var(--color-primary01);cursor:pointer;fill:var(--color-primary01);font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-sb);outline:none;text-transform:uppercase}button::-moz-focus-inner{border:0}button:hover{color:var(--color-hover-primary);fill:var(--color-hover-primary)}button:focus{box-shadow:var(--shadow-focus-primary)}button:active{border-color:var(--color-pressed-primary);box-shadow:var(--shadow-2);color:var(--color-pressed-primary);fill:var(--color-pressed-primary)}button:disabled{color:var(--color-disabled03);fill:var(--color-disabled03)}z-icon{display:inline-block;margin:0 var(--space-unit) 0 calc(var(--space-unit) * 2);transform:rotate(360deg);transition:all 200ms linear}button.isopen{top:-20px}button.avoid-clicks{pointer-events:none}`;
|
|
6
6
|
|
|
@@ -23,10 +23,10 @@ const ZToggleButton = class {
|
|
|
23
23
|
this.toggleClick.emit(this.opened);
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (index.h("button", { key: '
|
|
26
|
+
return (index.h("button", { key: '3448d665412b78c55f77951e408df8abaa158803', tabindex: this.avoidclick ? "-1" : "0", class: {
|
|
27
27
|
"isopen": this.opened,
|
|
28
28
|
"avoid-clicks": this.avoidclick,
|
|
29
|
-
}, disabled: this.isdisabled, "aria-expanded": this.opened ? "true" : "false", "aria-label": this.ariaLabel, onClick: () => this.emitToggleClick() }, index.h("z-icon", { key: '
|
|
29
|
+
}, disabled: this.isdisabled, "aria-expanded": this.opened ? "true" : "false", "aria-label": this.ariaLabel, onClick: () => this.emitToggleClick() }, index.h("z-icon", { key: '4514f07522fc6ecfced03793a5bc58e7c8f185e8', name: this.opened ? "chevron-down" : "chevron-up", width: 16, height: 16 }), this.label));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
ZToggleButton.style = stylesCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-D_S5lGcb.js');
|
|
4
4
|
var index$1 = require('./index-wGaSHN1_.js');
|
|
5
5
|
var utils = require('./utils-Ctc6JP2n.js');
|
|
6
6
|
require('./breakpoints-B7vFm-3T.js');
|
|
@@ -34,14 +34,14 @@ const ZToggleSwitch = class {
|
|
|
34
34
|
this.emitToggleClick();
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (index.h(index.Host, { key: '
|
|
37
|
+
return (index.h(index.Host, { key: 'd31f156ba646f113f8f2509afdaee3e79fdb33f7' }, index.h("input", { key: '48a3963dd555c00867816af0169ed677dc4ccc68', id: this.htmlid, type: "checkbox", checked: this.checked, disabled: this.disabled, onChange: this.handleClick.bind(this) }), index.h("label", { key: '3872377775f759727b62288794555cd84e60b12c', htmlFor: this.htmlid, class: {
|
|
38
38
|
[this.labelPosition]: true,
|
|
39
39
|
disabled: this.disabled,
|
|
40
|
-
} }, index.h("span", { key: '
|
|
40
|
+
} }, index.h("span", { key: 'b46cb8e359cdb11e696a116661659c9872d49a1e' }, index.h("slot", { key: '42fc26c0ced09c5fdda062735fe543b8cb57a658' })), index.h("span", { key: 'b55f0fbd2ff23f01c1ac0b845c6af5571d81c13f', class: {
|
|
41
41
|
container: true,
|
|
42
42
|
disabled: this.disabled,
|
|
43
43
|
checked: this.checked,
|
|
44
|
-
} }, index.h("span", { key: '
|
|
44
|
+
} }, index.h("span", { key: '87bc69be905d84458fec5384f756348a94e446fe', class: "circle" }, this.checked && (index.h("z-icon", { key: '4464b2bf8aa91a7c0c5c9e2bff26e84ff7c34be2', width: 12, height: 12, name: "checkmark" })))))));
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
ZToggleSwitch.style = stylesCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-D_S5lGcb.js');
|
|
4
4
|
var index$1 = require('./index-wGaSHN1_.js');
|
|
5
5
|
var utils = require('./utils-Ctc6JP2n.js');
|
|
6
6
|
require('./breakpoints-B7vFm-3T.js');
|
|
@@ -189,10 +189,10 @@ const ZTool = class {
|
|
|
189
189
|
(_a = this.mql) === null || _a === void 0 ? void 0 : _a.removeEventListener("change", this.onMobileViewChange);
|
|
190
190
|
}
|
|
191
191
|
render() {
|
|
192
|
-
return (index.h(index.Host, { key: '
|
|
192
|
+
return (index.h(index.Host, { key: 'f5da5cd309607dc94dd12a28596b2ea02d28ba4c', class: { "z-tool-tooltip-open": this.tooltipOpen } }, index.h("button", { key: 'be63d078b5035ba1f08c480c8c08f365b3115191', class: "z-tool", type: "button", ref: (el) => (this.buttonRef = el), "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 }, index.h("z-icon", { key: 'a08b5432871a1522374633050a835bb18001a6d6', ref: (el) => (this.iconRef = el), name: this.icon, indicatorColor: this.indicatorColor })), this.tooltip && (index.h("z-tooltip", { key: '9e0fa11a43662f333404543e315b097aa96ab08c', class: "z-tool-tooltip", ref: (el) => (this.tooltipRef = el), bindTo: this.iconRef, open: this.tooltipOpen && !this.open, position: this.isNested ? index$1.PopoverPosition.BOTTOM : this.tooltipPosition, dark: true, onMouseLeave: this.handleTooltipClose, onBlur: this.handleTooltipClose, onOpenChange: this.onTooltipOpenChange }, index.h("span", { key: 'bfc2be83824830ed05b70f423e9f044015624f49', class: "body-4" }, this.tooltip))), this.hasSlottedContent && (index.h("z-popover", { key: '717697756e5333f066f96c96695cd9741b006e93', class: "z-tool-submenu", open: this.open, bindTo: this.isMobile && this.mainToolbar ? this.mainToolbar : this.hostElement, center: true,
|
|
193
193
|
/* disable auto-close to prevent unwanted close behaviors on mobile,
|
|
194
194
|
when the bound element is the main toolbar */
|
|
195
|
-
closable: false, position: this.isMobile ? index$1.PopoverPosition.TOP : index$1.PopoverPosition.BOTTOM }, index.h("slot", { key: '
|
|
195
|
+
closable: false, position: this.isMobile ? index$1.PopoverPosition.TOP : index$1.PopoverPosition.BOTTOM }, index.h("slot", { key: 'd151d02e38fb7a0941012ec969b6cea647721846' })))));
|
|
196
196
|
}
|
|
197
197
|
get hostElement() { return index.getElement(this); }
|
|
198
198
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-D_S5lGcb.js');
|
|
4
4
|
var index$1 = require('./index-wGaSHN1_.js');
|
|
5
5
|
|
|
6
6
|
const stylesCss = () => `:host,*{box-sizing:border-box}:host{display:flex;width:fit-content;align-items:center;padding:0;border:var(--border-size-small) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:calc(var(--border-radius) + var(--border-size-small));box-shadow:var(--shadow-4);gap:calc(var(--space-unit) / 2)}::slotted(z-divider){height:calc(var(--space-unit) * 4.5) !important}@media (max-width: 767px){:host{--z-toolbar-columns:6;position:relative;display:grid;max-width:100%;background:repeating-linear-gradient( to bottom, transparent 0, transparent calc(var(--space-unit) * 5.5), var(--color-surface03) calc(var(--space-unit) * 5.5), var(--color-surface03) calc(var(--space-unit) * 5.5 + 1px) ) center / calc(100% - var(--space-unit)) 100% no-repeat var(--color-surface01);gap:var(--border-size-small) calc(var(--space-unit) / 2);grid-template-columns:repeat(var(--z-toolbar-columns, auto-fill), minmax(44px, auto))}::slotted(z-divider){display:none !important}}`;
|
|
@@ -131,7 +131,7 @@ const ZToolbar = class {
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
render() {
|
|
134
|
-
return (index.h(index.Host, { key: '
|
|
134
|
+
return (index.h(index.Host, { key: '9f77e33a2a5e3566137ca23c4a41526b58b46515', role: "toolbar", "aria-label": this.htmlAriaLabel }, index.h("slot", { key: 'a62af35ef54781baee92f865a969a8642ce58703', onSlotchange: () => {
|
|
135
135
|
this.collectToolItems();
|
|
136
136
|
this.updateTabIndexes();
|
|
137
137
|
} })));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-D_S5lGcb.js');
|
|
4
4
|
var index$1 = require('./index-wGaSHN1_.js');
|
|
5
5
|
|
|
6
6
|
const stylesCss = () => `: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)}`;
|
|
@@ -28,7 +28,7 @@ const ZTooltip = class {
|
|
|
28
28
|
this.open = this.popoverEl.open;
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return (index.h("z-popover", { key: '
|
|
31
|
+
return (index.h("z-popover", { key: '0cc1e8ea0e6896f5031309a5984c09df4b095d8b', ref: (el) => (this.popoverEl = el), bindTo: this.bindTo, open: this.open, position: this.position, closable: this.closable, center: true, showArrow: true, onOpenChange: (event) => this.openChange.emit(event.detail) }, index.h("slot", { key: 'a0548343b099fe7986066d821a455f1092428b38' })));
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
ZTooltip.style = stylesCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-D_S5lGcb.js');
|
|
4
4
|
var index$1 = require('./index-wGaSHN1_.js');
|
|
5
5
|
|
|
6
6
|
const stylesCss = () => `: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)}}`;
|