@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
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'core';
|
|
|
2
2
|
const BUILD = /* core */ { experimentalSlotFixes: true, hydratedSelectorName: "hydrated", lazyLoad: true, shadowDom: false, slotRelocation: true, updatable: true};
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.36.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -368,6 +368,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
|
368
368
|
}
|
|
369
369
|
return false;
|
|
370
370
|
})() ;
|
|
371
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
371
372
|
var queuePending = false;
|
|
372
373
|
var queueDomReads = [];
|
|
373
374
|
var queueDomWrites = [];
|
|
@@ -647,7 +648,7 @@ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
|
647
648
|
slottedNodeLocation["s-nr"] = newChild;
|
|
648
649
|
if (!slotNode["s-cr"] || !slotNode["s-cr"].parentNode) return;
|
|
649
650
|
const parent = slotNode["s-cr"].parentNode;
|
|
650
|
-
const appendMethod = internalCall(parent, "appendChild");
|
|
651
|
+
const appendMethod = prepend ? internalCall(parent, "prepend") : internalCall(parent, "appendChild");
|
|
651
652
|
if (typeof position !== "undefined") {
|
|
652
653
|
slottedNodeLocation["s-oo"] = position;
|
|
653
654
|
const childNodes = internalCall(parent, "childNodes");
|
|
@@ -675,7 +676,7 @@ function patchSlotNode(node) {
|
|
|
675
676
|
const slotName = this["s-sn"];
|
|
676
677
|
if (opts == null ? void 0 : opts.flatten) {
|
|
677
678
|
console.error(`
|
|
678
|
-
Flattening is not supported for Stencil non-shadow slots.
|
|
679
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
679
680
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
680
681
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
681
682
|
`);
|
|
@@ -707,6 +708,266 @@ function findSlotFromSlottedNode(slottedNode, parentHost) {
|
|
|
707
708
|
const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
|
|
708
709
|
return { slotNode, slotName };
|
|
709
710
|
}
|
|
711
|
+
|
|
712
|
+
// src/runtime/dom-extras.ts
|
|
713
|
+
var patchPseudoShadowDom = (hostElementPrototype) => {
|
|
714
|
+
patchCloneNode(hostElementPrototype);
|
|
715
|
+
patchSlotAppendChild(hostElementPrototype);
|
|
716
|
+
patchSlotAppend(hostElementPrototype);
|
|
717
|
+
patchSlotPrepend(hostElementPrototype);
|
|
718
|
+
patchSlotInsertAdjacentElement(hostElementPrototype);
|
|
719
|
+
patchSlotInsertAdjacentHTML(hostElementPrototype);
|
|
720
|
+
patchSlotInsertAdjacentText(hostElementPrototype);
|
|
721
|
+
patchInsertBefore(hostElementPrototype);
|
|
722
|
+
patchTextContent(hostElementPrototype);
|
|
723
|
+
patchChildSlotNodes(hostElementPrototype);
|
|
724
|
+
patchSlotRemoveChild(hostElementPrototype);
|
|
725
|
+
};
|
|
726
|
+
var patchCloneNode = (HostElementPrototype) => {
|
|
727
|
+
const orgCloneNode = HostElementPrototype.cloneNode;
|
|
728
|
+
HostElementPrototype.cloneNode = function(deep) {
|
|
729
|
+
const srcNode = this;
|
|
730
|
+
const clonedNode = orgCloneNode.call(srcNode, false);
|
|
731
|
+
if (deep) {
|
|
732
|
+
let i2 = 0;
|
|
733
|
+
let slotted, nonStencilNode;
|
|
734
|
+
const stencilPrivates = [
|
|
735
|
+
"s-id",
|
|
736
|
+
"s-cr",
|
|
737
|
+
"s-lr",
|
|
738
|
+
"s-rc",
|
|
739
|
+
"s-sc",
|
|
740
|
+
"s-p",
|
|
741
|
+
"s-cn",
|
|
742
|
+
"s-sr",
|
|
743
|
+
"s-sn",
|
|
744
|
+
"s-hn",
|
|
745
|
+
"s-ol",
|
|
746
|
+
"s-nr",
|
|
747
|
+
"s-si",
|
|
748
|
+
"s-rf",
|
|
749
|
+
"s-scs"
|
|
750
|
+
];
|
|
751
|
+
const childNodes = this.__childNodes || this.childNodes;
|
|
752
|
+
for (; i2 < childNodes.length; i2++) {
|
|
753
|
+
slotted = childNodes[i2]["s-nr"];
|
|
754
|
+
nonStencilNode = stencilPrivates.every((privateField) => !childNodes[i2][privateField]);
|
|
755
|
+
if (slotted) {
|
|
756
|
+
if (clonedNode.__appendChild) {
|
|
757
|
+
clonedNode.__appendChild(slotted.cloneNode(true));
|
|
758
|
+
} else {
|
|
759
|
+
clonedNode.appendChild(slotted.cloneNode(true));
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
if (nonStencilNode) {
|
|
763
|
+
clonedNode.appendChild(childNodes[i2].cloneNode(true));
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
return clonedNode;
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
var patchSlotAppendChild = (HostElementPrototype) => {
|
|
771
|
+
HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
|
|
772
|
+
HostElementPrototype.appendChild = function(newChild) {
|
|
773
|
+
const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);
|
|
774
|
+
if (slotNode) {
|
|
775
|
+
addSlotRelocateNode(newChild, slotNode);
|
|
776
|
+
const slotChildNodes = getSlotChildSiblings(slotNode, slotName);
|
|
777
|
+
const appendAfter = slotChildNodes[slotChildNodes.length - 1];
|
|
778
|
+
const parent = internalCall(appendAfter, "parentNode");
|
|
779
|
+
const insertedNode = internalCall(parent, "insertBefore")(newChild, appendAfter.nextSibling);
|
|
780
|
+
dispatchSlotChangeEvent(slotNode);
|
|
781
|
+
updateFallbackSlotVisibility(this);
|
|
782
|
+
return insertedNode;
|
|
783
|
+
}
|
|
784
|
+
return this.__appendChild(newChild);
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
var patchSlotRemoveChild = (ElementPrototype) => {
|
|
788
|
+
ElementPrototype.__removeChild = ElementPrototype.removeChild;
|
|
789
|
+
ElementPrototype.removeChild = function(toRemove) {
|
|
790
|
+
if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
|
|
791
|
+
const childNodes = this.__childNodes || this.childNodes;
|
|
792
|
+
const slotNode = getHostSlotNodes(childNodes, this.tagName, toRemove["s-sn"]);
|
|
793
|
+
if (slotNode && toRemove.isConnected) {
|
|
794
|
+
toRemove.remove();
|
|
795
|
+
updateFallbackSlotVisibility(this);
|
|
796
|
+
return;
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
return this.__removeChild(toRemove);
|
|
800
|
+
};
|
|
801
|
+
};
|
|
802
|
+
var patchSlotPrepend = (HostElementPrototype) => {
|
|
803
|
+
HostElementPrototype.__prepend = HostElementPrototype.prepend;
|
|
804
|
+
HostElementPrototype.prepend = function(...newChildren) {
|
|
805
|
+
newChildren.forEach((newChild) => {
|
|
806
|
+
if (typeof newChild === "string") {
|
|
807
|
+
newChild = this.ownerDocument.createTextNode(newChild);
|
|
808
|
+
}
|
|
809
|
+
const slotName = (newChild["s-sn"] = getSlotName(newChild)) || "";
|
|
810
|
+
const childNodes = internalCall(this, "childNodes");
|
|
811
|
+
const slotNode = getHostSlotNodes(childNodes, this.tagName, slotName)[0];
|
|
812
|
+
if (slotNode) {
|
|
813
|
+
addSlotRelocateNode(newChild, slotNode, true);
|
|
814
|
+
const slotChildNodes = getSlotChildSiblings(slotNode, slotName);
|
|
815
|
+
const appendAfter = slotChildNodes[0];
|
|
816
|
+
const parent = internalCall(appendAfter, "parentNode");
|
|
817
|
+
const toReturn = internalCall(parent, "insertBefore")(newChild, internalCall(appendAfter, "nextSibling"));
|
|
818
|
+
dispatchSlotChangeEvent(slotNode);
|
|
819
|
+
return toReturn;
|
|
820
|
+
}
|
|
821
|
+
if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
|
|
822
|
+
newChild.hidden = true;
|
|
823
|
+
}
|
|
824
|
+
return HostElementPrototype.__prepend(newChild);
|
|
825
|
+
});
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
var patchSlotAppend = (HostElementPrototype) => {
|
|
829
|
+
HostElementPrototype.__append = HostElementPrototype.append;
|
|
830
|
+
HostElementPrototype.append = function(...newChildren) {
|
|
831
|
+
newChildren.forEach((newChild) => {
|
|
832
|
+
if (typeof newChild === "string") {
|
|
833
|
+
newChild = this.ownerDocument.createTextNode(newChild);
|
|
834
|
+
}
|
|
835
|
+
this.appendChild(newChild);
|
|
836
|
+
});
|
|
837
|
+
};
|
|
838
|
+
};
|
|
839
|
+
var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
|
|
840
|
+
const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
|
|
841
|
+
HostElementPrototype.insertAdjacentHTML = function(position, text) {
|
|
842
|
+
if (position !== "afterbegin" && position !== "beforeend") {
|
|
843
|
+
return originalInsertAdjacentHtml.call(this, position, text);
|
|
844
|
+
}
|
|
845
|
+
const container = this.ownerDocument.createElement("_");
|
|
846
|
+
let node;
|
|
847
|
+
container.innerHTML = text;
|
|
848
|
+
if (position === "afterbegin") {
|
|
849
|
+
while (node = container.firstChild) {
|
|
850
|
+
this.prepend(node);
|
|
851
|
+
}
|
|
852
|
+
} else if (position === "beforeend") {
|
|
853
|
+
while (node = container.firstChild) {
|
|
854
|
+
this.append(node);
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
};
|
|
858
|
+
};
|
|
859
|
+
var patchSlotInsertAdjacentText = (HostElementPrototype) => {
|
|
860
|
+
HostElementPrototype.insertAdjacentText = function(position, text) {
|
|
861
|
+
this.insertAdjacentHTML(position, text);
|
|
862
|
+
};
|
|
863
|
+
};
|
|
864
|
+
var patchInsertBefore = (HostElementPrototype) => {
|
|
865
|
+
const eleProto = HostElementPrototype;
|
|
866
|
+
if (eleProto.__insertBefore) return;
|
|
867
|
+
eleProto.__insertBefore = HostElementPrototype.insertBefore;
|
|
868
|
+
HostElementPrototype.insertBefore = function(newChild, currentChild) {
|
|
869
|
+
const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);
|
|
870
|
+
const slottedNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
|
|
871
|
+
if (slotNode) {
|
|
872
|
+
let found = false;
|
|
873
|
+
slottedNodes.forEach((childNode) => {
|
|
874
|
+
if (childNode === currentChild || currentChild === null) {
|
|
875
|
+
found = true;
|
|
876
|
+
if (currentChild === null || slotName !== currentChild["s-sn"]) {
|
|
877
|
+
this.appendChild(newChild);
|
|
878
|
+
return;
|
|
879
|
+
}
|
|
880
|
+
if (slotName === currentChild["s-sn"]) {
|
|
881
|
+
addSlotRelocateNode(newChild, slotNode);
|
|
882
|
+
const parent = internalCall(currentChild, "parentNode");
|
|
883
|
+
internalCall(parent, "insertBefore")(newChild, currentChild);
|
|
884
|
+
dispatchSlotChangeEvent(slotNode);
|
|
885
|
+
}
|
|
886
|
+
return;
|
|
887
|
+
}
|
|
888
|
+
});
|
|
889
|
+
if (found) return newChild;
|
|
890
|
+
}
|
|
891
|
+
const parentNode = currentChild == null ? void 0 : currentChild.__parentNode;
|
|
892
|
+
if (parentNode && !this.isSameNode(parentNode)) {
|
|
893
|
+
return this.appendChild(newChild);
|
|
894
|
+
}
|
|
895
|
+
return this.__insertBefore(newChild, currentChild);
|
|
896
|
+
};
|
|
897
|
+
};
|
|
898
|
+
var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
|
|
899
|
+
const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
|
|
900
|
+
HostElementPrototype.insertAdjacentElement = function(position, element) {
|
|
901
|
+
if (position !== "afterbegin" && position !== "beforeend") {
|
|
902
|
+
return originalInsertAdjacentElement.call(this, position, element);
|
|
903
|
+
}
|
|
904
|
+
if (position === "afterbegin") {
|
|
905
|
+
this.prepend(element);
|
|
906
|
+
return element;
|
|
907
|
+
} else if (position === "beforeend") {
|
|
908
|
+
this.append(element);
|
|
909
|
+
return element;
|
|
910
|
+
}
|
|
911
|
+
return element;
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
var patchTextContent = (hostElementPrototype) => {
|
|
915
|
+
patchHostOriginalAccessor("textContent", hostElementPrototype);
|
|
916
|
+
Object.defineProperty(hostElementPrototype, "textContent", {
|
|
917
|
+
get: function() {
|
|
918
|
+
let text = "";
|
|
919
|
+
const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
|
|
920
|
+
childNodes.forEach((node) => text += node.textContent || "");
|
|
921
|
+
return text;
|
|
922
|
+
},
|
|
923
|
+
set: function(value) {
|
|
924
|
+
const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);
|
|
925
|
+
childNodes.forEach((node) => {
|
|
926
|
+
if (node["s-ol"]) node["s-ol"].remove();
|
|
927
|
+
node.remove();
|
|
928
|
+
});
|
|
929
|
+
this.insertAdjacentHTML("beforeend", value);
|
|
930
|
+
}
|
|
931
|
+
});
|
|
932
|
+
};
|
|
933
|
+
var patchChildSlotNodes = (elm) => {
|
|
934
|
+
class FakeNodeList extends Array {
|
|
935
|
+
item(n) {
|
|
936
|
+
return this[n];
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
patchHostOriginalAccessor("children", elm);
|
|
940
|
+
Object.defineProperty(elm, "children", {
|
|
941
|
+
get() {
|
|
942
|
+
return this.childNodes.filter((n) => n.nodeType === 1);
|
|
943
|
+
}
|
|
944
|
+
});
|
|
945
|
+
Object.defineProperty(elm, "childElementCount", {
|
|
946
|
+
get() {
|
|
947
|
+
return this.children.length;
|
|
948
|
+
}
|
|
949
|
+
});
|
|
950
|
+
patchHostOriginalAccessor("firstChild", elm);
|
|
951
|
+
Object.defineProperty(elm, "firstChild", {
|
|
952
|
+
get() {
|
|
953
|
+
return this.childNodes[0];
|
|
954
|
+
}
|
|
955
|
+
});
|
|
956
|
+
patchHostOriginalAccessor("lastChild", elm);
|
|
957
|
+
Object.defineProperty(elm, "lastChild", {
|
|
958
|
+
get() {
|
|
959
|
+
return this.childNodes[this.childNodes.length - 1];
|
|
960
|
+
}
|
|
961
|
+
});
|
|
962
|
+
patchHostOriginalAccessor("childNodes", elm);
|
|
963
|
+
Object.defineProperty(elm, "childNodes", {
|
|
964
|
+
get() {
|
|
965
|
+
const result = new FakeNodeList();
|
|
966
|
+
result.push(...getSlottedChildNodes(this.__childNodes));
|
|
967
|
+
return result;
|
|
968
|
+
}
|
|
969
|
+
});
|
|
970
|
+
};
|
|
710
971
|
var patchSlottedNode = (node) => {
|
|
711
972
|
if (!node || node.__nextSibling !== void 0 || !globalThis.Node) return;
|
|
712
973
|
patchNextSibling(node);
|
|
@@ -801,6 +1062,9 @@ var validNodesPatches = [
|
|
|
801
1062
|
"parentNode"
|
|
802
1063
|
];
|
|
803
1064
|
function patchHostOriginalAccessor(accessorName, node) {
|
|
1065
|
+
if (!globalThis.Node || !globalThis.Element) {
|
|
1066
|
+
return;
|
|
1067
|
+
}
|
|
804
1068
|
let accessor;
|
|
805
1069
|
if (validElementPatches.includes(accessorName)) {
|
|
806
1070
|
accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);
|
|
@@ -836,6 +1100,107 @@ var uniqueTime = (key, measureText) => {
|
|
|
836
1100
|
};
|
|
837
1101
|
}
|
|
838
1102
|
};
|
|
1103
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1104
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1105
|
+
let style = styles.get(scopeId2);
|
|
1106
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
1107
|
+
style = style || new CSSStyleSheet();
|
|
1108
|
+
if (typeof style === "string") {
|
|
1109
|
+
style = cssText;
|
|
1110
|
+
} else {
|
|
1111
|
+
style.replaceSync(cssText);
|
|
1112
|
+
}
|
|
1113
|
+
} else {
|
|
1114
|
+
style = cssText;
|
|
1115
|
+
}
|
|
1116
|
+
styles.set(scopeId2, style);
|
|
1117
|
+
};
|
|
1118
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1119
|
+
var _a;
|
|
1120
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
1121
|
+
const style = styles.get(scopeId2);
|
|
1122
|
+
if (!win.document) {
|
|
1123
|
+
return scopeId2;
|
|
1124
|
+
}
|
|
1125
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1126
|
+
if (style) {
|
|
1127
|
+
if (typeof style === "string") {
|
|
1128
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1129
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1130
|
+
let styleElm;
|
|
1131
|
+
if (!appliedStyles) {
|
|
1132
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1133
|
+
}
|
|
1134
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
1135
|
+
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1136
|
+
styleElm.innerHTML = style;
|
|
1137
|
+
} else {
|
|
1138
|
+
styleElm = win.document.createElement("style");
|
|
1139
|
+
styleElm.innerHTML = style;
|
|
1140
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1141
|
+
if (nonce != null) {
|
|
1142
|
+
styleElm.setAttribute("nonce", nonce);
|
|
1143
|
+
}
|
|
1144
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1145
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
1146
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1147
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1148
|
+
styleContainerNode.insertBefore(
|
|
1149
|
+
styleElm,
|
|
1150
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1151
|
+
);
|
|
1152
|
+
} else if ("host" in styleContainerNode) {
|
|
1153
|
+
if (supportsConstructableStylesheets) {
|
|
1154
|
+
const stylesheet = new CSSStyleSheet();
|
|
1155
|
+
stylesheet.replaceSync(style);
|
|
1156
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
1157
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
1158
|
+
} else {
|
|
1159
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1160
|
+
}
|
|
1161
|
+
} else {
|
|
1162
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1163
|
+
if (existingStyleContainer) {
|
|
1164
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1165
|
+
} else {
|
|
1166
|
+
styleContainerNode.prepend(styleElm);
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
} else {
|
|
1170
|
+
styleContainerNode.append(styleElm);
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1174
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1178
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1179
|
+
}
|
|
1180
|
+
if (appliedStyles) {
|
|
1181
|
+
appliedStyles.add(scopeId2);
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1185
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
1186
|
+
styleContainerNode.adoptedStyleSheets.push(style);
|
|
1187
|
+
} else {
|
|
1188
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
return scopeId2;
|
|
1193
|
+
};
|
|
1194
|
+
var attachStyles = (hostRef) => {
|
|
1195
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1196
|
+
const elm = hostRef.$hostElement$;
|
|
1197
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1198
|
+
addStyle(
|
|
1199
|
+
elm.getRootNode(),
|
|
1200
|
+
cmpMeta);
|
|
1201
|
+
endAttachStyles();
|
|
1202
|
+
};
|
|
1203
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
839
1204
|
var h = (nodeName, vnodeData, ...children) => {
|
|
840
1205
|
let child = null;
|
|
841
1206
|
let key = null;
|
|
@@ -950,7 +1315,7 @@ var convertToPrivate = (node) => {
|
|
|
950
1315
|
|
|
951
1316
|
// src/runtime/client-hydrate.ts
|
|
952
1317
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
953
|
-
var _a;
|
|
1318
|
+
var _a, _b, _c;
|
|
954
1319
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
955
1320
|
const shadowRoot = hostElm.shadowRoot;
|
|
956
1321
|
const childRenderNodes = [];
|
|
@@ -961,15 +1326,17 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
961
1326
|
vnode.$elm$ = hostElm;
|
|
962
1327
|
const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
|
|
963
1328
|
members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
|
|
964
|
-
var
|
|
1329
|
+
var _b2;
|
|
965
1330
|
if (!(memberFlags & 31 /* Prop */)) {
|
|
966
1331
|
return;
|
|
967
1332
|
}
|
|
968
1333
|
const attributeName = metaAttributeName || memberName;
|
|
969
1334
|
const attrVal = hostElm.getAttribute(attributeName);
|
|
970
1335
|
if (attrVal !== null) {
|
|
971
|
-
const attrPropVal = parsePropertyValue(
|
|
972
|
-
|
|
1336
|
+
const attrPropVal = parsePropertyValue(
|
|
1337
|
+
attrVal,
|
|
1338
|
+
memberFlags);
|
|
1339
|
+
(_b2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b2.set(memberName, attrPropVal);
|
|
973
1340
|
}
|
|
974
1341
|
});
|
|
975
1342
|
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
@@ -1000,6 +1367,16 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1000
1367
|
if (childRenderNode.$tag$ === "slot") {
|
|
1001
1368
|
node["s-cr"] = hostElm["s-cr"];
|
|
1002
1369
|
}
|
|
1370
|
+
} else if (((_b = childRenderNode.$tag$) == null ? void 0 : _b.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
1371
|
+
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
1372
|
+
if (cmpMeta) {
|
|
1373
|
+
const scopeId3 = getScopeId(
|
|
1374
|
+
cmpMeta.$cmpMeta$);
|
|
1375
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
1376
|
+
if (styleSheet) {
|
|
1377
|
+
hostElm.shadowRoot.append(styleSheet.cloneNode(true));
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1003
1380
|
}
|
|
1004
1381
|
if (childRenderNode.$tag$ === "slot") {
|
|
1005
1382
|
childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
|
|
@@ -1015,7 +1392,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1015
1392
|
}
|
|
1016
1393
|
}
|
|
1017
1394
|
if (orgLocationNode && orgLocationNode.isConnected) {
|
|
1018
|
-
if (shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1395
|
+
if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
|
|
1019
1396
|
orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
|
|
1020
1397
|
}
|
|
1021
1398
|
orgLocationNode.parentNode.removeChild(orgLocationNode);
|
|
@@ -1023,7 +1400,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1023
1400
|
node["s-oo"] = parseInt(childRenderNode.$nodeId$);
|
|
1024
1401
|
}
|
|
1025
1402
|
}
|
|
1026
|
-
|
|
1403
|
+
if (orgLocationNode && !orgLocationNode["s-id"]) {
|
|
1404
|
+
plt.$orgLocNodes$.delete(orgLocationId);
|
|
1405
|
+
}
|
|
1027
1406
|
}
|
|
1028
1407
|
const hosts = [];
|
|
1029
1408
|
const snLen = slottedNodes.length;
|
|
@@ -1044,24 +1423,28 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1044
1423
|
}
|
|
1045
1424
|
if (!hosts[slottedItem.hostId]) continue;
|
|
1046
1425
|
const hostEle = hosts[slottedItem.hostId];
|
|
1426
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1427
|
+
hostEle.appendChild(slottedItem.node);
|
|
1428
|
+
}
|
|
1047
1429
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
1048
|
-
slottedItem.slot["s-cr"]
|
|
1049
|
-
|
|
1050
|
-
slottedItem.slot["s-cr"]
|
|
1051
|
-
|
|
1052
|
-
|
|
1430
|
+
if (!slottedItem.slot["s-cr"]) {
|
|
1431
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
1432
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
|
1433
|
+
slottedItem.slot["s-cr"] = hostEle;
|
|
1434
|
+
} else {
|
|
1435
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
1436
|
+
}
|
|
1053
1437
|
}
|
|
1054
1438
|
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
1439
|
+
if (((_c = slottedItem.node.parentElement) == null ? void 0 : _c.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
1440
|
+
slottedItem.node.removeAttribute("slot");
|
|
1441
|
+
}
|
|
1055
1442
|
{
|
|
1056
1443
|
patchSlottedNode(slottedItem.node);
|
|
1057
1444
|
}
|
|
1058
1445
|
}
|
|
1059
|
-
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1060
|
-
hostEle.appendChild(slottedItem.node);
|
|
1061
|
-
}
|
|
1062
1446
|
}
|
|
1063
1447
|
}
|
|
1064
|
-
plt.$orgLocNodes$.delete(hostElm["s-id"]);
|
|
1065
1448
|
hostRef.$hostElement$ = hostElm;
|
|
1066
1449
|
endHydrate();
|
|
1067
1450
|
};
|
|
@@ -1207,7 +1590,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1207
1590
|
vnode.$index$ = "0";
|
|
1208
1591
|
parentVNode.$children$ = [vnode];
|
|
1209
1592
|
} else {
|
|
1210
|
-
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
|
1593
|
+
if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim() && !node["s-nr"]) {
|
|
1211
1594
|
node.remove();
|
|
1212
1595
|
}
|
|
1213
1596
|
}
|
|
@@ -1268,8 +1651,8 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1268
1651
|
if (shouldMove) {
|
|
1269
1652
|
parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
|
|
1270
1653
|
}
|
|
1271
|
-
childRenderNodes.push(childVNode);
|
|
1272
1654
|
}
|
|
1655
|
+
childRenderNodes.push(childVNode);
|
|
1273
1656
|
slotNodes.push(childVNode);
|
|
1274
1657
|
if (!parentVNode.$children$) {
|
|
1275
1658
|
parentVNode.$children$ = [];
|
|
@@ -1277,13 +1660,17 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1277
1660
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1278
1661
|
}
|
|
1279
1662
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1663
|
+
var _a, _b;
|
|
1280
1664
|
let slottedNode = slotNode.nextSibling;
|
|
1281
1665
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1666
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
1667
|
+
do {
|
|
1668
|
+
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 */))) {
|
|
1669
|
+
slottedNode["s-sn"] = slotName;
|
|
1670
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1671
|
+
}
|
|
1672
|
+
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
1673
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
1287
1674
|
};
|
|
1288
1675
|
var findCorrespondingNode = (node, type) => {
|
|
1289
1676
|
let sibling = node;
|
|
@@ -1304,21 +1691,22 @@ var createSupportsRuleRe = (selector) => {
|
|
|
1304
1691
|
createSupportsRuleRe("::slotted");
|
|
1305
1692
|
createSupportsRuleRe(":host");
|
|
1306
1693
|
createSupportsRuleRe(":host-context");
|
|
1307
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
1308
|
-
if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
1309
|
-
try {
|
|
1310
|
-
propValue = JSON.parse(propValue);
|
|
1311
|
-
return propValue;
|
|
1312
|
-
} catch (e) {
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1694
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
1315
1695
|
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
1316
1696
|
propValue = deserializeProperty(propValue);
|
|
1317
1697
|
return propValue;
|
|
1318
1698
|
}
|
|
1699
|
+
if (typeof propValue === "string" && (propType & 16 /* Unknown */ || propType & 8 /* Any */) && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
|
|
1700
|
+
try {
|
|
1701
|
+
return JSON.parse(propValue);
|
|
1702
|
+
} catch (e) {
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1319
1705
|
if (propValue != null && !isComplexType(propValue)) {
|
|
1320
1706
|
if (propType & 4 /* Boolean */) {
|
|
1321
|
-
|
|
1707
|
+
{
|
|
1708
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
1709
|
+
}
|
|
1322
1710
|
}
|
|
1323
1711
|
if (propType & 2 /* Number */) {
|
|
1324
1712
|
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
@@ -1330,7 +1718,10 @@ var parsePropertyValue = (propValue, propType) => {
|
|
|
1330
1718
|
}
|
|
1331
1719
|
return propValue;
|
|
1332
1720
|
};
|
|
1333
|
-
var getElement = (ref) =>
|
|
1721
|
+
var getElement = (ref) => {
|
|
1722
|
+
var _a;
|
|
1723
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
1724
|
+
};
|
|
1334
1725
|
|
|
1335
1726
|
// src/runtime/event-emitter.ts
|
|
1336
1727
|
var createEvent = (ref, name, flags) => {
|
|
@@ -1351,99 +1742,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
1351
1742
|
elm.dispatchEvent(ev);
|
|
1352
1743
|
return ev;
|
|
1353
1744
|
};
|
|
1354
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1355
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1356
|
-
let style = styles.get(scopeId2);
|
|
1357
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
1358
|
-
style = style || new CSSStyleSheet();
|
|
1359
|
-
if (typeof style === "string") {
|
|
1360
|
-
style = cssText;
|
|
1361
|
-
} else {
|
|
1362
|
-
style.replaceSync(cssText);
|
|
1363
|
-
}
|
|
1364
|
-
} else {
|
|
1365
|
-
style = cssText;
|
|
1366
|
-
}
|
|
1367
|
-
styles.set(scopeId2, style);
|
|
1368
|
-
};
|
|
1369
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1370
|
-
var _a;
|
|
1371
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
1372
|
-
const style = styles.get(scopeId2);
|
|
1373
|
-
if (!win.document) {
|
|
1374
|
-
return scopeId2;
|
|
1375
|
-
}
|
|
1376
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1377
|
-
if (style) {
|
|
1378
|
-
if (typeof style === "string") {
|
|
1379
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1380
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1381
|
-
let styleElm;
|
|
1382
|
-
if (!appliedStyles) {
|
|
1383
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1384
|
-
}
|
|
1385
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
1386
|
-
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1387
|
-
styleElm.innerHTML = style;
|
|
1388
|
-
} else {
|
|
1389
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
1390
|
-
styleElm.innerHTML = style;
|
|
1391
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1392
|
-
if (nonce != null) {
|
|
1393
|
-
styleElm.setAttribute("nonce", nonce);
|
|
1394
|
-
}
|
|
1395
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1396
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
1397
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1398
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1399
|
-
styleContainerNode.insertBefore(
|
|
1400
|
-
styleElm,
|
|
1401
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1402
|
-
);
|
|
1403
|
-
} else if ("host" in styleContainerNode) {
|
|
1404
|
-
if (supportsConstructableStylesheets) {
|
|
1405
|
-
const stylesheet = new CSSStyleSheet();
|
|
1406
|
-
stylesheet.replaceSync(style);
|
|
1407
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1408
|
-
} else {
|
|
1409
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1410
|
-
if (existingStyleContainer) {
|
|
1411
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1412
|
-
} else {
|
|
1413
|
-
styleContainerNode.prepend(styleElm);
|
|
1414
|
-
}
|
|
1415
|
-
}
|
|
1416
|
-
} else {
|
|
1417
|
-
styleContainerNode.append(styleElm);
|
|
1418
|
-
}
|
|
1419
|
-
}
|
|
1420
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1421
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1425
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1426
|
-
}
|
|
1427
|
-
if (appliedStyles) {
|
|
1428
|
-
appliedStyles.add(scopeId2);
|
|
1429
|
-
}
|
|
1430
|
-
}
|
|
1431
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1432
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1433
|
-
}
|
|
1434
|
-
}
|
|
1435
|
-
return scopeId2;
|
|
1436
|
-
};
|
|
1437
|
-
var attachStyles = (hostRef) => {
|
|
1438
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1439
|
-
const elm = hostRef.$hostElement$;
|
|
1440
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1441
|
-
addStyle(
|
|
1442
|
-
elm.getRootNode(),
|
|
1443
|
-
cmpMeta);
|
|
1444
|
-
endAttachStyles();
|
|
1445
|
-
};
|
|
1446
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
1447
1745
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
1448
1746
|
if (oldValue === newValue) {
|
|
1449
1747
|
return;
|
|
@@ -1454,12 +1752,13 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
1454
1752
|
const classList = elm.classList;
|
|
1455
1753
|
const oldClasses = parseClassList(oldValue);
|
|
1456
1754
|
let newClasses = parseClassList(newValue);
|
|
1457
|
-
if (elm["s-si"] && initialRender) {
|
|
1458
|
-
|
|
1755
|
+
if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
|
|
1756
|
+
const scopeId2 = elm["s-sc"] || elm["s-si"];
|
|
1757
|
+
newClasses.push(scopeId2);
|
|
1459
1758
|
oldClasses.forEach((c) => {
|
|
1460
|
-
if (c.startsWith(
|
|
1759
|
+
if (c.startsWith(scopeId2)) newClasses.push(c);
|
|
1461
1760
|
});
|
|
1462
|
-
newClasses = [...new Set(newClasses)];
|
|
1761
|
+
newClasses = [...new Set(newClasses)].filter((c) => c);
|
|
1463
1762
|
classList.add(...newClasses);
|
|
1464
1763
|
} else {
|
|
1465
1764
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
@@ -1900,6 +2199,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1900
2199
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
1901
2200
|
) {
|
|
1902
2201
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
2202
|
+
} else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
2203
|
+
newVNode2.$children$ = oldChildren;
|
|
1903
2204
|
}
|
|
1904
2205
|
} else if ((defaultHolder = elm["s-cr"])) {
|
|
1905
2206
|
defaultHolder.parentNode.textContent = text;
|
|
@@ -2109,6 +2410,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
2109
2410
|
}
|
|
2110
2411
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
2111
2412
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
2413
|
+
if (isInitialLoad) {
|
|
2414
|
+
queueMicrotask(() => {
|
|
2415
|
+
dispatch();
|
|
2416
|
+
});
|
|
2417
|
+
return;
|
|
2418
|
+
}
|
|
2112
2419
|
return writeTask(dispatch) ;
|
|
2113
2420
|
};
|
|
2114
2421
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -2225,7 +2532,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2225
2532
|
}
|
|
2226
2533
|
};
|
|
2227
2534
|
var appDidLoad = (who) => {
|
|
2535
|
+
var _a;
|
|
2228
2536
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
2537
|
+
{
|
|
2538
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
2539
|
+
plt.$orgLocNodes$.clear();
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2229
2542
|
};
|
|
2230
2543
|
var safeCall = (instance, method, arg, elm) => {
|
|
2231
2544
|
if (instance && instance[method]) {
|
|
@@ -2246,6 +2559,9 @@ var addHydratedFlag = (elm) => {
|
|
|
2246
2559
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
2247
2560
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
2248
2561
|
const hostRef = getHostRef(ref);
|
|
2562
|
+
if (!hostRef) {
|
|
2563
|
+
return;
|
|
2564
|
+
}
|
|
2249
2565
|
if (!hostRef) {
|
|
2250
2566
|
throw new Error(
|
|
2251
2567
|
`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).`
|
|
@@ -2255,7 +2571,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2255
2571
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
2256
2572
|
const flags = hostRef.$flags$;
|
|
2257
2573
|
const instance = hostRef.$lazyInstance$ ;
|
|
2258
|
-
newVal = parsePropertyValue(
|
|
2574
|
+
newVal = parsePropertyValue(
|
|
2575
|
+
newVal,
|
|
2576
|
+
cmpMeta.$members$[propName][0]);
|
|
2259
2577
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
2260
2578
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
2261
2579
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
@@ -2319,6 +2637,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2319
2637
|
Object.defineProperty(prototype, memberName, {
|
|
2320
2638
|
set(newValue) {
|
|
2321
2639
|
const ref = getHostRef(this);
|
|
2640
|
+
if (!ref) {
|
|
2641
|
+
return;
|
|
2642
|
+
}
|
|
2322
2643
|
if (origSetter) {
|
|
2323
2644
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2324
2645
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
@@ -2326,7 +2647,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2326
2647
|
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2327
2648
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
2328
2649
|
}
|
|
2329
|
-
origSetter.apply(this, [
|
|
2650
|
+
origSetter.apply(this, [
|
|
2651
|
+
parsePropertyValue(
|
|
2652
|
+
newValue,
|
|
2653
|
+
memberFlags)
|
|
2654
|
+
]);
|
|
2330
2655
|
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2331
2656
|
setValue(this, memberName, newValue, cmpMeta);
|
|
2332
2657
|
return;
|
|
@@ -2348,7 +2673,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2348
2673
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2349
2674
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
2350
2675
|
}
|
|
2351
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
2676
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
2677
|
+
newValue,
|
|
2678
|
+
memberFlags);
|
|
2352
2679
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
2353
2680
|
};
|
|
2354
2681
|
if (ref.$lazyInstance$) {
|
|
@@ -2387,7 +2714,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2387
2714
|
} else if (propName == null) {
|
|
2388
2715
|
const hostRef = getHostRef(this);
|
|
2389
2716
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
2390
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2717
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2391
2718
|
const instance = hostRef.$lazyInstance$ ;
|
|
2392
2719
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
2393
2720
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
@@ -2502,6 +2829,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
2502
2829
|
var connectedCallback = (elm) => {
|
|
2503
2830
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2504
2831
|
const hostRef = getHostRef(elm);
|
|
2832
|
+
if (!hostRef) {
|
|
2833
|
+
return;
|
|
2834
|
+
}
|
|
2505
2835
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2506
2836
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
2507
2837
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -2636,7 +2966,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2636
2966
|
registerHost(self, cmpMeta);
|
|
2637
2967
|
}
|
|
2638
2968
|
connectedCallback() {
|
|
2639
|
-
getHostRef(this);
|
|
2969
|
+
const hostRef = getHostRef(this);
|
|
2970
|
+
if (!hostRef) {
|
|
2971
|
+
return;
|
|
2972
|
+
}
|
|
2640
2973
|
if (!this.hasRegisteredEventListeners) {
|
|
2641
2974
|
this.hasRegisteredEventListeners = true;
|
|
2642
2975
|
}
|
|
@@ -2655,6 +2988,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2655
2988
|
plt.raf(() => {
|
|
2656
2989
|
var _a3;
|
|
2657
2990
|
const hostRef = getHostRef(this);
|
|
2991
|
+
if (!hostRef) {
|
|
2992
|
+
return;
|
|
2993
|
+
}
|
|
2658
2994
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
2659
2995
|
if (i2 > -1) {
|
|
2660
2996
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -2665,9 +3001,15 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2665
3001
|
});
|
|
2666
3002
|
}
|
|
2667
3003
|
componentOnReady() {
|
|
2668
|
-
|
|
3004
|
+
var _a3;
|
|
3005
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
2669
3006
|
}
|
|
2670
3007
|
};
|
|
3008
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasRenderFn */) {
|
|
3009
|
+
{
|
|
3010
|
+
patchPseudoShadowDom(HostElement.prototype);
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
2671
3013
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
2672
3014
|
if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
|
|
2673
3015
|
cmpTags.push(tagName);
|
|
@@ -2709,6 +3051,6 @@ var Fragment = (_, children) => children;
|
|
|
2709
3051
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
2710
3052
|
|
|
2711
3053
|
export { Fragment as F, Host as H, H as a, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
2712
|
-
//# sourceMappingURL=index-
|
|
3054
|
+
//# sourceMappingURL=index-DT2tslUp.js.map
|
|
2713
3055
|
|
|
2714
|
-
//# sourceMappingURL=index-
|
|
3056
|
+
//# sourceMappingURL=index-DT2tslUp.js.map
|