@paperless/core 0.1.0-alpha.99 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3838 -0
- package/README.md +9 -1
- package/dist/assets/i18n/page-size-select.i18n.en.json +4 -0
- package/dist/assets/i18n/page-size-select.i18n.nl.json +4 -0
- package/dist/assets/i18n/table-footer.i18n.en.json +3 -0
- package/dist/assets/i18n/table-footer.i18n.nl.json +3 -0
- package/dist/assets/i18n/table-header.i18n.en.json +6 -0
- package/dist/assets/i18n/table-header.i18n.nl.json +6 -0
- package/dist/assets/i18n/table.i18n.en.json +13 -0
- package/dist/assets/i18n/table.i18n.nl.json +13 -0
- package/dist/assets/icons/bread.svg +5 -12
- package/dist/assets/icons/camera.svg +10 -0
- package/dist/assets/icons/car.svg +5 -12
- package/dist/assets/icons/fa/building.svg +3 -0
- package/dist/assets/icons/fa/buildings.svg +3 -0
- package/dist/assets/icons/fa/piggy.svg +3 -0
- package/dist/assets/icons/filter.svg +6 -13
- package/dist/assets/icons/notification.svg +10 -0
- package/dist/assets/icons/reload.svg +10 -0
- package/dist/assets/icons/search.svg +5 -12
- package/dist/assets/illustrations/empty-state-add.svg +65 -0
- package/dist/assets/illustrations/empty-state-overview.svg +58 -0
- package/dist/assets/illustrations/empty-state-search.svg +88 -0
- package/dist/assets/images/helper/helper-hover.svg +6 -6
- package/dist/assets/images/helper/helper.svg +2 -2
- package/dist/build/index.esm.js +2 -0
- package/dist/build/index.esm.js.map +1 -0
- package/dist/build/p-07259c61.entry.js +2 -0
- package/dist/build/p-07259c61.entry.js.map +1 -0
- package/dist/build/p-11f5c8c7.entry.js +2 -0
- package/dist/build/p-11f5c8c7.entry.js.map +1 -0
- package/dist/build/p-12171df4.entry.js +2 -0
- package/dist/build/p-12171df4.entry.js.map +1 -0
- package/dist/build/p-1630e39b.entry.js +2 -0
- package/dist/build/p-1630e39b.entry.js.map +1 -0
- package/dist/build/p-18c0dd17.entry.js +2 -0
- package/dist/build/p-18c0dd17.entry.js.map +1 -0
- package/dist/build/p-195632a8.entry.js +2 -0
- package/dist/build/p-195632a8.entry.js.map +1 -0
- package/dist/build/p-1f55126f.entry.js +2 -0
- package/dist/build/p-1f55126f.entry.js.map +1 -0
- package/dist/build/p-26da620b.entry.js +2 -0
- package/dist/build/p-26da620b.entry.js.map +1 -0
- package/dist/build/p-2a668e75.entry.js +2 -0
- package/dist/build/p-2a668e75.entry.js.map +1 -0
- package/dist/build/p-350d452b.entry.js +2 -0
- package/dist/build/p-350d452b.entry.js.map +1 -0
- package/dist/build/p-36967a97.entry.js +2 -0
- package/dist/build/p-36967a97.entry.js.map +1 -0
- package/dist/build/p-3d8b2178.entry.js +2 -0
- package/dist/build/p-3d8b2178.entry.js.map +1 -0
- package/dist/build/p-47bcc23e.entry.js +2 -0
- package/dist/build/p-47bcc23e.entry.js.map +1 -0
- package/dist/build/p-47e461b7.entry.js +2 -0
- package/dist/build/p-47e461b7.entry.js.map +1 -0
- package/dist/build/p-4c51a801.entry.js +2 -0
- package/dist/build/p-4c51a801.entry.js.map +1 -0
- package/dist/build/p-4e650fe4.js +2 -0
- package/dist/build/p-4e650fe4.js.map +1 -0
- package/dist/build/p-51408aca.entry.js +2 -0
- package/dist/build/p-51408aca.entry.js.map +1 -0
- package/dist/build/p-594b28a7.entry.js +2 -0
- package/dist/build/p-594b28a7.entry.js.map +1 -0
- package/dist/build/p-5c7b20a3.entry.js +2 -0
- package/dist/build/p-5c7b20a3.entry.js.map +1 -0
- package/dist/build/p-6124f388.entry.js +2 -0
- package/dist/build/p-6124f388.entry.js.map +1 -0
- package/dist/build/p-6c60fd3d.js +2 -0
- package/dist/build/p-6c60fd3d.js.map +1 -0
- package/dist/build/p-6ccf5cdd.js +3 -0
- package/dist/build/p-6ccf5cdd.js.map +1 -0
- package/dist/build/p-6d5aa646.entry.js +2 -0
- package/dist/build/p-6d5aa646.entry.js.map +1 -0
- package/dist/build/p-6f1352e0.entry.js +2 -0
- package/dist/build/p-6f1352e0.entry.js.map +1 -0
- package/dist/build/p-8a6728d5.js +2 -0
- package/dist/build/p-8a6728d5.js.map +1 -0
- package/dist/build/p-910bd6bc.entry.js +2 -0
- package/dist/build/p-910bd6bc.entry.js.map +1 -0
- package/dist/build/p-91725831.entry.js +2 -0
- package/dist/build/p-91725831.entry.js.map +1 -0
- package/dist/build/p-946286e2.entry.js +2 -0
- package/dist/build/p-946286e2.entry.js.map +1 -0
- package/dist/build/p-a1c1d95b.entry.js +2 -0
- package/dist/build/p-a1c1d95b.entry.js.map +1 -0
- package/dist/build/p-a23ea8fe.entry.js +2 -0
- package/dist/build/p-a23ea8fe.entry.js.map +1 -0
- package/dist/build/p-abcd80e9.entry.js +2 -0
- package/dist/build/p-abcd80e9.entry.js.map +1 -0
- package/dist/build/p-ae248aef.js +2 -0
- package/dist/build/p-ae248aef.js.map +1 -0
- package/dist/build/p-b0398d3b.entry.js +2 -0
- package/dist/build/p-b0398d3b.entry.js.map +1 -0
- package/dist/build/p-b2bc1d2a.entry.js +2 -0
- package/dist/build/p-b2bc1d2a.entry.js.map +1 -0
- package/dist/build/p-b5ce8cd4.entry.js +2 -0
- package/dist/build/p-b5ce8cd4.entry.js.map +1 -0
- package/dist/build/p-b92dd098.entry.js +2 -0
- package/dist/build/p-b92dd098.entry.js.map +1 -0
- package/dist/build/p-b9f742e0.entry.js +2 -0
- package/dist/build/p-b9f742e0.entry.js.map +1 -0
- package/dist/build/p-bf0eca4f.entry.js +2 -0
- package/dist/build/p-bf0eca4f.entry.js.map +1 -0
- package/dist/build/p-ce1abd74.entry.js +2 -0
- package/dist/build/p-ce1abd74.entry.js.map +1 -0
- package/dist/build/p-ce443f5b.entry.js +2 -0
- package/dist/build/p-ce443f5b.entry.js.map +1 -0
- package/dist/build/p-da2426c7.js +2 -0
- package/dist/build/p-da2426c7.js.map +1 -0
- package/dist/build/p-da6e5abd.entry.js +2 -0
- package/dist/build/p-da6e5abd.entry.js.map +1 -0
- package/dist/build/p-e17560e6.entry.js +2 -0
- package/dist/build/p-e17560e6.entry.js.map +1 -0
- package/dist/build/p-e1da7376.entry.js +2 -0
- package/dist/build/p-e1da7376.entry.js.map +1 -0
- package/dist/build/p-e9a1b51e.entry.js +2 -0
- package/dist/build/p-e9a1b51e.entry.js.map +1 -0
- package/dist/build/p-ec850aca.entry.js +2 -0
- package/dist/build/p-ec850aca.entry.js.map +1 -0
- package/dist/build/p-ed6edf0a.entry.js +2 -0
- package/dist/build/p-ed6edf0a.entry.js.map +1 -0
- package/dist/build/p-f47247a6.entry.js +2 -0
- package/dist/build/p-f47247a6.entry.js.map +1 -0
- package/dist/build/p-fef32402.js +2 -0
- package/dist/build/p-fef32402.js.map +1 -0
- package/dist/build/paperless.css +1 -253
- package/dist/build/paperless.esm.js +2 -1
- package/dist/build/paperless.esm.js.map +1 -0
- package/dist/cjs/child-of-e472f812.js +11 -0
- package/dist/cjs/child-of-e472f812.js.map +1 -0
- package/dist/cjs/constants-a4459ec9.js +9 -0
- package/dist/cjs/constants-a4459ec9.js.map +1 -0
- package/dist/cjs/floating-ui.dom.esm-62336770.js +1334 -0
- package/dist/cjs/floating-ui.dom.esm-62336770.js.map +1 -0
- package/dist/cjs/index-b59a0544.js +2324 -0
- package/dist/cjs/index-b59a0544.js.map +1 -0
- package/dist/cjs/{index-9d3b51c9.js → index-dfc4dfec.js} +980 -339
- package/dist/cjs/index-dfc4dfec.js.map +1 -0
- package/dist/cjs/index.cjs.js +20 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +6 -3
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/localization-9e2ac7f3.js +62 -0
- package/dist/cjs/localization-9e2ac7f3.js.map +1 -0
- package/dist/cjs/object-get-by-path-ee5540a5.js +19 -0
- package/dist/cjs/object-get-by-path-ee5540a5.js.map +1 -0
- package/dist/cjs/p-accordion.cjs.entry.js +5 -11
- package/dist/cjs/p-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/p-attachment.cjs.entry.js +39 -0
- package/dist/cjs/p-attachment.cjs.entry.js.map +1 -0
- package/dist/cjs/p-avatar-group.cjs.entry.js +5 -2
- package/dist/cjs/p-avatar-group.cjs.entry.js.map +1 -0
- package/dist/cjs/p-avatar.cjs.entry.js +45 -0
- package/dist/cjs/p-avatar.cjs.entry.js.map +1 -0
- package/dist/cjs/p-backdrop.cjs.entry.js +43 -0
- package/dist/cjs/p-backdrop.cjs.entry.js.map +1 -0
- package/dist/cjs/p-button_3.cjs.entry.js +142 -148
- package/dist/cjs/p-button_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-calendar.cjs.entry.js +703 -0
- package/dist/cjs/p-calendar.cjs.entry.js.map +1 -0
- package/dist/cjs/p-card-body.cjs.entry.js +4 -5
- package/dist/cjs/p-card-body.cjs.entry.js.map +1 -0
- package/dist/cjs/p-card-container.cjs.entry.js +4 -8
- package/dist/cjs/p-card-container.cjs.entry.js.map +1 -0
- package/dist/cjs/p-card-header.cjs.entry.js +5 -5
- package/dist/cjs/p-card-header.cjs.entry.js.map +1 -0
- package/dist/cjs/p-content-slider.cjs.entry.js +115 -56
- package/dist/cjs/p-content-slider.cjs.entry.js.map +1 -0
- package/dist/cjs/p-counter.cjs.entry.js +4 -8
- package/dist/cjs/p-counter.cjs.entry.js.map +1 -0
- package/dist/cjs/p-datepicker.cjs.entry.js +3043 -0
- package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -0
- package/dist/cjs/p-divider.cjs.entry.js +4 -2
- package/dist/cjs/p-divider.cjs.entry.js.map +1 -0
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +51 -0
- package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-drawer.cjs.entry.js +65 -0
- package/dist/cjs/p-drawer.cjs.entry.js.map +1 -0
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +7 -3
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +1 -0
- package/dist/cjs/p-dropdown_2.cjs.entry.js +163 -0
- package/dist/cjs/p-dropdown_2.cjs.entry.js.map +1 -0
- package/dist/cjs/p-helper_3.cjs.entry.js +150 -0
- package/dist/cjs/p-helper_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-illustration_6.cjs.entry.js +2840 -0
- package/dist/cjs/p-illustration_6.cjs.entry.js.map +1 -0
- package/dist/cjs/p-info-panel.cjs.entry.js +6 -8
- package/dist/cjs/p-info-panel.cjs.entry.js.map +1 -0
- package/dist/cjs/p-label_3.cjs.entry.js +65 -0
- package/dist/cjs/p-label_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-layout.cjs.entry.js +4 -5
- package/dist/cjs/p-layout.cjs.entry.js.map +1 -0
- package/dist/cjs/p-modal-body_4.cjs.entry.js +79 -0
- package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -0
- package/dist/cjs/p-modal.cjs.entry.js +34 -21
- package/dist/cjs/p-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/p-navbar.cjs.entry.js +5 -9
- package/dist/cjs/p-navbar.cjs.entry.js.map +1 -0
- package/dist/cjs/p-navigation-item.cjs.entry.js +8 -5
- package/dist/cjs/p-navigation-item.cjs.entry.js.map +1 -0
- package/dist/cjs/p-page-size-select_3.cjs.entry.js +224 -0
- package/dist/cjs/p-page-size-select_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-profile.cjs.entry.js +14 -15
- package/dist/cjs/p-profile.cjs.entry.js.map +1 -0
- package/dist/cjs/p-select.cjs.entry.js +245 -0
- package/dist/cjs/p-select.cjs.entry.js.map +1 -0
- package/dist/cjs/p-slider-indicator.cjs.entry.js +4 -5
- package/dist/cjs/p-slider-indicator.cjs.entry.js.map +1 -0
- package/dist/cjs/p-status.cjs.entry.js +7 -5
- package/dist/cjs/p-status.cjs.entry.js.map +1 -0
- package/dist/cjs/p-stepper-item.cjs.entry.js +26 -0
- package/dist/cjs/p-stepper-item.cjs.entry.js.map +1 -0
- package/dist/cjs/p-stepper-line.cjs.entry.js +23 -0
- package/dist/cjs/p-stepper-line.cjs.entry.js.map +1 -0
- package/dist/cjs/p-stepper.cjs.entry.js +53 -44
- package/dist/cjs/p-stepper.cjs.entry.js.map +1 -0
- package/dist/cjs/p-tab-group.cjs.entry.js +11 -10
- package/dist/cjs/p-tab-group.cjs.entry.js.map +1 -0
- package/dist/cjs/p-tab-item.cjs.entry.js +4 -5
- package/dist/cjs/p-tab-item.cjs.entry.js.map +1 -0
- package/dist/cjs/p-table-column.cjs.entry.js +30 -0
- package/dist/cjs/p-table-column.cjs.entry.js.map +1 -0
- package/dist/cjs/p-table.cjs.entry.js +360 -0
- package/dist/cjs/p-table.cjs.entry.js.map +1 -0
- package/dist/cjs/p-toast-container.cjs.entry.js +22 -0
- package/dist/cjs/p-toast-container.cjs.entry.js.map +1 -0
- package/dist/cjs/p-toast.cjs.entry.js +35 -0
- package/dist/cjs/p-toast.cjs.entry.js.map +1 -0
- package/dist/cjs/p-tooltip.cjs.entry.js +59 -61
- package/dist/cjs/p-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/paperless.cjs.js +12 -3
- package/dist/cjs/paperless.cjs.js.map +1 -0
- package/dist/collection/assets/icons/bread.svg +5 -12
- package/dist/collection/assets/icons/camera.svg +10 -0
- package/dist/collection/assets/icons/car.svg +5 -12
- package/dist/collection/assets/icons/fa/building.svg +3 -0
- package/dist/collection/assets/icons/fa/buildings.svg +3 -0
- package/dist/collection/assets/icons/fa/piggy.svg +3 -0
- package/dist/collection/assets/icons/filter.svg +6 -13
- package/dist/collection/assets/icons/notification.svg +10 -0
- package/dist/collection/assets/icons/reload.svg +10 -0
- package/dist/collection/assets/icons/search.svg +5 -12
- package/dist/collection/assets/illustrations/empty-state-add.svg +65 -0
- package/dist/collection/assets/illustrations/empty-state-overview.svg +58 -0
- package/dist/collection/assets/illustrations/empty-state-search.svg +88 -0
- package/dist/collection/assets/images/helper/helper-hover.svg +6 -6
- package/dist/collection/assets/images/helper/helper.svg +2 -2
- package/dist/collection/collection-manifest.json +23 -4
- package/dist/collection/components/atoms/avatar/avatar.component.css +1 -24
- package/dist/collection/components/atoms/avatar/avatar.component.js +105 -89
- package/dist/collection/components/atoms/avatar/avatar.component.js.map +1 -0
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.css +1 -18
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +37 -31
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.js.map +1 -0
- package/dist/collection/components/atoms/backdrop/backdrop.component.css +1 -0
- package/dist/collection/components/atoms/backdrop/backdrop.component.js +149 -0
- package/dist/collection/components/atoms/backdrop/backdrop.component.js.map +1 -0
- package/dist/collection/components/atoms/button/button.component.css +1 -95
- package/dist/collection/components/atoms/button/button.component.js +305 -319
- package/dist/collection/components/atoms/button/button.component.js.map +1 -0
- package/dist/collection/components/atoms/card-body/card-body.component.css +1 -9
- package/dist/collection/components/atoms/card-body/card-body.component.js +35 -32
- package/dist/collection/components/atoms/card-body/card-body.component.js.map +1 -0
- package/dist/collection/components/atoms/card-container/card-container.component.css +1 -17
- package/dist/collection/components/atoms/card-container/card-container.component.js +52 -52
- package/dist/collection/components/atoms/card-container/card-container.component.js.map +1 -0
- package/dist/collection/components/atoms/card-header/card-header.component.css +1 -17
- package/dist/collection/components/atoms/card-header/card-header.component.js +52 -51
- package/dist/collection/components/atoms/card-header/card-header.component.js.map +1 -0
- package/dist/collection/components/atoms/counter/counter.component.css +1 -30
- package/dist/collection/components/atoms/counter/counter.component.js +52 -52
- package/dist/collection/components/atoms/counter/counter.component.js.map +1 -0
- package/dist/collection/components/atoms/divider/divider.component.css +1 -10
- package/dist/collection/components/atoms/divider/divider.component.js +13 -11
- package/dist/collection/components/atoms/divider/divider.component.js.map +1 -0
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.css +1 -0
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.js +44 -0
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.js.map +1 -0
- package/dist/collection/components/atoms/drawer-container/drawer-container.component.css +1 -0
- package/dist/collection/components/atoms/drawer-container/drawer-container.component.js +48 -0
- package/dist/collection/components/atoms/drawer-container/drawer-container.component.js.map +1 -0
- package/dist/collection/components/atoms/drawer-header/drawer-header.component.css +1 -0
- package/dist/collection/components/atoms/drawer-header/drawer-header.component.js +66 -0
- package/dist/collection/components/atoms/drawer-header/drawer-header.component.js.map +1 -0
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -6
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +57 -9
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js.map +1 -0
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -13
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +74 -52
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -0
- package/dist/collection/components/atoms/helper/helper.component.css +1 -7
- package/dist/collection/components/atoms/helper/helper.component.js +39 -39
- package/dist/collection/components/atoms/helper/helper.component.js.map +1 -0
- package/dist/collection/components/atoms/icon/icon.component.css +1 -1
- package/dist/collection/components/atoms/icon/icon.component.js +101 -100
- package/dist/collection/components/atoms/icon/icon.component.js.map +1 -0
- package/dist/collection/components/atoms/illustration/illustration.component.js +30 -23
- package/dist/collection/components/atoms/illustration/illustration.component.js.map +1 -0
- package/dist/collection/components/atoms/info-panel/info-panel.component.css +1 -28
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +86 -89
- package/dist/collection/components/atoms/info-panel/info-panel.component.js.map +1 -0
- package/dist/collection/components/atoms/label/label.component.css +1 -0
- package/dist/collection/components/atoms/label/label.component.js +171 -0
- package/dist/collection/components/atoms/label/label.component.js.map +1 -0
- package/dist/collection/components/atoms/layout/layout.component.css +1 -73
- package/dist/collection/components/atoms/layout/layout.component.js +35 -38
- package/dist/collection/components/atoms/layout/layout.component.js.map +1 -0
- package/dist/collection/components/atoms/loader/loader.component.css +1 -26
- package/dist/collection/components/atoms/loader/loader.component.js +113 -114
- package/dist/collection/components/atoms/loader/loader.component.js.map +1 -0
- package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -7
- package/dist/collection/components/atoms/modal-body/modal-body.component.js +53 -31
- package/dist/collection/components/atoms/modal-body/modal-body.component.js.map +1 -0
- package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -6
- package/dist/collection/components/atoms/modal-container/modal-container.component.js +53 -31
- package/dist/collection/components/atoms/modal-container/modal-container.component.js.map +1 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -8
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +13 -36
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js.map +1 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -16
- package/dist/collection/components/atoms/modal-header/modal-header.component.js +56 -54
- package/dist/collection/components/atoms/modal-header/modal-header.component.js.map +1 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -16
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +35 -32
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js.map +1 -0
- package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -5
- package/dist/collection/components/atoms/segment-container/segment-container.component.js +13 -9
- package/dist/collection/components/atoms/segment-container/segment-container.component.js.map +1 -0
- package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -21
- package/dist/collection/components/atoms/segment-item/segment-item.component.js +97 -90
- package/dist/collection/components/atoms/segment-item/segment-item.component.js.map +1 -0
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.css +1 -7
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +34 -30
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js.map +1 -0
- package/dist/collection/components/atoms/status/status.component.css +1 -16
- package/dist/collection/components/atoms/status/status.component.js +98 -93
- package/dist/collection/components/atoms/status/status.component.js.map +1 -0
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.css +1 -59
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +104 -93
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js.map +1 -0
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.css +1 -18
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +51 -50
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.js.map +1 -0
- package/dist/collection/components/atoms/tab-group/tab-group.component.js +3 -11
- package/dist/collection/components/atoms/tab-group/tab-group.component.js.map +1 -0
- package/dist/collection/components/atoms/tab-item/tab-item.component.css +1 -10
- package/dist/collection/components/atoms/tab-item/tab-item.component.js +35 -32
- package/dist/collection/components/atoms/tab-item/tab-item.component.js.map +1 -0
- package/dist/collection/components/atoms/table-container/table-container.component.css +1 -0
- package/dist/collection/components/atoms/table-container/table-container.component.js +19 -0
- package/dist/collection/components/atoms/table-container/table-container.component.js.map +1 -0
- package/dist/collection/components/atoms/toast-container/toast-container.component.css +1 -0
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +44 -0
- package/dist/collection/components/atoms/toast-container/toast-container.component.js.map +1 -0
- package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -43
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +255 -235
- package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -0
- package/dist/collection/components/helpers/table-column/table-column.component.js +189 -0
- package/dist/collection/components/helpers/table-column/table-column.component.js.map +1 -0
- package/dist/collection/components/molecules/accordion/accordion.component.css +1 -3
- package/dist/collection/components/molecules/accordion/accordion.component.js +103 -108
- package/dist/collection/components/molecules/accordion/accordion.component.js.map +1 -0
- package/dist/collection/components/molecules/attachment/attachment.component.css +1 -0
- package/dist/collection/components/molecules/attachment/attachment.component.js +145 -0
- package/dist/collection/components/molecules/attachment/attachment.component.js.map +1 -0
- package/dist/collection/components/molecules/calendar/calendar.component.css +1 -0
- package/dist/collection/components/molecules/calendar/calendar.component.js +515 -0
- package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.css +1 -26
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +227 -139
- package/dist/collection/components/molecules/content-slider/content-slider.component.js.map +1 -0
- package/dist/collection/components/molecules/datepicker/datepicker.component.css +1 -0
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +527 -0
- package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -12
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +289 -187
- package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -0
- package/dist/collection/components/molecules/input-error/input-error.component.js +60 -0
- package/dist/collection/components/molecules/input-error/input-error.component.js.map +1 -0
- package/dist/collection/components/molecules/input-group/input-group.component.css +1 -204
- package/dist/collection/components/molecules/input-group/input-group.component.js +366 -227
- package/dist/collection/components/molecules/input-group/input-group.component.js.map +1 -0
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +1 -22
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +107 -104
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js.map +1 -0
- package/dist/collection/components/molecules/page-size-select/constants.js +3 -0
- package/dist/collection/components/molecules/page-size-select/constants.js.map +1 -0
- package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +207 -0
- package/dist/collection/components/molecules/page-size-select/page-size-select.component.js.map +1 -0
- package/dist/collection/components/molecules/pagination/pagination.component.css +1 -3
- package/dist/collection/components/molecules/pagination/pagination.component.js +119 -94
- package/dist/collection/components/molecules/pagination/pagination.component.js.map +1 -0
- package/dist/collection/components/molecules/profile/profile.component.css +1 -36
- package/dist/collection/components/molecules/profile/profile.component.js +66 -68
- package/dist/collection/components/molecules/profile/profile.component.js.map +1 -0
- package/dist/collection/components/molecules/select/select.component.css +1 -0
- package/dist/collection/components/molecules/select/select.component.js +739 -0
- package/dist/collection/components/molecules/select/select.component.js.map +1 -0
- package/dist/collection/components/molecules/stepper/stepper.component.css +1 -12
- package/dist/collection/components/molecules/stepper/stepper.component.js +120 -85
- package/dist/collection/components/molecules/stepper/stepper.component.js.map +1 -0
- package/dist/collection/components/molecules/table-cell/table-cell.component.css +1 -0
- package/dist/collection/components/molecules/table-cell/table-cell.component.js +306 -0
- package/dist/collection/components/molecules/table-cell/table-cell.component.js.map +1 -0
- package/dist/collection/components/molecules/table-footer/table-footer.component.css +1 -0
- package/dist/collection/components/molecules/table-footer/table-footer.component.js +276 -0
- package/dist/collection/components/molecules/table-footer/table-footer.component.js.map +1 -0
- package/dist/collection/components/molecules/table-header/table-header.component.css +1 -0
- package/dist/collection/components/molecules/table-header/table-header.component.js +452 -0
- package/dist/collection/components/molecules/table-header/table-header.component.js.map +1 -0
- package/dist/collection/components/molecules/table-row/table-row.component.css +1 -0
- package/dist/collection/components/molecules/table-row/table-row.component.js +65 -0
- package/dist/collection/components/molecules/table-row/table-row.component.js.map +1 -0
- package/dist/collection/components/molecules/toast/toast.component.css +1 -0
- package/dist/collection/components/molecules/toast/toast.component.js +197 -0
- package/dist/collection/components/molecules/toast/toast.component.js.map +1 -0
- package/dist/collection/components/organisms/drawer/drawer.component.css +1 -0
- package/dist/collection/components/organisms/drawer/drawer.component.js +234 -0
- package/dist/collection/components/organisms/drawer/drawer.component.js.map +1 -0
- package/dist/collection/components/organisms/modal/modal.component.js +228 -144
- package/dist/collection/components/organisms/modal/modal.component.js.map +1 -0
- package/dist/collection/components/organisms/navbar/navbar.component.css +1 -56
- package/dist/collection/components/organisms/navbar/navbar.component.js +72 -81
- package/dist/collection/components/organisms/navbar/navbar.component.js.map +1 -0
- package/dist/collection/components/organisms/table/table.component.css +1 -0
- package/dist/collection/components/organisms/table/table.component.js +1300 -0
- package/dist/collection/components/organisms/table/table.component.js.map +1 -0
- package/dist/collection/index.js +3 -1
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/tailwind/animation.js +72 -2
- package/dist/collection/tailwind/border-radius.js +1 -0
- package/dist/collection/tailwind/height.js +5 -0
- package/dist/collection/tailwind/plugins/safe-area.js +98 -0
- package/dist/collection/tailwind/screens.js +6 -6
- package/dist/collection/tailwind/shadows.js +2 -0
- package/dist/collection/tailwind/width.js +19 -13
- package/dist/collection/tailwind/z-index.js +15 -1
- package/dist/collection/tailwind.config.js +9 -2
- package/dist/collection/types/index.js +3 -0
- package/dist/collection/types/index.js.map +1 -0
- package/dist/collection/types/table.js +4 -0
- package/dist/collection/types/table.js.map +1 -0
- package/dist/collection/types/tailwind.js +2 -0
- package/dist/collection/types/tailwind.js.map +1 -0
- package/dist/collection/utils/child-of.js +1 -0
- package/dist/collection/utils/child-of.js.map +1 -0
- package/dist/collection/utils/icons.js +13 -0
- package/dist/collection/utils/icons.js.map +1 -0
- package/dist/collection/utils/illustrations.js +7 -0
- package/dist/collection/utils/illustrations.js.map +1 -0
- package/dist/collection/utils/index.js +7 -0
- package/dist/collection/utils/index.js.map +1 -0
- package/dist/collection/utils/localization.js +56 -0
- package/dist/collection/utils/localization.js.map +1 -0
- package/dist/collection/utils/object-get-by-path.js +9 -0
- package/dist/collection/utils/object-get-by-path.js.map +1 -0
- package/dist/collection/utils/transformers.js +5 -0
- package/dist/collection/utils/transformers.js.map +1 -0
- package/dist/components/backdrop.component.js +59 -0
- package/dist/components/backdrop.component.js.map +1 -0
- package/dist/components/button.component.js +16 -33
- package/dist/components/button.component.js.map +1 -0
- package/dist/components/calendar.component.js +3031 -0
- package/dist/components/calendar.component.js.map +1 -0
- package/dist/components/child-of.js +9 -0
- package/dist/components/child-of.js.map +1 -0
- package/dist/components/counter.component.js +4 -8
- package/dist/components/counter.component.js.map +1 -0
- package/dist/components/divider.component.js +4 -2
- package/dist/components/divider.component.js.map +1 -0
- package/dist/components/drawer-body.component.js +35 -0
- package/dist/components/drawer-body.component.js.map +1 -0
- package/dist/components/drawer-container.component.js +34 -0
- package/dist/components/drawer-container.component.js.map +1 -0
- package/dist/components/drawer-header.component.js +54 -0
- package/dist/components/drawer-header.component.js.map +1 -0
- package/dist/components/dropdown-menu-container.component.js +11 -4
- package/dist/components/dropdown-menu-container.component.js.map +1 -0
- package/dist/components/dropdown-menu-item.component.js +45 -0
- package/dist/components/dropdown-menu-item.component.js.map +1 -0
- package/dist/components/dropdown.component.js +77 -72
- package/dist/components/dropdown.component.js.map +1 -0
- package/dist/components/floating-ui.dom.esm.js +1327 -0
- package/dist/components/floating-ui.dom.esm.js.map +1 -0
- package/dist/components/helper.component.js +4 -5
- package/dist/components/helper.component.js.map +1 -0
- package/dist/components/icon.component.js +77 -60
- package/dist/components/icon.component.js.map +1 -0
- package/dist/{cjs/p-illustration.cjs.entry.js → components/illustration.component.js} +247 -16
- package/dist/components/illustration.component.js.map +1 -0
- package/dist/components/index.d.ts +9 -45
- package/dist/components/index.js +13 -43
- package/dist/components/index.js.map +1 -0
- package/dist/components/input-error.component.js +50 -0
- package/dist/components/input-error.component.js.map +1 -0
- package/dist/components/input-group.component.js +172 -0
- package/dist/components/input-group.component.js.map +1 -0
- package/dist/components/label.component.js +54 -0
- package/dist/components/label.component.js.map +1 -0
- package/dist/components/loader.component.js +12 -14
- package/dist/components/loader.component.js.map +1 -0
- package/dist/components/localization.js +59 -0
- package/dist/components/localization.js.map +1 -0
- package/dist/components/modal-body.component.js +8 -7
- package/dist/components/modal-body.component.js.map +1 -0
- package/dist/components/modal-container.component.js +8 -7
- package/dist/components/modal-container.component.js.map +1 -0
- package/dist/components/modal-footer.component.js +6 -10
- package/dist/components/modal-footer.component.js.map +1 -0
- package/dist/components/modal-header.component.js +21 -10
- package/dist/components/modal-header.component.js.map +1 -0
- package/dist/components/object-get-by-path.js +16 -0
- package/dist/components/object-get-by-path.js.map +1 -0
- package/dist/components/p-accordion.js +5 -11
- package/dist/components/p-accordion.js.map +1 -0
- package/dist/components/{p-modal-backdrop.d.ts → p-attachment.d.ts} +4 -4
- package/dist/components/p-attachment.js +88 -0
- package/dist/components/p-attachment.js.map +1 -0
- package/dist/components/p-avatar-group.js +5 -2
- package/dist/components/p-avatar-group.js.map +1 -0
- package/dist/components/p-avatar.js +59 -1
- package/dist/components/p-avatar.js.map +1 -0
- package/dist/components/p-backdrop.d.ts +11 -0
- package/dist/components/p-backdrop.js +8 -0
- package/dist/components/p-backdrop.js.map +1 -0
- package/dist/components/p-button.js +2 -0
- package/dist/components/p-button.js.map +1 -0
- package/dist/components/p-calendar.d.ts +11 -0
- package/dist/components/p-calendar.js +8 -0
- package/dist/components/p-calendar.js.map +1 -0
- package/dist/components/p-card-body.js +4 -5
- package/dist/components/p-card-body.js.map +1 -0
- package/dist/components/p-card-container.js +4 -8
- package/dist/components/p-card-container.js.map +1 -0
- package/dist/components/p-card-header.js +5 -5
- package/dist/components/p-card-header.js.map +1 -0
- package/dist/components/p-content-slider.js +117 -57
- package/dist/components/p-content-slider.js.map +1 -0
- package/dist/components/p-counter.js +2 -0
- package/dist/components/p-counter.js.map +1 -0
- package/dist/components/p-datepicker.d.ts +11 -0
- package/dist/components/p-datepicker.js +3125 -0
- package/dist/components/p-datepicker.js.map +1 -0
- package/dist/components/p-divider.js +2 -0
- package/dist/components/p-divider.js.map +1 -0
- package/dist/components/p-drawer-body.d.ts +11 -0
- package/dist/components/p-drawer-body.js +8 -0
- package/dist/components/p-drawer-body.js.map +1 -0
- package/dist/components/p-drawer-container.d.ts +11 -0
- package/dist/components/p-drawer-container.js +8 -0
- package/dist/components/p-drawer-container.js.map +1 -0
- package/dist/components/p-drawer-header.d.ts +11 -0
- package/dist/components/p-drawer-header.js +8 -0
- package/dist/components/p-drawer-header.js.map +1 -0
- package/dist/components/p-drawer.d.ts +11 -0
- package/dist/components/p-drawer.js +130 -0
- package/dist/components/p-drawer.js.map +1 -0
- package/dist/components/p-dropdown-menu-container.js +2 -0
- package/dist/components/p-dropdown-menu-container.js.map +1 -0
- package/dist/components/p-dropdown-menu-item.js +3 -41
- package/dist/components/p-dropdown-menu-item.js.map +1 -0
- package/dist/components/p-dropdown.js +2 -0
- package/dist/components/p-dropdown.js.map +1 -0
- package/dist/components/p-helper.js +2 -0
- package/dist/components/p-helper.js.map +1 -0
- package/dist/components/p-icon.js +2 -0
- package/dist/components/p-icon.js.map +1 -0
- package/dist/components/p-illustration.js +3 -1435
- package/dist/components/p-illustration.js.map +1 -0
- package/dist/components/p-info-panel.js +6 -8
- package/dist/components/p-info-panel.js.map +1 -0
- package/dist/components/p-input-error.d.ts +11 -0
- package/dist/components/p-input-error.js +8 -0
- package/dist/components/p-input-error.js.map +1 -0
- package/dist/components/p-input-group.js +3 -91
- package/dist/components/p-input-group.js.map +1 -0
- package/dist/components/{p-tag.d.ts → p-label.d.ts} +4 -4
- package/dist/components/p-label.js +8 -0
- package/dist/components/p-label.js.map +1 -0
- package/dist/components/p-layout.js +4 -5
- package/dist/components/p-layout.js.map +1 -0
- package/dist/components/p-loader.js +2 -0
- package/dist/components/p-loader.js.map +1 -0
- package/dist/components/p-modal-body.js +2 -0
- package/dist/components/p-modal-body.js.map +1 -0
- package/dist/components/p-modal-container.js +2 -0
- package/dist/components/p-modal-container.js.map +1 -0
- package/dist/components/p-modal-footer.js +2 -0
- package/dist/components/p-modal-footer.js.map +1 -0
- package/dist/components/p-modal-header.js +2 -0
- package/dist/components/p-modal-header.js.map +1 -0
- package/dist/components/p-modal.js +55 -26
- package/dist/components/p-modal.js.map +1 -0
- package/dist/components/p-navbar.js +12 -10
- package/dist/components/p-navbar.js.map +1 -0
- package/dist/components/p-navigation-item.js +8 -5
- package/dist/components/p-navigation-item.js.map +1 -0
- package/dist/components/p-page-size-select.d.ts +11 -0
- package/dist/components/p-page-size-select.js +8 -0
- package/dist/components/p-page-size-select.js.map +1 -0
- package/dist/components/p-pagination-item.js +2 -0
- package/dist/components/p-pagination-item.js.map +1 -0
- package/dist/components/p-pagination.js +3 -195
- package/dist/components/p-pagination.js.map +1 -0
- package/dist/components/p-profile.js +15 -22
- package/dist/components/p-profile.js.map +1 -0
- package/dist/components/p-segment-container.js +3 -27
- package/dist/components/p-segment-container.js.map +1 -0
- package/dist/components/p-segment-item.js +3 -49
- package/dist/components/p-segment-item.js.map +1 -0
- package/dist/components/p-select.d.ts +11 -0
- package/dist/components/p-select.js +340 -0
- package/dist/components/p-select.js.map +1 -0
- package/dist/components/p-slider-indicator.js +2 -0
- package/dist/components/p-slider-indicator.js.map +1 -0
- package/dist/components/p-status.js +7 -5
- package/dist/components/p-status.js.map +1 -0
- package/dist/components/p-stepper-item.js +47 -1
- package/dist/components/p-stepper-item.js.map +1 -0
- package/dist/components/p-stepper-line.js +2 -0
- package/dist/components/p-stepper-line.js.map +1 -0
- package/dist/components/p-stepper.js +56 -58
- package/dist/components/p-stepper.js.map +1 -0
- package/dist/components/p-tab-group.js +4 -5
- package/dist/components/p-tab-group.js.map +1 -0
- package/dist/components/p-tab-item.js +4 -5
- package/dist/components/p-tab-item.js.map +1 -0
- package/dist/components/p-table-cell.d.ts +11 -0
- package/dist/components/p-table-cell.js +8 -0
- package/dist/components/p-table-cell.js.map +1 -0
- package/dist/components/p-table-column.d.ts +11 -0
- package/dist/components/p-table-column.js +52 -0
- package/dist/components/p-table-column.js.map +1 -0
- package/dist/components/p-table-container.d.ts +11 -0
- package/dist/components/p-table-container.js +8 -0
- package/dist/components/p-table-container.js.map +1 -0
- package/dist/components/p-table-footer.d.ts +11 -0
- package/dist/components/p-table-footer.js +8 -0
- package/dist/components/p-table-footer.js.map +1 -0
- package/dist/components/p-table-header.d.ts +11 -0
- package/dist/components/p-table-header.js +8 -0
- package/dist/components/p-table-header.js.map +1 -0
- package/dist/components/p-table-row.d.ts +11 -0
- package/dist/components/p-table-row.js +8 -0
- package/dist/components/p-table-row.js.map +1 -0
- package/dist/components/p-table.d.ts +11 -0
- package/dist/components/p-table.js +552 -0
- package/dist/components/p-table.js.map +1 -0
- package/dist/components/p-toast-container.d.ts +11 -0
- package/dist/components/p-toast-container.js +38 -0
- package/dist/components/p-toast-container.js.map +1 -0
- package/dist/components/p-toast.d.ts +11 -0
- package/dist/components/p-toast.js +75 -0
- package/dist/components/p-toast.js.map +1 -0
- package/dist/components/p-tooltip.js +2 -0
- package/dist/components/p-tooltip.js.map +1 -0
- package/dist/components/page-size-select.component.js +107 -0
- package/dist/components/page-size-select.component.js.map +1 -0
- package/dist/components/pagination-item.component.js +4 -5
- package/dist/components/pagination-item.component.js.map +1 -0
- package/dist/components/pagination.component.js +196 -0
- package/dist/components/pagination.component.js.map +1 -0
- package/dist/components/segment-container.component.js +31 -0
- package/dist/components/segment-container.component.js.map +1 -0
- package/dist/components/segment-item.component.js +53 -0
- package/dist/components/segment-item.component.js.map +1 -0
- package/dist/components/slider-indicator.component.js +4 -5
- package/dist/components/slider-indicator.component.js.map +1 -0
- package/dist/components/stepper-line.component.js +4 -8
- package/dist/components/stepper-line.component.js.map +1 -0
- package/dist/components/table-cell.component.js +179 -0
- package/dist/components/table-cell.component.js.map +1 -0
- package/dist/components/table-container.component.js +32 -0
- package/dist/components/table-container.component.js.map +1 -0
- package/dist/components/table-footer.component.js +129 -0
- package/dist/components/table-footer.component.js.map +1 -0
- package/dist/components/table-header.component.js +1070 -0
- package/dist/components/table-header.component.js.map +1 -0
- package/dist/components/table-row.component.js +45 -0
- package/dist/components/table-row.component.js.map +1 -0
- package/dist/components/tooltip.component.js +60 -61
- package/dist/components/tooltip.component.js.map +1 -0
- package/dist/esm/child-of-90a8c4b5.js +9 -0
- package/dist/esm/child-of-90a8c4b5.js.map +1 -0
- package/dist/esm/constants-826f9460.js +6 -0
- package/dist/esm/constants-826f9460.js.map +1 -0
- package/dist/esm/floating-ui.dom.esm-314a52b2.js +1327 -0
- package/dist/esm/floating-ui.dom.esm-314a52b2.js.map +1 -0
- package/dist/esm/{index-9062156b.js → index-2c1bdb40.js} +980 -340
- package/dist/esm/index-2c1bdb40.js.map +1 -0
- package/dist/esm/index-934ac6da.js +2300 -0
- package/dist/esm/index-934ac6da.js.map +1 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +6 -3
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/localization-901dc2d3.js +59 -0
- package/dist/esm/localization-901dc2d3.js.map +1 -0
- package/dist/esm/object-get-by-path-8f4f94b8.js +16 -0
- package/dist/esm/object-get-by-path-8f4f94b8.js.map +1 -0
- package/dist/esm/p-accordion.entry.js +5 -11
- package/dist/esm/p-accordion.entry.js.map +1 -0
- package/dist/esm/p-attachment.entry.js +35 -0
- package/dist/esm/p-attachment.entry.js.map +1 -0
- package/dist/esm/p-avatar-group.entry.js +5 -2
- package/dist/esm/p-avatar-group.entry.js.map +1 -0
- package/dist/esm/p-avatar.entry.js +41 -0
- package/dist/esm/p-avatar.entry.js.map +1 -0
- package/dist/esm/p-backdrop.entry.js +39 -0
- package/dist/esm/p-backdrop.entry.js.map +1 -0
- package/dist/esm/p-button_3.entry.js +142 -148
- package/dist/esm/p-button_3.entry.js.map +1 -0
- package/dist/esm/p-calendar.entry.js +699 -0
- package/dist/esm/p-calendar.entry.js.map +1 -0
- package/dist/esm/p-card-body.entry.js +4 -5
- package/dist/esm/p-card-body.entry.js.map +1 -0
- package/dist/esm/p-card-container.entry.js +4 -8
- package/dist/esm/p-card-container.entry.js.map +1 -0
- package/dist/esm/p-card-header.entry.js +5 -5
- package/dist/esm/p-card-header.entry.js.map +1 -0
- package/dist/esm/p-content-slider.entry.js +115 -56
- package/dist/esm/p-content-slider.entry.js.map +1 -0
- package/dist/esm/p-counter.entry.js +4 -8
- package/dist/esm/p-counter.entry.js.map +1 -0
- package/dist/esm/p-datepicker.entry.js +3039 -0
- package/dist/esm/p-datepicker.entry.js.map +1 -0
- package/dist/esm/p-divider.entry.js +4 -2
- package/dist/esm/p-divider.entry.js.map +1 -0
- package/dist/esm/p-drawer-body_3.entry.js +45 -0
- package/dist/esm/p-drawer-body_3.entry.js.map +1 -0
- package/dist/esm/p-drawer.entry.js +61 -0
- package/dist/esm/p-drawer.entry.js.map +1 -0
- package/dist/esm/p-dropdown-menu-container.entry.js +7 -3
- package/dist/esm/p-dropdown-menu-container.entry.js.map +1 -0
- package/dist/esm/p-dropdown_2.entry.js +158 -0
- package/dist/esm/p-dropdown_2.entry.js.map +1 -0
- package/dist/esm/p-helper_3.entry.js +144 -0
- package/dist/esm/p-helper_3.entry.js.map +1 -0
- package/dist/esm/{p-illustration.entry.js → p-illustration_6.entry.js} +1417 -8
- package/dist/esm/p-illustration_6.entry.js.map +1 -0
- package/dist/esm/p-info-panel.entry.js +6 -8
- package/dist/esm/p-info-panel.entry.js.map +1 -0
- package/dist/esm/p-label_3.entry.js +59 -0
- package/dist/esm/p-label_3.entry.js.map +1 -0
- package/dist/esm/p-layout.entry.js +4 -5
- package/dist/esm/p-layout.entry.js.map +1 -0
- package/dist/esm/p-modal-body_4.entry.js +72 -0
- package/dist/esm/p-modal-body_4.entry.js.map +1 -0
- package/dist/esm/p-modal.entry.js +34 -21
- package/dist/esm/p-modal.entry.js.map +1 -0
- package/dist/esm/p-navbar.entry.js +5 -9
- package/dist/esm/p-navbar.entry.js.map +1 -0
- package/dist/esm/p-navigation-item.entry.js +8 -5
- package/dist/esm/p-navigation-item.entry.js.map +1 -0
- package/dist/esm/p-page-size-select_3.entry.js +218 -0
- package/dist/esm/p-page-size-select_3.entry.js.map +1 -0
- package/dist/esm/p-profile.entry.js +14 -15
- package/dist/esm/p-profile.entry.js.map +1 -0
- package/dist/esm/p-select.entry.js +241 -0
- package/dist/esm/p-select.entry.js.map +1 -0
- package/dist/esm/p-slider-indicator.entry.js +4 -5
- package/dist/esm/p-slider-indicator.entry.js.map +1 -0
- package/dist/esm/p-status.entry.js +7 -5
- package/dist/esm/p-status.entry.js.map +1 -0
- package/dist/esm/p-stepper-item.entry.js +22 -0
- package/dist/esm/p-stepper-item.entry.js.map +1 -0
- package/dist/esm/p-stepper-line.entry.js +19 -0
- package/dist/esm/p-stepper-line.entry.js.map +1 -0
- package/dist/esm/p-stepper.entry.js +53 -44
- package/dist/esm/p-stepper.entry.js.map +1 -0
- package/dist/esm/p-tab-group.entry.js +11 -10
- package/dist/esm/p-tab-group.entry.js.map +1 -0
- package/dist/esm/p-tab-item.entry.js +4 -5
- package/dist/esm/p-tab-item.entry.js.map +1 -0
- package/dist/esm/p-table-column.entry.js +26 -0
- package/dist/esm/p-table-column.entry.js.map +1 -0
- package/dist/esm/p-table.entry.js +356 -0
- package/dist/esm/p-table.entry.js.map +1 -0
- package/dist/esm/p-toast-container.entry.js +18 -0
- package/dist/esm/p-toast-container.entry.js.map +1 -0
- package/dist/esm/p-toast.entry.js +31 -0
- package/dist/esm/p-toast.entry.js.map +1 -0
- package/dist/esm/p-tooltip.entry.js +59 -61
- package/dist/esm/p-tooltip.entry.js.map +1 -0
- package/dist/esm/paperless.js +9 -3
- package/dist/esm/paperless.js.map +1 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +2 -0
- package/dist/paperless/index.esm.js.map +1 -0
- package/dist/paperless/p-07259c61.entry.js +2 -0
- package/dist/paperless/p-07259c61.entry.js.map +1 -0
- package/dist/paperless/p-11f5c8c7.entry.js +2 -0
- package/dist/paperless/p-11f5c8c7.entry.js.map +1 -0
- package/dist/paperless/p-12171df4.entry.js +2 -0
- package/dist/paperless/p-12171df4.entry.js.map +1 -0
- package/dist/paperless/p-1630e39b.entry.js +2 -0
- package/dist/paperless/p-1630e39b.entry.js.map +1 -0
- package/dist/paperless/p-18c0dd17.entry.js +2 -0
- package/dist/paperless/p-18c0dd17.entry.js.map +1 -0
- package/dist/paperless/p-195632a8.entry.js +2 -0
- package/dist/paperless/p-195632a8.entry.js.map +1 -0
- package/dist/paperless/p-1f55126f.entry.js +2 -0
- package/dist/paperless/p-1f55126f.entry.js.map +1 -0
- package/dist/paperless/p-26da620b.entry.js +2 -0
- package/dist/paperless/p-26da620b.entry.js.map +1 -0
- package/dist/paperless/p-2a668e75.entry.js +2 -0
- package/dist/paperless/p-2a668e75.entry.js.map +1 -0
- package/dist/paperless/p-350d452b.entry.js +2 -0
- package/dist/paperless/p-350d452b.entry.js.map +1 -0
- package/dist/paperless/p-36967a97.entry.js +2 -0
- package/dist/paperless/p-36967a97.entry.js.map +1 -0
- package/dist/paperless/p-3d8b2178.entry.js +2 -0
- package/dist/paperless/p-3d8b2178.entry.js.map +1 -0
- package/dist/paperless/p-47bcc23e.entry.js +2 -0
- package/dist/paperless/p-47bcc23e.entry.js.map +1 -0
- package/dist/paperless/p-47e461b7.entry.js +2 -0
- package/dist/paperless/p-47e461b7.entry.js.map +1 -0
- package/dist/paperless/p-4c51a801.entry.js +2 -0
- package/dist/paperless/p-4c51a801.entry.js.map +1 -0
- package/dist/paperless/p-4e650fe4.js +2 -0
- package/dist/paperless/p-4e650fe4.js.map +1 -0
- package/dist/paperless/p-51408aca.entry.js +2 -0
- package/dist/paperless/p-51408aca.entry.js.map +1 -0
- package/dist/paperless/p-594b28a7.entry.js +2 -0
- package/dist/paperless/p-594b28a7.entry.js.map +1 -0
- package/dist/paperless/p-5c7b20a3.entry.js +2 -0
- package/dist/paperless/p-5c7b20a3.entry.js.map +1 -0
- package/dist/paperless/p-6124f388.entry.js +2 -0
- package/dist/paperless/p-6124f388.entry.js.map +1 -0
- package/dist/paperless/p-6c60fd3d.js +2 -0
- package/dist/paperless/p-6c60fd3d.js.map +1 -0
- package/dist/paperless/p-6ccf5cdd.js +3 -0
- package/dist/paperless/p-6ccf5cdd.js.map +1 -0
- package/dist/paperless/p-6d5aa646.entry.js +2 -0
- package/dist/paperless/p-6d5aa646.entry.js.map +1 -0
- package/dist/paperless/p-6f1352e0.entry.js +2 -0
- package/dist/paperless/p-6f1352e0.entry.js.map +1 -0
- package/dist/paperless/p-8a6728d5.js +2 -0
- package/dist/paperless/p-8a6728d5.js.map +1 -0
- package/dist/paperless/p-910bd6bc.entry.js +2 -0
- package/dist/paperless/p-910bd6bc.entry.js.map +1 -0
- package/dist/paperless/p-91725831.entry.js +2 -0
- package/dist/paperless/p-91725831.entry.js.map +1 -0
- package/dist/paperless/p-946286e2.entry.js +2 -0
- package/dist/paperless/p-946286e2.entry.js.map +1 -0
- package/dist/paperless/p-a1c1d95b.entry.js +2 -0
- package/dist/paperless/p-a1c1d95b.entry.js.map +1 -0
- package/dist/paperless/p-a23ea8fe.entry.js +2 -0
- package/dist/paperless/p-a23ea8fe.entry.js.map +1 -0
- package/dist/paperless/p-abcd80e9.entry.js +2 -0
- package/dist/paperless/p-abcd80e9.entry.js.map +1 -0
- package/dist/paperless/p-ae248aef.js +2 -0
- package/dist/paperless/p-ae248aef.js.map +1 -0
- package/dist/paperless/p-b0398d3b.entry.js +2 -0
- package/dist/paperless/p-b0398d3b.entry.js.map +1 -0
- package/dist/paperless/p-b2bc1d2a.entry.js +2 -0
- package/dist/paperless/p-b2bc1d2a.entry.js.map +1 -0
- package/dist/paperless/p-b5ce8cd4.entry.js +2 -0
- package/dist/paperless/p-b5ce8cd4.entry.js.map +1 -0
- package/dist/paperless/p-b92dd098.entry.js +2 -0
- package/dist/paperless/p-b92dd098.entry.js.map +1 -0
- package/dist/paperless/p-b9f742e0.entry.js +2 -0
- package/dist/paperless/p-b9f742e0.entry.js.map +1 -0
- package/dist/paperless/p-bf0eca4f.entry.js +2 -0
- package/dist/paperless/p-bf0eca4f.entry.js.map +1 -0
- package/dist/paperless/p-ce1abd74.entry.js +2 -0
- package/dist/paperless/p-ce1abd74.entry.js.map +1 -0
- package/dist/paperless/p-ce443f5b.entry.js +2 -0
- package/dist/paperless/p-ce443f5b.entry.js.map +1 -0
- package/dist/paperless/p-da2426c7.js +2 -0
- package/dist/paperless/p-da2426c7.js.map +1 -0
- package/dist/paperless/p-da6e5abd.entry.js +2 -0
- package/dist/paperless/p-da6e5abd.entry.js.map +1 -0
- package/dist/paperless/p-e17560e6.entry.js +2 -0
- package/dist/paperless/p-e17560e6.entry.js.map +1 -0
- package/dist/paperless/p-e1da7376.entry.js +2 -0
- package/dist/paperless/p-e1da7376.entry.js.map +1 -0
- package/dist/paperless/p-e9a1b51e.entry.js +2 -0
- package/dist/paperless/p-e9a1b51e.entry.js.map +1 -0
- package/dist/paperless/p-ec850aca.entry.js +2 -0
- package/dist/paperless/p-ec850aca.entry.js.map +1 -0
- package/dist/paperless/p-ed6edf0a.entry.js +2 -0
- package/dist/paperless/p-ed6edf0a.entry.js.map +1 -0
- package/dist/paperless/p-f47247a6.entry.js +2 -0
- package/dist/paperless/p-f47247a6.entry.js.map +1 -0
- package/dist/paperless/p-fef32402.js +2 -0
- package/dist/paperless/p-fef32402.js.map +1 -0
- package/dist/paperless/paperless.css +1003 -801
- package/dist/paperless/paperless.esm.js +2 -1
- package/dist/paperless/paperless.esm.js.map +1 -0
- package/dist/style/_fonts.scss +70 -0
- package/dist/style/_helpers.scss +5 -0
- package/dist/style/_mixins.scss +1 -0
- package/dist/style/_reset.scss +30 -0
- package/dist/style/_tailwind.scss +3 -0
- package/dist/style/_typograhpy.scss +29 -0
- package/dist/style/_variables.scss +2 -0
- package/dist/style/form/_checkbox.scss +111 -0
- package/dist/style/form/_input.scss +31 -0
- package/dist/style/form/_mixins.scss +114 -0
- package/dist/style/form/_radio.scss +58 -0
- package/dist/style/form/_textarea.scss +18 -0
- package/dist/style/form/index.scss +4 -0
- package/dist/style/mixins/_scrollbar.scss +32 -0
- package/dist/style/paperless.scss +12 -0
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/tailwind/animation.js +72 -2
- package/dist/tailwind/border-radius.js +1 -0
- package/dist/tailwind/height.js +5 -0
- package/dist/tailwind/plugins/safe-area.js +98 -0
- package/dist/tailwind/screens.js +6 -6
- package/dist/tailwind/shadows.js +2 -0
- package/dist/tailwind/width.js +19 -13
- package/dist/tailwind/z-index.js +15 -1
- package/dist/tailwind.config.js +9 -2
- package/dist/types/components/atoms/avatar/avatar.component.d.ts +3 -1
- package/dist/types/components/atoms/backdrop/backdrop.component.d.ts +31 -0
- package/dist/types/components/atoms/button/button.component.d.ts +5 -5
- package/dist/types/components/atoms/drawer-body/drawer-body.component.d.ts +7 -0
- package/dist/types/components/atoms/drawer-container/drawer-container.component.d.ts +7 -0
- package/dist/types/components/atoms/drawer-header/drawer-header.component.d.ts +12 -0
- package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +8 -0
- package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +4 -0
- package/dist/types/components/atoms/helper/helper.component.d.ts +1 -1
- package/dist/types/components/atoms/icon/icon.component.d.ts +3 -3
- package/dist/types/components/atoms/illustration/illustration.component.d.ts +1 -1
- package/dist/types/components/atoms/label/label.component.d.ts +33 -0
- package/dist/types/components/atoms/layout/layout.component.d.ts +1 -1
- package/dist/types/components/atoms/loader/loader.component.d.ts +1 -1
- package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +4 -0
- package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +4 -0
- package/dist/types/components/atoms/modal-footer/modal-footer.component.d.ts +0 -4
- package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +1 -1
- package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +1 -1
- package/dist/types/components/atoms/status/status.component.d.ts +1 -1
- package/dist/types/components/atoms/stepper-item/stepper-item.component.d.ts +4 -0
- package/dist/types/components/atoms/table-container/table-container.component.d.ts +3 -0
- package/dist/types/components/atoms/toast-container/toast-container.component.d.ts +7 -0
- package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +10 -5
- package/dist/types/components/helpers/table-column/table-column.component.d.ts +42 -0
- package/dist/types/components/molecules/attachment/attachment.component.d.ts +28 -0
- package/dist/types/components/molecules/calendar/calendar.component.d.ts +76 -0
- package/dist/types/components/molecules/content-slider/content-slider.component.d.ts +14 -5
- package/dist/types/components/molecules/datepicker/datepicker.component.d.ts +97 -0
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +29 -6
- package/dist/types/components/molecules/input-error/input-error.component.d.ts +12 -0
- package/dist/types/components/molecules/input-group/input-group.component.d.ts +22 -3
- package/dist/types/components/molecules/page-size-select/constants.d.ts +2 -0
- package/dist/types/components/molecules/page-size-select/page-size-select.component.d.ts +50 -0
- package/dist/types/components/molecules/pagination/pagination.component.d.ts +7 -0
- package/dist/types/components/molecules/profile/profile.component.d.ts +2 -1
- package/dist/types/components/molecules/select/select.component.d.ts +141 -0
- package/dist/types/components/molecules/stepper/stepper.component.d.ts +5 -2
- package/dist/types/components/molecules/table-cell/table-cell.component.d.ts +42 -0
- package/dist/types/components/molecules/table-footer/table-footer.component.d.ts +63 -0
- package/dist/types/components/molecules/table-header/table-header.component.d.ts +101 -0
- package/dist/types/components/molecules/table-row/table-row.component.d.ts +11 -0
- package/dist/types/components/molecules/toast/toast.component.d.ts +39 -0
- package/dist/types/components/organisms/drawer/drawer.component.d.ts +52 -0
- package/dist/types/components/organisms/modal/modal.component.d.ts +24 -4
- package/dist/types/components/organisms/table/table.component.d.ts +240 -0
- package/dist/types/components.d.ts +2508 -535
- package/dist/types/index.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +92 -19
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/table.d.ts +29 -0
- package/dist/types/types/tailwind.d.ts +2 -0
- package/dist/types/utils/icons.d.ts +6 -0
- package/dist/types/utils/illustrations.d.ts +3 -0
- package/dist/types/utils/index.d.ts +6 -0
- package/dist/types/utils/localization.d.ts +2 -0
- package/dist/types/utils/object-get-by-path.d.ts +1 -0
- package/dist/types/utils/transformers.d.ts +2 -0
- package/dist/{workbox-5fe694da.js → workbox-bc53c9ad.js} +2 -2
- package/dist/workbox-bc53c9ad.js.map +1 -0
- package/hydrate/index.d.ts +218 -0
- package/hydrate/index.js +21136 -0
- package/hydrate/package.json +6 -0
- package/loader/index.d.ts +9 -0
- package/loader/package.json +1 -0
- package/package.json +24 -18
- package/dist/build/p-113baa35.entry.js +0 -1
- package/dist/build/p-1e7d45e4.entry.js +0 -1
- package/dist/build/p-1ef22f4e.entry.js +0 -1
- package/dist/build/p-2672f14b.entry.js +0 -1
- package/dist/build/p-2beaf0e8.entry.js +0 -1
- package/dist/build/p-3f6c9d44.entry.js +0 -1
- package/dist/build/p-4336cbbc.entry.js +0 -1
- package/dist/build/p-58ce5668.entry.js +0 -1
- package/dist/build/p-6088647a.entry.js +0 -1
- package/dist/build/p-6835a9e3.entry.js +0 -1
- package/dist/build/p-6e778574.entry.js +0 -1
- package/dist/build/p-79d3258f.entry.js +0 -1
- package/dist/build/p-801d05b6.entry.js +0 -1
- package/dist/build/p-829c4101.entry.js +0 -1
- package/dist/build/p-89fda3a8.entry.js +0 -1
- package/dist/build/p-8ac8a69d.entry.js +0 -1
- package/dist/build/p-8b743795.entry.js +0 -1
- package/dist/build/p-92b6c76c.entry.js +0 -1
- package/dist/build/p-938f52ee.entry.js +0 -1
- package/dist/build/p-9d98d0d9.entry.js +0 -1
- package/dist/build/p-a5ebbd0c.entry.js +0 -1
- package/dist/build/p-a6127c75.entry.js +0 -1
- package/dist/build/p-a7086ffa.js +0 -1
- package/dist/build/p-aa14483b.entry.js +0 -1
- package/dist/build/p-bc7e8cc4.js +0 -2
- package/dist/build/p-bd50db3d.entry.js +0 -1
- package/dist/build/p-c27046e6.entry.js +0 -1
- package/dist/build/p-c59d9fc2.entry.js +0 -1
- package/dist/build/p-cc177072.entry.js +0 -1
- package/dist/build/p-d32f2578.entry.js +0 -1
- package/dist/build/p-e20a1842.entry.js +0 -1
- package/dist/build/p-e2a98d53.entry.js +0 -1
- package/dist/build/p-e934ef94.entry.js +0 -1
- package/dist/build/p-e9e20ac3.entry.js +0 -1
- package/dist/build/p-ec2a5f95.entry.js +0 -1
- package/dist/build/p-ede5e914.entry.js +0 -1
- package/dist/cjs/p-avatar_2.cjs.entry.js +0 -179
- package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +0 -23
- package/dist/cjs/p-helper.cjs.entry.js +0 -23
- package/dist/cjs/p-input-group.cjs.entry.js +0 -51
- package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +0 -101
- package/dist/cjs/p-pagination-item.cjs.entry.js +0 -23
- package/dist/cjs/p-pagination.cjs.entry.js +0 -171
- package/dist/cjs/p-segment-container.cjs.entry.js +0 -19
- package/dist/cjs/p-segment-item.cjs.entry.js +0 -29
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +0 -56
- package/dist/cjs/p-tag.cjs.entry.js +0 -27
- package/dist/cjs/popper-e0c4ed4c.js +0 -1790
- package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +0 -7
- package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.js +0 -15
- package/dist/collection/components/atoms/tab-group/tab-group.component.css +0 -9
- package/dist/collection/components/atoms/tag/tag.component.css +0 -51
- package/dist/collection/components/atoms/tag/tag.component.js +0 -64
- package/dist/collection/utils/types.js +0 -1
- package/dist/collection/utils/utils.js +0 -3
- package/dist/components/avatar.component.js +0 -54
- package/dist/components/modal-backdrop.component.js +0 -30
- package/dist/components/p-modal-backdrop.js +0 -6
- package/dist/components/p-tag.js +0 -44
- package/dist/components/popper.js +0 -1788
- package/dist/components/stepper-item.component.js +0 -57
- package/dist/esm/p-avatar_2.entry.js +0 -174
- package/dist/esm/p-dropdown-menu-item.entry.js +0 -19
- package/dist/esm/p-helper.entry.js +0 -19
- package/dist/esm/p-input-group.entry.js +0 -47
- package/dist/esm/p-modal-backdrop_5.entry.js +0 -93
- package/dist/esm/p-pagination-item.entry.js +0 -19
- package/dist/esm/p-pagination.entry.js +0 -167
- package/dist/esm/p-segment-container.entry.js +0 -15
- package/dist/esm/p-segment-item.entry.js +0 -25
- package/dist/esm/p-stepper-item_2.entry.js +0 -51
- package/dist/esm/p-tag.entry.js +0 -23
- package/dist/esm/popper-41c6f9cd.js +0 -1788
- package/dist/paperless/p-113baa35.entry.js +0 -1
- package/dist/paperless/p-1e7d45e4.entry.js +0 -1
- package/dist/paperless/p-1ef22f4e.entry.js +0 -1
- package/dist/paperless/p-2672f14b.entry.js +0 -1
- package/dist/paperless/p-2beaf0e8.entry.js +0 -1
- package/dist/paperless/p-3f6c9d44.entry.js +0 -1
- package/dist/paperless/p-4336cbbc.entry.js +0 -1
- package/dist/paperless/p-58ce5668.entry.js +0 -1
- package/dist/paperless/p-6088647a.entry.js +0 -1
- package/dist/paperless/p-6835a9e3.entry.js +0 -1
- package/dist/paperless/p-6e778574.entry.js +0 -1
- package/dist/paperless/p-79d3258f.entry.js +0 -1
- package/dist/paperless/p-801d05b6.entry.js +0 -1
- package/dist/paperless/p-829c4101.entry.js +0 -1
- package/dist/paperless/p-89fda3a8.entry.js +0 -1
- package/dist/paperless/p-8ac8a69d.entry.js +0 -1
- package/dist/paperless/p-8b743795.entry.js +0 -1
- package/dist/paperless/p-92b6c76c.entry.js +0 -1
- package/dist/paperless/p-938f52ee.entry.js +0 -1
- package/dist/paperless/p-9d98d0d9.entry.js +0 -1
- package/dist/paperless/p-a5ebbd0c.entry.js +0 -1
- package/dist/paperless/p-a6127c75.entry.js +0 -1
- package/dist/paperless/p-a7086ffa.js +0 -1
- package/dist/paperless/p-aa14483b.entry.js +0 -1
- package/dist/paperless/p-bc7e8cc4.js +0 -2
- package/dist/paperless/p-bd50db3d.entry.js +0 -1
- package/dist/paperless/p-c27046e6.entry.js +0 -1
- package/dist/paperless/p-c59d9fc2.entry.js +0 -1
- package/dist/paperless/p-cc177072.entry.js +0 -1
- package/dist/paperless/p-d32f2578.entry.js +0 -1
- package/dist/paperless/p-e20a1842.entry.js +0 -1
- package/dist/paperless/p-e2a98d53.entry.js +0 -1
- package/dist/paperless/p-e934ef94.entry.js +0 -1
- package/dist/paperless/p-e9e20ac3.entry.js +0 -1
- package/dist/paperless/p-ec2a5f95.entry.js +0 -1
- package/dist/paperless/p-ede5e914.entry.js +0 -1
- package/dist/types/components/atoms/modal-backdrop/modal-backdrop.component.d.ts +0 -3
- package/dist/types/components/atoms/tag/tag.component.d.ts +0 -11
- package/dist/types/utils/types.d.ts +0 -2
- package/dist/types/utils/utils.d.ts +0 -1
- package/dist/workbox-5fe694da.js.map +0 -1
|
@@ -22,6 +22,14 @@ function _interopNamespace(e) {
|
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'paperless';
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Virtual DOM patching algorithm based on Snabbdom by
|
|
27
|
+
* Simon Friis Vindum (@paldepind)
|
|
28
|
+
* Licensed under the MIT License
|
|
29
|
+
* https://github.com/snabbdom/snabbdom/blob/master/LICENSE
|
|
30
|
+
*
|
|
31
|
+
* Modified for Stencil's renderer and slot projection
|
|
32
|
+
*/
|
|
25
33
|
let scopeId;
|
|
26
34
|
let contentRef;
|
|
27
35
|
let hostTagName;
|
|
@@ -30,64 +38,6 @@ let checkSlotFallbackVisibility = false;
|
|
|
30
38
|
let checkSlotRelocate = false;
|
|
31
39
|
let isSvgMode = false;
|
|
32
40
|
let queuePending = false;
|
|
33
|
-
const win = typeof window !== 'undefined' ? window : {};
|
|
34
|
-
const doc = win.document || { head: {} };
|
|
35
|
-
const plt = {
|
|
36
|
-
$flags$: 0,
|
|
37
|
-
$resourcesUrl$: '',
|
|
38
|
-
jmp: (h) => h(),
|
|
39
|
-
raf: (h) => requestAnimationFrame(h),
|
|
40
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
41
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
42
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
43
|
-
};
|
|
44
|
-
const promiseResolve = (v) => Promise.resolve(v);
|
|
45
|
-
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
46
|
-
try {
|
|
47
|
-
new CSSStyleSheet();
|
|
48
|
-
return typeof new CSSStyleSheet().replaceSync === 'function';
|
|
49
|
-
}
|
|
50
|
-
catch (e) { }
|
|
51
|
-
return false;
|
|
52
|
-
})()
|
|
53
|
-
;
|
|
54
|
-
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
55
|
-
if (listeners) {
|
|
56
|
-
listeners.map(([flags, name, method]) => {
|
|
57
|
-
const target = getHostListenerTarget(elm, flags) ;
|
|
58
|
-
const handler = hostListenerProxy(hostRef, method);
|
|
59
|
-
const opts = hostListenerOpts(flags);
|
|
60
|
-
plt.ael(target, name, handler, opts);
|
|
61
|
-
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
66
|
-
try {
|
|
67
|
-
{
|
|
68
|
-
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
69
|
-
// instance is ready, let's call it's member method for this event
|
|
70
|
-
hostRef.$lazyInstance$[methodName](ev);
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e) {
|
|
78
|
-
consoleError(e);
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
const getHostListenerTarget = (elm, flags) => {
|
|
82
|
-
if (flags & 4 /* TargetDocument */)
|
|
83
|
-
return doc;
|
|
84
|
-
if (flags & 8 /* TargetWindow */)
|
|
85
|
-
return win;
|
|
86
|
-
return elm;
|
|
87
|
-
};
|
|
88
|
-
// prettier-ignore
|
|
89
|
-
const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
90
|
-
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
91
41
|
const createTime = (fnName, tagName = '') => {
|
|
92
42
|
{
|
|
93
43
|
return () => {
|
|
@@ -102,76 +52,14 @@ const uniqueTime = (key, measureText) => {
|
|
|
102
52
|
};
|
|
103
53
|
}
|
|
104
54
|
};
|
|
105
|
-
const
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
else {
|
|
114
|
-
style.replaceSync(cssText);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
style = cssText;
|
|
119
|
-
}
|
|
120
|
-
styles.set(scopeId, style);
|
|
121
|
-
};
|
|
122
|
-
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
123
|
-
let scopeId = getScopeId(cmpMeta);
|
|
124
|
-
const style = styles.get(scopeId);
|
|
125
|
-
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
126
|
-
// so the fallback is to always use the document for the root node in those cases
|
|
127
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
128
|
-
if (style) {
|
|
129
|
-
if (typeof style === 'string') {
|
|
130
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
131
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
132
|
-
let styleElm;
|
|
133
|
-
if (!appliedStyles) {
|
|
134
|
-
rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
|
|
135
|
-
}
|
|
136
|
-
if (!appliedStyles.has(scopeId)) {
|
|
137
|
-
{
|
|
138
|
-
{
|
|
139
|
-
styleElm = doc.createElement('style');
|
|
140
|
-
styleElm.innerHTML = style;
|
|
141
|
-
}
|
|
142
|
-
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
143
|
-
}
|
|
144
|
-
if (appliedStyles) {
|
|
145
|
-
appliedStyles.add(scopeId);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
150
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
return scopeId;
|
|
154
|
-
};
|
|
155
|
-
const attachStyles = (hostRef) => {
|
|
156
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
157
|
-
const elm = hostRef.$hostElement$;
|
|
158
|
-
const flags = cmpMeta.$flags$;
|
|
159
|
-
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
160
|
-
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
161
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
162
|
-
// only required when we're NOT using native shadow dom (slot)
|
|
163
|
-
// or this browser doesn't support native shadow dom
|
|
164
|
-
// and this host element was NOT created with SSR
|
|
165
|
-
// let's pick out the inner content for slot projection
|
|
166
|
-
// create a node to represent where the original
|
|
167
|
-
// content was first placed, which is useful later on
|
|
168
|
-
// DOM WRITE!!
|
|
169
|
-
elm['s-sc'] = scopeId;
|
|
170
|
-
elm.classList.add(scopeId + '-h');
|
|
171
|
-
}
|
|
172
|
-
endAttachStyles();
|
|
173
|
-
};
|
|
174
|
-
const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
55
|
+
const CONTENT_REF_ID = 'r';
|
|
56
|
+
const ORG_LOCATION_ID = 'o';
|
|
57
|
+
const SLOT_NODE_ID = 's';
|
|
58
|
+
const TEXT_NODE_ID = 't';
|
|
59
|
+
const HYDRATE_ID = 's-id';
|
|
60
|
+
const HYDRATED_STYLE_ID = 'sty-id';
|
|
61
|
+
const HYDRATE_CHILD_ID = 'c-id';
|
|
62
|
+
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
175
63
|
/**
|
|
176
64
|
* Default style mode id
|
|
177
65
|
*/
|
|
@@ -181,11 +69,30 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
|
181
69
|
*/
|
|
182
70
|
const EMPTY_OBJ = {};
|
|
183
71
|
const isDef = (v) => v != null;
|
|
72
|
+
/**
|
|
73
|
+
* Check whether a value is a 'complex type', defined here as an object or a
|
|
74
|
+
* function.
|
|
75
|
+
*
|
|
76
|
+
* @param o the value to check
|
|
77
|
+
* @returns whether it's a complex type or not
|
|
78
|
+
*/
|
|
184
79
|
const isComplexType = (o) => {
|
|
185
80
|
// https://jsperf.com/typeof-fn-object/5
|
|
186
81
|
o = typeof o;
|
|
187
82
|
return o === 'object' || o === 'function';
|
|
188
83
|
};
|
|
84
|
+
/**
|
|
85
|
+
* Helper method for querying a `meta` tag that contains a nonce value
|
|
86
|
+
* out of a DOM's head.
|
|
87
|
+
*
|
|
88
|
+
* @param doc The DOM containing the `head` to query against
|
|
89
|
+
* @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
|
|
90
|
+
* exists or the tag has no content.
|
|
91
|
+
*/
|
|
92
|
+
function queryNonceMetaTagContent(doc) {
|
|
93
|
+
var _a, _b, _c;
|
|
94
|
+
return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
|
|
95
|
+
}
|
|
189
96
|
/**
|
|
190
97
|
* Production h() function based on Preact by
|
|
191
98
|
* Jason Miller (@developit)
|
|
@@ -194,7 +101,6 @@ const isComplexType = (o) => {
|
|
|
194
101
|
*
|
|
195
102
|
* Modified for Stencil's compiler and vdom
|
|
196
103
|
*/
|
|
197
|
-
// const stack: any[] = [];
|
|
198
104
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
|
|
199
105
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
|
200
106
|
const h = (nodeName, vnodeData, ...children) => {
|
|
@@ -256,6 +162,14 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
256
162
|
}
|
|
257
163
|
return vnode;
|
|
258
164
|
};
|
|
165
|
+
/**
|
|
166
|
+
* A utility function for creating a virtual DOM node from a tag and some
|
|
167
|
+
* possible text content.
|
|
168
|
+
*
|
|
169
|
+
* @param tag the tag for this element
|
|
170
|
+
* @param text possible text content for the node
|
|
171
|
+
* @returns a newly-minted virtual DOM node
|
|
172
|
+
*/
|
|
259
173
|
const newVNode = (tag, text) => {
|
|
260
174
|
const vnode = {
|
|
261
175
|
$flags$: 0,
|
|
@@ -273,11 +187,31 @@ const newVNode = (tag, text) => {
|
|
|
273
187
|
return vnode;
|
|
274
188
|
};
|
|
275
189
|
const Host = {};
|
|
190
|
+
/**
|
|
191
|
+
* Check whether a given node is a Host node or not
|
|
192
|
+
*
|
|
193
|
+
* @param node the virtual DOM node to check
|
|
194
|
+
* @returns whether it's a Host node or not
|
|
195
|
+
*/
|
|
276
196
|
const isHost = (node) => node && node.$tag$ === Host;
|
|
197
|
+
/**
|
|
198
|
+
* Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
|
|
199
|
+
*
|
|
200
|
+
* Note that these functions convert from {@link d.VNode} to
|
|
201
|
+
* {@link d.ChildNode} to give functional component developers a friendly
|
|
202
|
+
* interface.
|
|
203
|
+
*/
|
|
277
204
|
const vdomFnUtils = {
|
|
278
205
|
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
|
279
206
|
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
|
|
280
207
|
};
|
|
208
|
+
/**
|
|
209
|
+
* Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
|
|
210
|
+
* friendlier public interface (hence, 'convertToPublic').
|
|
211
|
+
*
|
|
212
|
+
* @param node the virtual DOM node to convert
|
|
213
|
+
* @returns a converted child node
|
|
214
|
+
*/
|
|
281
215
|
const convertToPublic = (node) => ({
|
|
282
216
|
vattrs: node.$attrs$,
|
|
283
217
|
vchildren: node.$children$,
|
|
@@ -286,6 +220,15 @@ const convertToPublic = (node) => ({
|
|
|
286
220
|
vtag: node.$tag$,
|
|
287
221
|
vtext: node.$text$,
|
|
288
222
|
});
|
|
223
|
+
/**
|
|
224
|
+
* Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
|
|
225
|
+
* order to use the resulting object in the virtual DOM. The initial object was
|
|
226
|
+
* likely created as part of presenting a public API, so converting it back
|
|
227
|
+
* involved making it 'private' again (hence, `convertToPrivate`).
|
|
228
|
+
*
|
|
229
|
+
* @param node the child node to convert
|
|
230
|
+
* @returns a converted virtual DOM node
|
|
231
|
+
*/
|
|
289
232
|
const convertToPrivate = (node) => {
|
|
290
233
|
if (typeof node.vtag === 'function') {
|
|
291
234
|
const vnodeData = Object.assign({}, node.vattrs);
|
|
@@ -297,13 +240,375 @@ const convertToPrivate = (node) => {
|
|
|
297
240
|
}
|
|
298
241
|
return h(node.vtag, vnodeData, ...(node.vchildren || []));
|
|
299
242
|
}
|
|
300
|
-
const vnode = newVNode(node.vtag, node.vtext);
|
|
301
|
-
vnode.$attrs$ = node.vattrs;
|
|
302
|
-
vnode.$children$ = node.vchildren;
|
|
303
|
-
vnode.$key$ = node.vkey;
|
|
304
|
-
vnode.$name$ = node.vname;
|
|
305
|
-
return vnode;
|
|
243
|
+
const vnode = newVNode(node.vtag, node.vtext);
|
|
244
|
+
vnode.$attrs$ = node.vattrs;
|
|
245
|
+
vnode.$children$ = node.vchildren;
|
|
246
|
+
vnode.$key$ = node.vkey;
|
|
247
|
+
vnode.$name$ = node.vname;
|
|
248
|
+
return vnode;
|
|
249
|
+
};
|
|
250
|
+
const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
251
|
+
const endHydrate = createTime('hydrateClient', tagName);
|
|
252
|
+
const shadowRoot = hostElm.shadowRoot;
|
|
253
|
+
const childRenderNodes = [];
|
|
254
|
+
const slotNodes = [];
|
|
255
|
+
const shadowRootNodes = shadowRoot ? [] : null;
|
|
256
|
+
const vnode = (hostRef.$vnode$ = newVNode(tagName, null));
|
|
257
|
+
if (!plt.$orgLocNodes$) {
|
|
258
|
+
initializeDocumentHydrate(doc.body, (plt.$orgLocNodes$ = new Map()));
|
|
259
|
+
}
|
|
260
|
+
hostElm[HYDRATE_ID] = hostId;
|
|
261
|
+
hostElm.removeAttribute(HYDRATE_ID);
|
|
262
|
+
clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
|
|
263
|
+
childRenderNodes.map((c) => {
|
|
264
|
+
const orgLocationId = c.$hostId$ + '.' + c.$nodeId$;
|
|
265
|
+
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
266
|
+
const node = c.$elm$;
|
|
267
|
+
if (orgLocationNode && supportsShadow && orgLocationNode['s-en'] === '') {
|
|
268
|
+
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
269
|
+
}
|
|
270
|
+
if (!shadowRoot) {
|
|
271
|
+
node['s-hn'] = tagName;
|
|
272
|
+
if (orgLocationNode) {
|
|
273
|
+
node['s-ol'] = orgLocationNode;
|
|
274
|
+
node['s-ol']['s-nr'] = node;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
278
|
+
});
|
|
279
|
+
if (shadowRoot) {
|
|
280
|
+
shadowRootNodes.map((shadowRootNode) => {
|
|
281
|
+
if (shadowRootNode) {
|
|
282
|
+
shadowRoot.appendChild(shadowRootNode);
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
endHydrate();
|
|
287
|
+
};
|
|
288
|
+
const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
|
|
289
|
+
let childNodeType;
|
|
290
|
+
let childIdSplt;
|
|
291
|
+
let childVNode;
|
|
292
|
+
let i;
|
|
293
|
+
if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
294
|
+
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
295
|
+
if (childNodeType) {
|
|
296
|
+
// got the node data from the element's attribute
|
|
297
|
+
// `${hostId}.${nodeId}.${depth}.${index}`
|
|
298
|
+
childIdSplt = childNodeType.split('.');
|
|
299
|
+
if (childIdSplt[0] === hostId || childIdSplt[0] === '0') {
|
|
300
|
+
childVNode = {
|
|
301
|
+
$flags$: 0,
|
|
302
|
+
$hostId$: childIdSplt[0],
|
|
303
|
+
$nodeId$: childIdSplt[1],
|
|
304
|
+
$depth$: childIdSplt[2],
|
|
305
|
+
$index$: childIdSplt[3],
|
|
306
|
+
$tag$: node.tagName.toLowerCase(),
|
|
307
|
+
$elm$: node,
|
|
308
|
+
$attrs$: null,
|
|
309
|
+
$children$: null,
|
|
310
|
+
$key$: null,
|
|
311
|
+
$name$: null,
|
|
312
|
+
$text$: null,
|
|
313
|
+
};
|
|
314
|
+
childRenderNodes.push(childVNode);
|
|
315
|
+
node.removeAttribute(HYDRATE_CHILD_ID);
|
|
316
|
+
// this is a new child vnode
|
|
317
|
+
// so ensure its parent vnode has the vchildren array
|
|
318
|
+
if (!parentVNode.$children$) {
|
|
319
|
+
parentVNode.$children$ = [];
|
|
320
|
+
}
|
|
321
|
+
// add our child vnode to a specific index of the vnode's children
|
|
322
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
323
|
+
// this is now the new parent vnode for all the next child checks
|
|
324
|
+
parentVNode = childVNode;
|
|
325
|
+
if (shadowRootNodes && childVNode.$depth$ === '0') {
|
|
326
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
// recursively drill down, end to start so we can remove nodes
|
|
331
|
+
for (i = node.childNodes.length - 1; i >= 0; i--) {
|
|
332
|
+
clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.childNodes[i], hostId);
|
|
333
|
+
}
|
|
334
|
+
if (node.shadowRoot) {
|
|
335
|
+
// keep drilling down through the shadow root nodes
|
|
336
|
+
for (i = node.shadowRoot.childNodes.length - 1; i >= 0; i--) {
|
|
337
|
+
clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.shadowRoot.childNodes[i], hostId);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
|
|
342
|
+
// `${COMMENT_TYPE}.${hostId}.${nodeId}.${depth}.${index}`
|
|
343
|
+
childIdSplt = node.nodeValue.split('.');
|
|
344
|
+
if (childIdSplt[1] === hostId || childIdSplt[1] === '0') {
|
|
345
|
+
// comment node for either the host id or a 0 host id
|
|
346
|
+
childNodeType = childIdSplt[0];
|
|
347
|
+
childVNode = {
|
|
348
|
+
$flags$: 0,
|
|
349
|
+
$hostId$: childIdSplt[1],
|
|
350
|
+
$nodeId$: childIdSplt[2],
|
|
351
|
+
$depth$: childIdSplt[3],
|
|
352
|
+
$index$: childIdSplt[4],
|
|
353
|
+
$elm$: node,
|
|
354
|
+
$attrs$: null,
|
|
355
|
+
$children$: null,
|
|
356
|
+
$key$: null,
|
|
357
|
+
$name$: null,
|
|
358
|
+
$tag$: null,
|
|
359
|
+
$text$: null,
|
|
360
|
+
};
|
|
361
|
+
if (childNodeType === TEXT_NODE_ID) {
|
|
362
|
+
childVNode.$elm$ = node.nextSibling;
|
|
363
|
+
if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* NODE_TYPE.TextNode */) {
|
|
364
|
+
childVNode.$text$ = childVNode.$elm$.textContent;
|
|
365
|
+
childRenderNodes.push(childVNode);
|
|
366
|
+
// remove the text comment since it's no longer needed
|
|
367
|
+
node.remove();
|
|
368
|
+
if (!parentVNode.$children$) {
|
|
369
|
+
parentVNode.$children$ = [];
|
|
370
|
+
}
|
|
371
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
372
|
+
if (shadowRootNodes && childVNode.$depth$ === '0') {
|
|
373
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
else if (childVNode.$hostId$ === hostId) {
|
|
378
|
+
// this comment node is specifcally for this host id
|
|
379
|
+
if (childNodeType === SLOT_NODE_ID) {
|
|
380
|
+
// `${SLOT_NODE_ID}.${hostId}.${nodeId}.${depth}.${index}.${slotName}`;
|
|
381
|
+
childVNode.$tag$ = 'slot';
|
|
382
|
+
if (childIdSplt[5]) {
|
|
383
|
+
node['s-sn'] = childVNode.$name$ = childIdSplt[5];
|
|
384
|
+
}
|
|
385
|
+
else {
|
|
386
|
+
node['s-sn'] = '';
|
|
387
|
+
}
|
|
388
|
+
node['s-sr'] = true;
|
|
389
|
+
if (shadowRootNodes) {
|
|
390
|
+
// browser support shadowRoot and this is a shadow dom component
|
|
391
|
+
// create an actual slot element
|
|
392
|
+
childVNode.$elm$ = doc.createElement(childVNode.$tag$);
|
|
393
|
+
if (childVNode.$name$) {
|
|
394
|
+
// add the slot name attribute
|
|
395
|
+
childVNode.$elm$.setAttribute('name', childVNode.$name$);
|
|
396
|
+
}
|
|
397
|
+
// insert the new slot element before the slot comment
|
|
398
|
+
node.parentNode.insertBefore(childVNode.$elm$, node);
|
|
399
|
+
// remove the slot comment since it's not needed for shadow
|
|
400
|
+
node.remove();
|
|
401
|
+
if (childVNode.$depth$ === '0') {
|
|
402
|
+
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
slotNodes.push(childVNode);
|
|
406
|
+
if (!parentVNode.$children$) {
|
|
407
|
+
parentVNode.$children$ = [];
|
|
408
|
+
}
|
|
409
|
+
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
410
|
+
}
|
|
411
|
+
else if (childNodeType === CONTENT_REF_ID) {
|
|
412
|
+
// `${CONTENT_REF_ID}.${hostId}`;
|
|
413
|
+
if (shadowRootNodes) {
|
|
414
|
+
// remove the content ref comment since it's not needed for shadow
|
|
415
|
+
node.remove();
|
|
416
|
+
}
|
|
417
|
+
else {
|
|
418
|
+
hostElm['s-cr'] = node;
|
|
419
|
+
node['s-cn'] = true;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
else if (parentVNode && parentVNode.$tag$ === 'style') {
|
|
426
|
+
const vnode = newVNode(null, node.textContent);
|
|
427
|
+
vnode.$elm$ = node;
|
|
428
|
+
vnode.$index$ = '0';
|
|
429
|
+
parentVNode.$children$ = [vnode];
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
const initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
433
|
+
if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
434
|
+
let i = 0;
|
|
435
|
+
for (; i < node.childNodes.length; i++) {
|
|
436
|
+
initializeDocumentHydrate(node.childNodes[i], orgLocNodes);
|
|
437
|
+
}
|
|
438
|
+
if (node.shadowRoot) {
|
|
439
|
+
for (i = 0; i < node.shadowRoot.childNodes.length; i++) {
|
|
440
|
+
initializeDocumentHydrate(node.shadowRoot.childNodes[i], orgLocNodes);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
|
|
445
|
+
const childIdSplt = node.nodeValue.split('.');
|
|
446
|
+
if (childIdSplt[0] === ORG_LOCATION_ID) {
|
|
447
|
+
orgLocNodes.set(childIdSplt[1] + '.' + childIdSplt[2], node);
|
|
448
|
+
node.nodeValue = '';
|
|
449
|
+
// useful to know if the original location is
|
|
450
|
+
// the root light-dom of a shadow dom component
|
|
451
|
+
node['s-en'] = childIdSplt[3];
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
/**
|
|
456
|
+
* Parse a new property value for a given property type.
|
|
457
|
+
*
|
|
458
|
+
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
|
459
|
+
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
|
460
|
+
* 1. `any`, the type given to `propValue` in the function signature
|
|
461
|
+
* 2. the type stored from `propType`.
|
|
462
|
+
*
|
|
463
|
+
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
|
464
|
+
*
|
|
465
|
+
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
|
466
|
+
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
|
467
|
+
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
|
468
|
+
* ```tsx
|
|
469
|
+
* <my-cmp prop-val={0}></my-cmp>
|
|
470
|
+
* ```
|
|
471
|
+
*
|
|
472
|
+
* HTML prop values on the other hand, will always a string
|
|
473
|
+
*
|
|
474
|
+
* @param propValue the new value to coerce to some type
|
|
475
|
+
* @param propType the type of the prop, expressed as a binary number
|
|
476
|
+
* @returns the parsed/coerced value
|
|
477
|
+
*/
|
|
478
|
+
const parsePropertyValue = (propValue, propType) => {
|
|
479
|
+
// ensure this value is of the correct prop type
|
|
480
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
481
|
+
if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
|
|
482
|
+
// per the HTML spec, any string value means it is a boolean true value
|
|
483
|
+
// but we'll cheat here and say that the string "false" is the boolean false
|
|
484
|
+
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
485
|
+
}
|
|
486
|
+
if (propType & 2 /* MEMBER_FLAGS.Number */) {
|
|
487
|
+
// force it to be a number
|
|
488
|
+
return parseFloat(propValue);
|
|
489
|
+
}
|
|
490
|
+
if (propType & 1 /* MEMBER_FLAGS.String */) {
|
|
491
|
+
// could have been passed as a number or boolean
|
|
492
|
+
// but we still want it as a string
|
|
493
|
+
return String(propValue);
|
|
494
|
+
}
|
|
495
|
+
// redundant return here for better minification
|
|
496
|
+
return propValue;
|
|
497
|
+
}
|
|
498
|
+
// not sure exactly what type we want
|
|
499
|
+
// so no need to change to a different type
|
|
500
|
+
return propValue;
|
|
501
|
+
};
|
|
502
|
+
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
503
|
+
const createEvent = (ref, name, flags) => {
|
|
504
|
+
const elm = getElement(ref);
|
|
505
|
+
return {
|
|
506
|
+
emit: (detail) => {
|
|
507
|
+
return emitEvent(elm, name, {
|
|
508
|
+
bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
|
|
509
|
+
composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
|
|
510
|
+
cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
|
|
511
|
+
detail,
|
|
512
|
+
});
|
|
513
|
+
},
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
/**
|
|
517
|
+
* Helper function to create & dispatch a custom Event on a provided target
|
|
518
|
+
* @param elm the target of the Event
|
|
519
|
+
* @param name the name to give the custom Event
|
|
520
|
+
* @param opts options for configuring a custom Event
|
|
521
|
+
* @returns the custom Event
|
|
522
|
+
*/
|
|
523
|
+
const emitEvent = (elm, name, opts) => {
|
|
524
|
+
const ev = plt.ce(name, opts);
|
|
525
|
+
elm.dispatchEvent(ev);
|
|
526
|
+
return ev;
|
|
527
|
+
};
|
|
528
|
+
const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
|
|
529
|
+
const registerStyle = (scopeId, cssText, allowCS) => {
|
|
530
|
+
let style = styles.get(scopeId);
|
|
531
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
532
|
+
style = (style || new CSSStyleSheet());
|
|
533
|
+
if (typeof style === 'string') {
|
|
534
|
+
style = cssText;
|
|
535
|
+
}
|
|
536
|
+
else {
|
|
537
|
+
style.replaceSync(cssText);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
else {
|
|
541
|
+
style = cssText;
|
|
542
|
+
}
|
|
543
|
+
styles.set(scopeId, style);
|
|
544
|
+
};
|
|
545
|
+
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
546
|
+
var _a;
|
|
547
|
+
let scopeId = getScopeId(cmpMeta);
|
|
548
|
+
const style = styles.get(scopeId);
|
|
549
|
+
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
550
|
+
// so the fallback is to always use the document for the root node in those cases
|
|
551
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
|
|
552
|
+
if (style) {
|
|
553
|
+
if (typeof style === 'string') {
|
|
554
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
555
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
556
|
+
let styleElm;
|
|
557
|
+
if (!appliedStyles) {
|
|
558
|
+
rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
|
|
559
|
+
}
|
|
560
|
+
if (!appliedStyles.has(scopeId)) {
|
|
561
|
+
if (styleContainerNode.host &&
|
|
562
|
+
(styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId}"]`))) {
|
|
563
|
+
// This is only happening on native shadow-dom, do not needs CSS var shim
|
|
564
|
+
styleElm.innerHTML = style;
|
|
565
|
+
}
|
|
566
|
+
else {
|
|
567
|
+
// TODO(STENCIL-659): Remove code implementing the CSS variable shim
|
|
568
|
+
{
|
|
569
|
+
styleElm = doc.createElement('style');
|
|
570
|
+
styleElm.innerHTML = style;
|
|
571
|
+
}
|
|
572
|
+
// Apply CSP nonce to the style tag if it exists
|
|
573
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
574
|
+
if (nonce != null) {
|
|
575
|
+
styleElm.setAttribute('nonce', nonce);
|
|
576
|
+
}
|
|
577
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
578
|
+
}
|
|
579
|
+
if (appliedStyles) {
|
|
580
|
+
appliedStyles.add(scopeId);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
585
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
return scopeId;
|
|
589
|
+
};
|
|
590
|
+
const attachStyles = (hostRef) => {
|
|
591
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
592
|
+
const elm = hostRef.$hostElement$;
|
|
593
|
+
const flags = cmpMeta.$flags$;
|
|
594
|
+
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
595
|
+
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
596
|
+
// TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
|
|
597
|
+
if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
|
|
598
|
+
// only required when we're NOT using native shadow dom (slot)
|
|
599
|
+
// or this browser doesn't support native shadow dom
|
|
600
|
+
// and this host element was NOT created with SSR
|
|
601
|
+
// let's pick out the inner content for slot projection
|
|
602
|
+
// create a node to represent where the original
|
|
603
|
+
// content was first placed, which is useful later on
|
|
604
|
+
// DOM WRITE!!
|
|
605
|
+
elm['s-sc'] = scopeId;
|
|
606
|
+
elm.classList.add(scopeId + '-h');
|
|
607
|
+
}
|
|
608
|
+
endAttachStyles();
|
|
306
609
|
};
|
|
610
|
+
const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
611
|
+
const convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, '$1{');
|
|
307
612
|
/**
|
|
308
613
|
* Production setAccessor() function based on Preact by
|
|
309
614
|
* Jason Miller (@developit)
|
|
@@ -421,7 +726,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
421
726
|
}
|
|
422
727
|
}
|
|
423
728
|
}
|
|
424
|
-
else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
729
|
+
else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
|
|
425
730
|
newValue = newValue === true ? '' : newValue;
|
|
426
731
|
{
|
|
427
732
|
elm.setAttribute(memberName, newValue);
|
|
@@ -436,7 +741,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
436
741
|
// if the element passed in is a shadow root, which is a document fragment
|
|
437
742
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
438
743
|
// if it's not a shadow root, then we add attrs/props to the same element
|
|
439
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
744
|
+
const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
|
|
440
745
|
? newVnode.$elm$.host
|
|
441
746
|
: newVnode.$elm$;
|
|
442
747
|
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
@@ -454,6 +759,16 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
454
759
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
|
|
455
760
|
}
|
|
456
761
|
};
|
|
762
|
+
/**
|
|
763
|
+
* Create a DOM Node corresponding to one of the children of a given VNode.
|
|
764
|
+
*
|
|
765
|
+
* @param oldParentVNode the parent VNode from the previous render
|
|
766
|
+
* @param newParentVNode the parent VNode from the current render
|
|
767
|
+
* @param childIndex the index of the VNode, in the _new_ parent node's
|
|
768
|
+
* children, for which we will create a new DOM node
|
|
769
|
+
* @param parentElm the parent DOM node which our new node will be a child of
|
|
770
|
+
* @returns the newly created node
|
|
771
|
+
*/
|
|
457
772
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
458
773
|
// tslint:disable-next-line: prefer-const
|
|
459
774
|
const newVNode = newParentVNode.$children$[childIndex];
|
|
@@ -471,23 +786,23 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
471
786
|
}
|
|
472
787
|
newVNode.$flags$ |= newVNode.$children$
|
|
473
788
|
? // slot element has fallback content
|
|
474
|
-
2 /* isSlotFallback */
|
|
789
|
+
2 /* VNODE_FLAGS.isSlotFallback */
|
|
475
790
|
: // slot element does not have fallback content
|
|
476
|
-
1 /* isSlotReference */;
|
|
791
|
+
1 /* VNODE_FLAGS.isSlotReference */;
|
|
477
792
|
}
|
|
478
793
|
}
|
|
479
794
|
if (newVNode.$text$ !== null) {
|
|
480
795
|
// create text node
|
|
481
796
|
elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
|
|
482
797
|
}
|
|
483
|
-
else if (newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
798
|
+
else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
|
|
484
799
|
// create a slot reference node
|
|
485
800
|
elm = newVNode.$elm$ =
|
|
486
801
|
doc.createTextNode('');
|
|
487
802
|
}
|
|
488
803
|
else {
|
|
489
804
|
// create element
|
|
490
|
-
elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* isSlotFallback */
|
|
805
|
+
elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
|
|
491
806
|
? 'slot-fb'
|
|
492
807
|
: newVNode.$tag$));
|
|
493
808
|
// add css classes, attrs, props, listeners, etc.
|
|
@@ -513,7 +828,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
513
828
|
}
|
|
514
829
|
{
|
|
515
830
|
elm['s-hn'] = hostTagName;
|
|
516
|
-
if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
831
|
+
if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
|
|
517
832
|
// remember the content reference comment
|
|
518
833
|
elm['s-sr'] = true;
|
|
519
834
|
// remember the content reference comment
|
|
@@ -532,7 +847,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
532
847
|
return elm;
|
|
533
848
|
};
|
|
534
849
|
const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
535
|
-
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
850
|
+
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
536
851
|
const oldSlotChildNodes = parentElm.childNodes;
|
|
537
852
|
for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
|
|
538
853
|
const childNode = oldSlotChildNodes[i];
|
|
@@ -553,8 +868,23 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
553
868
|
putBackInOriginalLocation(childNode, recursive);
|
|
554
869
|
}
|
|
555
870
|
}
|
|
556
|
-
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
871
|
+
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
557
872
|
};
|
|
873
|
+
/**
|
|
874
|
+
* Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
|
|
875
|
+
* add them to the DOM in the appropriate place.
|
|
876
|
+
*
|
|
877
|
+
* @param parentElm the DOM node which should be used as a parent for the new
|
|
878
|
+
* DOM nodes
|
|
879
|
+
* @param before a child of the `parentElm` which the new children should be
|
|
880
|
+
* inserted before (optional)
|
|
881
|
+
* @param parentVNode the parent virtual DOM node
|
|
882
|
+
* @param vnodes the new child virtual DOM nodes to produce DOM nodes for
|
|
883
|
+
* @param startIdx the index in the child virtual DOM nodes at which to start
|
|
884
|
+
* creating DOM nodes (inclusive)
|
|
885
|
+
* @param endIdx the index in the child virtual DOM nodes at which to stop
|
|
886
|
+
* creating DOM nodes (inclusive)
|
|
887
|
+
*/
|
|
558
888
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
559
889
|
let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
|
|
560
890
|
let childNode;
|
|
@@ -571,30 +901,112 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
571
901
|
}
|
|
572
902
|
}
|
|
573
903
|
};
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
904
|
+
/**
|
|
905
|
+
* Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
|
|
906
|
+
* This can be used to, for instance, clean up after a list of children which
|
|
907
|
+
* should no longer be shown.
|
|
908
|
+
*
|
|
909
|
+
* This function also handles some of Stencil's slot relocation logic.
|
|
910
|
+
*
|
|
911
|
+
* @param vnodes a list of virtual DOM nodes to remove
|
|
912
|
+
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
913
|
+
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
914
|
+
*/
|
|
915
|
+
const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
916
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
917
|
+
const vnode = vnodes[index];
|
|
918
|
+
if (vnode) {
|
|
919
|
+
const elm = vnode.$elm$;
|
|
920
|
+
nullifyVNodeRefs(vnode);
|
|
921
|
+
if (elm) {
|
|
922
|
+
{
|
|
923
|
+
// we're removing this element
|
|
924
|
+
// so it's possible we need to show slot fallback content now
|
|
925
|
+
checkSlotFallbackVisibility = true;
|
|
926
|
+
if (elm['s-ol']) {
|
|
927
|
+
// remove the original location comment
|
|
928
|
+
elm['s-ol'].remove();
|
|
929
|
+
}
|
|
930
|
+
else {
|
|
931
|
+
// it's possible that child nodes of the node
|
|
932
|
+
// that's being removed are slot nodes
|
|
933
|
+
putBackInOriginalLocation(elm, true);
|
|
934
|
+
}
|
|
591
935
|
}
|
|
936
|
+
// remove the vnode's element from the dom
|
|
937
|
+
elm.remove();
|
|
592
938
|
}
|
|
593
|
-
// remove the vnode's element from the dom
|
|
594
|
-
elm.remove();
|
|
595
939
|
}
|
|
596
940
|
}
|
|
597
941
|
};
|
|
942
|
+
/**
|
|
943
|
+
* Reconcile the children of a new VNode with the children of an old VNode by
|
|
944
|
+
* traversing the two collections of children, identifying nodes that are
|
|
945
|
+
* conserved or changed, calling out to `patch` to make any necessary
|
|
946
|
+
* updates to the DOM, and rearranging DOM nodes as needed.
|
|
947
|
+
*
|
|
948
|
+
* The algorithm for reconciling children works by analyzing two 'windows' onto
|
|
949
|
+
* the two arrays of children (`oldCh` and `newCh`). We keep track of the
|
|
950
|
+
* 'windows' by storing start and end indices and references to the
|
|
951
|
+
* corresponding array entries. Initially the two 'windows' are basically equal
|
|
952
|
+
* to the entire array, but we progressively narrow the windows until there are
|
|
953
|
+
* no children left to update by doing the following:
|
|
954
|
+
*
|
|
955
|
+
* 1. Skip any `null` entries at the beginning or end of the two arrays, so
|
|
956
|
+
* that if we have an initial array like the following we'll end up dealing
|
|
957
|
+
* only with a window bounded by the highlighted elements:
|
|
958
|
+
*
|
|
959
|
+
* [null, null, VNode1 , ... , VNode2, null, null]
|
|
960
|
+
* ^^^^^^ ^^^^^^
|
|
961
|
+
*
|
|
962
|
+
* 2. Check to see if the elements at the head and tail positions are equal
|
|
963
|
+
* across the windows. This will basically detect elements which haven't
|
|
964
|
+
* been added, removed, or changed position, i.e. if you had the following
|
|
965
|
+
* VNode elements (represented as HTML):
|
|
966
|
+
*
|
|
967
|
+
* oldVNode: `<div><p><span>HEY</span></p></div>`
|
|
968
|
+
* newVNode: `<div><p><span>THERE</span></p></div>`
|
|
969
|
+
*
|
|
970
|
+
* Then when comparing the children of the `<div>` tag we check the equality
|
|
971
|
+
* of the VNodes corresponding to the `<p>` tags and, since they are the
|
|
972
|
+
* same tag in the same position, we'd be able to avoid completely
|
|
973
|
+
* re-rendering the subtree under them with a new DOM element and would just
|
|
974
|
+
* call out to `patch` to handle reconciling their children and so on.
|
|
975
|
+
*
|
|
976
|
+
* 3. Check, for both windows, to see if the element at the beginning of the
|
|
977
|
+
* window corresponds to the element at the end of the other window. This is
|
|
978
|
+
* a heuristic which will let us identify _some_ situations in which
|
|
979
|
+
* elements have changed position, for instance it _should_ detect that the
|
|
980
|
+
* children nodes themselves have not changed but merely moved in the
|
|
981
|
+
* following example:
|
|
982
|
+
*
|
|
983
|
+
* oldVNode: `<div><element-one /><element-two /></div>`
|
|
984
|
+
* newVNode: `<div><element-two /><element-one /></div>`
|
|
985
|
+
*
|
|
986
|
+
* If we find cases like this then we also need to move the concrete DOM
|
|
987
|
+
* elements corresponding to the moved children to write the re-order to the
|
|
988
|
+
* DOM.
|
|
989
|
+
*
|
|
990
|
+
* 4. Finally, if VNodes have the `key` attribute set on them we check for any
|
|
991
|
+
* nodes in the old children which have the same key as the first element in
|
|
992
|
+
* our window on the new children. If we find such a node we handle calling
|
|
993
|
+
* out to `patch`, moving relevant DOM nodes, and so on, in accordance with
|
|
994
|
+
* what we find.
|
|
995
|
+
*
|
|
996
|
+
* Finally, once we've narrowed our 'windows' to the point that either of them
|
|
997
|
+
* collapse (i.e. they have length 0) we then handle any remaining VNode
|
|
998
|
+
* insertion or deletion that needs to happen to get a DOM state that correctly
|
|
999
|
+
* reflects the new child VNodes. If, for instance, after our window on the old
|
|
1000
|
+
* children has collapsed we still have more nodes on the new children that
|
|
1001
|
+
* we haven't dealt with yet then we need to add them, or if the new children
|
|
1002
|
+
* collapse but we still have unhandled _old_ children then we need to make
|
|
1003
|
+
* sure the corresponding DOM nodes are removed.
|
|
1004
|
+
*
|
|
1005
|
+
* @param parentElm the node into which the parent VNode is rendered
|
|
1006
|
+
* @param oldCh the old children of the parent node
|
|
1007
|
+
* @param newVNode the new VNode which will replace the parent
|
|
1008
|
+
* @param newCh the new children of the parent node
|
|
1009
|
+
*/
|
|
598
1010
|
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
599
1011
|
let oldStartIdx = 0;
|
|
600
1012
|
let newStartIdx = 0;
|
|
@@ -607,7 +1019,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
607
1019
|
let node;
|
|
608
1020
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
609
1021
|
if (oldStartVnode == null) {
|
|
610
|
-
//
|
|
1022
|
+
// VNode might have been moved left
|
|
611
1023
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
612
1024
|
}
|
|
613
1025
|
else if (oldEndVnode == null) {
|
|
@@ -620,42 +1032,102 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
620
1032
|
newEndVnode = newCh[--newEndIdx];
|
|
621
1033
|
}
|
|
622
1034
|
else if (isSameVnode(oldStartVnode, newStartVnode)) {
|
|
1035
|
+
// if the start nodes are the same then we should patch the new VNode
|
|
1036
|
+
// onto the old one, and increment our `newStartIdx` and `oldStartIdx`
|
|
1037
|
+
// indices to reflect that. We don't need to move any DOM Nodes around
|
|
1038
|
+
// since things are matched up in order.
|
|
623
1039
|
patch(oldStartVnode, newStartVnode);
|
|
624
1040
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
625
1041
|
newStartVnode = newCh[++newStartIdx];
|
|
626
1042
|
}
|
|
627
1043
|
else if (isSameVnode(oldEndVnode, newEndVnode)) {
|
|
1044
|
+
// likewise, if the end nodes are the same we patch new onto old and
|
|
1045
|
+
// decrement our end indices, and also likewise in this case we don't
|
|
1046
|
+
// need to move any DOM Nodes.
|
|
628
1047
|
patch(oldEndVnode, newEndVnode);
|
|
629
1048
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
630
1049
|
newEndVnode = newCh[--newEndIdx];
|
|
631
1050
|
}
|
|
632
1051
|
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
633
|
-
// Vnode moved right
|
|
1052
|
+
// case: "Vnode moved right"
|
|
1053
|
+
//
|
|
1054
|
+
// We've found that the last node in our window on the new children is
|
|
1055
|
+
// the same VNode as the _first_ node in our window on the old children
|
|
1056
|
+
// we're dealing with now. Visually, this is the layout of these two
|
|
1057
|
+
// nodes:
|
|
1058
|
+
//
|
|
1059
|
+
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
1060
|
+
// ^^^^^^^^^^^
|
|
1061
|
+
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
1062
|
+
// ^^^^^^^^^^^^^
|
|
1063
|
+
//
|
|
1064
|
+
// In this situation we need to patch `newEndVnode` onto `oldStartVnode`
|
|
1065
|
+
// and move the DOM element for `oldStartVnode`.
|
|
634
1066
|
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
635
1067
|
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
636
1068
|
}
|
|
637
1069
|
patch(oldStartVnode, newEndVnode);
|
|
1070
|
+
// We need to move the element for `oldStartVnode` into a position which
|
|
1071
|
+
// will be appropriate for `newEndVnode`. For this we can use
|
|
1072
|
+
// `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
|
|
1073
|
+
// sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
|
|
1074
|
+
// `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
|
|
1075
|
+
//
|
|
1076
|
+
// <old-start-node />
|
|
1077
|
+
// <some-intervening-node />
|
|
1078
|
+
// <old-end-node />
|
|
1079
|
+
// <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
|
|
1080
|
+
// <next-sibling />
|
|
1081
|
+
//
|
|
1082
|
+
// If instead `oldEndVnode.$elm$` has no sibling then we just want to put
|
|
1083
|
+
// the node for `oldStartVnode` at the end of the children of
|
|
1084
|
+
// `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
|
|
1085
|
+
// aren't any siblings, and passing `null` to `Node.insertBefore` will
|
|
1086
|
+
// append it to the children of the parent element.
|
|
638
1087
|
parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
639
1088
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
640
1089
|
newEndVnode = newCh[--newEndIdx];
|
|
641
1090
|
}
|
|
642
1091
|
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
643
|
-
// Vnode moved left
|
|
1092
|
+
// case: "Vnode moved left"
|
|
1093
|
+
//
|
|
1094
|
+
// We've found that the first node in our window on the new children is
|
|
1095
|
+
// the same VNode as the _last_ node in our window on the old children.
|
|
1096
|
+
// Visually, this is the layout of these two nodes:
|
|
1097
|
+
//
|
|
1098
|
+
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
1099
|
+
// ^^^^^^^^^^^^^
|
|
1100
|
+
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
1101
|
+
// ^^^^^^^^^^^
|
|
1102
|
+
//
|
|
1103
|
+
// In this situation we need to patch `newStartVnode` onto `oldEndVnode`
|
|
1104
|
+
// (which will handle updating any changed attributes, reconciling their
|
|
1105
|
+
// children etc) but we also need to move the DOM node to which
|
|
1106
|
+
// `oldEndVnode` corresponds.
|
|
644
1107
|
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
645
1108
|
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
646
1109
|
}
|
|
647
1110
|
patch(oldEndVnode, newStartVnode);
|
|
1111
|
+
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
1112
|
+
// the same node, so since we're here we know that they are not. Thus we
|
|
1113
|
+
// can move the element for `oldEndVnode` _before_ the element for
|
|
1114
|
+
// `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
|
|
1115
|
+
// future.
|
|
648
1116
|
parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
649
1117
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
650
1118
|
newStartVnode = newCh[++newStartIdx];
|
|
651
1119
|
}
|
|
652
1120
|
else {
|
|
653
1121
|
{
|
|
654
|
-
//
|
|
1122
|
+
// We either didn't find an element in the old children that matches
|
|
1123
|
+
// the key of the first new child OR the build is not using `key`
|
|
1124
|
+
// attributes at all. In either case we need to create a new element
|
|
1125
|
+
// for the new node.
|
|
655
1126
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
|
|
656
1127
|
newStartVnode = newCh[++newStartIdx];
|
|
657
1128
|
}
|
|
658
1129
|
if (node) {
|
|
1130
|
+
// if we created a new node then handle inserting it to the DOM
|
|
659
1131
|
{
|
|
660
1132
|
parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
|
|
661
1133
|
}
|
|
@@ -663,18 +1135,40 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
663
1135
|
}
|
|
664
1136
|
}
|
|
665
1137
|
if (oldStartIdx > oldEndIdx) {
|
|
1138
|
+
// we have some more new nodes to add which don't match up with old nodes
|
|
666
1139
|
addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
|
|
667
1140
|
}
|
|
668
1141
|
else if (newStartIdx > newEndIdx) {
|
|
1142
|
+
// there are nodes in the `oldCh` array which no longer correspond to nodes
|
|
1143
|
+
// in the new array, so lets remove them (which entails cleaning up the
|
|
1144
|
+
// relevant DOM nodes)
|
|
669
1145
|
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
670
1146
|
}
|
|
671
1147
|
};
|
|
672
|
-
|
|
1148
|
+
/**
|
|
1149
|
+
* Compare two VNodes to determine if they are the same
|
|
1150
|
+
*
|
|
1151
|
+
* **NB**: This function is an equality _heuristic_ based on the available
|
|
1152
|
+
* information set on the two VNodes and can be misleading under certain
|
|
1153
|
+
* circumstances. In particular, if the two nodes do not have `key` attrs
|
|
1154
|
+
* (available under `$key$` on VNodes) then the function falls back on merely
|
|
1155
|
+
* checking that they have the same tag.
|
|
1156
|
+
*
|
|
1157
|
+
* So, in other words, if `key` attrs are not set on VNodes which may be
|
|
1158
|
+
* changing order within a `children` array or something along those lines then
|
|
1159
|
+
* we could obtain a false negative and then have to do needless re-rendering
|
|
1160
|
+
* (i.e. we'd say two VNodes aren't equal when in fact they should be).
|
|
1161
|
+
*
|
|
1162
|
+
* @param leftVNode the first VNode to check
|
|
1163
|
+
* @param rightVNode the second VNode to check
|
|
1164
|
+
* @returns whether they're equal or not
|
|
1165
|
+
*/
|
|
1166
|
+
const isSameVnode = (leftVNode, rightVNode) => {
|
|
673
1167
|
// compare if two vnode to see if they're "technically" the same
|
|
674
1168
|
// need to have the same element tag, and same key to be the same
|
|
675
|
-
if (
|
|
676
|
-
if (
|
|
677
|
-
return
|
|
1169
|
+
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
1170
|
+
if (leftVNode.$tag$ === 'slot') {
|
|
1171
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
|
678
1172
|
}
|
|
679
1173
|
return true;
|
|
680
1174
|
}
|
|
@@ -688,6 +1182,14 @@ const referenceNode = (node) => {
|
|
|
688
1182
|
return (node && node['s-ol']) || node;
|
|
689
1183
|
};
|
|
690
1184
|
const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
|
|
1185
|
+
/**
|
|
1186
|
+
* Handle reconciling an outdated VNode with a new one which corresponds to
|
|
1187
|
+
* it. This function handles flushing updates to the DOM and reconciling the
|
|
1188
|
+
* children of the two nodes (if any).
|
|
1189
|
+
*
|
|
1190
|
+
* @param oldVNode an old VNode whose DOM element and children we want to update
|
|
1191
|
+
* @param newVNode a new VNode representing an updated version of the old one
|
|
1192
|
+
*/
|
|
691
1193
|
const patch = (oldVNode, newVNode) => {
|
|
692
1194
|
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
693
1195
|
const oldChildren = oldVNode.$children$;
|
|
@@ -696,7 +1198,6 @@ const patch = (oldVNode, newVNode) => {
|
|
|
696
1198
|
const text = newVNode.$text$;
|
|
697
1199
|
let defaultHolder;
|
|
698
1200
|
if (text === null) {
|
|
699
|
-
// element node
|
|
700
1201
|
{
|
|
701
1202
|
if (tag === 'slot')
|
|
702
1203
|
;
|
|
@@ -709,6 +1210,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
709
1210
|
}
|
|
710
1211
|
if (oldChildren !== null && newChildren !== null) {
|
|
711
1212
|
// looks like there's child vnodes for both the old and new vnodes
|
|
1213
|
+
// so we need to call `updateChildren` to reconcile them
|
|
712
1214
|
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
713
1215
|
}
|
|
714
1216
|
else if (newChildren !== null) {
|
|
@@ -746,7 +1248,7 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
746
1248
|
let nodeType;
|
|
747
1249
|
for (i = 0, ilen = childNodes.length; i < ilen; i++) {
|
|
748
1250
|
childNode = childNodes[i];
|
|
749
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1251
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
750
1252
|
if (childNode['s-sr']) {
|
|
751
1253
|
// this is a slot fallback node
|
|
752
1254
|
// get the slot name for this slot reference node
|
|
@@ -758,7 +1260,7 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
758
1260
|
nodeType = childNodes[j].nodeType;
|
|
759
1261
|
if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
|
|
760
1262
|
// this sibling node is from a different component OR is a named fallback slot node
|
|
761
|
-
if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
|
|
1263
|
+
if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
|
|
762
1264
|
childNode.hidden = true;
|
|
763
1265
|
break;
|
|
764
1266
|
}
|
|
@@ -767,8 +1269,8 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
767
1269
|
// this is a default fallback slot node
|
|
768
1270
|
// any element or text node (with content)
|
|
769
1271
|
// should hide the default fallback slot node
|
|
770
|
-
if (nodeType === 1 /* ElementNode */ ||
|
|
771
|
-
(nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
|
|
1272
|
+
if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
|
|
1273
|
+
(nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
|
|
772
1274
|
childNode.hidden = true;
|
|
773
1275
|
break;
|
|
774
1276
|
}
|
|
@@ -846,13 +1348,13 @@ const relocateSlotContent = (elm) => {
|
|
|
846
1348
|
}
|
|
847
1349
|
}
|
|
848
1350
|
}
|
|
849
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1351
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
850
1352
|
relocateSlotContent(childNode);
|
|
851
1353
|
}
|
|
852
1354
|
}
|
|
853
1355
|
};
|
|
854
1356
|
const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
|
|
855
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1357
|
+
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
856
1358
|
if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
|
|
857
1359
|
return true;
|
|
858
1360
|
}
|
|
@@ -866,12 +1368,31 @@ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
|
|
|
866
1368
|
}
|
|
867
1369
|
return slotNameAttr === '';
|
|
868
1370
|
};
|
|
869
|
-
|
|
1371
|
+
/**
|
|
1372
|
+
* 'Nullify' any VDom `ref` callbacks on a VDom node or its children by
|
|
1373
|
+
* calling them with `null`. This signals that the DOM element corresponding to
|
|
1374
|
+
* the VDom node has been removed from the DOM.
|
|
1375
|
+
*
|
|
1376
|
+
* @param vNode a virtual DOM node
|
|
1377
|
+
*/
|
|
1378
|
+
const nullifyVNodeRefs = (vNode) => {
|
|
870
1379
|
{
|
|
871
1380
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
872
|
-
vNode.$children$ && vNode.$children$.map(
|
|
1381
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
873
1382
|
}
|
|
874
1383
|
};
|
|
1384
|
+
/**
|
|
1385
|
+
* The main entry point for Stencil's virtual DOM-based rendering engine
|
|
1386
|
+
*
|
|
1387
|
+
* Given a {@link d.HostRef} container and some virtual DOM nodes, this
|
|
1388
|
+
* function will handle creating a virtual DOM tree with a single root, patching
|
|
1389
|
+
* the current virtual DOM tree onto an old one (if any), dealing with slot
|
|
1390
|
+
* relocation, and reflecting attributes.
|
|
1391
|
+
*
|
|
1392
|
+
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
1393
|
+
* the DOM node into which it should be rendered.
|
|
1394
|
+
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
1395
|
+
*/
|
|
875
1396
|
const renderVdom = (hostRef, renderFnResults) => {
|
|
876
1397
|
const hostElm = hostRef.$hostElement$;
|
|
877
1398
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
@@ -883,7 +1404,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
883
1404
|
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
884
1405
|
}
|
|
885
1406
|
rootVnode.$tag$ = null;
|
|
886
|
-
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1407
|
+
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
887
1408
|
hostRef.$vnode$ = rootVnode;
|
|
888
1409
|
rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
|
|
889
1410
|
{
|
|
@@ -891,7 +1412,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
891
1412
|
}
|
|
892
1413
|
{
|
|
893
1414
|
contentRef = hostElm['s-cr'];
|
|
894
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1415
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
|
|
895
1416
|
// always reset
|
|
896
1417
|
checkSlotFallbackVisibility = false;
|
|
897
1418
|
}
|
|
@@ -900,7 +1421,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
900
1421
|
{
|
|
901
1422
|
// while we're moving nodes around existing nodes, temporarily disable
|
|
902
1423
|
// the disconnectCallback from working
|
|
903
|
-
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1424
|
+
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
904
1425
|
if (checkSlotRelocate) {
|
|
905
1426
|
relocateSlotContent(rootVnode.$elm$);
|
|
906
1427
|
let relocateData;
|
|
@@ -958,7 +1479,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
958
1479
|
}
|
|
959
1480
|
else {
|
|
960
1481
|
// this node doesn't have a slot home to go to, so let's hide it
|
|
961
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1482
|
+
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
962
1483
|
nodeToRelocate.hidden = true;
|
|
963
1484
|
}
|
|
964
1485
|
}
|
|
@@ -969,37 +1490,11 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
969
1490
|
}
|
|
970
1491
|
// done moving nodes around
|
|
971
1492
|
// allow the disconnect callback to work again
|
|
972
|
-
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1493
|
+
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
973
1494
|
// always reset
|
|
974
1495
|
relocateNodes.length = 0;
|
|
975
1496
|
}
|
|
976
1497
|
};
|
|
977
|
-
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
978
|
-
const createEvent = (ref, name, flags) => {
|
|
979
|
-
const elm = getElement(ref);
|
|
980
|
-
return {
|
|
981
|
-
emit: (detail) => {
|
|
982
|
-
return emitEvent(elm, name, {
|
|
983
|
-
bubbles: !!(flags & 4 /* Bubbles */),
|
|
984
|
-
composed: !!(flags & 2 /* Composed */),
|
|
985
|
-
cancelable: !!(flags & 1 /* Cancellable */),
|
|
986
|
-
detail,
|
|
987
|
-
});
|
|
988
|
-
},
|
|
989
|
-
};
|
|
990
|
-
};
|
|
991
|
-
/**
|
|
992
|
-
* Helper function to create & dispatch a custom Event on a provided target
|
|
993
|
-
* @param elm the target of the Event
|
|
994
|
-
* @param name the name to give the custom Event
|
|
995
|
-
* @param opts options for configuring a custom Event
|
|
996
|
-
* @returns the custom Event
|
|
997
|
-
*/
|
|
998
|
-
const emitEvent = (elm, name, opts) => {
|
|
999
|
-
const ev = plt.ce(name, opts);
|
|
1000
|
-
elm.dispatchEvent(ev);
|
|
1001
|
-
return ev;
|
|
1002
|
-
};
|
|
1003
1498
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1004
1499
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
1005
1500
|
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
|
@@ -1007,10 +1502,10 @@ const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
|
1007
1502
|
};
|
|
1008
1503
|
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
1009
1504
|
{
|
|
1010
|
-
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
1505
|
+
hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
1011
1506
|
}
|
|
1012
|
-
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
1013
|
-
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
1507
|
+
if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
|
|
1508
|
+
hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
|
|
1014
1509
|
return;
|
|
1015
1510
|
}
|
|
1016
1511
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
@@ -1020,30 +1515,73 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
1020
1515
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1021
1516
|
return writeTask(dispatch) ;
|
|
1022
1517
|
};
|
|
1518
|
+
/**
|
|
1519
|
+
* Dispatch initial-render and update lifecycle hooks, enqueuing calls to
|
|
1520
|
+
* component lifecycle methods like `componentWillLoad` as well as
|
|
1521
|
+
* {@link updateComponent}, which will kick off the virtual DOM re-render.
|
|
1522
|
+
*
|
|
1523
|
+
* @param hostRef a reference to a host DOM node
|
|
1524
|
+
* @param isInitialLoad whether we're on the initial load or not
|
|
1525
|
+
* @returns an empty Promise which is used to enqueue a series of operations for
|
|
1526
|
+
* the component
|
|
1527
|
+
*/
|
|
1023
1528
|
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
1024
1529
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
1025
1530
|
const instance = hostRef.$lazyInstance$ ;
|
|
1026
|
-
|
|
1531
|
+
// We're going to use this variable together with `enqueue` to implement a
|
|
1532
|
+
// little promise-based queue. We start out with it `undefined`. When we add
|
|
1533
|
+
// the first function to the queue we'll set this variable to be that
|
|
1534
|
+
// function's return value. When we attempt to add subsequent values to the
|
|
1535
|
+
// queue we'll check that value and, if it was a `Promise`, we'll then chain
|
|
1536
|
+
// the new function off of that `Promise` using `.then()`. This will give our
|
|
1537
|
+
// queue two nice properties:
|
|
1538
|
+
//
|
|
1539
|
+
// 1. If all functions added to the queue are synchronous they'll be called
|
|
1540
|
+
// synchronously right away.
|
|
1541
|
+
// 2. If all functions added to the queue are asynchronous they'll all be
|
|
1542
|
+
// called in order after `dispatchHooks` exits.
|
|
1543
|
+
let maybePromise;
|
|
1027
1544
|
if (isInitialLoad) {
|
|
1028
1545
|
{
|
|
1029
|
-
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1546
|
+
hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
|
|
1030
1547
|
if (hostRef.$queuedListeners$) {
|
|
1031
1548
|
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1032
1549
|
hostRef.$queuedListeners$ = null;
|
|
1033
1550
|
}
|
|
1034
1551
|
}
|
|
1035
1552
|
{
|
|
1036
|
-
|
|
1553
|
+
// If `componentWillLoad` returns a `Promise` then we want to wait on
|
|
1554
|
+
// whatever's going on in that `Promise` before we launch into
|
|
1555
|
+
// rendering the component, doing other lifecycle stuff, etc. So
|
|
1556
|
+
// in that case we assign the returned promise to the variable we
|
|
1557
|
+
// declared above to hold a possible 'queueing' Promise
|
|
1558
|
+
maybePromise = safeCall(instance, 'componentWillLoad');
|
|
1037
1559
|
}
|
|
1038
1560
|
}
|
|
1039
1561
|
{
|
|
1040
|
-
|
|
1562
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, 'componentWillRender'));
|
|
1041
1563
|
}
|
|
1042
1564
|
endSchedule();
|
|
1043
|
-
return
|
|
1565
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1044
1566
|
};
|
|
1567
|
+
/**
|
|
1568
|
+
* This function uses a Promise to implement a simple first-in, first-out queue
|
|
1569
|
+
* of functions to be called.
|
|
1570
|
+
*
|
|
1571
|
+
* The queue is ordered on the basis of the first argument. If it's
|
|
1572
|
+
* `undefined`, then nothing is on the queue yet, so the provided function can
|
|
1573
|
+
* be called synchronously (although note that this function may return a
|
|
1574
|
+
* `Promise`). The idea is that then the return value of that enqueueing
|
|
1575
|
+
* operation is kept around, so that if it was a `Promise` then subsequent
|
|
1576
|
+
* functions can be enqueued by calling this function again with that `Promise`
|
|
1577
|
+
* as the first argument.
|
|
1578
|
+
*
|
|
1579
|
+
* @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
|
|
1580
|
+
* @param fn a function to enqueue
|
|
1581
|
+
* @returns either a `Promise` or the return value of the provided function
|
|
1582
|
+
*/
|
|
1583
|
+
const enqueue = (maybePromise, fn) => maybePromise instanceof Promise ? maybePromise.then(fn) : fn();
|
|
1045
1584
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
1046
|
-
// updateComponent
|
|
1047
1585
|
const elm = hostRef.$hostElement$;
|
|
1048
1586
|
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
1049
1587
|
const rc = elm['s-rc'];
|
|
@@ -1072,7 +1610,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1072
1610
|
}
|
|
1073
1611
|
else {
|
|
1074
1612
|
Promise.all(childrenPromises).then(postUpdate);
|
|
1075
|
-
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
1613
|
+
hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
|
|
1076
1614
|
childrenPromises.length = 0;
|
|
1077
1615
|
}
|
|
1078
1616
|
}
|
|
@@ -1081,10 +1619,10 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
1081
1619
|
try {
|
|
1082
1620
|
instance = instance.render() ;
|
|
1083
1621
|
{
|
|
1084
|
-
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
1622
|
+
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
1085
1623
|
}
|
|
1086
1624
|
{
|
|
1087
|
-
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
1625
|
+
hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
|
|
1088
1626
|
}
|
|
1089
1627
|
{
|
|
1090
1628
|
{
|
|
@@ -1108,8 +1646,11 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1108
1646
|
const endPostUpdate = createTime('postUpdate', tagName);
|
|
1109
1647
|
const instance = hostRef.$lazyInstance$ ;
|
|
1110
1648
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1111
|
-
|
|
1112
|
-
|
|
1649
|
+
{
|
|
1650
|
+
safeCall(instance, 'componentDidRender');
|
|
1651
|
+
}
|
|
1652
|
+
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
|
1653
|
+
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
|
1113
1654
|
{
|
|
1114
1655
|
// DOM WRITE!
|
|
1115
1656
|
addHydratedFlag(elm);
|
|
@@ -1126,6 +1667,9 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1126
1667
|
}
|
|
1127
1668
|
}
|
|
1128
1669
|
else {
|
|
1670
|
+
{
|
|
1671
|
+
safeCall(instance, 'componentDidUpdate');
|
|
1672
|
+
}
|
|
1129
1673
|
endPostUpdate();
|
|
1130
1674
|
}
|
|
1131
1675
|
// load events fire from bottom to top
|
|
@@ -1135,10 +1679,10 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1135
1679
|
hostRef.$onRenderResolve$();
|
|
1136
1680
|
hostRef.$onRenderResolve$ = undefined;
|
|
1137
1681
|
}
|
|
1138
|
-
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
1682
|
+
if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
|
|
1139
1683
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
1140
1684
|
}
|
|
1141
|
-
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
|
1685
|
+
hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
|
|
1142
1686
|
}
|
|
1143
1687
|
// ( •_•)
|
|
1144
1688
|
// ( •_•)>⌐■-■
|
|
@@ -1163,58 +1707,8 @@ const safeCall = (instance, method, arg) => {
|
|
|
1163
1707
|
}
|
|
1164
1708
|
return undefined;
|
|
1165
1709
|
};
|
|
1166
|
-
const then = (promise, thenFn) => {
|
|
1167
|
-
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
1168
|
-
};
|
|
1169
1710
|
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1170
1711
|
;
|
|
1171
|
-
/**
|
|
1172
|
-
* Parse a new property value for a given property type.
|
|
1173
|
-
*
|
|
1174
|
-
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
|
1175
|
-
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
|
1176
|
-
* 1. `any`, the type given to `propValue` in the function signature
|
|
1177
|
-
* 2. the type stored from `propType`.
|
|
1178
|
-
*
|
|
1179
|
-
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
|
1180
|
-
*
|
|
1181
|
-
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
|
1182
|
-
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
|
1183
|
-
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
|
1184
|
-
* ```tsx
|
|
1185
|
-
* <my-cmp prop-val={0}></my-cmp>
|
|
1186
|
-
* ```
|
|
1187
|
-
*
|
|
1188
|
-
* HTML prop values on the other hand, will always a string
|
|
1189
|
-
*
|
|
1190
|
-
* @param propValue the new value to coerce to some type
|
|
1191
|
-
* @param propType the type of the prop, expressed as a binary number
|
|
1192
|
-
* @returns the parsed/coerced value
|
|
1193
|
-
*/
|
|
1194
|
-
const parsePropertyValue = (propValue, propType) => {
|
|
1195
|
-
// ensure this value is of the correct prop type
|
|
1196
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
1197
|
-
if (propType & 4 /* Boolean */) {
|
|
1198
|
-
// per the HTML spec, any string value means it is a boolean true value
|
|
1199
|
-
// but we'll cheat here and say that the string "false" is the boolean false
|
|
1200
|
-
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
1201
|
-
}
|
|
1202
|
-
if (propType & 2 /* Number */) {
|
|
1203
|
-
// force it to be a number
|
|
1204
|
-
return parseFloat(propValue);
|
|
1205
|
-
}
|
|
1206
|
-
if (propType & 1 /* String */) {
|
|
1207
|
-
// could have been passed as a number or boolean
|
|
1208
|
-
// but we still want it as a string
|
|
1209
|
-
return String(propValue);
|
|
1210
|
-
}
|
|
1211
|
-
// redundant return here for better minification
|
|
1212
|
-
return propValue;
|
|
1213
|
-
}
|
|
1214
|
-
// not sure exactly what type we want
|
|
1215
|
-
// so no need to change to a different type
|
|
1216
|
-
return propValue;
|
|
1217
|
-
};
|
|
1218
1712
|
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1219
1713
|
const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1220
1714
|
// check our new property value against our internal value
|
|
@@ -1227,13 +1721,13 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1227
1721
|
// explicitly check for NaN on both sides, as `NaN === NaN` is always false
|
|
1228
1722
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1229
1723
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1230
|
-
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
1724
|
+
if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
1231
1725
|
// gadzooks! the property's value has changed!!
|
|
1232
1726
|
// set our new value!
|
|
1233
1727
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1234
1728
|
if (instance) {
|
|
1235
1729
|
// get an array of method names of watch functions to call
|
|
1236
|
-
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
1730
|
+
if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
|
|
1237
1731
|
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1238
1732
|
if (watchMethods) {
|
|
1239
1733
|
// this instance is watching for when this property changed
|
|
@@ -1248,7 +1742,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1248
1742
|
});
|
|
1249
1743
|
}
|
|
1250
1744
|
}
|
|
1251
|
-
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1745
|
+
if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
|
|
1252
1746
|
if (instance.componentShouldUpdate) {
|
|
1253
1747
|
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1254
1748
|
return;
|
|
@@ -1263,6 +1757,16 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1263
1757
|
}
|
|
1264
1758
|
}
|
|
1265
1759
|
};
|
|
1760
|
+
/**
|
|
1761
|
+
* Attach a series of runtime constructs to a compiled Stencil component
|
|
1762
|
+
* constructor, including getters and setters for the `@Prop` and `@State`
|
|
1763
|
+
* decorators, callbacks for when attributes change, and so on.
|
|
1764
|
+
*
|
|
1765
|
+
* @param Cstr the constructor for a component that we need to process
|
|
1766
|
+
* @param cmpMeta metadata collected previously about the component
|
|
1767
|
+
* @param flags a number used to store a series of bit flags
|
|
1768
|
+
* @returns a reference to the same constructor passed in (but now mutated)
|
|
1769
|
+
*/
|
|
1266
1770
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1267
1771
|
if (cmpMeta.$members$) {
|
|
1268
1772
|
if (Cstr.watchers) {
|
|
@@ -1272,8 +1776,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1272
1776
|
const members = Object.entries(cmpMeta.$members$);
|
|
1273
1777
|
const prototype = Cstr.prototype;
|
|
1274
1778
|
members.map(([memberName, [memberFlags]]) => {
|
|
1275
|
-
if ((memberFlags & 31 /* Prop */ ||
|
|
1276
|
-
((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
1779
|
+
if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
|
|
1780
|
+
((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
|
|
1277
1781
|
// proxyComponent - prop
|
|
1278
1782
|
Object.defineProperty(prototype, memberName, {
|
|
1279
1783
|
get() {
|
|
@@ -1289,7 +1793,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1289
1793
|
});
|
|
1290
1794
|
}
|
|
1291
1795
|
});
|
|
1292
|
-
if ((flags & 1 /* isElementConstructor */)) {
|
|
1796
|
+
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
|
1293
1797
|
const attrNameToPropName = new Map();
|
|
1294
1798
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1295
1799
|
plt.jmp(() => {
|
|
@@ -1345,11 +1849,11 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1345
1849
|
// create an array of attributes to observe
|
|
1346
1850
|
// and also create a map of html attribute name to js property name
|
|
1347
1851
|
Cstr.observedAttributes = members
|
|
1348
|
-
.filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
|
|
1852
|
+
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
|
|
1349
1853
|
.map(([propName, m]) => {
|
|
1350
1854
|
const attrName = m[1] || propName;
|
|
1351
1855
|
attrNameToPropName.set(attrName, propName);
|
|
1352
|
-
if (m[0] & 512 /* ReflectAttr */) {
|
|
1856
|
+
if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
|
|
1353
1857
|
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1354
1858
|
}
|
|
1355
1859
|
return attrName;
|
|
@@ -1360,10 +1864,10 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1360
1864
|
};
|
|
1361
1865
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1362
1866
|
// initializeComponent
|
|
1363
|
-
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1867
|
+
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1868
|
+
// Let the runtime know that the component has been initialized
|
|
1869
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1364
1870
|
{
|
|
1365
|
-
// we haven't initialized this element yet
|
|
1366
|
-
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1367
1871
|
// lazy loaded components
|
|
1368
1872
|
// request the component's implementation to be
|
|
1369
1873
|
// wired up with the host element
|
|
@@ -1381,7 +1885,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1381
1885
|
{
|
|
1382
1886
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1383
1887
|
}
|
|
1384
|
-
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1888
|
+
proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
|
|
1385
1889
|
Cstr.isProxied = true;
|
|
1386
1890
|
}
|
|
1387
1891
|
const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
|
|
@@ -1389,7 +1893,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1389
1893
|
// but let's keep track of when we start and stop
|
|
1390
1894
|
// so that the getters/setters don't incorrectly step on data
|
|
1391
1895
|
{
|
|
1392
|
-
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1896
|
+
hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
|
|
1393
1897
|
}
|
|
1394
1898
|
// construct the lazy-loaded component implementation
|
|
1395
1899
|
// passing the hostRef is very important during
|
|
@@ -1402,10 +1906,10 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1402
1906
|
consoleError(e);
|
|
1403
1907
|
}
|
|
1404
1908
|
{
|
|
1405
|
-
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1909
|
+
hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
|
|
1406
1910
|
}
|
|
1407
1911
|
{
|
|
1408
|
-
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1912
|
+
hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
|
|
1409
1913
|
}
|
|
1410
1914
|
endNewInstance();
|
|
1411
1915
|
}
|
|
@@ -1415,7 +1919,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1415
1919
|
const scopeId = getScopeId(cmpMeta);
|
|
1416
1920
|
if (!styles.has(scopeId)) {
|
|
1417
1921
|
const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
|
|
1418
|
-
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1922
|
+
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
|
|
1419
1923
|
endRegisterStyles();
|
|
1420
1924
|
}
|
|
1421
1925
|
}
|
|
@@ -1437,19 +1941,31 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1437
1941
|
}
|
|
1438
1942
|
};
|
|
1439
1943
|
const connectedCallback = (elm) => {
|
|
1440
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1944
|
+
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1441
1945
|
const hostRef = getHostRef(elm);
|
|
1442
1946
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1443
1947
|
const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
|
|
1444
|
-
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1948
|
+
if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
|
|
1445
1949
|
// first time this component has connected
|
|
1446
|
-
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1950
|
+
hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
|
|
1951
|
+
let hostId;
|
|
1447
1952
|
{
|
|
1953
|
+
hostId = elm.getAttribute(HYDRATE_ID);
|
|
1954
|
+
if (hostId) {
|
|
1955
|
+
if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
|
|
1956
|
+
const scopeId = addStyle(elm.shadowRoot, cmpMeta);
|
|
1957
|
+
elm.classList.remove(scopeId + '-h', scopeId + '-s');
|
|
1958
|
+
}
|
|
1959
|
+
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
if (!hostId) {
|
|
1448
1963
|
// initUpdate
|
|
1449
1964
|
// if the slot polyfill is required we'll need to put some nodes
|
|
1450
1965
|
// in here to act as original content anchors as we move nodes around
|
|
1451
1966
|
// host element has been connected to the DOM
|
|
1452
|
-
if ((
|
|
1967
|
+
if ((// TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
|
|
1968
|
+
cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
|
|
1453
1969
|
setContentReference(elm);
|
|
1454
1970
|
}
|
|
1455
1971
|
}
|
|
@@ -1460,7 +1976,10 @@ const connectedCallback = (elm) => {
|
|
|
1460
1976
|
while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
|
|
1461
1977
|
// climb up the ancestors looking for the first
|
|
1462
1978
|
// component that hasn't finished its lifecycle update yet
|
|
1463
|
-
if (ancestorComponent
|
|
1979
|
+
if ((ancestorComponent.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
|
|
1980
|
+
ancestorComponent.hasAttribute('s-id') &&
|
|
1981
|
+
ancestorComponent['s-p']) ||
|
|
1982
|
+
ancestorComponent['s-p']) {
|
|
1464
1983
|
// we found this components first ancestor component
|
|
1465
1984
|
// keep a reference to this component's ancestor component
|
|
1466
1985
|
attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
|
|
@@ -1472,7 +1991,7 @@ const connectedCallback = (elm) => {
|
|
|
1472
1991
|
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1473
1992
|
if (cmpMeta.$members$) {
|
|
1474
1993
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1475
|
-
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1994
|
+
if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1476
1995
|
const value = elm[memberName];
|
|
1477
1996
|
delete elm[memberName];
|
|
1478
1997
|
elm[memberName] = value;
|
|
@@ -1504,7 +2023,7 @@ const setContentReference = (elm) => {
|
|
|
1504
2023
|
elm.insertBefore(contentRefElm, elm.firstChild);
|
|
1505
2024
|
};
|
|
1506
2025
|
const disconnectedCallback = (elm) => {
|
|
1507
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2026
|
+
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1508
2027
|
const hostRef = getHostRef(elm);
|
|
1509
2028
|
const instance = hostRef.$lazyInstance$ ;
|
|
1510
2029
|
{
|
|
@@ -1519,6 +2038,7 @@ const disconnectedCallback = (elm) => {
|
|
|
1519
2038
|
}
|
|
1520
2039
|
};
|
|
1521
2040
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
2041
|
+
var _a;
|
|
1522
2042
|
const endBootstrap = createTime();
|
|
1523
2043
|
const cmpTags = [];
|
|
1524
2044
|
const exclude = options.exclude || [];
|
|
@@ -1527,10 +2047,22 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1527
2047
|
const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
|
|
1528
2048
|
const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
|
|
1529
2049
|
const deferredConnectedCallbacks = [];
|
|
2050
|
+
const styles = /*@__PURE__*/ doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
1530
2051
|
let appLoadFallback;
|
|
1531
2052
|
let isBootstrapping = true;
|
|
2053
|
+
let i = 0;
|
|
1532
2054
|
Object.assign(plt, options);
|
|
1533
2055
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
2056
|
+
{
|
|
2057
|
+
// If the app is already hydrated there is not point to disable the
|
|
2058
|
+
// async queue. This will improve the first input delay
|
|
2059
|
+
plt.$flags$ |= 2 /* PLATFORM_FLAGS.appLoaded */;
|
|
2060
|
+
}
|
|
2061
|
+
{
|
|
2062
|
+
for (; i < styles.length; i++) {
|
|
2063
|
+
registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
1534
2066
|
lazyBundles.map((lazyBundle) => {
|
|
1535
2067
|
lazyBundle[1].map((compactMeta) => {
|
|
1536
2068
|
const cmpMeta = {
|
|
@@ -1559,7 +2091,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1559
2091
|
super(self);
|
|
1560
2092
|
self = this;
|
|
1561
2093
|
registerHost(self, cmpMeta);
|
|
1562
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2094
|
+
if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
|
|
1563
2095
|
// this component is using shadow dom
|
|
1564
2096
|
// and this browser supports shadow dom
|
|
1565
2097
|
// add the read-only property "shadowRoot" to the host element
|
|
@@ -1594,13 +2126,18 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1594
2126
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1595
2127
|
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1596
2128
|
cmpTags.push(tagName);
|
|
1597
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
2129
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
|
|
1598
2130
|
}
|
|
1599
2131
|
});
|
|
1600
2132
|
});
|
|
1601
2133
|
{
|
|
1602
2134
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1603
2135
|
visibilityStyle.setAttribute('data-styles', '');
|
|
2136
|
+
// Apply CSP nonce to the style tag if it exists
|
|
2137
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
2138
|
+
if (nonce != null) {
|
|
2139
|
+
visibilityStyle.setAttribute('nonce', nonce);
|
|
2140
|
+
}
|
|
1604
2141
|
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1605
2142
|
}
|
|
1606
2143
|
// Process deferred connectedCallbacks now all components have been registered
|
|
@@ -1616,7 +2153,52 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1616
2153
|
// Fallback appLoad event
|
|
1617
2154
|
endBootstrap();
|
|
1618
2155
|
};
|
|
1619
|
-
const
|
|
2156
|
+
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2157
|
+
if (listeners) {
|
|
2158
|
+
listeners.map(([flags, name, method]) => {
|
|
2159
|
+
const target = getHostListenerTarget(elm, flags) ;
|
|
2160
|
+
const handler = hostListenerProxy(hostRef, method);
|
|
2161
|
+
const opts = hostListenerOpts(flags);
|
|
2162
|
+
plt.ael(target, name, handler, opts);
|
|
2163
|
+
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
2164
|
+
});
|
|
2165
|
+
}
|
|
2166
|
+
};
|
|
2167
|
+
const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
2168
|
+
try {
|
|
2169
|
+
{
|
|
2170
|
+
if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
|
|
2171
|
+
// instance is ready, let's call it's member method for this event
|
|
2172
|
+
hostRef.$lazyInstance$[methodName](ev);
|
|
2173
|
+
}
|
|
2174
|
+
else {
|
|
2175
|
+
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
catch (e) {
|
|
2180
|
+
consoleError(e);
|
|
2181
|
+
}
|
|
2182
|
+
};
|
|
2183
|
+
const getHostListenerTarget = (elm, flags) => {
|
|
2184
|
+
if (flags & 4 /* LISTENER_FLAGS.TargetDocument */)
|
|
2185
|
+
return doc;
|
|
2186
|
+
if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
|
|
2187
|
+
return win;
|
|
2188
|
+
if (flags & 16 /* LISTENER_FLAGS.TargetBody */)
|
|
2189
|
+
return doc.body;
|
|
2190
|
+
return elm;
|
|
2191
|
+
};
|
|
2192
|
+
// prettier-ignore
|
|
2193
|
+
const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
|
|
2194
|
+
/**
|
|
2195
|
+
* Assigns the given value to the nonce property on the runtime platform object.
|
|
2196
|
+
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
|
2197
|
+
* @param nonce The value to be assigned to the platform nonce property.
|
|
2198
|
+
* @returns void
|
|
2199
|
+
*/
|
|
2200
|
+
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
2201
|
+
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1620
2202
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1621
2203
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
1622
2204
|
const registerHost = (elm, cmpMeta) => {
|
|
@@ -1661,6 +2243,14 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1661
2243
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1662
2244
|
/* webpackMode: "lazy" */
|
|
1663
2245
|
'./p-accordion.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2246
|
+
case 'p-attachment.cjs':
|
|
2247
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2248
|
+
/* webpackMode: "lazy" */
|
|
2249
|
+
'./p-attachment.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2250
|
+
case 'p-avatar.cjs':
|
|
2251
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2252
|
+
/* webpackMode: "lazy" */
|
|
2253
|
+
'./p-avatar.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1664
2254
|
case 'p-avatar-group.cjs':
|
|
1665
2255
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1666
2256
|
/* webpackMode: "lazy" */
|
|
@@ -1681,22 +2271,18 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1681
2271
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1682
2272
|
/* webpackMode: "lazy" */
|
|
1683
2273
|
'./p-content-slider.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1684
|
-
case 'p-
|
|
2274
|
+
case 'p-datepicker.cjs':
|
|
1685
2275
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1686
2276
|
/* webpackMode: "lazy" */
|
|
1687
|
-
'./p-
|
|
1688
|
-
case 'p-
|
|
2277
|
+
'./p-datepicker.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2278
|
+
case 'p-drawer.cjs':
|
|
1689
2279
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1690
2280
|
/* webpackMode: "lazy" */
|
|
1691
|
-
'./p-
|
|
2281
|
+
'./p-drawer.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1692
2282
|
case 'p-info-panel.cjs':
|
|
1693
2283
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1694
2284
|
/* webpackMode: "lazy" */
|
|
1695
2285
|
'./p-info-panel.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1696
|
-
case 'p-input-group.cjs':
|
|
1697
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1698
|
-
/* webpackMode: "lazy" */
|
|
1699
|
-
'./p-input-group.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1700
2286
|
case 'p-layout.cjs':
|
|
1701
2287
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1702
2288
|
/* webpackMode: "lazy" */
|
|
@@ -1713,22 +2299,14 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1713
2299
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1714
2300
|
/* webpackMode: "lazy" */
|
|
1715
2301
|
'./p-navigation-item.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1716
|
-
case 'p-pagination.cjs':
|
|
1717
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1718
|
-
/* webpackMode: "lazy" */
|
|
1719
|
-
'./p-pagination.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1720
2302
|
case 'p-profile.cjs':
|
|
1721
2303
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1722
2304
|
/* webpackMode: "lazy" */
|
|
1723
2305
|
'./p-profile.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1724
|
-
case 'p-
|
|
1725
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1726
|
-
/* webpackMode: "lazy" */
|
|
1727
|
-
'./p-segment-container.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1728
|
-
case 'p-segment-item.cjs':
|
|
2306
|
+
case 'p-select.cjs':
|
|
1729
2307
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1730
2308
|
/* webpackMode: "lazy" */
|
|
1731
|
-
'./p-
|
|
2309
|
+
'./p-select.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1732
2310
|
case 'p-status.cjs':
|
|
1733
2311
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1734
2312
|
/* webpackMode: "lazy" */
|
|
@@ -1737,6 +2315,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1737
2315
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1738
2316
|
/* webpackMode: "lazy" */
|
|
1739
2317
|
'./p-stepper.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2318
|
+
case 'p-stepper-item.cjs':
|
|
2319
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2320
|
+
/* webpackMode: "lazy" */
|
|
2321
|
+
'./p-stepper-item.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1740
2322
|
case 'p-tab-group.cjs':
|
|
1741
2323
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1742
2324
|
/* webpackMode: "lazy" */
|
|
@@ -1745,50 +2327,82 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1745
2327
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1746
2328
|
/* webpackMode: "lazy" */
|
|
1747
2329
|
'./p-tab-item.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1748
|
-
case 'p-
|
|
2330
|
+
case 'p-table.cjs':
|
|
2331
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2332
|
+
/* webpackMode: "lazy" */
|
|
2333
|
+
'./p-table.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2334
|
+
case 'p-table-column.cjs':
|
|
2335
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2336
|
+
/* webpackMode: "lazy" */
|
|
2337
|
+
'./p-table-column.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2338
|
+
case 'p-toast.cjs':
|
|
2339
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2340
|
+
/* webpackMode: "lazy" */
|
|
2341
|
+
'./p-toast.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2342
|
+
case 'p-toast-container.cjs':
|
|
1749
2343
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1750
2344
|
/* webpackMode: "lazy" */
|
|
1751
|
-
'./p-
|
|
1752
|
-
case 'p-
|
|
2345
|
+
'./p-toast-container.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2346
|
+
case 'p-calendar.cjs':
|
|
1753
2347
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1754
2348
|
/* webpackMode: "lazy" */
|
|
1755
|
-
'./p-
|
|
2349
|
+
'./p-calendar.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1756
2350
|
case 'p-counter.cjs':
|
|
1757
2351
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1758
2352
|
/* webpackMode: "lazy" */
|
|
1759
2353
|
'./p-counter.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1760
|
-
case 'p-
|
|
2354
|
+
case 'p-drawer-body_3.cjs':
|
|
1761
2355
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1762
2356
|
/* webpackMode: "lazy" */
|
|
1763
|
-
'./p-
|
|
1764
|
-
case 'p-
|
|
2357
|
+
'./p-drawer-body_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2358
|
+
case 'p-illustration_6.cjs':
|
|
1765
2359
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1766
2360
|
/* webpackMode: "lazy" */
|
|
1767
|
-
'./p-
|
|
1768
|
-
case 'p-
|
|
2361
|
+
'./p-illustration_6.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2362
|
+
case 'p-modal-body_4.cjs':
|
|
1769
2363
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1770
2364
|
/* webpackMode: "lazy" */
|
|
1771
|
-
'./p-
|
|
2365
|
+
'./p-modal-body_4.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1772
2366
|
case 'p-slider-indicator.cjs':
|
|
1773
2367
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1774
2368
|
/* webpackMode: "lazy" */
|
|
1775
2369
|
'./p-slider-indicator.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1776
|
-
case 'p-stepper-
|
|
2370
|
+
case 'p-stepper-line.cjs':
|
|
1777
2371
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1778
2372
|
/* webpackMode: "lazy" */
|
|
1779
|
-
'./p-stepper-
|
|
1780
|
-
case 'p-
|
|
2373
|
+
'./p-stepper-line.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2374
|
+
case 'p-label_3.cjs':
|
|
1781
2375
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1782
2376
|
/* webpackMode: "lazy" */
|
|
1783
|
-
'./p-
|
|
1784
|
-
case 'p-
|
|
2377
|
+
'./p-label_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2378
|
+
case 'p-page-size-select_3.cjs':
|
|
1785
2379
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1786
2380
|
/* webpackMode: "lazy" */
|
|
1787
|
-
'./p-
|
|
2381
|
+
'./p-page-size-select_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2382
|
+
case 'p-backdrop.cjs':
|
|
2383
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2384
|
+
/* webpackMode: "lazy" */
|
|
2385
|
+
'./p-backdrop.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2386
|
+
case 'p-dropdown_2.cjs':
|
|
2387
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2388
|
+
/* webpackMode: "lazy" */
|
|
2389
|
+
'./p-dropdown_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2390
|
+
case 'p-helper_3.cjs':
|
|
2391
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2392
|
+
/* webpackMode: "lazy" */
|
|
2393
|
+
'./p-helper_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1788
2394
|
case 'p-divider.cjs':
|
|
1789
2395
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1790
2396
|
/* webpackMode: "lazy" */
|
|
1791
2397
|
'./p-divider.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2398
|
+
case 'p-dropdown-menu-container.cjs':
|
|
2399
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2400
|
+
/* webpackMode: "lazy" */
|
|
2401
|
+
'./p-dropdown-menu-container.cjs.entry.js')); }).then(processMod, consoleError);
|
|
2402
|
+
case 'p-tooltip.cjs':
|
|
2403
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
2404
|
+
/* webpackMode: "lazy" */
|
|
2405
|
+
'./p-tooltip.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1792
2406
|
}
|
|
1793
2407
|
}
|
|
1794
2408
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
@@ -1803,14 +2417,38 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1803
2417
|
return importedModule[exportName];
|
|
1804
2418
|
}, consoleError);
|
|
1805
2419
|
};
|
|
1806
|
-
const styles = new Map();
|
|
2420
|
+
const styles = /*@__PURE__*/ new Map();
|
|
2421
|
+
const win = typeof window !== 'undefined' ? window : {};
|
|
2422
|
+
const doc = win.document || { head: {} };
|
|
2423
|
+
const plt = {
|
|
2424
|
+
$flags$: 0,
|
|
2425
|
+
$resourcesUrl$: '',
|
|
2426
|
+
jmp: (h) => h(),
|
|
2427
|
+
raf: (h) => requestAnimationFrame(h),
|
|
2428
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
2429
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
2430
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
2431
|
+
};
|
|
2432
|
+
const supportsShadow =
|
|
2433
|
+
// TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
|
|
2434
|
+
true;
|
|
2435
|
+
const promiseResolve = (v) => Promise.resolve(v);
|
|
2436
|
+
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
2437
|
+
try {
|
|
2438
|
+
new CSSStyleSheet();
|
|
2439
|
+
return typeof new CSSStyleSheet().replaceSync === 'function';
|
|
2440
|
+
}
|
|
2441
|
+
catch (e) { }
|
|
2442
|
+
return false;
|
|
2443
|
+
})()
|
|
2444
|
+
;
|
|
1807
2445
|
const queueDomReads = [];
|
|
1808
2446
|
const queueDomWrites = [];
|
|
1809
2447
|
const queueTask = (queue, write) => (cb) => {
|
|
1810
2448
|
queue.push(cb);
|
|
1811
2449
|
if (!queuePending) {
|
|
1812
2450
|
queuePending = true;
|
|
1813
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
2451
|
+
if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
|
|
1814
2452
|
nextTick(flush);
|
|
1815
2453
|
}
|
|
1816
2454
|
else {
|
|
@@ -1854,3 +2492,6 @@ exports.getElement = getElement;
|
|
|
1854
2492
|
exports.h = h;
|
|
1855
2493
|
exports.promiseResolve = promiseResolve;
|
|
1856
2494
|
exports.registerInstance = registerInstance;
|
|
2495
|
+
exports.setNonce = setNonce;
|
|
2496
|
+
|
|
2497
|
+
//# sourceMappingURL=index-dfc4dfec.js.map
|