@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,30 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
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
3
|
const NAMESPACE = 'catalyst';
|
|
24
|
-
const BUILD = /* catalyst */ {
|
|
4
|
+
const BUILD = /* catalyst */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
|
|
25
5
|
|
|
26
6
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
7
|
+
Stencil Client Platform v4.31.0 | MIT Licensed | https://stenciljs.com
|
|
28
8
|
*/
|
|
29
9
|
var __defProp = Object.defineProperty;
|
|
30
10
|
var __export = (target, all) => {
|
|
@@ -33,23 +13,186 @@ var __export = (target, all) => {
|
|
|
33
13
|
};
|
|
34
14
|
|
|
35
15
|
// src/utils/constants.ts
|
|
36
|
-
var EMPTY_OBJ = {};
|
|
37
16
|
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
38
17
|
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
39
18
|
|
|
40
|
-
// src/
|
|
41
|
-
var
|
|
19
|
+
// src/client/client-host-ref.ts
|
|
20
|
+
var getHostRef = (ref) => {
|
|
21
|
+
if (ref.__stencil__getHostRef) {
|
|
22
|
+
return ref.__stencil__getHostRef();
|
|
23
|
+
}
|
|
24
|
+
return void 0;
|
|
25
|
+
};
|
|
26
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
27
|
+
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
28
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
|
29
|
+
};
|
|
30
|
+
var registerHost = (hostElement, cmpMeta) => {
|
|
31
|
+
const hostRef = {
|
|
32
|
+
$flags$: 0,
|
|
33
|
+
$hostElement$: hostElement,
|
|
34
|
+
$cmpMeta$: cmpMeta,
|
|
35
|
+
$instanceValues$: /* @__PURE__ */ new Map()
|
|
36
|
+
};
|
|
37
|
+
{
|
|
38
|
+
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
39
|
+
}
|
|
40
|
+
{
|
|
41
|
+
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
42
|
+
hostElement["s-p"] = [];
|
|
43
|
+
hostElement["s-rc"] = [];
|
|
44
|
+
}
|
|
45
|
+
const ref = hostRef;
|
|
46
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
47
|
+
return ref;
|
|
48
|
+
};
|
|
49
|
+
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
50
|
+
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
51
|
+
|
|
52
|
+
// src/client/client-load-module.ts
|
|
53
|
+
var cmpModules = /* @__PURE__ */ new Map();
|
|
54
|
+
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
55
|
+
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
56
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
57
|
+
if (!bundleId) {
|
|
58
|
+
return void 0;
|
|
59
|
+
}
|
|
60
|
+
const module = cmpModules.get(bundleId) ;
|
|
61
|
+
if (module) {
|
|
62
|
+
return module[exportName];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
66
|
+
const processMod = importedModule => {
|
|
67
|
+
cmpModules.set(bundleId, importedModule);
|
|
68
|
+
return importedModule[exportName];
|
|
69
|
+
}
|
|
70
|
+
switch(bundleId) {
|
|
71
|
+
|
|
72
|
+
case 'cat-alert_30.cjs':
|
|
73
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
74
|
+
/* webpackMode: "lazy" */
|
|
75
|
+
'./cat-alert_30.cjs.entry.js')); }).then(processMod, consoleError);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return import(
|
|
79
|
+
/* @vite-ignore */
|
|
80
|
+
/* webpackInclude: /\.entry\.js$/ */
|
|
81
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
82
|
+
/* webpackMode: "lazy" */
|
|
83
|
+
`./${bundleId}.entry.js${""}`
|
|
84
|
+
).then(
|
|
85
|
+
(importedModule) => {
|
|
86
|
+
{
|
|
87
|
+
cmpModules.set(bundleId, importedModule);
|
|
88
|
+
}
|
|
89
|
+
return importedModule[exportName];
|
|
90
|
+
},
|
|
91
|
+
(e) => {
|
|
92
|
+
consoleError(e, hostRef.$hostElement$);
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
// src/client/client-style.ts
|
|
98
|
+
var styles = /* @__PURE__ */ new Map();
|
|
99
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
100
|
+
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
101
|
+
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
102
|
+
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
103
|
+
var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
|
|
104
|
+
"formAssociatedCallback",
|
|
105
|
+
"formResetCallback",
|
|
106
|
+
"formDisabledCallback",
|
|
107
|
+
"formStateRestoreCallback"
|
|
108
|
+
];
|
|
109
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
110
|
+
var plt = {
|
|
111
|
+
$flags$: 0,
|
|
112
|
+
$resourcesUrl$: "",
|
|
113
|
+
jmp: (h2) => h2(),
|
|
114
|
+
raf: (h2) => requestAnimationFrame(h2),
|
|
115
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
116
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
117
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
118
|
+
};
|
|
119
|
+
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
120
|
+
var _a;
|
|
121
|
+
let supportsListenerOptions2 = false;
|
|
122
|
+
try {
|
|
123
|
+
(_a = win.document) == null ? void 0 : _a.addEventListener(
|
|
124
|
+
"e",
|
|
125
|
+
null,
|
|
126
|
+
Object.defineProperty({}, "passive", {
|
|
127
|
+
get() {
|
|
128
|
+
supportsListenerOptions2 = true;
|
|
129
|
+
}
|
|
130
|
+
})
|
|
131
|
+
);
|
|
132
|
+
} catch (e) {
|
|
133
|
+
}
|
|
134
|
+
return supportsListenerOptions2;
|
|
135
|
+
})();
|
|
136
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
|
137
|
+
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
138
|
+
try {
|
|
139
|
+
new CSSStyleSheet();
|
|
140
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
141
|
+
} catch (e) {
|
|
142
|
+
}
|
|
143
|
+
return false;
|
|
144
|
+
})() ;
|
|
145
|
+
var queuePending = false;
|
|
146
|
+
var queueDomReads = [];
|
|
147
|
+
var queueDomWrites = [];
|
|
148
|
+
var queueTask = (queue, write) => (cb) => {
|
|
149
|
+
queue.push(cb);
|
|
150
|
+
if (!queuePending) {
|
|
151
|
+
queuePending = true;
|
|
152
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
153
|
+
nextTick(flush);
|
|
154
|
+
} else {
|
|
155
|
+
plt.raf(flush);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
var consume = (queue) => {
|
|
160
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
161
|
+
try {
|
|
162
|
+
queue[i2](performance.now());
|
|
163
|
+
} catch (e) {
|
|
164
|
+
consoleError(e);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
queue.length = 0;
|
|
168
|
+
};
|
|
169
|
+
var flush = () => {
|
|
170
|
+
consume(queueDomReads);
|
|
171
|
+
{
|
|
172
|
+
consume(queueDomWrites);
|
|
173
|
+
if (queuePending = queueDomReads.length > 0) {
|
|
174
|
+
plt.raf(flush);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
|
179
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
42
180
|
var isComplexType = (o) => {
|
|
43
181
|
o = typeof o;
|
|
44
182
|
return o === "object" || o === "function";
|
|
45
183
|
};
|
|
46
184
|
|
|
47
185
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
48
|
-
function queryNonceMetaTagContent(
|
|
186
|
+
function queryNonceMetaTagContent(doc) {
|
|
49
187
|
var _a, _b, _c;
|
|
50
|
-
return (_c = (_b = (_a =
|
|
188
|
+
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;
|
|
51
189
|
}
|
|
52
190
|
|
|
191
|
+
// src/utils/regular-expression.ts
|
|
192
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
193
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
194
|
+
};
|
|
195
|
+
|
|
53
196
|
// src/utils/result.ts
|
|
54
197
|
var result_exports = {};
|
|
55
198
|
__export(result_exports, {
|
|
@@ -112,15 +255,6 @@ var uniqueTime = (key, measureText) => {
|
|
|
112
255
|
};
|
|
113
256
|
}
|
|
114
257
|
};
|
|
115
|
-
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
116
|
-
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
117
|
-
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
118
|
-
var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
|
|
119
|
-
"formAssociatedCallback",
|
|
120
|
-
"formResetCallback",
|
|
121
|
-
"formDisabledCallback",
|
|
122
|
-
"formStateRestoreCallback"
|
|
123
|
-
];
|
|
124
258
|
var h = (nodeName, vnodeData, ...children) => {
|
|
125
259
|
let child = null;
|
|
126
260
|
let key = null;
|
|
@@ -222,13 +356,25 @@ var convertToPrivate = (node) => {
|
|
|
222
356
|
vnode.$name$ = node.vname;
|
|
223
357
|
return vnode;
|
|
224
358
|
};
|
|
359
|
+
var createSupportsRuleRe = (selector) => {
|
|
360
|
+
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
361
|
+
return new RegExp(
|
|
362
|
+
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
363
|
+
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
364
|
+
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
365
|
+
"g"
|
|
366
|
+
);
|
|
367
|
+
};
|
|
368
|
+
createSupportsRuleRe("::slotted");
|
|
369
|
+
createSupportsRuleRe(":host");
|
|
370
|
+
createSupportsRuleRe(":host-context");
|
|
225
371
|
var parsePropertyValue = (propValue, propType) => {
|
|
226
372
|
if (propValue != null && !isComplexType(propValue)) {
|
|
227
373
|
if (propType & 4 /* Boolean */) {
|
|
228
374
|
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
229
375
|
}
|
|
230
376
|
if (propType & 2 /* Number */) {
|
|
231
|
-
return parseFloat(propValue);
|
|
377
|
+
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
232
378
|
}
|
|
233
379
|
if (propType & 1 /* String */) {
|
|
234
380
|
return String(propValue);
|
|
@@ -245,9 +391,9 @@ var createEvent = (ref, name, flags) => {
|
|
|
245
391
|
return {
|
|
246
392
|
emit: (detail) => {
|
|
247
393
|
return emitEvent(elm, name, {
|
|
248
|
-
bubbles:
|
|
249
|
-
composed:
|
|
250
|
-
cancelable:
|
|
394
|
+
bubbles: true,
|
|
395
|
+
composed: true,
|
|
396
|
+
cancelable: true,
|
|
251
397
|
detail
|
|
252
398
|
});
|
|
253
399
|
}
|
|
@@ -277,7 +423,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
277
423
|
var _a;
|
|
278
424
|
const scopeId2 = getScopeId(cmpMeta);
|
|
279
425
|
const style = styles.get(scopeId2);
|
|
280
|
-
|
|
426
|
+
if (!win.document) {
|
|
427
|
+
return scopeId2;
|
|
428
|
+
}
|
|
429
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
281
430
|
if (style) {
|
|
282
431
|
if (typeof style === "string") {
|
|
283
432
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -288,13 +437,40 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
288
437
|
}
|
|
289
438
|
if (!appliedStyles.has(scopeId2)) {
|
|
290
439
|
{
|
|
291
|
-
styleElm =
|
|
440
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
292
441
|
styleElm.innerHTML = style;
|
|
293
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
442
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
294
443
|
if (nonce != null) {
|
|
295
444
|
styleElm.setAttribute("nonce", nonce);
|
|
296
445
|
}
|
|
297
|
-
|
|
446
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
447
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
448
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
449
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
450
|
+
styleContainerNode.insertBefore(
|
|
451
|
+
styleElm,
|
|
452
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
453
|
+
);
|
|
454
|
+
} else if ("host" in styleContainerNode) {
|
|
455
|
+
if (supportsConstructableStylesheets) {
|
|
456
|
+
const stylesheet = new CSSStyleSheet();
|
|
457
|
+
stylesheet.replaceSync(style);
|
|
458
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
459
|
+
} else {
|
|
460
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
461
|
+
if (existingStyleContainer) {
|
|
462
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
463
|
+
} else {
|
|
464
|
+
styleContainerNode.prepend(styleElm);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
} else {
|
|
468
|
+
styleContainerNode.append(styleElm);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
472
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
473
|
+
}
|
|
298
474
|
}
|
|
299
475
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
300
476
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -324,121 +500,148 @@ var attachStyles = (hostRef) => {
|
|
|
324
500
|
endAttachStyles();
|
|
325
501
|
};
|
|
326
502
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
327
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
328
|
-
if (oldValue
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
503
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
504
|
+
if (oldValue === newValue) {
|
|
505
|
+
return;
|
|
506
|
+
}
|
|
507
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
508
|
+
let ln = memberName.toLowerCase();
|
|
509
|
+
if (memberName === "class") {
|
|
510
|
+
const classList = elm.classList;
|
|
511
|
+
const oldClasses = parseClassList(oldValue);
|
|
512
|
+
let newClasses = parseClassList(newValue);
|
|
513
|
+
{
|
|
335
514
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
336
515
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
elm.style.removeProperty(prop);
|
|
343
|
-
} else {
|
|
344
|
-
elm.style[prop] = "";
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
for (const prop in newValue) {
|
|
350
|
-
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
516
|
+
}
|
|
517
|
+
} else if (memberName === "style") {
|
|
518
|
+
{
|
|
519
|
+
for (const prop in oldValue) {
|
|
520
|
+
if (!newValue || newValue[prop] == null) {
|
|
351
521
|
if (prop.includes("-")) {
|
|
352
|
-
elm.style.
|
|
522
|
+
elm.style.removeProperty(prop);
|
|
353
523
|
} else {
|
|
354
|
-
elm.style[prop] =
|
|
524
|
+
elm.style[prop] = "";
|
|
355
525
|
}
|
|
356
526
|
}
|
|
357
527
|
}
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
} else if (isMemberInElement(win, ln)) {
|
|
366
|
-
memberName = ln.slice(2);
|
|
367
|
-
} else {
|
|
368
|
-
memberName = ln[2] + memberName.slice(3);
|
|
369
|
-
}
|
|
370
|
-
if (oldValue || newValue) {
|
|
371
|
-
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
372
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
373
|
-
if (oldValue) {
|
|
374
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
375
|
-
}
|
|
376
|
-
if (newValue) {
|
|
377
|
-
plt.ael(elm, memberName, newValue, capture);
|
|
528
|
+
}
|
|
529
|
+
for (const prop in newValue) {
|
|
530
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
531
|
+
if (prop.includes("-")) {
|
|
532
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
533
|
+
} else {
|
|
534
|
+
elm.style[prop] = newValue[prop];
|
|
378
535
|
}
|
|
379
536
|
}
|
|
537
|
+
}
|
|
538
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
539
|
+
if (newValue) {
|
|
540
|
+
newValue(elm);
|
|
541
|
+
}
|
|
542
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
543
|
+
if (memberName[2] === "-") {
|
|
544
|
+
memberName = memberName.slice(3);
|
|
545
|
+
} else if (isMemberInElement(win, ln)) {
|
|
546
|
+
memberName = ln.slice(2);
|
|
380
547
|
} else {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
548
|
+
memberName = ln[2] + memberName.slice(3);
|
|
549
|
+
}
|
|
550
|
+
if (oldValue || newValue) {
|
|
551
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
552
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
553
|
+
if (oldValue) {
|
|
554
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
555
|
+
}
|
|
556
|
+
if (newValue) {
|
|
557
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
} else {
|
|
561
|
+
const isComplex = isComplexType(newValue);
|
|
562
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
563
|
+
try {
|
|
564
|
+
if (!elm.tagName.includes("-")) {
|
|
565
|
+
const n = newValue == null ? "" : newValue;
|
|
566
|
+
if (memberName === "list") {
|
|
567
|
+
isProp = false;
|
|
568
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
569
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
389
570
|
elm[memberName] = n;
|
|
571
|
+
} else {
|
|
572
|
+
elm.setAttribute(memberName, n);
|
|
390
573
|
}
|
|
391
|
-
} else {
|
|
392
|
-
elm[memberName] = newValue;
|
|
393
574
|
}
|
|
394
|
-
}
|
|
575
|
+
} else if (elm[memberName] !== newValue) {
|
|
576
|
+
elm[memberName] = newValue;
|
|
395
577
|
}
|
|
578
|
+
} catch (e) {
|
|
396
579
|
}
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
580
|
+
}
|
|
581
|
+
let xlink = false;
|
|
582
|
+
{
|
|
583
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
584
|
+
memberName = ln;
|
|
585
|
+
xlink = true;
|
|
403
586
|
}
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
408
|
-
} else {
|
|
409
|
-
elm.removeAttribute(memberName);
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
413
|
-
newValue = newValue === true ? "" : newValue;
|
|
587
|
+
}
|
|
588
|
+
if (newValue == null || newValue === false) {
|
|
589
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
414
590
|
if (xlink) {
|
|
415
|
-
elm.
|
|
591
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
416
592
|
} else {
|
|
417
|
-
elm.
|
|
593
|
+
elm.removeAttribute(memberName);
|
|
418
594
|
}
|
|
419
595
|
}
|
|
596
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
597
|
+
newValue = newValue === true ? "" : newValue;
|
|
598
|
+
if (xlink) {
|
|
599
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
600
|
+
} else {
|
|
601
|
+
elm.setAttribute(memberName, newValue);
|
|
602
|
+
}
|
|
420
603
|
}
|
|
421
604
|
}
|
|
422
605
|
};
|
|
423
606
|
var parseClassListRegex = /\s/;
|
|
424
|
-
var parseClassList = (value) =>
|
|
607
|
+
var parseClassList = (value) => {
|
|
608
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
609
|
+
value = value.baseVal;
|
|
610
|
+
}
|
|
611
|
+
if (!value || typeof value !== "string") {
|
|
612
|
+
return [];
|
|
613
|
+
}
|
|
614
|
+
return value.split(parseClassListRegex);
|
|
615
|
+
};
|
|
425
616
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
426
617
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
427
618
|
|
|
428
619
|
// src/runtime/vdom/update-element.ts
|
|
429
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
620
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
430
621
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
431
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
432
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
622
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
623
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
433
624
|
{
|
|
434
625
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
435
626
|
if (!(memberName in newVnodeAttrs)) {
|
|
436
|
-
setAccessor(
|
|
627
|
+
setAccessor(
|
|
628
|
+
elm,
|
|
629
|
+
memberName,
|
|
630
|
+
oldVnodeAttrs[memberName],
|
|
631
|
+
void 0,
|
|
632
|
+
isSvgMode2,
|
|
633
|
+
newVnode.$flags$);
|
|
437
634
|
}
|
|
438
635
|
}
|
|
439
636
|
}
|
|
440
637
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
441
|
-
setAccessor(
|
|
638
|
+
setAccessor(
|
|
639
|
+
elm,
|
|
640
|
+
memberName,
|
|
641
|
+
oldVnodeAttrs[memberName],
|
|
642
|
+
newVnodeAttrs[memberName],
|
|
643
|
+
isSvgMode2,
|
|
644
|
+
newVnode.$flags$);
|
|
442
645
|
}
|
|
443
646
|
};
|
|
444
647
|
function sortedAttrNames(attrNames) {
|
|
@@ -450,24 +653,25 @@ function sortedAttrNames(attrNames) {
|
|
|
450
653
|
attrNames
|
|
451
654
|
);
|
|
452
655
|
}
|
|
453
|
-
|
|
454
|
-
// src/runtime/vdom/vdom-render.ts
|
|
455
|
-
var scopeId;
|
|
456
656
|
var hostTagName;
|
|
457
|
-
var useNativeShadowDom = false;
|
|
458
657
|
var isSvgMode = false;
|
|
459
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
658
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
460
659
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
461
660
|
let i2 = 0;
|
|
462
661
|
let elm;
|
|
463
662
|
let childNode;
|
|
464
663
|
if (newVNode2.$text$ !== null) {
|
|
465
|
-
elm = newVNode2.$elm$ =
|
|
664
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
466
665
|
} else {
|
|
467
666
|
if (!isSvgMode) {
|
|
468
667
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
469
668
|
}
|
|
470
|
-
|
|
669
|
+
if (!win.document) {
|
|
670
|
+
throw new Error(
|
|
671
|
+
"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."
|
|
672
|
+
);
|
|
673
|
+
}
|
|
674
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
471
675
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
472
676
|
newVNode2.$tag$
|
|
473
677
|
) ;
|
|
@@ -477,9 +681,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
477
681
|
{
|
|
478
682
|
updateElement(null, newVNode2, isSvgMode);
|
|
479
683
|
}
|
|
480
|
-
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
481
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
482
|
-
}
|
|
483
684
|
if (newVNode2.$children$) {
|
|
484
685
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
485
686
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -616,6 +817,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
616
817
|
if (!isInitialRender) {
|
|
617
818
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
618
819
|
}
|
|
820
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
821
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
822
|
+
}
|
|
619
823
|
return true;
|
|
620
824
|
}
|
|
621
825
|
return false;
|
|
@@ -631,9 +835,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
631
835
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
632
836
|
}
|
|
633
837
|
{
|
|
634
|
-
|
|
635
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
636
|
-
}
|
|
838
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
637
839
|
}
|
|
638
840
|
if (oldChildren !== null && newChildren !== null) {
|
|
639
841
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -642,7 +844,10 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
642
844
|
elm.textContent = "";
|
|
643
845
|
}
|
|
644
846
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
645
|
-
} else if (
|
|
847
|
+
} else if (
|
|
848
|
+
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
849
|
+
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
850
|
+
) {
|
|
646
851
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
647
852
|
}
|
|
648
853
|
if (isSvgMode && tag === "svg") {
|
|
@@ -659,14 +864,16 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
659
864
|
}
|
|
660
865
|
};
|
|
661
866
|
var insertBefore = (parent, newNode, reference) => {
|
|
662
|
-
|
|
663
|
-
|
|
867
|
+
{
|
|
868
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
869
|
+
}
|
|
664
870
|
};
|
|
665
871
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
666
872
|
const hostElm = hostRef.$hostElement$;
|
|
667
873
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
668
874
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
669
|
-
const
|
|
875
|
+
const isHostElement = isHost(renderFnResults);
|
|
876
|
+
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
670
877
|
hostTagName = hostElm.tagName;
|
|
671
878
|
if (cmpMeta.$attrsToReflect$) {
|
|
672
879
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
@@ -685,17 +892,20 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
685
892
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
686
893
|
hostRef.$vnode$ = rootVnode;
|
|
687
894
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
688
|
-
{
|
|
689
|
-
scopeId = hostElm["s-sc"];
|
|
690
|
-
}
|
|
691
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
692
895
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
693
896
|
};
|
|
694
897
|
|
|
695
898
|
// src/runtime/update-component.ts
|
|
696
899
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
697
900
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
698
|
-
ancestorComponent["s-p"].push(
|
|
901
|
+
const index = ancestorComponent["s-p"].push(
|
|
902
|
+
new Promise(
|
|
903
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
904
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
905
|
+
r();
|
|
906
|
+
}
|
|
907
|
+
)
|
|
908
|
+
);
|
|
699
909
|
}
|
|
700
910
|
};
|
|
701
911
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -724,21 +934,22 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
724
934
|
{
|
|
725
935
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
726
936
|
if (hostRef.$queuedListeners$) {
|
|
727
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
937
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
728
938
|
hostRef.$queuedListeners$ = void 0;
|
|
729
939
|
}
|
|
730
940
|
}
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
}
|
|
735
|
-
{
|
|
736
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
|
941
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
942
|
+
} else {
|
|
943
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
737
944
|
}
|
|
945
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
738
946
|
endSchedule();
|
|
739
947
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
740
948
|
};
|
|
741
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn)
|
|
949
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
|
950
|
+
console.error(err2);
|
|
951
|
+
fn();
|
|
952
|
+
}) : fn();
|
|
742
953
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
743
954
|
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
744
955
|
var _a;
|
|
@@ -774,7 +985,7 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
774
985
|
try {
|
|
775
986
|
instance = instance.render() ;
|
|
776
987
|
{
|
|
777
|
-
hostRef.$flags$ &=
|
|
988
|
+
hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
|
|
778
989
|
}
|
|
779
990
|
{
|
|
780
991
|
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
@@ -797,17 +1008,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
797
1008
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
798
1009
|
const instance = hostRef.$lazyInstance$ ;
|
|
799
1010
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
800
|
-
|
|
801
|
-
safeCall(instance, "componentDidRender");
|
|
802
|
-
}
|
|
1011
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
803
1012
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
804
1013
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
805
1014
|
{
|
|
806
1015
|
addHydratedFlag(elm);
|
|
807
1016
|
}
|
|
808
|
-
|
|
809
|
-
safeCall(instance, "componentDidLoad");
|
|
810
|
-
}
|
|
1017
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
811
1018
|
endPostUpdate();
|
|
812
1019
|
{
|
|
813
1020
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -816,6 +1023,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
816
1023
|
}
|
|
817
1024
|
}
|
|
818
1025
|
} else {
|
|
1026
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
819
1027
|
endPostUpdate();
|
|
820
1028
|
}
|
|
821
1029
|
{
|
|
@@ -829,21 +1037,18 @@ var postUpdateComponent = (hostRef) => {
|
|
|
829
1037
|
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
830
1038
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
831
1039
|
}
|
|
832
|
-
hostRef.$flags$ &=
|
|
1040
|
+
hostRef.$flags$ &= -517;
|
|
833
1041
|
}
|
|
834
1042
|
};
|
|
835
1043
|
var appDidLoad = (who) => {
|
|
836
|
-
{
|
|
837
|
-
addHydratedFlag(doc.documentElement);
|
|
838
|
-
}
|
|
839
1044
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
840
1045
|
};
|
|
841
|
-
var safeCall = (instance, method, arg) => {
|
|
1046
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
842
1047
|
if (instance && instance[method]) {
|
|
843
1048
|
try {
|
|
844
1049
|
return instance[method](arg);
|
|
845
1050
|
} catch (e) {
|
|
846
|
-
consoleError(e);
|
|
1051
|
+
consoleError(e, elm);
|
|
847
1052
|
}
|
|
848
1053
|
}
|
|
849
1054
|
return void 0;
|
|
@@ -859,7 +1064,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
859
1064
|
const hostRef = getHostRef(ref);
|
|
860
1065
|
if (!hostRef) {
|
|
861
1066
|
throw new Error(
|
|
862
|
-
`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/
|
|
1067
|
+
`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).`
|
|
863
1068
|
);
|
|
864
1069
|
}
|
|
865
1070
|
const elm = hostRef.$hostElement$ ;
|
|
@@ -885,6 +1090,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
885
1090
|
}
|
|
886
1091
|
}
|
|
887
1092
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1093
|
+
if (instance.componentShouldUpdate) {
|
|
1094
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1095
|
+
return;
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
888
1098
|
scheduleUpdate(hostRef, false);
|
|
889
1099
|
}
|
|
890
1100
|
}
|
|
@@ -893,43 +1103,96 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
893
1103
|
|
|
894
1104
|
// src/runtime/proxy-component.ts
|
|
895
1105
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
896
|
-
var _a;
|
|
1106
|
+
var _a, _b;
|
|
897
1107
|
const prototype = Cstr.prototype;
|
|
898
1108
|
if (cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
|
|
899
|
-
FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach(
|
|
900
|
-
|
|
1109
|
+
FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
|
|
1110
|
+
Object.defineProperty(prototype, cbName, {
|
|
901
1111
|
value(...args) {
|
|
902
1112
|
const hostRef = getHostRef(this);
|
|
903
1113
|
const instance = hostRef.$lazyInstance$ ;
|
|
904
1114
|
if (!instance) {
|
|
905
|
-
hostRef.$onReadyPromise$.then((
|
|
906
|
-
const cb =
|
|
907
|
-
typeof cb === "function" && cb.call(
|
|
1115
|
+
hostRef.$onReadyPromise$.then((asyncInstance) => {
|
|
1116
|
+
const cb = asyncInstance[cbName];
|
|
1117
|
+
typeof cb === "function" && cb.call(asyncInstance, ...args);
|
|
908
1118
|
});
|
|
909
1119
|
} else {
|
|
910
|
-
const cb = instance[cbName];
|
|
1120
|
+
const cb = instance[cbName] ;
|
|
911
1121
|
typeof cb === "function" && cb.call(instance, ...args);
|
|
912
1122
|
}
|
|
913
1123
|
}
|
|
914
|
-
})
|
|
915
|
-
);
|
|
1124
|
+
});
|
|
1125
|
+
});
|
|
916
1126
|
}
|
|
917
|
-
if (cmpMeta.$members$) {
|
|
918
|
-
if (Cstr.watchers) {
|
|
1127
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
1128
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
919
1129
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
920
1130
|
}
|
|
921
|
-
const members = Object.entries(cmpMeta.$members$);
|
|
1131
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
922
1132
|
members.map(([memberName, [memberFlags]]) => {
|
|
923
1133
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1134
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1135
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1136
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1137
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1138
|
+
Object.defineProperty(prototype, memberName, {
|
|
1139
|
+
get() {
|
|
1140
|
+
{
|
|
1141
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1142
|
+
return getValue(this, memberName);
|
|
1143
|
+
}
|
|
1144
|
+
const ref = getHostRef(this);
|
|
1145
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1146
|
+
if (!instance) return;
|
|
1147
|
+
return instance[memberName];
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
|
+
configurable: true,
|
|
1151
|
+
enumerable: true
|
|
1152
|
+
});
|
|
1153
|
+
}
|
|
924
1154
|
Object.defineProperty(prototype, memberName, {
|
|
925
|
-
get() {
|
|
926
|
-
return getValue(this, memberName);
|
|
927
|
-
},
|
|
928
1155
|
set(newValue) {
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
1156
|
+
const ref = getHostRef(this);
|
|
1157
|
+
if (origSetter) {
|
|
1158
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1159
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1160
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1161
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1162
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1163
|
+
}
|
|
1164
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1165
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1166
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1167
|
+
return;
|
|
1168
|
+
}
|
|
1169
|
+
{
|
|
1170
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1171
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1172
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1173
|
+
ref.$onReadyPromise$.then(() => {
|
|
1174
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1175
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1176
|
+
}
|
|
1177
|
+
});
|
|
1178
|
+
}
|
|
1179
|
+
return;
|
|
1180
|
+
}
|
|
1181
|
+
const setterSetVal = () => {
|
|
1182
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1183
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1184
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1185
|
+
}
|
|
1186
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1187
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1188
|
+
};
|
|
1189
|
+
if (ref.$lazyInstance$) {
|
|
1190
|
+
setterSetVal();
|
|
1191
|
+
} else {
|
|
1192
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
933
1196
|
});
|
|
934
1197
|
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
935
1198
|
Object.defineProperty(prototype, memberName, {
|
|
@@ -950,10 +1213,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
950
1213
|
plt.jmp(() => {
|
|
951
1214
|
var _a2;
|
|
952
1215
|
const propName = attrNameToPropName.get(attrName);
|
|
953
|
-
if (this.hasOwnProperty(propName)) {
|
|
1216
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
954
1217
|
newValue = this[propName];
|
|
955
1218
|
delete this[propName];
|
|
956
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1219
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1220
|
+
this[propName] == newValue) {
|
|
957
1221
|
return;
|
|
958
1222
|
} else if (propName == null) {
|
|
959
1223
|
const hostRef = getHostRef(this);
|
|
@@ -969,12 +1233,16 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
969
1233
|
}
|
|
970
1234
|
return;
|
|
971
1235
|
}
|
|
972
|
-
|
|
1236
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1237
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1238
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1239
|
+
this[propName] = newValue;
|
|
1240
|
+
}
|
|
973
1241
|
});
|
|
974
1242
|
};
|
|
975
1243
|
Cstr.observedAttributes = Array.from(
|
|
976
1244
|
/* @__PURE__ */ new Set([
|
|
977
|
-
...Object.keys((
|
|
1245
|
+
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
978
1246
|
...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
|
|
979
1247
|
var _a2;
|
|
980
1248
|
const attrName = m[1] || propName;
|
|
@@ -998,7 +1266,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
998
1266
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
999
1267
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1000
1268
|
if (bundleId) {
|
|
1001
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1269
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1002
1270
|
if (CstrImport && "then" in CstrImport) {
|
|
1003
1271
|
const endLoad = uniqueTime();
|
|
1004
1272
|
Cstr = await CstrImport;
|
|
@@ -1023,23 +1291,26 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1023
1291
|
try {
|
|
1024
1292
|
new Cstr(hostRef);
|
|
1025
1293
|
} catch (e) {
|
|
1026
|
-
consoleError(e);
|
|
1294
|
+
consoleError(e, elm);
|
|
1027
1295
|
}
|
|
1028
1296
|
{
|
|
1029
|
-
hostRef.$flags$ &=
|
|
1297
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1030
1298
|
}
|
|
1031
1299
|
{
|
|
1032
1300
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1033
1301
|
}
|
|
1034
1302
|
endNewInstance();
|
|
1035
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1303
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1036
1304
|
} else {
|
|
1037
1305
|
Cstr = elm.constructor;
|
|
1038
1306
|
const cmpTag = elm.localName;
|
|
1039
1307
|
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1040
1308
|
}
|
|
1041
1309
|
if (Cstr && Cstr.style) {
|
|
1042
|
-
let style
|
|
1310
|
+
let style;
|
|
1311
|
+
if (typeof Cstr.style === "string") {
|
|
1312
|
+
style = Cstr.style;
|
|
1313
|
+
}
|
|
1043
1314
|
const scopeId2 = getScopeId(cmpMeta);
|
|
1044
1315
|
if (!styles.has(scopeId2)) {
|
|
1045
1316
|
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
@@ -1056,9 +1327,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1056
1327
|
schedule();
|
|
1057
1328
|
}
|
|
1058
1329
|
};
|
|
1059
|
-
var fireConnectedCallback = (instance) => {
|
|
1330
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1060
1331
|
{
|
|
1061
|
-
safeCall(instance, "connectedCallback");
|
|
1332
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1062
1333
|
}
|
|
1063
1334
|
};
|
|
1064
1335
|
|
|
@@ -1094,17 +1365,17 @@ var connectedCallback = (elm) => {
|
|
|
1094
1365
|
} else {
|
|
1095
1366
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1096
1367
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1097
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1368
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1098
1369
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1099
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1370
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1100
1371
|
}
|
|
1101
1372
|
}
|
|
1102
1373
|
endConnected();
|
|
1103
1374
|
}
|
|
1104
1375
|
};
|
|
1105
|
-
var disconnectInstance = (instance) => {
|
|
1376
|
+
var disconnectInstance = (instance, elm) => {
|
|
1106
1377
|
{
|
|
1107
|
-
safeCall(instance, "disconnectedCallback");
|
|
1378
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1108
1379
|
}
|
|
1109
1380
|
};
|
|
1110
1381
|
var disconnectedCallback = async (elm) => {
|
|
@@ -1117,28 +1388,38 @@ var disconnectedCallback = async (elm) => {
|
|
|
1117
1388
|
}
|
|
1118
1389
|
}
|
|
1119
1390
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1120
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1391
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1121
1392
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1122
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1393
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1123
1394
|
}
|
|
1124
1395
|
}
|
|
1396
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1397
|
+
rootAppliedStyles.delete(elm);
|
|
1398
|
+
}
|
|
1399
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1400
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1401
|
+
}
|
|
1125
1402
|
};
|
|
1126
1403
|
|
|
1127
1404
|
// src/runtime/bootstrap-lazy.ts
|
|
1128
1405
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1129
1406
|
var _a;
|
|
1407
|
+
if (!win.document) {
|
|
1408
|
+
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
1409
|
+
return;
|
|
1410
|
+
}
|
|
1130
1411
|
const endBootstrap = createTime();
|
|
1131
1412
|
const cmpTags = [];
|
|
1132
1413
|
const exclude = options.exclude || [];
|
|
1133
1414
|
const customElements2 = win.customElements;
|
|
1134
|
-
const head =
|
|
1415
|
+
const head = win.document.head;
|
|
1135
1416
|
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
1136
|
-
const dataStyles = /* @__PURE__ */
|
|
1417
|
+
const dataStyles = /* @__PURE__ */ win.document.createElement("style");
|
|
1137
1418
|
const deferredConnectedCallbacks = [];
|
|
1138
1419
|
let appLoadFallback;
|
|
1139
1420
|
let isBootstrapping = true;
|
|
1140
1421
|
Object.assign(plt, options);
|
|
1141
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./",
|
|
1422
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
1142
1423
|
let hasSlotRelocation = false;
|
|
1143
1424
|
lazyBundles.map((lazyBundle) => {
|
|
1144
1425
|
lazyBundle[1].map((compactMeta) => {
|
|
@@ -1169,20 +1450,34 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1169
1450
|
// StencilLazyHost
|
|
1170
1451
|
constructor(self) {
|
|
1171
1452
|
super(self);
|
|
1453
|
+
this.hasRegisteredEventListeners = false;
|
|
1172
1454
|
self = this;
|
|
1173
1455
|
registerHost(self, cmpMeta);
|
|
1174
1456
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1175
1457
|
{
|
|
1176
|
-
{
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1458
|
+
if (!self.shadowRoot) {
|
|
1459
|
+
{
|
|
1460
|
+
self.attachShadow({
|
|
1461
|
+
mode: "open",
|
|
1462
|
+
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
1463
|
+
});
|
|
1464
|
+
}
|
|
1465
|
+
} else {
|
|
1466
|
+
if (self.shadowRoot.mode !== "open") {
|
|
1467
|
+
throw new Error(
|
|
1468
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
1469
|
+
);
|
|
1470
|
+
}
|
|
1181
1471
|
}
|
|
1182
1472
|
}
|
|
1183
1473
|
}
|
|
1184
1474
|
}
|
|
1185
1475
|
connectedCallback() {
|
|
1476
|
+
const hostRef = getHostRef(this);
|
|
1477
|
+
if (!this.hasRegisteredEventListeners) {
|
|
1478
|
+
this.hasRegisteredEventListeners = true;
|
|
1479
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
1480
|
+
}
|
|
1186
1481
|
if (appLoadFallback) {
|
|
1187
1482
|
clearTimeout(appLoadFallback);
|
|
1188
1483
|
appLoadFallback = null;
|
|
@@ -1195,6 +1490,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1195
1490
|
}
|
|
1196
1491
|
disconnectedCallback() {
|
|
1197
1492
|
plt.jmp(() => disconnectedCallback(this));
|
|
1493
|
+
plt.raf(() => {
|
|
1494
|
+
var _a3;
|
|
1495
|
+
const hostRef = getHostRef(this);
|
|
1496
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1497
|
+
if (i2 > -1) {
|
|
1498
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1499
|
+
}
|
|
1500
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1501
|
+
delete hostRef.$vnode$.$elm$;
|
|
1502
|
+
}
|
|
1503
|
+
});
|
|
1198
1504
|
}
|
|
1199
1505
|
componentOnReady() {
|
|
1200
1506
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1218,11 +1524,11 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1218
1524
|
dataStyles.textContent += SLOT_FB_CSS;
|
|
1219
1525
|
}
|
|
1220
1526
|
{
|
|
1221
|
-
dataStyles.textContent += cmpTags + HYDRATED_CSS;
|
|
1527
|
+
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
1222
1528
|
}
|
|
1223
1529
|
if (dataStyles.innerHTML.length) {
|
|
1224
1530
|
dataStyles.setAttribute("data-styles", "");
|
|
1225
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
1531
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1226
1532
|
if (nonce != null) {
|
|
1227
1533
|
dataStyles.setAttribute("nonce", nonce);
|
|
1228
1534
|
}
|
|
@@ -1240,9 +1546,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1240
1546
|
endBootstrap();
|
|
1241
1547
|
};
|
|
1242
1548
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
1243
|
-
if (listeners) {
|
|
1549
|
+
if (listeners && win.document) {
|
|
1244
1550
|
listeners.map(([flags, name, method]) => {
|
|
1245
|
-
const target = getHostListenerTarget(elm, flags) ;
|
|
1551
|
+
const target = getHostListenerTarget(win.document, elm, flags) ;
|
|
1246
1552
|
const handler = hostListenerProxy(hostRef, method);
|
|
1247
1553
|
const opts = hostListenerOpts(flags);
|
|
1248
1554
|
plt.ael(target, name, handler, opts);
|
|
@@ -1261,11 +1567,13 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1261
1567
|
}
|
|
1262
1568
|
}
|
|
1263
1569
|
} catch (e) {
|
|
1264
|
-
consoleError(e);
|
|
1570
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1265
1571
|
}
|
|
1266
1572
|
};
|
|
1267
|
-
var getHostListenerTarget = (elm, flags) => {
|
|
1268
|
-
if (flags & 8 /* TargetWindow */)
|
|
1573
|
+
var getHostListenerTarget = (doc, elm, flags) => {
|
|
1574
|
+
if (flags & 8 /* TargetWindow */) {
|
|
1575
|
+
return win;
|
|
1576
|
+
}
|
|
1269
1577
|
return elm;
|
|
1270
1578
|
};
|
|
1271
1579
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
@@ -1276,145 +1584,6 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
1276
1584
|
// src/runtime/nonce.ts
|
|
1277
1585
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1278
1586
|
|
|
1279
|
-
// src/client/client-host-ref.ts
|
|
1280
|
-
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
1281
|
-
var getHostRef = (ref) => hostRefs.get(ref);
|
|
1282
|
-
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
1283
|
-
var registerHost = (hostElement, cmpMeta) => {
|
|
1284
|
-
const hostRef = {
|
|
1285
|
-
$flags$: 0,
|
|
1286
|
-
$hostElement$: hostElement,
|
|
1287
|
-
$cmpMeta$: cmpMeta,
|
|
1288
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
1289
|
-
};
|
|
1290
|
-
{
|
|
1291
|
-
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
1292
|
-
}
|
|
1293
|
-
{
|
|
1294
|
-
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
1295
|
-
hostElement["s-p"] = [];
|
|
1296
|
-
hostElement["s-rc"] = [];
|
|
1297
|
-
}
|
|
1298
|
-
addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$);
|
|
1299
|
-
return hostRefs.set(hostElement, hostRef);
|
|
1300
|
-
};
|
|
1301
|
-
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
1302
|
-
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
1303
|
-
|
|
1304
|
-
// src/client/client-load-module.ts
|
|
1305
|
-
var cmpModules = /* @__PURE__ */ new Map();
|
|
1306
|
-
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
1307
|
-
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
1308
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1309
|
-
if (!bundleId) {
|
|
1310
|
-
return void 0;
|
|
1311
|
-
}
|
|
1312
|
-
const module = cmpModules.get(bundleId) ;
|
|
1313
|
-
if (module) {
|
|
1314
|
-
return module[exportName];
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
1318
|
-
const processMod = importedModule => {
|
|
1319
|
-
cmpModules.set(bundleId, importedModule);
|
|
1320
|
-
return importedModule[exportName];
|
|
1321
|
-
}
|
|
1322
|
-
switch(bundleId) {
|
|
1323
|
-
|
|
1324
|
-
case 'cat-alert_30.cjs':
|
|
1325
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1326
|
-
/* webpackMode: "lazy" */
|
|
1327
|
-
'./cat-alert_30.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1331
|
-
/* @vite-ignore */
|
|
1332
|
-
/* webpackInclude: /\.entry\.js$/ */
|
|
1333
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1334
|
-
/* webpackMode: "lazy" */
|
|
1335
|
-
`./${bundleId}.entry.js${""}`
|
|
1336
|
-
)); }).then((importedModule) => {
|
|
1337
|
-
{
|
|
1338
|
-
cmpModules.set(bundleId, importedModule);
|
|
1339
|
-
}
|
|
1340
|
-
return importedModule[exportName];
|
|
1341
|
-
}, consoleError);
|
|
1342
|
-
};
|
|
1343
|
-
|
|
1344
|
-
// src/client/client-style.ts
|
|
1345
|
-
var styles = /* @__PURE__ */ new Map();
|
|
1346
|
-
var win = typeof window !== "undefined" ? window : {};
|
|
1347
|
-
var doc = win.document || { head: {} };
|
|
1348
|
-
var plt = {
|
|
1349
|
-
$flags$: 0,
|
|
1350
|
-
$resourcesUrl$: "",
|
|
1351
|
-
jmp: (h2) => h2(),
|
|
1352
|
-
raf: (h2) => requestAnimationFrame(h2),
|
|
1353
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
1354
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
1355
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
1356
|
-
};
|
|
1357
|
-
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
1358
|
-
let supportsListenerOptions2 = false;
|
|
1359
|
-
try {
|
|
1360
|
-
doc.addEventListener(
|
|
1361
|
-
"e",
|
|
1362
|
-
null,
|
|
1363
|
-
Object.defineProperty({}, "passive", {
|
|
1364
|
-
get() {
|
|
1365
|
-
supportsListenerOptions2 = true;
|
|
1366
|
-
}
|
|
1367
|
-
})
|
|
1368
|
-
);
|
|
1369
|
-
} catch (e) {
|
|
1370
|
-
}
|
|
1371
|
-
return supportsListenerOptions2;
|
|
1372
|
-
})();
|
|
1373
|
-
var promiseResolve = (v) => Promise.resolve(v);
|
|
1374
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
1375
|
-
try {
|
|
1376
|
-
new CSSStyleSheet();
|
|
1377
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
1378
|
-
} catch (e) {
|
|
1379
|
-
}
|
|
1380
|
-
return false;
|
|
1381
|
-
})() ;
|
|
1382
|
-
var queuePending = false;
|
|
1383
|
-
var queueDomReads = [];
|
|
1384
|
-
var queueDomWrites = [];
|
|
1385
|
-
var queueTask = (queue, write) => (cb) => {
|
|
1386
|
-
queue.push(cb);
|
|
1387
|
-
if (!queuePending) {
|
|
1388
|
-
queuePending = true;
|
|
1389
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
1390
|
-
nextTick(flush);
|
|
1391
|
-
} else {
|
|
1392
|
-
plt.raf(flush);
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1395
|
-
};
|
|
1396
|
-
var consume = (queue) => {
|
|
1397
|
-
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
1398
|
-
try {
|
|
1399
|
-
queue[i2](performance.now());
|
|
1400
|
-
} catch (e) {
|
|
1401
|
-
consoleError(e);
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
queue.length = 0;
|
|
1405
|
-
};
|
|
1406
|
-
var flush = () => {
|
|
1407
|
-
consume(queueDomReads);
|
|
1408
|
-
{
|
|
1409
|
-
consume(queueDomWrites);
|
|
1410
|
-
if (queuePending = queueDomReads.length > 0) {
|
|
1411
|
-
plt.raf(flush);
|
|
1412
|
-
}
|
|
1413
|
-
}
|
|
1414
|
-
};
|
|
1415
|
-
var nextTick = (cb) => promiseResolve().then(cb);
|
|
1416
|
-
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
1417
|
-
|
|
1418
1587
|
exports.Host = Host;
|
|
1419
1588
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1420
1589
|
exports.createEvent = createEvent;
|
|
@@ -1423,5 +1592,6 @@ exports.h = h;
|
|
|
1423
1592
|
exports.promiseResolve = promiseResolve;
|
|
1424
1593
|
exports.registerInstance = registerInstance;
|
|
1425
1594
|
exports.setNonce = setNonce;
|
|
1595
|
+
//# sourceMappingURL=index-jGQAsDy6.js.map
|
|
1426
1596
|
|
|
1427
|
-
//# sourceMappingURL=index-
|
|
1597
|
+
//# sourceMappingURL=index-jGQAsDy6.js.map
|