@zanichelli/albe-web-components 5.5.1-rc.1 → 5.5.1
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/_commonjsHelpers-10109b76.js +48 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/css-shim-f1391d35.js +6 -0
- package/dist/cjs/dom-5345ed9a.js +75 -0
- package/dist/cjs/hammer-0741ba49.js +2651 -0
- package/dist/cjs/index-438f76bc.js +334 -0
- package/dist/cjs/index-545547ad.js +66 -0
- package/dist/cjs/index-6b6a3299.js +315 -0
- package/dist/cjs/index-fcbe2d6e.js +3093 -0
- package/dist/cjs/index.cjs.js +284 -2
- package/dist/cjs/loader.cjs.js +18 -2
- package/dist/cjs/shadow-css-42acdd0e.js +390 -0
- package/dist/cjs/utils-0a978fe0.js +118 -0
- package/dist/cjs/utils-56c20ead.js +118 -0
- package/dist/cjs/utils-69e42a14.js +2742 -0
- package/dist/cjs/{utils-eca6932d.js → utils-8cc414c9.js} +1 -1
- package/dist/cjs/{utils-21d41d92.js → utils-aca0a0b6.js} +25 -3
- package/dist/cjs/web-components-library.cjs.js +116 -4
- package/dist/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header.cjs.entry.js +1 -1
- package/dist/cjs/z-app-switcher.cjs.entry.js +29 -0
- package/dist/cjs/z-app-switcher_11.cjs.entry.js +377 -0
- package/dist/cjs/z-app-topbar.cjs.entry.js +41 -0
- package/dist/cjs/z-aria-alert.cjs.entry.js +2 -2
- package/dist/cjs/z-avatar.cjs.entry.js +2 -2
- package/dist/cjs/z-body.cjs.entry.js +17 -0
- package/dist/cjs/z-button-deprecated.cjs.entry.js +4 -4
- package/dist/cjs/z-button-filter.cjs.entry.js +1 -1
- package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/cjs/z-button.cjs.entry.js +2 -2
- package/dist/cjs/z-candybar.cjs.entry.js +1 -1
- package/dist/cjs/z-card.cjs.entry.js +2 -2
- package/dist/cjs/z-carousel.cjs.entry.js +1 -1
- package/dist/cjs/z-chip-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +5 -5
- package/dist/cjs/z-combobox.cjs.entry.js +3 -3
- package/dist/cjs/z-contextual-menu.cjs.entry.js +2 -2
- package/dist/cjs/z-cookiebar.cjs.entry.js +2 -2
- package/dist/cjs/z-date-picker.cjs.entry.js +14 -8
- package/dist/cjs/z-divider.cjs.entry.js +26 -0
- package/dist/cjs/z-dragdrop-area.cjs.entry.js +37 -0
- package/dist/cjs/z-file-upload.cjs.entry.js +12 -26
- package/dist/cjs/z-file.cjs.entry.js +4 -4
- package/dist/cjs/z-footer-link.cjs.entry.js +19 -0
- package/dist/cjs/z-footer-section.cjs.entry.js +23 -0
- package/dist/cjs/z-footer-social.cjs.entry.js +19 -0
- package/dist/cjs/z-footer.cjs.entry.js +2 -2
- package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
- package/dist/cjs/z-heading.cjs.entry.js +17 -0
- package/dist/cjs/z-icon-package.cjs.entry.js +1 -1
- package/dist/cjs/z-icon.cjs.entry.js +28 -0
- package/dist/cjs/z-info-box.cjs.entry.js +1 -1
- package/dist/cjs/z-info-reveal.cjs.entry.js +2 -2
- package/dist/cjs/z-input-deprecated.cjs.entry.js +3 -3
- package/dist/cjs/z-input-label.cjs.entry.js +21 -0
- package/dist/cjs/z-input-label_2.cjs.entry.js +2 -2
- package/dist/cjs/z-input-message.cjs.entry.js +24 -0
- package/dist/cjs/z-input.cjs.entry.js +235 -0
- package/dist/cjs/z-input_2.cjs.entry.js +228 -0
- package/dist/cjs/z-link.cjs.entry.js +71 -0
- package/dist/cjs/z-list-element.cjs.entry.js +154 -0
- package/dist/cjs/z-list-group.cjs.entry.js +2 -2
- package/dist/cjs/z-list.cjs.entry.js +34 -0
- package/dist/cjs/z-list_2.cjs.entry.js +1 -1
- package/dist/cjs/z-logo.cjs.entry.js +28 -0
- package/dist/cjs/z-menu-dropdown.cjs.entry.js +60 -0
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +2 -2
- 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-messages-pocket.cjs.entry.js +2 -2
- package/dist/cjs/z-modal-login.cjs.entry.js +2 -2
- package/dist/cjs/z-modal.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-body.cjs.entry.js +19 -0
- package/dist/cjs/z-myz-card-cover.cjs.entry.js +22 -0
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card-header.cjs.entry.js +39 -0
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +3 -3
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card.cjs.entry.js +43 -0
- package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list-item.cjs.entry.js +3 -3
- package/dist/cjs/z-myz-list.cjs.entry.js +35 -0
- package/dist/cjs/z-myz-topbar.cjs.entry.js +2 -2
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +2 -2
- package/dist/cjs/z-navigation-tab.cjs.entry.js +2 -2
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
- package/dist/cjs/z-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-offcanvas.cjs.entry.js +2 -2
- package/dist/cjs/z-otp.cjs.entry.js +2 -2
- package/dist/cjs/z-pagination-bar.cjs.entry.js +7 -5
- package/dist/cjs/z-pagination-page.cjs.entry.js +1 -1
- package/dist/cjs/z-pagination.cjs.entry.js +1 -1
- package/dist/cjs/z-panel-elem.cjs.entry.js +1 -1
- package/dist/cjs/z-pocket-body.cjs.entry.js +27 -0
- package/dist/cjs/z-pocket-header.cjs.entry.js +40 -0
- package/dist/cjs/z-pocket-message.cjs.entry.js +1 -1
- package/dist/cjs/z-pocket.cjs.entry.js +72 -0
- package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
- package/dist/cjs/z-popover-deprecated.cjs.entry.js +5 -5
- package/dist/cjs/z-popover.cjs.entry.js +2 -2
- package/dist/cjs/{z-app-switcher_9.cjs.entry.js → z-range-picker.cjs.entry.js} +14 -443
- package/dist/cjs/z-section-title.cjs.entry.js +2 -2
- package/dist/cjs/z-select.cjs.entry.js +257 -0
- package/dist/cjs/z-skip-to-content.cjs.entry.js +3 -3
- package/dist/cjs/z-slideshow.cjs.entry.js +3 -3
- package/dist/cjs/z-status-tag.cjs.entry.js +4 -4
- 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-body.cjs.entry.js +1 -1
- package/dist/cjs/z-table-cell.cjs.entry.js +4 -4
- package/dist/cjs/z-table-empty-box.cjs.entry.js +3 -3
- package/dist/cjs/z-table-expanded-row.cjs.entry.js +1 -1
- package/dist/cjs/z-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-table-head.cjs.entry.js +1 -1
- package/dist/cjs/z-table-header-row.cjs.entry.js +1 -1
- package/dist/cjs/z-table-header.cjs.entry.js +5 -5
- package/dist/cjs/z-table-row.cjs.entry.js +2 -2
- package/dist/cjs/z-table-sticky-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +2 -2
- package/dist/cjs/z-tag.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 +4 -4
- package/dist/cjs/z-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/z-tooltip-deprecated.cjs.entry.js +2 -2
- package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/z-typography.cjs.entry.js +29 -0
- package/dist/cjs/z-user-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/collection/components/buttons/z-chip/index.js +1 -1
- package/dist/collection/components/buttons/z-chip/styles.css +9 -2
- package/dist/collection/components/file-upload/z-file/index.js +3 -19
- package/dist/collection/components/file-upload/z-file-upload/index.js +11 -46
- package/dist/collection/components/z-date-picker/index.js +284 -0
- package/dist/collection/components/z-date-picker/styles.css +525 -0
- package/dist/collection/index.js +1 -0
- package/dist/esm/_commonjsHelpers-8fe71198.js +44 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/css-shim-10e6e2ae.js +4 -0
- package/dist/esm/dom-7cd9cf71.js +73 -0
- package/dist/esm/hammer-782a2043.js +2649 -0
- package/dist/esm/{index-e5e2b27f.js → index-3b53c63e.js} +1 -1
- package/dist/esm/index-3ee81524.js +334 -0
- package/dist/esm/index-46ca649a.js +315 -0
- package/dist/esm/index-51f075dd.js +64 -0
- package/dist/esm/index-81176684.js +3057 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +18 -2
- package/dist/esm/shadow-css-38a1326b.js +388 -0
- package/dist/esm/{utils-34c0d609.js → utils-1e801ac0.js} +26 -4
- package/dist/esm/utils-43f2cad8.js +2736 -0
- package/dist/esm/{utils-9fa9c37c.js → utils-5d5963ef.js} +2 -2
- package/dist/esm/utils-a3134cfb.js +109 -0
- package/dist/esm/utils-e5940345.js +109 -0
- package/dist/esm/web-components-library.js +116 -4
- package/dist/esm/z-alert.entry.js +1 -1
- package/dist/esm/z-app-header.entry.js +1 -1
- package/dist/esm/z-app-switcher.entry.js +25 -0
- package/dist/esm/z-app-switcher_11.entry.js +363 -0
- package/dist/esm/z-app-topbar.entry.js +37 -0
- package/dist/esm/z-aria-alert.entry.js +2 -2
- package/dist/esm/z-avatar.entry.js +2 -2
- package/dist/esm/z-body.entry.js +13 -0
- package/dist/esm/z-button-deprecated.entry.js +4 -4
- package/dist/esm/z-button-filter.entry.js +1 -1
- package/dist/esm/z-button-sort.entry.js +1 -1
- package/dist/esm/z-button.entry.js +2 -2
- package/dist/esm/z-candybar.entry.js +1 -1
- package/dist/esm/z-card.entry.js +2 -2
- package/dist/esm/z-carousel.entry.js +1 -1
- package/dist/esm/z-chip-deprecated.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +5 -5
- package/dist/esm/z-combobox.entry.js +3 -3
- package/dist/esm/z-contextual-menu.entry.js +2 -2
- package/dist/esm/z-cookiebar.entry.js +2 -2
- package/dist/esm/z-date-picker.entry.js +14 -8
- package/dist/esm/z-divider.entry.js +22 -0
- package/dist/esm/z-dragdrop-area.entry.js +33 -0
- package/dist/esm/z-file-upload.entry.js +12 -26
- package/dist/esm/z-file.entry.js +4 -4
- package/dist/esm/z-footer-link.entry.js +15 -0
- package/dist/esm/z-footer-section.entry.js +19 -0
- package/dist/esm/z-footer-social.entry.js +15 -0
- package/dist/esm/z-footer.entry.js +2 -2
- package/dist/esm/z-ghost-loading.entry.js +1 -1
- package/dist/esm/z-heading.entry.js +13 -0
- package/dist/esm/z-icon-package.entry.js +1 -1
- package/dist/esm/z-icon.entry.js +24 -0
- package/dist/esm/z-info-box.entry.js +1 -1
- package/dist/esm/z-info-reveal.entry.js +2 -2
- package/dist/esm/z-input-deprecated.entry.js +3 -3
- package/dist/esm/z-input-label.entry.js +17 -0
- package/dist/esm/z-input-label_2.entry.js +2 -2
- package/dist/esm/z-input-message.entry.js +20 -0
- package/dist/esm/z-input.entry.js +231 -0
- package/dist/esm/z-input_2.entry.js +223 -0
- package/dist/esm/z-link.entry.js +67 -0
- package/dist/esm/z-list-element.entry.js +150 -0
- package/dist/esm/z-list-group.entry.js +2 -2
- package/dist/esm/z-list.entry.js +30 -0
- package/dist/esm/z-list_2.entry.js +1 -1
- package/dist/esm/z-logo.entry.js +24 -0
- package/dist/esm/z-menu-dropdown.entry.js +56 -0
- package/dist/esm/z-menu-dropdown_2.entry.js +2 -2
- package/dist/esm/z-menu-section.entry.js +1 -1
- package/dist/esm/z-menu.entry.js +1 -1
- package/dist/esm/z-messages-pocket.entry.js +2 -2
- package/dist/esm/z-modal-login.entry.js +2 -2
- package/dist/esm/z-modal.entry.js +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +2 -2
- package/dist/esm/z-myz-card-body.entry.js +15 -0
- package/dist/esm/z-myz-card-cover.entry.js +18 -0
- package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
- package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +2 -2
- package/dist/esm/z-myz-card-header.entry.js +35 -0
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +3 -3
- package/dist/esm/z-myz-card-list.entry.js +1 -1
- package/dist/esm/z-myz-card.entry.js +39 -0
- package/dist/esm/z-myz-card_4.entry.js +1 -1
- package/dist/esm/z-myz-list-item.entry.js +3 -3
- package/dist/esm/z-myz-list.entry.js +31 -0
- package/dist/esm/z-myz-topbar.entry.js +2 -2
- package/dist/esm/z-navigation-tab-link.entry.js +2 -2
- package/dist/esm/z-navigation-tab.entry.js +2 -2
- package/dist/esm/z-navigation-tabs.entry.js +2 -2
- package/dist/esm/z-notification.entry.js +1 -1
- package/dist/esm/z-offcanvas.entry.js +2 -2
- package/dist/esm/z-otp.entry.js +2 -2
- package/dist/esm/z-pagination-bar.entry.js +7 -5
- package/dist/esm/z-pagination-page.entry.js +1 -1
- package/dist/esm/z-pagination.entry.js +1 -1
- package/dist/esm/z-panel-elem.entry.js +1 -1
- package/dist/esm/z-pocket-body.entry.js +23 -0
- package/dist/esm/z-pocket-header.entry.js +36 -0
- package/dist/esm/z-pocket-message.entry.js +1 -1
- package/dist/esm/z-pocket.entry.js +68 -0
- package/dist/esm/z-pocket_3.entry.js +2 -2
- package/dist/esm/z-popover-deprecated.entry.js +5 -5
- package/dist/esm/z-popover.entry.js +2 -2
- package/dist/esm/{z-app-switcher_9.entry.js → z-range-picker.entry.js} +5 -426
- package/dist/esm/z-section-title.entry.js +2 -2
- package/dist/esm/z-select.entry.js +253 -0
- package/dist/esm/z-skip-to-content.entry.js +3 -3
- package/dist/esm/z-slideshow.entry.js +3 -3
- package/dist/esm/z-status-tag.entry.js +4 -4
- package/dist/esm/z-stepper-item.entry.js +1 -1
- package/dist/esm/z-stepper.entry.js +1 -1
- package/dist/esm/z-table-body.entry.js +1 -1
- package/dist/esm/z-table-cell.entry.js +4 -4
- package/dist/esm/z-table-empty-box.entry.js +3 -3
- package/dist/esm/z-table-expanded-row.entry.js +1 -1
- package/dist/esm/z-table-footer.entry.js +1 -1
- package/dist/esm/z-table-head.entry.js +1 -1
- package/dist/esm/z-table-header-row.entry.js +1 -1
- package/dist/esm/z-table-header.entry.js +5 -5
- package/dist/esm/z-table-row.entry.js +2 -2
- package/dist/esm/z-table-sticky-footer.entry.js +1 -1
- package/dist/esm/z-table.entry.js +2 -2
- package/dist/esm/z-tag.entry.js +1 -1
- package/dist/esm/z-toast-notification-list.entry.js +2 -2
- package/dist/esm/z-toast-notification.entry.js +4 -4
- package/dist/esm/z-toggle-button.entry.js +1 -1
- package/dist/esm/z-toggle-switch.entry.js +3 -3
- package/dist/esm/z-tooltip-deprecated.entry.js +2 -2
- package/dist/esm/z-tooltip.entry.js +2 -2
- package/dist/esm/z-typography.entry.js +25 -0
- package/dist/esm/z-user-dropdown.entry.js +1 -1
- package/dist/esm/z-visually-hidden.entry.js +1 -1
- package/dist/types/components/file-upload/z-file/index.d.ts +0 -2
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +3 -5
- package/dist/types/components/z-date-picker/index.d.ts +30 -0
- package/dist/types/components.d.ts +0 -12
- package/dist/types/index.d.ts +1 -0
- package/dist/web-components-library/_commonjsHelpers-8fe71198.js +44 -0
- package/dist/web-components-library/app-globals-0f993ce5.js +3 -0
- package/dist/web-components-library/breakpoints-c386984e.js +4 -0
- package/dist/web-components-library/css-shim-10e6e2ae.js +4 -0
- package/dist/web-components-library/dom-7cd9cf71.js +73 -0
- package/dist/web-components-library/hammer-782a2043.js +2649 -0
- package/dist/web-components-library/icons-92a7dcde.js +511 -0
- package/dist/web-components-library/index-3b53c63e.js +334 -0
- package/dist/web-components-library/index-3ee81524.js +334 -0
- package/dist/web-components-library/index-51f075dd.js +64 -0
- package/dist/web-components-library/index-81176684.js +3057 -0
- package/dist/web-components-library/index.esm.js +9 -1
- package/{www/build/p-3ade68ff.entry.js → dist/web-components-library/p-02ea7e49.entry.js} +1 -1
- package/dist/web-components-library/{p-39dbb042.entry.js → p-0a0aee35.entry.js} +1 -1
- package/dist/web-components-library/p-0d29d851.entry.js +1 -0
- package/dist/web-components-library/{p-a73195b6.entry.js → p-0e256fdc.entry.js} +1 -1
- package/dist/web-components-library/p-0e408871.entry.js +1 -0
- package/dist/web-components-library/p-0ef6c549.entry.js +1 -0
- package/dist/web-components-library/{p-afed0692.entry.js → p-0f17db30.entry.js} +1 -1
- package/dist/web-components-library/{p-80f26a20.entry.js → p-1727c1c8.entry.js} +1 -1
- package/dist/web-components-library/p-1f73a6d8.entry.js +1 -0
- package/dist/web-components-library/p-20d62443.entry.js +1 -0
- package/dist/web-components-library/{p-2ed37f62.entry.js → p-292bc0c4.entry.js} +1 -1
- package/dist/web-components-library/{p-1c790896.entry.js → p-3c111c2a.entry.js} +1 -1
- package/{www/build/p-9504d075.entry.js → dist/web-components-library/p-3edbd35c.entry.js} +1 -1
- package/dist/web-components-library/{p-ac52264c.entry.js → p-43329b81.entry.js} +1 -1
- package/{www/build/p-96bf5b15.entry.js → dist/web-components-library/p-4af112a7.entry.js} +1 -1
- package/dist/web-components-library/{p-3d748f0d.entry.js → p-51cdabeb.entry.js} +1 -1
- package/dist/web-components-library/{p-3700ad63.entry.js → p-55ddbfe9.entry.js} +1 -1
- package/dist/web-components-library/p-562e2d52.entry.js +1 -0
- package/dist/web-components-library/{p-07ae4f7d.entry.js → p-57d1acdc.entry.js} +1 -1
- package/dist/web-components-library/{p-eddde828.entry.js → p-5be162d5.entry.js} +1 -1
- package/dist/web-components-library/p-5eacbfc7.entry.js +1 -0
- package/dist/web-components-library/p-6218514a.entry.js +1 -0
- package/dist/web-components-library/{p-27666111.entry.js → p-63ccb013.entry.js} +1 -1
- package/{www/build/p-ba76f52b.entry.js → dist/web-components-library/p-69ef6ddc.entry.js} +1 -1
- package/dist/web-components-library/{p-d4c5085b.entry.js → p-6c6b4e80.entry.js} +1 -1
- package/dist/web-components-library/p-71accd8e.entry.js +1 -0
- package/dist/web-components-library/{p-faeb0c6e.entry.js → p-7c6d4440.entry.js} +1 -1
- package/dist/web-components-library/{p-b621a765.entry.js → p-8fbc2ce9.entry.js} +1 -1
- package/dist/web-components-library/{p-7e691a4e.entry.js → p-9074e1a5.entry.js} +1 -1
- package/dist/web-components-library/p-99d7ab2f.entry.js +1 -0
- package/dist/web-components-library/p-9a5ee6c2.entry.js +1 -0
- package/dist/web-components-library/p-9f5d707a.js +1 -0
- package/dist/web-components-library/{p-977c81d3.entry.js → p-9f9e4266.entry.js} +1 -1
- package/dist/web-components-library/p-a8875b97.entry.js +16 -0
- package/dist/web-components-library/{p-cb4a854e.entry.js → p-b15efba3.entry.js} +1 -1
- package/dist/web-components-library/{p-5aa819f8.js → p-b9da171f.js} +1 -1
- package/dist/web-components-library/{p-91cbf793.entry.js → p-ba29bc12.entry.js} +1 -1
- package/dist/web-components-library/{p-766eb9cf.entry.js → p-bfe5693d.entry.js} +1 -1
- package/dist/web-components-library/{p-215adfd1.entry.js → p-ccdebe3f.entry.js} +1 -1
- package/dist/web-components-library/{p-e6fb8b76.entry.js → p-d33fea26.entry.js} +1 -1
- package/dist/web-components-library/p-d39c0372.entry.js +1 -0
- package/{www/build/p-e5eb1fa4.entry.js → dist/web-components-library/p-d97a2db9.entry.js} +1 -1
- package/dist/web-components-library/p-d995d9dc.entry.js +1 -0
- package/dist/web-components-library/{p-846f16e8.entry.js → p-de25c7f0.entry.js} +1 -1
- package/{www/build/p-818c073b.entry.js → dist/web-components-library/p-df4e963b.entry.js} +1 -1
- package/dist/web-components-library/{p-d5e67db8.entry.js → p-dffdf60a.entry.js} +1 -1
- package/{www/build/p-878e62e2.entry.js → dist/web-components-library/p-e2102da3.entry.js} +1 -1
- package/dist/web-components-library/p-e2431b92.entry.js +1 -0
- package/dist/web-components-library/{p-7f48b622.entry.js → p-edb8d2ab.entry.js} +1 -1
- package/dist/web-components-library/{p-cb3663e6.entry.js → p-fe927bf4.entry.js} +1 -1
- package/dist/web-components-library/shadow-css-38a1326b.js +388 -0
- package/dist/web-components-library/utils-1e801ac0.js +2736 -0
- package/dist/web-components-library/utils-43f2cad8.js +2736 -0
- package/dist/web-components-library/utils-a3134cfb.js +109 -0
- package/dist/web-components-library/utils-e5940345.js +109 -0
- package/dist/web-components-library/web-components-library.css +812 -1
- package/dist/web-components-library/web-components-library.esm.js +129 -1
- package/dist/web-components-library/z-alert.entry.js +15 -0
- package/dist/web-components-library/z-app-header.entry.js +127 -0
- package/dist/web-components-library/z-app-switcher.entry.js +25 -0
- package/dist/web-components-library/z-app-topbar.entry.js +37 -0
- package/dist/web-components-library/z-aria-alert.entry.js +14 -0
- package/dist/web-components-library/z-avatar.entry.js +39 -0
- package/dist/web-components-library/z-body.entry.js +13 -0
- package/dist/web-components-library/z-button-deprecated.entry.js +34 -0
- package/dist/web-components-library/z-button-filter.entry.js +45 -0
- package/dist/web-components-library/z-button-sort.entry.js +50 -0
- package/dist/web-components-library/z-button.entry.js +38 -0
- package/dist/web-components-library/z-candybar.entry.js +15 -0
- package/dist/web-components-library/z-card.entry.js +65 -0
- package/dist/web-components-library/z-carousel.entry.js +20 -0
- package/dist/web-components-library/z-chip-deprecated.entry.js +20 -0
- package/dist/web-components-library/z-chip.entry.js +33 -0
- package/dist/web-components-library/z-combobox.entry.js +166 -0
- package/dist/web-components-library/z-contextual-menu.entry.js +47 -0
- package/dist/web-components-library/z-cookiebar.entry.js +38 -0
- package/dist/web-components-library/z-date-picker.entry.js +484 -0
- package/dist/web-components-library/z-divider.entry.js +22 -0
- package/dist/web-components-library/z-dragdrop-area.entry.js +33 -0
- package/dist/web-components-library/z-file-upload.entry.js +168 -0
- package/dist/web-components-library/z-file.entry.js +44 -0
- package/dist/web-components-library/z-footer-link.entry.js +15 -0
- package/dist/web-components-library/z-footer-section.entry.js +19 -0
- package/dist/web-components-library/z-footer-social.entry.js +15 -0
- package/dist/web-components-library/z-footer.entry.js +103 -0
- package/dist/web-components-library/z-ghost-loading.entry.js +15 -0
- package/dist/web-components-library/z-heading.entry.js +13 -0
- package/dist/web-components-library/z-icon-package.entry.js +19 -0
- package/dist/web-components-library/z-icon.entry.js +24 -0
- package/dist/web-components-library/z-info-box.entry.js +21 -0
- package/dist/web-components-library/z-info-reveal.entry.js +60 -0
- package/dist/web-components-library/z-input-deprecated.entry.js +267 -0
- package/dist/web-components-library/z-input-label.entry.js +17 -0
- package/dist/web-components-library/z-input-message.entry.js +20 -0
- package/dist/web-components-library/z-input.entry.js +231 -0
- package/dist/web-components-library/z-link.entry.js +67 -0
- package/dist/web-components-library/z-list-element.entry.js +150 -0
- package/dist/web-components-library/z-list-group.entry.js +50 -0
- package/dist/web-components-library/z-list.entry.js +30 -0
- package/dist/web-components-library/z-logo.entry.js +24 -0
- package/dist/web-components-library/z-menu-dropdown.entry.js +56 -0
- package/dist/web-components-library/z-menu-section.entry.js +42 -0
- package/dist/web-components-library/z-menu.entry.js +106 -0
- package/dist/web-components-library/z-messages-pocket.entry.js +42 -0
- package/dist/web-components-library/z-modal-login.entry.js +78 -0
- package/dist/web-components-library/z-modal.entry.js +32 -0
- package/dist/web-components-library/z-myz-card-alert.entry.js +59 -0
- package/dist/web-components-library/z-myz-card-body.entry.js +15 -0
- package/dist/web-components-library/z-myz-card-cover.entry.js +18 -0
- package/dist/web-components-library/z-myz-card-dictionary.entry.js +32 -0
- package/dist/web-components-library/z-myz-card-footer-sections.entry.js +15 -0
- package/dist/web-components-library/z-myz-card-footer.entry.js +52 -0
- package/dist/web-components-library/z-myz-card-header.entry.js +35 -0
- package/dist/web-components-library/z-myz-card-icon.entry.js +17 -0
- package/dist/web-components-library/z-myz-card-info.entry.js +115 -0
- package/dist/web-components-library/z-myz-card-list.entry.js +33 -0
- package/dist/web-components-library/z-myz-card.entry.js +39 -0
- package/dist/web-components-library/z-myz-list-item.entry.js +33 -0
- package/dist/web-components-library/z-myz-list.entry.js +31 -0
- package/dist/web-components-library/z-myz-topbar.entry.js +190 -0
- package/dist/web-components-library/z-navigation-tab-link.entry.js +67 -0
- package/dist/web-components-library/z-navigation-tab.entry.js +69 -0
- package/dist/web-components-library/z-navigation-tabs.entry.js +122 -0
- package/dist/web-components-library/z-notification.entry.js +42 -0
- package/dist/web-components-library/z-offcanvas.entry.js +59 -0
- package/dist/web-components-library/z-otp.entry.js +37 -0
- package/dist/web-components-library/z-pagination-bar.entry.js +126 -0
- package/dist/web-components-library/z-pagination-page.entry.js +21 -0
- package/dist/web-components-library/z-pagination.entry.js +228 -0
- package/dist/web-components-library/z-panel-elem.entry.js +26 -0
- package/dist/web-components-library/z-pocket-body.entry.js +23 -0
- package/dist/web-components-library/z-pocket-header.entry.js +36 -0
- package/dist/web-components-library/z-pocket-message.entry.js +15 -0
- package/dist/web-components-library/z-pocket.entry.js +68 -0
- package/dist/web-components-library/z-popover-deprecated.entry.js +128 -0
- package/dist/web-components-library/z-popover.entry.js +332 -0
- package/dist/web-components-library/z-range-picker.entry.js +354 -0
- package/dist/web-components-library/z-section-title.entry.js +38 -0
- package/dist/web-components-library/z-select.entry.js +253 -0
- package/dist/web-components-library/z-skip-to-content.entry.js +64 -0
- package/dist/web-components-library/z-slideshow.entry.js +108 -0
- package/dist/web-components-library/z-status-tag.entry.js +25 -0
- package/dist/web-components-library/z-stepper-item.entry.js +18 -0
- package/dist/web-components-library/z-stepper.entry.js +15 -0
- package/dist/web-components-library/z-table-body.entry.js +20 -0
- package/dist/web-components-library/z-table-cell.entry.js +32 -0
- package/dist/web-components-library/z-table-empty-box.entry.js +28 -0
- package/dist/web-components-library/z-table-expanded-row.entry.js +15 -0
- package/dist/web-components-library/z-table-footer.entry.js +19 -0
- package/dist/web-components-library/z-table-head.entry.js +19 -0
- package/dist/web-components-library/z-table-header-row.entry.js +18 -0
- package/dist/web-components-library/z-table-header.entry.js +81 -0
- package/dist/web-components-library/z-table-row.entry.js +39 -0
- package/dist/web-components-library/z-table-sticky-footer.entry.js +15 -0
- package/dist/web-components-library/z-table.entry.js +78 -0
- package/dist/web-components-library/z-tag.entry.js +18 -0
- package/dist/web-components-library/z-toast-notification-list.entry.js +52 -0
- package/dist/web-components-library/z-toast-notification.entry.js +199 -0
- package/dist/web-components-library/z-toggle-button.entry.js +32 -0
- package/dist/web-components-library/z-toggle-switch.entry.js +45 -0
- package/dist/web-components-library/z-tooltip-deprecated.entry.js +270 -0
- package/dist/web-components-library/z-tooltip.entry.js +27 -0
- package/dist/web-components-library/z-typography.entry.js +25 -0
- package/dist/web-components-library/z-user-dropdown.entry.js +91 -0
- package/dist/web-components-library/z-visually-hidden.entry.js +15 -0
- package/package.json +1 -2
- package/react/components.d.ts +0 -4
- package/react/components.js +3 -7
- package/react/components.js.map +1 -1
- package/readme.md +0 -8
- package/www/build/_commonjsHelpers-8fe71198.js +44 -0
- package/www/build/app-globals-0f993ce5.js +3 -0
- package/www/build/breakpoints-c386984e.js +4 -0
- package/www/build/css-shim-10e6e2ae.js +4 -0
- package/www/build/dom-7cd9cf71.js +73 -0
- package/www/build/hammer-782a2043.js +2649 -0
- package/www/build/icons-92a7dcde.js +511 -0
- package/www/build/index-3b53c63e.js +334 -0
- package/www/build/index-3ee81524.js +334 -0
- package/www/build/index-51f075dd.js +64 -0
- package/www/build/index-81176684.js +3057 -0
- package/www/build/index.esm.js +9 -1
- package/{dist/web-components-library/p-3ade68ff.entry.js → www/build/p-02ea7e49.entry.js} +1 -1
- package/www/build/{p-39dbb042.entry.js → p-0a0aee35.entry.js} +1 -1
- package/www/build/p-0d29d851.entry.js +1 -0
- package/www/build/{p-a73195b6.entry.js → p-0e256fdc.entry.js} +1 -1
- package/www/build/p-0e408871.entry.js +1 -0
- package/www/build/p-0ef6c549.entry.js +1 -0
- package/www/build/{p-afed0692.entry.js → p-0f17db30.entry.js} +1 -1
- package/www/build/{p-80f26a20.entry.js → p-1727c1c8.entry.js} +1 -1
- package/www/build/p-1f73a6d8.entry.js +1 -0
- package/www/build/p-20d62443.entry.js +1 -0
- package/www/build/{p-2ed37f62.entry.js → p-292bc0c4.entry.js} +1 -1
- package/www/build/{p-1c790896.entry.js → p-3c111c2a.entry.js} +1 -1
- package/{dist/web-components-library/p-9504d075.entry.js → www/build/p-3edbd35c.entry.js} +1 -1
- package/www/build/{p-ac52264c.entry.js → p-43329b81.entry.js} +1 -1
- package/{dist/web-components-library/p-96bf5b15.entry.js → www/build/p-4af112a7.entry.js} +1 -1
- package/www/build/{p-3d748f0d.entry.js → p-51cdabeb.entry.js} +1 -1
- package/www/build/{p-3700ad63.entry.js → p-55ddbfe9.entry.js} +1 -1
- package/www/build/p-562e2d52.entry.js +1 -0
- package/www/build/{p-07ae4f7d.entry.js → p-57d1acdc.entry.js} +1 -1
- package/www/build/{p-eddde828.entry.js → p-5be162d5.entry.js} +1 -1
- package/www/build/p-5eacbfc7.entry.js +1 -0
- package/www/build/p-6218514a.entry.js +1 -0
- package/www/build/{p-27666111.entry.js → p-63ccb013.entry.js} +1 -1
- package/{dist/web-components-library/p-ba76f52b.entry.js → www/build/p-69ef6ddc.entry.js} +1 -1
- package/www/build/{p-d4c5085b.entry.js → p-6c6b4e80.entry.js} +1 -1
- package/www/build/p-71accd8e.entry.js +1 -0
- package/www/build/p-7a92487a.js +1 -0
- package/www/build/{p-faeb0c6e.entry.js → p-7c6d4440.entry.js} +1 -1
- package/www/build/p-88b56b6e.css +1 -0
- package/www/build/{p-b621a765.entry.js → p-8fbc2ce9.entry.js} +1 -1
- package/www/build/{p-7e691a4e.entry.js → p-9074e1a5.entry.js} +1 -1
- package/www/build/p-99d7ab2f.entry.js +1 -0
- package/www/build/p-9a5ee6c2.entry.js +1 -0
- package/www/build/p-9f5d707a.js +1 -0
- package/www/build/{p-977c81d3.entry.js → p-9f9e4266.entry.js} +1 -1
- package/www/build/p-a8875b97.entry.js +16 -0
- package/www/build/{p-cb4a854e.entry.js → p-b15efba3.entry.js} +1 -1
- package/www/build/{p-5aa819f8.js → p-b9da171f.js} +1 -1
- package/www/build/{p-91cbf793.entry.js → p-ba29bc12.entry.js} +1 -1
- package/www/build/{p-766eb9cf.entry.js → p-bfe5693d.entry.js} +1 -1
- package/www/build/{p-215adfd1.entry.js → p-ccdebe3f.entry.js} +1 -1
- package/www/build/{p-e6fb8b76.entry.js → p-d33fea26.entry.js} +1 -1
- package/www/build/p-d39c0372.entry.js +1 -0
- package/{dist/web-components-library/p-e5eb1fa4.entry.js → www/build/p-d97a2db9.entry.js} +1 -1
- package/www/build/p-d995d9dc.entry.js +1 -0
- package/www/build/{p-846f16e8.entry.js → p-de25c7f0.entry.js} +1 -1
- package/{dist/web-components-library/p-818c073b.entry.js → www/build/p-df4e963b.entry.js} +1 -1
- package/www/build/{p-d5e67db8.entry.js → p-dffdf60a.entry.js} +1 -1
- package/{dist/web-components-library/p-878e62e2.entry.js → www/build/p-e2102da3.entry.js} +1 -1
- package/www/build/p-e2431b92.entry.js +1 -0
- package/www/build/{p-7f48b622.entry.js → p-edb8d2ab.entry.js} +1 -1
- package/www/build/{p-cb3663e6.entry.js → p-fe927bf4.entry.js} +1 -1
- package/www/build/shadow-css-38a1326b.js +388 -0
- package/www/build/utils-1e801ac0.js +2736 -0
- package/www/build/utils-43f2cad8.js +2736 -0
- package/www/build/utils-a3134cfb.js +109 -0
- package/www/build/utils-e5940345.js +109 -0
- package/www/build/web-components-library.css +812 -1
- package/www/build/web-components-library.esm.js +129 -1
- package/www/build/z-alert.entry.js +15 -0
- package/www/build/z-app-header.entry.js +127 -0
- package/www/build/z-app-switcher.entry.js +25 -0
- package/www/build/z-app-topbar.entry.js +37 -0
- package/www/build/z-aria-alert.entry.js +14 -0
- package/www/build/z-avatar.entry.js +39 -0
- package/www/build/z-body.entry.js +13 -0
- package/www/build/z-button-deprecated.entry.js +34 -0
- package/www/build/z-button-filter.entry.js +45 -0
- package/www/build/z-button-sort.entry.js +50 -0
- package/www/build/z-button.entry.js +38 -0
- package/www/build/z-candybar.entry.js +15 -0
- package/www/build/z-card.entry.js +65 -0
- package/www/build/z-carousel.entry.js +20 -0
- package/www/build/z-chip-deprecated.entry.js +20 -0
- package/www/build/z-chip.entry.js +33 -0
- package/www/build/z-combobox.entry.js +166 -0
- package/www/build/z-contextual-menu.entry.js +47 -0
- package/www/build/z-cookiebar.entry.js +38 -0
- package/www/build/z-date-picker.entry.js +484 -0
- package/www/build/z-divider.entry.js +22 -0
- package/www/build/z-dragdrop-area.entry.js +33 -0
- package/www/build/z-file-upload.entry.js +168 -0
- package/www/build/z-file.entry.js +44 -0
- package/www/build/z-footer-link.entry.js +15 -0
- package/www/build/z-footer-section.entry.js +19 -0
- package/www/build/z-footer-social.entry.js +15 -0
- package/www/build/z-footer.entry.js +103 -0
- package/www/build/z-ghost-loading.entry.js +15 -0
- package/www/build/z-heading.entry.js +13 -0
- package/www/build/z-icon-package.entry.js +19 -0
- package/www/build/z-icon.entry.js +24 -0
- package/www/build/z-info-box.entry.js +21 -0
- package/www/build/z-info-reveal.entry.js +60 -0
- package/www/build/z-input-deprecated.entry.js +267 -0
- package/www/build/z-input-label.entry.js +17 -0
- package/www/build/z-input-message.entry.js +20 -0
- package/www/build/z-input.entry.js +231 -0
- package/www/build/z-link.entry.js +67 -0
- package/www/build/z-list-element.entry.js +150 -0
- package/www/build/z-list-group.entry.js +50 -0
- package/www/build/z-list.entry.js +30 -0
- package/www/build/z-logo.entry.js +24 -0
- package/www/build/z-menu-dropdown.entry.js +56 -0
- package/www/build/z-menu-section.entry.js +42 -0
- package/www/build/z-menu.entry.js +106 -0
- package/www/build/z-messages-pocket.entry.js +42 -0
- package/www/build/z-modal-login.entry.js +78 -0
- package/www/build/z-modal.entry.js +32 -0
- package/www/build/z-myz-card-alert.entry.js +59 -0
- package/www/build/z-myz-card-body.entry.js +15 -0
- package/www/build/z-myz-card-cover.entry.js +18 -0
- package/www/build/z-myz-card-dictionary.entry.js +32 -0
- package/www/build/z-myz-card-footer-sections.entry.js +15 -0
- package/www/build/z-myz-card-footer.entry.js +52 -0
- package/www/build/z-myz-card-header.entry.js +35 -0
- package/www/build/z-myz-card-icon.entry.js +17 -0
- package/www/build/z-myz-card-info.entry.js +115 -0
- package/www/build/z-myz-card-list.entry.js +33 -0
- package/www/build/z-myz-card.entry.js +39 -0
- package/www/build/z-myz-list-item.entry.js +33 -0
- package/www/build/z-myz-list.entry.js +31 -0
- package/www/build/z-myz-topbar.entry.js +190 -0
- package/www/build/z-navigation-tab-link.entry.js +67 -0
- package/www/build/z-navigation-tab.entry.js +69 -0
- package/www/build/z-navigation-tabs.entry.js +122 -0
- package/www/build/z-notification.entry.js +42 -0
- package/www/build/z-offcanvas.entry.js +59 -0
- package/www/build/z-otp.entry.js +37 -0
- package/www/build/z-pagination-bar.entry.js +126 -0
- package/www/build/z-pagination-page.entry.js +21 -0
- package/www/build/z-pagination.entry.js +228 -0
- package/www/build/z-panel-elem.entry.js +26 -0
- package/www/build/z-pocket-body.entry.js +23 -0
- package/www/build/z-pocket-header.entry.js +36 -0
- package/www/build/z-pocket-message.entry.js +15 -0
- package/www/build/z-pocket.entry.js +68 -0
- package/www/build/z-popover-deprecated.entry.js +128 -0
- package/www/build/z-popover.entry.js +332 -0
- package/www/build/z-range-picker.entry.js +354 -0
- package/www/build/z-section-title.entry.js +38 -0
- package/www/build/z-select.entry.js +253 -0
- package/www/build/z-skip-to-content.entry.js +64 -0
- package/www/build/z-slideshow.entry.js +108 -0
- package/www/build/z-status-tag.entry.js +25 -0
- package/www/build/z-stepper-item.entry.js +18 -0
- package/www/build/z-stepper.entry.js +15 -0
- package/www/build/z-table-body.entry.js +20 -0
- package/www/build/z-table-cell.entry.js +32 -0
- package/www/build/z-table-empty-box.entry.js +28 -0
- package/www/build/z-table-expanded-row.entry.js +15 -0
- package/www/build/z-table-footer.entry.js +19 -0
- package/www/build/z-table-head.entry.js +19 -0
- package/www/build/z-table-header-row.entry.js +18 -0
- package/www/build/z-table-header.entry.js +81 -0
- package/www/build/z-table-row.entry.js +39 -0
- package/www/build/z-table-sticky-footer.entry.js +15 -0
- package/www/build/z-table.entry.js +78 -0
- package/www/build/z-tag.entry.js +18 -0
- package/www/build/z-toast-notification-list.entry.js +52 -0
- package/www/build/z-toast-notification.entry.js +199 -0
- package/www/build/z-toggle-button.entry.js +32 -0
- package/www/build/z-toggle-switch.entry.js +45 -0
- package/www/build/z-tooltip-deprecated.entry.js +270 -0
- package/www/build/z-tooltip.entry.js +27 -0
- package/www/build/z-typography.entry.js +25 -0
- package/www/build/z-user-dropdown.entry.js +91 -0
- package/www/build/z-visually-hidden.entry.js +15 -0
- package/www/index.html +11 -2
- package/www/pages/file-upload.html +54 -97
- package/dist/web-components-library/p-0146081c.entry.js +0 -16
- package/dist/web-components-library/p-040ea013.entry.js +0 -1
- package/dist/web-components-library/p-0c3e7bc3.js +0 -1
- package/dist/web-components-library/p-0f6229b2.entry.js +0 -1
- package/dist/web-components-library/p-1356eb90.entry.js +0 -1
- package/dist/web-components-library/p-1d4545e8.entry.js +0 -1
- package/dist/web-components-library/p-223566d6.entry.js +0 -1
- package/dist/web-components-library/p-35573e0e.entry.js +0 -1
- package/dist/web-components-library/p-3a991f9c.entry.js +0 -1
- package/dist/web-components-library/p-47a55354.entry.js +0 -1
- package/dist/web-components-library/p-4965b6db.entry.js +0 -1
- package/dist/web-components-library/p-5789bbe7.entry.js +0 -1
- package/dist/web-components-library/p-5e3b8207.entry.js +0 -1
- package/dist/web-components-library/p-79408b00.entry.js +0 -1
- package/dist/web-components-library/p-7a5ecafb.js +0 -1
- package/dist/web-components-library/p-8712d63f.entry.js +0 -1
- package/dist/web-components-library/p-8cf3798f.entry.js +0 -1
- package/dist/web-components-library/p-96ed1e2f.entry.js +0 -1
- package/dist/web-components-library/p-97d62d2a.entry.js +0 -1
- package/dist/web-components-library/p-aba00527.entry.js +0 -1
- package/dist/web-components-library/p-b369bf2f.entry.js +0 -1
- package/dist/web-components-library/p-e4a2811a.entry.js +0 -1
- package/dist/web-components-library/p-e82cee27.entry.js +0 -1
- package/dist/web-components-library/p-f5f15b8e.entry.js +0 -1
- package/www/build/p-0146081c.entry.js +0 -16
- package/www/build/p-040ea013.entry.js +0 -1
- package/www/build/p-0c3e7bc3.js +0 -1
- package/www/build/p-0f6229b2.entry.js +0 -1
- package/www/build/p-1356eb90.entry.js +0 -1
- package/www/build/p-1d4545e8.entry.js +0 -1
- package/www/build/p-223566d6.entry.js +0 -1
- package/www/build/p-3224e0d3.js +0 -129
- package/www/build/p-35573e0e.entry.js +0 -1
- package/www/build/p-3a991f9c.entry.js +0 -1
- package/www/build/p-47a55354.entry.js +0 -1
- package/www/build/p-4965b6db.entry.js +0 -1
- package/www/build/p-5789bbe7.entry.js +0 -1
- package/www/build/p-5e3b8207.entry.js +0 -1
- package/www/build/p-79408b00.entry.js +0 -1
- package/www/build/p-7a5ecafb.js +0 -1
- package/www/build/p-8712d63f.entry.js +0 -1
- package/www/build/p-8cf3798f.entry.js +0 -1
- package/www/build/p-96ed1e2f.entry.js +0 -1
- package/www/build/p-97d62d2a.entry.js +0 -1
- package/www/build/p-9ec1421c.css +0 -816
- package/www/build/p-aba00527.entry.js +0 -1
- package/www/build/p-b369bf2f.entry.js +0 -1
- package/www/build/p-e4a2811a.entry.js +0 -1
- package/www/build/p-e82cee27.entry.js +0 -1
- package/www/build/p-f5f15b8e.entry.js +0 -1
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
Stencil Client Platform v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
9
|
+
*
|
|
10
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
11
|
+
* found in the LICENSE file at https://angular.io/license
|
|
12
|
+
*
|
|
13
|
+
* This file is a port of shadowCSS from webcomponents.js to TypeScript.
|
|
14
|
+
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
15
|
+
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
16
|
+
*/
|
|
17
|
+
const safeSelector = (selector) => {
|
|
18
|
+
const placeholders = [];
|
|
19
|
+
let index = 0;
|
|
20
|
+
let content;
|
|
21
|
+
// Replaces attribute selectors with placeholders.
|
|
22
|
+
// The WS in [attr="va lue"] would otherwise be interpreted as a selector separator.
|
|
23
|
+
selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
|
|
24
|
+
const replaceBy = `__ph-${index}__`;
|
|
25
|
+
placeholders.push(keep);
|
|
26
|
+
index++;
|
|
27
|
+
return replaceBy;
|
|
28
|
+
});
|
|
29
|
+
// Replaces the expression in `:nth-child(2n + 1)` with a placeholder.
|
|
30
|
+
// WS and "+" would otherwise be interpreted as selector separators.
|
|
31
|
+
content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
|
|
32
|
+
const replaceBy = `__ph-${index}__`;
|
|
33
|
+
placeholders.push(exp);
|
|
34
|
+
index++;
|
|
35
|
+
return pseudo + replaceBy;
|
|
36
|
+
});
|
|
37
|
+
const ss = {
|
|
38
|
+
content,
|
|
39
|
+
placeholders,
|
|
40
|
+
};
|
|
41
|
+
return ss;
|
|
42
|
+
};
|
|
43
|
+
const restoreSafeSelector = (placeholders, content) => {
|
|
44
|
+
return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
45
|
+
};
|
|
46
|
+
const _polyfillHost = '-shadowcsshost';
|
|
47
|
+
const _polyfillSlotted = '-shadowcssslotted';
|
|
48
|
+
// note: :host-context pre-processed to -shadowcsshostcontext.
|
|
49
|
+
const _polyfillHostContext = '-shadowcsscontext';
|
|
50
|
+
const _parenSuffix = ')(?:\\((' + '(?:\\([^)(]*\\)|[^)(]*)+?' + ')\\))?([^,{]*)';
|
|
51
|
+
const _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');
|
|
52
|
+
const _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');
|
|
53
|
+
const _cssColonSlottedRe = new RegExp('(' + _polyfillSlotted + _parenSuffix, 'gim');
|
|
54
|
+
const _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';
|
|
55
|
+
const _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
|
|
56
|
+
const _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
|
|
57
|
+
const _selectorReSuffix = '([>\\s~+[.,{:][\\s\\S]*)?$';
|
|
58
|
+
const _polyfillHostRe = /-shadowcsshost/gim;
|
|
59
|
+
const _colonHostRe = /:host/gim;
|
|
60
|
+
const _colonSlottedRe = /::slotted/gim;
|
|
61
|
+
const _colonHostContextRe = /:host-context/gim;
|
|
62
|
+
const _commentRe = /\/\*\s*[\s\S]*?\*\//g;
|
|
63
|
+
const stripComments = (input) => {
|
|
64
|
+
return input.replace(_commentRe, '');
|
|
65
|
+
};
|
|
66
|
+
const _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
|
|
67
|
+
const extractCommentsWithHash = (input) => {
|
|
68
|
+
return input.match(_commentWithHashRe) || [];
|
|
69
|
+
};
|
|
70
|
+
const _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
|
|
71
|
+
const _curlyRe = /([{}])/g;
|
|
72
|
+
const _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
|
|
73
|
+
const OPEN_CURLY = '{';
|
|
74
|
+
const CLOSE_CURLY = '}';
|
|
75
|
+
const BLOCK_PLACEHOLDER = '%BLOCK%';
|
|
76
|
+
const processRules = (input, ruleCallback) => {
|
|
77
|
+
const inputWithEscapedBlocks = escapeBlocks(input);
|
|
78
|
+
let nextBlockIndex = 0;
|
|
79
|
+
return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
|
|
80
|
+
const selector = m[2];
|
|
81
|
+
let content = '';
|
|
82
|
+
let suffix = m[4];
|
|
83
|
+
let contentPrefix = '';
|
|
84
|
+
if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {
|
|
85
|
+
content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
|
|
86
|
+
suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
|
|
87
|
+
contentPrefix = '{';
|
|
88
|
+
}
|
|
89
|
+
const cssRule = {
|
|
90
|
+
selector,
|
|
91
|
+
content,
|
|
92
|
+
};
|
|
93
|
+
const rule = ruleCallback(cssRule);
|
|
94
|
+
return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
const escapeBlocks = (input) => {
|
|
98
|
+
const inputParts = input.split(_curlyRe);
|
|
99
|
+
const resultParts = [];
|
|
100
|
+
const escapedBlocks = [];
|
|
101
|
+
let bracketCount = 0;
|
|
102
|
+
let currentBlockParts = [];
|
|
103
|
+
for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
|
|
104
|
+
const part = inputParts[partIndex];
|
|
105
|
+
if (part === CLOSE_CURLY) {
|
|
106
|
+
bracketCount--;
|
|
107
|
+
}
|
|
108
|
+
if (bracketCount > 0) {
|
|
109
|
+
currentBlockParts.push(part);
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
if (currentBlockParts.length > 0) {
|
|
113
|
+
escapedBlocks.push(currentBlockParts.join(''));
|
|
114
|
+
resultParts.push(BLOCK_PLACEHOLDER);
|
|
115
|
+
currentBlockParts = [];
|
|
116
|
+
}
|
|
117
|
+
resultParts.push(part);
|
|
118
|
+
}
|
|
119
|
+
if (part === OPEN_CURLY) {
|
|
120
|
+
bracketCount++;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
if (currentBlockParts.length > 0) {
|
|
124
|
+
escapedBlocks.push(currentBlockParts.join(''));
|
|
125
|
+
resultParts.push(BLOCK_PLACEHOLDER);
|
|
126
|
+
}
|
|
127
|
+
const strEscapedBlocks = {
|
|
128
|
+
escapedString: resultParts.join(''),
|
|
129
|
+
blocks: escapedBlocks,
|
|
130
|
+
};
|
|
131
|
+
return strEscapedBlocks;
|
|
132
|
+
};
|
|
133
|
+
const insertPolyfillHostInCssText = (selector) => {
|
|
134
|
+
selector = selector
|
|
135
|
+
.replace(_colonHostContextRe, _polyfillHostContext)
|
|
136
|
+
.replace(_colonHostRe, _polyfillHost)
|
|
137
|
+
.replace(_colonSlottedRe, _polyfillSlotted);
|
|
138
|
+
return selector;
|
|
139
|
+
};
|
|
140
|
+
const convertColonRule = (cssText, regExp, partReplacer) => {
|
|
141
|
+
// m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule
|
|
142
|
+
return cssText.replace(regExp, (...m) => {
|
|
143
|
+
if (m[2]) {
|
|
144
|
+
const parts = m[2].split(',');
|
|
145
|
+
const r = [];
|
|
146
|
+
for (let i = 0; i < parts.length; i++) {
|
|
147
|
+
const p = parts[i].trim();
|
|
148
|
+
if (!p)
|
|
149
|
+
break;
|
|
150
|
+
r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
|
|
151
|
+
}
|
|
152
|
+
return r.join(',');
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
return _polyfillHostNoCombinator + m[3];
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
};
|
|
159
|
+
const colonHostPartReplacer = (host, part, suffix) => {
|
|
160
|
+
return host + part.replace(_polyfillHost, '') + suffix;
|
|
161
|
+
};
|
|
162
|
+
const convertColonHost = (cssText) => {
|
|
163
|
+
return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
|
|
164
|
+
};
|
|
165
|
+
const colonHostContextPartReplacer = (host, part, suffix) => {
|
|
166
|
+
if (part.indexOf(_polyfillHost) > -1) {
|
|
167
|
+
return colonHostPartReplacer(host, part, suffix);
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
return host + part + suffix + ', ' + part + ' ' + host + suffix;
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
const convertColonSlotted = (cssText, slotScopeId) => {
|
|
174
|
+
const slotClass = '.' + slotScopeId + ' > ';
|
|
175
|
+
const selectors = [];
|
|
176
|
+
cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
|
|
177
|
+
if (m[2]) {
|
|
178
|
+
const compound = m[2].trim();
|
|
179
|
+
const suffix = m[3];
|
|
180
|
+
const slottedSelector = slotClass + compound + suffix;
|
|
181
|
+
let prefixSelector = '';
|
|
182
|
+
for (let i = m[4] - 1; i >= 0; i--) {
|
|
183
|
+
const char = m[5][i];
|
|
184
|
+
if (char === '}' || char === ',') {
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
prefixSelector = char + prefixSelector;
|
|
188
|
+
}
|
|
189
|
+
const orgSelector = prefixSelector + slottedSelector;
|
|
190
|
+
const addedSelector = `${prefixSelector.trimRight()}${slottedSelector.trim()}`;
|
|
191
|
+
if (orgSelector.trim() !== addedSelector.trim()) {
|
|
192
|
+
const updatedSelector = `${addedSelector}, ${orgSelector}`;
|
|
193
|
+
selectors.push({
|
|
194
|
+
orgSelector,
|
|
195
|
+
updatedSelector,
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
return slottedSelector;
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
return _polyfillHostNoCombinator + m[3];
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
return {
|
|
205
|
+
selectors,
|
|
206
|
+
cssText,
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
const convertColonHostContext = (cssText) => {
|
|
210
|
+
return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
|
|
211
|
+
};
|
|
212
|
+
const convertShadowDOMSelectors = (cssText) => {
|
|
213
|
+
return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);
|
|
214
|
+
};
|
|
215
|
+
const makeScopeMatcher = (scopeSelector) => {
|
|
216
|
+
const lre = /\[/g;
|
|
217
|
+
const rre = /\]/g;
|
|
218
|
+
scopeSelector = scopeSelector.replace(lre, '\\[').replace(rre, '\\]');
|
|
219
|
+
return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');
|
|
220
|
+
};
|
|
221
|
+
const selectorNeedsScoping = (selector, scopeSelector) => {
|
|
222
|
+
const re = makeScopeMatcher(scopeSelector);
|
|
223
|
+
return !re.test(selector);
|
|
224
|
+
};
|
|
225
|
+
const injectScopingSelector = (selector, scopingSelector) => {
|
|
226
|
+
return selector.replace(_selectorPartsRe, (_, before = '', _colonGroup, colon = '', after = '') => {
|
|
227
|
+
return before + scopingSelector + colon + after;
|
|
228
|
+
});
|
|
229
|
+
};
|
|
230
|
+
const applySimpleSelectorScope = (selector, scopeSelector, hostSelector) => {
|
|
231
|
+
// In Android browser, the lastIndex is not reset when the regex is used in String.replace()
|
|
232
|
+
_polyfillHostRe.lastIndex = 0;
|
|
233
|
+
if (_polyfillHostRe.test(selector)) {
|
|
234
|
+
const replaceBy = `.${hostSelector}`;
|
|
235
|
+
return selector
|
|
236
|
+
.replace(_polyfillHostNoCombinatorRe, (_, selector) => injectScopingSelector(selector, replaceBy))
|
|
237
|
+
.replace(_polyfillHostRe, replaceBy + ' ');
|
|
238
|
+
}
|
|
239
|
+
return scopeSelector + ' ' + selector;
|
|
240
|
+
};
|
|
241
|
+
const applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {
|
|
242
|
+
const isRe = /\[is=([^\]]*)\]/g;
|
|
243
|
+
scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);
|
|
244
|
+
const className = '.' + scopeSelector;
|
|
245
|
+
const _scopeSelectorPart = (p) => {
|
|
246
|
+
let scopedP = p.trim();
|
|
247
|
+
if (!scopedP) {
|
|
248
|
+
return '';
|
|
249
|
+
}
|
|
250
|
+
if (p.indexOf(_polyfillHostNoCombinator) > -1) {
|
|
251
|
+
scopedP = applySimpleSelectorScope(p, scopeSelector, hostSelector);
|
|
252
|
+
}
|
|
253
|
+
else {
|
|
254
|
+
// remove :host since it should be unnecessary
|
|
255
|
+
const t = p.replace(_polyfillHostRe, '');
|
|
256
|
+
if (t.length > 0) {
|
|
257
|
+
scopedP = injectScopingSelector(t, className);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
return scopedP;
|
|
261
|
+
};
|
|
262
|
+
const safeContent = safeSelector(selector);
|
|
263
|
+
selector = safeContent.content;
|
|
264
|
+
let scopedSelector = '';
|
|
265
|
+
let startIndex = 0;
|
|
266
|
+
let res;
|
|
267
|
+
const sep = /( |>|\+|~(?!=))\s*/g;
|
|
268
|
+
// If a selector appears before :host it should not be shimmed as it
|
|
269
|
+
// matches on ancestor elements and not on elements in the host's shadow
|
|
270
|
+
// `:host-context(div)` is transformed to
|
|
271
|
+
// `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`
|
|
272
|
+
// the `div` is not part of the component in the 2nd selectors and should not be scoped.
|
|
273
|
+
// Historically `component-tag:host` was matching the component so we also want to preserve
|
|
274
|
+
// this behavior to avoid breaking legacy apps (it should not match).
|
|
275
|
+
// The behavior should be:
|
|
276
|
+
// - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)
|
|
277
|
+
// - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a
|
|
278
|
+
// `:host-context(tag)`)
|
|
279
|
+
const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
|
|
280
|
+
// Only scope parts after the first `-shadowcsshost-no-combinator` when it is present
|
|
281
|
+
let shouldScope = !hasHost;
|
|
282
|
+
while ((res = sep.exec(selector)) !== null) {
|
|
283
|
+
const separator = res[1];
|
|
284
|
+
const part = selector.slice(startIndex, res.index).trim();
|
|
285
|
+
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
286
|
+
const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;
|
|
287
|
+
scopedSelector += `${scopedPart} ${separator} `;
|
|
288
|
+
startIndex = sep.lastIndex;
|
|
289
|
+
}
|
|
290
|
+
const part = selector.substring(startIndex);
|
|
291
|
+
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
292
|
+
scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
|
|
293
|
+
// replace the placeholders with their original values
|
|
294
|
+
return restoreSafeSelector(safeContent.placeholders, scopedSelector);
|
|
295
|
+
};
|
|
296
|
+
const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
|
|
297
|
+
return selector
|
|
298
|
+
.split(',')
|
|
299
|
+
.map((shallowPart) => {
|
|
300
|
+
if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {
|
|
301
|
+
return shallowPart.trim();
|
|
302
|
+
}
|
|
303
|
+
if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
|
|
304
|
+
return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
return shallowPart.trim();
|
|
308
|
+
}
|
|
309
|
+
})
|
|
310
|
+
.join(', ');
|
|
311
|
+
};
|
|
312
|
+
const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
|
|
313
|
+
return processRules(cssText, (rule) => {
|
|
314
|
+
let selector = rule.selector;
|
|
315
|
+
let content = rule.content;
|
|
316
|
+
if (rule.selector[0] !== '@') {
|
|
317
|
+
selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
|
|
318
|
+
}
|
|
319
|
+
else if (rule.selector.startsWith('@media') ||
|
|
320
|
+
rule.selector.startsWith('@supports') ||
|
|
321
|
+
rule.selector.startsWith('@page') ||
|
|
322
|
+
rule.selector.startsWith('@document')) {
|
|
323
|
+
content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
|
|
324
|
+
}
|
|
325
|
+
const cssRule = {
|
|
326
|
+
selector: selector.replace(/\s{2,}/g, ' ').trim(),
|
|
327
|
+
content,
|
|
328
|
+
};
|
|
329
|
+
return cssRule;
|
|
330
|
+
});
|
|
331
|
+
};
|
|
332
|
+
const scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector) => {
|
|
333
|
+
cssText = insertPolyfillHostInCssText(cssText);
|
|
334
|
+
cssText = convertColonHost(cssText);
|
|
335
|
+
cssText = convertColonHostContext(cssText);
|
|
336
|
+
const slotted = convertColonSlotted(cssText, slotScopeId);
|
|
337
|
+
cssText = slotted.cssText;
|
|
338
|
+
cssText = convertShadowDOMSelectors(cssText);
|
|
339
|
+
if (scopeId) {
|
|
340
|
+
cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);
|
|
341
|
+
}
|
|
342
|
+
cssText = cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
|
|
343
|
+
cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, ' $1 ');
|
|
344
|
+
return {
|
|
345
|
+
cssText: cssText.trim(),
|
|
346
|
+
slottedSelectors: slotted.selectors,
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
|
|
350
|
+
const hostScopeId = scopeId + '-h';
|
|
351
|
+
const slotScopeId = scopeId + '-s';
|
|
352
|
+
const commentsWithHash = extractCommentsWithHash(cssText);
|
|
353
|
+
cssText = stripComments(cssText);
|
|
354
|
+
const orgSelectors = [];
|
|
355
|
+
if (commentOriginalSelector) {
|
|
356
|
+
const processCommentedSelector = (rule) => {
|
|
357
|
+
const placeholder = `/*!@___${orgSelectors.length}___*/`;
|
|
358
|
+
const comment = `/*!@${rule.selector}*/`;
|
|
359
|
+
orgSelectors.push({ placeholder, comment });
|
|
360
|
+
rule.selector = placeholder + rule.selector;
|
|
361
|
+
return rule;
|
|
362
|
+
};
|
|
363
|
+
cssText = processRules(cssText, (rule) => {
|
|
364
|
+
if (rule.selector[0] !== '@') {
|
|
365
|
+
return processCommentedSelector(rule);
|
|
366
|
+
}
|
|
367
|
+
else if (rule.selector.startsWith('@media') ||
|
|
368
|
+
rule.selector.startsWith('@supports') ||
|
|
369
|
+
rule.selector.startsWith('@page') ||
|
|
370
|
+
rule.selector.startsWith('@document')) {
|
|
371
|
+
rule.content = processRules(rule.content, processCommentedSelector);
|
|
372
|
+
return rule;
|
|
373
|
+
}
|
|
374
|
+
return rule;
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);
|
|
378
|
+
cssText = [scoped.cssText, ...commentsWithHash].join('\n');
|
|
379
|
+
if (commentOriginalSelector) {
|
|
380
|
+
orgSelectors.forEach(({ placeholder, comment }) => {
|
|
381
|
+
cssText = cssText.replace(placeholder, comment);
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
scoped.slottedSelectors.forEach((slottedSelector) => {
|
|
385
|
+
cssText = cssText.replace(slottedSelector.orgSelector, slottedSelector.updatedSelector);
|
|
386
|
+
});
|
|
387
|
+
return cssText;
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
exports.scopeCss = scopeCss;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-438f76bc.js');
|
|
4
|
+
const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
5
|
+
|
|
6
|
+
function format(first, middle, last) {
|
|
7
|
+
return ((first || "") + (middle ? ` ${middle}` : "") + (last ? ` ${last}` : ""));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Return boolean value for passed value if a boolean corresponding value is found
|
|
11
|
+
* Return passed value otherwise
|
|
12
|
+
*/
|
|
13
|
+
function boolean(value) {
|
|
14
|
+
switch (value) {
|
|
15
|
+
case true:
|
|
16
|
+
case "true":
|
|
17
|
+
case 1:
|
|
18
|
+
case "1":
|
|
19
|
+
case "on":
|
|
20
|
+
case "yes":
|
|
21
|
+
return true;
|
|
22
|
+
case false:
|
|
23
|
+
case "false":
|
|
24
|
+
case 0:
|
|
25
|
+
case "0":
|
|
26
|
+
case "off":
|
|
27
|
+
case "no":
|
|
28
|
+
return false;
|
|
29
|
+
default:
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function retrieveAsset(assetName) {
|
|
34
|
+
return assetName && "assets/images/png/" + assetName;
|
|
35
|
+
}
|
|
36
|
+
function randomId() {
|
|
37
|
+
return Math.random().toString(36).replace("0.", "");
|
|
38
|
+
}
|
|
39
|
+
function handleKeyboardSubmit(ev, callback, ...args) {
|
|
40
|
+
if (ev.code === index.KeyboardCodeEnum.ENTER ||
|
|
41
|
+
ev.code === index.KeyboardCodeEnum.SPACE) {
|
|
42
|
+
ev.preventDefault();
|
|
43
|
+
callback(...args);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function getClickedElement(elem = null) {
|
|
47
|
+
if (!elem)
|
|
48
|
+
elem = document.activeElement;
|
|
49
|
+
if (elem && elem.shadowRoot && elem.shadowRoot.activeElement) {
|
|
50
|
+
elem = elem.shadowRoot.activeElement;
|
|
51
|
+
return getClickedElement(elem);
|
|
52
|
+
}
|
|
53
|
+
return elem;
|
|
54
|
+
}
|
|
55
|
+
function getElementTree(elem, tree = []) {
|
|
56
|
+
tree.push(elem);
|
|
57
|
+
if (elem.parentElement) {
|
|
58
|
+
elem = elem.parentElement;
|
|
59
|
+
return getElementTree(elem, tree);
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
}
|
|
62
|
+
else if (elem.parentNode && elem.parentNode.host) {
|
|
63
|
+
// @ts-ignore
|
|
64
|
+
elem = elem.parentNode.host;
|
|
65
|
+
return getElementTree(elem, tree);
|
|
66
|
+
}
|
|
67
|
+
return tree;
|
|
68
|
+
}
|
|
69
|
+
function getSiblings(elem) {
|
|
70
|
+
let siblings = [];
|
|
71
|
+
if (!elem || !elem.parentNode || !elem.parentNode.childNodes) {
|
|
72
|
+
return siblings;
|
|
73
|
+
}
|
|
74
|
+
elem.parentNode.childNodes.forEach((child) => {
|
|
75
|
+
if (child.nodeType === 1 && child !== elem) {
|
|
76
|
+
siblings.push(child);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
return siblings;
|
|
80
|
+
}
|
|
81
|
+
function getDevice() {
|
|
82
|
+
switch (true) {
|
|
83
|
+
case window.innerWidth <= breakpoints.mobileBreakpoint:
|
|
84
|
+
return index.DeviceEnum.mobile;
|
|
85
|
+
case window.innerWidth <= breakpoints.tabletBreakpoint:
|
|
86
|
+
return index.DeviceEnum.tablet;
|
|
87
|
+
default:
|
|
88
|
+
return index.DeviceEnum.desktop;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function convertJson(data) {
|
|
92
|
+
try {
|
|
93
|
+
return JSON.parse(data);
|
|
94
|
+
}
|
|
95
|
+
catch (e) {
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
const prefix = "avatar-C"; // prefix for color vars name
|
|
100
|
+
const colorsCount = 19; // available colors
|
|
101
|
+
function colorFromId(id) {
|
|
102
|
+
const seed = Math.ceil(2 ** 31 - 1) * parseFloat(`0.${id}`);
|
|
103
|
+
let color = Math.ceil(colorsCount * (seed % 1));
|
|
104
|
+
// if result of mc is 0
|
|
105
|
+
// es.: 3895229
|
|
106
|
+
if (color === 0)
|
|
107
|
+
color = 1;
|
|
108
|
+
return `${prefix}${color.toString().padStart(2, "0")}`;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
exports.boolean = boolean;
|
|
112
|
+
exports.colorFromId = colorFromId;
|
|
113
|
+
exports.convertJson = convertJson;
|
|
114
|
+
exports.getClickedElement = getClickedElement;
|
|
115
|
+
exports.getDevice = getDevice;
|
|
116
|
+
exports.getElementTree = getElementTree;
|
|
117
|
+
exports.handleKeyboardSubmit = handleKeyboardSubmit;
|
|
118
|
+
exports.randomId = randomId;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-a8bdcb9c.js');
|
|
4
|
+
const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
5
|
+
|
|
6
|
+
function format(first, middle, last) {
|
|
7
|
+
return ((first || "") + (middle ? ` ${middle}` : "") + (last ? ` ${last}` : ""));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Return boolean value for passed value if a boolean corresponding value is found
|
|
11
|
+
* Return passed value otherwise
|
|
12
|
+
*/
|
|
13
|
+
function boolean(value) {
|
|
14
|
+
switch (value) {
|
|
15
|
+
case true:
|
|
16
|
+
case "true":
|
|
17
|
+
case 1:
|
|
18
|
+
case "1":
|
|
19
|
+
case "on":
|
|
20
|
+
case "yes":
|
|
21
|
+
return true;
|
|
22
|
+
case false:
|
|
23
|
+
case "false":
|
|
24
|
+
case 0:
|
|
25
|
+
case "0":
|
|
26
|
+
case "off":
|
|
27
|
+
case "no":
|
|
28
|
+
return false;
|
|
29
|
+
default:
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function retrieveAsset(assetName) {
|
|
34
|
+
return assetName && "assets/images/png/" + assetName;
|
|
35
|
+
}
|
|
36
|
+
function randomId() {
|
|
37
|
+
return Math.random().toString(36).replace("0.", "");
|
|
38
|
+
}
|
|
39
|
+
function handleKeyboardSubmit(ev, callback, ...args) {
|
|
40
|
+
if (ev.code === index.KeyboardCodeEnum.ENTER ||
|
|
41
|
+
ev.code === index.KeyboardCodeEnum.SPACE) {
|
|
42
|
+
ev.preventDefault();
|
|
43
|
+
callback(...args);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function getClickedElement(elem = null) {
|
|
47
|
+
if (!elem)
|
|
48
|
+
elem = document.activeElement;
|
|
49
|
+
if (elem && elem.shadowRoot && elem.shadowRoot.activeElement) {
|
|
50
|
+
elem = elem.shadowRoot.activeElement;
|
|
51
|
+
return getClickedElement(elem);
|
|
52
|
+
}
|
|
53
|
+
return elem;
|
|
54
|
+
}
|
|
55
|
+
function getElementTree(elem, tree = []) {
|
|
56
|
+
tree.push(elem);
|
|
57
|
+
if (elem.parentElement) {
|
|
58
|
+
elem = elem.parentElement;
|
|
59
|
+
return getElementTree(elem, tree);
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
}
|
|
62
|
+
else if (elem.parentNode && elem.parentNode.host) {
|
|
63
|
+
// @ts-ignore
|
|
64
|
+
elem = elem.parentNode.host;
|
|
65
|
+
return getElementTree(elem, tree);
|
|
66
|
+
}
|
|
67
|
+
return tree;
|
|
68
|
+
}
|
|
69
|
+
function getSiblings(elem) {
|
|
70
|
+
let siblings = [];
|
|
71
|
+
if (!elem || !elem.parentNode || !elem.parentNode.childNodes) {
|
|
72
|
+
return siblings;
|
|
73
|
+
}
|
|
74
|
+
elem.parentNode.childNodes.forEach((child) => {
|
|
75
|
+
if (child.nodeType === 1 && child !== elem) {
|
|
76
|
+
siblings.push(child);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
return siblings;
|
|
80
|
+
}
|
|
81
|
+
function getDevice() {
|
|
82
|
+
switch (true) {
|
|
83
|
+
case window.innerWidth <= breakpoints.mobileBreakpoint:
|
|
84
|
+
return index.DeviceEnum.mobile;
|
|
85
|
+
case window.innerWidth <= breakpoints.tabletBreakpoint:
|
|
86
|
+
return index.DeviceEnum.tablet;
|
|
87
|
+
default:
|
|
88
|
+
return index.DeviceEnum.desktop;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function convertJson(data) {
|
|
92
|
+
try {
|
|
93
|
+
return JSON.parse(data);
|
|
94
|
+
}
|
|
95
|
+
catch (e) {
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
const prefix = "avatar-C"; // prefix for color vars name
|
|
100
|
+
const colorsCount = 19; // available colors
|
|
101
|
+
function colorFromId(id) {
|
|
102
|
+
const seed = Math.ceil(2 ** 31 - 1) * parseFloat(`0.${id}`);
|
|
103
|
+
let color = Math.ceil(colorsCount * (seed % 1));
|
|
104
|
+
// if result of mc is 0
|
|
105
|
+
// es.: 3895229
|
|
106
|
+
if (color === 0)
|
|
107
|
+
color = 1;
|
|
108
|
+
return `${prefix}${color.toString().padStart(2, "0")}`;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
exports.boolean = boolean;
|
|
112
|
+
exports.colorFromId = colorFromId;
|
|
113
|
+
exports.convertJson = convertJson;
|
|
114
|
+
exports.getClickedElement = getClickedElement;
|
|
115
|
+
exports.getDevice = getDevice;
|
|
116
|
+
exports.getElementTree = getElementTree;
|
|
117
|
+
exports.handleKeyboardSubmit = handleKeyboardSubmit;
|
|
118
|
+
exports.randomId = randomId;
|