@zanichelli/delta_share 3.2.4 → 3.2.5-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wc/cjs/delta_share.cjs.js +2 -2
- package/dist/wc/cjs/{index-32a6c022.js → index-23e5e843.js} +1 -1
- package/dist/wc/cjs/{index-6d707e7c.js → index-2693f4d5.js} +1 -1
- package/dist/wc/cjs/{index-5da586ad.js → index-30694024.js} +1 -1
- package/dist/wc/cjs/{index-2cac2542.js → index-3171b6c3.js} +1 -1
- package/dist/wc/cjs/{index-1a5d1f46.js → index-3218642b.js} +3 -3
- package/dist/wc/cjs/{index-e5699190.js → index-422e5a81.js} +1 -1
- package/dist/wc/cjs/{index-42c0b32c.js → index-452ee215.js} +1 -1
- package/dist/wc/cjs/{index-0c6fe5a8.js → index-668dd84e.js} +1 -1
- package/dist/wc/cjs/{index-77820e6c.js → index-675ba3c5.js} +1 -1
- package/dist/wc/cjs/{index-a8dfd3f3.js → index-68c03627.js} +1 -1
- package/dist/wc/cjs/{index-903cb132.js → index-72da8f73.js} +1 -1
- package/dist/wc/cjs/{index-ef01acde.js → index-8a564949.js} +1 -1
- package/dist/wc/cjs/{index-2bd3ba9a.js → index-929abcb2.js} +1 -1
- package/dist/wc/cjs/{index-fd6e6c28.js → index-c98ff1cc.js} +791 -175
- package/dist/wc/cjs/{index-d6d2e8ac.js → index-dbb9c380.js} +1 -1
- package/dist/wc/cjs/{index-9ad9039f.js → index-e47a42d9.js} +1 -1
- package/dist/wc/cjs/{index-7b42e7ce.js → index-e790a3c5.js} +1 -1
- package/dist/wc/cjs/license-activation_10.cjs.entry.js +1 -1
- package/dist/wc/cjs/loader.cjs.js +2 -2
- package/dist/wc/cjs/z-accordion.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-anchor-navigation.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-app-header.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-avatar.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-book-card.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-breadcrumb.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-card.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-carousel.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-chip.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-combobox.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-contextual-menu.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-cover-hero.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-date-picker.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-divider.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-dragdrop-area.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-file-upload.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-file.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-ghost-loading.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-info-reveal.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-link.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-list_3.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-logo.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-menu-section.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-menu.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-messages-pocket.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-card-info.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-card_4.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-list-item.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-myz-list.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-navigation-tab-link.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-navigation-tab.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-navigation-tabs.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-notification.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-offcanvas_2.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-otp.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-pagination.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-panel-elem.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-pocket-message.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-pocket_3.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-popover.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-range-picker.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-section-title.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-select.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-skip-to-content.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-slideshow.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-stepper.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-table-body.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-table-cell.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-table-deprecated.cjs.entry.js +11 -11
- package/dist/wc/cjs/z-table-empty-box.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-table-expanded-row.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-table-footer.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-table-head.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-table-header-row.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-table-header.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-table-row.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-table-sticky-footer.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-table.cjs.entry.js +7 -7
- package/dist/wc/cjs/z-tag.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-tbody.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-td.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-tfoot.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-th.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-thead.cjs.entry.js +2 -2
- package/dist/wc/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-toast-notification.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-toggle-button.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-toggle-switch.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/wc/cjs/z-tr.cjs.entry.js +4 -4
- package/dist/wc/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/wc/collection/collection-manifest.json +2 -2
- package/dist/wc/collection/components/license-activation/license-activation.js +358 -348
- package/dist/wc/collection/components/license-activation-box/license-activation-box.js +49 -44
- package/dist/wc/collection/components/license-activation-form/license-activation-form.js +238 -247
- package/dist/wc/collection/components/license-activation-modal/license-activation-modal.js +64 -60
- package/dist/wc/custom-elements/index.js +168 -168
- package/dist/wc/delta_share/delta_share.esm.js +1 -1
- package/dist/wc/delta_share/{p-7cb2f788.entry.js → p-007a1bc5.entry.js} +1 -1
- package/dist/wc/delta_share/{p-2ed166b8.entry.js → p-0188e962.entry.js} +1 -1
- package/dist/wc/delta_share/{p-f903c87f.entry.js → p-01dd7a45.entry.js} +1 -1
- package/dist/wc/delta_share/{p-6f95cb22.entry.js → p-029a7353.entry.js} +1 -1
- package/dist/wc/delta_share/{p-fe486d84.entry.js → p-032199e9.entry.js} +1 -1
- package/dist/wc/delta_share/{p-a3dc62bb.js → p-043cdbf1.js} +1 -1
- package/dist/wc/delta_share/{p-1e9b4693.entry.js → p-047a8524.entry.js} +1 -1
- package/dist/wc/delta_share/p-0fe4e8b2.entry.js +1 -0
- package/dist/wc/delta_share/p-162d0233.entry.js +1 -0
- package/dist/wc/delta_share/p-1b701b0e.entry.js +1 -0
- package/dist/wc/delta_share/{p-47ec520c.js → p-1bb7af24.js} +1 -1
- package/dist/wc/delta_share/{p-05c9d96f.entry.js → p-1d427e0a.entry.js} +1 -1
- package/dist/wc/delta_share/{p-6cb698e0.entry.js → p-1e3d2b14.entry.js} +1 -1
- package/dist/wc/delta_share/{p-d4fbf66b.entry.js → p-1f4909c7.entry.js} +1 -1
- package/dist/wc/delta_share/{p-16e61c27.entry.js → p-20ff5410.entry.js} +1 -1
- package/dist/wc/delta_share/{p-69d9835f.js → p-2427835b.js} +1 -1
- package/dist/wc/delta_share/{p-e182b6dc.entry.js → p-26d1744f.entry.js} +1 -1
- package/dist/wc/delta_share/{p-551bf917.js → p-271ab47a.js} +1 -1
- package/dist/wc/delta_share/{p-2b4c3aab.js → p-2b5da773.js} +1 -1
- package/dist/wc/delta_share/{p-f894f849.entry.js → p-2da22eda.entry.js} +1 -1
- package/dist/wc/delta_share/{p-18ac49f8.entry.js → p-32498aa3.entry.js} +1 -1
- package/dist/wc/delta_share/{p-8a0d51f7.entry.js → p-354d0aa4.entry.js} +1 -1
- package/dist/wc/delta_share/{p-595c8d39.entry.js → p-3747affc.entry.js} +1 -1
- package/dist/wc/delta_share/{p-6bd46452.entry.js → p-38341cfb.entry.js} +1 -1
- package/dist/wc/delta_share/{p-9faa9434.entry.js → p-3b046489.entry.js} +1 -1
- package/dist/wc/delta_share/p-3e0d58c3.entry.js +1 -0
- package/dist/wc/delta_share/{p-3fac6e84.entry.js → p-40b1f526.entry.js} +1 -1
- package/dist/wc/delta_share/{p-44d6f07c.entry.js → p-40db0c2f.entry.js} +1 -1
- package/dist/wc/delta_share/{p-18fcc8c7.js → p-41580384.js} +1 -1
- package/dist/wc/delta_share/{p-0e74cc07.entry.js → p-45e62587.entry.js} +1 -1
- package/dist/wc/delta_share/{p-ff24a080.js → p-46575ead.js} +1 -1
- package/dist/wc/delta_share/p-4666e9fb.entry.js +1 -0
- package/dist/wc/delta_share/p-47c1de64.entry.js +1 -0
- package/dist/wc/delta_share/p-4b9be5d5.entry.js +1 -0
- package/dist/wc/delta_share/{p-47f3e677.js → p-4bf8f33b.js} +1 -1
- package/dist/wc/delta_share/p-50d72747.entry.js +1 -0
- package/dist/wc/delta_share/{p-dd409bfb.js → p-553d3d4e.js} +1 -1
- package/dist/wc/delta_share/{p-7142f1dc.entry.js → p-5ab3a4b0.entry.js} +1 -1
- package/dist/wc/delta_share/{p-5f97902c.entry.js → p-5bb251dd.entry.js} +1 -1
- package/dist/wc/delta_share/{p-536412c7.entry.js → p-5cecb6db.entry.js} +1 -1
- package/dist/wc/delta_share/{p-7b668937.entry.js → p-62970c74.entry.js} +1 -1
- package/dist/wc/delta_share/{p-065a8ef6.entry.js → p-6347f0d8.entry.js} +1 -1
- package/dist/wc/delta_share/p-66454c1b.entry.js +1 -0
- package/dist/wc/delta_share/p-6676c375.entry.js +1 -0
- package/dist/wc/delta_share/{p-58991db7.js → p-697c4ac9.js} +1 -1
- package/dist/wc/delta_share/{p-6be926f4.js → p-72442d2b.js} +1 -1
- package/dist/wc/delta_share/p-72c4a523.entry.js +1 -0
- package/dist/wc/delta_share/{p-8f286d70.entry.js → p-7856ba3d.entry.js} +1 -1
- package/dist/wc/delta_share/{p-293a7ee2.entry.js → p-7eb297a7.entry.js} +1 -1
- package/dist/wc/delta_share/{p-042bd3f6.js → p-8589abd7.js} +1 -1
- package/dist/wc/delta_share/{p-2439bd5d.entry.js → p-86f2958b.entry.js} +1 -1
- package/dist/wc/delta_share/p-8745c480.entry.js +1 -0
- package/dist/wc/delta_share/{p-08af13db.entry.js → p-8f123d77.entry.js} +1 -1
- package/dist/wc/delta_share/{p-d231964b.entry.js → p-90289241.entry.js} +1 -1
- package/dist/wc/delta_share/{p-f8091230.entry.js → p-95056ca8.entry.js} +1 -1
- package/dist/wc/delta_share/{p-059e9ee0.entry.js → p-95945f29.entry.js} +1 -1
- package/dist/wc/delta_share/p-97577c0b.entry.js +1 -0
- package/dist/wc/delta_share/{p-4c9ec16c.entry.js → p-97d82f7e.entry.js} +1 -1
- package/dist/wc/delta_share/{p-e7f23a1e.entry.js → p-9ebfdadf.entry.js} +1 -1
- package/dist/wc/delta_share/{p-c0ccd95c.entry.js → p-a430cb52.entry.js} +1 -1
- package/dist/wc/delta_share/{p-4018719d.entry.js → p-a6a819d5.entry.js} +1 -1
- package/dist/wc/delta_share/{p-319c1a3e.entry.js → p-ac9574a6.entry.js} +1 -1
- package/dist/wc/delta_share/{p-a14153cc.entry.js → p-aefef80d.entry.js} +1 -1
- package/dist/wc/delta_share/{p-d5065bf6.entry.js → p-b052dab7.entry.js} +1 -1
- package/dist/wc/delta_share/{p-db7371fa.entry.js → p-b2f3596c.entry.js} +1 -1
- package/dist/wc/delta_share/{p-82630451.entry.js → p-b4d3ca7d.entry.js} +1 -1
- package/dist/wc/delta_share/{p-105ddd7d.entry.js → p-b7a409df.entry.js} +1 -1
- package/dist/wc/delta_share/{p-2a4fe864.entry.js → p-b7b93904.entry.js} +1 -1
- package/dist/wc/delta_share/{p-4a51a3c6.entry.js → p-b9b6c478.entry.js} +1 -1
- package/dist/wc/delta_share/{p-8650dcb7.entry.js → p-bb8ec114.entry.js} +1 -1
- package/dist/wc/delta_share/{p-0365fad8.entry.js → p-c3bcf36d.entry.js} +1 -1
- package/dist/wc/delta_share/{p-c64950a2.entry.js → p-c4faf4eb.entry.js} +1 -1
- package/dist/wc/delta_share/{p-5989869c.js → p-c61d7a11.js} +1 -1
- package/dist/wc/delta_share/{p-ce115f77.entry.js → p-c64b3da1.entry.js} +1 -1
- package/dist/wc/delta_share/{p-6e8df0ae.entry.js → p-c72a8f42.entry.js} +1 -1
- package/dist/wc/delta_share/{p-84e4e924.entry.js → p-ca2494fb.entry.js} +1 -1
- package/dist/wc/delta_share/p-cc222b2f.entry.js +1 -0
- package/dist/wc/delta_share/{p-ff98ef8e.entry.js → p-ce15fdd1.entry.js} +1 -1
- package/dist/wc/delta_share/{p-67f03907.entry.js → p-cf6854c4.entry.js} +1 -1
- package/dist/wc/delta_share/{p-3984a6c2.entry.js → p-d79b35a8.entry.js} +1 -1
- package/dist/wc/delta_share/{p-172a32d0.entry.js → p-d86cd1ff.entry.js} +1 -1
- package/dist/wc/delta_share/{p-8f6424ca.entry.js → p-da254424.entry.js} +1 -1
- package/dist/wc/delta_share/{p-6658206d.entry.js → p-db4d5b29.entry.js} +1 -1
- package/dist/wc/delta_share/p-dbf33c0f.entry.js +1 -0
- package/dist/wc/delta_share/{p-8f38cd92.entry.js → p-e4fdcfc5.entry.js} +1 -1
- package/dist/wc/delta_share/{p-a051e83a.entry.js → p-e573c206.entry.js} +1 -1
- package/dist/wc/delta_share/{p-2ca8ccb2.entry.js → p-e708b262.entry.js} +1 -1
- package/dist/wc/delta_share/{p-1c37c8f2.js → p-e8cda39a.js} +1 -1
- package/dist/wc/delta_share/{p-7b00c3b1.entry.js → p-e94ef0ed.entry.js} +1 -1
- package/dist/wc/delta_share/p-eb889b01.js +2 -0
- package/dist/wc/delta_share/{p-09de99b2.entry.js → p-edaf6126.entry.js} +1 -1
- package/dist/wc/delta_share/{p-d1062520.js → p-efa66157.js} +1 -1
- package/dist/wc/delta_share/{p-84a8b959.entry.js → p-f1bf817c.entry.js} +1 -1
- package/dist/wc/delta_share/{p-37c5c92e.js → p-f25116a7.js} +1 -1
- package/dist/wc/delta_share/p-f3023043.entry.js +1 -0
- package/dist/wc/delta_share/{p-c1b16c6e.entry.js → p-f42019e4.entry.js} +1 -1
- package/dist/wc/delta_share/{p-57a1a7a3.entry.js → p-f5bb55e0.entry.js} +1 -1
- package/dist/wc/delta_share/p-f635c868.entry.js +1 -0
- package/dist/wc/delta_share/{p-eddfcccc.entry.js → p-fbc9f1bc.entry.js} +1 -1
- package/dist/wc/esm/delta_share.js +2 -2
- package/dist/wc/esm/{index-b6d67648.js → index-03cc51b1.js} +1 -1
- package/dist/wc/esm/{index-c8e57c08.js → index-1082a536.js} +1 -1
- package/dist/wc/esm/{index-6642fa3a.js → index-113e6780.js} +1 -1
- package/dist/wc/esm/{index-396432db.js → index-1b01fa0e.js} +791 -175
- package/dist/wc/esm/{index-81516a9a.js → index-2be1634d.js} +1 -1
- package/dist/wc/esm/{index-cbe7ef0a.js → index-4854c8af.js} +1 -1
- package/dist/wc/esm/{index-e14dd015.js → index-485971a0.js} +1 -1
- package/dist/wc/esm/{index-0cf1e7ae.js → index-64993358.js} +1 -1
- package/dist/wc/esm/{index-be084691.js → index-b3f3a99c.js} +1 -1
- package/dist/wc/esm/{index-48b6c0e6.js → index-ba38e8d5.js} +1 -1
- package/dist/wc/esm/{index-ea60f2c2.js → index-ce7e02a3.js} +1 -1
- package/dist/wc/esm/{index-2ae14d02.js → index-cfd5ec9b.js} +3 -3
- package/dist/wc/esm/{index-2a8923e8.js → index-de36993f.js} +1 -1
- package/dist/wc/esm/{index-df217b14.js → index-df808f62.js} +1 -1
- package/dist/wc/esm/{index-5445c84d.js → index-f7dfdf1f.js} +1 -1
- package/dist/wc/esm/{index-c74188e2.js → index-faec138b.js} +1 -1
- package/dist/wc/esm/{index-c3e3c74b.js → index-ff4885bf.js} +1 -1
- package/dist/wc/esm/license-activation_10.entry.js +1 -1
- package/dist/wc/esm/loader.js +2 -2
- package/dist/wc/esm/polyfills/css-shim.js +1 -1
- package/dist/wc/esm/z-accordion.entry.js +1 -1
- package/dist/wc/esm/z-alert.entry.js +1 -1
- package/dist/wc/esm/z-anchor-navigation.entry.js +1 -1
- package/dist/wc/esm/z-app-header.entry.js +1 -1
- package/dist/wc/esm/z-aria-alert.entry.js +1 -1
- package/dist/wc/esm/z-avatar.entry.js +1 -1
- package/dist/wc/esm/z-book-card.entry.js +1 -1
- package/dist/wc/esm/z-breadcrumb.entry.js +1 -1
- package/dist/wc/esm/z-button-sort.entry.js +1 -1
- package/dist/wc/esm/z-card.entry.js +1 -1
- package/dist/wc/esm/z-carousel.entry.js +1 -1
- package/dist/wc/esm/z-chip.entry.js +1 -1
- package/dist/wc/esm/z-combobox.entry.js +1 -1
- package/dist/wc/esm/z-contextual-menu.entry.js +1 -1
- package/dist/wc/esm/z-cover-hero.entry.js +1 -1
- package/dist/wc/esm/z-date-picker.entry.js +1 -1
- package/dist/wc/esm/z-divider.entry.js +1 -1
- package/dist/wc/esm/z-dragdrop-area.entry.js +1 -1
- package/dist/wc/esm/z-file-upload.entry.js +1 -1
- package/dist/wc/esm/z-file.entry.js +1 -1
- package/dist/wc/esm/z-ghost-loading.entry.js +1 -1
- package/dist/wc/esm/z-info-reveal.entry.js +1 -1
- package/dist/wc/esm/z-link.entry.js +1 -1
- package/dist/wc/esm/z-list_3.entry.js +1 -1
- package/dist/wc/esm/z-logo.entry.js +1 -1
- package/dist/wc/esm/z-menu-section.entry.js +1 -1
- package/dist/wc/esm/z-menu.entry.js +1 -1
- package/dist/wc/esm/z-messages-pocket.entry.js +1 -1
- package/dist/wc/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/wc/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/wc/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/wc/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/wc/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/wc/esm/z-myz-card-info.entry.js +1 -1
- package/dist/wc/esm/z-myz-card-list.entry.js +1 -1
- package/dist/wc/esm/z-myz-card_4.entry.js +1 -1
- package/dist/wc/esm/z-myz-list-item.entry.js +1 -1
- package/dist/wc/esm/z-myz-list.entry.js +1 -1
- package/dist/wc/esm/z-navigation-tab-link.entry.js +1 -1
- package/dist/wc/esm/z-navigation-tab.entry.js +1 -1
- package/dist/wc/esm/z-navigation-tabs.entry.js +1 -1
- package/dist/wc/esm/z-notification.entry.js +1 -1
- package/dist/wc/esm/z-offcanvas_2.entry.js +1 -1
- package/dist/wc/esm/z-otp.entry.js +1 -1
- package/dist/wc/esm/z-pagination.entry.js +1 -1
- package/dist/wc/esm/z-panel-elem.entry.js +1 -1
- package/dist/wc/esm/z-pocket-message.entry.js +1 -1
- package/dist/wc/esm/z-pocket_3.entry.js +1 -1
- package/dist/wc/esm/z-popover.entry.js +1 -1
- package/dist/wc/esm/z-range-picker.entry.js +1 -1
- package/dist/wc/esm/z-section-title.entry.js +1 -1
- package/dist/wc/esm/z-select.entry.js +1 -1
- package/dist/wc/esm/z-skip-to-content.entry.js +1 -1
- package/dist/wc/esm/z-slideshow.entry.js +1 -1
- package/dist/wc/esm/z-stepper-item.entry.js +1 -1
- package/dist/wc/esm/z-stepper.entry.js +1 -1
- package/dist/wc/esm/z-table-body.entry.js +2 -2
- package/dist/wc/esm/z-table-cell.entry.js +2 -2
- package/dist/wc/esm/z-table-deprecated.entry.js +11 -11
- package/dist/wc/esm/z-table-empty-box.entry.js +2 -2
- package/dist/wc/esm/z-table-expanded-row.entry.js +2 -2
- package/dist/wc/esm/z-table-footer.entry.js +2 -2
- package/dist/wc/esm/z-table-head.entry.js +2 -2
- package/dist/wc/esm/z-table-header-row.entry.js +2 -2
- package/dist/wc/esm/z-table-header.entry.js +2 -2
- package/dist/wc/esm/z-table-row.entry.js +2 -2
- package/dist/wc/esm/z-table-sticky-footer.entry.js +2 -2
- package/dist/wc/esm/z-table.entry.js +7 -7
- package/dist/wc/esm/z-tag.entry.js +1 -1
- package/dist/wc/esm/z-tbody.entry.js +2 -2
- package/dist/wc/esm/z-td.entry.js +2 -2
- package/dist/wc/esm/z-tfoot.entry.js +2 -2
- package/dist/wc/esm/z-th.entry.js +2 -2
- package/dist/wc/esm/z-thead.entry.js +2 -2
- package/dist/wc/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/wc/esm/z-toast-notification.entry.js +1 -1
- package/dist/wc/esm/z-toggle-button.entry.js +1 -1
- package/dist/wc/esm/z-toggle-switch.entry.js +1 -1
- package/dist/wc/esm/z-tooltip.entry.js +1 -1
- package/dist/wc/esm/z-tr.entry.js +4 -4
- package/dist/wc/esm/z-visually-hidden.entry.js +1 -1
- package/dist/wc/loader/index.d.ts +0 -1
- package/dist/wc/loader/package.json +1 -0
- package/dist/wc/types/components.d.ts +17 -5
- package/dist/wc/types/stencil-public-runtime.d.ts +189 -186
- package/package.json +1 -1
- package/dist/wc/delta_share/p-1553bc63.entry.js +0 -1
- package/dist/wc/delta_share/p-3b3f83a6.entry.js +0 -1
- package/dist/wc/delta_share/p-4b2719fc.entry.js +0 -1
- package/dist/wc/delta_share/p-4ff6d958.entry.js +0 -1
- package/dist/wc/delta_share/p-96f53236.entry.js +0 -1
- package/dist/wc/delta_share/p-9ef9046f.entry.js +0 -1
- package/dist/wc/delta_share/p-aa8f533e.entry.js +0 -1
- package/dist/wc/delta_share/p-ab6dbdae.entry.js +0 -1
- package/dist/wc/delta_share/p-aeec6792.entry.js +0 -1
- package/dist/wc/delta_share/p-af60173c.entry.js +0 -1
- package/dist/wc/delta_share/p-bb15cf8b.entry.js +0 -1
- package/dist/wc/delta_share/p-c5f5fb78.entry.js +0 -1
- package/dist/wc/delta_share/p-d52d3e5c.js +0 -1
- package/dist/wc/delta_share/p-d6eef1ed.entry.js +0 -1
- package/dist/wc/delta_share/p-d888ec2a.entry.js +0 -1
- package/dist/wc/delta_share/p-ebd0e41d.entry.js +0 -1
- package/dist/wc/delta_share/p-f77ae63f.entry.js +0 -1
- package/dist/wc/delta_share/p-fe53cbde.entry.js +0 -1
|
@@ -36,17 +36,17 @@ const doc = win.document || { head: {} };
|
|
|
36
36
|
const plt = {
|
|
37
37
|
$flags$: 0,
|
|
38
38
|
$resourcesUrl$: '',
|
|
39
|
-
jmp: h => h(),
|
|
40
|
-
raf: h => requestAnimationFrame(h),
|
|
39
|
+
jmp: (h) => h(),
|
|
40
|
+
raf: (h) => requestAnimationFrame(h),
|
|
41
41
|
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
42
42
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
43
43
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
44
44
|
};
|
|
45
45
|
const promiseResolve = (v) => Promise.resolve(v);
|
|
46
|
-
const
|
|
46
|
+
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
47
47
|
try {
|
|
48
48
|
new CSSStyleSheet();
|
|
49
|
-
return typeof
|
|
49
|
+
return typeof new CSSStyleSheet().replaceSync === 'function';
|
|
50
50
|
}
|
|
51
51
|
catch (e) { }
|
|
52
52
|
return false;
|
|
@@ -66,7 +66,7 @@ const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) =
|
|
|
66
66
|
const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
67
67
|
try {
|
|
68
68
|
{
|
|
69
|
-
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
69
|
+
if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
|
|
70
70
|
// instance is ready, let's call it's member method for this event
|
|
71
71
|
hostRef.$lazyInstance$[methodName](ev);
|
|
72
72
|
}
|
|
@@ -80,16 +80,16 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
const getHostListenerTarget = (elm, flags) => {
|
|
83
|
-
if (flags & 4 /* TargetDocument */)
|
|
83
|
+
if (flags & 4 /* LISTENER_FLAGS.TargetDocument */)
|
|
84
84
|
return doc;
|
|
85
|
-
if (flags & 8 /* TargetWindow */)
|
|
85
|
+
if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
|
|
86
86
|
return win;
|
|
87
|
-
if (flags & 16 /* TargetBody */)
|
|
87
|
+
if (flags & 16 /* LISTENER_FLAGS.TargetBody */)
|
|
88
88
|
return doc.body;
|
|
89
89
|
return elm;
|
|
90
90
|
};
|
|
91
91
|
// prettier-ignore
|
|
92
|
-
const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
92
|
+
const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
|
|
93
93
|
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
94
94
|
const XLINK_NS = 'http://www.w3.org/1999/xlink';
|
|
95
95
|
const createTime = (fnName, tagName = '') => {
|
|
@@ -106,12 +106,17 @@ const uniqueTime = (key, measureText) => {
|
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
|
-
const rootAppliedStyles = new WeakMap();
|
|
109
|
+
const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
|
|
110
110
|
const registerStyle = (scopeId, cssText, allowCS) => {
|
|
111
111
|
let style = styles.get(scopeId);
|
|
112
|
-
if (
|
|
112
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
113
113
|
style = (style || new CSSStyleSheet());
|
|
114
|
-
style
|
|
114
|
+
if (typeof style === 'string') {
|
|
115
|
+
style = cssText;
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
style.replaceSync(cssText);
|
|
119
|
+
}
|
|
115
120
|
}
|
|
116
121
|
else {
|
|
117
122
|
style = cssText;
|
|
@@ -120,10 +125,10 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
120
125
|
};
|
|
121
126
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
122
127
|
let scopeId = getScopeId(cmpMeta);
|
|
123
|
-
|
|
128
|
+
const style = styles.get(scopeId);
|
|
124
129
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
125
130
|
// so the fallback is to always use the document for the root node in those cases
|
|
126
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
131
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
|
|
127
132
|
if (style) {
|
|
128
133
|
if (typeof style === 'string') {
|
|
129
134
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -157,7 +162,7 @@ const attachStyles = (hostRef) => {
|
|
|
157
162
|
const flags = cmpMeta.$flags$;
|
|
158
163
|
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
159
164
|
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
160
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
165
|
+
if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
|
|
161
166
|
// only required when we're NOT using native shadow dom (slot)
|
|
162
167
|
// or this browser doesn't support native shadow dom
|
|
163
168
|
// and this host element was NOT created with SSR
|
|
@@ -167,7 +172,7 @@ const attachStyles = (hostRef) => {
|
|
|
167
172
|
// DOM WRITE!!
|
|
168
173
|
elm['s-sc'] = scopeId;
|
|
169
174
|
elm.classList.add(scopeId + '-h');
|
|
170
|
-
if (flags & 2 /* scopedCssEncapsulation */) {
|
|
175
|
+
if (flags & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {
|
|
171
176
|
elm.classList.add(scopeId + '-s');
|
|
172
177
|
}
|
|
173
178
|
}
|
|
@@ -210,7 +215,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
210
215
|
let slotName = null;
|
|
211
216
|
let simple = false;
|
|
212
217
|
let lastSimple = false;
|
|
213
|
-
|
|
218
|
+
const vNodeChildren = [];
|
|
214
219
|
const walk = (c) => {
|
|
215
220
|
for (let i = 0; i < c.length; i++) {
|
|
216
221
|
child = c[i];
|
|
@@ -249,7 +254,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
249
254
|
typeof classData !== 'object'
|
|
250
255
|
? classData
|
|
251
256
|
: Object.keys(classData)
|
|
252
|
-
.filter(k => classData[k])
|
|
257
|
+
.filter((k) => classData[k])
|
|
253
258
|
.join(' ');
|
|
254
259
|
}
|
|
255
260
|
}
|
|
@@ -304,8 +309,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
304
309
|
const classList = elm.classList;
|
|
305
310
|
const oldClasses = parseClassList(oldValue);
|
|
306
311
|
const newClasses = parseClassList(newValue);
|
|
307
|
-
classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
|
|
308
|
-
classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
|
|
312
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
313
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
309
314
|
}
|
|
310
315
|
else if (memberName === 'style') {
|
|
311
316
|
// update style attribute, css properties and values
|
|
@@ -340,7 +345,9 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
340
345
|
newValue(elm);
|
|
341
346
|
}
|
|
342
347
|
}
|
|
343
|
-
else if ((!isProp ) &&
|
|
348
|
+
else if ((!isProp ) &&
|
|
349
|
+
memberName[0] === 'o' &&
|
|
350
|
+
memberName[1] === 'n') {
|
|
344
351
|
// Event Handlers
|
|
345
352
|
// so if the member name starts with "on" and the 3rd characters is
|
|
346
353
|
// a capital letter, and it's not already a member on the element,
|
|
@@ -383,11 +390,10 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
383
390
|
if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
|
|
384
391
|
try {
|
|
385
392
|
if (!elm.tagName.includes('-')) {
|
|
386
|
-
|
|
393
|
+
const n = newValue == null ? '' : newValue;
|
|
387
394
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
388
395
|
if (memberName === 'list') {
|
|
389
396
|
isProp = false;
|
|
390
|
-
// tslint:disable-next-line: triple-equals
|
|
391
397
|
}
|
|
392
398
|
else if (oldValue == null || elm[memberName] != n) {
|
|
393
399
|
elm[memberName] = n;
|
|
@@ -423,7 +429,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
423
429
|
}
|
|
424
430
|
}
|
|
425
431
|
}
|
|
426
|
-
else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
432
|
+
else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
|
|
427
433
|
newValue = newValue === true ? '' : newValue;
|
|
428
434
|
if (xlink) {
|
|
429
435
|
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
@@ -441,7 +447,9 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
441
447
|
// if the element passed in is a shadow root, which is a document fragment
|
|
442
448
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
443
449
|
// if it's not a shadow root, then we add attrs/props to the same element
|
|
444
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
450
|
+
const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
|
|
451
|
+
? newVnode.$elm$.host
|
|
452
|
+
: newVnode.$elm$;
|
|
445
453
|
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
446
454
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
447
455
|
{
|
|
@@ -457,9 +465,19 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
457
465
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
|
|
458
466
|
}
|
|
459
467
|
};
|
|
468
|
+
/**
|
|
469
|
+
* Create a DOM Node corresponding to one of the children of a given VNode.
|
|
470
|
+
*
|
|
471
|
+
* @param oldParentVNode the parent VNode from the previous render
|
|
472
|
+
* @param newParentVNode the parent VNode from the current render
|
|
473
|
+
* @param childIndex the index of the VNode, in the _new_ parent node's
|
|
474
|
+
* children, for which we will create a new DOM node
|
|
475
|
+
* @param parentElm the parent DOM node which our new node will be a child of
|
|
476
|
+
* @returns the newly created node
|
|
477
|
+
*/
|
|
460
478
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
461
479
|
// tslint:disable-next-line: prefer-const
|
|
462
|
-
|
|
480
|
+
const newVNode = newParentVNode.$children$[childIndex];
|
|
463
481
|
let i = 0;
|
|
464
482
|
let elm;
|
|
465
483
|
let childNode;
|
|
@@ -474,25 +492,28 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
474
492
|
}
|
|
475
493
|
newVNode.$flags$ |= newVNode.$children$
|
|
476
494
|
? // slot element has fallback content
|
|
477
|
-
2 /* isSlotFallback */
|
|
495
|
+
2 /* VNODE_FLAGS.isSlotFallback */
|
|
478
496
|
: // slot element does not have fallback content
|
|
479
|
-
1 /* isSlotReference */;
|
|
497
|
+
1 /* VNODE_FLAGS.isSlotReference */;
|
|
480
498
|
}
|
|
481
499
|
}
|
|
482
500
|
if (newVNode.$text$ !== null) {
|
|
483
501
|
// create text node
|
|
484
502
|
elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
|
|
485
503
|
}
|
|
486
|
-
else if (newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
504
|
+
else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
|
|
487
505
|
// create a slot reference node
|
|
488
|
-
elm = newVNode.$elm$ =
|
|
506
|
+
elm = newVNode.$elm$ =
|
|
507
|
+
doc.createTextNode('');
|
|
489
508
|
}
|
|
490
509
|
else {
|
|
491
510
|
if (!isSvgMode) {
|
|
492
511
|
isSvgMode = newVNode.$tag$ === 'svg';
|
|
493
512
|
}
|
|
494
513
|
// create element
|
|
495
|
-
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
514
|
+
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
|
|
515
|
+
? 'slot-fb'
|
|
516
|
+
: newVNode.$tag$)
|
|
496
517
|
);
|
|
497
518
|
if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
|
498
519
|
isSvgMode = false;
|
|
@@ -530,7 +551,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
530
551
|
}
|
|
531
552
|
{
|
|
532
553
|
elm['s-hn'] = hostTagName;
|
|
533
|
-
if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
554
|
+
if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
|
|
534
555
|
// remember the content reference comment
|
|
535
556
|
elm['s-sr'] = true;
|
|
536
557
|
// remember the content reference comment
|
|
@@ -549,7 +570,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
549
570
|
return elm;
|
|
550
571
|
};
|
|
551
572
|
const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
552
|
-
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
573
|
+
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
553
574
|
const oldSlotChildNodes = parentElm.childNodes;
|
|
554
575
|
for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
|
|
555
576
|
const childNode = oldSlotChildNodes[i];
|
|
@@ -570,7 +591,7 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
570
591
|
putBackInOriginalLocation(childNode, recursive);
|
|
571
592
|
}
|
|
572
593
|
}
|
|
573
|
-
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
594
|
+
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
574
595
|
};
|
|
575
596
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
576
597
|
let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
|
|
@@ -612,6 +633,74 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
612
633
|
}
|
|
613
634
|
}
|
|
614
635
|
};
|
|
636
|
+
/**
|
|
637
|
+
* Reconcile the children of a new VNode with the children of an old VNode by
|
|
638
|
+
* traversing the two collections of children, identifying nodes that are
|
|
639
|
+
* conserved or changed, calling out to `patch` to make any necessary
|
|
640
|
+
* updates to the DOM, and rearranging DOM nodes as needed.
|
|
641
|
+
*
|
|
642
|
+
* The algorithm for reconciling children works by analyzing two 'windows' onto
|
|
643
|
+
* the two arrays of children (`oldCh` and `newCh`). We keep track of the
|
|
644
|
+
* 'windows' by storing start and end indices and references to the
|
|
645
|
+
* corresponding array entries. Initially the two 'windows' are basically equal
|
|
646
|
+
* to the entire array, but we progressively narrow the windows until there are
|
|
647
|
+
* no children left to update by doing the following:
|
|
648
|
+
*
|
|
649
|
+
* 1. Skip any `null` entries at the beginning or end of the two arrays, so
|
|
650
|
+
* that if we have an initial array like the following we'll end up dealing
|
|
651
|
+
* only with a window bounded by the highlighted elements:
|
|
652
|
+
*
|
|
653
|
+
* [null, null, VNode1 , ... , VNode2, null, null]
|
|
654
|
+
* ^^^^^^ ^^^^^^
|
|
655
|
+
*
|
|
656
|
+
* 2. Check to see if the elements at the head and tail positions are equal
|
|
657
|
+
* across the windows. This will basically detect elements which haven't
|
|
658
|
+
* been added, removed, or changed position, i.e. if you had the following
|
|
659
|
+
* VNode elements (represented as HTML):
|
|
660
|
+
*
|
|
661
|
+
* oldVNode: `<div><p><span>HEY</span></p></div>`
|
|
662
|
+
* newVNode: `<div><p><span>THERE</span></p></div>`
|
|
663
|
+
*
|
|
664
|
+
* Then when comparing the children of the `<div>` tag we check the equality
|
|
665
|
+
* of the VNodes corresponding to the `<p>` tags and, since they are the
|
|
666
|
+
* same tag in the same position, we'd be able to avoid completely
|
|
667
|
+
* re-rendering the subtree under them with a new DOM element and would just
|
|
668
|
+
* call out to `patch` to handle reconciling their children and so on.
|
|
669
|
+
*
|
|
670
|
+
* 3. Check, for both windows, to see if the element at the beginning of the
|
|
671
|
+
* window corresponds to the element at the end of the other window. This is
|
|
672
|
+
* a heuristic which will let us identify _some_ situations in which
|
|
673
|
+
* elements have changed position, for instance it _should_ detect that the
|
|
674
|
+
* children nodes themselves have not changed but merely moved in the
|
|
675
|
+
* following example:
|
|
676
|
+
*
|
|
677
|
+
* oldVNode: `<div><element-one /><element-two /></div>`
|
|
678
|
+
* newVNode: `<div><element-two /><element-one /></div>`
|
|
679
|
+
*
|
|
680
|
+
* If we find cases like this then we also need to move the concrete DOM
|
|
681
|
+
* elements corresponding to the moved children to write the re-order to the
|
|
682
|
+
* DOM.
|
|
683
|
+
*
|
|
684
|
+
* 4. Finally, if VNodes have the `key` attribute set on them we check for any
|
|
685
|
+
* nodes in the old children which have the same key as the first element in
|
|
686
|
+
* our window on the new children. If we find such a node we handle calling
|
|
687
|
+
* out to `patch`, moving relevant DOM nodes, and so on, in accordance with
|
|
688
|
+
* what we find.
|
|
689
|
+
*
|
|
690
|
+
* Finally, once we've narrowed our 'windows' to the point that either of them
|
|
691
|
+
* collapse (i.e. they have length 0) we then handle any remaining VNode
|
|
692
|
+
* insertion or deletion that needs to happen to get a DOM state that correctly
|
|
693
|
+
* reflects the new child VNodes. If, for instance, after our window on the old
|
|
694
|
+
* children has collapsed we still have more nodes on the new children that
|
|
695
|
+
* we haven't dealt with yet then we need to add them, or if the new children
|
|
696
|
+
* collapse but we still have unhandled _old_ children then we need to make
|
|
697
|
+
* sure the corresponding DOM nodes are removed.
|
|
698
|
+
*
|
|
699
|
+
* @param parentElm the node into which the parent VNode is rendered
|
|
700
|
+
* @param oldCh the old children of the parent node
|
|
701
|
+
* @param newVNode the new VNode which will replace the parent
|
|
702
|
+
* @param newCh the new children of the parent node
|
|
703
|
+
*/
|
|
615
704
|
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
616
705
|
let oldStartIdx = 0;
|
|
617
706
|
let newStartIdx = 0;
|
|
@@ -627,7 +716,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
627
716
|
let elmToMove;
|
|
628
717
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
629
718
|
if (oldStartVnode == null) {
|
|
630
|
-
//
|
|
719
|
+
// VNode might have been moved left
|
|
631
720
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
632
721
|
}
|
|
633
722
|
else if (oldEndVnode == null) {
|
|
@@ -640,37 +729,100 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
640
729
|
newEndVnode = newCh[--newEndIdx];
|
|
641
730
|
}
|
|
642
731
|
else if (isSameVnode(oldStartVnode, newStartVnode)) {
|
|
732
|
+
// if the start nodes are the same then we should patch the new VNode
|
|
733
|
+
// onto the old one, and increment our `newStartIdx` and `oldStartIdx`
|
|
734
|
+
// indices to reflect that. We don't need to move any DOM Nodes around
|
|
735
|
+
// since things are matched up in order.
|
|
643
736
|
patch(oldStartVnode, newStartVnode);
|
|
644
737
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
645
738
|
newStartVnode = newCh[++newStartIdx];
|
|
646
739
|
}
|
|
647
740
|
else if (isSameVnode(oldEndVnode, newEndVnode)) {
|
|
741
|
+
// likewise, if the end nodes are the same we patch new onto old and
|
|
742
|
+
// decrement our end indices, and also likewise in this case we don't
|
|
743
|
+
// need to move any DOM Nodes.
|
|
648
744
|
patch(oldEndVnode, newEndVnode);
|
|
649
745
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
650
746
|
newEndVnode = newCh[--newEndIdx];
|
|
651
747
|
}
|
|
652
748
|
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
653
|
-
// Vnode moved right
|
|
749
|
+
// case: "Vnode moved right"
|
|
750
|
+
//
|
|
751
|
+
// We've found that the last node in our window on the new children is
|
|
752
|
+
// the same VNode as the _first_ node in our window on the old children
|
|
753
|
+
// we're dealing with now. Visually, this is the layout of these two
|
|
754
|
+
// nodes:
|
|
755
|
+
//
|
|
756
|
+
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
757
|
+
// ^^^^^^^^^^^
|
|
758
|
+
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
759
|
+
// ^^^^^^^^^^^^^
|
|
760
|
+
//
|
|
761
|
+
// In this situation we need to patch `newEndVnode` onto `oldStartVnode`
|
|
762
|
+
// and move the DOM element for `oldStartVnode`.
|
|
654
763
|
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
655
764
|
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
656
765
|
}
|
|
657
766
|
patch(oldStartVnode, newEndVnode);
|
|
767
|
+
// We need to move the element for `oldStartVnode` into a position which
|
|
768
|
+
// will be appropriate for `newEndVnode`. For this we can use
|
|
769
|
+
// `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
|
|
770
|
+
// sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
|
|
771
|
+
// `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
|
|
772
|
+
//
|
|
773
|
+
// <old-start-node />
|
|
774
|
+
// <some-intervening-node />
|
|
775
|
+
// <old-end-node />
|
|
776
|
+
// <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
|
|
777
|
+
// <next-sibling />
|
|
778
|
+
//
|
|
779
|
+
// If instead `oldEndVnode.$elm$` has no sibling then we just want to put
|
|
780
|
+
// the node for `oldStartVnode` at the end of the children of
|
|
781
|
+
// `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
|
|
782
|
+
// aren't any siblings, and passing `null` to `Node.insertBefore` will
|
|
783
|
+
// append it to the children of the parent element.
|
|
658
784
|
parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
659
785
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
660
786
|
newEndVnode = newCh[--newEndIdx];
|
|
661
787
|
}
|
|
662
788
|
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
663
|
-
// Vnode moved left
|
|
789
|
+
// case: "Vnode moved left"
|
|
790
|
+
//
|
|
791
|
+
// We've found that the first node in our window on the new children is
|
|
792
|
+
// the same VNode as the _last_ node in our window on the old children.
|
|
793
|
+
// Visually, this is the layout of these two nodes:
|
|
794
|
+
//
|
|
795
|
+
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
796
|
+
// ^^^^^^^^^^^^^
|
|
797
|
+
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
798
|
+
// ^^^^^^^^^^^
|
|
799
|
+
//
|
|
800
|
+
// In this situation we need to patch `newStartVnode` onto `oldEndVnode`
|
|
801
|
+
// (which will handle updating any changed attributes, reconciling their
|
|
802
|
+
// children etc) but we also need to move the DOM node to which
|
|
803
|
+
// `oldEndVnode` corresponds.
|
|
664
804
|
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
665
805
|
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
666
806
|
}
|
|
667
807
|
patch(oldEndVnode, newStartVnode);
|
|
808
|
+
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
809
|
+
// the same node, so since we're here we know that they are not. Thus we
|
|
810
|
+
// can move the element for `oldEndVnode` _before_ the element for
|
|
811
|
+
// `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
|
|
812
|
+
// future.
|
|
668
813
|
parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
669
814
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
670
815
|
newStartVnode = newCh[++newStartIdx];
|
|
671
816
|
}
|
|
672
817
|
else {
|
|
673
|
-
//
|
|
818
|
+
// Here we do some checks to match up old and new nodes based on the
|
|
819
|
+
// `$key$` attribute, which is set by putting a `key="my-key"` attribute
|
|
820
|
+
// in the JSX for a DOM element in the implementation of a Stencil
|
|
821
|
+
// component.
|
|
822
|
+
//
|
|
823
|
+
// First we check to see if there are any nodes in the array of old
|
|
824
|
+
// children which have the same key as the first node in the new
|
|
825
|
+
// children.
|
|
674
826
|
idxInOld = -1;
|
|
675
827
|
{
|
|
676
828
|
for (i = oldStartIdx; i <= oldEndIdx; ++i) {
|
|
@@ -681,23 +833,32 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
681
833
|
}
|
|
682
834
|
}
|
|
683
835
|
if (idxInOld >= 0) {
|
|
836
|
+
// We found a node in the old children which matches up with the first
|
|
837
|
+
// node in the new children! So let's deal with that
|
|
684
838
|
elmToMove = oldCh[idxInOld];
|
|
685
839
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
840
|
+
// the tag doesn't match so we'll need a new DOM element
|
|
686
841
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
|
|
687
842
|
}
|
|
688
843
|
else {
|
|
689
844
|
patch(elmToMove, newStartVnode);
|
|
845
|
+
// invalidate the matching old node so that we won't try to update it
|
|
846
|
+
// again later on
|
|
690
847
|
oldCh[idxInOld] = undefined;
|
|
691
848
|
node = elmToMove.$elm$;
|
|
692
849
|
}
|
|
693
850
|
newStartVnode = newCh[++newStartIdx];
|
|
694
851
|
}
|
|
695
852
|
else {
|
|
696
|
-
//
|
|
853
|
+
// We either didn't find an element in the old children that matches
|
|
854
|
+
// the key of the first new child OR the build is not using `key`
|
|
855
|
+
// attributes at all. In either case we need to create a new element
|
|
856
|
+
// for the new node.
|
|
697
857
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
|
|
698
858
|
newStartVnode = newCh[++newStartIdx];
|
|
699
859
|
}
|
|
700
860
|
if (node) {
|
|
861
|
+
// if we created a new node then handle inserting it to the DOM
|
|
701
862
|
{
|
|
702
863
|
parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
|
|
703
864
|
}
|
|
@@ -705,21 +866,43 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
705
866
|
}
|
|
706
867
|
}
|
|
707
868
|
if (oldStartIdx > oldEndIdx) {
|
|
869
|
+
// we have some more new nodes to add which don't match up with old nodes
|
|
708
870
|
addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
|
|
709
871
|
}
|
|
710
872
|
else if (newStartIdx > newEndIdx) {
|
|
873
|
+
// there are nodes in the `oldCh` array which no longer correspond to nodes
|
|
874
|
+
// in the new array, so lets remove them (which entails cleaning up the
|
|
875
|
+
// relevant DOM nodes)
|
|
711
876
|
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
712
877
|
}
|
|
713
878
|
};
|
|
714
|
-
|
|
879
|
+
/**
|
|
880
|
+
* Compare two VNodes to determine if they are the same
|
|
881
|
+
*
|
|
882
|
+
* **NB**: This function is an equality _heuristic_ based on the available
|
|
883
|
+
* information set on the two VNodes and can be misleading under certain
|
|
884
|
+
* circumstances. In particular, if the two nodes do not have `key` attrs
|
|
885
|
+
* (available under `$key$` on VNodes) then the function falls back on merely
|
|
886
|
+
* checking that they have the same tag.
|
|
887
|
+
*
|
|
888
|
+
* So, in other words, if `key` attrs are not set on VNodes which may be
|
|
889
|
+
* changing order within a `children` array or something along those lines then
|
|
890
|
+
* we could obtain a false positive and then have to do needless re-rendering.
|
|
891
|
+
*
|
|
892
|
+
* @param leftVNode the first VNode to check
|
|
893
|
+
* @param rightVNode the second VNode to check
|
|
894
|
+
* @returns whether they're equal or not
|
|
895
|
+
*/
|
|
896
|
+
const isSameVnode = (leftVNode, rightVNode) => {
|
|
715
897
|
// compare if two vnode to see if they're "technically" the same
|
|
716
898
|
// need to have the same element tag, and same key to be the same
|
|
717
|
-
if (
|
|
718
|
-
if (
|
|
719
|
-
return
|
|
899
|
+
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
900
|
+
if (leftVNode.$tag$ === 'slot') {
|
|
901
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
|
720
902
|
}
|
|
903
|
+
// this will be set if components in the build have `key` attrs set on them
|
|
721
904
|
{
|
|
722
|
-
return
|
|
905
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
|
723
906
|
}
|
|
724
907
|
}
|
|
725
908
|
return false;
|
|
@@ -732,6 +915,14 @@ const referenceNode = (node) => {
|
|
|
732
915
|
return (node && node['s-ol']) || node;
|
|
733
916
|
};
|
|
734
917
|
const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
|
|
918
|
+
/**
|
|
919
|
+
* Handle reconciling an outdated VNode with a new one which corresponds to
|
|
920
|
+
* it. This function handles flushing updates to the DOM and reconciling the
|
|
921
|
+
* children of the two nodes (if any).
|
|
922
|
+
*
|
|
923
|
+
* @param oldVNode an old VNode whose DOM element and children we want to update
|
|
924
|
+
* @param newVNode a new VNode representing an updated version of the old one
|
|
925
|
+
*/
|
|
735
926
|
const patch = (oldVNode, newVNode) => {
|
|
736
927
|
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
737
928
|
const oldChildren = oldVNode.$children$;
|
|
@@ -745,7 +936,6 @@ const patch = (oldVNode, newVNode) => {
|
|
|
745
936
|
// only add this to the when the compiler sees we're using an svg somewhere
|
|
746
937
|
isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
|
|
747
938
|
}
|
|
748
|
-
// element node
|
|
749
939
|
{
|
|
750
940
|
if (tag === 'slot')
|
|
751
941
|
;
|
|
@@ -758,6 +948,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
758
948
|
}
|
|
759
949
|
if (oldChildren !== null && newChildren !== null) {
|
|
760
950
|
// looks like there's child vnodes for both the old and new vnodes
|
|
951
|
+
// so we need to call `updateChildren` to reconcile them
|
|
761
952
|
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
762
953
|
}
|
|
763
954
|
else if (newChildren !== null) {
|
|
@@ -789,7 +980,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
789
980
|
};
|
|
790
981
|
const updateFallbackSlotVisibility = (elm) => {
|
|
791
982
|
// tslint:disable-next-line: prefer-const
|
|
792
|
-
|
|
983
|
+
const childNodes = elm.childNodes;
|
|
793
984
|
let childNode;
|
|
794
985
|
let i;
|
|
795
986
|
let ilen;
|
|
@@ -798,7 +989,7 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
798
989
|
let nodeType;
|
|
799
990
|
for (i = 0, ilen = childNodes.length; i < ilen; i++) {
|
|
800
991
|
childNode = childNodes[i];
|
|
801
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
992
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
802
993
|
if (childNode['s-sr']) {
|
|
803
994
|
// this is a slot fallback node
|
|
804
995
|
// get the slot name for this slot reference node
|
|
@@ -810,7 +1001,7 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
810
1001
|
nodeType = childNodes[j].nodeType;
|
|
811
1002
|
if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
|
|
812
1003
|
// this sibling node is from a different component OR is a named fallback slot node
|
|
813
|
-
if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
|
|
1004
|
+
if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
|
|
814
1005
|
childNode.hidden = true;
|
|
815
1006
|
break;
|
|
816
1007
|
}
|
|
@@ -819,8 +1010,8 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
819
1010
|
// this is a default fallback slot node
|
|
820
1011
|
// any element or text node (with content)
|
|
821
1012
|
// should hide the default fallback slot node
|
|
822
|
-
if (nodeType === 1 /* ElementNode */ ||
|
|
823
|
-
(nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
|
|
1013
|
+
if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
|
|
1014
|
+
(nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
|
|
824
1015
|
childNode.hidden = true;
|
|
825
1016
|
break;
|
|
826
1017
|
}
|
|
@@ -842,8 +1033,8 @@ const relocateSlotContent = (elm) => {
|
|
|
842
1033
|
let relocateNodeData;
|
|
843
1034
|
let j;
|
|
844
1035
|
let i = 0;
|
|
845
|
-
|
|
846
|
-
|
|
1036
|
+
const childNodes = elm.childNodes;
|
|
1037
|
+
const ilen = childNodes.length;
|
|
847
1038
|
for (; i < ilen; i++) {
|
|
848
1039
|
childNode = childNodes[i];
|
|
849
1040
|
if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
|
|
@@ -859,7 +1050,7 @@ const relocateSlotContent = (elm) => {
|
|
|
859
1050
|
// that is suppose to always represent the original content location
|
|
860
1051
|
if (isNodeLocatedInSlot(node, slotNameAttr)) {
|
|
861
1052
|
// it's possible we've already decided to relocate this node
|
|
862
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
1053
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
863
1054
|
// made some changes to slots
|
|
864
1055
|
// let's make sure we also double check
|
|
865
1056
|
// fallbacks are correctly hidden or shown
|
|
@@ -878,9 +1069,9 @@ const relocateSlotContent = (elm) => {
|
|
|
878
1069
|
});
|
|
879
1070
|
}
|
|
880
1071
|
if (node['s-sr']) {
|
|
881
|
-
relocateNodes.map(relocateNode => {
|
|
1072
|
+
relocateNodes.map((relocateNode) => {
|
|
882
1073
|
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
|
|
883
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
1074
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
884
1075
|
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
885
1076
|
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
886
1077
|
}
|
|
@@ -888,7 +1079,7 @@ const relocateSlotContent = (elm) => {
|
|
|
888
1079
|
});
|
|
889
1080
|
}
|
|
890
1081
|
}
|
|
891
|
-
else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) {
|
|
1082
|
+
else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
892
1083
|
// so far this element does not have a slot home, not setting slotRefNode on purpose
|
|
893
1084
|
// if we never find a home for this element then we'll need to hide it
|
|
894
1085
|
relocateNodes.push({
|
|
@@ -898,13 +1089,13 @@ const relocateSlotContent = (elm) => {
|
|
|
898
1089
|
}
|
|
899
1090
|
}
|
|
900
1091
|
}
|
|
901
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1092
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
902
1093
|
relocateSlotContent(childNode);
|
|
903
1094
|
}
|
|
904
1095
|
}
|
|
905
1096
|
};
|
|
906
1097
|
const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
|
|
907
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1098
|
+
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
908
1099
|
if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
|
|
909
1100
|
return true;
|
|
910
1101
|
}
|
|
@@ -935,7 +1126,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
935
1126
|
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
936
1127
|
}
|
|
937
1128
|
rootVnode.$tag$ = null;
|
|
938
|
-
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1129
|
+
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
939
1130
|
hostRef.$vnode$ = rootVnode;
|
|
940
1131
|
rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
|
|
941
1132
|
{
|
|
@@ -943,7 +1134,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
943
1134
|
}
|
|
944
1135
|
{
|
|
945
1136
|
contentRef = hostElm['s-cr'];
|
|
946
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1137
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
|
|
947
1138
|
// always reset
|
|
948
1139
|
checkSlotFallbackVisibility = false;
|
|
949
1140
|
}
|
|
@@ -952,7 +1143,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
952
1143
|
{
|
|
953
1144
|
// while we're moving nodes around existing nodes, temporarily disable
|
|
954
1145
|
// the disconnectCallback from working
|
|
955
|
-
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1146
|
+
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
956
1147
|
if (checkSlotRelocate) {
|
|
957
1148
|
relocateSlotContent(rootVnode.$elm$);
|
|
958
1149
|
let relocateData;
|
|
@@ -968,7 +1159,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
968
1159
|
if (!nodeToRelocate['s-ol']) {
|
|
969
1160
|
// add a reference node marking this node's original location
|
|
970
1161
|
// keep a reference to this node for later lookups
|
|
971
|
-
orgLocationNode =
|
|
1162
|
+
orgLocationNode =
|
|
1163
|
+
doc.createTextNode('');
|
|
972
1164
|
orgLocationNode['s-nr'] = nodeToRelocate;
|
|
973
1165
|
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
|
974
1166
|
}
|
|
@@ -992,7 +1184,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
992
1184
|
}
|
|
993
1185
|
}
|
|
994
1186
|
}
|
|
995
|
-
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
1187
|
+
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
1188
|
+
nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
996
1189
|
// we've checked that it's worth while to relocate
|
|
997
1190
|
// since that the node to relocate
|
|
998
1191
|
// has a different next sibling or parent relocated
|
|
@@ -1008,7 +1201,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1008
1201
|
}
|
|
1009
1202
|
else {
|
|
1010
1203
|
// this node doesn't have a slot home to go to, so let's hide it
|
|
1011
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1204
|
+
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1012
1205
|
nodeToRelocate.hidden = true;
|
|
1013
1206
|
}
|
|
1014
1207
|
}
|
|
@@ -1019,7 +1212,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1019
1212
|
}
|
|
1020
1213
|
// done moving nodes around
|
|
1021
1214
|
// allow the disconnect callback to work again
|
|
1022
|
-
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1215
|
+
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
1023
1216
|
// always reset
|
|
1024
1217
|
relocateNodes.length = 0;
|
|
1025
1218
|
}
|
|
@@ -1030,14 +1223,21 @@ const createEvent = (ref, name, flags) => {
|
|
|
1030
1223
|
return {
|
|
1031
1224
|
emit: (detail) => {
|
|
1032
1225
|
return emitEvent(elm, name, {
|
|
1033
|
-
bubbles: !!(flags & 4 /* Bubbles */),
|
|
1034
|
-
composed: !!(flags & 2 /* Composed */),
|
|
1035
|
-
cancelable: !!(flags & 1 /* Cancellable */),
|
|
1226
|
+
bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
|
|
1227
|
+
composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
|
|
1228
|
+
cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
|
|
1036
1229
|
detail,
|
|
1037
1230
|
});
|
|
1038
1231
|
},
|
|
1039
1232
|
};
|
|
1040
1233
|
};
|
|
1234
|
+
/**
|
|
1235
|
+
* Helper function to create & dispatch a custom Event on a provided target
|
|
1236
|
+
* @param elm the target of the Event
|
|
1237
|
+
* @param name the name to give the custom Event
|
|
1238
|
+
* @param opts options for configuring a custom Event
|
|
1239
|
+
* @returns the custom Event
|
|
1240
|
+
*/
|
|
1041
1241
|
const emitEvent = (elm, name, opts) => {
|
|
1042
1242
|
const ev = plt.ce(name, opts);
|
|
1043
1243
|
elm.dispatchEvent(ev);
|
|
@@ -1045,15 +1245,15 @@ const emitEvent = (elm, name, opts) => {
|
|
|
1045
1245
|
};
|
|
1046
1246
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1047
1247
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
1048
|
-
ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r)));
|
|
1248
|
+
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
|
1049
1249
|
}
|
|
1050
1250
|
};
|
|
1051
1251
|
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
1052
1252
|
{
|
|
1053
|
-
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
1253
|
+
hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
1054
1254
|
}
|
|
1055
|
-
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
1056
|
-
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
1255
|
+
if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
|
|
1256
|
+
hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
|
|
1057
1257
|
return;
|
|
1058
1258
|
}
|
|
1059
1259
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
@@ -1069,7 +1269,7 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1069
1269
|
let promise;
|
|
1070
1270
|
if (isInitialLoad) {
|
|
1071
1271
|
{
|
|
1072
|
-
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1272
|
+
hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
|
|
1073
1273
|
if (hostRef.$queuedListeners$) {
|
|
1074
1274
|
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1075
1275
|
hostRef.$queuedListeners$ = null;
|
|
@@ -1107,7 +1307,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1107
1307
|
// ok, so turns out there are some child host elements
|
|
1108
1308
|
// waiting on this parent element to load
|
|
1109
1309
|
// let's fire off all update callbacks waiting
|
|
1110
|
-
rc.map(cb => cb());
|
|
1310
|
+
rc.map((cb) => cb());
|
|
1111
1311
|
elm['s-rc'] = undefined;
|
|
1112
1312
|
}
|
|
1113
1313
|
endRender();
|
|
@@ -1120,7 +1320,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1120
1320
|
}
|
|
1121
1321
|
else {
|
|
1122
1322
|
Promise.all(childrenPromises).then(postUpdate);
|
|
1123
|
-
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
1323
|
+
hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
|
|
1124
1324
|
childrenPromises.length = 0;
|
|
1125
1325
|
}
|
|
1126
1326
|
}
|
|
@@ -1130,10 +1330,10 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
1130
1330
|
renderingRef = instance;
|
|
1131
1331
|
instance = instance.render() ;
|
|
1132
1332
|
{
|
|
1133
|
-
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
1333
|
+
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
1134
1334
|
}
|
|
1135
1335
|
{
|
|
1136
|
-
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
1336
|
+
hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
|
|
1137
1337
|
}
|
|
1138
1338
|
{
|
|
1139
1339
|
{
|
|
@@ -1162,8 +1362,8 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1162
1362
|
{
|
|
1163
1363
|
safeCall(instance, 'componentDidRender');
|
|
1164
1364
|
}
|
|
1165
|
-
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1166
|
-
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1365
|
+
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
|
1366
|
+
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
|
1167
1367
|
{
|
|
1168
1368
|
// DOM WRITE!
|
|
1169
1369
|
addHydratedFlag(elm);
|
|
@@ -1195,10 +1395,10 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1195
1395
|
hostRef.$onRenderResolve$();
|
|
1196
1396
|
hostRef.$onRenderResolve$ = undefined;
|
|
1197
1397
|
}
|
|
1198
|
-
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
1398
|
+
if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
|
|
1199
1399
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
1200
1400
|
}
|
|
1201
|
-
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
|
1401
|
+
hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
|
|
1202
1402
|
}
|
|
1203
1403
|
// ( •_•)
|
|
1204
1404
|
// ( •_•)>⌐■-■
|
|
@@ -1208,7 +1408,8 @@ const forceUpdate = (ref) => {
|
|
|
1208
1408
|
{
|
|
1209
1409
|
const hostRef = getHostRef(ref);
|
|
1210
1410
|
const isConnected = hostRef.$hostElement$.isConnected;
|
|
1211
|
-
if (isConnected &&
|
|
1411
|
+
if (isConnected &&
|
|
1412
|
+
(hostRef.$flags$ & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
|
|
1212
1413
|
scheduleUpdate(hostRef, false);
|
|
1213
1414
|
}
|
|
1214
1415
|
// Returns "true" when the forced update was successfully scheduled
|
|
@@ -1237,20 +1438,44 @@ const safeCall = (instance, method, arg) => {
|
|
|
1237
1438
|
const then = (promise, thenFn) => {
|
|
1238
1439
|
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
1239
1440
|
};
|
|
1240
|
-
const addHydratedFlag = (elm) =>
|
|
1441
|
+
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1442
|
+
;
|
|
1443
|
+
/**
|
|
1444
|
+
* Parse a new property value for a given property type.
|
|
1445
|
+
*
|
|
1446
|
+
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
|
1447
|
+
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
|
1448
|
+
* 1. `any`, the type given to `propValue` in the function signature
|
|
1449
|
+
* 2. the type stored from `propType`.
|
|
1450
|
+
*
|
|
1451
|
+
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
|
1452
|
+
*
|
|
1453
|
+
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
|
1454
|
+
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
|
1455
|
+
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
|
1456
|
+
* ```tsx
|
|
1457
|
+
* <my-cmp prop-val={0}></my-cmp>
|
|
1458
|
+
* ```
|
|
1459
|
+
*
|
|
1460
|
+
* HTML prop values on the other hand, will always a string
|
|
1461
|
+
*
|
|
1462
|
+
* @param propValue the new value to coerce to some type
|
|
1463
|
+
* @param propType the type of the prop, expressed as a binary number
|
|
1464
|
+
* @returns the parsed/coerced value
|
|
1465
|
+
*/
|
|
1241
1466
|
const parsePropertyValue = (propValue, propType) => {
|
|
1242
1467
|
// ensure this value is of the correct prop type
|
|
1243
1468
|
if (propValue != null && !isComplexType(propValue)) {
|
|
1244
|
-
if (propType & 4 /* Boolean */) {
|
|
1469
|
+
if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
|
|
1245
1470
|
// per the HTML spec, any string value means it is a boolean true value
|
|
1246
1471
|
// but we'll cheat here and say that the string "false" is the boolean false
|
|
1247
1472
|
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
1248
1473
|
}
|
|
1249
|
-
if (propType & 2 /* Number */) {
|
|
1474
|
+
if (propType & 2 /* MEMBER_FLAGS.Number */) {
|
|
1250
1475
|
// force it to be a number
|
|
1251
1476
|
return parseFloat(propValue);
|
|
1252
1477
|
}
|
|
1253
|
-
if (propType & 1 /* String */) {
|
|
1478
|
+
if (propType & 1 /* MEMBER_FLAGS.String */) {
|
|
1254
1479
|
// could have been passed as a number or boolean
|
|
1255
1480
|
// but we still want it as a string
|
|
1256
1481
|
return String(propValue);
|
|
@@ -1271,17 +1496,20 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1271
1496
|
const flags = hostRef.$flags$;
|
|
1272
1497
|
const instance = hostRef.$lazyInstance$ ;
|
|
1273
1498
|
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1274
|
-
|
|
1499
|
+
// explicitly check for NaN on both sides, as `NaN === NaN` is always false
|
|
1500
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1501
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1502
|
+
if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
1275
1503
|
// gadzooks! the property's value has changed!!
|
|
1276
1504
|
// set our new value!
|
|
1277
1505
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1278
1506
|
if (instance) {
|
|
1279
1507
|
// get an array of method names of watch functions to call
|
|
1280
|
-
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
1508
|
+
if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
|
|
1281
1509
|
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1282
1510
|
if (watchMethods) {
|
|
1283
1511
|
// this instance is watching for when this property changed
|
|
1284
|
-
watchMethods.map(watchMethodName => {
|
|
1512
|
+
watchMethods.map((watchMethodName) => {
|
|
1285
1513
|
try {
|
|
1286
1514
|
// fire off each of the watch methods that are watching this property
|
|
1287
1515
|
instance[watchMethodName](newVal, oldVal, propName);
|
|
@@ -1292,7 +1520,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1292
1520
|
});
|
|
1293
1521
|
}
|
|
1294
1522
|
}
|
|
1295
|
-
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1523
|
+
if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
|
|
1296
1524
|
// looks like this value actually changed, so we've got work to do!
|
|
1297
1525
|
// but only if we've already rendered, otherwise just chill out
|
|
1298
1526
|
// queue that we need to do an update, but don't worry about queuing
|
|
@@ -1311,7 +1539,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1311
1539
|
const members = Object.entries(cmpMeta.$members$);
|
|
1312
1540
|
const prototype = Cstr.prototype;
|
|
1313
1541
|
members.map(([memberName, [memberFlags]]) => {
|
|
1314
|
-
if ((memberFlags & 31 /* Prop */ ||
|
|
1542
|
+
if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
|
|
1543
|
+
((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
|
|
1315
1544
|
// proxyComponent - prop
|
|
1316
1545
|
Object.defineProperty(prototype, memberName, {
|
|
1317
1546
|
get() {
|
|
@@ -1326,7 +1555,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1326
1555
|
enumerable: true,
|
|
1327
1556
|
});
|
|
1328
1557
|
}
|
|
1329
|
-
else if (flags & 1 /* isElementConstructor */ &&
|
|
1558
|
+
else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
|
|
1559
|
+
memberFlags & 64 /* MEMBER_FLAGS.Method */) {
|
|
1330
1560
|
// proxyComponent - method
|
|
1331
1561
|
Object.defineProperty(prototype, memberName, {
|
|
1332
1562
|
value(...args) {
|
|
@@ -1336,22 +1566,67 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1336
1566
|
});
|
|
1337
1567
|
}
|
|
1338
1568
|
});
|
|
1339
|
-
if ((flags & 1 /* isElementConstructor */)) {
|
|
1569
|
+
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
|
1340
1570
|
const attrNameToPropName = new Map();
|
|
1341
1571
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1342
1572
|
plt.jmp(() => {
|
|
1343
1573
|
const propName = attrNameToPropName.get(attrName);
|
|
1574
|
+
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
1575
|
+
// in the case where an attribute was set inline.
|
|
1576
|
+
// ```html
|
|
1577
|
+
// <my-component some-attribute="some-value"></my-component>
|
|
1578
|
+
// ```
|
|
1579
|
+
//
|
|
1580
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1581
|
+
// programmatically changes it before it has been upgraded as shown below:
|
|
1582
|
+
//
|
|
1583
|
+
// ```html
|
|
1584
|
+
// <!-- this component has _not_ been upgraded yet -->
|
|
1585
|
+
// <my-component id="test" some-attribute="some-value"></my-component>
|
|
1586
|
+
// <script>
|
|
1587
|
+
// // grab non-upgraded component
|
|
1588
|
+
// el = document.querySelector("#test");
|
|
1589
|
+
// el.someAttribute = "another-value";
|
|
1590
|
+
// // upgrade component
|
|
1591
|
+
// customElements.define('my-component', MyComponent);
|
|
1592
|
+
// </script>
|
|
1593
|
+
// ```
|
|
1594
|
+
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1595
|
+
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1596
|
+
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1597
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
|
|
1598
|
+
//
|
|
1599
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1600
|
+
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1601
|
+
//
|
|
1602
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1603
|
+
//
|
|
1604
|
+
// TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
|
|
1605
|
+
// properties here given that this goes against best practices outlined here
|
|
1606
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
|
|
1607
|
+
if (this.hasOwnProperty(propName)) {
|
|
1608
|
+
newValue = this[propName];
|
|
1609
|
+
delete this[propName];
|
|
1610
|
+
}
|
|
1611
|
+
else if (prototype.hasOwnProperty(propName) &&
|
|
1612
|
+
typeof this[propName] === 'number' &&
|
|
1613
|
+
this[propName] == newValue) {
|
|
1614
|
+
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
|
1615
|
+
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
|
1616
|
+
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1617
|
+
return;
|
|
1618
|
+
}
|
|
1344
1619
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1345
1620
|
});
|
|
1346
1621
|
};
|
|
1347
1622
|
// create an array of attributes to observe
|
|
1348
1623
|
// and also create a map of html attribute name to js property name
|
|
1349
1624
|
Cstr.observedAttributes = members
|
|
1350
|
-
.filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
|
|
1625
|
+
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
|
|
1351
1626
|
.map(([propName, m]) => {
|
|
1352
1627
|
const attrName = m[1] || propName;
|
|
1353
1628
|
attrNameToPropName.set(attrName, propName);
|
|
1354
|
-
if (m[0] & 512 /* ReflectAttr */) {
|
|
1629
|
+
if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
|
|
1355
1630
|
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1356
1631
|
}
|
|
1357
1632
|
return attrName;
|
|
@@ -1362,10 +1637,10 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1362
1637
|
};
|
|
1363
1638
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1364
1639
|
// initializeComponent
|
|
1365
|
-
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1640
|
+
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1366
1641
|
{
|
|
1367
1642
|
// we haven't initialized this element yet
|
|
1368
|
-
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1643
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1369
1644
|
// lazy loaded components
|
|
1370
1645
|
// request the component's implementation to be
|
|
1371
1646
|
// wired up with the host element
|
|
@@ -1377,13 +1652,13 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1377
1652
|
endLoad();
|
|
1378
1653
|
}
|
|
1379
1654
|
if (!Cstr.isProxied) {
|
|
1380
|
-
// we'
|
|
1655
|
+
// we've never proxied this Constructor before
|
|
1381
1656
|
// let's add the getters/setters to its prototype before
|
|
1382
1657
|
// the first time we create an instance of the implementation
|
|
1383
1658
|
{
|
|
1384
1659
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1385
1660
|
}
|
|
1386
|
-
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1661
|
+
proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
|
|
1387
1662
|
Cstr.isProxied = true;
|
|
1388
1663
|
}
|
|
1389
1664
|
const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
|
|
@@ -1391,7 +1666,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1391
1666
|
// but let's keep track of when we start and stop
|
|
1392
1667
|
// so that the getters/setters don't incorrectly step on data
|
|
1393
1668
|
{
|
|
1394
|
-
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1669
|
+
hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
|
|
1395
1670
|
}
|
|
1396
1671
|
// construct the lazy-loaded component implementation
|
|
1397
1672
|
// passing the hostRef is very important during
|
|
@@ -1404,10 +1679,10 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1404
1679
|
consoleError(e);
|
|
1405
1680
|
}
|
|
1406
1681
|
{
|
|
1407
|
-
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1682
|
+
hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
|
|
1408
1683
|
}
|
|
1409
1684
|
{
|
|
1410
|
-
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1685
|
+
hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
|
|
1411
1686
|
}
|
|
1412
1687
|
endNewInstance();
|
|
1413
1688
|
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
@@ -1418,7 +1693,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1418
1693
|
const scopeId = getScopeId(cmpMeta);
|
|
1419
1694
|
if (!styles.has(scopeId)) {
|
|
1420
1695
|
const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
|
|
1421
|
-
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1696
|
+
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
|
|
1422
1697
|
endRegisterStyles();
|
|
1423
1698
|
}
|
|
1424
1699
|
}
|
|
@@ -1427,7 +1702,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1427
1702
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1428
1703
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1429
1704
|
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1430
|
-
// this is the
|
|
1705
|
+
// this is the initial load and this component it has an ancestor component
|
|
1431
1706
|
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1432
1707
|
// so let's just cool our jets and wait for the ancestor to continue first
|
|
1433
1708
|
// this will get fired off when the ancestor component
|
|
@@ -1445,19 +1720,19 @@ const fireConnectedCallback = (instance) => {
|
|
|
1445
1720
|
}
|
|
1446
1721
|
};
|
|
1447
1722
|
const connectedCallback = (elm) => {
|
|
1448
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1723
|
+
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1449
1724
|
const hostRef = getHostRef(elm);
|
|
1450
1725
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1451
1726
|
const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
|
|
1452
|
-
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1727
|
+
if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
|
|
1453
1728
|
// first time this component has connected
|
|
1454
|
-
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1729
|
+
hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
|
|
1455
1730
|
{
|
|
1456
1731
|
// initUpdate
|
|
1457
1732
|
// if the slot polyfill is required we'll need to put some nodes
|
|
1458
1733
|
// in here to act as original content anchors as we move nodes around
|
|
1459
1734
|
// host element has been connected to the DOM
|
|
1460
|
-
if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
|
|
1735
|
+
if ((cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
|
|
1461
1736
|
setContentReference(elm);
|
|
1462
1737
|
}
|
|
1463
1738
|
}
|
|
@@ -1480,7 +1755,7 @@ const connectedCallback = (elm) => {
|
|
|
1480
1755
|
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1481
1756
|
if (cmpMeta.$members$) {
|
|
1482
1757
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1483
|
-
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1758
|
+
if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1484
1759
|
const value = elm[memberName];
|
|
1485
1760
|
delete elm[memberName];
|
|
1486
1761
|
elm[memberName] = value;
|
|
@@ -1514,12 +1789,12 @@ const setContentReference = (elm) => {
|
|
|
1514
1789
|
elm.insertBefore(contentRefElm, elm.firstChild);
|
|
1515
1790
|
};
|
|
1516
1791
|
const disconnectedCallback = (elm) => {
|
|
1517
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1792
|
+
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1518
1793
|
const hostRef = getHostRef(elm);
|
|
1519
1794
|
const instance = hostRef.$lazyInstance$ ;
|
|
1520
1795
|
{
|
|
1521
1796
|
if (hostRef.$rmListeners$) {
|
|
1522
|
-
hostRef.$rmListeners$.map(rmListener => rmListener());
|
|
1797
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1523
1798
|
hostRef.$rmListeners$ = undefined;
|
|
1524
1799
|
}
|
|
1525
1800
|
}
|
|
@@ -1541,71 +1816,73 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1541
1816
|
let isBootstrapping = true;
|
|
1542
1817
|
Object.assign(plt, options);
|
|
1543
1818
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1544
|
-
lazyBundles.map(lazyBundle =>
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1819
|
+
lazyBundles.map((lazyBundle) => {
|
|
1820
|
+
lazyBundle[1].map((compactMeta) => {
|
|
1821
|
+
const cmpMeta = {
|
|
1822
|
+
$flags$: compactMeta[0],
|
|
1823
|
+
$tagName$: compactMeta[1],
|
|
1824
|
+
$members$: compactMeta[2],
|
|
1825
|
+
$listeners$: compactMeta[3],
|
|
1826
|
+
};
|
|
1827
|
+
{
|
|
1828
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1829
|
+
}
|
|
1830
|
+
{
|
|
1831
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
1832
|
+
}
|
|
1833
|
+
{
|
|
1834
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1835
|
+
}
|
|
1836
|
+
{
|
|
1837
|
+
cmpMeta.$watchers$ = {};
|
|
1838
|
+
}
|
|
1839
|
+
const tagName = cmpMeta.$tagName$;
|
|
1840
|
+
const HostElement = class extends HTMLElement {
|
|
1841
|
+
// StencilLazyHost
|
|
1842
|
+
constructor(self) {
|
|
1843
|
+
// @ts-ignore
|
|
1844
|
+
super(self);
|
|
1845
|
+
self = this;
|
|
1846
|
+
registerHost(self, cmpMeta);
|
|
1847
|
+
if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
|
|
1848
|
+
// this component is using shadow dom
|
|
1849
|
+
// and this browser supports shadow dom
|
|
1850
|
+
// add the read-only property "shadowRoot" to the host element
|
|
1851
|
+
// adding the shadow root build conditionals to minimize runtime
|
|
1577
1852
|
{
|
|
1578
|
-
|
|
1853
|
+
{
|
|
1854
|
+
self.attachShadow({ mode: 'open' });
|
|
1855
|
+
}
|
|
1579
1856
|
}
|
|
1580
1857
|
}
|
|
1581
1858
|
}
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1859
|
+
connectedCallback() {
|
|
1860
|
+
if (appLoadFallback) {
|
|
1861
|
+
clearTimeout(appLoadFallback);
|
|
1862
|
+
appLoadFallback = null;
|
|
1863
|
+
}
|
|
1864
|
+
if (isBootstrapping) {
|
|
1865
|
+
// connectedCallback will be processed once all components have been registered
|
|
1866
|
+
deferredConnectedCallbacks.push(this);
|
|
1867
|
+
}
|
|
1868
|
+
else {
|
|
1869
|
+
plt.jmp(() => connectedCallback(this));
|
|
1870
|
+
}
|
|
1587
1871
|
}
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
deferredConnectedCallbacks.push(this);
|
|
1872
|
+
disconnectedCallback() {
|
|
1873
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
1591
1874
|
}
|
|
1592
|
-
|
|
1593
|
-
|
|
1875
|
+
componentOnReady() {
|
|
1876
|
+
return getHostRef(this).$onReadyPromise$;
|
|
1594
1877
|
}
|
|
1878
|
+
};
|
|
1879
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1880
|
+
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1881
|
+
cmpTags.push(tagName);
|
|
1882
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
|
|
1595
1883
|
}
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
}
|
|
1599
|
-
componentOnReady() {
|
|
1600
|
-
return getHostRef(this).$onReadyPromise$;
|
|
1601
|
-
}
|
|
1602
|
-
};
|
|
1603
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1604
|
-
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1605
|
-
cmpTags.push(tagName);
|
|
1606
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1607
|
-
}
|
|
1608
|
-
}));
|
|
1884
|
+
});
|
|
1885
|
+
});
|
|
1609
1886
|
{
|
|
1610
1887
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1611
1888
|
visibilityStyle.setAttribute('data-styles', '');
|
|
@@ -1614,7 +1891,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1614
1891
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1615
1892
|
isBootstrapping = false;
|
|
1616
1893
|
if (deferredConnectedCallbacks.length) {
|
|
1617
|
-
deferredConnectedCallbacks.map(host => host.connectedCallback());
|
|
1894
|
+
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
1618
1895
|
}
|
|
1619
1896
|
else {
|
|
1620
1897
|
{
|
|
@@ -1624,7 +1901,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1624
1901
|
// Fallback appLoad event
|
|
1625
1902
|
endBootstrap();
|
|
1626
1903
|
};
|
|
1627
|
-
const hostRefs = new WeakMap();
|
|
1904
|
+
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1628
1905
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1629
1906
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
1630
1907
|
const registerHost = (elm, cmpMeta) => {
|
|
@@ -1635,10 +1912,10 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1635
1912
|
$instanceValues$: new Map(),
|
|
1636
1913
|
};
|
|
1637
1914
|
{
|
|
1638
|
-
hostRef.$onInstancePromise$ = new Promise(r => (hostRef.$onInstanceResolve$ = r));
|
|
1915
|
+
hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
|
|
1639
1916
|
}
|
|
1640
1917
|
{
|
|
1641
|
-
hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
|
|
1918
|
+
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1642
1919
|
elm['s-p'] = [];
|
|
1643
1920
|
elm['s-rc'] = [];
|
|
1644
1921
|
}
|
|
@@ -1656,25 +1933,364 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1656
1933
|
if (module) {
|
|
1657
1934
|
return module[exportName];
|
|
1658
1935
|
}
|
|
1936
|
+
|
|
1937
|
+
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
1938
|
+
const processMod = importedModule => {
|
|
1939
|
+
cmpModules.set(bundleId, importedModule);
|
|
1940
|
+
return importedModule[exportName];
|
|
1941
|
+
}
|
|
1942
|
+
switch(bundleId) {
|
|
1943
|
+
|
|
1944
|
+
case 'license-activation_10.cjs':
|
|
1945
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1946
|
+
/* webpackMode: "lazy" */
|
|
1947
|
+
'./license-activation_10.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1948
|
+
case 'z-accordion.cjs':
|
|
1949
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1950
|
+
/* webpackMode: "lazy" */
|
|
1951
|
+
'./z-accordion.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1952
|
+
case 'z-anchor-navigation.cjs':
|
|
1953
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1954
|
+
/* webpackMode: "lazy" */
|
|
1955
|
+
'./z-anchor-navigation.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1956
|
+
case 'z-app-header.cjs':
|
|
1957
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1958
|
+
/* webpackMode: "lazy" */
|
|
1959
|
+
'./z-app-header.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1960
|
+
case 'z-aria-alert.cjs':
|
|
1961
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1962
|
+
/* webpackMode: "lazy" */
|
|
1963
|
+
'./z-aria-alert.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1964
|
+
case 'z-avatar.cjs':
|
|
1965
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1966
|
+
/* webpackMode: "lazy" */
|
|
1967
|
+
'./z-avatar.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1968
|
+
case 'z-book-card.cjs':
|
|
1969
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1970
|
+
/* webpackMode: "lazy" */
|
|
1971
|
+
'./z-book-card.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1972
|
+
case 'z-breadcrumb.cjs':
|
|
1973
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1974
|
+
/* webpackMode: "lazy" */
|
|
1975
|
+
'./z-breadcrumb.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1976
|
+
case 'z-button-sort.cjs':
|
|
1977
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1978
|
+
/* webpackMode: "lazy" */
|
|
1979
|
+
'./z-button-sort.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1980
|
+
case 'z-card.cjs':
|
|
1981
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1982
|
+
/* webpackMode: "lazy" */
|
|
1983
|
+
'./z-card.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1984
|
+
case 'z-carousel.cjs':
|
|
1985
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1986
|
+
/* webpackMode: "lazy" */
|
|
1987
|
+
'./z-carousel.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1988
|
+
case 'z-combobox.cjs':
|
|
1989
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1990
|
+
/* webpackMode: "lazy" */
|
|
1991
|
+
'./z-combobox.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1992
|
+
case 'z-contextual-menu.cjs':
|
|
1993
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1994
|
+
/* webpackMode: "lazy" */
|
|
1995
|
+
'./z-contextual-menu.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1996
|
+
case 'z-cover-hero.cjs':
|
|
1997
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1998
|
+
/* webpackMode: "lazy" */
|
|
1999
|
+
'./z-cover-hero.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2000
|
+
case 'z-date-picker.cjs':
|
|
2001
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2002
|
+
/* webpackMode: "lazy" */
|
|
2003
|
+
'./z-date-picker.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2004
|
+
case 'z-file.cjs':
|
|
2005
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2006
|
+
/* webpackMode: "lazy" */
|
|
2007
|
+
'./z-file.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2008
|
+
case 'z-file-upload.cjs':
|
|
2009
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2010
|
+
/* webpackMode: "lazy" */
|
|
2011
|
+
'./z-file-upload.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2012
|
+
case 'z-info-reveal.cjs':
|
|
2013
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2014
|
+
/* webpackMode: "lazy" */
|
|
2015
|
+
'./z-info-reveal.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2016
|
+
case 'z-link.cjs':
|
|
2017
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2018
|
+
/* webpackMode: "lazy" */
|
|
2019
|
+
'./z-link.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2020
|
+
case 'z-logo.cjs':
|
|
2021
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2022
|
+
/* webpackMode: "lazy" */
|
|
2023
|
+
'./z-logo.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2024
|
+
case 'z-menu.cjs':
|
|
2025
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2026
|
+
/* webpackMode: "lazy" */
|
|
2027
|
+
'./z-menu.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2028
|
+
case 'z-menu-section.cjs':
|
|
2029
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2030
|
+
/* webpackMode: "lazy" */
|
|
2031
|
+
'./z-menu-section.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2032
|
+
case 'z-messages-pocket.cjs':
|
|
2033
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2034
|
+
/* webpackMode: "lazy" */
|
|
2035
|
+
'./z-messages-pocket.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2036
|
+
case 'z-myz-card-alert.cjs':
|
|
2037
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2038
|
+
/* webpackMode: "lazy" */
|
|
2039
|
+
'./z-myz-card-alert.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2040
|
+
case 'z-myz-card-dictionary.cjs':
|
|
2041
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2042
|
+
/* webpackMode: "lazy" */
|
|
2043
|
+
'./z-myz-card-dictionary.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2044
|
+
case 'z-myz-card-footer.cjs':
|
|
2045
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2046
|
+
/* webpackMode: "lazy" */
|
|
2047
|
+
'./z-myz-card-footer.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2048
|
+
case 'z-myz-card-footer-sections.cjs':
|
|
2049
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2050
|
+
/* webpackMode: "lazy" */
|
|
2051
|
+
'./z-myz-card-footer-sections.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2052
|
+
case 'z-myz-card-icon.cjs':
|
|
2053
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2054
|
+
/* webpackMode: "lazy" */
|
|
2055
|
+
'./z-myz-card-icon.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2056
|
+
case 'z-myz-card-info.cjs':
|
|
2057
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2058
|
+
/* webpackMode: "lazy" */
|
|
2059
|
+
'./z-myz-card-info.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2060
|
+
case 'z-myz-card-list.cjs':
|
|
2061
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2062
|
+
/* webpackMode: "lazy" */
|
|
2063
|
+
'./z-myz-card-list.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2064
|
+
case 'z-myz-list.cjs':
|
|
2065
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2066
|
+
/* webpackMode: "lazy" */
|
|
2067
|
+
'./z-myz-list.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2068
|
+
case 'z-navigation-tab.cjs':
|
|
2069
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2070
|
+
/* webpackMode: "lazy" */
|
|
2071
|
+
'./z-navigation-tab.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2072
|
+
case 'z-navigation-tab-link.cjs':
|
|
2073
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2074
|
+
/* webpackMode: "lazy" */
|
|
2075
|
+
'./z-navigation-tab-link.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2076
|
+
case 'z-navigation-tabs.cjs':
|
|
2077
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2078
|
+
/* webpackMode: "lazy" */
|
|
2079
|
+
'./z-navigation-tabs.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2080
|
+
case 'z-notification.cjs':
|
|
2081
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2082
|
+
/* webpackMode: "lazy" */
|
|
2083
|
+
'./z-notification.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2084
|
+
case 'z-otp.cjs':
|
|
2085
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2086
|
+
/* webpackMode: "lazy" */
|
|
2087
|
+
'./z-otp.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2088
|
+
case 'z-pagination.cjs':
|
|
2089
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2090
|
+
/* webpackMode: "lazy" */
|
|
2091
|
+
'./z-pagination.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2092
|
+
case 'z-panel-elem.cjs':
|
|
2093
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2094
|
+
/* webpackMode: "lazy" */
|
|
2095
|
+
'./z-panel-elem.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2096
|
+
case 'z-pocket-message.cjs':
|
|
2097
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2098
|
+
/* webpackMode: "lazy" */
|
|
2099
|
+
'./z-pocket-message.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2100
|
+
case 'z-range-picker.cjs':
|
|
2101
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2102
|
+
/* webpackMode: "lazy" */
|
|
2103
|
+
'./z-range-picker.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2104
|
+
case 'z-section-title.cjs':
|
|
2105
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2106
|
+
/* webpackMode: "lazy" */
|
|
2107
|
+
'./z-section-title.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2108
|
+
case 'z-select.cjs':
|
|
2109
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2110
|
+
/* webpackMode: "lazy" */
|
|
2111
|
+
'./z-select.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2112
|
+
case 'z-skip-to-content.cjs':
|
|
2113
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2114
|
+
/* webpackMode: "lazy" */
|
|
2115
|
+
'./z-skip-to-content.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2116
|
+
case 'z-slideshow.cjs':
|
|
2117
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2118
|
+
/* webpackMode: "lazy" */
|
|
2119
|
+
'./z-slideshow.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2120
|
+
case 'z-stepper.cjs':
|
|
2121
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2122
|
+
/* webpackMode: "lazy" */
|
|
2123
|
+
'./z-stepper.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2124
|
+
case 'z-stepper-item.cjs':
|
|
2125
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2126
|
+
/* webpackMode: "lazy" */
|
|
2127
|
+
'./z-stepper-item.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2128
|
+
case 'z-table.cjs':
|
|
2129
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2130
|
+
/* webpackMode: "lazy" */
|
|
2131
|
+
'./z-table.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2132
|
+
case 'z-table-body.cjs':
|
|
2133
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2134
|
+
/* webpackMode: "lazy" */
|
|
2135
|
+
'./z-table-body.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2136
|
+
case 'z-table-deprecated.cjs':
|
|
2137
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2138
|
+
/* webpackMode: "lazy" */
|
|
2139
|
+
'./z-table-deprecated.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2140
|
+
case 'z-table-expanded-row.cjs':
|
|
2141
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2142
|
+
/* webpackMode: "lazy" */
|
|
2143
|
+
'./z-table-expanded-row.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2144
|
+
case 'z-table-footer.cjs':
|
|
2145
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2146
|
+
/* webpackMode: "lazy" */
|
|
2147
|
+
'./z-table-footer.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2148
|
+
case 'z-table-head.cjs':
|
|
2149
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2150
|
+
/* webpackMode: "lazy" */
|
|
2151
|
+
'./z-table-head.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2152
|
+
case 'z-table-header-row.cjs':
|
|
2153
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2154
|
+
/* webpackMode: "lazy" */
|
|
2155
|
+
'./z-table-header-row.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2156
|
+
case 'z-table-row.cjs':
|
|
2157
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2158
|
+
/* webpackMode: "lazy" */
|
|
2159
|
+
'./z-table-row.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2160
|
+
case 'z-table-sticky-footer.cjs':
|
|
2161
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2162
|
+
/* webpackMode: "lazy" */
|
|
2163
|
+
'./z-table-sticky-footer.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2164
|
+
case 'z-tag.cjs':
|
|
2165
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2166
|
+
/* webpackMode: "lazy" */
|
|
2167
|
+
'./z-tag.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2168
|
+
case 'z-tbody.cjs':
|
|
2169
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2170
|
+
/* webpackMode: "lazy" */
|
|
2171
|
+
'./z-tbody.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2172
|
+
case 'z-td.cjs':
|
|
2173
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2174
|
+
/* webpackMode: "lazy" */
|
|
2175
|
+
'./z-td.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2176
|
+
case 'z-tfoot.cjs':
|
|
2177
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2178
|
+
/* webpackMode: "lazy" */
|
|
2179
|
+
'./z-tfoot.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2180
|
+
case 'z-th.cjs':
|
|
2181
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2182
|
+
/* webpackMode: "lazy" */
|
|
2183
|
+
'./z-th.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2184
|
+
case 'z-thead.cjs':
|
|
2185
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2186
|
+
/* webpackMode: "lazy" */
|
|
2187
|
+
'./z-thead.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2188
|
+
case 'z-toast-notification.cjs':
|
|
2189
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2190
|
+
/* webpackMode: "lazy" */
|
|
2191
|
+
'./z-toast-notification.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2192
|
+
case 'z-toast-notification-list.cjs':
|
|
2193
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2194
|
+
/* webpackMode: "lazy" */
|
|
2195
|
+
'./z-toast-notification-list.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2196
|
+
case 'z-toggle-button.cjs':
|
|
2197
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2198
|
+
/* webpackMode: "lazy" */
|
|
2199
|
+
'./z-toggle-button.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2200
|
+
case 'z-toggle-switch.cjs':
|
|
2201
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2202
|
+
/* webpackMode: "lazy" */
|
|
2203
|
+
'./z-toggle-switch.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2204
|
+
case 'z-tooltip.cjs':
|
|
2205
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2206
|
+
/* webpackMode: "lazy" */
|
|
2207
|
+
'./z-tooltip.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2208
|
+
case 'z-tr.cjs':
|
|
2209
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2210
|
+
/* webpackMode: "lazy" */
|
|
2211
|
+
'./z-tr.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2212
|
+
case 'z-visually-hidden.cjs':
|
|
2213
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2214
|
+
/* webpackMode: "lazy" */
|
|
2215
|
+
'./z-visually-hidden.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2216
|
+
case 'z-alert.cjs':
|
|
2217
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2218
|
+
/* webpackMode: "lazy" */
|
|
2219
|
+
'./z-alert.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2220
|
+
case 'z-chip.cjs':
|
|
2221
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2222
|
+
/* webpackMode: "lazy" */
|
|
2223
|
+
'./z-chip.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2224
|
+
case 'z-dragdrop-area.cjs':
|
|
2225
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2226
|
+
/* webpackMode: "lazy" */
|
|
2227
|
+
'./z-dragdrop-area.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2228
|
+
case 'z-ghost-loading.cjs':
|
|
2229
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2230
|
+
/* webpackMode: "lazy" */
|
|
2231
|
+
'./z-ghost-loading.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2232
|
+
case 'z-myz-card_4.cjs':
|
|
2233
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2234
|
+
/* webpackMode: "lazy" */
|
|
2235
|
+
'./z-myz-card_4.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2236
|
+
case 'z-offcanvas_2.cjs':
|
|
2237
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2238
|
+
/* webpackMode: "lazy" */
|
|
2239
|
+
'./z-offcanvas_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2240
|
+
case 'z-pocket_3.cjs':
|
|
2241
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2242
|
+
/* webpackMode: "lazy" */
|
|
2243
|
+
'./z-pocket_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2244
|
+
case 'z-table-cell.cjs':
|
|
2245
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2246
|
+
/* webpackMode: "lazy" */
|
|
2247
|
+
'./z-table-cell.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2248
|
+
case 'z-table-empty-box.cjs':
|
|
2249
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2250
|
+
/* webpackMode: "lazy" */
|
|
2251
|
+
'./z-table-empty-box.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2252
|
+
case 'z-table-header.cjs':
|
|
2253
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2254
|
+
/* webpackMode: "lazy" */
|
|
2255
|
+
'./z-table-header.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2256
|
+
case 'z-myz-list-item.cjs':
|
|
2257
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2258
|
+
/* webpackMode: "lazy" */
|
|
2259
|
+
'./z-myz-list-item.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2260
|
+
case 'z-list_3.cjs':
|
|
2261
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2262
|
+
/* webpackMode: "lazy" */
|
|
2263
|
+
'./z-list_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2264
|
+
case 'z-popover.cjs':
|
|
2265
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2266
|
+
/* webpackMode: "lazy" */
|
|
2267
|
+
'./z-popover.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2268
|
+
case 'z-divider.cjs':
|
|
2269
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2270
|
+
/* webpackMode: "lazy" */
|
|
2271
|
+
'./z-divider.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2272
|
+
}
|
|
2273
|
+
}
|
|
1659
2274
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2275
|
+
/* @vite-ignore */
|
|
1660
2276
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1661
2277
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1662
2278
|
/* webpackMode: "lazy" */
|
|
1663
|
-
`./${bundleId}.entry.js${''}`)); }).then(importedModule => {
|
|
2279
|
+
`./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
|
|
1664
2280
|
{
|
|
1665
2281
|
cmpModules.set(bundleId, importedModule);
|
|
1666
2282
|
}
|
|
1667
2283
|
return importedModule[exportName];
|
|
1668
2284
|
}, consoleError);
|
|
1669
2285
|
};
|
|
1670
|
-
const styles = new Map();
|
|
2286
|
+
const styles = /*@__PURE__*/ new Map();
|
|
1671
2287
|
const queueDomReads = [];
|
|
1672
2288
|
const queueDomWrites = [];
|
|
1673
2289
|
const queueTask = (queue, write) => (cb) => {
|
|
1674
2290
|
queue.push(cb);
|
|
1675
2291
|
if (!queuePending) {
|
|
1676
2292
|
queuePending = true;
|
|
1677
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
2293
|
+
if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
|
|
1678
2294
|
nextTick(flush);
|
|
1679
2295
|
}
|
|
1680
2296
|
else {
|