@public-ui/components 2.2.8 → 3.0.0-887b7986b55acd713750f46753265f8330a1342a.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/custom-elements.json +147 -685
- package/dist/cjs/Alert-f4a6700e.js +4 -0
- package/dist/cjs/Alert-f4a6700e.js.map +1 -0
- package/dist/cjs/Collapsible-9187f373.js +4 -0
- package/dist/cjs/Collapsible-9187f373.js.map +1 -0
- package/dist/cjs/CustomSuggestionsOptionsGroup-8086f8f7.js +4 -0
- package/dist/cjs/CustomSuggestionsOptionsGroup-8086f8f7.js.map +1 -0
- package/dist/cjs/FieldControlStateWrapper-746761e3.js +4 -0
- package/dist/cjs/FieldControlStateWrapper-746761e3.js.map +1 -0
- package/dist/cjs/Heading-0caf905d.js +4 -0
- package/dist/cjs/Heading-0caf905d.js.map +1 -0
- package/dist/cjs/Icon-a7c72b23.js +4 -0
- package/dist/cjs/Icon-a7c72b23.js.map +1 -0
- package/dist/cjs/Input-5005eb27.js +4 -0
- package/dist/cjs/Input-5005eb27.js.map +1 -0
- package/dist/cjs/InputStateWrapper-981e8079.js +4 -0
- package/dist/cjs/InputStateWrapper-981e8079.js.map +1 -0
- package/dist/cjs/InternalUnderlinedBadgeText-ba062a73.js +4 -0
- package/dist/cjs/InternalUnderlinedBadgeText-ba062a73.js.map +1 -0
- package/dist/cjs/Span-4e268602.js +4 -0
- package/dist/cjs/Span-4e268602.js.map +1 -0
- package/dist/cjs/{align-floating-elements-1d37261b.js → align-floating-elements-8bc6ec37.js} +1 -1
- package/dist/cjs/{align-floating-elements-1d37261b.js.map → align-floating-elements-8bc6ec37.js.map} +1 -1
- package/dist/cjs/{app-globals-40c11b44.js → app-globals-64421db6.js} +1 -1
- package/dist/cjs/{app-globals-40c11b44.js.map → app-globals-64421db6.js.map} +1 -1
- package/dist/cjs/{aria-expanded-7d8d2aca.js → button-variant-fb9c6afd.js} +1 -1
- package/dist/cjs/button-variant-fb9c6afd.js.map +1 -0
- package/dist/cjs/callback-00e57b93.js +4 -0
- package/dist/cjs/callback-00e57b93.js.map +1 -0
- package/dist/cjs/component-names-74abfa2e.js +4 -0
- package/dist/cjs/component-names-74abfa2e.js.map +1 -0
- package/dist/cjs/{controller-d91f5077.js → controller-46a8468d.js} +1 -1
- package/dist/cjs/{controller-d91f5077.js.map → controller-46a8468d.js.map} +1 -1
- package/dist/cjs/controller-b840d423.js +4 -0
- package/dist/cjs/{controller-ee67ec39.js.map → controller-b840d423.js.map} +1 -1
- package/dist/cjs/{controller-91763b20.js → controller-e2c86d64.js} +1 -1
- package/dist/cjs/{controller-91763b20.js.map → controller-e2c86d64.js.map} +1 -1
- package/dist/cjs/{controller-563984db.js → controller-fb006831.js} +1 -1
- package/dist/cjs/{controller-563984db.js.map → controller-fb006831.js.map} +1 -1
- package/dist/cjs/controller-icon-6057f1e7.js +4 -0
- package/dist/cjs/controller-icon-6057f1e7.js.map +1 -0
- package/dist/cjs/{dev.utils-0273f400.js → dev.utils-736cd9ec.js} +1 -1
- package/dist/cjs/{dev.utils-0273f400.js.map → dev.utils-736cd9ec.js.map} +1 -1
- package/dist/cjs/{devtools-56637486.js → devtools-84cb83e9.js} +1 -1
- package/dist/cjs/{devtools-56637486.js.map → devtools-84cb83e9.js.map} +1 -1
- package/dist/cjs/events-fc641593.js +4 -0
- package/dist/cjs/events-fc641593.js.map +1 -0
- package/dist/cjs/getRenderStates-e446553f.js +4 -0
- package/dist/cjs/getRenderStates-e446553f.js.map +1 -0
- package/dist/cjs/i18n-583e3c4b.js +4 -0
- package/dist/cjs/i18n-583e3c4b.js.map +1 -0
- package/dist/cjs/{i18n-1d085d07.js → i18n-c745fb7d.js} +1 -1
- package/dist/cjs/{i18n-1d085d07.js.map → i18n-c745fb7d.js.map} +1 -1
- package/dist/cjs/{icons-f0f3f9c5.js → icons-3ad822d9.js} +1 -1
- package/dist/cjs/icons-3ad822d9.js.map +1 -0
- package/dist/cjs/index-7b35e085.js +4 -0
- package/dist/cjs/{index-399c8b52.js.map → index-7b35e085.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/isObject-6090b636.js +4 -0
- package/dist/cjs/isObject-6090b636.js.map +1 -0
- package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
- package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-alert-wc.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-alert.cjs.entry.js +1 -1
- package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-avatar-wc.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
- package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-badge.cjs.entry.js +1 -1
- package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-wc.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-card.cjs.entry.js +1 -1
- package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
- package/dist/cjs/kol-combobox.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-details.cjs.entry.js +1 -1
- package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kol-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-form.cjs.entry.js +1 -1
- package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-heading.cjs.entry.js +1 -1
- package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-icon.cjs.entry.js +1 -1
- package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-image.cjs.entry.js +1 -1
- package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
- package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-link.cjs.entry.js +1 -1
- package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-modal.cjs.entry.js +1 -1
- package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-nav.cjs.entry.js +1 -1
- package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
- package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-popover-button.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-popover-wc.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-progress.cjs.entry.js +1 -1
- package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-quote.cjs.entry.js +1 -1
- package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-select.cjs.entry.js +1 -1
- package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
- package/dist/cjs/kol-single-select.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
- package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-spin.cjs.entry.js +1 -1
- package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateful.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateless-wc.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateless.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
- package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
- package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/kol-toolbar.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-tooltip-wc.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree-item-wc.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree-item.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree-wc.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-tree.cjs.entry.js +1 -1
- package/dist/cjs/kol-tree.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-version.cjs.entry.js +1 -1
- package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
- package/dist/cjs/kolibri.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/reuse-8650ea4e.js +4 -0
- package/dist/cjs/reuse-8650ea4e.js.map +1 -0
- package/dist/cjs/test-component.cjs.entry.js +1 -1
- package/dist/cjs/tslib.es6-5e301284.js.map +1 -0
- package/dist/components/Alert.js +1 -1
- package/dist/components/Alert.js.map +1 -1
- package/dist/components/Collapsible.js +1 -1
- package/dist/components/Collapsible.js.map +1 -1
- package/dist/components/CustomSuggestionsOptionsGroup.js +4 -0
- package/dist/components/CustomSuggestionsOptionsGroup.js.map +1 -0
- package/dist/components/FieldControlStateWrapper.js +4 -0
- package/dist/components/FieldControlStateWrapper.js.map +1 -0
- package/dist/components/Heading.js +4 -0
- package/dist/components/Heading.js.map +1 -0
- package/dist/components/Icon.js +4 -0
- package/dist/components/Icon.js.map +1 -0
- package/dist/components/Input.js +4 -0
- package/dist/components/Input.js.map +1 -0
- package/dist/components/InputContainerStateWrapper.js +4 -0
- package/dist/components/InputContainerStateWrapper.js.map +1 -0
- package/dist/components/InputStateWrapper.js +4 -0
- package/dist/components/InputStateWrapper.js.map +1 -0
- package/dist/components/InternalUnderlinedBadgeText.js +1 -1
- package/dist/components/InternalUnderlinedBadgeText.js.map +1 -1
- package/dist/components/Span.js +4 -0
- package/dist/components/Span.js.map +1 -0
- package/dist/components/{aria-expanded.js → button-variant.js} +1 -1
- package/dist/components/button-variant.js.map +1 -0
- package/dist/components/callback.js +4 -0
- package/dist/components/callback.js.map +1 -0
- package/dist/components/component-names.js +1 -1
- package/dist/components/component-names.js.map +1 -1
- package/dist/components/controller.js +1 -1
- package/dist/components/controller2.js +1 -1
- package/dist/components/controller2.js.map +1 -1
- package/dist/components/controller3.js +1 -1
- package/dist/components/controller3.js.map +1 -1
- package/dist/components/controller4.js +1 -1
- package/dist/components/controller4.js.map +1 -1
- package/dist/components/events.js +1 -1
- package/dist/components/events.js.map +1 -1
- package/dist/components/getRenderStates.js +4 -0
- package/dist/components/getRenderStates.js.map +1 -0
- package/dist/components/i18n.js +1 -1
- package/dist/components/i18n.js.map +1 -1
- package/dist/components/icons.js +1 -1
- package/dist/components/icons.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/isObject.js +4 -0
- package/dist/components/isObject.js.map +1 -0
- package/dist/components/kol-abbr.js +1 -1
- package/dist/components/kol-abbr.js.map +1 -1
- package/dist/components/kol-accordion.js +1 -1
- package/dist/components/kol-accordion.js.map +1 -1
- package/dist/components/kol-alert-wc.js +1 -1
- package/dist/components/kol-alert-wc.js.map +1 -1
- package/dist/components/kol-alert.js +1 -1
- package/dist/components/kol-alert.js.map +1 -1
- package/dist/components/kol-avatar-wc.js +1 -1
- package/dist/components/kol-avatar-wc.js.map +1 -1
- package/dist/components/kol-avatar.js +1 -1
- package/dist/components/kol-avatar.js.map +1 -1
- package/dist/components/kol-badge.js +1 -1
- package/dist/components/kol-badge.js.map +1 -1
- package/dist/components/kol-breadcrumb.js +1 -1
- package/dist/components/kol-breadcrumb.js.map +1 -1
- package/dist/components/kol-button-link.js +1 -1
- package/dist/components/kol-button-link.js.map +1 -1
- package/dist/components/kol-button-wc.js +1 -1
- package/dist/components/kol-button-wc.js.map +1 -1
- package/dist/components/kol-button.js +1 -1
- package/dist/components/kol-button.js.map +1 -1
- package/dist/components/kol-card.js +1 -1
- package/dist/components/kol-card.js.map +1 -1
- package/dist/components/kol-combobox.js +1 -1
- package/dist/components/kol-combobox.js.map +1 -1
- package/dist/components/kol-details.js +1 -1
- package/dist/components/kol-details.js.map +1 -1
- package/dist/components/kol-drawer.js +1 -1
- package/dist/components/kol-drawer.js.map +1 -1
- package/dist/components/kol-form.js +1 -1
- package/dist/components/kol-form.js.map +1 -1
- package/dist/components/kol-heading.js +1 -1
- package/dist/components/kol-heading.js.map +1 -1
- package/dist/components/kol-icon.js +1 -1
- package/dist/components/kol-icon.js.map +1 -1
- package/dist/components/kol-image.js +1 -1
- package/dist/components/kol-image.js.map +1 -1
- package/dist/components/kol-input-checkbox.js +1 -1
- package/dist/components/kol-input-checkbox.js.map +1 -1
- package/dist/components/kol-input-color.js +1 -1
- package/dist/components/kol-input-color.js.map +1 -1
- package/dist/components/kol-input-date.js +1 -1
- package/dist/components/kol-input-date.js.map +1 -1
- package/dist/components/kol-input-email.js +1 -1
- package/dist/components/kol-input-email.js.map +1 -1
- package/dist/components/kol-input-file.js +1 -1
- package/dist/components/kol-input-file.js.map +1 -1
- package/dist/components/kol-input-number.js +1 -1
- package/dist/components/kol-input-number.js.map +1 -1
- package/dist/components/kol-input-password.js +1 -1
- package/dist/components/kol-input-password.js.map +1 -1
- package/dist/components/kol-input-radio.js +1 -1
- package/dist/components/kol-input-radio.js.map +1 -1
- package/dist/components/kol-input-range.js +1 -1
- package/dist/components/kol-input-range.js.map +1 -1
- package/dist/components/kol-input-text.js +1 -1
- package/dist/components/kol-input-text.js.map +1 -1
- package/dist/components/kol-kolibri.js +1 -1
- package/dist/components/kol-kolibri.js.map +1 -1
- package/dist/components/kol-link-button.js +1 -1
- package/dist/components/kol-link-button.js.map +1 -1
- package/dist/components/kol-link-wc.js +1 -1
- package/dist/components/kol-link-wc.js.map +1 -1
- package/dist/components/kol-link.js +1 -1
- package/dist/components/kol-link.js.map +1 -1
- package/dist/components/kol-modal.js +1 -1
- package/dist/components/kol-modal.js.map +1 -1
- package/dist/components/kol-nav.js +1 -1
- package/dist/components/kol-nav.js.map +1 -1
- package/dist/components/kol-pagination.js +1 -1
- package/dist/components/kol-pagination.js.map +1 -1
- package/dist/components/kol-popover-button.js +1 -1
- package/dist/components/kol-popover-button.js.map +1 -1
- package/dist/components/kol-popover-wc.js +1 -1
- package/dist/components/kol-popover-wc.js.map +1 -1
- package/dist/components/kol-progress.js +1 -1
- package/dist/components/kol-progress.js.map +1 -1
- package/dist/components/kol-quote.js +1 -1
- package/dist/components/kol-quote.js.map +1 -1
- package/dist/components/kol-select.js +1 -1
- package/dist/components/kol-select.js.map +1 -1
- package/dist/components/kol-single-select.js +1 -1
- package/dist/components/kol-single-select.js.map +1 -1
- package/dist/components/kol-skip-nav.js +1 -1
- package/dist/components/kol-skip-nav.js.map +1 -1
- package/dist/components/kol-spin.js +1 -1
- package/dist/components/kol-spin.js.map +1 -1
- package/dist/components/kol-split-button.js +1 -1
- package/dist/components/kol-split-button.js.map +1 -1
- package/dist/components/kol-table-stateful.js +1 -1
- package/dist/components/kol-table-stateful.js.map +1 -1
- package/dist/components/kol-table-stateless-wc.js +1 -1
- package/dist/components/kol-table-stateless-wc.js.map +1 -1
- package/dist/components/kol-table-stateless.js +1 -1
- package/dist/components/kol-table-stateless.js.map +1 -1
- package/dist/components/kol-tabs.js +1 -1
- package/dist/components/kol-tabs.js.map +1 -1
- package/dist/components/kol-textarea.js +1 -1
- package/dist/components/kol-textarea.js.map +1 -1
- package/dist/components/kol-toast-container.js +1 -1
- package/dist/components/kol-toast-container.js.map +1 -1
- package/dist/components/kol-toolbar.js +1 -1
- package/dist/components/kol-toolbar.js.map +1 -1
- package/dist/components/kol-tooltip-wc.js +1 -1
- package/dist/components/kol-tooltip-wc.js.map +1 -1
- package/dist/components/kol-tree-item-wc.js +1 -1
- package/dist/components/kol-tree-item-wc.js.map +1 -1
- package/dist/components/kol-tree-item.js +1 -1
- package/dist/components/kol-tree-item.js.map +1 -1
- package/dist/components/kol-tree-wc.js +1 -1
- package/dist/components/kol-tree-wc.js.map +1 -1
- package/dist/components/kol-tree.js +1 -1
- package/dist/components/kol-tree.js.map +1 -1
- package/dist/components/kol-version.js +1 -1
- package/dist/components/kol-version.js.map +1 -1
- package/dist/components/reuse.js +1 -1
- package/dist/components/reuse.js.map +1 -1
- package/dist/components/tslib.es6.js.map +1 -1
- package/dist/esm/Alert-0f69eea1.js +4 -0
- package/dist/esm/Alert-0f69eea1.js.map +1 -0
- package/dist/esm/Collapsible-951c7b56.js +4 -0
- package/dist/esm/Collapsible-951c7b56.js.map +1 -0
- package/dist/esm/CustomSuggestionsOptionsGroup-515a2540.js +4 -0
- package/dist/esm/CustomSuggestionsOptionsGroup-515a2540.js.map +1 -0
- package/dist/esm/FieldControlStateWrapper-5af39a4b.js +4 -0
- package/dist/esm/FieldControlStateWrapper-5af39a4b.js.map +1 -0
- package/dist/esm/Heading-a618bdb4.js +4 -0
- package/dist/esm/Heading-a618bdb4.js.map +1 -0
- package/dist/esm/Icon-461f168a.js +4 -0
- package/dist/esm/Icon-461f168a.js.map +1 -0
- package/dist/esm/Input-bc300ed0.js +4 -0
- package/dist/esm/Input-bc300ed0.js.map +1 -0
- package/dist/esm/InputStateWrapper-9fa8916e.js +4 -0
- package/dist/esm/InputStateWrapper-9fa8916e.js.map +1 -0
- package/dist/esm/InternalUnderlinedBadgeText-f50a35ad.js +4 -0
- package/dist/esm/InternalUnderlinedBadgeText-f50a35ad.js.map +1 -0
- package/dist/esm/Span-74e5ea8f.js +4 -0
- package/dist/esm/Span-74e5ea8f.js.map +1 -0
- package/dist/esm/{align-878fb132.js → align-60c95351.js} +1 -1
- package/dist/esm/{align-878fb132.js.map → align-60c95351.js.map} +1 -1
- package/dist/esm/{align-floating-elements-db77d917.js → align-floating-elements-387a1e9b.js} +1 -1
- package/dist/esm/{align-floating-elements-db77d917.js.map → align-floating-elements-387a1e9b.js.map} +1 -1
- package/dist/esm/{app-globals-3e243dfb.js → app-globals-1e7f1d4a.js} +1 -1
- package/dist/esm/{app-globals-3e243dfb.js.map → app-globals-1e7f1d4a.js.map} +1 -1
- package/dist/esm/{aria-expanded-9f877821.js → button-variant-87a9d78a.js} +1 -1
- package/dist/esm/button-variant-87a9d78a.js.map +1 -0
- package/dist/esm/callback-2c4e1e78.js +4 -0
- package/dist/esm/callback-2c4e1e78.js.map +1 -0
- package/dist/esm/{common-0f1f2276.js → common-54bf85ba.js} +1 -1
- package/dist/esm/{common-0f1f2276.js.map → common-54bf85ba.js.map} +1 -1
- package/dist/esm/component-names-545d6582.js +4 -0
- package/dist/esm/component-names-545d6582.js.map +1 -0
- package/dist/esm/controller-5e9f32ca.js +4 -0
- package/dist/esm/{controller-4a9a50f2.js.map → controller-5e9f32ca.js.map} +1 -1
- package/dist/esm/{controller-a3c1b90d.js → controller-868d4820.js} +1 -1
- package/dist/esm/{controller-a3c1b90d.js.map → controller-868d4820.js.map} +1 -1
- package/dist/esm/{controller-96d99a72.js → controller-88aff6ff.js} +1 -1
- package/dist/esm/{controller-96d99a72.js.map → controller-88aff6ff.js.map} +1 -1
- package/dist/esm/{controller-afbd59b5.js → controller-c6361758.js} +1 -1
- package/dist/esm/{controller-afbd59b5.js.map → controller-c6361758.js.map} +1 -1
- package/dist/esm/controller-icon-4031c3ea.js +4 -0
- package/dist/esm/controller-icon-4031c3ea.js.map +1 -0
- package/dist/esm/{dev.utils-0b748391.js → dev.utils-930d9493.js} +1 -1
- package/dist/esm/{dev.utils-0b748391.js.map → dev.utils-930d9493.js.map} +1 -1
- package/dist/esm/{devtools-3291e772.js → devtools-878bf068.js} +1 -1
- package/dist/esm/{devtools-3291e772.js.map → devtools-878bf068.js.map} +1 -1
- package/dist/esm/events-5adf6b62.js +4 -0
- package/dist/esm/events-5adf6b62.js.map +1 -0
- package/dist/esm/getRenderStates-8a9e5504.js +4 -0
- package/dist/esm/getRenderStates-8a9e5504.js.map +1 -0
- package/dist/esm/{i18n-5fe08f1c.js → i18n-005310a7.js} +1 -1
- package/dist/esm/{i18n-5fe08f1c.js.map → i18n-005310a7.js.map} +1 -1
- package/dist/esm/i18n-c120df5c.js +4 -0
- package/dist/esm/i18n-c120df5c.js.map +1 -0
- package/dist/esm/icons-458eee6a.js +4 -0
- package/dist/esm/icons-458eee6a.js.map +1 -0
- package/dist/esm/index-5ec1eac2.js +4 -0
- package/dist/esm/{index-f0de5c73.js.map → index-5ec1eac2.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/isObject-ffcbbb76.js +4 -0
- package/dist/esm/isObject-ffcbbb76.js.map +1 -0
- package/dist/esm/kol-abbr.entry.js +1 -1
- package/dist/esm/kol-abbr.entry.js.map +1 -1
- package/dist/esm/kol-accordion.entry.js +1 -1
- package/dist/esm/kol-accordion.entry.js.map +1 -1
- package/dist/esm/kol-alert-wc.entry.js +1 -1
- package/dist/esm/kol-alert-wc.entry.js.map +1 -1
- package/dist/esm/kol-alert.entry.js +1 -1
- package/dist/esm/kol-alert.entry.js.map +1 -1
- package/dist/esm/kol-avatar-wc.entry.js +1 -1
- package/dist/esm/kol-avatar-wc.entry.js.map +1 -1
- package/dist/esm/kol-avatar.entry.js +1 -1
- package/dist/esm/kol-avatar.entry.js.map +1 -1
- package/dist/esm/kol-badge.entry.js +1 -1
- package/dist/esm/kol-badge.entry.js.map +1 -1
- package/dist/esm/kol-breadcrumb.entry.js +1 -1
- package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
- package/dist/esm/kol-button-link.entry.js +1 -1
- package/dist/esm/kol-button-link.entry.js.map +1 -1
- package/dist/esm/kol-button-wc.entry.js +1 -1
- package/dist/esm/kol-button-wc.entry.js.map +1 -1
- package/dist/esm/kol-button.entry.js +1 -1
- package/dist/esm/kol-button.entry.js.map +1 -1
- package/dist/esm/kol-card.entry.js +1 -1
- package/dist/esm/kol-card.entry.js.map +1 -1
- package/dist/esm/kol-combobox.entry.js +1 -1
- package/dist/esm/kol-combobox.entry.js.map +1 -1
- package/dist/esm/kol-details.entry.js +1 -1
- package/dist/esm/kol-details.entry.js.map +1 -1
- package/dist/esm/kol-drawer.entry.js +1 -1
- package/dist/esm/kol-drawer.entry.js.map +1 -1
- package/dist/esm/kol-form.entry.js +1 -1
- package/dist/esm/kol-form.entry.js.map +1 -1
- package/dist/esm/kol-heading.entry.js +1 -1
- package/dist/esm/kol-heading.entry.js.map +1 -1
- package/dist/esm/kol-icon.entry.js +1 -1
- package/dist/esm/kol-icon.entry.js.map +1 -1
- package/dist/esm/kol-image.entry.js +1 -1
- package/dist/esm/kol-image.entry.js.map +1 -1
- package/dist/esm/kol-input-checkbox.entry.js +1 -1
- package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
- package/dist/esm/kol-input-color.entry.js +1 -1
- package/dist/esm/kol-input-color.entry.js.map +1 -1
- package/dist/esm/kol-input-date.entry.js +1 -1
- package/dist/esm/kol-input-date.entry.js.map +1 -1
- package/dist/esm/kol-input-email.entry.js +1 -1
- package/dist/esm/kol-input-email.entry.js.map +1 -1
- package/dist/esm/kol-input-file.entry.js +1 -1
- package/dist/esm/kol-input-file.entry.js.map +1 -1
- package/dist/esm/kol-input-number.entry.js +1 -1
- package/dist/esm/kol-input-number.entry.js.map +1 -1
- package/dist/esm/kol-input-password.entry.js +1 -1
- package/dist/esm/kol-input-password.entry.js.map +1 -1
- package/dist/esm/kol-input-radio.entry.js +1 -1
- package/dist/esm/kol-input-radio.entry.js.map +1 -1
- package/dist/esm/kol-input-range.entry.js +1 -1
- package/dist/esm/kol-input-range.entry.js.map +1 -1
- package/dist/esm/kol-input-text.entry.js +1 -1
- package/dist/esm/kol-input-text.entry.js.map +1 -1
- package/dist/esm/kol-kolibri.entry.js +1 -1
- package/dist/esm/kol-kolibri.entry.js.map +1 -1
- package/dist/esm/kol-link-button.entry.js +1 -1
- package/dist/esm/kol-link-button.entry.js.map +1 -1
- package/dist/esm/kol-link-wc.entry.js +1 -1
- package/dist/esm/kol-link-wc.entry.js.map +1 -1
- package/dist/esm/kol-link.entry.js +1 -1
- package/dist/esm/kol-link.entry.js.map +1 -1
- package/dist/esm/kol-modal.entry.js +1 -1
- package/dist/esm/kol-modal.entry.js.map +1 -1
- package/dist/esm/kol-nav.entry.js +1 -1
- package/dist/esm/kol-nav.entry.js.map +1 -1
- package/dist/esm/kol-pagination.entry.js +1 -1
- package/dist/esm/kol-pagination.entry.js.map +1 -1
- package/dist/esm/kol-popover-button.entry.js +1 -1
- package/dist/esm/kol-popover-button.entry.js.map +1 -1
- package/dist/esm/kol-popover-wc.entry.js +1 -1
- package/dist/esm/kol-popover-wc.entry.js.map +1 -1
- package/dist/esm/kol-progress.entry.js +1 -1
- package/dist/esm/kol-progress.entry.js.map +1 -1
- package/dist/esm/kol-quote.entry.js +1 -1
- package/dist/esm/kol-quote.entry.js.map +1 -1
- package/dist/esm/kol-select.entry.js +1 -1
- package/dist/esm/kol-select.entry.js.map +1 -1
- package/dist/esm/kol-single-select.entry.js +1 -1
- package/dist/esm/kol-single-select.entry.js.map +1 -1
- package/dist/esm/kol-skip-nav.entry.js +1 -1
- package/dist/esm/kol-skip-nav.entry.js.map +1 -1
- package/dist/esm/kol-spin.entry.js +1 -1
- package/dist/esm/kol-spin.entry.js.map +1 -1
- package/dist/esm/kol-split-button.entry.js +1 -1
- package/dist/esm/kol-split-button.entry.js.map +1 -1
- package/dist/esm/kol-table-stateful.entry.js +1 -1
- package/dist/esm/kol-table-stateful.entry.js.map +1 -1
- package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
- package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
- package/dist/esm/kol-table-stateless.entry.js +1 -1
- package/dist/esm/kol-table-stateless.entry.js.map +1 -1
- package/dist/esm/kol-tabs.entry.js +1 -1
- package/dist/esm/kol-tabs.entry.js.map +1 -1
- package/dist/esm/kol-textarea.entry.js +1 -1
- package/dist/esm/kol-textarea.entry.js.map +1 -1
- package/dist/esm/kol-toast-container.entry.js +1 -1
- package/dist/esm/kol-toast-container.entry.js.map +1 -1
- package/dist/esm/kol-toolbar.entry.js +1 -1
- package/dist/esm/kol-toolbar.entry.js.map +1 -1
- package/dist/esm/kol-tooltip-wc.entry.js +1 -1
- package/dist/esm/kol-tooltip-wc.entry.js.map +1 -1
- package/dist/esm/kol-tree-item-wc.entry.js +1 -1
- package/dist/esm/kol-tree-item-wc.entry.js.map +1 -1
- package/dist/esm/kol-tree-item.entry.js +1 -1
- package/dist/esm/kol-tree-item.entry.js.map +1 -1
- package/dist/esm/kol-tree-wc.entry.js +1 -1
- package/dist/esm/kol-tree-wc.entry.js.map +1 -1
- package/dist/esm/kol-tree.entry.js +1 -1
- package/dist/esm/kol-tree.entry.js.map +1 -1
- package/dist/esm/kol-version.entry.js +1 -1
- package/dist/esm/kol-version.entry.js.map +1 -1
- package/dist/esm/kolibri.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/reuse-f46e7e35.js +4 -0
- package/dist/esm/reuse-f46e7e35.js.map +1 -0
- package/dist/esm/test-component.entry.js +1 -1
- package/dist/esm/{tooltip-align-5902aa96.js → tooltip-align-c6eb75ce.js} +1 -1
- package/dist/esm/{tooltip-align-5902aa96.js.map → tooltip-align-c6eb75ce.js.map} +1 -1
- package/dist/esm/tslib.es6-1173d062.js.map +1 -0
- package/dist/kolibri/Alert-0f69eea1.js +4 -0
- package/dist/kolibri/Alert-0f69eea1.js.map +1 -0
- package/dist/kolibri/Collapsible-951c7b56.js +4 -0
- package/dist/kolibri/Collapsible-951c7b56.js.map +1 -0
- package/dist/kolibri/CustomSuggestionsOptionsGroup-515a2540.js +4 -0
- package/dist/kolibri/CustomSuggestionsOptionsGroup-515a2540.js.map +1 -0
- package/dist/kolibri/FieldControlStateWrapper-5af39a4b.js +4 -0
- package/dist/kolibri/FieldControlStateWrapper-5af39a4b.js.map +1 -0
- package/dist/kolibri/Heading-a618bdb4.js +4 -0
- package/dist/kolibri/Heading-a618bdb4.js.map +1 -0
- package/dist/kolibri/Icon-461f168a.js +4 -0
- package/dist/kolibri/Icon-461f168a.js.map +1 -0
- package/dist/kolibri/Input-bc300ed0.js +4 -0
- package/dist/kolibri/Input-bc300ed0.js.map +1 -0
- package/dist/kolibri/InputStateWrapper-9fa8916e.js +4 -0
- package/dist/kolibri/InputStateWrapper-9fa8916e.js.map +1 -0
- package/dist/kolibri/InternalUnderlinedBadgeText-f50a35ad.js +4 -0
- package/dist/kolibri/InternalUnderlinedBadgeText-f50a35ad.js.map +1 -0
- package/dist/kolibri/Span-74e5ea8f.js +4 -0
- package/dist/kolibri/Span-74e5ea8f.js.map +1 -0
- package/dist/kolibri/{align-878fb132.js → align-60c95351.js} +1 -1
- package/dist/kolibri/{align-floating-elements-db77d917.js → align-floating-elements-387a1e9b.js} +1 -1
- package/dist/kolibri/{app-globals-3e243dfb.js → app-globals-1e7f1d4a.js} +1 -1
- package/dist/kolibri/button-variant-87a9d78a.js +4 -0
- package/dist/kolibri/button-variant-87a9d78a.js.map +1 -0
- package/dist/kolibri/callback-2c4e1e78.js +4 -0
- package/dist/kolibri/callback-2c4e1e78.js.map +1 -0
- package/dist/kolibri/{common-0f1f2276.js → common-54bf85ba.js} +1 -1
- package/dist/kolibri/component-names-545d6582.js +4 -0
- package/dist/kolibri/component-names-545d6582.js.map +1 -0
- package/dist/kolibri/controller-5e9f32ca.js +4 -0
- package/dist/kolibri/{controller-4a9a50f2.js.map → controller-5e9f32ca.js.map} +1 -1
- package/dist/kolibri/{controller-a3c1b90d.js → controller-868d4820.js} +1 -1
- package/dist/kolibri/{controller-96d99a72.js → controller-88aff6ff.js} +1 -1
- package/dist/kolibri/{controller-afbd59b5.js → controller-c6361758.js} +1 -1
- package/dist/kolibri/controller-icon-4031c3ea.js +4 -0
- package/dist/kolibri/controller-icon-4031c3ea.js.map +1 -0
- package/dist/kolibri/{dev.utils-0b748391.js → dev.utils-930d9493.js} +1 -1
- package/dist/kolibri/{devtools-3291e772.js → devtools-878bf068.js} +1 -1
- package/dist/kolibri/events-5adf6b62.js +4 -0
- package/dist/kolibri/events-5adf6b62.js.map +1 -0
- package/dist/kolibri/getRenderStates-8a9e5504.js +4 -0
- package/dist/kolibri/getRenderStates-8a9e5504.js.map +1 -0
- package/dist/kolibri/i18n-005310a7.js +4 -0
- package/dist/kolibri/i18n-c120df5c.js +4 -0
- package/dist/kolibri/i18n-c120df5c.js.map +1 -0
- package/dist/kolibri/icons-458eee6a.js +4 -0
- package/dist/kolibri/icons-458eee6a.js.map +1 -0
- package/dist/kolibri/{index-f0de5c73.js → index-5ec1eac2.js} +2 -2
- package/dist/kolibri/index-5ec1eac2.js.map +1 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/index.esm.js.map +1 -1
- package/dist/kolibri/isObject-ffcbbb76.js +4 -0
- package/dist/kolibri/isObject-ffcbbb76.js.map +1 -0
- package/dist/kolibri/kol-abbr.entry.js +1 -1
- package/dist/kolibri/kol-abbr.entry.js.map +1 -1
- package/dist/kolibri/kol-accordion.entry.js +1 -1
- package/dist/kolibri/kol-accordion.entry.js.map +1 -1
- package/dist/kolibri/kol-alert-wc.entry.js +1 -1
- package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-alert.entry.js +1 -1
- package/dist/kolibri/kol-alert.entry.js.map +1 -1
- package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
- package/dist/kolibri/kol-avatar-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-avatar.entry.js +1 -1
- package/dist/kolibri/kol-avatar.entry.js.map +1 -1
- package/dist/kolibri/kol-badge.entry.js +1 -1
- package/dist/kolibri/kol-badge.entry.js.map +1 -1
- package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
- package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
- package/dist/kolibri/kol-button-link.entry.js +1 -1
- package/dist/kolibri/kol-button-link.entry.js.map +1 -1
- package/dist/kolibri/kol-button-wc.entry.js +1 -1
- package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-button.entry.js +1 -1
- package/dist/kolibri/kol-button.entry.js.map +1 -1
- package/dist/kolibri/kol-card.entry.js +1 -1
- package/dist/kolibri/kol-card.entry.js.map +1 -1
- package/dist/kolibri/kol-combobox.entry.js +1 -1
- package/dist/kolibri/kol-combobox.entry.js.map +1 -1
- package/dist/kolibri/kol-details.entry.js +1 -1
- package/dist/kolibri/kol-details.entry.js.map +1 -1
- package/dist/kolibri/kol-drawer.entry.js +1 -1
- package/dist/kolibri/kol-drawer.entry.js.map +1 -1
- package/dist/kolibri/kol-form.entry.js +1 -1
- package/dist/kolibri/kol-form.entry.js.map +1 -1
- package/dist/kolibri/kol-heading.entry.js +1 -1
- package/dist/kolibri/kol-heading.entry.js.map +1 -1
- package/dist/kolibri/kol-icon.entry.js +1 -1
- package/dist/kolibri/kol-icon.entry.js.map +1 -1
- package/dist/kolibri/kol-image.entry.js +1 -1
- package/dist/kolibri/kol-image.entry.js.map +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
- package/dist/kolibri/kol-input-color.entry.js +1 -1
- package/dist/kolibri/kol-input-color.entry.js.map +1 -1
- package/dist/kolibri/kol-input-date.entry.js +1 -1
- package/dist/kolibri/kol-input-date.entry.js.map +1 -1
- package/dist/kolibri/kol-input-email.entry.js +1 -1
- package/dist/kolibri/kol-input-email.entry.js.map +1 -1
- package/dist/kolibri/kol-input-file.entry.js +1 -1
- package/dist/kolibri/kol-input-file.entry.js.map +1 -1
- package/dist/kolibri/kol-input-number.entry.js +1 -1
- package/dist/kolibri/kol-input-number.entry.js.map +1 -1
- package/dist/kolibri/kol-input-password.entry.js +1 -1
- package/dist/kolibri/kol-input-password.entry.js.map +1 -1
- package/dist/kolibri/kol-input-radio.entry.js +1 -1
- package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
- package/dist/kolibri/kol-input-range.entry.js +1 -1
- package/dist/kolibri/kol-input-range.entry.js.map +1 -1
- package/dist/kolibri/kol-input-text.entry.js +1 -1
- package/dist/kolibri/kol-input-text.entry.js.map +1 -1
- package/dist/kolibri/kol-kolibri.entry.js +1 -1
- package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
- package/dist/kolibri/kol-link-button.entry.js +1 -1
- package/dist/kolibri/kol-link-button.entry.js.map +1 -1
- package/dist/kolibri/kol-link-wc.entry.js +1 -1
- package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-link.entry.js +1 -1
- package/dist/kolibri/kol-link.entry.js.map +1 -1
- package/dist/kolibri/kol-modal.entry.js +1 -1
- package/dist/kolibri/kol-modal.entry.js.map +1 -1
- package/dist/kolibri/kol-nav.entry.js +1 -1
- package/dist/kolibri/kol-nav.entry.js.map +1 -1
- package/dist/kolibri/kol-pagination.entry.js +1 -1
- package/dist/kolibri/kol-pagination.entry.js.map +1 -1
- package/dist/kolibri/kol-popover-button.entry.js +1 -1
- package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
- package/dist/kolibri/kol-popover-wc.entry.js +1 -1
- package/dist/kolibri/kol-popover-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-progress.entry.js +1 -1
- package/dist/kolibri/kol-progress.entry.js.map +1 -1
- package/dist/kolibri/kol-quote.entry.js +1 -1
- package/dist/kolibri/kol-quote.entry.js.map +1 -1
- package/dist/kolibri/kol-select.entry.js +1 -1
- package/dist/kolibri/kol-select.entry.js.map +1 -1
- package/dist/kolibri/kol-single-select.entry.js +1 -1
- package/dist/kolibri/kol-single-select.entry.js.map +1 -1
- package/dist/kolibri/kol-skip-nav.entry.js +1 -1
- package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
- package/dist/kolibri/kol-spin.entry.js +1 -1
- package/dist/kolibri/kol-spin.entry.js.map +1 -1
- package/dist/kolibri/kol-split-button.entry.js +1 -1
- package/dist/kolibri/kol-split-button.entry.js.map +1 -1
- package/dist/kolibri/kol-table-stateful.entry.js +1 -1
- package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
- package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-table-stateless.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
- package/dist/kolibri/kol-tabs.entry.js +1 -1
- package/dist/kolibri/kol-tabs.entry.js.map +1 -1
- package/dist/kolibri/kol-textarea.entry.js +1 -1
- package/dist/kolibri/kol-textarea.entry.js.map +1 -1
- package/dist/kolibri/kol-toast-container.entry.js +1 -1
- package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
- package/dist/kolibri/kol-toolbar.entry.js +1 -1
- package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
- package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
- package/dist/kolibri/kol-tooltip-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
- package/dist/kolibri/kol-tree-item-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-tree-item.entry.js +1 -1
- package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
- package/dist/kolibri/kol-tree-wc.entry.js +1 -1
- package/dist/kolibri/kol-tree-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-tree.entry.js +1 -1
- package/dist/kolibri/kol-tree.entry.js.map +1 -1
- package/dist/kolibri/kol-version.entry.js +1 -1
- package/dist/kolibri/kol-version.entry.js.map +1 -1
- package/dist/kolibri/kolibri.esm.js +1 -1
- package/dist/kolibri/kolibri.esm.js.map +1 -1
- package/dist/kolibri/reuse-f46e7e35.js +4 -0
- package/dist/kolibri/reuse-f46e7e35.js.map +1 -0
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/tooltip-align-c6eb75ce.js +4 -0
- package/dist/kolibri/tslib.es6-1173d062.js.map +1 -0
- package/dist/types/components/@deprecated/input/controller-icon.d.ts +2 -2
- package/dist/types/components/@deprecated/input/controller.d.ts +3 -3
- package/dist/types/components/@deprecated/input/types-icon.d.ts +4 -2
- package/dist/types/components/@deprecated/input/types.d.ts +1 -2
- package/dist/types/components/abbr/shadow.d.ts +2 -5
- package/dist/types/components/accordion/shadow.d.ts +1 -1
- package/dist/types/components/alert/component.d.ts +1 -0
- package/dist/types/components/badge/shadow.d.ts +1 -0
- package/dist/types/components/button/component.d.ts +1 -0
- package/dist/types/components/button/shadow.d.ts +0 -2
- package/dist/types/components/button-link/shadow.d.ts +0 -2
- package/dist/types/components/card/shadow.d.ts +2 -1
- package/dist/types/components/combobox/shadow.d.ts +7 -9
- package/dist/types/components/component-list.d.ts +16 -2
- package/dist/types/components/details/shadow.d.ts +1 -2
- package/dist/types/components/drawer/shadow.d.ts +5 -5
- package/dist/types/components/form/shadow.d.ts +1 -0
- package/dist/types/components/heading/shadow.d.ts +9 -3
- package/dist/types/components/input/controller.d.ts +1 -1
- package/dist/types/components/input/types.d.ts +3 -2
- package/dist/types/components/input-adapter-leanup/controller.d.ts +0 -1
- package/dist/types/components/input-adapter-leanup/types.d.ts +0 -1
- package/dist/types/components/input-checkbox/shadow.d.ts +7 -11
- package/dist/types/components/input-color/shadow.d.ts +18 -13
- package/dist/types/components/input-date/shadow.d.ts +9 -12
- package/dist/types/components/input-email/shadow.d.ts +7 -12
- package/dist/types/components/input-file/controller.d.ts +0 -1
- package/dist/types/components/input-file/shadow.d.ts +12 -14
- package/dist/types/components/input-number/shadow.d.ts +14 -18
- package/dist/types/components/input-password/shadow.d.ts +8 -12
- package/dist/types/components/input-radio/shadow.d.ts +7 -11
- package/dist/types/components/input-range/shadow.d.ts +10 -12
- package/dist/types/components/input-text/shadow.d.ts +9 -12
- package/dist/types/components/link/component.d.ts +6 -1
- package/dist/types/components/link/shadow.d.ts +0 -2
- package/dist/types/components/link-button/shadow.d.ts +0 -2
- package/dist/types/components/modal/shadow.d.ts +5 -3
- package/dist/types/components/pagination/shadow.d.ts +1 -0
- package/dist/types/components/select/shadow.d.ts +8 -12
- package/dist/types/components/single-select/shadow.d.ts +8 -9
- package/dist/types/components/split-button/shadow.d.ts +0 -1
- package/dist/types/components/table-stateful/shadow.d.ts +3 -6
- package/dist/types/components/table-stateless/component.d.ts +9 -2
- package/dist/types/components/table-stateless/shadow.d.ts +3 -2
- package/dist/types/components/textarea/shadow.d.ts +7 -12
- package/dist/types/components.d.ts +215 -1299
- package/dist/types/core/component-names.d.ts +1 -11
- package/dist/types/e2e/index.d.ts +1 -0
- package/dist/types/e2e/input-callbacks-and-events.d.ts +9 -0
- package/dist/types/e2e/input-value-reflection.d.ts +5 -0
- package/dist/types/e2e/utils/FillAction.d.ts +4 -0
- package/dist/types/e2e/utils/inputsSelector.d.ts +2 -0
- package/dist/types/functional-component-wrappers/CheckboxStateWrapper/CheckboxStateWrapper.d.ts +10 -0
- package/dist/types/functional-component-wrappers/CheckboxStateWrapper/index.d.ts +1 -0
- package/dist/types/functional-component-wrappers/FieldControlStateWrapper/FieldControlStateWrapper.d.ts +9 -0
- package/dist/types/functional-component-wrappers/FieldControlStateWrapper/index.d.ts +1 -0
- package/dist/types/functional-component-wrappers/FormFieldStateWrapper/FormFieldStateWrapper.d.ts +9 -0
- package/dist/types/functional-component-wrappers/FormFieldStateWrapper/index.d.ts +1 -0
- package/dist/types/functional-component-wrappers/InputContainerStateWrapper/InputContainerStateWrapper.d.ts +9 -0
- package/dist/types/functional-component-wrappers/InputContainerStateWrapper/index.d.ts +1 -0
- package/dist/types/functional-component-wrappers/InputStateWrapper/InputStateWrapper.d.ts +10 -0
- package/dist/types/functional-component-wrappers/InputStateWrapper/index.d.ts +1 -0
- package/dist/types/functional-component-wrappers/SelectStateWrapper/SelectStateWrapper.d.ts +8 -0
- package/dist/types/functional-component-wrappers/SelectStateWrapper/index.d.ts +1 -0
- package/dist/types/functional-component-wrappers/TextAreaStateWrapper/TextAreaStateWrapper.d.ts +8 -0
- package/dist/types/functional-component-wrappers/TextAreaStateWrapper/index.d.ts +1 -0
- package/dist/types/functional-component-wrappers/_helpers/getRenderStates.d.ts +11 -0
- package/dist/types/functional-components/Alert/Alert.d.ts +1 -1
- package/dist/types/functional-components/Button/Button.d.ts +9 -0
- package/dist/types/functional-components/Button/index.d.ts +1 -0
- package/dist/types/functional-components/Button/tests/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/Collapsible/Collapsible.d.ts +1 -1
- package/dist/types/functional-components/CustomSuggestionsOption/CustomSuggestionsOption.d.ts +11 -0
- package/dist/types/functional-components/CustomSuggestionsOption/index.d.ts +1 -0
- package/dist/types/functional-components/CustomSuggestionsOption/test/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/CustomSuggestionsOptionsGroup/CustomSuggestionsOptionsGroup.d.ts +7 -0
- package/dist/types/functional-components/CustomSuggestionsOptionsGroup/index.d.ts +1 -0
- package/dist/types/functional-components/CustomSuggestionsOptionsGroup/test/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/CustomSuggestionsToggle/CustomSuggestionsToggle.d.ts +7 -0
- package/dist/types/functional-components/CustomSuggestionsToggle/index.d.ts +1 -0
- package/dist/types/functional-components/CustomSuggestionsToggle/test/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/FieldControl/FieldControl.d.ts +31 -0
- package/dist/types/functional-components/FieldControl/index.d.ts +1 -0
- package/dist/types/functional-components/FormField/FormField.d.ts +41 -0
- package/dist/types/functional-components/FormField/index.d.ts +1 -0
- package/dist/types/functional-components/FormField/tests/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/FormFieldCounter/FormFieldCounter.d.ts +8 -0
- package/dist/types/functional-components/FormFieldCounter/index.d.ts +1 -0
- package/dist/types/functional-components/FormFieldCounter/tests/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/FormFieldHint/FormFieldHint.d.ts +8 -0
- package/dist/types/functional-components/FormFieldHint/index.d.ts +1 -0
- package/dist/types/functional-components/FormFieldHint/tests/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/FormFieldLabel/FormFieldLabel.d.ts +18 -0
- package/dist/types/functional-components/FormFieldLabel/index.d.ts +1 -0
- package/dist/types/functional-components/FormFieldLabel/tests/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/FormFieldMsg/FormFieldMsg.d.ts +7 -6
- package/dist/types/functional-components/FormFieldMsg/tests/snapshort.test.d.ts +1 -0
- package/dist/types/functional-components/FormFieldTooltip/FormFieldTooltip.d.ts +12 -0
- package/dist/types/functional-components/FormFieldTooltip/index.d.ts +1 -0
- package/dist/types/functional-components/FormFieldTooltip/tests/snapshort.test.d.ts +1 -0
- package/dist/types/functional-components/Heading/Heading.d.ts +21 -0
- package/dist/types/functional-components/Heading/index.d.ts +1 -0
- package/dist/types/functional-components/Heading/test/Heading.test.d.ts +1 -0
- package/dist/types/functional-components/Heading/test/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/Icon/Icon.d.ts +11 -0
- package/dist/types/functional-components/Icon/index.d.ts +1 -0
- package/dist/types/functional-components/Icon/tests/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/IconButton/IconButton.d.ts +19 -0
- package/dist/types/functional-components/IconButton/index.d.ts +1 -0
- package/dist/types/functional-components/IconButton/tests/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/InputAdornment/InputAdornment.d.ts +7 -0
- package/dist/types/functional-components/InputAdornment/index.d.ts +1 -0
- package/dist/types/functional-components/InputAdornment/tests/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/InputContainer/InputContainer.d.ts +16 -0
- package/dist/types/functional-components/InputContainer/index.d.ts +1 -0
- package/dist/types/functional-components/InputContainer/tests/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/InternalUnderlinedBadgeText/InternalUnderlinedBadgeText.d.ts +8 -0
- package/dist/types/functional-components/InternalUnderlinedBadgeText/index.d.ts +1 -0
- package/dist/types/functional-components/Span/IconHelper.d.ts +6 -0
- package/dist/types/functional-components/Span/LabelHelper.d.ts +9 -0
- package/dist/types/functional-components/Span/Span.d.ts +12 -0
- package/dist/types/functional-components/Span/SpanCoreHelper.d.ts +9 -0
- package/dist/types/functional-components/Span/index.d.ts +1 -0
- package/dist/types/functional-components/Span/test/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/Suggestions/Suggestions.d.ts +9 -0
- package/dist/types/functional-components/Suggestions/index.d.ts +1 -0
- package/dist/types/functional-components/Suggestions/tests/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/ToastItem/ToastItem.d.ts +10 -0
- package/dist/types/functional-components/ToastItem/index.d.ts +1 -0
- package/dist/types/functional-components/ToastItem/tests/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/index.d.ts +1 -1
- package/dist/types/functional-components/inputs/Checkbox/Checkbox.d.ts +10 -0
- package/dist/types/functional-components/inputs/Checkbox/index.d.ts +1 -0
- package/dist/types/functional-components/inputs/Combobox/Combobox.d.ts +10 -0
- package/dist/types/functional-components/inputs/Input/Input.d.ts +16 -0
- package/dist/types/functional-components/inputs/Input/index.d.ts +1 -0
- package/dist/types/functional-components/inputs/Input/tests/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/inputs/NativeOption/NativeOption.d.ts +12 -0
- package/dist/types/functional-components/inputs/NativeOption/index.d.ts +1 -0
- package/dist/types/functional-components/inputs/NativeOption/tests/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/inputs/NativeOptionList/NativeOptionList.d.ts +14 -0
- package/dist/types/functional-components/inputs/NativeOptionList/index.d.ts +1 -0
- package/dist/types/functional-components/inputs/NativeOptionList/tests/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/inputs/NativeSelect/NativeSelect.d.ts +12 -0
- package/dist/types/functional-components/inputs/NativeSelect/index.d.ts +1 -0
- package/dist/types/functional-components/inputs/NativeSelect/tests/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/inputs/TextArea/TextArea.d.ts +11 -0
- package/dist/types/functional-components/inputs/TextArea/index.d.ts +1 -0
- package/dist/types/functional-components/inputs/TextArea/tests/snapshot.test.d.ts +1 -0
- package/dist/types/functional-components/inputs/_helpers/getDefaultProps.d.ts +11 -0
- package/dist/types/functional-components/inputs/_helpers/getDefaultProps.test.d.ts +1 -0
- package/dist/types/functional-components/inputs/_types/index.d.ts +6 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/locales/de.d.ts +2 -0
- package/dist/types/locales/en.d.ts +2 -0
- package/dist/types/schema/components/abbr.d.ts +3 -3
- package/dist/types/schema/components/badge.d.ts +5 -3
- package/dist/types/schema/components/button.d.ts +1 -0
- package/dist/types/schema/components/combobox.d.ts +7 -8
- package/dist/types/schema/components/form.d.ts +3 -3
- package/dist/types/schema/components/icon.d.ts +1 -0
- package/dist/types/schema/components/index.d.ts +1 -1
- package/dist/types/schema/components/input-checkbox.d.ts +3 -8
- package/dist/types/schema/components/input-color.d.ts +7 -10
- package/dist/types/schema/components/input-date.d.ts +6 -8
- package/dist/types/schema/components/input-email.d.ts +7 -10
- package/dist/types/schema/components/input-file.d.ts +7 -12
- package/dist/types/schema/components/input-number.d.ts +6 -8
- package/dist/types/schema/components/input-password.d.ts +8 -11
- package/dist/types/schema/components/input-radio.d.ts +3 -8
- package/dist/types/schema/components/input-range.d.ts +7 -10
- package/dist/types/schema/components/input-text.d.ts +7 -10
- package/dist/types/schema/components/input.d.ts +4 -4
- package/dist/types/schema/components/link-button.d.ts +2 -2
- package/dist/types/schema/components/link.d.ts +2 -2
- package/dist/types/schema/components/modal.d.ts +3 -4
- package/dist/types/schema/components/pagination.d.ts +2 -2
- package/dist/types/schema/components/select.d.ts +8 -10
- package/dist/types/schema/components/single-select.d.ts +7 -9
- package/dist/types/schema/components/table.d.ts +7 -16
- package/dist/types/schema/components/tableStateless.d.ts +5 -8
- package/dist/types/schema/components/tabs.d.ts +3 -3
- package/dist/types/schema/components/textarea.d.ts +8 -12
- package/dist/types/schema/components/toaster.d.ts +0 -2
- package/dist/types/schema/enums/{events.d.ts → callback.d.ts} +6 -4
- package/dist/types/schema/enums/index.d.ts +1 -1
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/interfaces/EventDetail.d.ts +4 -0
- package/dist/types/schema/props/accordion-callbacks.d.ts +2 -2
- package/dist/types/schema/props/alert.d.ts +0 -2
- package/dist/types/schema/props/button-callbacks.d.ts +3 -3
- package/dist/types/schema/props/details-callbacks.d.ts +2 -2
- package/dist/types/schema/props/hide-msg.d.ts +7 -0
- package/dist/types/schema/props/icons.d.ts +1 -5
- package/dist/types/schema/props/index.d.ts +1 -1
- package/dist/types/schema/props/link-on-callbacks.d.ts +2 -2
- package/dist/types/schema/props/min-width.d.ts +7 -0
- package/dist/types/schema/props/msg.d.ts +6 -1
- package/dist/types/schema/props/popover-callbacks.d.ts +2 -2
- package/dist/types/schema/props/table-callbacks.d.ts +4 -4
- package/dist/types/schema/props/variant/modal.d.ts +8 -0
- package/dist/types/schema/tag-names.d.ts +45 -48
- package/dist/types/schema/types/icons.d.ts +1 -5
- package/dist/types/schema/types/input/control/number.d.ts +4 -6
- package/dist/types/schema/types/input/types.d.ts +6 -6
- package/dist/types/schema/types/table.d.ts +1 -1
- package/dist/types/utils/events.d.ts +19 -5
- package/doc/abbr.md +7 -48
- package/doc/accordion.md +1 -118
- package/doc/alert.md +2 -86
- package/doc/avatar.md +1 -45
- package/doc/badge.md +1 -96
- package/doc/breadcrumb.md +1 -84
- package/doc/button-link.md +1 -59
- package/doc/button.md +1 -128
- package/doc/card.md +2 -66
- package/doc/combobox.md +21 -72
- package/doc/components.md +1 -1
- package/doc/details.md +1 -99
- package/doc/drawer.md +1 -127
- package/doc/form.md +1 -21
- package/doc/heading.md +5 -38
- package/doc/icon.md +1 -43
- package/doc/image.md +1 -51
- package/doc/input-checkbox.md +26 -116
- package/doc/input-color.md +21 -77
- package/doc/input-date.md +27 -138
- package/doc/input-email.md +28 -105
- package/doc/input-file.md +21 -98
- package/doc/input-number.md +27 -95
- package/doc/input-password.md +27 -96
- package/doc/input-radio.md +20 -129
- package/doc/input-range.md +23 -110
- package/doc/input-text.md +29 -121
- package/doc/kolibri.md +1 -18
- package/doc/link-button.md +1 -37
- package/doc/link.md +1 -82
- package/doc/modal.md +7 -97
- package/doc/nav.md +1 -110
- package/doc/pagination.md +1 -42
- package/doc/progress.md +1 -41
- package/doc/quote.md +1 -63
- package/doc/select.md +23 -148
- package/doc/single-select.md +21 -51
- package/doc/skip-nav.md +1 -50
- package/doc/spin.md +1 -113
- package/doc/split-button.md +1 -25
- package/doc/table-stateful.md +13 -200
- package/doc/table-stateless.md +10 -81
- package/doc/tabs.md +1 -89
- package/doc/textarea.md +5 -90
- package/doc/toaster.md +4 -74
- package/doc/toolbar.md +1 -46
- package/doc/tree-item.md +1 -3
- package/doc/tree.md +1 -70
- package/doc/version.md +1 -23
- package/package.json +2 -1
- package/vscode-custom-data.json +146 -522
- package/dist/cjs/Alert-75d85d8a.js +0 -4
- package/dist/cjs/Alert-75d85d8a.js.map +0 -1
- package/dist/cjs/Collapsible-17d8df23.js +0 -4
- package/dist/cjs/Collapsible-17d8df23.js.map +0 -1
- package/dist/cjs/FormFieldMsg-5ce558f2.js +0 -4
- package/dist/cjs/FormFieldMsg-5ce558f2.js.map +0 -1
- package/dist/cjs/InternalUnderlinedBadgeText-baf02c90.js +0 -4
- package/dist/cjs/InternalUnderlinedBadgeText-baf02c90.js.map +0 -1
- package/dist/cjs/aria-expanded-7d8d2aca.js.map +0 -1
- package/dist/cjs/badge-text-8d3864bd.js +0 -4
- package/dist/cjs/badge-text-8d3864bd.js.map +0 -1
- package/dist/cjs/bund-4be96755.js +0 -4
- package/dist/cjs/bund-4be96755.js.map +0 -1
- package/dist/cjs/component-names-2c750b1b.js +0 -4
- package/dist/cjs/component-names-2c750b1b.js.map +0 -1
- package/dist/cjs/controller-4c62765f.js +0 -4
- package/dist/cjs/controller-4c62765f.js.map +0 -1
- package/dist/cjs/controller-ee67ec39.js +0 -4
- package/dist/cjs/controller-icon-b978babc.js +0 -4
- package/dist/cjs/controller-icon-b978babc.js.map +0 -1
- package/dist/cjs/events-221fcb43.js +0 -4
- package/dist/cjs/events-221fcb43.js.map +0 -1
- package/dist/cjs/events-275a2a5e.js +0 -4
- package/dist/cjs/events-275a2a5e.js.map +0 -1
- package/dist/cjs/i18n-737701e2.js +0 -4
- package/dist/cjs/i18n-737701e2.js.map +0 -1
- package/dist/cjs/icons-f0f3f9c5.js.map +0 -1
- package/dist/cjs/index-399c8b52.js +0 -4
- package/dist/cjs/kol-button-group-wc.cjs.entry.js +0 -4
- package/dist/cjs/kol-button-group-wc.cjs.entry.js.map +0 -1
- package/dist/cjs/kol-button-group.cjs.entry.js +0 -4
- package/dist/cjs/kol-button-group.cjs.entry.js.map +0 -1
- package/dist/cjs/kol-heading-wc.cjs.entry.js +0 -4
- package/dist/cjs/kol-heading-wc.cjs.entry.js.map +0 -1
- package/dist/cjs/kol-indented-text-wc.cjs.entry.js +0 -4
- package/dist/cjs/kol-indented-text-wc.cjs.entry.js.map +0 -1
- package/dist/cjs/kol-indented-text.cjs.entry.js +0 -4
- package/dist/cjs/kol-indented-text.cjs.entry.js.map +0 -1
- package/dist/cjs/kol-input.cjs.entry.js +0 -4
- package/dist/cjs/kol-input.cjs.entry.js.map +0 -1
- package/dist/cjs/kol-link-group.cjs.entry.js +0 -4
- package/dist/cjs/kol-link-group.cjs.entry.js.map +0 -1
- package/dist/cjs/kol-logo.cjs.entry.js +0 -4
- package/dist/cjs/kol-logo.cjs.entry.js.map +0 -1
- package/dist/cjs/kol-span-wc.cjs.entry.js +0 -4
- package/dist/cjs/kol-span-wc.cjs.entry.js.map +0 -1
- package/dist/cjs/kol-symbol.cjs.entry.js +0 -4
- package/dist/cjs/kol-symbol.cjs.entry.js.map +0 -1
- package/dist/cjs/kol-table.cjs.entry.js +0 -4
- package/dist/cjs/kol-table.cjs.entry.js.map +0 -1
- package/dist/cjs/reuse-8cfefa9b.js +0 -4
- package/dist/cjs/reuse-8cfefa9b.js.map +0 -1
- package/dist/cjs/tslib.es6-16e4524f.js.map +0 -1
- package/dist/components/FormFieldMsg.js +0 -4
- package/dist/components/FormFieldMsg.js.map +0 -1
- package/dist/components/aria-expanded.js.map +0 -1
- package/dist/components/badge-text.js +0 -4
- package/dist/components/badge-text.js.map +0 -1
- package/dist/components/bund.js +0 -4
- package/dist/components/bund.js.map +0 -1
- package/dist/components/controller-icon.js +0 -4
- package/dist/components/controller-icon.js.map +0 -1
- package/dist/components/controller5.js +0 -4
- package/dist/components/controller5.js.map +0 -1
- package/dist/components/events2.js +0 -4
- package/dist/components/events2.js.map +0 -1
- package/dist/components/kol-button-group-wc.d.ts +0 -11
- package/dist/components/kol-button-group-wc.js +0 -4
- package/dist/components/kol-button-group-wc.js.map +0 -1
- package/dist/components/kol-button-group.d.ts +0 -11
- package/dist/components/kol-button-group.js +0 -4
- package/dist/components/kol-button-group.js.map +0 -1
- package/dist/components/kol-heading-wc.d.ts +0 -11
- package/dist/components/kol-heading-wc.js +0 -4
- package/dist/components/kol-heading-wc.js.map +0 -1
- package/dist/components/kol-indented-text-wc.d.ts +0 -11
- package/dist/components/kol-indented-text-wc.js +0 -4
- package/dist/components/kol-indented-text-wc.js.map +0 -1
- package/dist/components/kol-indented-text.d.ts +0 -11
- package/dist/components/kol-indented-text.js +0 -4
- package/dist/components/kol-indented-text.js.map +0 -1
- package/dist/components/kol-input.d.ts +0 -11
- package/dist/components/kol-input.js +0 -4
- package/dist/components/kol-input.js.map +0 -1
- package/dist/components/kol-link-group.d.ts +0 -11
- package/dist/components/kol-link-group.js +0 -4
- package/dist/components/kol-link-group.js.map +0 -1
- package/dist/components/kol-logo.d.ts +0 -11
- package/dist/components/kol-logo.js +0 -4
- package/dist/components/kol-logo.js.map +0 -1
- package/dist/components/kol-span-wc.d.ts +0 -11
- package/dist/components/kol-span-wc.js +0 -4
- package/dist/components/kol-span-wc.js.map +0 -1
- package/dist/components/kol-symbol.d.ts +0 -11
- package/dist/components/kol-symbol.js +0 -4
- package/dist/components/kol-symbol.js.map +0 -1
- package/dist/components/kol-table.d.ts +0 -11
- package/dist/components/kol-table.js +0 -4
- package/dist/components/kol-table.js.map +0 -1
- package/dist/esm/Alert-6efb8352.js +0 -4
- package/dist/esm/Alert-6efb8352.js.map +0 -1
- package/dist/esm/Collapsible-9a236c55.js +0 -4
- package/dist/esm/Collapsible-9a236c55.js.map +0 -1
- package/dist/esm/FormFieldMsg-02436ede.js +0 -4
- package/dist/esm/FormFieldMsg-02436ede.js.map +0 -1
- package/dist/esm/InternalUnderlinedBadgeText-6a05da16.js +0 -4
- package/dist/esm/InternalUnderlinedBadgeText-6a05da16.js.map +0 -1
- package/dist/esm/aria-expanded-9f877821.js.map +0 -1
- package/dist/esm/badge-text-65c680b2.js +0 -4
- package/dist/esm/badge-text-65c680b2.js.map +0 -1
- package/dist/esm/bund-ad41b762.js +0 -4
- package/dist/esm/bund-ad41b762.js.map +0 -1
- package/dist/esm/component-names-6ca7e863.js +0 -4
- package/dist/esm/component-names-6ca7e863.js.map +0 -1
- package/dist/esm/controller-1a0e05c9.js +0 -4
- package/dist/esm/controller-1a0e05c9.js.map +0 -1
- package/dist/esm/controller-4a9a50f2.js +0 -4
- package/dist/esm/controller-icon-f9b7e1f9.js +0 -4
- package/dist/esm/controller-icon-f9b7e1f9.js.map +0 -1
- package/dist/esm/events-29e84d75.js +0 -4
- package/dist/esm/events-29e84d75.js.map +0 -1
- package/dist/esm/events-5b899bd2.js +0 -4
- package/dist/esm/events-5b899bd2.js.map +0 -1
- package/dist/esm/i18n-7ea9f137.js +0 -4
- package/dist/esm/i18n-7ea9f137.js.map +0 -1
- package/dist/esm/icons-c857b77d.js +0 -4
- package/dist/esm/icons-c857b77d.js.map +0 -1
- package/dist/esm/index-f0de5c73.js +0 -4
- package/dist/esm/kol-button-group-wc.entry.js +0 -4
- package/dist/esm/kol-button-group-wc.entry.js.map +0 -1
- package/dist/esm/kol-button-group.entry.js +0 -4
- package/dist/esm/kol-button-group.entry.js.map +0 -1
- package/dist/esm/kol-heading-wc.entry.js +0 -4
- package/dist/esm/kol-heading-wc.entry.js.map +0 -1
- package/dist/esm/kol-indented-text-wc.entry.js +0 -4
- package/dist/esm/kol-indented-text-wc.entry.js.map +0 -1
- package/dist/esm/kol-indented-text.entry.js +0 -4
- package/dist/esm/kol-indented-text.entry.js.map +0 -1
- package/dist/esm/kol-input.entry.js +0 -4
- package/dist/esm/kol-input.entry.js.map +0 -1
- package/dist/esm/kol-link-group.entry.js +0 -4
- package/dist/esm/kol-link-group.entry.js.map +0 -1
- package/dist/esm/kol-logo.entry.js +0 -4
- package/dist/esm/kol-logo.entry.js.map +0 -1
- package/dist/esm/kol-span-wc.entry.js +0 -4
- package/dist/esm/kol-span-wc.entry.js.map +0 -1
- package/dist/esm/kol-symbol.entry.js +0 -4
- package/dist/esm/kol-symbol.entry.js.map +0 -1
- package/dist/esm/kol-table.entry.js +0 -4
- package/dist/esm/kol-table.entry.js.map +0 -1
- package/dist/esm/reuse-32931294.js +0 -4
- package/dist/esm/reuse-32931294.js.map +0 -1
- package/dist/esm/tslib.es6-2e5096f8.js.map +0 -1
- package/dist/kolibri/Alert-6efb8352.js +0 -4
- package/dist/kolibri/Alert-6efb8352.js.map +0 -1
- package/dist/kolibri/Collapsible-9a236c55.js +0 -4
- package/dist/kolibri/Collapsible-9a236c55.js.map +0 -1
- package/dist/kolibri/FormFieldMsg-02436ede.js +0 -4
- package/dist/kolibri/FormFieldMsg-02436ede.js.map +0 -1
- package/dist/kolibri/InternalUnderlinedBadgeText-6a05da16.js +0 -4
- package/dist/kolibri/InternalUnderlinedBadgeText-6a05da16.js.map +0 -1
- package/dist/kolibri/aria-expanded-9f877821.js +0 -4
- package/dist/kolibri/aria-expanded-9f877821.js.map +0 -1
- package/dist/kolibri/badge-text-65c680b2.js +0 -4
- package/dist/kolibri/badge-text-65c680b2.js.map +0 -1
- package/dist/kolibri/bund-ad41b762.js +0 -4
- package/dist/kolibri/bund-ad41b762.js.map +0 -1
- package/dist/kolibri/component-names-6ca7e863.js +0 -4
- package/dist/kolibri/component-names-6ca7e863.js.map +0 -1
- package/dist/kolibri/controller-1a0e05c9.js +0 -4
- package/dist/kolibri/controller-1a0e05c9.js.map +0 -1
- package/dist/kolibri/controller-4a9a50f2.js +0 -4
- package/dist/kolibri/controller-icon-f9b7e1f9.js +0 -4
- package/dist/kolibri/controller-icon-f9b7e1f9.js.map +0 -1
- package/dist/kolibri/events-29e84d75.js +0 -4
- package/dist/kolibri/events-29e84d75.js.map +0 -1
- package/dist/kolibri/events-5b899bd2.js +0 -4
- package/dist/kolibri/events-5b899bd2.js.map +0 -1
- package/dist/kolibri/i18n-5fe08f1c.js +0 -4
- package/dist/kolibri/i18n-7ea9f137.js +0 -4
- package/dist/kolibri/i18n-7ea9f137.js.map +0 -1
- package/dist/kolibri/icons-c857b77d.js +0 -4
- package/dist/kolibri/icons-c857b77d.js.map +0 -1
- package/dist/kolibri/index-f0de5c73.js.map +0 -1
- package/dist/kolibri/kol-button-group-wc.entry.js +0 -4
- package/dist/kolibri/kol-button-group-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-button-group.entry.js +0 -4
- package/dist/kolibri/kol-button-group.entry.js.map +0 -1
- package/dist/kolibri/kol-heading-wc.entry.js +0 -4
- package/dist/kolibri/kol-heading-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-indented-text-wc.entry.js +0 -4
- package/dist/kolibri/kol-indented-text-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-indented-text.entry.js +0 -4
- package/dist/kolibri/kol-indented-text.entry.js.map +0 -1
- package/dist/kolibri/kol-input.entry.js +0 -4
- package/dist/kolibri/kol-input.entry.js.map +0 -1
- package/dist/kolibri/kol-link-group.entry.js +0 -4
- package/dist/kolibri/kol-link-group.entry.js.map +0 -1
- package/dist/kolibri/kol-logo.entry.js +0 -4
- package/dist/kolibri/kol-logo.entry.js.map +0 -1
- package/dist/kolibri/kol-span-wc.entry.js +0 -4
- package/dist/kolibri/kol-span-wc.entry.js.map +0 -1
- package/dist/kolibri/kol-symbol.entry.js +0 -4
- package/dist/kolibri/kol-symbol.entry.js.map +0 -1
- package/dist/kolibri/kol-table.entry.js +0 -4
- package/dist/kolibri/kol-table.entry.js.map +0 -1
- package/dist/kolibri/reuse-32931294.js +0 -4
- package/dist/kolibri/reuse-32931294.js.map +0 -1
- package/dist/kolibri/tooltip-align-5902aa96.js +0 -4
- package/dist/kolibri/tslib.es6-2e5096f8.js.map +0 -1
- package/dist/types/components/button-group/component.d.ts +0 -6
- package/dist/types/components/button-group/shadow.d.ts +0 -5
- package/dist/types/components/heading/component.d.ts +0 -17
- package/dist/types/components/indented-text/component.d.ts +0 -6
- package/dist/types/components/indented-text/shadow.d.ts +0 -5
- package/dist/types/components/input/component.d.ts +0 -35
- package/dist/types/components/link-group/shadow.d.ts +0 -17
- package/dist/types/components/logo/shadow.d.ts +0 -10
- package/dist/types/components/logo/types.d.ts +0 -11
- package/dist/types/components/span/InternalUnderlinedBadgeText.d.ts +0 -7
- package/dist/types/components/span/component.d.ts +0 -17
- package/dist/types/components/symbol/component.d.ts +0 -11
- package/dist/types/components/table/shadow.d.ts +0 -15
- package/dist/types/components/toaster/InternalToast.d.ts +0 -9
- package/dist/types/schema/components/button-group.d.ts +0 -9
- package/dist/types/schema/components/indented-text.d.ts +0 -9
- package/dist/types/schema/components/link-group.d.ts +0 -22
- package/dist/types/schema/components/symbol.d.ts +0 -12
- package/dist/types/schema/props/hide-error.d.ts +0 -7
- package/doc/button-group.md +0 -96
- package/doc/indented-text.md +0 -52
- package/doc/link-group.md +0 -98
- package/doc/logo.md +0 -67
- package/doc/popover.md +0 -26
- package/doc/span.md +0 -32
- package/doc/symbol.md +0 -44
- package/doc/table.md +0 -201
- package/doc/tooltip.md +0 -47
- /package/dist/cjs/{tslib.es6-16e4524f.js → tslib.es6-5e301284.js} +0 -0
- /package/dist/esm/{tslib.es6-2e5096f8.js → tslib.es6-1173d062.js} +0 -0
- /package/dist/kolibri/{align-878fb132.js.map → align-60c95351.js.map} +0 -0
- /package/dist/kolibri/{align-floating-elements-db77d917.js.map → align-floating-elements-387a1e9b.js.map} +0 -0
- /package/dist/kolibri/{app-globals-3e243dfb.js.map → app-globals-1e7f1d4a.js.map} +0 -0
- /package/dist/kolibri/{common-0f1f2276.js.map → common-54bf85ba.js.map} +0 -0
- /package/dist/kolibri/{controller-a3c1b90d.js.map → controller-868d4820.js.map} +0 -0
- /package/dist/kolibri/{controller-96d99a72.js.map → controller-88aff6ff.js.map} +0 -0
- /package/dist/kolibri/{controller-afbd59b5.js.map → controller-c6361758.js.map} +0 -0
- /package/dist/kolibri/{dev.utils-0b748391.js.map → dev.utils-930d9493.js.map} +0 -0
- /package/dist/kolibri/{devtools-3291e772.js.map → devtools-878bf068.js.map} +0 -0
- /package/dist/kolibri/{i18n-5fe08f1c.js.map → i18n-005310a7.js.map} +0 -0
- /package/dist/kolibri/{tooltip-align-5902aa96.js.map → tooltip-align-c6eb75ce.js.map} +0 -0
- /package/dist/kolibri/{tslib.es6-2e5096f8.js → tslib.es6-1173d062.js} +0 -0
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{w as t}from"./prop.validators-64749272.js";const o=(o,a,e)=>{t(o,a,(t=>"string"==typeof t&&n.includes(t)),new Set(n),e,{defaultValue:"top"})},s=["left","right"],a=["top","bottom"],n=[...s,...a],e=(t,a)=>{o(t,"_align",a)};export{
|
4
|
+
import{w as t}from"./prop.validators-64749272.js";const o=(o,a,e)=>{t(o,a,(t=>"string"==typeof t&&n.includes(t)),new Set(n),e,{defaultValue:"top"})},s=["left","right"],a=["top","bottom"],n=[...s,...a],e=(t,a)=>{o(t,"_align",a)};export{o as a,e as v};
|
package/dist/kolibri/{align-floating-elements-db77d917.js → align-floating-elements-387a1e9b.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{p as t}from"./reuse-32931294.js";const n=["top","right","bottom","left"],e=["start","end"],o=n.reduce(((t,n)=>t.concat(n,n+"-"+e[0],n+"-"+e[1])),[]),s=Math.min,r=Math.max,i=Math.round,c=Math.floor,l=t=>({x:t,y:t}),a={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function u(t,e,n){return r(t,s(e,n))}function d(t,e){return"function"==typeof t?t(e):t}function m(t){return t.split("-")[0]}function p(t){return t.split("-")[1]}function h(t){return"x"===t?"y":"x"}function y(t){return"y"===t?"height":"width"}function w(t){return["top","bottom"].includes(m(t))?"y":"x"}function g(t){return h(w(t))}function x(t,e,n){void 0===n&&(n=!1);const o=p(t),i=g(t),r=y(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=R(l)),[l,R(l)]}function v(t){const e=R(t);return[b(t),e,b(e)]}function b(t){return t.replace(/start|end/g,(t=>f[t]))}function A(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}function O(t,e,n,o){const i=p(t);let r=A(m(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(b)))),r}function R(t){return t.replace(/left|right|bottom|top/g,(t=>a[t]))}function k(t){return{top:0,right:0,bottom:0,left:0,...t}}function S(t){return"number"!=typeof t?k(t):{top:t,right:t,bottom:t,left:t}}function D(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function F(t,e,n){let{reference:o,floating:i}=t;const r=w(e),l=g(e),c=y(l),s=m(e),a="y"===r,f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,d=o[c]/2-i[c]/2;let h;switch(s){case"top":h={x:f,y:o.y-i.height};break;case"bottom":h={x:f,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-i.width,y:u};break;default:h={x:o.x,y:o.y}}switch(p(e)){case"start":h[l]-=d*(n&&a?-1:1);break;case"end":h[l]+=d*(n&&a?-1:1)}return h}const P=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,c=r.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(e));let a=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=F(a,o,s),d=o,m={},h=0;for(let n=0;n<c.length;n++){const{name:r,fn:p}=c[n],{x:g,y:y,data:w,reset:x}=await p({x:f,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:m,rects:a,platform:l,elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=y?y:u,m={...m,[r]:{...m[r],...w}},x&&h<=50&&(h++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(a=!0===x.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):x.rects),({x:f,y:u}=F(a,d,s))),n=-1)}return{x:f,y:u,placement:d,strategy:i,middlewareData:m}};async function $(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:c,strategy:s}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:h=0}=d(e,t),p=S(h),g=c[m?"floating"===u?"reference":"floating":u],y=D(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(g)))||n?g:g.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:s})),w="floating"===u?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,x=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c.floating)),v=await(null==r.isElement?void 0:r.isElement(x))&&await(null==r.getScale?void 0:r.getScale(x))||{x:1,y:1},b=D(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:x,strategy:s}):w);return{top:(y.top-b.top+p.top)/v.y,bottom:(b.bottom-y.bottom+p.bottom)/v.y,left:(y.left-b.left+p.left)/v.x,right:(b.right-y.right+p.right)/v.x}}const T=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:l,elements:c,middlewareData:a}=e,{element:f,padding:m=0}=d(t,e)||{};if(null==f)return{};const h=S(m),w={x:n,y:o},x=g(i),v=y(x),b=await l.getDimensions(f),R="y"===x,L=R?"top":"left",T=R?"bottom":"right",A=R?"clientHeight":"clientWidth",E=r.reference[v]+r.reference[x]-w[x]-r.floating[v],D=w[x]-r.reference[x],O=await(null==l.getOffsetParent?void 0:l.getOffsetParent(f));let C=O?O[A]:0;C&&await(null==l.isElement?void 0:l.isElement(O))||(C=c.floating[A]||r.floating[v]);const P=E/2-D/2,H=C/2-b[v]/2-1,F=s(h[L],H),B=s(h[T],H),W=F,k=C-b[v]-B,$=C/2-b[v]/2+P,G=u(W,$,k),z=!a.arrow&&null!=p(i)&&$!==G&&r.reference[v]/2-($<W?F:B)-b[v]/2<0,Q=z?$<W?$-W:$-k:0;return{[x]:w[x]+Q,data:{[x]:G,centerOffset:$-G-Q,...z&&{alignmentOffset:Q}},reset:z}}});function C(t,e,n){const o=t?[...n.filter((e=>p(e)===t)),...n.filter((e=>p(e)!==t))]:n.filter((t=>m(t)===t));return o.filter((n=>!t||(p(n)===t||!!e&&b(n)!==n)))}const E=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,r;const{rects:l,middlewareData:c,placement:s,platform:a,elements:f}=e,{crossAxis:u=!1,alignment:h,allowedPlacements:g=o,autoAlignment:y=!0,...w}=d(t,e),v=void 0!==h||g===o?C(h||null,y,g):g,b=await $(e,w),R=(null==(n=c.autoPlacement)?void 0:n.index)||0,L=v[R];if(null==L)return{};const T=x(L,l,await(null==a.isRTL?void 0:a.isRTL(f.floating)));if(s!==L)return{reset:{placement:v[0]}};const A=[b[m(L)],b[T[0]],b[T[1]]],E=[...(null==(i=c.autoPlacement)?void 0:i.overflows)||[],{placement:L,overflows:A}],D=v[R+1];if(D)return{data:{index:R+1,overflows:E},reset:{placement:D}};const O=E.map((t=>{const e=p(t.placement);return[t.placement,e&&u?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),P=O.filter((t=>t[2].slice(0,p(t[0])?2:3).every((t=>t<=0)))),H=(null==(r=P[0])?void 0:r[0])||O[0][0];return H!==s?{data:{index:R+1,overflows:E},reset:{placement:H}}:{}}}},z=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:c,platform:s,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...b}=d(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const L=m(i),T=w(c),A=m(c)===c,E=await(null==s.isRTL?void 0:s.isRTL(a.floating)),D=h||(A||!y?[R(c)]:v(c)),C="none"!==g;!h&&C&&D.push(...O(c,y,g,E));const P=[c,...D],H=await $(e,b),S=[];let F=(null==(o=r.flip)?void 0:o.overflows)||[];if(f&&S.push(H[L]),u){const t=x(i,l,E);S.push(H[t[0]],H[t[1]])}if(F=[...F,{placement:i,overflows:S}],!S.every((t=>t<=0))){var B,W;const t=((null==(B=r.flip)?void 0:B.index)||0)+1,e=P[t];if(e)return{data:{index:t,overflows:F},reset:{placement:e}};let n=null==(W=F.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:W.placement;if(!n)switch(p){case"bestFit":{var k;const t=null==(k=F.filter((t=>{if(C){const e=w(t.placement);return e===T||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:k[0];t&&(n=t);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}};function B(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function H(t){return n.some((e=>t[e]>=0))}const M=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=d(t,e);switch(o){case"referenceHidden":{const t=B(await $(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:H(t)}}}case"escaped":{const t=B(await $(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:H(t)}}}default:return{}}}}};function j(t){const e=s(...t.map((t=>t.left))),n=s(...t.map((t=>t.top)));return{x:e,y:n,width:r(...t.map((t=>t.right)))-e,height:r(...t.map((t=>t.bottom)))-n}}function L(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),n=[];let o=null;for(let t=0;t<e.length;t++){const i=e[t];!o||i.y-o.y>o.height/2?n.push([i]):n[n.length-1].push(i),o=i}return n.map((t=>D(j(t))))}const I=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:o,rects:i,platform:l,strategy:c}=e,{padding:a=2,x:f,y:u}=d(t,e),h=Array.from(await(null==l.getClientRects?void 0:l.getClientRects(o.reference))||[]),p=L(h),g=D(j(h)),y=S(a);const x=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&p[0].left>p[1].right&&null!=f&&null!=u)return p.find((t=>f>t.left-y.left&&f<t.right+y.right&&u>t.top-y.top&&u<t.bottom+y.bottom))||g;if(p.length>=2){if("y"===w(n)){const t=p[0],e=p[p.length-1],o="top"===m(n),i=t.top,r=e.bottom,l=o?t.left:e.left,c=o?t.right:e.right;return{top:i,bottom:r,left:l,right:c,width:c-l,height:r-i,x:l,y:i}}const t="left"===m(n),e=r(...p.map((t=>t.right))),o=s(...p.map((t=>t.left))),i=p.filter((n=>t?n.left===o:n.right===e)),l=i[0].top,c=i[i.length-1].bottom;return{top:l,bottom:c,left:o,right:e,width:e-o,height:c-l,x:o,y:l}}return g}},floating:o.floating,strategy:c});return i.reference.x!==x.reference.x||i.reference.y!==x.reference.y||i.reference.width!==x.reference.width||i.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}};async function N(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),l=m(n),c=p(n),s="y"===w(n),a=["left","top"].includes(l)?-1:1,f=r&&s?-1:1,u=d(e,t);let{mainAxis:h,crossAxis:g,alignmentAxis:y}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return c&&"number"==typeof y&&(g="end"===c?-1*y:y),s?{x:g*f,y:h*a}:{x:h*a,y:g*f}}const q=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:l,middlewareData:c}=e,s=await N(e,t);return l===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:i+s.x,y:r+s.y,data:{...s,placement:l}}}}},W=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:l=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=d(t,e),a={x:n,y:o},f=await $(e,s),p=w(m(i)),g=h(p);let y=a[g],x=a[p];if(r){const t="y"===g?"bottom":"right";y=u(y+f["y"===g?"top":"left"],y,y-f[t])}if(l){const t="y"===p?"bottom":"right";x=u(x+f["y"===p?"top":"left"],x,x-f[t])}const v=c.fn({...e,[g]:y,[p]:x});return{...v,data:{x:v.x-n,y:v.y-o}}}}},V=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:l}=e,{offset:c=0,mainAxis:s=!0,crossAxis:a=!0}=d(t,e),f={x:n,y:o},u=w(i),p=h(u);let g=f[p],y=f[u];const x=d(c,e),v="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(s){const t="y"===p?"height":"width",e=r.reference[p]-r.floating[t]+v.mainAxis,n=r.reference[p]+r.reference[t]-v.mainAxis;g<e?g=e:g>n&&(g=n)}if(a){var b,R;const t="y"===p?"width":"height",e=["top","left"].includes(m(i)),n=r.reference[u]-r.floating[t]+(e&&(null==(b=l.offset)?void 0:b[u])||0)+(e?0:v.crossAxis),o=r.reference[u]+r.reference[t]+(e?0:(null==(R=l.offset)?void 0:R[u])||0)-(e?v.crossAxis:0);y<n?y=n:y>o&&(y=o)}return{[p]:g,[u]:y}}}},X=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:i,elements:l}=e,{apply:c=()=>{},...a}=d(t,e),f=await $(e,a),u=m(n),h=p(n),g="y"===w(n),{width:y,height:x}=o.floating;let v,b;"top"===u||"bottom"===u?(v=u,b=h===(await(null==i.isRTL?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(b=u,v="end"===h?"top":"bottom");const R=x-f.top-f.bottom,L=y-f.left-f.right,T=s(x-f[v],R),A=s(y-f[b],L),E=!e.middlewareData.shift;let D=T,O=A;if(g?O=h||E?s(A,L):L:D=h||E?s(T,R):R,E&&!h){const t=r(f.left,0),e=r(f.right,0),n=r(f.top,0),o=r(f.bottom,0);g?O=y-2*(0!==t||0!==e?t+e:r(f.left,f.right)):D=x-2*(0!==n||0!==o?n+o:r(f.top,f.bottom))}await c({...e,availableWidth:O,availableHeight:D});const C=await i.getDimensions(l.floating);return y!==C.width||x!==C.height?{reset:{rects:!0}}:{}}}};function Y(){return"undefined"!=typeof window}function _(t){return K(t)?(t.nodeName||"").toLowerCase():"#document"}function G(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function J(t){var e;return null==(e=(K(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function K(t){return!!Y()&&(t instanceof Node||t instanceof G(t).Node)}function Q(t){return!!Y()&&(t instanceof Element||t instanceof G(t).Element)}function U(t){return!!Y()&&(t instanceof HTMLElement||t instanceof G(t).HTMLElement)}function Z(t){return!(!Y()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof G(t).ShadowRoot)}function tt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=ct(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function nt(t){return["table","td","th"].includes(_(t))}function et(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function ot(t){const e=rt(),n=Q(t)?ct(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>!!n[t]&&"none"!==n[t]))||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function st(t){let e=at(t);for(;U(e)&&!it(e);){if(ot(e))return e;if(et(e))return null;e=at(e)}return null}function rt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function it(t){return["html","body","#document"].includes(_(t))}function ct(t){return G(t).getComputedStyle(t)}function lt(t){return Q(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function at(t){if("html"===_(t))return t;const e=t.assignedSlot||t.parentNode||Z(t)&&t.host||J(t);return Z(e)?e.host:e}function ft(t){const e=at(t);return it(e)?t.ownerDocument?t.ownerDocument.body:t.body:U(e)&&tt(e)?e:ft(e)}function ut(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=ft(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=G(i);if(r){const t=dt(l);return e.concat(l,l.visualViewport||[],tt(i)?i:[],t&&n?ut(t):[])}return e.concat(i,ut(i,[],n))}function dt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function mt(t){const e=ct(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=U(t),l=r?t.offsetWidth:n,c=r?t.offsetHeight:o,s=i(n)!==l||i(o)!==c;return s&&(n=l,o=c),{width:n,height:o,$:s}}function pt(t){return Q(t)?t:t.contextElement}function ht(t){const e=pt(t);if(!U(e))return l(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:c}=mt(e);let s=(c?i(n.width):n.width)/o,a=(c?i(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const yt=l(0);function wt(t){const e=G(t);return rt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:yt}function gt(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==G(t))&&e}function xt(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=pt(t);let c=l(1);e&&(o?Q(o)&&(c=ht(o)):c=ht(t));const s=gt(r,n,o)?wt(r):l(0);let a=(i.left+s.x)/c.x,f=(i.top+s.y)/c.y,u=i.width/c.x,d=i.height/c.y;if(r){const t=G(r),e=o&&Q(o)?G(o):o;let n=t,i=dt(n);for(;i&&o&&e!==n;){const t=ht(i),e=i.getBoundingClientRect(),o=ct(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;a*=t.x,f*=t.y,u*=t.x,d*=t.y,a+=r,f+=l,n=G(i),i=dt(n)}}return D({width:u,height:d,x:a,y:f})}function vt(t,e){const n=lt(t).scrollLeft;return e?e.left+n:xt(J(t)).left+n}function bt(t,e,n){void 0===n&&(n=!1);const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-(n?0:vt(t,o)),y:o.top+e.scrollTop}}function At(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,c=J(o),s=!!e&&et(e.floating);if(o===c||s&&r)return n;let a={scrollLeft:0,scrollTop:0},f=l(1);const u=l(0),d=U(o);if((d||!d&&!r)&&(("body"!==_(o)||tt(c))&&(a=lt(o)),U(o))){const t=xt(o);f=ht(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}const m=!c||d||r?l(0):bt(c,a,!0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+u.x+m.x,y:n.y*f.y-a.scrollTop*f.y+u.y+m.y}}function Ot(t){return Array.from(t.getClientRects())}function Rt(t){const e=J(t),n=lt(t),o=t.ownerDocument.body,i=r(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),l=r(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+vt(t);const s=-n.scrollTop;return"rtl"===ct(o).direction&&(c+=r(e.clientWidth,o.clientWidth)-i),{width:i,height:l,x:c,y:s}}function kt(t,e){const n=G(t),o=J(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,c=0,s=0;if(i){r=i.width,l=i.height;const t=rt();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,s=i.offsetTop)}return{width:r,height:l,x:c,y:s}}function St(t,e){const n=xt(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=U(t)?ht(t):l(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}function Dt(t,e,n){let o;if("viewport"===e)o=kt(t,n);else if("document"===e)o=Rt(J(t));else if(Q(e))o=St(e,n);else{const n=wt(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return D(o)}function Ft(t,e){const n=at(t);return!(n===e||!Q(n)||it(n))&&("fixed"===ct(n).position||Ft(n,e))}function Pt(t,e){const n=e.get(t);if(n)return n;let o=ut(t,[],!1).filter((t=>Q(t)&&"body"!==_(t))),i=null;const r="fixed"===ct(t).position;let l=r?at(t):t;for(;Q(l)&&!it(l);){const e=ct(l),n=ot(l);n||"fixed"!==e.position||(i=null);(r?!n&&!i:!n&&"static"===e.position&&!!i&&["absolute","fixed"].includes(i.position)||tt(l)&&!n&&Ft(t,l))?o=o.filter((t=>t!==l)):i=e,l=at(l)}return e.set(t,o),o}function $t(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const l=[..."clippingAncestors"===n?et(e)?[]:Pt(e,this._c):[].concat(n),o],c=l[0],a=l.reduce(((t,n)=>{const o=Dt(e,n,i);return t.top=r(o.top,t.top),t.right=s(o.right,t.right),t.bottom=s(o.bottom,t.bottom),t.left=r(o.left,t.left),t}),Dt(e,c,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Tt(t){const{width:e,height:n}=mt(t);return{width:e,height:n}}function Ct(t,e,n){const o=U(e),i=J(e),r="fixed"===n,c=xt(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const a=l(0);if(o||!o&&!r)if(("body"!==_(e)||tt(i))&&(s=lt(e)),o){const t=xt(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else i&&(a.x=vt(i));const f=!i||o||r?l(0):bt(i,s);return{x:c.left+s.scrollLeft-a.x-f.x,y:c.top+s.scrollTop-a.y-f.y,width:c.width,height:c.height}}function Et(t){return"static"===ct(t).position}function zt(t,e){if(!U(t)||"fixed"===ct(t).position)return null;if(e)return e(t);let n=t.offsetParent;return J(t)===n&&(n=n.ownerDocument.body),n}function Bt(t,e){const n=G(t);if(et(t))return n;if(!U(t)){let e=at(t);for(;e&&!it(e);){if(Q(e)&&!Et(e))return e;e=at(e)}return n}let o=zt(t,e);for(;o&&nt(o)&&Et(o);)o=zt(o,e);return o&&it(o)&&Et(o)&&!ot(o)?n:o||st(t)||n}const Ht=async function(t){const e=this.getOffsetParent||Bt,n=this.getDimensions,o=await n(t.floating);return{reference:Ct(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Mt(t){return"rtl"===ct(t).direction}const jt={convertOffsetParentRelativeRectToViewportRelativeRect:At,getDocumentElement:J,getClippingRect:$t,getOffsetParent:Bt,getElementRects:Ht,getClientRects:Ot,getDimensions:Tt,getScale:ht,isElement:Q,isRTL:Mt};function Lt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function It(t,e){let n,o=null;const i=J(t);function l(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function a(f,u){void 0===f&&(f=!1),void 0===u&&(u=1),l();const d=t.getBoundingClientRect(),{left:m,top:h,width:p,height:g}=d;if(f||e(),!p||!g)return;const y={rootMargin:-c(h)+"px "+-c(i.clientWidth-(m+p))+"px "+-c(i.clientHeight-(h+g))+"px "+-c(m)+"px",threshold:r(0,s(1,u))||1};let w=!0;function x(e){const o=e[0].intersectionRatio;if(o!==u){if(!w)return a();o?a(!1,o):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==o||Lt(d,t.getBoundingClientRect())||a(),w=!1}try{o=new IntersectionObserver(x,{...y,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(x,y)}o.observe(t)}(!0),l}function Nt(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,a=pt(t),f=i||r?[...a?ut(a):[],...ut(e)]:[];f.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const u=a&&c?It(a,n):null;let d,m=-1,h=null;l&&(h=new ResizeObserver((t=>{let[o]=t;o&&o.target===a&&h&&(h.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var t;null==(t=h)||t.observe(e)}))),n()})),a&&!s&&h.observe(a),h.observe(e));let p=s?xt(t):null;return s&&function e(){const o=xt(t);p&&!Lt(p,o)&&n();p=o,d=requestAnimationFrame(e)}(),n(),()=>{var t;f.forEach((t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==u||u(),null==(t=h)||t.disconnect(),h=null,s&&cancelAnimationFrame(d)}}const qt=q,Wt=W,Vt=z,Xt=T,Yt=(t,e,n)=>{const o=new Map,i={platform:jt,...n},r={...i.platform,_c:o};return P(t,e,{...i,platform:r})},_t=async({floatingElement:e,referenceElement:n,arrowElement:o,align:i="top"})=>{var r,l,c;if("test"!==t){const t=[qt(null!==(r=null==o?void 0:o.offsetHeight)&&void 0!==r?r:10),Vt(),Wt()];o&&t.push(Xt({element:o}));const{x:s,y:a,middlewareData:f,placement:u}=await Yt(n,e,{placement:i,middleware:t,strategy:"fixed"});Object.assign(e.style,{left:`${s}px`,top:`${a}px`,visibility:"visible"}),o&&((null===(l=f.arrow)||void 0===l?void 0:l.x)?Object.assign(o.style,{left:`${f.arrow.x}px`,top:"bottom"===u?-o.offsetHeight/2+"px":"",bottom:"top"===u?-o.offsetHeight/2+"px":""}):(null===(c=f.arrow)||void 0===c?void 0:c.y)&&Object.assign(o.style,{left:"right"===u?-o.offsetWidth/2+"px":"",right:"left"===u?-o.offsetWidth/2+"px":"",top:`${f.arrow.y}px`}))}};export{_t as a,Nt as b};
|
4
|
+
import{p as t}from"./reuse-f46e7e35.js";const n=["top","right","bottom","left"],e=["start","end"],o=n.reduce(((t,n)=>t.concat(n,n+"-"+e[0],n+"-"+e[1])),[]),s=Math.min,r=Math.max,i=Math.round,c=Math.floor,l=t=>({x:t,y:t}),f={left:"right",right:"left",bottom:"top",top:"bottom"},a={start:"end",end:"start"};function u(t,e,n){return r(t,s(e,n))}function d(t,e){return"function"==typeof t?t(e):t}function m(t){return t.split("-")[0]}function p(t){return t.split("-")[1]}function h(t){return"x"===t?"y":"x"}function y(t){return"y"===t?"height":"width"}function w(t){return["top","bottom"].includes(m(t))?"y":"x"}function g(t){return h(w(t))}function x(t,e,n){void 0===n&&(n=!1);const o=p(t),i=g(t),r=y(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=R(l)),[l,R(l)]}function v(t){const e=R(t);return[b(t),e,b(e)]}function b(t){return t.replace(/start|end/g,(t=>a[t]))}function A(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}function O(t,e,n,o){const i=p(t);let r=A(m(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(b)))),r}function R(t){return t.replace(/left|right|bottom|top/g,(t=>f[t]))}function k(t){return{top:0,right:0,bottom:0,left:0,...t}}function S(t){return"number"!=typeof t?k(t):{top:t,right:t,bottom:t,left:t}}function D(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function F(t,e,n){let{reference:o,floating:i}=t;const r=w(e),l=g(e),c=y(l),s=m(e),a="y"===r,f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,d=o[c]/2-i[c]/2;let h;switch(s){case"top":h={x:f,y:o.y-i.height};break;case"bottom":h={x:f,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-i.width,y:u};break;default:h={x:o.x,y:o.y}}switch(p(e)){case"start":h[l]-=d*(n&&a?-1:1);break;case"end":h[l]+=d*(n&&a?-1:1)}return h}const P=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,c=r.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(e));let a=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=F(a,o,s),d=o,m={},h=0;for(let n=0;n<c.length;n++){const{name:r,fn:p}=c[n],{x:g,y:y,data:w,reset:x}=await p({x:f,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:m,rects:a,platform:l,elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=y?y:u,m={...m,[r]:{...m[r],...w}},x&&h<=50&&(h++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(a=!0===x.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):x.rects),({x:f,y:u}=F(a,d,s))),n=-1)}return{x:f,y:u,placement:d,strategy:i,middlewareData:m}};async function $(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:c,strategy:s}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:h=0}=d(e,t),p=S(h),g=c[m?"floating"===u?"reference":"floating":u],y=D(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(g)))||n?g:g.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:s})),w="floating"===u?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,x=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c.floating)),v=await(null==r.isElement?void 0:r.isElement(x))&&await(null==r.getScale?void 0:r.getScale(x))||{x:1,y:1},b=D(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:x,strategy:s}):w);return{top:(y.top-b.top+p.top)/v.y,bottom:(b.bottom-y.bottom+p.bottom)/v.y,left:(y.left-b.left+p.left)/v.x,right:(b.right-y.right+p.right)/v.x}}const T=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:l,elements:c,middlewareData:a}=e,{element:f,padding:m=0}=d(t,e)||{};if(null==f)return{};const h=S(m),w={x:n,y:o},x=g(i),v=y(x),b=await l.getDimensions(f),R="y"===x,L=R?"top":"left",T=R?"bottom":"right",A=R?"clientHeight":"clientWidth",E=r.reference[v]+r.reference[x]-w[x]-r.floating[v],D=w[x]-r.reference[x],O=await(null==l.getOffsetParent?void 0:l.getOffsetParent(f));let C=O?O[A]:0;C&&await(null==l.isElement?void 0:l.isElement(O))||(C=c.floating[A]||r.floating[v]);const P=E/2-D/2,H=C/2-b[v]/2-1,F=s(h[L],H),B=s(h[T],H),W=F,k=C-b[v]-B,$=C/2-b[v]/2+P,G=u(W,$,k),z=!a.arrow&&null!=p(i)&&$!==G&&r.reference[v]/2-($<W?F:B)-b[v]/2<0,Q=z?$<W?$-W:$-k:0;return{[x]:w[x]+Q,data:{[x]:G,centerOffset:$-G-Q,...z&&{alignmentOffset:Q}},reset:z}}});function C(t,e,n){const o=t?[...n.filter((e=>p(e)===t)),...n.filter((e=>p(e)!==t))]:n.filter((t=>m(t)===t));return o.filter((n=>!t||(p(n)===t||!!e&&b(n)!==n)))}const E=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,r;const{rects:l,middlewareData:c,placement:s,platform:a,elements:f}=e,{crossAxis:u=!1,alignment:h,allowedPlacements:g=o,autoAlignment:y=!0,...w}=d(t,e),v=void 0!==h||g===o?C(h||null,y,g):g,b=await $(e,w),R=(null==(n=c.autoPlacement)?void 0:n.index)||0,L=v[R];if(null==L)return{};const T=x(L,l,await(null==a.isRTL?void 0:a.isRTL(f.floating)));if(s!==L)return{reset:{placement:v[0]}};const A=[b[m(L)],b[T[0]],b[T[1]]],E=[...(null==(i=c.autoPlacement)?void 0:i.overflows)||[],{placement:L,overflows:A}],D=v[R+1];if(D)return{data:{index:R+1,overflows:E},reset:{placement:D}};const O=E.map((t=>{const e=p(t.placement);return[t.placement,e&&u?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),P=O.filter((t=>t[2].slice(0,p(t[0])?2:3).every((t=>t<=0)))),H=(null==(r=P[0])?void 0:r[0])||O[0][0];return H!==s?{data:{index:R+1,overflows:E},reset:{placement:H}}:{}}}},z=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:c,platform:s,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...b}=d(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const L=m(i),T=w(c),A=m(c)===c,E=await(null==s.isRTL?void 0:s.isRTL(a.floating)),D=h||(A||!y?[R(c)]:v(c)),C="none"!==g;!h&&C&&D.push(...O(c,y,g,E));const P=[c,...D],H=await $(e,b),S=[];let F=(null==(o=r.flip)?void 0:o.overflows)||[];if(f&&S.push(H[L]),u){const t=x(i,l,E);S.push(H[t[0]],H[t[1]])}if(F=[...F,{placement:i,overflows:S}],!S.every((t=>t<=0))){var B,W;const t=((null==(B=r.flip)?void 0:B.index)||0)+1,e=P[t];if(e)return{data:{index:t,overflows:F},reset:{placement:e}};let n=null==(W=F.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:W.placement;if(!n)switch(p){case"bestFit":{var k;const t=null==(k=F.filter((t=>{if(C){const e=w(t.placement);return e===T||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:k[0];t&&(n=t);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}};function B(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function H(t){return n.some((e=>t[e]>=0))}const M=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=d(t,e);switch(o){case"referenceHidden":{const t=B(await $(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:H(t)}}}case"escaped":{const t=B(await $(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:H(t)}}}default:return{}}}}};function j(t){const e=s(...t.map((t=>t.left))),n=s(...t.map((t=>t.top)));return{x:e,y:n,width:r(...t.map((t=>t.right)))-e,height:r(...t.map((t=>t.bottom)))-n}}function L(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),n=[];let o=null;for(let t=0;t<e.length;t++){const i=e[t];!o||i.y-o.y>o.height/2?n.push([i]):n[n.length-1].push(i),o=i}return n.map((t=>D(j(t))))}const I=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:o,rects:i,platform:l,strategy:c}=e,{padding:a=2,x:f,y:u}=d(t,e),h=Array.from(await(null==l.getClientRects?void 0:l.getClientRects(o.reference))||[]),p=L(h),g=D(j(h)),y=S(a);const x=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&p[0].left>p[1].right&&null!=f&&null!=u)return p.find((t=>f>t.left-y.left&&f<t.right+y.right&&u>t.top-y.top&&u<t.bottom+y.bottom))||g;if(p.length>=2){if("y"===w(n)){const t=p[0],e=p[p.length-1],o="top"===m(n),i=t.top,r=e.bottom,l=o?t.left:e.left,c=o?t.right:e.right;return{top:i,bottom:r,left:l,right:c,width:c-l,height:r-i,x:l,y:i}}const t="left"===m(n),e=r(...p.map((t=>t.right))),o=s(...p.map((t=>t.left))),i=p.filter((n=>t?n.left===o:n.right===e)),l=i[0].top,c=i[i.length-1].bottom;return{top:l,bottom:c,left:o,right:e,width:e-o,height:c-l,x:o,y:l}}return g}},floating:o.floating,strategy:c});return i.reference.x!==x.reference.x||i.reference.y!==x.reference.y||i.reference.width!==x.reference.width||i.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}};async function N(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),l=m(n),c=p(n),s="y"===w(n),a=["left","top"].includes(l)?-1:1,f=r&&s?-1:1,u=d(e,t);let{mainAxis:h,crossAxis:g,alignmentAxis:y}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return c&&"number"==typeof y&&(g="end"===c?-1*y:y),s?{x:g*f,y:h*a}:{x:h*a,y:g*f}}const q=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:l,middlewareData:c}=e,s=await N(e,t);return l===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:i+s.x,y:r+s.y,data:{...s,placement:l}}}}},W=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:l=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=d(t,e),a={x:n,y:o},f=await $(e,s),p=w(m(i)),g=h(p);let y=a[g],x=a[p];if(r){const t="y"===g?"bottom":"right";y=u(y+f["y"===g?"top":"left"],y,y-f[t])}if(l){const t="y"===p?"bottom":"right";x=u(x+f["y"===p?"top":"left"],x,x-f[t])}const v=c.fn({...e,[g]:y,[p]:x});return{...v,data:{x:v.x-n,y:v.y-o}}}}},V=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:l}=e,{offset:c=0,mainAxis:s=!0,crossAxis:a=!0}=d(t,e),f={x:n,y:o},u=w(i),p=h(u);let g=f[p],y=f[u];const x=d(c,e),v="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(s){const t="y"===p?"height":"width",e=r.reference[p]-r.floating[t]+v.mainAxis,n=r.reference[p]+r.reference[t]-v.mainAxis;g<e?g=e:g>n&&(g=n)}if(a){var b,R;const t="y"===p?"width":"height",e=["top","left"].includes(m(i)),n=r.reference[u]-r.floating[t]+(e&&(null==(b=l.offset)?void 0:b[u])||0)+(e?0:v.crossAxis),o=r.reference[u]+r.reference[t]+(e?0:(null==(R=l.offset)?void 0:R[u])||0)-(e?v.crossAxis:0);y<n?y=n:y>o&&(y=o)}return{[p]:g,[u]:y}}}},X=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:i,elements:l}=e,{apply:c=()=>{},...a}=d(t,e),f=await $(e,a),u=m(n),h=p(n),g="y"===w(n),{width:y,height:x}=o.floating;let v,b;"top"===u||"bottom"===u?(v=u,b=h===(await(null==i.isRTL?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(b=u,v="end"===h?"top":"bottom");const R=x-f.top-f.bottom,L=y-f.left-f.right,T=s(x-f[v],R),A=s(y-f[b],L),E=!e.middlewareData.shift;let D=T,O=A;if(g?O=h||E?s(A,L):L:D=h||E?s(T,R):R,E&&!h){const t=r(f.left,0),e=r(f.right,0),n=r(f.top,0),o=r(f.bottom,0);g?O=y-2*(0!==t||0!==e?t+e:r(f.left,f.right)):D=x-2*(0!==n||0!==o?n+o:r(f.top,f.bottom))}await c({...e,availableWidth:O,availableHeight:D});const C=await i.getDimensions(l.floating);return y!==C.width||x!==C.height?{reset:{rects:!0}}:{}}}};function Y(){return"undefined"!=typeof window}function _(t){return K(t)?(t.nodeName||"").toLowerCase():"#document"}function G(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function J(t){var e;return null==(e=(K(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function K(t){return!!Y()&&(t instanceof Node||t instanceof G(t).Node)}function Q(t){return!!Y()&&(t instanceof Element||t instanceof G(t).Element)}function U(t){return!!Y()&&(t instanceof HTMLElement||t instanceof G(t).HTMLElement)}function Z(t){return!(!Y()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof G(t).ShadowRoot)}function tt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=ct(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function nt(t){return["table","td","th"].includes(_(t))}function et(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function ot(t){const e=rt(),n=Q(t)?ct(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>!!n[t]&&"none"!==n[t]))||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function st(t){let e=ft(t);for(;U(e)&&!it(e);){if(ot(e))return e;if(et(e))return null;e=ft(e)}return null}function rt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function it(t){return["html","body","#document"].includes(_(t))}function ct(t){return G(t).getComputedStyle(t)}function lt(t){return Q(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ft(t){if("html"===_(t))return t;const e=t.assignedSlot||t.parentNode||Z(t)&&t.host||J(t);return Z(e)?e.host:e}function at(t){const e=ft(t);return it(e)?t.ownerDocument?t.ownerDocument.body:t.body:U(e)&&tt(e)?e:at(e)}function ut(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=at(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=G(i);if(r){const t=dt(l);return e.concat(l,l.visualViewport||[],tt(i)?i:[],t&&n?ut(t):[])}return e.concat(i,ut(i,[],n))}function dt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function mt(t){const e=ct(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=U(t),l=r?t.offsetWidth:n,c=r?t.offsetHeight:o,s=i(n)!==l||i(o)!==c;return s&&(n=l,o=c),{width:n,height:o,$:s}}function pt(t){return Q(t)?t:t.contextElement}function ht(t){const e=pt(t);if(!U(e))return l(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:c}=mt(e);let s=(c?i(n.width):n.width)/o,a=(c?i(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const yt=l(0);function wt(t){const e=G(t);return rt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:yt}function gt(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==G(t))&&e}function xt(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=pt(t);let c=l(1);e&&(o?Q(o)&&(c=ht(o)):c=ht(t));const s=gt(r,n,o)?wt(r):l(0);let a=(i.left+s.x)/c.x,f=(i.top+s.y)/c.y,u=i.width/c.x,d=i.height/c.y;if(r){const t=G(r),e=o&&Q(o)?G(o):o;let n=t,i=dt(n);for(;i&&o&&e!==n;){const t=ht(i),e=i.getBoundingClientRect(),o=ct(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;a*=t.x,f*=t.y,u*=t.x,d*=t.y,a+=r,f+=l,n=G(i),i=dt(n)}}return D({width:u,height:d,x:a,y:f})}function vt(t,e){const n=lt(t).scrollLeft;return e?e.left+n:xt(J(t)).left+n}function bt(t,e,n){void 0===n&&(n=!1);const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-(n?0:vt(t,o)),y:o.top+e.scrollTop}}function At(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,c=J(o),s=!!e&&et(e.floating);if(o===c||s&&r)return n;let a={scrollLeft:0,scrollTop:0},f=l(1);const u=l(0),d=U(o);if((d||!d&&!r)&&(("body"!==_(o)||tt(c))&&(a=lt(o)),U(o))){const t=xt(o);f=ht(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}const m=!c||d||r?l(0):bt(c,a,!0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+u.x+m.x,y:n.y*f.y-a.scrollTop*f.y+u.y+m.y}}function Ot(t){return Array.from(t.getClientRects())}function Rt(t){const e=J(t),n=lt(t),o=t.ownerDocument.body,i=r(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),l=r(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+vt(t);const s=-n.scrollTop;return"rtl"===ct(o).direction&&(c+=r(e.clientWidth,o.clientWidth)-i),{width:i,height:l,x:c,y:s}}function kt(t,e){const n=G(t),o=J(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,c=0,s=0;if(i){r=i.width,l=i.height;const t=rt();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,s=i.offsetTop)}return{width:r,height:l,x:c,y:s}}function St(t,e){const n=xt(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=U(t)?ht(t):l(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}function Dt(t,e,n){let o;if("viewport"===e)o=kt(t,n);else if("document"===e)o=Rt(J(t));else if(Q(e))o=St(e,n);else{const n=wt(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return D(o)}function Ft(t,e){const n=ft(t);return!(n===e||!Q(n)||it(n))&&("fixed"===ct(n).position||Ft(n,e))}function Pt(t,e){const n=e.get(t);if(n)return n;let o=ut(t,[],!1).filter((t=>Q(t)&&"body"!==_(t))),i=null;const r="fixed"===ct(t).position;let l=r?ft(t):t;for(;Q(l)&&!it(l);){const e=ct(l),n=ot(l);n||"fixed"!==e.position||(i=null);(r?!n&&!i:!n&&"static"===e.position&&!!i&&["absolute","fixed"].includes(i.position)||tt(l)&&!n&&Ft(t,l))?o=o.filter((t=>t!==l)):i=e,l=ft(l)}return e.set(t,o),o}function $t(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const l=[..."clippingAncestors"===n?et(e)?[]:Pt(e,this._c):[].concat(n),o],c=l[0],a=l.reduce(((t,n)=>{const o=Dt(e,n,i);return t.top=r(o.top,t.top),t.right=s(o.right,t.right),t.bottom=s(o.bottom,t.bottom),t.left=r(o.left,t.left),t}),Dt(e,c,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Tt(t){const{width:e,height:n}=mt(t);return{width:e,height:n}}function Ct(t,e,n){const o=U(e),i=J(e),r="fixed"===n,c=xt(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const a=l(0);if(o||!o&&!r)if(("body"!==_(e)||tt(i))&&(s=lt(e)),o){const t=xt(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else i&&(a.x=vt(i));const f=!i||o||r?l(0):bt(i,s);return{x:c.left+s.scrollLeft-a.x-f.x,y:c.top+s.scrollTop-a.y-f.y,width:c.width,height:c.height}}function Et(t){return"static"===ct(t).position}function zt(t,e){if(!U(t)||"fixed"===ct(t).position)return null;if(e)return e(t);let n=t.offsetParent;return J(t)===n&&(n=n.ownerDocument.body),n}function Bt(t,e){const n=G(t);if(et(t))return n;if(!U(t)){let e=ft(t);for(;e&&!it(e);){if(Q(e)&&!Et(e))return e;e=ft(e)}return n}let o=zt(t,e);for(;o&&nt(o)&&Et(o);)o=zt(o,e);return o&&it(o)&&Et(o)&&!ot(o)?n:o||st(t)||n}const Ht=async function(t){const e=this.getOffsetParent||Bt,n=this.getDimensions,o=await n(t.floating);return{reference:Ct(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Mt(t){return"rtl"===ct(t).direction}const jt={convertOffsetParentRelativeRectToViewportRelativeRect:At,getDocumentElement:J,getClippingRect:$t,getOffsetParent:Bt,getElementRects:Ht,getClientRects:Ot,getDimensions:Tt,getScale:ht,isElement:Q,isRTL:Mt};function Lt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function It(t,e){let n,o=null;const i=J(t);function l(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function a(f,u){void 0===f&&(f=!1),void 0===u&&(u=1),l();const d=t.getBoundingClientRect(),{left:m,top:h,width:p,height:g}=d;if(f||e(),!p||!g)return;const y={rootMargin:-c(h)+"px "+-c(i.clientWidth-(m+p))+"px "+-c(i.clientHeight-(h+g))+"px "+-c(m)+"px",threshold:r(0,s(1,u))||1};let w=!0;function x(e){const o=e[0].intersectionRatio;if(o!==u){if(!w)return a();o?a(!1,o):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==o||Lt(d,t.getBoundingClientRect())||a(),w=!1}try{o=new IntersectionObserver(x,{...y,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(x,y)}o.observe(t)}(!0),l}function Nt(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,a=pt(t),f=i||r?[...a?ut(a):[],...ut(e)]:[];f.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const u=a&&c?It(a,n):null;let d,m=-1,h=null;l&&(h=new ResizeObserver((t=>{let[o]=t;o&&o.target===a&&h&&(h.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var t;null==(t=h)||t.observe(e)}))),n()})),a&&!s&&h.observe(a),h.observe(e));let p=s?xt(t):null;return s&&function e(){const o=xt(t);p&&!Lt(p,o)&&n();p=o,d=requestAnimationFrame(e)}(),n(),()=>{var t;f.forEach((t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==u||u(),null==(t=h)||t.disconnect(),h=null,s&&cancelAnimationFrame(d)}}const qt=q,Wt=W,Vt=z,Xt=T,Yt=(t,e,n)=>{const o=new Map,i={platform:jt,...n},r={...i.platform,_c:o};return P(t,e,{...i,platform:r})},_t=async({floatingElement:e,referenceElement:n,arrowElement:o,align:i="top"})=>{var r,l,c;if("test"!==t){const t=[qt(null!==(r=null==o?void 0:o.offsetHeight)&&void 0!==r?r:10),Vt(),Wt()];o&&t.push(Xt({element:o}));const{x:s,y:a,middlewareData:f,placement:u}=await Yt(n,e,{placement:i,middleware:t,strategy:"fixed"});Object.assign(e.style,{left:`${s}px`,top:`${a}px`,visibility:"visible"}),o&&((null===(l=f.arrow)||void 0===l?void 0:l.x)?Object.assign(o.style,{left:`${f.arrow.x}px`,top:"bottom"===u?-o.offsetHeight/2+"px":"",bottom:"top"===u?-o.offsetHeight/2+"px":""}):(null===(c=f.arrow)||void 0===c?void 0:c.y)&&Object.assign(o.style,{left:"right"===u?-o.offsetWidth/2+"px":"",right:"left"===u?-o.offsetWidth/2+"px":"",top:`${f.arrow.y}px`}))}};export{_t as a,Nt as b};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{n as o,b as t}from"./index-da3e0c00.js";import{a as e}from"./index-
|
4
|
+
import{n as o,b as t}from"./index-da3e0c00.js";import{a as e}from"./index-5ec1eac2.js";import{L as s}from"./dev.utils-fab45cbc.js";e((e=>{try{e.shadowRoot instanceof ShadowRoot&&o(e,t(e))}catch(o){}return"default"})),import("./devtools-878bf068.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((o=>{s.error(o)}));const c=()=>{},a=c,f=a;export{f as g};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
3
|
+
*/
|
4
|
+
import{w as t,i as a,b as o}from"./prop.validators-64749272.js";const r=["button","link","tab","treeitem"],n=(a,i)=>{t(a,"_role",(t=>"string"==typeof t&&r.includes(t)),new Set([`KoliBriAlternativeButtonLinkRole {${r.join(", ")}`]),i)},e=(t,r)=>{a(t,"_ariaDescription",r)},i=(t,a)=>{o(t,"_ariaExpanded",a)},s=["primary","secondary","normal","tertiary","danger","ghost","custom"],l=(a,r)=>{t(a,"_variant",(t=>"string"==typeof t&&s.includes(t)),new Set([`KoliBriButtonVariant {${s.join(", ")}`]),r,{defaultValue:"normal"})};export{i as a,n as b,l as c,e as v};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["alternativeButtonLinkRolePropTypeOptions","validateAlternativeButtonLinkRole","component","value","watchValidator","includes","Set","join","validateAriaDescription","watchString","validateAriaExpanded","watchBoolean","buttonVariantPropTypeOptions","validateButtonVariant","defaultValue"],"sources":["src/schema/props/alternative-button-link-role.ts","src/schema/props/aria-description.ts","src/schema/props/aria-expanded.ts","src/schema/props/button-variant.ts"],"sourcesContent":["/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\n\nconst alternativeButtonLinkRolePropTypeOptions = ['button', 'link', 'tab', 'treeitem'] as const;\nexport type AlternativeButtonLinkRolePropType = (typeof alternativeButtonLinkRolePropTypeOptions)[number];\n\n/**\n * Defines the role of the components primary element.\n */\nexport type PropAlternativeButtonLinkRole = {\n\trole: AlternativeButtonLinkRolePropType;\n};\n\n/* validator */\nexport const validateAlternativeButtonLinkRole = (component: Generic.Element.Component, value?: AlternativeButtonLinkRolePropType) => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_role`,\n\t\t(value) => typeof value === 'string' && alternativeButtonLinkRolePropTypeOptions.includes(value),\n\t\tnew Set([`KoliBriAlternativeButtonLinkRole {${alternativeButtonLinkRolePropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t);\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type AriaDescriptionPropType = string;\n\n/**\n * Defines the value for the aria-description attribute.\n */\nexport type PropAriaDescription = {\n\tariaDescription: AriaDescriptionPropType;\n};\n\n/* validator */\nexport const validateAriaDescription = (component: Generic.Element.Component, value?: AriaDescriptionPropType): void => {\n\twatchString(component, '_ariaDescription', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type AriaExpandedPropType = boolean;\n\n/**\n * Marks this element as open/expanded, or that the connected element (aria-controls/aria-owns) is open/expanded.\n * (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n */\nexport type PropAriaExpanded = {\n\tariaExpanded: AriaExpandedPropType;\n};\n\n/* validator */\nexport const validateAriaExpanded = (component: Generic.Element.Component, value?: AriaExpandedPropType): void => {\n\twatchBoolean(component, '_ariaExpanded', value);\n};\n","/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\n\nconst buttonVariantPropTypeOptions = ['primary', 'secondary', 'normal', 'tertiary', 'danger', 'ghost', 'custom'] as const;\nexport type ButtonVariantPropType = (typeof buttonVariantPropTypeOptions)[number];\n\n/**\n * Defines which variant should be used for presentation.\n */\nexport type PropButtonVariant = {\n\tvariant: ButtonVariantPropType;\n};\n\n/* validator */\nexport const validateButtonVariant = (component: Generic.Element.Component, value?: ButtonVariantPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_variant`,\n\t\t(value) => typeof value === 'string' && buttonVariantPropTypeOptions.includes(value),\n\t\tnew Set([`KoliBriButtonVariant {${buttonVariantPropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t\t{\n\t\t\tdefaultValue: 'normal',\n\t\t},\n\t);\n};\n"],"mappings":";;;gEAIA,MAAMA,EAA2C,CAAC,SAAU,OAAQ,MAAO,Y,MAW9DC,EAAoC,CAACC,EAAsCC,KACvFC,EACCF,EACA,SACCC,UAAiBA,IAAU,UAAYH,EAAyCK,SAASF,IAC1F,IAAIG,IAAI,CAAC,qCAAqCN,EAAyCO,KAAK,UAC5FJ,EACA,E,MCRWK,EAA0B,CAACN,EAAsCC,KAC7EM,EAAYP,EAAW,mBAAoBC,EAAM,E,MCCrCO,EAAuB,CAACR,EAAsCC,KAC1EQ,EAAaT,EAAW,gBAAiBC,EAAM,ECbhD,MAAMS,EAA+B,CAAC,UAAW,YAAa,SAAU,WAAY,SAAU,QAAS,U,MAW1FC,EAAwB,CAACX,EAAsCC,KAC3EC,EACCF,EACA,YACCC,UAAiBA,IAAU,UAAYS,EAA6BP,SAASF,IAC9E,IAAIG,IAAI,CAAC,yBAAyBM,EAA6BL,KAAK,UACpEJ,EACA,CACCW,aAAc,UAEf,S","ignoreList":[]}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
3
|
+
*/
|
4
|
+
import{w as o,q as n,o as e,p as t,s as a}from"./prop.validators-64749272.js";import{b as s}from"./common-54bf85ba.js";const c=(e,n)=>{o(e,"_on",(o=>"object"==typeof o&&null!==o),new Set(["TableCallbacksPropType {Events.onSort, Events.onSelectionChange}"]),n)},r=(e,n)=>{o(e,"_on",(o=>"object"==typeof o&&null!==o),new Set(["TableStatefulCallbacksPropType {Events.onSelectionChange}"]),n)},l=(o,s,r)=>{n(s,(()=>{e(s,(()=>{void 0===s&&(s=[]);try{s=t(s)}catch(o){}Array.isArray(s)&&s.every((o=>"object"==typeof o&&null!==o))&&a(o,"_data",s,r)}))}))},f=(o,s,r)=>{n(s,(()=>{e(s,(()=>{void 0===s&&(s=[]);try{s=t(s)}catch(o){}Array.isArray(s)&&s.every((o=>"object"==typeof o&&null!==o))&&a(o,"_dataFoot",s,r)}))}))},i=(o,e)=>{(o=>o&&s(o)&&"function"==typeof o.label&&(!o.selectedKeys||Array.isArray(o.selectedKeys)))("string"==typeof e?(()=>{try{return t(e)}catch(o){return}})():e)&&a(o,"_selection",e)};var u;!function(o){o.onBlur="onBlur",o.onChange="onChange",o.onChangePage="onChangePage",o.onClick="onClick",o.onClose="onClose",o.onDblClick="onDblClick",o.onFocus="onFocus",o.onInput="onInput",o.onKeyDown="onKeyDown",o.onKeyPress="onKeyPress",o.onKeyUp="onKeyUp",o.onMouseDown="onMouseDown",o.onMouseMove="onMouseMove",o.onMouseOut="onMouseOut",o.onMouseOver="onMouseOver",o.onMouseUp="onMouseUp",o.onReset="onReset",o.onSelect="onSelect",o.onSelectionChange="onSelectionChange",o.onChangePageSize="onChangePageSize",o.onSort="onSort",o.onSubmit="onSubmit",o.onToggle="onToggle"}(u||(u={}));export{u as C,f as a,i as b,r as c,c as d,l as v};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["validateTableCallbacks","component","value","watchValidator","Set","validateTableStatefulCallbacks","validateTableData","setStateHooks","emptyStringByArrayHandler","objectObjectHandler","parseJson","e","Array","isArray","every","data","setState","validateTableDataFoot","validateTableSelection","parseSerializedValue","undefined","validateObject","isObject","label","selectedKeys","objectValue","Callback"],"sources":["src/schema/props/table-callbacks.ts","src/schema/props/table-data.ts","src/schema/props/table-data-foot.ts","src/schema/props/table-selection.ts","src/schema/enums/callback.ts"],"sourcesContent":["import type { Callback } from '../enums';\nimport type { EventValueOrEventCallback } from '../types/callbacks';\nimport { watchValidator } from '../utils';\n\nimport type { Generic } from 'adopted-style-sheets';\nimport type { KoliBriSortDirection, KoliBriTableDataType } from '../types';\n\n/* types */\nexport type SortEventPayload = {\n\tkey: string;\n\tcurrentSortDirection: KoliBriSortDirection;\n};\n\nexport type SelectionChangeEventPayload = string[] | string;\nexport type StatefulSelectionChangeEventPayload = KoliBriTableDataType[] | KoliBriTableDataType | null;\n\nexport type TableCallbacksPropType = {\n\t[Callback.onSort]?: EventValueOrEventCallback<MouseEvent, SortEventPayload>;\n\t[Callback.onSelectionChange]?: EventValueOrEventCallback<Event, SelectionChangeEventPayload>;\n};\nexport type TableStatefulCallbacksPropType = {\n\t[Callback.onSelectionChange]?: EventValueOrEventCallback<Event, StatefulSelectionChangeEventPayload>;\n};\n/**\n * Defines the callback functions for table events.\n */\nexport type PropTableCallbacks = {\n\ton: TableCallbacksPropType;\n};\n\nexport type StatefulPropTableCallbacks = {\n\ton: TableStatefulCallbacksPropType;\n};\n\n/* validator */\nexport const validateTableCallbacks = (component: Generic.Element.Component, value?: TableCallbacksPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_on`,\n\t\t(value) => typeof value === 'object' && value !== null,\n\t\tnew Set(['TableCallbacksPropType {Events.onSort, Events.onSelectionChange}']),\n\t\tvalue,\n\t);\n};\n\nexport const validateTableStatefulCallbacks = (component: Generic.Element.Component, value?: TableStatefulCallbacksPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_on`,\n\t\t(value) => typeof value === 'object' && value !== null,\n\t\tnew Set(['TableStatefulCallbacksPropType {Events.onSelectionChange}']),\n\t\tvalue,\n\t);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { SetStateHooks } from '../utils';\nimport { emptyStringByArrayHandler, objectObjectHandler, parseJson, setState } from '../utils';\nimport type { KoliBriTableDataType, Stringified } from '../types';\n\n/* types */\nexport type TableDataPropType = Stringified<KoliBriTableDataType[]>;\n\n/**\n * Defines the primary table data.\n */\nexport type PropTableData = {\n\tdata: TableDataPropType;\n};\n\n/* validator */\nexport const validateTableData = (component: Generic.Element.Component, value?: TableDataPropType, setStateHooks?: SetStateHooks): void => {\n\temptyStringByArrayHandler(value, () => {\n\t\tobjectObjectHandler(value, () => {\n\t\t\tif (typeof value === 'undefined') {\n\t\t\t\tvalue = [];\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<KoliBriTableDataType[]>(value);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value keeps the original data\n\t\t\t}\n\t\t\tif (Array.isArray(value) && value.every((data: KoliBriTableDataType) => typeof data === 'object' && data !== null)) {\n\t\t\t\tsetState(component, '_data', value, setStateHooks);\n\t\t\t}\n\t\t});\n\t});\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { SetStateHooks } from '../utils';\nimport { emptyStringByArrayHandler, objectObjectHandler, parseJson, setState } from '../utils';\nimport type { KoliBriTableDataType, Stringified } from '../types';\n\n/* types */\nexport type TableDataFootPropType = Stringified<KoliBriTableDataType[]>;\n\n/**\n * Defines the data for the table footer.\n */\nexport type PropTableDataFoot = {\n\tdataFoot: TableDataFootPropType;\n};\n\n/* validator */\nexport const validateTableDataFoot = (component: Generic.Element.Component, value?: TableDataFootPropType, setStateHooks?: SetStateHooks): void => {\n\temptyStringByArrayHandler(value, () => {\n\t\tobjectObjectHandler(value, () => {\n\t\t\tif (typeof value === 'undefined') {\n\t\t\t\tvalue = [];\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<KoliBriTableDataType[]>(value);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value keeps the original data\n\t\t\t}\n\t\t\tif (Array.isArray(value) && value.every((data: KoliBriTableDataType) => typeof data === 'object' && data !== null)) {\n\t\t\t\tsetState(component, '_dataFoot', value, setStateHooks);\n\t\t\t}\n\t\t});\n\t});\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport type { KoliBriTableSelection, Stringified } from '../types';\nimport { parseJson, setState } from '../utils';\nimport { isObject } from '../validators';\n\n/* types */\nexport type TableSelectionPropType = Stringified<KoliBriTableSelection>;\n\n/**\n * Defines how rows can be selected and the current selection.\n */\nexport type PropTableSelection = {\n\tselection: TableSelectionPropType;\n};\n\n/* validator */\nexport const validateTableSelection = (component: Generic.Element.Component, value?: TableSelectionPropType): void => {\n\tconst parseSerializedValue = () => {\n\t\ttry {\n\t\t\treturn parseJson<KoliBriTableSelection>(value);\n\t\t} catch (e) {\n\t\t\treturn undefined;\n\t\t}\n\t};\n\n\tconst validateObject = (value?: KoliBriTableSelection) => {\n\t\treturn value && isObject(value) && typeof value.label === 'function' && (!value.selectedKeys || Array.isArray(value.selectedKeys));\n\t};\n\n\tconst objectValue = typeof value === 'string' ? parseSerializedValue() : value;\n\tif (validateObject(objectValue)) {\n\t\tsetState(component, '_selection', value);\n\t}\n};\n","export enum Callback {\n\tonBlur = 'onBlur',\n\tonChange = 'onChange',\n\tonChangePage = 'onChangePage',\n\tonClick = 'onClick',\n\tonClose = 'onClose',\n\tonDblClick = 'onDblClick',\n\tonFocus = 'onFocus',\n\tonInput = 'onInput',\n\tonKeyDown = 'onKeyDown',\n\tonKeyPress = 'onKeyPress',\n\tonKeyUp = 'onKeyUp',\n\tonMouseDown = 'onMouseDown',\n\tonMouseMove = 'onMouseMove',\n\tonMouseOut = 'onMouseOut',\n\tonMouseOver = 'onMouseOver',\n\tonMouseUp = 'onMouseUp',\n\tonReset = 'onReset',\n\tonSelect = 'onSelect',\n\tonSelectionChange = 'onSelectionChange',\n\tonChangePageSize = 'onChangePageSize',\n\tonSort = 'onSort',\n\tonSubmit = 'onSubmit',\n\tonToggle = 'onToggle',\n}\n"],"mappings":";;;6HAmCaA,EAAyB,CAACC,EAAsCC,KAC5EC,EACCF,EACA,OACCC,UAAiBA,IAAU,UAAYA,IAAU,MAClD,IAAIE,IAAI,CAAC,qEACTF,EACA,E,MAGWG,EAAiC,CAACJ,EAAsCC,KACpFC,EACCF,EACA,OACCC,UAAiBA,IAAU,UAAYA,IAAU,MAClD,IAAIE,IAAI,CAAC,8DACTF,EACA,E,MCnCWI,EAAoB,CAACL,EAAsCC,EAA2BK,KAClGC,EAA0BN,GAAO,KAChCO,EAAoBP,GAAO,KAC1B,UAAWA,IAAU,YAAa,CACjCA,EAAQ,E,CAET,IACCA,EAAQQ,EAAkCR,E,CAEzC,MAAOS,G,CAGT,GAAIC,MAAMC,QAAQX,IAAUA,EAAMY,OAAOC,UAAsCA,IAAS,UAAYA,IAAS,OAAO,CACnHC,EAASf,EAAW,QAASC,EAAOK,E,IAEpC,GACD,E,MChBUU,EAAwB,CAAChB,EAAsCC,EAA+BK,KAC1GC,EAA0BN,GAAO,KAChCO,EAAoBP,GAAO,KAC1B,UAAWA,IAAU,YAAa,CACjCA,EAAQ,E,CAET,IACCA,EAAQQ,EAAkCR,E,CAEzC,MAAOS,G,CAGT,GAAIC,MAAMC,QAAQX,IAAUA,EAAMY,OAAOC,UAAsCA,IAAS,UAAYA,IAAS,OAAO,CACnHC,EAASf,EAAW,YAAaC,EAAOK,E,IAExC,GACD,E,MCjBUW,EAAyB,CAACjB,EAAsCC,KAC5E,MAAMiB,EAAuB,KAC5B,IACC,OAAOT,EAAiCR,E,CACvC,MAAOS,GACR,OAAOS,S,GAIT,MAAMC,EAAkBnB,GAChBA,GAASoB,EAASpB,WAAiBA,EAAMqB,QAAU,cAAgBrB,EAAMsB,cAAgBZ,MAAMC,QAAQX,EAAMsB,eAGrH,MAAMC,SAAqBvB,IAAU,SAAWiB,IAAyBjB,EACzE,GAAImB,EAAeI,GAAc,CAChCT,EAASf,EAAW,aAAcC,E,OC/BxBwB,GAAZ,SAAYA,GACXA,EAAA,mBACAA,EAAA,uBACAA,EAAA,+BACAA,EAAA,qBACAA,EAAA,qBACAA,EAAA,2BACAA,EAAA,qBACAA,EAAA,qBACAA,EAAA,yBACAA,EAAA,2BACAA,EAAA,qBACAA,EAAA,6BACAA,EAAA,6BACAA,EAAA,2BACAA,EAAA,6BACAA,EAAA,yBACAA,EAAA,qBACAA,EAAA,uBACAA,EAAA,yCACAA,EAAA,uCACAA,EAAA,mBACAA,EAAA,uBACAA,EAAA,sBACA,EAxBD,CAAYA,MAAQ,Y","ignoreList":[]}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
const t=e=>"object"==typeof e&&null!==e,e=(e,t=0)=>"string"==typeof e&&e.length>=t,n=t=>{if("object"!=typeof t||null===t)return e(t,1);for(const n in t)if(!1===e(n,1))return!1;return!0},s=new Event("StateChange");export{s as S,
|
4
|
+
const t=e=>"object"==typeof e&&null!==e,e=(e,t=0)=>"string"==typeof e&&e.length>=t,n=t=>{if("object"!=typeof t||null===t)return e(t,1);for(const n in t)if(!1===e(n,1))return!1;return!0},s=new Event("StateChange");export{s as S,n as a,t as b,e as i};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
3
|
+
*/
|
4
|
+
let l="kol-abbr",t="kol-accordion",e="kol-alert",o="kol-alert-wc",k="kol-avatar",a="kol-avatar-wc",s="kol-badge",i="kol-breadcrumb",n="kol-button-link",r="kol-button",p="kol-button-wc",c="kol-card",b="kol-combobox",u="kol-details",d="kol-drawer",w="kol-form",m="kol-heading",g="kol-icon",v="kol-image",x="kol-input-checkbox",f="kol-input-color",h="kol-input-date",q="kol-input-email",j="kol-input-file",K="kol-input-number",y="kol-input-password",z="kol-input-radio",A="kol-input-range",B="kol-input",C="kol-input-text",D="kol-kolibri",E="kol-link-button",F="kol-link",G="kol-link-wc",H="kol-modal",I="kol-nav",J="kol-pagination",L="kol-popover-wc",M="kol-popover-button",N="kol-progress",O="kol-quote",P="kol-select",Q="kol-single-select",R="kol-skip-nav",S="kol-spin",T="kol-split-button",U="kol-table-stateful",V="kol-table-stateless",W="kol-table-stateless-wc",X="kol-tabs",Y="kol-textarea",Z="kol-toast-container",$="kol-tooltip-wc",_="kol-tree-item",ll="kol-tree-item-wc",tl="kol-tree",el="kol-tree-wc",ol="kol-version";const kl=kl=>{l=kl(l),t=kl(t),e=kl(e),o=kl(o),k=kl(k),a=kl(a),s=kl(s),i=kl(i),n=kl(n),r=kl(r),p=kl(p),c=kl(c),b=kl(b),u=kl(u),d=kl(d),w=kl(w),m=kl(m),g=kl(g),v=kl(v),x=kl(x),f=kl(f),h=kl(h),q=kl(q),j=kl(j),K=kl(K),y=kl(y),z=kl(z),A=kl(A),B=kl(B),C=kl(C),D=kl(D),E=kl(E),F=kl(F),G=kl(G),H=kl(H),I=kl(I),J=kl(J),L=kl(L),M=kl(M),N=kl(N),O=kl(O),P=kl(P),Q=kl(Q),R=kl(R),S=kl(S),T=kl(T),U=kl(U),V=kl(V),W=kl(W),X=kl(X),Y=kl(Y),Z=kl(Z),kl($),$=kl($),_=kl(_),ll=kl(ll),tl=kl(tl),el=kl(el),ol=kl(ol)};export{Z as K,p as a,o as b,a as c,g as d,F as e,G as f,$ as g,w as h,r as i,P as j,L as k,J as l,W as m,el as n,ll as o,s as p,tl as q,_ as r,kl as s};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["KolAbbrTag","KolAccordionTag","KolAlertTag","KolAlertWcTag","KolAvatarTag","KolAvatarWcTag","KolBadgeTag","KolBreadcrumbTag","KolButtonLinkTag","KolButtonTag","KolButtonWcTag","KolCardTag","KolComboboxTag","KolDetailsTag","KolDrawerTag","KolFormTag","KolHeadingTag","KolIconTag","KolImageTag","KolInputCheckboxTag","KolInputColorTag","KolInputDateTag","KolInputEmailTag","KolInputFileTag","KolInputNumberTag","KolInputPasswordTag","KolInputRadioTag","KolInputRangeTag","KolInputTag","KolInputTextTag","KolKolibriTag","KolLinkButtonTag","KolLinkTag","KolLinkWcTag","KolModalTag","KolNavTag","KolPaginationTag","KolPopoverWcTag","KolPopoverButtonTag","KolProgressTag","KolQuoteTag","KolSelectTag","KolSingleSelectTag","KolSkipNavTag","KolSpinTag","KolSplitButtonTag","KolTableStatefulTag","KolTableStatelessTag","KolTableStatelessWcTag","KolTabsTag","KolTextareaTag","KolToastContainerTag","KolTooltipWcTag","KolTreeItemTag","KolTreeItemWcTag","KolTreeTag","KolTreeWcTag","KolVersionTag","setCustomTagNames","transformTagName"],"sources":["src/core/component-names.ts"],"sourcesContent":["export let KolAbbrTag = 'kol-abbr' as const;\nexport let KolAccordionTag = 'kol-accordion' as const;\nexport let KolAlertTag = 'kol-alert' as const;\nexport let KolAlertWcTag = 'kol-alert-wc' as const;\nexport let KolAvatarTag = 'kol-avatar' as const;\nexport let KolAvatarWcTag = 'kol-avatar-wc' as const;\nexport let KolBadgeTag = 'kol-badge' as const;\nexport let KolBreadcrumbTag = 'kol-breadcrumb' as const;\nexport let KolButtonLinkTag = 'kol-button-link' as const;\nexport let KolButtonTag = 'kol-button' as const;\nexport let KolButtonWcTag = 'kol-button-wc' as const;\nexport let KolCardTag = 'kol-card' as const;\nexport let KolComboboxTag = 'kol-combobox' as const;\nexport let KolDetailsTag = 'kol-details' as const;\nexport let KolDrawerTag = 'kol-drawer' as const;\nexport let KolFormTag = 'kol-form' as const;\nexport let KolHeadingTag = 'kol-heading' as const;\nexport let KolIconTag = 'kol-icon' as const;\nexport let KolImageTag = 'kol-image' as const;\nexport let KolInputCheckboxTag = 'kol-input-checkbox' as const;\nexport let KolInputColorTag = 'kol-input-color' as const;\nexport let KolInputDateTag = 'kol-input-date' as const;\nexport let KolInputEmailTag = 'kol-input-email' as const;\nexport let KolInputFileTag = 'kol-input-file' as const;\nexport let KolInputNumberTag = 'kol-input-number' as const;\nexport let KolInputPasswordTag = 'kol-input-password' as const;\nexport let KolInputRadioTag = 'kol-input-radio' as const;\nexport let KolInputRangeTag = 'kol-input-range' as const;\nexport let KolInputTag = 'kol-input' as const;\nexport let KolInputTextTag = 'kol-input-text' as const;\nexport let KolKolibriTag = 'kol-kolibri' as const;\nexport let KolLinkButtonTag = 'kol-link-button' as const;\nexport let KolLinkTag = 'kol-link' as const;\nexport let KolLinkWcTag = 'kol-link-wc' as const;\nexport let KolModalTag = 'kol-modal' as const;\nexport let KolNavTag = 'kol-nav' as const;\nexport let KolPaginationTag = 'kol-pagination' as const;\nexport let KolPopoverWcTag = 'kol-popover-wc' as const;\nexport let KolPopoverButtonTag = 'kol-popover-button' as const;\nexport let KolProgressTag = 'kol-progress' as const;\nexport let KolQuoteTag = 'kol-quote' as const;\nexport let KolSelectTag = 'kol-select' as const;\nexport let KolSingleSelectTag = 'kol-single-select' as const;\nexport let KolSkipNavTag = 'kol-skip-nav' as const;\nexport let KolSpinTag = 'kol-spin' as const;\nexport let KolSplitButtonTag = 'kol-split-button' as const;\nexport let KolTableStatefulTag = 'kol-table-stateful';\nexport let KolTableStatelessTag = 'kol-table-stateless' as const;\nexport let KolTableStatelessWcTag = 'kol-table-stateless-wc' as const;\nexport let KolTabsTag = 'kol-tabs' as const;\nexport let KolTextareaTag = 'kol-textarea' as const;\nexport let KolToastContainerTag = 'kol-toast-container' as const;\nexport let KolToolbarTag = 'kol-toolbar' as const;\nexport let KolTooltipWcTag = 'kol-tooltip-wc' as const;\nexport let KolTreeItemTag = 'kol-tree-item' as const;\nexport let KolTreeItemWcTag = 'kol-tree-item-wc' as const;\nexport let KolTreeTag = 'kol-tree' as const;\nexport let KolTreeWcTag = 'kol-tree-wc' as const;\nexport let KolVersionTag = 'kol-version' as const;\n\nexport const setCustomTagNames = (transformTagName: (tagName: string) => string) => {\n\tKolAbbrTag = transformTagName(KolAbbrTag as string) as 'kol-abbr';\n\tKolAccordionTag = transformTagName(KolAccordionTag as string) as 'kol-accordion';\n\tKolAlertTag = transformTagName(KolAlertTag as string) as 'kol-alert';\n\tKolAlertWcTag = transformTagName(KolAlertWcTag as string) as 'kol-alert-wc';\n\tKolAvatarTag = transformTagName(KolAvatarTag as string) as 'kol-avatar';\n\tKolAvatarWcTag = transformTagName(KolAvatarWcTag as string) as 'kol-avatar-wc';\n\tKolBadgeTag = transformTagName(KolBadgeTag as string) as 'kol-badge';\n\tKolBreadcrumbTag = transformTagName(KolBreadcrumbTag as string) as 'kol-breadcrumb';\n\tKolButtonLinkTag = transformTagName(KolButtonLinkTag as string) as 'kol-button-link';\n\tKolButtonTag = transformTagName(KolButtonTag as string) as 'kol-button';\n\tKolButtonWcTag = transformTagName(KolButtonWcTag as string) as 'kol-button-wc';\n\tKolCardTag = transformTagName(KolCardTag as string) as 'kol-card';\n\tKolComboboxTag = transformTagName(KolComboboxTag as string) as 'kol-combobox';\n\tKolDetailsTag = transformTagName(KolDetailsTag as string) as 'kol-details';\n\tKolDrawerTag = transformTagName(KolDrawerTag as string) as 'kol-drawer';\n\tKolFormTag = transformTagName(KolFormTag as string) as 'kol-form';\n\tKolHeadingTag = transformTagName(KolHeadingTag as string) as 'kol-heading';\n\tKolIconTag = transformTagName(KolIconTag as string) as 'kol-icon';\n\tKolImageTag = transformTagName(KolImageTag as string) as 'kol-image';\n\tKolInputCheckboxTag = transformTagName(KolInputCheckboxTag as string) as 'kol-input-checkbox';\n\tKolInputColorTag = transformTagName(KolInputColorTag as string) as 'kol-input-color';\n\tKolInputDateTag = transformTagName(KolInputDateTag as string) as 'kol-input-date';\n\tKolInputEmailTag = transformTagName(KolInputEmailTag as string) as 'kol-input-email';\n\tKolInputFileTag = transformTagName(KolInputFileTag as string) as 'kol-input-file';\n\tKolInputNumberTag = transformTagName(KolInputNumberTag as string) as 'kol-input-number';\n\tKolInputPasswordTag = transformTagName(KolInputPasswordTag as string) as 'kol-input-password';\n\tKolInputRadioTag = transformTagName(KolInputRadioTag as string) as 'kol-input-radio';\n\tKolInputRangeTag = transformTagName(KolInputRangeTag as string) as 'kol-input-range';\n\tKolInputTag = transformTagName(KolInputTag as string) as 'kol-input';\n\tKolInputTextTag = transformTagName(KolInputTextTag as string) as 'kol-input-text';\n\tKolKolibriTag = transformTagName(KolKolibriTag as string) as 'kol-kolibri';\n\tKolLinkButtonTag = transformTagName(KolLinkButtonTag as string) as 'kol-link-button';\n\tKolLinkTag = transformTagName(KolLinkTag as string) as 'kol-link';\n\tKolLinkWcTag = transformTagName(KolLinkWcTag as string) as 'kol-link-wc';\n\tKolModalTag = transformTagName(KolModalTag as string) as 'kol-modal';\n\tKolNavTag = transformTagName(KolNavTag as string) as 'kol-nav';\n\tKolPaginationTag = transformTagName(KolPaginationTag as string) as 'kol-pagination';\n\tKolPopoverWcTag = transformTagName(KolPopoverWcTag as string) as 'kol-popover-wc';\n\tKolPopoverButtonTag = transformTagName(KolPopoverButtonTag as string) as 'kol-popover-button';\n\tKolProgressTag = transformTagName(KolProgressTag as string) as 'kol-progress';\n\tKolQuoteTag = transformTagName(KolQuoteTag as string) as 'kol-quote';\n\tKolSelectTag = transformTagName(KolSelectTag as string) as 'kol-select';\n\tKolSingleSelectTag = transformTagName(KolSingleSelectTag as string) as 'kol-single-select';\n\tKolSkipNavTag = transformTagName(KolSkipNavTag as string) as 'kol-skip-nav';\n\tKolSpinTag = transformTagName(KolSpinTag as string) as 'kol-spin';\n\tKolSplitButtonTag = transformTagName(KolSplitButtonTag as string) as 'kol-split-button';\n\tKolTableStatefulTag = transformTagName(KolTableStatefulTag) as 'kol-table-stateful';\n\tKolTableStatelessTag = transformTagName(KolTableStatelessTag as string) as 'kol-table-stateless';\n\tKolTableStatelessWcTag = transformTagName(KolTableStatelessWcTag as string) as 'kol-table-stateless-wc';\n\tKolTabsTag = transformTagName(KolTabsTag as string) as 'kol-tabs';\n\tKolTextareaTag = transformTagName(KolTextareaTag as string) as 'kol-textarea';\n\tKolToastContainerTag = transformTagName(KolToastContainerTag as string) as 'kol-toast-container';\n\tKolToolbarTag = transformTagName(KolTooltipWcTag as string) as 'kol-toolbar';\n\tKolTooltipWcTag = transformTagName(KolTooltipWcTag as string) as 'kol-tooltip-wc';\n\tKolTreeItemTag = transformTagName(KolTreeItemTag as string) as 'kol-tree-item';\n\tKolTreeItemWcTag = transformTagName(KolTreeItemWcTag as string) as 'kol-tree-item-wc';\n\tKolTreeTag = transformTagName(KolTreeTag as string) as 'kol-tree';\n\tKolTreeWcTag = transformTagName(KolTreeWcTag as string) as 'kol-tree-wc';\n\tKolVersionTag = transformTagName(KolVersionTag as string) as 'kol-version';\n};\n"],"mappings":"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","ignoreList":[]}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
3
|
+
*/
|
4
|
+
import{I as t}from"./getRenderStates-8a9e5504.js";import{a as e,g as s,b as i,w as a,s as r}from"./prop.validators-64749272.js";import{b as o,c as n}from"./label-e8ec0e3a.js";const l=t=>{if("object"==typeof t&&null!==t){if("string"==typeof t.label&&t.label.length>0)return t.disabled=!0===t.disabled,t.label=`${t.label}`.trim(),!1===o(t.label,3)&&!1===n(t.label)&&e(`A differing Aria-Label (${t.label}) is not accessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(t.options)||void 0===t.options.find((t=>!1===l(t)));if("number"==typeof t.label)return!0}return!1},f=(t,e,o={})=>{s(t,"_options",(t=>"object"==typeof t&&null!==t&&"string"==typeof t.label&&t.label.length>0),e,void 0,o)},h=(t,e,o={})=>{s(t,"_options",l,e,void 0,o)},c=(t,e)=>{i(t,"_required",e)},u=["horizontal","vertical"],p=(t,e,o="")=>{e.forEach(((e,a)=>{const i=`${o}-${a}`;"object"==typeof e&&null!==e&&"string"==typeof e.label&&e.label.length>0&&(Array.isArray(e.options)?p(t,e.options,i):t.set(i,e))}))};class d extends t{constructor(t,e,o){super(t,e,o),this.component=t}validateRequired(t){c(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateRequired(this.component._required)}}class b extends d{constructor(t,e,o){super(t,e,o),this.keyOptionMap=new Map,this.getOptionByKey=t=>this.keyOptionMap.get(t),this.afterPatchOptions=(t,e,o,a)=>{"_value"===a&&this.setFormAssociatedValue(t)},this.beforePatchOptions=(t,e)=>{const o=e.has("_options")?e.get("_options"):this.component.state._options;Array.isArray(o)&&o.length>0&&(this.keyOptionMap.clear(),p(this.keyOptionMap,o))},this.component=t}validateOrientation(t){a(this.component,"_orientation",(t=>"string"==typeof t&&u.includes(t)),new Set([`Orientation {${u.join(", ")}`]),t,{defaultValue:"vertical"})}validateOptions(t){f(this.component,t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateValue(t){t=Array.isArray(t)?t[0]:t,r(this.component,"_value",t,{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions})}componentWillLoad(){super.componentWillLoad(),this.validateOrientation(this.component._orientation),this.validateOptions(this.component._options),this.validateValue(this.component._value)}}export{d as I,b as a,f as b,p as f,h as v};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["validateInputSelectOptions","option","label","length","disabled","trim","hasEnoughReadableChars","containsOnlyNumbers","a11yHint","Array","isArray","options","find","item","undefined","validateOptions","component","value","watchJsonArrayString","validateOptionsWithOptgroup","validateRequired","watchBoolean","orientationOptions","fillKeyOptionMap","keyOptionMap","preKey","forEach","index","key","set","InputCheckboxRadioController","InputController","constructor","name","host","super","this","componentWillLoad","_required","InputRadioController","Map","getOptionByKey","get","afterPatchOptions","_state","_component","setFormAssociatedValue","beforePatchOptions","_value","nextState","has","state","_options","clear","validateOrientation","watchValidator","includes","Set","join","defaultValue","hooks","afterPatch","beforePatch","validateValue","setState","_orientation"],"sources":["src/schema/validators/options.ts","src/schema/props/options.ts","src/schema/props/required.ts","src/schema/types/orientation.ts","src/components/input-radio/controller.ts"],"sourcesContent":["import { containsOnlyNumbers, hasEnoughReadableChars } from '../props';\nimport { a11yHint } from '../utils';\n\nimport type { Optgroup, SelectOption } from '../types';\nexport const validateInputSelectOptions = <T>(option: SelectOption<T>): boolean => {\n\tif (typeof option === 'object' && option !== null) {\n\t\tif (typeof option.label === 'string' && option.label.length > 0) {\n\t\t\toption.disabled = option.disabled === true;\n\t\t\toption.label = `${option.label}`.trim();\n\t\t\tif (hasEnoughReadableChars(option.label, 3) === false && containsOnlyNumbers(option.label) === false) {\n\t\t\t\ta11yHint(`A differing Aria-Label (${option.label}) is not accessible. A differing Aria-Label should consist of at least three readable characters.`);\n\t\t\t}\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\treturn (\n\t\t\t\t\t(option as Optgroup<T>).options.find((item) => {\n\t\t\t\t\t\treturn validateInputSelectOptions(item) === false;\n\t\t\t\t\t}) === undefined\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (typeof option.label === 'number') {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { RadioOption, Optgroup, Option, StencilUnknown } from '../types';\nimport type { Stringified } from '../types/common';\nimport type { WatchOptions } from '../utils';\nimport { watchJsonArrayString } from '../utils';\nimport { validateInputSelectOptions } from '../validators';\n\n/* types */\n\nexport type OptionsPropType = Stringified<Option<StencilUnknown>[]>;\nexport type OptionsWithOptgroupPropType = Stringified<(Option<StencilUnknown> | Optgroup<StencilUnknown>)[]>;\nexport type RadioOptionsPropType = Stringified<RadioOption<StencilUnknown>[]>;\n\n/**\n * Options the user can choose from.\n */\nexport type PropOptions = {\n\toptions: OptionsPropType;\n};\n\nexport type PropRadioOptions = {\n\toptions: RadioOptionsPropType;\n};\n\n/**\n * Options the user can choose from, also supporting Optgroup.\n */\nexport type PropOptionsWithOptgroup = {\n\toptions: OptionsWithOptgroupPropType;\n};\n\n/* validators */\n\nexport const validateOptions = (component: Generic.Element.Component, value: OptionsPropType | undefined, options: WatchOptions = {}): void => {\n\twatchJsonArrayString(\n\t\tcomponent,\n\t\t'_options',\n\t\t(item: Option<StencilUnknown>) => typeof item === 'object' && item !== null && typeof item.label === 'string' && item.label.length > 0,\n\t\tvalue,\n\t\tundefined,\n\t\toptions,\n\t);\n};\n\nexport const validateOptionsWithOptgroup = (\n\tcomponent: Generic.Element.Component,\n\tvalue: OptionsWithOptgroupPropType | undefined,\n\toptions: WatchOptions = {},\n) => {\n\twatchJsonArrayString(component, '_options', validateInputSelectOptions, value, undefined, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\ntype RequiredPropType = boolean;\n\n/**\n * Makes the input element required.\n */\nexport type PropRequired = {\n\trequired: RequiredPropType;\n};\n\n/* validator */\nexport const validateRequired = (component: Generic.Element.Component, value?: RequiredPropType): void => {\n\twatchBoolean(component, '_required', value);\n};\n","export const orientationOptions = ['horizontal', 'vertical'] as const;\nexport type Orientation = (typeof orientationOptions)[number];\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type {\n\tInputRadioProps,\n\tInputRadioWatches,\n\tOptgroup,\n\tOptionsPropType,\n\tOrientation,\n\tPropLabelWithExpertSlot,\n\tRadioOption,\n\tSelectOption,\n\tStencilUnknown,\n\tStringified,\n\tW3CInputValue,\n} from '../../schema';\nimport { orientationOptions, setState, validateOptions, validateRequired, watchValidator } from '../../schema';\n\nimport { InputController } from '../@deprecated/input/controller';\n\nexport const fillKeyOptionMap = <T>(keyOptionMap: Map<string, RadioOption<T>>, options: SelectOption<T>[], preKey = ''): void => {\n\toptions.forEach((option, index) => {\n\t\tconst key = `${preKey}-${index}`;\n\t\tif (typeof option === 'object' && option !== null && typeof option.label === 'string' && option.label.length > 0) {\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\tfillKeyOptionMap(keyOptionMap, (option as Optgroup<T>).options, key);\n\t\t\t} else {\n\t\t\t\tkeyOptionMap.set(key, option as RadioOption<T>);\n\t\t\t}\n\t\t}\n\t});\n};\n\ntype RequiredProps = PropLabelWithExpertSlot;\ntype OptionalProps = {\n\trequired: boolean;\n};\ntype InputCheckboxRadioProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputCheckboxRadioWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputCheckboxRadioController extends InputController implements InputCheckboxRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputCheckboxRadioProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputCheckboxRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateRequired(value?: boolean): void {\n\t\tvalidateRequired(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateRequired(this.component._required);\n\t}\n}\n\nexport class InputRadioController extends InputCheckboxRadioController implements InputRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputRadioProps;\n\tprivate readonly keyOptionMap = new Map<string, RadioOption<W3CInputValue>>();\n\n\tpublic constructor(component: Generic.Element.Component & InputRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic readonly getOptionByKey = (key: string): RadioOption<W3CInputValue> | undefined => this.keyOptionMap.get(key);\n\n\tprotected readonly afterPatchOptions = (value: unknown, _state: Record<string, unknown>, _component: Generic.Element.Component, key: string): void => {\n\t\tif (key === '_value') {\n\t\t\tthis.setFormAssociatedValue(value as string);\n\t\t}\n\t};\n\n\tpublic validateOrientation(value?: Orientation): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_orientation',\n\t\t\t(value): boolean => typeof value === 'string' && orientationOptions.includes(value),\n\t\t\tnew Set([`Orientation {${orientationOptions.join(', ')}`]),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\tdefaultValue: 'vertical',\n\t\t\t},\n\t\t);\n\t}\n\n\tprotected readonly beforePatchOptions = (_value: unknown, nextState: Map<string, unknown>): void => {\n\t\tconst options = nextState.has('_options') ? nextState.get('_options') : this.component.state._options;\n\t\tif (Array.isArray(options) && options.length > 0) {\n\t\t\tthis.keyOptionMap.clear();\n\t\t\tfillKeyOptionMap(this.keyOptionMap, options as SelectOption<W3CInputValue>[]);\n\t\t}\n\t};\n\n\tpublic validateOptions(value?: OptionsPropType): void {\n\t\tvalidateOptions(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateValue(value?: Stringified<StencilUnknown>): void {\n\t\tvalue = Array.isArray(value) ? (value[0] as StencilUnknown) : value;\n\t\tsetState(this.component, '_value', value, {\n\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateOrientation(this.component._orientation);\n\t\tthis.validateOptions(this.component._options);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n"],"mappings":"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","ignoreList":[]}
|
1
|
+
{"version":3,"names":["validateInputSelectOptions","option","label","length","disabled","trim","hasEnoughReadableChars","containsOnlyNumbers","a11yHint","Array","isArray","options","find","item","undefined","validateOptions","component","value","watchJsonArrayString","validateOptionsWithOptgroup","validateRequired","watchBoolean","orientationOptions","fillKeyOptionMap","keyOptionMap","preKey","forEach","index","key","set","InputCheckboxRadioController","InputController","constructor","name","host","super","this","componentWillLoad","_required","InputRadioController","Map","getOptionByKey","get","afterPatchOptions","_state","_component","setFormAssociatedValue","beforePatchOptions","_value","nextState","has","state","_options","clear","validateOrientation","watchValidator","includes","Set","join","defaultValue","hooks","afterPatch","beforePatch","validateValue","setState","_orientation"],"sources":["src/schema/validators/options.ts","src/schema/props/options.ts","src/schema/props/required.ts","src/schema/types/orientation.ts","src/components/input-radio/controller.ts"],"sourcesContent":["import { containsOnlyNumbers, hasEnoughReadableChars } from '../props';\nimport { a11yHint } from '../utils';\n\nimport type { Optgroup, SelectOption } from '../types';\nexport const validateInputSelectOptions = <T>(option: SelectOption<T>): boolean => {\n\tif (typeof option === 'object' && option !== null) {\n\t\tif (typeof option.label === 'string' && option.label.length > 0) {\n\t\t\toption.disabled = option.disabled === true;\n\t\t\toption.label = `${option.label}`.trim();\n\t\t\tif (hasEnoughReadableChars(option.label, 3) === false && containsOnlyNumbers(option.label) === false) {\n\t\t\t\ta11yHint(`A differing Aria-Label (${option.label}) is not accessible. A differing Aria-Label should consist of at least three readable characters.`);\n\t\t\t}\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\treturn (\n\t\t\t\t\t(option as Optgroup<T>).options.find((item) => {\n\t\t\t\t\t\treturn validateInputSelectOptions(item) === false;\n\t\t\t\t\t}) === undefined\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (typeof option.label === 'number') {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { RadioOption, Optgroup, Option, StencilUnknown } from '../types';\nimport type { Stringified } from '../types/common';\nimport type { WatchOptions } from '../utils';\nimport { watchJsonArrayString } from '../utils';\nimport { validateInputSelectOptions } from '../validators';\n\n/* types */\n\nexport type OptionsPropType = Stringified<Option<StencilUnknown>[]>;\nexport type OptionsWithOptgroupPropType = Stringified<(Option<StencilUnknown> | Optgroup<StencilUnknown>)[]>;\nexport type RadioOptionsPropType = Stringified<RadioOption<StencilUnknown>[]>;\n\n/**\n * Options the user can choose from.\n */\nexport type PropOptions = {\n\toptions: OptionsPropType;\n};\n\nexport type PropRadioOptions = {\n\toptions: RadioOptionsPropType;\n};\n\n/**\n * Options the user can choose from, also supporting Optgroup.\n */\nexport type PropOptionsWithOptgroup = {\n\toptions: OptionsWithOptgroupPropType;\n};\n\n/* validators */\n\nexport const validateOptions = (component: Generic.Element.Component, value: OptionsPropType | undefined, options: WatchOptions = {}): void => {\n\twatchJsonArrayString(\n\t\tcomponent,\n\t\t'_options',\n\t\t(item: Option<StencilUnknown>) => typeof item === 'object' && item !== null && typeof item.label === 'string' && item.label.length > 0,\n\t\tvalue,\n\t\tundefined,\n\t\toptions,\n\t);\n};\n\nexport const validateOptionsWithOptgroup = (\n\tcomponent: Generic.Element.Component,\n\tvalue: OptionsWithOptgroupPropType | undefined,\n\toptions: WatchOptions = {},\n) => {\n\twatchJsonArrayString(component, '_options', validateInputSelectOptions, value, undefined, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\ntype RequiredPropType = boolean;\n\n/**\n * Makes the input element required.\n */\nexport type PropRequired = {\n\trequired: RequiredPropType;\n};\n\n/* validator */\nexport const validateRequired = (component: Generic.Element.Component, value?: RequiredPropType): void => {\n\twatchBoolean(component, '_required', value);\n};\n","export const orientationOptions = ['horizontal', 'vertical'] as const;\nexport type Orientation = (typeof orientationOptions)[number];\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type {\n\tInputRadioProps,\n\tInputRadioWatches,\n\tOptgroup,\n\tOptionsPropType,\n\tOrientation,\n\tPropLabelWithExpertSlot,\n\tRadioOption,\n\tSelectOption,\n\tStencilUnknown,\n\tStringified,\n\tW3CInputValue,\n} from '../../schema';\nimport { orientationOptions, setState, validateOptions, validateRequired, watchValidator } from '../../schema';\n\nimport { InputController } from '../@deprecated/input/controller';\n\nexport const fillKeyOptionMap = <T>(keyOptionMap: Map<string, RadioOption<T>>, options: SelectOption<T>[], preKey = ''): void => {\n\toptions.forEach((option, index) => {\n\t\tconst key = `${preKey}-${index}`;\n\t\tif (typeof option === 'object' && option !== null && typeof option.label === 'string' && option.label.length > 0) {\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\tfillKeyOptionMap(keyOptionMap, (option as Optgroup<T>).options, key);\n\t\t\t} else {\n\t\t\t\tkeyOptionMap.set(key, option as RadioOption<T>);\n\t\t\t}\n\t\t}\n\t});\n};\n\ntype RequiredProps = PropLabelWithExpertSlot;\ntype OptionalProps = {\n\trequired: boolean;\n};\ntype InputCheckboxRadioProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputCheckboxRadioWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputCheckboxRadioController extends InputController implements InputCheckboxRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputCheckboxRadioProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputCheckboxRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateRequired(value?: boolean): void {\n\t\tvalidateRequired(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateRequired(this.component._required);\n\t}\n}\n\nexport class InputRadioController extends InputCheckboxRadioController implements InputRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputRadioProps;\n\tprivate readonly keyOptionMap = new Map<string, RadioOption<W3CInputValue>>();\n\n\tpublic constructor(component: Generic.Element.Component & InputRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic readonly getOptionByKey = (key: string): RadioOption<W3CInputValue> | undefined => this.keyOptionMap.get(key);\n\n\tprotected readonly afterPatchOptions = (value: unknown, _state: Record<string, unknown>, _component: Generic.Element.Component, key: string): void => {\n\t\tif (key === '_value') {\n\t\t\tthis.setFormAssociatedValue(value as string);\n\t\t}\n\t};\n\n\tpublic validateOrientation(value?: Orientation): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_orientation',\n\t\t\t(value): boolean => typeof value === 'string' && orientationOptions.includes(value),\n\t\t\tnew Set([`Orientation {${orientationOptions.join(', ')}`]),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\tdefaultValue: 'vertical',\n\t\t\t},\n\t\t);\n\t}\n\n\tprotected readonly beforePatchOptions = (_value: unknown, nextState: Map<string, unknown>): void => {\n\t\tconst options = nextState.has('_options') ? nextState.get('_options') : this.component.state._options;\n\t\tif (Array.isArray(options) && options.length > 0) {\n\t\t\tthis.keyOptionMap.clear();\n\t\t\tfillKeyOptionMap(this.keyOptionMap, options as SelectOption<W3CInputValue>[]);\n\t\t}\n\t};\n\n\tpublic validateOptions(value?: OptionsPropType): void {\n\t\tvalidateOptions(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateValue(value?: Stringified<StencilUnknown>): void {\n\t\tvalue = Array.isArray(value) ? (value[0] as StencilUnknown) : value;\n\t\tsetState(this.component, '_value', value, {\n\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateOrientation(this.component._orientation);\n\t\tthis.validateOptions(this.component._options);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n"],"mappings":"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","ignoreList":[]}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{
|
4
|
+
import{h as e}from"./component-names-545d6582.js";import{n as o,K as t,j as n}from"./prop.validators-64749272.js";import{a as i,L as s}from"./dev.utils-fab45cbc.js";const f=t=>{for(i()&&(n("↓ Search form element start."),s.debug(t));t instanceof HTMLElement&&"FORM"!==t.tagName&&t.tagName!==e.toUpperCase();){try{t=t.parentElement instanceof HTMLElement?t.parentElement:t.parentNode instanceof ShadowRoot?t.parentNode.host:null}catch(e){}i()&&(s.debug(t),n("↑ Search form element finished."))}return t},a=(n={})=>{var a,s;const i=f(n.form);if(i instanceof HTMLElement){const n=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===i.tagName)o(n,i),i.dispatchEvent(n);else if(i.tagName===e.toUpperCase()){o(n,t.querySelector("form",i));const e=i;"function"==typeof(null===(a=e._on)||void 0===a?void 0:a.onReset)&&(null===(s=e._on)||void 0===s||s.onReset(n))}}},l=(a={})=>{const s=f(a.form);if(s instanceof HTMLElement){const a=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:s});if("FORM"===s.tagName)i()&&!1===s.noValidate&&n("If you have not focusable or hidden form fields in your form, you should enable noValidate for your form.",{force:!0}),setTimeout((()=>{"function"==typeof s.requestSubmit?s.requestSubmit():(o(a,s),s.dispatchEvent(a))}));else if(s.tagName===e.toUpperCase()){o(a,t.querySelector("form",s));const e=s;setTimeout((()=>{var t,o;"function"==typeof(null===(t=e._on)||void 0===t?void 0:t.onSubmit)&&(null===(o=e._on)||void 0===o||o.onSubmit(a))}))}}};export{a,l as p};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{w as t,k as i,i as s,b as a}from"./prop.validators-64749272.js";import{I as e}from"./controller-icon-
|
4
|
+
import{w as t,k as i,i as s,b as a}from"./prop.validators-64749272.js";import{I as e}from"./controller-icon-4031c3ea.js";import{v as h}from"./has-counter-23a7a06b.js";const o=["default","visibility-toggle"],r=(e,a)=>{t(e,"_variant",(t=>"string"==typeof t&&o.includes(t)),new Set(o),a)};class l extends e{constructor(t,e,a){super(t,e,a),this.afterSyncCharCounter=()=>{"string"==typeof this.component._value&&this.component._value.length>0&&(this.component.state._currentLength=this.component._value.length)},this.component=t}validateAutoComplete(e){t(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),e)}validateHasCounter(t){h(this.component,t,{hooks:{afterPatch:this.afterSyncCharCounter}})}validateVariant(t){r(this.component,t)}validateMaxLength(t){i(this.component,"_maxLength",t,{hooks:{afterPatch:this.afterSyncCharCounter},min:0})}validatePattern(t){s(this.component,"_pattern",t)}validatePlaceholder(t){s(this.component,"_placeholder",t)}validateReadOnly(t){a(this.component,"_readOnly",t)}validateRequired(t){a(this.component,"_required",t)}validateValue(t){s(this.component,"_value",t,{hooks:{afterPatch:this.afterSyncCharCounter}}),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateHasCounter(this.component._hasCounter),this.validateMaxLength(this.component._maxLength),this.validatePattern(this.component._pattern),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateValue(this.component._value),this.validateVariant(this.component._variant)}}export{l as I};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{I as s}from"./controller-
|
4
|
+
import{I as s}from"./controller-88aff6ff.js";import{v as t}from"./spell-check-cb87a985.js";import{w as e}from"./prop.validators-64749272.js";import{v as o}from"./suggestions-b6fd51c8.js";const i=["text","search","url","tel"];class r extends s{constructor(t,o,e){super(t,o,e),this.component=t}validateSuggestions(t){o(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class a extends r{constructor(t,o,e){super(t,o,e),this.hasError=!1,this.component=t}validateSpellCheck(o){t(this.component,o)}validateType(t){e(this.component,"_type",(t=>"string"==typeof t&&i.includes(t)),new Set([`String {${i.join(", ")}`]),t)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}export{r as I,a};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
3
|
+
*/
|
4
|
+
import{h as o}from"./index-5ec1eac2.js";import{i as n}from"./InternalUnderlinedBadgeText-f50a35ad.js";import{i as t}from"./isObject-ffcbbb76.js";import{_ as e}from"./tslib.es6-1173d062.js";import{a as s}from"./component-names-545d6582.js";import{K as i}from"./Icon-461f168a.js";import{c}from"./clsx-09a06a12.js";import{c as r,a,I as d}from"./getRenderStates-8a9e5504.js";import{i as l}from"./icons-458eee6a.js";import{o as m,p as b,w as p}from"./prop.validators-64749272.js";import{i as u}from"./common-54bf85ba.js";const f=(n,t)=>{var{position:s="start",class:i}=n,a=e(n,["position","class"]);const r="kol-input-container__adornment",l=`${r}--${s}`;return o("div",Object.assign({class:c(r,l,i)},a),t)},j=f;function h(o){return!!o&&(Array.isArray(o)?o.length>0:Boolean(o))}const O=(n,t)=>{var{class:s}=n,i=e(n,["class"]);return o("div",Object.assign({class:c("kol-input-container__container",s)},i),t)},v=(n,t)=>{const{class:s,startAdornment:i,endAdornment:a,disabled:l,msg:d,touched:m,containerProps:p,startAdornmentProps:b,endAdornmentProps:u}=n,g=e(n,["class","startAdornment","endAdornment","disabled","msg","touched","containerProps","startAdornmentProps","endAdornmentProps"]),f=r(d,m),_={"kol-input-container--disabled":l,[`kol-input-container--${(null==d?void 0:d.type)||"error"}`]:f},A=Object.assign({class:c("kol-input-container",_,s)},g);return h(i)||h(a)?o("div",Object.assign({},A),o(j,Object.assign({},b,{position:"start"}),i),o(O,Object.assign({},p),t),o(j,Object.assign({},u,{position:"end"}),a)):o("div",Object.assign({},A),o(O,Object.assign({},p),t))},_=v,A=n=>{const{label:t,icons:i,hideLabel:a,disabled:c,onClick:r}=n,l=e(n,["label","icons","hideLabel","disabled","onClick"]);return o(s,Object.assign({tabindex:0,_label:t,_disabled:c,_icons:i,_hideLabel:a,_on:{onClick:r}},l))},k=A,g=n=>{const{componentName:t="button",label:s,icon:a,onClick:c}=n,r=e(n,["componentName","label","icon","onClick"]);return o("button"===t?k:i,Object.assign({label:s||"",hideLabel:!0,icons:`codicon codicon-${a}`,onClick:c},r))},P=g;function x(o){let n,t;return"_icons"in o&&(n=o._icons),"_smartButton"in o&&(t=o._smartButton),{icons:n,smartButton:t,disabled:o._disabled,msg:a(o._msg),touched:o._touched}}const B=({state:s,endAdornment:e},i)=>{const{icons:a,smartButton:c,disabled:r,msg:l,touched:d}=x(s);let m=null==a?void 0:a.left;n(m)&&(m={icon:m});let p=null==a?void 0:a.right;n(p)&&(p={icon:p});const b=[],u=[];return e&&(Array.isArray(e)?u.push(...e):u.push(e)),m&&b.push(o(P,Object.assign({componentName:"icon"},t(m)?m:{}))),t(c)&&u.push(o(P,Object.assign({componentName:"button"},c,{hideLabel:!0,disabled:r}))),p&&u.push(o(P,Object.assign({componentName:"icon"},t(p)?p:{}))),o(_,{disabled:r,msg:l,touched:d,startAdornment:b,endAdornment:u},i)},C=B,I=(o,n)=>{const t=o;"object"==typeof t&&null!==t&&(u(t.right,1)&&(t.right={icon:t.right}),u(t.left,1)&&(t.left={icon:t.left}),n.set("_icons",t))};class L extends d{constructor(o,n,t){super(o,n,t),this.component=o}validateIcons(o){m(o,(()=>{try{o=b(o)}catch(o){}p(this.component,"_icons",(o=>"object"==typeof o&&null!==o&&(u(o.left,1)||l(o.left)||u(o.right,1)||l(o.right))),new Set(["KoliBriHorizontalIcon"]),o,{hooks:{beforePatch:I},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons)}}export{L as I,C as K,P as a};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["InputAdornment","_a","children","position","class","className","other","__rest","rootClassName","positionClassName","h","Object","assign","clsx","InputAdornment$1","hasItems","items","Array","isArray","length","Boolean","Container","KolInputContainerFc","props","classNames","startAdornment","endAdornment","disabled","msg","touched","containerProps","startAdornmentProps","endAdornmentProps","showMsg","checkHasMsg","stateCssClasses","type","baseProps","KolInputContainerFc$2","KolButtonFc","label","icons","hideLabel","onClick","KolButtonWcTag","tabindex","_label","_disabled","_icons","_hideLabel","_on","KolButtonFc$1","KolIconButtonFc","componentName","icon","Component","KolIconFc","KolIconButtonFc$1","getInputContainerProps","state","undefined","smartButton","_smartButton","convertMsgToInternMsg","_msg","_touched","InputContainerStateWrapperFc","defaultEndAdornment","leftIconProps","left","isString","rightIconProps","right","push","isObject","beforePatchIcons","value","nextState","set","InputIconController","InputController","constructor","component","name","host","super","this","validateIcons","objectObjectHandler","parseJson","e","watchValidator","isIcon","Set","hooks","beforePatch","required","componentWillLoad"],"sources":["src/functional-components/InputAdornment/InputAdornment.tsx","src/functional-components/InputContainer/InputContainer.tsx","src/functional-components/Button/Button.tsx","src/functional-components/IconButton/IconButton.tsx","src/functional-component-wrappers/InputContainerStateWrapper/InputContainerStateWrapper.tsx","src/components/@deprecated/input/controller-icon.ts"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\n\nexport type InputAdornmentProps = JSXBase.HTMLAttributes<HTMLDivElement> & {\n\tposition?: 'start' | 'end';\n};\n\nconst InputAdornment: FC<InputAdornmentProps> = ({ position = 'start', class: className, ...other }, children) => {\n\tconst rootClassName = `kol-input-container__adornment`;\n\tconst positionClassName = `${rootClassName}--${position}`;\n\n\treturn (\n\t\t<div class={clsx(rootClassName, positionClassName, className)} {...other}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default InputAdornment;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport clsx from 'clsx';\nimport type { JSXBase, VNode } from '@stencil/core/internal';\nimport InputAdornment from '../InputAdornment';\nimport { checkHasMsg, type InternMsgPropType } from '../../schema';\n\ntype InputAdornmentType = VNode | VNode[] | null;\n\nexport type InputContainerProps = JSXBase.HTMLAttributes & {\n\tstartAdornment?: InputAdornmentType;\n\tendAdornment?: InputAdornmentType;\n\tdisabled?: boolean;\n\tmsg?: InternMsgPropType;\n\ttouched?: boolean;\n\n\tcontainerProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n\tstartAdornmentProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n\tendAdornmentProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n};\n\nfunction hasItems(items?: InputAdornmentType): boolean {\n\tif (!items) {\n\t\treturn false;\n\t}\n\n\treturn Array.isArray(items) ? items.length > 0 : Boolean(items);\n}\n\nconst Container: FC<JSXBase.HTMLAttributes<HTMLDivElement>> = ({ class: className, ...other }, children) => {\n\treturn (\n\t\t<div class={clsx('kol-input-container__container', className)} {...other}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst KolInputContainerFc: FC<InputContainerProps> = (props, children) => {\n\tconst { class: classNames, startAdornment, endAdornment, disabled, msg, touched, containerProps, startAdornmentProps, endAdornmentProps, ...other } = props;\n\tconst showMsg = checkHasMsg(msg, touched);\n\n\tconst stateCssClasses = {\n\t\t['kol-input-container--disabled']: disabled,\n\t\t[`kol-input-container--${msg?.type || 'error'}`]: showMsg,\n\t};\n\n\tconst baseProps: JSXBase.HTMLAttributes<HTMLDivElement> = {\n\t\tclass: clsx('kol-input-container', stateCssClasses, classNames),\n\t\t...other,\n\t};\n\n\tif (!hasItems(startAdornment) && !hasItems(endAdornment)) {\n\t\treturn (\n\t\t\t<div {...baseProps}>\n\t\t\t\t<Container {...containerProps}>{children}</Container>\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div {...baseProps}>\n\t\t\t<InputAdornment {...startAdornmentProps} position=\"start\">\n\t\t\t\t{startAdornment}\n\t\t\t</InputAdornment>\n\t\t\t<Container {...containerProps}>{children}</Container>\n\t\t\t<InputAdornment {...endAdornmentProps} position=\"end\">\n\t\t\t\t{endAdornment}\n\t\t\t</InputAdornment>\n\t\t</div>\n\t);\n};\n\nexport default KolInputContainerFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\nimport type { InternalButtonProps } from '../../schema';\n\nexport type ButtonProps = Partial<InternalButtonProps> & {\n\tlabel: string;\n\tclass?: string;\n\tonClick?: (event: MouseEvent) => void;\n};\n\nconst KolButtonFc: FC<ButtonProps> = (props) => {\n\tconst { label, icons, hideLabel, disabled, onClick, ...other } = props;\n\n\treturn <KolButtonWcTag tabindex={0} _label={label} _disabled={disabled} _icons={icons} _hideLabel={hideLabel} _on={{ onClick }} {...other} />;\n};\n\nexport default KolButtonFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport KolButtonFc, { type ButtonProps } from '../Button';\nimport KolIconFc, { type IconProps } from '../Icon';\n\ntype IconType = Partial<Omit<IconProps, 'icons'>> & {\n\tcomponentName: 'icon';\n\ticon?: string;\n\tclass?: never;\n\n\tonClick?: (event: MouseEvent) => void;\n};\n\ntype ButtonType = Partial<Omit<ButtonProps, 'icons'>> & {\n\tcomponentName: 'button';\n\ticon?: string;\n\tlabel?: string;\n\tclass?: string;\n\n\tonClick?: (event: MouseEvent) => void;\n};\n\nexport type IconButtonProps = IconType | ButtonType;\n\n/**\n * `KolIconButtonFc` is a functional component that renders either a Button or an Icon based on the provided props.\n *\n * Depending on the value of the `componentName` prop, either a Button (`KolButtonFc`) or an Icon (`KolIconFc`) is rendered.\n * Both components support optional `icon` props for displaying an icon and an optional `onClick` handler for user interactions.\n *\n * This component combines the flexibility of rendering either a button with an optional label or a simple icon, while ensuring that unnecessary props for the selected element are not passed.\n *\n * Supported props:\n * - `componentName`: Specifies whether a 'button' or 'icon' should be rendered. Default is 'button'.\n * - `label`: An optional label, which is only shown for Buttons.\n * - `icon`: The name of the icon (e.g., \"home\", \"edit\") or the Codicon class used for the icon display.\n * - `class`: Optional CSS class for additional styling customization.\n * - `onClick`: Optional click handler for user interactions.\n *\n * Example usage:\n * ```tsx\n * <KolIconButtonFc componentName=\"button\" label=\"Submit\" icon=\"check\" onClick={handleClick} />\n * <KolIconButtonFc componentName=\"icon\" icon=\"alert\" onClick={handleClick} />\n * ```\n *\n * @param {IconButtonProps} props - The properties that customize the component, including the selection of the component type (Button or Icon) and other specific attributes.\n * @returns {JSX.Element} - The rendered JSX element (Button or Icon).\n */\nconst KolIconButtonFc: FC<IconButtonProps> = (props) => {\n\tconst { componentName = 'button', label, icon, onClick, ...other } = props;\n\tconst Component = componentName === 'button' ? KolButtonFc : KolIconFc;\n\n\treturn <Component label={label || ''} hideLabel icons={`codicon codicon-${icon}`} onClick={onClick} {...other} />;\n};\n\nexport default KolIconButtonFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { InternMsgPropType } from '../../schema';\nimport {\n\ttype ButtonProps,\n\ttype IconOrIconClass,\n\ttype InputColorStates,\n\ttype InputEmailStates,\n\ttype InputFileStates,\n\ttype InputNumberStates,\n\ttype InputPasswordStates,\n\ttype InputRangeStates,\n\ttype InputTextStates,\n\ttype KoliBriHorizontalIcons,\n\ttype TextareaStates,\n\ttype SelectStates,\n\tconvertMsgToInternMsg,\n} from '../../schema';\n\nimport KolInputContainerFc, { type InputContainerProps } from '../../functional-components/InputContainer';\nimport KolIconButtonFc from '../../functional-components/IconButton';\nimport { isObject, isString } from 'lodash-es';\n\ntype InputState =\n\t| TextareaStates\n\t| SelectStates\n\t| InputTextStates\n\t| InputEmailStates\n\t| InputPasswordStates\n\t| InputNumberStates\n\t| InputColorStates\n\t| InputFileStates\n\t| InputRangeStates;\n\nexport type InputContainerStateWrapperProps = Partial<InputContainerProps> & {\n\tstate: InputState;\n};\n\nfunction getInputContainerProps(state: InputState): {\n\ticons?: KoliBriHorizontalIcons;\n\tsmartButton?: ButtonProps;\n\tdisabled?: boolean;\n\tmsg?: InternMsgPropType;\n\ttouched?: boolean;\n} {\n\tlet icons: KoliBriHorizontalIcons | undefined = undefined;\n\tlet smartButton: ButtonProps | undefined;\n\n\tif ('_icons' in state) {\n\t\ticons = state._icons;\n\t}\n\n\tif ('_smartButton' in state) {\n\t\tsmartButton = state._smartButton;\n\t}\n\n\treturn {\n\t\ticons,\n\t\tsmartButton,\n\t\tdisabled: state._disabled,\n\t\tmsg: convertMsgToInternMsg(state._msg),\n\t\ttouched: state._touched,\n\t};\n}\n\nconst InputContainerStateWrapperFc: FC<InputContainerStateWrapperProps> = ({ state, endAdornment: defaultEndAdornment }, children) => {\n\tconst { icons, smartButton, disabled, msg, touched } = getInputContainerProps(state);\n\n\tlet leftIconProps: IconOrIconClass | undefined = icons?.left;\n\tif (isString(leftIconProps)) {\n\t\tleftIconProps = { icon: leftIconProps };\n\t}\n\n\tlet rightIconProps: IconOrIconClass | undefined = icons?.right;\n\tif (isString(rightIconProps)) {\n\t\trightIconProps = { icon: rightIconProps };\n\t}\n\n\tconst startAdornment = [];\n\tconst endAdornment = [];\n\n\tif (defaultEndAdornment) {\n\t\tif (Array.isArray(defaultEndAdornment)) {\n\t\t\tendAdornment.push(...defaultEndAdornment);\n\t\t} else {\n\t\t\tendAdornment.push(defaultEndAdornment);\n\t\t}\n\t}\n\n\tif (leftIconProps) {\n\t\tstartAdornment.push(<KolIconButtonFc componentName=\"icon\" {...(isObject(leftIconProps) ? leftIconProps : {})} />);\n\t}\n\n\tif (isObject(smartButton)) {\n\t\tendAdornment.push(<KolIconButtonFc componentName=\"button\" {...smartButton} hideLabel={true} disabled={disabled} />);\n\t}\n\n\tif (rightIconProps) {\n\t\tendAdornment.push(<KolIconButtonFc componentName=\"icon\" {...(isObject(rightIconProps) ? rightIconProps : {})} />);\n\t}\n\n\treturn (\n\t\t<KolInputContainerFc disabled={disabled} msg={msg} touched={touched} startAdornment={startAdornment} endAdornment={endAdornment}>\n\t\t\t{children}\n\t\t</KolInputContainerFc>\n\t);\n};\n\nexport default InputContainerStateWrapperFc;\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { KoliBriHorizontalIcons, Stringified } from '../../../schema';\nimport { isIcon, isString, objectObjectHandler, parseJson, watchValidator } from '../../../schema';\n\nimport { InputController } from './controller';\n\nimport type { Props, Watches } from './types-icon';\n\nconst beforePatchIcons = (value: unknown, nextState: Map<string, unknown>): void => {\n\tconst icons = value as KoliBriHorizontalIcons;\n\tif (typeof icons === 'object' && icons !== null) {\n\t\tif (isString(icons.right, 1)) {\n\t\t\ticons.right = { icon: icons.right as string };\n\t\t}\n\t\tif (isString(icons.left, 1)) {\n\t\t\ticons.left = { icon: icons.left as string };\n\t\t}\n\t\tnextState.set('_icons', icons);\n\t}\n};\n\nexport class InputIconController extends InputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateIcons(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tobjectObjectHandler(value, () => {\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<KoliBriHorizontalIcons>(value as string);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t}\n\t\t\twatchValidator(\n\t\t\t\tthis.component,\n\t\t\t\t'_icons',\n\t\t\t\t(value): boolean => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\ttypeof value === 'object' && value !== null && (isString(value.left, 1) || isIcon(value.left) || isString(value.right, 1) || isIcon(value.right))\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t\tnew Set(['KoliBriHorizontalIcon']),\n\t\t\t\tvalue,\n\t\t\t\t{\n\t\t\t\t\thooks: {\n\t\t\t\t\t\tbeforePatch: beforePatchIcons,\n\t\t\t\t\t},\n\t\t\t\t\trequired: true,\n\t\t\t\t},\n\t\t\t);\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateIcons(this.component._icons);\n\t}\n}\n"],"mappings":"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","ignoreList":[]}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{E as e}from"./index-
|
4
|
+
import{E as e}from"./index-5ec1eac2.js";import{p as t}from"./reuse-f46e7e35.js";import{L as n,g as i,s as o,b as s,c as r,d as a}from"./dev.utils-fab45cbc.js";const c=()=>{const e=i().querySelector('meta[name="kolibri"]');if(e&&e.hasAttribute("content")){const t=e.getAttribute("content");"string"==typeof t&&(o(t.includes("dev-mode=true")),s(t.includes("experimental-mode=true")),r(t.includes("color-contrast-analysis=true")))}},u=()=>{let e=a().KoliBri;return void 0===e&&(e={},Object.defineProperty(a(),"KoliBri",{value:e,writable:!1})),e},l=()=>{c(),n.debug(`\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | \`--' | |) /_ ,--.--. \`--'\n| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n| |\\ \\ | '-' | | | | | | '--' / | | | |\n\`--' \`--´ \`---´ \`--' \`--' \`------´ \`--' \`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${e.kolibriVersion}\n\t`,{forceLog:!0})},f=()=>{!0!==u().adviceShown&&(Object.defineProperty(u(),"adviceShown",{get:function(){return!0}}),n.debug("\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n"))};let m=()=>Math.floor(16777215*Math.random()).toString(16);"test"===t&&(m=()=>"nonce");export{l as i,m as n,f as r};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{i as t,r as e}from"./dev.utils-
|
4
|
+
import{i as t,r as e}from"./dev.utils-930d9493.js";import{e as o,g as s,L as r,a as i,f as a,d as l}from"./dev.utils-fab45cbc.js";import{y as n,t as c,z as f,A as d,B as p,p as m,C as L}from"./prop.validators-64749272.js";import"./index-5ec1eac2.js";import"./reuse-f46e7e35.js";import"./index-da3e0c00.js";const u=()=>{let t=l().KoliBri;return void 0===t&&(t={},Object.defineProperty(l(),"KoliBri",{value:t,writable:!1})),t};function v(t,e){try{Object.defineProperty(u(),t,{get:function(){return e}})}catch(e){r.debug(`KoliBri property ${t} is already bind.`)}}const h=(t,e)=>r.debug(`${t} ${e?"":"not "}activated`),g=()=>{if(t(),o()){e(),v("a11yColorContrast",n),v("querySelector",c),v("querySelectorAll",f),v("querySelectorColors",d),v("utils",(function(){return p})),v("parseJson",m),v("stringifyJson",L);const t=s().body,r=s().createElement("svg");if(r.setAttribute("aria-label","KoliBri-DevTools"),r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("role","toolbar"),r.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;"),r.innerHTML='<svg\n xmlns="http://www.w3.org/2000/svg"\n width="50"\n height="50"\n viewBox="0 0 600 600"\n>\n <path d="M353 322L213 304V434L353 322Z" fill="#047" />\n <path d="M209 564V304L149 434L209 564Z" fill="#047" />\n <path d="M357 316L417 250L361 210L275 244L357 316Z" fill="#047" />\n <path d="M353 318L35 36L213 300L353 318Z" fill="#047" />\n <path d="M329 218L237 92L250 222L272 241L329 218Z" fill="#047" />\n <path d="M391 286L565 272L421 252L391 286Z" fill="#047" />\n</svg>',s().body.appendChild(r),h("Development mode",o()),h("Experimental mode",i()),h("Color contrast analysis",a()),a()){const e=setTimeout((()=>{clearTimeout(e),setInterval((()=>{p.queryHtmlElementColors(s().createElement("div"),n(t),!1,!1)}),1e4)}),2500)}}};export{g as initialize};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
3
|
+
*/
|
4
|
+
var o;function e(e,o){return new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:!0,detail:o})}function l(o,l,n){o.dispatchEvent(e(l,n))}!function(e){e.blur="kolBlur",e.change="kolChange",e.changePage="kolChangePage",e.changePageSize="kolChangePageSize",e.click="kolClick",e.close="kolClose",e.focus="kolFocus",e.input="kolInput",e.mousedown="kolMousedown",e.reset="kolReset",e.select="kolSelect",e.selectionChange="kolSelectionChange",e.sort="kolSort",e.submit="kolSubmit",e.toggle="kolToggle"}(o||(o={}));export{o as K,l as d};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["KolEvent","createKoliBriEvent","event","detail","CustomEvent","bubbles","cancelable","composed","dispatchDomEvent","target","dispatchEvent"],"sources":["src/utils/events.ts"],"sourcesContent":["enum KolEvent {\n\tblur = 'kolBlur',\n\tchange = 'kolChange',\n\tchangePage = 'kolChangePage',\n\tchangePageSize = 'kolChangePageSize',\n\tclick = 'kolClick',\n\tclose = 'kolClose',\n\tfocus = 'kolFocus',\n\tinput = 'kolInput',\n\tmousedown = 'kolMousedown',\n\treset = 'kolReset',\n\tselect = 'kolSelect',\n\tselectionChange = 'kolSelectionChange',\n\tsort = 'kolSort',\n\tsubmit = 'kolSubmit',\n\ttoggle = 'kolToggle',\n}\n\nfunction createKoliBriEvent<T>(event: KolEvent, detail?: T): CustomEvent {\n\treturn new CustomEvent(event, {\n\t\tbubbles: true,\n\t\tcancelable: true,\n\t\tcomposed: true,\n\t\tdetail: detail,\n\t});\n}\n\nfunction dispatchDomEvent<T>(target: HTMLElement, event: KolEvent, detail?: T) {\n\ttarget.dispatchEvent(createKoliBriEvent<T>(event, detail));\n}\n\nexport { KolEvent, dispatchDomEvent };\n"],"mappings":";;;IAAKA,GAAL,SAAKA,GACJA,EAAA,kBACAA,EAAA,sBACAA,EAAA,8BACAA,EAAA,sCACAA,EAAA,oBACAA,EAAA,oBACAA,EAAA,oBACAA,EAAA,oBACAA,EAAA,4BACAA,EAAA,oBACAA,EAAA,sBACAA,EAAA,wCACAA,EAAA,kBACAA,EAAA,sBACAA,EAAA,qBACA,EAhBD,CAAKA,MAAQ,KAkBb,SAASC,EAAsBC,EAAiBC,GAC/C,OAAO,IAAIC,YAAYF,EAAO,CAC7BG,QAAS,KACTC,WAAY,KACZC,SAAU,KACVJ,OAAQA,GAEV,CAEA,SAASK,EAAoBC,EAAqBP,EAAiBC,GAClEM,EAAOC,cAAcT,EAAsBC,EAAOC,GACnD,Q","ignoreList":[]}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
3
|
+
*/
|
4
|
+
import{d as e,K as t}from"./events-5adf6b62.js";import{A as s}from"./associated.controller-5bee50ee.js";import{b as i,o,p as a,w as r,c as n,a as l,i as d,j as h,s as c}from"./prop.validators-64749272.js";import{v as u,a as f,b as m,c as p}from"./access-and-short-key-e094398d.js";import{v as b}from"./tooltip-align-c6eb75ce.js";import{v}from"./hide-label-8c202307.js";import{a as g}from"./label-e8ec0e3a.js";import{_ as y}from"./tslib.es6-1173d062.js";import{h as j,F as _}from"./index-5ec1eac2.js";import{c as L}from"./clsx-09a06a12.js";import{K as x}from"./Alert-0f69eea1.js";import{t as O}from"./i18n-005310a7.js";import{g as k}from"./component-names-545d6582.js";import{i as K,I as B}from"./InternalUnderlinedBadgeText-f50a35ad.js";import{b as P,s as C}from"./reuse-f46e7e35.js";import{b as F,i as M}from"./common-54bf85ba.js";const T=(e,t)=>{i(e,"_adjustHeight",t)},$=(e,t,o)=>{i(e,"_hideMsg",t,o)};function w(e){return Object.entries(e).reduce(((e,[t,o])=>{const s=t.startsWith("_")?t.slice(1):t;return Object.assign(Object.assign({},e),{[s]:o})}),{})}const H=(e,t)=>{o(t,(()=>{try{t=a(t)}catch(e){}r(e,"_msg",(e=>F(e)&&M(null==e?void 0:e._description,1)||void 0===(null==e?void 0:e._type)),new Set(["MsgPropType"]),t)}))};function I(e){if(e)return w(e)}function N(e,t){return!!e&&(!0===t||"error"!==(null==e?void 0:e.type))}const E=(e,t)=>{i(e,"_touched",t)},A=e=>{var{alert:t,msg:o,hideMsg:s,id:i,class:n}=e,a=y(e,["alert","msg","hideMsg","id","class"]);return j(x,Object.assign({id:`${i}-msg`,alert:t,type:"error",class:L("kol-form-field__msg",{"visually-hidden":!0===s},n)},o,a,{"aria-hidden":"true"}),(null==o?void 0:o.description)||void 0)},S=A,q=({hasExpertSlot:e,accessKey:t,shortKey:o,label:s,showBadge:i=!0})=>{if(e)return j("slot",{name:"expert"});if(!s)return null;const n=K(t)||K(o);if(!i||!n)return j("span",null,s);const a=P(t,o);return j(_,null,j(B,{badgeText:a,label:s})," ",j("span",{class:"badge-text-hint","aria-hidden":"true"},a))},D=e=>{var{component:t="label",id:o,baseClassName:s="kol-form-field",class:i,accessKey:n,shortKey:a,label:l,hideLabel:r,hasExpertSlot:d,showBadge:c}=e,h=y(e,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","showBadge"]);const m=!d&&r;return j(t,Object.assign({},h,{class:L(`${s}__label`,i),id:m?void 0:`${o}-label`,hidden:m,htmlFor:o}),j("span",{class:L(`${s}__label-text`)},j(q,{hasExpertSlot:d,accessKey:n,shortKey:a,label:l,showBadge:c})))},W=D,z=e=>{var{id:t,class:o,hint:s,baseClassName:i="kol-form-field"}=e,n=y(e,["id","class","hint","baseClassName"]);return s?j("span",Object.assign({class:L(`${i}__hint`,o),id:`${t}-hint`},n),s):null},U=z,V=e=>{var{currentLength:t,maxLength:o,class:s}=e,i=y(e,["currentLength","maxLength","class"]);return j("span",Object.assign({class:L("kol-form-field__counter",s)},i,{"aria-atomic":"true","aria-live":"polite","data-testid":"input-counter"}),t,o&&j(_,null,j("span",{"aria-label":O("kol-of"),role:"img"},"/"),o)," ",j("span",null,O("kol-characters")))},G=V,J=({id:e,align:t,badgeText:o,hideLabel:s,label:i,class:n})=>j(k,{"aria-hidden":"true",class:L("kol-form-field__tooltip",n),_badgeText:o,_align:t,_id:s?`${e}-label`:void 0,_label:i}),Q=J;function R(e){return(null==e?void 0:e.type)&&{default:"msg-type-default",info:"msg-type-info",success:"msg-type-success",warning:"msg-type-warning",error:"msg-type-error"}[null==e?void 0:e.type]||""}const X=(e,t)=>{var{class:o}=e,s=y(e,["class"]);return j("div",Object.assign({class:L("kol-form-field__input",o)},s),t)},Y=(e,t)=>{const{component:o="div",renderNoLabel:s,renderNoTooltip:i,renderNoHint:n,anotherChildren:a,id:l,required:r,alert:d,disabled:c,class:h,msg:m,hideMsg:p,hideLabel:u,label:b,hint:g,accessKey:f,shortKey:v,tooltipAlign:_,counter:K,readOnly:x,touched:O,formFieldLabelProps:k,formFieldHintProps:B,formFieldTooltipProps:F,formFieldMsgProps:M,formFieldCounterProps:I,formFieldInputProps:E}=e,H=y(e,["component","renderNoLabel","renderNoTooltip","renderNoHint","anotherChildren","id","required","alert","disabled","class","msg","hideMsg","hideLabel","label","hint","accessKey","shortKey","tooltipAlign","counter","readOnly","touched","formFieldLabelProps","formFieldHintProps","formFieldTooltipProps","formFieldMsgProps","formFieldCounterProps","formFieldInputProps"]),T=!s,A=!n,$=!i,w=C(b),q=N(m,O),D=P(f,v),V=$&&!w&&u;let z={"kol-form-field--disabled":Boolean(c),"kol-form-field--required":Boolean(r),"kol-form-field--touched":Boolean(O),"kol-form-field--hide-label":Boolean(u),"kol-form-field--read-only":Boolean(x),"kol-form-field--hidden-msg":Boolean(p)};return q&&(z=Object.assign(Object.assign({},z),{[`kol-form-field--${(null==m?void 0:m.type)||"error"}`]:!0,[`kol-form-field--${R(m)}`]:!0})),j(o,Object.assign({class:L("kol-form-field",z,h)},H),T&&j(W,Object.assign({},k||{},{id:l,hasExpertSlot:w,hideLabel:u,label:b,accessKey:f,shortKey:v})),j(X,Object.assign({},E),t,V&&j(Q,Object.assign({},F||{},{id:l,label:b,hideLabel:u,align:_,badgeText:D}))),K?j(G,Object.assign({},I||{},K)):null,q&&j(S,Object.assign({},M||{},{id:l,alert:d,msg:m,hideMsg:p})),A&&j(U,Object.assign({},B||{},{id:l,hint:g})),a)},Z=Y;function ee({ariaDescribedBy:e,hideLabel:t,label:o}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":t&&o?o:void 0}}class te extends s{constructor(e,t,o){super(e,t,o),this.component=e}validateTouched(e){E(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateTouched(this.component._touched)}}class se extends te{constructor(e,t,o){super(e,t,o),this.valueChangeListeners=[],this.onFacade={onBlur:this.onBlur.bind(this),onChange:this.onChange.bind(this),onClick:this.onClick.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this)},this.component=e}validateAccessKey(e){u(this.component,e),f(e,this.component._shortKey)}validateAdjustHeight(e){T(this.component,e)}validateDisabled(e){i(this.component,"_disabled",e),!0===e&&n()}validateTooltipAlign(e){b(this.component,e)}validateHideMsg(e){$(this.component,e,{hooks:{afterPatch:()=>{this.component.state._hideMsg&&l("Property _hideMsg for inputs: Only use when the error message is shown outside of the input component.")}}})}validateHideLabel(e){v(this.component,e,{hooks:{afterPatch:()=>{this.component.state._hideLabel&&l("Property hide-label for inputs: Only use for exceptions like search inputs that are clearly identifiable by their context.")}}})}validateHint(e){d(this.component,"_hint",e)}validateId(e){d(this.component,"_id",e,{minLength:1}),""!==e&&void 0!==e||h("A unique ID on the input fields is not strictly required, but it might be relevant for E2E tests.")}validateLabel(e){g(this.component,e,{required:!0})}validateMsg(e){H(this.component,e)}validateOn(e){"object"==typeof e&&c(this.component,"_on",e)}validateShortKey(e){m(this.component,e),f(this.component._accessKey,e)}validateSmartButton(e){o(e,(()=>{try{e=a(e)}catch(e){}c(this.component,"_smartButton",e)}))}validateTabIndex(e){p(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateAccessKey(this.component._accessKey),this.validateAdjustHeight(this.component._adjustHeight),this.validateMsg(this.component._msg),this.validateDisabled(this.component._disabled),this.validateHideMsg(this.component._hideMsg),this.validateHideLabel(this.component._hideLabel),this.validateHint(this.component._hint),this.validateId(this.component._id),this.validateLabel(this.component._label),this.validateShortKey(this.component._shortKey),this.validateSmartButton(this.component._smartButton),this.validateOn(this.component._on),this.validateTabIndex(this.component._tabIndex),f(this.component._accessKey,this.component._shortKey)}emitEvent(t,o){this.host&&e(this.host,t,o)}onBlur(e){var o;this.component._touched=!0,this.emitEvent(t.blur),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onBlur)&&this.component._on.onBlur(e)}onChange(e,o){var s;void 0===o&&(o=e.target.value),this.emitEvent(t.change,o),"function"==typeof(null===(s=this.component._on)||void 0===s?void 0:s.onChange)&&this.component._on.onChange(e,o),this.valueChangeListeners.forEach((e=>e(o)))}onInput(e,o=!0,s){var i;void 0===s&&(s=e.target.value),this.emitEvent(t.input,s),o&&this.setFormAssociatedValue(s),"function"==typeof(null===(i=this.component._on)||void 0===i?void 0:i.onInput)&&this.component._on.onInput(e,s)}onClick(e){var o;this.emitEvent(t.click),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onClick)&&this.component._on.onClick(e)}onFocus(e){var o;this.emitEvent(t.focus),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onFocus)&&this.component._on.onFocus(e)}addValueChangeListener(e){this.valueChangeListeners.push(e)}}function ie(e){const t={id:e._id,disabled:e._disabled,msg:I(e._msg),hint:e._hint,label:e._label,hideLabel:e._hideLabel,hideMsg:e._hideMsg,touched:e._touched,accessKey:e._accessKey,shortKey:e._shortKey};return"_required"in e&&(t.required=e._required),"_readOnly"in e&&(t.readOnly=e._readOnly),"_hasCounter"in e&&"_currentLength"in e&&(t.counter=e._hasCounter?{currentLength:e._currentLength}:void 0,t.counter&&"_maxLength"in e&&(t.counter.maxLength=e._maxLength)),t}const oe=(e,t)=>{var{state:o}=e,s=y(e,["state"]);return j(Z,Object.assign({},ie(o),s),t)},ae=oe,re=e=>{var t,o,s;const i=Boolean((null===(t=null==e?void 0:e._msg)||void 0===t?void 0:t._description)&&(null===(o=e._msg._description)||void 0===o?void 0:o.length)>0),n="error"===(null===(s=e._msg)||void 0===s?void 0:s._type)&&i&&!0===e._touched,a="string"==typeof e._hint&&e._hint.length>0,l=[];return i&&l.push(`${e._id}-msg`),a&&l.push(`${e._id}-hint`),{hasError:n,hasHint:a,ariaDescribedBy:l}};export{se as I,ae as K,I as a,Q as b,N as c,W as d,U as e,ee as f,re as g};
|