@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
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--z-offcanvas--container-width: 375px;
|
|
3
|
+
--z-offcanvas--top-space: 0px;
|
|
4
|
+
|
|
5
|
+
z-index: 1000;
|
|
6
|
+
display: none;
|
|
7
|
+
justify-content: end;
|
|
8
|
+
height: 100%;
|
|
9
|
+
min-width: 100%;
|
|
10
|
+
font-family: var(--font-family-sans);
|
|
11
|
+
font-weight: var(--font-rg);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.canvas-container {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
z-index: 1010;
|
|
18
|
+
min-width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
overflow: -moz-scrollbars-none;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
background: var(--color-surface01);
|
|
23
|
+
transform: translateX(100%);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@keyframes enterRight {
|
|
27
|
+
from {transform: translateX(100%);}
|
|
28
|
+
to {transform: translateX(0);}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host([open]) > .canvas-container {
|
|
32
|
+
animation-name: enterRight;
|
|
33
|
+
animation-duration:0.4s;
|
|
34
|
+
animation-timing-function: ease-out;
|
|
35
|
+
transform: translateX(0);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@keyframes exitRight {
|
|
39
|
+
from {transform: translateX(0);}
|
|
40
|
+
to {transform: translateX(100%);}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host(:not([open])[variant="overlay"]) > .canvas-container {
|
|
44
|
+
animation-name: exitRight;
|
|
45
|
+
animation-duration:0.4s;
|
|
46
|
+
animation-timing-function: ease-out;
|
|
47
|
+
transform: translateX(100%);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([variant="overlay"]) {
|
|
51
|
+
position: fixed;
|
|
52
|
+
height: calc(100% - var(--z-offcanvas--top-space));
|
|
53
|
+
top: var(--z-offcanvas--top-space);
|
|
54
|
+
left: 0;
|
|
55
|
+
right: 0;
|
|
56
|
+
bottom: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host([variant="overlay"]) .canvas-background {
|
|
60
|
+
position: absolute;
|
|
61
|
+
left: 0;
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
background-color: var(--gray900);
|
|
65
|
+
opacity: 0.7;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host([transitiondirection="right"]) {
|
|
69
|
+
justify-content: start;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([transitiondirection="right"]) > .canvas-container {
|
|
73
|
+
transform: translateX(-100%);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@keyframes enterLeft {
|
|
77
|
+
from {transform: translateX(-100%);}
|
|
78
|
+
to {transform: translateX(0);}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:host([transitiondirection="right"][open]) > .canvas-container {
|
|
82
|
+
animation-name: enterLeft;
|
|
83
|
+
animation-duration: 0.4s;
|
|
84
|
+
animation-timing-function: ease-out;
|
|
85
|
+
transform: translateX(0);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@keyframes exitLeft {
|
|
89
|
+
from {transform: translateX(0);}
|
|
90
|
+
to {transform: translateX(-100%);}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host(:not([open])[variant="overlay"][transitiondirection="right"]) > .canvas-container {
|
|
94
|
+
animation-name: exitLeft;
|
|
95
|
+
animation-duration:0.4s;
|
|
96
|
+
animation-timing-function: ease-out;
|
|
97
|
+
transform: translateX(-100%);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.canvas-container > .canvas-content {
|
|
101
|
+
flex: 1 auto;
|
|
102
|
+
overflow: auto;
|
|
103
|
+
overflow-x: hidden;
|
|
104
|
+
padding: 0 calc(var(--space-unit) * 2) ;
|
|
105
|
+
margin: calc(var(--space-unit) * 2) calc(var(--space-unit) / 2) calc(var(--space-unit) * 2) 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.canvas-container .canvas-content::-webkit-scrollbar {
|
|
109
|
+
background: linear-gradient(
|
|
110
|
+
to right,
|
|
111
|
+
transparent 0 3px,
|
|
112
|
+
var(--gray200) 3px 7px,
|
|
113
|
+
transparent 7px 10px
|
|
114
|
+
);
|
|
115
|
+
width: 10px;
|
|
116
|
+
border-radius: var(--border-radius);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.canvas-container .canvas-content::-webkit-scrollbar-track {
|
|
120
|
+
background-color: transparent;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.canvas-container .canvas-content::-webkit-scrollbar-thumb {
|
|
124
|
+
background-color: var(--color-primary01);
|
|
125
|
+
border-radius: var(--border-radius);
|
|
126
|
+
width: 10px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.canvas-container .canvas-content::-webkit-scrollbar-thumb:hover {
|
|
130
|
+
background-color: var(--color-hover-primary);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* Firefox */
|
|
134
|
+
.canvas-container .canvas-content {
|
|
135
|
+
scrollbar-color: var(--color-primary01) transparent;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Tablet / Desktop */
|
|
139
|
+
@media only screen and (min-width: 768px) {
|
|
140
|
+
:host {
|
|
141
|
+
min-width: auto;
|
|
142
|
+
}
|
|
143
|
+
.canvas-container {
|
|
144
|
+
width: auto;
|
|
145
|
+
height: auto;
|
|
146
|
+
min-width: max(var(--z-offcanvas--container-width), 375px);
|
|
147
|
+
min-height: calc(var(--space-unit) * 40);
|
|
148
|
+
max-width: max(var(--z-offcanvas--container-width), 375px);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@keyframes grow {
|
|
152
|
+
from {width: 0;}
|
|
153
|
+
to {width: max(var(--z-offcanvas--container-width), 375px)}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
:host(:not([variant="overlay"])[open]) {
|
|
157
|
+
animation-name: grow;
|
|
158
|
+
animation-duration: 0.4s;
|
|
159
|
+
animation-timing-function: ease-out;
|
|
160
|
+
width: auto;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
@@ -69,7 +69,7 @@ export function convertJson(data) {
|
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
const prefix =
|
|
72
|
+
const prefix = 'avatar-C'; // prefix for color vars name
|
|
73
73
|
const colorsCount = 19; // available colors
|
|
74
74
|
export function colorFromId(id) {
|
|
75
75
|
const seed = Math.ceil(2 ** 31 - 1) * parseFloat(`0.${id}`);
|
|
@@ -78,5 +78,5 @@ export function colorFromId(id) {
|
|
|
78
78
|
// es.: 3895229
|
|
79
79
|
if (color === 0)
|
|
80
80
|
color = 1;
|
|
81
|
-
return `${prefix}${color.toString().padStart(2,
|
|
81
|
+
return `${prefix}${color.toString().padStart(2, '0')}`;
|
|
82
82
|
}
|
|
@@ -13,8 +13,8 @@ const doc = win.document || { head: {} };
|
|
|
13
13
|
const plt = {
|
|
14
14
|
$flags$: 0,
|
|
15
15
|
$resourcesUrl$: '',
|
|
16
|
-
jmp: h => h(),
|
|
17
|
-
raf: h => requestAnimationFrame(h),
|
|
16
|
+
jmp: (h) => h(),
|
|
17
|
+
raf: (h) => requestAnimationFrame(h),
|
|
18
18
|
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
19
19
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
20
20
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
@@ -23,7 +23,7 @@ const promiseResolve = (v) => Promise.resolve(v);
|
|
|
23
23
|
const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
24
24
|
try {
|
|
25
25
|
new CSSStyleSheet();
|
|
26
|
-
return typeof
|
|
26
|
+
return typeof new CSSStyleSheet().replace === 'function';
|
|
27
27
|
}
|
|
28
28
|
catch (e) { }
|
|
29
29
|
return false;
|
|
@@ -226,7 +226,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
226
226
|
typeof classData !== 'object'
|
|
227
227
|
? classData
|
|
228
228
|
: Object.keys(classData)
|
|
229
|
-
.filter(k => classData[k])
|
|
229
|
+
.filter((k) => classData[k])
|
|
230
230
|
.join(' ');
|
|
231
231
|
}
|
|
232
232
|
}
|
|
@@ -281,8 +281,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
281
281
|
const classList = elm.classList;
|
|
282
282
|
const oldClasses = parseClassList(oldValue);
|
|
283
283
|
const newClasses = parseClassList(newValue);
|
|
284
|
-
classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
|
|
285
|
-
classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
|
|
284
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
285
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
286
286
|
}
|
|
287
287
|
else if (memberName === 'style') {
|
|
288
288
|
// update style attribute, css properties and values
|
|
@@ -317,7 +317,9 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
317
317
|
newValue(elm);
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
else if ((!isProp ) &&
|
|
320
|
+
else if ((!isProp ) &&
|
|
321
|
+
memberName[0] === 'o' &&
|
|
322
|
+
memberName[1] === 'n') {
|
|
321
323
|
// Event Handlers
|
|
322
324
|
// so if the member name starts with "on" and the 3rd characters is
|
|
323
325
|
// a capital letter, and it's not already a member on the element,
|
|
@@ -364,7 +366,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
364
366
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
365
367
|
if (memberName === 'list') {
|
|
366
368
|
isProp = false;
|
|
367
|
-
// tslint:disable-next-line: triple-equals
|
|
368
369
|
}
|
|
369
370
|
else if (oldValue == null || elm[memberName] != n) {
|
|
370
371
|
elm[memberName] = n;
|
|
@@ -418,7 +419,9 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
418
419
|
// if the element passed in is a shadow root, which is a document fragment
|
|
419
420
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
420
421
|
// if it's not a shadow root, then we add attrs/props to the same element
|
|
421
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
422
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
423
|
+
? newVnode.$elm$.host
|
|
424
|
+
: newVnode.$elm$;
|
|
422
425
|
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
423
426
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
424
427
|
{
|
|
@@ -462,14 +465,17 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
462
465
|
}
|
|
463
466
|
else if (newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
464
467
|
// create a slot reference node
|
|
465
|
-
elm = newVNode.$elm$ =
|
|
468
|
+
elm = newVNode.$elm$ =
|
|
469
|
+
doc.createTextNode('');
|
|
466
470
|
}
|
|
467
471
|
else {
|
|
468
472
|
if (!isSvgMode) {
|
|
469
473
|
isSvgMode = newVNode.$tag$ === 'svg';
|
|
470
474
|
}
|
|
471
475
|
// create element
|
|
472
|
-
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
476
|
+
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
477
|
+
? 'slot-fb'
|
|
478
|
+
: newVNode.$tag$)
|
|
473
479
|
);
|
|
474
480
|
if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
|
475
481
|
isSvgMode = false;
|
|
@@ -836,7 +842,7 @@ const relocateSlotContent = (elm) => {
|
|
|
836
842
|
// that is suppose to always represent the original content location
|
|
837
843
|
if (isNodeLocatedInSlot(node, slotNameAttr)) {
|
|
838
844
|
// it's possible we've already decided to relocate this node
|
|
839
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
845
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
840
846
|
// made some changes to slots
|
|
841
847
|
// let's make sure we also double check
|
|
842
848
|
// fallbacks are correctly hidden or shown
|
|
@@ -855,9 +861,9 @@ const relocateSlotContent = (elm) => {
|
|
|
855
861
|
});
|
|
856
862
|
}
|
|
857
863
|
if (node['s-sr']) {
|
|
858
|
-
relocateNodes.map(relocateNode => {
|
|
864
|
+
relocateNodes.map((relocateNode) => {
|
|
859
865
|
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
|
|
860
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
866
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
861
867
|
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
862
868
|
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
863
869
|
}
|
|
@@ -865,7 +871,7 @@ const relocateSlotContent = (elm) => {
|
|
|
865
871
|
});
|
|
866
872
|
}
|
|
867
873
|
}
|
|
868
|
-
else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) {
|
|
874
|
+
else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
869
875
|
// so far this element does not have a slot home, not setting slotRefNode on purpose
|
|
870
876
|
// if we never find a home for this element then we'll need to hide it
|
|
871
877
|
relocateNodes.push({
|
|
@@ -945,7 +951,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
945
951
|
if (!nodeToRelocate['s-ol']) {
|
|
946
952
|
// add a reference node marking this node's original location
|
|
947
953
|
// keep a reference to this node for later lookups
|
|
948
|
-
orgLocationNode =
|
|
954
|
+
orgLocationNode =
|
|
955
|
+
doc.createTextNode('');
|
|
949
956
|
orgLocationNode['s-nr'] = nodeToRelocate;
|
|
950
957
|
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
|
951
958
|
}
|
|
@@ -969,7 +976,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
969
976
|
}
|
|
970
977
|
}
|
|
971
978
|
}
|
|
972
|
-
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
979
|
+
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
980
|
+
nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
973
981
|
// we've checked that it's worth while to relocate
|
|
974
982
|
// since that the node to relocate
|
|
975
983
|
// has a different next sibling or parent relocated
|
|
@@ -1015,6 +1023,13 @@ const createEvent = (ref, name, flags) => {
|
|
|
1015
1023
|
},
|
|
1016
1024
|
};
|
|
1017
1025
|
};
|
|
1026
|
+
/**
|
|
1027
|
+
* Helper function to create & dispatch a custom Event on a provided target
|
|
1028
|
+
* @param elm the target of the Event
|
|
1029
|
+
* @param name the name to give the custom Event
|
|
1030
|
+
* @param opts options for configuring a custom Event
|
|
1031
|
+
* @returns the custom Event
|
|
1032
|
+
*/
|
|
1018
1033
|
const emitEvent = (elm, name, opts) => {
|
|
1019
1034
|
const ev = plt.ce(name, opts);
|
|
1020
1035
|
elm.dispatchEvent(ev);
|
|
@@ -1022,7 +1037,7 @@ const emitEvent = (elm, name, opts) => {
|
|
|
1022
1037
|
};
|
|
1023
1038
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1024
1039
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
1025
|
-
ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r)));
|
|
1040
|
+
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
|
1026
1041
|
}
|
|
1027
1042
|
};
|
|
1028
1043
|
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -1084,7 +1099,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1084
1099
|
// ok, so turns out there are some child host elements
|
|
1085
1100
|
// waiting on this parent element to load
|
|
1086
1101
|
// let's fire off all update callbacks waiting
|
|
1087
|
-
rc.map(cb => cb());
|
|
1102
|
+
rc.map((cb) => cb());
|
|
1088
1103
|
elm['s-rc'] = undefined;
|
|
1089
1104
|
}
|
|
1090
1105
|
endRender();
|
|
@@ -1154,9 +1169,6 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1154
1169
|
}
|
|
1155
1170
|
}
|
|
1156
1171
|
else {
|
|
1157
|
-
{
|
|
1158
|
-
safeCall(instance, 'componentDidUpdate');
|
|
1159
|
-
}
|
|
1160
1172
|
endPostUpdate();
|
|
1161
1173
|
}
|
|
1162
1174
|
{
|
|
@@ -1200,7 +1212,31 @@ const safeCall = (instance, method, arg) => {
|
|
|
1200
1212
|
const then = (promise, thenFn) => {
|
|
1201
1213
|
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
1202
1214
|
};
|
|
1203
|
-
const addHydratedFlag = (elm) =>
|
|
1215
|
+
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1216
|
+
;
|
|
1217
|
+
/**
|
|
1218
|
+
* Parse a new property value for a given property type.
|
|
1219
|
+
*
|
|
1220
|
+
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
|
1221
|
+
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
|
1222
|
+
* 1. `any`, the type given to `propValue` in the function signature
|
|
1223
|
+
* 2. the type stored from `propType`.
|
|
1224
|
+
*
|
|
1225
|
+
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
|
1226
|
+
*
|
|
1227
|
+
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
|
1228
|
+
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
|
1229
|
+
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
|
1230
|
+
* ```tsx
|
|
1231
|
+
* <my-cmp prop-val={0}></my-cmp>
|
|
1232
|
+
* ```
|
|
1233
|
+
*
|
|
1234
|
+
* HTML prop values on the other hand, will always a string
|
|
1235
|
+
*
|
|
1236
|
+
* @param propValue the new value to coerce to some type
|
|
1237
|
+
* @param propType the type of the prop, expressed as a binary number
|
|
1238
|
+
* @returns the parsed/coerced value
|
|
1239
|
+
*/
|
|
1204
1240
|
const parsePropertyValue = (propValue, propType) => {
|
|
1205
1241
|
// ensure this value is of the correct prop type
|
|
1206
1242
|
if (propValue != null && !isComplexType(propValue)) {
|
|
@@ -1234,7 +1270,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1234
1270
|
const flags = hostRef.$flags$;
|
|
1235
1271
|
const instance = hostRef.$lazyInstance$ ;
|
|
1236
1272
|
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1237
|
-
|
|
1273
|
+
// explicitly check for NaN on both sides, as `NaN === NaN` is always false
|
|
1274
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1275
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1276
|
+
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
1238
1277
|
// gadzooks! the property's value has changed!!
|
|
1239
1278
|
// set our new value!
|
|
1240
1279
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
@@ -1244,7 +1283,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1244
1283
|
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1245
1284
|
if (watchMethods) {
|
|
1246
1285
|
// this instance is watching for when this property changed
|
|
1247
|
-
watchMethods.map(watchMethodName => {
|
|
1286
|
+
watchMethods.map((watchMethodName) => {
|
|
1248
1287
|
try {
|
|
1249
1288
|
// fire off each of the watch methods that are watching this property
|
|
1250
1289
|
instance[watchMethodName](newVal, oldVal, propName);
|
|
@@ -1274,7 +1313,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1274
1313
|
const members = Object.entries(cmpMeta.$members$);
|
|
1275
1314
|
const prototype = Cstr.prototype;
|
|
1276
1315
|
members.map(([memberName, [memberFlags]]) => {
|
|
1277
|
-
if ((memberFlags & 31 /* Prop */ ||
|
|
1316
|
+
if ((memberFlags & 31 /* Prop */ ||
|
|
1317
|
+
((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
1278
1318
|
// proxyComponent - prop
|
|
1279
1319
|
Object.defineProperty(prototype, memberName, {
|
|
1280
1320
|
get() {
|
|
@@ -1289,7 +1329,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1289
1329
|
enumerable: true,
|
|
1290
1330
|
});
|
|
1291
1331
|
}
|
|
1292
|
-
else if (flags & 1 /* isElementConstructor */ &&
|
|
1332
|
+
else if (flags & 1 /* isElementConstructor */ &&
|
|
1333
|
+
memberFlags & 64 /* Method */) {
|
|
1293
1334
|
// proxyComponent - method
|
|
1294
1335
|
Object.defineProperty(prototype, memberName, {
|
|
1295
1336
|
value(...args) {
|
|
@@ -1304,6 +1345,51 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1304
1345
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1305
1346
|
plt.jmp(() => {
|
|
1306
1347
|
const propName = attrNameToPropName.get(attrName);
|
|
1348
|
+
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
1349
|
+
// in the case where an attribute was set inline.
|
|
1350
|
+
// ```html
|
|
1351
|
+
// <my-component some-attribute="some-value"></my-component>
|
|
1352
|
+
// ```
|
|
1353
|
+
//
|
|
1354
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1355
|
+
// programmatically changes it before it has been upgraded as shown below:
|
|
1356
|
+
//
|
|
1357
|
+
// ```html
|
|
1358
|
+
// <!-- this component has _not_ been upgraded yet -->
|
|
1359
|
+
// <my-component id="test" some-attribute="some-value"></my-component>
|
|
1360
|
+
// <script>
|
|
1361
|
+
// // grab non-upgraded component
|
|
1362
|
+
// el = document.querySelector("#test");
|
|
1363
|
+
// el.someAttribute = "another-value";
|
|
1364
|
+
// // upgrade component
|
|
1365
|
+
// customElements.define('my-component', MyComponent);
|
|
1366
|
+
// </script>
|
|
1367
|
+
// ```
|
|
1368
|
+
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1369
|
+
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1370
|
+
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1371
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
|
|
1372
|
+
//
|
|
1373
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1374
|
+
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1375
|
+
//
|
|
1376
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1377
|
+
//
|
|
1378
|
+
// TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
|
|
1379
|
+
// properties here given that this goes against best practices outlined here
|
|
1380
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
|
|
1381
|
+
if (this.hasOwnProperty(propName)) {
|
|
1382
|
+
newValue = this[propName];
|
|
1383
|
+
delete this[propName];
|
|
1384
|
+
}
|
|
1385
|
+
else if (prototype.hasOwnProperty(propName) &&
|
|
1386
|
+
typeof this[propName] === 'number' &&
|
|
1387
|
+
this[propName] == newValue) {
|
|
1388
|
+
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
|
1389
|
+
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
|
1390
|
+
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1391
|
+
return;
|
|
1392
|
+
}
|
|
1307
1393
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1308
1394
|
});
|
|
1309
1395
|
};
|
|
@@ -1340,7 +1426,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1340
1426
|
endLoad();
|
|
1341
1427
|
}
|
|
1342
1428
|
if (!Cstr.isProxied) {
|
|
1343
|
-
// we'
|
|
1429
|
+
// we've never proxied this Constructor before
|
|
1344
1430
|
// let's add the getters/setters to its prototype before
|
|
1345
1431
|
// the first time we create an instance of the implementation
|
|
1346
1432
|
{
|
|
@@ -1389,7 +1475,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1389
1475
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1390
1476
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1391
1477
|
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1392
|
-
// this is the
|
|
1478
|
+
// this is the initial load and this component it has an ancestor component
|
|
1393
1479
|
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1394
1480
|
// so let's just cool our jets and wait for the ancestor to continue first
|
|
1395
1481
|
// this will get fired off when the ancestor component
|
|
@@ -1474,7 +1560,7 @@ const disconnectedCallback = (elm) => {
|
|
|
1474
1560
|
const instance = hostRef.$lazyInstance$ ;
|
|
1475
1561
|
{
|
|
1476
1562
|
if (hostRef.$rmListeners$) {
|
|
1477
|
-
hostRef.$rmListeners$.map(rmListener => rmListener());
|
|
1563
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1478
1564
|
hostRef.$rmListeners$ = undefined;
|
|
1479
1565
|
}
|
|
1480
1566
|
}
|
|
@@ -1496,71 +1582,73 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1496
1582
|
let isBootstrapping = true;
|
|
1497
1583
|
Object.assign(plt, options);
|
|
1498
1584
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1499
|
-
lazyBundles.map(lazyBundle =>
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1585
|
+
lazyBundles.map((lazyBundle) => {
|
|
1586
|
+
lazyBundle[1].map((compactMeta) => {
|
|
1587
|
+
const cmpMeta = {
|
|
1588
|
+
$flags$: compactMeta[0],
|
|
1589
|
+
$tagName$: compactMeta[1],
|
|
1590
|
+
$members$: compactMeta[2],
|
|
1591
|
+
$listeners$: compactMeta[3],
|
|
1592
|
+
};
|
|
1593
|
+
{
|
|
1594
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1595
|
+
}
|
|
1596
|
+
{
|
|
1597
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
1598
|
+
}
|
|
1599
|
+
{
|
|
1600
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1601
|
+
}
|
|
1602
|
+
{
|
|
1603
|
+
cmpMeta.$watchers$ = {};
|
|
1604
|
+
}
|
|
1605
|
+
const tagName = cmpMeta.$tagName$;
|
|
1606
|
+
const HostElement = class extends HTMLElement {
|
|
1607
|
+
// StencilLazyHost
|
|
1608
|
+
constructor(self) {
|
|
1609
|
+
// @ts-ignore
|
|
1610
|
+
super(self);
|
|
1611
|
+
self = this;
|
|
1612
|
+
registerHost(self, cmpMeta);
|
|
1613
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1614
|
+
// this component is using shadow dom
|
|
1615
|
+
// and this browser supports shadow dom
|
|
1616
|
+
// add the read-only property "shadowRoot" to the host element
|
|
1617
|
+
// adding the shadow root build conditionals to minimize runtime
|
|
1532
1618
|
{
|
|
1533
|
-
|
|
1619
|
+
{
|
|
1620
|
+
self.attachShadow({ mode: 'open' });
|
|
1621
|
+
}
|
|
1534
1622
|
}
|
|
1535
1623
|
}
|
|
1536
1624
|
}
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1625
|
+
connectedCallback() {
|
|
1626
|
+
if (appLoadFallback) {
|
|
1627
|
+
clearTimeout(appLoadFallback);
|
|
1628
|
+
appLoadFallback = null;
|
|
1629
|
+
}
|
|
1630
|
+
if (isBootstrapping) {
|
|
1631
|
+
// connectedCallback will be processed once all components have been registered
|
|
1632
|
+
deferredConnectedCallbacks.push(this);
|
|
1633
|
+
}
|
|
1634
|
+
else {
|
|
1635
|
+
plt.jmp(() => connectedCallback(this));
|
|
1636
|
+
}
|
|
1542
1637
|
}
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
deferredConnectedCallbacks.push(this);
|
|
1638
|
+
disconnectedCallback() {
|
|
1639
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
1546
1640
|
}
|
|
1547
|
-
|
|
1548
|
-
|
|
1641
|
+
componentOnReady() {
|
|
1642
|
+
return getHostRef(this).$onReadyPromise$;
|
|
1549
1643
|
}
|
|
1644
|
+
};
|
|
1645
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1646
|
+
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1647
|
+
cmpTags.push(tagName);
|
|
1648
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1550
1649
|
}
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
}
|
|
1554
|
-
componentOnReady() {
|
|
1555
|
-
return getHostRef(this).$onReadyPromise$;
|
|
1556
|
-
}
|
|
1557
|
-
};
|
|
1558
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1559
|
-
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1560
|
-
cmpTags.push(tagName);
|
|
1561
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1562
|
-
}
|
|
1563
|
-
}));
|
|
1650
|
+
});
|
|
1651
|
+
});
|
|
1564
1652
|
{
|
|
1565
1653
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1566
1654
|
visibilityStyle.setAttribute('data-styles', '');
|
|
@@ -1569,7 +1657,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1569
1657
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1570
1658
|
isBootstrapping = false;
|
|
1571
1659
|
if (deferredConnectedCallbacks.length) {
|
|
1572
|
-
deferredConnectedCallbacks.map(host => host.connectedCallback());
|
|
1660
|
+
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
1573
1661
|
}
|
|
1574
1662
|
else {
|
|
1575
1663
|
{
|
|
@@ -1590,10 +1678,10 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1590
1678
|
$instanceValues$: new Map(),
|
|
1591
1679
|
};
|
|
1592
1680
|
{
|
|
1593
|
-
hostRef.$onInstancePromise$ = new Promise(r => (hostRef.$onInstanceResolve$ = r));
|
|
1681
|
+
hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
|
|
1594
1682
|
}
|
|
1595
1683
|
{
|
|
1596
|
-
hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
|
|
1684
|
+
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1597
1685
|
elm['s-p'] = [];
|
|
1598
1686
|
elm['s-rc'] = [];
|
|
1599
1687
|
}
|
|
@@ -1615,7 +1703,7 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1615
1703
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1616
1704
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1617
1705
|
/* webpackMode: "lazy" */
|
|
1618
|
-
`./${bundleId}.entry.js${''}`).then(importedModule => {
|
|
1706
|
+
`./${bundleId}.entry.js${''}`).then((importedModule) => {
|
|
1619
1707
|
{
|
|
1620
1708
|
cmpModules.set(bundleId, importedModule);
|
|
1621
1709
|
}
|