@zanichelli/albe-web-components 2.40.0 → 2.41.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 +38 -0
- package/dist/cjs/{index-25206491.js → index-15dc9f49.js} +10 -5
- package/dist/cjs/{index-e826b4ad.js → index-ec1433b8.js} +179 -91
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{utils-6410fc7d.js → utils-50477402.js} +3 -3
- package/dist/cjs/web-components-library.cjs.js +3 -3
- 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_10.cjs.entry.js +353 -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_2.cjs.entry.js +1 -1
- package/dist/cjs/z-button-filter_5.cjs.entry.js +3 -3
- package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/cjs/z-candybar.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +2 -2
- 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-footer-link_3.cjs.entry.js +1 -1
- 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-info-box.cjs.entry.js +1 -1
- package/dist/cjs/z-list_3.cjs.entry.js +2 -2
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +3 -3
- 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-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-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_4.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-list-item.cjs.entry.js +3 -3
- package/dist/cjs/z-myz-topbar.cjs.entry.js +2 -2
- package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
- package/dist/cjs/z-notification.cjs.entry.js +2 -2
- package/dist/cjs/z-otp.cjs.entry.js +2 -2
- package/dist/cjs/z-pagination-bar.cjs.entry.js +3 -3
- package/dist/cjs/z-pagination-page.cjs.entry.js +1 -1
- package/dist/cjs/z-panel-elem.cjs.entry.js +1 -1
- package/dist/cjs/z-pocket-message.cjs.entry.js +1 -1
- package/dist/cjs/z-pocket_3.cjs.entry.js +3 -3
- package/dist/cjs/z-popover.cjs.entry.js +3 -3
- package/dist/cjs/z-slideshow.cjs.entry.js +3 -3
- package/dist/cjs/z-status-tag.cjs.entry.js +2 -2
- package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper.cjs.entry.js +1 -1
- package/dist/cjs/z-table-body.cjs.entry.js +1 -1
- package/dist/cjs/z-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/z-table-empty-box.cjs.entry.js +1 -1
- 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 +3 -3
- 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-toast-notification-list.cjs.entry.js +2 -2
- package/dist/cjs/z-toast-notification.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/z-toggle-switch.cjs.entry.js +13 -12
- package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
- 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/beans/index.js +10 -5
- package/dist/collection/collection-manifest.json +3 -5
- package/dist/collection/components/buttons/z-button/index.js +3 -4
- package/dist/collection/components/buttons/z-toggle-switch/index.js +14 -11
- package/dist/collection/components/buttons/z-toggle-switch/styles.css +19 -32
- package/dist/collection/components/navigation/z-menu/index.js +4 -4
- package/dist/collection/components/notification/z-tooltip/index.js +2 -2
- package/dist/collection/components/z-offcanvas/index.js +147 -0
- package/dist/collection/components/z-offcanvas/styles.css +163 -0
- package/dist/collection/utils/utils.js +2 -2
- package/dist/esm/{index-8782dff4.js → index-1877eca4.js} +179 -91
- package/dist/esm/{index-cca2b0d2.js → index-672bd95c.js} +11 -6
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{utils-cdd5a909.js → utils-c01fe130.js} +3 -3
- package/dist/esm/web-components-library.js +3 -3
- 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_10.entry.js +340 -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_2.entry.js +1 -1
- package/dist/esm/z-button-filter_5.entry.js +3 -3
- package/dist/esm/z-button-sort.entry.js +1 -1
- package/dist/esm/z-candybar.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +2 -2
- 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-footer-link_3.entry.js +1 -1
- 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-info-box.entry.js +1 -1
- package/dist/esm/z-list_3.entry.js +2 -2
- package/dist/esm/z-menu-dropdown_2.entry.js +3 -3
- 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-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-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_4.entry.js +2 -2
- package/dist/esm/z-myz-list-item.entry.js +3 -3
- package/dist/esm/z-myz-topbar.entry.js +2 -2
- package/dist/esm/z-navigation-tab.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +2 -2
- package/dist/esm/z-notification.entry.js +2 -2
- package/dist/esm/z-otp.entry.js +2 -2
- package/dist/esm/z-pagination-bar.entry.js +3 -3
- package/dist/esm/z-pagination-page.entry.js +1 -1
- package/dist/esm/z-panel-elem.entry.js +1 -1
- package/dist/esm/z-pocket-message.entry.js +1 -1
- package/dist/esm/z-pocket_3.entry.js +3 -3
- package/dist/esm/z-popover.entry.js +3 -3
- package/dist/esm/z-slideshow.entry.js +3 -3
- package/dist/esm/z-status-tag.entry.js +2 -2
- package/dist/esm/z-stepper-item.entry.js +1 -1
- package/dist/esm/z-stepper.entry.js +1 -1
- package/dist/esm/z-table-body.entry.js +1 -1
- package/dist/esm/z-table-cell.entry.js +2 -2
- package/dist/esm/z-table-empty-box.entry.js +1 -1
- 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 +3 -3
- 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-toast-notification-list.entry.js +2 -2
- package/dist/esm/z-toast-notification.entry.js +2 -2
- package/dist/esm/z-toggle-button.entry.js +1 -1
- package/dist/esm/z-toggle-switch.entry.js +13 -12
- package/dist/esm/z-tooltip.entry.js +2 -2
- package/dist/esm/z-user-dropdown.entry.js +1 -1
- package/dist/esm/z-visually-hidden.entry.js +1 -1
- package/dist/types/beans/index.d.ts +8 -4
- package/dist/types/components/buttons/z-button/index.d.ts +1 -2
- package/dist/types/components/buttons/z-toggle-switch/index.d.ts +2 -2
- package/dist/types/components/z-offcanvas/index.d.ts +25 -0
- package/dist/types/components.d.ts +42 -102
- package/dist/types/stencil-public-runtime.d.ts +189 -186
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-d9a14771.entry.js → p-0084ea9f.entry.js} +1 -1
- package/dist/web-components-library/{p-18d36e2e.entry.js → p-0293d6c6.entry.js} +1 -1
- package/dist/web-components-library/{p-6a4dfee8.entry.js → p-02fa9e81.entry.js} +1 -1
- package/dist/web-components-library/{p-daec8d7f.entry.js → p-032bfb5c.entry.js} +1 -1
- package/dist/web-components-library/{p-c277d035.entry.js → p-04daa863.entry.js} +1 -1
- package/dist/web-components-library/{p-006a91ce.entry.js → p-07938fc2.entry.js} +1 -1
- package/dist/web-components-library/{p-db1508ed.entry.js → p-0948e843.entry.js} +1 -1
- package/dist/web-components-library/{p-b1e6a2ae.entry.js → p-09ded8b4.entry.js} +1 -1
- package/dist/web-components-library/{p-431d0295.entry.js → p-0b6bd214.entry.js} +1 -1
- package/dist/web-components-library/{p-824875b4.entry.js → p-1584dfb4.entry.js} +1 -1
- package/dist/web-components-library/{p-3830db49.entry.js → p-1bd60c44.entry.js} +1 -1
- package/dist/web-components-library/{p-031de7f3.entry.js → p-23c46ff2.entry.js} +1 -1
- package/{www/build/p-1c7ed895.entry.js → dist/web-components-library/p-24a2ecc0.entry.js} +1 -1
- package/dist/web-components-library/{p-7f866d57.entry.js → p-2c120632.entry.js} +1 -1
- package/dist/web-components-library/{p-68fab13e.entry.js → p-2cc0c93f.entry.js} +1 -1
- package/dist/web-components-library/p-3bbf16c8.entry.js +1 -0
- package/dist/web-components-library/{p-277f19e8.entry.js → p-3ea930a5.entry.js} +1 -1
- package/dist/web-components-library/{p-e8305a91.entry.js → p-40e6d79d.entry.js} +1 -1
- package/dist/web-components-library/{p-d1432a24.entry.js → p-45cbf885.entry.js} +1 -1
- package/{www/build/p-8fe1b60c.entry.js → dist/web-components-library/p-4b756d6a.entry.js} +1 -1
- package/dist/web-components-library/{p-1c66e50c.entry.js → p-4c7189d2.entry.js} +1 -1
- package/dist/web-components-library/{p-d950fcf8.entry.js → p-4e2763b2.entry.js} +1 -1
- package/dist/web-components-library/p-56640ea6.js +1 -0
- package/dist/web-components-library/{p-a5460f1e.entry.js → p-56fe8986.entry.js} +1 -1
- package/dist/web-components-library/{p-3504da90.entry.js → p-57aaa3d2.entry.js} +1 -1
- package/{www/build/p-99f59836.entry.js → dist/web-components-library/p-5fb435ca.entry.js} +1 -1
- package/dist/web-components-library/{p-42d64757.js → p-5ff60fcd.js} +1 -1
- package/dist/web-components-library/{p-8c298051.entry.js → p-61d066ee.entry.js} +1 -1
- package/dist/web-components-library/{p-d943ee16.entry.js → p-706eb92e.entry.js} +1 -1
- package/dist/web-components-library/{p-621a7fac.entry.js → p-732213f9.entry.js} +1 -1
- package/dist/web-components-library/{p-99f91860.entry.js → p-761eb0ec.entry.js} +1 -1
- package/dist/web-components-library/{p-ee432245.entry.js → p-77610e66.entry.js} +1 -1
- package/dist/web-components-library/{p-1a6b8d43.entry.js → p-779bc51a.entry.js} +1 -1
- package/dist/web-components-library/{p-a0fef4f3.entry.js → p-7bbf377b.entry.js} +1 -1
- package/dist/web-components-library/{p-7dcda694.entry.js → p-7d57c388.entry.js} +1 -1
- package/dist/web-components-library/{p-8497f556.entry.js → p-7e13c57d.entry.js} +1 -1
- package/dist/web-components-library/{p-95b95a4c.entry.js → p-82b2c47c.entry.js} +1 -1
- package/{www/build/p-823cbb37.entry.js → dist/web-components-library/p-8680baaf.entry.js} +1 -1
- package/dist/web-components-library/{p-a3820e7d.entry.js → p-8788a24f.entry.js} +1 -1
- package/dist/web-components-library/{p-d338e5a9.entry.js → p-8aa42057.entry.js} +1 -1
- package/dist/web-components-library/{p-6043d78f.entry.js → p-8b780334.entry.js} +1 -1
- package/dist/web-components-library/p-8b806916.entry.js +1 -0
- package/dist/web-components-library/{p-ee19d602.entry.js → p-915f59a5.entry.js} +1 -1
- package/dist/web-components-library/{p-d1a0cb4c.entry.js → p-979882a5.entry.js} +1 -1
- package/dist/web-components-library/{p-a73f0693.entry.js → p-9a764099.entry.js} +1 -1
- package/dist/web-components-library/p-a321fe03.js +1 -0
- package/dist/web-components-library/{p-836d2cb2.entry.js → p-a56f935f.entry.js} +1 -1
- package/dist/web-components-library/{p-f6bfde21.entry.js → p-a61ea96d.entry.js} +1 -1
- package/{www/build/p-8741a278.entry.js → dist/web-components-library/p-ad105cb1.entry.js} +1 -1
- package/dist/web-components-library/{p-b1e3a655.entry.js → p-af9c81d0.entry.js} +1 -1
- package/dist/web-components-library/{p-13a0a93a.entry.js → p-b33f83f6.entry.js} +1 -1
- package/dist/web-components-library/p-b4981c43.entry.js +1 -0
- package/dist/web-components-library/{p-2d45e45e.entry.js → p-b4bc83ea.entry.js} +1 -1
- package/dist/web-components-library/{p-39a787af.entry.js → p-b87c4984.entry.js} +1 -1
- package/dist/web-components-library/{p-97c04e0c.entry.js → p-bbc60b23.entry.js} +1 -1
- package/dist/web-components-library/{p-cddc1de0.entry.js → p-bd8a9e22.entry.js} +1 -1
- package/dist/web-components-library/p-c273c377.entry.js +1 -0
- package/{www/build/p-51957070.entry.js → dist/web-components-library/p-c932e698.entry.js} +1 -1
- package/dist/web-components-library/{p-016c1fd4.entry.js → p-cdf09ad7.entry.js} +1 -1
- package/dist/web-components-library/p-d0de0319.entry.js +1 -0
- package/dist/web-components-library/{p-335768cc.entry.js → p-d1d26026.entry.js} +1 -1
- package/dist/web-components-library/{p-f4062940.entry.js → p-d2848d7c.entry.js} +1 -1
- package/dist/web-components-library/{p-b0027b69.entry.js → p-dbbae18b.entry.js} +1 -1
- package/dist/web-components-library/p-df58b251.entry.js +1 -0
- package/dist/web-components-library/{p-e4739505.entry.js → p-e697181c.entry.js} +1 -1
- package/dist/web-components-library/{p-84f934a8.entry.js → p-e776d206.entry.js} +1 -1
- package/{www/build/p-70c7f657.entry.js → dist/web-components-library/p-f0913e02.entry.js} +1 -1
- package/dist/web-components-library/p-f52fb47b.entry.js +1 -0
- package/dist/web-components-library/{p-22e61c79.entry.js → p-f78ddbf1.entry.js} +1 -1
- package/dist/web-components-library/{p-152f95de.entry.js → p-f9a31c55.entry.js} +1 -1
- package/dist/web-components-library/p-f9e401fa.entry.js +1 -0
- package/dist/web-components-library/web-components-library.css +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/loader/index.d.ts +0 -1
- package/package.json +1 -1
- package/react/components.d.ts +1 -3
- package/react/components.js +3 -5
- package/react/components.js.map +1 -1
- package/react/react-component-lib/createComponent.d.ts +1 -1
- package/react/react-component-lib/createComponent.js +42 -10
- package/react/react-component-lib/createComponent.js.map +1 -1
- package/react/react-component-lib/createOverlayComponent.d.ts +5 -4
- package/react/react-component-lib/createOverlayComponent.js +28 -8
- package/react/react-component-lib/createOverlayComponent.js.map +1 -1
- package/react/react-component-lib/utils/attachProps.d.ts +1 -1
- package/react/react-component-lib/utils/attachProps.js +14 -12
- package/react/react-component-lib/utils/attachProps.js.map +1 -1
- package/react/react-component-lib/utils/index.d.ts +4 -1
- package/react/react-component-lib/utils/index.js +20 -5
- package/react/react-component-lib/utils/index.js.map +1 -1
- package/www/assets/favicon.png +0 -0
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-d9a14771.entry.js → p-0084ea9f.entry.js} +1 -1
- package/www/build/{p-18d36e2e.entry.js → p-0293d6c6.entry.js} +1 -1
- package/www/build/{p-6a4dfee8.entry.js → p-02fa9e81.entry.js} +1 -1
- package/www/build/{p-daec8d7f.entry.js → p-032bfb5c.entry.js} +1 -1
- package/www/build/{p-c277d035.entry.js → p-04daa863.entry.js} +1 -1
- package/www/build/{p-006a91ce.entry.js → p-07938fc2.entry.js} +1 -1
- package/www/build/{p-db1508ed.entry.js → p-0948e843.entry.js} +1 -1
- package/www/build/{p-b1e6a2ae.entry.js → p-09ded8b4.entry.js} +1 -1
- package/www/build/{p-431d0295.entry.js → p-0b6bd214.entry.js} +1 -1
- package/www/build/{p-824875b4.entry.js → p-1584dfb4.entry.js} +1 -1
- package/www/build/{p-3830db49.entry.js → p-1bd60c44.entry.js} +1 -1
- package/www/build/p-1ef0dee5.js +129 -0
- package/www/build/{p-031de7f3.entry.js → p-23c46ff2.entry.js} +1 -1
- package/{dist/web-components-library/p-1c7ed895.entry.js → www/build/p-24a2ecc0.entry.js} +1 -1
- package/www/build/{p-7f866d57.entry.js → p-2c120632.entry.js} +1 -1
- package/www/build/{p-68fab13e.entry.js → p-2cc0c93f.entry.js} +1 -1
- package/www/build/p-3bbf16c8.entry.js +1 -0
- package/www/build/{p-277f19e8.entry.js → p-3ea930a5.entry.js} +1 -1
- package/www/build/{p-e8305a91.entry.js → p-40e6d79d.entry.js} +1 -1
- package/www/build/{p-d1432a24.entry.js → p-45cbf885.entry.js} +1 -1
- package/{dist/web-components-library/p-8fe1b60c.entry.js → www/build/p-4b756d6a.entry.js} +1 -1
- package/www/build/{p-1c66e50c.entry.js → p-4c7189d2.entry.js} +1 -1
- package/www/build/{p-d950fcf8.entry.js → p-4e2763b2.entry.js} +1 -1
- package/www/build/p-56640ea6.js +1 -0
- package/www/build/{p-a5460f1e.entry.js → p-56fe8986.entry.js} +1 -1
- package/www/build/{p-3504da90.entry.js → p-57aaa3d2.entry.js} +1 -1
- package/{dist/web-components-library/p-99f59836.entry.js → www/build/p-5fb435ca.entry.js} +1 -1
- package/www/build/{p-42d64757.js → p-5ff60fcd.js} +1 -1
- package/www/build/{p-8c298051.entry.js → p-61d066ee.entry.js} +1 -1
- package/www/build/{p-d943ee16.entry.js → p-706eb92e.entry.js} +1 -1
- package/www/build/{p-621a7fac.entry.js → p-732213f9.entry.js} +1 -1
- package/www/build/{p-99f91860.entry.js → p-761eb0ec.entry.js} +1 -1
- package/www/build/{p-ee432245.entry.js → p-77610e66.entry.js} +1 -1
- package/www/build/{p-1a6b8d43.entry.js → p-779bc51a.entry.js} +1 -1
- package/www/build/{p-a0fef4f3.entry.js → p-7bbf377b.entry.js} +1 -1
- package/www/build/{p-7dcda694.entry.js → p-7d57c388.entry.js} +1 -1
- package/www/build/{p-8497f556.entry.js → p-7e13c57d.entry.js} +1 -1
- package/www/build/{p-95b95a4c.entry.js → p-82b2c47c.entry.js} +1 -1
- package/{dist/web-components-library/p-823cbb37.entry.js → www/build/p-8680baaf.entry.js} +1 -1
- package/www/build/{p-a3820e7d.entry.js → p-8788a24f.entry.js} +1 -1
- package/www/build/{p-d338e5a9.entry.js → p-8aa42057.entry.js} +1 -1
- package/www/build/{p-6043d78f.entry.js → p-8b780334.entry.js} +1 -1
- package/www/build/p-8b806916.entry.js +1 -0
- package/www/build/{p-ee19d602.entry.js → p-915f59a5.entry.js} +1 -1
- package/www/build/{p-d1a0cb4c.entry.js → p-979882a5.entry.js} +1 -1
- package/www/build/{p-a73f0693.entry.js → p-9a764099.entry.js} +1 -1
- package/www/build/p-a321fe03.js +1 -0
- package/www/build/{p-836d2cb2.entry.js → p-a56f935f.entry.js} +1 -1
- package/www/build/{p-f6bfde21.entry.js → p-a61ea96d.entry.js} +1 -1
- package/{dist/web-components-library/p-8741a278.entry.js → www/build/p-ad105cb1.entry.js} +1 -1
- package/www/build/{p-b1e3a655.entry.js → p-af9c81d0.entry.js} +1 -1
- package/www/build/{p-13a0a93a.entry.js → p-b33f83f6.entry.js} +1 -1
- package/www/build/p-b4981c43.entry.js +1 -0
- package/www/build/{p-2d45e45e.entry.js → p-b4bc83ea.entry.js} +1 -1
- package/www/build/{p-39a787af.entry.js → p-b87c4984.entry.js} +1 -1
- package/www/build/{p-97c04e0c.entry.js → p-bbc60b23.entry.js} +1 -1
- package/www/build/{p-cddc1de0.entry.js → p-bd8a9e22.entry.js} +1 -1
- package/www/build/p-c273c377.entry.js +1 -0
- package/{dist/web-components-library/p-51957070.entry.js → www/build/p-c932e698.entry.js} +1 -1
- package/www/build/{p-016c1fd4.entry.js → p-cdf09ad7.entry.js} +1 -1
- package/www/build/p-d0de0319.entry.js +1 -0
- package/www/build/{p-335768cc.entry.js → p-d1d26026.entry.js} +1 -1
- package/www/build/{p-f4062940.entry.js → p-d2848d7c.entry.js} +1 -1
- package/www/build/{p-b0027b69.entry.js → p-dbbae18b.entry.js} +1 -1
- package/www/build/p-df58b251.entry.js +1 -0
- package/www/build/{p-e4739505.entry.js → p-e697181c.entry.js} +1 -1
- package/www/build/{p-84f934a8.entry.js → p-e776d206.entry.js} +1 -1
- package/{dist/web-components-library/p-70c7f657.entry.js → www/build/p-f0913e02.entry.js} +1 -1
- package/www/build/p-f52fb47b.entry.js +1 -0
- package/www/build/{p-22e61c79.entry.js → p-f78ddbf1.entry.js} +1 -1
- package/www/build/{p-152f95de.entry.js → p-f9a31c55.entry.js} +1 -1
- package/www/build/p-f9e401fa.entry.js +1 -0
- package/www/build/{p-97a11655.css → p-fcff1237.css} +24 -1
- package/www/build/web-components-library.css +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.js +1 -1
- package/www/index.html +32 -8
- package/dist/cjs/z-app-switcher.cjs.entry.js +0 -29
- package/dist/cjs/z-app-topbar.cjs.entry.js +0 -41
- package/dist/cjs/z-button.cjs.entry.js +0 -39
- package/dist/cjs/z-card.cjs.entry.js +0 -69
- package/dist/cjs/z-carousel.cjs.entry.js +0 -19
- package/dist/cjs/z-divider.cjs.entry.js +0 -26
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +0 -49
- package/dist/cjs/z-file-upload.cjs.entry.js +0 -169
- package/dist/cjs/z-file.cjs.entry.js +0 -53
- package/dist/cjs/z-icon.cjs.entry.js +0 -28
- package/dist/cjs/z-link.cjs.entry.js +0 -71
- package/dist/cjs/z-logo.cjs.entry.js +0 -28
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js +0 -52
- package/dist/collection/components/file-upload/z-dragdrop-area/styles.css +0 -62
- package/dist/collection/components/file-upload/z-file/index.js +0 -108
- package/dist/collection/components/file-upload/z-file/styles.css +0 -61
- package/dist/collection/components/file-upload/z-file-upload/index.js +0 -329
- package/dist/collection/components/file-upload/z-file-upload/styles.css +0 -87
- package/dist/esm/z-app-switcher.entry.js +0 -25
- package/dist/esm/z-app-topbar.entry.js +0 -37
- package/dist/esm/z-button.entry.js +0 -35
- package/dist/esm/z-card.entry.js +0 -65
- package/dist/esm/z-carousel.entry.js +0 -15
- package/dist/esm/z-divider.entry.js +0 -22
- package/dist/esm/z-dragdrop-area_2.entry.js +0 -44
- package/dist/esm/z-file-upload.entry.js +0 -165
- package/dist/esm/z-file.entry.js +0 -49
- package/dist/esm/z-icon.entry.js +0 -24
- package/dist/esm/z-link.entry.js +0 -67
- package/dist/esm/z-logo.entry.js +0 -24
- package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +0 -9
- package/dist/types/components/file-upload/z-file/index.d.ts +0 -17
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +0 -49
- package/dist/web-components-library/p-0e7fe7c1.js +0 -1
- package/dist/web-components-library/p-117c6e89.entry.js +0 -1
- package/dist/web-components-library/p-11d4e9b7.entry.js +0 -1
- package/dist/web-components-library/p-13abb76e.entry.js +0 -1
- package/dist/web-components-library/p-1acbd992.js +0 -1
- package/dist/web-components-library/p-1f439216.entry.js +0 -1
- package/dist/web-components-library/p-4ce434aa.entry.js +0 -1
- package/dist/web-components-library/p-5ff0b130.entry.js +0 -1
- package/dist/web-components-library/p-7076e9fd.entry.js +0 -1
- package/dist/web-components-library/p-73e8c323.entry.js +0 -1
- package/dist/web-components-library/p-8ed29309.entry.js +0 -1
- package/dist/web-components-library/p-9b4f979f.entry.js +0 -1
- package/dist/web-components-library/p-a3792cf0.entry.js +0 -1
- package/dist/web-components-library/p-a4b2df38.entry.js +0 -1
- package/dist/web-components-library/p-b10f1aaa.entry.js +0 -1
- package/dist/web-components-library/p-c1a7b740.entry.js +0 -1
- package/dist/web-components-library/p-db38494e.entry.js +0 -1
- package/dist/web-components-library/p-e5c89d9f.entry.js +0 -1
- package/dist/web-components-library/p-e88726bc.entry.js +0 -1
- package/dist/web-components-library/p-fc23b15f.entry.js +0 -1
- package/www/build/p-0e7fe7c1.js +0 -1
- package/www/build/p-117c6e89.entry.js +0 -1
- package/www/build/p-11d4e9b7.entry.js +0 -1
- package/www/build/p-13abb76e.entry.js +0 -1
- package/www/build/p-1acbd992.js +0 -1
- package/www/build/p-1f439216.entry.js +0 -1
- package/www/build/p-4ce434aa.entry.js +0 -1
- package/www/build/p-5ff0b130.entry.js +0 -1
- package/www/build/p-7076e9fd.entry.js +0 -1
- package/www/build/p-73e8c323.entry.js +0 -1
- package/www/build/p-7fab4941.js +0 -122
- package/www/build/p-8ed29309.entry.js +0 -1
- package/www/build/p-9b4f979f.entry.js +0 -1
- package/www/build/p-a3792cf0.entry.js +0 -1
- package/www/build/p-a4b2df38.entry.js +0 -1
- package/www/build/p-b10f1aaa.entry.js +0 -1
- package/www/build/p-c1a7b740.entry.js +0 -1
- package/www/build/p-db38494e.entry.js +0 -1
- package/www/build/p-e5c89d9f.entry.js +0 -1
- package/www/build/p-e88726bc.entry.js +0 -1
- package/www/build/p-fc23b15f.entry.js +0 -1
- package/www/pages/file-upload.html +0 -236
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,44 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.41.1](https://github.com/ZanichelliEditore/design-system/compare/v2.41.0...v2.41.1) (2022-05-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* fix storybook ([631db0a](https://github.com/ZanichelliEditore/design-system/commit/631db0a69ce5bb43a37918b2455919bb88d7c905))
|
|
11
|
+
|
|
12
|
+
## [2.41.0](https://github.com/ZanichelliEditore/design-system/compare/v2.40.1...v2.41.0) (2022-05-17)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* accessibility ([f562643](https://github.com/ZanichelliEditore/design-system/commit/f5626437e2da6e1926dd3da6cb7cda2b1ef0d3bd))
|
|
18
|
+
* add active class ([bec3a0b](https://github.com/ZanichelliEditore/design-system/commit/bec3a0bc9a65f06267465723d3670582c7a4e818))
|
|
19
|
+
* add focus and fix css ([507f89b](https://github.com/ZanichelliEditore/design-system/commit/507f89b56a7e50e3adfb4c66bf2b9fb33fbabb2f))
|
|
20
|
+
* add new component z-toggle-switch ([a997af6](https://github.com/ZanichelliEditore/design-system/commit/a997af6606bc34ce258b8ecf1f694d0fa0e03016))
|
|
21
|
+
* added tests z-toggle-switch ([b17639c](https://github.com/ZanichelliEditore/design-system/commit/b17639c5f103050e14b016bc3df77a2318dc4d2d))
|
|
22
|
+
* changed span with the z-body and refactoring css ([7c68d14](https://github.com/ZanichelliEditore/design-system/commit/7c68d14eed6c5ed00b8eb68e9d458d0a304a9a07))
|
|
23
|
+
* fix class and css ([9014733](https://github.com/ZanichelliEditore/design-system/commit/9014733fb07e3573e0288d6d1b4130565a4a7887))
|
|
24
|
+
* fix css ([daa56da](https://github.com/ZanichelliEditore/design-system/commit/daa56da081f9c4bfdca47a88882780c4bc8f21aa))
|
|
25
|
+
* fix css added bean ZtoggleSwitch ([8308de9](https://github.com/ZanichelliEditore/design-system/commit/8308de94fc82b740f1e3349908a526f73baa6cd0))
|
|
26
|
+
* fix html-id and event toggle click ([c387554](https://github.com/ZanichelliEditore/design-system/commit/c387554762544a052d52b4bfc84384790311a370))
|
|
27
|
+
* fix keyboard event ([eaa044f](https://github.com/ZanichelliEditore/design-system/commit/eaa044f143e3702eb9cdd4ae7ee6fd15b9dfbfe2))
|
|
28
|
+
* fix label position prop ([7c80337](https://github.com/ZanichelliEditore/design-system/commit/7c80337986842077cdb436d166b21bbb503404b4))
|
|
29
|
+
* fix order element ([4a44844](https://github.com/ZanichelliEditore/design-system/commit/4a44844b1aae34be6b9d535a429a6dc7dc663323))
|
|
30
|
+
* fix tests ([01e5573](https://github.com/ZanichelliEditore/design-system/commit/01e5573bf9917aa0e4a0abd4459b13d0a5c8e941))
|
|
31
|
+
* fix tests ([5946e22](https://github.com/ZanichelliEditore/design-system/commit/5946e2237ae6426fec7eadf9b827d9dda230cff6))
|
|
32
|
+
* fix tests, fix css, fix html tag ([125cf2b](https://github.com/ZanichelliEditore/design-system/commit/125cf2b36a0f5bf147426fbe0acea8353506f836))
|
|
33
|
+
* fix vars css, refactoring class ([9e80cd4](https://github.com/ZanichelliEditore/design-system/commit/9e80cd477f25e4d6ae8879291c5e06fc945c378b))
|
|
34
|
+
* fixed focus ([516016f](https://github.com/ZanichelliEditore/design-system/commit/516016fbf375ec0a91cc767c73293724bb794f07))
|
|
35
|
+
* fixed focus element and added keyCode event ([40f230f](https://github.com/ZanichelliEditore/design-system/commit/40f230fff5e49ecf8107c1592efd24574c0e33ba))
|
|
36
|
+
* fixed reverse label prop ([b7001d5](https://github.com/ZanichelliEditore/design-system/commit/b7001d5b05261f1f66aa141ce477c4cf490802f0))
|
|
37
|
+
* fixed tests ([b115ca2](https://github.com/ZanichelliEditore/design-system/commit/b115ca25027506879fd56693afc151a2cb5bfe10))
|
|
38
|
+
* fixed transition and align-items ([27a080a](https://github.com/ZanichelliEditore/design-system/commit/27a080ad1a4674b62009f57737dec3f332febb35))
|
|
39
|
+
* refactoring and fix css ([7d7cf92](https://github.com/ZanichelliEditore/design-system/commit/7d7cf928f29b002f4d2e8e3ca682453a4128f2c4))
|
|
40
|
+
|
|
41
|
+
### [2.40.1](https://github.com/ZanichelliEditore/design-system/compare/v2.40.0...v2.40.1) (2022-05-16)
|
|
42
|
+
|
|
5
43
|
## [2.40.0](https://github.com/ZanichelliEditore/design-system/compare/v2.39.0...v2.40.0) (2022-05-16)
|
|
6
44
|
|
|
7
45
|
|
|
@@ -260,11 +260,16 @@ exports.ZAriaAlertMode = void 0;
|
|
|
260
260
|
ZAriaAlertMode["polite"] = "polite";
|
|
261
261
|
ZAriaAlertMode["assertive"] = "assertive";
|
|
262
262
|
})(exports.ZAriaAlertMode || (exports.ZAriaAlertMode = {}));
|
|
263
|
-
exports.
|
|
264
|
-
(function (
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
})(exports.
|
|
263
|
+
exports.TransitionDirectionEnum = void 0;
|
|
264
|
+
(function (TransitionDirectionEnum) {
|
|
265
|
+
TransitionDirectionEnum["left"] = "left";
|
|
266
|
+
TransitionDirectionEnum["right"] = "right";
|
|
267
|
+
})(exports.TransitionDirectionEnum || (exports.TransitionDirectionEnum = {}));
|
|
268
|
+
exports.OffCanvasVariantsEnum = void 0;
|
|
269
|
+
(function (OffCanvasVariantsEnum) {
|
|
270
|
+
OffCanvasVariantsEnum["overlay"] = "overlay";
|
|
271
|
+
OffCanvasVariantsEnum["pushcontent"] = "pushcontent";
|
|
272
|
+
})(exports.OffCanvasVariantsEnum || (exports.OffCanvasVariantsEnum = {}));
|
|
268
273
|
exports.ZChipType = void 0;
|
|
269
274
|
(function (ZChipType) {
|
|
270
275
|
ZChipType["default"] = "default";
|
|
@@ -35,8 +35,8 @@ const doc = win.document || { head: {} };
|
|
|
35
35
|
const plt = {
|
|
36
36
|
$flags$: 0,
|
|
37
37
|
$resourcesUrl$: '',
|
|
38
|
-
jmp: h => h(),
|
|
39
|
-
raf: h => requestAnimationFrame(h),
|
|
38
|
+
jmp: (h) => h(),
|
|
39
|
+
raf: (h) => requestAnimationFrame(h),
|
|
40
40
|
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
41
41
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
42
42
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
@@ -45,7 +45,7 @@ const promiseResolve = (v) => Promise.resolve(v);
|
|
|
45
45
|
const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
46
46
|
try {
|
|
47
47
|
new CSSStyleSheet();
|
|
48
|
-
return typeof
|
|
48
|
+
return typeof new CSSStyleSheet().replace === 'function';
|
|
49
49
|
}
|
|
50
50
|
catch (e) { }
|
|
51
51
|
return false;
|
|
@@ -248,7 +248,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
248
248
|
typeof classData !== 'object'
|
|
249
249
|
? classData
|
|
250
250
|
: Object.keys(classData)
|
|
251
|
-
.filter(k => classData[k])
|
|
251
|
+
.filter((k) => classData[k])
|
|
252
252
|
.join(' ');
|
|
253
253
|
}
|
|
254
254
|
}
|
|
@@ -303,8 +303,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
303
303
|
const classList = elm.classList;
|
|
304
304
|
const oldClasses = parseClassList(oldValue);
|
|
305
305
|
const newClasses = parseClassList(newValue);
|
|
306
|
-
classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
|
|
307
|
-
classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
|
|
306
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
307
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
308
308
|
}
|
|
309
309
|
else if (memberName === 'style') {
|
|
310
310
|
// update style attribute, css properties and values
|
|
@@ -339,7 +339,9 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
339
339
|
newValue(elm);
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
else if ((!isProp ) &&
|
|
342
|
+
else if ((!isProp ) &&
|
|
343
|
+
memberName[0] === 'o' &&
|
|
344
|
+
memberName[1] === 'n') {
|
|
343
345
|
// Event Handlers
|
|
344
346
|
// so if the member name starts with "on" and the 3rd characters is
|
|
345
347
|
// a capital letter, and it's not already a member on the element,
|
|
@@ -386,7 +388,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
386
388
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
387
389
|
if (memberName === 'list') {
|
|
388
390
|
isProp = false;
|
|
389
|
-
// tslint:disable-next-line: triple-equals
|
|
390
391
|
}
|
|
391
392
|
else if (oldValue == null || elm[memberName] != n) {
|
|
392
393
|
elm[memberName] = n;
|
|
@@ -440,7 +441,9 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
440
441
|
// if the element passed in is a shadow root, which is a document fragment
|
|
441
442
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
442
443
|
// if it's not a shadow root, then we add attrs/props to the same element
|
|
443
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
444
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
445
|
+
? newVnode.$elm$.host
|
|
446
|
+
: newVnode.$elm$;
|
|
444
447
|
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
445
448
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
446
449
|
{
|
|
@@ -484,14 +487,17 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
484
487
|
}
|
|
485
488
|
else if (newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
486
489
|
// create a slot reference node
|
|
487
|
-
elm = newVNode.$elm$ =
|
|
490
|
+
elm = newVNode.$elm$ =
|
|
491
|
+
doc.createTextNode('');
|
|
488
492
|
}
|
|
489
493
|
else {
|
|
490
494
|
if (!isSvgMode) {
|
|
491
495
|
isSvgMode = newVNode.$tag$ === 'svg';
|
|
492
496
|
}
|
|
493
497
|
// create element
|
|
494
|
-
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
498
|
+
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
499
|
+
? 'slot-fb'
|
|
500
|
+
: newVNode.$tag$)
|
|
495
501
|
);
|
|
496
502
|
if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
|
497
503
|
isSvgMode = false;
|
|
@@ -858,7 +864,7 @@ const relocateSlotContent = (elm) => {
|
|
|
858
864
|
// that is suppose to always represent the original content location
|
|
859
865
|
if (isNodeLocatedInSlot(node, slotNameAttr)) {
|
|
860
866
|
// it's possible we've already decided to relocate this node
|
|
861
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
867
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
862
868
|
// made some changes to slots
|
|
863
869
|
// let's make sure we also double check
|
|
864
870
|
// fallbacks are correctly hidden or shown
|
|
@@ -877,9 +883,9 @@ const relocateSlotContent = (elm) => {
|
|
|
877
883
|
});
|
|
878
884
|
}
|
|
879
885
|
if (node['s-sr']) {
|
|
880
|
-
relocateNodes.map(relocateNode => {
|
|
886
|
+
relocateNodes.map((relocateNode) => {
|
|
881
887
|
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
|
|
882
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
888
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
883
889
|
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
884
890
|
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
885
891
|
}
|
|
@@ -887,7 +893,7 @@ const relocateSlotContent = (elm) => {
|
|
|
887
893
|
});
|
|
888
894
|
}
|
|
889
895
|
}
|
|
890
|
-
else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) {
|
|
896
|
+
else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
891
897
|
// so far this element does not have a slot home, not setting slotRefNode on purpose
|
|
892
898
|
// if we never find a home for this element then we'll need to hide it
|
|
893
899
|
relocateNodes.push({
|
|
@@ -967,7 +973,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
967
973
|
if (!nodeToRelocate['s-ol']) {
|
|
968
974
|
// add a reference node marking this node's original location
|
|
969
975
|
// keep a reference to this node for later lookups
|
|
970
|
-
orgLocationNode =
|
|
976
|
+
orgLocationNode =
|
|
977
|
+
doc.createTextNode('');
|
|
971
978
|
orgLocationNode['s-nr'] = nodeToRelocate;
|
|
972
979
|
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
|
973
980
|
}
|
|
@@ -991,7 +998,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
991
998
|
}
|
|
992
999
|
}
|
|
993
1000
|
}
|
|
994
|
-
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
1001
|
+
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
1002
|
+
nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
995
1003
|
// we've checked that it's worth while to relocate
|
|
996
1004
|
// since that the node to relocate
|
|
997
1005
|
// has a different next sibling or parent relocated
|
|
@@ -1037,6 +1045,13 @@ const createEvent = (ref, name, flags) => {
|
|
|
1037
1045
|
},
|
|
1038
1046
|
};
|
|
1039
1047
|
};
|
|
1048
|
+
/**
|
|
1049
|
+
* Helper function to create & dispatch a custom Event on a provided target
|
|
1050
|
+
* @param elm the target of the Event
|
|
1051
|
+
* @param name the name to give the custom Event
|
|
1052
|
+
* @param opts options for configuring a custom Event
|
|
1053
|
+
* @returns the custom Event
|
|
1054
|
+
*/
|
|
1040
1055
|
const emitEvent = (elm, name, opts) => {
|
|
1041
1056
|
const ev = plt.ce(name, opts);
|
|
1042
1057
|
elm.dispatchEvent(ev);
|
|
@@ -1044,7 +1059,7 @@ const emitEvent = (elm, name, opts) => {
|
|
|
1044
1059
|
};
|
|
1045
1060
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1046
1061
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
1047
|
-
ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r)));
|
|
1062
|
+
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
|
1048
1063
|
}
|
|
1049
1064
|
};
|
|
1050
1065
|
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -1106,7 +1121,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1106
1121
|
// ok, so turns out there are some child host elements
|
|
1107
1122
|
// waiting on this parent element to load
|
|
1108
1123
|
// let's fire off all update callbacks waiting
|
|
1109
|
-
rc.map(cb => cb());
|
|
1124
|
+
rc.map((cb) => cb());
|
|
1110
1125
|
elm['s-rc'] = undefined;
|
|
1111
1126
|
}
|
|
1112
1127
|
endRender();
|
|
@@ -1176,9 +1191,6 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1176
1191
|
}
|
|
1177
1192
|
}
|
|
1178
1193
|
else {
|
|
1179
|
-
{
|
|
1180
|
-
safeCall(instance, 'componentDidUpdate');
|
|
1181
|
-
}
|
|
1182
1194
|
endPostUpdate();
|
|
1183
1195
|
}
|
|
1184
1196
|
{
|
|
@@ -1222,7 +1234,31 @@ const safeCall = (instance, method, arg) => {
|
|
|
1222
1234
|
const then = (promise, thenFn) => {
|
|
1223
1235
|
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
1224
1236
|
};
|
|
1225
|
-
const addHydratedFlag = (elm) =>
|
|
1237
|
+
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1238
|
+
;
|
|
1239
|
+
/**
|
|
1240
|
+
* Parse a new property value for a given property type.
|
|
1241
|
+
*
|
|
1242
|
+
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
|
1243
|
+
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
|
1244
|
+
* 1. `any`, the type given to `propValue` in the function signature
|
|
1245
|
+
* 2. the type stored from `propType`.
|
|
1246
|
+
*
|
|
1247
|
+
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
|
1248
|
+
*
|
|
1249
|
+
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
|
1250
|
+
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
|
1251
|
+
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
|
1252
|
+
* ```tsx
|
|
1253
|
+
* <my-cmp prop-val={0}></my-cmp>
|
|
1254
|
+
* ```
|
|
1255
|
+
*
|
|
1256
|
+
* HTML prop values on the other hand, will always a string
|
|
1257
|
+
*
|
|
1258
|
+
* @param propValue the new value to coerce to some type
|
|
1259
|
+
* @param propType the type of the prop, expressed as a binary number
|
|
1260
|
+
* @returns the parsed/coerced value
|
|
1261
|
+
*/
|
|
1226
1262
|
const parsePropertyValue = (propValue, propType) => {
|
|
1227
1263
|
// ensure this value is of the correct prop type
|
|
1228
1264
|
if (propValue != null && !isComplexType(propValue)) {
|
|
@@ -1256,7 +1292,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1256
1292
|
const flags = hostRef.$flags$;
|
|
1257
1293
|
const instance = hostRef.$lazyInstance$ ;
|
|
1258
1294
|
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1259
|
-
|
|
1295
|
+
// explicitly check for NaN on both sides, as `NaN === NaN` is always false
|
|
1296
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1297
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1298
|
+
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
1260
1299
|
// gadzooks! the property's value has changed!!
|
|
1261
1300
|
// set our new value!
|
|
1262
1301
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
@@ -1266,7 +1305,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1266
1305
|
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1267
1306
|
if (watchMethods) {
|
|
1268
1307
|
// this instance is watching for when this property changed
|
|
1269
|
-
watchMethods.map(watchMethodName => {
|
|
1308
|
+
watchMethods.map((watchMethodName) => {
|
|
1270
1309
|
try {
|
|
1271
1310
|
// fire off each of the watch methods that are watching this property
|
|
1272
1311
|
instance[watchMethodName](newVal, oldVal, propName);
|
|
@@ -1296,7 +1335,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1296
1335
|
const members = Object.entries(cmpMeta.$members$);
|
|
1297
1336
|
const prototype = Cstr.prototype;
|
|
1298
1337
|
members.map(([memberName, [memberFlags]]) => {
|
|
1299
|
-
if ((memberFlags & 31 /* Prop */ ||
|
|
1338
|
+
if ((memberFlags & 31 /* Prop */ ||
|
|
1339
|
+
((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
1300
1340
|
// proxyComponent - prop
|
|
1301
1341
|
Object.defineProperty(prototype, memberName, {
|
|
1302
1342
|
get() {
|
|
@@ -1311,7 +1351,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1311
1351
|
enumerable: true,
|
|
1312
1352
|
});
|
|
1313
1353
|
}
|
|
1314
|
-
else if (flags & 1 /* isElementConstructor */ &&
|
|
1354
|
+
else if (flags & 1 /* isElementConstructor */ &&
|
|
1355
|
+
memberFlags & 64 /* Method */) {
|
|
1315
1356
|
// proxyComponent - method
|
|
1316
1357
|
Object.defineProperty(prototype, memberName, {
|
|
1317
1358
|
value(...args) {
|
|
@@ -1326,6 +1367,51 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1326
1367
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1327
1368
|
plt.jmp(() => {
|
|
1328
1369
|
const propName = attrNameToPropName.get(attrName);
|
|
1370
|
+
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
1371
|
+
// in the case where an attribute was set inline.
|
|
1372
|
+
// ```html
|
|
1373
|
+
// <my-component some-attribute="some-value"></my-component>
|
|
1374
|
+
// ```
|
|
1375
|
+
//
|
|
1376
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1377
|
+
// programmatically changes it before it has been upgraded as shown below:
|
|
1378
|
+
//
|
|
1379
|
+
// ```html
|
|
1380
|
+
// <!-- this component has _not_ been upgraded yet -->
|
|
1381
|
+
// <my-component id="test" some-attribute="some-value"></my-component>
|
|
1382
|
+
// <script>
|
|
1383
|
+
// // grab non-upgraded component
|
|
1384
|
+
// el = document.querySelector("#test");
|
|
1385
|
+
// el.someAttribute = "another-value";
|
|
1386
|
+
// // upgrade component
|
|
1387
|
+
// customElements.define('my-component', MyComponent);
|
|
1388
|
+
// </script>
|
|
1389
|
+
// ```
|
|
1390
|
+
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1391
|
+
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1392
|
+
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1393
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
|
|
1394
|
+
//
|
|
1395
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1396
|
+
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1397
|
+
//
|
|
1398
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1399
|
+
//
|
|
1400
|
+
// TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
|
|
1401
|
+
// properties here given that this goes against best practices outlined here
|
|
1402
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
|
|
1403
|
+
if (this.hasOwnProperty(propName)) {
|
|
1404
|
+
newValue = this[propName];
|
|
1405
|
+
delete this[propName];
|
|
1406
|
+
}
|
|
1407
|
+
else if (prototype.hasOwnProperty(propName) &&
|
|
1408
|
+
typeof this[propName] === 'number' &&
|
|
1409
|
+
this[propName] == newValue) {
|
|
1410
|
+
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
|
1411
|
+
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
|
1412
|
+
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1413
|
+
return;
|
|
1414
|
+
}
|
|
1329
1415
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1330
1416
|
});
|
|
1331
1417
|
};
|
|
@@ -1362,7 +1448,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1362
1448
|
endLoad();
|
|
1363
1449
|
}
|
|
1364
1450
|
if (!Cstr.isProxied) {
|
|
1365
|
-
// we'
|
|
1451
|
+
// we've never proxied this Constructor before
|
|
1366
1452
|
// let's add the getters/setters to its prototype before
|
|
1367
1453
|
// the first time we create an instance of the implementation
|
|
1368
1454
|
{
|
|
@@ -1411,7 +1497,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1411
1497
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1412
1498
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1413
1499
|
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1414
|
-
// this is the
|
|
1500
|
+
// this is the initial load and this component it has an ancestor component
|
|
1415
1501
|
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1416
1502
|
// so let's just cool our jets and wait for the ancestor to continue first
|
|
1417
1503
|
// this will get fired off when the ancestor component
|
|
@@ -1496,7 +1582,7 @@ const disconnectedCallback = (elm) => {
|
|
|
1496
1582
|
const instance = hostRef.$lazyInstance$ ;
|
|
1497
1583
|
{
|
|
1498
1584
|
if (hostRef.$rmListeners$) {
|
|
1499
|
-
hostRef.$rmListeners$.map(rmListener => rmListener());
|
|
1585
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1500
1586
|
hostRef.$rmListeners$ = undefined;
|
|
1501
1587
|
}
|
|
1502
1588
|
}
|
|
@@ -1518,71 +1604,73 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1518
1604
|
let isBootstrapping = true;
|
|
1519
1605
|
Object.assign(plt, options);
|
|
1520
1606
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1521
|
-
lazyBundles.map(lazyBundle =>
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1607
|
+
lazyBundles.map((lazyBundle) => {
|
|
1608
|
+
lazyBundle[1].map((compactMeta) => {
|
|
1609
|
+
const cmpMeta = {
|
|
1610
|
+
$flags$: compactMeta[0],
|
|
1611
|
+
$tagName$: compactMeta[1],
|
|
1612
|
+
$members$: compactMeta[2],
|
|
1613
|
+
$listeners$: compactMeta[3],
|
|
1614
|
+
};
|
|
1615
|
+
{
|
|
1616
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1617
|
+
}
|
|
1618
|
+
{
|
|
1619
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
1620
|
+
}
|
|
1621
|
+
{
|
|
1622
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1623
|
+
}
|
|
1624
|
+
{
|
|
1625
|
+
cmpMeta.$watchers$ = {};
|
|
1626
|
+
}
|
|
1627
|
+
const tagName = cmpMeta.$tagName$;
|
|
1628
|
+
const HostElement = class extends HTMLElement {
|
|
1629
|
+
// StencilLazyHost
|
|
1630
|
+
constructor(self) {
|
|
1631
|
+
// @ts-ignore
|
|
1632
|
+
super(self);
|
|
1633
|
+
self = this;
|
|
1634
|
+
registerHost(self, cmpMeta);
|
|
1635
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1636
|
+
// this component is using shadow dom
|
|
1637
|
+
// and this browser supports shadow dom
|
|
1638
|
+
// add the read-only property "shadowRoot" to the host element
|
|
1639
|
+
// adding the shadow root build conditionals to minimize runtime
|
|
1554
1640
|
{
|
|
1555
|
-
|
|
1641
|
+
{
|
|
1642
|
+
self.attachShadow({ mode: 'open' });
|
|
1643
|
+
}
|
|
1556
1644
|
}
|
|
1557
1645
|
}
|
|
1558
1646
|
}
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1647
|
+
connectedCallback() {
|
|
1648
|
+
if (appLoadFallback) {
|
|
1649
|
+
clearTimeout(appLoadFallback);
|
|
1650
|
+
appLoadFallback = null;
|
|
1651
|
+
}
|
|
1652
|
+
if (isBootstrapping) {
|
|
1653
|
+
// connectedCallback will be processed once all components have been registered
|
|
1654
|
+
deferredConnectedCallbacks.push(this);
|
|
1655
|
+
}
|
|
1656
|
+
else {
|
|
1657
|
+
plt.jmp(() => connectedCallback(this));
|
|
1658
|
+
}
|
|
1564
1659
|
}
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
deferredConnectedCallbacks.push(this);
|
|
1660
|
+
disconnectedCallback() {
|
|
1661
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
1568
1662
|
}
|
|
1569
|
-
|
|
1570
|
-
|
|
1663
|
+
componentOnReady() {
|
|
1664
|
+
return getHostRef(this).$onReadyPromise$;
|
|
1571
1665
|
}
|
|
1666
|
+
};
|
|
1667
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1668
|
+
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1669
|
+
cmpTags.push(tagName);
|
|
1670
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1572
1671
|
}
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
}
|
|
1576
|
-
componentOnReady() {
|
|
1577
|
-
return getHostRef(this).$onReadyPromise$;
|
|
1578
|
-
}
|
|
1579
|
-
};
|
|
1580
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1581
|
-
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1582
|
-
cmpTags.push(tagName);
|
|
1583
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1584
|
-
}
|
|
1585
|
-
}));
|
|
1672
|
+
});
|
|
1673
|
+
});
|
|
1586
1674
|
{
|
|
1587
1675
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1588
1676
|
visibilityStyle.setAttribute('data-styles', '');
|
|
@@ -1591,7 +1679,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1591
1679
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1592
1680
|
isBootstrapping = false;
|
|
1593
1681
|
if (deferredConnectedCallbacks.length) {
|
|
1594
|
-
deferredConnectedCallbacks.map(host => host.connectedCallback());
|
|
1682
|
+
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
1595
1683
|
}
|
|
1596
1684
|
else {
|
|
1597
1685
|
{
|
|
@@ -1612,10 +1700,10 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1612
1700
|
$instanceValues$: new Map(),
|
|
1613
1701
|
};
|
|
1614
1702
|
{
|
|
1615
|
-
hostRef.$onInstancePromise$ = new Promise(r => (hostRef.$onInstanceResolve$ = r));
|
|
1703
|
+
hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
|
|
1616
1704
|
}
|
|
1617
1705
|
{
|
|
1618
|
-
hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
|
|
1706
|
+
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1619
1707
|
elm['s-p'] = [];
|
|
1620
1708
|
elm['s-rc'] = [];
|
|
1621
1709
|
}
|
|
@@ -1637,7 +1725,7 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1637
1725
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1638
1726
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1639
1727
|
/* webpackMode: "lazy" */
|
|
1640
|
-
`./${bundleId}.entry.js${''}`)); }).then(importedModule => {
|
|
1728
|
+
`./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
|
|
1641
1729
|
{
|
|
1642
1730
|
cmpModules.set(bundleId, importedModule);
|
|
1643
1731
|
}
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const utils = require('./utils-
|
|
6
|
-
require('./index-
|
|
5
|
+
const utils = require('./utils-50477402.js');
|
|
6
|
+
require('./index-15dc9f49.js');
|
|
7
7
|
require('./breakpoints-88c4fd6c.js');
|
|
8
8
|
|
|
9
9
|
const Utils = {
|