@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
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
* @see https://floating-ui.com/docs/virtual-elements
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
const sides = ['top', 'right', 'bottom', 'left'];
|
|
7
|
-
const alignments = ['start', 'end'];
|
|
8
|
-
const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
9
6
|
const min = Math.min;
|
|
10
7
|
const max = Math.max;
|
|
11
8
|
const round = Math.round;
|
|
@@ -347,191 +344,6 @@ async function detectOverflow(state, options) {
|
|
|
347
344
|
};
|
|
348
345
|
}
|
|
349
346
|
|
|
350
|
-
/**
|
|
351
|
-
* Provides data to position an inner element of the floating element so that it
|
|
352
|
-
* appears centered to the reference element.
|
|
353
|
-
* @see https://floating-ui.com/docs/arrow
|
|
354
|
-
*/
|
|
355
|
-
const arrow = options => ({
|
|
356
|
-
name: 'arrow',
|
|
357
|
-
options,
|
|
358
|
-
async fn(state) {
|
|
359
|
-
const {
|
|
360
|
-
x,
|
|
361
|
-
y,
|
|
362
|
-
placement,
|
|
363
|
-
rects,
|
|
364
|
-
platform,
|
|
365
|
-
elements,
|
|
366
|
-
middlewareData
|
|
367
|
-
} = state;
|
|
368
|
-
// Since `element` is required, we don't Partial<> the type.
|
|
369
|
-
const {
|
|
370
|
-
element,
|
|
371
|
-
padding = 0
|
|
372
|
-
} = evaluate(options, state) || {};
|
|
373
|
-
if (element == null) {
|
|
374
|
-
return {};
|
|
375
|
-
}
|
|
376
|
-
const paddingObject = getPaddingObject(padding);
|
|
377
|
-
const coords = {
|
|
378
|
-
x,
|
|
379
|
-
y
|
|
380
|
-
};
|
|
381
|
-
const axis = getAlignmentAxis(placement);
|
|
382
|
-
const length = getAxisLength(axis);
|
|
383
|
-
const arrowDimensions = await platform.getDimensions(element);
|
|
384
|
-
const isYAxis = axis === 'y';
|
|
385
|
-
const minProp = isYAxis ? 'top' : 'left';
|
|
386
|
-
const maxProp = isYAxis ? 'bottom' : 'right';
|
|
387
|
-
const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
|
|
388
|
-
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
389
|
-
const startDiff = coords[axis] - rects.reference[axis];
|
|
390
|
-
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
|
391
|
-
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
392
|
-
|
|
393
|
-
// DOM platform can return `window` as the `offsetParent`.
|
|
394
|
-
if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
|
|
395
|
-
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
396
|
-
}
|
|
397
|
-
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
398
|
-
|
|
399
|
-
// If the padding is large enough that it causes the arrow to no longer be
|
|
400
|
-
// centered, modify the padding so that it is centered.
|
|
401
|
-
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
|
402
|
-
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
|
403
|
-
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
|
404
|
-
|
|
405
|
-
// Make sure the arrow doesn't overflow the floating element if the center
|
|
406
|
-
// point is outside the floating element's bounds.
|
|
407
|
-
const min$1 = minPadding;
|
|
408
|
-
const max = clientSize - arrowDimensions[length] - maxPadding;
|
|
409
|
-
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
410
|
-
const offset = clamp(min$1, center, max);
|
|
411
|
-
|
|
412
|
-
// If the reference is small enough that the arrow's padding causes it to
|
|
413
|
-
// to point to nothing for an aligned placement, adjust the offset of the
|
|
414
|
-
// floating element itself. To ensure `shift()` continues to take action,
|
|
415
|
-
// a single reset is performed when this is true.
|
|
416
|
-
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
417
|
-
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
|
418
|
-
return {
|
|
419
|
-
[axis]: coords[axis] + alignmentOffset,
|
|
420
|
-
data: {
|
|
421
|
-
[axis]: offset,
|
|
422
|
-
centerOffset: center - offset - alignmentOffset,
|
|
423
|
-
...(shouldAddOffset && {
|
|
424
|
-
alignmentOffset
|
|
425
|
-
})
|
|
426
|
-
},
|
|
427
|
-
reset: shouldAddOffset
|
|
428
|
-
};
|
|
429
|
-
}
|
|
430
|
-
});
|
|
431
|
-
|
|
432
|
-
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
433
|
-
const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
|
|
434
|
-
return allowedPlacementsSortedByAlignment.filter(placement => {
|
|
435
|
-
if (alignment) {
|
|
436
|
-
return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
|
|
437
|
-
}
|
|
438
|
-
return true;
|
|
439
|
-
});
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* Optimizes the visibility of the floating element by choosing the placement
|
|
443
|
-
* that has the most space available automatically, without needing to specify a
|
|
444
|
-
* preferred placement. Alternative to `flip`.
|
|
445
|
-
* @see https://floating-ui.com/docs/autoPlacement
|
|
446
|
-
*/
|
|
447
|
-
const autoPlacement = function (options) {
|
|
448
|
-
if (options === void 0) {
|
|
449
|
-
options = {};
|
|
450
|
-
}
|
|
451
|
-
return {
|
|
452
|
-
name: 'autoPlacement',
|
|
453
|
-
options,
|
|
454
|
-
async fn(state) {
|
|
455
|
-
var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
|
|
456
|
-
const {
|
|
457
|
-
rects,
|
|
458
|
-
middlewareData,
|
|
459
|
-
placement,
|
|
460
|
-
platform,
|
|
461
|
-
elements
|
|
462
|
-
} = state;
|
|
463
|
-
const {
|
|
464
|
-
crossAxis = false,
|
|
465
|
-
alignment,
|
|
466
|
-
allowedPlacements = placements,
|
|
467
|
-
autoAlignment = true,
|
|
468
|
-
...detectOverflowOptions
|
|
469
|
-
} = evaluate(options, state);
|
|
470
|
-
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
471
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
472
|
-
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
|
|
473
|
-
const currentPlacement = placements$1[currentIndex];
|
|
474
|
-
if (currentPlacement == null) {
|
|
475
|
-
return {};
|
|
476
|
-
}
|
|
477
|
-
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
|
478
|
-
|
|
479
|
-
// Make `computeCoords` start from the right place.
|
|
480
|
-
if (placement !== currentPlacement) {
|
|
481
|
-
return {
|
|
482
|
-
reset: {
|
|
483
|
-
placement: placements$1[0]
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
|
-
}
|
|
487
|
-
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
|
488
|
-
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
|
|
489
|
-
placement: currentPlacement,
|
|
490
|
-
overflows: currentOverflows
|
|
491
|
-
}];
|
|
492
|
-
const nextPlacement = placements$1[currentIndex + 1];
|
|
493
|
-
|
|
494
|
-
// There are more placements to check.
|
|
495
|
-
if (nextPlacement) {
|
|
496
|
-
return {
|
|
497
|
-
data: {
|
|
498
|
-
index: currentIndex + 1,
|
|
499
|
-
overflows: allOverflows
|
|
500
|
-
},
|
|
501
|
-
reset: {
|
|
502
|
-
placement: nextPlacement
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
}
|
|
506
|
-
const placementsSortedByMostSpace = allOverflows.map(d => {
|
|
507
|
-
const alignment = getAlignment(d.placement);
|
|
508
|
-
return [d.placement, alignment && crossAxis ?
|
|
509
|
-
// Check along the mainAxis and main crossAxis side.
|
|
510
|
-
d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
|
|
511
|
-
// Check only the mainAxis.
|
|
512
|
-
d.overflows[0], d.overflows];
|
|
513
|
-
}).sort((a, b) => a[1] - b[1]);
|
|
514
|
-
const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
|
|
515
|
-
// Aligned placements should not check their opposite crossAxis
|
|
516
|
-
// side.
|
|
517
|
-
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
|
518
|
-
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
519
|
-
if (resetPlacement !== placement) {
|
|
520
|
-
return {
|
|
521
|
-
data: {
|
|
522
|
-
index: currentIndex + 1,
|
|
523
|
-
overflows: allOverflows
|
|
524
|
-
},
|
|
525
|
-
reset: {
|
|
526
|
-
placement: resetPlacement
|
|
527
|
-
}
|
|
528
|
-
};
|
|
529
|
-
}
|
|
530
|
-
return {};
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
|
-
};
|
|
534
|
-
|
|
535
347
|
/**
|
|
536
348
|
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
537
349
|
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
@@ -658,206 +470,6 @@ const flip$1 = function (options) {
|
|
|
658
470
|
};
|
|
659
471
|
};
|
|
660
472
|
|
|
661
|
-
function getSideOffsets(overflow, rect) {
|
|
662
|
-
return {
|
|
663
|
-
top: overflow.top - rect.height,
|
|
664
|
-
right: overflow.right - rect.width,
|
|
665
|
-
bottom: overflow.bottom - rect.height,
|
|
666
|
-
left: overflow.left - rect.width
|
|
667
|
-
};
|
|
668
|
-
}
|
|
669
|
-
function isAnySideFullyClipped(overflow) {
|
|
670
|
-
return sides.some(side => overflow[side] >= 0);
|
|
671
|
-
}
|
|
672
|
-
/**
|
|
673
|
-
* Provides data to hide the floating element in applicable situations, such as
|
|
674
|
-
* when it is not in the same clipping context as the reference element.
|
|
675
|
-
* @see https://floating-ui.com/docs/hide
|
|
676
|
-
*/
|
|
677
|
-
const hide = function (options) {
|
|
678
|
-
if (options === void 0) {
|
|
679
|
-
options = {};
|
|
680
|
-
}
|
|
681
|
-
return {
|
|
682
|
-
name: 'hide',
|
|
683
|
-
options,
|
|
684
|
-
async fn(state) {
|
|
685
|
-
const {
|
|
686
|
-
rects
|
|
687
|
-
} = state;
|
|
688
|
-
const {
|
|
689
|
-
strategy = 'referenceHidden',
|
|
690
|
-
...detectOverflowOptions
|
|
691
|
-
} = evaluate(options, state);
|
|
692
|
-
switch (strategy) {
|
|
693
|
-
case 'referenceHidden':
|
|
694
|
-
{
|
|
695
|
-
const overflow = await detectOverflow(state, {
|
|
696
|
-
...detectOverflowOptions,
|
|
697
|
-
elementContext: 'reference'
|
|
698
|
-
});
|
|
699
|
-
const offsets = getSideOffsets(overflow, rects.reference);
|
|
700
|
-
return {
|
|
701
|
-
data: {
|
|
702
|
-
referenceHiddenOffsets: offsets,
|
|
703
|
-
referenceHidden: isAnySideFullyClipped(offsets)
|
|
704
|
-
}
|
|
705
|
-
};
|
|
706
|
-
}
|
|
707
|
-
case 'escaped':
|
|
708
|
-
{
|
|
709
|
-
const overflow = await detectOverflow(state, {
|
|
710
|
-
...detectOverflowOptions,
|
|
711
|
-
altBoundary: true
|
|
712
|
-
});
|
|
713
|
-
const offsets = getSideOffsets(overflow, rects.floating);
|
|
714
|
-
return {
|
|
715
|
-
data: {
|
|
716
|
-
escapedOffsets: offsets,
|
|
717
|
-
escaped: isAnySideFullyClipped(offsets)
|
|
718
|
-
}
|
|
719
|
-
};
|
|
720
|
-
}
|
|
721
|
-
default:
|
|
722
|
-
{
|
|
723
|
-
return {};
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
};
|
|
728
|
-
};
|
|
729
|
-
|
|
730
|
-
function getBoundingRect(rects) {
|
|
731
|
-
const minX = min(...rects.map(rect => rect.left));
|
|
732
|
-
const minY = min(...rects.map(rect => rect.top));
|
|
733
|
-
const maxX = max(...rects.map(rect => rect.right));
|
|
734
|
-
const maxY = max(...rects.map(rect => rect.bottom));
|
|
735
|
-
return {
|
|
736
|
-
x: minX,
|
|
737
|
-
y: minY,
|
|
738
|
-
width: maxX - minX,
|
|
739
|
-
height: maxY - minY
|
|
740
|
-
};
|
|
741
|
-
}
|
|
742
|
-
function getRectsByLine(rects) {
|
|
743
|
-
const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
|
|
744
|
-
const groups = [];
|
|
745
|
-
let prevRect = null;
|
|
746
|
-
for (let i = 0; i < sortedRects.length; i++) {
|
|
747
|
-
const rect = sortedRects[i];
|
|
748
|
-
if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
|
|
749
|
-
groups.push([rect]);
|
|
750
|
-
} else {
|
|
751
|
-
groups[groups.length - 1].push(rect);
|
|
752
|
-
}
|
|
753
|
-
prevRect = rect;
|
|
754
|
-
}
|
|
755
|
-
return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
|
|
756
|
-
}
|
|
757
|
-
/**
|
|
758
|
-
* Provides improved positioning for inline reference elements that can span
|
|
759
|
-
* over multiple lines, such as hyperlinks or range selections.
|
|
760
|
-
* @see https://floating-ui.com/docs/inline
|
|
761
|
-
*/
|
|
762
|
-
const inline = function (options) {
|
|
763
|
-
if (options === void 0) {
|
|
764
|
-
options = {};
|
|
765
|
-
}
|
|
766
|
-
return {
|
|
767
|
-
name: 'inline',
|
|
768
|
-
options,
|
|
769
|
-
async fn(state) {
|
|
770
|
-
const {
|
|
771
|
-
placement,
|
|
772
|
-
elements,
|
|
773
|
-
rects,
|
|
774
|
-
platform,
|
|
775
|
-
strategy
|
|
776
|
-
} = state;
|
|
777
|
-
// A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
|
|
778
|
-
// ClientRect's bounds, despite the event listener being triggered. A
|
|
779
|
-
// padding of 2 seems to handle this issue.
|
|
780
|
-
const {
|
|
781
|
-
padding = 2,
|
|
782
|
-
x,
|
|
783
|
-
y
|
|
784
|
-
} = evaluate(options, state);
|
|
785
|
-
const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
|
|
786
|
-
const clientRects = getRectsByLine(nativeClientRects);
|
|
787
|
-
const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
|
|
788
|
-
const paddingObject = getPaddingObject(padding);
|
|
789
|
-
function getBoundingClientRect() {
|
|
790
|
-
// There are two rects and they are disjoined.
|
|
791
|
-
if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
|
|
792
|
-
// Find the first rect in which the point is fully inside.
|
|
793
|
-
return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
// There are 2 or more connected rects.
|
|
797
|
-
if (clientRects.length >= 2) {
|
|
798
|
-
if (getSideAxis(placement) === 'y') {
|
|
799
|
-
const firstRect = clientRects[0];
|
|
800
|
-
const lastRect = clientRects[clientRects.length - 1];
|
|
801
|
-
const isTop = getSide(placement) === 'top';
|
|
802
|
-
const top = firstRect.top;
|
|
803
|
-
const bottom = lastRect.bottom;
|
|
804
|
-
const left = isTop ? firstRect.left : lastRect.left;
|
|
805
|
-
const right = isTop ? firstRect.right : lastRect.right;
|
|
806
|
-
const width = right - left;
|
|
807
|
-
const height = bottom - top;
|
|
808
|
-
return {
|
|
809
|
-
top,
|
|
810
|
-
bottom,
|
|
811
|
-
left,
|
|
812
|
-
right,
|
|
813
|
-
width,
|
|
814
|
-
height,
|
|
815
|
-
x: left,
|
|
816
|
-
y: top
|
|
817
|
-
};
|
|
818
|
-
}
|
|
819
|
-
const isLeftSide = getSide(placement) === 'left';
|
|
820
|
-
const maxRight = max(...clientRects.map(rect => rect.right));
|
|
821
|
-
const minLeft = min(...clientRects.map(rect => rect.left));
|
|
822
|
-
const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
|
|
823
|
-
const top = measureRects[0].top;
|
|
824
|
-
const bottom = measureRects[measureRects.length - 1].bottom;
|
|
825
|
-
const left = minLeft;
|
|
826
|
-
const right = maxRight;
|
|
827
|
-
const width = right - left;
|
|
828
|
-
const height = bottom - top;
|
|
829
|
-
return {
|
|
830
|
-
top,
|
|
831
|
-
bottom,
|
|
832
|
-
left,
|
|
833
|
-
right,
|
|
834
|
-
width,
|
|
835
|
-
height,
|
|
836
|
-
x: left,
|
|
837
|
-
y: top
|
|
838
|
-
};
|
|
839
|
-
}
|
|
840
|
-
return fallback;
|
|
841
|
-
}
|
|
842
|
-
const resetRects = await platform.getElementRects({
|
|
843
|
-
reference: {
|
|
844
|
-
getBoundingClientRect
|
|
845
|
-
},
|
|
846
|
-
floating: elements.floating,
|
|
847
|
-
strategy
|
|
848
|
-
});
|
|
849
|
-
if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {
|
|
850
|
-
return {
|
|
851
|
-
reset: {
|
|
852
|
-
rects: resetRects
|
|
853
|
-
}
|
|
854
|
-
};
|
|
855
|
-
}
|
|
856
|
-
return {};
|
|
857
|
-
}
|
|
858
|
-
};
|
|
859
|
-
};
|
|
860
|
-
|
|
861
473
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
862
474
|
// Derivable.
|
|
863
475
|
|
|
@@ -1019,74 +631,6 @@ const shift$1 = function (options) {
|
|
|
1019
631
|
}
|
|
1020
632
|
};
|
|
1021
633
|
};
|
|
1022
|
-
/**
|
|
1023
|
-
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
1024
|
-
*/
|
|
1025
|
-
const limitShift = function (options) {
|
|
1026
|
-
if (options === void 0) {
|
|
1027
|
-
options = {};
|
|
1028
|
-
}
|
|
1029
|
-
return {
|
|
1030
|
-
options,
|
|
1031
|
-
fn(state) {
|
|
1032
|
-
const {
|
|
1033
|
-
x,
|
|
1034
|
-
y,
|
|
1035
|
-
placement,
|
|
1036
|
-
rects,
|
|
1037
|
-
middlewareData
|
|
1038
|
-
} = state;
|
|
1039
|
-
const {
|
|
1040
|
-
offset = 0,
|
|
1041
|
-
mainAxis: checkMainAxis = true,
|
|
1042
|
-
crossAxis: checkCrossAxis = true
|
|
1043
|
-
} = evaluate(options, state);
|
|
1044
|
-
const coords = {
|
|
1045
|
-
x,
|
|
1046
|
-
y
|
|
1047
|
-
};
|
|
1048
|
-
const crossAxis = getSideAxis(placement);
|
|
1049
|
-
const mainAxis = getOppositeAxis(crossAxis);
|
|
1050
|
-
let mainAxisCoord = coords[mainAxis];
|
|
1051
|
-
let crossAxisCoord = coords[crossAxis];
|
|
1052
|
-
const rawOffset = evaluate(offset, state);
|
|
1053
|
-
const computedOffset = typeof rawOffset === 'number' ? {
|
|
1054
|
-
mainAxis: rawOffset,
|
|
1055
|
-
crossAxis: 0
|
|
1056
|
-
} : {
|
|
1057
|
-
mainAxis: 0,
|
|
1058
|
-
crossAxis: 0,
|
|
1059
|
-
...rawOffset
|
|
1060
|
-
};
|
|
1061
|
-
if (checkMainAxis) {
|
|
1062
|
-
const len = mainAxis === 'y' ? 'height' : 'width';
|
|
1063
|
-
const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
|
|
1064
|
-
const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
|
1065
|
-
if (mainAxisCoord < limitMin) {
|
|
1066
|
-
mainAxisCoord = limitMin;
|
|
1067
|
-
} else if (mainAxisCoord > limitMax) {
|
|
1068
|
-
mainAxisCoord = limitMax;
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
if (checkCrossAxis) {
|
|
1072
|
-
var _middlewareData$offse, _middlewareData$offse2;
|
|
1073
|
-
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
1074
|
-
const isOriginSide = ['top', 'left'].includes(getSide(placement));
|
|
1075
|
-
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
|
|
1076
|
-
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
|
1077
|
-
if (crossAxisCoord < limitMin) {
|
|
1078
|
-
crossAxisCoord = limitMin;
|
|
1079
|
-
} else if (crossAxisCoord > limitMax) {
|
|
1080
|
-
crossAxisCoord = limitMax;
|
|
1081
|
-
}
|
|
1082
|
-
}
|
|
1083
|
-
return {
|
|
1084
|
-
[mainAxis]: mainAxisCoord,
|
|
1085
|
-
[crossAxis]: crossAxisCoord
|
|
1086
|
-
};
|
|
1087
|
-
}
|
|
1088
|
-
};
|
|
1089
|
-
};
|
|
1090
634
|
|
|
1091
635
|
/**
|
|
1092
636
|
* Provides data that allows you to change the size of the floating element —
|
|
@@ -1981,14 +1525,6 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
1981
1525
|
*/
|
|
1982
1526
|
const offset = offset$1;
|
|
1983
1527
|
|
|
1984
|
-
/**
|
|
1985
|
-
* Optimizes the visibility of the floating element by choosing the placement
|
|
1986
|
-
* that has the most space available automatically, without needing to specify a
|
|
1987
|
-
* preferred placement. Alternative to `flip`.
|
|
1988
|
-
* @see https://floating-ui.com/docs/autoPlacement
|
|
1989
|
-
*/
|
|
1990
|
-
autoPlacement;
|
|
1991
|
-
|
|
1992
1528
|
/**
|
|
1993
1529
|
* Optimizes the visibility of the floating element by shifting it in order to
|
|
1994
1530
|
* keep it in view when it will overflow the clipping boundary.
|
|
@@ -2012,32 +1548,6 @@ const flip = flip$1;
|
|
|
2012
1548
|
*/
|
|
2013
1549
|
const size = size$1;
|
|
2014
1550
|
|
|
2015
|
-
/**
|
|
2016
|
-
* Provides data to hide the floating element in applicable situations, such as
|
|
2017
|
-
* when it is not in the same clipping context as the reference element.
|
|
2018
|
-
* @see https://floating-ui.com/docs/hide
|
|
2019
|
-
*/
|
|
2020
|
-
hide;
|
|
2021
|
-
|
|
2022
|
-
/**
|
|
2023
|
-
* Provides data to position an inner element of the floating element so that it
|
|
2024
|
-
* appears centered to the reference element.
|
|
2025
|
-
* @see https://floating-ui.com/docs/arrow
|
|
2026
|
-
*/
|
|
2027
|
-
arrow;
|
|
2028
|
-
|
|
2029
|
-
/**
|
|
2030
|
-
* Provides improved positioning for inline reference elements that can span
|
|
2031
|
-
* over multiple lines, such as hyperlinks or range selections.
|
|
2032
|
-
* @see https://floating-ui.com/docs/inline
|
|
2033
|
-
*/
|
|
2034
|
-
inline;
|
|
2035
|
-
|
|
2036
|
-
/**
|
|
2037
|
-
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
2038
|
-
*/
|
|
2039
|
-
limitShift;
|
|
2040
|
-
|
|
2041
1551
|
/**
|
|
2042
1552
|
* Computes the `x` and `y` coordinates that will place the floating element
|
|
2043
1553
|
* next to a given reference element.
|
|
@@ -2061,6 +1571,7 @@ const computePosition = (reference, floating, options) => {
|
|
|
2061
1571
|
});
|
|
2062
1572
|
};
|
|
2063
1573
|
|
|
2064
|
-
export { autoUpdate as a,
|
|
1574
|
+
export { autoUpdate as a, size as b, computePosition as c, flip as f, offset as o, shift as s };
|
|
1575
|
+
//# sourceMappingURL=floating-ui.dom.js.map
|
|
2065
1576
|
|
|
2066
|
-
//# sourceMappingURL=floating-ui.dom.
|
|
1577
|
+
//# sourceMappingURL=floating-ui.dom.js.map
|