@gov-design-system-ce/components 4.2.7 → 4.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -1
- package/dist/cjs/core.cjs.js +3 -3
- package/dist/cjs/core.cjs.js.map +1 -1
- package/dist/cjs/gov-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gov-attachments_3.cjs.entry.js +1 -1
- package/dist/cjs/gov-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/gov-banner.cjs.entry.js +1 -1
- package/dist/cjs/gov-blockquote.cjs.entry.js +1 -1
- package/dist/cjs/gov-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/gov-button.cjs.entry.js +1 -1
- package/dist/cjs/gov-card.cjs.entry.js +2 -2
- package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-card.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-chip.cjs.entry.js +3 -3
- package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-chip.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-container.cjs.entry.js +1 -1
- package/dist/cjs/gov-control-group.cjs.entry.js +8 -4
- package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
- package/dist/cjs/gov-control-group.entry.cjs.js.map +1 -1
- package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
- package/dist/cjs/gov-dialog.cjs.entry.js +1 -1
- package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gov-empty.cjs.entry.js +1 -1
- package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
- package/dist/cjs/gov-flex_3.cjs.entry.js +2 -2
- package/dist/cjs/gov-form-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-file.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-group.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-input_2.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-multi-select.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-radio.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-range.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-select.cjs.entry.js +1 -1
- package/dist/cjs/gov-form-switch.cjs.entry.js +1 -1
- package/dist/cjs/gov-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-grid.cjs.entry.js +1 -1
- package/dist/cjs/gov-infobar.cjs.entry.js +1 -1
- package/dist/cjs/gov-layout-column.cjs.entry.js +1 -1
- package/dist/cjs/gov-layout.cjs.entry.js +1 -1
- package/dist/cjs/gov-lifecycle.cjs.entry.js +1 -1
- package/dist/cjs/gov-link.cjs.entry.js +1 -1
- package/dist/cjs/gov-loading.cjs.entry.js +1 -1
- package/dist/cjs/gov-message.cjs.entry.js +1 -1
- package/dist/cjs/gov-pagination.cjs.entry.js +1 -1
- package/dist/cjs/gov-spacer.cjs.entry.js +1 -1
- package/dist/cjs/gov-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-stepper.cjs.entry.js +1 -1
- package/dist/cjs/gov-tabs-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gov-tag.cjs.entry.js +1 -1
- package/dist/cjs/gov-tile.cjs.entry.js +1 -1
- package/dist/cjs/gov-toast.cjs.entry.js +1 -1
- package/dist/cjs/gov-tooltip-content.cjs.entry.js +1 -1
- package/dist/cjs/gov-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/gov-wizard-item.cjs.entry.js +1 -1
- package/dist/cjs/gov-wizard.cjs.entry.js +1 -1
- package/dist/cjs/{index-BEF5cZxd.js → index-pjwoybrU.js} +482 -140
- package/dist/cjs/index-pjwoybrU.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/gov-card/gov-card.js +1 -1
- package/dist/collection/components/gov-card/gov-card.js.map +1 -1
- package/dist/collection/components/gov-chip/gov-chip.js +2 -2
- package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
- package/dist/collection/components/gov-control-group/constants.js +1 -1
- package/dist/collection/components/gov-control-group/constants.js.map +1 -1
- package/dist/collection/components/gov-control-group/gov-control-group.js +28 -4
- package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -1
- package/dist/collection/pages/Chip.js +8 -5
- package/dist/collection/pages/Chip.js.map +1 -1
- package/dist/collection/pages/ControlGroup.js +94 -3
- package/dist/collection/pages/ControlGroup.js.map +1 -1
- package/dist/collection/pages/Forms.js +12 -1
- package/dist/collection/pages/Forms.js.map +1 -1
- package/dist/collection/pages/Tiles.js +3 -3
- package/dist/collection/pages/Tiles.js.map +1 -1
- package/dist/collection/pages/Tooltip.js +10 -0
- package/dist/collection/pages/Tooltip.js.map +1 -1
- package/dist/components/gov-accordion-item.js +1 -1
- package/dist/components/gov-accordion.js +1 -1
- package/dist/components/gov-attachments-item.js +1 -1
- package/dist/components/gov-attachments.js +1 -1
- package/dist/components/gov-backdrop.js +1 -1
- package/dist/components/gov-banner.js +1 -1
- package/dist/components/gov-blockquote.js +1 -1
- package/dist/components/gov-breadcrumbs.js +1 -1
- package/dist/components/gov-button.js +1 -1
- package/dist/components/gov-card.js +1 -1
- package/dist/components/gov-card.js.map +1 -1
- package/dist/components/gov-chip.js +1 -1
- package/dist/components/gov-container.js +1 -1
- package/dist/components/gov-control-group.js +1 -1
- package/dist/components/gov-control-group.js.map +1 -1
- package/dist/components/gov-cookiebar.js +1 -1
- package/dist/components/gov-dialog.js +1 -1
- package/dist/components/gov-dropdown.js +1 -1
- package/dist/components/gov-empty.js +1 -1
- package/dist/components/gov-error-code.js +1 -1
- package/dist/components/gov-flex.js +1 -1
- package/dist/components/gov-form-autocomplete.js +1 -1
- package/dist/components/gov-form-checkbox-group.js +1 -1
- package/dist/components/gov-form-checkbox.js +1 -1
- package/dist/components/gov-form-control.js +1 -1
- package/dist/components/gov-form-file.js +1 -1
- package/dist/components/gov-form-group.js +1 -1
- package/dist/components/gov-form-input.js +1 -1
- package/dist/components/gov-form-label.js +1 -1
- package/dist/components/gov-form-message.js +1 -1
- package/dist/components/gov-form-multi-select.js +1 -1
- package/dist/components/gov-form-password-power.js +1 -1
- package/dist/components/gov-form-radio-group.js +1 -1
- package/dist/components/gov-form-radio.js +1 -1
- package/dist/components/gov-form-range.js +1 -1
- package/dist/components/gov-form-search.js +1 -1
- package/dist/components/gov-form-select.js +1 -1
- package/dist/components/gov-form-switch.js +1 -1
- package/dist/components/gov-grid-item.js +1 -1
- package/dist/components/gov-grid.js +1 -1
- package/dist/components/gov-icon.js +1 -1
- package/dist/components/gov-infobar.js +1 -1
- package/dist/components/gov-layout-column.js +1 -1
- package/dist/components/gov-layout.js +1 -1
- package/dist/components/gov-lifecycle.js +1 -1
- package/dist/components/gov-link.js +1 -1
- package/dist/components/gov-loading.js +1 -1
- package/dist/components/gov-message.js +1 -1
- package/dist/components/gov-pagination.js +1 -1
- package/dist/components/gov-skeleton.js +1 -1
- package/dist/components/gov-spacer.js +1 -1
- package/dist/components/gov-stepper-item.js +1 -1
- package/dist/components/gov-stepper.js +1 -1
- package/dist/components/gov-tabs-item.js +1 -1
- package/dist/components/gov-tabs.js +1 -1
- package/dist/components/gov-tag.js +1 -1
- package/dist/components/gov-theme-switch.js +1 -1
- package/dist/components/gov-tile.js +1 -1
- package/dist/components/gov-toast.js +1 -1
- package/dist/components/gov-tooltip-content.js +1 -1
- package/dist/components/gov-tooltip.js +1 -1
- package/dist/components/gov-wizard-item.js +1 -1
- package/dist/components/gov-wizard.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-vuyK2av-.js → p-9COKmDO0.js} +2 -2
- package/dist/components/{p-D82BPGeo.js → p-B03Rpjps.js} +2 -2
- package/dist/components/{p-DxCeyMKq.js → p-CXbpWAIF.js} +2 -2
- package/dist/components/{p-DGsyEn3-.js → p-Cta_74Ps.js} +2 -2
- package/dist/components/{p-DkoI3xas.js → p-Cy7Wk3yM.js} +2 -2
- package/dist/components/{p-CNXZgyfX.js → p-D4Z6jWqx.js} +2 -2
- package/dist/components/{p-CNRG3ZtC.js → p-DJ1DN3ks.js} +2 -2
- package/dist/components/{p-Dj3UNRiz.js → p-DTn9nVrF.js} +2 -2
- package/dist/components/p-Dmr81UhL.js +2 -0
- package/dist/components/p-Dmr81UhL.js.map +1 -0
- package/dist/components/{p-BlqsCTBR.js → p-DnZEr-aq.js} +2 -2
- package/dist/components/{p-yUYC6pA5.js → p-wlTP5ZEU.js} +2 -2
- package/dist/core/core.css +217 -46
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/gov-card.entry.esm.js.map +1 -1
- package/dist/core/gov-chip.entry.esm.js.map +1 -1
- package/dist/core/gov-control-group.entry.esm.js.map +1 -1
- package/dist/core/{p-1fca9440.entry.js → p-01482eb2.entry.js} +2 -2
- package/dist/core/{p-7c1d10c4.entry.js → p-0dbda4ab.entry.js} +2 -2
- package/dist/core/{p-cb91eed8.entry.js → p-19a408eb.entry.js} +2 -2
- package/dist/core/{p-57f8e68a.entry.js → p-1bfbad36.entry.js} +2 -2
- package/dist/core/{p-f6a01739.entry.js → p-1f4450cc.entry.js} +2 -2
- package/dist/core/{p-a262eb49.entry.js → p-2142c481.entry.js} +2 -2
- package/dist/core/{p-e61dceb2.entry.js → p-25a33448.entry.js} +2 -2
- package/dist/core/{p-ffd60450.entry.js → p-2affc4c0.entry.js} +2 -2
- package/dist/core/{p-db01c95c.entry.js → p-3477fcf1.entry.js} +2 -2
- package/dist/core/p-35c24ac5.entry.js +2 -0
- package/dist/core/{p-8b866af0.entry.js → p-35cd4ecd.entry.js} +2 -2
- package/dist/core/{p-77e3fa09.entry.js → p-35f784be.entry.js} +2 -2
- package/dist/core/{p-840fed0e.entry.js → p-37770cee.entry.js} +2 -2
- package/dist/core/{p-bc6fe3db.entry.js → p-37b98852.entry.js} +2 -2
- package/dist/core/{p-24ec7a60.entry.js → p-48a3bb49.entry.js} +2 -2
- package/dist/core/{p-8ca5804b.entry.js → p-4e170f53.entry.js} +2 -2
- package/dist/core/{p-b1869b24.entry.js → p-57aac00e.entry.js} +2 -2
- package/dist/core/{p-616c2209.entry.js → p-5c9371da.entry.js} +2 -2
- package/dist/core/{p-cd82ae8b.entry.js → p-6508f953.entry.js} +2 -2
- package/dist/core/{p-03a8226e.entry.js → p-730b823a.entry.js} +2 -2
- package/dist/core/p-7b623100.entry.js +2 -0
- package/dist/core/p-7b623100.entry.js.map +1 -0
- package/dist/core/{p-1d78f520.entry.js → p-7f46f70a.entry.js} +2 -2
- package/dist/core/{p-22c2e7e8.entry.js → p-83507d07.entry.js} +2 -2
- package/dist/core/{p-877178fe.entry.js → p-871d4318.entry.js} +2 -2
- package/dist/core/{p-50b0d5dd.entry.js → p-8873dc4b.entry.js} +2 -2
- package/dist/core/{p-750ced1c.entry.js → p-8c942041.entry.js} +2 -2
- package/dist/core/{p-0a50f540.entry.js → p-8d42ee97.entry.js} +2 -2
- package/dist/core/{p-5f2cbcf6.entry.js → p-8dceba0b.entry.js} +2 -2
- package/dist/core/{p-8fbdabfe.entry.js → p-901cbf94.entry.js} +2 -2
- package/dist/core/{p-25017dd9.entry.js → p-90b277bb.entry.js} +2 -2
- package/dist/core/{p-0f2f623b.entry.js → p-90ff56f4.entry.js} +2 -2
- package/dist/core/{p-49581c53.entry.js → p-962d5767.entry.js} +2 -2
- package/dist/core/{p-f3613f8a.entry.js → p-984b6020.entry.js} +2 -2
- package/dist/core/{p-1d944358.entry.js → p-9d2a4eb1.entry.js} +2 -2
- package/dist/core/{p-a2a257ef.entry.js → p-9ff7e018.entry.js} +2 -2
- package/dist/core/p-DQuL1Twl.js.map +1 -1
- package/dist/core/p-DT2tslUp.js +3 -0
- package/dist/core/p-DT2tslUp.js.map +1 -0
- package/dist/core/{p-f27ac0f7.entry.js → p-a18c600d.entry.js} +2 -2
- package/dist/core/{p-177a0638.entry.js → p-aaa73dc8.entry.js} +2 -2
- package/dist/core/p-ade69b24.entry.js +2 -0
- package/dist/core/{p-db32ed60.entry.js → p-b19afdd8.entry.js} +2 -2
- package/dist/core/{p-bc5f5e3d.entry.js → p-b97b4439.entry.js} +2 -2
- package/dist/core/{p-ab0f7851.entry.js → p-bbe0d727.entry.js} +2 -2
- package/dist/core/{p-4382abb5.entry.js → p-bedd75e1.entry.js} +2 -2
- package/dist/core/{p-5e8946af.entry.js → p-c1a1fc45.entry.js} +2 -2
- package/dist/core/{p-e9e584a0.entry.js → p-c6f52c6f.entry.js} +2 -2
- package/dist/core/{p-11ee3438.entry.js → p-c99cc786.entry.js} +2 -2
- package/dist/core/{p-a6d16324.entry.js → p-c9edada1.entry.js} +2 -2
- package/dist/core/{p-0d0bd226.entry.js → p-cddfc899.entry.js} +2 -2
- package/dist/core/{p-1b922db5.entry.js → p-ce588d98.entry.js} +2 -2
- package/dist/core/{p-3a25ddfa.entry.js → p-d4440adf.entry.js} +2 -2
- package/dist/core/{p-1744f488.entry.js → p-d48d5870.entry.js} +2 -2
- package/dist/core/p-d8264763.entry.js +2 -0
- package/dist/core/p-d8264763.entry.js.map +1 -0
- package/dist/core/{p-73dcc4f1.entry.js → p-e169f098.entry.js} +2 -2
- package/dist/core/{p-05c81fd3.entry.js → p-e3e3e9f2.entry.js} +2 -2
- package/dist/core/{p-64b0f2d6.entry.js → p-e8507630.entry.js} +2 -2
- package/dist/core/p-f0505205.entry.js +2 -0
- package/dist/core/p-f0505205.entry.js.map +1 -0
- package/dist/core/{p-cb293cf3.entry.js → p-f3c873f5.entry.js} +2 -2
- package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
- package/dist/esm/core.js +4 -4
- package/dist/esm/core.js.map +1 -1
- package/dist/esm/gov-accordion-item.entry.js +1 -1
- package/dist/esm/gov-accordion.entry.js +1 -1
- package/dist/esm/gov-attachments_3.entry.js +1 -1
- package/dist/esm/gov-backdrop.entry.js +1 -1
- package/dist/esm/gov-banner.entry.js +1 -1
- package/dist/esm/gov-blockquote.entry.js +1 -1
- package/dist/esm/gov-breadcrumbs.entry.js +1 -1
- package/dist/esm/gov-button.entry.js +1 -1
- package/dist/esm/gov-card.entry.js +2 -2
- package/dist/esm/gov-card.entry.js.map +1 -1
- package/dist/esm/gov-chip.entry.js +3 -3
- package/dist/esm/gov-chip.entry.js.map +1 -1
- package/dist/esm/gov-container.entry.js +1 -1
- package/dist/esm/gov-control-group.entry.js +8 -4
- package/dist/esm/gov-control-group.entry.js.map +1 -1
- package/dist/esm/gov-cookiebar.entry.js +1 -1
- package/dist/esm/gov-dialog.entry.js +1 -1
- package/dist/esm/gov-dropdown.entry.js +1 -1
- package/dist/esm/gov-empty.entry.js +1 -1
- package/dist/esm/gov-error-code.entry.js +1 -1
- package/dist/esm/gov-flex_3.entry.js +2 -2
- package/dist/esm/gov-form-autocomplete.entry.js +1 -1
- package/dist/esm/gov-form-checkbox-group.entry.js +1 -1
- package/dist/esm/gov-form-checkbox.entry.js +1 -1
- package/dist/esm/gov-form-control.entry.js +1 -1
- package/dist/esm/gov-form-file.entry.js +1 -1
- package/dist/esm/gov-form-group.entry.js +1 -1
- package/dist/esm/gov-form-input_2.entry.js +1 -1
- package/dist/esm/gov-form-label.entry.js +1 -1
- package/dist/esm/gov-form-multi-select.entry.js +1 -1
- package/dist/esm/gov-form-password-power.entry.js +1 -1
- package/dist/esm/gov-form-radio-group.entry.js +1 -1
- package/dist/esm/gov-form-radio.entry.js +1 -1
- package/dist/esm/gov-form-range.entry.js +1 -1
- package/dist/esm/gov-form-search.entry.js +1 -1
- package/dist/esm/gov-form-select.entry.js +1 -1
- package/dist/esm/gov-form-switch.entry.js +1 -1
- package/dist/esm/gov-grid-item.entry.js +1 -1
- package/dist/esm/gov-grid.entry.js +1 -1
- package/dist/esm/gov-infobar.entry.js +1 -1
- package/dist/esm/gov-layout-column.entry.js +1 -1
- package/dist/esm/gov-layout.entry.js +1 -1
- package/dist/esm/gov-lifecycle.entry.js +1 -1
- package/dist/esm/gov-link.entry.js +1 -1
- package/dist/esm/gov-loading.entry.js +1 -1
- package/dist/esm/gov-message.entry.js +1 -1
- package/dist/esm/gov-pagination.entry.js +1 -1
- package/dist/esm/gov-spacer.entry.js +1 -1
- package/dist/esm/gov-stepper-item.entry.js +1 -1
- package/dist/esm/gov-stepper.entry.js +1 -1
- package/dist/esm/gov-tabs-item.entry.js +1 -1
- package/dist/esm/gov-tabs.entry.js +1 -1
- package/dist/esm/gov-tag.entry.js +1 -1
- package/dist/esm/gov-tile.entry.js +1 -1
- package/dist/esm/gov-toast.entry.js +1 -1
- package/dist/esm/gov-tooltip-content.entry.js +1 -1
- package/dist/esm/gov-tooltip.entry.js +1 -1
- package/dist/esm/gov-wizard-item.entry.js +1 -1
- package/dist/esm/gov-wizard.entry.js +1 -1
- package/dist/esm/{index-ClISz4NF.js → index-DT2tslUp.js} +482 -140
- package/dist/esm/index-DT2tslUp.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/hydrate/index.js +339 -201
- package/dist/hydrate/index.mjs +339 -201
- package/dist/stencil.config.js +0 -9
- package/dist/stencil.config.js.map +1 -1
- package/dist/types/components/gov-control-group/constants.d.ts +1 -1
- package/dist/types/components/gov-control-group/gov-control-group.d.ts +4 -0
- package/dist/types/components.d.ts +12 -2
- package/dist/types/stencil-public-runtime.d.ts +12 -5
- package/package.json +3 -3
- package/dist/cjs/index-BEF5cZxd.js.map +0 -1
- package/dist/components/p-CEl4WEkF.js +0 -2
- package/dist/components/p-CEl4WEkF.js.map +0 -1
- package/dist/core/p-1c01e161.entry.js +0 -2
- package/dist/core/p-1c01e161.entry.js.map +0 -1
- package/dist/core/p-22f17af5.entry.js +0 -2
- package/dist/core/p-22f17af5.entry.js.map +0 -1
- package/dist/core/p-904e7e44.entry.js +0 -2
- package/dist/core/p-904e7e44.entry.js.map +0 -1
- package/dist/core/p-ClISz4NF.js +0 -3
- package/dist/core/p-ClISz4NF.js.map +0 -1
- package/dist/core/p-e0ec9f75.entry.js +0 -2
- package/dist/core/p-e74093c1.entry.js +0 -2
- package/dist/esm/index-ClISz4NF.js.map +0 -1
- /package/dist/components/{p-vuyK2av-.js.map → p-9COKmDO0.js.map} +0 -0
- /package/dist/components/{p-D82BPGeo.js.map → p-B03Rpjps.js.map} +0 -0
- /package/dist/components/{p-DxCeyMKq.js.map → p-CXbpWAIF.js.map} +0 -0
- /package/dist/components/{p-DGsyEn3-.js.map → p-Cta_74Ps.js.map} +0 -0
- /package/dist/components/{p-DkoI3xas.js.map → p-Cy7Wk3yM.js.map} +0 -0
- /package/dist/components/{p-CNXZgyfX.js.map → p-D4Z6jWqx.js.map} +0 -0
- /package/dist/components/{p-CNRG3ZtC.js.map → p-DJ1DN3ks.js.map} +0 -0
- /package/dist/components/{p-Dj3UNRiz.js.map → p-DTn9nVrF.js.map} +0 -0
- /package/dist/components/{p-BlqsCTBR.js.map → p-DnZEr-aq.js.map} +0 -0
- /package/dist/components/{p-yUYC6pA5.js.map → p-wlTP5ZEU.js.map} +0 -0
- /package/dist/core/{p-1fca9440.entry.js.map → p-01482eb2.entry.js.map} +0 -0
- /package/dist/core/{p-7c1d10c4.entry.js.map → p-0dbda4ab.entry.js.map} +0 -0
- /package/dist/core/{p-cb91eed8.entry.js.map → p-19a408eb.entry.js.map} +0 -0
- /package/dist/core/{p-57f8e68a.entry.js.map → p-1bfbad36.entry.js.map} +0 -0
- /package/dist/core/{p-f6a01739.entry.js.map → p-1f4450cc.entry.js.map} +0 -0
- /package/dist/core/{p-a262eb49.entry.js.map → p-2142c481.entry.js.map} +0 -0
- /package/dist/core/{p-e61dceb2.entry.js.map → p-25a33448.entry.js.map} +0 -0
- /package/dist/core/{p-ffd60450.entry.js.map → p-2affc4c0.entry.js.map} +0 -0
- /package/dist/core/{p-db01c95c.entry.js.map → p-3477fcf1.entry.js.map} +0 -0
- /package/dist/core/{p-e74093c1.entry.js.map → p-35c24ac5.entry.js.map} +0 -0
- /package/dist/core/{p-8b866af0.entry.js.map → p-35cd4ecd.entry.js.map} +0 -0
- /package/dist/core/{p-77e3fa09.entry.js.map → p-35f784be.entry.js.map} +0 -0
- /package/dist/core/{p-840fed0e.entry.js.map → p-37770cee.entry.js.map} +0 -0
- /package/dist/core/{p-bc6fe3db.entry.js.map → p-37b98852.entry.js.map} +0 -0
- /package/dist/core/{p-24ec7a60.entry.js.map → p-48a3bb49.entry.js.map} +0 -0
- /package/dist/core/{p-8ca5804b.entry.js.map → p-4e170f53.entry.js.map} +0 -0
- /package/dist/core/{p-b1869b24.entry.js.map → p-57aac00e.entry.js.map} +0 -0
- /package/dist/core/{p-616c2209.entry.js.map → p-5c9371da.entry.js.map} +0 -0
- /package/dist/core/{p-cd82ae8b.entry.js.map → p-6508f953.entry.js.map} +0 -0
- /package/dist/core/{p-03a8226e.entry.js.map → p-730b823a.entry.js.map} +0 -0
- /package/dist/core/{p-1d78f520.entry.js.map → p-7f46f70a.entry.js.map} +0 -0
- /package/dist/core/{p-22c2e7e8.entry.js.map → p-83507d07.entry.js.map} +0 -0
- /package/dist/core/{p-877178fe.entry.js.map → p-871d4318.entry.js.map} +0 -0
- /package/dist/core/{p-50b0d5dd.entry.js.map → p-8873dc4b.entry.js.map} +0 -0
- /package/dist/core/{p-750ced1c.entry.js.map → p-8c942041.entry.js.map} +0 -0
- /package/dist/core/{p-0a50f540.entry.js.map → p-8d42ee97.entry.js.map} +0 -0
- /package/dist/core/{p-5f2cbcf6.entry.js.map → p-8dceba0b.entry.js.map} +0 -0
- /package/dist/core/{p-8fbdabfe.entry.js.map → p-901cbf94.entry.js.map} +0 -0
- /package/dist/core/{p-25017dd9.entry.js.map → p-90b277bb.entry.js.map} +0 -0
- /package/dist/core/{p-0f2f623b.entry.js.map → p-90ff56f4.entry.js.map} +0 -0
- /package/dist/core/{p-49581c53.entry.js.map → p-962d5767.entry.js.map} +0 -0
- /package/dist/core/{p-f3613f8a.entry.js.map → p-984b6020.entry.js.map} +0 -0
- /package/dist/core/{p-1d944358.entry.js.map → p-9d2a4eb1.entry.js.map} +0 -0
- /package/dist/core/{p-a2a257ef.entry.js.map → p-9ff7e018.entry.js.map} +0 -0
- /package/dist/core/{p-f27ac0f7.entry.js.map → p-a18c600d.entry.js.map} +0 -0
- /package/dist/core/{p-177a0638.entry.js.map → p-aaa73dc8.entry.js.map} +0 -0
- /package/dist/core/{p-e0ec9f75.entry.js.map → p-ade69b24.entry.js.map} +0 -0
- /package/dist/core/{p-db32ed60.entry.js.map → p-b19afdd8.entry.js.map} +0 -0
- /package/dist/core/{p-bc5f5e3d.entry.js.map → p-b97b4439.entry.js.map} +0 -0
- /package/dist/core/{p-ab0f7851.entry.js.map → p-bbe0d727.entry.js.map} +0 -0
- /package/dist/core/{p-4382abb5.entry.js.map → p-bedd75e1.entry.js.map} +0 -0
- /package/dist/core/{p-5e8946af.entry.js.map → p-c1a1fc45.entry.js.map} +0 -0
- /package/dist/core/{p-e9e584a0.entry.js.map → p-c6f52c6f.entry.js.map} +0 -0
- /package/dist/core/{p-11ee3438.entry.js.map → p-c99cc786.entry.js.map} +0 -0
- /package/dist/core/{p-a6d16324.entry.js.map → p-c9edada1.entry.js.map} +0 -0
- /package/dist/core/{p-0d0bd226.entry.js.map → p-cddfc899.entry.js.map} +0 -0
- /package/dist/core/{p-1b922db5.entry.js.map → p-ce588d98.entry.js.map} +0 -0
- /package/dist/core/{p-3a25ddfa.entry.js.map → p-d4440adf.entry.js.map} +0 -0
- /package/dist/core/{p-1744f488.entry.js.map → p-d48d5870.entry.js.map} +0 -0
- /package/dist/core/{p-73dcc4f1.entry.js.map → p-e169f098.entry.js.map} +0 -0
- /package/dist/core/{p-05c81fd3.entry.js.map → p-e3e3e9f2.entry.js.map} +0 -0
- /package/dist/core/{p-64b0f2d6.entry.js.map → p-e8507630.entry.js.map} +0 -0
- /package/dist/core/{p-cb293cf3.entry.js.map → p-f3c873f5.entry.js.map} +0 -0
|
@@ -22,7 +22,7 @@ const NAMESPACE = 'core';
|
|
|
22
22
|
const BUILD = /* core */ { experimentalSlotFixes: true, hydratedSelectorName: "hydrated", lazyLoad: true, shadowDom: false, slotRelocation: true, updatable: true};
|
|
23
23
|
|
|
24
24
|
/*
|
|
25
|
-
Stencil Client Platform v4.
|
|
25
|
+
Stencil Client Platform v4.36.2 | MIT Licensed | https://stenciljs.com
|
|
26
26
|
*/
|
|
27
27
|
var __defProp = Object.defineProperty;
|
|
28
28
|
var __export = (target, all) => {
|
|
@@ -388,6 +388,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
|
388
388
|
}
|
|
389
389
|
return false;
|
|
390
390
|
})() ;
|
|
391
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
391
392
|
var queuePending = false;
|
|
392
393
|
var queueDomReads = [];
|
|
393
394
|
var queueDomWrites = [];
|
|
@@ -667,7 +668,7 @@ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
|
667
668
|
slottedNodeLocation["s-nr"] = newChild;
|
|
668
669
|
if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
|
|
669
670
|
const parent = slotNode["s-cr"].parentNode;
|
|
670
|
-
const appendMethod = internalCall(parent, "appendChild");
|
|
671
|
+
const appendMethod = prepend ? internalCall(parent, "prepend") : internalCall(parent, "appendChild");
|
|
671
672
|
if (typeof position !== "undefined") {
|
|
672
673
|
slottedNodeLocation["s-oo"] = position;
|
|
673
674
|
const childNodes = internalCall(parent, "childNodes");
|
|
@@ -695,7 +696,7 @@ function patchSlotNode(node) {
|
|
|
695
696
|
const slotName = this["s-sn"];
|
|
696
697
|
if (opts == null ? void 0 : opts.flatten) {
|
|
697
698
|
console.error(`
|
|
698
|
-
Flattening is not supported for Stencil non-shadow slots.
|
|
699
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
699
700
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
700
701
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
701
702
|
`);
|
|
@@ -727,6 +728,266 @@ function findSlotFromSlottedNode(slottedNode, parentHost) {
|
|
|
727
728
|
const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
|
|
728
729
|
return { slotNode, slotName };
|
|
729
730
|
}
|
|
731
|
+
|
|
732
|
+
// src/runtime/dom-extras.ts
|
|
733
|
+
var patchPseudoShadowDom = (hostElementPrototype) => {
|
|
734
|
+
patchCloneNode(hostElementPrototype);
|
|
735
|
+
patchSlotAppendChild(hostElementPrototype);
|
|
736
|
+
patchSlotAppend(hostElementPrototype);
|
|
737
|
+
patchSlotPrepend(hostElementPrototype);
|
|
738
|
+
patchSlotInsertAdjacentElement(hostElementPrototype);
|
|
739
|
+
patchSlotInsertAdjacentHTML(hostElementPrototype);
|
|
740
|
+
patchSlotInsertAdjacentText(hostElementPrototype);
|
|
741
|
+
patchInsertBefore(hostElementPrototype);
|
|
742
|
+
patchTextContent(hostElementPrototype);
|
|
743
|
+
patchChildSlotNodes(hostElementPrototype);
|
|
744
|
+
patchSlotRemoveChild(hostElementPrototype);
|
|
745
|
+
};
|
|
746
|
+
var patchCloneNode = (HostElementPrototype) => {
|
|
747
|
+
const orgCloneNode = HostElementPrototype.cloneNode;
|
|
748
|
+
HostElementPrototype.cloneNode = function(deep) {
|
|
749
|
+
const srcNode = this;
|
|
750
|
+
const clonedNode = orgCloneNode.call(srcNode, false);
|
|
751
|
+
if (deep) {
|
|
752
|
+
let i2 = 0;
|
|
753
|
+
let slotted, nonStencilNode;
|
|
754
|
+
const stencilPrivates = [
|
|
755
|
+
"s-id",
|
|
756
|
+
"s-cr",
|
|
757
|
+
"s-lr",
|
|
758
|
+
"s-rc",
|
|
759
|
+
"s-sc",
|
|
760
|
+
"s-p",
|
|
761
|
+
"s-cn",
|
|
762
|
+
"s-sr",
|
|
763
|
+
"s-sn",
|
|
764
|
+
"s-hn",
|
|
765
|
+
"s-ol",
|
|
766
|
+
"s-nr",
|
|
767
|
+
"s-si",
|
|
768
|
+
"s-rf",
|
|
769
|
+
"s-scs"
|
|
770
|
+
];
|
|
771
|
+
const childNodes = this.__childNodes || this.childNodes;
|
|
772
|
+
for (; i2 < childNodes.length; i2++) {
|
|
773
|
+
slotted = childNodes[i2]["s-nr"];
|
|
774
|
+
nonStencilNode = stencilPrivates.every((privateField) => !childNodes[i2][privateField]);
|
|
775
|
+
if (slotted) {
|
|
776
|
+
if (clonedNode.__appendChild) {
|
|
777
|
+
clonedNode.__appendChild(slotted.cloneNode(true));
|
|
778
|
+
} else {
|
|
779
|
+
clonedNode.appendChild(slotted.cloneNode(true));
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
if (nonStencilNode) {
|
|
783
|
+
clonedNode.appendChild(childNodes[i2].cloneNode(true));
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
return clonedNode;
|
|
788
|
+
};
|
|
789
|
+
};
|
|
790
|
+
var patchSlotAppendChild = (HostElementPrototype) => {
|
|
791
|
+
HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
|
|
792
|
+
HostElementPrototype.appendChild = function(newChild) {
|
|
793
|
+
const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);
|
|
794
|
+
if (slotNode) {
|
|
795
|
+
addSlotRelocateNode(newChild, slotNode);
|
|
796
|
+
const slotChildNodes = getSlotChildSiblings(slotNode, slotName);
|
|
797
|
+
const appendAfter = slotChildNodes[slotChildNodes.length - 1];
|
|
798
|
+
const parent = internalCall(appendAfter, "parentNode");
|
|
799
|
+
const insertedNode = internalCall(parent, "insertBefore")(newChild, appendAfter.nextSibling);
|
|
800
|
+
dispatchSlotChangeEvent(slotNode);
|
|
801
|
+
updateFallbackSlotVisibility(this);
|
|
802
|
+
return insertedNode;
|
|
803
|
+
}
|
|
804
|
+
return this.__appendChild(newChild);
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
var patchSlotRemoveChild = (ElementPrototype) => {
|
|
808
|
+
ElementPrototype.__removeChild = ElementPrototype.removeChild;
|
|
809
|
+
ElementPrototype.removeChild = function(toRemove) {
|
|
810
|
+
if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
|
|
811
|
+
const childNodes = this.__childNodes || this.childNodes;
|
|
812
|
+
const slotNode = getHostSlotNodes(childNodes, this.tagName, toRemove["s-sn"]);
|
|
813
|
+
if (slotNode && toRemove.isConnected) {
|
|
814
|
+
toRemove.remove();
|
|
815
|
+
updateFallbackSlotVisibility(this);
|
|
816
|
+
return;
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
return this.__removeChild(toRemove);
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
var patchSlotPrepend = (HostElementPrototype) => {
|
|
823
|
+
HostElementPrototype.__prepend = HostElementPrototype.prepend;
|
|
824
|
+
HostElementPrototype.prepend = function(...newChildren) {
|
|
825
|
+
newChildren.forEach((newChild) => {
|
|
826
|
+
if (typeof newChild === "string") {
|
|
827
|
+
newChild = this.ownerDocument.createTextNode(newChild);
|
|
828
|
+
}
|
|
829
|
+
const slotName = (newChild["s-sn"] = getSlotName(newChild)) || "";
|
|
830
|
+
const childNodes = internalCall(this, "childNodes");
|
|
831
|
+
const slotNode = getHostSlotNodes(childNodes, this.tagName, slotName)[0];
|
|
832
|
+
if (slotNode) {
|
|
833
|
+
addSlotRelocateNode(newChild, slotNode, true);
|
|
834
|
+
const slotChildNodes = getSlotChildSiblings(slotNode, slotName);
|
|
835
|
+
const appendAfter = slotChildNodes[0];
|
|
836
|
+
const parent = internalCall(appendAfter, "parentNode");
|
|
837
|
+
const toReturn = internalCall(parent, "insertBefore")(newChild, internalCall(appendAfter, "nextSibling"));
|
|
838
|
+
dispatchSlotChangeEvent(slotNode);
|
|
839
|
+
return toReturn;
|
|
840
|
+
}
|
|
841
|
+
if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
|
|
842
|
+
newChild.hidden = true;
|
|
843
|
+
}
|
|
844
|
+
return HostElementPrototype.__prepend(newChild);
|
|
845
|
+
});
|
|
846
|
+
};
|
|
847
|
+
};
|
|
848
|
+
var patchSlotAppend = (HostElementPrototype) => {
|
|
849
|
+
HostElementPrototype.__append = HostElementPrototype.append;
|
|
850
|
+
HostElementPrototype.append = function(...newChildren) {
|
|
851
|
+
newChildren.forEach((newChild) => {
|
|
852
|
+
if (typeof newChild === "string") {
|
|
853
|
+
newChild = this.ownerDocument.createTextNode(newChild);
|
|
854
|
+
}
|
|
855
|
+
this.appendChild(newChild);
|
|
856
|
+
});
|
|
857
|
+
};
|
|
858
|
+
};
|
|
859
|
+
var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
|
|
860
|
+
const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
|
|
861
|
+
HostElementPrototype.insertAdjacentHTML = function(position, text) {
|
|
862
|
+
if (position !== "afterbegin" && position !== "beforeend") {
|
|
863
|
+
return originalInsertAdjacentHtml.call(this, position, text);
|
|
864
|
+
}
|
|
865
|
+
const container = this.ownerDocument.createElement("_");
|
|
866
|
+
let node;
|
|
867
|
+
container.innerHTML = text;
|
|
868
|
+
if (position === "afterbegin") {
|
|
869
|
+
while (node = container.firstChild) {
|
|
870
|
+
this.prepend(node);
|
|
871
|
+
}
|
|
872
|
+
} else if (position === "beforeend") {
|
|
873
|
+
while (node = container.firstChild) {
|
|
874
|
+
this.append(node);
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
};
|
|
878
|
+
};
|
|
879
|
+
var patchSlotInsertAdjacentText = (HostElementPrototype) => {
|
|
880
|
+
HostElementPrototype.insertAdjacentText = function(position, text) {
|
|
881
|
+
this.insertAdjacentHTML(position, text);
|
|
882
|
+
};
|
|
883
|
+
};
|
|
884
|
+
var patchInsertBefore = (HostElementPrototype) => {
|
|
885
|
+
const eleProto = HostElementPrototype;
|
|
886
|
+
if (eleProto.__insertBefore) return;
|
|
887
|
+
eleProto.__insertBefore = HostElementPrototype.insertBefore;
|
|
888
|
+
HostElementPrototype.insertBefore = function(newChild, currentChild) {
|
|
889
|
+
const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);
|
|
890
|
+
const slottedNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
|
|
891
|
+
if (slotNode) {
|
|
892
|
+
let found = false;
|
|
893
|
+
slottedNodes.forEach((childNode) => {
|
|
894
|
+
if (childNode === currentChild || currentChild === null) {
|
|
895
|
+
found = true;
|
|
896
|
+
if (currentChild === null || slotName !== currentChild["s-sn"]) {
|
|
897
|
+
this.appendChild(newChild);
|
|
898
|
+
return;
|
|
899
|
+
}
|
|
900
|
+
if (slotName === currentChild["s-sn"]) {
|
|
901
|
+
addSlotRelocateNode(newChild, slotNode);
|
|
902
|
+
const parent = internalCall(currentChild, "parentNode");
|
|
903
|
+
internalCall(parent, "insertBefore")(newChild, currentChild);
|
|
904
|
+
dispatchSlotChangeEvent(slotNode);
|
|
905
|
+
}
|
|
906
|
+
return;
|
|
907
|
+
}
|
|
908
|
+
});
|
|
909
|
+
if (found) return newChild;
|
|
910
|
+
}
|
|
911
|
+
const parentNode = currentChild == null ? void 0 : currentChild.__parentNode;
|
|
912
|
+
if (parentNode && !this.isSameNode(parentNode)) {
|
|
913
|
+
return this.appendChild(newChild);
|
|
914
|
+
}
|
|
915
|
+
return this.__insertBefore(newChild, currentChild);
|
|
916
|
+
};
|
|
917
|
+
};
|
|
918
|
+
var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
|
|
919
|
+
const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
|
|
920
|
+
HostElementPrototype.insertAdjacentElement = function(position, element) {
|
|
921
|
+
if (position !== "afterbegin" && position !== "beforeend") {
|
|
922
|
+
return originalInsertAdjacentElement.call(this, position, element);
|
|
923
|
+
}
|
|
924
|
+
if (position === "afterbegin") {
|
|
925
|
+
this.prepend(element);
|
|
926
|
+
return element;
|
|
927
|
+
} else if (position === "beforeend") {
|
|
928
|
+
this.append(element);
|
|
929
|
+
return element;
|
|
930
|
+
}
|
|
931
|
+
return element;
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
var patchTextContent = (hostElementPrototype) => {
|
|
935
|
+
patchHostOriginalAccessor("textContent", hostElementPrototype);
|
|
936
|
+
Object.defineProperty(hostElementPrototype, "textContent", {
|
|
937
|
+
get: function() {
|
|
938
|
+
let text = "";
|
|
939
|
+
const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
|
|
940
|
+
childNodes.forEach((node) => text += node.textContent || "");
|
|
941
|
+
return text;
|
|
942
|
+
},
|
|
943
|
+
set: function(value) {
|
|
944
|
+
const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
|
|
945
|
+
childNodes.forEach((node) => {
|
|
946
|
+
if (node["s-ol"]) node["s-ol"].remove();
|
|
947
|
+
node.remove();
|
|
948
|
+
});
|
|
949
|
+
this.insertAdjacentHTML("beforeend", value);
|
|
950
|
+
}
|
|
951
|
+
});
|
|
952
|
+
};
|
|
953
|
+
var patchChildSlotNodes = (elm) => {
|
|
954
|
+
class FakeNodeList extends Array {
|
|
955
|
+
item(n) {
|
|
956
|
+
return this[n];
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
patchHostOriginalAccessor("children", elm);
|
|
960
|
+
Object.defineProperty(elm, "children", {
|
|
961
|
+
get() {
|
|
962
|
+
return this.childNodes.filter((n) => n.nodeType === 1);
|
|
963
|
+
}
|
|
964
|
+
});
|
|
965
|
+
Object.defineProperty(elm, "childElementCount", {
|
|
966
|
+
get() {
|
|
967
|
+
return this.children.length;
|
|
968
|
+
}
|
|
969
|
+
});
|
|
970
|
+
patchHostOriginalAccessor("firstChild", elm);
|
|
971
|
+
Object.defineProperty(elm, "firstChild", {
|
|
972
|
+
get() {
|
|
973
|
+
return this.childNodes[0];
|
|
974
|
+
}
|
|
975
|
+
});
|
|
976
|
+
patchHostOriginalAccessor("lastChild", elm);
|
|
977
|
+
Object.defineProperty(elm, "lastChild", {
|
|
978
|
+
get() {
|
|
979
|
+
return this.childNodes[this.childNodes.length - 1];
|
|
980
|
+
}
|
|
981
|
+
});
|
|
982
|
+
patchHostOriginalAccessor("childNodes", elm);
|
|
983
|
+
Object.defineProperty(elm, "childNodes", {
|
|
984
|
+
get() {
|
|
985
|
+
const result = new FakeNodeList();
|
|
986
|
+
result.push(...getSlottedChildNodes(this.__childNodes));
|
|
987
|
+
return result;
|
|
988
|
+
}
|
|
989
|
+
});
|
|
990
|
+
};
|
|
730
991
|
var patchSlottedNode = (node) => {
|
|
731
992
|
if (!node || node.__nextSibling !== void 0 || !globalThis.Node) return;
|
|
732
993
|
patchNextSibling(node);
|
|
@@ -821,6 +1082,9 @@ var validNodesPatches = [
|
|
|
821
1082
|
"parentNode"
|
|
822
1083
|
];
|
|
823
1084
|
function patchHostOriginalAccessor(accessorName, node) {
|
|
1085
|
+
if (!globalThis.Node || !globalThis.Element) {
|
|
1086
|
+
return;
|
|
1087
|
+
}
|
|
824
1088
|
let accessor;
|
|
825
1089
|
if (validElementPatches.includes(accessorName)) {
|
|
826
1090
|
accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
|
|
@@ -856,6 +1120,107 @@ var uniqueTime = (key, measureText) => {
|
|
|
856
1120
|
};
|
|
857
1121
|
}
|
|
858
1122
|
};
|
|
1123
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1124
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1125
|
+
let style = styles.get(scopeId2);
|
|
1126
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
1127
|
+
style = style || new CSSStyleSheet();
|
|
1128
|
+
if (typeof style === "string") {
|
|
1129
|
+
style = cssText;
|
|
1130
|
+
} else {
|
|
1131
|
+
style.replaceSync(cssText);
|
|
1132
|
+
}
|
|
1133
|
+
} else {
|
|
1134
|
+
style = cssText;
|
|
1135
|
+
}
|
|
1136
|
+
styles.set(scopeId2, style);
|
|
1137
|
+
};
|
|
1138
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1139
|
+
var _a;
|
|
1140
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
1141
|
+
const style = styles.get(scopeId2);
|
|
1142
|
+
if (!win.document) {
|
|
1143
|
+
return scopeId2;
|
|
1144
|
+
}
|
|
1145
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1146
|
+
if (style) {
|
|
1147
|
+
if (typeof style === "string") {
|
|
1148
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1149
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1150
|
+
let styleElm;
|
|
1151
|
+
if (!appliedStyles) {
|
|
1152
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1153
|
+
}
|
|
1154
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
1155
|
+
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1156
|
+
styleElm.innerHTML = style;
|
|
1157
|
+
} else {
|
|
1158
|
+
styleElm = win.document.createElement("style");
|
|
1159
|
+
styleElm.innerHTML = style;
|
|
1160
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1161
|
+
if (nonce != null) {
|
|
1162
|
+
styleElm.setAttribute("nonce", nonce);
|
|
1163
|
+
}
|
|
1164
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1165
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
1166
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1167
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1168
|
+
styleContainerNode.insertBefore(
|
|
1169
|
+
styleElm,
|
|
1170
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1171
|
+
);
|
|
1172
|
+
} else if ("host" in styleContainerNode) {
|
|
1173
|
+
if (supportsConstructableStylesheets) {
|
|
1174
|
+
const stylesheet = new CSSStyleSheet();
|
|
1175
|
+
stylesheet.replaceSync(style);
|
|
1176
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
1177
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
1178
|
+
} else {
|
|
1179
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1180
|
+
}
|
|
1181
|
+
} else {
|
|
1182
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1183
|
+
if (existingStyleContainer) {
|
|
1184
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1185
|
+
} else {
|
|
1186
|
+
styleContainerNode.prepend(styleElm);
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
} else {
|
|
1190
|
+
styleContainerNode.append(styleElm);
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1194
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1198
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1199
|
+
}
|
|
1200
|
+
if (appliedStyles) {
|
|
1201
|
+
appliedStyles.add(scopeId2);
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1205
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
1206
|
+
styleContainerNode.adoptedStyleSheets.push(style);
|
|
1207
|
+
} else {
|
|
1208
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
return scopeId2;
|
|
1213
|
+
};
|
|
1214
|
+
var attachStyles = (hostRef) => {
|
|
1215
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1216
|
+
const elm = hostRef.$hostElement$;
|
|
1217
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1218
|
+
addStyle(
|
|
1219
|
+
elm.getRootNode(),
|
|
1220
|
+
cmpMeta);
|
|
1221
|
+
endAttachStyles();
|
|
1222
|
+
};
|
|
1223
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
859
1224
|
var h = (nodeName, vnodeData, ...children) => {
|
|
860
1225
|
let child = null;
|
|
861
1226
|
let key = null;
|
|
@@ -970,7 +1335,7 @@ var convertToPrivate = (node) => {
|
|
|
970
1335
|
|
|
971
1336
|
// src/runtime/client-hydrate.ts
|
|
972
1337
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
973
|
-
var _a;
|
|
1338
|
+
var _a, _b, _c;
|
|
974
1339
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
975
1340
|
const shadowRoot = hostElm.shadowRoot;
|
|
976
1341
|
const childRenderNodes = [];
|
|
@@ -981,15 +1346,17 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
981
1346
|
vnode.$elm$ = hostElm;
|
|
982
1347
|
const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
|
|
983
1348
|
members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
|
|
984
|
-
var
|
|
1349
|
+
var _b2;
|
|
985
1350
|
if (!(memberFlags & 31 /* Prop */)) {
|
|
986
1351
|
return;
|
|
987
1352
|
}
|
|
988
1353
|
const attributeName = metaAttributeName || memberName;
|
|
989
1354
|
const attrVal = hostElm.getAttribute(attributeName);
|
|
990
1355
|
if (attrVal !== null) {
|
|
991
|
-
const attrPropVal = parsePropertyValue(
|
|
992
|
-
|
|
1356
|
+
const attrPropVal = parsePropertyValue(
|
|
1357
|
+
attrVal,
|
|
1358
|
+
memberFlags);
|
|
1359
|
+
(_b2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b2.set(memberName, attrPropVal);
|
|
993
1360
|
}
|
|
994
1361
|
});
|
|
995
1362
|
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
@@ -1020,6 +1387,16 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1020
1387
|
if (childRenderNode.$tag$ === "slot") {
|
|
1021
1388
|
node["s-cr"] = hostElm["s-cr"];
|
|
1022
1389
|
}
|
|
1390
|
+
} else if (((_b = childRenderNode.$tag$) == null ? void 0 : _b.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
1391
|
+
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
1392
|
+
if (cmpMeta) {
|
|
1393
|
+
const scopeId3 = getScopeId(
|
|
1394
|
+
cmpMeta.$cmpMeta$);
|
|
1395
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
1396
|
+
if (styleSheet) {
|
|
1397
|
+
hostElm.shadowRoot.append(styleSheet.cloneNode(true));
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1023
1400
|
}
|
|
1024
1401
|
if (childRenderNode.$tag$ === "slot") {
|
|
1025
1402
|
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
@@ -1035,7 +1412,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1035
1412
|
}
|
|
1036
1413
|
}
|
|
1037
1414
|
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
1038
|
-
if (shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1415
|
+
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1039
1416
|
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
1040
1417
|
}
|
|
1041
1418
|
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
@@ -1043,7 +1420,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1043
1420
|
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
1044
1421
|
}
|
|
1045
1422
|
}
|
|
1046
|
-
|
|
1423
|
+
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
1424
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1425
|
+
}
|
|
1047
1426
|
}
|
|
1048
1427
|
const hosts = [];
|
|
1049
1428
|
const snLen = slottedNodes.length;
|
|
@@ -1064,24 +1443,28 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1064
1443
|
}
|
|
1065
1444
|
if (!hosts[slottedItem.hostId]) continue;
|
|
1066
1445
|
const hostEle = hosts[slottedItem.hostId];
|
|
1446
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1447
|
+
hostEle.appendChild(slottedItem.node);
|
|
1448
|
+
}
|
|
1067
1449
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
1068
|
-
slottedItem.slot["s-cr"]
|
|
1069
|
-
|
|
1070
|
-
slottedItem.slot["s-cr"]
|
|
1071
|
-
|
|
1072
|
-
|
|
1450
|
+
if (!slottedItem.slot["s-cr"]) {
|
|
1451
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
1452
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
1453
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
1454
|
+
} else {
|
|
1455
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
1456
|
+
}
|
|
1073
1457
|
}
|
|
1074
1458
|
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
1459
|
+
if (((_c = slottedItem.node.parentElement) == null ? void 0 : _c.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
1460
|
+
slottedItem.node.removeAttribute("slot");
|
|
1461
|
+
}
|
|
1075
1462
|
{
|
|
1076
1463
|
patchSlottedNode(slottedItem.node);
|
|
1077
1464
|
}
|
|
1078
1465
|
}
|
|
1079
|
-
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1080
|
-
hostEle.appendChild(slottedItem.node);
|
|
1081
|
-
}
|
|
1082
1466
|
}
|
|
1083
1467
|
}
|
|
1084
|
-
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
1085
1468
|
hostRef.$hostElement$ = hostElm;
|
|
1086
1469
|
endHydrate();
|
|
1087
1470
|
};
|
|
@@ -1227,7 +1610,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1227
1610
|
vnode.$index$ = "0";
|
|
1228
1611
|
parentVNode.$children$ = [vnode];
|
|
1229
1612
|
} else {
|
|
1230
|
-
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1613
|
+
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim() && !node["s-nr"]) {
|
|
1231
1614
|
node.remove();
|
|
1232
1615
|
}
|
|
1233
1616
|
}
|
|
@@ -1288,8 +1671,8 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1288
1671
|
if (shouldMove) {
|
|
1289
1672
|
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1290
1673
|
}
|
|
1291
|
-
childRenderNodes.push(childVNode);
|
|
1292
1674
|
}
|
|
1675
|
+
childRenderNodes.push(childVNode);
|
|
1293
1676
|
slotNodes.push(childVNode);
|
|
1294
1677
|
if (!parentVNode.$children$) {
|
|
1295
1678
|
parentVNode.$children$ = [];
|
|
@@ -1297,13 +1680,17 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1297
1680
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1298
1681
|
}
|
|
1299
1682
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1683
|
+
var _a, _b;
|
|
1300
1684
|
let slottedNode = slotNode.nextSibling;
|
|
1301
1685
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1686
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
1687
|
+
do {
|
|
1688
|
+
if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
|
|
1689
|
+
slottedNode["s-sn"] = slotName;
|
|
1690
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1691
|
+
}
|
|
1692
|
+
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
1693
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
1307
1694
|
};
|
|
1308
1695
|
var findCorrespondingNode = (node, type) => {
|
|
1309
1696
|
let sibling = node;
|
|
@@ -1324,21 +1711,22 @@ var createSupportsRuleRe = (selector) => {
|
|
|
1324
1711
|
createSupportsRuleRe("::slotted");
|
|
1325
1712
|
createSupportsRuleRe(":host");
|
|
1326
1713
|
createSupportsRuleRe(":host-context");
|
|
1327
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
1328
|
-
if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
1329
|
-
try {
|
|
1330
|
-
propValue = JSON.parse(propValue);
|
|
1331
|
-
return propValue;
|
|
1332
|
-
} catch (e) {
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1714
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
1335
1715
|
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
1336
1716
|
propValue = deserializeProperty(propValue);
|
|
1337
1717
|
return propValue;
|
|
1338
1718
|
}
|
|
1719
|
+
if (typeof propValue === "string" && (propType & 16 /* Unknown */ || propType & 8 /* Any */) && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
1720
|
+
try {
|
|
1721
|
+
return JSON.parse(propValue);
|
|
1722
|
+
} catch (e) {
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1339
1725
|
if (propValue != null && !isComplexType(propValue)) {
|
|
1340
1726
|
if (propType & 4 /* Boolean */) {
|
|
1341
|
-
|
|
1727
|
+
{
|
|
1728
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
1729
|
+
}
|
|
1342
1730
|
}
|
|
1343
1731
|
if (propType & 2 /* Number */) {
|
|
1344
1732
|
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
@@ -1350,7 +1738,10 @@ var parsePropertyValue = (propValue, propType) => {
|
|
|
1350
1738
|
}
|
|
1351
1739
|
return propValue;
|
|
1352
1740
|
};
|
|
1353
|
-
var getElement = (ref) =>
|
|
1741
|
+
var getElement = (ref) => {
|
|
1742
|
+
var _a;
|
|
1743
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
1744
|
+
};
|
|
1354
1745
|
|
|
1355
1746
|
// src/runtime/event-emitter.ts
|
|
1356
1747
|
var createEvent = (ref, name, flags) => {
|
|
@@ -1371,99 +1762,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
1371
1762
|
elm.dispatchEvent(ev);
|
|
1372
1763
|
return ev;
|
|
1373
1764
|
};
|
|
1374
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1375
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1376
|
-
let style = styles.get(scopeId2);
|
|
1377
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
1378
|
-
style = style || new CSSStyleSheet();
|
|
1379
|
-
if (typeof style === "string") {
|
|
1380
|
-
style = cssText;
|
|
1381
|
-
} else {
|
|
1382
|
-
style.replaceSync(cssText);
|
|
1383
|
-
}
|
|
1384
|
-
} else {
|
|
1385
|
-
style = cssText;
|
|
1386
|
-
}
|
|
1387
|
-
styles.set(scopeId2, style);
|
|
1388
|
-
};
|
|
1389
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1390
|
-
var _a;
|
|
1391
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
1392
|
-
const style = styles.get(scopeId2);
|
|
1393
|
-
if (!win.document) {
|
|
1394
|
-
return scopeId2;
|
|
1395
|
-
}
|
|
1396
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1397
|
-
if (style) {
|
|
1398
|
-
if (typeof style === "string") {
|
|
1399
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1400
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1401
|
-
let styleElm;
|
|
1402
|
-
if (!appliedStyles) {
|
|
1403
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1404
|
-
}
|
|
1405
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
1406
|
-
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1407
|
-
styleElm.innerHTML = style;
|
|
1408
|
-
} else {
|
|
1409
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
1410
|
-
styleElm.innerHTML = style;
|
|
1411
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1412
|
-
if (nonce != null) {
|
|
1413
|
-
styleElm.setAttribute("nonce", nonce);
|
|
1414
|
-
}
|
|
1415
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1416
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
1417
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1418
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1419
|
-
styleContainerNode.insertBefore(
|
|
1420
|
-
styleElm,
|
|
1421
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1422
|
-
);
|
|
1423
|
-
} else if ("host" in styleContainerNode) {
|
|
1424
|
-
if (supportsConstructableStylesheets) {
|
|
1425
|
-
const stylesheet = new CSSStyleSheet();
|
|
1426
|
-
stylesheet.replaceSync(style);
|
|
1427
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1428
|
-
} else {
|
|
1429
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1430
|
-
if (existingStyleContainer) {
|
|
1431
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1432
|
-
} else {
|
|
1433
|
-
styleContainerNode.prepend(styleElm);
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
} else {
|
|
1437
|
-
styleContainerNode.append(styleElm);
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1441
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
1444
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1445
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1446
|
-
}
|
|
1447
|
-
if (appliedStyles) {
|
|
1448
|
-
appliedStyles.add(scopeId2);
|
|
1449
|
-
}
|
|
1450
|
-
}
|
|
1451
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1452
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
return scopeId2;
|
|
1456
|
-
};
|
|
1457
|
-
var attachStyles = (hostRef) => {
|
|
1458
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1459
|
-
const elm = hostRef.$hostElement$;
|
|
1460
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1461
|
-
addStyle(
|
|
1462
|
-
elm.getRootNode(),
|
|
1463
|
-
cmpMeta);
|
|
1464
|
-
endAttachStyles();
|
|
1465
|
-
};
|
|
1466
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
1467
1765
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
1468
1766
|
if (oldValue === newValue) {
|
|
1469
1767
|
return;
|
|
@@ -1474,12 +1772,13 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1474
1772
|
const classList = elm.classList;
|
|
1475
1773
|
const oldClasses = parseClassList(oldValue);
|
|
1476
1774
|
let newClasses = parseClassList(newValue);
|
|
1477
|
-
if (elm["s-si"] && initialRender) {
|
|
1478
|
-
|
|
1775
|
+
if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
|
|
1776
|
+
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
1777
|
+
newClasses.push(scopeId2);
|
|
1479
1778
|
oldClasses.forEach((c) => {
|
|
1480
|
-
if (c.startsWith(
|
|
1779
|
+
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
1481
1780
|
});
|
|
1482
|
-
newClasses = [...new Set(newClasses)];
|
|
1781
|
+
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
1483
1782
|
classList.add(...newClasses);
|
|
1484
1783
|
} else {
|
|
1485
1784
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
@@ -1920,6 +2219,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1920
2219
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
1921
2220
|
) {
|
|
1922
2221
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
2222
|
+
} else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
2223
|
+
newVNode2.$children$ = oldChildren;
|
|
1923
2224
|
}
|
|
1924
2225
|
} else if ((defaultHolder = elm["s-cr"])) {
|
|
1925
2226
|
defaultHolder.parentNode.textContent = text;
|
|
@@ -2129,6 +2430,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
2129
2430
|
}
|
|
2130
2431
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
2131
2432
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
2433
|
+
if (isInitialLoad) {
|
|
2434
|
+
queueMicrotask(() => {
|
|
2435
|
+
dispatch();
|
|
2436
|
+
});
|
|
2437
|
+
return;
|
|
2438
|
+
}
|
|
2132
2439
|
return writeTask(dispatch) ;
|
|
2133
2440
|
};
|
|
2134
2441
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -2245,7 +2552,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2245
2552
|
}
|
|
2246
2553
|
};
|
|
2247
2554
|
var appDidLoad = (who) => {
|
|
2555
|
+
var _a;
|
|
2248
2556
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
2557
|
+
{
|
|
2558
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
2559
|
+
plt.$orgLocNodes$.clear();
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2249
2562
|
};
|
|
2250
2563
|
var safeCall = (instance, method, arg, elm) => {
|
|
2251
2564
|
if (instance && instance[method]) {
|
|
@@ -2266,6 +2579,9 @@ var addHydratedFlag = (elm) => {
|
|
|
2266
2579
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
2267
2580
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
2268
2581
|
const hostRef = getHostRef(ref);
|
|
2582
|
+
if (!hostRef) {
|
|
2583
|
+
return;
|
|
2584
|
+
}
|
|
2269
2585
|
if (!hostRef) {
|
|
2270
2586
|
throw new Error(
|
|
2271
2587
|
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
|
|
@@ -2275,7 +2591,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2275
2591
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
2276
2592
|
const flags = hostRef.$flags$;
|
|
2277
2593
|
const instance = hostRef.$lazyInstance$ ;
|
|
2278
|
-
newVal = parsePropertyValue(
|
|
2594
|
+
newVal = parsePropertyValue(
|
|
2595
|
+
newVal,
|
|
2596
|
+
cmpMeta.$members$[propName][0]);
|
|
2279
2597
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
2280
2598
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
2281
2599
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
@@ -2339,6 +2657,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2339
2657
|
Object.defineProperty(prototype, memberName, {
|
|
2340
2658
|
set(newValue) {
|
|
2341
2659
|
const ref = getHostRef(this);
|
|
2660
|
+
if (!ref) {
|
|
2661
|
+
return;
|
|
2662
|
+
}
|
|
2342
2663
|
if (origSetter) {
|
|
2343
2664
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2344
2665
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
@@ -2346,7 +2667,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2346
2667
|
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2347
2668
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
2348
2669
|
}
|
|
2349
|
-
origSetter.apply(this, [
|
|
2670
|
+
origSetter.apply(this, [
|
|
2671
|
+
parsePropertyValue(
|
|
2672
|
+
newValue,
|
|
2673
|
+
memberFlags)
|
|
2674
|
+
]);
|
|
2350
2675
|
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2351
2676
|
setValue(this, memberName, newValue, cmpMeta);
|
|
2352
2677
|
return;
|
|
@@ -2368,7 +2693,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2368
2693
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2369
2694
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
2370
2695
|
}
|
|
2371
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
2696
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
2697
|
+
newValue,
|
|
2698
|
+
memberFlags);
|
|
2372
2699
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
2373
2700
|
};
|
|
2374
2701
|
if (ref.$lazyInstance$) {
|
|
@@ -2407,7 +2734,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2407
2734
|
} else if (propName == null) {
|
|
2408
2735
|
const hostRef = getHostRef(this);
|
|
2409
2736
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
2410
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2737
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2411
2738
|
const instance = hostRef.$lazyInstance$ ;
|
|
2412
2739
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
2413
2740
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
@@ -2522,6 +2849,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
2522
2849
|
var connectedCallback = (elm) => {
|
|
2523
2850
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2524
2851
|
const hostRef = getHostRef(elm);
|
|
2852
|
+
if (!hostRef) {
|
|
2853
|
+
return;
|
|
2854
|
+
}
|
|
2525
2855
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2526
2856
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
2527
2857
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -2656,7 +2986,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2656
2986
|
registerHost(self, cmpMeta);
|
|
2657
2987
|
}
|
|
2658
2988
|
connectedCallback() {
|
|
2659
|
-
getHostRef(this);
|
|
2989
|
+
const hostRef = getHostRef(this);
|
|
2990
|
+
if (!hostRef) {
|
|
2991
|
+
return;
|
|
2992
|
+
}
|
|
2660
2993
|
if (!this.hasRegisteredEventListeners) {
|
|
2661
2994
|
this.hasRegisteredEventListeners = true;
|
|
2662
2995
|
}
|
|
@@ -2675,6 +3008,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2675
3008
|
plt.raf(() => {
|
|
2676
3009
|
var _a3;
|
|
2677
3010
|
const hostRef = getHostRef(this);
|
|
3011
|
+
if (!hostRef) {
|
|
3012
|
+
return;
|
|
3013
|
+
}
|
|
2678
3014
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
2679
3015
|
if (i2 > -1) {
|
|
2680
3016
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -2685,9 +3021,15 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2685
3021
|
});
|
|
2686
3022
|
}
|
|
2687
3023
|
componentOnReady() {
|
|
2688
|
-
|
|
3024
|
+
var _a3;
|
|
3025
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
2689
3026
|
}
|
|
2690
3027
|
};
|
|
3028
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasRenderFn */) {
|
|
3029
|
+
{
|
|
3030
|
+
patchPseudoShadowDom(HostElement.prototype);
|
|
3031
|
+
}
|
|
3032
|
+
}
|
|
2691
3033
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
2692
3034
|
if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
|
|
2693
3035
|
cmpTags.push(tagName);
|
|
@@ -2738,6 +3080,6 @@ exports.h = h;
|
|
|
2738
3080
|
exports.promiseResolve = promiseResolve;
|
|
2739
3081
|
exports.registerInstance = registerInstance;
|
|
2740
3082
|
exports.setNonce = setNonce;
|
|
2741
|
-
//# sourceMappingURL=index-
|
|
3083
|
+
//# sourceMappingURL=index-pjwoybrU.js.map
|
|
2742
3084
|
|
|
2743
|
-
//# sourceMappingURL=index-
|
|
3085
|
+
//# sourceMappingURL=index-pjwoybrU.js.map
|