@usecapsule/core-components 3.2.0-dev.1 → 3.3.0-dev.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/capsule-core.css +25 -10
- package/css/capsule-core.css.map +1 -1
- package/dist/capsule/capsule.esm.js +1 -1
- package/dist/capsule/capsule.esm.js.map +1 -1
- package/dist/capsule/index.esm.js +1 -1
- package/dist/capsule/index.esm.js.map +1 -1
- package/dist/capsule/{p-a6aaf3f4.entry.js → p-0e558c7f.entry.js} +3 -3
- package/dist/capsule/p-0e558c7f.entry.js.map +1 -0
- package/dist/capsule/{p-452b9998.entry.js → p-1bd11889.entry.js} +2 -2
- package/dist/capsule/p-1bd11889.entry.js.map +1 -0
- package/dist/capsule/p-32cdf894.entry.js +2 -0
- package/dist/capsule/p-32cdf894.entry.js.map +1 -0
- package/dist/capsule/p-3b042fd1.entry.js +2 -0
- package/dist/capsule/{p-6793ef7a.entry.js.map → p-3b042fd1.entry.js.map} +1 -1
- package/dist/capsule/{p-b976b6f0.entry.js → p-41bc3c58.entry.js} +2 -2
- package/dist/capsule/{p-b976b6f0.entry.js.map → p-41bc3c58.entry.js.map} +1 -1
- package/dist/capsule/p-5965b15e.entry.js +2 -0
- package/dist/capsule/{p-f6c74d69.entry.js.map → p-5965b15e.entry.js.map} +1 -1
- package/dist/capsule/{p-447d49b9.entry.js → p-5d62e610.entry.js} +2 -2
- package/dist/capsule/{p-447d49b9.entry.js.map → p-5d62e610.entry.js.map} +1 -1
- package/dist/capsule/p-60508b1e.entry.js +20 -0
- package/dist/capsule/p-60508b1e.entry.js.map +1 -0
- package/dist/capsule/{p-6dcaee48.entry.js → p-de2a16e4.entry.js} +2 -2
- package/dist/capsule/{p-6dcaee48.entry.js.map → p-de2a16e4.entry.js.map} +1 -1
- package/dist/capsule/p-e1255160.js.map +1 -1
- package/dist/capsule/p-f2393be6.js.map +1 -1
- package/dist/capsule/p-fa6b7678.js +3 -0
- package/dist/capsule/p-fa6b7678.js.map +1 -0
- package/dist/cjs/capsule.cjs.js +10 -10
- package/dist/cjs/capsule.cjs.js.map +1 -1
- package/dist/cjs/cpsl-alert_34.cjs.entry.js +17036 -13428
- package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-animation.cjs.entry.js +8 -4
- package/dist/cjs/cpsl-animation.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-col.cjs.entry.js +25 -6
- package/dist/cjs/cpsl-col.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-grid.cjs.entry.js +3 -3
- package/dist/cjs/cpsl-hero.cjs.entry.js +38 -0
- package/dist/cjs/cpsl-hero.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-identicon.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-info-box.cjs.entry.js +3 -3
- package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-modal-v2.cjs.entry.js +3 -2
- package/dist/cjs/cpsl-modal-v2.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-row.cjs.entry.js +2 -2
- package/dist/cjs/index-65f57499.js +1439 -0
- package/dist/cjs/index-65f57499.js.map +1 -0
- package/dist/cjs/index.cjs.js +47 -16
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/icons/arrow-circle-broken-down-left.svg +3 -0
- package/dist/collection/assets/icons/bank.svg +3 -0
- package/dist/collection/assets/icons/credit-card.svg +3 -0
- package/dist/collection/assets/icons/dot.svg +3 -0
- package/dist/collection/assets/icons/download.svg +3 -0
- package/dist/collection/assets/icons/globe.svg +3 -0
- package/dist/collection/assets/icons/hero-alert-circle.svg +3 -0
- package/dist/collection/assets/icons/hero-checkmark-capsule.svg +11 -0
- package/dist/collection/assets/icons/hero-checkmark.svg +3 -0
- package/dist/collection/assets/icons/hero-external-connection.svg +71 -0
- package/dist/collection/assets/icons/index.js +21 -3
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/assets/icons/link-external.svg +3 -0
- package/dist/collection/assets/icons/log-out.svg +3 -0
- package/dist/collection/assets/icons/moonpay-brand.svg +10 -0
- package/dist/collection/assets/icons/puzzle-piece.svg +3 -0
- package/dist/collection/assets/icons/qr-code-02.svg +3 -0
- package/dist/collection/assets/icons/qr-code.svg +3 -0
- package/dist/collection/assets/icons/refresh.svg +3 -3
- package/dist/collection/assets/icons/search.svg +3 -0
- package/dist/collection/assets/icons/send.svg +3 -0
- package/dist/collection/assets/icons/shield.svg +3 -0
- package/dist/collection/assets/icons/stripe-brand.svg +3 -0
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +3 -3
- package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
- package/dist/collection/components/cpsl-animation/cpsl-animation.js +4 -1
- package/dist/collection/components/cpsl-animation/cpsl-animation.js.map +1 -1
- package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js +5 -2
- package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js.map +1 -1
- package/dist/collection/components/{cpsl-modal/cpsl-modal.css → cpsl-auth-modal/cpsl-auth-modal.css} +33 -58
- package/dist/collection/components/{cpsl-modal/cpsl-modal.js → cpsl-auth-modal/cpsl-auth-modal.js} +13 -131
- package/dist/collection/components/cpsl-auth-modal/cpsl-auth-modal.js.map +1 -0
- package/dist/collection/components/cpsl-avatar/cpsl-avatar.js +1 -1
- package/dist/collection/components/cpsl-button/cpsl-button.css +89 -2
- package/dist/collection/components/cpsl-button/cpsl-button.js +9 -5
- package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
- package/dist/collection/components/cpsl-button-group/cpsl-button-group.js +2 -2
- package/dist/collection/components/cpsl-button-group/cpsl-button-group.js.map +1 -1
- package/dist/collection/components/cpsl-card/cpsl-card.css +5 -2
- package/dist/collection/components/cpsl-card/cpsl-card.js +1 -1
- package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js +1 -1
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +3 -0
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +13 -7
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
- package/dist/collection/components/cpsl-col/cpsl-col.js +21 -5
- package/dist/collection/components/cpsl-col/cpsl-col.js.map +1 -1
- package/dist/collection/components/cpsl-divider/cpsl-divider.css +2 -1
- package/dist/collection/components/cpsl-divider/cpsl-divider.js +1 -1
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +3 -2
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -1
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +1 -1
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
- package/dist/collection/components/cpsl-dropdown/dropdown-interface.js.map +1 -1
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +5 -5
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -1
- package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
- package/dist/collection/components/cpsl-hero/cpsl-hero.css +136 -71
- package/dist/collection/components/cpsl-hero/cpsl-hero.js +64 -9
- package/dist/collection/components/cpsl-hero/cpsl-hero.js.map +1 -1
- package/dist/collection/components/cpsl-hero/cpsl-hero.stories.js.map +1 -1
- package/dist/collection/components/cpsl-icon/cpsl-icon.css +8 -0
- package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
- package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +1 -1
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.css +97 -0
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js +121 -0
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js.map +1 -0
- package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +1 -1
- package/dist/collection/components/cpsl-identicon/cpsl-identicon.stories.js.map +1 -1
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +1 -2
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.css +21 -2
- package/dist/collection/components/cpsl-input/cpsl-input.js +117 -11
- package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
- package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +2 -1
- package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js.map +1 -1
- package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +2 -2
- package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js.map +1 -1
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +2 -1
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -1
- package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
- package/dist/collection/components/cpsl-pagination/cpsl-pagination.js.map +1 -1
- package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
- package/dist/collection/components/cpsl-popover/cpsl-popover.css +2 -0
- package/dist/collection/components/cpsl-popover/cpsl-popover.js +16 -6
- package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +12 -3
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +28 -23
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +1 -1
- package/dist/collection/components/cpsl-radio/cpsl-radio.js +1 -1
- package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
- package/dist/collection/components/cpsl-select/cpsl-select.css +17 -0
- package/dist/collection/components/cpsl-select/cpsl-select.js +96 -4
- package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +1 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js.map +1 -1
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +14 -3
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -1
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +30 -8
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +5 -7
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +1 -1
- package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
- package/dist/collection/components/cpsl-tab/cpsl-tab.css +24 -1
- package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
- package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +1 -1
- package/dist/collection/components/cpsl-table/cpsl-table.js +3 -1
- package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +1 -4
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +5 -2
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -1
- package/dist/collection/components/cpsl-text/cpsl-text.css +19 -0
- package/dist/collection/components/cpsl-text/cpsl-text.js +7 -3
- package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +3 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
- package/dist/collection/interface.js.map +1 -1
- package/dist/collection/utils/media.js +3 -0
- package/dist/collection/utils/media.js.map +1 -1
- package/dist/collection/utils/theme/generateBorderRadii.js +4 -3
- package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
- package/dist/collection/utils/theme/generateFont.js +1 -1
- package/dist/collection/utils/theme/generateFont.js.map +1 -1
- package/dist/collection/utils/theme/generatePalette.js +28 -9
- package/dist/collection/utils/theme/generatePalette.js.map +1 -1
- package/dist/collection/utils/theme/generateTheme.js +13 -3
- package/dist/collection/utils/theme/generateTheme.js.map +1 -1
- package/dist/collection/utils/theme/utils.js +1 -0
- package/dist/collection/utils/theme/utils.js.map +1 -1
- package/dist/esm/capsule.js +11 -11
- package/dist/esm/capsule.js.map +1 -1
- package/dist/esm/cpsl-alert_34.entry.js +17036 -13428
- package/dist/esm/cpsl-alert_34.entry.js.map +1 -1
- package/dist/esm/cpsl-animation.entry.js +7 -3
- package/dist/esm/cpsl-animation.entry.js.map +1 -1
- package/dist/esm/cpsl-col.entry.js +25 -6
- package/dist/esm/cpsl-col.entry.js.map +1 -1
- package/dist/esm/cpsl-grid.entry.js +3 -3
- package/dist/esm/cpsl-hero.entry.js +34 -0
- package/dist/esm/cpsl-hero.entry.js.map +1 -0
- package/dist/esm/cpsl-identicon.entry.js +2 -2
- package/dist/esm/cpsl-info-box.entry.js +3 -3
- package/dist/esm/cpsl-info-box.entry.js.map +1 -1
- package/dist/esm/cpsl-modal-v2.entry.js +3 -2
- package/dist/esm/cpsl-modal-v2.entry.js.map +1 -1
- package/dist/esm/cpsl-row.entry.js +2 -2
- package/dist/esm/index-91db3414.js +1408 -0
- package/dist/esm/index-91db3414.js.map +1 -0
- package/dist/esm/index.js +47 -16
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/loader/cdn.js +1 -3
- package/dist/loader/index.cjs.js +1 -3
- package/dist/loader/index.d.ts +3 -0
- package/dist/loader/index.es2017.js +1 -3
- package/dist/loader/index.js +1 -3
- package/dist/scripts/buildAssets.js +1 -1
- package/dist/types/assets/icons/index.d.ts +20 -2
- package/dist/types/components/cpsl-alert/cpsl-alert.d.ts +8 -0
- package/dist/types/components/cpsl-animation/cpsl-animation.d.ts +6 -0
- package/dist/types/components/cpsl-app-bar/cpsl-app-bar.d.ts +10 -0
- package/dist/types/components/cpsl-auth-modal/cpsl-auth-modal.d.ts +58 -0
- package/dist/types/components/cpsl-avatar/cpsl-avatar.d.ts +11 -0
- package/dist/types/components/cpsl-button/cpsl-button.d.ts +30 -1
- package/dist/types/components/cpsl-button-group/cpsl-button-group.d.ts +3 -0
- package/dist/types/components/cpsl-checkbox/cpsl-checkbox.d.ts +6 -0
- package/dist/types/components/cpsl-code-input/cpsl-code-input.d.ts +19 -0
- package/dist/types/components/cpsl-col/cpsl-col.d.ts +96 -0
- package/dist/types/components/cpsl-drawer/cpsl-drawer.d.ts +31 -0
- package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +15 -0
- package/dist/types/components/cpsl-dropdown/dropdown-interface.d.ts +1 -1
- package/dist/types/components/cpsl-file-upload/cpsl-file-upload.d.ts +43 -0
- package/dist/types/components/cpsl-grid/cpsl-grid.d.ts +3 -0
- package/dist/types/components/cpsl-hero/cpsl-hero.d.ts +21 -1
- package/dist/types/components/cpsl-icon/cpsl-icon.d.ts +6 -0
- package/dist/types/components/cpsl-icon-group/cpsl-icon-group.d.ts +20 -0
- package/dist/types/components/cpsl-identicon/cpsl-identicon.d.ts +4 -0
- package/dist/types/components/cpsl-input/cpsl-input.d.ts +148 -0
- package/dist/types/components/cpsl-input/input-interface.d.ts +5 -0
- package/dist/types/components/cpsl-modal-v2/cpsl-modal-v2.d.ts +32 -0
- package/dist/types/components/cpsl-nav-button-group/cpsl-nav-button-group.d.ts +3 -0
- package/dist/types/components/cpsl-overlay/cpsl-overlay.d.ts +14 -0
- package/dist/types/components/cpsl-pagination/cpsl-pagination.d.ts +15 -0
- package/dist/types/components/cpsl-pill/cpsl-pill.d.ts +3 -0
- package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +53 -0
- package/dist/types/components/cpsl-progress-indicator/cpsl-progress-indicator.d.ts +6 -0
- package/dist/types/components/cpsl-qr-code/cpsl-qr-code.d.ts +11 -0
- package/dist/types/components/cpsl-radio/cpsl-radio.d.ts +6 -0
- package/dist/types/components/cpsl-select/cpsl-select.d.ts +67 -1
- package/dist/types/components/cpsl-select-item/cpsl-select-item.d.ts +10 -0
- package/dist/types/components/cpsl-slide-button/cpsl-slide-button.d.ts +18 -0
- package/dist/types/components/cpsl-spinner/cpsl-spinner.d.ts +8 -0
- package/dist/types/components/cpsl-switch/cpsl-switch.d.ts +6 -0
- package/dist/types/components/cpsl-tab/cpsl-tab.d.ts +11 -0
- package/dist/types/components/cpsl-tabs/cpsl-tabs.d.ts +13 -0
- package/dist/types/components/cpsl-text/cpsl-text.d.ts +16 -1
- package/dist/types/components/cpsl-tile-button/cpsl-tile-button.d.ts +6 -0
- package/dist/types/components.d.ts +216 -118
- package/dist/types/interface.d.ts +13 -0
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/dist/types/utils/theme/generatePalette.d.ts +4 -2
- package/dist/types/utils/theme/generateTheme.d.ts +5 -1
- package/package.json +6 -12
- package/readme.md +47 -2
- package/dist/capsule/p-0462f723.js +0 -2
- package/dist/capsule/p-0462f723.js.map +0 -1
- package/dist/capsule/p-303e6e89.entry.js +0 -29
- package/dist/capsule/p-303e6e89.entry.js.map +0 -1
- package/dist/capsule/p-452b9998.entry.js.map +0 -1
- package/dist/capsule/p-6793ef7a.entry.js +0 -2
- package/dist/capsule/p-7dde3172.js +0 -3
- package/dist/capsule/p-7dde3172.js.map +0 -1
- package/dist/capsule/p-a6aaf3f4.entry.js.map +0 -1
- package/dist/capsule/p-f6c74d69.entry.js +0 -2
- package/dist/cjs/_commonjsHelpers-b3309d7b.js +0 -12
- package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +0 -1
- package/dist/cjs/index-528f7428.js +0 -2107
- package/dist/cjs/index-528f7428.js.map +0 -1
- package/dist/collection/assets/icons/double-arc.svg +0 -13
- package/dist/collection/assets/icons/single-arc.svg +0 -11
- package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js +0 -29
- package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js +0 -37
- package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js.map +0 -1
- package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js +0 -29
- package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js +0 -37
- package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js.map +0 -1
- package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js +0 -29
- package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js +0 -37
- package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js.map +0 -1
- package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js +0 -29
- package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js +0 -37
- package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js.map +0 -1
- package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js +0 -29
- package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js +0 -37
- package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js.map +0 -1
- package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js +0 -29
- package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js +0 -37
- package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js.map +0 -1
- package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js +0 -29
- package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js +0 -37
- package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js.map +0 -1
- package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js +0 -29
- package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js +0 -37
- package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js.map +0 -1
- package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js +0 -29
- package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js +0 -37
- package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js.map +0 -1
- package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js +0 -29
- package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js +0 -37
- package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js.map +0 -1
- package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js +0 -29
- package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js +0 -37
- package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js.map +0 -1
- package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js +0 -29
- package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js +0 -37
- package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js.map +0 -1
- package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js +0 -29
- package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js +0 -37
- package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js.map +0 -1
- package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js +0 -29
- package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.js +0 -37
- package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.js.map +0 -1
- package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js +0 -29
- package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js +0 -37
- package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js.map +0 -1
- package/dist/collection/components/cpsl-hero/test/cpsl-hero.e2e.js +0 -29
- package/dist/collection/components/cpsl-hero/test/cpsl-hero.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-hero/test/cpsl-hero.spec.js +0 -37
- package/dist/collection/components/cpsl-hero/test/cpsl-hero.spec.js.map +0 -1
- package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js +0 -29
- package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js +0 -37
- package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js.map +0 -1
- package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.e2e.js +0 -29
- package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.spec.js +0 -37
- package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.spec.js.map +0 -1
- package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js +0 -29
- package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js +0 -37
- package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js.map +0 -1
- package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js +0 -29
- package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js +0 -37
- package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js.map +0 -1
- package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +0 -1
- package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js +0 -29
- package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js +0 -37
- package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js.map +0 -1
- package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.e2e.js +0 -29
- package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js +0 -37
- package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js.map +0 -1
- package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js +0 -29
- package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js +0 -37
- package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js.map +0 -1
- package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js +0 -29
- package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js +0 -37
- package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js.map +0 -1
- package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js +0 -29
- package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js +0 -37
- package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js.map +0 -1
- package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js +0 -29
- package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js +0 -37
- package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js.map +0 -1
- package/dist/collection/components/cpsl-popover/test/cpsl-popover.e2e.js +0 -29
- package/dist/collection/components/cpsl-popover/test/cpsl-popover.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.js +0 -37
- package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.js.map +0 -1
- package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js +0 -29
- package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js +0 -37
- package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js.map +0 -1
- package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js +0 -29
- package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js +0 -37
- package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js.map +0 -1
- package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js +0 -29
- package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js +0 -37
- package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js.map +0 -1
- package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js +0 -29
- package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js +0 -37
- package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js.map +0 -1
- package/dist/collection/components/cpsl-select/test/cpsl-select.e2e.js +0 -29
- package/dist/collection/components/cpsl-select/test/cpsl-select.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js +0 -37
- package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js.map +0 -1
- package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js +0 -29
- package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.js +0 -37
- package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.js.map +0 -1
- package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js +0 -29
- package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js +0 -37
- package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js.map +0 -1
- package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js +0 -29
- package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js +0 -37
- package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js.map +0 -1
- package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js +0 -29
- package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js +0 -37
- package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js.map +0 -1
- package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js +0 -29
- package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js +0 -37
- package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js.map +0 -1
- package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js +0 -29
- package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js +0 -37
- package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js.map +0 -1
- package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js +0 -29
- package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js +0 -37
- package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js.map +0 -1
- package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js +0 -29
- package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js +0 -37
- package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js.map +0 -1
- package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js +0 -29
- package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js +0 -37
- package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js.map +0 -1
- package/dist/esm/_commonjsHelpers-1789f0cf.js +0 -9
- package/dist/esm/_commonjsHelpers-1789f0cf.js.map +0 -1
- package/dist/esm/index-b188f201.js +0 -2076
- package/dist/esm/index-b188f201.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/types/components/cpsl-modal/cpsl-modal.d.ts +0 -39
- /package/dist/types/Users/{briancorbin/Documents/Programming/Capsule/component-library/core → norwood/capsule-repos/web-sdk/packages/core-components}/.stencil/scripts/buildAssets.d.ts +0 -0
@@ -0,0 +1,1439 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
function _interopNamespace(e) {
|
4
|
+
if (e && e.__esModule) return e;
|
5
|
+
var n = Object.create(null);
|
6
|
+
if (e) {
|
7
|
+
Object.keys(e).forEach(function (k) {
|
8
|
+
if (k !== 'default') {
|
9
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
10
|
+
Object.defineProperty(n, k, d.get ? d : {
|
11
|
+
enumerable: true,
|
12
|
+
get: function () {
|
13
|
+
return e[k];
|
14
|
+
}
|
15
|
+
});
|
16
|
+
}
|
17
|
+
});
|
18
|
+
}
|
19
|
+
n['default'] = e;
|
20
|
+
return Object.freeze(n);
|
21
|
+
}
|
22
|
+
|
23
|
+
const NAMESPACE = 'capsule';
|
24
|
+
const BUILD = /* capsule */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
25
|
+
|
26
|
+
/*
|
27
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
28
|
+
*/
|
29
|
+
var __defProp = Object.defineProperty;
|
30
|
+
var __export = (target, all) => {
|
31
|
+
for (var name in all)
|
32
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
33
|
+
};
|
34
|
+
var hostRefs = /* @__PURE__ */ new WeakMap();
|
35
|
+
var getHostRef = (ref) => hostRefs.get(ref);
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
37
|
+
var registerHost = (hostElement, cmpMeta) => {
|
38
|
+
const hostRef = {
|
39
|
+
$flags$: 0,
|
40
|
+
$hostElement$: hostElement,
|
41
|
+
$cmpMeta$: cmpMeta,
|
42
|
+
$instanceValues$: /* @__PURE__ */ new Map()
|
43
|
+
};
|
44
|
+
{
|
45
|
+
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
46
|
+
}
|
47
|
+
{
|
48
|
+
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
49
|
+
hostElement["s-p"] = [];
|
50
|
+
hostElement["s-rc"] = [];
|
51
|
+
}
|
52
|
+
return hostRefs.set(hostElement, hostRef);
|
53
|
+
};
|
54
|
+
var isMemberInElement = (elm, memberName) => memberName in elm;
|
55
|
+
var consoleError = (e, el) => (0, console.error)(e, el);
|
56
|
+
|
57
|
+
// src/client/client-load-module.ts
|
58
|
+
var cmpModules = /* @__PURE__ */ new Map();
|
59
|
+
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
60
|
+
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
61
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
62
|
+
if (!bundleId) {
|
63
|
+
return void 0;
|
64
|
+
}
|
65
|
+
const module = cmpModules.get(bundleId) ;
|
66
|
+
if (module) {
|
67
|
+
return module[exportName];
|
68
|
+
}
|
69
|
+
|
70
|
+
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
71
|
+
const processMod = importedModule => {
|
72
|
+
cmpModules.set(bundleId, importedModule);
|
73
|
+
return importedModule[exportName];
|
74
|
+
}
|
75
|
+
switch(bundleId) {
|
76
|
+
|
77
|
+
case 'cpsl-alert_34.cjs':
|
78
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
79
|
+
/* webpackMode: "lazy" */
|
80
|
+
'./cpsl-alert_34.cjs.entry.js')); }).then(processMod, consoleError);
|
81
|
+
case 'cpsl-animation.cjs':
|
82
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
83
|
+
/* webpackMode: "lazy" */
|
84
|
+
'./cpsl-animation.cjs.entry.js')); }).then(processMod, consoleError);
|
85
|
+
case 'cpsl-col.cjs':
|
86
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
87
|
+
/* webpackMode: "lazy" */
|
88
|
+
'./cpsl-col.cjs.entry.js')); }).then(processMod, consoleError);
|
89
|
+
case 'cpsl-grid.cjs':
|
90
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
91
|
+
/* webpackMode: "lazy" */
|
92
|
+
'./cpsl-grid.cjs.entry.js')); }).then(processMod, consoleError);
|
93
|
+
case 'cpsl-hero.cjs':
|
94
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
95
|
+
/* webpackMode: "lazy" */
|
96
|
+
'./cpsl-hero.cjs.entry.js')); }).then(processMod, consoleError);
|
97
|
+
case 'cpsl-identicon.cjs':
|
98
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
99
|
+
/* webpackMode: "lazy" */
|
100
|
+
'./cpsl-identicon.cjs.entry.js')); }).then(processMod, consoleError);
|
101
|
+
case 'cpsl-info-box.cjs':
|
102
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
103
|
+
/* webpackMode: "lazy" */
|
104
|
+
'./cpsl-info-box.cjs.entry.js')); }).then(processMod, consoleError);
|
105
|
+
case 'cpsl-modal-v2.cjs':
|
106
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
107
|
+
/* webpackMode: "lazy" */
|
108
|
+
'./cpsl-modal-v2.cjs.entry.js')); }).then(processMod, consoleError);
|
109
|
+
case 'cpsl-row.cjs':
|
110
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
111
|
+
/* webpackMode: "lazy" */
|
112
|
+
'./cpsl-row.cjs.entry.js')); }).then(processMod, consoleError);
|
113
|
+
}
|
114
|
+
}
|
115
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
116
|
+
/* @vite-ignore */
|
117
|
+
/* webpackInclude: /\.entry\.js$/ */
|
118
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
119
|
+
/* webpackMode: "lazy" */
|
120
|
+
`./${bundleId}.entry.js${""}`
|
121
|
+
)); }).then((importedModule) => {
|
122
|
+
{
|
123
|
+
cmpModules.set(bundleId, importedModule);
|
124
|
+
}
|
125
|
+
return importedModule[exportName];
|
126
|
+
}, consoleError);
|
127
|
+
};
|
128
|
+
|
129
|
+
// src/client/client-style.ts
|
130
|
+
var styles = /* @__PURE__ */ new Map();
|
131
|
+
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
132
|
+
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
133
|
+
var win = typeof window !== "undefined" ? window : {};
|
134
|
+
var doc = win.document || { head: {} };
|
135
|
+
var plt = {
|
136
|
+
$flags$: 0,
|
137
|
+
$resourcesUrl$: "",
|
138
|
+
jmp: (h2) => h2(),
|
139
|
+
raf: (h2) => requestAnimationFrame(h2),
|
140
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
141
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
142
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
143
|
+
};
|
144
|
+
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
145
|
+
let supportsListenerOptions2 = false;
|
146
|
+
try {
|
147
|
+
doc.addEventListener(
|
148
|
+
"e",
|
149
|
+
null,
|
150
|
+
Object.defineProperty({}, "passive", {
|
151
|
+
get() {
|
152
|
+
supportsListenerOptions2 = true;
|
153
|
+
}
|
154
|
+
})
|
155
|
+
);
|
156
|
+
} catch (e) {
|
157
|
+
}
|
158
|
+
return supportsListenerOptions2;
|
159
|
+
})();
|
160
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
161
|
+
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
162
|
+
try {
|
163
|
+
new CSSStyleSheet();
|
164
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
165
|
+
} catch (e) {
|
166
|
+
}
|
167
|
+
return false;
|
168
|
+
})() ;
|
169
|
+
var queuePending = false;
|
170
|
+
var queueDomReads = [];
|
171
|
+
var queueDomWrites = [];
|
172
|
+
var queueTask = (queue, write) => (cb) => {
|
173
|
+
queue.push(cb);
|
174
|
+
if (!queuePending) {
|
175
|
+
queuePending = true;
|
176
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
177
|
+
nextTick(flush);
|
178
|
+
} else {
|
179
|
+
plt.raf(flush);
|
180
|
+
}
|
181
|
+
}
|
182
|
+
};
|
183
|
+
var consume = (queue) => {
|
184
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
185
|
+
try {
|
186
|
+
queue[i2](performance.now());
|
187
|
+
} catch (e) {
|
188
|
+
consoleError(e);
|
189
|
+
}
|
190
|
+
}
|
191
|
+
queue.length = 0;
|
192
|
+
};
|
193
|
+
var flush = () => {
|
194
|
+
consume(queueDomReads);
|
195
|
+
{
|
196
|
+
consume(queueDomWrites);
|
197
|
+
if (queuePending = queueDomReads.length > 0) {
|
198
|
+
plt.raf(flush);
|
199
|
+
}
|
200
|
+
}
|
201
|
+
};
|
202
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
203
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
204
|
+
|
205
|
+
// src/utils/constants.ts
|
206
|
+
var EMPTY_OBJ = {};
|
207
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
208
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
209
|
+
|
210
|
+
// src/utils/helpers.ts
|
211
|
+
var isDef = (v) => v != null;
|
212
|
+
var isComplexType = (o) => {
|
213
|
+
o = typeof o;
|
214
|
+
return o === "object" || o === "function";
|
215
|
+
};
|
216
|
+
|
217
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
218
|
+
function queryNonceMetaTagContent(doc2) {
|
219
|
+
var _a, _b, _c;
|
220
|
+
return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
221
|
+
}
|
222
|
+
|
223
|
+
// src/utils/result.ts
|
224
|
+
var result_exports = {};
|
225
|
+
__export(result_exports, {
|
226
|
+
err: () => err,
|
227
|
+
map: () => map,
|
228
|
+
ok: () => ok,
|
229
|
+
unwrap: () => unwrap,
|
230
|
+
unwrapErr: () => unwrapErr
|
231
|
+
});
|
232
|
+
var ok = (value) => ({
|
233
|
+
isOk: true,
|
234
|
+
isErr: false,
|
235
|
+
value
|
236
|
+
});
|
237
|
+
var err = (value) => ({
|
238
|
+
isOk: false,
|
239
|
+
isErr: true,
|
240
|
+
value
|
241
|
+
});
|
242
|
+
function map(result, fn) {
|
243
|
+
if (result.isOk) {
|
244
|
+
const val = fn(result.value);
|
245
|
+
if (val instanceof Promise) {
|
246
|
+
return val.then((newVal) => ok(newVal));
|
247
|
+
} else {
|
248
|
+
return ok(val);
|
249
|
+
}
|
250
|
+
}
|
251
|
+
if (result.isErr) {
|
252
|
+
const value = result.value;
|
253
|
+
return err(value);
|
254
|
+
}
|
255
|
+
throw "should never get here";
|
256
|
+
}
|
257
|
+
var unwrap = (result) => {
|
258
|
+
if (result.isOk) {
|
259
|
+
return result.value;
|
260
|
+
} else {
|
261
|
+
throw result.value;
|
262
|
+
}
|
263
|
+
};
|
264
|
+
var unwrapErr = (result) => {
|
265
|
+
if (result.isErr) {
|
266
|
+
return result.value;
|
267
|
+
} else {
|
268
|
+
throw result.value;
|
269
|
+
}
|
270
|
+
};
|
271
|
+
var createTime = (fnName, tagName = "") => {
|
272
|
+
{
|
273
|
+
return () => {
|
274
|
+
return;
|
275
|
+
};
|
276
|
+
}
|
277
|
+
};
|
278
|
+
var uniqueTime = (key, measureText) => {
|
279
|
+
{
|
280
|
+
return () => {
|
281
|
+
return;
|
282
|
+
};
|
283
|
+
}
|
284
|
+
};
|
285
|
+
var h = (nodeName, vnodeData, ...children) => {
|
286
|
+
let child = null;
|
287
|
+
let key = null;
|
288
|
+
let simple = false;
|
289
|
+
let lastSimple = false;
|
290
|
+
const vNodeChildren = [];
|
291
|
+
const walk = (c) => {
|
292
|
+
for (let i2 = 0; i2 < c.length; i2++) {
|
293
|
+
child = c[i2];
|
294
|
+
if (Array.isArray(child)) {
|
295
|
+
walk(child);
|
296
|
+
} else if (child != null && typeof child !== "boolean") {
|
297
|
+
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
298
|
+
child = String(child);
|
299
|
+
}
|
300
|
+
if (simple && lastSimple) {
|
301
|
+
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
302
|
+
} else {
|
303
|
+
vNodeChildren.push(simple ? newVNode(null, child) : child);
|
304
|
+
}
|
305
|
+
lastSimple = simple;
|
306
|
+
}
|
307
|
+
}
|
308
|
+
};
|
309
|
+
walk(children);
|
310
|
+
if (vnodeData) {
|
311
|
+
if (vnodeData.key) {
|
312
|
+
key = vnodeData.key;
|
313
|
+
}
|
314
|
+
{
|
315
|
+
const classData = vnodeData.className || vnodeData.class;
|
316
|
+
if (classData) {
|
317
|
+
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
318
|
+
}
|
319
|
+
}
|
320
|
+
}
|
321
|
+
if (typeof nodeName === "function") {
|
322
|
+
return nodeName(
|
323
|
+
vnodeData === null ? {} : vnodeData,
|
324
|
+
vNodeChildren,
|
325
|
+
vdomFnUtils
|
326
|
+
);
|
327
|
+
}
|
328
|
+
const vnode = newVNode(nodeName, null);
|
329
|
+
vnode.$attrs$ = vnodeData;
|
330
|
+
if (vNodeChildren.length > 0) {
|
331
|
+
vnode.$children$ = vNodeChildren;
|
332
|
+
}
|
333
|
+
{
|
334
|
+
vnode.$key$ = key;
|
335
|
+
}
|
336
|
+
return vnode;
|
337
|
+
};
|
338
|
+
var newVNode = (tag, text) => {
|
339
|
+
const vnode = {
|
340
|
+
$flags$: 0,
|
341
|
+
$tag$: tag,
|
342
|
+
$text$: text,
|
343
|
+
$elm$: null,
|
344
|
+
$children$: null
|
345
|
+
};
|
346
|
+
{
|
347
|
+
vnode.$attrs$ = null;
|
348
|
+
}
|
349
|
+
{
|
350
|
+
vnode.$key$ = null;
|
351
|
+
}
|
352
|
+
return vnode;
|
353
|
+
};
|
354
|
+
var Host = {};
|
355
|
+
var isHost = (node) => node && node.$tag$ === Host;
|
356
|
+
var vdomFnUtils = {
|
357
|
+
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
358
|
+
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
|
359
|
+
};
|
360
|
+
var convertToPublic = (node) => ({
|
361
|
+
vattrs: node.$attrs$,
|
362
|
+
vchildren: node.$children$,
|
363
|
+
vkey: node.$key$,
|
364
|
+
vname: node.$name$,
|
365
|
+
vtag: node.$tag$,
|
366
|
+
vtext: node.$text$
|
367
|
+
});
|
368
|
+
var convertToPrivate = (node) => {
|
369
|
+
if (typeof node.vtag === "function") {
|
370
|
+
const vnodeData = { ...node.vattrs };
|
371
|
+
if (node.vkey) {
|
372
|
+
vnodeData.key = node.vkey;
|
373
|
+
}
|
374
|
+
if (node.vname) {
|
375
|
+
vnodeData.name = node.vname;
|
376
|
+
}
|
377
|
+
return h(node.vtag, vnodeData, ...node.vchildren || []);
|
378
|
+
}
|
379
|
+
const vnode = newVNode(node.vtag, node.vtext);
|
380
|
+
vnode.$attrs$ = node.vattrs;
|
381
|
+
vnode.$children$ = node.vchildren;
|
382
|
+
vnode.$key$ = node.vkey;
|
383
|
+
vnode.$name$ = node.vname;
|
384
|
+
return vnode;
|
385
|
+
};
|
386
|
+
var parsePropertyValue = (propValue, propType) => {
|
387
|
+
if (propValue != null && !isComplexType(propValue)) {
|
388
|
+
if (propType & 4 /* Boolean */) {
|
389
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
390
|
+
}
|
391
|
+
if (propType & 2 /* Number */) {
|
392
|
+
return parseFloat(propValue);
|
393
|
+
}
|
394
|
+
if (propType & 1 /* String */) {
|
395
|
+
return String(propValue);
|
396
|
+
}
|
397
|
+
return propValue;
|
398
|
+
}
|
399
|
+
return propValue;
|
400
|
+
};
|
401
|
+
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
402
|
+
|
403
|
+
// src/runtime/event-emitter.ts
|
404
|
+
var createEvent = (ref, name, flags) => {
|
405
|
+
const elm = getElement(ref);
|
406
|
+
return {
|
407
|
+
emit: (detail) => {
|
408
|
+
return emitEvent(elm, name, {
|
409
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
410
|
+
composed: !!(flags & 2 /* Composed */),
|
411
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
412
|
+
detail
|
413
|
+
});
|
414
|
+
}
|
415
|
+
};
|
416
|
+
};
|
417
|
+
var emitEvent = (elm, name, opts) => {
|
418
|
+
const ev = plt.ce(name, opts);
|
419
|
+
elm.dispatchEvent(ev);
|
420
|
+
return ev;
|
421
|
+
};
|
422
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
423
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
424
|
+
let style = styles.get(scopeId2);
|
425
|
+
if (supportsConstructableStylesheets && allowCS) {
|
426
|
+
style = style || new CSSStyleSheet();
|
427
|
+
if (typeof style === "string") {
|
428
|
+
style = cssText;
|
429
|
+
} else {
|
430
|
+
style.replaceSync(cssText);
|
431
|
+
}
|
432
|
+
} else {
|
433
|
+
style = cssText;
|
434
|
+
}
|
435
|
+
styles.set(scopeId2, style);
|
436
|
+
};
|
437
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
438
|
+
var _a;
|
439
|
+
const scopeId2 = getScopeId(cmpMeta);
|
440
|
+
const style = styles.get(scopeId2);
|
441
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
442
|
+
if (style) {
|
443
|
+
if (typeof style === "string") {
|
444
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
445
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
446
|
+
let styleElm;
|
447
|
+
if (!appliedStyles) {
|
448
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
449
|
+
}
|
450
|
+
if (!appliedStyles.has(scopeId2)) {
|
451
|
+
{
|
452
|
+
styleElm = doc.createElement("style");
|
453
|
+
styleElm.innerHTML = style;
|
454
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
455
|
+
if (nonce != null) {
|
456
|
+
styleElm.setAttribute("nonce", nonce);
|
457
|
+
}
|
458
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
459
|
+
}
|
460
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
461
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
462
|
+
}
|
463
|
+
if (appliedStyles) {
|
464
|
+
appliedStyles.add(scopeId2);
|
465
|
+
}
|
466
|
+
}
|
467
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
468
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
469
|
+
}
|
470
|
+
}
|
471
|
+
return scopeId2;
|
472
|
+
};
|
473
|
+
var attachStyles = (hostRef) => {
|
474
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
475
|
+
const elm = hostRef.$hostElement$;
|
476
|
+
const flags = cmpMeta.$flags$;
|
477
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
478
|
+
const scopeId2 = addStyle(
|
479
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
480
|
+
cmpMeta);
|
481
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
482
|
+
elm["s-sc"] = scopeId2;
|
483
|
+
elm.classList.add(scopeId2 + "-h");
|
484
|
+
}
|
485
|
+
endAttachStyles();
|
486
|
+
};
|
487
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
488
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
489
|
+
if (oldValue !== newValue) {
|
490
|
+
let isProp = isMemberInElement(elm, memberName);
|
491
|
+
let ln = memberName.toLowerCase();
|
492
|
+
if (memberName === "class") {
|
493
|
+
const classList = elm.classList;
|
494
|
+
const oldClasses = parseClassList(oldValue);
|
495
|
+
const newClasses = parseClassList(newValue);
|
496
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
497
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
498
|
+
} else if (memberName === "style") {
|
499
|
+
{
|
500
|
+
for (const prop in oldValue) {
|
501
|
+
if (!newValue || newValue[prop] == null) {
|
502
|
+
if (prop.includes("-")) {
|
503
|
+
elm.style.removeProperty(prop);
|
504
|
+
} else {
|
505
|
+
elm.style[prop] = "";
|
506
|
+
}
|
507
|
+
}
|
508
|
+
}
|
509
|
+
}
|
510
|
+
for (const prop in newValue) {
|
511
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
512
|
+
if (prop.includes("-")) {
|
513
|
+
elm.style.setProperty(prop, newValue[prop]);
|
514
|
+
} else {
|
515
|
+
elm.style[prop] = newValue[prop];
|
516
|
+
}
|
517
|
+
}
|
518
|
+
}
|
519
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
520
|
+
if (newValue) {
|
521
|
+
newValue(elm);
|
522
|
+
}
|
523
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
524
|
+
if (memberName[2] === "-") {
|
525
|
+
memberName = memberName.slice(3);
|
526
|
+
} else if (isMemberInElement(win, ln)) {
|
527
|
+
memberName = ln.slice(2);
|
528
|
+
} else {
|
529
|
+
memberName = ln[2] + memberName.slice(3);
|
530
|
+
}
|
531
|
+
if (oldValue || newValue) {
|
532
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
533
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
534
|
+
if (oldValue) {
|
535
|
+
plt.rel(elm, memberName, oldValue, capture);
|
536
|
+
}
|
537
|
+
if (newValue) {
|
538
|
+
plt.ael(elm, memberName, newValue, capture);
|
539
|
+
}
|
540
|
+
}
|
541
|
+
} else {
|
542
|
+
const isComplex = isComplexType(newValue);
|
543
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
544
|
+
try {
|
545
|
+
if (!elm.tagName.includes("-")) {
|
546
|
+
const n = newValue == null ? "" : newValue;
|
547
|
+
if (memberName === "list") {
|
548
|
+
isProp = false;
|
549
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
550
|
+
elm[memberName] = n;
|
551
|
+
}
|
552
|
+
} else {
|
553
|
+
elm[memberName] = newValue;
|
554
|
+
}
|
555
|
+
} catch (e) {
|
556
|
+
}
|
557
|
+
}
|
558
|
+
if (newValue == null || newValue === false) {
|
559
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
560
|
+
{
|
561
|
+
elm.removeAttribute(memberName);
|
562
|
+
}
|
563
|
+
}
|
564
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
565
|
+
newValue = newValue === true ? "" : newValue;
|
566
|
+
{
|
567
|
+
elm.setAttribute(memberName, newValue);
|
568
|
+
}
|
569
|
+
}
|
570
|
+
}
|
571
|
+
}
|
572
|
+
};
|
573
|
+
var parseClassListRegex = /\s/;
|
574
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
575
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
576
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
577
|
+
|
578
|
+
// src/runtime/vdom/update-element.ts
|
579
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
580
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
581
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
582
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
583
|
+
{
|
584
|
+
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
585
|
+
if (!(memberName in newVnodeAttrs)) {
|
586
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
587
|
+
}
|
588
|
+
}
|
589
|
+
}
|
590
|
+
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
591
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
592
|
+
}
|
593
|
+
};
|
594
|
+
function sortedAttrNames(attrNames) {
|
595
|
+
return attrNames.includes("ref") ? (
|
596
|
+
// we need to sort these to ensure that `'ref'` is the last attr
|
597
|
+
[...attrNames.filter((attr) => attr !== "ref"), "ref"]
|
598
|
+
) : (
|
599
|
+
// no need to sort, return the original array
|
600
|
+
attrNames
|
601
|
+
);
|
602
|
+
}
|
603
|
+
|
604
|
+
// src/runtime/vdom/vdom-render.ts
|
605
|
+
var scopeId;
|
606
|
+
var hostTagName;
|
607
|
+
var useNativeShadowDom = false;
|
608
|
+
var isSvgMode = false;
|
609
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
610
|
+
const newVNode2 = newParentVNode.$children$[childIndex];
|
611
|
+
let i2 = 0;
|
612
|
+
let elm;
|
613
|
+
let childNode;
|
614
|
+
if (newVNode2.$text$ !== null) {
|
615
|
+
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
616
|
+
} else {
|
617
|
+
if (!isSvgMode) {
|
618
|
+
isSvgMode = newVNode2.$tag$ === "svg";
|
619
|
+
}
|
620
|
+
elm = newVNode2.$elm$ = doc.createElementNS(
|
621
|
+
isSvgMode ? SVG_NS : HTML_NS,
|
622
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
623
|
+
) ;
|
624
|
+
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
625
|
+
isSvgMode = false;
|
626
|
+
}
|
627
|
+
{
|
628
|
+
updateElement(null, newVNode2, isSvgMode);
|
629
|
+
}
|
630
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
631
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
632
|
+
}
|
633
|
+
if (newVNode2.$children$) {
|
634
|
+
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
635
|
+
childNode = createElm(oldParentVNode, newVNode2, i2);
|
636
|
+
if (childNode) {
|
637
|
+
elm.appendChild(childNode);
|
638
|
+
}
|
639
|
+
}
|
640
|
+
}
|
641
|
+
{
|
642
|
+
if (newVNode2.$tag$ === "svg") {
|
643
|
+
isSvgMode = false;
|
644
|
+
} else if (elm.tagName === "foreignObject") {
|
645
|
+
isSvgMode = true;
|
646
|
+
}
|
647
|
+
}
|
648
|
+
}
|
649
|
+
elm["s-hn"] = hostTagName;
|
650
|
+
return elm;
|
651
|
+
};
|
652
|
+
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
653
|
+
let containerElm = parentElm;
|
654
|
+
let childNode;
|
655
|
+
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
656
|
+
containerElm = containerElm.shadowRoot;
|
657
|
+
}
|
658
|
+
for (; startIdx <= endIdx; ++startIdx) {
|
659
|
+
if (vnodes[startIdx]) {
|
660
|
+
childNode = createElm(null, parentVNode, startIdx);
|
661
|
+
if (childNode) {
|
662
|
+
vnodes[startIdx].$elm$ = childNode;
|
663
|
+
insertBefore(containerElm, childNode, before);
|
664
|
+
}
|
665
|
+
}
|
666
|
+
}
|
667
|
+
};
|
668
|
+
var removeVnodes = (vnodes, startIdx, endIdx) => {
|
669
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
670
|
+
const vnode = vnodes[index];
|
671
|
+
if (vnode) {
|
672
|
+
const elm = vnode.$elm$;
|
673
|
+
nullifyVNodeRefs(vnode);
|
674
|
+
if (elm) {
|
675
|
+
elm.remove();
|
676
|
+
}
|
677
|
+
}
|
678
|
+
}
|
679
|
+
};
|
680
|
+
var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
|
681
|
+
let oldStartIdx = 0;
|
682
|
+
let newStartIdx = 0;
|
683
|
+
let idxInOld = 0;
|
684
|
+
let i2 = 0;
|
685
|
+
let oldEndIdx = oldCh.length - 1;
|
686
|
+
let oldStartVnode = oldCh[0];
|
687
|
+
let oldEndVnode = oldCh[oldEndIdx];
|
688
|
+
let newEndIdx = newCh.length - 1;
|
689
|
+
let newStartVnode = newCh[0];
|
690
|
+
let newEndVnode = newCh[newEndIdx];
|
691
|
+
let node;
|
692
|
+
let elmToMove;
|
693
|
+
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
694
|
+
if (oldStartVnode == null) {
|
695
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
696
|
+
} else if (oldEndVnode == null) {
|
697
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
698
|
+
} else if (newStartVnode == null) {
|
699
|
+
newStartVnode = newCh[++newStartIdx];
|
700
|
+
} else if (newEndVnode == null) {
|
701
|
+
newEndVnode = newCh[--newEndIdx];
|
702
|
+
} else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
703
|
+
patch(oldStartVnode, newStartVnode, isInitialRender);
|
704
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
705
|
+
newStartVnode = newCh[++newStartIdx];
|
706
|
+
} else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
707
|
+
patch(oldEndVnode, newEndVnode, isInitialRender);
|
708
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
709
|
+
newEndVnode = newCh[--newEndIdx];
|
710
|
+
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
711
|
+
patch(oldStartVnode, newEndVnode, isInitialRender);
|
712
|
+
insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
713
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
714
|
+
newEndVnode = newCh[--newEndIdx];
|
715
|
+
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
716
|
+
patch(oldEndVnode, newStartVnode, isInitialRender);
|
717
|
+
insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
718
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
719
|
+
newStartVnode = newCh[++newStartIdx];
|
720
|
+
} else {
|
721
|
+
idxInOld = -1;
|
722
|
+
{
|
723
|
+
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
724
|
+
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
725
|
+
idxInOld = i2;
|
726
|
+
break;
|
727
|
+
}
|
728
|
+
}
|
729
|
+
}
|
730
|
+
if (idxInOld >= 0) {
|
731
|
+
elmToMove = oldCh[idxInOld];
|
732
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
733
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
734
|
+
} else {
|
735
|
+
patch(elmToMove, newStartVnode, isInitialRender);
|
736
|
+
oldCh[idxInOld] = void 0;
|
737
|
+
node = elmToMove.$elm$;
|
738
|
+
}
|
739
|
+
newStartVnode = newCh[++newStartIdx];
|
740
|
+
} else {
|
741
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
742
|
+
newStartVnode = newCh[++newStartIdx];
|
743
|
+
}
|
744
|
+
if (node) {
|
745
|
+
{
|
746
|
+
insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
|
747
|
+
}
|
748
|
+
}
|
749
|
+
}
|
750
|
+
}
|
751
|
+
if (oldStartIdx > oldEndIdx) {
|
752
|
+
addVnodes(
|
753
|
+
parentElm,
|
754
|
+
newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
|
755
|
+
newVNode2,
|
756
|
+
newCh,
|
757
|
+
newStartIdx,
|
758
|
+
newEndIdx
|
759
|
+
);
|
760
|
+
} else if (newStartIdx > newEndIdx) {
|
761
|
+
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
762
|
+
}
|
763
|
+
};
|
764
|
+
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
765
|
+
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
766
|
+
if (!isInitialRender) {
|
767
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
768
|
+
}
|
769
|
+
return true;
|
770
|
+
}
|
771
|
+
return false;
|
772
|
+
};
|
773
|
+
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
774
|
+
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
775
|
+
const oldChildren = oldVNode.$children$;
|
776
|
+
const newChildren = newVNode2.$children$;
|
777
|
+
const tag = newVNode2.$tag$;
|
778
|
+
const text = newVNode2.$text$;
|
779
|
+
if (text === null) {
|
780
|
+
{
|
781
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
782
|
+
}
|
783
|
+
{
|
784
|
+
if (tag === "slot" && !useNativeShadowDom) ; else {
|
785
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
786
|
+
}
|
787
|
+
}
|
788
|
+
if (oldChildren !== null && newChildren !== null) {
|
789
|
+
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
790
|
+
} else if (newChildren !== null) {
|
791
|
+
if (oldVNode.$text$ !== null) {
|
792
|
+
elm.textContent = "";
|
793
|
+
}
|
794
|
+
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
795
|
+
} else if (oldChildren !== null) {
|
796
|
+
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
797
|
+
}
|
798
|
+
if (isSvgMode && tag === "svg") {
|
799
|
+
isSvgMode = false;
|
800
|
+
}
|
801
|
+
} else if (oldVNode.$text$ !== text) {
|
802
|
+
elm.data = text;
|
803
|
+
}
|
804
|
+
};
|
805
|
+
var nullifyVNodeRefs = (vNode) => {
|
806
|
+
{
|
807
|
+
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
808
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
809
|
+
}
|
810
|
+
};
|
811
|
+
var insertBefore = (parent, newNode, reference) => {
|
812
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
813
|
+
return inserted;
|
814
|
+
};
|
815
|
+
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
816
|
+
const hostElm = hostRef.$hostElement$;
|
817
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
818
|
+
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
819
|
+
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
820
|
+
hostTagName = hostElm.tagName;
|
821
|
+
if (cmpMeta.$attrsToReflect$) {
|
822
|
+
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
823
|
+
cmpMeta.$attrsToReflect$.map(
|
824
|
+
([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
|
825
|
+
);
|
826
|
+
}
|
827
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
828
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
829
|
+
if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
|
830
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
831
|
+
}
|
832
|
+
}
|
833
|
+
}
|
834
|
+
rootVnode.$tag$ = null;
|
835
|
+
rootVnode.$flags$ |= 4 /* isHost */;
|
836
|
+
hostRef.$vnode$ = rootVnode;
|
837
|
+
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
838
|
+
{
|
839
|
+
scopeId = hostElm["s-sc"];
|
840
|
+
}
|
841
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
842
|
+
patch(oldVNode, rootVnode, isInitialLoad);
|
843
|
+
};
|
844
|
+
|
845
|
+
// src/runtime/update-component.ts
|
846
|
+
var attachToAncestor = (hostRef, ancestorComponent) => {
|
847
|
+
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
848
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
849
|
+
}
|
850
|
+
};
|
851
|
+
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
852
|
+
{
|
853
|
+
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
854
|
+
}
|
855
|
+
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
856
|
+
hostRef.$flags$ |= 512 /* needsRerender */;
|
857
|
+
return;
|
858
|
+
}
|
859
|
+
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
860
|
+
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
861
|
+
return writeTask(dispatch) ;
|
862
|
+
};
|
863
|
+
var dispatchHooks = (hostRef, isInitialLoad) => {
|
864
|
+
const elm = hostRef.$hostElement$;
|
865
|
+
const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
|
866
|
+
const instance = hostRef.$lazyInstance$ ;
|
867
|
+
if (!instance) {
|
868
|
+
throw new Error(
|
869
|
+
`Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
870
|
+
);
|
871
|
+
}
|
872
|
+
let maybePromise;
|
873
|
+
if (isInitialLoad) {
|
874
|
+
{
|
875
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
876
|
+
if (hostRef.$queuedListeners$) {
|
877
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
878
|
+
hostRef.$queuedListeners$ = void 0;
|
879
|
+
}
|
880
|
+
}
|
881
|
+
{
|
882
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
883
|
+
}
|
884
|
+
}
|
885
|
+
{
|
886
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
887
|
+
}
|
888
|
+
endSchedule();
|
889
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
890
|
+
};
|
891
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
892
|
+
console.error(err2);
|
893
|
+
fn();
|
894
|
+
}) : fn();
|
895
|
+
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
896
|
+
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
897
|
+
var _a;
|
898
|
+
const elm = hostRef.$hostElement$;
|
899
|
+
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
900
|
+
const rc = elm["s-rc"];
|
901
|
+
if (isInitialLoad) {
|
902
|
+
attachStyles(hostRef);
|
903
|
+
}
|
904
|
+
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
905
|
+
{
|
906
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
907
|
+
}
|
908
|
+
if (rc) {
|
909
|
+
rc.map((cb) => cb());
|
910
|
+
elm["s-rc"] = void 0;
|
911
|
+
}
|
912
|
+
endRender();
|
913
|
+
endUpdate();
|
914
|
+
{
|
915
|
+
const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
|
916
|
+
const postUpdate = () => postUpdateComponent(hostRef);
|
917
|
+
if (childrenPromises.length === 0) {
|
918
|
+
postUpdate();
|
919
|
+
} else {
|
920
|
+
Promise.all(childrenPromises).then(postUpdate);
|
921
|
+
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
922
|
+
childrenPromises.length = 0;
|
923
|
+
}
|
924
|
+
}
|
925
|
+
};
|
926
|
+
var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
927
|
+
try {
|
928
|
+
instance = instance.render() ;
|
929
|
+
{
|
930
|
+
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
931
|
+
}
|
932
|
+
{
|
933
|
+
hostRef.$flags$ |= 2 /* hasRendered */;
|
934
|
+
}
|
935
|
+
{
|
936
|
+
{
|
937
|
+
{
|
938
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
939
|
+
}
|
940
|
+
}
|
941
|
+
}
|
942
|
+
} catch (e) {
|
943
|
+
consoleError(e, hostRef.$hostElement$);
|
944
|
+
}
|
945
|
+
return null;
|
946
|
+
};
|
947
|
+
var postUpdateComponent = (hostRef) => {
|
948
|
+
const tagName = hostRef.$cmpMeta$.$tagName$;
|
949
|
+
const elm = hostRef.$hostElement$;
|
950
|
+
const endPostUpdate = createTime("postUpdate", tagName);
|
951
|
+
const instance = hostRef.$lazyInstance$ ;
|
952
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
953
|
+
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
954
|
+
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
955
|
+
{
|
956
|
+
addHydratedFlag(elm);
|
957
|
+
}
|
958
|
+
{
|
959
|
+
safeCall(instance, "componentDidLoad");
|
960
|
+
}
|
961
|
+
endPostUpdate();
|
962
|
+
{
|
963
|
+
hostRef.$onReadyResolve$(elm);
|
964
|
+
if (!ancestorComponent) {
|
965
|
+
appDidLoad();
|
966
|
+
}
|
967
|
+
}
|
968
|
+
} else {
|
969
|
+
endPostUpdate();
|
970
|
+
}
|
971
|
+
{
|
972
|
+
hostRef.$onInstanceResolve$(elm);
|
973
|
+
}
|
974
|
+
{
|
975
|
+
if (hostRef.$onRenderResolve$) {
|
976
|
+
hostRef.$onRenderResolve$();
|
977
|
+
hostRef.$onRenderResolve$ = void 0;
|
978
|
+
}
|
979
|
+
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
980
|
+
nextTick(() => scheduleUpdate(hostRef, false));
|
981
|
+
}
|
982
|
+
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
983
|
+
}
|
984
|
+
};
|
985
|
+
var forceUpdate = (ref) => {
|
986
|
+
{
|
987
|
+
const hostRef = getHostRef(ref);
|
988
|
+
const isConnected = hostRef.$hostElement$.isConnected;
|
989
|
+
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
990
|
+
scheduleUpdate(hostRef, false);
|
991
|
+
}
|
992
|
+
return isConnected;
|
993
|
+
}
|
994
|
+
};
|
995
|
+
var appDidLoad = (who) => {
|
996
|
+
{
|
997
|
+
addHydratedFlag(doc.documentElement);
|
998
|
+
}
|
999
|
+
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
1000
|
+
};
|
1001
|
+
var safeCall = (instance, method, arg) => {
|
1002
|
+
if (instance && instance[method]) {
|
1003
|
+
try {
|
1004
|
+
return instance[method](arg);
|
1005
|
+
} catch (e) {
|
1006
|
+
consoleError(e);
|
1007
|
+
}
|
1008
|
+
}
|
1009
|
+
return void 0;
|
1010
|
+
};
|
1011
|
+
var addHydratedFlag = (elm) => {
|
1012
|
+
var _a;
|
1013
|
+
return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
|
1014
|
+
};
|
1015
|
+
|
1016
|
+
// src/runtime/set-value.ts
|
1017
|
+
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
1018
|
+
var setValue = (ref, propName, newVal, cmpMeta) => {
|
1019
|
+
const hostRef = getHostRef(ref);
|
1020
|
+
if (!hostRef) {
|
1021
|
+
throw new Error(
|
1022
|
+
`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/ionic-team/stencil/issues/5457).`
|
1023
|
+
);
|
1024
|
+
}
|
1025
|
+
const elm = hostRef.$hostElement$ ;
|
1026
|
+
const oldVal = hostRef.$instanceValues$.get(propName);
|
1027
|
+
const flags = hostRef.$flags$;
|
1028
|
+
const instance = hostRef.$lazyInstance$ ;
|
1029
|
+
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
1030
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
1031
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
1032
|
+
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
1033
|
+
hostRef.$instanceValues$.set(propName, newVal);
|
1034
|
+
if (instance) {
|
1035
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
1036
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
1037
|
+
if (watchMethods) {
|
1038
|
+
watchMethods.map((watchMethodName) => {
|
1039
|
+
try {
|
1040
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
1041
|
+
} catch (e) {
|
1042
|
+
consoleError(e, elm);
|
1043
|
+
}
|
1044
|
+
});
|
1045
|
+
}
|
1046
|
+
}
|
1047
|
+
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
1048
|
+
scheduleUpdate(hostRef, false);
|
1049
|
+
}
|
1050
|
+
}
|
1051
|
+
}
|
1052
|
+
};
|
1053
|
+
|
1054
|
+
// src/runtime/proxy-component.ts
|
1055
|
+
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
1056
|
+
var _a, _b;
|
1057
|
+
const prototype = Cstr.prototype;
|
1058
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
1059
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
1060
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
1061
|
+
}
|
1062
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
1063
|
+
members.map(([memberName, [memberFlags]]) => {
|
1064
|
+
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
1065
|
+
Object.defineProperty(prototype, memberName, {
|
1066
|
+
get() {
|
1067
|
+
return getValue(this, memberName);
|
1068
|
+
},
|
1069
|
+
set(newValue) {
|
1070
|
+
setValue(this, memberName, newValue, cmpMeta);
|
1071
|
+
},
|
1072
|
+
configurable: true,
|
1073
|
+
enumerable: true
|
1074
|
+
});
|
1075
|
+
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
1076
|
+
Object.defineProperty(prototype, memberName, {
|
1077
|
+
value(...args) {
|
1078
|
+
var _a2;
|
1079
|
+
const ref = getHostRef(this);
|
1080
|
+
return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
|
1081
|
+
var _a3;
|
1082
|
+
return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
|
1083
|
+
});
|
1084
|
+
}
|
1085
|
+
});
|
1086
|
+
}
|
1087
|
+
});
|
1088
|
+
if ((flags & 1 /* isElementConstructor */)) {
|
1089
|
+
const attrNameToPropName = /* @__PURE__ */ new Map();
|
1090
|
+
prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
|
1091
|
+
plt.jmp(() => {
|
1092
|
+
var _a2;
|
1093
|
+
const propName = attrNameToPropName.get(attrName);
|
1094
|
+
if (this.hasOwnProperty(propName)) {
|
1095
|
+
newValue = this[propName];
|
1096
|
+
delete this[propName];
|
1097
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
1098
|
+
return;
|
1099
|
+
} else if (propName == null) {
|
1100
|
+
const hostRef = getHostRef(this);
|
1101
|
+
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
1102
|
+
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
1103
|
+
const instance = hostRef.$lazyInstance$ ;
|
1104
|
+
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
1105
|
+
entry == null ? void 0 : entry.forEach((callbackName) => {
|
1106
|
+
if (instance[callbackName] != null) {
|
1107
|
+
instance[callbackName].call(instance, newValue, oldValue, attrName);
|
1108
|
+
}
|
1109
|
+
});
|
1110
|
+
}
|
1111
|
+
return;
|
1112
|
+
}
|
1113
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
1114
|
+
});
|
1115
|
+
};
|
1116
|
+
Cstr.observedAttributes = Array.from(
|
1117
|
+
/* @__PURE__ */ new Set([
|
1118
|
+
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
1119
|
+
...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
|
1120
|
+
var _a2;
|
1121
|
+
const attrName = m[1] || propName;
|
1122
|
+
attrNameToPropName.set(attrName, propName);
|
1123
|
+
if (m[0] & 512 /* ReflectAttr */) {
|
1124
|
+
(_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
|
1125
|
+
}
|
1126
|
+
return attrName;
|
1127
|
+
})
|
1128
|
+
])
|
1129
|
+
);
|
1130
|
+
}
|
1131
|
+
}
|
1132
|
+
return Cstr;
|
1133
|
+
};
|
1134
|
+
|
1135
|
+
// src/runtime/initialize-component.ts
|
1136
|
+
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
1137
|
+
let Cstr;
|
1138
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
1139
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
1140
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
1141
|
+
if (bundleId) {
|
1142
|
+
const CstrImport = loadModule(cmpMeta);
|
1143
|
+
if (CstrImport && "then" in CstrImport) {
|
1144
|
+
const endLoad = uniqueTime();
|
1145
|
+
Cstr = await CstrImport;
|
1146
|
+
endLoad();
|
1147
|
+
} else {
|
1148
|
+
Cstr = CstrImport;
|
1149
|
+
}
|
1150
|
+
if (!Cstr) {
|
1151
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
1152
|
+
}
|
1153
|
+
if (!Cstr.isProxied) {
|
1154
|
+
{
|
1155
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
1156
|
+
}
|
1157
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
1158
|
+
Cstr.isProxied = true;
|
1159
|
+
}
|
1160
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
1161
|
+
{
|
1162
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
1163
|
+
}
|
1164
|
+
try {
|
1165
|
+
new Cstr(hostRef);
|
1166
|
+
} catch (e) {
|
1167
|
+
consoleError(e);
|
1168
|
+
}
|
1169
|
+
{
|
1170
|
+
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
1171
|
+
}
|
1172
|
+
{
|
1173
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
1174
|
+
}
|
1175
|
+
endNewInstance();
|
1176
|
+
} else {
|
1177
|
+
Cstr = elm.constructor;
|
1178
|
+
const cmpTag = elm.localName;
|
1179
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
1180
|
+
}
|
1181
|
+
if (Cstr && Cstr.style) {
|
1182
|
+
let style;
|
1183
|
+
if (typeof Cstr.style === "string") {
|
1184
|
+
style = Cstr.style;
|
1185
|
+
}
|
1186
|
+
const scopeId2 = getScopeId(cmpMeta);
|
1187
|
+
if (!styles.has(scopeId2)) {
|
1188
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
1189
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
1190
|
+
endRegisterStyles();
|
1191
|
+
}
|
1192
|
+
}
|
1193
|
+
}
|
1194
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
1195
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
1196
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
1197
|
+
ancestorComponent["s-rc"].push(schedule);
|
1198
|
+
} else {
|
1199
|
+
schedule();
|
1200
|
+
}
|
1201
|
+
};
|
1202
|
+
var fireConnectedCallback = (instance) => {
|
1203
|
+
};
|
1204
|
+
|
1205
|
+
// src/runtime/connected-callback.ts
|
1206
|
+
var connectedCallback = (elm) => {
|
1207
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
1208
|
+
const hostRef = getHostRef(elm);
|
1209
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
1210
|
+
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
1211
|
+
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
1212
|
+
hostRef.$flags$ |= 1 /* hasConnected */;
|
1213
|
+
{
|
1214
|
+
let ancestorComponent = elm;
|
1215
|
+
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
1216
|
+
if (ancestorComponent["s-p"]) {
|
1217
|
+
attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
|
1218
|
+
break;
|
1219
|
+
}
|
1220
|
+
}
|
1221
|
+
}
|
1222
|
+
if (cmpMeta.$members$) {
|
1223
|
+
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
1224
|
+
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
1225
|
+
const value = elm[memberName];
|
1226
|
+
delete elm[memberName];
|
1227
|
+
elm[memberName] = value;
|
1228
|
+
}
|
1229
|
+
});
|
1230
|
+
}
|
1231
|
+
{
|
1232
|
+
initializeComponent(elm, hostRef, cmpMeta);
|
1233
|
+
}
|
1234
|
+
} else {
|
1235
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
1236
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
1237
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
1238
|
+
}
|
1239
|
+
}
|
1240
|
+
endConnected();
|
1241
|
+
}
|
1242
|
+
};
|
1243
|
+
var disconnectInstance = (instance) => {
|
1244
|
+
{
|
1245
|
+
safeCall(instance, "disconnectedCallback");
|
1246
|
+
}
|
1247
|
+
};
|
1248
|
+
var disconnectedCallback = async (elm) => {
|
1249
|
+
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
1250
|
+
const hostRef = getHostRef(elm);
|
1251
|
+
{
|
1252
|
+
if (hostRef.$rmListeners$) {
|
1253
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
1254
|
+
hostRef.$rmListeners$ = void 0;
|
1255
|
+
}
|
1256
|
+
}
|
1257
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
1258
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
1259
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
1260
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
1261
|
+
}
|
1262
|
+
}
|
1263
|
+
};
|
1264
|
+
|
1265
|
+
// src/runtime/bootstrap-lazy.ts
|
1266
|
+
var bootstrapLazy = (lazyBundles, options = {}) => {
|
1267
|
+
var _a;
|
1268
|
+
const endBootstrap = createTime();
|
1269
|
+
const cmpTags = [];
|
1270
|
+
const exclude = options.exclude || [];
|
1271
|
+
const customElements2 = win.customElements;
|
1272
|
+
const head = doc.head;
|
1273
|
+
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
1274
|
+
const dataStyles = /* @__PURE__ */ doc.createElement("style");
|
1275
|
+
const deferredConnectedCallbacks = [];
|
1276
|
+
let appLoadFallback;
|
1277
|
+
let isBootstrapping = true;
|
1278
|
+
Object.assign(plt, options);
|
1279
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
|
1280
|
+
let hasSlotRelocation = false;
|
1281
|
+
lazyBundles.map((lazyBundle) => {
|
1282
|
+
lazyBundle[1].map((compactMeta) => {
|
1283
|
+
var _a2;
|
1284
|
+
const cmpMeta = {
|
1285
|
+
$flags$: compactMeta[0],
|
1286
|
+
$tagName$: compactMeta[1],
|
1287
|
+
$members$: compactMeta[2],
|
1288
|
+
$listeners$: compactMeta[3]
|
1289
|
+
};
|
1290
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
1291
|
+
hasSlotRelocation = true;
|
1292
|
+
}
|
1293
|
+
{
|
1294
|
+
cmpMeta.$members$ = compactMeta[2];
|
1295
|
+
}
|
1296
|
+
{
|
1297
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
1298
|
+
}
|
1299
|
+
{
|
1300
|
+
cmpMeta.$attrsToReflect$ = [];
|
1301
|
+
}
|
1302
|
+
{
|
1303
|
+
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
1304
|
+
}
|
1305
|
+
const tagName = cmpMeta.$tagName$;
|
1306
|
+
const HostElement = class extends HTMLElement {
|
1307
|
+
// StencilLazyHost
|
1308
|
+
constructor(self) {
|
1309
|
+
super(self);
|
1310
|
+
this.hasRegisteredEventListeners = false;
|
1311
|
+
self = this;
|
1312
|
+
registerHost(self, cmpMeta);
|
1313
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
1314
|
+
{
|
1315
|
+
if (!self.shadowRoot) {
|
1316
|
+
{
|
1317
|
+
self.attachShadow({ mode: "open" });
|
1318
|
+
}
|
1319
|
+
} else {
|
1320
|
+
if (self.shadowRoot.mode !== "open") {
|
1321
|
+
throw new Error(
|
1322
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
1323
|
+
);
|
1324
|
+
}
|
1325
|
+
}
|
1326
|
+
}
|
1327
|
+
}
|
1328
|
+
}
|
1329
|
+
connectedCallback() {
|
1330
|
+
const hostRef = getHostRef(this);
|
1331
|
+
if (!this.hasRegisteredEventListeners) {
|
1332
|
+
this.hasRegisteredEventListeners = true;
|
1333
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
1334
|
+
}
|
1335
|
+
if (appLoadFallback) {
|
1336
|
+
clearTimeout(appLoadFallback);
|
1337
|
+
appLoadFallback = null;
|
1338
|
+
}
|
1339
|
+
if (isBootstrapping) {
|
1340
|
+
deferredConnectedCallbacks.push(this);
|
1341
|
+
} else {
|
1342
|
+
plt.jmp(() => connectedCallback(this));
|
1343
|
+
}
|
1344
|
+
}
|
1345
|
+
disconnectedCallback() {
|
1346
|
+
plt.jmp(() => disconnectedCallback(this));
|
1347
|
+
}
|
1348
|
+
componentOnReady() {
|
1349
|
+
return getHostRef(this).$onReadyPromise$;
|
1350
|
+
}
|
1351
|
+
};
|
1352
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
1353
|
+
if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
|
1354
|
+
cmpTags.push(tagName);
|
1355
|
+
customElements2.define(
|
1356
|
+
tagName,
|
1357
|
+
proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
|
1358
|
+
);
|
1359
|
+
}
|
1360
|
+
});
|
1361
|
+
});
|
1362
|
+
if (cmpTags.length > 0) {
|
1363
|
+
if (hasSlotRelocation) {
|
1364
|
+
dataStyles.textContent += SLOT_FB_CSS;
|
1365
|
+
}
|
1366
|
+
{
|
1367
|
+
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
1368
|
+
}
|
1369
|
+
if (dataStyles.innerHTML.length) {
|
1370
|
+
dataStyles.setAttribute("data-styles", "");
|
1371
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
1372
|
+
if (nonce != null) {
|
1373
|
+
dataStyles.setAttribute("nonce", nonce);
|
1374
|
+
}
|
1375
|
+
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
1376
|
+
}
|
1377
|
+
}
|
1378
|
+
isBootstrapping = false;
|
1379
|
+
if (deferredConnectedCallbacks.length) {
|
1380
|
+
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
1381
|
+
} else {
|
1382
|
+
{
|
1383
|
+
plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
|
1384
|
+
}
|
1385
|
+
}
|
1386
|
+
endBootstrap();
|
1387
|
+
};
|
1388
|
+
|
1389
|
+
// src/runtime/fragment.ts
|
1390
|
+
var Fragment = (_, children) => children;
|
1391
|
+
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
1392
|
+
if (listeners) {
|
1393
|
+
listeners.map(([flags, name, method]) => {
|
1394
|
+
const target = getHostListenerTarget(elm, flags) ;
|
1395
|
+
const handler = hostListenerProxy(hostRef, method);
|
1396
|
+
const opts = hostListenerOpts(flags);
|
1397
|
+
plt.ael(target, name, handler, opts);
|
1398
|
+
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
1399
|
+
});
|
1400
|
+
}
|
1401
|
+
};
|
1402
|
+
var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
1403
|
+
var _a;
|
1404
|
+
try {
|
1405
|
+
{
|
1406
|
+
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
1407
|
+
(_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
|
1408
|
+
} else {
|
1409
|
+
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
1410
|
+
}
|
1411
|
+
}
|
1412
|
+
} catch (e) {
|
1413
|
+
consoleError(e);
|
1414
|
+
}
|
1415
|
+
};
|
1416
|
+
var getHostListenerTarget = (elm, flags) => {
|
1417
|
+
if (flags & 8 /* TargetWindow */) return win;
|
1418
|
+
return elm;
|
1419
|
+
};
|
1420
|
+
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
1421
|
+
passive: (flags & 1 /* Passive */) !== 0,
|
1422
|
+
capture: (flags & 2 /* Capture */) !== 0
|
1423
|
+
} : (flags & 2 /* Capture */) !== 0;
|
1424
|
+
|
1425
|
+
// src/runtime/nonce.ts
|
1426
|
+
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
1427
|
+
|
1428
|
+
exports.Fragment = Fragment;
|
1429
|
+
exports.Host = Host;
|
1430
|
+
exports.bootstrapLazy = bootstrapLazy;
|
1431
|
+
exports.createEvent = createEvent;
|
1432
|
+
exports.forceUpdate = forceUpdate;
|
1433
|
+
exports.getElement = getElement;
|
1434
|
+
exports.h = h;
|
1435
|
+
exports.promiseResolve = promiseResolve;
|
1436
|
+
exports.registerInstance = registerInstance;
|
1437
|
+
exports.setNonce = setNonce;
|
1438
|
+
|
1439
|
+
//# sourceMappingURL=index-65f57499.js.map
|