@public-ui/components 2.2.0-alpha.0 → 2.2.1-daf78eefb286eb2b5af07293e65a52004723eadc.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 +117 -9
- package/dist/cjs/{Alert-0f40ceeb.js → Alert-c979aa29.js} +1 -1
- package/dist/cjs/{Alert-0f40ceeb.js.map → Alert-c979aa29.js.map} +1 -1
- package/dist/cjs/{Collapsible-ce4add04.js → Collapsible-74fc3020.js} +1 -1
- package/dist/cjs/{Collapsible-ce4add04.js.map → Collapsible-74fc3020.js.map} +1 -1
- package/dist/cjs/FormFieldMsg-1d2d0770.js +4 -0
- package/dist/cjs/{FormFieldMsg-0ce3c1d5.js.map → FormFieldMsg-1d2d0770.js.map} +1 -1
- package/dist/cjs/InternalUnderlinedBadgeText-3eaff6b8.js +4 -0
- package/dist/cjs/InternalUnderlinedBadgeText-3eaff6b8.js.map +1 -0
- package/dist/cjs/access-and-short-key-aac2937e.js +4 -0
- package/dist/cjs/access-and-short-key-aac2937e.js.map +1 -0
- package/dist/cjs/{align-3c503831.js → align-f8528b48.js} +1 -1
- package/dist/cjs/{align-3c503831.js.map → align-f8528b48.js.map} +1 -1
- package/dist/cjs/{align-floating-elements-fa02822a.js → align-floating-elements-3de0ad8d.js} +1 -1
- package/dist/cjs/{align-floating-elements-fa02822a.js.map → align-floating-elements-3de0ad8d.js.map} +1 -1
- package/dist/cjs/app-globals-6da7f4b2.js +4 -0
- package/dist/cjs/{app-globals-b9071796.js.map → app-globals-6da7f4b2.js.map} +1 -1
- package/dist/cjs/{aria-expanded-23b849c8.js → aria-expanded-a51726cf.js} +1 -1
- package/dist/cjs/{aria-expanded-23b849c8.js.map → aria-expanded-a51726cf.js.map} +1 -1
- package/dist/cjs/{associated.controller-89004d23.js → associated.controller-83255c4a.js} +1 -1
- package/dist/cjs/{associated.controller-89004d23.js.map → associated.controller-83255c4a.js.map} +1 -1
- package/dist/cjs/badge-text-a16fc31f.js +4 -0
- package/dist/cjs/badge-text-a16fc31f.js.map +1 -0
- package/dist/cjs/{color-d5846b87.js → color-a418f5a8.js} +1 -1
- package/dist/cjs/{color-d5846b87.js.map → color-a418f5a8.js.map} +1 -1
- package/dist/cjs/component-names-72b76dc7.js +4 -0
- package/dist/cjs/component-names-72b76dc7.js.map +1 -0
- package/dist/cjs/controller-48e4c36c.js +4 -0
- package/dist/cjs/controller-48e4c36c.js.map +1 -0
- package/dist/cjs/{controller-288702e5.js → controller-5d4db72a.js} +1 -1
- package/dist/cjs/{controller-288702e5.js.map → controller-5d4db72a.js.map} +1 -1
- package/dist/cjs/{controller-0f1b3d6e.js → controller-6128cf81.js} +1 -1
- package/dist/cjs/{controller-0f1b3d6e.js.map → controller-6128cf81.js.map} +1 -1
- package/dist/cjs/{controller-2eba8698.js → controller-ce9d0cf2.js} +1 -1
- package/dist/cjs/{controller-2eba8698.js.map → controller-ce9d0cf2.js.map} +1 -1
- package/dist/cjs/{controller-dea5bb4b.js → controller-fb1042c0.js} +1 -1
- package/dist/cjs/{controller-dea5bb4b.js.map → controller-fb1042c0.js.map} +1 -1
- package/dist/cjs/{controller-icon-a466bfff.js → controller-icon-bd09c894.js} +1 -1
- package/dist/cjs/{controller-icon-a466bfff.js.map → controller-icon-bd09c894.js.map} +1 -1
- package/dist/cjs/custom-class-91f40a14.js +4 -0
- package/dist/cjs/{custom-class-3504ba89.js.map → custom-class-91f40a14.js.map} +1 -1
- package/dist/cjs/{dev.utils-1d30adde.js → dev.utils-de21fdda.js} +1 -1
- package/dist/cjs/{dev.utils-1d30adde.js.map → dev.utils-de21fdda.js.map} +1 -1
- package/dist/cjs/{devtools-3c19f95f.js → devtools-8541e55f.js} +1 -1
- package/dist/cjs/{devtools-3c19f95f.js.map → devtools-8541e55f.js.map} +1 -1
- package/dist/cjs/{disabled-b52570d6.js → disabled-28099fb9.js} +1 -1
- package/dist/cjs/{disabled-b52570d6.js.map → disabled-28099fb9.js.map} +1 -1
- package/dist/cjs/{events-b2e94683.js → events-04105678.js} +1 -1
- package/dist/cjs/{events-b2e94683.js.map → events-04105678.js.map} +1 -1
- package/dist/cjs/has-closer-202971cf.js +4 -0
- package/dist/cjs/{has-closer-ec9dd05f.js.map → has-closer-202971cf.js.map} +1 -1
- package/dist/cjs/has-counter-b05c47ed.js +4 -0
- package/dist/cjs/{has-counter-df7be5b1.js.map → has-counter-b05c47ed.js.map} +1 -1
- package/dist/cjs/hide-label-44221dbb.js +4 -0
- package/dist/cjs/{hide-label-9c7c3e00.js.map → hide-label-44221dbb.js.map} +1 -1
- package/dist/cjs/href-79ceaacb.js +4 -0
- package/dist/cjs/{href-9981395d.js.map → href-79ceaacb.js.map} +1 -1
- package/dist/cjs/{i18n-b46c3c64.js → i18n-1d085d07.js} +1 -1
- package/dist/cjs/{i18n-b46c3c64.js.map → i18n-1d085d07.js.map} +1 -1
- package/dist/cjs/{icons-a8d865aa.js → icons-ff6ebf83.js} +1 -1
- package/dist/cjs/{icons-a8d865aa.js.map → icons-ff6ebf83.js.map} +1 -1
- package/dist/cjs/image-source-231d344b.js +4 -0
- package/dist/cjs/{image-source-59cf6672.js.map → image-source-231d344b.js.map} +1 -1
- package/dist/cjs/index-0cecacc3.js +4 -0
- package/dist/cjs/index-0cecacc3.js.map +1 -0
- package/dist/cjs/index-d67d2b82.js +4 -0
- package/dist/cjs/index-d67d2b82.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- 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-alert-wc.cjs.entry.js +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.cjs.entry.js +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-button-group-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-button-group.cjs.entry.js +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-drawer.cjs.entry.js +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-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-heading.cjs.entry.js +1 -1
- package/dist/cjs/kol-icon.cjs.entry.js +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-indented-text-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-indented-text.cjs.entry.js +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-input.cjs.entry.js +1 -1
- package/dist/cjs/kol-input.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-kolibri.cjs.entry.js +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-group.cjs.entry.js +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-logo.cjs.entry.js +1 -1
- package/dist/cjs/kol-modal.cjs.entry.js +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-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-quote.cjs.entry.js +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-span-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-span-wc.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-spin.cjs.entry.js +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-symbol.cjs.entry.js +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.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateless.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-table.cjs.entry.js +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-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.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.cjs.entry.js +1 -1
- package/dist/cjs/kol-version.cjs.entry.js +1 -1
- package/dist/cjs/kolibri.cjs.js +1 -1
- package/dist/cjs/{label-601352a4.js → label-4f366933.js} +1 -1
- package/dist/cjs/{label-601352a4.js.map → label-4f366933.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/open-23d9618a.js +4 -0
- package/dist/cjs/{open-589280df.js.map → open-23d9618a.js.map} +1 -1
- package/dist/cjs/{prop.validators-68958b0a.js → prop.validators-2610b418.js} +1 -1
- package/dist/cjs/{prop.validators-68958b0a.js.map → prop.validators-2610b418.js.map} +1 -1
- package/dist/cjs/reuse-8cfefa9b.js +4 -0
- package/dist/cjs/reuse-8cfefa9b.js.map +1 -0
- package/dist/cjs/rows-4703e493.js +4 -0
- package/dist/cjs/{rows-f05a1422.js.map → rows-4703e493.js.map} +1 -1
- package/dist/cjs/show-b4a06906.js +4 -0
- package/dist/cjs/{show-a1694e78.js.map → show-b4a06906.js.map} +1 -1
- package/dist/cjs/{suggestions-ebc74ae9.js → suggestions-02a44a8d.js} +1 -1
- package/dist/cjs/{suggestions-ebc74ae9.js.map → suggestions-02a44a8d.js.map} +1 -1
- package/dist/cjs/test-component.cjs.entry.js +1 -1
- package/dist/cjs/tooltip-align-1fdabbbf.js +4 -0
- package/dist/cjs/{tooltip-align-fa4e1395.js.map → tooltip-align-1fdabbbf.js.map} +1 -1
- package/dist/cjs/{validation-406b147b.js → validation-06e75113.js} +1 -1
- package/dist/cjs/{validation-406b147b.js.map → validation-06e75113.js.map} +1 -1
- package/dist/cjs/{validation-eebfcfd4.js → validation-7cf1adc1.js} +1 -1
- package/dist/cjs/{validation-eebfcfd4.js.map → validation-7cf1adc1.js.map} +1 -1
- package/dist/components/InternalUnderlinedBadgeText.js +4 -0
- package/dist/components/InternalUnderlinedBadgeText.js.map +1 -0
- package/dist/components/access-and-short-key.js +4 -0
- package/dist/components/access-and-short-key.js.map +1 -0
- package/dist/components/aria-expanded.js +1 -1
- package/dist/components/associated.controller.js +1 -1
- package/dist/components/badge-text.js +4 -0
- package/dist/components/badge-text.js.map +1 -0
- package/dist/components/color.js +1 -1
- package/dist/components/component-names.js +1 -1
- package/dist/components/component-names.js.map +1 -1
- package/dist/components/controller-icon.js +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/controller5.js +1 -1
- package/dist/components/custom-class.js +1 -1
- package/dist/components/devtools.js +1 -1
- package/dist/components/events2.js +1 -1
- package/dist/components/href.js +1 -1
- package/dist/components/icons.js +1 -1
- package/dist/components/image-source.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/kol-abbr.js +1 -1
- package/dist/components/kol-abbr.js.map +1 -1
- package/dist/components/kol-alert-wc.js +1 -1
- package/dist/components/kol-alert.js +1 -1
- package/dist/components/kol-alert.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-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-drawer.js +1 -1
- package/dist/components/kol-form.js +1 -1
- package/dist/components/kol-form.js.map +1 -1
- package/dist/components/kol-heading-wc.js +1 -1
- package/dist/components/kol-icon.js +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-input.js +1 -1
- package/dist/components/kol-input.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-logo.js +1 -1
- package/dist/components/kol-modal.js +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-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-quote.js +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-span-wc.js +1 -1
- package/dist/components/kol-span-wc.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-symbol.js +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.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-tooltip-wc.js +1 -1
- package/dist/components/kol-tooltip-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/prop.validators.js +1 -1
- package/dist/components/prop.validators.js.map +1 -1
- package/dist/components/reuse.js +1 -1
- package/dist/components/reuse.js.map +1 -1
- package/dist/components/suggestions.js +1 -1
- package/dist/components/validation2.js +1 -1
- package/dist/esm/{Alert-41eb6a8e.js → Alert-ae70cda5.js} +1 -1
- package/dist/esm/{Alert-41eb6a8e.js.map → Alert-ae70cda5.js.map} +1 -1
- package/dist/esm/{Collapsible-18075b3b.js → Collapsible-88c7f8bb.js} +1 -1
- package/dist/esm/{Collapsible-18075b3b.js.map → Collapsible-88c7f8bb.js.map} +1 -1
- package/dist/esm/FormFieldMsg-ddd16a10.js +4 -0
- package/dist/esm/{FormFieldMsg-68946810.js.map → FormFieldMsg-ddd16a10.js.map} +1 -1
- package/dist/esm/InternalUnderlinedBadgeText-a4a7abf2.js +4 -0
- package/dist/esm/InternalUnderlinedBadgeText-a4a7abf2.js.map +1 -0
- package/dist/esm/access-and-short-key-9ec48625.js +4 -0
- package/dist/esm/access-and-short-key-9ec48625.js.map +1 -0
- package/dist/esm/{align-51311afa.js → align-ae4737f4.js} +1 -1
- package/dist/esm/{align-51311afa.js.map → align-ae4737f4.js.map} +1 -1
- package/dist/esm/{align-floating-elements-8dfecb37.js → align-floating-elements-8e48c550.js} +1 -1
- package/dist/esm/{align-floating-elements-8dfecb37.js.map → align-floating-elements-8e48c550.js.map} +1 -1
- package/dist/esm/app-globals-7ec4e073.js +4 -0
- package/dist/esm/{app-globals-c157d4ed.js.map → app-globals-7ec4e073.js.map} +1 -1
- package/dist/esm/{aria-expanded-2a5c6c4e.js → aria-expanded-39ad73b1.js} +1 -1
- package/dist/esm/{aria-expanded-2a5c6c4e.js.map → aria-expanded-39ad73b1.js.map} +1 -1
- package/dist/esm/{associated.controller-1e499c7d.js → associated.controller-a936d50e.js} +1 -1
- package/dist/esm/{associated.controller-1e499c7d.js.map → associated.controller-a936d50e.js.map} +1 -1
- package/dist/esm/badge-text-2cb46664.js +4 -0
- package/dist/esm/badge-text-2cb46664.js.map +1 -0
- package/dist/esm/{color-44dcb59b.js → color-cc960eba.js} +1 -1
- package/dist/esm/{color-44dcb59b.js.map → color-cc960eba.js.map} +1 -1
- package/dist/esm/component-names-d278f819.js +4 -0
- package/dist/esm/component-names-d278f819.js.map +1 -0
- package/dist/esm/{controller-256a2635.js → controller-7d074c89.js} +1 -1
- package/dist/esm/{controller-256a2635.js.map → controller-7d074c89.js.map} +1 -1
- package/dist/esm/{controller-f552d61c.js → controller-886720ab.js} +1 -1
- package/dist/esm/{controller-f552d61c.js.map → controller-886720ab.js.map} +1 -1
- package/dist/esm/controller-c4e9f5c7.js +4 -0
- package/dist/esm/controller-c4e9f5c7.js.map +1 -0
- package/dist/esm/{controller-4e96bf51.js → controller-e5312c47.js} +1 -1
- package/dist/esm/{controller-4e96bf51.js.map → controller-e5312c47.js.map} +1 -1
- package/dist/esm/{controller-a0037ef5.js → controller-e8656fb7.js} +1 -1
- package/dist/esm/{controller-a0037ef5.js.map → controller-e8656fb7.js.map} +1 -1
- package/dist/esm/{controller-icon-563a0296.js → controller-icon-9462c444.js} +1 -1
- package/dist/esm/{controller-icon-563a0296.js.map → controller-icon-9462c444.js.map} +1 -1
- package/dist/esm/custom-class-335c45c9.js +4 -0
- package/dist/esm/{custom-class-918278a4.js.map → custom-class-335c45c9.js.map} +1 -1
- package/dist/esm/{dev.utils-5cfb4ba4.js → dev.utils-4b58b6b1.js} +1 -1
- package/dist/esm/{dev.utils-5cfb4ba4.js.map → dev.utils-4b58b6b1.js.map} +1 -1
- package/dist/esm/{devtools-811869ab.js → devtools-cf124f7a.js} +1 -1
- package/dist/esm/{devtools-811869ab.js.map → devtools-cf124f7a.js.map} +1 -1
- package/dist/esm/{disabled-0e948e69.js → disabled-c478f3c1.js} +1 -1
- package/dist/esm/{disabled-0e948e69.js.map → disabled-c478f3c1.js.map} +1 -1
- package/dist/esm/{events-017b59eb.js → events-cf068a0f.js} +1 -1
- package/dist/esm/{events-017b59eb.js.map → events-cf068a0f.js.map} +1 -1
- package/dist/esm/{has-closer-1805c7a8.js → has-closer-85fb3033.js} +1 -1
- package/dist/esm/{has-closer-1805c7a8.js.map → has-closer-85fb3033.js.map} +1 -1
- package/dist/esm/{has-counter-d51a01dd.js → has-counter-78647db8.js} +1 -1
- package/dist/esm/{has-counter-d51a01dd.js.map → has-counter-78647db8.js.map} +1 -1
- package/dist/esm/{hide-label-7d9e8ee6.js → hide-label-b5e3ed1a.js} +1 -1
- package/dist/esm/{hide-label-7d9e8ee6.js.map → hide-label-b5e3ed1a.js.map} +1 -1
- package/dist/esm/{href-876b240a.js → href-c2c70612.js} +1 -1
- package/dist/esm/{href-876b240a.js.map → href-c2c70612.js.map} +1 -1
- package/dist/esm/i18n-5fe08f1c.js +4 -0
- package/dist/esm/{i18n-8640d789.js.map → i18n-5fe08f1c.js.map} +1 -1
- package/dist/esm/{icons-33fc85f1.js → icons-6a56bde9.js} +1 -1
- package/dist/esm/{icons-33fc85f1.js.map → icons-6a56bde9.js.map} +1 -1
- package/dist/esm/{image-source-7b92b206.js → image-source-d2fcb054.js} +1 -1
- package/dist/esm/{image-source-7b92b206.js.map → image-source-d2fcb054.js.map} +1 -1
- package/dist/esm/index-31b91a7e.js +4 -0
- package/dist/esm/index-31b91a7e.js.map +1 -0
- package/dist/esm/index-aa4b49bc.js +4 -0
- package/dist/esm/index-aa4b49bc.js.map +1 -0
- package/dist/esm/index.js +1 -1
- 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-alert-wc.entry.js +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.entry.js +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-button-group-wc.entry.js +1 -1
- package/dist/esm/kol-button-group.entry.js +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-drawer.entry.js +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-wc.entry.js +1 -1
- package/dist/esm/kol-heading.entry.js +1 -1
- package/dist/esm/kol-icon.entry.js +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-indented-text-wc.entry.js +1 -1
- package/dist/esm/kol-indented-text.entry.js +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-input.entry.js +1 -1
- package/dist/esm/kol-input.entry.js.map +1 -1
- package/dist/esm/kol-kolibri.entry.js +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-group.entry.js +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-logo.entry.js +1 -1
- package/dist/esm/kol-modal.entry.js +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-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-quote.entry.js +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-span-wc.entry.js +1 -1
- package/dist/esm/kol-span-wc.entry.js.map +1 -1
- package/dist/esm/kol-spin.entry.js +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-symbol.entry.js +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.entry.js +1 -1
- package/dist/esm/kol-table-stateless.entry.js.map +1 -1
- package/dist/esm/kol-table.entry.js +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-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.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.entry.js +1 -1
- package/dist/esm/kol-version.entry.js +1 -1
- package/dist/esm/kolibri.js +1 -1
- package/dist/esm/{label-541a8424.js → label-a64b6a7b.js} +1 -1
- package/dist/esm/{label-541a8424.js.map → label-a64b6a7b.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{open-b0401165.js → open-77de65a3.js} +1 -1
- package/dist/esm/{open-b0401165.js.map → open-77de65a3.js.map} +1 -1
- package/dist/esm/{prop.validators-543d0c7b.js → prop.validators-a86a90ab.js} +1 -1
- package/dist/esm/{prop.validators-543d0c7b.js.map → prop.validators-a86a90ab.js.map} +1 -1
- package/dist/esm/reuse-32931294.js +4 -0
- package/dist/esm/reuse-32931294.js.map +1 -0
- package/dist/esm/{rows-2ccfdbdc.js → rows-7f43888b.js} +1 -1
- package/dist/esm/{rows-2ccfdbdc.js.map → rows-7f43888b.js.map} +1 -1
- package/dist/esm/show-d4099988.js +4 -0
- package/dist/esm/{show-4cb5cfd2.js.map → show-d4099988.js.map} +1 -1
- package/dist/esm/{suggestions-4fedd765.js → suggestions-4dab1555.js} +1 -1
- package/dist/esm/{suggestions-4fedd765.js.map → suggestions-4dab1555.js.map} +1 -1
- package/dist/esm/test-component.entry.js +1 -1
- package/dist/esm/tooltip-align-9dbf1d89.js +4 -0
- package/dist/esm/{tooltip-align-01afdf25.js.map → tooltip-align-9dbf1d89.js.map} +1 -1
- package/dist/esm/{validation-2e99145a.js → validation-450e1895.js} +1 -1
- package/dist/esm/{validation-2e99145a.js.map → validation-450e1895.js.map} +1 -1
- package/dist/esm/{validation-25fb8bf6.js → validation-56a3d825.js} +1 -1
- package/dist/esm/{validation-25fb8bf6.js.map → validation-56a3d825.js.map} +1 -1
- package/dist/kolibri/{Alert-41eb6a8e.js → Alert-ae70cda5.js} +1 -1
- package/dist/kolibri/Collapsible-88c7f8bb.js +4 -0
- package/dist/kolibri/FormFieldMsg-ddd16a10.js +4 -0
- package/dist/kolibri/InternalUnderlinedBadgeText-a4a7abf2.js +4 -0
- package/dist/kolibri/InternalUnderlinedBadgeText-a4a7abf2.js.map +1 -0
- package/dist/kolibri/access-and-short-key-9ec48625.js +4 -0
- package/dist/kolibri/access-and-short-key-9ec48625.js.map +1 -0
- package/dist/kolibri/align-ae4737f4.js +4 -0
- package/dist/kolibri/{align-floating-elements-8dfecb37.js → align-floating-elements-8e48c550.js} +1 -1
- package/dist/kolibri/app-globals-7ec4e073.js +4 -0
- package/dist/kolibri/{app-globals-c157d4ed.js.map → app-globals-7ec4e073.js.map} +1 -1
- package/dist/kolibri/aria-expanded-39ad73b1.js +4 -0
- package/dist/kolibri/assets/images/abgrenzung.jpg +0 -0
- package/dist/kolibri/{associated.controller-1e499c7d.js → associated.controller-a936d50e.js} +1 -1
- package/dist/kolibri/badge-text-2cb46664.js +4 -0
- package/dist/kolibri/badge-text-2cb46664.js.map +1 -0
- package/dist/kolibri/{color-44dcb59b.js → color-cc960eba.js} +1 -1
- package/dist/kolibri/component-names-d278f819.js +4 -0
- package/dist/kolibri/component-names-d278f819.js.map +1 -0
- package/dist/kolibri/{controller-256a2635.js → controller-7d074c89.js} +1 -1
- package/dist/kolibri/{controller-f552d61c.js → controller-886720ab.js} +1 -1
- package/dist/kolibri/controller-c4e9f5c7.js +4 -0
- package/dist/kolibri/controller-c4e9f5c7.js.map +1 -0
- package/dist/kolibri/{controller-4e96bf51.js → controller-e5312c47.js} +1 -1
- package/dist/kolibri/{controller-a0037ef5.js → controller-e8656fb7.js} +1 -1
- package/dist/kolibri/controller-icon-9462c444.js +4 -0
- package/dist/kolibri/custom-class-335c45c9.js +4 -0
- package/dist/kolibri/{dev.utils-5cfb4ba4.js → dev.utils-4b58b6b1.js} +1 -1
- package/dist/kolibri/devtools-cf124f7a.js +4 -0
- package/dist/kolibri/{devtools-811869ab.js.map → devtools-cf124f7a.js.map} +1 -1
- package/dist/kolibri/{disabled-0e948e69.js → disabled-c478f3c1.js} +1 -1
- package/dist/kolibri/events-cf068a0f.js +4 -0
- package/dist/kolibri/{events-017b59eb.js.map → events-cf068a0f.js.map} +1 -1
- package/dist/kolibri/has-closer-85fb3033.js +4 -0
- package/dist/kolibri/has-counter-78647db8.js +4 -0
- package/dist/kolibri/hide-label-b5e3ed1a.js +4 -0
- package/dist/kolibri/href-c2c70612.js +4 -0
- package/dist/kolibri/i18n-5fe08f1c.js +4 -0
- package/dist/kolibri/{icons-33fc85f1.js → icons-6a56bde9.js} +1 -1
- package/dist/kolibri/image-source-d2fcb054.js +4 -0
- package/dist/kolibri/index-31b91a7e.js +4 -0
- package/dist/kolibri/index-31b91a7e.js.map +1 -0
- package/dist/kolibri/{index-58c50745.js → index-aa4b49bc.js} +2 -2
- package/dist/kolibri/index-aa4b49bc.js.map +1 -0
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/index.esm.js.map +1 -1
- 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-alert-wc.entry.js +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.entry.js +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-button-group-wc.entry.js +1 -1
- package/dist/kolibri/kol-button-group.entry.js +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-drawer.entry.js +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-wc.entry.js +1 -1
- package/dist/kolibri/kol-heading.entry.js +1 -1
- package/dist/kolibri/kol-icon.entry.js +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-indented-text-wc.entry.js +1 -1
- package/dist/kolibri/kol-indented-text.entry.js +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-input.entry.js +1 -1
- package/dist/kolibri/kol-input.entry.js.map +1 -1
- package/dist/kolibri/kol-kolibri.entry.js +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-group.entry.js +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-logo.entry.js +1 -1
- package/dist/kolibri/kol-modal.entry.js +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-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-quote.entry.js +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-span-wc.entry.js +1 -1
- package/dist/kolibri/kol-span-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-spin.entry.js +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-symbol.entry.js +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.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
- package/dist/kolibri/kol-table.entry.js +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-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.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.entry.js +1 -1
- package/dist/kolibri/kol-version.entry.js +1 -1
- package/dist/kolibri/kolibri.esm.js +1 -1
- package/dist/kolibri/kolibri.esm.js.map +1 -1
- package/dist/kolibri/{label-541a8424.js → label-a64b6a7b.js} +1 -1
- package/dist/kolibri/open-77de65a3.js +4 -0
- package/dist/kolibri/{prop.validators-543d0c7b.js → prop.validators-a86a90ab.js} +1 -1
- package/dist/kolibri/reuse-32931294.js +4 -0
- package/dist/kolibri/reuse-32931294.js.map +1 -0
- package/dist/kolibri/rows-7f43888b.js +4 -0
- package/dist/kolibri/show-d4099988.js +4 -0
- package/dist/kolibri/{suggestions-4fedd765.js → suggestions-4dab1555.js} +1 -1
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/tooltip-align-9dbf1d89.js +4 -0
- package/dist/kolibri/validation-450e1895.js +4 -0
- package/dist/kolibri/validation-56a3d825.js +4 -0
- package/dist/types/components/@deprecated/input/controller.d.ts +3 -2
- package/dist/types/components/@deprecated/input/types.d.ts +3 -2
- package/dist/types/components/button/component.d.ts +3 -1
- package/dist/types/components/button/shadow.d.ts +2 -1
- package/dist/types/components/button-link/shadow.d.ts +2 -1
- package/dist/types/components/combobox/shadow.d.ts +3 -1
- package/dist/types/components/input/component.d.ts +2 -1
- package/dist/types/components/input/types.d.ts +2 -2
- package/dist/types/components/input-checkbox/shadow.d.ts +3 -1
- package/dist/types/components/input-color/shadow.d.ts +3 -1
- package/dist/types/components/input-date/shadow.d.ts +3 -2
- package/dist/types/components/input-email/shadow.d.ts +3 -1
- package/dist/types/components/input-file/shadow.d.ts +3 -1
- package/dist/types/components/input-number/shadow.d.ts +3 -1
- package/dist/types/components/input-password/shadow.d.ts +3 -1
- package/dist/types/components/input-radio/shadow.d.ts +3 -1
- package/dist/types/components/input-range/shadow.d.ts +3 -1
- package/dist/types/components/input-text/shadow.d.ts +5 -3
- package/dist/types/components/link/component.d.ts +3 -1
- package/dist/types/components/link/shadow.d.ts +2 -1
- package/dist/types/components/link-button/shadow.d.ts +2 -1
- package/dist/types/components/select/shadow.d.ts +3 -1
- package/dist/types/components/single-select/shadow.d.ts +3 -1
- package/dist/types/components/span/InternalUnderlinedBadgeText.d.ts +7 -0
- package/dist/types/components/span/component.d.ts +3 -3
- package/dist/types/components/textarea/shadow.d.ts +3 -1
- package/dist/types/components/tooltip/component.d.ts +3 -3
- package/dist/types/components.d.ts +188 -20
- package/dist/types/core/component-names.d.ts +2 -0
- package/dist/types/schema/components/button.d.ts +2 -2
- package/dist/types/schema/components/combobox.d.ts +3 -5
- package/dist/types/schema/components/input-checkbox.d.ts +3 -5
- package/dist/types/schema/components/input-color.d.ts +3 -5
- package/dist/types/schema/components/input-date.d.ts +2 -3
- package/dist/types/schema/components/input-email.d.ts +3 -5
- package/dist/types/schema/components/input-file.d.ts +3 -5
- package/dist/types/schema/components/input-number.d.ts +2 -3
- package/dist/types/schema/components/input-password.d.ts +3 -5
- package/dist/types/schema/components/input-radio.d.ts +3 -5
- package/dist/types/schema/components/input-range.d.ts +3 -5
- package/dist/types/schema/components/input-text.d.ts +3 -5
- package/dist/types/schema/components/link.d.ts +2 -2
- package/dist/types/schema/components/select.d.ts +3 -5
- package/dist/types/schema/components/single-select.d.ts +3 -5
- package/dist/types/schema/components/span.d.ts +3 -3
- package/dist/types/schema/components/textarea.d.ts +3 -5
- package/dist/types/schema/components/tooltip.d.ts +3 -3
- package/dist/types/schema/props/badge-text.d.ts +8 -0
- package/dist/types/schema/props/index.d.ts +1 -1
- package/dist/types/schema/props/short-key.d.ts +6 -0
- package/dist/types/schema/utils/prop.validators.d.ts +1 -1
- package/dist/types/schema/utils/reuse.d.ts +1 -0
- package/dist/types/schema/validators/access-and-short-key.d.ts +2 -0
- package/dist/types/utils/testing/index.d.ts +1 -1
- package/dist/types/utils/testing/snapshot-input-testing.d.ts +3 -0
- package/doc/badge.md +6 -6
- package/doc/button-link.md +1 -0
- package/doc/button.md +1 -0
- package/doc/combobox.md +1 -0
- package/doc/input-checkbox.md +1 -0
- package/doc/input-color.md +23 -22
- package/doc/input-date.md +29 -28
- package/doc/input-email.md +30 -29
- package/doc/input-file.md +24 -23
- package/doc/input-number.md +29 -28
- package/doc/input-password.md +29 -28
- package/doc/input-radio.md +1 -0
- package/doc/input-range.md +1 -0
- package/doc/input-text.md +30 -29
- package/doc/link-button.md +1 -0
- package/doc/link.md +1 -0
- package/doc/select.md +1 -0
- package/doc/single-select.md +1 -0
- package/doc/table-stateful.md +3 -7
- package/doc/textarea.md +1 -0
- package/package.json +2 -2
- package/vscode-custom-data.json +72 -0
- package/dist/cjs/FormFieldMsg-0ce3c1d5.js +0 -4
- package/dist/cjs/InternalUnderlinedAccessKey-b21fb498.js +0 -4
- package/dist/cjs/InternalUnderlinedAccessKey-b21fb498.js.map +0 -1
- package/dist/cjs/access-key-34e56e4c.js +0 -4
- package/dist/cjs/access-key-34e56e4c.js.map +0 -1
- package/dist/cjs/app-globals-b9071796.js +0 -4
- package/dist/cjs/component-names-66478d2a.js +0 -4
- package/dist/cjs/component-names-66478d2a.js.map +0 -1
- package/dist/cjs/controller-f8fc9d0f.js +0 -4
- package/dist/cjs/controller-f8fc9d0f.js.map +0 -1
- package/dist/cjs/custom-class-3504ba89.js +0 -4
- package/dist/cjs/has-closer-ec9dd05f.js +0 -4
- package/dist/cjs/has-counter-df7be5b1.js +0 -4
- package/dist/cjs/hide-label-9c7c3e00.js +0 -4
- package/dist/cjs/href-9981395d.js +0 -4
- package/dist/cjs/image-source-59cf6672.js +0 -4
- package/dist/cjs/index-45dd33c3.js +0 -4
- package/dist/cjs/index-45dd33c3.js.map +0 -1
- package/dist/cjs/index-5c47f7e1.js +0 -4
- package/dist/cjs/index-5c47f7e1.js.map +0 -1
- package/dist/cjs/open-589280df.js +0 -4
- package/dist/cjs/reuse-50a5792c.js +0 -4
- package/dist/cjs/reuse-50a5792c.js.map +0 -1
- package/dist/cjs/rows-f05a1422.js +0 -4
- package/dist/cjs/show-a1694e78.js +0 -4
- package/dist/cjs/tab-index-74743c67.js +0 -4
- package/dist/cjs/tab-index-74743c67.js.map +0 -1
- package/dist/cjs/tooltip-align-fa4e1395.js +0 -4
- package/dist/components/InternalUnderlinedAccessKey.js +0 -4
- package/dist/components/InternalUnderlinedAccessKey.js.map +0 -1
- package/dist/components/access-key.js +0 -4
- package/dist/components/access-key.js.map +0 -1
- package/dist/components/tab-index.js +0 -4
- package/dist/components/tab-index.js.map +0 -1
- package/dist/esm/FormFieldMsg-68946810.js +0 -4
- package/dist/esm/InternalUnderlinedAccessKey-9adbd164.js +0 -4
- package/dist/esm/InternalUnderlinedAccessKey-9adbd164.js.map +0 -1
- package/dist/esm/access-key-34f992c3.js +0 -4
- package/dist/esm/access-key-34f992c3.js.map +0 -1
- package/dist/esm/app-globals-c157d4ed.js +0 -4
- package/dist/esm/component-names-969b1c2c.js +0 -4
- package/dist/esm/component-names-969b1c2c.js.map +0 -1
- package/dist/esm/controller-304b74a0.js +0 -4
- package/dist/esm/controller-304b74a0.js.map +0 -1
- package/dist/esm/custom-class-918278a4.js +0 -4
- package/dist/esm/i18n-8640d789.js +0 -4
- package/dist/esm/index-58c50745.js +0 -4
- package/dist/esm/index-58c50745.js.map +0 -1
- package/dist/esm/index-fcc5bd94.js +0 -4
- package/dist/esm/index-fcc5bd94.js.map +0 -1
- package/dist/esm/reuse-523ba2ac.js +0 -4
- package/dist/esm/reuse-523ba2ac.js.map +0 -1
- package/dist/esm/show-4cb5cfd2.js +0 -4
- package/dist/esm/tab-index-aa2012d4.js +0 -4
- package/dist/esm/tab-index-aa2012d4.js.map +0 -1
- package/dist/esm/tooltip-align-01afdf25.js +0 -4
- package/dist/kolibri/Collapsible-18075b3b.js +0 -4
- package/dist/kolibri/FormFieldMsg-68946810.js +0 -4
- package/dist/kolibri/InternalUnderlinedAccessKey-9adbd164.js +0 -4
- package/dist/kolibri/InternalUnderlinedAccessKey-9adbd164.js.map +0 -1
- package/dist/kolibri/access-key-34f992c3.js +0 -4
- package/dist/kolibri/access-key-34f992c3.js.map +0 -1
- package/dist/kolibri/align-51311afa.js +0 -4
- package/dist/kolibri/app-globals-c157d4ed.js +0 -4
- package/dist/kolibri/aria-expanded-2a5c6c4e.js +0 -4
- package/dist/kolibri/component-names-969b1c2c.js +0 -4
- package/dist/kolibri/component-names-969b1c2c.js.map +0 -1
- package/dist/kolibri/controller-304b74a0.js +0 -4
- package/dist/kolibri/controller-304b74a0.js.map +0 -1
- package/dist/kolibri/controller-icon-563a0296.js +0 -4
- package/dist/kolibri/custom-class-918278a4.js +0 -4
- package/dist/kolibri/devtools-811869ab.js +0 -4
- package/dist/kolibri/events-017b59eb.js +0 -4
- package/dist/kolibri/has-closer-1805c7a8.js +0 -4
- package/dist/kolibri/has-counter-d51a01dd.js +0 -4
- package/dist/kolibri/hide-label-7d9e8ee6.js +0 -4
- package/dist/kolibri/href-876b240a.js +0 -4
- package/dist/kolibri/i18n-8640d789.js +0 -4
- package/dist/kolibri/image-source-7b92b206.js +0 -4
- package/dist/kolibri/index-58c50745.js.map +0 -1
- package/dist/kolibri/index-fcc5bd94.js +0 -4
- package/dist/kolibri/index-fcc5bd94.js.map +0 -1
- package/dist/kolibri/open-b0401165.js +0 -4
- package/dist/kolibri/reuse-523ba2ac.js +0 -4
- package/dist/kolibri/reuse-523ba2ac.js.map +0 -1
- package/dist/kolibri/rows-2ccfdbdc.js +0 -4
- package/dist/kolibri/show-4cb5cfd2.js +0 -4
- package/dist/kolibri/tab-index-aa2012d4.js +0 -4
- package/dist/kolibri/tab-index-aa2012d4.js.map +0 -1
- package/dist/kolibri/tooltip-align-01afdf25.js +0 -4
- package/dist/kolibri/validation-25fb8bf6.js +0 -4
- package/dist/kolibri/validation-2e99145a.js +0 -4
- package/dist/types/components/abbr/test/html.mock.d.ts +0 -2
- package/dist/types/components/accordion/test/html.mock.d.ts +0 -5
- package/dist/types/components/alert/test/html.mock.d.ts +0 -2
- package/dist/types/components/badge/test/html.mock.d.ts +0 -3
- package/dist/types/components/breadcrumb/test/html.mock.d.ts +0 -2
- package/dist/types/components/button/test/html.mock.d.ts +0 -3
- package/dist/types/components/button-group/test/html.mock.d.ts +0 -1
- package/dist/types/components/button-link/test/html.mock.d.ts +0 -2
- package/dist/types/components/card/test/html.mock.d.ts +0 -2
- package/dist/types/components/combobox/test/html.mock.d.ts +0 -2
- package/dist/types/components/details/test/html.mock.d.ts +0 -2
- package/dist/types/components/drawer/test/html.mock.d.ts +0 -2
- package/dist/types/components/form/test/html.mock.d.ts +0 -2
- package/dist/types/components/heading/test/html.mock.d.ts +0 -7
- package/dist/types/components/icon/test/html.mock.d.ts +0 -2
- package/dist/types/components/image/test/html.mock.d.ts +0 -2
- package/dist/types/components/indented-text/test/html.mock.d.ts +0 -4
- package/dist/types/components/input/test/html.mock.d.ts +0 -2
- package/dist/types/components/input-checkbox/test/html.mock.d.ts +0 -2
- package/dist/types/components/input-color/test/html.mock.d.ts +0 -2
- package/dist/types/components/input-date/test/html.mock.d.ts +0 -2
- package/dist/types/components/input-email/test/html.mock.d.ts +0 -2
- package/dist/types/components/input-file/test/html.mock.d.ts +0 -2
- package/dist/types/components/input-number/test/html.mock.d.ts +0 -2
- package/dist/types/components/input-password/test/html.mock.d.ts +0 -2
- package/dist/types/components/input-radio/test/html.mock.d.ts +0 -2
- package/dist/types/components/input-range/test/html.mock.d.ts +0 -2
- package/dist/types/components/input-text/test/html.mock.d.ts +0 -2
- package/dist/types/components/link/test/html.mock.d.ts +0 -2
- package/dist/types/components/link-button/test/html.mock.d.ts +0 -2
- package/dist/types/components/link-group/test/html.mock.d.ts +0 -2
- package/dist/types/components/modal/test/html.mock.d.ts +0 -2
- package/dist/types/components/nav/test/html.mock.d.ts +0 -2
- package/dist/types/components/pagination/test/html.mock.d.ts +0 -2
- package/dist/types/components/popover/test/html.mock.d.ts +0 -4
- package/dist/types/components/quote/test/html.mock.d.ts +0 -6
- package/dist/types/components/select/test/html.mock.d.ts +0 -2
- package/dist/types/components/skip-nav/test/html.mock.d.ts +0 -2
- package/dist/types/components/span/InternalUnderlinedAccessKey.d.ts +0 -6
- package/dist/types/components/span/test/html.mock.d.ts +0 -11
- package/dist/types/components/spin/test/html.mock.d.ts +0 -2
- package/dist/types/components/split-button/test/html.mock.d.ts +0 -2
- package/dist/types/components/symbol/test/html.mock.d.ts +0 -2
- package/dist/types/components/tabs/test/html.mock.d.ts +0 -2
- package/dist/types/components/textarea/test/html.mock.d.ts +0 -2
- package/dist/types/components/toolbar/test/html.mock.d.ts +0 -2
- package/dist/types/components/tooltip/test/html.mock.d.ts +0 -2
- package/dist/types/components/tree/test/html.mock.d.ts +0 -2
- package/dist/types/components/tree-item/test/html.mock.d.ts +0 -2
- package/dist/types/components/version/test/html.mock.d.ts +0 -3
- /package/dist/kolibri/{Alert-41eb6a8e.js.map → Alert-ae70cda5.js.map} +0 -0
- /package/dist/kolibri/{Collapsible-18075b3b.js.map → Collapsible-88c7f8bb.js.map} +0 -0
- /package/dist/kolibri/{FormFieldMsg-68946810.js.map → FormFieldMsg-ddd16a10.js.map} +0 -0
- /package/dist/kolibri/{align-51311afa.js.map → align-ae4737f4.js.map} +0 -0
- /package/dist/kolibri/{align-floating-elements-8dfecb37.js.map → align-floating-elements-8e48c550.js.map} +0 -0
- /package/dist/kolibri/{aria-expanded-2a5c6c4e.js.map → aria-expanded-39ad73b1.js.map} +0 -0
- /package/dist/kolibri/{associated.controller-1e499c7d.js.map → associated.controller-a936d50e.js.map} +0 -0
- /package/dist/kolibri/{color-44dcb59b.js.map → color-cc960eba.js.map} +0 -0
- /package/dist/kolibri/{controller-256a2635.js.map → controller-7d074c89.js.map} +0 -0
- /package/dist/kolibri/{controller-f552d61c.js.map → controller-886720ab.js.map} +0 -0
- /package/dist/kolibri/{controller-4e96bf51.js.map → controller-e5312c47.js.map} +0 -0
- /package/dist/kolibri/{controller-a0037ef5.js.map → controller-e8656fb7.js.map} +0 -0
- /package/dist/kolibri/{controller-icon-563a0296.js.map → controller-icon-9462c444.js.map} +0 -0
- /package/dist/kolibri/{custom-class-918278a4.js.map → custom-class-335c45c9.js.map} +0 -0
- /package/dist/kolibri/{dev.utils-5cfb4ba4.js.map → dev.utils-4b58b6b1.js.map} +0 -0
- /package/dist/kolibri/{disabled-0e948e69.js.map → disabled-c478f3c1.js.map} +0 -0
- /package/dist/kolibri/{has-closer-1805c7a8.js.map → has-closer-85fb3033.js.map} +0 -0
- /package/dist/kolibri/{has-counter-d51a01dd.js.map → has-counter-78647db8.js.map} +0 -0
- /package/dist/kolibri/{hide-label-7d9e8ee6.js.map → hide-label-b5e3ed1a.js.map} +0 -0
- /package/dist/kolibri/{href-876b240a.js.map → href-c2c70612.js.map} +0 -0
- /package/dist/kolibri/{i18n-8640d789.js.map → i18n-5fe08f1c.js.map} +0 -0
- /package/dist/kolibri/{icons-33fc85f1.js.map → icons-6a56bde9.js.map} +0 -0
- /package/dist/kolibri/{image-source-7b92b206.js.map → image-source-d2fcb054.js.map} +0 -0
- /package/dist/kolibri/{label-541a8424.js.map → label-a64b6a7b.js.map} +0 -0
- /package/dist/kolibri/{open-b0401165.js.map → open-77de65a3.js.map} +0 -0
- /package/dist/kolibri/{prop.validators-543d0c7b.js.map → prop.validators-a86a90ab.js.map} +0 -0
- /package/dist/kolibri/{rows-2ccfdbdc.js.map → rows-7f43888b.js.map} +0 -0
- /package/dist/kolibri/{show-4cb5cfd2.js.map → show-d4099988.js.map} +0 -0
- /package/dist/kolibri/{suggestions-4fedd765.js.map → suggestions-4dab1555.js.map} +0 -0
- /package/dist/kolibri/{tooltip-align-01afdf25.js.map → tooltip-align-9dbf1d89.js.map} +0 -0
- /package/dist/kolibri/{validation-2e99145a.js.map → validation-450e1895.js.map} +0 -0
- /package/dist/kolibri/{validation-25fb8bf6.js.map → validation-56a3d825.js.map} +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["validateAccessKey","component","value","watchString","options","hooks","afterPatch","a11yHint","validateTabIndex","watchNumber","validateShortKey","validateAccessAndShortKey","accessKey","shortKey","Error"],"sources":["src/schema/props/access-key.ts","src/schema/validators/tab-index.ts","src/schema/props/short-key.ts","src/schema/validators/access-and-short-key.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type AccessKeyPropType = string;\n\n/**\n * Defines the elements access key.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey\n */\nexport type PropAccessKey = {\n\taccessKey: AccessKeyPropType;\n};\n\n/* validator */\nexport const validateAccessKey = (component: Generic.Element.Component, value?: AccessKeyPropType): void => {\n\twatchString(component, '_accessKey', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchNumberOptions } from '../utils';\nimport { a11yHint, watchNumber } from '../utils';\n\n/**\n * Accessibility hints\n * - https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html\n */\n\nconst options: WatchNumberOptions = {\n\thooks: {\n\t\tafterPatch: (value) => {\n\t\t\tif (value !== -1 && value !== 0) {\n\t\t\t\ta11yHint(`Don't Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html`);\n\t\t\t}\n\t\t},\n\t},\n};\n\n/**\n * Diese Methode validiert das Property und setzt den State, wenn es valide ist.\n */\nexport const validateTabIndex = (component: Generic.Element.Component, value?: number): void => {\n\twatchNumber(component, '_tabIndex', value, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type ShortKeyPropType = string;\n\n/**\n * Defines the elements short key.\n */\nexport type PropShortKey = {\n\tshortKey: ShortKeyPropType;\n};\n\n/* validator */\nexport const validateShortKey = (component: Generic.Element.Component, value?: ShortKeyPropType): void => {\n\twatchString(component, '_shortKey', value);\n};\n","import type { AccessKeyPropType, ShortKeyPropType } from '../props';\n\nexport const validateAccessAndShortKey = (accessKey?: AccessKeyPropType, shortKey?: ShortKeyPropType) => {\n\tif (accessKey && shortKey) {\n\t\tthrow new Error('AccessKey and ShortKey are used. Only one is allowed.');\n\t}\n};\n"],"mappings":";;;sEAeaA,EAAoB,CAACC,EAAsCC,KACvEC,EAAYF,EAAW,aAAcC,EAAM,ECN5C,MAAME,EAA8B,CACnCC,MAAO,CACNC,WAAaJ,IACZ,GAAIA,KAAW,GAAKA,IAAU,EAAG,CAChCK,EAAS,6G,WASAC,EAAmB,CAACP,EAAsCC,KACtEO,EAAYR,EAAW,YAAaC,EAAOE,EAAQ,E,MCVvCM,EAAmB,CAACT,EAAsCC,KACtEC,EAAYF,EAAW,YAAaC,EAAM,E,MCb9BS,EAA4B,CAACC,EAA+BC,KACxE,GAAID,GAAaC,EAAU,CAC1B,MAAM,IAAIC,MAAM,wD","ignoreList":[]}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
3
|
+
*/
|
4
|
+
import{w as t}from"./prop.validators-a86a90ab.js";const o=(a,o,e)=>{t(a,o,(t=>"string"==typeof t&&n.includes(t)),new Set(n),e,{defaultValue:"top"})},a=["left","right"],s=["top","bottom"],n=[...a,...s],e=(t,a)=>{o(t,"_align",a)};export{e as a,o as v};
|
package/dist/kolibri/{align-floating-elements-8dfecb37.js → align-floating-elements-8e48c550.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{p as t}from"./reuse-523ba2ac.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,i=Math.max,r=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 i(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,A=R?"top":"left",T=R?"bottom":"right",L=R?"clientHeight":"clientWidth",D=r.reference[v]+r.reference[x]-w[x]-r.floating[v],E=w[x]-r.reference[x],O=await(null==l.getOffsetParent?void 0:l.getOffsetParent(f));let C=O?O[L]:0;C&&await(null==l.isElement?void 0:l.isElement(O))||(C=c.floating[L]||r.floating[v]);const P=D/2-E/2,H=C/2-b[v]/2-1,F=s(h[A],H),W=s(h[T],H),k=F,B=C-b[v]-W,$=C/2-b[v]/2+P,G=u(k,$,B),z=!a.arrow&&null!=p(i)&&$!==G&&r.reference[v]/2-($<k?F:W)-b[v]/2<0,Q=z?$<k?$-k:$-B: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,A=v[R];if(null==A)return{};const T=x(A,l,await(null==a.isRTL?void 0:a.isRTL(f.floating)));if(s!==A)return{reset:{placement:v[0]}};const L=[b[m(A)],b[T[0]],b[T[1]]],D=[...(null==(i=c.autoPlacement)?void 0:i.overflows)||[],{placement:A,overflows:L}],E=v[R+1];if(E)return{data:{index:R+1,overflows:D},reset:{placement:E}};const O=D.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)))),S=(null==(r=P[0])?void 0:r[0])||O[0][0];return S!==s?{data:{index:R+1,overflows:D},reset:{placement:S}}:{}}}},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 A=m(i),T=w(c),L=m(c)===c,D=await(null==s.isRTL?void 0:s.isRTL(a.floating)),E=h||(L||!y?[R(c)]:v(c)),C="none"!==g;!h&&C&&E.push(...O(c,y,g,D));const P=[c,...E],S=await $(e,b),H=[];let F=(null==(o=r.flip)?void 0:o.overflows)||[];if(f&&H.push(S[A]),u){const t=x(i,l,D);H.push(S[t[0]],S[t[1]])}if(F=[...F,{placement:i,overflows:H}],!H.every((t=>t<=0))){var W,k;const t=((null==(W=r.flip)?void 0:W.index)||0)+1,e=P[t];if(e)return{data:{index:t,overflows:F},reset:{placement:e}};let n=null==(k=F.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:k.placement;if(!n)switch(p){case"bestFit":{var B;const t=null==(B=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:B[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:i(...t.map((t=>t.right)))-e,height:i(...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:r,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=i(...p.map((t=>t.right))),o=s(...p.map((t=>t.left))),r=p.filter((n=>t?n.left===o:n.right===e)),l=r[0].top,c=r[r.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 r.reference.x!==x.reference.x||r.reference.y!==x.reference.y||r.reference.width!==x.reference.width||r.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:r,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==r.isRTL?void 0:r.isRTL(l.floating))?"start":"end")?"left":"right"):(b=u,v="end"===h?"top":"bottom");const R=x-f.top-f.bottom,A=y-f.left-f.right,T=s(x-f[v],R),L=s(y-f[b],A),D=!e.middlewareData.shift;let E=T,O=L;if(g?O=h||D?s(L,A):A:E=h||D?s(T,R):R,D&&!h){const t=i(f.left,0),e=i(f.right,0),n=i(f.top,0),o=i(f.bottom,0);g?O=y-2*(0!==t||0!==e?t+e:i(f.left,f.right)):E=x-2*(0!==n||0!==o?n+o:i(f.top,f.bottom))}await c({...e,availableWidth:O,availableHeight:E});const C=await r.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=it(),n=Q(t)?ct(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","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)&&!rt(e);){if(ot(e))return e;if(et(e))return null;e=ft(e)}return null}function it(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function rt(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 rt(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 i=U(t),l=i?t.offsetWidth:n,c=i?t.offsetHeight:o,s=r(n)!==l||r(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:i,$:c}=mt(e);let s=(c?r(n.width):n.width)/o,a=(c?r(n.height):n.height)/i;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 it()&&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){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}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+u.x,y:n.y*f.y-a.scrollTop*f.y+u.y}}function bt(t){return Array.from(t.getClientRects())}function At(t,e){const n=lt(t).scrollLeft;return e?e.left+n:xt(J(t)).left+n}function Ot(t){const e=J(t),n=lt(t),o=t.ownerDocument.body,r=i(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),l=i(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+At(t);const s=-n.scrollTop;return"rtl"===ct(o).direction&&(c+=i(e.clientWidth,o.clientWidth)-r),{width:r,height:l,x:c,y:s}}function Rt(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=it();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,s=i.offsetTop)}return{width:r,height:l,x:c,y:s}}function kt(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 St(t,e,n){let o;if("viewport"===e)o=Rt(t,n);else if("document"===e)o=Ot(J(t));else if(Q(e))o=kt(e,n);else{const n=wt(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return D(o)}function Dt(t,e){const n=ft(t);return!(n===e||!Q(n)||rt(n))&&("fixed"===ct(n).position||Dt(n,e))}function Ft(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)&&!rt(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&&Dt(t,l))?o=o.filter((t=>t!==l)):i=e,l=ft(l)}return e.set(t,o),o}function Pt(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const l=[..."clippingAncestors"===n?et(e)?[]:Ft(e,this._c):[].concat(n),o],c=l[0],a=l.reduce(((t,n)=>{const o=St(e,n,r);return t.top=i(o.top,t.top),t.right=s(o.right,t.right),t.bottom=s(o.bottom,t.bottom),t.left=i(o.left,t.left),t}),St(e,c,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function $t(t){const{width:e,height:n}=mt(t);return{width:e,height:n}}function Tt(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=At(i));let f=0,u=0;if(i&&!o&&!r){const t=i.getBoundingClientRect();u=t.top+s.scrollTop,f=t.left+s.scrollLeft-At(i,t)}return{x:c.left+s.scrollLeft-a.x-f,y:c.top+s.scrollTop-a.y-u,width:c.width,height:c.height}}function Ct(t){return"static"===ct(t).position}function Et(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 zt(t,e){const n=G(t);if(et(t))return n;if(!U(t)){let e=ft(t);for(;e&&!rt(e);){if(Q(e)&&!Ct(e))return e;e=ft(e)}return n}let o=Et(t,e);for(;o&&nt(o)&&Ct(o);)o=Et(o,e);return o&&rt(o)&&Ct(o)&&!ot(o)?n:o||st(t)||n}const Bt=async function(t){const e=this.getOffsetParent||zt,n=this.getDimensions,o=await n(t.floating);return{reference:Tt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ht(t){return"rtl"===ct(t).direction}const Mt={convertOffsetParentRelativeRectToViewportRelativeRect:vt,getDocumentElement:J,getClippingRect:Pt,getOffsetParent:zt,getElementRects:Bt,getClientRects:bt,getDimensions:$t,getScale:ht,isElement:Q,isRTL:Ht};function jt(t,e){let n,o=null;const r=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{left:d,top:m,width:h,height:p}=t.getBoundingClientRect();if(f||e(),!h||!p)return;const g={rootMargin:-c(m)+"px "+-c(r.clientWidth-(d+h))+"px "+-c(r.clientHeight-(m+p))+"px "+-c(d)+"px",threshold:i(0,s(1,u))||1};let y=!0;function w(t){const e=t[0].intersectionRatio;if(e!==u){if(!y)return a();e?a(!1,e):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}y=!1}try{o=new IntersectionObserver(w,{...g,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(w,g)}o.observe(t)}(!0),l}function Lt(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?jt(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||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||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 It=q,Nt=W,qt=z,Wt=T,Vt=(t,e,n)=>{const o=new Map,i={platform:Mt,...n},r={...i.platform,_c:o};return P(t,e,{...i,platform:r})},Xt=async({floatingElement:e,referenceElement:n,arrowElement:o,align:i="top"})=>{var r,l,c;if("test"!==t){const t=[It(null!==(r=null==o?void 0:o.offsetHeight)&&void 0!==r?r:10),qt(),Nt()];o&&t.push(Wt({element:o}));const{x:s,y:a,middlewareData:f,placement:u}=await Vt(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{Xt as a,Lt as b};
|
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,i=Math.max,r=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 i(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,A=R?"top":"left",T=R?"bottom":"right",L=R?"clientHeight":"clientWidth",D=r.reference[v]+r.reference[x]-w[x]-r.floating[v],E=w[x]-r.reference[x],O=await(null==l.getOffsetParent?void 0:l.getOffsetParent(f));let C=O?O[L]:0;C&&await(null==l.isElement?void 0:l.isElement(O))||(C=c.floating[L]||r.floating[v]);const P=D/2-E/2,H=C/2-b[v]/2-1,F=s(h[A],H),W=s(h[T],H),k=F,B=C-b[v]-W,$=C/2-b[v]/2+P,G=u(k,$,B),z=!a.arrow&&null!=p(i)&&$!==G&&r.reference[v]/2-($<k?F:W)-b[v]/2<0,Q=z?$<k?$-k:$-B: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,A=v[R];if(null==A)return{};const T=x(A,l,await(null==a.isRTL?void 0:a.isRTL(f.floating)));if(s!==A)return{reset:{placement:v[0]}};const L=[b[m(A)],b[T[0]],b[T[1]]],D=[...(null==(i=c.autoPlacement)?void 0:i.overflows)||[],{placement:A,overflows:L}],E=v[R+1];if(E)return{data:{index:R+1,overflows:D},reset:{placement:E}};const O=D.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)))),S=(null==(r=P[0])?void 0:r[0])||O[0][0];return S!==s?{data:{index:R+1,overflows:D},reset:{placement:S}}:{}}}},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 A=m(i),T=w(c),L=m(c)===c,D=await(null==s.isRTL?void 0:s.isRTL(a.floating)),E=h||(L||!y?[R(c)]:v(c)),C="none"!==g;!h&&C&&E.push(...O(c,y,g,D));const P=[c,...E],S=await $(e,b),H=[];let F=(null==(o=r.flip)?void 0:o.overflows)||[];if(f&&H.push(S[A]),u){const t=x(i,l,D);H.push(S[t[0]],S[t[1]])}if(F=[...F,{placement:i,overflows:H}],!H.every((t=>t<=0))){var W,k;const t=((null==(W=r.flip)?void 0:W.index)||0)+1,e=P[t];if(e)return{data:{index:t,overflows:F},reset:{placement:e}};let n=null==(k=F.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:k.placement;if(!n)switch(p){case"bestFit":{var B;const t=null==(B=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:B[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:i(...t.map((t=>t.right)))-e,height:i(...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:r,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=i(...p.map((t=>t.right))),o=s(...p.map((t=>t.left))),r=p.filter((n=>t?n.left===o:n.right===e)),l=r[0].top,c=r[r.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 r.reference.x!==x.reference.x||r.reference.y!==x.reference.y||r.reference.width!==x.reference.width||r.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:r,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==r.isRTL?void 0:r.isRTL(l.floating))?"start":"end")?"left":"right"):(b=u,v="end"===h?"top":"bottom");const R=x-f.top-f.bottom,A=y-f.left-f.right,T=s(x-f[v],R),L=s(y-f[b],A),D=!e.middlewareData.shift;let E=T,O=L;if(g?O=h||D?s(L,A):A:E=h||D?s(T,R):R,D&&!h){const t=i(f.left,0),e=i(f.right,0),n=i(f.top,0),o=i(f.bottom,0);g?O=y-2*(0!==t||0!==e?t+e:i(f.left,f.right)):E=x-2*(0!==n||0!==o?n+o:i(f.top,f.bottom))}await c({...e,availableWidth:O,availableHeight:E});const C=await r.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=it(),n=Q(t)?ct(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","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)&&!rt(e);){if(ot(e))return e;if(et(e))return null;e=ft(e)}return null}function it(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function rt(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 rt(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 i=U(t),l=i?t.offsetWidth:n,c=i?t.offsetHeight:o,s=r(n)!==l||r(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:i,$:c}=mt(e);let s=(c?r(n.width):n.width)/o,a=(c?r(n.height):n.height)/i;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 it()&&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){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}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+u.x,y:n.y*f.y-a.scrollTop*f.y+u.y}}function bt(t){return Array.from(t.getClientRects())}function At(t,e){const n=lt(t).scrollLeft;return e?e.left+n:xt(J(t)).left+n}function Ot(t){const e=J(t),n=lt(t),o=t.ownerDocument.body,r=i(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),l=i(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+At(t);const s=-n.scrollTop;return"rtl"===ct(o).direction&&(c+=i(e.clientWidth,o.clientWidth)-r),{width:r,height:l,x:c,y:s}}function Rt(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=it();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,s=i.offsetTop)}return{width:r,height:l,x:c,y:s}}function kt(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 St(t,e,n){let o;if("viewport"===e)o=Rt(t,n);else if("document"===e)o=Ot(J(t));else if(Q(e))o=kt(e,n);else{const n=wt(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return D(o)}function Dt(t,e){const n=ft(t);return!(n===e||!Q(n)||rt(n))&&("fixed"===ct(n).position||Dt(n,e))}function Ft(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)&&!rt(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&&Dt(t,l))?o=o.filter((t=>t!==l)):i=e,l=ft(l)}return e.set(t,o),o}function Pt(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const l=[..."clippingAncestors"===n?et(e)?[]:Ft(e,this._c):[].concat(n),o],c=l[0],a=l.reduce(((t,n)=>{const o=St(e,n,r);return t.top=i(o.top,t.top),t.right=s(o.right,t.right),t.bottom=s(o.bottom,t.bottom),t.left=i(o.left,t.left),t}),St(e,c,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function $t(t){const{width:e,height:n}=mt(t);return{width:e,height:n}}function Tt(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=At(i));let f=0,u=0;if(i&&!o&&!r){const t=i.getBoundingClientRect();u=t.top+s.scrollTop,f=t.left+s.scrollLeft-At(i,t)}return{x:c.left+s.scrollLeft-a.x-f,y:c.top+s.scrollTop-a.y-u,width:c.width,height:c.height}}function Ct(t){return"static"===ct(t).position}function Et(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 zt(t,e){const n=G(t);if(et(t))return n;if(!U(t)){let e=ft(t);for(;e&&!rt(e);){if(Q(e)&&!Ct(e))return e;e=ft(e)}return n}let o=Et(t,e);for(;o&&nt(o)&&Ct(o);)o=Et(o,e);return o&&rt(o)&&Ct(o)&&!ot(o)?n:o||st(t)||n}const Bt=async function(t){const e=this.getOffsetParent||zt,n=this.getDimensions,o=await n(t.floating);return{reference:Tt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ht(t){return"rtl"===ct(t).direction}const Mt={convertOffsetParentRelativeRectToViewportRelativeRect:vt,getDocumentElement:J,getClippingRect:Pt,getOffsetParent:zt,getElementRects:Bt,getClientRects:bt,getDimensions:$t,getScale:ht,isElement:Q,isRTL:Ht};function jt(t,e){let n,o=null;const r=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{left:d,top:m,width:h,height:p}=t.getBoundingClientRect();if(f||e(),!h||!p)return;const g={rootMargin:-c(m)+"px "+-c(r.clientWidth-(d+h))+"px "+-c(r.clientHeight-(m+p))+"px "+-c(d)+"px",threshold:i(0,s(1,u))||1};let y=!0;function w(t){const e=t[0].intersectionRatio;if(e!==u){if(!y)return a();e?a(!1,e):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}y=!1}try{o=new IntersectionObserver(w,{...g,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(w,g)}o.observe(t)}(!0),l}function Lt(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?jt(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||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||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 It=q,Nt=W,qt=z,Wt=T,Vt=(t,e,n)=>{const o=new Map,i={platform:Mt,...n},r={...i.platform,_c:o};return P(t,e,{...i,platform:r})},Xt=async({floatingElement:e,referenceElement:n,arrowElement:o,align:i="top"})=>{var r,l,c;if("test"!==t){const t=[It(null!==(r=null==o?void 0:o.offsetHeight)&&void 0!==r?r:10),qt(),Nt()];o&&t.push(Wt({element:o}));const{x:s,y:a,middlewareData:f,placement:u}=await Vt(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{Xt as a,Lt as b};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
3
|
+
*/
|
4
|
+
import{r as o,C as t}from"./index-31b91a7e.js";import{a}from"./index-aa4b49bc.js";import{L as s}from"./dev.utils-fab45cbc.js";a((a=>{try{a.shadowRoot instanceof ShadowRoot&&o(a,t(a))}catch(o){}return"default"})),import("./devtools-cf124f7a.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((o=>{s.error(o)}));const f=()=>{},c=f,e=c;export{e as g};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["setMode","elm","shadowRoot","ShadowRoot","setThemeStyle","getThemeDetails","error","import","then","devTools","initialize","catch","Log","globalScripts","appGlobalScript"],"sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\n\nimport { Log } from '../schema';\nimport { setMode } from '@stencil/core';\n\nsetMode((elm) => {\n\ttry {\n\t\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\t\tsetThemeStyle(elm, getThemeDetails(elm));\n\t\t}\n\t} catch (error) {\n\t\t/**\n\t\t * Try is needed for SSR.\n\t\t * - no HTMLElement is available\n\t\t * - no ShadowRoot is available\n\t\t */\n\t}\n\treturn 'default';\n});\n\nimport('./devtools')\n\t.then((devTools) => {\n\t\tif (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {\n\t\t\tdevTools.initialize();\n\t\t}\n\t})\n\t.catch((error) => {\n\t\tLog.error(error);\n\t});\n","import appGlobalScript from '/home/runner/work/kolibri/kolibri/packages/components/src/global/script.ts';\nexport const globalScripts = appGlobalScript;\n"],"mappings":";;;
|
1
|
+
{"version":3,"names":["setMode","elm","shadowRoot","ShadowRoot","setThemeStyle","getThemeDetails","error","import","then","devTools","initialize","catch","Log","globalScripts","appGlobalScript"],"sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\n\nimport { Log } from '../schema';\nimport { setMode } from '@stencil/core';\n\nsetMode((elm) => {\n\ttry {\n\t\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\t\tsetThemeStyle(elm, getThemeDetails(elm));\n\t\t}\n\t} catch (error) {\n\t\t/**\n\t\t * Try is needed for SSR.\n\t\t * - no HTMLElement is available\n\t\t * - no ShadowRoot is available\n\t\t */\n\t}\n\treturn 'default';\n});\n\nimport('./devtools')\n\t.then((devTools) => {\n\t\tif (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {\n\t\t\tdevTools.initialize();\n\t\t}\n\t})\n\t.catch((error) => {\n\t\tLog.error(error);\n\t});\n","import appGlobalScript from '/home/runner/work/kolibri/kolibri/packages/components/src/global/script.ts';\nexport const globalScripts = appGlobalScript;\n"],"mappings":";;;8HAKAA,GAASC,IACR,IACC,GAAIA,EAAIC,sBAAsBC,WAAY,CACzCC,EAAcH,EAAKI,EAAgBJ,G,EAEnC,MAAOK,G,CAOT,MAAO,SAAS,IAGjBC,OAAO,0BACLC,MAAMC,IACN,UAAWA,IAAa,UAAYA,IAAa,aAAeA,EAASC,aAAe,WAAY,CACnGD,EAASC,Y,KAGVC,OAAOL,IACPM,EAAIN,MAAMA,EAAM,I,yBC1BN,MAACO,EAAgBC,S","ignoreList":[]}
|
@@ -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-a86a90ab.js";const i=["button","link","tab","treeitem"],s=(a,e)=>{t(a,"_role",(a=>"string"==typeof a&&i.includes(a)),new Set([`KoliBriAlternativeButtonLinkRole {${i.join(", ")}`]),e)},e=(i,t)=>{a(i,"_ariaDescription",t)},n=(a,i)=>{o(a,"_ariaExpanded",i)};export{n as a,s as b,e as v};
|
Binary file
|
package/dist/kolibri/{associated.controller-1e499c7d.js → associated.controller-a936d50e.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{a as t}from"./dev.utils-fab45cbc.js";import{i as e,j as i,l as s}from"./prop.validators-
|
4
|
+
import{a as t}from"./dev.utils-fab45cbc.js";import{i as e,j as i,l as s}from"./prop.validators-a86a90ab.js";const o=(t,i,s)=>{e(t,"_name",i,s)},a=t=>"KOL-BUTTON"===t||"KOL-COMBOBOX"===t||"KOL-INPUT-CHECKBOX"===t||"KOL-INPUT-COLOR"===t||"KOL-INPUT-DATE"===t||"KOL-INPUT-EMAIL"===t||"KOL-INPUT-FILE"===t||"KOL-INPUT-NUMBER"===t||"KOL-INPUT-PASSWORD"===t||"KOL-INPUT-RADIO"===t||"KOL-INPUT-RANGE"===t||"KOL-INPUT-TEXT"===t||"KOL-SELECT"===t||"KOL-SINGLE-SELECT"===t||"KOL-TEXTAREA"===t;class n{constructor(e,s,o){var r,n,l;if(this.experimentalMode=t(),this.setFormAssociatedValue=t=>{var e;const s=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==s&&""!==s||i(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.component=e,this.host=this.findHostWithShadowRoot(o),this.type=s,this.experimentalMode&&a(null===(r=this.host)||void 0===r?void 0:r.tagName)&&e._name){switch(null===(n=this.host)||void 0===n||n.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.type){case"button":case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type",this.type);break;case"select":this.formAssociated=document.createElement("select"),this.formAssociated.setAttribute("multiple","");break;case"textarea":this.formAssociated=document.createElement("textarea");break;default:this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden")}this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(l=this.host)||void 0===l||l.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,i){if(this.experimentalMode)try{if("boolean"!=typeof(i="object"==typeof i&&null!==i?JSON.stringify(i):i)&&"number"!=typeof i&&"string"!=typeof i)throw new Error("Invalid value type: "+typeof i);null==e||e.setAttribute(t,`${i}`)}catch(i){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return s(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,i){if(i)switch(this.type){case"file":i.files=t;break;case"select":i.querySelectorAll("option").forEach((t=>{i.removeChild(t)})),Array.isArray(t)&&t.forEach((t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),i.appendChild(t)}}));break;case"radio":"string"==typeof e&&(i.setAttribute("value",e),i.setAttribute("checked",""),i.value=e);break;default:"string"==typeof e?(i.setAttribute("value",e),i.value=e):(i.removeAttribute("value"),i.value="")}}validateName(t){o(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&i("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}validateSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}export{n as A};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["validateBadgeText","component","value","watchString"],"sources":["src/schema/props/badge-text.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\nimport type { AccessKeyPropType } from './access-key';\nimport type { ShortKeyPropType } from './short-key';\n\n/* types */\nexport type BadgeTextPropType = AccessKeyPropType | ShortKeyPropType;\n\n/**\n * Defines the elements badge text.\n */\nexport type PropBadgeText = {\n\tbadgeText: BadgeTextPropType;\n};\n\n/* validator */\nexport const validateBadgeText = (component: Generic.Element.Component, value?: BadgeTextPropType): void => {\n\twatchString(component, '_badgeText', value);\n};\n"],"mappings":";;;wDAgBaA,EAAoB,CAACC,EAAsCC,KACvEC,EAAYF,EAAW,aAAcC,EAAM,S","ignoreList":[]}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{L as e}from"./dev.utils-fab45cbc.js";import{r,d as a,w as t,a as n}from"./prop.validators-
|
4
|
+
import{L as e}from"./dev.utils-fab45cbc.js";import{r,d as a,w as t,a as n}from"./prop.validators-a86a90ab.js";var l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},o=l,i=u,s={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function u(e){var r,a,t=[],n=1;if("string"==typeof e)if(e=e.toLowerCase(),o[e])t=o[e].slice(),a="rgb";else if("transparent"===e)n=0,a="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var l=e.slice(1);n=1,(g=l.length)<=4?(t=[parseInt(l[0]+l[0],16),parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16)],4===g&&(n=parseInt(l[3]+l[3],16)/255)):(t=[parseInt(l[0]+l[1],16),parseInt(l[2]+l[3],16),parseInt(l[4]+l[5],16)],8===g&&(n=parseInt(l[6]+l[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),a="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var i=r[1],u="rgb"===i;a=l=i.replace(/a$/,"");var g="cmyk"===l?4:"gray"===l?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,r){if(/%$/.test(e))return r===g?parseFloat(e)/100:"rgb"===l?255*parseFloat(e)/100:parseFloat(e);if("h"===l[r]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==s[e])return s[e]}return parseFloat(e)})),i===l&&t.push(1),n=u||void 0===t[g]?1:t[g],t=t.slice(0,g)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),a=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],a="rgb",n=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(a="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(a="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(n/=100)):(a="rgb",t=[e>>>16,(65280&e)>>>8,255&e]);return{space:a,values:t,alpha:n}}var g=i,f=function(e){var r;Array.isArray(e)&&e.raw&&(e=String.raw.apply(null,arguments));var a=g(e);if(!a.space)return[];var o=[0,0,0],t="h"===a.space[0]?[360,100,100]:[255,255,255];return(r=Array(3))[0]=Math.min(Math.max(a.values[0],o[0]),t[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),t[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),t[2]),"h"===a.space[0]&&(r=d(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function d(e){var r,a,o,t,n,l=e[0]/360,i=e[1]/100,s=e[2]/100,u=0;if(0===i)return[n=255*s,n,n];for(r=2*s-(a=s<.5?s*(1+i):s+i-s*i),t=[0,0,0];u<3;)(o=l+1/3*-(u-1))<0?o++:o>1&&o--,n=6*o<1?r+6*(a-r)*o:2*o<1?a:3*o<2?r+(a-r)*(2/3-o)*6:r,t[u++]=255*n;return t}const c=f,h=(e,r,a)=>(299*e+587*r+114*a)/1e3>=128?-1:1,p=(e,o,t,n=1)=>{const l=[Math.max(Math.min(Math.round(o[0]+n*Math.max(1,o[0]/100)),255),0),Math.max(Math.min(Math.round(o[1]+n*Math.max(1,o[1]/100)),255),0),Math.max(Math.min(Math.round(o[2]+n*Math.max(1,o[2]/100)),255),0)],i=a(r.hex(`rgba(${e.join(",")},1)`),r.hex(`rgba(${l.join(",")},1)`)),s=l[0]+l[1]+l[2];return 0===s||765===s||i>t?{background:e,foreground:l,contrast:i}:p(e,l,t,n)},y=new Map,b=(e,r,a,o=1)=>{if(y.has(e))return y.get(e);const t=p(e,r,a,o);return y.set(e,t),t},v=(e,a=7)=>{let o=[0,0,0,1],t=[255,255,255,1];"string"==typeof e?(o=c(e),t=o):"object"==typeof e&&null!==e&&"string"==typeof e.background&&"string"==typeof e.foreground&&(o=c(e.background),t="string"==typeof e.foreground?c(e.foreground):o);const n=h(o[0],o[1],o[2]),l=b([o[0],o[1],o[2]],[t[0],t[1],t[2]],a,n);return t=[...l.foreground,1],{background:r.hex(`rgba(${o.join(",")})`),foreground:r.hex(`rgba(${t.join(",")})`),contrast:l.contrast}},m=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function k(e){return m.test(e)}function w(e){if(e.startsWith("{"))try{const r=JSON.parse(e);if($(r))return{type:"ColorPair",value:r}}catch(e){return{type:null,value:null}}return{type:null,value:null}}function M(e){if(e)if("string"==typeof e){if(k(e))return{type:"string",valid:!0,value:e};{const r=w(e);if(r.value)return{type:r.type,valid:!0,value:r.value}}}else{const r=e;if($(r))return{type:"ColorPair",valid:!0,value:r}}return{type:null,valid:!1,value:""}}function $(e){return!("object"!=typeof e||!e||"string"!=typeof e.backgroundColor||!("string"==typeof e.foregroundColor||e.foregroundColor&&"string"==typeof e.foregroundColor.primary&&"string"==typeof e.foregroundColor.secondary&&"string"==typeof e.foregroundColor.neutral))}function q(e){const r=M(e);switch(r.type){case null:return!1;case"string":case"ColorPair":return r.valid}}const I=(e,r,a)=>{t(e,"_color",q,new Set(["rgb in hex","ColorPair"]),r,a)},A=r=>{var a;let o;const t=M(r);switch(t.type){case"string":o=v(t.value);break;case"ColorPair":{const e=t.value;let r="";"string"==typeof e.foregroundColor?r=e.foregroundColor:(null===(a=e.foregroundColor)||void 0===a?void 0:a.primary)&&(r=e.foregroundColor.primary),r&&"string"==typeof r||(r="#fff"),o=v({background:e.backgroundColor,foreground:r});break}case null:e.warn(`_color was empty or invalid (${JSON.stringify(r)})`,{forceLog:!0}),o=v({background:"#000",foreground:"#000"})}return o.contrast<7&&n(`[KolBadge] The contrast of ${o.contrast} (≥7, AAA) is to low, between the color pair ${o.background} and ${o.foreground}.`),{backgroundColor:o.background,foregroundColor:o.foreground}};export{c,A as h,I as v};
|
@@ -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",n="kol-breadcrumb",i="kol-button-group",r="kol-button-group-wc",c="kol-button-link",p="kol-button",u="kol-button-wc",b="kol-card",d="kol-combobox",w="kol-details",g="kol-drawer",m="kol-form",x="kol-heading",v="kol-heading-wc",f="kol-icon",h="kol-image",q="kol-indented-text",y="kol-indented-text-wc",j="kol-input-checkbox",K="kol-input-color",z="kol-input-date",A="kol-input-email",B="kol-input-file",C="kol-input-number",D="kol-input-password",E="kol-input-radio",F="kol-input-range",G="kol-input",H="kol-input-text",I="kol-kolibri",J="kol-link-button",L="kol-link-group",M="kol-link",N="kol-link-wc",O="kol-logo",P="kol-modal",Q="kol-nav",R="kol-pagination",S="kol-popover-wc",T="kol-progress",U="kol-quote",V="kol-select",W="kol-single-select",X="kol-skip-nav",Y="kol-span-wc",Z="kol-spin",$="kol-split-button",_="kol-symbol",ll="kol-table-stateful",tl="kol-table-stateless",el="kol-table-stateless-wc",ol="kol-table",kl="kol-tabs",al="kol-textarea",sl="kol-toast-container",nl="kol-tooltip-wc",il="kol-tree-item",rl="kol-tree-item-wc",cl="kol-tree",pl="kol-tree-wc",ul="kol-version";const bl=bl=>{l=bl(l),t=bl(t),e=bl(e),o=bl(o),k=bl(k),a=bl(a),s=bl(s),n=bl(n),i=bl(i),r=bl(r),c=bl(c),p=bl(p),u=bl(u),b=bl(b),d=bl(d),w=bl(w),g=bl(g),m=bl(m),x=bl(x),v=bl(v),f=bl(f),h=bl(h),q=bl(q),y=bl(y),j=bl(j),K=bl(K),z=bl(z),A=bl(A),B=bl(B),C=bl(C),D=bl(D),E=bl(E),F=bl(F),G=bl(G),H=bl(H),I=bl(I),J=bl(J),L=bl(L),M=bl(M),N=bl(N),O=bl(O),P=bl(P),Q=bl(Q),R=bl(R),S=bl(S),T=bl(T),U=bl(U),V=bl(V),W=bl(W),X=bl(X),Y=bl(Y),Z=bl(Z),$=bl($),_=bl(_),ll=bl(ll),tl=bl(tl),el=bl(el),ol=bl(ol),kl=bl(kl),al=bl(al),sl=bl(sl),bl(nl),nl=bl(nl),il=bl(il),rl=bl(rl),cl=bl(cl),pl=bl(pl),ul=bl(ul)};export{sl as K,nl as a,v as b,u as c,o as d,a as e,Y as f,f as g,M as h,r as i,N as j,y as k,G as l,m,p as n,V as o,S as p,ll as q,el as r,bl as s,R as t,pl as u,rl as v,s as w,cl as x,il as y};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["KolAbbrTag","KolAccordionTag","KolAlertTag","KolAlertWcTag","KolAvatarTag","KolAvatarWcTag","KolBadgeTag","KolBreadcrumbTag","KolButtonGroupTag","KolButtonGroupWcTag","KolButtonLinkTag","KolButtonTag","KolButtonWcTag","KolCardTag","KolComboboxTag","KolDetailsTag","KolDrawerTag","KolFormTag","KolHeadingTag","KolHeadingWcTag","KolIconTag","KolImageTag","KolIndentedTextTag","KolIndentedTextWcTag","KolInputCheckboxTag","KolInputColorTag","KolInputDateTag","KolInputEmailTag","KolInputFileTag","KolInputNumberTag","KolInputPasswordTag","KolInputRadioTag","KolInputRangeTag","KolInputTag","KolInputTextTag","KolKolibriTag","KolLinkButtonTag","KolLinkGroupTag","KolLinkTag","KolLinkWcTag","KolLogoTag","KolModalTag","KolNavTag","KolPaginationTag","KolPopoverWcTag","KolProgressTag","KolQuoteTag","KolSelectTag","KolSingleSelectTag","KolSkipNavTag","KolSpanWcTag","KolSpinTag","KolSplitButtonTag","KolSymbolTag","KolTableStatefulTag","KolTableStatelessTag","KolTableStatelessWcTag","KolTableTag","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 KolButtonGroupTag = 'kol-button-group' as const;\nexport let KolButtonGroupWcTag = 'kol-button-group-wc' 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 KolHeadingWcTag = 'kol-heading-wc' as const;\nexport let KolIconTag = 'kol-icon' as const;\nexport let KolImageTag = 'kol-image' as const;\nexport let KolIndentedTextTag = 'kol-indented-text' as const;\nexport let KolIndentedTextWcTag = 'kol-indented-text-wc' 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 KolLinkGroupTag = 'kol-link-group' as const;\nexport let KolLinkTag = 'kol-link' as const;\nexport let KolLinkWcTag = 'kol-link-wc' as const;\nexport let KolLogoTag = 'kol-logo' 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 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 KolSpanWcTag = 'kol-span-wc' as const;\nexport let KolSpinTag = 'kol-spin' as const;\nexport let KolSplitButtonTag = 'kol-split-button' as const;\nexport let KolSymbolTag = 'kol-symbol' 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 KolTableTag = 'kol-table' 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\tKolButtonGroupTag = transformTagName(KolButtonGroupTag as string) as 'kol-button-group';\n\tKolButtonGroupWcTag = transformTagName(KolButtonGroupWcTag as string) as 'kol-button-group-wc';\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\tKolHeadingWcTag = transformTagName(KolHeadingWcTag as string) as 'kol-heading-wc';\n\tKolIconTag = transformTagName(KolIconTag as string) as 'kol-icon';\n\tKolImageTag = transformTagName(KolImageTag as string) as 'kol-image';\n\tKolIndentedTextTag = transformTagName(KolIndentedTextTag as string) as 'kol-indented-text';\n\tKolIndentedTextWcTag = transformTagName(KolIndentedTextWcTag as string) as 'kol-indented-text-wc';\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\tKolLinkGroupTag = transformTagName(KolLinkGroupTag as string) as 'kol-link-group';\n\tKolLinkTag = transformTagName(KolLinkTag as string) as 'kol-link';\n\tKolLinkWcTag = transformTagName(KolLinkWcTag as string) as 'kol-link-wc';\n\tKolLogoTag = transformTagName(KolLogoTag as string) as 'kol-logo';\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\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\tKolSpanWcTag = transformTagName(KolSpanWcTag as string) as 'kol-span-wc';\n\tKolSpinTag = transformTagName(KolSpinTag as string) as 'kol-spin';\n\tKolSplitButtonTag = transformTagName(KolSplitButtonTag as string) as 'kol-split-button';\n\tKolSymbolTag = transformTagName(KolSymbolTag as string) as 'kol-symbol';\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\tKolTableTag = transformTagName(KolTableTag as string) as 'kol-table';\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":";;;AAAO,IAAIA,EAAa,WACjB,IAAIC,EAAkB,gBACtB,IAAIC,EAAc,Y,IACdC,EAAgB,eACpB,IAAIC,EAAe,a,IACfC,EAAiB,gB,IACjBC,EAAc,YAClB,IAAIC,EAAmB,iBACvB,IAAIC,EAAoB,mB,IACpBC,EAAsB,sBAC1B,IAAIC,EAAmB,kB,IACnBC,EAAe,a,IACfC,EAAiB,gBACrB,IAAIC,EAAa,WACjB,IAAIC,EAAiB,eACrB,IAAIC,EAAgB,cACpB,IAAIC,EAAe,a,IACfC,EAAa,WACjB,IAAIC,EAAgB,c,IAChBC,EAAkB,iB,IAClBC,EAAa,WACjB,IAAIC,EAAc,YAClB,IAAIC,EAAqB,oB,IACrBC,EAAuB,uBAC3B,IAAIC,EAAsB,qBAC1B,IAAIC,EAAmB,kBACvB,IAAIC,EAAkB,iBACtB,IAAIC,EAAmB,kBACvB,IAAIC,EAAkB,iBACtB,IAAIC,EAAoB,mBACxB,IAAIC,EAAsB,qBAC1B,IAAIC,EAAmB,kBACvB,IAAIC,EAAmB,kB,IACnBC,EAAc,YAClB,IAAIC,EAAkB,iBACtB,IAAIC,EAAgB,cACpB,IAAIC,EAAmB,kBACvB,IAAIC,EAAkB,iB,IAClBC,EAAa,W,IACbC,EAAe,cACnB,IAAIC,EAAa,WACjB,IAAIC,EAAc,YAClB,IAAIC,EAAY,U,IACZC,EAAmB,iB,IACnBC,EAAkB,iBACtB,IAAIC,EAAiB,eACrB,IAAIC,EAAc,Y,IACdC,EAAe,aACnB,IAAIC,EAAqB,oBACzB,IAAIC,EAAgB,e,IAChBC,EAAe,cACnB,IAAIC,EAAa,WACjB,IAAIC,EAAoB,mBACxB,IAAIC,EAAe,a,IACfC,GAAsB,qBAC1B,IAAIC,GAAuB,sB,IACvBC,GAAyB,yBAC7B,IAAIC,GAAc,YAClB,IAAIC,GAAa,WACjB,IAAIC,GAAiB,e,IACjBC,GAAuB,sB,IAEvBC,GAAkB,iB,IAClBC,GAAiB,gB,IACjBC,GAAmB,mB,IACnBC,GAAa,W,IACbC,GAAe,cACnB,IAAIC,GAAgB,c,MAEdC,GAAqBC,KACjCpE,EAAaoE,GAAiBpE,GAC9BC,EAAkBmE,GAAiBnE,GACnCC,EAAckE,GAAiBlE,GAC/BC,EAAgBiE,GAAiBjE,GACjCC,EAAegE,GAAiBhE,GAChCC,EAAiB+D,GAAiB/D,GAClCC,EAAc8D,GAAiB9D,GAC/BC,EAAmB6D,GAAiB7D,GACpCC,EAAoB4D,GAAiB5D,GACrCC,EAAsB2D,GAAiB3D,GACvCC,EAAmB0D,GAAiB1D,GACpCC,EAAeyD,GAAiBzD,GAChCC,EAAiBwD,GAAiBxD,GAClCC,EAAauD,GAAiBvD,GAC9BC,EAAiBsD,GAAiBtD,GAClCC,EAAgBqD,GAAiBrD,GACjCC,EAAeoD,GAAiBpD,GAChCC,EAAamD,GAAiBnD,GAC9BC,EAAgBkD,GAAiBlD,GACjCC,EAAkBiD,GAAiBjD,GACnCC,EAAagD,GAAiBhD,GAC9BC,EAAc+C,GAAiB/C,GAC/BC,EAAqB8C,GAAiB9C,GACtCC,EAAuB6C,GAAiB7C,GACxCC,EAAsB4C,GAAiB5C,GACvCC,EAAmB2C,GAAiB3C,GACpCC,EAAkB0C,GAAiB1C,GACnCC,EAAmByC,GAAiBzC,GACpCC,EAAkBwC,GAAiBxC,GACnCC,EAAoBuC,GAAiBvC,GACrCC,EAAsBsC,GAAiBtC,GACvCC,EAAmBqC,GAAiBrC,GACpCC,EAAmBoC,GAAiBpC,GACpCC,EAAcmC,GAAiBnC,GAC/BC,EAAkBkC,GAAiBlC,GACnCC,EAAgBiC,GAAiBjC,GACjCC,EAAmBgC,GAAiBhC,GACpCC,EAAkB+B,GAAiB/B,GACnCC,EAAa8B,GAAiB9B,GAC9BC,EAAe6B,GAAiB7B,GAChCC,EAAa4B,GAAiB5B,GAC9BC,EAAc2B,GAAiB3B,GAC/BC,EAAY0B,GAAiB1B,GAC7BC,EAAmByB,GAAiBzB,GACpCC,EAAkBwB,GAAiBxB,GACnCC,EAAiBuB,GAAiBvB,GAClCC,EAAcsB,GAAiBtB,GAC/BC,EAAeqB,GAAiBrB,GAChCC,EAAqBoB,GAAiBpB,GACtCC,EAAgBmB,GAAiBnB,GACjCC,EAAekB,GAAiBlB,GAChCC,EAAaiB,GAAiBjB,GAC9BC,EAAoBgB,GAAiBhB,GACrCC,EAAee,GAAiBf,GAChCC,GAAsBc,GAAiBd,IACvCC,GAAuBa,GAAiBb,IACxCC,GAAyBY,GAAiBZ,IAC1CC,GAAcW,GAAiBX,IAC/BC,GAAaU,GAAiBV,IAC9BC,GAAiBS,GAAiBT,IAClCC,GAAuBQ,GAAiBR,IACxBQ,GAAiBP,IACjCA,GAAkBO,GAAiBP,IACnCC,GAAiBM,GAAiBN,IAClCC,GAAmBK,GAAiBL,IACpCC,GAAaI,GAAiBJ,IAC9BC,GAAeG,GAAiBH,IAChCC,GAAgBE,GAAiBF,GAAyC,S","ignoreList":[]}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{m as e}from"./component-names-
|
4
|
+
import{m as e}from"./component-names-d278f819.js";import{q as o,K as t,j as n}from"./prop.validators-a86a90ab.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{I as t}from"./controller-
|
4
|
+
import{I as t}from"./controller-c4e9f5c7.js";import{a as s,g as e,b as i,w as a,m as r,s as o}from"./prop.validators-a86a90ab.js";import{b as n,c as l}from"./label-a64b6a7b.js";const f=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===n(t.label,3)&&!1===l(t.label)&&s(`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===f(t)));if("number"==typeof t.label)return!0}return!1},h=(t,o,a={})=>{e(t,"_options",(t=>"object"==typeof t&&null!==t&&"string"==typeof t.label&&t.label.length>0),o,void 0,a)},c=(t,o,a={})=>{e(t,"_options",f,o,void 0,a)},u=(t,e)=>{i(t,"_required",e)},p=["horizontal","vertical"],d=(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)?d(t,e.options,i):t.set(i,e))}))};class b extends t{constructor(t,e,o){super(t,e,o),this.component=t}validateRequired(t){u(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateRequired(this.component._required)}}class y extends b{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(),d(this.keyOptionMap,o))},this.component=t}validateOrientation(t){a(this.component,"_orientation",(t=>"string"==typeof t&&p.includes(t)),new Set([`Orientation {${p.join(", ")}`]),t,{defaultValue:"vertical"})}validateOptions(t){h(this.component,t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateValue(t){t=r(t),t=Array.isArray(t)?t[0]:t,o(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{b as I,y as a,h as b,d as f,c as v};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
3
|
+
*/
|
4
|
+
import{s as t,t as i}from"./events-29e84d75.js";import{A as s}from"./associated.controller-a936d50e.js";import{b as e,o,p as h,w as a,c as r,a as n,i as l,j as d,s as c}from"./prop.validators-a86a90ab.js";import{v as u,a as f,b as v,c as p}from"./access-and-short-key-9ec48625.js";import{v as b}from"./hide-label-b5e3ed1a.js";import{a as m}from"./label-a64b6a7b.js";import{v as y}from"./tooltip-align-9dbf1d89.js";const g=(t,o)=>{e(t,"_adjustHeight",o)},j=(t,o,n)=>{e(t,"_hideError",o,n)},_=(t,e)=>{o(e,(()=>{try{e=h(e)}catch(t){}a(t,"_msg",(t=>"object"==typeof t),new Set(["Object"]),e)}))},k=(t,o)=>{e(t,"_touched",o)},x=t=>{var o,e;const n=Boolean("error"===(null===(o=t._msg)||void 0===o?void 0:o._type)&&t._msg._description&&(null===(e=t._msg._description)||void 0===e?void 0:e.length)>0)&&!0===t._touched,i="string"==typeof t._hint&&t._hint.length>0,s=[];return!0===n&&s.push(`${t._id}-error`),!0===i&&s.push(`${t._id}-hint`),{hasError:n,hasHint:i,ariaDescribedBy:s}};class A extends s{constructor(t,o,e){super(t,o,e),this.component=t}validateAlert(t){e(this.component,"_alert",t)}validateTouched(t){k(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAlert(this.component._alert),this.validateTouched(this.component._touched)}}class B extends A{constructor(t,o,e){super(t,o,e),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=t}validateAccessKey(t){u(this.component,t),f(t,this.component._shortKey)}validateAdjustHeight(t){g(this.component,t)}validateDisabled(t){e(this.component,"_disabled",t),!0===t&&r()}validateTooltipAlign(t){y(this.component,t)}validateError(t){const o={_description:t||"",_type:"error"};this.validateMsg(o)}validateHideError(t){j(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&n("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateHideLabel(t){b(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideLabel&&n("Property hide-label for inputs: Only use for exceptions like search inputs that are clearly identifiable by their context.")}}})}validateHint(t){l(this.component,"_hint",t)}validateId(t){l(this.component,"_id",t,{minLength:1}),""!==t&&void 0!==t||d("A unique ID on the input fields is not strictly required, but it might be relevant for E2E tests.")}validateLabel(t){m(this.component,t,{required:!0})}validateMsg(t){_(this.component,t)}validateOn(t){"object"==typeof t&&c(this.component,"_on",t)}validateShortKey(t){v(this.component,t),f(this.component._accessKey,t)}validateSmartButton(t){o(t,(()=>{try{t=h(t)}catch(t){}c(this.component,"_smartButton",t)}))}validateTabIndex(t){p(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAccessKey(this.component._accessKey),this.validateAdjustHeight(this.component._adjustHeight),this.validateError(this.component._error),this.validateMsg(this.component._msg),this.validateDisabled(this.component._disabled),this.validateHideError(this.component._hideError),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)}onBlur(o){var e;this.component._touched=!0,t(o),i("blur",this.host),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onBlur)&&this.component._on.onBlur(o)}onChange(t,o){var e;o=null!=o?o:t.target.value,i("change",this.host,o),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onChange)&&this.component._on.onChange(t,o),this.valueChangeListeners.forEach((t=>t(o)))}onInput(o,e=!0,n){var s;n=null!=n?n:o.target.value,t(o),i("input",this.host,n),e&&this.setFormAssociatedValue(n),"function"==typeof(null===(s=this.component._on)||void 0===s?void 0:s.onInput)&&this.component._on.onInput(o,n)}onClick(o){var e;t(o),i("click",this.host),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onClick)&&this.component._on.onClick(o)}onFocus(o){var e;t(o),i("focus",this.host),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onFocus)&&this.component._on.onFocus(o)}addValueChangeListener(t){this.valueChangeListeners.push(t)}}export{B as I,x as g};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["validateAdjustHeight","component","value","watchBoolean","validateHideError","options","validateMsg","objectObjectHandler","parseJson","e","watchValidator","Set","validateTouched","getRenderStates","state","isMessageValidError","Boolean","_a","_msg","_type","_description","_b","length","hasError","_touched","hasHint","_hint","ariaDescribedBy","push","_id","ControlledInputController","AssociatedInputController","constructor","name","host","super","this","validateAlert","componentWillLoad","_alert","InputController","valueChangeListeners","onFacade","onBlur","bind","onChange","onClick","onFocus","onInput","validateAccessKey","validateAccessAndShortKey","_shortKey","validateDisabled","a11yHintDisabled","validateTooltipAlign","validateError","message","hooks","afterPatch","_hideError","a11yHint","validateHideLabel","_hideLabel","validateHint","watchString","validateId","minLength","devHint","validateLabel","validateLabelWithExpertSlot","required","validateOn","setState","validateShortKey","_accessKey","validateSmartButton","validateTabIndex","_adjustHeight","_error","_disabled","_label","_smartButton","_on","_tabIndex","event","stopPropagation","tryToDispatchKoliBriEvent","target","forEach","listener","shouldSetFormAssociatedValue","setFormAssociatedValue","addValueChangeListener"],"sources":["src/schema/props/adjust-height.ts","src/schema/props/hide-error.ts","src/schema/props/msg.ts","src/schema/props/touched.ts","src/components/input/controller.ts","src/components/input-adapter-leanup/controller.ts","src/components/@deprecated/input/controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type AdjustHeightPropType = boolean;\n\n/**\n * Adjusts the height of the element to its content.\n */\nexport type PropAdjustHeight = {\n\tadjustHeight: AdjustHeightPropType;\n};\n\n/* validator */\nexport const validateAdjustHeight = (component: Generic.Element.Component, value?: AdjustHeightPropType): void => {\n\twatchBoolean(component, '_adjustHeight', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchBooleanOptions } from '../utils';\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type HideErrorPropType = boolean;\n\n/**\n * Hides the error message but leaves it in the DOM for the input's aria-describedby.\n */\nexport type PropHideError = {\n\thideError: HideErrorPropType;\n};\n\n/* validator */\nexport const validateHideError = (component: Generic.Element.Component, value?: HideErrorPropType, options?: WatchBooleanOptions): void => {\n\twatchBoolean(component, '_hideError', value, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport type { AlertProps } from '../components';\nimport { objectObjectHandler, parseJson, watchValidator } from '../utils';\nimport type { Stringified } from '../types';\n\n/* types */\nexport type MsgPropType = AlertProps & {\n\t_description: string;\n};\n\n/**\n * Defines the properties for a message rendered as Alert component.\n */\nexport type PropMsg = {\n\tmsg: MsgPropType;\n};\n\n/* validator */\nexport const validateMsg = (component: Generic.Element.Component, value?: Stringified<MsgPropType>): void => {\n\tobjectObjectHandler(value, () => {\n\t\ttry {\n\t\t\tvalue = parseJson<MsgPropType>(value as string);\n\t\t\t// eslint-disable-next-line no-empty\n\t\t} catch (e) {\n\t\t\t// value keeps original value\n\t\t}\n\n\t\twatchValidator(component, `_msg`, (value) => typeof value === 'object', new Set(['Object']), value);\n\t});\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type TouchedPropType = boolean;\n\n/**\n * Shows if the input was touched by a user.\n */\nexport type PropTouched = {\n\ttouched: TouchedPropType;\n};\n\n/* validator */\nexport const validateTouched = (component: Generic.Element.Component, value?: TouchedPropType): void => {\n\twatchBoolean(component, '_touched', value);\n};\n","import type { MsgPropType, TouchedPropType } from '../../schema';\n\n/**\n * Berechnet in Abhängigkeit des Component-State, wie die\n * aria-describedby-Attributs gesetzt werden sollen.\n *\n * @param state State der Component\n * @returns Render-States\n */\nexport const getRenderStates = (state: {\n\t_msg?: MsgPropType;\n\t_hint?: string;\n\t_id: string;\n\t_touched?: TouchedPropType;\n}): {\n\thasError: boolean;\n\thasHint: boolean;\n\tariaDescribedBy: string[];\n} => {\n\tconst isMessageValidError = Boolean(state._msg?._type === 'error' && state._msg._description && state._msg._description?.length > 0);\n\tconst hasError = isMessageValidError && state._touched === true;\n\tconst hasHint = typeof state._hint === 'string' && state._hint.length > 0;\n\n\tconst ariaDescribedBy: string[] = [];\n\tif (hasError === true) {\n\t\tariaDescribedBy.push(`${state._id}-error`);\n\t}\n\tif (hasHint === true) {\n\t\tariaDescribedBy.push(`${state._id}-hint`);\n\t}\n\treturn { hasError, hasHint, ariaDescribedBy };\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { validateTouched, watchBoolean } from '../../schema';\n\nimport { AssociatedInputController } from './associated.controller';\n\nimport type { Props, Watches } from './types';\nexport class ControlledInputController extends AssociatedInputController 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 validateAlert(value?: boolean): void {\n\t\twatchBoolean(this.component, '_alert', value);\n\t}\n\n\tpublic validateTouched(value?: boolean): void {\n\t\tvalidateTouched(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAlert(this.component._alert);\n\t\tthis.validateTouched(this.component._touched);\n\t}\n}\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type {\n\tAccessKeyPropType,\n\tAdjustHeightPropType,\n\tButtonProps,\n\tHideErrorPropType,\n\tInputTypeOnDefault,\n\tLabelWithExpertSlotPropType,\n\tMsgPropType,\n\tShortKeyPropType,\n\tStencilUnknown,\n\tStringified,\n\tTooltipAlignPropType,\n} from '../../../schema';\nimport {\n\ta11yHint,\n\ta11yHintDisabled,\n\tdevHint,\n\tobjectObjectHandler,\n\tparseJson,\n\tsetState,\n\tvalidateAccessKey,\n\tvalidateAdjustHeight,\n\tvalidateHideError,\n\tvalidateHideLabel,\n\tvalidateLabelWithExpertSlot,\n\tvalidateMsg,\n\tvalidateTabIndex,\n\tvalidateTooltipAlign,\n\twatchBoolean,\n\twatchString,\n\tvalidateShortKey,\n} from '../../../schema';\n\nimport { stopPropagation, tryToDispatchKoliBriEvent } from '../../../utils/events';\nimport { ControlledInputController } from '../../input-adapter-leanup/controller';\n\nimport type { Props as AdapterProps } from '../../input-adapter-leanup/types';\nimport type { Props, Watches } from './types';\nimport { validateAccessAndShortKey } from '../../../schema/validators/access-and-short-key';\n\ntype ValueChangeListener = (value: StencilUnknown) => void;\n\nexport class InputController extends ControlledInputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props & AdapterProps;\n\n\tprivate readonly valueChangeListeners: ValueChangeListener[] = [];\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 validateAccessKey(value?: AccessKeyPropType): void {\n\t\tvalidateAccessKey(this.component, value);\n\t\tvalidateAccessAndShortKey(value, this.component._shortKey);\n\t}\n\n\tpublic validateAdjustHeight(value?: AdjustHeightPropType): void {\n\t\tvalidateAdjustHeight(this.component, value);\n\t}\n\n\tpublic validateDisabled(value?: boolean): void {\n\t\twatchBoolean(this.component, '_disabled', value);\n\t\tif (value === true) {\n\t\t\ta11yHintDisabled();\n\t\t}\n\t}\n\tpublic validateTooltipAlign(value?: TooltipAlignPropType): void {\n\t\tvalidateTooltipAlign(this.component, value);\n\t}\n\n\t/**\n\t * @deprecated\n\t */\n\tpublic validateError(value?: string): void {\n\t\tconst message: MsgPropType = {\n\t\t\t_description: value || '',\n\t\t\t_type: 'error',\n\t\t};\n\t\tthis.validateMsg(message);\n\t}\n\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tvalidateHideError(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tif (this.component.state._hideError) {\n\t\t\t\t\t\ta11yHint('Property hide-error for inputs: Only use when the error message is shown outside of the input component.');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tvalidateHideLabel(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tif (this.component.state._hideLabel) {\n\t\t\t\t\t\ta11yHint('Property hide-label for inputs: Only use for exceptions like search inputs that are clearly identifiable by their context.');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateHint(value?: string): void {\n\t\twatchString(this.component, '_hint', value);\n\t}\n\n\tpublic validateId(value?: string): void {\n\t\twatchString(this.component, '_id', value, { minLength: 1 });\n\t\tif (value === '' || typeof value === 'undefined') {\n\t\t\tdevHint(`A unique ID on the input fields is not strictly required, but it might be relevant for E2E tests.`);\n\t\t}\n\t}\n\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tvalidateLabelWithExpertSlot(this.component, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\tpublic validateMsg(value?: Stringified<MsgPropType>): void {\n\t\tvalidateMsg(this.component, value);\n\t}\n\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tif (typeof value === 'object') {\n\t\t\tsetState(this.component, '_on', value);\n\t\t}\n\t}\n\n\tpublic validateShortKey(value?: ShortKeyPropType): void {\n\t\tvalidateShortKey(this.component, value);\n\t\tvalidateAccessAndShortKey(this.component._accessKey, value);\n\t}\n\n\tpublic validateSmartButton(value?: ButtonProps | string): void {\n\t\tobjectObjectHandler(value, () => {\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<ButtonProps>(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\tsetState(this.component, '_smartButton', value);\n\t\t});\n\t}\n\n\tpublic validateTabIndex(value?: number): void {\n\t\tvalidateTabIndex(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAccessKey(this.component._accessKey);\n\t\tthis.validateAdjustHeight(this.component._adjustHeight);\n\t\tthis.validateError(this.component._error);\n\t\tthis.validateMsg(this.component._msg);\n\t\tthis.validateDisabled(this.component._disabled);\n\t\tthis.validateHideError(this.component._hideError);\n\t\tthis.validateHideLabel(this.component._hideLabel);\n\t\tthis.validateHint(this.component._hint);\n\t\tthis.validateId(this.component._id);\n\t\tthis.validateLabel(this.component._label);\n\t\tthis.validateShortKey(this.component._shortKey);\n\t\tthis.validateSmartButton(this.component._smartButton);\n\t\tthis.validateOn(this.component._on);\n\t\tthis.validateTabIndex(this.component._tabIndex);\n\t\tvalidateAccessAndShortKey(this.component._accessKey, this.component._shortKey);\n\t}\n\n\tprotected onBlur(event: Event): void {\n\t\tthis.component._touched = true;\n\n\t\t// Event handling\n\t\tstopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('blur', this.host);\n\n\t\t// Callback\n\t\tif (typeof this.component._on?.onBlur === 'function') {\n\t\t\tthis.component._on.onBlur(event);\n\t\t}\n\t}\n\n\t/**\n\t * @param event - The original event object\n\t * @param value - Optional value. Taken from event if not defined.\n\t */\n\tprotected onChange(event: Event, value?: StencilUnknown): void {\n\t\tvalue = value ?? (event.target as HTMLInputElement).value;\n\n\t\t// Event handling\n\t\ttryToDispatchKoliBriEvent('change', this.host, value);\n\n\t\t// Callback\n\t\tif (typeof this.component._on?.onChange === 'function') {\n\t\t\t/**\n\t\t\t * TODO\n\t\t\t * Value-Handling muss für InputDate und InputNumber optimiert werden\n\t\t\t * - value\n\t\t\t * - valueAsNumber\n\t\t\t * - valueAsDate\n\t\t\t */\n\t\t\tthis.component._on.onChange(event, value);\n\t\t}\n\n\t\t/**\n\t\t * TODO: Was ist das?\n\t\t */\n\t\tthis.valueChangeListeners.forEach((listener) => listener(value));\n\t}\n\n\t/**\n\t * @param event - The original event object\n\t * @param shouldSetFormAssociatedValue - Set to false when setting form associated value is not desired.\n\t * @param value - Optional value. Taken from event if not defined.\n\t */\n\tprotected onInput(event: Event, shouldSetFormAssociatedValue = true, value?: StencilUnknown): void {\n\t\tvalue = value ?? (event.target as HTMLInputElement).value;\n\n\t\t// Event handling\n\t\tstopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('input', this.host, value);\n\n\t\t// Static form handling\n\t\tif (shouldSetFormAssociatedValue) {\n\t\t\tthis.setFormAssociatedValue(value);\n\t\t}\n\n\t\t// Callback\n\t\tif (typeof this.component._on?.onInput === 'function') {\n\t\t\tthis.component._on.onInput(event, value);\n\t\t}\n\t}\n\n\tprotected onClick(event: Event): void {\n\t\t// Event handling\n\t\tstopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('click', this.host);\n\n\t\t// Callback\n\t\tif (typeof this.component._on?.onClick === 'function') {\n\t\t\tthis.component._on.onClick(event);\n\t\t}\n\t}\n\n\tprotected onFocus(event: Event): void {\n\t\t// Event handling\n\t\tstopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('focus', this.host);\n\n\t\t// Callback\n\t\tif (typeof this.component._on?.onFocus === 'function') {\n\t\t\tthis.component._on.onFocus(event);\n\t\t}\n\t}\n\n\tpublic addValueChangeListener(listener: ValueChangeListener) {\n\t\tthis.valueChangeListeners.push(listener);\n\t}\n\n\t/**\n\t * Hinweis: In der Subklasse 'InputPasswordController'\n\t * werden die Methoden onBlur und onFocus\n\t * überschrieben.\n\t * Es werden somit zunächst die Methoden der\n\t * Subklasse ausgeführt und danach die der\n\t * Oberklassen.\n\t */\n\tpublic readonly onFacade = {\n\t\tonBlur: this.onBlur.bind(this),\n\t\tonChange: this.onChange.bind(this),\n\t\tonClick: this.onClick.bind(this),\n\t\tonFocus: this.onFocus.bind(this),\n\t\tonInput: this.onInput.bind(this),\n\t};\n}\n"],"mappings":";;;8ZAeO,MAAMA,EAAuB,CAACC,EAAsCC,KAC1EC,EAAaF,EAAW,gBAAiBC,EAAM,ECAzC,MAAME,EAAoB,CAACH,EAAsCC,EAA2BG,KAClGF,EAAaF,EAAW,aAAcC,EAAOG,EAAQ,ECC/C,MAAMC,EAAc,CAACL,EAAsCC,KACjEK,EAAoBL,GAAO,KAC1B,IACCA,EAAQM,EAAuBN,E,CAE9B,MAAOO,G,CAITC,EAAeT,EAAW,QAASC,UAAiBA,IAAU,UAAU,IAAIS,IAAI,CAAC,WAAYT,EAAM,GAClG,ECbI,MAAMU,EAAkB,CAACX,EAAsCC,KACrEC,EAAaF,EAAW,WAAYC,EAAM,E,MCP9BW,EAAmBC,I,QAU/B,MAAMC,EAAsBC,UAAQC,EAAAH,EAAMI,QAAI,MAAAD,SAAA,SAAAA,EAAEE,SAAU,SAAWL,EAAMI,KAAKE,gBAAgBC,EAAAP,EAAMI,KAAKE,gBAAY,MAAAC,SAAA,SAAAA,EAAEC,QAAS,GAClI,MAAMC,EAAWR,GAAuBD,EAAMU,WAAa,KAC3D,MAAMC,SAAiBX,EAAMY,QAAU,UAAYZ,EAAMY,MAAMJ,OAAS,EAExE,MAAMK,EAA4B,GAClC,GAAIJ,IAAa,KAAM,CACtBI,EAAgBC,KAAK,GAAGd,EAAMe,Y,CAE/B,GAAIJ,IAAY,KAAM,CACrBE,EAAgBC,KAAK,GAAGd,EAAMe,W,CAE/B,MAAO,CAAEN,WAAUE,UAASE,kBAAiB,E,MCvBjCG,UAAkCC,EAG9C,WAAAC,CAAmB/B,EAA8CgC,EAAcC,GAC9EC,MAAMlC,EAAWgC,EAAMC,GACvBE,KAAKnC,UAAYA,C,CAGX,aAAAoC,CAAcnC,GACpBC,EAAaiC,KAAKnC,UAAW,SAAUC,E,CAGjC,eAAAU,CAAgBV,GACtBU,EAAgBwB,KAAKnC,UAAWC,E,CAG1B,iBAAAoC,GACNH,MAAMG,oBACNF,KAAKC,cAAcD,KAAKnC,UAAUsC,QAClCH,KAAKxB,gBAAgBwB,KAAKnC,UAAUuB,S,QCkBzBgB,UAAwBV,EAKpC,WAAAE,CAAmB/B,EAA8CgC,EAAcC,GAC9EC,MAAMlC,EAAWgC,EAAMC,GAHPE,KAAAK,qBAA8C,GAkO/CL,KAAAM,SAAW,CAC1BC,OAAQP,KAAKO,OAAOC,KAAKR,MACzBS,SAAUT,KAAKS,SAASD,KAAKR,MAC7BU,QAASV,KAAKU,QAAQF,KAAKR,MAC3BW,QAASX,KAAKW,QAAQH,KAAKR,MAC3BY,QAASZ,KAAKY,QAAQJ,KAAKR,OAnO3BA,KAAKnC,UAAYA,C,CAGX,iBAAAgD,CAAkB/C,GACxB+C,EAAkBb,KAAKnC,UAAWC,GAClCgD,EAA0BhD,EAAOkC,KAAKnC,UAAUkD,U,CAG1C,oBAAAnD,CAAqBE,GAC3BF,EAAqBoC,KAAKnC,UAAWC,E,CAG/B,gBAAAkD,CAAiBlD,GACvBC,EAAaiC,KAAKnC,UAAW,YAAaC,GAC1C,GAAIA,IAAU,KAAM,CACnBmD,G,EAGK,oBAAAC,CAAqBpD,GAC3BoD,EAAqBlB,KAAKnC,UAAWC,E,CAM/B,aAAAqD,CAAcrD,GACpB,MAAMsD,EAAuB,CAC5BpC,aAAclB,GAAS,GACvBiB,MAAO,SAERiB,KAAK9B,YAAYkD,E,CAGX,iBAAApD,CAAkBF,GACxBE,EAAkBgC,KAAKnC,UAAWC,EAAO,CACxCuD,MAAO,CACNC,WAAY,KACX,GAAItB,KAAKnC,UAAUa,MAAM6C,WAAY,CACpCC,EAAS,2G,MAOP,iBAAAC,CAAkB3D,GACxB2D,EAAkBzB,KAAKnC,UAAWC,EAAO,CACxCuD,MAAO,CACNC,WAAY,KACX,GAAItB,KAAKnC,UAAUa,MAAMgD,WAAY,CACpCF,EAAS,6H,MAOP,YAAAG,CAAa7D,GACnB8D,EAAY5B,KAAKnC,UAAW,QAASC,E,CAG/B,UAAA+D,CAAW/D,GACjB8D,EAAY5B,KAAKnC,UAAW,MAAOC,EAAO,CAAEgE,UAAW,IACvD,GAAIhE,IAAU,WAAaA,IAAU,YAAa,CACjDiE,EAAQ,oG,EAIH,aAAAC,CAAclE,GACpBmE,EAA4BjC,KAAKnC,UAAWC,EAAO,CAClDoE,SAAU,M,CAIL,WAAAhE,CAAYJ,GAClBI,EAAY8B,KAAKnC,UAAWC,E,CAGtB,UAAAqE,CAAWrE,GACjB,UAAWA,IAAU,SAAU,CAC9BsE,EAASpC,KAAKnC,UAAW,MAAOC,E,EAI3B,gBAAAuE,CAAiBvE,GACvBuE,EAAiBrC,KAAKnC,UAAWC,GACjCgD,EAA0Bd,KAAKnC,UAAUyE,WAAYxE,E,CAG/C,mBAAAyE,CAAoBzE,GAC1BK,EAAoBL,GAAO,KAC1B,IACCA,EAAQM,EAAuBN,E,CAE9B,MAAOO,G,CAGT+D,EAASpC,KAAKnC,UAAW,eAAgBC,EAAM,G,CAI1C,gBAAA0E,CAAiB1E,GACvB0E,EAAiBxC,KAAKnC,UAAWC,E,CAG3B,iBAAAoC,GACNH,MAAMG,oBACNF,KAAKa,kBAAkBb,KAAKnC,UAAUyE,YACtCtC,KAAKpC,qBAAqBoC,KAAKnC,UAAU4E,eACzCzC,KAAKmB,cAAcnB,KAAKnC,UAAU6E,QAClC1C,KAAK9B,YAAY8B,KAAKnC,UAAUiB,MAChCkB,KAAKgB,iBAAiBhB,KAAKnC,UAAU8E,WACrC3C,KAAKhC,kBAAkBgC,KAAKnC,UAAU0D,YACtCvB,KAAKyB,kBAAkBzB,KAAKnC,UAAU6D,YACtC1B,KAAK2B,aAAa3B,KAAKnC,UAAUyB,OACjCU,KAAK6B,WAAW7B,KAAKnC,UAAU4B,KAC/BO,KAAKgC,cAAchC,KAAKnC,UAAU+E,QAClC5C,KAAKqC,iBAAiBrC,KAAKnC,UAAUkD,WACrCf,KAAKuC,oBAAoBvC,KAAKnC,UAAUgF,cACxC7C,KAAKmC,WAAWnC,KAAKnC,UAAUiF,KAC/B9C,KAAKwC,iBAAiBxC,KAAKnC,UAAUkF,WACrCjC,EAA0Bd,KAAKnC,UAAUyE,WAAYtC,KAAKnC,UAAUkD,U,CAG3D,MAAAR,CAAOyC,G,MAChBhD,KAAKnC,UAAUuB,SAAW,KAG1B6D,EAAgBD,GAChBE,EAA0B,OAAQlD,KAAKF,MAGvC,WAAWjB,EAAAmB,KAAKnC,UAAUiF,OAAG,MAAAjE,SAAA,SAAAA,EAAE0B,UAAW,WAAY,CACrDP,KAAKnC,UAAUiF,IAAIvC,OAAOyC,E,EAQlB,QAAAvC,CAASuC,EAAclF,G,MAChCA,EAAQA,IAAK,MAALA,SAAK,EAALA,EAAUkF,EAAMG,OAA4BrF,MAGpDoF,EAA0B,SAAUlD,KAAKF,KAAMhC,GAG/C,WAAWe,EAAAmB,KAAKnC,UAAUiF,OAAG,MAAAjE,SAAA,SAAAA,EAAE4B,YAAa,WAAY,CAQvDT,KAAKnC,UAAUiF,IAAIrC,SAASuC,EAAOlF,E,CAMpCkC,KAAKK,qBAAqB+C,SAASC,GAAaA,EAASvF,I,CAQhD,OAAA8C,CAAQoC,EAAcM,EAA+B,KAAMxF,G,MACpEA,EAAQA,IAAK,MAALA,SAAK,EAALA,EAAUkF,EAAMG,OAA4BrF,MAGpDmF,EAAgBD,GAChBE,EAA0B,QAASlD,KAAKF,KAAMhC,GAG9C,GAAIwF,EAA8B,CACjCtD,KAAKuD,uBAAuBzF,E,CAI7B,WAAWe,EAAAmB,KAAKnC,UAAUiF,OAAG,MAAAjE,SAAA,SAAAA,EAAE+B,WAAY,WAAY,CACtDZ,KAAKnC,UAAUiF,IAAIlC,QAAQoC,EAAOlF,E,EAI1B,OAAA4C,CAAQsC,G,MAEjBC,EAAgBD,GAChBE,EAA0B,QAASlD,KAAKF,MAGxC,WAAWjB,EAAAmB,KAAKnC,UAAUiF,OAAG,MAAAjE,SAAA,SAAAA,EAAE6B,WAAY,WAAY,CACtDV,KAAKnC,UAAUiF,IAAIpC,QAAQsC,E,EAInB,OAAArC,CAAQqC,G,MAEjBC,EAAgBD,GAChBE,EAA0B,QAASlD,KAAKF,MAGxC,WAAWjB,EAAAmB,KAAKnC,UAAUiF,OAAG,MAAAjE,SAAA,SAAAA,EAAE8B,WAAY,WAAY,CACtDX,KAAKnC,UAAUiF,IAAInC,QAAQqC,E,EAItB,sBAAAQ,CAAuBH,GAC7BrD,KAAKK,qBAAqBb,KAAK6D,E","ignoreList":[]}
|
@@ -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-
|
4
|
+
import{w as t,k as i,i as s,b as a}from"./prop.validators-a86a90ab.js";import{I as e}from"./controller-icon-9462c444.js";import{v as h}from"./has-counter-78647db8.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-e5312c47.js";import{w as t}from"./prop.validators-a86a90ab.js";import{v as e}from"./suggestions-4dab1555.js";const o=["text","search","url","tel"];class i extends s{constructor(t,o,s){super(t,o,s),this.component=t}validateSuggestions(t){e(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class r extends i{constructor(t,o,s){super(t,o,s),this.hasError=!1,this.component=t}validateType(s){t(this.component,"_type",(t=>"string"==typeof t&&o.includes(t)),new Set([`String {${o.join(", ")}`]),s)}componentWillLoad(){super.componentWillLoad(),this.validateType(this.component._type),this.validateHasCounter(this.component._hasCounter)}}export{i as I,r as a};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
3
|
+
*/
|
4
|
+
import{I as o}from"./controller-c4e9f5c7.js";import{i as s}from"./icons-6a56bde9.js";import{o as t,p as i,w as r}from"./prop.validators-a86a90ab.js";import{i as c}from"./common-54bf85ba.js";const a=(o,t)=>{const s=o;"object"==typeof s&&null!==s&&(c(s.right,1)&&(s.right={icon:s.right}),c(s.left,1)&&(s.left={icon:s.left}),t.set("_icons",s))};class e extends o{constructor(o,t,s){super(o,t,s),this.component=o}validateIcons(o){t(o,(()=>{try{o=i(o)}catch(o){}r(this.component,"_icons",(o=>"object"==typeof o&&null!==o&&(c(o.left,1)||s(o.left)||c(o.right,1)||s(o.right))),new Set(["KoliBriHorizontalIcon"]),o,{hooks:{beforePatch:a},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons)}}export{e as I};
|
@@ -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-aa4b49bc.js";import{p as t}from"./reuse-32931294.js";import{L as n,g as i,s as o,b as s,c as a,d as r}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")),a(t.includes("color-contrast-analysis=true")))}},u=()=>{let e=r().KoliBri;return void 0===e&&(e={},Object.defineProperty(r(),"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})},b=()=>{!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 f=()=>Math.floor(16777215*Math.random()).toString(16);"test"===t&&(f=()=>"nonce");export{l as i,f as n,b as r};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
3
|
+
*/
|
4
|
+
import{i as t,r as e}from"./dev.utils-4b58b6b1.js";import{e as o,g as s,L as a,a as r,f as i,d as l}from"./dev.utils-fab45cbc.js";import{z as n,v as c,A as f,B as p,C as d,p as m,D as L}from"./prop.validators-a86a90ab.js";import"./index-aa4b49bc.js";import"./reuse-32931294.js";import"./index-31b91a7e.js";const b=()=>{let t=l().KoliBri;return void 0===t&&(t={},Object.defineProperty(l(),"KoliBri",{value:t,writable:!1})),t};function u(t,e){try{Object.defineProperty(b(),t,{get:function(){return e}})}catch(e){a.debug(`KoliBri property ${t} is already bind.`)}}const v=(t,e)=>a.debug(`${t} ${e?"":"not "}activated`),h=()=>{if(t(),o()){e(),u("a11yColorContrast",n),u("querySelector",c),u("querySelectorAll",f),u("querySelectorColors",p),u("utils",(function(){return d})),u("parseJson",m),u("stringifyJson",L);const t=s().body,a=s().createElement("svg");if(a.setAttribute("aria-label","KoliBri-DevTools"),a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("role","toolbar"),a.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;"),a.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(a),v("Development mode",o()),v("Experimental mode",r()),v("Color contrast analysis",i()),i()){const e=setTimeout((()=>{clearTimeout(e),setInterval((()=>{d.queryHtmlElementColors(s().createElement("div"),n(t),!1,!1)}),1e4)}),2500)}}};export{h as initialize};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["getKoliBri","kolibri","getWindow","KoliBri","undefined","Object","defineProperty","value","writable","prototypeKoliBri","name","cb","get","e","Log","debug","metaModeLog","active","initialize","initKoliBri","getDevMode","renderDevAdvice","koliBriA11yColorContrast","koliBriQuerySelector","koliBriQuerySelectorAll","koliBriQuerySelectorColors","KoliBriUtils","parseJson","stringifyJson","body","getDocument","div","createElement","setAttribute","innerHTML","appendChild","getExperimentalMode","getColorContrastAnalysis","timeout","setTimeout","clearTimeout","setInterval","queryHtmlElementColors"],"sources":["src/global/devtools.ts"],"sourcesContent":["import {\n\tgetColorContrastAnalysis,\n\tgetDevMode,\n\tgetDocument,\n\tgetExperimentalMode,\n\tgetWindow,\n\tkoliBriA11yColorContrast,\n\tkoliBriQuerySelector,\n\tkoliBriQuerySelectorAll,\n\tkoliBriQuerySelectorColors,\n\tKoliBriUtils,\n\tLog,\n\tparseJson,\n\tstringifyJson,\n} from '../schema';\nimport { initKoliBri, renderDevAdvice } from '../utils/dev.utils';\n\nconst getKoliBri = (): Record<string, unknown> => {\n\tlet kolibri = getWindow().KoliBri;\n\tif (kolibri === undefined) {\n\t\tkolibri = {};\n\t\tObject.defineProperty(getWindow(), 'KoliBri', {\n\t\t\tvalue: kolibri,\n\t\t\twritable: false,\n\t\t});\n\t}\n\treturn kolibri;\n};\n\nfunction prototypeKoliBri<T>(name: string, cb: T) {\n\ttry {\n\t\tObject.defineProperty(getKoliBri(), name, {\n\t\t\tget: function () {\n\t\t\t\treturn cb;\n\t\t\t},\n\t\t});\n\t} catch (e) {\n\t\tLog.debug(`KoliBri property ${name} is already bind.`);\n\t}\n}\n\nconst metaModeLog = (name: string, active: boolean) => Log.debug(`${name} ${active ? '' : 'not '}activated`);\n\nexport const initialize = (): void => {\n\tinitKoliBri();\n\tif (getDevMode()) {\n\t\trenderDevAdvice();\n\n\t\tprototypeKoliBri('a11yColorContrast', koliBriA11yColorContrast);\n\t\tprototypeKoliBri('querySelector', koliBriQuerySelector);\n\t\tprototypeKoliBri('querySelectorAll', koliBriQuerySelectorAll);\n\t\tprototypeKoliBri('querySelectorColors', koliBriQuerySelectorColors);\n\t\tprototypeKoliBri('utils', function () {\n\t\t\treturn KoliBriUtils;\n\t\t});\n\t\tprototypeKoliBri('parseJson', parseJson);\n\t\tprototypeKoliBri('stringifyJson', stringifyJson);\n\n\t\tconst body = getDocument().body;\n\n\t\tconst div = getDocument().createElement('svg');\n\t\tdiv.setAttribute('aria-label', 'KoliBri-DevTools');\n\t\tdiv.setAttribute('xmlns', 'http://www.w3.org/2000/svg');\n\t\tdiv.setAttribute('role', 'toolbar');\n\t\tdiv.setAttribute('style', 'position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;');\n\t\tdiv.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>`;\n\n\t\tgetDocument().body.appendChild(div);\n\n\t\tmetaModeLog('Development mode', getDevMode());\n\t\tmetaModeLog('Experimental mode', getExperimentalMode());\n\t\tmetaModeLog('Color contrast analysis', getColorContrastAnalysis());\n\n\t\tif (getColorContrastAnalysis()) {\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\tsetInterval(() => {\n\t\t\t\t\tKoliBriUtils.queryHtmlElementColors(getDocument().createElement('div'), koliBriA11yColorContrast(body), false, false);\n\t\t\t\t}, 10000);\n\t\t\t}, 2500);\n\t\t}\n\n\t\t// setTimeout(() => {\n\t\t// const kolButton = koliBriQuerySelector<HTMLButtonElement>(document, '[_label=\"Aktion ausführen\"]');\n\t\t// if (kolButton) {\n\t\t// const button = koliBriQuerySelector<HTMLButtonElement>(kolButton?.shadowRoot as ShadowRoot, 'button');\n\t\t// if (button) {\n\t\t// kolButton.style.backgroundColor = '#988';\n\t\t// button.style.backgroundColor = 'inherit';\n\t\t// button.style.color = '#988';\n\t\t// const kolButtonColors = koliBriQuerySelectorColors('[_label=\"Aktion ausführen\"]');\n\t\t// console.log(\n\t\t// koliBriQuerySelectorColors('button', {\n\t\t// ...kolButtonColors,\n\t\t// })\n\t\t// );\n\t\t// }\n\t\t// }\n\t\t// }, 2500);\n\t}\n};\n"],"mappings":";;;
|
1
|
+
{"version":3,"names":["getKoliBri","kolibri","getWindow","KoliBri","undefined","Object","defineProperty","value","writable","prototypeKoliBri","name","cb","get","e","Log","debug","metaModeLog","active","initialize","initKoliBri","getDevMode","renderDevAdvice","koliBriA11yColorContrast","koliBriQuerySelector","koliBriQuerySelectorAll","koliBriQuerySelectorColors","KoliBriUtils","parseJson","stringifyJson","body","getDocument","div","createElement","setAttribute","innerHTML","appendChild","getExperimentalMode","getColorContrastAnalysis","timeout","setTimeout","clearTimeout","setInterval","queryHtmlElementColors"],"sources":["src/global/devtools.ts"],"sourcesContent":["import {\n\tgetColorContrastAnalysis,\n\tgetDevMode,\n\tgetDocument,\n\tgetExperimentalMode,\n\tgetWindow,\n\tkoliBriA11yColorContrast,\n\tkoliBriQuerySelector,\n\tkoliBriQuerySelectorAll,\n\tkoliBriQuerySelectorColors,\n\tKoliBriUtils,\n\tLog,\n\tparseJson,\n\tstringifyJson,\n} from '../schema';\nimport { initKoliBri, renderDevAdvice } from '../utils/dev.utils';\n\nconst getKoliBri = (): Record<string, unknown> => {\n\tlet kolibri = getWindow().KoliBri;\n\tif (kolibri === undefined) {\n\t\tkolibri = {};\n\t\tObject.defineProperty(getWindow(), 'KoliBri', {\n\t\t\tvalue: kolibri,\n\t\t\twritable: false,\n\t\t});\n\t}\n\treturn kolibri;\n};\n\nfunction prototypeKoliBri<T>(name: string, cb: T) {\n\ttry {\n\t\tObject.defineProperty(getKoliBri(), name, {\n\t\t\tget: function () {\n\t\t\t\treturn cb;\n\t\t\t},\n\t\t});\n\t} catch (e) {\n\t\tLog.debug(`KoliBri property ${name} is already bind.`);\n\t}\n}\n\nconst metaModeLog = (name: string, active: boolean) => Log.debug(`${name} ${active ? '' : 'not '}activated`);\n\nexport const initialize = (): void => {\n\tinitKoliBri();\n\tif (getDevMode()) {\n\t\trenderDevAdvice();\n\n\t\tprototypeKoliBri('a11yColorContrast', koliBriA11yColorContrast);\n\t\tprototypeKoliBri('querySelector', koliBriQuerySelector);\n\t\tprototypeKoliBri('querySelectorAll', koliBriQuerySelectorAll);\n\t\tprototypeKoliBri('querySelectorColors', koliBriQuerySelectorColors);\n\t\tprototypeKoliBri('utils', function () {\n\t\t\treturn KoliBriUtils;\n\t\t});\n\t\tprototypeKoliBri('parseJson', parseJson);\n\t\tprototypeKoliBri('stringifyJson', stringifyJson);\n\n\t\tconst body = getDocument().body;\n\n\t\tconst div = getDocument().createElement('svg');\n\t\tdiv.setAttribute('aria-label', 'KoliBri-DevTools');\n\t\tdiv.setAttribute('xmlns', 'http://www.w3.org/2000/svg');\n\t\tdiv.setAttribute('role', 'toolbar');\n\t\tdiv.setAttribute('style', 'position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;');\n\t\tdiv.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>`;\n\n\t\tgetDocument().body.appendChild(div);\n\n\t\tmetaModeLog('Development mode', getDevMode());\n\t\tmetaModeLog('Experimental mode', getExperimentalMode());\n\t\tmetaModeLog('Color contrast analysis', getColorContrastAnalysis());\n\n\t\tif (getColorContrastAnalysis()) {\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\tsetInterval(() => {\n\t\t\t\t\tKoliBriUtils.queryHtmlElementColors(getDocument().createElement('div'), koliBriA11yColorContrast(body), false, false);\n\t\t\t\t}, 10000);\n\t\t\t}, 2500);\n\t\t}\n\n\t\t// setTimeout(() => {\n\t\t// const kolButton = koliBriQuerySelector<HTMLButtonElement>(document, '[_label=\"Aktion ausführen\"]');\n\t\t// if (kolButton) {\n\t\t// const button = koliBriQuerySelector<HTMLButtonElement>(kolButton?.shadowRoot as ShadowRoot, 'button');\n\t\t// if (button) {\n\t\t// kolButton.style.backgroundColor = '#988';\n\t\t// button.style.backgroundColor = 'inherit';\n\t\t// button.style.color = '#988';\n\t\t// const kolButtonColors = koliBriQuerySelectorColors('[_label=\"Aktion ausführen\"]');\n\t\t// console.log(\n\t\t// koliBriQuerySelectorColors('button', {\n\t\t// ...kolButtonColors,\n\t\t// })\n\t\t// );\n\t\t// }\n\t\t// }\n\t\t// }, 2500);\n\t}\n};\n"],"mappings":";;;kTAiBA,MAAMA,EAAa,KAClB,IAAIC,EAAUC,IAAYC,QAC1B,GAAIF,IAAYG,UAAW,CAC1BH,EAAU,GACVI,OAAOC,eAAeJ,IAAa,UAAW,CAC7CK,MAAON,EACPO,SAAU,O,CAGZ,OAAOP,CAAO,EAGf,SAASQ,EAAoBC,EAAcC,GAC1C,IACCN,OAAOC,eAAeN,IAAcU,EAAM,CACzCE,IAAK,WACJ,OAAOD,C,IAGR,MAAOE,GACRC,EAAIC,MAAM,oBAAoBL,qB,CAEhC,CAEA,MAAMM,EAAc,CAACN,EAAcO,IAAoBH,EAAIC,MAAM,GAAGL,KAAQO,EAAS,GAAK,mB,MAE7EC,EAAa,KACzBC,IACA,GAAIC,IAAc,CACjBC,IAEAZ,EAAiB,oBAAqBa,GACtCb,EAAiB,gBAAiBc,GAClCd,EAAiB,mBAAoBe,GACrCf,EAAiB,sBAAuBgB,GACxChB,EAAiB,SAAS,WACzB,OAAOiB,C,IAERjB,EAAiB,YAAakB,GAC9BlB,EAAiB,gBAAiBmB,GAElC,MAAMC,EAAOC,IAAcD,KAE3B,MAAME,EAAMD,IAAcE,cAAc,OACxCD,EAAIE,aAAa,aAAc,oBAC/BF,EAAIE,aAAa,QAAS,8BAC1BF,EAAIE,aAAa,OAAQ,WACzBF,EAAIE,aAAa,QAAS,gFAC1BF,EAAIG,UAAY,ueAchBJ,IAAcD,KAAKM,YAAYJ,GAE/Bf,EAAY,mBAAoBI,KAChCJ,EAAY,oBAAqBoB,KACjCpB,EAAY,0BAA2BqB,KAEvC,GAAIA,IAA4B,CAC/B,MAAMC,EAAUC,YAAW,KAC1BC,aAAaF,GACbG,aAAY,KACXf,EAAagB,uBAAuBZ,IAAcE,cAAc,OAAQV,EAAyBO,GAAO,MAAO,MAAM,GACnH,IAAM,GACP,K","ignoreList":[]}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{b as a,c as o}from"./prop.validators-
|
4
|
+
import{b as a,c as o}from"./prop.validators-a86a90ab.js";const s=(s,r)=>{a(s,"_disabled",r,{hooks:{afterPatch:a=>{!0===a&&o()}}})};export{s as v};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
3
|
+
*/
|
4
|
+
import{w as o,t as n,o as e,p as t,s as a}from"./prop.validators-a86a90ab.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)}))}))},u=(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 i;!function(o){o.onBlur="onBlur",o.onChange="onChange",o.onClick="onClick",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.onSort="onSort",o.onSelectionChange="onSelectionChange",o.onSubmit="onSubmit",o.onToggle="onToggle",o.onClose="onClose"}(i||(i={}));export{i as E,f as a,u as b,r as c,c as d,l as v};
|
@@ -1 +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","Events"],"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/events.ts"],"sourcesContent":["import type { Events } 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[Events.onSort]?: EventValueOrEventCallback<MouseEvent, SortEventPayload>;\n\t[Events.onSelectionChange]?: EventValueOrEventCallback<Event, SelectionChangeEventPayload>;\n};\nexport type TableStatefulCallbacksPropType = {\n\t[Events.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 Events {\n\tonBlur = 'onBlur',\n\tonChange = 'onChange',\n\tonClick = 'onClick',\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\tonSort = 'onSort',\n\tonSelectionChange = 'onSelectionChange',\n\tonSubmit = 'onSubmit',\n\tonToggle = 'onToggle',\n\tonClose = 'onClose',\n}\n"],"mappings":";;;
|
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","Events"],"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/events.ts"],"sourcesContent":["import type { Events } 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[Events.onSort]?: EventValueOrEventCallback<MouseEvent, SortEventPayload>;\n\t[Events.onSelectionChange]?: EventValueOrEventCallback<Event, SelectionChangeEventPayload>;\n};\nexport type TableStatefulCallbacksPropType = {\n\t[Events.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 Events {\n\tonBlur = 'onBlur',\n\tonChange = 'onChange',\n\tonClick = 'onClick',\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\tonSort = 'onSort',\n\tonSelectionChange = 'onSelectionChange',\n\tonSubmit = 'onSubmit',\n\tonToggle = 'onToggle',\n\tonClose = 'onClose',\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,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,mBACAA,EAAA,yCACAA,EAAA,uBACAA,EAAA,uBACAA,EAAA,oBACA,EAtBD,CAAYA,MAAM,Y","ignoreList":[]}
|