@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,786 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const ObjectUnsubscribedError = createErrorClass((_super) => function ObjectUnsubscribedErrorImpl() {
|
|
5
|
-
_super(this);
|
|
6
|
-
this.name = 'ObjectUnsubscribedError';
|
|
7
|
-
this.message = 'object unsubscribed';
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
class Subject extends Observable {
|
|
11
|
-
constructor() {
|
|
12
|
-
super();
|
|
13
|
-
this.closed = false;
|
|
14
|
-
this.currentObservers = null;
|
|
15
|
-
this.observers = [];
|
|
16
|
-
this.isStopped = false;
|
|
17
|
-
this.hasError = false;
|
|
18
|
-
this.thrownError = null;
|
|
19
|
-
}
|
|
20
|
-
lift(operator) {
|
|
21
|
-
const subject = new AnonymousSubject(this, this);
|
|
22
|
-
subject.operator = operator;
|
|
23
|
-
return subject;
|
|
24
|
-
}
|
|
25
|
-
_throwIfClosed() {
|
|
26
|
-
if (this.closed) {
|
|
27
|
-
throw new ObjectUnsubscribedError();
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
next(value) {
|
|
31
|
-
errorContext(() => {
|
|
32
|
-
this._throwIfClosed();
|
|
33
|
-
if (!this.isStopped) {
|
|
34
|
-
if (!this.currentObservers) {
|
|
35
|
-
this.currentObservers = Array.from(this.observers);
|
|
36
|
-
}
|
|
37
|
-
for (const observer of this.currentObservers) {
|
|
38
|
-
observer.next(value);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
error(err) {
|
|
44
|
-
errorContext(() => {
|
|
45
|
-
this._throwIfClosed();
|
|
46
|
-
if (!this.isStopped) {
|
|
47
|
-
this.hasError = this.isStopped = true;
|
|
48
|
-
this.thrownError = err;
|
|
49
|
-
const { observers } = this;
|
|
50
|
-
while (observers.length) {
|
|
51
|
-
observers.shift().error(err);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
complete() {
|
|
57
|
-
errorContext(() => {
|
|
58
|
-
this._throwIfClosed();
|
|
59
|
-
if (!this.isStopped) {
|
|
60
|
-
this.isStopped = true;
|
|
61
|
-
const { observers } = this;
|
|
62
|
-
while (observers.length) {
|
|
63
|
-
observers.shift().complete();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
unsubscribe() {
|
|
69
|
-
this.isStopped = this.closed = true;
|
|
70
|
-
this.observers = this.currentObservers = null;
|
|
71
|
-
}
|
|
72
|
-
get observed() {
|
|
73
|
-
var _a;
|
|
74
|
-
return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
75
|
-
}
|
|
76
|
-
_trySubscribe(subscriber) {
|
|
77
|
-
this._throwIfClosed();
|
|
78
|
-
return super._trySubscribe(subscriber);
|
|
79
|
-
}
|
|
80
|
-
_subscribe(subscriber) {
|
|
81
|
-
this._throwIfClosed();
|
|
82
|
-
this._checkFinalizedStatuses(subscriber);
|
|
83
|
-
return this._innerSubscribe(subscriber);
|
|
84
|
-
}
|
|
85
|
-
_innerSubscribe(subscriber) {
|
|
86
|
-
const { hasError, isStopped, observers } = this;
|
|
87
|
-
if (hasError || isStopped) {
|
|
88
|
-
return EMPTY_SUBSCRIPTION;
|
|
89
|
-
}
|
|
90
|
-
this.currentObservers = null;
|
|
91
|
-
observers.push(subscriber);
|
|
92
|
-
return new Subscription(() => {
|
|
93
|
-
this.currentObservers = null;
|
|
94
|
-
arrRemove(observers, subscriber);
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
_checkFinalizedStatuses(subscriber) {
|
|
98
|
-
const { hasError, thrownError, isStopped } = this;
|
|
99
|
-
if (hasError) {
|
|
100
|
-
subscriber.error(thrownError);
|
|
101
|
-
}
|
|
102
|
-
else if (isStopped) {
|
|
103
|
-
subscriber.complete();
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
asObservable() {
|
|
107
|
-
const observable = new Observable();
|
|
108
|
-
observable.source = this;
|
|
109
|
-
return observable;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
Subject.create = (destination, source) => {
|
|
113
|
-
return new AnonymousSubject(destination, source);
|
|
114
|
-
};
|
|
115
|
-
class AnonymousSubject extends Subject {
|
|
116
|
-
constructor(destination, source) {
|
|
117
|
-
super();
|
|
118
|
-
this.destination = destination;
|
|
119
|
-
this.source = source;
|
|
120
|
-
}
|
|
121
|
-
next(value) {
|
|
122
|
-
var _a, _b;
|
|
123
|
-
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);
|
|
124
|
-
}
|
|
125
|
-
error(err) {
|
|
126
|
-
var _a, _b;
|
|
127
|
-
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
|
|
128
|
-
}
|
|
129
|
-
complete() {
|
|
130
|
-
var _a, _b;
|
|
131
|
-
(_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
132
|
-
}
|
|
133
|
-
_subscribe(subscriber) {
|
|
134
|
-
var _a, _b;
|
|
135
|
-
return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
const dateTimestampProvider = {
|
|
140
|
-
now() {
|
|
141
|
-
return (dateTimestampProvider.delegate || Date).now();
|
|
142
|
-
},
|
|
143
|
-
delegate: undefined,
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
class Action extends Subscription {
|
|
147
|
-
constructor(scheduler, work) {
|
|
148
|
-
super();
|
|
149
|
-
}
|
|
150
|
-
schedule(state, delay = 0) {
|
|
151
|
-
return this;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
const intervalProvider = {
|
|
156
|
-
setInterval(handler, timeout, ...args) {
|
|
157
|
-
const { delegate } = intervalProvider;
|
|
158
|
-
if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {
|
|
159
|
-
return delegate.setInterval(handler, timeout, ...args);
|
|
160
|
-
}
|
|
161
|
-
return setInterval(handler, timeout, ...args);
|
|
162
|
-
},
|
|
163
|
-
clearInterval(handle) {
|
|
164
|
-
const { delegate } = intervalProvider;
|
|
165
|
-
return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);
|
|
166
|
-
},
|
|
167
|
-
delegate: undefined,
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
class AsyncAction extends Action {
|
|
171
|
-
constructor(scheduler, work) {
|
|
172
|
-
super(scheduler, work);
|
|
173
|
-
this.scheduler = scheduler;
|
|
174
|
-
this.work = work;
|
|
175
|
-
this.pending = false;
|
|
176
|
-
}
|
|
177
|
-
schedule(state, delay = 0) {
|
|
178
|
-
var _a;
|
|
179
|
-
if (this.closed) {
|
|
180
|
-
return this;
|
|
181
|
-
}
|
|
182
|
-
this.state = state;
|
|
183
|
-
const id = this.id;
|
|
184
|
-
const scheduler = this.scheduler;
|
|
185
|
-
if (id != null) {
|
|
186
|
-
this.id = this.recycleAsyncId(scheduler, id, delay);
|
|
187
|
-
}
|
|
188
|
-
this.pending = true;
|
|
189
|
-
this.delay = delay;
|
|
190
|
-
this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);
|
|
191
|
-
return this;
|
|
192
|
-
}
|
|
193
|
-
requestAsyncId(scheduler, _id, delay = 0) {
|
|
194
|
-
return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);
|
|
195
|
-
}
|
|
196
|
-
recycleAsyncId(_scheduler, id, delay = 0) {
|
|
197
|
-
if (delay != null && this.delay === delay && this.pending === false) {
|
|
198
|
-
return id;
|
|
199
|
-
}
|
|
200
|
-
if (id != null) {
|
|
201
|
-
intervalProvider.clearInterval(id);
|
|
202
|
-
}
|
|
203
|
-
return undefined;
|
|
204
|
-
}
|
|
205
|
-
execute(state, delay) {
|
|
206
|
-
if (this.closed) {
|
|
207
|
-
return new Error('executing a cancelled action');
|
|
208
|
-
}
|
|
209
|
-
this.pending = false;
|
|
210
|
-
const error = this._execute(state, delay);
|
|
211
|
-
if (error) {
|
|
212
|
-
return error;
|
|
213
|
-
}
|
|
214
|
-
else if (this.pending === false && this.id != null) {
|
|
215
|
-
this.id = this.recycleAsyncId(this.scheduler, this.id, null);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
_execute(state, _delay) {
|
|
219
|
-
let errored = false;
|
|
220
|
-
let errorValue;
|
|
221
|
-
try {
|
|
222
|
-
this.work(state);
|
|
223
|
-
}
|
|
224
|
-
catch (e) {
|
|
225
|
-
errored = true;
|
|
226
|
-
errorValue = e ? e : new Error('Scheduled action threw falsy error');
|
|
227
|
-
}
|
|
228
|
-
if (errored) {
|
|
229
|
-
this.unsubscribe();
|
|
230
|
-
return errorValue;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
unsubscribe() {
|
|
234
|
-
if (!this.closed) {
|
|
235
|
-
const { id, scheduler } = this;
|
|
236
|
-
const { actions } = scheduler;
|
|
237
|
-
this.work = this.state = this.scheduler = null;
|
|
238
|
-
this.pending = false;
|
|
239
|
-
arrRemove(actions, this);
|
|
240
|
-
if (id != null) {
|
|
241
|
-
this.id = this.recycleAsyncId(scheduler, id, null);
|
|
242
|
-
}
|
|
243
|
-
this.delay = null;
|
|
244
|
-
super.unsubscribe();
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
class Scheduler {
|
|
250
|
-
constructor(schedulerActionCtor, now = Scheduler.now) {
|
|
251
|
-
this.schedulerActionCtor = schedulerActionCtor;
|
|
252
|
-
this.now = now;
|
|
253
|
-
}
|
|
254
|
-
schedule(work, delay = 0, state) {
|
|
255
|
-
return new this.schedulerActionCtor(this, work).schedule(state, delay);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
Scheduler.now = dateTimestampProvider.now;
|
|
259
|
-
|
|
260
|
-
class AsyncScheduler extends Scheduler {
|
|
261
|
-
constructor(SchedulerAction, now = Scheduler.now) {
|
|
262
|
-
super(SchedulerAction, now);
|
|
263
|
-
this.actions = [];
|
|
264
|
-
this._active = false;
|
|
265
|
-
}
|
|
266
|
-
flush(action) {
|
|
267
|
-
const { actions } = this;
|
|
268
|
-
if (this._active) {
|
|
269
|
-
actions.push(action);
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
let error;
|
|
273
|
-
this._active = true;
|
|
274
|
-
do {
|
|
275
|
-
if ((error = action.execute(action.state, action.delay))) {
|
|
276
|
-
break;
|
|
277
|
-
}
|
|
278
|
-
} while ((action = actions.shift()));
|
|
279
|
-
this._active = false;
|
|
280
|
-
if (error) {
|
|
281
|
-
while ((action = actions.shift())) {
|
|
282
|
-
action.unsubscribe();
|
|
283
|
-
}
|
|
284
|
-
throw error;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
const asyncScheduler = new AsyncScheduler(AsyncAction);
|
|
290
|
-
const async = asyncScheduler;
|
|
291
|
-
|
|
292
|
-
const EMPTY = new Observable((subscriber) => subscriber.complete());
|
|
293
|
-
|
|
294
|
-
const EmptyError = createErrorClass((_super) => function EmptyErrorImpl() {
|
|
295
|
-
_super(this);
|
|
296
|
-
this.name = 'EmptyError';
|
|
297
|
-
this.message = 'no elements in sequence';
|
|
298
|
-
});
|
|
299
|
-
|
|
300
|
-
function isValidDate(value) {
|
|
301
|
-
return value instanceof Date && !isNaN(value);
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
function map(project, thisArg) {
|
|
305
|
-
return operate((source, subscriber) => {
|
|
306
|
-
let index = 0;
|
|
307
|
-
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
|
308
|
-
subscriber.next(project.call(thisArg, value, index++));
|
|
309
|
-
}));
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
const { isArray } = Array;
|
|
314
|
-
function callOrApply(fn, args) {
|
|
315
|
-
return isArray(args) ? fn(...args) : fn(args);
|
|
316
|
-
}
|
|
317
|
-
function mapOneOrManyArgs(fn) {
|
|
318
|
-
return map(args => callOrApply(fn, args));
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {
|
|
322
|
-
const buffer = [];
|
|
323
|
-
let active = 0;
|
|
324
|
-
let index = 0;
|
|
325
|
-
let isComplete = false;
|
|
326
|
-
const checkComplete = () => {
|
|
327
|
-
if (isComplete && !buffer.length && !active) {
|
|
328
|
-
subscriber.complete();
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
|
-
const outerNext = (value) => (active < concurrent ? doInnerSub(value) : buffer.push(value));
|
|
332
|
-
const doInnerSub = (value) => {
|
|
333
|
-
expand && subscriber.next(value);
|
|
334
|
-
active++;
|
|
335
|
-
let innerComplete = false;
|
|
336
|
-
innerFrom(project(value, index++)).subscribe(createOperatorSubscriber(subscriber, (innerValue) => {
|
|
337
|
-
onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue);
|
|
338
|
-
if (expand) {
|
|
339
|
-
outerNext(innerValue);
|
|
340
|
-
}
|
|
341
|
-
else {
|
|
342
|
-
subscriber.next(innerValue);
|
|
343
|
-
}
|
|
344
|
-
}, () => {
|
|
345
|
-
innerComplete = true;
|
|
346
|
-
}, undefined, () => {
|
|
347
|
-
if (innerComplete) {
|
|
348
|
-
try {
|
|
349
|
-
active--;
|
|
350
|
-
while (buffer.length && active < concurrent) {
|
|
351
|
-
const bufferedValue = buffer.shift();
|
|
352
|
-
if (innerSubScheduler) {
|
|
353
|
-
executeSchedule(subscriber, innerSubScheduler, () => doInnerSub(bufferedValue));
|
|
354
|
-
}
|
|
355
|
-
else {
|
|
356
|
-
doInnerSub(bufferedValue);
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
checkComplete();
|
|
360
|
-
}
|
|
361
|
-
catch (err) {
|
|
362
|
-
subscriber.error(err);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
}));
|
|
366
|
-
};
|
|
367
|
-
source.subscribe(createOperatorSubscriber(subscriber, outerNext, () => {
|
|
368
|
-
isComplete = true;
|
|
369
|
-
checkComplete();
|
|
370
|
-
}));
|
|
371
|
-
return () => {
|
|
372
|
-
additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer();
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
function mergeMap(project, resultSelector, concurrent = Infinity) {
|
|
377
|
-
if (isFunction(resultSelector)) {
|
|
378
|
-
return mergeMap((a, i) => map((b, ii) => resultSelector(a, b, i, ii))(innerFrom(project(a, i))), concurrent);
|
|
379
|
-
}
|
|
380
|
-
else if (typeof resultSelector === 'number') {
|
|
381
|
-
concurrent = resultSelector;
|
|
382
|
-
}
|
|
383
|
-
return operate((source, subscriber) => mergeInternals(source, subscriber, project, concurrent));
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
function mergeAll(concurrent = Infinity) {
|
|
387
|
-
return mergeMap(identity, concurrent);
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
function concatAll() {
|
|
391
|
-
return mergeAll(1);
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
function concat(...args) {
|
|
395
|
-
return concatAll()(from(args, popScheduler(args)));
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
const nodeEventEmitterMethods = ['addListener', 'removeListener'];
|
|
399
|
-
const eventTargetMethods = ['addEventListener', 'removeEventListener'];
|
|
400
|
-
const jqueryMethods = ['on', 'off'];
|
|
401
|
-
function fromEvent(target, eventName, options, resultSelector) {
|
|
402
|
-
if (isFunction(options)) {
|
|
403
|
-
resultSelector = options;
|
|
404
|
-
options = undefined;
|
|
405
|
-
}
|
|
406
|
-
if (resultSelector) {
|
|
407
|
-
return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector));
|
|
408
|
-
}
|
|
409
|
-
const [add, remove] = isEventTarget(target)
|
|
410
|
-
? eventTargetMethods.map((methodName) => (handler) => target[methodName](eventName, handler, options))
|
|
411
|
-
:
|
|
412
|
-
isNodeStyleEventEmitter(target)
|
|
413
|
-
? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName))
|
|
414
|
-
: isJQueryStyleEventEmitter(target)
|
|
415
|
-
? jqueryMethods.map(toCommonHandlerRegistry(target, eventName))
|
|
416
|
-
: [];
|
|
417
|
-
if (!add) {
|
|
418
|
-
if (isArrayLike(target)) {
|
|
419
|
-
return mergeMap((subTarget) => fromEvent(subTarget, eventName, options))(innerFrom(target));
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
if (!add) {
|
|
423
|
-
throw new TypeError('Invalid event target');
|
|
424
|
-
}
|
|
425
|
-
return new Observable((subscriber) => {
|
|
426
|
-
const handler = (...args) => subscriber.next(1 < args.length ? args : args[0]);
|
|
427
|
-
add(handler);
|
|
428
|
-
return () => remove(handler);
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
function toCommonHandlerRegistry(target, eventName) {
|
|
432
|
-
return (methodName) => (handler) => target[methodName](eventName, handler);
|
|
433
|
-
}
|
|
434
|
-
function isNodeStyleEventEmitter(target) {
|
|
435
|
-
return isFunction(target.addListener) && isFunction(target.removeListener);
|
|
436
|
-
}
|
|
437
|
-
function isJQueryStyleEventEmitter(target) {
|
|
438
|
-
return isFunction(target.on) && isFunction(target.off);
|
|
439
|
-
}
|
|
440
|
-
function isEventTarget(target) {
|
|
441
|
-
return isFunction(target.addEventListener) && isFunction(target.removeEventListener);
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
function timer(dueTime = 0, intervalOrScheduler, scheduler = async) {
|
|
445
|
-
let intervalDuration = -1;
|
|
446
|
-
if (intervalOrScheduler != null) {
|
|
447
|
-
if (isScheduler(intervalOrScheduler)) {
|
|
448
|
-
scheduler = intervalOrScheduler;
|
|
449
|
-
}
|
|
450
|
-
else {
|
|
451
|
-
intervalDuration = intervalOrScheduler;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
return new Observable((subscriber) => {
|
|
455
|
-
let due = isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime;
|
|
456
|
-
if (due < 0) {
|
|
457
|
-
due = 0;
|
|
458
|
-
}
|
|
459
|
-
let n = 0;
|
|
460
|
-
return scheduler.schedule(function () {
|
|
461
|
-
if (!subscriber.closed) {
|
|
462
|
-
subscriber.next(n++);
|
|
463
|
-
if (0 <= intervalDuration) {
|
|
464
|
-
this.schedule(undefined, intervalDuration);
|
|
465
|
-
}
|
|
466
|
-
else {
|
|
467
|
-
subscriber.complete();
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
}, due);
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
function merge(...args) {
|
|
475
|
-
const scheduler = popScheduler(args);
|
|
476
|
-
const concurrent = popNumber(args, Infinity);
|
|
477
|
-
const sources = args;
|
|
478
|
-
return !sources.length
|
|
479
|
-
?
|
|
480
|
-
EMPTY
|
|
481
|
-
: sources.length === 1
|
|
482
|
-
?
|
|
483
|
-
innerFrom(sources[0])
|
|
484
|
-
:
|
|
485
|
-
mergeAll(concurrent)(from(sources, scheduler));
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
function filter(predicate, thisArg) {
|
|
489
|
-
return operate((source, subscriber) => {
|
|
490
|
-
let index = 0;
|
|
491
|
-
source.subscribe(createOperatorSubscriber(subscriber, (value) => predicate.call(thisArg, value, index++) && subscriber.next(value)));
|
|
492
|
-
});
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
function audit(durationSelector) {
|
|
496
|
-
return operate((source, subscriber) => {
|
|
497
|
-
let hasValue = false;
|
|
498
|
-
let lastValue = null;
|
|
499
|
-
let durationSubscriber = null;
|
|
500
|
-
let isComplete = false;
|
|
501
|
-
const endDuration = () => {
|
|
502
|
-
durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();
|
|
503
|
-
durationSubscriber = null;
|
|
504
|
-
if (hasValue) {
|
|
505
|
-
hasValue = false;
|
|
506
|
-
const value = lastValue;
|
|
507
|
-
lastValue = null;
|
|
508
|
-
subscriber.next(value);
|
|
509
|
-
}
|
|
510
|
-
isComplete && subscriber.complete();
|
|
511
|
-
};
|
|
512
|
-
const cleanupDuration = () => {
|
|
513
|
-
durationSubscriber = null;
|
|
514
|
-
isComplete && subscriber.complete();
|
|
515
|
-
};
|
|
516
|
-
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
|
517
|
-
hasValue = true;
|
|
518
|
-
lastValue = value;
|
|
519
|
-
if (!durationSubscriber) {
|
|
520
|
-
innerFrom(durationSelector(value)).subscribe((durationSubscriber = createOperatorSubscriber(subscriber, endDuration, cleanupDuration)));
|
|
521
|
-
}
|
|
522
|
-
}, () => {
|
|
523
|
-
isComplete = true;
|
|
524
|
-
(!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete();
|
|
525
|
-
}));
|
|
526
|
-
});
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
function auditTime(duration, scheduler = asyncScheduler) {
|
|
530
|
-
return audit(() => timer(duration, scheduler));
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
function catchError(selector) {
|
|
534
|
-
return operate((source, subscriber) => {
|
|
535
|
-
let innerSub = null;
|
|
536
|
-
let syncUnsub = false;
|
|
537
|
-
let handledResult;
|
|
538
|
-
innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, undefined, (err) => {
|
|
539
|
-
handledResult = innerFrom(selector(err, catchError(selector)(source)));
|
|
540
|
-
if (innerSub) {
|
|
541
|
-
innerSub.unsubscribe();
|
|
542
|
-
innerSub = null;
|
|
543
|
-
handledResult.subscribe(subscriber);
|
|
544
|
-
}
|
|
545
|
-
else {
|
|
546
|
-
syncUnsub = true;
|
|
547
|
-
}
|
|
548
|
-
}));
|
|
549
|
-
if (syncUnsub) {
|
|
550
|
-
innerSub.unsubscribe();
|
|
551
|
-
innerSub = null;
|
|
552
|
-
handledResult.subscribe(subscriber);
|
|
553
|
-
}
|
|
554
|
-
});
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {
|
|
558
|
-
return (source, subscriber) => {
|
|
559
|
-
let hasState = hasSeed;
|
|
560
|
-
let state = seed;
|
|
561
|
-
let index = 0;
|
|
562
|
-
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
|
563
|
-
const i = index++;
|
|
564
|
-
state = hasState
|
|
565
|
-
?
|
|
566
|
-
accumulator(state, value, i)
|
|
567
|
-
:
|
|
568
|
-
((hasState = true), value);
|
|
569
|
-
emitOnNext && subscriber.next(state);
|
|
570
|
-
}, emitBeforeComplete &&
|
|
571
|
-
(() => {
|
|
572
|
-
hasState && subscriber.next(state);
|
|
573
|
-
subscriber.complete();
|
|
574
|
-
})));
|
|
575
|
-
};
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
function debounce$1(durationSelector) {
|
|
579
|
-
return operate((source, subscriber) => {
|
|
580
|
-
let hasValue = false;
|
|
581
|
-
let lastValue = null;
|
|
582
|
-
let durationSubscriber = null;
|
|
583
|
-
const emit = () => {
|
|
584
|
-
durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();
|
|
585
|
-
durationSubscriber = null;
|
|
586
|
-
if (hasValue) {
|
|
587
|
-
hasValue = false;
|
|
588
|
-
const value = lastValue;
|
|
589
|
-
lastValue = null;
|
|
590
|
-
subscriber.next(value);
|
|
591
|
-
}
|
|
592
|
-
};
|
|
593
|
-
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
|
594
|
-
durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();
|
|
595
|
-
hasValue = true;
|
|
596
|
-
lastValue = value;
|
|
597
|
-
durationSubscriber = createOperatorSubscriber(subscriber, emit, noop);
|
|
598
|
-
innerFrom(durationSelector(value)).subscribe(durationSubscriber);
|
|
599
|
-
}, () => {
|
|
600
|
-
emit();
|
|
601
|
-
subscriber.complete();
|
|
602
|
-
}, undefined, () => {
|
|
603
|
-
lastValue = durationSubscriber = null;
|
|
604
|
-
}));
|
|
605
|
-
});
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
function defaultIfEmpty(defaultValue) {
|
|
609
|
-
return operate((source, subscriber) => {
|
|
610
|
-
let hasValue = false;
|
|
611
|
-
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
|
612
|
-
hasValue = true;
|
|
613
|
-
subscriber.next(value);
|
|
614
|
-
}, () => {
|
|
615
|
-
if (!hasValue) {
|
|
616
|
-
subscriber.next(defaultValue);
|
|
617
|
-
}
|
|
618
|
-
subscriber.complete();
|
|
619
|
-
}));
|
|
620
|
-
});
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
function take(count) {
|
|
624
|
-
return count <= 0
|
|
625
|
-
?
|
|
626
|
-
() => EMPTY
|
|
627
|
-
: operate((source, subscriber) => {
|
|
628
|
-
let seen = 0;
|
|
629
|
-
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
|
630
|
-
if (++seen <= count) {
|
|
631
|
-
subscriber.next(value);
|
|
632
|
-
if (count <= seen) {
|
|
633
|
-
subscriber.complete();
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
}));
|
|
637
|
-
});
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
function ignoreElements() {
|
|
641
|
-
return operate((source, subscriber) => {
|
|
642
|
-
source.subscribe(createOperatorSubscriber(subscriber, noop));
|
|
643
|
-
});
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
function mapTo(value) {
|
|
647
|
-
return map(() => value);
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
function delayWhen(delayDurationSelector, subscriptionDelay) {
|
|
651
|
-
if (subscriptionDelay) {
|
|
652
|
-
return (source) => concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));
|
|
653
|
-
}
|
|
654
|
-
return mergeMap((value, index) => innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)));
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
function delay$1(due, scheduler = asyncScheduler) {
|
|
658
|
-
const duration = timer(due, scheduler);
|
|
659
|
-
return delayWhen(() => duration);
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
function distinctUntilChanged(comparator, keySelector = identity) {
|
|
663
|
-
comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare;
|
|
664
|
-
return operate((source, subscriber) => {
|
|
665
|
-
let previousKey;
|
|
666
|
-
let first = true;
|
|
667
|
-
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
|
668
|
-
const currentKey = keySelector(value);
|
|
669
|
-
if (first || !comparator(previousKey, currentKey)) {
|
|
670
|
-
first = false;
|
|
671
|
-
previousKey = currentKey;
|
|
672
|
-
subscriber.next(value);
|
|
673
|
-
}
|
|
674
|
-
}));
|
|
675
|
-
});
|
|
676
|
-
}
|
|
677
|
-
function defaultCompare(a, b) {
|
|
678
|
-
return a === b;
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
function throwIfEmpty(errorFactory = defaultErrorFactory) {
|
|
682
|
-
return operate((source, subscriber) => {
|
|
683
|
-
let hasValue = false;
|
|
684
|
-
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
|
685
|
-
hasValue = true;
|
|
686
|
-
subscriber.next(value);
|
|
687
|
-
}, () => (hasValue ? subscriber.complete() : subscriber.error(errorFactory()))));
|
|
688
|
-
});
|
|
689
|
-
}
|
|
690
|
-
function defaultErrorFactory() {
|
|
691
|
-
return new EmptyError();
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
function first(predicate, defaultValue) {
|
|
695
|
-
const hasDefaultValue = arguments.length >= 2;
|
|
696
|
-
return (source) => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError()));
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
function scan(accumulator, seed) {
|
|
700
|
-
return operate(scanInternals(accumulator, seed, arguments.length >= 2, true));
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
function startWith(...values) {
|
|
704
|
-
const scheduler = popScheduler(values);
|
|
705
|
-
return operate((source, subscriber) => {
|
|
706
|
-
(scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber);
|
|
707
|
-
});
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
function switchMap(project, resultSelector) {
|
|
711
|
-
return operate((source, subscriber) => {
|
|
712
|
-
let innerSubscriber = null;
|
|
713
|
-
let index = 0;
|
|
714
|
-
let isComplete = false;
|
|
715
|
-
const checkComplete = () => isComplete && !innerSubscriber && subscriber.complete();
|
|
716
|
-
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
|
717
|
-
innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe();
|
|
718
|
-
let innerIndex = 0;
|
|
719
|
-
const outerIndex = index++;
|
|
720
|
-
innerFrom(project(value, outerIndex)).subscribe((innerSubscriber = createOperatorSubscriber(subscriber, (innerValue) => subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue), () => {
|
|
721
|
-
innerSubscriber = null;
|
|
722
|
-
checkComplete();
|
|
723
|
-
})));
|
|
724
|
-
}, () => {
|
|
725
|
-
isComplete = true;
|
|
726
|
-
checkComplete();
|
|
727
|
-
}));
|
|
728
|
-
});
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
function takeUntil(notifier) {
|
|
732
|
-
return operate((source, subscriber) => {
|
|
733
|
-
innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, () => subscriber.complete(), noop));
|
|
734
|
-
!subscriber.closed && source.subscribe(subscriber);
|
|
735
|
-
});
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
function takeWhile(predicate, inclusive = false) {
|
|
739
|
-
return operate((source, subscriber) => {
|
|
740
|
-
let index = 0;
|
|
741
|
-
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
|
742
|
-
const result = predicate(value, index++);
|
|
743
|
-
(result || inclusive) && subscriber.next(value);
|
|
744
|
-
!result && subscriber.complete();
|
|
745
|
-
}));
|
|
746
|
-
});
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
function tap(observerOrNext, error, complete) {
|
|
750
|
-
const tapObserver = isFunction(observerOrNext) || error || complete
|
|
751
|
-
?
|
|
752
|
-
{ next: observerOrNext, error, complete }
|
|
753
|
-
: observerOrNext;
|
|
754
|
-
return tapObserver
|
|
755
|
-
? operate((source, subscriber) => {
|
|
756
|
-
var _a;
|
|
757
|
-
(_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
|
|
758
|
-
let isUnsub = true;
|
|
759
|
-
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
|
760
|
-
var _a;
|
|
761
|
-
(_a = tapObserver.next) === null || _a === void 0 ? void 0 : _a.call(tapObserver, value);
|
|
762
|
-
subscriber.next(value);
|
|
763
|
-
}, () => {
|
|
764
|
-
var _a;
|
|
765
|
-
isUnsub = false;
|
|
766
|
-
(_a = tapObserver.complete) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
|
|
767
|
-
subscriber.complete();
|
|
768
|
-
}, (err) => {
|
|
769
|
-
var _a;
|
|
770
|
-
isUnsub = false;
|
|
771
|
-
(_a = tapObserver.error) === null || _a === void 0 ? void 0 : _a.call(tapObserver, err);
|
|
772
|
-
subscriber.error(err);
|
|
773
|
-
}, () => {
|
|
774
|
-
var _a, _b;
|
|
775
|
-
if (isUnsub) {
|
|
776
|
-
(_a = tapObserver.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
|
|
777
|
-
}
|
|
778
|
-
(_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver);
|
|
779
|
-
}));
|
|
780
|
-
})
|
|
781
|
-
:
|
|
782
|
-
identity;
|
|
783
|
-
}
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-B-m4GNf1.js';
|
|
2
|
+
import { l as log, c as catI18nRegistry, g as getDefaultExportFromCjs, d as catIconRegistry, r as requireNot, e as requireFilter, f as requireArgsOrArgArray, h as requireRaceWith, i as requireAudit, j as requireAuditTime, k as requireBuffer, m as requireBufferCount, n as requireBufferTime, o as requireBufferToggle, p as requireBufferWhen, q as requireCatchError, s as requireCombineAll, t as requireCombineLatestAll, u as requireCombineLatest, v as requireCombineLatestWith, w as requireConcat, x as requireConcatAll, y as requireConcatMap, z as requireConcatMapTo, A as requireConcatWith, B as requireConnect, D as requireCount, E as requireDebounce, F as requireDebounceTime, G as requireDefaultIfEmpty, H as requireDelay, I as requireDelayWhen, J as requireDematerialize, K as requireDistinct, L as requireDistinctUntilChanged, M as requireDistinctUntilKeyChanged, N as requireElementAt, O as requireEndWith, P as requireEvery, Q as requireExhaust, R as requireExhaustAll, S as requireExhaustMap, T as requireExpand, U as requireFinalize, V as requireFind, W as requireFindIndex, X as requireFirst, Y as requireGroupBy, Z as requireIgnoreElements, _ as requireIsEmpty, $ as requireLast, a0 as requireMap, a1 as requireMapTo, a2 as requireMaterialize, a3 as requireMax, a4 as requireMerge, a5 as requireMergeAll, a6 as requireFlatMap, a7 as requireMergeMap, a8 as requireMergeMapTo, a9 as requireMergeScan, aa as requireMergeWith, ab as requireMin, ac as requireMulticast, ad as requireObserveOn, ae as requireOnErrorResumeNextWith, af as requirePairwise, ag as requirePluck, ah as requirePublish, ai as requirePublishBehavior, aj as requirePublishLast, ak as requirePublishReplay, al as requireReduce, am as requireRepeat, an as requireRepeatWhen, ao as requireRetry, ap as requireRetryWhen, aq as requireRefCount, ar as requireSample, as as requireSampleTime, at as requireScan, au as requireSequenceEqual, av as requireShare, aw as requireShareReplay, ax as requireSingle, ay as requireSkip, az as requireSkipLast, aA as requireSkipUntil, aB as requireSkipWhile, aC as requireStartWith, aD as requireSubscribeOn, aE as requireSwitchAll, aF as requireSwitchMap, aG as requireSwitchMapTo, aH as requireSwitchScan, aI as requireTake, aJ as requireTakeLast, aK as requireTakeUntil, aL as requireTakeWhile, aM as requireTap, aN as requireThrottle, aO as requireThrottleTime, aP as requireThrowIfEmpty, aQ as requireTimeInterval, aR as requireTimeout, aS as requireTimeoutWith, aT as requireTimestamp, aU as requireToArray, aV as requireWindow, aW as requireWindowCount, aX as requireWindowTime, aY as requireWindowToggle, aZ as requireWindowWhen, a_ as requireWithLatestFrom, a$ as requireZip, b0 as requireZipAll, b1 as requireZipWith, a as cjsExports } from './index-LJZzaWFR.js';
|
|
784
3
|
|
|
785
4
|
function setAttributeDefault(host, attr, value) {
|
|
786
5
|
if (!host.hostElement.hasAttribute(attr) && value != null) {
|
|
@@ -789,7 +8,6 @@ function setAttributeDefault(host, attr, value) {
|
|
|
789
8
|
}
|
|
790
9
|
|
|
791
10
|
const catAlertCss = ":host{display:flex;gap:0.5rem;padding:1.25rem;border-radius:var(--cat-border-radius-l, 0.5rem)}:host([hidden]){display:none}:host(:focus-visible){outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.content{align-self:center;width:100%}::slotted(:last-child){margin-bottom:0 !important}:host([color=primary]){background-color:rgb(var(--cat-primary-bg, 0, 129, 148));color:rgb(var(--cat-primary-fill, 255, 255, 255));--cat-primary-text:var(--cat-primary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-primary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-primary-fill-active, 255, 255, 255);--cat-link-decoration:underline}:host([color=secondary]){background-color:rgb(var(--cat-secondary-bg, 105, 118, 135));color:rgb(var(--cat-secondary-fill, 255, 255, 255));--cat-primary-text:var(--cat-secondary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-secondary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-secondary-fill-active, 255, 255, 255);--cat-link-decoration:underline}:host([color=info]){background-color:rgb(var(--cat-info-bg, 0, 115, 230));color:rgb(var(--cat-info-fill, 255, 255, 255));--cat-primary-text:var(--cat-info-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-info-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-info-fill-active, 255, 255, 255);--cat-link-decoration:underline}:host([color=success]){background-color:rgb(var(--cat-success-bg, 0, 132, 88));color:rgb(var(--cat-success-fill, 255, 255, 255));--cat-primary-text:var(--cat-success-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-success-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-success-fill-active, 255, 255, 255);--cat-link-decoration:underline}:host([color=warning]){background-color:rgb(var(--cat-warning-bg, 255, 206, 128));color:rgb(var(--cat-warning-fill, 0, 0, 0));--cat-primary-text:var(--cat-warning-fill, 0, 0, 0);--cat-primary-text-hover:var(--cat-warning-fill-hover, 0, 0, 0);--cat-primary-text-active:var(--cat-warning-fill-active, 0, 0, 0);--cat-link-decoration:underline}:host([color=danger]){background-color:rgb(var(--cat-danger-bg, 217, 52, 13));color:rgb(var(--cat-danger-fill, 255, 255, 255));--cat-primary-text:var(--cat-danger-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-danger-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-danger-fill-active, 255, 255, 255);--cat-link-decoration:underline}";
|
|
792
|
-
const CatAlertStyle0 = catAlertCss;
|
|
793
11
|
|
|
794
12
|
const CatAlert = class {
|
|
795
13
|
constructor(hostRef) {
|
|
@@ -810,8 +28,13 @@ const CatAlert = class {
|
|
|
810
28
|
['warning', 'alert'],
|
|
811
29
|
['danger', 'alert']
|
|
812
30
|
]);
|
|
31
|
+
/**
|
|
32
|
+
* The color palette of the alert.
|
|
33
|
+
*/
|
|
813
34
|
this.color = 'primary';
|
|
814
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Whether the icon of the alert is deactivated.
|
|
37
|
+
*/
|
|
815
38
|
this.noIcon = false;
|
|
816
39
|
}
|
|
817
40
|
connectedCallback() {
|
|
@@ -823,7 +46,7 @@ const CatAlert = class {
|
|
|
823
46
|
}
|
|
824
47
|
get hostElement() { return getElement(this); }
|
|
825
48
|
};
|
|
826
|
-
CatAlert.style =
|
|
49
|
+
CatAlert.style = catAlertCss;
|
|
827
50
|
|
|
828
51
|
/**
|
|
829
52
|
* Loads an image and wraps the result in a promise.
|
|
@@ -841,20 +64,22 @@ const loadImg = (src) => {
|
|
|
841
64
|
};
|
|
842
65
|
|
|
843
66
|
const catAvatarCss = ":host{display:contents}:host([hidden]){display:none}.avatar{flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--cat-border-radius-m, 0.25rem);text-decoration:inherit;color:var(--cat-avatar-fill, #515c6c);background-color:var(--cat-avatar-bg, #f2f4f7);background-size:cover;background-position:center;white-space:nowrap;overflow:hidden;vertical-align:middle;font-weight:600;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.avatar:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.avatar-round{border-radius:50%}.avatar-xs{width:var(--cat-avatar-size, 1.5rem);height:var(--cat-avatar-size, 1.5rem);line-height:var(--cat-avatar-size, 1.5rem);font-size:var(--cat-avatar-font-size, 0.75rem)}.avatar-s{width:var(--cat-avatar-size, 2rem);height:var(--cat-avatar-size, 2rem);line-height:var(--cat-avatar-size, 2rem);font-size:var(--cat-avatar-font-size, 0.875rem)}.avatar-m{width:var(--cat-avatar-size, 2.5rem);height:var(--cat-avatar-size, 2.5rem);line-height:var(--cat-avatar-size, 2.5rem);font-size:var(--cat-avatar-font-size, 0.9375rem)}.avatar-l{width:var(--cat-avatar-size, 3rem);height:var(--cat-avatar-size, 3rem);line-height:var(--cat-avatar-size, 3rem);font-size:var(--cat-avatar-font-size, 1.125rem)}.avatar-xl{width:var(--cat-avatar-size, 3.5rem);height:var(--cat-avatar-size, 3.5rem);line-height:var(--cat-avatar-size, 3.5rem);font-size:var(--cat-avatar-font-size, 1.25rem)}";
|
|
844
|
-
const CatAvatarStyle0 = catAvatarCss;
|
|
845
67
|
|
|
846
68
|
const CatAvatar = class {
|
|
847
69
|
constructor(hostRef) {
|
|
848
70
|
registerInstance(this, hostRef);
|
|
849
|
-
|
|
71
|
+
/**
|
|
72
|
+
* The size of the avatar.
|
|
73
|
+
*/
|
|
850
74
|
this.size = 'm';
|
|
75
|
+
/**
|
|
76
|
+
* Use round avatar edges.
|
|
77
|
+
*/
|
|
851
78
|
this.round = false;
|
|
79
|
+
/**
|
|
80
|
+
* The label of the avatar.
|
|
81
|
+
*/
|
|
852
82
|
this.label = '';
|
|
853
|
-
this.initials = undefined;
|
|
854
|
-
this.src = undefined;
|
|
855
|
-
this.icon = undefined;
|
|
856
|
-
this.url = undefined;
|
|
857
|
-
this.urlTarget = undefined;
|
|
858
83
|
}
|
|
859
84
|
onSrcChanged(value) {
|
|
860
85
|
if (value) {
|
|
@@ -904,7 +129,7 @@ const CatAvatar = class {
|
|
|
904
129
|
"src": ["onSrcChanged"]
|
|
905
130
|
}; }
|
|
906
131
|
};
|
|
907
|
-
CatAvatar.style =
|
|
132
|
+
CatAvatar.style = catAvatarCss;
|
|
908
133
|
|
|
909
134
|
const _breakpoints = ['xs', 's', 'm', 'l', 'xl'];
|
|
910
135
|
const Breakpoints = {
|
|
@@ -1022,19 +247,38 @@ function createEmptyStyleRule(query) {
|
|
|
1022
247
|
}
|
|
1023
248
|
|
|
1024
249
|
const catBadgeCss = ":host([hidden]){display:none}:host{display:inline-flex;max-width:100%;vertical-align:baseline;align-items:center;justify-content:center;border-radius:var(--cat-border-radius-m, 0.25rem);text-decoration:none;line-height:1.5;flex-shrink:0}:host slot{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}:host([round]){border-radius:10rem}:host([variant=filled]){background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}:host([variant=outlined]){background-color:white;color:rgb(var(--text));box-shadow:inset 0 0 0 1px rgba(var(--text), 0.2)}:host([color=primary]){--bg:var(--cat-primary-bg, 0, 129, 148);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 0, 129, 148)}:host([color=secondary]){--bg:var(--cat-secondary-bg, 105, 118, 135);--fill:var(--cat-secondary-fill, 255, 255, 255);--text:var(--cat-secondary-text, 0, 0, 0)}:host([color=info]){--bg:var(--cat-info-bg, 0, 115, 230);--fill:var(--cat-info-fill, 255, 255, 255);--text:var(--cat-info-text, 0, 115, 230)}:host([color=success]){--bg:var(--cat-success-bg, 0, 132, 88);--fill:var(--cat-success-fill, 255, 255, 255);--text:var(--cat-success-text, 0, 132, 88)}:host([color=warning]){--bg:var(--cat-warning-bg, 255, 206, 128);--fill:var(--cat-warning-fill, 0, 0, 0);--text:var(--cat-warning-text, 159, 97, 0)}:host([color=danger]){--bg:var(--cat-danger-bg, 217, 52, 13);--fill:var(--cat-danger-fill, 255, 255, 255);--text:var(--cat-danger-text, 217, 52, 13)}:host([size=xs]){height:1rem;min-width:1rem;font-size:0.75rem;padding:0 0.25rem;gap:0.25rem}:host([data-icon-badge=xs]){width:1rem;height:1rem;padding:0}:host([size=s]){height:1.5rem;min-width:1.5rem;font-size:0.75rem;padding:0 0.5rem;gap:0.25rem}:host([data-icon-badge=s]){width:1.5rem;height:1.5rem;padding:0}:host([size=m]){height:2rem;min-width:2rem;font-size:0.875rem;padding:0 0.75rem;gap:0.25rem}:host([data-icon-badge=m]){width:2rem;height:2rem;padding:0}:host([size=l]){height:2.5rem;min-width:2.5rem;font-size:0.9375rem;padding:0 1rem;gap:0.25rem}:host([data-icon-badge=l]){width:2.5rem;height:2.5rem;padding:0}:host([size=xl]){height:3rem;min-width:3rem;font-size:1.125rem;padding:0 1rem;gap:0.25rem}:host([data-icon-badge=xl]){width:3rem;height:3rem;padding:0}:host([pulse][variant=filled]){animation:1.5s ease 0s infinite normal none running pulse}:host([pulse][variant=outlined]){animation:1.5s ease 0s infinite normal none running pulse-outlined}@keyframes pulse{0%{box-shadow:0 0 0 0 rgb(var(--bg))}70%{box-shadow:transparent 0 0 0 0.5rem}100%{box-shadow:transparent 0 0 0 0}}@keyframes pulse-outlined{0%{box-shadow:0 0 0 0 rgb(var(--bg)), inset 0 0 0 1px rgba(var(--text), 0.2)}70%{box-shadow:transparent 0 0 0 0.5rem, inset 0 0 0 1px rgba(var(--text), 0.2)}100%{box-shadow:transparent 0 0 0 0, inset 0 0 0 1px rgba(var(--text), 0.2)}}";
|
|
1025
|
-
const CatBadgeStyle0 = catBadgeCss;
|
|
1026
250
|
|
|
1027
251
|
const CatBadge = class {
|
|
1028
252
|
constructor(hostRef) {
|
|
1029
253
|
registerInstance(this, hostRef);
|
|
1030
254
|
this._iconOnly = true;
|
|
255
|
+
/**
|
|
256
|
+
* The rendering style of the badge.
|
|
257
|
+
*/
|
|
1031
258
|
this.variant = 'filled';
|
|
259
|
+
/**
|
|
260
|
+
* The color palette of the badge.
|
|
261
|
+
*/
|
|
1032
262
|
this.color = 'primary';
|
|
263
|
+
/**
|
|
264
|
+
* The size of the badge.
|
|
265
|
+
*/
|
|
1033
266
|
this.size = 'm';
|
|
267
|
+
/**
|
|
268
|
+
* Use round badge edges.
|
|
269
|
+
*/
|
|
1034
270
|
this.round = false;
|
|
271
|
+
/**
|
|
272
|
+
* Draw attention to the badge with a subtle animation.
|
|
273
|
+
*/
|
|
1035
274
|
this.pulse = false;
|
|
1036
|
-
|
|
275
|
+
/**
|
|
276
|
+
* Hide the actual button content and only display the icon.
|
|
277
|
+
*/
|
|
1037
278
|
this.iconOnly = false;
|
|
279
|
+
/**
|
|
280
|
+
* Display the icon on the right.
|
|
281
|
+
*/
|
|
1038
282
|
this.iconRight = false;
|
|
1039
283
|
}
|
|
1040
284
|
onIconOnlyChanged(value) {
|
|
@@ -1087,7 +331,7 @@ const CatBadge = class {
|
|
|
1087
331
|
"iconOnly": ["onIconOnlyChanged"]
|
|
1088
332
|
}; }
|
|
1089
333
|
};
|
|
1090
|
-
CatBadge.style =
|
|
334
|
+
CatBadge.style = catBadgeCss;
|
|
1091
335
|
|
|
1092
336
|
/**
|
|
1093
337
|
* Find the closest parent element matching the given selector while traversing
|
|
@@ -1102,40 +346,63 @@ function findClosest(selector, element) {
|
|
|
1102
346
|
return nextElement ? findClosest(selector, nextElement) : null;
|
|
1103
347
|
}
|
|
1104
348
|
|
|
1105
|
-
const catButtonCss = ":host{display:inline-block;max-width:100%;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([hidden]){display:none}:host([data-button-group=middle]),:host([data-button-group=last]){margin-left:-1px}.cat-button{position:relative;font:inherit;display:flex;align-items:center;justify-content:center;border:none;border-radius:var(--cat-border-radius-m, 0.25rem);text-decoration:none;width:100%;box-sizing:border-box;cursor:pointer;transition:color 125ms linear, border-color 125ms linear, background-color 125ms linear, box-shadow 125ms linear}.cat-button:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-button-content{display:flex;flex-direction:column;min-width:0}.cat-button-empty .cat-button-content{display:none}.cat-button-content-inner{word-wrap:break-word;word-break:break-word}.cat-button-ellipsed .cat-button-content-inner{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.cat-button-disabled{cursor:not-allowed}.cat-button-round{border-radius:10rem}.cat-button-loading{cursor:default}.cat-button-loading cat-spinner{position:absolute}.cat-button-loading>*:not(cat-spinner){visibility:hidden}.cat-button-group-first{border-top-right-radius:0;border-bottom-right-radius:0}.cat-button-group-middle{border-radius:0}.cat-button-group-last{border-top-left-radius:0;border-bottom-left-radius:0}.cat-button-group:hover{z-index:1}.cat-button-group:focus-visible{z-index:2}.cat-button-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:var(--cat-font-weight-button, 600);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.cat-button-filled.cat-button-disabled{--bg:242, 244, 247;--fill:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-outlined{background-color:white;box-shadow:inset 0 0 0 1px color-mix(in srgb, rgb(var(--base)) 20%, #fff);color:rgb(var(--text))}.cat-button-outlined.cat-button-disabled{--base:var(--cat-font-color-muted, 81, 92, 108);--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-outlined:hover:not(.cat-button-disabled):not(.cat-button-loading){background-color:color-mix(in srgb, rgb(var(--base)) 10%, #fff)}.cat-button-outlined.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){background-color:color-mix(in srgb, rgb(var(--base)) 10%, #fff)}.cat-button-outlined:active:not(.cat-button-disabled):not(.cat-button-loading){background-color:color-mix(in srgb, rgb(var(--base)) 10%, #fff)}.cat-button-text{background-color:transparent;color:rgb(var(--text));text-decoration:var(--cat-link-button-decoration, none)}.cat-button-text.cat-button-disabled{--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-text:hover:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-text.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-link{background-color:transparent;color:rgb(var(--text))}.cat-button-link.cat-button-disabled{--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-link:hover:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:var(--cat-link-decoration-hover, underline)}.cat-button-link.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:var(--cat-link-decoration-hover, underline)}.cat-button-primary{--bg:var(--cat-primary-bg, 0, 129, 148);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 0, 129, 148);--base:var(--cat-primary-text, 0, 129, 148)}.cat-button-primary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-hover, 1, 115, 132);--fill:var(--cat-primary-fill-hover, 255, 255, 255);--text:var(--cat-primary-text-hover, 1, 115, 132)}.cat-button-primary.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-primary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-active, 2, 99, 113);--fill:var(--cat-primary-fill-active, 255, 255, 255);--text:var(--cat-primary-text-active, 2, 99, 113)}.cat-button-secondary{--bg:var(--cat-secondary-bg, 105, 118, 135);--fill:var(--cat-secondary-fill, 255, 255, 255);--text:var(--cat-secondary-text, 0, 0, 0);--base:var(--cat-secondary-bg, 105, 118, 135)}.cat-button-secondary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-secondary-bg-hover, 105, 118, 135);--fill:var(--cat-secondary-fill-hover, 255, 255, 255);--text:var(--cat-secondary-text-hover, 0, 0, 0)}.cat-button-secondary.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-secondary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-secondary-bg-active, 105, 118, 135);--fill:var(--cat-secondary-fill-active, 255, 255, 255);--text:var(--cat-secondary-text-active, 0, 0, 0)}.cat-button-info{--bg:var(--cat-info-bg, 0, 115, 230);--fill:var(--cat-info-fill, 255, 255, 255);--text:var(--cat-info-text, 0, 115, 230);--base:var(--cat-info-text, 0, 115, 230)}.cat-button-info:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-info-bg-hover, 0, 107, 227);--fill:var(--cat-info-fill-hover, 255, 255, 255);--text:var(--cat-info-text-hover, 0, 107, 227)}.cat-button-info.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-info:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-info-bg-active, 0, 96, 223);--fill:var(--cat-info-fill-active, 255, 255, 255);--text:var(--cat-info-text-active, 0, 96, 223)}.cat-button-success{--bg:var(--cat-success-bg, 0, 132, 88);--fill:var(--cat-success-fill, 255, 255, 255);--text:var(--cat-success-text, 0, 132, 88);--base:var(--cat-success-text, 0, 132, 88)}.cat-button-success:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-hover, 0, 117, 78);--fill:var(--cat-success-fill-hover, 255, 255, 255);--text:var(--cat-success-text-hover, 0, 117, 78)}.cat-button-success.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-success:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-active, 0, 105, 70);--fill:var(--cat-success-fill-active, 255, 255, 255);--text:var(--cat-success-text-active, 0, 105, 70)}.cat-button-warning{--bg:var(--cat-warning-bg, 255, 206, 128);--fill:var(--cat-warning-fill, 0, 0, 0);--text:var(--cat-warning-text, 159, 97, 0);--base:var(--cat-warning-text, 159, 97, 0)}.cat-button-warning:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-warning-bg-hover, 255, 214, 148);--fill:var(--cat-warning-fill-hover, 0, 0, 0);--text:var(--cat-warning-text-hover, 159, 97, 0)}.cat-button-warning.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-warning:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-warning-bg-active, 255, 222, 168);--fill:var(--cat-warning-fill-active, 0, 0, 0);--text:var(--cat-warning-text-active, 159, 97, 0)}.cat-button-danger{--bg:var(--cat-danger-bg, 217, 52, 13);--fill:var(--cat-danger-fill, 255, 255, 255);--text:var(--cat-danger-text, 217, 52, 13);--base:var(--cat-danger-text, 217, 52, 13)}.cat-button-danger:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-danger-bg-hover, 194, 46, 11);--fill:var(--cat-danger-fill-hover, 255, 255, 255);--text:var(--cat-danger-text-hover, 194, 46, 11)}.cat-button-danger.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-danger:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-danger-bg-active, 174, 42, 10);--fill:var(--cat-danger-fill-active, 255, 255, 255);--text:var(--cat-danger-text-active, 174, 42, 10)}:host(.cat-button-pull:not([size])){margin:-0.625rem -0.75rem}:host(.cat-button-pull-h:not([size])){margin-left:-0.75rem;margin-right:-0.75rem}:host(.cat-button-pull-v:not([size])){margin-top:-0.625rem;margin-bottom:-0.625rem}:host(.cat-button-pull-t:not([size])){margin-top:-0.625rem}:host(.cat-button-pull-l:not([size])){margin-left:-0.75rem}:host(.cat-button-pull-b:not([size])){margin-bottom:-0.625rem}:host(.cat-button-pull-r:not([size])){margin-right:-0.75rem}.cat-button-xs{min-width:1.5rem;padding:0.1875rem 0.25rem;font-size:0.875rem;line-height:1.125rem;gap:0.25rem}.cat-button-xs.cat-button-icon{width:1.5rem;height:1.5rem;padding:0}:host(.cat-button-pull[size=xs]){margin:-0.1875rem -0.25rem}:host(.cat-button-pull-h[size=xs]){margin-left:-0.25rem;margin-right:-0.25rem}:host(.cat-button-pull-v[size=xs]){margin-top:-0.1875rem;margin-bottom:-0.1875rem}:host(.cat-button-pull-t[size=xs]){margin-top:-0.1875rem}:host(.cat-button-pull-l[size=xs]){margin-left:-0.25rem}:host(.cat-button-pull-b[size=xs]){margin-bottom:-0.1875rem}:host(.cat-button-pull-r[size=xs]){margin-right:-0.25rem}.cat-button-s{min-width:2rem;padding:0.375rem 0.5rem;font-size:0.9375rem;line-height:1.25rem;gap:0.25rem}.cat-button-s cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-s.cat-button-icon{width:2rem;height:2rem;padding:0}:host(.cat-button-pull[size=s]){margin:-0.375rem -0.5rem}:host(.cat-button-pull-h[size=s]){margin-left:-0.5rem;margin-right:-0.5rem}:host(.cat-button-pull-v[size=s]){margin-top:-0.375rem;margin-bottom:-0.375rem}:host(.cat-button-pull-t[size=s]){margin-top:-0.375rem}:host(.cat-button-pull-l[size=s]){margin-left:-0.5rem}:host(.cat-button-pull-b[size=s]){margin-bottom:-0.375rem}:host(.cat-button-pull-r[size=s]){margin-right:-0.5rem}.cat-button-m{min-width:2.5rem;padding:0.625rem 0.75rem;font-size:0.9375rem;line-height:1.25rem;gap:0.25rem}.cat-button-m cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-m.cat-button-icon{width:2.5rem;height:2.5rem;padding:0}:host(.cat-button-pull[size=m]){margin:-0.625rem -0.75rem}:host(.cat-button-pull-h[size=m]){margin-left:-0.75rem;margin-right:-0.75rem}:host(.cat-button-pull-v[size=m]){margin-top:-0.625rem;margin-bottom:-0.625rem}:host(.cat-button-pull-t[size=m]){margin-top:-0.625rem}:host(.cat-button-pull-l[size=m]){margin-left:-0.75rem}:host(.cat-button-pull-b[size=m]){margin-bottom:-0.625rem}:host(.cat-button-pull-r[size=m]){margin-right:-0.75rem}.cat-button-l{min-width:3rem;padding:0.875rem 1rem;font-size:0.9375rem;line-height:1.25rem;gap:0.5rem}.cat-button-l cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-l.cat-button-icon{width:3rem;height:3rem;padding:0}:host(.cat-button-pull[size=l]){margin:-0.875rem -1rem}:host(.cat-button-pull-h[size=l]){margin-left:-1rem;margin-right:-1rem}:host(.cat-button-pull-v[size=l]){margin-top:-0.875rem;margin-bottom:-0.875rem}:host(.cat-button-pull-t[size=l]){margin-top:-0.875rem}:host(.cat-button-pull-l[size=l]){margin-left:-1rem}:host(.cat-button-pull-b[size=l]){margin-bottom:-0.875rem}:host(.cat-button-pull-r[size=l]){margin-right:-1rem}.cat-button-xl{min-width:3.5rem;padding:1rem 1.25rem;font-size:1.125rem;line-height:1.5rem;gap:0.75rem}.cat-button-xl.cat-button-icon{width:3.5rem;height:3.5rem;padding:0}:host(.cat-button-pull[size=xl]){margin:-1rem -1.25rem}:host(.cat-button-pull-h[size=xl]){margin-left:-1.25rem;margin-right:-1.25rem}:host(.cat-button-pull-v[size=xl]){margin-top:-1rem;margin-bottom:-1rem}:host(.cat-button-pull-t[size=xl]){margin-top:-1rem}:host(.cat-button-pull-l[size=xl]){margin-left:-1.25rem}:host(.cat-button-pull-b[size=xl]){margin-bottom:-1rem}:host(.cat-button-pull-r[size=xl]){margin-right:-1.25rem}:host(.cat-tab)::part(button){padding:1.125rem 0.75rem;--cat-secondary-bg:transparent;--cat-primary-text:transparent;--cat-danger-text:transparent}:host(.cat-tab)::part(content)::before{content:attr(data-text);content:attr(data-text)/\"\";height:0;visibility:hidden;overflow:hidden;user-select:none;pointer-events:none;font-weight:700}:host(.cat-text-left) .cat-button{justify-content:left;text-align:left}:host(.cat-text-right) .cat-button{justify-content:right;text-align:right}:host(.cat-nav-item){width:100%}:host(.cat-nav-item) .cat-button{box-shadow:none;justify-content:left;gap:0.5rem}:host(.cat-nav-item) .cat-button:focus-visible{outline-offset:-2px}:host(.cat-time-format) .cat-button{border-radius:0}:host(.cat-date-toggle) .cat-button,:host(.cat-time-toggle) .cat-button{margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}:host(.cat-date-item) .cat-button:hover,:host(.cat-date-toggle) .cat-button:hover,:host(.cat-time-format) .cat-button:hover,:host(.cat-time-toggle) .cat-button:hover{z-index:1}:host(.cat-date-item) .cat-button:focus-visible,:host(.cat-date-toggle) .cat-button:focus-visible,:host(.cat-time-format) .cat-button:focus-visible,:host(.cat-time-toggle) .cat-button:focus-visible{z-index:2}:host(.cat-date-item) .cat-button{padding:0;min-width:2rem;max-height:3rem;aspect-ratio:1}:host(.date-start:not(.date-end)) .cat-button{border-top-right-radius:0;border-bottom-right-radius:0}:host(.date-end:not(.date-start)) .cat-button{border-top-left-radius:0;border-bottom-left-radius:0}";
|
|
1106
|
-
const CatButtonStyle0 = catButtonCss;
|
|
349
|
+
const catButtonCss = ":host{display:inline-block;max-width:100%;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([hidden]){display:none}:host([data-button-group=middle]),:host([data-button-group=last]){margin-left:-1px}.cat-button{position:relative;font:inherit;display:flex;align-items:center;justify-content:center;border:none;border-radius:var(--cat-border-radius-m, 0.25rem);text-decoration:none;width:100%;box-sizing:border-box;cursor:pointer;transition:color 125ms linear, border-color 125ms linear, background-color 125ms linear, box-shadow 125ms linear}.cat-button:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-button-content{display:flex;flex-direction:column;min-width:0}.cat-button-empty .cat-button-content{display:none}.cat-button-content-inner{word-wrap:break-word;word-break:break-word}.cat-button-ellipsed .cat-button-content-inner{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.cat-button-disabled{cursor:not-allowed}.cat-button-round{border-radius:10rem}.cat-button-loading{cursor:default}.cat-button-loading cat-spinner{position:absolute}.cat-button-loading>*:not(cat-spinner){visibility:hidden}.cat-button-group-first{border-top-right-radius:0;border-bottom-right-radius:0}.cat-button-group-middle{border-radius:0}.cat-button-group-last{border-top-left-radius:0;border-bottom-left-radius:0}.cat-button-group:hover{z-index:1}.cat-button-group:focus-visible{z-index:2}.cat-button-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:var(--cat-font-weight-button, 600);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.cat-button-filled.cat-button-disabled{--bg:242, 244, 247;--fill:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-outlined{background-color:white;box-shadow:inset 0 0 0 1px color-mix(in srgb, rgb(var(--base)) 20%, #fff);color:rgb(var(--text))}.cat-button-outlined.cat-button-disabled{--base:var(--cat-font-color-muted, 81, 92, 108);--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-outlined:hover:not(.cat-button-disabled):not(.cat-button-loading){background-color:color-mix(in srgb, rgb(var(--base)) 10%, #fff)}.cat-button-outlined.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){background-color:color-mix(in srgb, rgb(var(--base)) 10%, #fff)}.cat-button-outlined:active:not(.cat-button-disabled):not(.cat-button-loading){background-color:color-mix(in srgb, rgb(var(--base)) 10%, #fff)}.cat-button-text{background-color:transparent;color:rgb(var(--text));text-decoration:var(--cat-link-button-decoration, none)}.cat-button-text.cat-button-disabled{--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-text:hover:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-text.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-link{background-color:transparent;color:rgb(var(--text))}.cat-button-link.cat-button-disabled{--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-link:hover:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:var(--cat-link-decoration-hover, underline)}.cat-button-link.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:var(--cat-link-decoration-hover, underline)}.cat-button-primary{--bg:var(--cat-primary-bg, 0, 129, 148);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 0, 129, 148);--base:var(--cat-primary-text, 0, 129, 148)}.cat-button-primary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-hover, 1, 115, 132);--fill:var(--cat-primary-fill-hover, 255, 255, 255);--text:var(--cat-primary-text-hover, 1, 115, 132)}.cat-button-primary.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-primary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-active, 2, 99, 113);--fill:var(--cat-primary-fill-active, 255, 255, 255);--text:var(--cat-primary-text-active, 2, 99, 113)}.cat-button-secondary{--bg:var(--cat-secondary-bg, 105, 118, 135);--fill:var(--cat-secondary-fill, 255, 255, 255);--text:var(--cat-secondary-text, 0, 0, 0);--base:var(--cat-secondary-bg, 105, 118, 135)}.cat-button-secondary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-secondary-bg-hover, 105, 118, 135);--fill:var(--cat-secondary-fill-hover, 255, 255, 255);--text:var(--cat-secondary-text-hover, 0, 0, 0)}.cat-button-secondary.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-secondary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-secondary-bg-active, 105, 118, 135);--fill:var(--cat-secondary-fill-active, 255, 255, 255);--text:var(--cat-secondary-text-active, 0, 0, 0)}.cat-button-info{--bg:var(--cat-info-bg, 0, 115, 230);--fill:var(--cat-info-fill, 255, 255, 255);--text:var(--cat-info-text, 0, 115, 230);--base:var(--cat-info-text, 0, 115, 230)}.cat-button-info:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-info-bg-hover, 0, 107, 227);--fill:var(--cat-info-fill-hover, 255, 255, 255);--text:var(--cat-info-text-hover, 0, 107, 227)}.cat-button-info.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-info:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-info-bg-active, 0, 96, 223);--fill:var(--cat-info-fill-active, 255, 255, 255);--text:var(--cat-info-text-active, 0, 96, 223)}.cat-button-success{--bg:var(--cat-success-bg, 0, 132, 88);--fill:var(--cat-success-fill, 255, 255, 255);--text:var(--cat-success-text, 0, 132, 88);--base:var(--cat-success-text, 0, 132, 88)}.cat-button-success:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-hover, 0, 117, 78);--fill:var(--cat-success-fill-hover, 255, 255, 255);--text:var(--cat-success-text-hover, 0, 117, 78)}.cat-button-success.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-success:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-active, 0, 105, 70);--fill:var(--cat-success-fill-active, 255, 255, 255);--text:var(--cat-success-text-active, 0, 105, 70)}.cat-button-warning{--bg:var(--cat-warning-bg, 255, 206, 128);--fill:var(--cat-warning-fill, 0, 0, 0);--text:var(--cat-warning-text, 159, 97, 0);--base:var(--cat-warning-text, 159, 97, 0)}.cat-button-warning:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-warning-bg-hover, 255, 214, 148);--fill:var(--cat-warning-fill-hover, 0, 0, 0);--text:var(--cat-warning-text-hover, 159, 97, 0)}.cat-button-warning.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-warning:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-warning-bg-active, 255, 222, 168);--fill:var(--cat-warning-fill-active, 0, 0, 0);--text:var(--cat-warning-text-active, 159, 97, 0)}.cat-button-danger{--bg:var(--cat-danger-bg, 217, 52, 13);--fill:var(--cat-danger-fill, 255, 255, 255);--text:var(--cat-danger-text, 217, 52, 13);--base:var(--cat-danger-text, 217, 52, 13)}.cat-button-danger:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-danger-bg-hover, 194, 46, 11);--fill:var(--cat-danger-fill-hover, 255, 255, 255);--text:var(--cat-danger-text-hover, 194, 46, 11)}.cat-button-danger.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-danger:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-danger-bg-active, 174, 42, 10);--fill:var(--cat-danger-fill-active, 255, 255, 255);--text:var(--cat-danger-text-active, 174, 42, 10)}:host(.cat-button-pull:not([size])){margin:-0.625rem -0.75rem}:host(.cat-button-pull-h:not([size])){margin-left:-0.75rem;margin-right:-0.75rem}:host(.cat-button-pull-v:not([size])){margin-top:-0.625rem;margin-bottom:-0.625rem}:host(.cat-button-pull-t:not([size])){margin-top:-0.625rem}:host(.cat-button-pull-l:not([size])){margin-left:-0.75rem}:host(.cat-button-pull-b:not([size])){margin-bottom:-0.625rem}:host(.cat-button-pull-r:not([size])){margin-right:-0.75rem}.cat-button-xs{min-width:1.5rem;padding:0.1875rem 0.25rem;font-size:0.875rem;line-height:1.125rem;gap:0.25rem}.cat-button-xs.cat-button-icon{width:1.5rem;height:1.5rem;padding:0}:host(.cat-button-pull[size=xs]){margin:-0.1875rem -0.25rem}:host(.cat-button-pull-h[size=xs]){margin-left:-0.25rem;margin-right:-0.25rem}:host(.cat-button-pull-v[size=xs]){margin-top:-0.1875rem;margin-bottom:-0.1875rem}:host(.cat-button-pull-t[size=xs]){margin-top:-0.1875rem}:host(.cat-button-pull-l[size=xs]){margin-left:-0.25rem}:host(.cat-button-pull-b[size=xs]){margin-bottom:-0.1875rem}:host(.cat-button-pull-r[size=xs]){margin-right:-0.25rem}.cat-button-s{min-width:2rem;padding:0.375rem 0.5rem;font-size:0.9375rem;line-height:1.25rem;gap:0.25rem}.cat-button-s cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-s.cat-button-icon{width:2rem;height:2rem;padding:0}:host(.cat-button-pull[size=s]){margin:-0.375rem -0.5rem}:host(.cat-button-pull-h[size=s]){margin-left:-0.5rem;margin-right:-0.5rem}:host(.cat-button-pull-v[size=s]){margin-top:-0.375rem;margin-bottom:-0.375rem}:host(.cat-button-pull-t[size=s]){margin-top:-0.375rem}:host(.cat-button-pull-l[size=s]){margin-left:-0.5rem}:host(.cat-button-pull-b[size=s]){margin-bottom:-0.375rem}:host(.cat-button-pull-r[size=s]){margin-right:-0.5rem}.cat-button-m{min-width:2.5rem;padding:0.625rem 0.75rem;font-size:0.9375rem;line-height:1.25rem;gap:0.25rem}.cat-button-m cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-m.cat-button-icon{width:2.5rem;height:2.5rem;padding:0}:host(.cat-button-pull[size=m]){margin:-0.625rem -0.75rem}:host(.cat-button-pull-h[size=m]){margin-left:-0.75rem;margin-right:-0.75rem}:host(.cat-button-pull-v[size=m]){margin-top:-0.625rem;margin-bottom:-0.625rem}:host(.cat-button-pull-t[size=m]){margin-top:-0.625rem}:host(.cat-button-pull-l[size=m]){margin-left:-0.75rem}:host(.cat-button-pull-b[size=m]){margin-bottom:-0.625rem}:host(.cat-button-pull-r[size=m]){margin-right:-0.75rem}.cat-button-l{min-width:3rem;padding:0.875rem 1rem;font-size:0.9375rem;line-height:1.25rem;gap:0.5rem}.cat-button-l cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-l.cat-button-icon{width:3rem;height:3rem;padding:0}:host(.cat-button-pull[size=l]){margin:-0.875rem -1rem}:host(.cat-button-pull-h[size=l]){margin-left:-1rem;margin-right:-1rem}:host(.cat-button-pull-v[size=l]){margin-top:-0.875rem;margin-bottom:-0.875rem}:host(.cat-button-pull-t[size=l]){margin-top:-0.875rem}:host(.cat-button-pull-l[size=l]){margin-left:-1rem}:host(.cat-button-pull-b[size=l]){margin-bottom:-0.875rem}:host(.cat-button-pull-r[size=l]){margin-right:-1rem}.cat-button-xl{min-width:3.5rem;padding:1rem 1.25rem;font-size:1.125rem;line-height:1.5rem;gap:0.75rem}.cat-button-xl.cat-button-icon{width:3.5rem;height:3.5rem;padding:0}:host(.cat-button-pull[size=xl]){margin:-1rem -1.25rem}:host(.cat-button-pull-h[size=xl]){margin-left:-1.25rem;margin-right:-1.25rem}:host(.cat-button-pull-v[size=xl]){margin-top:-1rem;margin-bottom:-1rem}:host(.cat-button-pull-t[size=xl]){margin-top:-1rem}:host(.cat-button-pull-l[size=xl]){margin-left:-1.25rem}:host(.cat-button-pull-b[size=xl]){margin-bottom:-1rem}:host(.cat-button-pull-r[size=xl]){margin-right:-1.25rem}:host(.cat-tab)::part(button),:host(.cat-tab-more-button)::part(button){padding:1.125rem 0.75rem;--cat-secondary-bg:transparent;--cat-primary-text:transparent;--cat-danger-text:transparent}:host(.cat-tab)::part(content)::before,:host(.cat-tab-more-button)::part(content)::before{content:attr(data-text);content:attr(data-text)/\"\";height:0;visibility:hidden;overflow:hidden;user-select:none;pointer-events:none;font-weight:700}:host(.cat-text-left) .cat-button{justify-content:left;text-align:left}:host(.cat-text-right) .cat-button{justify-content:right;text-align:right}:host(.cat-nav-item){width:100%}:host(.cat-nav-item) .cat-button{box-shadow:none;justify-content:left;gap:0.5rem}:host(.cat-nav-item) .cat-button:focus-visible{outline-offset:-2px}:host(.cat-time-format) .cat-button{border-radius:0}:host(.cat-date-toggle) .cat-button,:host(.cat-time-toggle) .cat-button{margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}:host(.cat-date-item) .cat-button:hover,:host(.cat-date-toggle) .cat-button:hover,:host(.cat-time-format) .cat-button:hover,:host(.cat-time-toggle) .cat-button:hover{z-index:1}:host(.cat-date-item) .cat-button:focus-visible,:host(.cat-date-toggle) .cat-button:focus-visible,:host(.cat-time-format) .cat-button:focus-visible,:host(.cat-time-toggle) .cat-button:focus-visible{z-index:2}:host(.cat-date-item) .cat-button{padding:0;min-width:2rem;max-height:3rem;aspect-ratio:1}:host(.date-start:not(.date-end)) .cat-button{border-top-right-radius:0;border-bottom-right-radius:0}:host(.date-end:not(.date-start)) .cat-button{border-top-left-radius:0;border-bottom-left-radius:0}";
|
|
1107
350
|
|
|
1108
351
|
const CatButton = class {
|
|
1109
352
|
constructor(hostRef) {
|
|
1110
353
|
registerInstance(this, hostRef);
|
|
1111
|
-
this.catClick = createEvent(this, "catClick"
|
|
1112
|
-
this.catFocus = createEvent(this, "catFocus"
|
|
1113
|
-
this.catBlur = createEvent(this, "catBlur"
|
|
354
|
+
this.catClick = createEvent(this, "catClick");
|
|
355
|
+
this.catFocus = createEvent(this, "catFocus");
|
|
356
|
+
this.catBlur = createEvent(this, "catBlur");
|
|
1114
357
|
this._iconOnly = true;
|
|
1115
358
|
this.hasSlottedContent = false;
|
|
359
|
+
/**
|
|
360
|
+
* The rendering style of the button.
|
|
361
|
+
*/
|
|
1116
362
|
this.variant = 'outlined';
|
|
363
|
+
/**
|
|
364
|
+
* The color palette of the button.
|
|
365
|
+
*/
|
|
1117
366
|
this.color = 'secondary';
|
|
367
|
+
/**
|
|
368
|
+
* Set the button into an active state.
|
|
369
|
+
*/
|
|
1118
370
|
this.active = false;
|
|
371
|
+
/**
|
|
372
|
+
* The size of the button.
|
|
373
|
+
*/
|
|
1119
374
|
this.size = 'm';
|
|
1120
|
-
|
|
1121
|
-
|
|
375
|
+
/**
|
|
376
|
+
* Specifies that the button should be disabled. A disabled button is unusable
|
|
377
|
+
* and un-clickable. Corresponds with the native HTML disabled attribute.
|
|
378
|
+
*/
|
|
1122
379
|
this.disabled = false;
|
|
380
|
+
/**
|
|
381
|
+
* Displays the button in a loading state with a spinner. Just like a disabled
|
|
382
|
+
* button, an inactive button is unusable and un-clickable. However, it
|
|
383
|
+
* retains the current focus state.
|
|
384
|
+
*/
|
|
1123
385
|
this.loading = false;
|
|
386
|
+
/**
|
|
387
|
+
* Allows the button to submit a form.
|
|
388
|
+
*/
|
|
1124
389
|
this.submit = false;
|
|
390
|
+
/**
|
|
391
|
+
* Disables ellipse overflowing button content.
|
|
392
|
+
*/
|
|
1125
393
|
this.noEllipsis = false;
|
|
394
|
+
/**
|
|
395
|
+
* Use round button edges.
|
|
396
|
+
*/
|
|
1126
397
|
this.round = false;
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
398
|
+
/**
|
|
399
|
+
* Hide the actual button content and only display the icon.
|
|
400
|
+
*/
|
|
1130
401
|
this.iconOnly = false;
|
|
402
|
+
/**
|
|
403
|
+
* Display the icon on the right.
|
|
404
|
+
*/
|
|
1131
405
|
this.iconRight = false;
|
|
1132
|
-
this.buttonId = undefined;
|
|
1133
|
-
this.a11yLabel = undefined;
|
|
1134
|
-
this.a11yCurrent = undefined;
|
|
1135
|
-
this.nativeAttributes = undefined;
|
|
1136
|
-
this.nativeContentAttributes = undefined;
|
|
1137
|
-
this.testId = undefined;
|
|
1138
|
-
this.buttonGroupPosition = undefined;
|
|
1139
406
|
}
|
|
1140
407
|
onIconOnlyChanged(value) {
|
|
1141
408
|
// teardown
|
|
@@ -1280,16 +547,14 @@ const CatButton = class {
|
|
|
1280
547
|
"iconOnly": ["onIconOnlyChanged"]
|
|
1281
548
|
}; }
|
|
1282
549
|
};
|
|
1283
|
-
CatButton.style =
|
|
550
|
+
CatButton.style = catButtonCss;
|
|
1284
551
|
|
|
1285
552
|
const catButtonGroupCss = ":host{position:relative;display:inline-flex;vertical-align:middle}";
|
|
1286
|
-
const CatButtonGroupStyle0 = catButtonGroupCss;
|
|
1287
553
|
|
|
1288
554
|
const CatButtonGroup = class {
|
|
1289
555
|
constructor(hostRef) {
|
|
1290
556
|
registerInstance(this, hostRef);
|
|
1291
557
|
this.buttonElements = [];
|
|
1292
|
-
this.a11yLabel = undefined;
|
|
1293
558
|
}
|
|
1294
559
|
render() {
|
|
1295
560
|
return (h(Host, { key: '3d43547333f73560d31ca96bdba2d2b8b9976dbd', role: "group", "aria-label": this.a11yLabel }, h("slot", { key: 'd329ea90250b161862361e907427920e8866445a', onSlotchange: this.onSlotChange.bind(this) })));
|
|
@@ -1303,15 +568,14 @@ const CatButtonGroup = class {
|
|
|
1303
568
|
}
|
|
1304
569
|
get hostElement() { return getElement(this); }
|
|
1305
570
|
};
|
|
1306
|
-
CatButtonGroup.style =
|
|
571
|
+
CatButtonGroup.style = catButtonGroupCss;
|
|
1307
572
|
|
|
1308
573
|
const catCardCss = ":host{display:block;border-radius:var(--cat-border-radius-l, 0.5rem);background-color:white;padding:1.25rem;box-shadow:0 0 0 1px rgb(var(--cat-border-color-card, 0, 0, 0, 0))}:host([hidden]){display:none}::slotted(:last-child){margin-bottom:0 !important}::slotted(nav),::slotted(nav:last-child){margin:-1rem -1rem !important}::slotted(.cat-card-pull){margin:-1.25rem !important;width:calc(100% + 2.5rem) !important;height:calc(100% + 2.5rem) !important}::slotted(.cat-card-pull-h){margin-left:-1.25rem !important;margin-right:-1.25rem !important;width:calc(100% + 2.5rem) !important}::slotted(.cat-card-pull-v){margin-top:-1.25rem !important;margin-bottom:-1.25rem !important;height:calc(100% + 2.5rem) !important}::slotted(.cat-card-pull-t){margin-top:-1.25rem !important}::slotted(.cat-card-pull-l){margin-left:-1.25rem !important}::slotted(.cat-card-pull-r){margin-right:-1.25rem !important}::slotted(.cat-card-pull-b){margin-bottom:-1.25rem !important}";
|
|
1309
|
-
const CatCardStyle0 = catCardCss;
|
|
1310
574
|
|
|
1311
575
|
const CatCard = class {
|
|
1312
576
|
constructor(hostRef) {
|
|
1313
577
|
registerInstance(this, hostRef);
|
|
1314
|
-
this.catLoad = createEvent(this, "catLoad"
|
|
578
|
+
this.catLoad = createEvent(this, "catLoad");
|
|
1315
579
|
}
|
|
1316
580
|
render() {
|
|
1317
581
|
return h("slot", { key: '6617daf8e8f9c7e854f287c49c23d4985588fc79' });
|
|
@@ -1320,7 +584,7 @@ const CatCard = class {
|
|
|
1320
584
|
this.catLoad.emit();
|
|
1321
585
|
}
|
|
1322
586
|
};
|
|
1323
|
-
CatCard.style =
|
|
587
|
+
CatCard.style = catCardCss;
|
|
1324
588
|
|
|
1325
589
|
/**
|
|
1326
590
|
* CatFormHint is a functional component that represents the hint area of form elements.
|
|
@@ -1341,15 +605,14 @@ const CatFormHint = props => {
|
|
|
1341
605
|
};
|
|
1342
606
|
|
|
1343
607
|
const catCheckboxCss = ".hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;display:flex;flex-direction:column;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.875rem;line-height:1.125rem}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){margin:0 !important}.label{overflow:hidden;word-wrap:break-word;word-break:break-word}.input-field:not(.input-horizontal) .label-container.hidden,.textarea-field:not(.textarea-horizontal) .label-container.hidden,.select-field:not(.select-horizontal) .label-container.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.label-container{flex-basis:var(--label-size, 33.33%)}.label-wrapper{display:flex;gap:0.25rem}.label-metadata{display:flex;flex-shrink:0;flex-grow:1;justify-content:space-between;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.label-optional,.label-character-count{display:inline-flex;align-items:center;max-height:1.25rem;font-size:0.75rem;line-height:1rem}.label-character-count{margin-left:auto}.input-horizontal .label-container.hidden label,.textarea-horizontal .label-container.hidden label,.select-horizontal .label-container.hidden label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.input-horizontal .label-wrapper,.textarea-horizontal .label-wrapper,.select-horizontal .label-wrapper{flex-direction:column}.input-horizontal label,.textarea-horizontal label,.select-horizontal label{min-height:2.5rem;display:inline-flex;align-items:center}.input-horizontal .label-metadata,.textarea-horizontal .label-metadata,.select-horizontal .label-metadata{justify-content:flex-start}.input-horizontal .label-metadata .label-character-count,.textarea-horizontal .label-metadata .label-character-count,.select-horizontal .label-metadata .label-character-count{margin-left:0}:host{display:flex;flex-direction:column;gap:0.25rem}:host([hidden]){display:none}label{flex:0 1 auto;display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;position:relative}.label-left{flex-direction:row-reverse}.label-left input{right:1px;left:unset}input{position:absolute;width:1.25rem;height:1.25rem;margin:0;opacity:0;cursor:inherit;left:1px;top:0.5px}.box-placeholder{width:calc(1.25rem + 2px);flex-shrink:0}.box{flex:0 0 auto;display:flex;position:relative;height:1.25rem;width:1.25rem;background-color:white;border:1px solid rgb(var(--cat-border-color-dark, 215, 219, 224));border-radius:var(--cat-border-radius-s, 0.125rem);transition:background-color 125ms ease, border-color 125ms ease;pointer-events:none;box-sizing:border-box}.box svg{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all 125ms ease;width:50%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) scale(0.99)}:checked+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:checked+.box .check{stroke-dashoffset:0}:indeterminate+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:indeterminate+.box .check{stroke-dashoffset:16px}:indeterminate+.box .dash{stroke-dashoffset:0}:focus-visible+.box{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.is-disabled .box{background-color:#f2f4f7;border-color:rgb(var(--cat-border-color-dark, 215, 219, 224));stroke:rgb(var(--cat-font-color-muted, 81, 92, 108))}:host(.cat-error) .box{border:1px solid rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) :checked+.box,:host(.cat-error) :indeterminate+.box{background-color:rgb(var(--cat-danger-bg, 217, 52, 13));border-color:rgb(var(--cat-danger-bg, 217, 52, 13));stroke:rgb(var(--cat-danger-fill, 255, 255, 255))}.label{flex:1 1 auto;min-width:0}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.align-center{align-items:center}.align-end{align-items:flex-end}";
|
|
1344
|
-
const CatCheckboxStyle0 = catCheckboxCss;
|
|
1345
608
|
|
|
1346
609
|
let nextUniqueId$a = 0;
|
|
1347
610
|
const CatCheckbox = class {
|
|
1348
611
|
constructor(hostRef) {
|
|
1349
612
|
registerInstance(this, hostRef);
|
|
1350
|
-
this.catChange = createEvent(this, "catChange"
|
|
1351
|
-
this.catFocus = createEvent(this, "catFocus"
|
|
1352
|
-
this.catBlur = createEvent(this, "catBlur"
|
|
613
|
+
this.catChange = createEvent(this, "catChange");
|
|
614
|
+
this.catFocus = createEvent(this, "catFocus");
|
|
615
|
+
this.catBlur = createEvent(this, "catBlur");
|
|
1353
616
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
1354
617
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
1355
618
|
}
|
|
@@ -1360,22 +623,46 @@ const CatCheckbox = class {
|
|
|
1360
623
|
this._id = `cat-checkbox-${nextUniqueId$a++}`;
|
|
1361
624
|
this.hasSlottedLabel = false;
|
|
1362
625
|
this.hasSlottedHint = false;
|
|
626
|
+
/**
|
|
627
|
+
* Checked state of the checkbox
|
|
628
|
+
*/
|
|
1363
629
|
this.checked = false;
|
|
630
|
+
/**
|
|
631
|
+
* Indeterminate state of the checkbox
|
|
632
|
+
*/
|
|
1364
633
|
this.indeterminate = false;
|
|
634
|
+
/**
|
|
635
|
+
* Disabled state of the checkbox
|
|
636
|
+
*/
|
|
1365
637
|
this.disabled = false;
|
|
1366
|
-
|
|
638
|
+
/**
|
|
639
|
+
* Label of the checkbox which is presented in the UI
|
|
640
|
+
*/
|
|
1367
641
|
this.label = '';
|
|
642
|
+
/**
|
|
643
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
644
|
+
*/
|
|
1368
645
|
this.labelHidden = false;
|
|
1369
|
-
|
|
646
|
+
/**
|
|
647
|
+
* Required state of the checkbox.
|
|
648
|
+
*/
|
|
1370
649
|
this.required = false;
|
|
1371
|
-
|
|
1372
|
-
|
|
650
|
+
/**
|
|
651
|
+
* The resolved value of the checkbox, based on the checked state and value.
|
|
652
|
+
*/
|
|
653
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1373
654
|
this.resolvedValue = null;
|
|
1374
|
-
|
|
655
|
+
/**
|
|
656
|
+
* Whether the label should appear to the left of the checkbox.
|
|
657
|
+
*/
|
|
1375
658
|
this.labelLeft = false;
|
|
659
|
+
/**
|
|
660
|
+
* The alignment of the checkbox.
|
|
661
|
+
*/
|
|
1376
662
|
this.alignment = 'top';
|
|
1377
|
-
|
|
1378
|
-
|
|
663
|
+
/**
|
|
664
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
665
|
+
*/
|
|
1379
666
|
this.requiredMarker = 'none';
|
|
1380
667
|
}
|
|
1381
668
|
get id() {
|
|
@@ -1437,7 +724,7 @@ const CatCheckbox = class {
|
|
|
1437
724
|
static get formAssociated() { return true; }
|
|
1438
725
|
get hostElement() { return getElement(this); }
|
|
1439
726
|
};
|
|
1440
|
-
CatCheckbox.style =
|
|
727
|
+
CatCheckbox.style = catCheckboxCss;
|
|
1441
728
|
|
|
1442
729
|
function getDays(language, weekday = 'long') {
|
|
1443
730
|
const format = new Intl.DateTimeFormat(language, { weekday }).format;
|
|
@@ -1539,42 +826,65 @@ function clampDate(min, date, max) {
|
|
|
1539
826
|
}
|
|
1540
827
|
|
|
1541
828
|
const catDateCss = ":host{display:block}:host([hidden]){display:none}.label-aria{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}cat-date-inline{margin:1rem;width:20rem}";
|
|
1542
|
-
const CatDateStyle0 = catDateCss;
|
|
1543
829
|
|
|
1544
830
|
const CatDate = class {
|
|
1545
831
|
constructor(hostRef) {
|
|
1546
832
|
registerInstance(this, hostRef);
|
|
1547
|
-
this.catChange = createEvent(this, "catChange"
|
|
1548
|
-
this.catFocus = createEvent(this, "catFocus"
|
|
1549
|
-
this.catBlur = createEvent(this, "catBlur"
|
|
833
|
+
this.catChange = createEvent(this, "catChange");
|
|
834
|
+
this.catFocus = createEvent(this, "catFocus");
|
|
835
|
+
this.catBlur = createEvent(this, "catBlur");
|
|
1550
836
|
this.language = catI18nRegistry.getLocale();
|
|
1551
837
|
this.locale = getLocale$2(this.language);
|
|
1552
838
|
this.inputFocused = false;
|
|
1553
|
-
|
|
839
|
+
/**
|
|
840
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
841
|
+
*/
|
|
1554
842
|
this.requiredMarker = 'optional';
|
|
843
|
+
/**
|
|
844
|
+
* Whether the label is on top or left.
|
|
845
|
+
*/
|
|
1555
846
|
this.horizontal = false;
|
|
847
|
+
/**
|
|
848
|
+
* Hint for form autofill feature.
|
|
849
|
+
*/
|
|
1556
850
|
this.autoComplete = 'off';
|
|
851
|
+
/**
|
|
852
|
+
* Whether the input should show a clear button.
|
|
853
|
+
*/
|
|
1557
854
|
this.clearable = false;
|
|
855
|
+
/**
|
|
856
|
+
* Whether the input is disabled.
|
|
857
|
+
*/
|
|
1558
858
|
this.disabled = false;
|
|
1559
|
-
|
|
1560
|
-
|
|
859
|
+
/**
|
|
860
|
+
* Display the icon on the right.
|
|
861
|
+
*/
|
|
1561
862
|
this.iconRight = false;
|
|
1562
|
-
|
|
863
|
+
/**
|
|
864
|
+
* The label for the input.
|
|
865
|
+
*/
|
|
1563
866
|
this.label = '';
|
|
867
|
+
/**
|
|
868
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
869
|
+
*/
|
|
1564
870
|
this.labelHidden = false;
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
this.placeholder = undefined;
|
|
1569
|
-
this.textPrefix = undefined;
|
|
1570
|
-
this.textSuffix = undefined;
|
|
871
|
+
/**
|
|
872
|
+
* The value is not editable.
|
|
873
|
+
*/
|
|
1571
874
|
this.readonly = false;
|
|
875
|
+
/**
|
|
876
|
+
* A value is required or must be check for the form to be submittable.
|
|
877
|
+
*/
|
|
1572
878
|
this.required = false;
|
|
1573
|
-
|
|
1574
|
-
|
|
879
|
+
/**
|
|
880
|
+
* Fine-grained control over when the errors are shown. Can be `false` to
|
|
881
|
+
* never show errors, `true` to show errors on blur, or a number to show
|
|
882
|
+
* errors change with the given delay in milliseconds or immediately on blur.
|
|
883
|
+
*/
|
|
1575
884
|
this.errorUpdate = 0;
|
|
1576
|
-
|
|
1577
|
-
|
|
885
|
+
/**
|
|
886
|
+
* The placement of the dropdown.
|
|
887
|
+
*/
|
|
1578
888
|
this.placement = 'bottom-end';
|
|
1579
889
|
}
|
|
1580
890
|
onMinChanged(min, oldMin) {
|
|
@@ -1712,7 +1022,7 @@ const CatDate = class {
|
|
|
1712
1022
|
"max": ["onMaxChanged"]
|
|
1713
1023
|
}; }
|
|
1714
1024
|
};
|
|
1715
|
-
CatDate.style =
|
|
1025
|
+
CatDate.style = catDateCss;
|
|
1716
1026
|
|
|
1717
1027
|
/*!
|
|
1718
1028
|
* tabbable 6.2.0
|
|
@@ -2290,13 +1600,12 @@ const firstTabbable = (container) => {
|
|
|
2290
1600
|
};
|
|
2291
1601
|
|
|
2292
1602
|
const catDateInlineCss = "/**\n * Auto-generated file. Do not edit directly.\n */\n/* stylelint-disable value-keyword-case */\n/* stylelint-enable value-keyword-case */\n.label {\n overflow: hidden;\n word-wrap: break-word;\n word-break: break-word;\n}\n\n.input-field:not(.input-horizontal) .label-container.hidden,\n.textarea-field:not(.textarea-horizontal) .label-container.hidden,\n.select-field:not(.select-horizontal) .label-container.hidden {\n position: absolute !important;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n margin: -1px !important;\n overflow: hidden !important;\n clip: rect(0, 0, 0, 0) !important;\n white-space: nowrap !important;\n border: 0 !important;\n}\n\n.label-container {\n flex-basis: var(--label-size, 33.33%);\n}\n\n.label-wrapper {\n display: flex;\n gap: 0.25rem;\n}\n\n.label-metadata {\n display: flex;\n flex-shrink: 0;\n flex-grow: 1;\n justify-content: space-between;\n gap: 0.25rem;\n color: rgb(var(--cat-font-color-muted, 81, 92, 108));\n}\n\n.label-optional,\n.label-character-count {\n display: inline-flex;\n align-items: center;\n max-height: 1.25rem;\n font-size: 0.75rem;\n line-height: 1rem;\n}\n\n.label-character-count {\n margin-left: auto;\n}\n\n.input-horizontal .label-container.hidden label,\n.textarea-horizontal .label-container.hidden label,\n.select-horizontal .label-container.hidden label {\n position: absolute !important;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n margin: -1px !important;\n overflow: hidden !important;\n clip: rect(0, 0, 0, 0) !important;\n white-space: nowrap !important;\n border: 0 !important;\n}\n.input-horizontal .label-wrapper,\n.textarea-horizontal .label-wrapper,\n.select-horizontal .label-wrapper {\n flex-direction: column;\n}\n.input-horizontal label,\n.textarea-horizontal label,\n.select-horizontal label {\n min-height: 2.5rem;\n display: inline-flex;\n align-items: center;\n}\n.input-horizontal .label-metadata,\n.textarea-horizontal .label-metadata,\n.select-horizontal .label-metadata {\n justify-content: flex-start;\n}\n.input-horizontal .label-metadata .label-character-count,\n.textarea-horizontal .label-metadata .label-character-count,\n.select-horizontal .label-metadata .label-character-count {\n margin-left: 0;\n}\n\n:host {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.label-hidden,\n.label-container:empty {\n display: none;\n}\n\n.picker {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.picker-head {\n display: flex;\n align-items: center;\n container-type: inline-size;\n}\n.picker-head > :not(:last-child) {\n margin-right: 0.25rem;\n}\n.picker-head h3 {\n font-size: 0.9375rem;\n line-height: 1.25rem;\n font-weight: var(--cat-font-weight-head, 600);\n font-feature-settings: \"pnum\";\n flex: 1;\n text-align: center;\n margin-block: 0;\n}\n@container (min-width: 20rem) {\n .picker-head h3 {\n font-size: 1.125rem;\n line-height: 1.5rem;\n font-weight: var(--cat-font-weight-head, 600);\n font-feature-settings: \"pnum\";\n }\n .picker-head > :not(:last-child) {\n margin-right: 0.5rem;\n }\n}\n\n.picker-grid {\n display: grid;\n /* stylelint-disable declaration-block-no-redundant-longhand-properties */\n grid-template-rows: 2rem repeat(6, 1fr);\n grid-template-columns: repeat(7, 1fr);\n grid-template-areas: \"h h h h h h h\" \"d d d d d d d\" \"d d d d d d d\" \"d d d d d d d\" \"d d d d d d d\" \"d d d d d d d\" \"d d d d d d d\";\n /* stylelint-enable declaration-block-no-redundant-longhand-properties */\n}\n.picker-weeks .picker-grid {\n /* stylelint-disable declaration-block-no-redundant-longhand-properties */\n grid-template-columns: 2rem repeat(7, 1fr);\n grid-template-areas: \". h h h h h h h\" \"w d d d d d d d\" \"w d d d d d d d\" \"w d d d d d d d\" \"w d d d d d d d\" \"w d d d d d d d\" \"w d d d d d d d\";\n /* stylelint-enable declaration-block-no-redundant-longhand-properties */\n}\n\n.picker-grid-head {\n grid-area: h;\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n place-items: end center;\n padding-bottom: 0.5rem;\n}\n\n.picker-grid-weeks {\n grid-area: w;\n display: grid;\n grid-template-rows: repeat(6, 1fr);\n place-items: center right;\n padding-right: 0.5rem;\n}\n\n.picker-grid-days {\n grid-area: d;\n display: grid;\n grid-template-rows: repeat(6, 1fr);\n grid-template-columns: repeat(7, 1fr);\n}\n\n.picker-grid-head > *,\n.picker-grid-weeks > * {\n font-size: 0.75rem;\n line-height: 1rem;\n font-weight: 600;\n color: rgb(var(--cat-font-color-muted, 81, 92, 108)) !important;\n text-decoration: none;\n}\n\n.date-other {\n opacity: 0.5;\n}\n\n.date-disabled {\n opacity: 0.25;\n}\n\n.picker-foot {\n display: flex;\n align-items: center;\n width: min-content;\n min-width: 100%;\n justify-content: space-between;\n container-type: inline-size;\n}\n.picker-foot > :not(:last-child) {\n margin-right: 0.25rem;\n}\n@container (min-width: 20rem) {\n .picker-foot > :not(:last-child) {\n margin-right: 0.5rem;\n }\n .picker-foot .cursor-help {\n font-size: 0.875rem;\n line-height: 1.125rem;\n font-weight: var(--cat-font-weight-body, 400);\n }\n}\n\n.cursor-help {\n margin-block: 0;\n font-size: 0.75rem;\n line-height: 1rem;\n font-weight: var(--cat-font-weight-body, 400);\n color: rgb(var(--cat-font-color-muted, 81, 92, 108)) !important;\n text-align: center;\n flex: 1;\n}\n.cursor-help:first-child {\n text-align: left;\n}\n.cursor-help:last-child {\n text-align: right;\n}\n.cursor-help:only-child {\n text-align: center;\n}\n\n.cursor-aria {\n position: absolute !important;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n margin: -1px !important;\n overflow: hidden !important;\n clip: rect(0, 0, 0, 0) !important;\n white-space: nowrap !important;\n border: 0 !important;\n}\n\n.date-range {\n --cat-border-radius-m: 0;\n}";
|
|
2293
|
-
const CatDateInlineStyle0 = catDateInlineCss;
|
|
2294
1603
|
|
|
2295
1604
|
let nextUniqueId$9 = 0;
|
|
2296
1605
|
const CatDateInline = class {
|
|
2297
1606
|
constructor(hostRef) {
|
|
2298
1607
|
registerInstance(this, hostRef);
|
|
2299
|
-
this.catChange = createEvent(this, "catChange"
|
|
1608
|
+
this.catChange = createEvent(this, "catChange");
|
|
2300
1609
|
this._id = `cat-date-inline-${nextUniqueId$9++}`;
|
|
2301
1610
|
this.language = catI18nRegistry.getLocale();
|
|
2302
1611
|
this.locale = getLocale$2(this.language);
|
|
@@ -2305,20 +1614,42 @@ const CatDateInline = class {
|
|
|
2305
1614
|
this.hasSlottedLabel = false;
|
|
2306
1615
|
this.hasSlottedHint = false;
|
|
2307
1616
|
this.viewDate = this.locale.now();
|
|
1617
|
+
/**
|
|
1618
|
+
* Hides the clear button.
|
|
1619
|
+
*/
|
|
2308
1620
|
this.noClear = false;
|
|
2309
|
-
|
|
1621
|
+
/**
|
|
1622
|
+
* Shows an arrow keys navigation hint.
|
|
1623
|
+
*/
|
|
2310
1624
|
this.hint = false;
|
|
1625
|
+
/**
|
|
1626
|
+
* Hides the today button.
|
|
1627
|
+
*/
|
|
2311
1628
|
this.noToday = false;
|
|
1629
|
+
/**
|
|
1630
|
+
* Show week numbers.
|
|
1631
|
+
*/
|
|
2312
1632
|
this.weeks = false;
|
|
1633
|
+
/**
|
|
1634
|
+
* The label for the input.
|
|
1635
|
+
*/
|
|
2313
1636
|
this.label = '';
|
|
1637
|
+
/**
|
|
1638
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
1639
|
+
*/
|
|
2314
1640
|
this.labelHidden = false;
|
|
2315
|
-
|
|
2316
|
-
|
|
1641
|
+
/**
|
|
1642
|
+
* Allow the selection of a range of dates, i.e. start and end date.
|
|
1643
|
+
*/
|
|
2317
1644
|
this.range = false;
|
|
1645
|
+
/**
|
|
1646
|
+
* A value is required or must be check for the form to be submittable.
|
|
1647
|
+
*/
|
|
2318
1648
|
this.required = false;
|
|
2319
|
-
|
|
1649
|
+
/**
|
|
1650
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
1651
|
+
*/
|
|
2320
1652
|
this.requiredMarker = 'optional';
|
|
2321
|
-
this.value = undefined;
|
|
2322
1653
|
}
|
|
2323
1654
|
get id() {
|
|
2324
1655
|
return this.identifier || this._id;
|
|
@@ -2563,7 +1894,7 @@ const CatDateInline = class {
|
|
|
2563
1894
|
static get delegatesFocus() { return true; }
|
|
2564
1895
|
get hostElement() { return getElement(this); }
|
|
2565
1896
|
};
|
|
2566
|
-
CatDateInline.style =
|
|
1897
|
+
CatDateInline.style = catDateInlineCss;
|
|
2567
1898
|
|
|
2568
1899
|
var HOOKS = [
|
|
2569
1900
|
"onChange",
|
|
@@ -5114,108 +4445,118 @@ if (typeof window !== "undefined") {
|
|
|
5114
4445
|
window.flatpickr = flatpickr;
|
|
5115
4446
|
}
|
|
5116
4447
|
|
|
5117
|
-
var weekSelect = {exports: {}};
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
}
|
|
5217
|
-
|
|
5218
|
-
|
|
4448
|
+
var weekSelect$1 = {exports: {}};
|
|
4449
|
+
|
|
4450
|
+
var weekSelect = weekSelect$1.exports;
|
|
4451
|
+
|
|
4452
|
+
var hasRequiredWeekSelect;
|
|
4453
|
+
|
|
4454
|
+
function requireWeekSelect () {
|
|
4455
|
+
if (hasRequiredWeekSelect) return weekSelect$1.exports;
|
|
4456
|
+
hasRequiredWeekSelect = 1;
|
|
4457
|
+
(function (module, exports) {
|
|
4458
|
+
(function (global, factory) {
|
|
4459
|
+
module.exports = factory() ;
|
|
4460
|
+
}(weekSelect, (function () {
|
|
4461
|
+
function getEventTarget(event) {
|
|
4462
|
+
try {
|
|
4463
|
+
if (typeof event.composedPath === "function") {
|
|
4464
|
+
var path = event.composedPath();
|
|
4465
|
+
return path[0];
|
|
4466
|
+
}
|
|
4467
|
+
return event.target;
|
|
4468
|
+
}
|
|
4469
|
+
catch (error) {
|
|
4470
|
+
return event.target;
|
|
4471
|
+
}
|
|
4472
|
+
}
|
|
4473
|
+
|
|
4474
|
+
function weekSelectPlugin() {
|
|
4475
|
+
return function (fp) {
|
|
4476
|
+
function onDayHover(event) {
|
|
4477
|
+
var day = getEventTarget(event);
|
|
4478
|
+
if (!day.classList.contains("flatpickr-day"))
|
|
4479
|
+
return;
|
|
4480
|
+
var days = fp.days.childNodes;
|
|
4481
|
+
var dayIndex = day.$i;
|
|
4482
|
+
var dayIndSeven = dayIndex / 7;
|
|
4483
|
+
var weekStartDay = days[7 * Math.floor(dayIndSeven)]
|
|
4484
|
+
.dateObj;
|
|
4485
|
+
var weekEndDay = days[7 * Math.ceil(dayIndSeven + 0.01) - 1].dateObj;
|
|
4486
|
+
for (var i = days.length; i--;) {
|
|
4487
|
+
var day_1 = days[i];
|
|
4488
|
+
var date = day_1.dateObj;
|
|
4489
|
+
if (date > weekEndDay || date < weekStartDay)
|
|
4490
|
+
day_1.classList.remove("inRange");
|
|
4491
|
+
else
|
|
4492
|
+
day_1.classList.add("inRange");
|
|
4493
|
+
}
|
|
4494
|
+
}
|
|
4495
|
+
function highlightWeek() {
|
|
4496
|
+
var selDate = fp.latestSelectedDateObj;
|
|
4497
|
+
if (selDate !== undefined &&
|
|
4498
|
+
selDate.getMonth() === fp.currentMonth &&
|
|
4499
|
+
selDate.getFullYear() === fp.currentYear) {
|
|
4500
|
+
fp.weekStartDay = fp.days.childNodes[7 * Math.floor(fp.selectedDateElem.$i / 7)].dateObj;
|
|
4501
|
+
fp.weekEndDay = fp.days.childNodes[7 * Math.ceil(fp.selectedDateElem.$i / 7 + 0.01) - 1].dateObj;
|
|
4502
|
+
}
|
|
4503
|
+
var days = fp.days.childNodes;
|
|
4504
|
+
for (var i = days.length; i--;) {
|
|
4505
|
+
var date = days[i].dateObj;
|
|
4506
|
+
if (date >= fp.weekStartDay && date <= fp.weekEndDay)
|
|
4507
|
+
days[i].classList.add("week", "selected");
|
|
4508
|
+
}
|
|
4509
|
+
}
|
|
4510
|
+
function clearHover() {
|
|
4511
|
+
var days = fp.days.childNodes;
|
|
4512
|
+
for (var i = days.length; i--;)
|
|
4513
|
+
days[i].classList.remove("inRange");
|
|
4514
|
+
}
|
|
4515
|
+
function onReady() {
|
|
4516
|
+
if (fp.daysContainer !== undefined)
|
|
4517
|
+
fp.daysContainer.addEventListener("mouseover", onDayHover);
|
|
4518
|
+
}
|
|
4519
|
+
function onDestroy() {
|
|
4520
|
+
if (fp.daysContainer !== undefined)
|
|
4521
|
+
fp.daysContainer.removeEventListener("mouseover", onDayHover);
|
|
4522
|
+
}
|
|
4523
|
+
return {
|
|
4524
|
+
onValueUpdate: highlightWeek,
|
|
4525
|
+
onMonthChange: highlightWeek,
|
|
4526
|
+
onYearChange: highlightWeek,
|
|
4527
|
+
onOpen: highlightWeek,
|
|
4528
|
+
onClose: clearHover,
|
|
4529
|
+
onParseConfig: function () {
|
|
4530
|
+
fp.config.mode = "single";
|
|
4531
|
+
fp.config.enableTime = false;
|
|
4532
|
+
fp.config.dateFormat = fp.config.dateFormat
|
|
4533
|
+
? fp.config.dateFormat
|
|
4534
|
+
: "\\W\\e\\e\\k #W, Y";
|
|
4535
|
+
fp.config.altFormat = fp.config.altFormat
|
|
4536
|
+
? fp.config.altFormat
|
|
4537
|
+
: "\\W\\e\\e\\k #W, Y";
|
|
4538
|
+
},
|
|
4539
|
+
onReady: [
|
|
4540
|
+
onReady,
|
|
4541
|
+
highlightWeek,
|
|
4542
|
+
function () {
|
|
4543
|
+
fp.loadedPlugins.push("weekSelect");
|
|
4544
|
+
},
|
|
4545
|
+
],
|
|
4546
|
+
onDestroy: onDestroy,
|
|
4547
|
+
};
|
|
4548
|
+
};
|
|
4549
|
+
}
|
|
4550
|
+
|
|
4551
|
+
return weekSelectPlugin;
|
|
4552
|
+
|
|
4553
|
+
})));
|
|
4554
|
+
} (weekSelect$1));
|
|
4555
|
+
return weekSelect$1.exports;
|
|
4556
|
+
}
|
|
4557
|
+
|
|
4558
|
+
var weekSelectExports = requireWeekSelect();
|
|
4559
|
+
var weekSelectPlugin = /*@__PURE__*/getDefaultExportFromCjs(weekSelectExports);
|
|
5219
4560
|
|
|
5220
4561
|
function getConfig(options, more = {}) {
|
|
5221
4562
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -5370,9 +4711,6 @@ function getLocale$1(language) {
|
|
|
5370
4711
|
* @see https://floating-ui.com/docs/virtual-elements
|
|
5371
4712
|
*/
|
|
5372
4713
|
|
|
5373
|
-
const sides = ['top', 'right', 'bottom', 'left'];
|
|
5374
|
-
const alignments = ['start', 'end'];
|
|
5375
|
-
const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
5376
4714
|
const min = Math.min;
|
|
5377
4715
|
const max = Math.max;
|
|
5378
4716
|
const round = Math.round;
|
|
@@ -5700,204 +5038,19 @@ async function detectOverflow(state, options) {
|
|
|
5700
5038
|
x: 1,
|
|
5701
5039
|
y: 1
|
|
5702
5040
|
};
|
|
5703
|
-
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
5704
|
-
elements,
|
|
5705
|
-
rect,
|
|
5706
|
-
offsetParent,
|
|
5707
|
-
strategy
|
|
5708
|
-
}) : rect);
|
|
5709
|
-
return {
|
|
5710
|
-
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
5711
|
-
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
5712
|
-
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
5713
|
-
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
5714
|
-
};
|
|
5715
|
-
}
|
|
5716
|
-
|
|
5717
|
-
/**
|
|
5718
|
-
* Provides data to position an inner element of the floating element so that it
|
|
5719
|
-
* appears centered to the reference element.
|
|
5720
|
-
* @see https://floating-ui.com/docs/arrow
|
|
5721
|
-
*/
|
|
5722
|
-
const arrow = options => ({
|
|
5723
|
-
name: 'arrow',
|
|
5724
|
-
options,
|
|
5725
|
-
async fn(state) {
|
|
5726
|
-
const {
|
|
5727
|
-
x,
|
|
5728
|
-
y,
|
|
5729
|
-
placement,
|
|
5730
|
-
rects,
|
|
5731
|
-
platform,
|
|
5732
|
-
elements,
|
|
5733
|
-
middlewareData
|
|
5734
|
-
} = state;
|
|
5735
|
-
// Since `element` is required, we don't Partial<> the type.
|
|
5736
|
-
const {
|
|
5737
|
-
element,
|
|
5738
|
-
padding = 0
|
|
5739
|
-
} = evaluate(options, state) || {};
|
|
5740
|
-
if (element == null) {
|
|
5741
|
-
return {};
|
|
5742
|
-
}
|
|
5743
|
-
const paddingObject = getPaddingObject(padding);
|
|
5744
|
-
const coords = {
|
|
5745
|
-
x,
|
|
5746
|
-
y
|
|
5747
|
-
};
|
|
5748
|
-
const axis = getAlignmentAxis(placement);
|
|
5749
|
-
const length = getAxisLength(axis);
|
|
5750
|
-
const arrowDimensions = await platform.getDimensions(element);
|
|
5751
|
-
const isYAxis = axis === 'y';
|
|
5752
|
-
const minProp = isYAxis ? 'top' : 'left';
|
|
5753
|
-
const maxProp = isYAxis ? 'bottom' : 'right';
|
|
5754
|
-
const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
|
|
5755
|
-
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
5756
|
-
const startDiff = coords[axis] - rects.reference[axis];
|
|
5757
|
-
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
|
5758
|
-
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
5759
|
-
|
|
5760
|
-
// DOM platform can return `window` as the `offsetParent`.
|
|
5761
|
-
if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
|
|
5762
|
-
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
5763
|
-
}
|
|
5764
|
-
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
5765
|
-
|
|
5766
|
-
// If the padding is large enough that it causes the arrow to no longer be
|
|
5767
|
-
// centered, modify the padding so that it is centered.
|
|
5768
|
-
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
|
5769
|
-
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
|
5770
|
-
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
|
5771
|
-
|
|
5772
|
-
// Make sure the arrow doesn't overflow the floating element if the center
|
|
5773
|
-
// point is outside the floating element's bounds.
|
|
5774
|
-
const min$1 = minPadding;
|
|
5775
|
-
const max = clientSize - arrowDimensions[length] - maxPadding;
|
|
5776
|
-
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
5777
|
-
const offset = clamp(min$1, center, max);
|
|
5778
|
-
|
|
5779
|
-
// If the reference is small enough that the arrow's padding causes it to
|
|
5780
|
-
// to point to nothing for an aligned placement, adjust the offset of the
|
|
5781
|
-
// floating element itself. To ensure `shift()` continues to take action,
|
|
5782
|
-
// a single reset is performed when this is true.
|
|
5783
|
-
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
5784
|
-
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
|
5785
|
-
return {
|
|
5786
|
-
[axis]: coords[axis] + alignmentOffset,
|
|
5787
|
-
data: {
|
|
5788
|
-
[axis]: offset,
|
|
5789
|
-
centerOffset: center - offset - alignmentOffset,
|
|
5790
|
-
...(shouldAddOffset && {
|
|
5791
|
-
alignmentOffset
|
|
5792
|
-
})
|
|
5793
|
-
},
|
|
5794
|
-
reset: shouldAddOffset
|
|
5795
|
-
};
|
|
5796
|
-
}
|
|
5797
|
-
});
|
|
5798
|
-
|
|
5799
|
-
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
5800
|
-
const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
|
|
5801
|
-
return allowedPlacementsSortedByAlignment.filter(placement => {
|
|
5802
|
-
if (alignment) {
|
|
5803
|
-
return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
|
|
5804
|
-
}
|
|
5805
|
-
return true;
|
|
5806
|
-
});
|
|
5807
|
-
}
|
|
5808
|
-
/**
|
|
5809
|
-
* Optimizes the visibility of the floating element by choosing the placement
|
|
5810
|
-
* that has the most space available automatically, without needing to specify a
|
|
5811
|
-
* preferred placement. Alternative to `flip`.
|
|
5812
|
-
* @see https://floating-ui.com/docs/autoPlacement
|
|
5813
|
-
*/
|
|
5814
|
-
const autoPlacement = function (options) {
|
|
5815
|
-
if (options === void 0) {
|
|
5816
|
-
options = {};
|
|
5817
|
-
}
|
|
5041
|
+
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
5042
|
+
elements,
|
|
5043
|
+
rect,
|
|
5044
|
+
offsetParent,
|
|
5045
|
+
strategy
|
|
5046
|
+
}) : rect);
|
|
5818
5047
|
return {
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
const {
|
|
5824
|
-
rects,
|
|
5825
|
-
middlewareData,
|
|
5826
|
-
placement,
|
|
5827
|
-
platform,
|
|
5828
|
-
elements
|
|
5829
|
-
} = state;
|
|
5830
|
-
const {
|
|
5831
|
-
crossAxis = false,
|
|
5832
|
-
alignment,
|
|
5833
|
-
allowedPlacements = placements,
|
|
5834
|
-
autoAlignment = true,
|
|
5835
|
-
...detectOverflowOptions
|
|
5836
|
-
} = evaluate(options, state);
|
|
5837
|
-
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
5838
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
5839
|
-
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
|
|
5840
|
-
const currentPlacement = placements$1[currentIndex];
|
|
5841
|
-
if (currentPlacement == null) {
|
|
5842
|
-
return {};
|
|
5843
|
-
}
|
|
5844
|
-
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
|
5845
|
-
|
|
5846
|
-
// Make `computeCoords` start from the right place.
|
|
5847
|
-
if (placement !== currentPlacement) {
|
|
5848
|
-
return {
|
|
5849
|
-
reset: {
|
|
5850
|
-
placement: placements$1[0]
|
|
5851
|
-
}
|
|
5852
|
-
};
|
|
5853
|
-
}
|
|
5854
|
-
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
|
5855
|
-
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
|
|
5856
|
-
placement: currentPlacement,
|
|
5857
|
-
overflows: currentOverflows
|
|
5858
|
-
}];
|
|
5859
|
-
const nextPlacement = placements$1[currentIndex + 1];
|
|
5860
|
-
|
|
5861
|
-
// There are more placements to check.
|
|
5862
|
-
if (nextPlacement) {
|
|
5863
|
-
return {
|
|
5864
|
-
data: {
|
|
5865
|
-
index: currentIndex + 1,
|
|
5866
|
-
overflows: allOverflows
|
|
5867
|
-
},
|
|
5868
|
-
reset: {
|
|
5869
|
-
placement: nextPlacement
|
|
5870
|
-
}
|
|
5871
|
-
};
|
|
5872
|
-
}
|
|
5873
|
-
const placementsSortedByMostSpace = allOverflows.map(d => {
|
|
5874
|
-
const alignment = getAlignment(d.placement);
|
|
5875
|
-
return [d.placement, alignment && crossAxis ?
|
|
5876
|
-
// Check along the mainAxis and main crossAxis side.
|
|
5877
|
-
d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
|
|
5878
|
-
// Check only the mainAxis.
|
|
5879
|
-
d.overflows[0], d.overflows];
|
|
5880
|
-
}).sort((a, b) => a[1] - b[1]);
|
|
5881
|
-
const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
|
|
5882
|
-
// Aligned placements should not check their opposite crossAxis
|
|
5883
|
-
// side.
|
|
5884
|
-
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
|
5885
|
-
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
5886
|
-
if (resetPlacement !== placement) {
|
|
5887
|
-
return {
|
|
5888
|
-
data: {
|
|
5889
|
-
index: currentIndex + 1,
|
|
5890
|
-
overflows: allOverflows
|
|
5891
|
-
},
|
|
5892
|
-
reset: {
|
|
5893
|
-
placement: resetPlacement
|
|
5894
|
-
}
|
|
5895
|
-
};
|
|
5896
|
-
}
|
|
5897
|
-
return {};
|
|
5898
|
-
}
|
|
5048
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
5049
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
5050
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
5051
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
5899
5052
|
};
|
|
5900
|
-
}
|
|
5053
|
+
}
|
|
5901
5054
|
|
|
5902
5055
|
/**
|
|
5903
5056
|
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
@@ -6025,206 +5178,6 @@ const flip$1 = function (options) {
|
|
|
6025
5178
|
};
|
|
6026
5179
|
};
|
|
6027
5180
|
|
|
6028
|
-
function getSideOffsets(overflow, rect) {
|
|
6029
|
-
return {
|
|
6030
|
-
top: overflow.top - rect.height,
|
|
6031
|
-
right: overflow.right - rect.width,
|
|
6032
|
-
bottom: overflow.bottom - rect.height,
|
|
6033
|
-
left: overflow.left - rect.width
|
|
6034
|
-
};
|
|
6035
|
-
}
|
|
6036
|
-
function isAnySideFullyClipped(overflow) {
|
|
6037
|
-
return sides.some(side => overflow[side] >= 0);
|
|
6038
|
-
}
|
|
6039
|
-
/**
|
|
6040
|
-
* Provides data to hide the floating element in applicable situations, such as
|
|
6041
|
-
* when it is not in the same clipping context as the reference element.
|
|
6042
|
-
* @see https://floating-ui.com/docs/hide
|
|
6043
|
-
*/
|
|
6044
|
-
const hide = function (options) {
|
|
6045
|
-
if (options === void 0) {
|
|
6046
|
-
options = {};
|
|
6047
|
-
}
|
|
6048
|
-
return {
|
|
6049
|
-
name: 'hide',
|
|
6050
|
-
options,
|
|
6051
|
-
async fn(state) {
|
|
6052
|
-
const {
|
|
6053
|
-
rects
|
|
6054
|
-
} = state;
|
|
6055
|
-
const {
|
|
6056
|
-
strategy = 'referenceHidden',
|
|
6057
|
-
...detectOverflowOptions
|
|
6058
|
-
} = evaluate(options, state);
|
|
6059
|
-
switch (strategy) {
|
|
6060
|
-
case 'referenceHidden':
|
|
6061
|
-
{
|
|
6062
|
-
const overflow = await detectOverflow(state, {
|
|
6063
|
-
...detectOverflowOptions,
|
|
6064
|
-
elementContext: 'reference'
|
|
6065
|
-
});
|
|
6066
|
-
const offsets = getSideOffsets(overflow, rects.reference);
|
|
6067
|
-
return {
|
|
6068
|
-
data: {
|
|
6069
|
-
referenceHiddenOffsets: offsets,
|
|
6070
|
-
referenceHidden: isAnySideFullyClipped(offsets)
|
|
6071
|
-
}
|
|
6072
|
-
};
|
|
6073
|
-
}
|
|
6074
|
-
case 'escaped':
|
|
6075
|
-
{
|
|
6076
|
-
const overflow = await detectOverflow(state, {
|
|
6077
|
-
...detectOverflowOptions,
|
|
6078
|
-
altBoundary: true
|
|
6079
|
-
});
|
|
6080
|
-
const offsets = getSideOffsets(overflow, rects.floating);
|
|
6081
|
-
return {
|
|
6082
|
-
data: {
|
|
6083
|
-
escapedOffsets: offsets,
|
|
6084
|
-
escaped: isAnySideFullyClipped(offsets)
|
|
6085
|
-
}
|
|
6086
|
-
};
|
|
6087
|
-
}
|
|
6088
|
-
default:
|
|
6089
|
-
{
|
|
6090
|
-
return {};
|
|
6091
|
-
}
|
|
6092
|
-
}
|
|
6093
|
-
}
|
|
6094
|
-
};
|
|
6095
|
-
};
|
|
6096
|
-
|
|
6097
|
-
function getBoundingRect(rects) {
|
|
6098
|
-
const minX = min(...rects.map(rect => rect.left));
|
|
6099
|
-
const minY = min(...rects.map(rect => rect.top));
|
|
6100
|
-
const maxX = max(...rects.map(rect => rect.right));
|
|
6101
|
-
const maxY = max(...rects.map(rect => rect.bottom));
|
|
6102
|
-
return {
|
|
6103
|
-
x: minX,
|
|
6104
|
-
y: minY,
|
|
6105
|
-
width: maxX - minX,
|
|
6106
|
-
height: maxY - minY
|
|
6107
|
-
};
|
|
6108
|
-
}
|
|
6109
|
-
function getRectsByLine(rects) {
|
|
6110
|
-
const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
|
|
6111
|
-
const groups = [];
|
|
6112
|
-
let prevRect = null;
|
|
6113
|
-
for (let i = 0; i < sortedRects.length; i++) {
|
|
6114
|
-
const rect = sortedRects[i];
|
|
6115
|
-
if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
|
|
6116
|
-
groups.push([rect]);
|
|
6117
|
-
} else {
|
|
6118
|
-
groups[groups.length - 1].push(rect);
|
|
6119
|
-
}
|
|
6120
|
-
prevRect = rect;
|
|
6121
|
-
}
|
|
6122
|
-
return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
|
|
6123
|
-
}
|
|
6124
|
-
/**
|
|
6125
|
-
* Provides improved positioning for inline reference elements that can span
|
|
6126
|
-
* over multiple lines, such as hyperlinks or range selections.
|
|
6127
|
-
* @see https://floating-ui.com/docs/inline
|
|
6128
|
-
*/
|
|
6129
|
-
const inline = function (options) {
|
|
6130
|
-
if (options === void 0) {
|
|
6131
|
-
options = {};
|
|
6132
|
-
}
|
|
6133
|
-
return {
|
|
6134
|
-
name: 'inline',
|
|
6135
|
-
options,
|
|
6136
|
-
async fn(state) {
|
|
6137
|
-
const {
|
|
6138
|
-
placement,
|
|
6139
|
-
elements,
|
|
6140
|
-
rects,
|
|
6141
|
-
platform,
|
|
6142
|
-
strategy
|
|
6143
|
-
} = state;
|
|
6144
|
-
// A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
|
|
6145
|
-
// ClientRect's bounds, despite the event listener being triggered. A
|
|
6146
|
-
// padding of 2 seems to handle this issue.
|
|
6147
|
-
const {
|
|
6148
|
-
padding = 2,
|
|
6149
|
-
x,
|
|
6150
|
-
y
|
|
6151
|
-
} = evaluate(options, state);
|
|
6152
|
-
const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
|
|
6153
|
-
const clientRects = getRectsByLine(nativeClientRects);
|
|
6154
|
-
const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
|
|
6155
|
-
const paddingObject = getPaddingObject(padding);
|
|
6156
|
-
function getBoundingClientRect() {
|
|
6157
|
-
// There are two rects and they are disjoined.
|
|
6158
|
-
if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
|
|
6159
|
-
// Find the first rect in which the point is fully inside.
|
|
6160
|
-
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;
|
|
6161
|
-
}
|
|
6162
|
-
|
|
6163
|
-
// There are 2 or more connected rects.
|
|
6164
|
-
if (clientRects.length >= 2) {
|
|
6165
|
-
if (getSideAxis(placement) === 'y') {
|
|
6166
|
-
const firstRect = clientRects[0];
|
|
6167
|
-
const lastRect = clientRects[clientRects.length - 1];
|
|
6168
|
-
const isTop = getSide(placement) === 'top';
|
|
6169
|
-
const top = firstRect.top;
|
|
6170
|
-
const bottom = lastRect.bottom;
|
|
6171
|
-
const left = isTop ? firstRect.left : lastRect.left;
|
|
6172
|
-
const right = isTop ? firstRect.right : lastRect.right;
|
|
6173
|
-
const width = right - left;
|
|
6174
|
-
const height = bottom - top;
|
|
6175
|
-
return {
|
|
6176
|
-
top,
|
|
6177
|
-
bottom,
|
|
6178
|
-
left,
|
|
6179
|
-
right,
|
|
6180
|
-
width,
|
|
6181
|
-
height,
|
|
6182
|
-
x: left,
|
|
6183
|
-
y: top
|
|
6184
|
-
};
|
|
6185
|
-
}
|
|
6186
|
-
const isLeftSide = getSide(placement) === 'left';
|
|
6187
|
-
const maxRight = max(...clientRects.map(rect => rect.right));
|
|
6188
|
-
const minLeft = min(...clientRects.map(rect => rect.left));
|
|
6189
|
-
const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
|
|
6190
|
-
const top = measureRects[0].top;
|
|
6191
|
-
const bottom = measureRects[measureRects.length - 1].bottom;
|
|
6192
|
-
const left = minLeft;
|
|
6193
|
-
const right = maxRight;
|
|
6194
|
-
const width = right - left;
|
|
6195
|
-
const height = bottom - top;
|
|
6196
|
-
return {
|
|
6197
|
-
top,
|
|
6198
|
-
bottom,
|
|
6199
|
-
left,
|
|
6200
|
-
right,
|
|
6201
|
-
width,
|
|
6202
|
-
height,
|
|
6203
|
-
x: left,
|
|
6204
|
-
y: top
|
|
6205
|
-
};
|
|
6206
|
-
}
|
|
6207
|
-
return fallback;
|
|
6208
|
-
}
|
|
6209
|
-
const resetRects = await platform.getElementRects({
|
|
6210
|
-
reference: {
|
|
6211
|
-
getBoundingClientRect
|
|
6212
|
-
},
|
|
6213
|
-
floating: elements.floating,
|
|
6214
|
-
strategy
|
|
6215
|
-
});
|
|
6216
|
-
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) {
|
|
6217
|
-
return {
|
|
6218
|
-
reset: {
|
|
6219
|
-
rects: resetRects
|
|
6220
|
-
}
|
|
6221
|
-
};
|
|
6222
|
-
}
|
|
6223
|
-
return {};
|
|
6224
|
-
}
|
|
6225
|
-
};
|
|
6226
|
-
};
|
|
6227
|
-
|
|
6228
5181
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
6229
5182
|
// Derivable.
|
|
6230
5183
|
|
|
@@ -6386,74 +5339,6 @@ const shift$1 = function (options) {
|
|
|
6386
5339
|
}
|
|
6387
5340
|
};
|
|
6388
5341
|
};
|
|
6389
|
-
/**
|
|
6390
|
-
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
6391
|
-
*/
|
|
6392
|
-
const limitShift = function (options) {
|
|
6393
|
-
if (options === void 0) {
|
|
6394
|
-
options = {};
|
|
6395
|
-
}
|
|
6396
|
-
return {
|
|
6397
|
-
options,
|
|
6398
|
-
fn(state) {
|
|
6399
|
-
const {
|
|
6400
|
-
x,
|
|
6401
|
-
y,
|
|
6402
|
-
placement,
|
|
6403
|
-
rects,
|
|
6404
|
-
middlewareData
|
|
6405
|
-
} = state;
|
|
6406
|
-
const {
|
|
6407
|
-
offset = 0,
|
|
6408
|
-
mainAxis: checkMainAxis = true,
|
|
6409
|
-
crossAxis: checkCrossAxis = true
|
|
6410
|
-
} = evaluate(options, state);
|
|
6411
|
-
const coords = {
|
|
6412
|
-
x,
|
|
6413
|
-
y
|
|
6414
|
-
};
|
|
6415
|
-
const crossAxis = getSideAxis(placement);
|
|
6416
|
-
const mainAxis = getOppositeAxis(crossAxis);
|
|
6417
|
-
let mainAxisCoord = coords[mainAxis];
|
|
6418
|
-
let crossAxisCoord = coords[crossAxis];
|
|
6419
|
-
const rawOffset = evaluate(offset, state);
|
|
6420
|
-
const computedOffset = typeof rawOffset === 'number' ? {
|
|
6421
|
-
mainAxis: rawOffset,
|
|
6422
|
-
crossAxis: 0
|
|
6423
|
-
} : {
|
|
6424
|
-
mainAxis: 0,
|
|
6425
|
-
crossAxis: 0,
|
|
6426
|
-
...rawOffset
|
|
6427
|
-
};
|
|
6428
|
-
if (checkMainAxis) {
|
|
6429
|
-
const len = mainAxis === 'y' ? 'height' : 'width';
|
|
6430
|
-
const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
|
|
6431
|
-
const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
|
6432
|
-
if (mainAxisCoord < limitMin) {
|
|
6433
|
-
mainAxisCoord = limitMin;
|
|
6434
|
-
} else if (mainAxisCoord > limitMax) {
|
|
6435
|
-
mainAxisCoord = limitMax;
|
|
6436
|
-
}
|
|
6437
|
-
}
|
|
6438
|
-
if (checkCrossAxis) {
|
|
6439
|
-
var _middlewareData$offse, _middlewareData$offse2;
|
|
6440
|
-
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
6441
|
-
const isOriginSide = ['top', 'left'].includes(getSide(placement));
|
|
6442
|
-
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);
|
|
6443
|
-
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);
|
|
6444
|
-
if (crossAxisCoord < limitMin) {
|
|
6445
|
-
crossAxisCoord = limitMin;
|
|
6446
|
-
} else if (crossAxisCoord > limitMax) {
|
|
6447
|
-
crossAxisCoord = limitMax;
|
|
6448
|
-
}
|
|
6449
|
-
}
|
|
6450
|
-
return {
|
|
6451
|
-
[mainAxis]: mainAxisCoord,
|
|
6452
|
-
[crossAxis]: crossAxisCoord
|
|
6453
|
-
};
|
|
6454
|
-
}
|
|
6455
|
-
};
|
|
6456
|
-
};
|
|
6457
5342
|
|
|
6458
5343
|
/**
|
|
6459
5344
|
* Provides data that allows you to change the size of the floating element —
|
|
@@ -7348,14 +6233,6 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
7348
6233
|
*/
|
|
7349
6234
|
const offset = offset$1;
|
|
7350
6235
|
|
|
7351
|
-
/**
|
|
7352
|
-
* Optimizes the visibility of the floating element by choosing the placement
|
|
7353
|
-
* that has the most space available automatically, without needing to specify a
|
|
7354
|
-
* preferred placement. Alternative to `flip`.
|
|
7355
|
-
* @see https://floating-ui.com/docs/autoPlacement
|
|
7356
|
-
*/
|
|
7357
|
-
autoPlacement;
|
|
7358
|
-
|
|
7359
6236
|
/**
|
|
7360
6237
|
* Optimizes the visibility of the floating element by shifting it in order to
|
|
7361
6238
|
* keep it in view when it will overflow the clipping boundary.
|
|
@@ -7379,32 +6256,6 @@ const flip = flip$1;
|
|
|
7379
6256
|
*/
|
|
7380
6257
|
const size = size$1;
|
|
7381
6258
|
|
|
7382
|
-
/**
|
|
7383
|
-
* Provides data to hide the floating element in applicable situations, such as
|
|
7384
|
-
* when it is not in the same clipping context as the reference element.
|
|
7385
|
-
* @see https://floating-ui.com/docs/hide
|
|
7386
|
-
*/
|
|
7387
|
-
hide;
|
|
7388
|
-
|
|
7389
|
-
/**
|
|
7390
|
-
* Provides data to position an inner element of the floating element so that it
|
|
7391
|
-
* appears centered to the reference element.
|
|
7392
|
-
* @see https://floating-ui.com/docs/arrow
|
|
7393
|
-
*/
|
|
7394
|
-
arrow;
|
|
7395
|
-
|
|
7396
|
-
/**
|
|
7397
|
-
* Provides improved positioning for inline reference elements that can span
|
|
7398
|
-
* over multiple lines, such as hyperlinks or range selections.
|
|
7399
|
-
* @see https://floating-ui.com/docs/inline
|
|
7400
|
-
*/
|
|
7401
|
-
inline;
|
|
7402
|
-
|
|
7403
|
-
/**
|
|
7404
|
-
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
7405
|
-
*/
|
|
7406
|
-
limitShift;
|
|
7407
|
-
|
|
7408
6259
|
/**
|
|
7409
6260
|
* Computes the `x` and `y` coordinates that will place the floating element
|
|
7410
6261
|
* next to a given reference element.
|
|
@@ -7429,44 +6280,73 @@ const computePosition = (reference, floating, options) => {
|
|
|
7429
6280
|
};
|
|
7430
6281
|
|
|
7431
6282
|
const catDatepickerCss = "@charset \"UTF-8\";.flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0,0,0,0.08);box-shadow:1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0,0,0,0.08)}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);animation:fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none !important;box-shadow:none !important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:'';height:0;width:0;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9);height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9)}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{left:0;}.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{right:0;}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill 0.1s;transition:fill 0.1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,0.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,0.1)}.numInputWrapper span:active{background:rgba(0,0,0,0.2)}.numInputWrapper span:after{display:block;content:\"\";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,0.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,0.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,0.5)}.numInputWrapper:hover{background:rgba(0,0,0,0.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0px, 0px, 0px);transform:translate3d(0px, 0px, 0px)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:0.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\\0;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,0.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,0.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 0.5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,0.5);background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0 0;outline:none;padding:0 0 0 0.5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,0.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0px, 0px, 0px);transform:translate3d(0px, 0px, 0px);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(57,57,57,0.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,0.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7, 5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7, 5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,0.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:\"\";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:bold}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:bold;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0)}to{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0)}to{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}.flatpickr-calendar{font-size:0.875rem;line-height:1.125rem;font-weight:var(--cat-font-weight-body, 400);box-shadow:0 4px 6px -2px rgba(27, 31, 38, 0.03), 0 12px 16px -4px rgba(27, 31, 38, 0.08);border-radius:var(--cat-border-radius-m, 0.25rem);border:1px solid rgb(var(--cat-border-color, 235, 236, 240));background:white;padding:1rem}.flatpickr-calendar:not(.inline).animate{transform:translateY(-1rem);opacity:0;transition:transform 125ms cubic-bezier(0.3, 0, 0.8, 0.15), opacity 125ms cubic-bezier(0.3, 0, 0.8, 0.15)}.flatpickr-calendar::before,.flatpickr-calendar::after{display:none}.flatpickr-calendar.inline,.flatpickr-calendar.open{display:flex;flex-direction:column;gap:1rem;width:auto !important}.flatpickr-calendar.inline{border:unset;padding:0}.flatpickr-calendar.open{z-index:calc(var(--cat-z-index, 1000) + 100);margin-top:0.75rem;margin-left:-0.75rem}.flatpickr-calendar.open.animate{opacity:1;transform:translateY(0);transition:transform 500ms cubic-bezier(0.05, 0.7, 0.1, 1), opacity 500ms cubic-bezier(0.05, 0.7, 0.1, 1)}.flatpickr-months{gap:0.25rem}.flatpickr-months .flatpickr-month{height:auto}.flatpickr-current-month{font-size:1.125rem;line-height:1.5rem;font-weight:var(--cat-font-weight-head, 600);font-feature-settings:\"pnum\";height:100%;padding:0;display:flex;position:static;width:auto;gap:0.25rem}.flatpickr-current-month .flatpickr-monthDropdown-months{padding:0 0.25rem;flex:1;margin:unset;font-weight:inherit;border-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-current-month .flatpickr-monthDropdown-months:hover,.flatpickr-current-month .flatpickr-monthDropdown-months:focus-within{background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.05)}.flatpickr-current-month input.cur-year{padding:0;font-weight:inherit;line-height:2.25rem}.flatpickr-current-month .numInputWrapper{width:7ch}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{position:static;width:2.25rem;height:2.25rem;padding:0;align-items:center;display:flex;justify-content:center;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:rgb(var(--cat-font-color-base, 0, 0, 0))}.flatpickr-weekdays{height:2rem}.flatpickr-weekdays .flatpickr-weekday{color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.75rem;line-height:1rem;font-weight:700}.flatpickr-weekwrapper .flatpickr-weekday{height:2rem}.flatpickr-weekwrapper .flatpickr-weeks{box-shadow:none;width:2rem;padding:0;margin-right:0.5rem;background:#f2f4f7;border-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{font-size:0.75rem;line-height:1rem;font-weight:700;color:rgb(var(--cat-font-color-muted, 81, 92, 108));text-align:center;line-height:2.25rem}.flatpickr-days{width:15.75rem !important}.dayContainer{width:15.75rem;min-width:15.75rem;max-width:15.75rem}.flatpickr-day{color:rgb(var(--cat-font-color-base, 0, 0, 0));height:2.25rem;line-height:2.25rem;border:0;border-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-day:hover{background-color:#f2f4f7;font-weight:700}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-weight:inherit;background-color:inherit !important}.flatpickr-day.today{color:rgb(var(--cat-primary-text, 0, 129, 148));box-shadow:inset 0 0 0 2px rgb(var(--cat-primary-text, 0, 129, 148))}.flatpickr-day.today:hover,.flatpickr-day.today:focus{background-color:#f2f4f7;color:rgb(var(--cat-primary-text, 0, 129, 148))}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(var(--cat-font-color-muted, 81, 92, 108), 0.5)}.flatpickr-day.selected,.flatpickr-day.selected:hover,.flatpickr-day.selected:focus,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange,.flatpickr-day.startRange:hover,.flatpickr-day.startRange:focus,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange,.flatpickr-day.endRange:hover,.flatpickr-day.endRange:focus,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay{font-weight:700;background-color:rgb(var(--cat-primary-bg, 0, 129, 148)) !important;color:rgb(var(--cat-primary-fill, 255, 255, 255)) !important}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.1)}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-top-left-radius:var(--cat-border-radius-m, 0.25rem);border-bottom-left-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-top-right-radius:var(--cat-border-radius-m, 0.25rem);border-bottom-right-radius:var(--cat-border-radius-m, 0.25rem)}.numInputWrapper{padding:0 1rem 0 0.5rem;border-radius:var(--cat-border-radius-m, 0.25rem)}.numInputWrapper:hover,.numInputWrapper:focus-within{background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.05)}.numInputWrapper span{border:none;background:transparent;width:1rem;padding:0;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.numInputWrapper span.arrowUp::after{content:\"↑\";align-items:flex-end}.numInputWrapper span.arrowDown::after{content:\"↓\";align-items:flex-start}.numInputWrapper span::after{font-size:0.75rem;line-height:1rem;font-weight:700;position:static;border:0 !important;font-size:10px;display:flex;height:100%;justify-content:center}.numInputWrapper span:hover{color:rgb(var(--cat-font-color-base, 0, 0, 0));background:transparent}.flatpickr-calendar.hasTime .flatpickr-time{border:1px solid rgb(var(--cat-border-color, 235, 236, 240));border-radius:var(--cat-border-radius-m, 0.25rem);min-width:12rem;height:auto}.flatpickr-calendar.hasTime .flatpickr-time .numInputWrapper{height:2rem;padding:0;margin:0.25rem;display:flex}.flatpickr-calendar.hasTime.noCalendar{padding:0}.flatpickr-calendar.hasTime.noCalendar .flatpickr-time{border:none}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{margin:0 0.25rem;font-size:1.125rem;line-height:1.5rem;font-weight:400;font-feature-settings:\"pnum\";color:rgb(var(--cat-font-color-base, 0, 0, 0));line-height:2.25rem}.flatpickr-time .flatpickr-am-pm{width:25%;padding:0 0.5rem}.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time .flatpickr-am-pm:focus{border-radius:var(--cat-border-radius-m, 0.25rem);background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.05)}.flatpickr-time{max-height:unset}.flatpickr-time input{background:transparent !important;color:rgb(var(--cat-font-color-base, 0, 0, 0));font-size:0.9375rem;line-height:2.25rem;font-family:inherit}.flatpickr-time input.flatpickr-hour{font-weight:inherit}.flatpickr-day.inRange:not(.today),.flatpickr-day.week.selected{box-shadow:none}.flatpickr-day.inRange:nth-child(7n+1),.flatpickr-day.week.selected:nth-child(7n+1){border-top-left-radius:var(--cat-border-radius-m, 0.25rem);border-bottom-left-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-day.inRange:nth-child(7n+7),.flatpickr-day.week.selected:nth-child(7n+7){border-top-right-radius:var(--cat-border-radius-m, 0.25rem);border-bottom-right-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)){box-shadow:none}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:var(--cat-border-radius-m, 0.25rem)}:host{display:flex}:host([hidden]){display:none}cat-input{flex:1 1 auto;margin:0}";
|
|
7432
|
-
const CatDatepickerStyle0 = catDatepickerCss;
|
|
7433
6283
|
|
|
7434
6284
|
const CatDatepickerFlat = class {
|
|
7435
6285
|
constructor(hostRef) {
|
|
7436
6286
|
registerInstance(this, hostRef);
|
|
7437
|
-
this.catChange = createEvent(this, "catChange"
|
|
7438
|
-
this.catFocus = createEvent(this, "catFocus"
|
|
7439
|
-
this.catBlur = createEvent(this, "catBlur"
|
|
6287
|
+
this.catChange = createEvent(this, "catChange");
|
|
6288
|
+
this.catFocus = createEvent(this, "catFocus");
|
|
6289
|
+
this.catBlur = createEvent(this, "catBlur");
|
|
7440
6290
|
this.hasSlottedLabel = false;
|
|
7441
6291
|
this.hasSlottedHint = false;
|
|
6292
|
+
/**
|
|
6293
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
6294
|
+
*/
|
|
7442
6295
|
this.requiredMarker = 'optional';
|
|
6296
|
+
/**
|
|
6297
|
+
* Whether the label is on top or left.
|
|
6298
|
+
*/
|
|
7443
6299
|
this.horizontal = false;
|
|
6300
|
+
/**
|
|
6301
|
+
* Hint for form autofill feature.
|
|
6302
|
+
*/
|
|
7444
6303
|
this.autoComplete = 'off';
|
|
6304
|
+
/**
|
|
6305
|
+
* Whether the input should show a clear button.
|
|
6306
|
+
*/
|
|
7445
6307
|
this.clearable = false;
|
|
6308
|
+
/**
|
|
6309
|
+
* Whether the input is disabled.
|
|
6310
|
+
*/
|
|
7446
6311
|
this.disabled = false;
|
|
7447
|
-
|
|
7448
|
-
|
|
6312
|
+
/**
|
|
6313
|
+
* Display the icon on the right.
|
|
6314
|
+
*/
|
|
7449
6315
|
this.iconRight = false;
|
|
7450
|
-
|
|
6316
|
+
/**
|
|
6317
|
+
* The label for the input.
|
|
6318
|
+
*/
|
|
7451
6319
|
this.label = '';
|
|
6320
|
+
/**
|
|
6321
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
6322
|
+
*/
|
|
7452
6323
|
this.labelHidden = false;
|
|
7453
|
-
|
|
7454
|
-
|
|
6324
|
+
/**
|
|
6325
|
+
* The mode of the datepicker, to select a date, time, both, a date range or a week number.
|
|
6326
|
+
*/
|
|
7455
6327
|
this.mode = 'date';
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
-
this.textSuffix = undefined;
|
|
6328
|
+
/**
|
|
6329
|
+
* The value is not editable.
|
|
6330
|
+
*/
|
|
7460
6331
|
this.readonly = false;
|
|
6332
|
+
/**
|
|
6333
|
+
* A value is required or must be check for the form to be submittable.
|
|
6334
|
+
*/
|
|
7461
6335
|
this.required = false;
|
|
6336
|
+
/**
|
|
6337
|
+
* The step size to use when changing the time.
|
|
6338
|
+
*/
|
|
7462
6339
|
this.step = 5;
|
|
6340
|
+
/**
|
|
6341
|
+
* Instead of body, appends the calendar to the cat-datepicker element instead
|
|
6342
|
+
*/
|
|
7463
6343
|
this.attachToElement = false;
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
6344
|
+
/**
|
|
6345
|
+
* Fine-grained control over when the errors are shown. Can be `false` to
|
|
6346
|
+
* never show errors, `true` to show errors on blur, or a number to show
|
|
6347
|
+
* errors change with the given delay in milliseconds or immediately on blur.
|
|
6348
|
+
*/
|
|
7467
6349
|
this.errorUpdate = 0;
|
|
7468
|
-
this.nativeAttributes = undefined;
|
|
7469
|
-
this.nativePickerAttributes = undefined;
|
|
7470
6350
|
}
|
|
7471
6351
|
get input() {
|
|
7472
6352
|
return this._input?.shadowRoot?.querySelector('input') ?? undefined;
|
|
@@ -7602,23 +6482,30 @@ const CatDatepickerFlat = class {
|
|
|
7602
6482
|
"max": ["onMinChanged"]
|
|
7603
6483
|
}; }
|
|
7604
6484
|
};
|
|
7605
|
-
CatDatepickerFlat.style =
|
|
6485
|
+
CatDatepickerFlat.style = catDatepickerCss;
|
|
7606
6486
|
|
|
7607
6487
|
const catDatepickerInlineCss = "@charset \"UTF-8\";.flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0,0,0,0.08);box-shadow:1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0,0,0,0.08)}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);animation:fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none !important;box-shadow:none !important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:'';height:0;width:0;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9);height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9)}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{left:0;}.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{right:0;}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill 0.1s;transition:fill 0.1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,0.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,0.1)}.numInputWrapper span:active{background:rgba(0,0,0,0.2)}.numInputWrapper span:after{display:block;content:\"\";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,0.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,0.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,0.5)}.numInputWrapper:hover{background:rgba(0,0,0,0.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0px, 0px, 0px);transform:translate3d(0px, 0px, 0px)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:0.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\\0;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,0.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,0.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 0.5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,0.5);background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0 0;outline:none;padding:0 0 0 0.5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,0.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0px, 0px, 0px);transform:translate3d(0px, 0px, 0px);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(57,57,57,0.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,0.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7, 5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7, 5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,0.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:\"\";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:bold}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:bold;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0)}to{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0)}to{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}.flatpickr-calendar{font-size:0.875rem;line-height:1.125rem;font-weight:var(--cat-font-weight-body, 400);box-shadow:0 4px 6px -2px rgba(27, 31, 38, 0.03), 0 12px 16px -4px rgba(27, 31, 38, 0.08);border-radius:var(--cat-border-radius-m, 0.25rem);border:1px solid rgb(var(--cat-border-color, 235, 236, 240));background:white;padding:1rem}.flatpickr-calendar:not(.inline).animate{transform:translateY(-1rem);opacity:0;transition:transform 125ms cubic-bezier(0.3, 0, 0.8, 0.15), opacity 125ms cubic-bezier(0.3, 0, 0.8, 0.15)}.flatpickr-calendar::before,.flatpickr-calendar::after{display:none}.flatpickr-calendar.inline,.flatpickr-calendar.open{display:flex;flex-direction:column;gap:1rem;width:auto !important}.flatpickr-calendar.inline{border:unset;padding:0}.flatpickr-calendar.open{z-index:calc(var(--cat-z-index, 1000) + 100);margin-top:0.75rem;margin-left:-0.75rem}.flatpickr-calendar.open.animate{opacity:1;transform:translateY(0);transition:transform 500ms cubic-bezier(0.05, 0.7, 0.1, 1), opacity 500ms cubic-bezier(0.05, 0.7, 0.1, 1)}.flatpickr-months{gap:0.25rem}.flatpickr-months .flatpickr-month{height:auto}.flatpickr-current-month{font-size:1.125rem;line-height:1.5rem;font-weight:var(--cat-font-weight-head, 600);font-feature-settings:\"pnum\";height:100%;padding:0;display:flex;position:static;width:auto;gap:0.25rem}.flatpickr-current-month .flatpickr-monthDropdown-months{padding:0 0.25rem;flex:1;margin:unset;font-weight:inherit;border-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-current-month .flatpickr-monthDropdown-months:hover,.flatpickr-current-month .flatpickr-monthDropdown-months:focus-within{background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.05)}.flatpickr-current-month input.cur-year{padding:0;font-weight:inherit;line-height:2.25rem}.flatpickr-current-month .numInputWrapper{width:7ch}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{position:static;width:2.25rem;height:2.25rem;padding:0;align-items:center;display:flex;justify-content:center;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:rgb(var(--cat-font-color-base, 0, 0, 0))}.flatpickr-weekdays{height:2rem}.flatpickr-weekdays .flatpickr-weekday{color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.75rem;line-height:1rem;font-weight:700}.flatpickr-weekwrapper .flatpickr-weekday{height:2rem}.flatpickr-weekwrapper .flatpickr-weeks{box-shadow:none;width:2rem;padding:0;margin-right:0.5rem;background:#f2f4f7;border-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{font-size:0.75rem;line-height:1rem;font-weight:700;color:rgb(var(--cat-font-color-muted, 81, 92, 108));text-align:center;line-height:2.25rem}.flatpickr-days{width:15.75rem !important}.dayContainer{width:15.75rem;min-width:15.75rem;max-width:15.75rem}.flatpickr-day{color:rgb(var(--cat-font-color-base, 0, 0, 0));height:2.25rem;line-height:2.25rem;border:0;border-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-day:hover{background-color:#f2f4f7;font-weight:700}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-weight:inherit;background-color:inherit !important}.flatpickr-day.today{color:rgb(var(--cat-primary-text, 0, 129, 148));box-shadow:inset 0 0 0 2px rgb(var(--cat-primary-text, 0, 129, 148))}.flatpickr-day.today:hover,.flatpickr-day.today:focus{background-color:#f2f4f7;color:rgb(var(--cat-primary-text, 0, 129, 148))}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(var(--cat-font-color-muted, 81, 92, 108), 0.5)}.flatpickr-day.selected,.flatpickr-day.selected:hover,.flatpickr-day.selected:focus,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange,.flatpickr-day.startRange:hover,.flatpickr-day.startRange:focus,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange,.flatpickr-day.endRange:hover,.flatpickr-day.endRange:focus,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay{font-weight:700;background-color:rgb(var(--cat-primary-bg, 0, 129, 148)) !important;color:rgb(var(--cat-primary-fill, 255, 255, 255)) !important}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.1)}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-top-left-radius:var(--cat-border-radius-m, 0.25rem);border-bottom-left-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-top-right-radius:var(--cat-border-radius-m, 0.25rem);border-bottom-right-radius:var(--cat-border-radius-m, 0.25rem)}.numInputWrapper{padding:0 1rem 0 0.5rem;border-radius:var(--cat-border-radius-m, 0.25rem)}.numInputWrapper:hover,.numInputWrapper:focus-within{background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.05)}.numInputWrapper span{border:none;background:transparent;width:1rem;padding:0;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.numInputWrapper span.arrowUp::after{content:\"↑\";align-items:flex-end}.numInputWrapper span.arrowDown::after{content:\"↓\";align-items:flex-start}.numInputWrapper span::after{font-size:0.75rem;line-height:1rem;font-weight:700;position:static;border:0 !important;font-size:10px;display:flex;height:100%;justify-content:center}.numInputWrapper span:hover{color:rgb(var(--cat-font-color-base, 0, 0, 0));background:transparent}.flatpickr-calendar.hasTime .flatpickr-time{border:1px solid rgb(var(--cat-border-color, 235, 236, 240));border-radius:var(--cat-border-radius-m, 0.25rem);min-width:12rem;height:auto}.flatpickr-calendar.hasTime .flatpickr-time .numInputWrapper{height:2rem;padding:0;margin:0.25rem;display:flex}.flatpickr-calendar.hasTime.noCalendar{padding:0}.flatpickr-calendar.hasTime.noCalendar .flatpickr-time{border:none}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{margin:0 0.25rem;font-size:1.125rem;line-height:1.5rem;font-weight:400;font-feature-settings:\"pnum\";color:rgb(var(--cat-font-color-base, 0, 0, 0));line-height:2.25rem}.flatpickr-time .flatpickr-am-pm{width:25%;padding:0 0.5rem}.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time .flatpickr-am-pm:focus{border-radius:var(--cat-border-radius-m, 0.25rem);background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.05)}.flatpickr-time{max-height:unset}.flatpickr-time input{background:transparent !important;color:rgb(var(--cat-font-color-base, 0, 0, 0));font-size:0.9375rem;line-height:2.25rem;font-family:inherit}.flatpickr-time input.flatpickr-hour{font-weight:inherit}.flatpickr-day.inRange:not(.today),.flatpickr-day.week.selected{box-shadow:none}.flatpickr-day.inRange:nth-child(7n+1),.flatpickr-day.week.selected:nth-child(7n+1){border-top-left-radius:var(--cat-border-radius-m, 0.25rem);border-bottom-left-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-day.inRange:nth-child(7n+7),.flatpickr-day.week.selected:nth-child(7n+7){border-top-right-radius:var(--cat-border-radius-m, 0.25rem);border-bottom-right-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)){box-shadow:none}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:var(--cat-border-radius-m, 0.25rem)}:host{display:inline-flex}:host>div{display:flex}:host([hidden]){display:none}.datepicker-disabled .flatpickr-days,.datepicker-disabled .flatpickr-time,.datepicker-readonly .flatpickr-days,.datepicker-readonly .flatpickr-time{pointer-events:none}.datepicker-disabled .flatpickr-days{opacity:0.75}.datepicker-disabled .flatpickr-time input,.datepicker-disabled .flatpickr-time .flatpickr-time-separator,.datepicker-disabled .flatpickr-time .flatpickr-am-pm{color:rgb(var(--cat-font-color-muted, 81, 92, 108));opacity:0.75}input{display:none}.flatpickr-calendar{box-shadow:unset;background:unset}";
|
|
7608
|
-
const CatDatepickerInlineStyle0 = catDatepickerInlineCss;
|
|
7609
6488
|
|
|
7610
6489
|
const CatDatepickerInline = class {
|
|
7611
6490
|
constructor(hostRef) {
|
|
7612
6491
|
registerInstance(this, hostRef);
|
|
7613
|
-
this.catChange = createEvent(this, "catChange"
|
|
6492
|
+
this.catChange = createEvent(this, "catChange");
|
|
6493
|
+
/**
|
|
6494
|
+
* Whether the input is disabled.
|
|
6495
|
+
*/
|
|
7614
6496
|
this.disabled = false;
|
|
7615
|
-
|
|
7616
|
-
|
|
6497
|
+
/**
|
|
6498
|
+
* The mode of the datepicker, to select a date, time, both, a date range or a week number.
|
|
6499
|
+
*/
|
|
7617
6500
|
this.mode = 'date';
|
|
6501
|
+
/**
|
|
6502
|
+
* The value is not editable.
|
|
6503
|
+
*/
|
|
7618
6504
|
this.readonly = false;
|
|
6505
|
+
/**
|
|
6506
|
+
* The step size to use when changing the time.
|
|
6507
|
+
*/
|
|
7619
6508
|
this.step = 5;
|
|
7620
|
-
this.value = undefined;
|
|
7621
|
-
this.nativePickerAttributes = undefined;
|
|
7622
6509
|
}
|
|
7623
6510
|
onValueChanged(value) {
|
|
7624
6511
|
if (value) {
|
|
@@ -7674,11 +6561,12 @@ const CatDatepickerInline = class {
|
|
|
7674
6561
|
"readonly": ["onDisabledChanged"]
|
|
7675
6562
|
}; }
|
|
7676
6563
|
};
|
|
7677
|
-
CatDatepickerInline.style =
|
|
6564
|
+
CatDatepickerInline.style = catDatepickerInlineCss;
|
|
7678
6565
|
|
|
7679
6566
|
/**
|
|
7680
6567
|
* Auto-generated file. Do not edit directly.
|
|
7681
6568
|
*/
|
|
6569
|
+
|
|
7682
6570
|
const timeTransitionS = 125;
|
|
7683
6571
|
|
|
7684
6572
|
/*!
|
|
@@ -7736,7 +6624,7 @@ function _toPrimitive(t, r) {
|
|
|
7736
6624
|
if ("object" != typeof t || !t) return t;
|
|
7737
6625
|
var e = t[Symbol.toPrimitive];
|
|
7738
6626
|
if (undefined !== e) {
|
|
7739
|
-
var i = e.call(t, r
|
|
6627
|
+
var i = e.call(t, r);
|
|
7740
6628
|
if ("object" != typeof i) return i;
|
|
7741
6629
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
7742
6630
|
}
|
|
@@ -8716,32 +7604,80 @@ function getPotentiallyTabbable(element) {
|
|
|
8716
7604
|
}
|
|
8717
7605
|
|
|
8718
7606
|
const catDropdownCss = ":host{display:contents}:host([hidden]){display:none}::slotted(nav){padding:0.25rem}.aligned ::slotted(nav){min-width:8rem;max-width:16rem}.justified ::slotted(nav){width:100%}.content{position:fixed;background:white;-webkit-overflow-scrolling:touch;min-height:2rem;max-height:calc(100vh - 48px);box-shadow:0 4px 6px -2px rgba(27, 31, 38, 0.03), 0 12px 16px -4px rgba(27, 31, 38, 0.08);border-radius:var(--cat-border-radius-m, 0.25rem);border:1px solid rgb(var(--cat-border-color, 235, 236, 240));z-index:calc(var(--cat-z-index, 1000) + 100);display:none;opacity:0;transform:scale(0.9);transition:transform 125ms cubic-bezier(0.3, 0, 0.8, 0.15), opacity 125ms cubic-bezier(0.3, 0, 0.8, 0.15)}.content[data-placement^=top]{transform-origin:bottom}.content[data-placement^=top-start]{transform-origin:bottom left}.content[data-placement^=top-end]{transform-origin:bottom right}.content[data-placement^=left]{transform-origin:right}.content[data-placement^=left-start]{transform-origin:right top}.content[data-placement^=left-end]{transform-origin:right bottom}.content[data-placement^=right]{transform-origin:left}.content[data-placement^=right-start]{transform-origin:left top}.content[data-placement^=right-end]{transform-origin:left bottom}.content[data-placement^=bottom]{transform-origin:top}.content[data-placement^=bottom-start]{transform-origin:top left}.content[data-placement^=bottom-end]{transform-origin:top right}.content.show{opacity:1;transform:scale(1);transition:transform 250ms cubic-bezier(0.05, 0.7, 0.1, 1), opacity 250ms cubic-bezier(0.05, 0.7, 0.1, 1)}.content.overflow-auto{overflow:auto}";
|
|
8719
|
-
const CatDropdownStyle0 = catDropdownCss;
|
|
8720
7607
|
|
|
8721
7608
|
let nextUniqueId$8 = 0;
|
|
8722
7609
|
const CatDropdown = class {
|
|
8723
7610
|
constructor(hostRef) {
|
|
8724
7611
|
registerInstance(this, hostRef);
|
|
8725
|
-
this.catOpen = createEvent(this, "catOpen"
|
|
8726
|
-
this.catClose = createEvent(this, "catClose"
|
|
7612
|
+
this.catOpen = createEvent(this, "catOpen");
|
|
7613
|
+
this.catClose = createEvent(this, "catClose");
|
|
8727
7614
|
this.id = nextUniqueId$8++;
|
|
8728
|
-
this.
|
|
7615
|
+
this._isOpen = false;
|
|
8729
7616
|
/**
|
|
8730
7617
|
* Tracking the origin of opening the dropdown and specify if initial focus should be set.
|
|
8731
7618
|
* Currently we set it only when the origin is keyboard.
|
|
8732
7619
|
* We might not need to track this in future when focus-visible support is improved across browsers
|
|
8733
7620
|
*/
|
|
8734
7621
|
this.hasInitialFocus = false;
|
|
7622
|
+
/**
|
|
7623
|
+
* The placement of the dropdown.
|
|
7624
|
+
*/
|
|
8735
7625
|
this.placement = 'bottom-start';
|
|
7626
|
+
/**
|
|
7627
|
+
* Make the dropdown match the width of the reference regardless of its
|
|
7628
|
+
* contents. Note that this only applies to the minimum width of the
|
|
7629
|
+
* dropdown. The maximum width is still limited by the viewport.
|
|
7630
|
+
*/
|
|
8736
7631
|
this.justify = false;
|
|
7632
|
+
/**
|
|
7633
|
+
* Do not close the dropdown on outside clicks.
|
|
7634
|
+
*/
|
|
8737
7635
|
this.noAutoClose = false;
|
|
7636
|
+
/**
|
|
7637
|
+
* Do not navigate focus inside the dropdown via vertical arrow keys.
|
|
7638
|
+
*/
|
|
8738
7639
|
this.arrowNavigation = 'vertical';
|
|
7640
|
+
/**
|
|
7641
|
+
* Do not change the size of the dropdown to ensure it isn’t too big to fit
|
|
7642
|
+
* in the viewport (or more specifically, its clipping context).
|
|
7643
|
+
*/
|
|
8739
7644
|
this.noResize = false;
|
|
7645
|
+
/**
|
|
7646
|
+
* Allow overflow when dropdown is open.
|
|
7647
|
+
*/
|
|
8740
7648
|
this.overflow = false;
|
|
7649
|
+
/**
|
|
7650
|
+
* No element in dropdown will receive focus when dropdown is open.
|
|
7651
|
+
* By default, the first element in tab order will receive a focus.
|
|
7652
|
+
* @deprecated
|
|
7653
|
+
* Using noInitialFocus property would be a bad practice from a11y perspective.
|
|
7654
|
+
* We always want visible focus to jump inside the dropdown when user uses keyboard and noInitialFocus allows to turn it off which might introduce a bug.
|
|
7655
|
+
* hasInitialFocus should resolve the cause of the original problem instead.
|
|
7656
|
+
*/
|
|
8741
7657
|
this.noInitialFocus = false;
|
|
7658
|
+
/**
|
|
7659
|
+
* Trigger element will not receive focus when dropdown is closed.
|
|
7660
|
+
*/
|
|
8742
7661
|
this.noReturnFocus = false;
|
|
7662
|
+
/**
|
|
7663
|
+
* Whether the dropdown trigger should be initialized only before first opening.
|
|
7664
|
+
* Can be useful when trigger is rendered dynamically.
|
|
7665
|
+
*/
|
|
7666
|
+
this.delayedTriggerInit = false;
|
|
7667
|
+
}
|
|
7668
|
+
/**
|
|
7669
|
+
* Whether the dropdown is open.
|
|
7670
|
+
* @readonly
|
|
7671
|
+
*/
|
|
7672
|
+
get isOpen() {
|
|
7673
|
+
return this._isOpen ?? false;
|
|
8743
7674
|
}
|
|
8744
7675
|
clickHandler(event) {
|
|
7676
|
+
if (!this.trigger && this.delayedTriggerInit) {
|
|
7677
|
+
this.hasInitialFocus = this.isEventOriginFromKeyboard(event.detail);
|
|
7678
|
+
this.initTrigger();
|
|
7679
|
+
this.toggle();
|
|
7680
|
+
}
|
|
8745
7681
|
// hide dropdown on button clicks inside the dropdown content
|
|
8746
7682
|
const path = event.composedPath();
|
|
8747
7683
|
if (!this.noAutoClose &&
|
|
@@ -8758,22 +7694,25 @@ const CatDropdown = class {
|
|
|
8758
7694
|
* Toggles the dropdown.
|
|
8759
7695
|
*/
|
|
8760
7696
|
async toggle() {
|
|
8761
|
-
this.
|
|
7697
|
+
this._isOpen ? this.close() : this.open();
|
|
8762
7698
|
}
|
|
8763
7699
|
/**
|
|
8764
7700
|
* Opens the dropdown.
|
|
8765
7701
|
* @param isFocusVisible is dropdown should receive visible focus when it's opened.
|
|
8766
7702
|
*/
|
|
8767
7703
|
async open(isFocusVisible) {
|
|
7704
|
+
if (!this.trigger && this.delayedTriggerInit) {
|
|
7705
|
+
this.initTrigger();
|
|
7706
|
+
}
|
|
8768
7707
|
if (this.isOpen === null || this.isOpen) {
|
|
8769
7708
|
return; // busy or open
|
|
8770
7709
|
}
|
|
8771
|
-
this.
|
|
7710
|
+
this._isOpen = null;
|
|
8772
7711
|
this.content.style.display = 'block';
|
|
8773
7712
|
this.hasInitialFocus = isFocusVisible ?? this.hasInitialFocus;
|
|
8774
7713
|
// give CSS transition time to apply
|
|
8775
7714
|
setTimeout(() => {
|
|
8776
|
-
this.
|
|
7715
|
+
this._isOpen = true;
|
|
8777
7716
|
this.content.classList.add('show');
|
|
8778
7717
|
this.trigger?.setAttribute('aria-expanded', 'true');
|
|
8779
7718
|
this.trap = this.trap
|
|
@@ -8818,15 +7757,15 @@ const CatDropdown = class {
|
|
|
8818
7757
|
* Closes the dropdown.
|
|
8819
7758
|
*/
|
|
8820
7759
|
async close() {
|
|
8821
|
-
if (!this.
|
|
7760
|
+
if (!this._isOpen) {
|
|
8822
7761
|
return; // busy or closed
|
|
8823
7762
|
}
|
|
8824
|
-
this.
|
|
7763
|
+
this._isOpen = null;
|
|
8825
7764
|
this.trap?.deactivate();
|
|
8826
7765
|
this.content.classList.remove('show');
|
|
8827
7766
|
// give CSS transition time to apply
|
|
8828
7767
|
setTimeout(() => {
|
|
8829
|
-
this.
|
|
7768
|
+
this._isOpen = false;
|
|
8830
7769
|
this.content.classList.remove('show');
|
|
8831
7770
|
this.content.style.display = '';
|
|
8832
7771
|
this.trigger?.setAttribute('aria-expanded', 'false');
|
|
@@ -8835,10 +7774,12 @@ const CatDropdown = class {
|
|
|
8835
7774
|
}
|
|
8836
7775
|
componentDidLoad() {
|
|
8837
7776
|
this.initAnchor();
|
|
8838
|
-
this.
|
|
7777
|
+
if (!this.delayedTriggerInit) {
|
|
7778
|
+
this.initTrigger();
|
|
7779
|
+
}
|
|
8839
7780
|
}
|
|
8840
7781
|
render() {
|
|
8841
|
-
return (h(Host, { key: '
|
|
7782
|
+
return (h(Host, { key: '5206026fafea4b080f8890bd89b12885524cccd9' }, h("slot", { key: '316ef973ba544f937217de5d27af51e24a55795d', name: "anchor", ref: el => (this.anchorSlot = el) }), h("slot", { key: '95b9039dd8a88eb79836abe428bd97403f10d886', name: "trigger", ref: el => (this.triggerSlot = el) }), h("div", { key: 'a0067efa6a259faa2c89ed092cb1f467a756e0f3', id: this.contentId, class: { content: true, 'overflow-auto': !this.overflow, justified: this.justify, aligned: !this.justify }, ref: el => (this.content = el) }, h("slot", { key: '6904a4c7e24ed5fd28a48735ec82d9cab26e71e2', name: "content" }))));
|
|
8842
7783
|
}
|
|
8843
7784
|
get contentId() {
|
|
8844
7785
|
return `cat-dropdown-${this.id}`;
|
|
@@ -8934,18 +7875,26 @@ const CatDropdown = class {
|
|
|
8934
7875
|
}
|
|
8935
7876
|
};
|
|
8936
7877
|
CatDropdown.OFFSET = 4;
|
|
8937
|
-
CatDropdown.style =
|
|
7878
|
+
CatDropdown.style = catDropdownCss;
|
|
8938
7879
|
|
|
8939
7880
|
const catFormGroupCss = ":host{display:block}";
|
|
8940
|
-
const CatFormGroupStyle0 = catFormGroupCss;
|
|
8941
7881
|
|
|
8942
7882
|
const CatFormGroup = class {
|
|
8943
7883
|
constructor(hostRef) {
|
|
8944
7884
|
registerInstance(this, hostRef);
|
|
8945
7885
|
this.formElements = [];
|
|
7886
|
+
/**
|
|
7887
|
+
* Whether the labels need a marker to shown if the forms fields are required or optional.<br /><br />
|
|
7888
|
+
* By default, it is set to auto, it will display the mark depending on the number of required and optional fields: <br />
|
|
7889
|
+
* - If there are more required, the optional will be marked.<br />
|
|
7890
|
+
* - If there are less required, it will mark the required.<br /><br />
|
|
7891
|
+
* If a form field had "!", the requiredMarked of the field would not change.
|
|
7892
|
+
*/
|
|
8946
7893
|
this.requiredMarker = 'auto';
|
|
7894
|
+
/**
|
|
7895
|
+
* Whether the label is on top or left.
|
|
7896
|
+
*/
|
|
8947
7897
|
this.horizontal = false;
|
|
8948
|
-
this.labelSize = undefined;
|
|
8949
7898
|
}
|
|
8950
7899
|
onRequiredMarkerChanged(newRequiredMarker) {
|
|
8951
7900
|
const updateMarker = newRequiredMarker === 'auto' ? this.calculate(this.formElements) : newRequiredMarker;
|
|
@@ -8975,18 +7924,17 @@ const CatFormGroup = class {
|
|
|
8975
7924
|
"horizontal": ["onHorizontalChanged"]
|
|
8976
7925
|
}; }
|
|
8977
7926
|
};
|
|
8978
|
-
CatFormGroup.style =
|
|
7927
|
+
CatFormGroup.style = catFormGroupCss;
|
|
8979
7928
|
|
|
8980
7929
|
const catIconCss = ":host{display:inline-flex;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([hidden]){display:none}span{display:inline-flex}svg{fill:currentColor;stroke:none;transform-origin:center center;height:1em;width:calc(var(--cat-icon-ratio, 1) * 1em)}.icon-xs svg{font-size:0.75rem}.icon-s svg{font-size:1rem}.icon-m svg{font-size:1.25rem}.icon-l svg{font-size:1.5rem}.icon-xl svg{font-size:1.75rem}";
|
|
8981
|
-
const CatIconStyle0 = catIconCss;
|
|
8982
7930
|
|
|
8983
7931
|
const CatIcon = class {
|
|
8984
7932
|
constructor(hostRef) {
|
|
8985
7933
|
registerInstance(this, hostRef);
|
|
8986
|
-
|
|
8987
|
-
|
|
7934
|
+
/**
|
|
7935
|
+
* The size of the icon.
|
|
7936
|
+
*/
|
|
8988
7937
|
this.size = 'm';
|
|
8989
|
-
this.a11yLabel = undefined;
|
|
8990
7938
|
}
|
|
8991
7939
|
render() {
|
|
8992
7940
|
return (h("span", { key: '1e1698413feaee8ca810b50370fc44a5a9f229dc', innerHTML: this.iconSrc || (this.icon ? catIconRegistry.getIcon(this.icon) : ''), "aria-label": this.a11yLabel, "aria-hidden": this.a11yLabel ? null : 'true', part: "icon", class: {
|
|
@@ -8995,7 +7943,7 @@ const CatIcon = class {
|
|
|
8995
7943
|
} }));
|
|
8996
7944
|
}
|
|
8997
7945
|
};
|
|
8998
|
-
CatIcon.style =
|
|
7946
|
+
CatIcon.style = catIconCss;
|
|
8999
7947
|
|
|
9000
7948
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
9001
7949
|
function coerceBoolean(value) {
|
|
@@ -9008,18 +7956,17 @@ function isNumberValue(value) {
|
|
|
9008
7956
|
return !isNaN(parseFloat(value)) && !isNaN(Number(value));
|
|
9009
7957
|
}
|
|
9010
7958
|
|
|
9011
|
-
var e$1,r$1,t$1,i=function(e){return e.replace(/[^\d]/g,"")},n$1=function(e){return e.reduce(function(e,r){return e+r},0)},a=function(e,r){return e.slice(0,r)},l=function(e){var r=e.value;return e.delimiters.forEach(function(e){e.split("").forEach(function(e){r=r.replace(new RegExp(e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"g"),"");});}),r},u=function(e){var r=e.blocks,t=e.delimiter,i=void 0===t?"":t,n=e.delimiters,a=void 0===n?[]:n,l=e.delimiterLazyShow,u=void 0!==l&&l,c="",s=e.value,o="";return r.forEach(function(e,t){if(s.length>0){var n,l=s.slice(0,e),d=s.slice(e);o=a.length>0?null!=(n=a[u?t-1:t])?n:o:i,u?(t>0&&(c+=o),c+=l):(c+=l,l.length===e&&t<r.length-1&&(c+=o)),s=d;}}),c};!function(e){e.UATP="uatp",e.AMEX="amex",e.DINERS="diners",e.DISCOVER="discover",e.MASTERCARD="mastercard",e.DANKORT="dankort",e.INSTAPAYMENT="instapayment",e.JCB15="jcb15",e.JCB="jcb",e.MAESTRO="maestro",e.VISA="visa",e.MIR="mir",e.UNIONPAY="unionpay",e.GENERAL="general";}(t$1||(t$1={}));var v;((e$1={})[t$1.UATP]=[4,5,6],e$1[t$1.AMEX]=[4,6,5],e$1[t$1.DINERS]=[4,6,4],e$1[t$1.DISCOVER]=[4,4,4,4],e$1[t$1.MASTERCARD]=[4,4,4,4],e$1[t$1.DANKORT]=[4,4,4,4],e$1[t$1.INSTAPAYMENT]=[4,4,4,4],e$1[t$1.JCB15]=[4,6,5],e$1[t$1.JCB]=[4,4,4,4],e$1[t$1.MAESTRO]=[4,4,4,4],e$1[t$1.VISA]=[4,4,4,4],e$1[t$1.MIR]=[4,4,4,4],e$1[t$1.UNIONPAY]=[4,4,4,4],e$1[t$1.GENERAL]=[4,4,4,4],e$1);((r$1={})[t$1.UATP]=/^(?!1800)1\d{0,14}/,r$1[t$1.AMEX]=/^3[47]\d{0,13}/,r$1[t$1.DISCOVER]=/^(?:6011|65\d{0,2}|64[4-9]\d?)\d{0,12}/,r$1[t$1.DINERS]=/^3(?:0([0-5]|9)|[689]\d?)\d{0,11}/,r$1[t$1.MASTERCARD]=/^(5[1-5]\d{0,2}|22[2-9]\d{0,1}|2[3-7]\d{0,2})\d{0,12}/,r$1[t$1.DANKORT]=/^(5019|4175|4571)\d{0,12}/,r$1[t$1.INSTAPAYMENT]=/^63[7-9]\d{0,13}/,r$1[t$1.JCB15]=/^(?:2131|1800)\d{0,11}/,r$1[t$1.JCB]=/^(?:35\d{0,2})\d{0,12}/,r$1[t$1.MAESTRO]=/^(?:5[0678]\d{0,2}|6304|67\d{0,2})\d{0,12}/,r$1[t$1.MIR]=/^220[0-4]\d{0,12}/,r$1[t$1.VISA]=/^4\d{0,15}/,r$1[t$1.UNIONPAY]=/^(62|81)\d{0,14}/,r$1);!function(e){e.THOUSAND="thousand",e.LAKH="lakh",e.WAN="wan",e.NONE="none";}(v||(v={}));var k=["d","m","Y"],C=function(e,r){return r?(e<10?"000":e<100?"00":e<1e3?"0":"")+e:(e<10?"0":"")+e},L=function(e){return (e<10?"0":"")+e},P=function(e,r,t){var i;return e=Math.min(e,31),t=null!=(i=t)?i:0,((r=Math.min(r,12))<7&&r%2==0||r>8&&r%2==1)&&(e=Math.min(e,2===r?function(e){return e%4==0&&e%100!=0||e%400==0}(t)?29:28:30)),[e,r,t]},y=function(e,r){var t=null!=r?r:{},c=t.delimiterLazyShow,s=void 0!==c&&c,o=t.delimiter,d=void 0===o?"/":o,v=t.datePattern,m=void 0===v?k:v,f=t.dateMax,p=void 0===f?"":f,h=t.dateMin,E=void 0===h?"":h;e=i(e);var g=function(e){var r=[];return e.forEach(function(e){r.push("Y"===e?4:2);}),r}(m),I=function(e){var r=e.dateMax,t=e.dateMin.split("-").reverse().map(function(e){return parseInt(e,10)});2===t.length&&t.unshift(0);var i=r.split("-").reverse().map(function(e){return parseInt(e,10)});return 2===i.length&&i.unshift(0),{min:t,max:i}}({dateMax:p,dateMin:E});e=function(e){var r=e.value,t=void 0===r?"":r,i=e.blocks,n=e.datePattern,a=e.min,l=e.max,u="";return (void 0===i?[]:i).forEach(function(e,r){if(t.length>0){var i=t.slice(0,e),a=i.slice(0,1),l=t.slice(e);switch(n[r]){case"d":"00"===i?i="01":parseInt(a,10)>3?i="0"+a:parseInt(i,10)>31&&(i="31");break;case"m":"00"===i?i="01":parseInt(a,10)>1?i="0"+a:parseInt(i,10)>12&&(i="12");}u+=i,t=l;}}),function(e){var r,t,i,n=e.value,a=void 0===n?"":n,l=e.datePattern,u=e.min,c=e.max,s=[],o=0,d=0,v=0,m=0,f=0,p=0,h
|
|
7959
|
+
var e$1,r$1,t$1,i=function(e){return e.replace(/[^\d]/g,"")},n$1=function(e){return e.reduce(function(e,r){return e+r},0)},a=function(e,r){return e.slice(0,r)},l=function(e){var r=e.value;return e.delimiters.forEach(function(e){e.split("").forEach(function(e){r=r.replace(new RegExp(e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"g"),"");});}),r},u=function(e){var r=e.blocks,t=e.delimiter,i=void 0===t?"":t,n=e.delimiters,a=void 0===n?[]:n,l=e.delimiterLazyShow,u=void 0!==l&&l,c="",s=e.value,o="";return r.forEach(function(e,t){if(s.length>0){var n,l=s.slice(0,e),d=s.slice(e);o=a.length>0?null!=(n=a[u?t-1:t])?n:o:i,u?(t>0&&(c+=o),c+=l):(c+=l,l.length===e&&t<r.length-1&&(c+=o)),s=d;}}),c};!function(e){e.UATP="uatp",e.AMEX="amex",e.DINERS="diners",e.DISCOVER="discover",e.MASTERCARD="mastercard",e.DANKORT="dankort",e.INSTAPAYMENT="instapayment",e.JCB15="jcb15",e.JCB="jcb",e.MAESTRO="maestro",e.VISA="visa",e.MIR="mir",e.UNIONPAY="unionpay",e.GENERAL="general";}(t$1||(t$1={}));var v;((e$1={})[t$1.UATP]=[4,5,6],e$1[t$1.AMEX]=[4,6,5],e$1[t$1.DINERS]=[4,6,4],e$1[t$1.DISCOVER]=[4,4,4,4],e$1[t$1.MASTERCARD]=[4,4,4,4],e$1[t$1.DANKORT]=[4,4,4,4],e$1[t$1.INSTAPAYMENT]=[4,4,4,4],e$1[t$1.JCB15]=[4,6,5],e$1[t$1.JCB]=[4,4,4,4],e$1[t$1.MAESTRO]=[4,4,4,4],e$1[t$1.VISA]=[4,4,4,4],e$1[t$1.MIR]=[4,4,4,4],e$1[t$1.UNIONPAY]=[4,4,4,4],e$1[t$1.GENERAL]=[4,4,4,4],e$1);((r$1={})[t$1.UATP]=/^(?!1800)1\d{0,14}/,r$1[t$1.AMEX]=/^3[47]\d{0,13}/,r$1[t$1.DISCOVER]=/^(?:6011|65\d{0,2}|64[4-9]\d?)\d{0,12}/,r$1[t$1.DINERS]=/^3(?:0([0-5]|9)|[689]\d?)\d{0,11}/,r$1[t$1.MASTERCARD]=/^(5[1-5]\d{0,2}|22[2-9]\d{0,1}|2[3-7]\d{0,2})\d{0,12}/,r$1[t$1.DANKORT]=/^(5019|4175|4571)\d{0,12}/,r$1[t$1.INSTAPAYMENT]=/^63[7-9]\d{0,13}/,r$1[t$1.JCB15]=/^(?:2131|1800)\d{0,11}/,r$1[t$1.JCB]=/^(?:35\d{0,2})\d{0,12}/,r$1[t$1.MAESTRO]=/^(?:5[0678]\d{0,2}|6304|67\d{0,2})\d{0,12}/,r$1[t$1.MIR]=/^220[0-4]\d{0,12}/,r$1[t$1.VISA]=/^4\d{0,15}/,r$1[t$1.UNIONPAY]=/^(62|81)\d{0,14}/,r$1);!function(e){e.THOUSAND="thousand",e.LAKH="lakh",e.WAN="wan",e.NONE="none";}(v||(v={}));var k=["d","m","Y"],C=function(e,r){return r?(e<10?"000":e<100?"00":e<1e3?"0":"")+e:(e<10?"0":"")+e},L=function(e){return (e<10?"0":"")+e},P=function(e,r,t){var i;return e=Math.min(e,31),t=null!=(i=t)?i:0,((r=Math.min(r,12))<7&&r%2==0||r>8&&r%2==1)&&(e=Math.min(e,2===r?function(e){return e%4==0&&e%100!=0||e%400==0}(t)?29:28:30)),[e,r,t]},y=function(e,r){var t=null!=r?r:{},c=t.delimiterLazyShow,s=void 0!==c&&c,o=t.delimiter,d=void 0===o?"/":o,v=t.datePattern,m=void 0===v?k:v,f=t.dateMax,p=void 0===f?"":f,h=t.dateMin,E=void 0===h?"":h;e=i(e);var g=function(e){var r=[];return e.forEach(function(e){r.push("Y"===e?4:2);}),r}(m),I=function(e){var r=e.dateMax,t=e.dateMin.split("-").reverse().map(function(e){return parseInt(e,10)});2===t.length&&t.unshift(0);var i=r.split("-").reverse().map(function(e){return parseInt(e,10)});return 2===i.length&&i.unshift(0),{min:t,max:i}}({dateMax:p,dateMin:E});e=function(e){var r=e.value,t=void 0===r?"":r,i=e.blocks,n=e.datePattern,a=e.min,l=e.max,u="";return (void 0===i?[]:i).forEach(function(e,r){if(t.length>0){var i=t.slice(0,e),a=i.slice(0,1),l=t.slice(e);switch(n[r]){case "d":"00"===i?i="01":parseInt(a,10)>3?i="0"+a:parseInt(i,10)>31&&(i="31");break;case "m":"00"===i?i="01":parseInt(a,10)>1?i="0"+a:parseInt(i,10)>12&&(i="12");}u+=i,t=l;}}),function(e){var r,t,i,n=e.value,a=void 0===n?"":n,l=e.datePattern,u=e.min,c=e.max,s=[],o=0,d=0,v=0,m=0,f=0,p=0,h=false;return 4===a.length&&"y"!==l[0].toLowerCase()&&"y"!==l[1].toLowerCase()&&(f=2-(m="d"===l[0]?0:2),r=parseInt(a.slice(m,m+2),10),t=parseInt(a.slice(f,f+2),10),s=P(r,t,0)),8===a.length&&(l.forEach(function(e,r){switch(e){case "d":o=r;break;case "m":d=r;break;default:v=r;}}),p=2*v,m=o<=v?2*o:2*o+2,f=d<=v?2*d:2*d+2,r=parseInt(a.slice(m,m+2),10),t=parseInt(a.slice(f,f+2),10),i=parseInt(a.slice(p,p+4),10),h=4===a.slice(p,p+4).length,s=P(r,t,i)),4!==a.length||"y"!==l[0]&&"y"!==l[1]||(p=2-(f="m"===l[0]?0:2),t=parseInt(a.slice(f,f+2),10),i=parseInt(a.slice(p,p+2),10),h=2===a.slice(p,p+2).length,s=[0,t,i]),6!==a.length||"Y"!==l[0]&&"Y"!==l[1]||(p=2-.5*(f="m"===l[0]?0:4),t=parseInt(a.slice(f,f+2),10),i=parseInt(a.slice(p,p+4),10),h=4===a.slice(p,p+4).length,s=[0,t,i]),0===(s=function(e){var r=e.date,t=void 0===r?[]:r,i=e.min,n=e.max;return 0===t.length||i.length<3&&n.length<3||e.datePattern.filter(function(e){return "y"===e.toLowerCase()}).length>0&&0===t[2]?t:n.length>0&&(n[2]<t[2]||n[2]===t[2]&&(n[1]<t[1]||n[1]===t[1]&&n[0]<t[0]))?n:i.length>0&&(i[2]>t[2]||i[2]===t[2]&&(i[1]>t[1]||i[1]===t[1]&&i[0]>t[0]))?i:t}({date:s,datePattern:l,min:u,max:c})).length?a:l.reduce(function(e,r){switch(r){case "d":return e+(0===s[0]?"":L(s[0]));case "m":return e+(0===s[1]?"":L(s[1]));case "y":return e+(h?C(s[2],false):"");case "Y":return e+(h?C(s[2],true):"")}return e},"")}({value:u,datePattern:n,min:a,max:l})}({value:e,blocks:g,datePattern:m,min:I.min,max:I.max}),e=l({value:e,delimiters:[d]});var A=n$1(g);return e=a(e,A),u({value:e,blocks:g,delimiter:d,delimiterLazyShow:s})},R=["h","m","s"],T=function(e){return (e<10?"0":"")+e},b=function(e,r,t){return t=Math.min(t,60),r=Math.min(r,60),[e=Math.min(e,60),r,t]},w=function(e,r){var t=null!=r?r:{},c=t.delimiterLazyShow,s=void 0!==c&&c,o=t.delimiter,d=void 0===o?":":o,v=t.timePattern,m=void 0===v?R:v,f=t.timeFormat,p=void 0===f?"24":f;e=i(e);var h=function(e){var r=[];return e.forEach(function(){r.push(2);}),r}(m);e=function(e){var r=e.value,t=e.timePattern,i="",n="12"===e.timeFormat?{maxHourFirstDigit:1,maxHours:12,maxMinutesFirstDigit:5,maxMinutes:60}:{maxHourFirstDigit:2,maxHours:23,maxMinutesFirstDigit:5,maxMinutes:60};return e.blocks.forEach(function(e,a){if(r.length>0){var l=r.slice(0,e),u=l.slice(0,1),c=r.slice(e);switch(t[a]){case "h":parseInt(u,10)>n.maxHourFirstDigit?l="0"+u:parseInt(l,10)>n.maxHours&&(l=n.maxHours+"");break;case "m":case "s":parseInt(u,10)>n.maxMinutesFirstDigit?l="0"+u:parseInt(l,10)>n.maxMinutes&&(l=n.maxMinutes+"");}i+=l,r=c;}}),function(e){var r,t,i,n=e.value,a=e.timePattern,l=[],u=0,c=0,s=0,o=0,d=0,v=0;return 6===n.length&&(a.forEach(function(e,r){switch(e){case "s":u=2*r;break;case "m":c=2*r;break;case "h":s=2*r;}}),v=s,d=c,o=u,r=parseInt(n.slice(o,o+2),10),t=parseInt(n.slice(d,d+2),10),i=parseInt(n.slice(v,v+2),10),l=b(i,t,r)),4!==n.length||a.includes("s")||(a.forEach(function(e,r){switch(e){case "m":c=2*r;break;case "h":s=2*r;}}),v=s,d=c,r=0,t=parseInt(n.slice(d,d+2),10),i=parseInt(n.slice(v,v+2),10),l=b(i,t,r)),0===l.length?n:a.reduce(function(e,r){switch(r){case "s":return e+T(l[2]);case "m":return e+T(l[1]);case "h":return e+T(l[0])}return e},"")}({value:i,timePattern:t})}({value:e,blocks:h,timePattern:m,timeFormat:p}),e=l({value:e,delimiters:[d]});var E=n$1(h);return e=a(e,E),u({value:e,blocks:h,delimiter:d,delimiterLazyShow:s})};
|
|
9012
7960
|
|
|
9013
7961
|
const catInputCss = ".hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;display:flex;flex-direction:column;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.875rem;line-height:1.125rem}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){margin:0 !important}.cat-bg-primary{background-color:rgb(var(--cat-primary-bg, 0, 129, 148)) !important;color:rgb(var(--cat-primary-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-primary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-primary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-primary-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-primary-hover{transition:background-color 125ms, color 125ms}.cat-bg-primary-hover:hover{background-color:rgb(var(--cat-primary-bg-hover, 1, 115, 132)) !important;color:rgb(var(--cat-primary-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-primary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-primary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-primary-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-primary,.cat-link-primary{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}button.cat-text-primary,button.cat-link-primary{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-primary:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-primary:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-primary,.cat-text-primary-hover{transition:color 125ms}.cat-link-primary:hover,.cat-text-primary-hover:hover{color:rgb(var(--cat-primary-text-hover, 1, 115, 132)) !important}.cat-link-primary:active,.cat-text-primary-hover:active{color:rgb(var(--cat-primary-text-active, 2, 99, 113)) !important}.cat-bg-primaryInverted{background-color:#93b4f2 !important;color:black !important;--cat-primary-text:0, 0, 0;--cat-primary-text-hover:0, 0, 0;--cat-primary-text-active:0, 0, 0;--cat-link-decoration:underline}.cat-bg-primaryInverted-hover{transition:background-color 125ms, color 125ms}.cat-bg-primaryInverted-hover:hover{background-color:#93b4f2 !important;color:black !important;--cat-primary-text:0, 0, 0;--cat-primary-text-hover:0, 0, 0;--cat-primary-text-active:0, 0, 0;--cat-link-decoration:underline}.cat-text-primaryInverted,.cat-link-primaryInverted{color:#93b4f2 !important}button.cat-text-primaryInverted,button.cat-link-primaryInverted{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-primaryInverted:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-primaryInverted:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-primaryInverted,.cat-text-primaryInverted-hover{transition:color 125ms}.cat-link-primaryInverted:hover,.cat-text-primaryInverted-hover:hover{color:#93b4f2 !important}.cat-link-primaryInverted:active,.cat-text-primaryInverted-hover:active{color:#93b4f2 !important}.cat-bg-secondary{background-color:rgb(var(--cat-secondary-bg, 105, 118, 135)) !important;color:rgb(var(--cat-secondary-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-secondary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-secondary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-secondary-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-secondary-hover{transition:background-color 125ms, color 125ms}.cat-bg-secondary-hover:hover{background-color:rgb(var(--cat-secondary-bg-hover, 105, 118, 135)) !important;color:rgb(var(--cat-secondary-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-secondary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-secondary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-secondary-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-secondary,.cat-link-secondary{color:rgb(var(--cat-secondary-text, 0, 0, 0)) !important}button.cat-text-secondary,button.cat-link-secondary{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-secondary:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-secondary:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-secondary,.cat-text-secondary-hover{transition:color 125ms}.cat-link-secondary:hover,.cat-text-secondary-hover:hover{color:rgb(var(--cat-secondary-text-hover, 0, 0, 0)) !important}.cat-link-secondary:active,.cat-text-secondary-hover:active{color:rgb(var(--cat-secondary-text-active, 0, 0, 0)) !important}.cat-bg-secondaryInverted{background-color:#697687 !important;color:black !important;--cat-primary-text:0, 0, 0;--cat-primary-text-hover:0, 0, 0;--cat-primary-text-active:0, 0, 0;--cat-link-decoration:underline}.cat-bg-secondaryInverted-hover{transition:background-color 125ms, color 125ms}.cat-bg-secondaryInverted-hover:hover{background-color:#697687 !important;color:black !important;--cat-primary-text:0, 0, 0;--cat-primary-text-hover:0, 0, 0;--cat-primary-text-active:0, 0, 0;--cat-link-decoration:underline}.cat-text-secondaryInverted,.cat-link-secondaryInverted{color:white !important}button.cat-text-secondaryInverted,button.cat-link-secondaryInverted{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-secondaryInverted:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-secondaryInverted:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-secondaryInverted,.cat-text-secondaryInverted-hover{transition:color 125ms}.cat-link-secondaryInverted:hover,.cat-text-secondaryInverted-hover:hover{color:white !important}.cat-link-secondaryInverted:active,.cat-text-secondaryInverted-hover:active{color:white !important}.cat-bg-info{background-color:rgb(var(--cat-info-bg, 0, 115, 230)) !important;color:rgb(var(--cat-info-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-info-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-info-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-info-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-info-hover{transition:background-color 125ms, color 125ms}.cat-bg-info-hover:hover{background-color:rgb(var(--cat-info-bg-hover, 0, 107, 227)) !important;color:rgb(var(--cat-info-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-info-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-info-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-info-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-info,.cat-link-info{color:rgb(var(--cat-info-text, 0, 115, 230)) !important}button.cat-text-info,button.cat-link-info{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-info:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-info:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-info,.cat-text-info-hover{transition:color 125ms}.cat-link-info:hover,.cat-text-info-hover:hover{color:rgb(var(--cat-info-text-hover, 0, 107, 227)) !important}.cat-link-info:active,.cat-text-info-hover:active{color:rgb(var(--cat-info-text-active, 0, 96, 223)) !important}.cat-bg-success{background-color:rgb(var(--cat-success-bg, 0, 132, 88)) !important;color:rgb(var(--cat-success-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-success-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-success-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-success-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-success-hover{transition:background-color 125ms, color 125ms}.cat-bg-success-hover:hover{background-color:rgb(var(--cat-success-bg-hover, 0, 117, 78)) !important;color:rgb(var(--cat-success-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-success-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-success-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-success-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-success,.cat-link-success{color:rgb(var(--cat-success-text, 0, 132, 88)) !important}button.cat-text-success,button.cat-link-success{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-success:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-success:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-success,.cat-text-success-hover{transition:color 125ms}.cat-link-success:hover,.cat-text-success-hover:hover{color:rgb(var(--cat-success-text-hover, 0, 117, 78)) !important}.cat-link-success:active,.cat-text-success-hover:active{color:rgb(var(--cat-success-text-active, 0, 105, 70)) !important}.cat-bg-warning{background-color:rgb(var(--cat-warning-bg, 255, 206, 128)) !important;color:rgb(var(--cat-warning-fill, 0, 0, 0)) !important;--cat-primary-text:var(--cat-warning-fill, 0, 0, 0);--cat-primary-text-hover:var(--cat-warning-fill-hover, 0, 0, 0);--cat-primary-text-active:var(--cat-warning-fill-active, 0, 0, 0);--cat-link-decoration:underline}.cat-bg-warning-hover{transition:background-color 125ms, color 125ms}.cat-bg-warning-hover:hover{background-color:rgb(var(--cat-warning-bg-hover, 255, 214, 148)) !important;color:rgb(var(--cat-warning-fill-hover, 0, 0, 0)) !important;--cat-primary-text:var(--cat-warning-fill, 0, 0, 0);--cat-primary-text-hover:var(--cat-warning-fill-hover, 0, 0, 0);--cat-primary-text-active:var(--cat-warning-fill-active, 0, 0, 0);--cat-link-decoration:underline}.cat-text-warning,.cat-link-warning{color:rgb(var(--cat-warning-text, 159, 97, 0)) !important}button.cat-text-warning,button.cat-link-warning{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-warning:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-warning:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-warning,.cat-text-warning-hover{transition:color 125ms}.cat-link-warning:hover,.cat-text-warning-hover:hover{color:rgb(var(--cat-warning-text-hover, 159, 97, 0)) !important}.cat-link-warning:active,.cat-text-warning-hover:active{color:rgb(var(--cat-warning-text-active, 159, 97, 0)) !important}.cat-bg-danger{background-color:rgb(var(--cat-danger-bg, 217, 52, 13)) !important;color:rgb(var(--cat-danger-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-danger-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-danger-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-danger-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-danger-hover{transition:background-color 125ms, color 125ms}.cat-bg-danger-hover:hover{background-color:rgb(var(--cat-danger-bg-hover, 194, 46, 11)) !important;color:rgb(var(--cat-danger-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-danger-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-danger-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-danger-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-danger,.cat-link-danger{color:rgb(var(--cat-danger-text, 217, 52, 13)) !important}button.cat-text-danger,button.cat-link-danger{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-danger:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-danger:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-danger,.cat-text-danger-hover{transition:color 125ms}.cat-link-danger:hover,.cat-text-danger-hover:hover{color:rgb(var(--cat-danger-text-hover, 194, 46, 11)) !important}.cat-link-danger:active,.cat-text-danger-hover:active{color:rgb(var(--cat-danger-text-active, 174, 42, 10)) !important}.cat-active{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}.cat-text-active{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}.cat-muted{color:rgb(var(--cat-font-color-muted, 81, 92, 108)) !important}.cat-text-muted{color:rgb(var(--cat-font-color-muted, 81, 92, 108)) !important}.cat-bg-muted{background-color:#f2f4f7 !important}.cat-text-reset{color:inherit !important}.cat-link-reset{color:inherit !important;text-decoration:inherit !important}.label{overflow:hidden;word-wrap:break-word;word-break:break-word}.input-field:not(.input-horizontal) .label-container.hidden,.textarea-field:not(.textarea-horizontal) .label-container.hidden,.select-field:not(.select-horizontal) .label-container.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.label-container{flex-basis:var(--label-size, 33.33%)}.label-wrapper{display:flex;gap:0.25rem}.label-metadata{display:flex;flex-shrink:0;flex-grow:1;justify-content:space-between;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.label-optional,.label-character-count{display:inline-flex;align-items:center;max-height:1.25rem;font-size:0.75rem;line-height:1rem}.label-character-count{margin-left:auto}.input-horizontal .label-container.hidden label,.textarea-horizontal .label-container.hidden label,.select-horizontal .label-container.hidden label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.input-horizontal .label-wrapper,.textarea-horizontal .label-wrapper,.select-horizontal .label-wrapper{flex-direction:column}.input-horizontal label,.textarea-horizontal label,.select-horizontal label{min-height:2.5rem;display:inline-flex;align-items:center}.input-horizontal .label-metadata,.textarea-horizontal .label-metadata,.select-horizontal .label-metadata{justify-content:flex-start}.input-horizontal .label-metadata .label-character-count,.textarea-horizontal .label-metadata .label-character-count,.select-horizontal .label-metadata .label-character-count{margin-left:0}:host{display:flex;font-size:0.9375rem;line-height:1.25rem}:host([hidden]){display:none}.input-field,.input-container{display:flex;flex-direction:column;gap:0.5rem;flex:1 1 auto}.input-field.input-horizontal{flex-direction:row;gap:1rem}.input-wrapper{flex:1 1 auto;display:flex;align-items:stretch;gap:0.75rem;padding:0 0.75rem;height:2.5rem;overflow:hidden;background:white;border-radius:var(--cat-border-radius-m, 0.25rem);box-shadow:inset 0 0 0 1px rgb(var(--border-color));transition:box-shadow 125ms linear;--border-color:var(--cat-border-color-dark, 215, 219, 224);}.input-wrapper.input-round{border-radius:10rem}.input-wrapper.input-readonly{pointer-events:none}.input-wrapper.input-disabled{background:#f2f4f7;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.input-wrapper:not(.input-disabled):hover{box-shadow:inset 0 0 0 1px rgb(var(--border-color)), 0 0 0 1px rgb(var(--border-color))}.input-wrapper:focus-within{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:-1px}.input-wrapper:focus-within:has(.clearable:focus){outline:none}.input-wrapper.input-invalid{--border-color:var(--cat-danger-bg, 217, 52, 13), 0.2}.input-wrapper:has(input:-webkit-autofill),.input-wrapper:has(input:-webkit-autofill):hover,.input-wrapper:has(input:-webkit-autofill):focus{background-color:#e8f0fe}.text-prefix,.text-suffix{display:inline-flex;align-items:center;-webkit-user-select:none;-ms-user-select:none;user-select:none;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.text-prefix{border-right:1px solid rgb(var(--cat-border-color-dark, 215, 219, 224));padding-right:0.75rem}.text-suffix{border-left:1px solid rgb(var(--cat-border-color-dark, 215, 219, 224));padding-left:0.75rem}.icon-loading,.icon-prefix,.icon-suffix{align-self:center}.input-outer-wrapper{display:flex}.input-inner-wrapper{display:flex;align-items:center;position:relative;flex:1 1 auto}input{font:inherit;margin:0;padding:0;width:100%;min-width:0;border:none;outline:none;background:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.input-disabled input{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}input.has-clearable,input.has-toggle-password{padding-right:1.5rem}input.has-clearable.has-toggle-password{padding-right:3.5rem}input::placeholder{color:rgb(var(--cat-font-color-muted, 81, 92, 108))}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 9999px #e8f0fe inset}.clearable{position:absolute;top:calc(50% - 1rem);right:-0.5rem}.toggle-password{position:absolute;top:calc(50% - 1rem);right:-0.5rem}.has-clearable~.toggle-password{right:1.5rem}:host(.cat-date-input) .input-wrapper,:host(.cat-time-input) .input-wrapper{z-index:1;border-top-right-radius:0;border-bottom-right-radius:0}";
|
|
9014
|
-
const CatInputStyle0 = catInputCss;
|
|
9015
7962
|
|
|
9016
7963
|
let nextUniqueId$7 = 0;
|
|
9017
7964
|
const CatInput = class {
|
|
9018
7965
|
constructor(hostRef) {
|
|
9019
7966
|
registerInstance(this, hostRef);
|
|
9020
|
-
this.catChange = createEvent(this, "catChange"
|
|
9021
|
-
this.catFocus = createEvent(this, "catFocus"
|
|
9022
|
-
this.catBlur = createEvent(this, "catBlur"
|
|
7967
|
+
this.catChange = createEvent(this, "catChange");
|
|
7968
|
+
this.catFocus = createEvent(this, "catFocus");
|
|
7969
|
+
this.catBlur = createEvent(this, "catBlur");
|
|
9023
7970
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
9024
7971
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
9025
7972
|
}
|
|
@@ -9032,39 +7979,64 @@ const CatInput = class {
|
|
|
9032
7979
|
this.hasSlottedHint = false;
|
|
9033
7980
|
this.hasSlottedCounter = false;
|
|
9034
7981
|
this.isPasswordShown = false;
|
|
9035
|
-
|
|
7982
|
+
/**
|
|
7983
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
7984
|
+
*/
|
|
9036
7985
|
this.requiredMarker = 'optional';
|
|
7986
|
+
/**
|
|
7987
|
+
* Whether the label is on top or left.
|
|
7988
|
+
*/
|
|
9037
7989
|
this.horizontal = false;
|
|
9038
|
-
|
|
7990
|
+
/**
|
|
7991
|
+
* Whether the input should show a clear button.
|
|
7992
|
+
*/
|
|
9039
7993
|
this.clearable = false;
|
|
7994
|
+
/**
|
|
7995
|
+
* Whether the input should show a password toggle button for password inputs.
|
|
7996
|
+
*/
|
|
9040
7997
|
this.togglePassword = false;
|
|
7998
|
+
/**
|
|
7999
|
+
* Whether the input is disabled.
|
|
8000
|
+
*/
|
|
9041
8001
|
this.disabled = false;
|
|
8002
|
+
/**
|
|
8003
|
+
* Displays the input in a loading state with a spinner.
|
|
8004
|
+
*/
|
|
9042
8005
|
this.loading = false;
|
|
9043
|
-
|
|
9044
|
-
|
|
8006
|
+
/**
|
|
8007
|
+
* Display the icon on the right.
|
|
8008
|
+
*/
|
|
9045
8009
|
this.iconRight = false;
|
|
9046
|
-
|
|
8010
|
+
/**
|
|
8011
|
+
* The label for the input.
|
|
8012
|
+
*/
|
|
9047
8013
|
this.label = '';
|
|
8014
|
+
/**
|
|
8015
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
8016
|
+
*/
|
|
9048
8017
|
this.labelHidden = false;
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
this.minLength = undefined;
|
|
9053
|
-
this.name = undefined;
|
|
9054
|
-
this.placeholder = undefined;
|
|
9055
|
-
this.textPrefix = undefined;
|
|
9056
|
-
this.textSuffix = undefined;
|
|
8018
|
+
/**
|
|
8019
|
+
* The value is not editable.
|
|
8020
|
+
*/
|
|
9057
8021
|
this.readonly = false;
|
|
8022
|
+
/**
|
|
8023
|
+
* A value is required or must be check for the form to be submittable.
|
|
8024
|
+
*/
|
|
9058
8025
|
this.required = false;
|
|
8026
|
+
/**
|
|
8027
|
+
* Use round input edges.
|
|
8028
|
+
*/
|
|
9059
8029
|
this.round = false;
|
|
8030
|
+
/**
|
|
8031
|
+
* Type of form control.
|
|
8032
|
+
*/
|
|
9060
8033
|
this.type = 'text';
|
|
9061
|
-
|
|
9062
|
-
|
|
8034
|
+
/**
|
|
8035
|
+
* Fine-grained control over when the errors are shown. Can be `false` to
|
|
8036
|
+
* never show errors, `true` to show errors on blur, or a number to show
|
|
8037
|
+
* errors change with the given delay in milliseconds or immediately on blur.
|
|
8038
|
+
*/
|
|
9063
8039
|
this.errorUpdate = 0;
|
|
9064
|
-
this.nativeAttributes = undefined;
|
|
9065
|
-
this.testId = undefined;
|
|
9066
|
-
this.timeMaskOptions = undefined;
|
|
9067
|
-
this.dateMaskOptions = undefined;
|
|
9068
8040
|
}
|
|
9069
8041
|
get id() {
|
|
9070
8042
|
return this.identifier || this._id;
|
|
@@ -9201,24 +8173,53 @@ const CatInput = class {
|
|
|
9201
8173
|
"errors": ["onErrorsChanged"]
|
|
9202
8174
|
}; }
|
|
9203
8175
|
};
|
|
9204
|
-
CatInput.style =
|
|
8176
|
+
CatInput.style = catInputCss;
|
|
9205
8177
|
|
|
9206
8178
|
const catPaginationCss = ":host{display:inline-block}:host([hidden]){display:none}ol{display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0}li{display:inline-flex;justify-content:center}li.dots{-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([variant=outlined]) ol{gap:0.75rem}.cat-pagination-xs li.dots,.cat-pagination-xs li.text{height:1.5rem;line-height:1.5rem;font-size:0.875rem}.cat-pagination-xs li.dots{width:1.5rem}:host([variant=outlined]) .cat-pagination-xs{gap:0.375rem}.cat-pagination-s li.dots,.cat-pagination-s li.text{height:2rem;line-height:2rem;font-size:0.9375rem}.cat-pagination-s li.dots{width:2rem}:host([variant=outlined]) .cat-pagination-s{gap:0.5rem}.cat-pagination-m li.dots,.cat-pagination-m li.text{height:2.5rem;line-height:2.5rem;font-size:0.9375rem}.cat-pagination-m li.dots{width:2.5rem}:host([variant=outlined]) .cat-pagination-m{gap:0.625rem}.cat-pagination-l li.dots,.cat-pagination-l li.text{height:3rem;line-height:3rem;font-size:0.9375rem}.cat-pagination-l li.dots{width:3rem}:host([variant=outlined]) .cat-pagination-l{gap:0.75rem}.cat-pagination-xl li.dots,.cat-pagination-xl li.text{height:3.5rem;line-height:3.5rem;font-size:1.125rem}.cat-pagination-xl li.dots{width:3.5rem}:host([variant=outlined]) .cat-pagination-xl{gap:0.875rem}";
|
|
9207
|
-
const CatPaginationStyle0 = catPaginationCss;
|
|
9208
8179
|
|
|
9209
8180
|
const CatPagination = class {
|
|
9210
8181
|
constructor(hostRef) {
|
|
9211
8182
|
registerInstance(this, hostRef);
|
|
9212
|
-
this.catChange = createEvent(this, "catChange"
|
|
8183
|
+
this.catChange = createEvent(this, "catChange");
|
|
8184
|
+
/**
|
|
8185
|
+
* The current page.
|
|
8186
|
+
*/
|
|
9213
8187
|
this.page = 0;
|
|
8188
|
+
/**
|
|
8189
|
+
* The total number of pages.
|
|
8190
|
+
*/
|
|
9214
8191
|
this.pageCount = 1;
|
|
8192
|
+
/**
|
|
8193
|
+
* The number of pages to be shown around the current page.
|
|
8194
|
+
*/
|
|
9215
8195
|
this.activePadding = 1;
|
|
8196
|
+
/**
|
|
8197
|
+
* The number of pages to be shown at the edges.
|
|
8198
|
+
*/
|
|
9216
8199
|
this.sidePadding = 1;
|
|
8200
|
+
/**
|
|
8201
|
+
* The size of the buttons.
|
|
8202
|
+
*/
|
|
9217
8203
|
this.size = 'm';
|
|
8204
|
+
/**
|
|
8205
|
+
* The rendering style of the buttons.
|
|
8206
|
+
*/
|
|
9218
8207
|
this.variant = 'text';
|
|
8208
|
+
/**
|
|
8209
|
+
* Use round button edges.
|
|
8210
|
+
*/
|
|
9219
8211
|
this.round = false;
|
|
8212
|
+
/**
|
|
8213
|
+
* Use compact pagination mode.
|
|
8214
|
+
*/
|
|
9220
8215
|
this.compact = false;
|
|
8216
|
+
/**
|
|
8217
|
+
* The icon of the "previous" button.
|
|
8218
|
+
*/
|
|
9221
8219
|
this.iconPrev = '$cat:pagination-left';
|
|
8220
|
+
/**
|
|
8221
|
+
* The icon of the "next" button.
|
|
8222
|
+
*/
|
|
9222
8223
|
this.iconNext = '$cat:pagination-right';
|
|
9223
8224
|
}
|
|
9224
8225
|
render() {
|
|
@@ -9277,34 +8278,53 @@ const CatPagination = class {
|
|
|
9277
8278
|
static get delegatesFocus() { return true; }
|
|
9278
8279
|
get hostElement() { return getElement(this); }
|
|
9279
8280
|
};
|
|
9280
|
-
CatPagination.style =
|
|
8281
|
+
CatPagination.style = catPaginationCss;
|
|
9281
8282
|
|
|
9282
8283
|
const catRadioCss = ".hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;display:flex;flex-direction:column;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.875rem;line-height:1.125rem}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){margin:0 !important}:host{display:flex;flex-direction:column;gap:0.25rem}:host([hidden]){display:none}label{display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);cursor:pointer}.label-left{flex-direction:row-reverse}.radio{display:flex;position:relative;align-self:flex-start}.circle-placeholder{width:calc(1.25rem + 1px);flex-shrink:0}.circle{position:absolute;width:0.75rem;height:0.75rem;background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-radius:10rem;top:calc(50% - 0.375rem);left:calc(50% - 0.375rem);visibility:hidden;pointer-events:none}input{margin:0;width:1.25rem;height:1.25rem;appearance:none;background-color:white;border:1px solid rgb(var(--cat-border-color-dark, 215, 219, 224));border-radius:10rem;cursor:inherit}input:checked{border-color:rgb(var(--cat-primary-bg, 0, 129, 148))}input:checked+.circle{visibility:visible}input:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}:host(.cat-error) input{border-color:rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) .circle{background-color:rgb(var(--cat-danger-bg, 217, 52, 13))}.label{flex:1 1 auto}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.is-disabled input{background-color:#f2f4f7}.is-disabled input:checked{border-color:rgb(var(--cat-border-color-dark, 215, 219, 224))}.is-disabled .circle{background-color:rgb(var(--cat-border-color-dark, 215, 219, 224))}.align-center .radio{align-self:center}.align-end .radio{align-self:flex-end}";
|
|
9283
|
-
const CatRadioStyle0 = catRadioCss;
|
|
9284
8284
|
|
|
9285
8285
|
let nextUniqueId$6 = 0;
|
|
9286
8286
|
const CatRadio = class {
|
|
9287
8287
|
constructor(hostRef) {
|
|
9288
8288
|
registerInstance(this, hostRef);
|
|
9289
|
-
this.catChange = createEvent(this, "catChange"
|
|
9290
|
-
this.catFocus = createEvent(this, "catFocus"
|
|
9291
|
-
this.catBlur = createEvent(this, "catBlur"
|
|
8289
|
+
this.catChange = createEvent(this, "catChange");
|
|
8290
|
+
this.catFocus = createEvent(this, "catFocus");
|
|
8291
|
+
this.catBlur = createEvent(this, "catBlur");
|
|
9292
8292
|
this._id = `cat-radio-${++nextUniqueId$6}`;
|
|
9293
8293
|
this.hasSlottedLabel = false;
|
|
9294
8294
|
this.hasSlottedHint = false;
|
|
8295
|
+
/**
|
|
8296
|
+
* Whether this radio is checked.
|
|
8297
|
+
*/
|
|
9295
8298
|
this.checked = false;
|
|
8299
|
+
/**
|
|
8300
|
+
* Whether this radio is disabled.
|
|
8301
|
+
*/
|
|
9296
8302
|
this.disabled = false;
|
|
9297
|
-
|
|
8303
|
+
/**
|
|
8304
|
+
* The label of the radio that is visible.
|
|
8305
|
+
*/
|
|
9298
8306
|
this.label = '';
|
|
8307
|
+
/**
|
|
8308
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
8309
|
+
*/
|
|
9299
8310
|
this.labelHidden = false;
|
|
9300
|
-
|
|
8311
|
+
/**
|
|
8312
|
+
* Whether the radio is required.
|
|
8313
|
+
*/
|
|
9301
8314
|
this.required = false;
|
|
8315
|
+
/**
|
|
8316
|
+
* The value of the radio component.
|
|
8317
|
+
*/
|
|
8318
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9302
8319
|
this.value = '';
|
|
9303
|
-
|
|
8320
|
+
/**
|
|
8321
|
+
* Whether the label should appear to the left of the radio component.
|
|
8322
|
+
*/
|
|
9304
8323
|
this.labelLeft = false;
|
|
8324
|
+
/**
|
|
8325
|
+
* The alignment of the checkbox.
|
|
8326
|
+
*/
|
|
9305
8327
|
this.alignment = 'top';
|
|
9306
|
-
this.nativeAttributes = undefined;
|
|
9307
|
-
this.testId = undefined;
|
|
9308
8328
|
}
|
|
9309
8329
|
get id() {
|
|
9310
8330
|
return this.identifier || this._id;
|
|
@@ -9356,22 +8376,24 @@ const CatRadio = class {
|
|
|
9356
8376
|
static get delegatesFocus() { return true; }
|
|
9357
8377
|
get hostElement() { return getElement(this); }
|
|
9358
8378
|
};
|
|
9359
|
-
CatRadio.style =
|
|
8379
|
+
CatRadio.style = catRadioCss;
|
|
9360
8380
|
|
|
9361
8381
|
const catRadioGroupCss = ":host{display:block}:host([hidden]){display:none}";
|
|
9362
|
-
const CatRadioGroupStyle0 = catRadioGroupCss;
|
|
9363
8382
|
|
|
9364
8383
|
const CatRadioGroup = class {
|
|
9365
8384
|
constructor(hostRef) {
|
|
9366
8385
|
registerInstance(this, hostRef);
|
|
9367
|
-
this.catChange = createEvent(this, "catChange"
|
|
9368
|
-
this.catFocus = createEvent(this, "catFocus"
|
|
9369
|
-
this.catBlur = createEvent(this, "catBlur"
|
|
8386
|
+
this.catChange = createEvent(this, "catChange");
|
|
8387
|
+
this.catFocus = createEvent(this, "catFocus");
|
|
8388
|
+
this.catBlur = createEvent(this, "catBlur");
|
|
9370
8389
|
this.catRadioGroup = [];
|
|
9371
|
-
|
|
9372
|
-
|
|
8390
|
+
/**
|
|
8391
|
+
* Whether this radio group is disabled.
|
|
8392
|
+
*/
|
|
9373
8393
|
this.disabled = false;
|
|
9374
|
-
|
|
8394
|
+
/**
|
|
8395
|
+
* Whether the label of the radios should appear to the left of them.
|
|
8396
|
+
*/
|
|
9375
8397
|
this.labelLeft = false;
|
|
9376
8398
|
}
|
|
9377
8399
|
onNameChanged(newName) {
|
|
@@ -9456,33 +8478,353 @@ const CatRadioGroup = class {
|
|
|
9456
8478
|
"labelLeft": ["onLabelLeftChanged"]
|
|
9457
8479
|
}; }
|
|
9458
8480
|
};
|
|
9459
|
-
CatRadioGroup.style =
|
|
8481
|
+
CatRadioGroup.style = catRadioGroupCss;
|
|
8482
|
+
|
|
8483
|
+
var operators = {};
|
|
8484
|
+
|
|
8485
|
+
var partition = {};
|
|
8486
|
+
|
|
8487
|
+
var hasRequiredPartition;
|
|
8488
|
+
|
|
8489
|
+
function requirePartition () {
|
|
8490
|
+
if (hasRequiredPartition) return partition;
|
|
8491
|
+
hasRequiredPartition = 1;
|
|
8492
|
+
Object.defineProperty(partition, "__esModule", { value: true });
|
|
8493
|
+
partition.partition = void 0;
|
|
8494
|
+
var not_1 = requireNot();
|
|
8495
|
+
var filter_1 = requireFilter();
|
|
8496
|
+
function partition$1(predicate, thisArg) {
|
|
8497
|
+
return function (source) {
|
|
8498
|
+
return [filter_1.filter(predicate, thisArg)(source), filter_1.filter(not_1.not(predicate, thisArg))(source)];
|
|
8499
|
+
};
|
|
8500
|
+
}
|
|
8501
|
+
partition.partition = partition$1;
|
|
8502
|
+
|
|
8503
|
+
return partition;
|
|
8504
|
+
}
|
|
8505
|
+
|
|
8506
|
+
var race = {};
|
|
8507
|
+
|
|
8508
|
+
var hasRequiredRace;
|
|
8509
|
+
|
|
8510
|
+
function requireRace () {
|
|
8511
|
+
if (hasRequiredRace) return race;
|
|
8512
|
+
hasRequiredRace = 1;
|
|
8513
|
+
var __read = (race && race.__read) || function (o, n) {
|
|
8514
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
8515
|
+
if (!m) return o;
|
|
8516
|
+
var i = m.call(o), r, ar = [], e;
|
|
8517
|
+
try {
|
|
8518
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
8519
|
+
}
|
|
8520
|
+
catch (error) { e = { error: error }; }
|
|
8521
|
+
finally {
|
|
8522
|
+
try {
|
|
8523
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
8524
|
+
}
|
|
8525
|
+
finally { if (e) throw e.error; }
|
|
8526
|
+
}
|
|
8527
|
+
return ar;
|
|
8528
|
+
};
|
|
8529
|
+
var __spreadArray = (race && race.__spreadArray) || function (to, from) {
|
|
8530
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
8531
|
+
to[j] = from[i];
|
|
8532
|
+
return to;
|
|
8533
|
+
};
|
|
8534
|
+
Object.defineProperty(race, "__esModule", { value: true });
|
|
8535
|
+
race.race = void 0;
|
|
8536
|
+
var argsOrArgArray_1 = requireArgsOrArgArray();
|
|
8537
|
+
var raceWith_1 = requireRaceWith();
|
|
8538
|
+
function race$1() {
|
|
8539
|
+
var args = [];
|
|
8540
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8541
|
+
args[_i] = arguments[_i];
|
|
8542
|
+
}
|
|
8543
|
+
return raceWith_1.raceWith.apply(void 0, __spreadArray([], __read(argsOrArgArray_1.argsOrArgArray(args))));
|
|
8544
|
+
}
|
|
8545
|
+
race.race = race$1;
|
|
8546
|
+
|
|
8547
|
+
return race;
|
|
8548
|
+
}
|
|
8549
|
+
|
|
8550
|
+
var hasRequiredOperators;
|
|
8551
|
+
|
|
8552
|
+
function requireOperators () {
|
|
8553
|
+
if (hasRequiredOperators) return operators;
|
|
8554
|
+
hasRequiredOperators = 1;
|
|
8555
|
+
(function (exports) {
|
|
8556
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8557
|
+
exports.mergeAll = exports.merge = exports.max = exports.materialize = exports.mapTo = exports.map = exports.last = exports.isEmpty = exports.ignoreElements = exports.groupBy = exports.first = exports.findIndex = exports.find = exports.finalize = exports.filter = exports.expand = exports.exhaustMap = exports.exhaustAll = exports.exhaust = exports.every = exports.endWith = exports.elementAt = exports.distinctUntilKeyChanged = exports.distinctUntilChanged = exports.distinct = exports.dematerialize = exports.delayWhen = exports.delay = exports.defaultIfEmpty = exports.debounceTime = exports.debounce = exports.count = exports.connect = exports.concatWith = exports.concatMapTo = exports.concatMap = exports.concatAll = exports.concat = exports.combineLatestWith = exports.combineLatest = exports.combineLatestAll = exports.combineAll = exports.catchError = exports.bufferWhen = exports.bufferToggle = exports.bufferTime = exports.bufferCount = exports.buffer = exports.auditTime = exports.audit = void 0;
|
|
8558
|
+
exports.timeInterval = exports.throwIfEmpty = exports.throttleTime = exports.throttle = exports.tap = exports.takeWhile = exports.takeUntil = exports.takeLast = exports.take = exports.switchScan = exports.switchMapTo = exports.switchMap = exports.switchAll = exports.subscribeOn = exports.startWith = exports.skipWhile = exports.skipUntil = exports.skipLast = exports.skip = exports.single = exports.shareReplay = exports.share = exports.sequenceEqual = exports.scan = exports.sampleTime = exports.sample = exports.refCount = exports.retryWhen = exports.retry = exports.repeatWhen = exports.repeat = exports.reduce = exports.raceWith = exports.race = exports.publishReplay = exports.publishLast = exports.publishBehavior = exports.publish = exports.pluck = exports.partition = exports.pairwise = exports.onErrorResumeNext = exports.observeOn = exports.multicast = exports.min = exports.mergeWith = exports.mergeScan = exports.mergeMapTo = exports.mergeMap = exports.flatMap = void 0;
|
|
8559
|
+
exports.zipWith = exports.zipAll = exports.zip = exports.withLatestFrom = exports.windowWhen = exports.windowToggle = exports.windowTime = exports.windowCount = exports.window = exports.toArray = exports.timestamp = exports.timeoutWith = exports.timeout = void 0;
|
|
8560
|
+
var audit_1 = requireAudit();
|
|
8561
|
+
Object.defineProperty(exports, "audit", { enumerable: true, get: function () { return audit_1.audit; } });
|
|
8562
|
+
var auditTime_1 = requireAuditTime();
|
|
8563
|
+
Object.defineProperty(exports, "auditTime", { enumerable: true, get: function () { return auditTime_1.auditTime; } });
|
|
8564
|
+
var buffer_1 = requireBuffer();
|
|
8565
|
+
Object.defineProperty(exports, "buffer", { enumerable: true, get: function () { return buffer_1.buffer; } });
|
|
8566
|
+
var bufferCount_1 = requireBufferCount();
|
|
8567
|
+
Object.defineProperty(exports, "bufferCount", { enumerable: true, get: function () { return bufferCount_1.bufferCount; } });
|
|
8568
|
+
var bufferTime_1 = requireBufferTime();
|
|
8569
|
+
Object.defineProperty(exports, "bufferTime", { enumerable: true, get: function () { return bufferTime_1.bufferTime; } });
|
|
8570
|
+
var bufferToggle_1 = requireBufferToggle();
|
|
8571
|
+
Object.defineProperty(exports, "bufferToggle", { enumerable: true, get: function () { return bufferToggle_1.bufferToggle; } });
|
|
8572
|
+
var bufferWhen_1 = requireBufferWhen();
|
|
8573
|
+
Object.defineProperty(exports, "bufferWhen", { enumerable: true, get: function () { return bufferWhen_1.bufferWhen; } });
|
|
8574
|
+
var catchError_1 = requireCatchError();
|
|
8575
|
+
Object.defineProperty(exports, "catchError", { enumerable: true, get: function () { return catchError_1.catchError; } });
|
|
8576
|
+
var combineAll_1 = requireCombineAll();
|
|
8577
|
+
Object.defineProperty(exports, "combineAll", { enumerable: true, get: function () { return combineAll_1.combineAll; } });
|
|
8578
|
+
var combineLatestAll_1 = requireCombineLatestAll();
|
|
8579
|
+
Object.defineProperty(exports, "combineLatestAll", { enumerable: true, get: function () { return combineLatestAll_1.combineLatestAll; } });
|
|
8580
|
+
var combineLatest_1 = requireCombineLatest();
|
|
8581
|
+
Object.defineProperty(exports, "combineLatest", { enumerable: true, get: function () { return combineLatest_1.combineLatest; } });
|
|
8582
|
+
var combineLatestWith_1 = requireCombineLatestWith();
|
|
8583
|
+
Object.defineProperty(exports, "combineLatestWith", { enumerable: true, get: function () { return combineLatestWith_1.combineLatestWith; } });
|
|
8584
|
+
var concat_1 = requireConcat();
|
|
8585
|
+
Object.defineProperty(exports, "concat", { enumerable: true, get: function () { return concat_1.concat; } });
|
|
8586
|
+
var concatAll_1 = requireConcatAll();
|
|
8587
|
+
Object.defineProperty(exports, "concatAll", { enumerable: true, get: function () { return concatAll_1.concatAll; } });
|
|
8588
|
+
var concatMap_1 = requireConcatMap();
|
|
8589
|
+
Object.defineProperty(exports, "concatMap", { enumerable: true, get: function () { return concatMap_1.concatMap; } });
|
|
8590
|
+
var concatMapTo_1 = requireConcatMapTo();
|
|
8591
|
+
Object.defineProperty(exports, "concatMapTo", { enumerable: true, get: function () { return concatMapTo_1.concatMapTo; } });
|
|
8592
|
+
var concatWith_1 = requireConcatWith();
|
|
8593
|
+
Object.defineProperty(exports, "concatWith", { enumerable: true, get: function () { return concatWith_1.concatWith; } });
|
|
8594
|
+
var connect_1 = requireConnect();
|
|
8595
|
+
Object.defineProperty(exports, "connect", { enumerable: true, get: function () { return connect_1.connect; } });
|
|
8596
|
+
var count_1 = requireCount();
|
|
8597
|
+
Object.defineProperty(exports, "count", { enumerable: true, get: function () { return count_1.count; } });
|
|
8598
|
+
var debounce_1 = requireDebounce();
|
|
8599
|
+
Object.defineProperty(exports, "debounce", { enumerable: true, get: function () { return debounce_1.debounce; } });
|
|
8600
|
+
var debounceTime_1 = requireDebounceTime();
|
|
8601
|
+
Object.defineProperty(exports, "debounceTime", { enumerable: true, get: function () { return debounceTime_1.debounceTime; } });
|
|
8602
|
+
var defaultIfEmpty_1 = requireDefaultIfEmpty();
|
|
8603
|
+
Object.defineProperty(exports, "defaultIfEmpty", { enumerable: true, get: function () { return defaultIfEmpty_1.defaultIfEmpty; } });
|
|
8604
|
+
var delay_1 = requireDelay();
|
|
8605
|
+
Object.defineProperty(exports, "delay", { enumerable: true, get: function () { return delay_1.delay; } });
|
|
8606
|
+
var delayWhen_1 = requireDelayWhen();
|
|
8607
|
+
Object.defineProperty(exports, "delayWhen", { enumerable: true, get: function () { return delayWhen_1.delayWhen; } });
|
|
8608
|
+
var dematerialize_1 = requireDematerialize();
|
|
8609
|
+
Object.defineProperty(exports, "dematerialize", { enumerable: true, get: function () { return dematerialize_1.dematerialize; } });
|
|
8610
|
+
var distinct_1 = requireDistinct();
|
|
8611
|
+
Object.defineProperty(exports, "distinct", { enumerable: true, get: function () { return distinct_1.distinct; } });
|
|
8612
|
+
var distinctUntilChanged_1 = requireDistinctUntilChanged();
|
|
8613
|
+
Object.defineProperty(exports, "distinctUntilChanged", { enumerable: true, get: function () { return distinctUntilChanged_1.distinctUntilChanged; } });
|
|
8614
|
+
var distinctUntilKeyChanged_1 = requireDistinctUntilKeyChanged();
|
|
8615
|
+
Object.defineProperty(exports, "distinctUntilKeyChanged", { enumerable: true, get: function () { return distinctUntilKeyChanged_1.distinctUntilKeyChanged; } });
|
|
8616
|
+
var elementAt_1 = requireElementAt();
|
|
8617
|
+
Object.defineProperty(exports, "elementAt", { enumerable: true, get: function () { return elementAt_1.elementAt; } });
|
|
8618
|
+
var endWith_1 = requireEndWith();
|
|
8619
|
+
Object.defineProperty(exports, "endWith", { enumerable: true, get: function () { return endWith_1.endWith; } });
|
|
8620
|
+
var every_1 = requireEvery();
|
|
8621
|
+
Object.defineProperty(exports, "every", { enumerable: true, get: function () { return every_1.every; } });
|
|
8622
|
+
var exhaust_1 = requireExhaust();
|
|
8623
|
+
Object.defineProperty(exports, "exhaust", { enumerable: true, get: function () { return exhaust_1.exhaust; } });
|
|
8624
|
+
var exhaustAll_1 = requireExhaustAll();
|
|
8625
|
+
Object.defineProperty(exports, "exhaustAll", { enumerable: true, get: function () { return exhaustAll_1.exhaustAll; } });
|
|
8626
|
+
var exhaustMap_1 = requireExhaustMap();
|
|
8627
|
+
Object.defineProperty(exports, "exhaustMap", { enumerable: true, get: function () { return exhaustMap_1.exhaustMap; } });
|
|
8628
|
+
var expand_1 = requireExpand();
|
|
8629
|
+
Object.defineProperty(exports, "expand", { enumerable: true, get: function () { return expand_1.expand; } });
|
|
8630
|
+
var filter_1 = requireFilter();
|
|
8631
|
+
Object.defineProperty(exports, "filter", { enumerable: true, get: function () { return filter_1.filter; } });
|
|
8632
|
+
var finalize_1 = requireFinalize();
|
|
8633
|
+
Object.defineProperty(exports, "finalize", { enumerable: true, get: function () { return finalize_1.finalize; } });
|
|
8634
|
+
var find_1 = requireFind();
|
|
8635
|
+
Object.defineProperty(exports, "find", { enumerable: true, get: function () { return find_1.find; } });
|
|
8636
|
+
var findIndex_1 = requireFindIndex();
|
|
8637
|
+
Object.defineProperty(exports, "findIndex", { enumerable: true, get: function () { return findIndex_1.findIndex; } });
|
|
8638
|
+
var first_1 = requireFirst();
|
|
8639
|
+
Object.defineProperty(exports, "first", { enumerable: true, get: function () { return first_1.first; } });
|
|
8640
|
+
var groupBy_1 = requireGroupBy();
|
|
8641
|
+
Object.defineProperty(exports, "groupBy", { enumerable: true, get: function () { return groupBy_1.groupBy; } });
|
|
8642
|
+
var ignoreElements_1 = requireIgnoreElements();
|
|
8643
|
+
Object.defineProperty(exports, "ignoreElements", { enumerable: true, get: function () { return ignoreElements_1.ignoreElements; } });
|
|
8644
|
+
var isEmpty_1 = requireIsEmpty();
|
|
8645
|
+
Object.defineProperty(exports, "isEmpty", { enumerable: true, get: function () { return isEmpty_1.isEmpty; } });
|
|
8646
|
+
var last_1 = requireLast();
|
|
8647
|
+
Object.defineProperty(exports, "last", { enumerable: true, get: function () { return last_1.last; } });
|
|
8648
|
+
var map_1 = requireMap();
|
|
8649
|
+
Object.defineProperty(exports, "map", { enumerable: true, get: function () { return map_1.map; } });
|
|
8650
|
+
var mapTo_1 = requireMapTo();
|
|
8651
|
+
Object.defineProperty(exports, "mapTo", { enumerable: true, get: function () { return mapTo_1.mapTo; } });
|
|
8652
|
+
var materialize_1 = requireMaterialize();
|
|
8653
|
+
Object.defineProperty(exports, "materialize", { enumerable: true, get: function () { return materialize_1.materialize; } });
|
|
8654
|
+
var max_1 = requireMax();
|
|
8655
|
+
Object.defineProperty(exports, "max", { enumerable: true, get: function () { return max_1.max; } });
|
|
8656
|
+
var merge_1 = requireMerge();
|
|
8657
|
+
Object.defineProperty(exports, "merge", { enumerable: true, get: function () { return merge_1.merge; } });
|
|
8658
|
+
var mergeAll_1 = requireMergeAll();
|
|
8659
|
+
Object.defineProperty(exports, "mergeAll", { enumerable: true, get: function () { return mergeAll_1.mergeAll; } });
|
|
8660
|
+
var flatMap_1 = requireFlatMap();
|
|
8661
|
+
Object.defineProperty(exports, "flatMap", { enumerable: true, get: function () { return flatMap_1.flatMap; } });
|
|
8662
|
+
var mergeMap_1 = requireMergeMap();
|
|
8663
|
+
Object.defineProperty(exports, "mergeMap", { enumerable: true, get: function () { return mergeMap_1.mergeMap; } });
|
|
8664
|
+
var mergeMapTo_1 = requireMergeMapTo();
|
|
8665
|
+
Object.defineProperty(exports, "mergeMapTo", { enumerable: true, get: function () { return mergeMapTo_1.mergeMapTo; } });
|
|
8666
|
+
var mergeScan_1 = requireMergeScan();
|
|
8667
|
+
Object.defineProperty(exports, "mergeScan", { enumerable: true, get: function () { return mergeScan_1.mergeScan; } });
|
|
8668
|
+
var mergeWith_1 = requireMergeWith();
|
|
8669
|
+
Object.defineProperty(exports, "mergeWith", { enumerable: true, get: function () { return mergeWith_1.mergeWith; } });
|
|
8670
|
+
var min_1 = requireMin();
|
|
8671
|
+
Object.defineProperty(exports, "min", { enumerable: true, get: function () { return min_1.min; } });
|
|
8672
|
+
var multicast_1 = requireMulticast();
|
|
8673
|
+
Object.defineProperty(exports, "multicast", { enumerable: true, get: function () { return multicast_1.multicast; } });
|
|
8674
|
+
var observeOn_1 = requireObserveOn();
|
|
8675
|
+
Object.defineProperty(exports, "observeOn", { enumerable: true, get: function () { return observeOn_1.observeOn; } });
|
|
8676
|
+
var onErrorResumeNextWith_1 = requireOnErrorResumeNextWith();
|
|
8677
|
+
Object.defineProperty(exports, "onErrorResumeNext", { enumerable: true, get: function () { return onErrorResumeNextWith_1.onErrorResumeNext; } });
|
|
8678
|
+
var pairwise_1 = requirePairwise();
|
|
8679
|
+
Object.defineProperty(exports, "pairwise", { enumerable: true, get: function () { return pairwise_1.pairwise; } });
|
|
8680
|
+
var partition_1 = requirePartition();
|
|
8681
|
+
Object.defineProperty(exports, "partition", { enumerable: true, get: function () { return partition_1.partition; } });
|
|
8682
|
+
var pluck_1 = requirePluck();
|
|
8683
|
+
Object.defineProperty(exports, "pluck", { enumerable: true, get: function () { return pluck_1.pluck; } });
|
|
8684
|
+
var publish_1 = requirePublish();
|
|
8685
|
+
Object.defineProperty(exports, "publish", { enumerable: true, get: function () { return publish_1.publish; } });
|
|
8686
|
+
var publishBehavior_1 = requirePublishBehavior();
|
|
8687
|
+
Object.defineProperty(exports, "publishBehavior", { enumerable: true, get: function () { return publishBehavior_1.publishBehavior; } });
|
|
8688
|
+
var publishLast_1 = requirePublishLast();
|
|
8689
|
+
Object.defineProperty(exports, "publishLast", { enumerable: true, get: function () { return publishLast_1.publishLast; } });
|
|
8690
|
+
var publishReplay_1 = requirePublishReplay();
|
|
8691
|
+
Object.defineProperty(exports, "publishReplay", { enumerable: true, get: function () { return publishReplay_1.publishReplay; } });
|
|
8692
|
+
var race_1 = requireRace();
|
|
8693
|
+
Object.defineProperty(exports, "race", { enumerable: true, get: function () { return race_1.race; } });
|
|
8694
|
+
var raceWith_1 = requireRaceWith();
|
|
8695
|
+
Object.defineProperty(exports, "raceWith", { enumerable: true, get: function () { return raceWith_1.raceWith; } });
|
|
8696
|
+
var reduce_1 = requireReduce();
|
|
8697
|
+
Object.defineProperty(exports, "reduce", { enumerable: true, get: function () { return reduce_1.reduce; } });
|
|
8698
|
+
var repeat_1 = requireRepeat();
|
|
8699
|
+
Object.defineProperty(exports, "repeat", { enumerable: true, get: function () { return repeat_1.repeat; } });
|
|
8700
|
+
var repeatWhen_1 = requireRepeatWhen();
|
|
8701
|
+
Object.defineProperty(exports, "repeatWhen", { enumerable: true, get: function () { return repeatWhen_1.repeatWhen; } });
|
|
8702
|
+
var retry_1 = requireRetry();
|
|
8703
|
+
Object.defineProperty(exports, "retry", { enumerable: true, get: function () { return retry_1.retry; } });
|
|
8704
|
+
var retryWhen_1 = requireRetryWhen();
|
|
8705
|
+
Object.defineProperty(exports, "retryWhen", { enumerable: true, get: function () { return retryWhen_1.retryWhen; } });
|
|
8706
|
+
var refCount_1 = requireRefCount();
|
|
8707
|
+
Object.defineProperty(exports, "refCount", { enumerable: true, get: function () { return refCount_1.refCount; } });
|
|
8708
|
+
var sample_1 = requireSample();
|
|
8709
|
+
Object.defineProperty(exports, "sample", { enumerable: true, get: function () { return sample_1.sample; } });
|
|
8710
|
+
var sampleTime_1 = requireSampleTime();
|
|
8711
|
+
Object.defineProperty(exports, "sampleTime", { enumerable: true, get: function () { return sampleTime_1.sampleTime; } });
|
|
8712
|
+
var scan_1 = requireScan();
|
|
8713
|
+
Object.defineProperty(exports, "scan", { enumerable: true, get: function () { return scan_1.scan; } });
|
|
8714
|
+
var sequenceEqual_1 = requireSequenceEqual();
|
|
8715
|
+
Object.defineProperty(exports, "sequenceEqual", { enumerable: true, get: function () { return sequenceEqual_1.sequenceEqual; } });
|
|
8716
|
+
var share_1 = requireShare();
|
|
8717
|
+
Object.defineProperty(exports, "share", { enumerable: true, get: function () { return share_1.share; } });
|
|
8718
|
+
var shareReplay_1 = requireShareReplay();
|
|
8719
|
+
Object.defineProperty(exports, "shareReplay", { enumerable: true, get: function () { return shareReplay_1.shareReplay; } });
|
|
8720
|
+
var single_1 = requireSingle();
|
|
8721
|
+
Object.defineProperty(exports, "single", { enumerable: true, get: function () { return single_1.single; } });
|
|
8722
|
+
var skip_1 = requireSkip();
|
|
8723
|
+
Object.defineProperty(exports, "skip", { enumerable: true, get: function () { return skip_1.skip; } });
|
|
8724
|
+
var skipLast_1 = requireSkipLast();
|
|
8725
|
+
Object.defineProperty(exports, "skipLast", { enumerable: true, get: function () { return skipLast_1.skipLast; } });
|
|
8726
|
+
var skipUntil_1 = requireSkipUntil();
|
|
8727
|
+
Object.defineProperty(exports, "skipUntil", { enumerable: true, get: function () { return skipUntil_1.skipUntil; } });
|
|
8728
|
+
var skipWhile_1 = requireSkipWhile();
|
|
8729
|
+
Object.defineProperty(exports, "skipWhile", { enumerable: true, get: function () { return skipWhile_1.skipWhile; } });
|
|
8730
|
+
var startWith_1 = requireStartWith();
|
|
8731
|
+
Object.defineProperty(exports, "startWith", { enumerable: true, get: function () { return startWith_1.startWith; } });
|
|
8732
|
+
var subscribeOn_1 = requireSubscribeOn();
|
|
8733
|
+
Object.defineProperty(exports, "subscribeOn", { enumerable: true, get: function () { return subscribeOn_1.subscribeOn; } });
|
|
8734
|
+
var switchAll_1 = requireSwitchAll();
|
|
8735
|
+
Object.defineProperty(exports, "switchAll", { enumerable: true, get: function () { return switchAll_1.switchAll; } });
|
|
8736
|
+
var switchMap_1 = requireSwitchMap();
|
|
8737
|
+
Object.defineProperty(exports, "switchMap", { enumerable: true, get: function () { return switchMap_1.switchMap; } });
|
|
8738
|
+
var switchMapTo_1 = requireSwitchMapTo();
|
|
8739
|
+
Object.defineProperty(exports, "switchMapTo", { enumerable: true, get: function () { return switchMapTo_1.switchMapTo; } });
|
|
8740
|
+
var switchScan_1 = requireSwitchScan();
|
|
8741
|
+
Object.defineProperty(exports, "switchScan", { enumerable: true, get: function () { return switchScan_1.switchScan; } });
|
|
8742
|
+
var take_1 = requireTake();
|
|
8743
|
+
Object.defineProperty(exports, "take", { enumerable: true, get: function () { return take_1.take; } });
|
|
8744
|
+
var takeLast_1 = requireTakeLast();
|
|
8745
|
+
Object.defineProperty(exports, "takeLast", { enumerable: true, get: function () { return takeLast_1.takeLast; } });
|
|
8746
|
+
var takeUntil_1 = requireTakeUntil();
|
|
8747
|
+
Object.defineProperty(exports, "takeUntil", { enumerable: true, get: function () { return takeUntil_1.takeUntil; } });
|
|
8748
|
+
var takeWhile_1 = requireTakeWhile();
|
|
8749
|
+
Object.defineProperty(exports, "takeWhile", { enumerable: true, get: function () { return takeWhile_1.takeWhile; } });
|
|
8750
|
+
var tap_1 = requireTap();
|
|
8751
|
+
Object.defineProperty(exports, "tap", { enumerable: true, get: function () { return tap_1.tap; } });
|
|
8752
|
+
var throttle_1 = requireThrottle();
|
|
8753
|
+
Object.defineProperty(exports, "throttle", { enumerable: true, get: function () { return throttle_1.throttle; } });
|
|
8754
|
+
var throttleTime_1 = requireThrottleTime();
|
|
8755
|
+
Object.defineProperty(exports, "throttleTime", { enumerable: true, get: function () { return throttleTime_1.throttleTime; } });
|
|
8756
|
+
var throwIfEmpty_1 = requireThrowIfEmpty();
|
|
8757
|
+
Object.defineProperty(exports, "throwIfEmpty", { enumerable: true, get: function () { return throwIfEmpty_1.throwIfEmpty; } });
|
|
8758
|
+
var timeInterval_1 = requireTimeInterval();
|
|
8759
|
+
Object.defineProperty(exports, "timeInterval", { enumerable: true, get: function () { return timeInterval_1.timeInterval; } });
|
|
8760
|
+
var timeout_1 = requireTimeout();
|
|
8761
|
+
Object.defineProperty(exports, "timeout", { enumerable: true, get: function () { return timeout_1.timeout; } });
|
|
8762
|
+
var timeoutWith_1 = requireTimeoutWith();
|
|
8763
|
+
Object.defineProperty(exports, "timeoutWith", { enumerable: true, get: function () { return timeoutWith_1.timeoutWith; } });
|
|
8764
|
+
var timestamp_1 = requireTimestamp();
|
|
8765
|
+
Object.defineProperty(exports, "timestamp", { enumerable: true, get: function () { return timestamp_1.timestamp; } });
|
|
8766
|
+
var toArray_1 = requireToArray();
|
|
8767
|
+
Object.defineProperty(exports, "toArray", { enumerable: true, get: function () { return toArray_1.toArray; } });
|
|
8768
|
+
var window_1 = requireWindow();
|
|
8769
|
+
Object.defineProperty(exports, "window", { enumerable: true, get: function () { return window_1.window; } });
|
|
8770
|
+
var windowCount_1 = requireWindowCount();
|
|
8771
|
+
Object.defineProperty(exports, "windowCount", { enumerable: true, get: function () { return windowCount_1.windowCount; } });
|
|
8772
|
+
var windowTime_1 = requireWindowTime();
|
|
8773
|
+
Object.defineProperty(exports, "windowTime", { enumerable: true, get: function () { return windowTime_1.windowTime; } });
|
|
8774
|
+
var windowToggle_1 = requireWindowToggle();
|
|
8775
|
+
Object.defineProperty(exports, "windowToggle", { enumerable: true, get: function () { return windowToggle_1.windowToggle; } });
|
|
8776
|
+
var windowWhen_1 = requireWindowWhen();
|
|
8777
|
+
Object.defineProperty(exports, "windowWhen", { enumerable: true, get: function () { return windowWhen_1.windowWhen; } });
|
|
8778
|
+
var withLatestFrom_1 = requireWithLatestFrom();
|
|
8779
|
+
Object.defineProperty(exports, "withLatestFrom", { enumerable: true, get: function () { return withLatestFrom_1.withLatestFrom; } });
|
|
8780
|
+
var zip_1 = requireZip();
|
|
8781
|
+
Object.defineProperty(exports, "zip", { enumerable: true, get: function () { return zip_1.zip; } });
|
|
8782
|
+
var zipAll_1 = requireZipAll();
|
|
8783
|
+
Object.defineProperty(exports, "zipAll", { enumerable: true, get: function () { return zipAll_1.zipAll; } });
|
|
8784
|
+
var zipWith_1 = requireZipWith();
|
|
8785
|
+
Object.defineProperty(exports, "zipWith", { enumerable: true, get: function () { return zipWith_1.zipWith; } });
|
|
8786
|
+
|
|
8787
|
+
} (operators));
|
|
8788
|
+
return operators;
|
|
8789
|
+
}
|
|
8790
|
+
|
|
8791
|
+
var operatorsExports = /*@__PURE__*/ requireOperators();
|
|
9460
8792
|
|
|
9461
8793
|
const catScrollableCss = ":host{overflow:hidden;position:relative;display:flex}:host([hidden]){display:none}.shadow-bottom,.shadow-right,.shadow-left,.shadow-top{position:absolute;transition:box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1)}.shadow-top{z-index:2;width:100%;top:0}.shadow-left{z-index:4;height:100%;left:0}.shadow-right{z-index:4;height:100%;right:0}.shadow-bottom{z-index:2;width:100%;bottom:0}.scrollable-wrapper{position:absolute;inset:0;pointer-events:none}.scrollable-wrapper.cat-scrollable-top .shadow-top,.scrollable-wrapper.cat-scrollable-bottom .shadow-bottom,.scrollable-wrapper.cat-scrollable-left .shadow-left,.scrollable-wrapper.cat-scrollable-right .shadow-right{box-shadow:0 0 4px 1px rgba(16, 29, 48, 0.2)}.scrollable-content{width:100%;overflow:hidden}.scrollable-content.scroll-x{overflow-x:auto}.scrollable-content.scroll-y{overflow-y:auto}.scrollable-content.no-overscroll{overscroll-behavior:contain}";
|
|
9462
|
-
const CatScrollableStyle0 = catScrollableCss;
|
|
9463
8794
|
|
|
9464
8795
|
const CatScrollable = class {
|
|
9465
8796
|
constructor(hostRef) {
|
|
9466
8797
|
registerInstance(this, hostRef);
|
|
9467
|
-
this.scrolledTop = createEvent(this, "scrolledTop"
|
|
9468
|
-
this.scrolledLeft = createEvent(this, "scrolledLeft"
|
|
9469
|
-
this.scrolledRight = createEvent(this, "scrolledRight"
|
|
9470
|
-
this.scrolledBottom = createEvent(this, "scrolledBottom"
|
|
9471
|
-
this.init = new Subject();
|
|
9472
|
-
this.destroyed = new Subject();
|
|
9473
|
-
this.resizedEntries = new Subject();
|
|
8798
|
+
this.scrolledTop = createEvent(this, "scrolledTop");
|
|
8799
|
+
this.scrolledLeft = createEvent(this, "scrolledLeft");
|
|
8800
|
+
this.scrolledRight = createEvent(this, "scrolledRight");
|
|
8801
|
+
this.scrolledBottom = createEvent(this, "scrolledBottom");
|
|
8802
|
+
this.init = new cjsExports.Subject();
|
|
8803
|
+
this.destroyed = new cjsExports.Subject();
|
|
8804
|
+
this.resizedEntries = new cjsExports.Subject();
|
|
9474
8805
|
this.resizedObserver = new ResizeObserver(entries => this.resizedEntries.next(entries));
|
|
8806
|
+
/** Flags to disable/enable scroll shadowX. */
|
|
9475
8807
|
this.noShadowX = false;
|
|
8808
|
+
/** Flags to disable/enable scroll shadowY. */
|
|
9476
8809
|
this.noShadowY = false;
|
|
8810
|
+
/** Flags to disable/enable overflowX. */
|
|
9477
8811
|
this.noOverflowX = false;
|
|
8812
|
+
/** Flags to disable/enable overflowY. */
|
|
9478
8813
|
this.noOverflowY = false;
|
|
8814
|
+
/** Flag to disable/enable overscroll behavior. */
|
|
9479
8815
|
this.noOverscroll = false;
|
|
8816
|
+
/**
|
|
8817
|
+
* Flag to not fire an initial event after content initialization.
|
|
8818
|
+
*/
|
|
9480
8819
|
this.noScrolledInit = false;
|
|
8820
|
+
/**
|
|
8821
|
+
* Buffer to be used to calculate the scroll distance.
|
|
8822
|
+
*/
|
|
9481
8823
|
this.scrolledBuffer = 0;
|
|
9482
8824
|
}
|
|
9483
8825
|
componentDidRender() {
|
|
9484
8826
|
if (this.scrollElement) {
|
|
9485
|
-
this.scrolled = fromEvent(this.scrollElement, 'scroll').pipe(takeUntil(this.destroyed));
|
|
8827
|
+
this.scrolled = cjsExports.fromEvent(this.scrollElement, 'scroll').pipe(operatorsExports.takeUntil(this.destroyed));
|
|
9486
8828
|
this.resizedObserver.observe(this.scrollElement);
|
|
9487
8829
|
}
|
|
9488
8830
|
if (this.scrollWrapperElement) {
|
|
@@ -9492,14 +8834,14 @@ const CatScrollable = class {
|
|
|
9492
8834
|
this.attachEmitter('right', this.scrolledRight);
|
|
9493
8835
|
this.attachEmitter('bottom', this.scrolledBottom);
|
|
9494
8836
|
this.attachEmitter('top', this.scrolledTop);
|
|
9495
|
-
merge(this.init, this.scrolled, this.resizedEntries)
|
|
9496
|
-
.pipe(auditTime(CatScrollable.THROTTLE), map(() => ({
|
|
8837
|
+
cjsExports.merge(this.init, this.scrolled, this.resizedEntries)
|
|
8838
|
+
.pipe(operatorsExports.auditTime(CatScrollable.THROTTLE), operatorsExports.map(() => ({
|
|
9497
8839
|
// 5px used to avoid shadow bug on Windows
|
|
9498
8840
|
top: this.getScrollOffset('top') > 5,
|
|
9499
8841
|
left: this.getScrollOffset('left') > 5,
|
|
9500
8842
|
right: this.getScrollOffset('right') > 5,
|
|
9501
8843
|
bottom: this.getScrollOffset('bottom') > 5
|
|
9502
|
-
})), takeUntil(this.destroyed))
|
|
8844
|
+
})), operatorsExports.takeUntil(this.destroyed))
|
|
9503
8845
|
.subscribe(({ top, left, right, bottom }) => {
|
|
9504
8846
|
this.toggleClass('cat-scrollable-top', top);
|
|
9505
8847
|
this.toggleClass('cat-scrollable-left', left);
|
|
@@ -9530,8 +8872,8 @@ const CatScrollable = class {
|
|
|
9530
8872
|
];
|
|
9531
8873
|
}
|
|
9532
8874
|
attachEmitter(from, emitter) {
|
|
9533
|
-
merge(this.init, this.scrolled, this.resizedEntries)
|
|
9534
|
-
.pipe(auditTime(CatScrollable.THROTTLE), map(() => this.getScrollOffset(from)), map(offset => offset <= this.scrolledBuffer), filter(isLower => isLower), map(() => {
|
|
8875
|
+
cjsExports.merge(this.init, this.scrolled, this.resizedEntries)
|
|
8876
|
+
.pipe(operatorsExports.auditTime(CatScrollable.THROTTLE), operatorsExports.map(() => this.getScrollOffset(from)), operatorsExports.map(offset => offset <= this.scrolledBuffer), operatorsExports.filter(isLower => isLower), operatorsExports.map(() => {
|
|
9535
8877
|
switch (from) {
|
|
9536
8878
|
case 'top':
|
|
9537
8879
|
return this.getScrollOffset('bottom');
|
|
@@ -9542,7 +8884,7 @@ const CatScrollable = class {
|
|
|
9542
8884
|
case 'bottom':
|
|
9543
8885
|
return this.getScrollOffset('top');
|
|
9544
8886
|
}
|
|
9545
|
-
}), distinctUntilChanged(), takeUntil(this.destroyed))
|
|
8887
|
+
}), operatorsExports.distinctUntilChanged(), operatorsExports.takeUntil(this.destroyed))
|
|
9546
8888
|
.subscribe(() => emitter.emit());
|
|
9547
8889
|
}
|
|
9548
8890
|
getScrollOffset(from) {
|
|
@@ -9572,95 +8914,105 @@ const CatScrollable = class {
|
|
|
9572
8914
|
}
|
|
9573
8915
|
};
|
|
9574
8916
|
CatScrollable.THROTTLE = 50;
|
|
9575
|
-
CatScrollable.style =
|
|
9576
|
-
|
|
9577
|
-
var
|
|
9578
|
-
|
|
9579
|
-
|
|
9580
|
-
|
|
9581
|
-
|
|
9582
|
-
|
|
9583
|
-
|
|
9584
|
-
|
|
9585
|
-
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
}
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
function
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9610
|
-
|
|
9611
|
-
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9638
|
-
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
|
|
9658
|
-
|
|
9659
|
-
|
|
9660
|
-
|
|
8917
|
+
CatScrollable.style = catScrollableCss;
|
|
8918
|
+
|
|
8919
|
+
var autosizeInput$1;
|
|
8920
|
+
var hasRequiredAutosizeInput;
|
|
8921
|
+
|
|
8922
|
+
function requireAutosizeInput () {
|
|
8923
|
+
if (hasRequiredAutosizeInput) return autosizeInput$1;
|
|
8924
|
+
hasRequiredAutosizeInput = 1;
|
|
8925
|
+
var GHOST_ELEMENT_ID = '__autosizeInputGhost';
|
|
8926
|
+
|
|
8927
|
+
var characterEntities = {
|
|
8928
|
+
' ': 'nbsp',
|
|
8929
|
+
'<': 'lt',
|
|
8930
|
+
'>': 'gt'
|
|
8931
|
+
};
|
|
8932
|
+
function mapSpecialCharacterToCharacterEntity (specialCharacter) {
|
|
8933
|
+
return '&' + characterEntities[specialCharacter] + ';'
|
|
8934
|
+
}
|
|
8935
|
+
function escapeSpecialCharacters (string) {
|
|
8936
|
+
return string.replace(/\s|<|>/g, mapSpecialCharacterToCharacterEntity)
|
|
8937
|
+
}
|
|
8938
|
+
|
|
8939
|
+
// Create `ghostElement`, with inline styles to hide it and ensure that the text is all
|
|
8940
|
+
// on a single line.
|
|
8941
|
+
function createGhostElement () {
|
|
8942
|
+
var ghostElement = document.createElement('div');
|
|
8943
|
+
ghostElement.id = GHOST_ELEMENT_ID;
|
|
8944
|
+
ghostElement.style.cssText =
|
|
8945
|
+
'display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;';
|
|
8946
|
+
document.body.appendChild(ghostElement);
|
|
8947
|
+
return ghostElement
|
|
8948
|
+
}
|
|
8949
|
+
|
|
8950
|
+
autosizeInput$1 = function (element, options) {
|
|
8951
|
+
var elementStyle = window.getComputedStyle(element);
|
|
8952
|
+
// prettier-ignore
|
|
8953
|
+
var elementCssText = 'box-sizing:' + elementStyle.boxSizing +
|
|
8954
|
+
';border-left:' + elementStyle.borderLeftWidth + ' solid red' +
|
|
8955
|
+
';border-right:' + elementStyle.borderRightWidth + ' solid red' +
|
|
8956
|
+
';font-family:' + elementStyle.fontFamily +
|
|
8957
|
+
';font-feature-settings:' + elementStyle.fontFeatureSettings +
|
|
8958
|
+
';font-kerning:' + elementStyle.fontKerning +
|
|
8959
|
+
';font-size:' + elementStyle.fontSize +
|
|
8960
|
+
';font-stretch:' + elementStyle.fontStretch +
|
|
8961
|
+
';font-style:' + elementStyle.fontStyle +
|
|
8962
|
+
';font-variant:' + elementStyle.fontVariant +
|
|
8963
|
+
';font-variant-caps:' + elementStyle.fontVariantCaps +
|
|
8964
|
+
';font-variant-ligatures:' + elementStyle.fontVariantLigatures +
|
|
8965
|
+
';font-variant-numeric:' + elementStyle.fontVariantNumeric +
|
|
8966
|
+
';font-weight:' + elementStyle.fontWeight +
|
|
8967
|
+
';letter-spacing:' + elementStyle.letterSpacing +
|
|
8968
|
+
';margin-left:' + elementStyle.marginLeft +
|
|
8969
|
+
';margin-right:' + elementStyle.marginRight +
|
|
8970
|
+
';padding-left:' + elementStyle.paddingLeft +
|
|
8971
|
+
';padding-right:' + elementStyle.paddingRight +
|
|
8972
|
+
';text-indent:' + elementStyle.textIndent +
|
|
8973
|
+
';text-transform:' + elementStyle.textTransform;
|
|
8974
|
+
|
|
8975
|
+
// Assigns an appropriate width to the given `element` based on its contents.
|
|
8976
|
+
function setWidth () {
|
|
8977
|
+
var string = element.value || element.getAttribute('placeholder') || '';
|
|
8978
|
+
// Check if the `ghostElement` exists. If no, create it.
|
|
8979
|
+
var ghostElement =
|
|
8980
|
+
document.getElementById(GHOST_ELEMENT_ID) || createGhostElement();
|
|
8981
|
+
// Copy all width-affecting styles to the `ghostElement`.
|
|
8982
|
+
ghostElement.style.cssText += elementCssText;
|
|
8983
|
+
ghostElement.innerHTML = escapeSpecialCharacters(string);
|
|
8984
|
+
// Copy the width of `ghostElement` to `element`.
|
|
8985
|
+
var width = window.getComputedStyle(ghostElement).width;
|
|
8986
|
+
element.style.width = width;
|
|
8987
|
+
return width
|
|
8988
|
+
}
|
|
8989
|
+
|
|
8990
|
+
element.addEventListener('input', setWidth);
|
|
8991
|
+
|
|
8992
|
+
var width = setWidth();
|
|
8993
|
+
|
|
8994
|
+
// Set `min-width` only if `options.minWidth` was set, and only if the initial
|
|
8995
|
+
// width is non-zero.
|
|
8996
|
+
if (options && options.minWidth && width !== '0px') {
|
|
8997
|
+
element.style.minWidth = width;
|
|
8998
|
+
}
|
|
8999
|
+
|
|
9000
|
+
// Return a function for unbinding the event listener and removing the `ghostElement`.
|
|
9001
|
+
return function () {
|
|
9002
|
+
element.removeEventListener('input', setWidth);
|
|
9003
|
+
var ghostElement = document.getElementById(GHOST_ELEMENT_ID);
|
|
9004
|
+
if (ghostElement) {
|
|
9005
|
+
ghostElement.parentNode.removeChild(ghostElement);
|
|
9006
|
+
}
|
|
9007
|
+
}
|
|
9008
|
+
};
|
|
9009
|
+
return autosizeInput$1;
|
|
9010
|
+
}
|
|
9011
|
+
|
|
9012
|
+
var autosizeInputExports = requireAutosizeInput();
|
|
9013
|
+
var autosizeInput = /*@__PURE__*/getDefaultExportFromCjs(autosizeInputExports);
|
|
9661
9014
|
|
|
9662
9015
|
const catSelectCss = ".hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;display:flex;flex-direction:column;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.875rem;line-height:1.125rem}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){margin:0 !important}.cat-bg-primary{background-color:rgb(var(--cat-primary-bg, 0, 129, 148)) !important;color:rgb(var(--cat-primary-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-primary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-primary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-primary-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-primary-hover{transition:background-color 125ms, color 125ms}.cat-bg-primary-hover:hover{background-color:rgb(var(--cat-primary-bg-hover, 1, 115, 132)) !important;color:rgb(var(--cat-primary-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-primary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-primary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-primary-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-primary,.cat-link-primary{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}button.cat-text-primary,button.cat-link-primary{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-primary:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-primary:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-primary,.cat-text-primary-hover{transition:color 125ms}.cat-link-primary:hover,.cat-text-primary-hover:hover{color:rgb(var(--cat-primary-text-hover, 1, 115, 132)) !important}.cat-link-primary:active,.cat-text-primary-hover:active{color:rgb(var(--cat-primary-text-active, 2, 99, 113)) !important}.cat-bg-primaryInverted{background-color:#93b4f2 !important;color:black !important;--cat-primary-text:0, 0, 0;--cat-primary-text-hover:0, 0, 0;--cat-primary-text-active:0, 0, 0;--cat-link-decoration:underline}.cat-bg-primaryInverted-hover{transition:background-color 125ms, color 125ms}.cat-bg-primaryInverted-hover:hover{background-color:#93b4f2 !important;color:black !important;--cat-primary-text:0, 0, 0;--cat-primary-text-hover:0, 0, 0;--cat-primary-text-active:0, 0, 0;--cat-link-decoration:underline}.cat-text-primaryInverted,.cat-link-primaryInverted{color:#93b4f2 !important}button.cat-text-primaryInverted,button.cat-link-primaryInverted{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-primaryInverted:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-primaryInverted:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-primaryInverted,.cat-text-primaryInverted-hover{transition:color 125ms}.cat-link-primaryInverted:hover,.cat-text-primaryInverted-hover:hover{color:#93b4f2 !important}.cat-link-primaryInverted:active,.cat-text-primaryInverted-hover:active{color:#93b4f2 !important}.cat-bg-secondary{background-color:rgb(var(--cat-secondary-bg, 105, 118, 135)) !important;color:rgb(var(--cat-secondary-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-secondary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-secondary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-secondary-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-secondary-hover{transition:background-color 125ms, color 125ms}.cat-bg-secondary-hover:hover{background-color:rgb(var(--cat-secondary-bg-hover, 105, 118, 135)) !important;color:rgb(var(--cat-secondary-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-secondary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-secondary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-secondary-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-secondary,.cat-link-secondary{color:rgb(var(--cat-secondary-text, 0, 0, 0)) !important}button.cat-text-secondary,button.cat-link-secondary{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-secondary:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-secondary:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-secondary,.cat-text-secondary-hover{transition:color 125ms}.cat-link-secondary:hover,.cat-text-secondary-hover:hover{color:rgb(var(--cat-secondary-text-hover, 0, 0, 0)) !important}.cat-link-secondary:active,.cat-text-secondary-hover:active{color:rgb(var(--cat-secondary-text-active, 0, 0, 0)) !important}.cat-bg-secondaryInverted{background-color:#697687 !important;color:black !important;--cat-primary-text:0, 0, 0;--cat-primary-text-hover:0, 0, 0;--cat-primary-text-active:0, 0, 0;--cat-link-decoration:underline}.cat-bg-secondaryInverted-hover{transition:background-color 125ms, color 125ms}.cat-bg-secondaryInverted-hover:hover{background-color:#697687 !important;color:black !important;--cat-primary-text:0, 0, 0;--cat-primary-text-hover:0, 0, 0;--cat-primary-text-active:0, 0, 0;--cat-link-decoration:underline}.cat-text-secondaryInverted,.cat-link-secondaryInverted{color:white !important}button.cat-text-secondaryInverted,button.cat-link-secondaryInverted{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-secondaryInverted:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-secondaryInverted:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-secondaryInverted,.cat-text-secondaryInverted-hover{transition:color 125ms}.cat-link-secondaryInverted:hover,.cat-text-secondaryInverted-hover:hover{color:white !important}.cat-link-secondaryInverted:active,.cat-text-secondaryInverted-hover:active{color:white !important}.cat-bg-info{background-color:rgb(var(--cat-info-bg, 0, 115, 230)) !important;color:rgb(var(--cat-info-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-info-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-info-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-info-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-info-hover{transition:background-color 125ms, color 125ms}.cat-bg-info-hover:hover{background-color:rgb(var(--cat-info-bg-hover, 0, 107, 227)) !important;color:rgb(var(--cat-info-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-info-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-info-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-info-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-info,.cat-link-info{color:rgb(var(--cat-info-text, 0, 115, 230)) !important}button.cat-text-info,button.cat-link-info{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-info:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-info:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-info,.cat-text-info-hover{transition:color 125ms}.cat-link-info:hover,.cat-text-info-hover:hover{color:rgb(var(--cat-info-text-hover, 0, 107, 227)) !important}.cat-link-info:active,.cat-text-info-hover:active{color:rgb(var(--cat-info-text-active, 0, 96, 223)) !important}.cat-bg-success{background-color:rgb(var(--cat-success-bg, 0, 132, 88)) !important;color:rgb(var(--cat-success-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-success-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-success-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-success-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-success-hover{transition:background-color 125ms, color 125ms}.cat-bg-success-hover:hover{background-color:rgb(var(--cat-success-bg-hover, 0, 117, 78)) !important;color:rgb(var(--cat-success-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-success-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-success-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-success-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-success,.cat-link-success{color:rgb(var(--cat-success-text, 0, 132, 88)) !important}button.cat-text-success,button.cat-link-success{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-success:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-success:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-success,.cat-text-success-hover{transition:color 125ms}.cat-link-success:hover,.cat-text-success-hover:hover{color:rgb(var(--cat-success-text-hover, 0, 117, 78)) !important}.cat-link-success:active,.cat-text-success-hover:active{color:rgb(var(--cat-success-text-active, 0, 105, 70)) !important}.cat-bg-warning{background-color:rgb(var(--cat-warning-bg, 255, 206, 128)) !important;color:rgb(var(--cat-warning-fill, 0, 0, 0)) !important;--cat-primary-text:var(--cat-warning-fill, 0, 0, 0);--cat-primary-text-hover:var(--cat-warning-fill-hover, 0, 0, 0);--cat-primary-text-active:var(--cat-warning-fill-active, 0, 0, 0);--cat-link-decoration:underline}.cat-bg-warning-hover{transition:background-color 125ms, color 125ms}.cat-bg-warning-hover:hover{background-color:rgb(var(--cat-warning-bg-hover, 255, 214, 148)) !important;color:rgb(var(--cat-warning-fill-hover, 0, 0, 0)) !important;--cat-primary-text:var(--cat-warning-fill, 0, 0, 0);--cat-primary-text-hover:var(--cat-warning-fill-hover, 0, 0, 0);--cat-primary-text-active:var(--cat-warning-fill-active, 0, 0, 0);--cat-link-decoration:underline}.cat-text-warning,.cat-link-warning{color:rgb(var(--cat-warning-text, 159, 97, 0)) !important}button.cat-text-warning,button.cat-link-warning{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-warning:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-warning:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-warning,.cat-text-warning-hover{transition:color 125ms}.cat-link-warning:hover,.cat-text-warning-hover:hover{color:rgb(var(--cat-warning-text-hover, 159, 97, 0)) !important}.cat-link-warning:active,.cat-text-warning-hover:active{color:rgb(var(--cat-warning-text-active, 159, 97, 0)) !important}.cat-bg-danger{background-color:rgb(var(--cat-danger-bg, 217, 52, 13)) !important;color:rgb(var(--cat-danger-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-danger-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-danger-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-danger-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-danger-hover{transition:background-color 125ms, color 125ms}.cat-bg-danger-hover:hover{background-color:rgb(var(--cat-danger-bg-hover, 194, 46, 11)) !important;color:rgb(var(--cat-danger-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-danger-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-danger-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-danger-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-danger,.cat-link-danger{color:rgb(var(--cat-danger-text, 217, 52, 13)) !important}button.cat-text-danger,button.cat-link-danger{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-danger:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-danger:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-danger,.cat-text-danger-hover{transition:color 125ms}.cat-link-danger:hover,.cat-text-danger-hover:hover{color:rgb(var(--cat-danger-text-hover, 194, 46, 11)) !important}.cat-link-danger:active,.cat-text-danger-hover:active{color:rgb(var(--cat-danger-text-active, 174, 42, 10)) !important}.cat-active{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}.cat-text-active{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}.cat-muted{color:rgb(var(--cat-font-color-muted, 81, 92, 108)) !important}.cat-text-muted{color:rgb(var(--cat-font-color-muted, 81, 92, 108)) !important}.cat-bg-muted{background-color:#f2f4f7 !important}.cat-text-reset{color:inherit !important}.cat-link-reset{color:inherit !important;text-decoration:inherit !important}.label{overflow:hidden;word-wrap:break-word;word-break:break-word}.input-field:not(.input-horizontal) .label-container.hidden,.textarea-field:not(.textarea-horizontal) .label-container.hidden,.select-field:not(.select-horizontal) .label-container.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.label-container{flex-basis:var(--label-size, 33.33%)}.label-wrapper{display:flex;gap:0.25rem}.label-metadata{display:flex;flex-shrink:0;flex-grow:1;justify-content:space-between;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.label-optional,.label-character-count{display:inline-flex;align-items:center;max-height:1.25rem;font-size:0.75rem;line-height:1rem}.label-character-count{margin-left:auto}.input-horizontal .label-container.hidden label,.textarea-horizontal .label-container.hidden label,.select-horizontal .label-container.hidden label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.input-horizontal .label-wrapper,.textarea-horizontal .label-wrapper,.select-horizontal .label-wrapper{flex-direction:column}.input-horizontal label,.textarea-horizontal label,.select-horizontal label{min-height:2.5rem;display:inline-flex;align-items:center}.input-horizontal .label-metadata,.textarea-horizontal .label-metadata,.select-horizontal .label-metadata{justify-content:flex-start}.input-horizontal .label-metadata .label-character-count,.textarea-horizontal .label-metadata .label-character-count,.select-horizontal .label-metadata .label-character-count{margin-left:0}:host{display:flex;flex-direction:column;gap:0.5rem;line-height:1.25rem;position:relative}:host([hidden]){display:none}label{align-self:flex-start}label.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.select-field,.select-container{display:flex;flex-direction:column;gap:0.5rem;flex:1 1 auto}.select-field.select-horizontal{flex-direction:row;gap:1rem}.select-wrapper{display:flex;align-items:flex-start;background:white;border-radius:var(--cat-border-radius-m, 0.25rem);box-shadow:inset 0 0 0 1px rgb(var(--border-color));transition:box-shadow 125ms linear;padding:0.25rem;--border-color:var(--cat-border-color-dark, 215, 219, 224);}.select-wrapper:not(.select-disabled):hover{box-shadow:inset 0 0 0 1px rgb(var(--border-color)), 0 0 0 1px rgb(var(--border-color))}.select-wrapper:focus-within{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:-1px}.select-wrapper.select-invalid{--border-color:var(--cat-danger-bg, 217, 52, 13), 0.2}.select-wrapper:has(input:-webkit-autofill),.select-wrapper:has(input:-webkit-autofill):hover,.select-wrapper:has(input:-webkit-autofill):focus{background-color:#e8f0fe}:host(.cat-error) .select-wrapper{box-shadow:0 0 0 1px rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) .select-wrapper:not(.input-disabled):hover{box-shadow:0 0 0 2px rgb(var(--cat-danger-bg, 217, 52, 13))}.select-disabled{background:#f2f4f7;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108));pointer-events:none}.select-wrapper-inner{display:flex;flex:1 1 auto;align-items:center;gap:0.25rem;min-width:0}.select-wrapper-inner>cat-avatar{display:inline-block;padding-left:0.5rem}.select-wrapper-inner>cat-avatar+.select-input{padding-left:0.25rem}.select-wrapper-inner cat-avatar{--cat-avatar-size:1.25rem;--cat-avatar-font-size:0.5rem}.select-multiple .select-wrapper-inner{flex-wrap:wrap}.select-input{font:inherit;background:none;border:none;outline:none;padding:0.375rem 0.5rem;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.select-input::placeholder{color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.select-disabled .select-input{cursor:inherit}.select-pills{display:contents}.pill{display:inline-flex;align-items:center;gap:0.5rem;padding:0.25rem 0.5rem;background:#f2f4f7;border-radius:var(--cat-border-radius-s, 0.125rem);white-space:nowrap;min-width:0}.pill>span{overflow:hidden;text-overflow:ellipsis;flex:1 1 0%}.pill>cat-button{margin-right:-0.25rem;margin-left:-0.25rem}.select-btn{transition:transform 125ms linear}.select-btn::part(button){outline:none}cat-spinner{padding:0.375rem}.icon-suffix{padding:0.25rem}.select-btn-open{transform:rotate(180deg)}.select-dropdown{position:fixed;right:0;background:white;display:none;overflow:auto;box-shadow:0 4px 6px -2px rgba(27, 31, 38, 0.03), 0 12px 16px -4px rgba(27, 31, 38, 0.08);border-radius:var(--cat-border-radius-m, 0.25rem);border:1px solid rgb(var(--cat-border-color, 235, 236, 240));z-index:calc(var(--cat-z-index, 1000) + 100);width:max-content;top:0;left:0}.select-options-wrapper{max-height:16rem;width:100%}.select-empty{margin:1rem 0;padding:0 1.25rem}.select-options{list-style-type:none;margin:0;padding:0.5rem 0}.select-options cat-checkbox,.select-options .select-option-single{margin:0;padding:0.5rem 1rem}.select-option-inner{display:flex;gap:0.5rem}.select-option-inner cat-avatar{--cat-avatar-size:1.25rem;--cat-avatar-font-size:0.5rem}.select-option-text{flex:1 1 0%;min-width:0}.select-option-single{cursor:pointer}.select-input-transparent-caret{caret-color:transparent}.select-option-empty,.select-option-loading{padding:0.5rem 1rem}.select-option:hover{background-color:rgba(var(--cat-secondary-bg, 105, 118, 135), 0.05)}.select-option-active{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:-2px}.select-option-label{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-wrap:break-word;word-break:break-word}.select-option-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}";
|
|
9663
|
-
const CatSelectStyle0 = catSelectCss;
|
|
9664
9016
|
|
|
9665
9017
|
const INIT_STATE = {
|
|
9666
9018
|
term: '',
|
|
@@ -9679,41 +9031,67 @@ let nextTagUniqueId = 0;
|
|
|
9679
9031
|
const CatSelect = class {
|
|
9680
9032
|
constructor(hostRef) {
|
|
9681
9033
|
registerInstance(this, hostRef);
|
|
9682
|
-
this.catOpen = createEvent(this, "catOpen"
|
|
9683
|
-
this.catClose = createEvent(this, "catClose"
|
|
9684
|
-
this.catChange = createEvent(this, "catChange"
|
|
9685
|
-
this.catBlur = createEvent(this, "catBlur"
|
|
9034
|
+
this.catOpen = createEvent(this, "catOpen");
|
|
9035
|
+
this.catClose = createEvent(this, "catClose");
|
|
9036
|
+
this.catChange = createEvent(this, "catChange");
|
|
9037
|
+
this.catBlur = createEvent(this, "catBlur");
|
|
9686
9038
|
this._id = `cat-input-${nextUniqueId$5++}`;
|
|
9687
|
-
this.term$ = new Subject();
|
|
9688
|
-
this.more$ = new Subject();
|
|
9039
|
+
this.term$ = new cjsExports.Subject();
|
|
9040
|
+
this.more$ = new cjsExports.Subject();
|
|
9689
9041
|
this.valueChangedBySelection = false;
|
|
9690
|
-
this.connector = undefined;
|
|
9691
9042
|
this.state = INIT_STATE;
|
|
9692
9043
|
this.hasSlottedLabel = false;
|
|
9693
9044
|
this.hasSlottedHint = false;
|
|
9694
|
-
|
|
9045
|
+
/**
|
|
9046
|
+
* Whether the label need a marker to shown if the select is required or optional.
|
|
9047
|
+
*/
|
|
9695
9048
|
this.requiredMarker = 'optional';
|
|
9049
|
+
/**
|
|
9050
|
+
* Whether the label is on top or left.
|
|
9051
|
+
*/
|
|
9696
9052
|
this.horizontal = false;
|
|
9053
|
+
/**
|
|
9054
|
+
* Enable multiple selection.
|
|
9055
|
+
*/
|
|
9697
9056
|
this.multiple = false;
|
|
9057
|
+
/**
|
|
9058
|
+
* The debounce time for the search.
|
|
9059
|
+
*/
|
|
9698
9060
|
this.debounce = 250;
|
|
9061
|
+
/**
|
|
9062
|
+
* The placement of the select.
|
|
9063
|
+
*/
|
|
9699
9064
|
this.placement = 'bottom-start';
|
|
9700
|
-
|
|
9065
|
+
/**
|
|
9066
|
+
* Whether the select is disabled.
|
|
9067
|
+
*/
|
|
9701
9068
|
this.disabled = false;
|
|
9702
|
-
|
|
9703
|
-
|
|
9704
|
-
|
|
9069
|
+
/**
|
|
9070
|
+
* The label for the select.
|
|
9071
|
+
*/
|
|
9705
9072
|
this.label = '';
|
|
9706
|
-
|
|
9073
|
+
/**
|
|
9074
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
9075
|
+
*/
|
|
9707
9076
|
this.labelHidden = false;
|
|
9077
|
+
/**
|
|
9078
|
+
* A value is required or must be checked for the form to be submittable.
|
|
9079
|
+
*/
|
|
9708
9080
|
this.required = false;
|
|
9081
|
+
/**
|
|
9082
|
+
* Whether the select should show a clear button.
|
|
9083
|
+
*/
|
|
9709
9084
|
this.clearable = false;
|
|
9085
|
+
/**
|
|
9086
|
+
* Whether the select should add new items.
|
|
9087
|
+
*/
|
|
9710
9088
|
this.tags = false;
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
|
|
9089
|
+
/**
|
|
9090
|
+
* Fine-grained control over when the errors are shown. Can be `false` to
|
|
9091
|
+
* never show errors, `true` to show errors on blur, or a number to show
|
|
9092
|
+
* errors change with the given delay in milliseconds or immediately on blur.
|
|
9093
|
+
*/
|
|
9714
9094
|
this.errorUpdate = 0;
|
|
9715
|
-
this.nativeAttributes = undefined;
|
|
9716
|
-
this.testId = undefined;
|
|
9717
9095
|
}
|
|
9718
9096
|
get id() {
|
|
9719
9097
|
return this.identifier || this._id;
|
|
@@ -9956,7 +9334,7 @@ const CatSelect = class {
|
|
|
9956
9334
|
this.subscription?.unsubscribe();
|
|
9957
9335
|
this.subscription = this.term$
|
|
9958
9336
|
.asObservable()
|
|
9959
|
-
.pipe(debounce
|
|
9337
|
+
.pipe(cjsExports.debounce(term => (term ? cjsExports.timer(this.debounce) : cjsExports.of(0))), cjsExports.distinctUntilChanged(), cjsExports.tap(() => (number$ = this.more$.pipe(cjsExports.filter(() => !this.state.isLoading), cjsExports.scan(n => n + 1, 0), cjsExports.startWith(0)))), cjsExports.switchMap(term => number$.pipe(cjsExports.tap(() => this.patchState({ isLoading: true })), cjsExports.switchMap(number => connector.retrieve(term, number)), cjsExports.tap(page => this.patchState({ isLoading: false, totalElements: page.totalElements, isFirstLoading: false })), cjsExports.takeWhile(page => !page.last, true), cjsExports.scan((items, page) => [...items, ...page.content], []))))
|
|
9960
9338
|
.subscribe(items => {
|
|
9961
9339
|
const options = this.toSelectItems(connector, items);
|
|
9962
9340
|
if (this.tags &&
|
|
@@ -10032,8 +9410,8 @@ const CatSelect = class {
|
|
|
10032
9410
|
if (this.tags) {
|
|
10033
9411
|
tags = this.initTags();
|
|
10034
9412
|
}
|
|
10035
|
-
const data$ = ids.length ? connector.resolve(ids).pipe(first()) : of([]);
|
|
10036
|
-
data$.pipe(catchError(() => of([]))).subscribe(items => {
|
|
9413
|
+
const data$ = ids.length ? connector.resolve(ids).pipe(cjsExports.first()) : cjsExports.of([]);
|
|
9414
|
+
data$.pipe(cjsExports.catchError(() => cjsExports.of([]))).subscribe(items => {
|
|
10037
9415
|
const selection = this.toSelectItems(connector, items);
|
|
10038
9416
|
if (this.tags) {
|
|
10039
9417
|
tags
|
|
@@ -10339,7 +9717,7 @@ const CatSelect = class {
|
|
|
10339
9717
|
};
|
|
10340
9718
|
CatSelect.SKELETON_COUNT = 4;
|
|
10341
9719
|
CatSelect.DROPDOWN_OFFSET = 4;
|
|
10342
|
-
CatSelect.style =
|
|
9720
|
+
CatSelect.style = catSelectCss;
|
|
10343
9721
|
|
|
10344
9722
|
const CatSelectTest = class {
|
|
10345
9723
|
constructor(hostRef) {
|
|
@@ -10348,17 +9726,17 @@ const CatSelectTest = class {
|
|
|
10348
9726
|
componentDidLoad() {
|
|
10349
9727
|
this.multipleSelect?.connect({
|
|
10350
9728
|
resolve: (ids) => {
|
|
10351
|
-
return of(ids.map(id => ({
|
|
9729
|
+
return cjsExports.of(ids.map(id => ({
|
|
10352
9730
|
id,
|
|
10353
9731
|
firstName: 'John',
|
|
10354
9732
|
lastName: `Doe (${id})`,
|
|
10355
9733
|
desc: 'resolved'
|
|
10356
|
-
}))).pipe(delay
|
|
9734
|
+
}))).pipe(cjsExports.delay(500));
|
|
10357
9735
|
},
|
|
10358
9736
|
retrieve: (term, page) => {
|
|
10359
9737
|
return term === 'no'
|
|
10360
|
-
? of({ last: true, content: [], totalElements: 0 })
|
|
10361
|
-
: of({
|
|
9738
|
+
? cjsExports.of({ last: true, content: [], totalElements: 0 })
|
|
9739
|
+
: cjsExports.of({
|
|
10362
9740
|
last: false,
|
|
10363
9741
|
totalElements: 10000,
|
|
10364
9742
|
content: Array.from({ length: 10 }, (_, i) => ({
|
|
@@ -10367,7 +9745,7 @@ const CatSelectTest = class {
|
|
|
10367
9745
|
lastName: `Doe (${i + page * 10})`,
|
|
10368
9746
|
desc: `"${term}": page ${page}`
|
|
10369
9747
|
}))
|
|
10370
|
-
}).pipe(delay
|
|
9748
|
+
}).pipe(cjsExports.delay(500));
|
|
10371
9749
|
},
|
|
10372
9750
|
render: (user) => ({
|
|
10373
9751
|
label: `${user.firstName} ${user.lastName}`,
|
|
@@ -10376,17 +9754,17 @@ const CatSelectTest = class {
|
|
|
10376
9754
|
});
|
|
10377
9755
|
this.multipleSelectAvatar?.connect({
|
|
10378
9756
|
resolve: (ids) => {
|
|
10379
|
-
return of(ids.map(id => ({
|
|
9757
|
+
return cjsExports.of(ids.map(id => ({
|
|
10380
9758
|
id,
|
|
10381
9759
|
firstName: 'John',
|
|
10382
9760
|
lastName: `Doe (${id})`,
|
|
10383
9761
|
desc: 'resolved'
|
|
10384
|
-
}))).pipe(delay
|
|
9762
|
+
}))).pipe(cjsExports.delay(500));
|
|
10385
9763
|
},
|
|
10386
9764
|
retrieve: (term, page) => {
|
|
10387
9765
|
return term === 'no'
|
|
10388
|
-
? of({ last: true, content: [], totalElements: 0 })
|
|
10389
|
-
: of({
|
|
9766
|
+
? cjsExports.of({ last: true, content: [], totalElements: 0 })
|
|
9767
|
+
: cjsExports.of({
|
|
10390
9768
|
last: false,
|
|
10391
9769
|
totalElements: 10000,
|
|
10392
9770
|
content: Array.from({ length: 10 }, (_, i) => ({
|
|
@@ -10395,7 +9773,7 @@ const CatSelectTest = class {
|
|
|
10395
9773
|
lastName: `Doe (${i + page * 10})`,
|
|
10396
9774
|
desc: `"${term}": page ${page}`
|
|
10397
9775
|
}))
|
|
10398
|
-
}).pipe(delay
|
|
9776
|
+
}).pipe(cjsExports.delay(500));
|
|
10399
9777
|
},
|
|
10400
9778
|
render: (user) => ({
|
|
10401
9779
|
label: `${user.firstName} ${user.lastName}`,
|
|
@@ -10408,17 +9786,17 @@ const CatSelectTest = class {
|
|
|
10408
9786
|
});
|
|
10409
9787
|
this.multipleSelectAvatarInitials?.connect({
|
|
10410
9788
|
resolve: (ids) => {
|
|
10411
|
-
return of(ids.map(id => ({
|
|
9789
|
+
return cjsExports.of(ids.map(id => ({
|
|
10412
9790
|
id,
|
|
10413
9791
|
firstName: 'John',
|
|
10414
9792
|
lastName: `Doe (${id})`,
|
|
10415
9793
|
desc: 'resolved'
|
|
10416
|
-
}))).pipe(delay
|
|
9794
|
+
}))).pipe(cjsExports.delay(500));
|
|
10417
9795
|
},
|
|
10418
9796
|
retrieve: (term, page) => {
|
|
10419
9797
|
return term === 'no'
|
|
10420
|
-
? of({ last: true, content: [], totalElements: 0 })
|
|
10421
|
-
: of({
|
|
9798
|
+
? cjsExports.of({ last: true, content: [], totalElements: 0 })
|
|
9799
|
+
: cjsExports.of({
|
|
10422
9800
|
last: false,
|
|
10423
9801
|
totalElements: 10000,
|
|
10424
9802
|
content: Array.from({ length: 10 }, (_, i) => ({
|
|
@@ -10427,7 +9805,7 @@ const CatSelectTest = class {
|
|
|
10427
9805
|
lastName: `Doe (${i + page * 10})`,
|
|
10428
9806
|
desc: `"${term}": page ${page}`
|
|
10429
9807
|
}))
|
|
10430
|
-
}).pipe(delay
|
|
9808
|
+
}).pipe(cjsExports.delay(500));
|
|
10431
9809
|
},
|
|
10432
9810
|
render: (user) => ({
|
|
10433
9811
|
label: `${user.firstName} ${user.lastName}`,
|
|
@@ -10441,17 +9819,17 @@ const CatSelectTest = class {
|
|
|
10441
9819
|
this.multipleSelectTagging?.connect(this.countryConnector);
|
|
10442
9820
|
this.singleSelect?.connect({
|
|
10443
9821
|
resolve: (ids) => {
|
|
10444
|
-
return of(ids.map(id => ({
|
|
9822
|
+
return cjsExports.of(ids.map(id => ({
|
|
10445
9823
|
id,
|
|
10446
9824
|
firstName: 'John',
|
|
10447
9825
|
lastName: `Doe (${id})`,
|
|
10448
9826
|
desc: 'resolved'
|
|
10449
|
-
}))).pipe(delay
|
|
9827
|
+
}))).pipe(cjsExports.delay(500));
|
|
10450
9828
|
},
|
|
10451
9829
|
retrieve: (term, page) => {
|
|
10452
9830
|
return term === 'no'
|
|
10453
|
-
? of({ last: true, content: [], totalElements: 0 })
|
|
10454
|
-
: of({
|
|
9831
|
+
? cjsExports.of({ last: true, content: [], totalElements: 0 })
|
|
9832
|
+
: cjsExports.of({
|
|
10455
9833
|
last: false,
|
|
10456
9834
|
totalElements: 10000,
|
|
10457
9835
|
content: Array.from({ length: 10 }, (_, i) => ({
|
|
@@ -10460,7 +9838,7 @@ const CatSelectTest = class {
|
|
|
10460
9838
|
lastName: `Doe (${i + page * 10})`,
|
|
10461
9839
|
desc: `"${term}": page ${page}`
|
|
10462
9840
|
}))
|
|
10463
|
-
}).pipe(delay
|
|
9841
|
+
}).pipe(cjsExports.delay(500));
|
|
10464
9842
|
},
|
|
10465
9843
|
render: (user) => ({
|
|
10466
9844
|
label: `${user.firstName} ${user.lastName}`,
|
|
@@ -10488,17 +9866,17 @@ const CatSelectTest = class {
|
|
|
10488
9866
|
get countryConnector() {
|
|
10489
9867
|
return {
|
|
10490
9868
|
resolve: (ids) => {
|
|
10491
|
-
return of(ids.map(id => countries.find(value => value.id === id))).pipe(delay
|
|
9869
|
+
return cjsExports.of(ids.map(id => countries.find(value => value.id === id))).pipe(cjsExports.delay(500));
|
|
10492
9870
|
},
|
|
10493
9871
|
retrieve: (term, page) => {
|
|
10494
9872
|
const filter = countries.filter(value => value.country.toLowerCase().indexOf(term.toLowerCase()) === 0 ||
|
|
10495
9873
|
value.capital?.toLowerCase().indexOf(term.toLowerCase()) === 0);
|
|
10496
9874
|
const slice = filter.slice(page * 10, page * 10 + 10);
|
|
10497
|
-
return of({
|
|
9875
|
+
return cjsExports.of({
|
|
10498
9876
|
last: slice.length < 10,
|
|
10499
9877
|
totalElements: filter.length,
|
|
10500
9878
|
content: slice
|
|
10501
|
-
}).pipe(delay
|
|
9879
|
+
}).pipe(cjsExports.delay(500));
|
|
10502
9880
|
},
|
|
10503
9881
|
render: (country) => ({
|
|
10504
9882
|
label: country.country,
|
|
@@ -11728,15 +11106,23 @@ const countries = [
|
|
|
11728
11106
|
];
|
|
11729
11107
|
|
|
11730
11108
|
const catSkeletonCss = ":host{display:flex;flex-direction:column;position:relative;--background:#ebecf0;--highlight:#d7dbe0;--speed:2s}:host([variant=square]),:host([variant=circle]){display:inline-flex}:host([hidden]){display:none}:host([variant=head]:not(:last-child)){margin-bottom:1rem}:host([variant=body]:not(:last-child)){margin-bottom:2rem}.skeleton{display:block;border-radius:var(--cat-border-radius-m, 0.25rem);background:var(--background)}.skeleton-circle{border-radius:10rem}.skeleton-xs.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 1.5rem)}.skeleton-xs.skeleton-square,.skeleton-xs.skeleton-circle{width:var(--width, 1.5rem);height:var(--height, 1.5rem)}.skeleton-xs.skeleton-head,.skeleton-xs.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-xs.skeleton-head{height:calc(0.9375rem - 4px);margin:calc((1.25rem - 0.9375rem + 4px) * 0.5) 0}.skeleton-xs.skeleton-body{height:calc(0.75rem - 4px);margin:calc((1rem - 0.75rem + 4px) * 0.5) 0}.skeleton-s.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 2rem)}.skeleton-s.skeleton-square,.skeleton-s.skeleton-circle{width:var(--width, 2rem);height:var(--height, 2rem)}.skeleton-s.skeleton-head,.skeleton-s.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-s.skeleton-head{height:calc(1.125rem - 4px);margin:calc((1.5rem - 1.125rem + 4px) * 0.5) 0}.skeleton-s.skeleton-body{height:calc(0.875rem - 4px);margin:calc((1.125rem - 0.875rem + 4px) * 0.5) 0}.skeleton-m.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 2.5rem)}.skeleton-m.skeleton-square,.skeleton-m.skeleton-circle{width:var(--width, 2.5rem);height:var(--height, 2.5rem)}.skeleton-m.skeleton-head,.skeleton-m.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-m.skeleton-head{height:calc(1.25rem - 4px);margin:calc((1.5rem - 1.25rem + 4px) * 0.5) 0}.skeleton-m.skeleton-body{height:calc(0.9375rem - 4px);margin:calc((1.25rem - 0.9375rem + 4px) * 0.5) 0}.skeleton-l.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 3rem)}.skeleton-l.skeleton-square,.skeleton-l.skeleton-circle{width:var(--width, 3rem);height:var(--height, 3rem)}.skeleton-l.skeleton-head,.skeleton-l.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-l.skeleton-head{height:calc(1.5rem - 4px);margin:calc((1.75rem - 1.5rem + 4px) * 0.5) 0}.skeleton-l.skeleton-body{height:calc(1.125rem - 4px);margin:calc((1.5rem - 1.125rem + 4px) * 0.5) 0}.skeleton-xl.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 3.5rem)}.skeleton-xl.skeleton-square,.skeleton-xl.skeleton-circle{width:var(--width, 3.5rem);height:var(--height, 3.5rem)}.skeleton-xl.skeleton-head,.skeleton-xl.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-xl.skeleton-head{height:calc(1.75rem - 4px);margin:calc((2rem - 1.75rem + 4px) * 0.5) 0}.skeleton-xl.skeleton-body{height:calc(1.25rem - 4px);margin:calc((1.5rem - 1.25rem + 4px) * 0.5) 0}.skeleton-sheen{background:linear-gradient(90deg, var(--background) 33%, var(--highlight) 50%, var(--background) 66%) var(--background);background-size:300% 100%;animation:sheen var(--speed) ease-in-out infinite}.skeleton-pulse{position:relative;overflow:hidden}.skeleton-pulse::before{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:var(--highlight);animation:var(--speed) ease-in-out 0.5s infinite normal none running pulse;opacity:0}@keyframes sheen{0%{background-position:right}}@keyframes pulse{50%{opacity:1}}";
|
|
11731
|
-
const CatSkeletonStyle0 = catSkeletonCss;
|
|
11732
11109
|
|
|
11733
11110
|
const CatSkeleton = class {
|
|
11734
11111
|
constructor(hostRef) {
|
|
11735
11112
|
registerInstance(this, hostRef);
|
|
11113
|
+
/**
|
|
11114
|
+
* The animation style of the skeleton.
|
|
11115
|
+
*/
|
|
11736
11116
|
this.effect = 'sheen';
|
|
11117
|
+
/**
|
|
11118
|
+
* The rendering style of the skeleton.
|
|
11119
|
+
*/
|
|
11737
11120
|
this.variant = 'rectangle';
|
|
11121
|
+
/**
|
|
11122
|
+
* The size of the skeleton. If the variant is set to "head", the size values
|
|
11123
|
+
* "xs" to "xl" translate to the head levels `h1` to `h5`.
|
|
11124
|
+
*/
|
|
11738
11125
|
this.size = 'm';
|
|
11739
|
-
this.lines = undefined;
|
|
11740
11126
|
}
|
|
11741
11127
|
render() {
|
|
11742
11128
|
return (h(Host, { key: '95992890ce7b8c90068af979179fe6e512cd599c' }, Array.from(Array(this.count)).map(() => (h("div", { style: this.style, class: {
|
|
@@ -11767,16 +11153,20 @@ const CatSkeleton = class {
|
|
|
11767
11153
|
return Math.floor(Math.random() * (max - min + 1) + min);
|
|
11768
11154
|
}
|
|
11769
11155
|
};
|
|
11770
|
-
CatSkeleton.style =
|
|
11156
|
+
CatSkeleton.style = catSkeletonCss;
|
|
11771
11157
|
|
|
11772
11158
|
const catSpinnerCss = ":host{display:inline-flex;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host[hidden]{display:none}span{display:inline-flex}svg{fill:none;stroke:currentColor;stroke-dasharray:135px;stroke-dashoffset:95px;stroke-linecap:round;stroke-width:5px;transform-origin:center center;animation:spin 0.75s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite;width:1em;height:1em}.spinner-xs svg{font-size:0.75rem}.spinner-s svg{font-size:1rem}.spinner-m svg{font-size:1.25rem}.spinner-l svg{font-size:1.5rem}.spinner-xl svg{font-size:1.75rem}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}";
|
|
11773
|
-
const CatSpinnerStyle0 = catSpinnerCss;
|
|
11774
11159
|
|
|
11775
11160
|
const CatSpinner = class {
|
|
11776
11161
|
constructor(hostRef) {
|
|
11777
11162
|
registerInstance(this, hostRef);
|
|
11163
|
+
/**
|
|
11164
|
+
* The size of the spinner.
|
|
11165
|
+
*/
|
|
11778
11166
|
this.size = 'm';
|
|
11779
|
-
|
|
11167
|
+
/**
|
|
11168
|
+
* Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow.
|
|
11169
|
+
*/
|
|
11780
11170
|
this.value = 0;
|
|
11781
11171
|
}
|
|
11782
11172
|
render() {
|
|
@@ -11785,27 +11175,50 @@ const CatSpinner = class {
|
|
|
11785
11175
|
} }, h("svg", { key: '6a649c21b27b3dbad3c73a71936566e7e9648254', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48" }, h("circle", { key: '3fb75a339ec6e18d0209e9da2cbf650f2dae4420', cx: "24", cy: "24", r: "21.5" }))));
|
|
11786
11176
|
}
|
|
11787
11177
|
};
|
|
11788
|
-
CatSpinner.style =
|
|
11178
|
+
CatSpinner.style = catSpinnerCss;
|
|
11789
11179
|
|
|
11790
11180
|
const catTabCss = ":host{display:block}:host([hidden]){display:none}";
|
|
11791
|
-
const CatTabStyle0 = catTabCss;
|
|
11792
11181
|
|
|
11793
11182
|
let nextUniqueId$4 = 0;
|
|
11794
11183
|
const CatTab = class {
|
|
11795
11184
|
constructor(hostRef) {
|
|
11796
11185
|
registerInstance(this, hostRef);
|
|
11797
|
-
this.catClick = createEvent(this, "catClick"
|
|
11186
|
+
this.catClick = createEvent(this, "catClick");
|
|
11187
|
+
/**
|
|
11188
|
+
* The label of the tab.
|
|
11189
|
+
*/
|
|
11798
11190
|
this.label = '';
|
|
11799
|
-
|
|
11191
|
+
/**
|
|
11192
|
+
* Hide the actual button content and only display the tab.
|
|
11193
|
+
*/
|
|
11800
11194
|
this.iconOnly = false;
|
|
11195
|
+
/**
|
|
11196
|
+
* Display the icon on the right.
|
|
11197
|
+
*/
|
|
11801
11198
|
this.iconRight = false;
|
|
11802
|
-
|
|
11803
|
-
|
|
11199
|
+
/**
|
|
11200
|
+
* Specifies that the tab should be deactivated.
|
|
11201
|
+
*/
|
|
11804
11202
|
this.deactivated = false;
|
|
11203
|
+
/**
|
|
11204
|
+
* Specifies that the tab does not have an active state and thus cannot be
|
|
11205
|
+
* activated. This does not mean, that the tab is deactivated. The tab can
|
|
11206
|
+
* still be clicked and emit the `catClick` event. This is helpful if a tab
|
|
11207
|
+
* should only trigger a click action (such as opening a modal).
|
|
11208
|
+
*/
|
|
11805
11209
|
this.noActive = false;
|
|
11210
|
+
/**
|
|
11211
|
+
* Specifies that the tab is always visible in adaptive mode.
|
|
11212
|
+
* Only the first sticky tab will be taken into account.
|
|
11213
|
+
* Sticky has advantage on activeTabAlwaysVisible if there is no space to show both.
|
|
11214
|
+
*/
|
|
11215
|
+
this.sticky = false;
|
|
11216
|
+
/**
|
|
11217
|
+
* Specifies that the tab content pane contains an error. This will color
|
|
11218
|
+
* the tab in an error state and also switch to an error icon if an icon
|
|
11219
|
+
* is specified.
|
|
11220
|
+
*/
|
|
11806
11221
|
this.error = false;
|
|
11807
|
-
this.nativeAttributes = undefined;
|
|
11808
|
-
this.testId = undefined;
|
|
11809
11222
|
}
|
|
11810
11223
|
connectedCallback() {
|
|
11811
11224
|
if (!this.hostElement.id) {
|
|
@@ -11816,22 +11229,38 @@ const CatTab = class {
|
|
|
11816
11229
|
this.catClick.emit(event);
|
|
11817
11230
|
}
|
|
11818
11231
|
render() {
|
|
11819
|
-
return h(Host, { key: '
|
|
11232
|
+
return h(Host, { key: 'd74edadf291560111aff4a925b4147b377a24b63' });
|
|
11820
11233
|
}
|
|
11821
11234
|
get hostElement() { return getElement(this); }
|
|
11822
11235
|
};
|
|
11823
|
-
CatTab.style =
|
|
11236
|
+
CatTab.style = catTabCss;
|
|
11824
11237
|
|
|
11825
|
-
const catTabsCss = ":host{display:flex;flex-direction:row;box-shadow:inset 0 -1px 0 0 rgb(var(--cat-border-color, 235, 236, 240))}:host([hidden]){display:none}:host([tabs-align=center]){justify-content:center}:host([tabs-align=right]){justify-content:end}:host([tabs-align=justify]) cat-button{flex:1 0 auto}.cat-tab{display:inline-flex;flex-direction:column;align-items:center;justify-content:space-between;position:relative;transition:none}.cat-tab
|
|
11826
|
-
const CatTabsStyle0 = catTabsCss;
|
|
11238
|
+
const catTabsCss = ":host{display:flex;flex-direction:row;box-shadow:inset 0 -1px 0 0 rgb(var(--cat-border-color, 235, 236, 240))}:host([hidden]){display:none}:host([tabs-align=center]){justify-content:center}:host([tabs-align=right]){justify-content:end}:host([tabs-align=justify]) cat-button{flex:1 0 auto}.cat-tab,.cat-tab-more-button{display:inline-flex;flex-direction:column;align-items:center;justify-content:space-between;position:relative;transition:none}.cat-tab::after,.cat-tab-more-button::after{opacity:0;content:\"\";position:absolute;background:currentColor;left:0.75rem;right:0.75rem;bottom:0;height:2px}.cat-tab:hover::after,.cat-tab-more-button:hover::after{opacity:0.25}.cat-tab.cat-tab-active,.cat-tab-more-button.cat-tab-active{font-weight:700;color:rgb(var(--cat-primary-text-active, 2, 99, 113))}.cat-tab.cat-tab-active::after,.cat-tab-more-button.cat-tab-active::after{opacity:1}.cat-tab:first-of-type{margin-left:-0.75rem}.cat-tab:last-of-type{margin-right:-0.75rem}.cat-tab.cat-tab-error{color:rgb(var(--cat-danger-text-active, 174, 42, 10))}nav ul{list-style:none;margin:0;padding:0}.cat-tab-list{display:flex;width:100%}";
|
|
11827
11239
|
|
|
11828
11240
|
const CatTabs = class {
|
|
11829
11241
|
constructor(hostRef) {
|
|
11830
11242
|
registerInstance(this, hostRef);
|
|
11831
|
-
this.catChange = createEvent(this, "catChange"
|
|
11243
|
+
this.catChange = createEvent(this, "catChange");
|
|
11244
|
+
this.resizedObserver = new ResizeObserver(() => this.adjustAdaptiveTabs());
|
|
11832
11245
|
this.tabs = [];
|
|
11246
|
+
this.hiddenTabs = [];
|
|
11247
|
+
/**
|
|
11248
|
+
* The ID of the active tab.
|
|
11249
|
+
*/
|
|
11833
11250
|
this.activeTab = '';
|
|
11251
|
+
/**
|
|
11252
|
+
* The alignment of the tabs.
|
|
11253
|
+
*/
|
|
11834
11254
|
this.tabsAlign = 'left';
|
|
11255
|
+
/**
|
|
11256
|
+
* Whether the visible items change according to the available space. A 'More' button is used to reveal hidden items.
|
|
11257
|
+
*/
|
|
11258
|
+
this.adaptive = false;
|
|
11259
|
+
/**
|
|
11260
|
+
* Whether the active tab should always be visible. Applied when adaptive is enabled.
|
|
11261
|
+
* Has less priority than sticky if there is no space to show both.
|
|
11262
|
+
*/
|
|
11263
|
+
this.activeTabAlwaysVisible = false;
|
|
11835
11264
|
}
|
|
11836
11265
|
componentWillLoad() {
|
|
11837
11266
|
this.syncTabs();
|
|
@@ -11843,6 +11272,12 @@ const CatTabs = class {
|
|
|
11843
11272
|
attributes: true,
|
|
11844
11273
|
subtree: true
|
|
11845
11274
|
});
|
|
11275
|
+
if (this.adaptive) {
|
|
11276
|
+
this.resizedObserver.observe(this.hostElement);
|
|
11277
|
+
requestAnimationFrame(() => {
|
|
11278
|
+
this.adjustAdaptiveTabs();
|
|
11279
|
+
});
|
|
11280
|
+
}
|
|
11846
11281
|
}
|
|
11847
11282
|
disconnectedCallback() {
|
|
11848
11283
|
this.mutationObserver?.disconnect();
|
|
@@ -11879,19 +11314,113 @@ const CatTabs = class {
|
|
|
11879
11314
|
async setActiveIndex(index) {
|
|
11880
11315
|
this.activate(this.tabs[index]);
|
|
11881
11316
|
}
|
|
11317
|
+
/**
|
|
11318
|
+
* Recalculates visible and hidden adaptive tabs.
|
|
11319
|
+
*/
|
|
11320
|
+
async updateAdaptiveTabs() {
|
|
11321
|
+
if (this.adaptive) {
|
|
11322
|
+
this.adjustAdaptiveTabs();
|
|
11323
|
+
}
|
|
11324
|
+
}
|
|
11882
11325
|
render() {
|
|
11883
11326
|
this.hostElement.tabIndex = Number(this.hostElement.getAttribute('tabindex')) || 0;
|
|
11884
|
-
return (h(Host, { key: '
|
|
11885
|
-
return (h("cat-button", { buttonId: tab.id,
|
|
11327
|
+
return (h(Host, { key: '874b547102901311b51c66aace5a2f91f4d52bbb' }, h("div", { key: 'ab2ccbf398bdb5897c71762c9befe63f383a04db', role: "tablist", class: "cat-tab-list" }, this.tabs.map((tab, index) => {
|
|
11328
|
+
return (h("cat-button", { buttonId: tab.id, part: "tab", class: {
|
|
11886
11329
|
'cat-tab': true,
|
|
11887
11330
|
'cat-tab-active': tab.id === this.activeTab,
|
|
11888
|
-
'cat-tab-error': tab.error
|
|
11889
|
-
|
|
11890
|
-
|
|
11331
|
+
'cat-tab-error': tab.error,
|
|
11332
|
+
'cat-tab-sticky': tab.sticky
|
|
11333
|
+
}, active: tab.id === this.activeTab, color: tab.error ? 'danger' : tab.id === this.activeTab ? 'primary' : 'secondary', variant: "text", icon: tab.icon ? (tab.error ? '$cat:input-error' : tab.icon) : undefined, iconOnly: tab.iconOnly, iconRight: tab.iconRight, url: tab.url, disabled: tab.deactivated, urlTarget: tab.urlTarget, onCatClick: () => this.click(tab), testId: tab.testId, nativeAttributes: {
|
|
11334
|
+
...tab.nativeAttributes,
|
|
11335
|
+
role: 'tab',
|
|
11336
|
+
'aria-selected': String(tab.id === this.activeTab),
|
|
11337
|
+
'aria-setsize': String(this.tabs.length),
|
|
11338
|
+
'aria-posinset': String(index + 1)
|
|
11339
|
+
}, nativeContentAttributes: { 'data-text': tab.label }, "data-dropdown-no-close": true }, tab.label));
|
|
11340
|
+
}), this.adaptive ? (h("cat-dropdown", { ref: el => (this.moreDropdown = el) }, h("cat-button", { ref: el => (this.moreButton = el), class: {
|
|
11341
|
+
'cat-tab-more-button': true,
|
|
11342
|
+
'cat-tab-active': !!this.hiddenTabs.find(tab => tab.id === this.activeTab)
|
|
11343
|
+
}, iconRight: true, icon: this.moreDropdown?.isOpen ? 'chevron-up-outlined' : 'chevron-down-outlined', slot: "trigger", part: "more", variant: "text", color: this.hiddenTabs.find(tab => tab.id === this.activeTab) ? 'primary' : 'secondary' }, catI18nRegistry.t('tabs.more')), h("nav", { slot: "content" }, h("ul", null, this.hiddenTabs.map((tab, index) => {
|
|
11344
|
+
return (h("li", null, h("cat-button", { class: "cat-nav-item", active: tab.id === this.activeTab, urlTarget: tab.urlTarget, onCatClick: () => this.click(tab), testId: tab.testId, nativeAttributes: {
|
|
11345
|
+
...tab.nativeAttributes,
|
|
11346
|
+
role: 'tab',
|
|
11347
|
+
'aria-selected': String(tab.id === this.activeTab),
|
|
11348
|
+
'aria-setsize': String(this.tabs.length),
|
|
11349
|
+
'aria-posinset': String(index + 1)
|
|
11350
|
+
}, nativeContentAttributes: { 'data-text': tab.label } }, tab.label)));
|
|
11351
|
+
}))))) : null)));
|
|
11352
|
+
}
|
|
11353
|
+
adjustAdaptiveTabs() {
|
|
11354
|
+
const tabs = this.hostElement.shadowRoot?.querySelectorAll('.cat-tab');
|
|
11355
|
+
if (!tabs?.length) {
|
|
11356
|
+
return;
|
|
11357
|
+
}
|
|
11358
|
+
// show all hidden tabs for correct calculation
|
|
11359
|
+
for (const tab of tabs) {
|
|
11360
|
+
tab.style.display = 'inline-flex';
|
|
11361
|
+
}
|
|
11362
|
+
// show hidden "more" button for correct calculation
|
|
11363
|
+
if (this.moreButton) {
|
|
11364
|
+
this.moreButton.style.display = 'inline-flex';
|
|
11365
|
+
}
|
|
11366
|
+
const MORE_WIDTH = this.moreButton?.offsetWidth || 0;
|
|
11367
|
+
const visibleTabsIndexes = [];
|
|
11368
|
+
let fittingWidth = 0;
|
|
11369
|
+
const stickyTabIndex = this.tabs.findIndex(tab => tab.sticky);
|
|
11370
|
+
const stickyTabWidth = tabs.item(stickyTabIndex)?.scrollWidth || 0;
|
|
11371
|
+
const stickyTabIsVisible = stickyTabIndex > -1 && stickyTabWidth <= this.hostElement.offsetWidth;
|
|
11372
|
+
const activeTabIndex = this.tabs.findIndex(tab => tab.id === this.activeTab);
|
|
11373
|
+
const activeTabWidth = tabs.item(activeTabIndex)?.scrollWidth || 0;
|
|
11374
|
+
const activeTabIsVisible = this.activeTabAlwaysVisible &&
|
|
11375
|
+
activeTabIndex > -1 &&
|
|
11376
|
+
activeTabWidth + stickyTabWidth <= this.hostElement.offsetWidth;
|
|
11377
|
+
if (stickyTabIsVisible) {
|
|
11378
|
+
fittingWidth += stickyTabWidth;
|
|
11379
|
+
visibleTabsIndexes.push(stickyTabIndex.toString());
|
|
11380
|
+
}
|
|
11381
|
+
if (activeTabIsVisible && stickyTabIndex !== activeTabIndex) {
|
|
11382
|
+
fittingWidth += activeTabWidth;
|
|
11383
|
+
visibleTabsIndexes.push(activeTabIndex.toString());
|
|
11384
|
+
}
|
|
11385
|
+
for (const [index, tab] of tabs.entries()) {
|
|
11386
|
+
if ((activeTabIsVisible && index === activeTabIndex) || (stickyTabIsVisible && index === stickyTabIndex)) {
|
|
11387
|
+
continue;
|
|
11388
|
+
}
|
|
11389
|
+
if (fittingWidth + tab.scrollWidth <= this.hostElement.offsetWidth) {
|
|
11390
|
+
// tab fits within tabs parent
|
|
11391
|
+
fittingWidth += tab.scrollWidth;
|
|
11392
|
+
visibleTabsIndexes.push(index.toString());
|
|
11393
|
+
}
|
|
11394
|
+
else if (fittingWidth + MORE_WIDTH <= this.hostElement.offsetWidth) {
|
|
11395
|
+
// tab doesn't fit, but more button does
|
|
11396
|
+
break;
|
|
11397
|
+
}
|
|
11398
|
+
else {
|
|
11399
|
+
// tab doesn't fit and more button doesn't fit either
|
|
11400
|
+
// remove last fitting tab so that more button fits
|
|
11401
|
+
visibleTabsIndexes.pop();
|
|
11402
|
+
break;
|
|
11403
|
+
}
|
|
11404
|
+
}
|
|
11405
|
+
this.hiddenTabs = this.tabs.filter((_, index) => !visibleTabsIndexes.includes(index.toString()));
|
|
11406
|
+
if (this.moreButton) {
|
|
11407
|
+
if (this.tabs.length > visibleTabsIndexes.length) {
|
|
11408
|
+
this.moreButton.style.display = 'inline-flex';
|
|
11409
|
+
}
|
|
11410
|
+
else {
|
|
11411
|
+
this.moreButton.style.display = 'none';
|
|
11412
|
+
}
|
|
11413
|
+
}
|
|
11414
|
+
for (const [index, tab] of tabs.entries()) {
|
|
11415
|
+
if (!visibleTabsIndexes.includes(index.toString())) {
|
|
11416
|
+
tab.style.display = 'none';
|
|
11417
|
+
}
|
|
11418
|
+
}
|
|
11891
11419
|
}
|
|
11892
11420
|
syncTabs() {
|
|
11893
11421
|
this.tabs = Array.from(this.hostElement.querySelectorAll('cat-tab'));
|
|
11894
11422
|
this.activeTab = this.activeTab || this.tabs.filter(tab => this.canActivate(tab) && !tab.noActive)[0]?.id;
|
|
11423
|
+
this.adjustAdaptiveTabs();
|
|
11895
11424
|
}
|
|
11896
11425
|
click(tab) {
|
|
11897
11426
|
if (this.canActivate(tab)) {
|
|
@@ -11908,6 +11437,7 @@ const CatTabs = class {
|
|
|
11908
11437
|
else if (this.canActivate(tab)) {
|
|
11909
11438
|
this.activeTab = tab.id;
|
|
11910
11439
|
}
|
|
11440
|
+
this.adjustAdaptiveTabs();
|
|
11911
11441
|
}
|
|
11912
11442
|
canActivate(tab) {
|
|
11913
11443
|
return !tab.deactivated && !tab.url && tab.id !== this.activeTab;
|
|
@@ -11918,39 +11448,60 @@ const CatTabs = class {
|
|
|
11918
11448
|
"activeTab": ["onActiveTabChange"]
|
|
11919
11449
|
}; }
|
|
11920
11450
|
};
|
|
11921
|
-
CatTabs.style =
|
|
11451
|
+
CatTabs.style = catTabsCss;
|
|
11922
11452
|
|
|
11923
11453
|
const catTagCss = ".label{overflow:hidden;word-wrap:break-word;word-break:break-word}.input-field:not(.input-horizontal) .label-container.hidden,.textarea-field:not(.textarea-horizontal) .label-container.hidden,.select-field:not(.select-horizontal) .label-container.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.label-container{flex-basis:var(--label-size, 33.33%)}.label-wrapper{display:flex;gap:0.25rem}.label-metadata{display:flex;flex-shrink:0;flex-grow:1;justify-content:space-between;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.label-optional,.label-character-count{display:inline-flex;align-items:center;max-height:1.25rem;font-size:0.75rem;line-height:1rem}.label-character-count{margin-left:auto}.input-horizontal .label-container.hidden label,.textarea-horizontal .label-container.hidden label,.select-horizontal .label-container.hidden label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.input-horizontal .label-wrapper,.textarea-horizontal .label-wrapper,.select-horizontal .label-wrapper{flex-direction:column}.input-horizontal label,.textarea-horizontal label,.select-horizontal label{min-height:2.5rem;display:inline-flex;align-items:center}.input-horizontal .label-metadata,.textarea-horizontal .label-metadata,.select-horizontal .label-metadata{justify-content:flex-start}.input-horizontal .label-metadata .label-character-count,.textarea-horizontal .label-metadata .label-character-count,.select-horizontal .label-metadata .label-character-count{margin-left:0}.hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;display:flex;flex-direction:column;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.875rem;line-height:1.125rem}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){margin:0 !important}.cat-bg-primary{background-color:rgb(var(--cat-primary-bg, 0, 129, 148)) !important;color:rgb(var(--cat-primary-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-primary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-primary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-primary-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-primary-hover{transition:background-color 125ms, color 125ms}.cat-bg-primary-hover:hover{background-color:rgb(var(--cat-primary-bg-hover, 1, 115, 132)) !important;color:rgb(var(--cat-primary-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-primary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-primary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-primary-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-primary,.cat-link-primary{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}button.cat-text-primary,button.cat-link-primary{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-primary:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-primary:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-primary,.cat-text-primary-hover{transition:color 125ms}.cat-link-primary:hover,.cat-text-primary-hover:hover{color:rgb(var(--cat-primary-text-hover, 1, 115, 132)) !important}.cat-link-primary:active,.cat-text-primary-hover:active{color:rgb(var(--cat-primary-text-active, 2, 99, 113)) !important}.cat-bg-primaryInverted{background-color:#93b4f2 !important;color:black !important;--cat-primary-text:0, 0, 0;--cat-primary-text-hover:0, 0, 0;--cat-primary-text-active:0, 0, 0;--cat-link-decoration:underline}.cat-bg-primaryInverted-hover{transition:background-color 125ms, color 125ms}.cat-bg-primaryInverted-hover:hover{background-color:#93b4f2 !important;color:black !important;--cat-primary-text:0, 0, 0;--cat-primary-text-hover:0, 0, 0;--cat-primary-text-active:0, 0, 0;--cat-link-decoration:underline}.cat-text-primaryInverted,.cat-link-primaryInverted{color:#93b4f2 !important}button.cat-text-primaryInverted,button.cat-link-primaryInverted{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-primaryInverted:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-primaryInverted:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-primaryInverted,.cat-text-primaryInverted-hover{transition:color 125ms}.cat-link-primaryInverted:hover,.cat-text-primaryInverted-hover:hover{color:#93b4f2 !important}.cat-link-primaryInverted:active,.cat-text-primaryInverted-hover:active{color:#93b4f2 !important}.cat-bg-secondary{background-color:rgb(var(--cat-secondary-bg, 105, 118, 135)) !important;color:rgb(var(--cat-secondary-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-secondary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-secondary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-secondary-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-secondary-hover{transition:background-color 125ms, color 125ms}.cat-bg-secondary-hover:hover{background-color:rgb(var(--cat-secondary-bg-hover, 105, 118, 135)) !important;color:rgb(var(--cat-secondary-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-secondary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-secondary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-secondary-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-secondary,.cat-link-secondary{color:rgb(var(--cat-secondary-text, 0, 0, 0)) !important}button.cat-text-secondary,button.cat-link-secondary{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-secondary:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-secondary:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-secondary,.cat-text-secondary-hover{transition:color 125ms}.cat-link-secondary:hover,.cat-text-secondary-hover:hover{color:rgb(var(--cat-secondary-text-hover, 0, 0, 0)) !important}.cat-link-secondary:active,.cat-text-secondary-hover:active{color:rgb(var(--cat-secondary-text-active, 0, 0, 0)) !important}.cat-bg-secondaryInverted{background-color:#697687 !important;color:black !important;--cat-primary-text:0, 0, 0;--cat-primary-text-hover:0, 0, 0;--cat-primary-text-active:0, 0, 0;--cat-link-decoration:underline}.cat-bg-secondaryInverted-hover{transition:background-color 125ms, color 125ms}.cat-bg-secondaryInverted-hover:hover{background-color:#697687 !important;color:black !important;--cat-primary-text:0, 0, 0;--cat-primary-text-hover:0, 0, 0;--cat-primary-text-active:0, 0, 0;--cat-link-decoration:underline}.cat-text-secondaryInverted,.cat-link-secondaryInverted{color:white !important}button.cat-text-secondaryInverted,button.cat-link-secondaryInverted{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-secondaryInverted:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-secondaryInverted:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-secondaryInverted,.cat-text-secondaryInverted-hover{transition:color 125ms}.cat-link-secondaryInverted:hover,.cat-text-secondaryInverted-hover:hover{color:white !important}.cat-link-secondaryInverted:active,.cat-text-secondaryInverted-hover:active{color:white !important}.cat-bg-info{background-color:rgb(var(--cat-info-bg, 0, 115, 230)) !important;color:rgb(var(--cat-info-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-info-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-info-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-info-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-info-hover{transition:background-color 125ms, color 125ms}.cat-bg-info-hover:hover{background-color:rgb(var(--cat-info-bg-hover, 0, 107, 227)) !important;color:rgb(var(--cat-info-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-info-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-info-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-info-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-info,.cat-link-info{color:rgb(var(--cat-info-text, 0, 115, 230)) !important}button.cat-text-info,button.cat-link-info{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-info:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-info:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-info,.cat-text-info-hover{transition:color 125ms}.cat-link-info:hover,.cat-text-info-hover:hover{color:rgb(var(--cat-info-text-hover, 0, 107, 227)) !important}.cat-link-info:active,.cat-text-info-hover:active{color:rgb(var(--cat-info-text-active, 0, 96, 223)) !important}.cat-bg-success{background-color:rgb(var(--cat-success-bg, 0, 132, 88)) !important;color:rgb(var(--cat-success-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-success-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-success-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-success-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-success-hover{transition:background-color 125ms, color 125ms}.cat-bg-success-hover:hover{background-color:rgb(var(--cat-success-bg-hover, 0, 117, 78)) !important;color:rgb(var(--cat-success-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-success-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-success-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-success-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-success,.cat-link-success{color:rgb(var(--cat-success-text, 0, 132, 88)) !important}button.cat-text-success,button.cat-link-success{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-success:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-success:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-success,.cat-text-success-hover{transition:color 125ms}.cat-link-success:hover,.cat-text-success-hover:hover{color:rgb(var(--cat-success-text-hover, 0, 117, 78)) !important}.cat-link-success:active,.cat-text-success-hover:active{color:rgb(var(--cat-success-text-active, 0, 105, 70)) !important}.cat-bg-warning{background-color:rgb(var(--cat-warning-bg, 255, 206, 128)) !important;color:rgb(var(--cat-warning-fill, 0, 0, 0)) !important;--cat-primary-text:var(--cat-warning-fill, 0, 0, 0);--cat-primary-text-hover:var(--cat-warning-fill-hover, 0, 0, 0);--cat-primary-text-active:var(--cat-warning-fill-active, 0, 0, 0);--cat-link-decoration:underline}.cat-bg-warning-hover{transition:background-color 125ms, color 125ms}.cat-bg-warning-hover:hover{background-color:rgb(var(--cat-warning-bg-hover, 255, 214, 148)) !important;color:rgb(var(--cat-warning-fill-hover, 0, 0, 0)) !important;--cat-primary-text:var(--cat-warning-fill, 0, 0, 0);--cat-primary-text-hover:var(--cat-warning-fill-hover, 0, 0, 0);--cat-primary-text-active:var(--cat-warning-fill-active, 0, 0, 0);--cat-link-decoration:underline}.cat-text-warning,.cat-link-warning{color:rgb(var(--cat-warning-text, 159, 97, 0)) !important}button.cat-text-warning,button.cat-link-warning{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-warning:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-warning:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-warning,.cat-text-warning-hover{transition:color 125ms}.cat-link-warning:hover,.cat-text-warning-hover:hover{color:rgb(var(--cat-warning-text-hover, 159, 97, 0)) !important}.cat-link-warning:active,.cat-text-warning-hover:active{color:rgb(var(--cat-warning-text-active, 159, 97, 0)) !important}.cat-bg-danger{background-color:rgb(var(--cat-danger-bg, 217, 52, 13)) !important;color:rgb(var(--cat-danger-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-danger-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-danger-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-danger-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-danger-hover{transition:background-color 125ms, color 125ms}.cat-bg-danger-hover:hover{background-color:rgb(var(--cat-danger-bg-hover, 194, 46, 11)) !important;color:rgb(var(--cat-danger-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-danger-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-danger-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-danger-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-danger,.cat-link-danger{color:rgb(var(--cat-danger-text, 217, 52, 13)) !important}button.cat-text-danger,button.cat-link-danger{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-danger:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-danger:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-danger,.cat-text-danger-hover{transition:color 125ms}.cat-link-danger:hover,.cat-text-danger-hover:hover{color:rgb(var(--cat-danger-text-hover, 194, 46, 11)) !important}.cat-link-danger:active,.cat-text-danger-hover:active{color:rgb(var(--cat-danger-text-active, 174, 42, 10)) !important}.cat-active{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}.cat-text-active{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}.cat-muted{color:rgb(var(--cat-font-color-muted, 81, 92, 108)) !important}.cat-text-muted{color:rgb(var(--cat-font-color-muted, 81, 92, 108)) !important}.cat-bg-muted{background-color:#f2f4f7 !important}.cat-text-reset{color:inherit !important}.cat-link-reset{color:inherit !important;text-decoration:inherit !important}:host{display:flex;flex-direction:column;gap:0.5rem}input{font:inherit;margin:0;min-width:20rem;padding:0.375rem 0;flex:1 1 auto;border:none;outline:none;background:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.input-disabled input{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}input::placeholder{color:rgb(var(--cat-font-color-muted, 81, 92, 108))}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 9999px #e8f0fe inset}.input-wrapper{flex:1 1 auto;display:flex;align-items:stretch;gap:0.25rem;padding:0.25rem 0.75rem;min-height:2rem;background:white;border-radius:var(--cat-border-radius-m, 0.25rem);box-shadow:inset 0 0 0 1px rgb(var(--border-color));transition:box-shadow 125ms linear;--border-color:var(--cat-border-color-dark, 215, 219, 224);flex-wrap:wrap;}.input-wrapper.input-disabled{background:#f2f4f7;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.input-wrapper:not(.input-disabled):hover{box-shadow:inset 0 0 0 1px rgb(var(--border-color)), 0 0 0 1px rgb(var(--border-color))}.input-wrapper:focus-within{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:-1px}.input-wrapper:focus-within:has(.clearable:focus){outline:none}.input-wrapper.input-invalid{--border-color:var(--cat-danger-bg, 217, 52, 13), 0.2}.input-wrapper:has(input:-webkit-autofill),.input-wrapper:has(input:-webkit-autofill):hover,.input-wrapper:has(input:-webkit-autofill):focus{background-color:#e8f0fe}.tag-pill{display:flex;align-items:center;gap:0.5rem;padding:0.25rem 0.5rem;background:#f2f4f7;border-radius:var(--cat-border-radius-s, 0.125rem);white-space:nowrap;min-width:0}.tag-pill>span{overflow:hidden;text-overflow:ellipsis;flex:1 1 0}.tag-pill>cat-button{margin-right:-0.25rem;margin-left:-0.25rem}.icon-suffix{align-self:center}.input-inner-wrapper{flex:1 1 auto;display:flex}";
|
|
11924
|
-
const CatTagStyle0 = catTagCss;
|
|
11925
11454
|
|
|
11926
11455
|
let nextUniqueId$3 = 0;
|
|
11927
11456
|
const CatTag = class {
|
|
11928
11457
|
constructor(hostRef) {
|
|
11929
11458
|
registerInstance(this, hostRef);
|
|
11930
|
-
this.catChange = createEvent(this, "catChange"
|
|
11931
|
-
this.catFocus = createEvent(this, "catFocus"
|
|
11932
|
-
this.catBlur = createEvent(this, "catBlur"
|
|
11459
|
+
this.catChange = createEvent(this, "catChange");
|
|
11460
|
+
this.catFocus = createEvent(this, "catFocus");
|
|
11461
|
+
this.catBlur = createEvent(this, "catBlur");
|
|
11933
11462
|
this._id = `cat-input-${nextUniqueId$3++}`;
|
|
11934
11463
|
this.hasSlottedLabel = false;
|
|
11935
11464
|
this.hasSlottedHint = false;
|
|
11936
11465
|
this.tags = [];
|
|
11937
|
-
|
|
11466
|
+
/**
|
|
11467
|
+
* Whether the label need a marker to shown if the select is required or optional.
|
|
11468
|
+
*/
|
|
11938
11469
|
this.requiredMarker = 'optional';
|
|
11470
|
+
/**
|
|
11471
|
+
* Whether the select is disabled.
|
|
11472
|
+
*/
|
|
11939
11473
|
this.disabled = false;
|
|
11940
|
-
|
|
11941
|
-
|
|
11942
|
-
|
|
11474
|
+
/**
|
|
11475
|
+
* The label for the select.
|
|
11476
|
+
*/
|
|
11943
11477
|
this.label = '';
|
|
11944
|
-
|
|
11478
|
+
/**
|
|
11479
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
11480
|
+
*/
|
|
11945
11481
|
this.labelHidden = false;
|
|
11482
|
+
/**
|
|
11483
|
+
* A value is required or must be checked for the form to be submittable.
|
|
11484
|
+
*/
|
|
11946
11485
|
this.required = false;
|
|
11947
|
-
|
|
11948
|
-
|
|
11949
|
-
|
|
11486
|
+
/**
|
|
11487
|
+
* Whether the input should show a clear button.
|
|
11488
|
+
*/
|
|
11950
11489
|
this.clearable = false;
|
|
11951
|
-
|
|
11490
|
+
/**
|
|
11491
|
+
* Fine-grained control over when the errors are shown. Can be `false` to
|
|
11492
|
+
* never show errors, `true` to show errors on blur, or a number to show
|
|
11493
|
+
* errors change with the given delay in milliseconds or immediately on blur.
|
|
11494
|
+
*/
|
|
11952
11495
|
this.errorUpdate = 0;
|
|
11496
|
+
/**
|
|
11497
|
+
* List of characters that should create a new tag. This need to be comparable to `keydownEvent.key`.
|
|
11498
|
+
* Pasted values will also be split by those chars.
|
|
11499
|
+
* Defaults to `[' ']`.
|
|
11500
|
+
*/
|
|
11953
11501
|
this.tagCreationChars = [' '];
|
|
11502
|
+
/**
|
|
11503
|
+
* Whether new tag is added when the input is blurred.
|
|
11504
|
+
*/
|
|
11954
11505
|
this.addOnBlur = false;
|
|
11955
11506
|
}
|
|
11956
11507
|
get id() {
|
|
@@ -12071,20 +11622,19 @@ const CatTag = class {
|
|
|
12071
11622
|
"errors": ["onErrorsChanged"]
|
|
12072
11623
|
}; }
|
|
12073
11624
|
};
|
|
12074
|
-
CatTag.style =
|
|
11625
|
+
CatTag.style = catTagCss;
|
|
12075
11626
|
|
|
12076
|
-
var e=new Map;function t(t){var o=e.get(t);o&&o.destroy();}function o(t){var o=e.get(t);o&&o.update();}var r=null;"undefined"==typeof window?((r=function(e){return e}).destroy=function(e){return e},r.update=function(e){return e}):((r=function(t,o){return t&&Array.prototype.forEach.call(t.length?t:[t],function(t){return function(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!e.has(t)){var o,r=null,n=window.getComputedStyle(t),i=(o=t.value,function(){a({testForHeightReduction:""===o||!t.value.startsWith(o),restoreTextAlign:null}),o=t.value;}),l=function(o){t.removeEventListener("autosize:destroy",l),t.removeEventListener("autosize:update",s),t.removeEventListener("input",i),window.removeEventListener("resize",s),Object.keys(o).forEach(function(e){return t.style[e]=o[e]}),e.delete(t);}.bind(t,{height:t.style.height,resize:t.style.resize,textAlign:t.style.textAlign,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",l),t.addEventListener("autosize:update",s),t.addEventListener("input",i),window.addEventListener("resize",s),t.style.overflowX="hidden",t.style.wordWrap="break-word",e.set(t,{destroy:l,update:s}),s();}function a(e){var o,i,l=e.restoreTextAlign,s=void 0===l?null:l,d=e.testForHeightReduction,u=void 0===d||d,c=n.overflowY;if(0!==t.scrollHeight&&("vertical"===n.resize?t.style.resize="none":"both"===n.resize&&(t.style.resize="horizontal"),u&&(o=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach(function(e){var t=e[0],o=e[1];t.style.scrollBehavior="auto",t.scrollTop=o,t.style.scrollBehavior=null;})}}(t),t.style.height=""),i="content-box"===n.boxSizing?t.scrollHeight-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):t.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),"none"!==n.maxHeight&&i>parseFloat(n.maxHeight)?("hidden"===n.overflowY&&(t.style.overflow="scroll"),i=parseFloat(n.maxHeight)):"hidden"!==n.overflowY&&(t.style.overflow="hidden"),t.style.height=i+"px",s&&(t.style.textAlign=s),o&&o(),r!==i&&(t.dispatchEvent(new Event("autosize:resized",{bubbles
|
|
11627
|
+
var e=new Map;function t(t){var o=e.get(t);o&&o.destroy();}function o(t){var o=e.get(t);o&&o.update();}var r=null;"undefined"==typeof window?((r=function(e){return e}).destroy=function(e){return e},r.update=function(e){return e}):((r=function(t,o){return t&&Array.prototype.forEach.call(t.length?t:[t],function(t){return function(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!e.has(t)){var o,r=null,n=window.getComputedStyle(t),i=(o=t.value,function(){a({testForHeightReduction:""===o||!t.value.startsWith(o),restoreTextAlign:null}),o=t.value;}),l=function(o){t.removeEventListener("autosize:destroy",l),t.removeEventListener("autosize:update",s),t.removeEventListener("input",i),window.removeEventListener("resize",s),Object.keys(o).forEach(function(e){return t.style[e]=o[e]}),e.delete(t);}.bind(t,{height:t.style.height,resize:t.style.resize,textAlign:t.style.textAlign,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",l),t.addEventListener("autosize:update",s),t.addEventListener("input",i),window.addEventListener("resize",s),t.style.overflowX="hidden",t.style.wordWrap="break-word",e.set(t,{destroy:l,update:s}),s();}function a(e){var o,i,l=e.restoreTextAlign,s=void 0===l?null:l,d=e.testForHeightReduction,u=void 0===d||d,c=n.overflowY;if(0!==t.scrollHeight&&("vertical"===n.resize?t.style.resize="none":"both"===n.resize&&(t.style.resize="horizontal"),u&&(o=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach(function(e){var t=e[0],o=e[1];t.style.scrollBehavior="auto",t.scrollTop=o,t.style.scrollBehavior=null;})}}(t),t.style.height=""),i="content-box"===n.boxSizing?t.scrollHeight-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):t.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),"none"!==n.maxHeight&&i>parseFloat(n.maxHeight)?("hidden"===n.overflowY&&(t.style.overflow="scroll"),i=parseFloat(n.maxHeight)):"hidden"!==n.overflowY&&(t.style.overflow="hidden"),t.style.height=i+"px",s&&(t.style.textAlign=s),o&&o(),r!==i&&(t.dispatchEvent(new Event("autosize:resized",{bubbles:true})),r=i),c!==n.overflow&&!s)){var v=n.textAlign;"hidden"===n.overflow&&(t.style.textAlign="start"===v?"end":"start"),a({restoreTextAlign:v,testForHeightReduction:true});}}function s(){a({testForHeightReduction:true,restoreTextAlign:null});}}(t)}),t}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],t),e},r.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e});var n=r;
|
|
12077
11628
|
|
|
12078
11629
|
const catTextareaCss = ".hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;display:flex;flex-direction:column;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.875rem;line-height:1.125rem}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){margin:0 !important}.cat-bg-primary{background-color:rgb(var(--cat-primary-bg, 0, 129, 148)) !important;color:rgb(var(--cat-primary-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-primary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-primary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-primary-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-primary-hover{transition:background-color 125ms, color 125ms}.cat-bg-primary-hover:hover{background-color:rgb(var(--cat-primary-bg-hover, 1, 115, 132)) !important;color:rgb(var(--cat-primary-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-primary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-primary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-primary-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-primary,.cat-link-primary{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}button.cat-text-primary,button.cat-link-primary{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-primary:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-primary:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-primary,.cat-text-primary-hover{transition:color 125ms}.cat-link-primary:hover,.cat-text-primary-hover:hover{color:rgb(var(--cat-primary-text-hover, 1, 115, 132)) !important}.cat-link-primary:active,.cat-text-primary-hover:active{color:rgb(var(--cat-primary-text-active, 2, 99, 113)) !important}.cat-bg-primaryInverted{background-color:#93b4f2 !important;color:black !important;--cat-primary-text:0, 0, 0;--cat-primary-text-hover:0, 0, 0;--cat-primary-text-active:0, 0, 0;--cat-link-decoration:underline}.cat-bg-primaryInverted-hover{transition:background-color 125ms, color 125ms}.cat-bg-primaryInverted-hover:hover{background-color:#93b4f2 !important;color:black !important;--cat-primary-text:0, 0, 0;--cat-primary-text-hover:0, 0, 0;--cat-primary-text-active:0, 0, 0;--cat-link-decoration:underline}.cat-text-primaryInverted,.cat-link-primaryInverted{color:#93b4f2 !important}button.cat-text-primaryInverted,button.cat-link-primaryInverted{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-primaryInverted:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-primaryInverted:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-primaryInverted,.cat-text-primaryInverted-hover{transition:color 125ms}.cat-link-primaryInverted:hover,.cat-text-primaryInverted-hover:hover{color:#93b4f2 !important}.cat-link-primaryInverted:active,.cat-text-primaryInverted-hover:active{color:#93b4f2 !important}.cat-bg-secondary{background-color:rgb(var(--cat-secondary-bg, 105, 118, 135)) !important;color:rgb(var(--cat-secondary-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-secondary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-secondary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-secondary-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-secondary-hover{transition:background-color 125ms, color 125ms}.cat-bg-secondary-hover:hover{background-color:rgb(var(--cat-secondary-bg-hover, 105, 118, 135)) !important;color:rgb(var(--cat-secondary-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-secondary-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-secondary-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-secondary-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-secondary,.cat-link-secondary{color:rgb(var(--cat-secondary-text, 0, 0, 0)) !important}button.cat-text-secondary,button.cat-link-secondary{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-secondary:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-secondary:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-secondary,.cat-text-secondary-hover{transition:color 125ms}.cat-link-secondary:hover,.cat-text-secondary-hover:hover{color:rgb(var(--cat-secondary-text-hover, 0, 0, 0)) !important}.cat-link-secondary:active,.cat-text-secondary-hover:active{color:rgb(var(--cat-secondary-text-active, 0, 0, 0)) !important}.cat-bg-secondaryInverted{background-color:#697687 !important;color:black !important;--cat-primary-text:0, 0, 0;--cat-primary-text-hover:0, 0, 0;--cat-primary-text-active:0, 0, 0;--cat-link-decoration:underline}.cat-bg-secondaryInverted-hover{transition:background-color 125ms, color 125ms}.cat-bg-secondaryInverted-hover:hover{background-color:#697687 !important;color:black !important;--cat-primary-text:0, 0, 0;--cat-primary-text-hover:0, 0, 0;--cat-primary-text-active:0, 0, 0;--cat-link-decoration:underline}.cat-text-secondaryInverted,.cat-link-secondaryInverted{color:white !important}button.cat-text-secondaryInverted,button.cat-link-secondaryInverted{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-secondaryInverted:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-secondaryInverted:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-secondaryInverted,.cat-text-secondaryInverted-hover{transition:color 125ms}.cat-link-secondaryInverted:hover,.cat-text-secondaryInverted-hover:hover{color:white !important}.cat-link-secondaryInverted:active,.cat-text-secondaryInverted-hover:active{color:white !important}.cat-bg-info{background-color:rgb(var(--cat-info-bg, 0, 115, 230)) !important;color:rgb(var(--cat-info-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-info-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-info-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-info-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-info-hover{transition:background-color 125ms, color 125ms}.cat-bg-info-hover:hover{background-color:rgb(var(--cat-info-bg-hover, 0, 107, 227)) !important;color:rgb(var(--cat-info-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-info-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-info-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-info-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-info,.cat-link-info{color:rgb(var(--cat-info-text, 0, 115, 230)) !important}button.cat-text-info,button.cat-link-info{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-info:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-info:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-info,.cat-text-info-hover{transition:color 125ms}.cat-link-info:hover,.cat-text-info-hover:hover{color:rgb(var(--cat-info-text-hover, 0, 107, 227)) !important}.cat-link-info:active,.cat-text-info-hover:active{color:rgb(var(--cat-info-text-active, 0, 96, 223)) !important}.cat-bg-success{background-color:rgb(var(--cat-success-bg, 0, 132, 88)) !important;color:rgb(var(--cat-success-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-success-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-success-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-success-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-success-hover{transition:background-color 125ms, color 125ms}.cat-bg-success-hover:hover{background-color:rgb(var(--cat-success-bg-hover, 0, 117, 78)) !important;color:rgb(var(--cat-success-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-success-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-success-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-success-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-success,.cat-link-success{color:rgb(var(--cat-success-text, 0, 132, 88)) !important}button.cat-text-success,button.cat-link-success{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-success:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-success:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-success,.cat-text-success-hover{transition:color 125ms}.cat-link-success:hover,.cat-text-success-hover:hover{color:rgb(var(--cat-success-text-hover, 0, 117, 78)) !important}.cat-link-success:active,.cat-text-success-hover:active{color:rgb(var(--cat-success-text-active, 0, 105, 70)) !important}.cat-bg-warning{background-color:rgb(var(--cat-warning-bg, 255, 206, 128)) !important;color:rgb(var(--cat-warning-fill, 0, 0, 0)) !important;--cat-primary-text:var(--cat-warning-fill, 0, 0, 0);--cat-primary-text-hover:var(--cat-warning-fill-hover, 0, 0, 0);--cat-primary-text-active:var(--cat-warning-fill-active, 0, 0, 0);--cat-link-decoration:underline}.cat-bg-warning-hover{transition:background-color 125ms, color 125ms}.cat-bg-warning-hover:hover{background-color:rgb(var(--cat-warning-bg-hover, 255, 214, 148)) !important;color:rgb(var(--cat-warning-fill-hover, 0, 0, 0)) !important;--cat-primary-text:var(--cat-warning-fill, 0, 0, 0);--cat-primary-text-hover:var(--cat-warning-fill-hover, 0, 0, 0);--cat-primary-text-active:var(--cat-warning-fill-active, 0, 0, 0);--cat-link-decoration:underline}.cat-text-warning,.cat-link-warning{color:rgb(var(--cat-warning-text, 159, 97, 0)) !important}button.cat-text-warning,button.cat-link-warning{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-warning:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-warning:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-warning,.cat-text-warning-hover{transition:color 125ms}.cat-link-warning:hover,.cat-text-warning-hover:hover{color:rgb(var(--cat-warning-text-hover, 159, 97, 0)) !important}.cat-link-warning:active,.cat-text-warning-hover:active{color:rgb(var(--cat-warning-text-active, 159, 97, 0)) !important}.cat-bg-danger{background-color:rgb(var(--cat-danger-bg, 217, 52, 13)) !important;color:rgb(var(--cat-danger-fill, 255, 255, 255)) !important;--cat-primary-text:var(--cat-danger-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-danger-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-danger-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-bg-danger-hover{transition:background-color 125ms, color 125ms}.cat-bg-danger-hover:hover{background-color:rgb(var(--cat-danger-bg-hover, 194, 46, 11)) !important;color:rgb(var(--cat-danger-fill-hover, 255, 255, 255)) !important;--cat-primary-text:var(--cat-danger-fill, 255, 255, 255);--cat-primary-text-hover:var(--cat-danger-fill-hover, 255, 255, 255);--cat-primary-text-active:var(--cat-danger-fill-active, 255, 255, 255);--cat-link-decoration:underline}.cat-text-danger,.cat-link-danger{color:rgb(var(--cat-danger-text, 217, 52, 13)) !important}button.cat-text-danger,button.cat-link-danger{margin:0;padding:0;font:inherit;border:none;background:none;cursor:pointer}button.cat-link-danger:hover:not(:disabled){text-decoration:var(--cat-link-decoration-hover, underline)}button.cat-link-danger:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-link-danger,.cat-text-danger-hover{transition:color 125ms}.cat-link-danger:hover,.cat-text-danger-hover:hover{color:rgb(var(--cat-danger-text-hover, 194, 46, 11)) !important}.cat-link-danger:active,.cat-text-danger-hover:active{color:rgb(var(--cat-danger-text-active, 174, 42, 10)) !important}.cat-active{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}.cat-text-active{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}.cat-muted{color:rgb(var(--cat-font-color-muted, 81, 92, 108)) !important}.cat-text-muted{color:rgb(var(--cat-font-color-muted, 81, 92, 108)) !important}.cat-bg-muted{background-color:#f2f4f7 !important}.cat-text-reset{color:inherit !important}.cat-link-reset{color:inherit !important;text-decoration:inherit !important}.label{overflow:hidden;word-wrap:break-word;word-break:break-word}.input-field:not(.input-horizontal) .label-container.hidden,.textarea-field:not(.textarea-horizontal) .label-container.hidden,.select-field:not(.select-horizontal) .label-container.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.label-container{flex-basis:var(--label-size, 33.33%)}.label-wrapper{display:flex;gap:0.25rem}.label-metadata{display:flex;flex-shrink:0;flex-grow:1;justify-content:space-between;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.label-optional,.label-character-count{display:inline-flex;align-items:center;max-height:1.25rem;font-size:0.75rem;line-height:1rem}.label-character-count{margin-left:auto}.input-horizontal .label-container.hidden label,.textarea-horizontal .label-container.hidden label,.select-horizontal .label-container.hidden label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.input-horizontal .label-wrapper,.textarea-horizontal .label-wrapper,.select-horizontal .label-wrapper{flex-direction:column}.input-horizontal label,.textarea-horizontal label,.select-horizontal label{min-height:2.5rem;display:inline-flex;align-items:center}.input-horizontal .label-metadata,.textarea-horizontal .label-metadata,.select-horizontal .label-metadata{justify-content:flex-start}.input-horizontal .label-metadata .label-character-count,.textarea-horizontal .label-metadata .label-character-count,.select-horizontal .label-metadata .label-character-count{margin-left:0}:host{display:flex;flex-direction:column;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400)}:host([hidden]){display:none}.textarea-field,.textarea-container{display:flex;flex-direction:column;gap:0.5rem;flex:1 1 auto}.textarea-field.textarea-horizontal{flex-direction:row;gap:1rem}.textarea-readonly{pointer-events:none}.textarea-wrapper{position:relative;display:flex;flex-direction:column}.icon-suffix{position:absolute;top:calc(0.625rem - 2px);right:0.75rem;background:rgba(255, 255, 255, 0.75);border-radius:100rem}.textarea-disabled .icon-suffix{background:rgba(242, 244, 247, 0.75)}textarea{margin:0;padding:0.625rem 0.75rem;box-sizing:border-box;min-height:2.5rem;font:inherit;background:white;border-radius:var(--cat-border-radius-m, 0.25rem);border:none;box-shadow:inset 0 0 0 1px rgb(var(--border-color));transition:box-shadow 125ms linear;resize:vertical;--border-color:var(--cat-border-color-dark, 215, 219, 224);}textarea:disabled{background:#f2f4f7;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108));resize:none}textarea:not(:disabled):hover{box-shadow:inset 0 0 0 1px rgb(var(--border-color)), 0 0 0 1px rgb(var(--border-color))}textarea:focus{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:-1px}.textarea-invalid textarea{--border-color:var(--cat-danger-bg, 217, 52, 13), 0.2}textarea::placeholder{color:rgb(var(--cat-font-color-muted, 81, 92, 108))}textarea:-webkit-autofill,textarea:-webkit-autofill:hover,textarea:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 9999px #e8f0fe inset}";
|
|
12079
|
-
const CatTextareaStyle0 = catTextareaCss;
|
|
12080
11630
|
|
|
12081
11631
|
let nextUniqueId$2 = 0;
|
|
12082
11632
|
const CatTextarea = class {
|
|
12083
11633
|
constructor(hostRef) {
|
|
12084
11634
|
registerInstance(this, hostRef);
|
|
12085
|
-
this.catChange = createEvent(this, "catChange"
|
|
12086
|
-
this.catFocus = createEvent(this, "catFocus"
|
|
12087
|
-
this.catBlur = createEvent(this, "catBlur"
|
|
11635
|
+
this.catChange = createEvent(this, "catChange");
|
|
11636
|
+
this.catFocus = createEvent(this, "catFocus");
|
|
11637
|
+
this.catBlur = createEvent(this, "catBlur");
|
|
12088
11638
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
12089
11639
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
12090
11640
|
}
|
|
@@ -12096,27 +11646,44 @@ const CatTextarea = class {
|
|
|
12096
11646
|
this.hasSlottedLabel = false;
|
|
12097
11647
|
this.hasSlottedHint = false;
|
|
12098
11648
|
this.hasSlottedCounter = false;
|
|
12099
|
-
|
|
11649
|
+
/**
|
|
11650
|
+
* Whether the label need a marker to shown if the textarea is required or optional.
|
|
11651
|
+
*/
|
|
12100
11652
|
this.requiredMarker = 'optional';
|
|
11653
|
+
/**
|
|
11654
|
+
* Whether the label is on top or left.
|
|
11655
|
+
*/
|
|
12101
11656
|
this.horizontal = false;
|
|
12102
|
-
|
|
11657
|
+
/**
|
|
11658
|
+
* Whether the textarea is disabled.
|
|
11659
|
+
*/
|
|
12103
11660
|
this.disabled = false;
|
|
12104
|
-
|
|
12105
|
-
|
|
11661
|
+
/**
|
|
11662
|
+
* The label for the textarea.
|
|
11663
|
+
*/
|
|
12106
11664
|
this.label = '';
|
|
11665
|
+
/**
|
|
11666
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
11667
|
+
*/
|
|
12107
11668
|
this.labelHidden = false;
|
|
12108
|
-
|
|
12109
|
-
|
|
12110
|
-
|
|
12111
|
-
this.placeholder = undefined;
|
|
11669
|
+
/**
|
|
11670
|
+
* The value is not editable.
|
|
11671
|
+
*/
|
|
12112
11672
|
this.readonly = false;
|
|
11673
|
+
/**
|
|
11674
|
+
* A value is required or must be check for the form to be submittable.
|
|
11675
|
+
*/
|
|
12113
11676
|
this.required = false;
|
|
11677
|
+
/**
|
|
11678
|
+
* Specifies the initial number of lines in the textarea.
|
|
11679
|
+
*/
|
|
12114
11680
|
this.rows = 3;
|
|
12115
|
-
|
|
12116
|
-
|
|
11681
|
+
/**
|
|
11682
|
+
* Fine-grained control over when the errors are shown. Can be `false` to
|
|
11683
|
+
* never show errors, `true` to show errors on blur, or a number to show
|
|
11684
|
+
* errors change with the given delay in milliseconds or immediately on blur.
|
|
11685
|
+
*/
|
|
12117
11686
|
this.errorUpdate = 0;
|
|
12118
|
-
this.nativeAttributes = undefined;
|
|
12119
|
-
this.testId = undefined;
|
|
12120
11687
|
}
|
|
12121
11688
|
get id() {
|
|
12122
11689
|
return this.identifier || this._id;
|
|
@@ -12228,7 +11795,7 @@ const CatTextarea = class {
|
|
|
12228
11795
|
"errors": ["onErrorsChanged"]
|
|
12229
11796
|
}; }
|
|
12230
11797
|
};
|
|
12231
|
-
CatTextarea.style =
|
|
11798
|
+
CatTextarea.style = catTextareaCss;
|
|
12232
11799
|
|
|
12233
11800
|
function getHour12(language) {
|
|
12234
11801
|
const dateStr = new Intl.DateTimeFormat(language, { hour: '2-digit', minute: '2-digit' })
|
|
@@ -12276,14 +11843,13 @@ function isAfter(date, time) {
|
|
|
12276
11843
|
}
|
|
12277
11844
|
|
|
12278
11845
|
const catTimeCss = ":host{display:block}:host([hidden]){display:none}.label-aria{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.cat-time-addon{margin-left:-1px;display:flex}nav{max-height:16rem}nav ul{list-style:none;margin:0;padding:0}.time-disabled{opacity:0.25}";
|
|
12279
|
-
const CatTimeStyle0 = catTimeCss;
|
|
12280
11846
|
|
|
12281
11847
|
const CatTime = class {
|
|
12282
11848
|
constructor(hostRef) {
|
|
12283
11849
|
registerInstance(this, hostRef);
|
|
12284
|
-
this.catChange = createEvent(this, "catChange"
|
|
12285
|
-
this.catFocus = createEvent(this, "catFocus"
|
|
12286
|
-
this.catBlur = createEvent(this, "catBlur"
|
|
11850
|
+
this.catChange = createEvent(this, "catChange");
|
|
11851
|
+
this.catFocus = createEvent(this, "catFocus");
|
|
11852
|
+
this.catBlur = createEvent(this, "catBlur");
|
|
12287
11853
|
this.language = catI18nRegistry.getLocale();
|
|
12288
11854
|
this.locale = getLocale(this.language);
|
|
12289
11855
|
this.timeMaskOptions = { timeFormat: this.locale.timeFormat, timePattern: ['h', 'm'] };
|
|
@@ -12292,31 +11858,59 @@ const CatTime = class {
|
|
|
12292
11858
|
this.selectionTime = null;
|
|
12293
11859
|
this.isAm = true;
|
|
12294
11860
|
this.valueChangedBySelection = false;
|
|
11861
|
+
/**
|
|
11862
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
11863
|
+
*/
|
|
12295
11864
|
this.requiredMarker = 'optional';
|
|
11865
|
+
/**
|
|
11866
|
+
* Whether the label is on top or left.
|
|
11867
|
+
*/
|
|
12296
11868
|
this.horizontal = false;
|
|
11869
|
+
/**
|
|
11870
|
+
* Hint for form autofill feature.
|
|
11871
|
+
*/
|
|
12297
11872
|
this.autoComplete = 'off';
|
|
11873
|
+
/**
|
|
11874
|
+
* Whether the input should show a clear button.
|
|
11875
|
+
*/
|
|
12298
11876
|
this.clearable = false;
|
|
11877
|
+
/**
|
|
11878
|
+
* Whether the input is disabled.
|
|
11879
|
+
*/
|
|
12299
11880
|
this.disabled = false;
|
|
12300
|
-
|
|
12301
|
-
|
|
11881
|
+
/**
|
|
11882
|
+
* Display the icon on the right.
|
|
11883
|
+
*/
|
|
12302
11884
|
this.iconRight = false;
|
|
12303
|
-
|
|
11885
|
+
/**
|
|
11886
|
+
* The label for the input.
|
|
11887
|
+
*/
|
|
12304
11888
|
this.label = '';
|
|
11889
|
+
/**
|
|
11890
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
11891
|
+
*/
|
|
12305
11892
|
this.labelHidden = false;
|
|
12306
|
-
|
|
12307
|
-
|
|
12308
|
-
|
|
12309
|
-
this.placeholder = undefined;
|
|
12310
|
-
this.textPrefix = undefined;
|
|
12311
|
-
this.textSuffix = undefined;
|
|
11893
|
+
/**
|
|
11894
|
+
* The value is not editable.
|
|
11895
|
+
*/
|
|
12312
11896
|
this.readonly = false;
|
|
11897
|
+
/**
|
|
11898
|
+
* A value is required or must be check for the form to be submittable.
|
|
11899
|
+
*/
|
|
12313
11900
|
this.required = false;
|
|
12314
|
-
|
|
12315
|
-
|
|
11901
|
+
/**
|
|
11902
|
+
* Fine-grained control over when the errors are shown. Can be `false` to
|
|
11903
|
+
* never show errors, `true` to show errors on blur, or a number to show
|
|
11904
|
+
* errors change with the given delay in milliseconds or immediately on blur.
|
|
11905
|
+
*/
|
|
12316
11906
|
this.errorUpdate = 0;
|
|
12317
|
-
|
|
12318
|
-
|
|
11907
|
+
/**
|
|
11908
|
+
* The placement of the dropdown.
|
|
11909
|
+
*/
|
|
12319
11910
|
this.placement = 'bottom-end';
|
|
11911
|
+
/**
|
|
11912
|
+
* The step size for times in minutes.
|
|
11913
|
+
*/
|
|
12320
11914
|
this.step = 30;
|
|
12321
11915
|
}
|
|
12322
11916
|
onMinChanged(min, oldMin) {
|
|
@@ -12490,18 +12084,17 @@ const CatTime = class {
|
|
|
12490
12084
|
"value": ["onValueChanged"]
|
|
12491
12085
|
}; }
|
|
12492
12086
|
};
|
|
12493
|
-
CatTime.style =
|
|
12087
|
+
CatTime.style = catTimeCss;
|
|
12494
12088
|
|
|
12495
12089
|
const catToggleCss = ".hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;display:flex;flex-direction:column;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.875rem;line-height:1.125rem}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){margin:0 !important}:host{display:flex;flex-direction:column;gap:0.25rem}:host([hidden]){display:none}label{flex:0 1 auto;display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.label-left{flex-direction:row-reverse}input{position:absolute;margin:0;width:2rem;height:1.25rem;opacity:0;cursor:inherit}.toggle-placeholder{width:calc(2rem + 1px);flex-shrink:0}.toggle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;position:relative;width:2rem;height:1.25rem;border-radius:10rem;background-color:rgb(var(--cat-border-color-dark, 215, 219, 224));transition:background-color 125ms ease;pointer-events:none}:checked+.toggle{background-color:rgb(var(--cat-primary-bg, 0, 129, 148))}:focus-visible+.toggle{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.toggle::after{content:\"\";position:absolute;width:1rem;height:1rem;background:#fff;border-radius:10rem;transform:translateX(calc(2px - 0.5rem));transition:transform 125ms linear;box-shadow:0 1px 2px rgba(27, 31, 38, 0.06), 0 1px 3px rgba(27, 31, 38, 0.1)}:checked+.toggle::after{transform:translateX(calc(-2px + 0.5rem));background:rgb(var(--cat-primary-fill, 255, 255, 255))}.is-disabled .toggle{background-color:rgb(var(--cat-border-color-dark, 215, 219, 224))}:host(.cat-error) .toggle{background-color:rgba(var(--cat-danger-bg, 217, 52, 13), 0.2)}:host(.cat-error) :checked+.toggle{background-color:rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) :checked+.toggle::after{background:rgb(var(--cat-danger-fill, 255, 255, 255))}.label{flex:1 1 auto}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.align-center{align-items:center}.align-end{align-items:flex-end}";
|
|
12496
|
-
const CatToggleStyle0 = catToggleCss;
|
|
12497
12090
|
|
|
12498
12091
|
let nextUniqueId$1 = 0;
|
|
12499
12092
|
const CatToggle = class {
|
|
12500
12093
|
constructor(hostRef) {
|
|
12501
12094
|
registerInstance(this, hostRef);
|
|
12502
|
-
this.catChange = createEvent(this, "catChange"
|
|
12503
|
-
this.catFocus = createEvent(this, "catFocus"
|
|
12504
|
-
this.catBlur = createEvent(this, "catBlur"
|
|
12095
|
+
this.catChange = createEvent(this, "catChange");
|
|
12096
|
+
this.catFocus = createEvent(this, "catFocus");
|
|
12097
|
+
this.catBlur = createEvent(this, "catBlur");
|
|
12505
12098
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
12506
12099
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
12507
12100
|
}
|
|
@@ -12512,21 +12105,39 @@ const CatToggle = class {
|
|
|
12512
12105
|
this._id = `cat-toggle-${nextUniqueId$1++}`;
|
|
12513
12106
|
this.hasSlottedLabel = false;
|
|
12514
12107
|
this.hasSlottedHint = false;
|
|
12108
|
+
/**
|
|
12109
|
+
* Checked state of the toggle.
|
|
12110
|
+
*/
|
|
12515
12111
|
this.checked = false;
|
|
12112
|
+
/**
|
|
12113
|
+
* Disabled state of the toggle.
|
|
12114
|
+
*/
|
|
12516
12115
|
this.disabled = false;
|
|
12517
|
-
|
|
12116
|
+
/**
|
|
12117
|
+
* The label of the toggle that is visible.
|
|
12118
|
+
*/
|
|
12518
12119
|
this.label = '';
|
|
12120
|
+
/**
|
|
12121
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
12122
|
+
*/
|
|
12519
12123
|
this.labelHidden = false;
|
|
12520
|
-
|
|
12124
|
+
/**
|
|
12125
|
+
* Required state of the toggle.
|
|
12126
|
+
*/
|
|
12521
12127
|
this.required = false;
|
|
12522
|
-
|
|
12523
|
-
|
|
12128
|
+
/**
|
|
12129
|
+
* The resolved value of the toggle, based on the checked state, value and noValue.
|
|
12130
|
+
*/
|
|
12131
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12524
12132
|
this.resolvedValue = null;
|
|
12525
|
-
|
|
12133
|
+
/**
|
|
12134
|
+
* Whether the label should appear to the left of the toggle.
|
|
12135
|
+
*/
|
|
12526
12136
|
this.labelLeft = false;
|
|
12137
|
+
/**
|
|
12138
|
+
* The alignment of the checkbox.
|
|
12139
|
+
*/
|
|
12527
12140
|
this.alignment = 'top';
|
|
12528
|
-
this.nativeAttributes = undefined;
|
|
12529
|
-
this.testId = undefined;
|
|
12530
12141
|
}
|
|
12531
12142
|
get id() {
|
|
12532
12143
|
return this.identifier || this._id;
|
|
@@ -12588,12 +12199,11 @@ const CatToggle = class {
|
|
|
12588
12199
|
static get formAssociated() { return true; }
|
|
12589
12200
|
get hostElement() { return getElement(this); }
|
|
12590
12201
|
};
|
|
12591
|
-
CatToggle.style =
|
|
12202
|
+
CatToggle.style = catToggleCss;
|
|
12592
12203
|
|
|
12593
12204
|
const isTouchDevice = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
|
|
12594
12205
|
|
|
12595
12206
|
const catTooltipCss = ":host{display:contents}:host([hidden]){display:none}.tooltip{--cat-font-color-head:var(--cat-font-color-tooltip, 255, 255, 255);--cat-font-color-body:var(--cat-font-color-tooltip, 255, 255, 255);position:fixed;width:max-content;top:0;left:0;box-sizing:border-box;background-color:rgb(var(--cat-bg-tooltip, 0, 0, 0));border-radius:var(--cat-border-radius-m, 0.25rem);color:rgb(var(--cat-font-color-tooltip, 255, 255, 255));transition:opacity 250ms linear, visibility 250ms linear;visibility:hidden;opacity:0;box-shadow:rgba(0, 0, 0, 0.08) 0 1px 8px 0;z-index:calc(var(--cat-z-index, 1000) + 200);max-width:min(100vw - 0.5rem, 20rem)}.tooltip-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.tooltip-show{opacity:1;visibility:visible}.tooltip p{margin:0}.tooltip-round{border-radius:10rem}.tooltip-s{padding:0.25rem 0.375rem;font-size:0.75rem;line-height:1rem;font-weight:500}.tooltip-s.tooltip-round{padding-left:0.5rem;padding-right:0.5rem}.tooltip-m{padding:0.375rem 0.5rem;font-size:0.875rem;line-height:1.125rem;font-weight:500}.tooltip-m.tooltip-round{padding-left:0.75rem;padding-right:0.75rem}.tooltip-l{padding:0.5rem 0.75rem;font-size:0.9375rem;line-height:1.25rem;font-weight:500}.tooltip-l.tooltip-round{padding-left:1rem;padding-right:1rem}";
|
|
12596
|
-
const CatTooltipStyle0 = catTooltipCss;
|
|
12597
12207
|
|
|
12598
12208
|
let nextUniqueId = 0;
|
|
12599
12209
|
const CatTooltip = class {
|
|
@@ -12602,13 +12212,38 @@ const CatTooltip = class {
|
|
|
12602
12212
|
this.id = `cat-tooltip-${nextUniqueId++}`;
|
|
12603
12213
|
this.inactive = false;
|
|
12604
12214
|
this.open = false;
|
|
12215
|
+
/**
|
|
12216
|
+
* The content of the tooltip.
|
|
12217
|
+
*/
|
|
12605
12218
|
this.content = '';
|
|
12219
|
+
/**
|
|
12220
|
+
* Specifies that the tooltip should be disabled. A disabled tooltip is unusable,
|
|
12221
|
+
* and invisible. Corresponds with the native HTML disabled attribute.
|
|
12222
|
+
*/
|
|
12606
12223
|
this.disabled = false;
|
|
12224
|
+
/**
|
|
12225
|
+
* The placement of the tooltip.
|
|
12226
|
+
*/
|
|
12607
12227
|
this.placement = 'top';
|
|
12228
|
+
/**
|
|
12229
|
+
* Use round tooltip edges.
|
|
12230
|
+
*/
|
|
12608
12231
|
this.round = false;
|
|
12232
|
+
/**
|
|
12233
|
+
* The size of the tooltip.
|
|
12234
|
+
*/
|
|
12609
12235
|
this.size = 'm';
|
|
12236
|
+
/**
|
|
12237
|
+
* The delay time for showing tooltip in ms.
|
|
12238
|
+
*/
|
|
12610
12239
|
this.showDelay = 250;
|
|
12240
|
+
/**
|
|
12241
|
+
* The delay time for hiding tooltip in ms.
|
|
12242
|
+
*/
|
|
12611
12243
|
this.hideDelay = 0;
|
|
12244
|
+
/**
|
|
12245
|
+
* The duration of tap to show the tooltip.
|
|
12246
|
+
*/
|
|
12612
12247
|
this.longTouchDuration = 1000;
|
|
12613
12248
|
this.boundShowListener = this.showListener.bind(this);
|
|
12614
12249
|
this.boundHideListener = this.hideListener.bind(this);
|
|
@@ -12737,8 +12372,9 @@ const CatTooltip = class {
|
|
|
12737
12372
|
};
|
|
12738
12373
|
CatTooltip.OFFSET = 4;
|
|
12739
12374
|
CatTooltip.SHIFT_PADDING = 4;
|
|
12740
|
-
CatTooltip.style =
|
|
12375
|
+
CatTooltip.style = catTooltipCss;
|
|
12741
12376
|
|
|
12742
12377
|
export { CatAlert as cat_alert, CatAvatar as cat_avatar, CatBadge as cat_badge, CatButton as cat_button, CatButtonGroup as cat_button_group, CatCard as cat_card, CatCheckbox as cat_checkbox, CatDate as cat_date, CatDateInline as cat_date_inline, CatDatepickerFlat as cat_datepicker, CatDatepickerInline as cat_datepicker_inline, CatDropdown as cat_dropdown, CatFormGroup as cat_form_group, CatIcon as cat_icon, CatInput as cat_input, CatPagination as cat_pagination, CatRadio as cat_radio, CatRadioGroup as cat_radio_group, CatScrollable as cat_scrollable, CatSelect as cat_select, CatSelectTest as cat_select_demo, CatSkeleton as cat_skeleton, CatSpinner as cat_spinner, CatTab as cat_tab, CatTabs as cat_tabs, CatTag as cat_tag, CatTextarea as cat_textarea, CatTime as cat_time, CatToggle as cat_toggle, CatTooltip as cat_tooltip };
|
|
12378
|
+
//# sourceMappingURL=cat-alert.cat-avatar.cat-badge.cat-button.cat-button-group.cat-card.cat-checkbox.cat-date.cat-date-inline.cat-datepicker.cat-datepicker-inline.cat-dropdown.cat-form-group.cat-icon.cat-input.cat-pagination.cat-radio.cat-radio-group.cat-scrollable.cat-select.cat-select-demo.cat-skeleton.cat-spinner.cat-tab.cat-tabs.cat-tag.cat-textarea.cat-time.cat-toggle.cat-tooltip.entry.js.map
|
|
12743
12379
|
|
|
12744
12380
|
//# sourceMappingURL=cat-alert_30.entry.js.map
|