@haiilo/catalyst 11.0.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.esm.js +2 -2
- package/dist/catalyst/index.esm.js.map +1 -1
- package/dist/catalyst/loader.esm.js.map +1 -0
- package/dist/catalyst/p-6a54965a.entry.js +10 -0
- package/dist/catalyst/p-6a54965a.entry.js.map +1 -0
- package/dist/catalyst/p-B-m4GNf1.js +3 -0
- package/dist/catalyst/p-B-m4GNf1.js.map +1 -0
- package/dist/catalyst/p-DQuL1Twl.js +2 -0
- package/dist/catalyst/p-DQuL1Twl.js.map +1 -0
- package/dist/catalyst/p-LJZzaWFR.js +2 -0
- package/dist/catalyst/p-LJZzaWFR.js.map +1 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
- package/dist/cjs/cat-alert_30.cjs.entry.js +1467 -1833
- package/dist/cjs/cat-alert_30.cjs.entry.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +8 -7
- package/dist/cjs/catalyst.cjs.js.map +1 -1
- package/dist/cjs/index-DNLT6JC9.js +10178 -0
- package/dist/cjs/index-DNLT6JC9.js.map +1 -0
- package/dist/cjs/{index-1094f0fc.js → index-jGQAsDy6.js} +528 -358
- package/dist/cjs/index-jGQAsDy6.js.map +1 -0
- package/dist/cjs/index.cjs.js +461 -453
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +4 -5
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/cat-alert/cat-alert.js +15 -4
- package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
- package/dist/collection/components/cat-avatar/cat-avatar.js +33 -14
- package/dist/collection/components/cat-avatar/cat-avatar.js.map +1 -1
- package/dist/collection/components/cat-badge/cat-badge.js +45 -9
- package/dist/collection/components/cat-badge/cat-badge.js.map +1 -1
- package/dist/collection/components/cat-button/cat-button.css +4 -2
- package/dist/collection/components/cat-button/cat-button.js +107 -35
- package/dist/collection/components/cat-button/cat-button.js.map +1 -1
- package/dist/collection/components/cat-button-group/cat-button-group.js +3 -2
- package/dist/collection/components/cat-button-group/cat-button-group.js.map +1 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.js +83 -24
- package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
- package/dist/collection/components/cat-date/cat-date.js +114 -39
- package/dist/collection/components/cat-date/cat-date.js.map +1 -1
- package/dist/collection/components/cat-date-inline/cat-date-inline.js +69 -19
- package/dist/collection/components/cat-date-inline/cat-date-inline.js.map +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.js +130 -42
- package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js +37 -12
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.js +129 -17
- package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
- package/dist/collection/components/cat-form-group/cat-form-group.js +19 -4
- package/dist/collection/components/cat-form-group/cat-form-group.js.map +1 -1
- package/dist/collection/components/cat-icon/cat-icon.js +15 -7
- package/dist/collection/components/cat-icon/cat-icon.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.js +143 -51
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-pagination/cat-pagination.js +60 -10
- package/dist/collection/components/cat-pagination/cat-pagination.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.js +65 -18
- package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.js +21 -8
- package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.js +32 -7
- package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
- package/dist/collection/components/cat-select/cat-select.js +105 -34
- package/dist/collection/components/cat-select/cat-select.js.map +1 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.js +22 -5
- package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +1 -1
- package/dist/collection/components/cat-spinner/cat-spinner.js +15 -4
- package/dist/collection/components/cat-spinner/cat-spinner.js.map +1 -1
- package/dist/collection/components/cat-tab/cat-tab.js +84 -17
- package/dist/collection/components/cat-tab/cat-tab.js.map +1 -1
- package/dist/collection/components/cat-tabs/cat-tabs.css +29 -12
- package/dist/collection/components/cat-tabs/cat-tabs.js +189 -8
- package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
- package/dist/collection/components/cat-tag/cat-tag.js +84 -25
- package/dist/collection/components/cat-tag/cat-tag.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.js +90 -32
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
- package/dist/collection/components/cat-time/cat-time.js +120 -39
- package/dist/collection/components/cat-time/cat-time.js.map +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.js +71 -22
- package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +49 -8
- package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
- package/dist/components/cat-alert.js +8 -3
- package/dist/components/cat-alert.js.map +1 -1
- package/dist/components/cat-avatar.js +1 -0
- package/dist/components/cat-avatar2.js +11 -8
- package/dist/components/cat-avatar2.js.map +1 -1
- package/dist/components/cat-badge.js +23 -3
- package/dist/components/cat-badge.js.map +1 -1
- package/dist/components/cat-button-group.js +2 -3
- package/dist/components/cat-button-group.js.map +1 -1
- package/dist/components/cat-button.js +1 -0
- package/dist/components/cat-button2.js +41 -17
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-card.js +2 -2
- package/dist/components/cat-card.js.map +1 -1
- package/dist/components/cat-checkbox.js +1 -0
- package/dist/components/cat-checkbox2.js +34 -10
- package/dist/components/cat-checkbox2.js.map +1 -1
- package/dist/components/cat-date-inline.js +1 -0
- package/dist/components/cat-date-inline2.js +29 -7
- package/dist/components/cat-date-inline2.js.map +1 -1
- package/dist/components/cat-date.js +41 -17
- package/dist/components/cat-date.js.map +1 -1
- package/dist/components/cat-datepicker-inline.js +16 -8
- package/dist/components/cat-datepicker-inline.js.map +1 -1
- package/dist/components/cat-datepicker.js +50 -20
- package/dist/components/cat-datepicker.js.map +1 -1
- package/dist/components/cat-datepicker.locale.js +110 -99
- package/dist/components/cat-datepicker.locale.js.map +1 -1
- package/dist/components/cat-dropdown.js +1 -0
- package/dist/components/cat-dropdown2.js +70 -13
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/cat-form-group.js +12 -3
- package/dist/components/cat-form-group.js.map +1 -1
- package/dist/components/cat-form-hint.js +1 -0
- package/dist/components/cat-form-hint.js.map +1 -1
- package/dist/components/cat-i18n-registry.js +1 -0
- package/dist/components/cat-i18n-registry.js.map +1 -1
- package/dist/components/cat-icon-registry.js +22 -21
- package/dist/components/cat-icon-registry.js.map +1 -1
- package/dist/components/cat-icon.js +1 -0
- package/dist/components/cat-icon2.js +5 -5
- package/dist/components/cat-icon2.js.map +1 -1
- package/dist/components/cat-input.js +1 -0
- package/dist/components/cat-input2.js +50 -25
- package/dist/components/cat-input2.js.map +1 -1
- package/dist/components/cat-pagination.js +32 -2
- package/dist/components/cat-pagination.js.map +1 -1
- package/dist/components/cat-radio-group.js +8 -5
- package/dist/components/cat-radio-group.js.map +1 -1
- package/dist/components/cat-radio.js +28 -8
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-scrollable.js +1 -0
- package/dist/components/cat-scrollable2.js +322 -542
- package/dist/components/cat-scrollable2.js.map +1 -1
- package/dist/components/cat-select-demo.js +27 -49
- package/dist/components/cat-select-demo.js.map +1 -1
- package/dist/components/cat-select.js +1 -0
- package/dist/components/cat-select2.js +135 -316
- package/dist/components/cat-select2.js.map +1 -1
- package/dist/components/cat-skeleton.js +1 -0
- package/dist/components/cat-skeleton2.js +12 -3
- package/dist/components/cat-skeleton2.js.map +1 -1
- package/dist/components/cat-spinner.js +1 -0
- package/dist/components/cat-spinner2.js +8 -3
- package/dist/components/cat-spinner2.js.map +1 -1
- package/dist/components/cat-tab.js +34 -9
- package/dist/components/cat-tab.js.map +1 -1
- package/dist/components/cat-tabs.js +140 -11
- package/dist/components/cat-tabs.js.map +1 -1
- package/dist/components/cat-tag.js +35 -13
- package/dist/components/cat-tag.js.map +1 -1
- package/dist/components/cat-textarea.js +33 -16
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-time.js +44 -16
- package/dist/components/cat-time.js.map +1 -1
- package/dist/components/cat-toggle.js +28 -10
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/components/cat-tooltip.js +28 -3
- package/dist/components/cat-tooltip.js.map +1 -1
- package/dist/components/coerce.js +1 -0
- package/dist/components/coerce.js.map +1 -1
- package/dist/components/first-tabbable.js +1 -0
- package/dist/components/first-tabbable.js.map +1 -1
- package/dist/components/{floating-ui.dom.esm.js → floating-ui.dom.js} +3 -492
- package/dist/components/floating-ui.dom.js.map +1 -0
- package/dist/components/index.js +460 -450
- package/dist/components/index.js.map +1 -1
- package/dist/components/index2.js +9456 -0
- package/dist/components/index2.js.map +1 -0
- package/dist/components/loglevel.js +368 -356
- package/dist/components/loglevel.js.map +1 -1
- package/dist/components/media-matcher.js +1 -0
- package/dist/components/media-matcher.js.map +1 -1
- package/dist/esm/app-globals-DQuL1Twl.js +6 -0
- package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
- package/dist/esm/cat-alert_30.entry.js +1428 -1792
- package/dist/esm/cat-alert_30.entry.js.map +1 -1
- package/dist/esm/catalyst.js +7 -5
- package/dist/esm/catalyst.js.map +1 -1
- package/dist/esm/{index-e8c0ddf2.js → index-B-m4GNf1.js} +528 -338
- package/dist/esm/index-B-m4GNf1.js.map +1 -0
- package/dist/esm/index-LJZzaWFR.js +10057 -0
- package/dist/esm/index-LJZzaWFR.js.map +1 -0
- package/dist/esm/index.js +458 -448
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +5 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/types/components/cat-dropdown/cat-dropdown.d.ts +11 -1
- package/dist/types/components/cat-tab/cat-tab.d.ts +6 -0
- package/dist/types/components/cat-tabs/cat-tabs.d.ts +18 -0
- package/dist/types/components.d.ts +46 -0
- package/dist/types/stencil-public-runtime.d.ts +28 -2
- package/loader/index.d.ts +3 -0
- package/package.json +3 -3
- package/dist/catalyst/p-59e2ada2.entry.js +0 -10
- package/dist/catalyst/p-59e2ada2.entry.js.map +0 -1
- package/dist/catalyst/p-7f3bcfb9.js +0 -3
- package/dist/catalyst/p-7f3bcfb9.js.map +0 -1
- package/dist/catalyst/p-9500d6fb.js +0 -2
- package/dist/catalyst/p-9500d6fb.js.map +0 -1
- package/dist/catalyst/p-e1255160.js +0 -2
- package/dist/catalyst/p-e1255160.js.map +0 -1
- package/dist/cjs/app-globals-3a1e7e63.js +0 -7
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/index-1094f0fc.js.map +0 -1
- package/dist/cjs/of-958251e4.js +0 -1549
- package/dist/cjs/of-958251e4.js.map +0 -1
- package/dist/collection/components/cat-alert/cat-alert.e2e.js +0 -11
- package/dist/collection/components/cat-alert/cat-alert.e2e.js.map +0 -1
- package/dist/collection/components/cat-alert/cat-alert.spec.js +0 -14
- package/dist/collection/components/cat-alert/cat-alert.spec.js.map +0 -1
- package/dist/collection/components/cat-avatar/cat-avatar.e2e.js +0 -10
- package/dist/collection/components/cat-avatar/cat-avatar.e2e.js.map +0 -1
- package/dist/collection/components/cat-avatar/cat-avatar.spec.js +0 -14
- package/dist/collection/components/cat-avatar/cat-avatar.spec.js.map +0 -1
- package/dist/collection/components/cat-badge/cat-badge.e2e.js +0 -10
- package/dist/collection/components/cat-badge/cat-badge.e2e.js.map +0 -1
- package/dist/collection/components/cat-badge/cat-badge.spec.js +0 -14
- package/dist/collection/components/cat-badge/cat-badge.spec.js.map +0 -1
- package/dist/collection/components/cat-button/cat-button.e2e.js +0 -10
- package/dist/collection/components/cat-button/cat-button.e2e.js.map +0 -1
- package/dist/collection/components/cat-button/cat-button.spec.js +0 -20
- package/dist/collection/components/cat-button/cat-button.spec.js.map +0 -1
- package/dist/collection/components/cat-button-group/cat-button-group.e2e.js +0 -10
- package/dist/collection/components/cat-button-group/cat-button-group.e2e.js.map +0 -1
- package/dist/collection/components/cat-button-group/cat-button-group.spec.js +0 -14
- package/dist/collection/components/cat-button-group/cat-button-group.spec.js.map +0 -1
- package/dist/collection/components/cat-card/cat-card.e2e.js +0 -10
- package/dist/collection/components/cat-card/cat-card.e2e.js.map +0 -1
- package/dist/collection/components/cat-card/cat-card.spec.js +0 -14
- package/dist/collection/components/cat-card/cat-card.spec.js.map +0 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.e2e.js +0 -10
- package/dist/collection/components/cat-checkbox/cat-checkbox.e2e.js.map +0 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js +0 -14
- package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js.map +0 -1
- package/dist/collection/components/cat-date/cat-date.e2e.js +0 -11
- package/dist/collection/components/cat-date/cat-date.e2e.js.map +0 -1
- package/dist/collection/components/cat-date/cat-date.spec.js +0 -17
- package/dist/collection/components/cat-date/cat-date.spec.js.map +0 -1
- package/dist/collection/components/cat-date-inline/cat-date-inline.e2e.js +0 -11
- package/dist/collection/components/cat-date-inline/cat-date-inline.e2e.js.map +0 -1
- package/dist/collection/components/cat-date-inline/cat-date-inline.spec.js +0 -16
- package/dist/collection/components/cat-date-inline/cat-date-inline.spec.js.map +0 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.e2e.js +0 -11
- package/dist/collection/components/cat-datepicker/cat-datepicker.e2e.js.map +0 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js +0 -15
- package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js.map +0 -1
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.e2e.js +0 -11
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.e2e.js.map +0 -1
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.spec.js +0 -15
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.spec.js.map +0 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.e2e.js +0 -10
- package/dist/collection/components/cat-dropdown/cat-dropdown.e2e.js.map +0 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.spec.js +0 -21
- package/dist/collection/components/cat-dropdown/cat-dropdown.spec.js.map +0 -1
- package/dist/collection/components/cat-form-group/cat-form-group.e2e.js +0 -10
- package/dist/collection/components/cat-form-group/cat-form-group.e2e.js.map +0 -1
- package/dist/collection/components/cat-form-group/cat-form-group.spec.js +0 -14
- package/dist/collection/components/cat-form-group/cat-form-group.spec.js.map +0 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js +0 -15
- package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js.map +0 -1
- package/dist/collection/components/cat-i18n/cat-i18n-registry.spec.js +0 -7
- package/dist/collection/components/cat-i18n/cat-i18n-registry.spec.js.map +0 -1
- package/dist/collection/components/cat-icon/cat-icon-registry.spec.js +0 -7
- package/dist/collection/components/cat-icon/cat-icon-registry.spec.js.map +0 -1
- package/dist/collection/components/cat-icon/cat-icon.e2e.js +0 -11
- package/dist/collection/components/cat-icon/cat-icon.e2e.js.map +0 -1
- package/dist/collection/components/cat-icon/cat-icon.spec.js +0 -15
- package/dist/collection/components/cat-icon/cat-icon.spec.js.map +0 -1
- package/dist/collection/components/cat-input/cat-input.e2e.js +0 -11
- package/dist/collection/components/cat-input/cat-input.e2e.js.map +0 -1
- package/dist/collection/components/cat-input/cat-input.spec.js +0 -15
- package/dist/collection/components/cat-input/cat-input.spec.js.map +0 -1
- package/dist/collection/components/cat-notification/cat-notification.spec.js +0 -7
- package/dist/collection/components/cat-notification/cat-notification.spec.js.map +0 -1
- package/dist/collection/components/cat-pagination/cat-pagination.e2e.js +0 -14
- package/dist/collection/components/cat-pagination/cat-pagination.e2e.js.map +0 -1
- package/dist/collection/components/cat-pagination/cat-pagination.spec.js +0 -15
- package/dist/collection/components/cat-pagination/cat-pagination.spec.js.map +0 -1
- package/dist/collection/components/cat-radio/cat-radio.e2e.js +0 -10
- package/dist/collection/components/cat-radio/cat-radio.e2e.js.map +0 -1
- package/dist/collection/components/cat-radio/cat-radio.spec.js +0 -14
- package/dist/collection/components/cat-radio/cat-radio.spec.js.map +0 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.e2e.js +0 -10
- package/dist/collection/components/cat-radio-group/cat-radio-group.e2e.js.map +0 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.spec.js +0 -14
- package/dist/collection/components/cat-radio-group/cat-radio-group.spec.js.map +0 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.e2e.js +0 -10
- package/dist/collection/components/cat-scrollable/cat-scrollable.e2e.js.map +0 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js +0 -14
- package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js.map +0 -1
- package/dist/collection/components/cat-select/cat-select.e2e.js +0 -14
- package/dist/collection/components/cat-select/cat-select.e2e.js.map +0 -1
- package/dist/collection/components/cat-select/cat-select.spec.js +0 -15
- package/dist/collection/components/cat-select/cat-select.spec.js.map +0 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.e2e.js +0 -10
- package/dist/collection/components/cat-skeleton/cat-skeleton.e2e.js.map +0 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js +0 -14
- package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js.map +0 -1
- package/dist/collection/components/cat-spinner/cat-spinner.e2e.js +0 -10
- package/dist/collection/components/cat-spinner/cat-spinner.e2e.js.map +0 -1
- package/dist/collection/components/cat-spinner/cat-spinner.spec.js +0 -18
- package/dist/collection/components/cat-spinner/cat-spinner.spec.js.map +0 -1
- package/dist/collection/components/cat-tab/cat-tab.e2e.js +0 -10
- package/dist/collection/components/cat-tab/cat-tab.e2e.js.map +0 -1
- package/dist/collection/components/cat-tab/cat-tab.spec.js +0 -14
- package/dist/collection/components/cat-tab/cat-tab.spec.js.map +0 -1
- package/dist/collection/components/cat-tabs/cat-tabs.e2e.js +0 -10
- package/dist/collection/components/cat-tabs/cat-tabs.e2e.js.map +0 -1
- package/dist/collection/components/cat-tabs/cat-tabs.spec.js +0 -14
- package/dist/collection/components/cat-tabs/cat-tabs.spec.js.map +0 -1
- package/dist/collection/components/cat-tag/cat-tag.e2e.js +0 -14
- package/dist/collection/components/cat-tag/cat-tag.e2e.js.map +0 -1
- package/dist/collection/components/cat-tag/cat-tag.spec.js +0 -23
- package/dist/collection/components/cat-tag/cat-tag.spec.js.map +0 -1
- package/dist/collection/components/cat-textarea/cat-textarea.e2e.js +0 -11
- package/dist/collection/components/cat-textarea/cat-textarea.e2e.js.map +0 -1
- package/dist/collection/components/cat-textarea/cat-textarea.spec.js +0 -15
- package/dist/collection/components/cat-textarea/cat-textarea.spec.js.map +0 -1
- package/dist/collection/components/cat-time/cat-time.e2e.js +0 -11
- package/dist/collection/components/cat-time/cat-time.e2e.js.map +0 -1
- package/dist/collection/components/cat-time/cat-time.spec.js +0 -16
- package/dist/collection/components/cat-time/cat-time.spec.js.map +0 -1
- package/dist/collection/components/cat-toggle/cat-toggle.e2e.js +0 -10
- package/dist/collection/components/cat-toggle/cat-toggle.e2e.js.map +0 -1
- package/dist/collection/components/cat-toggle/cat-toggle.spec.js +0 -14
- package/dist/collection/components/cat-toggle/cat-toggle.spec.js.map +0 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.e2e.js +0 -10
- package/dist/collection/components/cat-tooltip/cat-tooltip.e2e.js.map +0 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js +0 -20
- package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js.map +0 -1
- package/dist/collection/utils/media-matcher.spec.js +0 -39
- package/dist/collection/utils/media-matcher.spec.js.map +0 -1
- package/dist/components/floating-ui.dom.esm.js.map +0 -1
- package/dist/components/from.js +0 -928
- package/dist/components/from.js.map +0 -1
- package/dist/components/of.js +0 -10
- package/dist/components/of.js.map +0 -1
- package/dist/esm/app-globals-0f993ce5.js +0 -5
- package/dist/esm/app-globals-0f993ce5.js.map +0 -1
- package/dist/esm/index-e8c0ddf2.js.map +0 -1
- package/dist/esm/of-e4ec2eb4.js +0 -1523
- package/dist/esm/of-e4ec2eb4.js.map +0 -1
- package/loader/package.json +0 -11
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const NAMESPACE = 'catalyst';
|
|
2
|
-
const BUILD = /* catalyst */ {
|
|
2
|
+
const BUILD = /* catalyst */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.31.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -11,23 +11,186 @@ var __export = (target, all) => {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
// src/utils/constants.ts
|
|
14
|
-
var EMPTY_OBJ = {};
|
|
15
14
|
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
16
15
|
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
17
16
|
|
|
18
|
-
// src/
|
|
19
|
-
var
|
|
17
|
+
// src/client/client-host-ref.ts
|
|
18
|
+
var getHostRef = (ref) => {
|
|
19
|
+
if (ref.__stencil__getHostRef) {
|
|
20
|
+
return ref.__stencil__getHostRef();
|
|
21
|
+
}
|
|
22
|
+
return void 0;
|
|
23
|
+
};
|
|
24
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
25
|
+
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
26
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
|
27
|
+
};
|
|
28
|
+
var registerHost = (hostElement, cmpMeta) => {
|
|
29
|
+
const hostRef = {
|
|
30
|
+
$flags$: 0,
|
|
31
|
+
$hostElement$: hostElement,
|
|
32
|
+
$cmpMeta$: cmpMeta,
|
|
33
|
+
$instanceValues$: /* @__PURE__ */ new Map()
|
|
34
|
+
};
|
|
35
|
+
{
|
|
36
|
+
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
37
|
+
}
|
|
38
|
+
{
|
|
39
|
+
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
40
|
+
hostElement["s-p"] = [];
|
|
41
|
+
hostElement["s-rc"] = [];
|
|
42
|
+
}
|
|
43
|
+
const ref = hostRef;
|
|
44
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
45
|
+
return ref;
|
|
46
|
+
};
|
|
47
|
+
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
48
|
+
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
49
|
+
|
|
50
|
+
// src/client/client-load-module.ts
|
|
51
|
+
var cmpModules = /* @__PURE__ */ new Map();
|
|
52
|
+
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
53
|
+
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
54
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
55
|
+
if (!bundleId) {
|
|
56
|
+
return void 0;
|
|
57
|
+
}
|
|
58
|
+
const module = cmpModules.get(bundleId) ;
|
|
59
|
+
if (module) {
|
|
60
|
+
return module[exportName];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
64
|
+
const processMod = importedModule => {
|
|
65
|
+
cmpModules.set(bundleId, importedModule);
|
|
66
|
+
return importedModule[exportName];
|
|
67
|
+
}
|
|
68
|
+
switch(bundleId) {
|
|
69
|
+
|
|
70
|
+
case 'cat-alert_30':
|
|
71
|
+
return import(
|
|
72
|
+
/* webpackMode: "lazy" */
|
|
73
|
+
'./cat-alert_30.entry.js').then(processMod, consoleError);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return import(
|
|
77
|
+
/* @vite-ignore */
|
|
78
|
+
/* webpackInclude: /\.entry\.js$/ */
|
|
79
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
80
|
+
/* webpackMode: "lazy" */
|
|
81
|
+
`./${bundleId}.entry.js${""}`
|
|
82
|
+
).then(
|
|
83
|
+
(importedModule) => {
|
|
84
|
+
{
|
|
85
|
+
cmpModules.set(bundleId, importedModule);
|
|
86
|
+
}
|
|
87
|
+
return importedModule[exportName];
|
|
88
|
+
},
|
|
89
|
+
(e) => {
|
|
90
|
+
consoleError(e, hostRef.$hostElement$);
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
// src/client/client-style.ts
|
|
96
|
+
var styles = /* @__PURE__ */ new Map();
|
|
97
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
98
|
+
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
99
|
+
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
100
|
+
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
101
|
+
var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
|
|
102
|
+
"formAssociatedCallback",
|
|
103
|
+
"formResetCallback",
|
|
104
|
+
"formDisabledCallback",
|
|
105
|
+
"formStateRestoreCallback"
|
|
106
|
+
];
|
|
107
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
108
|
+
var plt = {
|
|
109
|
+
$flags$: 0,
|
|
110
|
+
$resourcesUrl$: "",
|
|
111
|
+
jmp: (h2) => h2(),
|
|
112
|
+
raf: (h2) => requestAnimationFrame(h2),
|
|
113
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
114
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
115
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
116
|
+
};
|
|
117
|
+
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
118
|
+
var _a;
|
|
119
|
+
let supportsListenerOptions2 = false;
|
|
120
|
+
try {
|
|
121
|
+
(_a = win.document) == null ? void 0 : _a.addEventListener(
|
|
122
|
+
"e",
|
|
123
|
+
null,
|
|
124
|
+
Object.defineProperty({}, "passive", {
|
|
125
|
+
get() {
|
|
126
|
+
supportsListenerOptions2 = true;
|
|
127
|
+
}
|
|
128
|
+
})
|
|
129
|
+
);
|
|
130
|
+
} catch (e) {
|
|
131
|
+
}
|
|
132
|
+
return supportsListenerOptions2;
|
|
133
|
+
})();
|
|
134
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
|
135
|
+
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
136
|
+
try {
|
|
137
|
+
new CSSStyleSheet();
|
|
138
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
139
|
+
} catch (e) {
|
|
140
|
+
}
|
|
141
|
+
return false;
|
|
142
|
+
})() ;
|
|
143
|
+
var queuePending = false;
|
|
144
|
+
var queueDomReads = [];
|
|
145
|
+
var queueDomWrites = [];
|
|
146
|
+
var queueTask = (queue, write) => (cb) => {
|
|
147
|
+
queue.push(cb);
|
|
148
|
+
if (!queuePending) {
|
|
149
|
+
queuePending = true;
|
|
150
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
151
|
+
nextTick(flush);
|
|
152
|
+
} else {
|
|
153
|
+
plt.raf(flush);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
var consume = (queue) => {
|
|
158
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
159
|
+
try {
|
|
160
|
+
queue[i2](performance.now());
|
|
161
|
+
} catch (e) {
|
|
162
|
+
consoleError(e);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
queue.length = 0;
|
|
166
|
+
};
|
|
167
|
+
var flush = () => {
|
|
168
|
+
consume(queueDomReads);
|
|
169
|
+
{
|
|
170
|
+
consume(queueDomWrites);
|
|
171
|
+
if (queuePending = queueDomReads.length > 0) {
|
|
172
|
+
plt.raf(flush);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
|
177
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
20
178
|
var isComplexType = (o) => {
|
|
21
179
|
o = typeof o;
|
|
22
180
|
return o === "object" || o === "function";
|
|
23
181
|
};
|
|
24
182
|
|
|
25
183
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
26
|
-
function queryNonceMetaTagContent(
|
|
184
|
+
function queryNonceMetaTagContent(doc) {
|
|
27
185
|
var _a, _b, _c;
|
|
28
|
-
return (_c = (_b = (_a =
|
|
186
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
29
187
|
}
|
|
30
188
|
|
|
189
|
+
// src/utils/regular-expression.ts
|
|
190
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
191
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
192
|
+
};
|
|
193
|
+
|
|
31
194
|
// src/utils/result.ts
|
|
32
195
|
var result_exports = {};
|
|
33
196
|
__export(result_exports, {
|
|
@@ -90,15 +253,6 @@ var uniqueTime = (key, measureText) => {
|
|
|
90
253
|
};
|
|
91
254
|
}
|
|
92
255
|
};
|
|
93
|
-
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
94
|
-
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
95
|
-
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
96
|
-
var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
|
|
97
|
-
"formAssociatedCallback",
|
|
98
|
-
"formResetCallback",
|
|
99
|
-
"formDisabledCallback",
|
|
100
|
-
"formStateRestoreCallback"
|
|
101
|
-
];
|
|
102
256
|
var h = (nodeName, vnodeData, ...children) => {
|
|
103
257
|
let child = null;
|
|
104
258
|
let key = null;
|
|
@@ -200,13 +354,25 @@ var convertToPrivate = (node) => {
|
|
|
200
354
|
vnode.$name$ = node.vname;
|
|
201
355
|
return vnode;
|
|
202
356
|
};
|
|
357
|
+
var createSupportsRuleRe = (selector) => {
|
|
358
|
+
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
359
|
+
return new RegExp(
|
|
360
|
+
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
361
|
+
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
362
|
+
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
363
|
+
"g"
|
|
364
|
+
);
|
|
365
|
+
};
|
|
366
|
+
createSupportsRuleRe("::slotted");
|
|
367
|
+
createSupportsRuleRe(":host");
|
|
368
|
+
createSupportsRuleRe(":host-context");
|
|
203
369
|
var parsePropertyValue = (propValue, propType) => {
|
|
204
370
|
if (propValue != null && !isComplexType(propValue)) {
|
|
205
371
|
if (propType & 4 /* Boolean */) {
|
|
206
372
|
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
207
373
|
}
|
|
208
374
|
if (propType & 2 /* Number */) {
|
|
209
|
-
return parseFloat(propValue);
|
|
375
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
210
376
|
}
|
|
211
377
|
if (propType & 1 /* String */) {
|
|
212
378
|
return String(propValue);
|
|
@@ -223,9 +389,9 @@ var createEvent = (ref, name, flags) => {
|
|
|
223
389
|
return {
|
|
224
390
|
emit: (detail) => {
|
|
225
391
|
return emitEvent(elm, name, {
|
|
226
|
-
bubbles:
|
|
227
|
-
composed:
|
|
228
|
-
cancelable:
|
|
392
|
+
bubbles: true,
|
|
393
|
+
composed: true,
|
|
394
|
+
cancelable: true,
|
|
229
395
|
detail
|
|
230
396
|
});
|
|
231
397
|
}
|
|
@@ -255,7 +421,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
255
421
|
var _a;
|
|
256
422
|
const scopeId2 = getScopeId(cmpMeta);
|
|
257
423
|
const style = styles.get(scopeId2);
|
|
258
|
-
|
|
424
|
+
if (!win.document) {
|
|
425
|
+
return scopeId2;
|
|
426
|
+
}
|
|
427
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
259
428
|
if (style) {
|
|
260
429
|
if (typeof style === "string") {
|
|
261
430
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -266,13 +435,40 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
266
435
|
}
|
|
267
436
|
if (!appliedStyles.has(scopeId2)) {
|
|
268
437
|
{
|
|
269
|
-
styleElm =
|
|
438
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
270
439
|
styleElm.innerHTML = style;
|
|
271
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
440
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
272
441
|
if (nonce != null) {
|
|
273
442
|
styleElm.setAttribute("nonce", nonce);
|
|
274
443
|
}
|
|
275
|
-
|
|
444
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
445
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
446
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
447
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
448
|
+
styleContainerNode.insertBefore(
|
|
449
|
+
styleElm,
|
|
450
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
451
|
+
);
|
|
452
|
+
} else if ("host" in styleContainerNode) {
|
|
453
|
+
if (supportsConstructableStylesheets) {
|
|
454
|
+
const stylesheet = new CSSStyleSheet();
|
|
455
|
+
stylesheet.replaceSync(style);
|
|
456
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
457
|
+
} else {
|
|
458
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
459
|
+
if (existingStyleContainer) {
|
|
460
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
461
|
+
} else {
|
|
462
|
+
styleContainerNode.prepend(styleElm);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
} else {
|
|
466
|
+
styleContainerNode.append(styleElm);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
470
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
471
|
+
}
|
|
276
472
|
}
|
|
277
473
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
278
474
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -302,121 +498,148 @@ var attachStyles = (hostRef) => {
|
|
|
302
498
|
endAttachStyles();
|
|
303
499
|
};
|
|
304
500
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
305
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
306
|
-
if (oldValue
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
501
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
502
|
+
if (oldValue === newValue) {
|
|
503
|
+
return;
|
|
504
|
+
}
|
|
505
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
506
|
+
let ln = memberName.toLowerCase();
|
|
507
|
+
if (memberName === "class") {
|
|
508
|
+
const classList = elm.classList;
|
|
509
|
+
const oldClasses = parseClassList(oldValue);
|
|
510
|
+
let newClasses = parseClassList(newValue);
|
|
511
|
+
{
|
|
313
512
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
314
513
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
elm.style.removeProperty(prop);
|
|
321
|
-
} else {
|
|
322
|
-
elm.style[prop] = "";
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
for (const prop in newValue) {
|
|
328
|
-
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
514
|
+
}
|
|
515
|
+
} else if (memberName === "style") {
|
|
516
|
+
{
|
|
517
|
+
for (const prop in oldValue) {
|
|
518
|
+
if (!newValue || newValue[prop] == null) {
|
|
329
519
|
if (prop.includes("-")) {
|
|
330
|
-
elm.style.
|
|
520
|
+
elm.style.removeProperty(prop);
|
|
331
521
|
} else {
|
|
332
|
-
elm.style[prop] =
|
|
522
|
+
elm.style[prop] = "";
|
|
333
523
|
}
|
|
334
524
|
}
|
|
335
525
|
}
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
} else if (isMemberInElement(win, ln)) {
|
|
344
|
-
memberName = ln.slice(2);
|
|
345
|
-
} else {
|
|
346
|
-
memberName = ln[2] + memberName.slice(3);
|
|
347
|
-
}
|
|
348
|
-
if (oldValue || newValue) {
|
|
349
|
-
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
350
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
351
|
-
if (oldValue) {
|
|
352
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
353
|
-
}
|
|
354
|
-
if (newValue) {
|
|
355
|
-
plt.ael(elm, memberName, newValue, capture);
|
|
526
|
+
}
|
|
527
|
+
for (const prop in newValue) {
|
|
528
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
529
|
+
if (prop.includes("-")) {
|
|
530
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
531
|
+
} else {
|
|
532
|
+
elm.style[prop] = newValue[prop];
|
|
356
533
|
}
|
|
357
534
|
}
|
|
535
|
+
}
|
|
536
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
537
|
+
if (newValue) {
|
|
538
|
+
newValue(elm);
|
|
539
|
+
}
|
|
540
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
541
|
+
if (memberName[2] === "-") {
|
|
542
|
+
memberName = memberName.slice(3);
|
|
543
|
+
} else if (isMemberInElement(win, ln)) {
|
|
544
|
+
memberName = ln.slice(2);
|
|
358
545
|
} else {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
546
|
+
memberName = ln[2] + memberName.slice(3);
|
|
547
|
+
}
|
|
548
|
+
if (oldValue || newValue) {
|
|
549
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
550
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
551
|
+
if (oldValue) {
|
|
552
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
553
|
+
}
|
|
554
|
+
if (newValue) {
|
|
555
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
} else {
|
|
559
|
+
const isComplex = isComplexType(newValue);
|
|
560
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
561
|
+
try {
|
|
562
|
+
if (!elm.tagName.includes("-")) {
|
|
563
|
+
const n = newValue == null ? "" : newValue;
|
|
564
|
+
if (memberName === "list") {
|
|
565
|
+
isProp = false;
|
|
566
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
567
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
367
568
|
elm[memberName] = n;
|
|
569
|
+
} else {
|
|
570
|
+
elm.setAttribute(memberName, n);
|
|
368
571
|
}
|
|
369
|
-
} else {
|
|
370
|
-
elm[memberName] = newValue;
|
|
371
572
|
}
|
|
372
|
-
}
|
|
573
|
+
} else if (elm[memberName] !== newValue) {
|
|
574
|
+
elm[memberName] = newValue;
|
|
373
575
|
}
|
|
576
|
+
} catch (e) {
|
|
374
577
|
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
578
|
+
}
|
|
579
|
+
let xlink = false;
|
|
580
|
+
{
|
|
581
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
582
|
+
memberName = ln;
|
|
583
|
+
xlink = true;
|
|
381
584
|
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
386
|
-
} else {
|
|
387
|
-
elm.removeAttribute(memberName);
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
391
|
-
newValue = newValue === true ? "" : newValue;
|
|
585
|
+
}
|
|
586
|
+
if (newValue == null || newValue === false) {
|
|
587
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
392
588
|
if (xlink) {
|
|
393
|
-
elm.
|
|
589
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
394
590
|
} else {
|
|
395
|
-
elm.
|
|
591
|
+
elm.removeAttribute(memberName);
|
|
396
592
|
}
|
|
397
593
|
}
|
|
594
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
595
|
+
newValue = newValue === true ? "" : newValue;
|
|
596
|
+
if (xlink) {
|
|
597
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
598
|
+
} else {
|
|
599
|
+
elm.setAttribute(memberName, newValue);
|
|
600
|
+
}
|
|
398
601
|
}
|
|
399
602
|
}
|
|
400
603
|
};
|
|
401
604
|
var parseClassListRegex = /\s/;
|
|
402
|
-
var parseClassList = (value) =>
|
|
605
|
+
var parseClassList = (value) => {
|
|
606
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
607
|
+
value = value.baseVal;
|
|
608
|
+
}
|
|
609
|
+
if (!value || typeof value !== "string") {
|
|
610
|
+
return [];
|
|
611
|
+
}
|
|
612
|
+
return value.split(parseClassListRegex);
|
|
613
|
+
};
|
|
403
614
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
404
615
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
405
616
|
|
|
406
617
|
// src/runtime/vdom/update-element.ts
|
|
407
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
618
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
408
619
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
409
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
410
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
620
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
621
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
411
622
|
{
|
|
412
623
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
413
624
|
if (!(memberName in newVnodeAttrs)) {
|
|
414
|
-
setAccessor(
|
|
625
|
+
setAccessor(
|
|
626
|
+
elm,
|
|
627
|
+
memberName,
|
|
628
|
+
oldVnodeAttrs[memberName],
|
|
629
|
+
void 0,
|
|
630
|
+
isSvgMode2,
|
|
631
|
+
newVnode.$flags$);
|
|
415
632
|
}
|
|
416
633
|
}
|
|
417
634
|
}
|
|
418
635
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
419
|
-
setAccessor(
|
|
636
|
+
setAccessor(
|
|
637
|
+
elm,
|
|
638
|
+
memberName,
|
|
639
|
+
oldVnodeAttrs[memberName],
|
|
640
|
+
newVnodeAttrs[memberName],
|
|
641
|
+
isSvgMode2,
|
|
642
|
+
newVnode.$flags$);
|
|
420
643
|
}
|
|
421
644
|
};
|
|
422
645
|
function sortedAttrNames(attrNames) {
|
|
@@ -428,24 +651,25 @@ function sortedAttrNames(attrNames) {
|
|
|
428
651
|
attrNames
|
|
429
652
|
);
|
|
430
653
|
}
|
|
431
|
-
|
|
432
|
-
// src/runtime/vdom/vdom-render.ts
|
|
433
|
-
var scopeId;
|
|
434
654
|
var hostTagName;
|
|
435
|
-
var useNativeShadowDom = false;
|
|
436
655
|
var isSvgMode = false;
|
|
437
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
656
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
438
657
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
439
658
|
let i2 = 0;
|
|
440
659
|
let elm;
|
|
441
660
|
let childNode;
|
|
442
661
|
if (newVNode2.$text$ !== null) {
|
|
443
|
-
elm = newVNode2.$elm$ =
|
|
662
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
444
663
|
} else {
|
|
445
664
|
if (!isSvgMode) {
|
|
446
665
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
447
666
|
}
|
|
448
|
-
|
|
667
|
+
if (!win.document) {
|
|
668
|
+
throw new Error(
|
|
669
|
+
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
670
|
+
);
|
|
671
|
+
}
|
|
672
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
449
673
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
450
674
|
newVNode2.$tag$
|
|
451
675
|
) ;
|
|
@@ -455,9 +679,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
455
679
|
{
|
|
456
680
|
updateElement(null, newVNode2, isSvgMode);
|
|
457
681
|
}
|
|
458
|
-
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
459
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
460
|
-
}
|
|
461
682
|
if (newVNode2.$children$) {
|
|
462
683
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
463
684
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -594,6 +815,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
594
815
|
if (!isInitialRender) {
|
|
595
816
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
596
817
|
}
|
|
818
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
819
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
820
|
+
}
|
|
597
821
|
return true;
|
|
598
822
|
}
|
|
599
823
|
return false;
|
|
@@ -609,9 +833,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
609
833
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
610
834
|
}
|
|
611
835
|
{
|
|
612
|
-
|
|
613
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
614
|
-
}
|
|
836
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
615
837
|
}
|
|
616
838
|
if (oldChildren !== null && newChildren !== null) {
|
|
617
839
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -620,7 +842,10 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
620
842
|
elm.textContent = "";
|
|
621
843
|
}
|
|
622
844
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
623
|
-
} else if (
|
|
845
|
+
} else if (
|
|
846
|
+
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
847
|
+
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
848
|
+
) {
|
|
624
849
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
625
850
|
}
|
|
626
851
|
if (isSvgMode && tag === "svg") {
|
|
@@ -637,14 +862,16 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
637
862
|
}
|
|
638
863
|
};
|
|
639
864
|
var insertBefore = (parent, newNode, reference) => {
|
|
640
|
-
|
|
641
|
-
|
|
865
|
+
{
|
|
866
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
867
|
+
}
|
|
642
868
|
};
|
|
643
869
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
644
870
|
const hostElm = hostRef.$hostElement$;
|
|
645
871
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
646
872
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
647
|
-
const
|
|
873
|
+
const isHostElement = isHost(renderFnResults);
|
|
874
|
+
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
648
875
|
hostTagName = hostElm.tagName;
|
|
649
876
|
if (cmpMeta.$attrsToReflect$) {
|
|
650
877
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
@@ -663,17 +890,20 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
663
890
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
664
891
|
hostRef.$vnode$ = rootVnode;
|
|
665
892
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
666
|
-
{
|
|
667
|
-
scopeId = hostElm["s-sc"];
|
|
668
|
-
}
|
|
669
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
670
893
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
671
894
|
};
|
|
672
895
|
|
|
673
896
|
// src/runtime/update-component.ts
|
|
674
897
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
675
898
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
676
|
-
ancestorComponent["s-p"].push(
|
|
899
|
+
const index = ancestorComponent["s-p"].push(
|
|
900
|
+
new Promise(
|
|
901
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
902
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
903
|
+
r();
|
|
904
|
+
}
|
|
905
|
+
)
|
|
906
|
+
);
|
|
677
907
|
}
|
|
678
908
|
};
|
|
679
909
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -702,21 +932,22 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
702
932
|
{
|
|
703
933
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
704
934
|
if (hostRef.$queuedListeners$) {
|
|
705
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
935
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
706
936
|
hostRef.$queuedListeners$ = void 0;
|
|
707
937
|
}
|
|
708
938
|
}
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
}
|
|
713
|
-
{
|
|
714
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
|
939
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
940
|
+
} else {
|
|
941
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
715
942
|
}
|
|
943
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
716
944
|
endSchedule();
|
|
717
945
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
718
946
|
};
|
|
719
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn)
|
|
947
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
|
948
|
+
console.error(err2);
|
|
949
|
+
fn();
|
|
950
|
+
}) : fn();
|
|
720
951
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
721
952
|
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
722
953
|
var _a;
|
|
@@ -752,7 +983,7 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
752
983
|
try {
|
|
753
984
|
instance = instance.render() ;
|
|
754
985
|
{
|
|
755
|
-
hostRef.$flags$ &=
|
|
986
|
+
hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
|
|
756
987
|
}
|
|
757
988
|
{
|
|
758
989
|
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
@@ -775,17 +1006,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
775
1006
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
776
1007
|
const instance = hostRef.$lazyInstance$ ;
|
|
777
1008
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
778
|
-
|
|
779
|
-
safeCall(instance, "componentDidRender");
|
|
780
|
-
}
|
|
1009
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
781
1010
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
782
1011
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
783
1012
|
{
|
|
784
1013
|
addHydratedFlag(elm);
|
|
785
1014
|
}
|
|
786
|
-
|
|
787
|
-
safeCall(instance, "componentDidLoad");
|
|
788
|
-
}
|
|
1015
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
789
1016
|
endPostUpdate();
|
|
790
1017
|
{
|
|
791
1018
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -794,6 +1021,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
794
1021
|
}
|
|
795
1022
|
}
|
|
796
1023
|
} else {
|
|
1024
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
797
1025
|
endPostUpdate();
|
|
798
1026
|
}
|
|
799
1027
|
{
|
|
@@ -807,21 +1035,18 @@ var postUpdateComponent = (hostRef) => {
|
|
|
807
1035
|
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
808
1036
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
809
1037
|
}
|
|
810
|
-
hostRef.$flags$ &=
|
|
1038
|
+
hostRef.$flags$ &= -517;
|
|
811
1039
|
}
|
|
812
1040
|
};
|
|
813
1041
|
var appDidLoad = (who) => {
|
|
814
|
-
{
|
|
815
|
-
addHydratedFlag(doc.documentElement);
|
|
816
|
-
}
|
|
817
1042
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
818
1043
|
};
|
|
819
|
-
var safeCall = (instance, method, arg) => {
|
|
1044
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
820
1045
|
if (instance && instance[method]) {
|
|
821
1046
|
try {
|
|
822
1047
|
return instance[method](arg);
|
|
823
1048
|
} catch (e) {
|
|
824
|
-
consoleError(e);
|
|
1049
|
+
consoleError(e, elm);
|
|
825
1050
|
}
|
|
826
1051
|
}
|
|
827
1052
|
return void 0;
|
|
@@ -837,7 +1062,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
837
1062
|
const hostRef = getHostRef(ref);
|
|
838
1063
|
if (!hostRef) {
|
|
839
1064
|
throw new Error(
|
|
840
|
-
`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/
|
|
1065
|
+
`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).`
|
|
841
1066
|
);
|
|
842
1067
|
}
|
|
843
1068
|
const elm = hostRef.$hostElement$ ;
|
|
@@ -863,6 +1088,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
863
1088
|
}
|
|
864
1089
|
}
|
|
865
1090
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1091
|
+
if (instance.componentShouldUpdate) {
|
|
1092
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1093
|
+
return;
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
866
1096
|
scheduleUpdate(hostRef, false);
|
|
867
1097
|
}
|
|
868
1098
|
}
|
|
@@ -871,43 +1101,96 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
871
1101
|
|
|
872
1102
|
// src/runtime/proxy-component.ts
|
|
873
1103
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
874
|
-
var _a;
|
|
1104
|
+
var _a, _b;
|
|
875
1105
|
const prototype = Cstr.prototype;
|
|
876
1106
|
if (cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
|
|
877
|
-
FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach(
|
|
878
|
-
|
|
1107
|
+
FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
|
|
1108
|
+
Object.defineProperty(prototype, cbName, {
|
|
879
1109
|
value(...args) {
|
|
880
1110
|
const hostRef = getHostRef(this);
|
|
881
1111
|
const instance = hostRef.$lazyInstance$ ;
|
|
882
1112
|
if (!instance) {
|
|
883
|
-
hostRef.$onReadyPromise$.then((
|
|
884
|
-
const cb =
|
|
885
|
-
typeof cb === "function" && cb.call(
|
|
1113
|
+
hostRef.$onReadyPromise$.then((asyncInstance) => {
|
|
1114
|
+
const cb = asyncInstance[cbName];
|
|
1115
|
+
typeof cb === "function" && cb.call(asyncInstance, ...args);
|
|
886
1116
|
});
|
|
887
1117
|
} else {
|
|
888
|
-
const cb = instance[cbName];
|
|
1118
|
+
const cb = instance[cbName] ;
|
|
889
1119
|
typeof cb === "function" && cb.call(instance, ...args);
|
|
890
1120
|
}
|
|
891
1121
|
}
|
|
892
|
-
})
|
|
893
|
-
);
|
|
1122
|
+
});
|
|
1123
|
+
});
|
|
894
1124
|
}
|
|
895
|
-
if (cmpMeta.$members$) {
|
|
896
|
-
if (Cstr.watchers) {
|
|
1125
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
1126
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
897
1127
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
898
1128
|
}
|
|
899
|
-
const members = Object.entries(cmpMeta.$members$);
|
|
1129
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
900
1130
|
members.map(([memberName, [memberFlags]]) => {
|
|
901
1131
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1132
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1133
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1134
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1135
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1136
|
+
Object.defineProperty(prototype, memberName, {
|
|
1137
|
+
get() {
|
|
1138
|
+
{
|
|
1139
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1140
|
+
return getValue(this, memberName);
|
|
1141
|
+
}
|
|
1142
|
+
const ref = getHostRef(this);
|
|
1143
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1144
|
+
if (!instance) return;
|
|
1145
|
+
return instance[memberName];
|
|
1146
|
+
}
|
|
1147
|
+
},
|
|
1148
|
+
configurable: true,
|
|
1149
|
+
enumerable: true
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
902
1152
|
Object.defineProperty(prototype, memberName, {
|
|
903
|
-
get() {
|
|
904
|
-
return getValue(this, memberName);
|
|
905
|
-
},
|
|
906
1153
|
set(newValue) {
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
1154
|
+
const ref = getHostRef(this);
|
|
1155
|
+
if (origSetter) {
|
|
1156
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1157
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1158
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1159
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1160
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1161
|
+
}
|
|
1162
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1163
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1164
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1165
|
+
return;
|
|
1166
|
+
}
|
|
1167
|
+
{
|
|
1168
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1169
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1170
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1171
|
+
ref.$onReadyPromise$.then(() => {
|
|
1172
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1173
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1174
|
+
}
|
|
1175
|
+
});
|
|
1176
|
+
}
|
|
1177
|
+
return;
|
|
1178
|
+
}
|
|
1179
|
+
const setterSetVal = () => {
|
|
1180
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1181
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1182
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1183
|
+
}
|
|
1184
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1185
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1186
|
+
};
|
|
1187
|
+
if (ref.$lazyInstance$) {
|
|
1188
|
+
setterSetVal();
|
|
1189
|
+
} else {
|
|
1190
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
911
1194
|
});
|
|
912
1195
|
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
913
1196
|
Object.defineProperty(prototype, memberName, {
|
|
@@ -928,10 +1211,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
928
1211
|
plt.jmp(() => {
|
|
929
1212
|
var _a2;
|
|
930
1213
|
const propName = attrNameToPropName.get(attrName);
|
|
931
|
-
if (this.hasOwnProperty(propName)) {
|
|
1214
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
932
1215
|
newValue = this[propName];
|
|
933
1216
|
delete this[propName];
|
|
934
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1217
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1218
|
+
this[propName] == newValue) {
|
|
935
1219
|
return;
|
|
936
1220
|
} else if (propName == null) {
|
|
937
1221
|
const hostRef = getHostRef(this);
|
|
@@ -947,12 +1231,16 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
947
1231
|
}
|
|
948
1232
|
return;
|
|
949
1233
|
}
|
|
950
|
-
|
|
1234
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1235
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1236
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1237
|
+
this[propName] = newValue;
|
|
1238
|
+
}
|
|
951
1239
|
});
|
|
952
1240
|
};
|
|
953
1241
|
Cstr.observedAttributes = Array.from(
|
|
954
1242
|
/* @__PURE__ */ new Set([
|
|
955
|
-
...Object.keys((
|
|
1243
|
+
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
956
1244
|
...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
|
|
957
1245
|
var _a2;
|
|
958
1246
|
const attrName = m[1] || propName;
|
|
@@ -976,7 +1264,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
976
1264
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
977
1265
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
978
1266
|
if (bundleId) {
|
|
979
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1267
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
980
1268
|
if (CstrImport && "then" in CstrImport) {
|
|
981
1269
|
const endLoad = uniqueTime();
|
|
982
1270
|
Cstr = await CstrImport;
|
|
@@ -1001,23 +1289,26 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1001
1289
|
try {
|
|
1002
1290
|
new Cstr(hostRef);
|
|
1003
1291
|
} catch (e) {
|
|
1004
|
-
consoleError(e);
|
|
1292
|
+
consoleError(e, elm);
|
|
1005
1293
|
}
|
|
1006
1294
|
{
|
|
1007
|
-
hostRef.$flags$ &=
|
|
1295
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1008
1296
|
}
|
|
1009
1297
|
{
|
|
1010
1298
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1011
1299
|
}
|
|
1012
1300
|
endNewInstance();
|
|
1013
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1301
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1014
1302
|
} else {
|
|
1015
1303
|
Cstr = elm.constructor;
|
|
1016
1304
|
const cmpTag = elm.localName;
|
|
1017
1305
|
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1018
1306
|
}
|
|
1019
1307
|
if (Cstr && Cstr.style) {
|
|
1020
|
-
let style
|
|
1308
|
+
let style;
|
|
1309
|
+
if (typeof Cstr.style === "string") {
|
|
1310
|
+
style = Cstr.style;
|
|
1311
|
+
}
|
|
1021
1312
|
const scopeId2 = getScopeId(cmpMeta);
|
|
1022
1313
|
if (!styles.has(scopeId2)) {
|
|
1023
1314
|
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
@@ -1034,9 +1325,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1034
1325
|
schedule();
|
|
1035
1326
|
}
|
|
1036
1327
|
};
|
|
1037
|
-
var fireConnectedCallback = (instance) => {
|
|
1328
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1038
1329
|
{
|
|
1039
|
-
safeCall(instance, "connectedCallback");
|
|
1330
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1040
1331
|
}
|
|
1041
1332
|
};
|
|
1042
1333
|
|
|
@@ -1072,17 +1363,17 @@ var connectedCallback = (elm) => {
|
|
|
1072
1363
|
} else {
|
|
1073
1364
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1074
1365
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1075
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1366
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1076
1367
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1077
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1368
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1078
1369
|
}
|
|
1079
1370
|
}
|
|
1080
1371
|
endConnected();
|
|
1081
1372
|
}
|
|
1082
1373
|
};
|
|
1083
|
-
var disconnectInstance = (instance) => {
|
|
1374
|
+
var disconnectInstance = (instance, elm) => {
|
|
1084
1375
|
{
|
|
1085
|
-
safeCall(instance, "disconnectedCallback");
|
|
1376
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1086
1377
|
}
|
|
1087
1378
|
};
|
|
1088
1379
|
var disconnectedCallback = async (elm) => {
|
|
@@ -1095,28 +1386,38 @@ var disconnectedCallback = async (elm) => {
|
|
|
1095
1386
|
}
|
|
1096
1387
|
}
|
|
1097
1388
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1098
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1389
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1099
1390
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1100
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1391
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1101
1392
|
}
|
|
1102
1393
|
}
|
|
1394
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1395
|
+
rootAppliedStyles.delete(elm);
|
|
1396
|
+
}
|
|
1397
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1398
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1399
|
+
}
|
|
1103
1400
|
};
|
|
1104
1401
|
|
|
1105
1402
|
// src/runtime/bootstrap-lazy.ts
|
|
1106
1403
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1107
1404
|
var _a;
|
|
1405
|
+
if (!win.document) {
|
|
1406
|
+
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
1407
|
+
return;
|
|
1408
|
+
}
|
|
1108
1409
|
const endBootstrap = createTime();
|
|
1109
1410
|
const cmpTags = [];
|
|
1110
1411
|
const exclude = options.exclude || [];
|
|
1111
1412
|
const customElements2 = win.customElements;
|
|
1112
|
-
const head =
|
|
1413
|
+
const head = win.document.head;
|
|
1113
1414
|
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
1114
|
-
const dataStyles = /* @__PURE__ */
|
|
1415
|
+
const dataStyles = /* @__PURE__ */ win.document.createElement("style");
|
|
1115
1416
|
const deferredConnectedCallbacks = [];
|
|
1116
1417
|
let appLoadFallback;
|
|
1117
1418
|
let isBootstrapping = true;
|
|
1118
1419
|
Object.assign(plt, options);
|
|
1119
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./",
|
|
1420
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
1120
1421
|
let hasSlotRelocation = false;
|
|
1121
1422
|
lazyBundles.map((lazyBundle) => {
|
|
1122
1423
|
lazyBundle[1].map((compactMeta) => {
|
|
@@ -1147,20 +1448,34 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1147
1448
|
// StencilLazyHost
|
|
1148
1449
|
constructor(self) {
|
|
1149
1450
|
super(self);
|
|
1451
|
+
this.hasRegisteredEventListeners = false;
|
|
1150
1452
|
self = this;
|
|
1151
1453
|
registerHost(self, cmpMeta);
|
|
1152
1454
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1153
1455
|
{
|
|
1154
|
-
{
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1456
|
+
if (!self.shadowRoot) {
|
|
1457
|
+
{
|
|
1458
|
+
self.attachShadow({
|
|
1459
|
+
mode: "open",
|
|
1460
|
+
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1463
|
+
} else {
|
|
1464
|
+
if (self.shadowRoot.mode !== "open") {
|
|
1465
|
+
throw new Error(
|
|
1466
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
1467
|
+
);
|
|
1468
|
+
}
|
|
1159
1469
|
}
|
|
1160
1470
|
}
|
|
1161
1471
|
}
|
|
1162
1472
|
}
|
|
1163
1473
|
connectedCallback() {
|
|
1474
|
+
const hostRef = getHostRef(this);
|
|
1475
|
+
if (!this.hasRegisteredEventListeners) {
|
|
1476
|
+
this.hasRegisteredEventListeners = true;
|
|
1477
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
1478
|
+
}
|
|
1164
1479
|
if (appLoadFallback) {
|
|
1165
1480
|
clearTimeout(appLoadFallback);
|
|
1166
1481
|
appLoadFallback = null;
|
|
@@ -1173,6 +1488,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1173
1488
|
}
|
|
1174
1489
|
disconnectedCallback() {
|
|
1175
1490
|
plt.jmp(() => disconnectedCallback(this));
|
|
1491
|
+
plt.raf(() => {
|
|
1492
|
+
var _a3;
|
|
1493
|
+
const hostRef = getHostRef(this);
|
|
1494
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1495
|
+
if (i2 > -1) {
|
|
1496
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1497
|
+
}
|
|
1498
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1499
|
+
delete hostRef.$vnode$.$elm$;
|
|
1500
|
+
}
|
|
1501
|
+
});
|
|
1176
1502
|
}
|
|
1177
1503
|
componentOnReady() {
|
|
1178
1504
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1196,11 +1522,11 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1196
1522
|
dataStyles.textContent += SLOT_FB_CSS;
|
|
1197
1523
|
}
|
|
1198
1524
|
{
|
|
1199
|
-
dataStyles.textContent += cmpTags + HYDRATED_CSS;
|
|
1525
|
+
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
1200
1526
|
}
|
|
1201
1527
|
if (dataStyles.innerHTML.length) {
|
|
1202
1528
|
dataStyles.setAttribute("data-styles", "");
|
|
1203
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
1529
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1204
1530
|
if (nonce != null) {
|
|
1205
1531
|
dataStyles.setAttribute("nonce", nonce);
|
|
1206
1532
|
}
|
|
@@ -1218,9 +1544,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1218
1544
|
endBootstrap();
|
|
1219
1545
|
};
|
|
1220
1546
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
1221
|
-
if (listeners) {
|
|
1547
|
+
if (listeners && win.document) {
|
|
1222
1548
|
listeners.map(([flags, name, method]) => {
|
|
1223
|
-
const target = getHostListenerTarget(elm, flags) ;
|
|
1549
|
+
const target = getHostListenerTarget(win.document, elm, flags) ;
|
|
1224
1550
|
const handler = hostListenerProxy(hostRef, method);
|
|
1225
1551
|
const opts = hostListenerOpts(flags);
|
|
1226
1552
|
plt.ael(target, name, handler, opts);
|
|
@@ -1239,11 +1565,13 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1239
1565
|
}
|
|
1240
1566
|
}
|
|
1241
1567
|
} catch (e) {
|
|
1242
|
-
consoleError(e);
|
|
1568
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1243
1569
|
}
|
|
1244
1570
|
};
|
|
1245
|
-
var getHostListenerTarget = (elm, flags) => {
|
|
1246
|
-
if (flags & 8 /* TargetWindow */)
|
|
1571
|
+
var getHostListenerTarget = (doc, elm, flags) => {
|
|
1572
|
+
if (flags & 8 /* TargetWindow */) {
|
|
1573
|
+
return win;
|
|
1574
|
+
}
|
|
1247
1575
|
return elm;
|
|
1248
1576
|
};
|
|
1249
1577
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
@@ -1254,145 +1582,7 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
1254
1582
|
// src/runtime/nonce.ts
|
|
1255
1583
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1256
1584
|
|
|
1257
|
-
// src/client/client-host-ref.ts
|
|
1258
|
-
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
1259
|
-
var getHostRef = (ref) => hostRefs.get(ref);
|
|
1260
|
-
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
1261
|
-
var registerHost = (hostElement, cmpMeta) => {
|
|
1262
|
-
const hostRef = {
|
|
1263
|
-
$flags$: 0,
|
|
1264
|
-
$hostElement$: hostElement,
|
|
1265
|
-
$cmpMeta$: cmpMeta,
|
|
1266
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
1267
|
-
};
|
|
1268
|
-
{
|
|
1269
|
-
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
1270
|
-
}
|
|
1271
|
-
{
|
|
1272
|
-
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
1273
|
-
hostElement["s-p"] = [];
|
|
1274
|
-
hostElement["s-rc"] = [];
|
|
1275
|
-
}
|
|
1276
|
-
addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$);
|
|
1277
|
-
return hostRefs.set(hostElement, hostRef);
|
|
1278
|
-
};
|
|
1279
|
-
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
1280
|
-
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
1281
|
-
|
|
1282
|
-
// src/client/client-load-module.ts
|
|
1283
|
-
var cmpModules = /* @__PURE__ */ new Map();
|
|
1284
|
-
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
1285
|
-
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
1286
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1287
|
-
if (!bundleId) {
|
|
1288
|
-
return void 0;
|
|
1289
|
-
}
|
|
1290
|
-
const module = cmpModules.get(bundleId) ;
|
|
1291
|
-
if (module) {
|
|
1292
|
-
return module[exportName];
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
1296
|
-
const processMod = importedModule => {
|
|
1297
|
-
cmpModules.set(bundleId, importedModule);
|
|
1298
|
-
return importedModule[exportName];
|
|
1299
|
-
}
|
|
1300
|
-
switch(bundleId) {
|
|
1301
|
-
|
|
1302
|
-
case 'cat-alert_30':
|
|
1303
|
-
return import(
|
|
1304
|
-
/* webpackMode: "lazy" */
|
|
1305
|
-
'./cat-alert_30.entry.js').then(processMod, consoleError);
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
return import(
|
|
1309
|
-
/* @vite-ignore */
|
|
1310
|
-
/* webpackInclude: /\.entry\.js$/ */
|
|
1311
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1312
|
-
/* webpackMode: "lazy" */
|
|
1313
|
-
`./${bundleId}.entry.js${""}`
|
|
1314
|
-
).then((importedModule) => {
|
|
1315
|
-
{
|
|
1316
|
-
cmpModules.set(bundleId, importedModule);
|
|
1317
|
-
}
|
|
1318
|
-
return importedModule[exportName];
|
|
1319
|
-
}, consoleError);
|
|
1320
|
-
};
|
|
1321
|
-
|
|
1322
|
-
// src/client/client-style.ts
|
|
1323
|
-
var styles = /* @__PURE__ */ new Map();
|
|
1324
|
-
var win = typeof window !== "undefined" ? window : {};
|
|
1325
|
-
var doc = win.document || { head: {} };
|
|
1326
|
-
var plt = {
|
|
1327
|
-
$flags$: 0,
|
|
1328
|
-
$resourcesUrl$: "",
|
|
1329
|
-
jmp: (h2) => h2(),
|
|
1330
|
-
raf: (h2) => requestAnimationFrame(h2),
|
|
1331
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
1332
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
1333
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
1334
|
-
};
|
|
1335
|
-
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
1336
|
-
let supportsListenerOptions2 = false;
|
|
1337
|
-
try {
|
|
1338
|
-
doc.addEventListener(
|
|
1339
|
-
"e",
|
|
1340
|
-
null,
|
|
1341
|
-
Object.defineProperty({}, "passive", {
|
|
1342
|
-
get() {
|
|
1343
|
-
supportsListenerOptions2 = true;
|
|
1344
|
-
}
|
|
1345
|
-
})
|
|
1346
|
-
);
|
|
1347
|
-
} catch (e) {
|
|
1348
|
-
}
|
|
1349
|
-
return supportsListenerOptions2;
|
|
1350
|
-
})();
|
|
1351
|
-
var promiseResolve = (v) => Promise.resolve(v);
|
|
1352
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
1353
|
-
try {
|
|
1354
|
-
new CSSStyleSheet();
|
|
1355
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
1356
|
-
} catch (e) {
|
|
1357
|
-
}
|
|
1358
|
-
return false;
|
|
1359
|
-
})() ;
|
|
1360
|
-
var queuePending = false;
|
|
1361
|
-
var queueDomReads = [];
|
|
1362
|
-
var queueDomWrites = [];
|
|
1363
|
-
var queueTask = (queue, write) => (cb) => {
|
|
1364
|
-
queue.push(cb);
|
|
1365
|
-
if (!queuePending) {
|
|
1366
|
-
queuePending = true;
|
|
1367
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
1368
|
-
nextTick(flush);
|
|
1369
|
-
} else {
|
|
1370
|
-
plt.raf(flush);
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
};
|
|
1374
|
-
var consume = (queue) => {
|
|
1375
|
-
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
1376
|
-
try {
|
|
1377
|
-
queue[i2](performance.now());
|
|
1378
|
-
} catch (e) {
|
|
1379
|
-
consoleError(e);
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
queue.length = 0;
|
|
1383
|
-
};
|
|
1384
|
-
var flush = () => {
|
|
1385
|
-
consume(queueDomReads);
|
|
1386
|
-
{
|
|
1387
|
-
consume(queueDomWrites);
|
|
1388
|
-
if (queuePending = queueDomReads.length > 0) {
|
|
1389
|
-
plt.raf(flush);
|
|
1390
|
-
}
|
|
1391
|
-
}
|
|
1392
|
-
};
|
|
1393
|
-
var nextTick = (cb) => promiseResolve().then(cb);
|
|
1394
|
-
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
1395
|
-
|
|
1396
1585
|
export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1586
|
+
//# sourceMappingURL=index-B-m4GNf1.js.map
|
|
1397
1587
|
|
|
1398
|
-
//# sourceMappingURL=index-
|
|
1588
|
+
//# sourceMappingURL=index-B-m4GNf1.js.map
|