@public-ui/components 3.0.0-3f7ce4d6fae47ec93967f553e36b3173cbf0ab8d.0 → 3.0.0-82804cac7f9ab37b6fb20eb823fc1fe80df2f4cc.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 +7 -13
- package/dist/cjs/Alert-0e2b6e57.js +4 -0
- package/dist/cjs/Alert-0e2b6e57.js.map +1 -0
- package/dist/cjs/{Collapsible-5bc4a629.js → Collapsible-718e4f1d.js} +1 -1
- package/dist/cjs/{Collapsible-5bc4a629.js.map → Collapsible-718e4f1d.js.map} +1 -1
- package/dist/cjs/{CustomSuggestionsOptionsGroup-f06b3c8b.js → CustomSuggestionsOptionsGroup-e0db1eda.js} +1 -1
- package/dist/cjs/CustomSuggestionsOptionsGroup-e0db1eda.js.map +1 -0
- package/dist/cjs/{FieldControlStateWrapper-406a2543.js → FieldControlStateWrapper-e36d2f44.js} +1 -1
- package/dist/cjs/{FieldControlStateWrapper-406a2543.js.map → FieldControlStateWrapper-e36d2f44.js.map} +1 -1
- package/dist/cjs/{Heading-df45a02a.js → Heading-daeefdb7.js} +1 -1
- package/dist/cjs/{Heading-df45a02a.js.map → Heading-daeefdb7.js.map} +1 -1
- package/dist/cjs/{Icon-d6c7ac6d.js → Icon-02113692.js} +1 -1
- package/dist/cjs/{Icon-d6c7ac6d.js.map → Icon-02113692.js.map} +1 -1
- package/dist/cjs/{Input-dda8644e.js → Input-def59c3b.js} +1 -1
- package/dist/cjs/{Input-dda8644e.js.map → Input-def59c3b.js.map} +1 -1
- package/dist/cjs/{InputStateWrapper-514cc171.js → InputStateWrapper-ea797c17.js} +1 -1
- package/dist/cjs/{InputStateWrapper-514cc171.js.map → InputStateWrapper-ea797c17.js.map} +1 -1
- package/dist/cjs/InternalUnderlinedBadgeText-a4b677e8.js +4 -0
- package/dist/cjs/InternalUnderlinedBadgeText-a4b677e8.js.map +1 -0
- package/dist/cjs/{Span-d8476793.js → Span-227a5836.js} +1 -1
- package/dist/cjs/{Span-d8476793.js.map → Span-227a5836.js.map} +1 -1
- package/dist/cjs/{app-globals-09011f29.js → app-globals-da3e767d.js} +1 -1
- package/dist/cjs/{app-globals-09011f29.js.map → app-globals-da3e767d.js.map} +1 -1
- package/dist/cjs/bem-85316256.js +4 -0
- package/dist/cjs/bem-85316256.js.map +1 -0
- package/dist/cjs/bem-c7c596d7.js +4 -0
- package/dist/cjs/bem-c7c596d7.js.map +1 -0
- package/dist/cjs/browser-4433089a.js +4 -0
- package/dist/cjs/browser-4433089a.js.map +1 -0
- package/dist/cjs/{controller-897b28b7.js → controller-19d17f61.js} +1 -1
- package/dist/cjs/{controller-897b28b7.js.map → controller-19d17f61.js.map} +1 -1
- package/dist/cjs/{controller-b25d03c0.js → controller-1ed51e80.js} +1 -1
- package/dist/cjs/{controller-b25d03c0.js.map → controller-1ed51e80.js.map} +1 -1
- package/dist/cjs/controller-8db9c0eb.js +4 -0
- package/dist/cjs/{controller-1e713423.js.map → controller-8db9c0eb.js.map} +1 -1
- package/dist/cjs/{controller-icon-6c4d3a54.js → controller-icon-69fbe3b2.js} +1 -1
- package/dist/cjs/{controller-icon-6c4d3a54.js.map → controller-icon-69fbe3b2.js.map} +1 -1
- package/dist/cjs/{dev.utils-2df3b62b.js → dev.utils-c88bb69f.js} +1 -1
- package/dist/cjs/{dev.utils-2df3b62b.js.map → dev.utils-c88bb69f.js.map} +1 -1
- package/dist/cjs/{devtools-49e6f868.js → devtools-9b140959.js} +1 -1
- package/dist/cjs/{devtools-49e6f868.js.map → devtools-9b140959.js.map} +1 -1
- package/dist/cjs/{getRenderStates-f8d610c4.js → getRenderStates-4f2419e5.js} +1 -1
- package/dist/cjs/{getRenderStates-f8d610c4.js.map → getRenderStates-4f2419e5.js.map} +1 -1
- package/dist/cjs/{index-9d66d61e.js → index-a6873389.js} +1 -1
- package/dist/cjs/{index-9d66d61e.js.map → index-a6873389.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/isArray-e114fe6e.js +4 -0
- package/dist/cjs/isArray-e114fe6e.js.map +1 -0
- package/dist/cjs/kol-abbr.cjs.entry.js +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-wc.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-alert.cjs.entry.js +1 -1
- package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-avatar.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-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-button-link.cjs.entry.js +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-card.cjs.entry.js +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.cjs.entry.js +1 -1
- package/dist/cjs/kol-icon.cjs.entry.js +1 -1
- package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-image.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
- package/dist/cjs/kol-link-button.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-modal.cjs.entry.js +1 -1
- package/dist/cjs/kol-nav.cjs.entry.js +1 -1
- package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
- package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-popover-button-wc.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-popover-button.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-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-spin.cjs.entry.js +1 -1
- package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-settings-wc.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-wc.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateless.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
- package/dist/cjs/kol-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-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/loader.cjs.js +1 -1
- package/dist/cjs/test-component.cjs.entry.js +1 -1
- package/dist/components/Alert.js +1 -1
- package/dist/components/Alert.js.map +1 -1
- package/dist/components/CustomSuggestionsOptionsGroup.js +1 -1
- package/dist/components/CustomSuggestionsOptionsGroup.js.map +1 -1
- package/dist/components/InternalUnderlinedBadgeText.js +1 -1
- package/dist/components/InternalUnderlinedBadgeText.js.map +1 -1
- package/dist/components/bem.js +4 -0
- package/dist/components/bem.js.map +1 -0
- package/dist/components/bem2.js +4 -0
- package/dist/components/bem2.js.map +1 -0
- package/dist/components/browser.js +4 -0
- package/dist/components/browser.js.map +1 -0
- package/dist/components/component-names.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/isArray.js +4 -0
- package/dist/components/isArray.js.map +1 -0
- package/dist/components/kol-alert.js +1 -1
- package/dist/components/kol-alert.js.map +1 -1
- package/dist/components/kol-breadcrumb.js +1 -1
- package/dist/components/kol-breadcrumb.js.map +1 -1
- package/dist/components/kol-button-wc.js +1 -1
- package/dist/components/kol-button-wc.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-form.js +1 -1
- package/dist/components/kol-form.js.map +1 -1
- package/dist/components/kol-icon.js +1 -1
- package/dist/components/kol-icon.js.map +1 -1
- package/dist/components/kol-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-link-button.js +1 -1
- package/dist/components/kol-link.js +1 -1
- package/dist/components/kol-nav.js +1 -1
- package/dist/components/kol-pagination.js +1 -1
- package/dist/components/kol-popover-button-wc.js +1 -1
- package/dist/components/kol-popover-button-wc.js.map +1 -1
- package/dist/components/kol-popover-button.js +1 -1
- package/dist/components/kol-popover-button.js.map +1 -1
- package/dist/components/kol-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-skip-nav.js +1 -1
- package/dist/components/kol-table-settings-wc.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-wc.js.map +1 -1
- package/dist/components/kol-table-stateless.js +1 -1
- package/dist/components/kol-table-stateless.js.map +1 -1
- package/dist/components/kol-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-tree-item-wc.js +1 -1
- package/dist/esm/Alert-b57cd280.js +4 -0
- package/dist/esm/Alert-b57cd280.js.map +1 -0
- package/dist/esm/{Collapsible-a4c63640.js → Collapsible-07e76e71.js} +1 -1
- package/dist/esm/{Collapsible-a4c63640.js.map → Collapsible-07e76e71.js.map} +1 -1
- package/dist/esm/CustomSuggestionsOptionsGroup-7a2ea67b.js +4 -0
- package/dist/esm/CustomSuggestionsOptionsGroup-7a2ea67b.js.map +1 -0
- package/dist/esm/{FieldControlStateWrapper-9d8d530e.js → FieldControlStateWrapper-997efcbc.js} +1 -1
- package/dist/esm/{FieldControlStateWrapper-9d8d530e.js.map → FieldControlStateWrapper-997efcbc.js.map} +1 -1
- package/dist/esm/{Heading-485868a9.js → Heading-eb000d67.js} +1 -1
- package/dist/esm/{Heading-485868a9.js.map → Heading-eb000d67.js.map} +1 -1
- package/dist/esm/Icon-75803120.js +4 -0
- package/dist/esm/{Icon-230aeb46.js.map → Icon-75803120.js.map} +1 -1
- package/dist/esm/{Input-d311a0b6.js → Input-1401beed.js} +1 -1
- package/dist/esm/{Input-d311a0b6.js.map → Input-1401beed.js.map} +1 -1
- package/dist/esm/{InputStateWrapper-de2b63a4.js → InputStateWrapper-ae15f500.js} +1 -1
- package/dist/esm/{InputStateWrapper-de2b63a4.js.map → InputStateWrapper-ae15f500.js.map} +1 -1
- package/dist/esm/InternalUnderlinedBadgeText-b3a71c4c.js +4 -0
- package/dist/esm/InternalUnderlinedBadgeText-b3a71c4c.js.map +1 -0
- package/dist/esm/{Span-0b66f853.js → Span-8988eadc.js} +1 -1
- package/dist/esm/{Span-0b66f853.js.map → Span-8988eadc.js.map} +1 -1
- package/dist/esm/{app-globals-29931fdd.js → app-globals-7ab7191c.js} +1 -1
- package/dist/esm/{app-globals-29931fdd.js.map → app-globals-7ab7191c.js.map} +1 -1
- package/dist/esm/bem-dabd96cc.js +4 -0
- package/dist/esm/bem-dabd96cc.js.map +1 -0
- package/dist/esm/bem-e4c3a2e6.js +4 -0
- package/dist/esm/bem-e4c3a2e6.js.map +1 -0
- package/dist/esm/browser-f629a56a.js +4 -0
- package/dist/esm/browser-f629a56a.js.map +1 -0
- package/dist/esm/{component-names-60d77143.js → component-names-7ee7402b.js} +1 -1
- package/dist/esm/{component-names-60d77143.js.map → component-names-7ee7402b.js.map} +1 -1
- package/dist/esm/{controller-c800edf4.js → controller-5df12c29.js} +1 -1
- package/dist/esm/{controller-c800edf4.js.map → controller-5df12c29.js.map} +1 -1
- package/dist/esm/{controller-20cae545.js → controller-a00e15ab.js} +1 -1
- package/dist/esm/{controller-20cae545.js.map → controller-a00e15ab.js.map} +1 -1
- package/dist/esm/{controller-a31f303e.js → controller-b4ef23a4.js} +1 -1
- package/dist/esm/{controller-a31f303e.js.map → controller-b4ef23a4.js.map} +1 -1
- package/dist/esm/{controller-ebac5af3.js → controller-db90ecea.js} +1 -1
- package/dist/esm/{controller-ebac5af3.js.map → controller-db90ecea.js.map} +1 -1
- package/dist/esm/{controller-icon-152a378d.js → controller-icon-8ae785ce.js} +1 -1
- package/dist/esm/{controller-icon-152a378d.js.map → controller-icon-8ae785ce.js.map} +1 -1
- package/dist/esm/{dev.utils-63a2f83b.js → dev.utils-58488320.js} +1 -1
- package/dist/esm/{dev.utils-63a2f83b.js.map → dev.utils-58488320.js.map} +1 -1
- package/dist/esm/{devtools-46afbd5e.js → devtools-04d0398a.js} +1 -1
- package/dist/esm/{devtools-46afbd5e.js.map → devtools-04d0398a.js.map} +1 -1
- package/dist/esm/{getRenderStates-356fb657.js → getRenderStates-142e86e0.js} +1 -1
- package/dist/esm/{getRenderStates-356fb657.js.map → getRenderStates-142e86e0.js.map} +1 -1
- package/dist/esm/{index-99a79ec9.js → index-d1a5f1d5.js} +1 -1
- package/dist/esm/{index-99a79ec9.js.map → index-d1a5f1d5.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/isArray-7a60fa7f.js +4 -0
- package/dist/esm/isArray-7a60fa7f.js.map +1 -0
- package/dist/esm/kol-abbr.entry.js +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-wc.entry.js.map +1 -1
- package/dist/esm/kol-alert.entry.js +1 -1
- package/dist/esm/kol-alert.entry.js.map +1 -1
- package/dist/esm/kol-avatar-wc.entry.js +1 -1
- package/dist/esm/kol-avatar.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-breadcrumb.entry.js.map +1 -1
- package/dist/esm/kol-button-link.entry.js +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-card.entry.js +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.entry.js +1 -1
- package/dist/esm/kol-icon.entry.js +1 -1
- package/dist/esm/kol-icon.entry.js.map +1 -1
- package/dist/esm/kol-image.entry.js +1 -1
- package/dist/esm/kol-input-checkbox.entry.js +1 -1
- package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
- package/dist/esm/kol-input-color.entry.js +1 -1
- package/dist/esm/kol-input-color.entry.js.map +1 -1
- package/dist/esm/kol-input-date.entry.js +1 -1
- package/dist/esm/kol-input-date.entry.js.map +1 -1
- package/dist/esm/kol-input-email.entry.js +1 -1
- package/dist/esm/kol-input-email.entry.js.map +1 -1
- package/dist/esm/kol-input-file.entry.js +1 -1
- package/dist/esm/kol-input-file.entry.js.map +1 -1
- package/dist/esm/kol-input-number.entry.js +1 -1
- package/dist/esm/kol-input-number.entry.js.map +1 -1
- package/dist/esm/kol-input-password.entry.js +1 -1
- package/dist/esm/kol-input-password.entry.js.map +1 -1
- package/dist/esm/kol-input-radio.entry.js +1 -1
- package/dist/esm/kol-input-radio.entry.js.map +1 -1
- package/dist/esm/kol-input-range.entry.js +1 -1
- package/dist/esm/kol-input-range.entry.js.map +1 -1
- package/dist/esm/kol-input-text.entry.js +1 -1
- package/dist/esm/kol-input-text.entry.js.map +1 -1
- package/dist/esm/kol-kolibri.entry.js +1 -1
- package/dist/esm/kol-link-button.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-modal.entry.js +1 -1
- package/dist/esm/kol-nav.entry.js +1 -1
- package/dist/esm/kol-pagination.entry.js +1 -1
- package/dist/esm/kol-popover-button-wc.entry.js +1 -1
- package/dist/esm/kol-popover-button-wc.entry.js.map +1 -1
- package/dist/esm/kol-popover-button.entry.js +1 -1
- package/dist/esm/kol-popover-button.entry.js.map +1 -1
- package/dist/esm/kol-popover-wc.entry.js +1 -1
- package/dist/esm/kol-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-spin.entry.js +1 -1
- package/dist/esm/kol-split-button.entry.js +1 -1
- package/dist/esm/kol-table-settings-wc.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-wc.entry.js.map +1 -1
- package/dist/esm/kol-table-stateless.entry.js +1 -1
- package/dist/esm/kol-table-stateless.entry.js.map +1 -1
- package/dist/esm/kol-tabs.entry.js +1 -1
- package/dist/esm/kol-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-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/loader.js +1 -1
- package/dist/esm/test-component.entry.js +1 -1
- package/dist/kolibri/Alert-b57cd280.js +4 -0
- package/dist/kolibri/Alert-b57cd280.js.map +1 -0
- package/dist/kolibri/{Collapsible-a4c63640.js → Collapsible-07e76e71.js} +1 -1
- package/dist/kolibri/CustomSuggestionsOptionsGroup-7a2ea67b.js +4 -0
- package/dist/kolibri/CustomSuggestionsOptionsGroup-7a2ea67b.js.map +1 -0
- package/dist/kolibri/{FieldControlStateWrapper-9d8d530e.js → FieldControlStateWrapper-997efcbc.js} +1 -1
- package/dist/kolibri/{Heading-485868a9.js → Heading-eb000d67.js} +1 -1
- package/dist/kolibri/Icon-75803120.js +4 -0
- package/dist/kolibri/{Input-d311a0b6.js → Input-1401beed.js} +1 -1
- package/dist/kolibri/{InputStateWrapper-de2b63a4.js → InputStateWrapper-ae15f500.js} +1 -1
- package/dist/kolibri/InternalUnderlinedBadgeText-b3a71c4c.js +4 -0
- package/dist/kolibri/InternalUnderlinedBadgeText-b3a71c4c.js.map +1 -0
- package/dist/kolibri/{Span-0b66f853.js → Span-8988eadc.js} +1 -1
- package/dist/kolibri/{app-globals-29931fdd.js → app-globals-7ab7191c.js} +1 -1
- package/dist/kolibri/bem-dabd96cc.js +4 -0
- package/dist/kolibri/bem-dabd96cc.js.map +1 -0
- package/dist/kolibri/bem-e4c3a2e6.js +4 -0
- package/dist/kolibri/bem-e4c3a2e6.js.map +1 -0
- package/dist/kolibri/browser-f629a56a.js +4 -0
- package/dist/kolibri/browser-f629a56a.js.map +1 -0
- package/dist/kolibri/{component-names-60d77143.js → component-names-7ee7402b.js} +1 -1
- package/dist/kolibri/{controller-c800edf4.js → controller-5df12c29.js} +1 -1
- package/dist/kolibri/{controller-20cae545.js → controller-a00e15ab.js} +1 -1
- package/dist/kolibri/{controller-a31f303e.js → controller-b4ef23a4.js} +1 -1
- package/dist/kolibri/{controller-ebac5af3.js → controller-db90ecea.js} +1 -1
- package/dist/kolibri/{controller-icon-152a378d.js → controller-icon-8ae785ce.js} +1 -1
- package/dist/kolibri/{dev.utils-63a2f83b.js → dev.utils-58488320.js} +1 -1
- package/dist/kolibri/devtools-04d0398a.js +4 -0
- package/dist/kolibri/{devtools-46afbd5e.js.map → devtools-04d0398a.js.map} +1 -1
- package/dist/kolibri/{getRenderStates-356fb657.js → getRenderStates-142e86e0.js} +1 -1
- package/dist/kolibri/{index-99a79ec9.js → index-d1a5f1d5.js} +1 -1
- package/dist/kolibri/{index-99a79ec9.js.map → index-d1a5f1d5.js.map} +1 -1
- package/dist/kolibri/index.esm.js +1 -1
- package/dist/kolibri/index.esm.js.map +1 -1
- package/dist/kolibri/isArray-7a60fa7f.js +4 -0
- package/dist/kolibri/isArray-7a60fa7f.js.map +1 -0
- package/dist/kolibri/kol-abbr.entry.js +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-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-alert.entry.js +1 -1
- package/dist/kolibri/kol-alert.entry.js.map +1 -1
- package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
- package/dist/kolibri/kol-avatar.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-breadcrumb.entry.js.map +1 -1
- package/dist/kolibri/kol-button-link.entry.js +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-card.entry.js +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.entry.js +1 -1
- package/dist/kolibri/kol-icon.entry.js +1 -1
- package/dist/kolibri/kol-icon.entry.js.map +1 -1
- package/dist/kolibri/kol-image.entry.js +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
- package/dist/kolibri/kol-input-color.entry.js +1 -1
- package/dist/kolibri/kol-input-color.entry.js.map +1 -1
- package/dist/kolibri/kol-input-date.entry.js +1 -1
- package/dist/kolibri/kol-input-date.entry.js.map +1 -1
- package/dist/kolibri/kol-input-email.entry.js +1 -1
- package/dist/kolibri/kol-input-email.entry.js.map +1 -1
- package/dist/kolibri/kol-input-file.entry.js +1 -1
- package/dist/kolibri/kol-input-file.entry.js.map +1 -1
- package/dist/kolibri/kol-input-number.entry.js +1 -1
- package/dist/kolibri/kol-input-number.entry.js.map +1 -1
- package/dist/kolibri/kol-input-password.entry.js +1 -1
- package/dist/kolibri/kol-input-password.entry.js.map +1 -1
- package/dist/kolibri/kol-input-radio.entry.js +1 -1
- package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
- package/dist/kolibri/kol-input-range.entry.js +1 -1
- package/dist/kolibri/kol-input-range.entry.js.map +1 -1
- package/dist/kolibri/kol-input-text.entry.js +1 -1
- package/dist/kolibri/kol-input-text.entry.js.map +1 -1
- package/dist/kolibri/kol-kolibri.entry.js +1 -1
- package/dist/kolibri/kol-link-button.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-modal.entry.js +1 -1
- package/dist/kolibri/kol-nav.entry.js +1 -1
- package/dist/kolibri/kol-pagination.entry.js +1 -1
- package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
- package/dist/kolibri/kol-popover-button-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-popover-button.entry.js +1 -1
- package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
- package/dist/kolibri/kol-popover-wc.entry.js +1 -1
- package/dist/kolibri/kol-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-spin.entry.js +1 -1
- package/dist/kolibri/kol-split-button.entry.js +1 -1
- package/dist/kolibri/kol-table-settings-wc.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-wc.entry.js.map +1 -1
- package/dist/kolibri/kol-table-stateless.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
- package/dist/kolibri/kol-tabs.entry.js +1 -1
- package/dist/kolibri/kol-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-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/test-component.entry.js +1 -1
- package/dist/types/components/button/component.d.ts +2 -0
- package/dist/types/components/icon/bem.d.ts +16 -0
- package/dist/types/components/input-file/shadow.d.ts +1 -0
- package/dist/types/components/popover-button/component.d.ts +1 -1
- package/dist/types/components/popover-button/shadow.d.ts +0 -1
- package/dist/types/components/single-select/controller.d.ts +1 -0
- package/dist/types/components/single-select/shadow.d.ts +3 -1
- package/dist/types/components/table-stateless/component.d.ts +1 -0
- package/dist/types/components.d.ts +14 -16
- package/dist/types/functional-components/Alert/Alert.d.ts +1 -1
- package/dist/types/functional-components/Alert/bem.d.ts +29 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/schema/components/single-select.d.ts +3 -3
- package/dist/types/schema/props/aria-has-popup.d.ts +3 -0
- package/doc/popover-button.md +0 -1
- package/doc/single-select.md +1 -0
- package/package.json +2 -1
- package/vscode-custom-data.json +4 -8
- package/dist/cjs/Alert-1985e597.js +0 -4
- package/dist/cjs/Alert-1985e597.js.map +0 -1
- package/dist/cjs/CustomSuggestionsOptionsGroup-f06b3c8b.js.map +0 -1
- package/dist/cjs/InternalUnderlinedBadgeText-7b352779.js +0 -4
- package/dist/cjs/InternalUnderlinedBadgeText-7b352779.js.map +0 -1
- package/dist/cjs/controller-1e713423.js +0 -4
- package/dist/esm/Alert-c740d8f3.js +0 -4
- package/dist/esm/Alert-c740d8f3.js.map +0 -1
- package/dist/esm/CustomSuggestionsOptionsGroup-7481dbd7.js +0 -4
- package/dist/esm/CustomSuggestionsOptionsGroup-7481dbd7.js.map +0 -1
- package/dist/esm/Icon-230aeb46.js +0 -4
- package/dist/esm/InternalUnderlinedBadgeText-67c31e1b.js +0 -4
- package/dist/esm/InternalUnderlinedBadgeText-67c31e1b.js.map +0 -1
- package/dist/kolibri/Alert-c740d8f3.js +0 -4
- package/dist/kolibri/Alert-c740d8f3.js.map +0 -1
- package/dist/kolibri/CustomSuggestionsOptionsGroup-7481dbd7.js +0 -4
- package/dist/kolibri/CustomSuggestionsOptionsGroup-7481dbd7.js.map +0 -1
- package/dist/kolibri/Icon-230aeb46.js +0 -4
- package/dist/kolibri/InternalUnderlinedBadgeText-67c31e1b.js +0 -4
- package/dist/kolibri/InternalUnderlinedBadgeText-67c31e1b.js.map +0 -1
- package/dist/kolibri/devtools-46afbd5e.js +0 -4
- /package/dist/kolibri/{Collapsible-a4c63640.js.map → Collapsible-07e76e71.js.map} +0 -0
- /package/dist/kolibri/{FieldControlStateWrapper-9d8d530e.js.map → FieldControlStateWrapper-997efcbc.js.map} +0 -0
- /package/dist/kolibri/{Heading-485868a9.js.map → Heading-eb000d67.js.map} +0 -0
- /package/dist/kolibri/{Icon-230aeb46.js.map → Icon-75803120.js.map} +0 -0
- /package/dist/kolibri/{Input-d311a0b6.js.map → Input-1401beed.js.map} +0 -0
- /package/dist/kolibri/{InputStateWrapper-de2b63a4.js.map → InputStateWrapper-ae15f500.js.map} +0 -0
- /package/dist/kolibri/{Span-0b66f853.js.map → Span-8988eadc.js.map} +0 -0
- /package/dist/kolibri/{app-globals-29931fdd.js.map → app-globals-7ab7191c.js.map} +0 -0
- /package/dist/kolibri/{component-names-60d77143.js.map → component-names-7ee7402b.js.map} +0 -0
- /package/dist/kolibri/{controller-c800edf4.js.map → controller-5df12c29.js.map} +0 -0
- /package/dist/kolibri/{controller-20cae545.js.map → controller-a00e15ab.js.map} +0 -0
- /package/dist/kolibri/{controller-a31f303e.js.map → controller-b4ef23a4.js.map} +0 -0
- /package/dist/kolibri/{controller-ebac5af3.js.map → controller-db90ecea.js.map} +0 -0
- /package/dist/kolibri/{controller-icon-152a378d.js.map → controller-icon-8ae785ce.js.map} +0 -0
- /package/dist/kolibri/{dev.utils-63a2f83b.js.map → dev.utils-58488320.js.map} +0 -0
- /package/dist/kolibri/{getRenderStates-356fb657.js.map → getRenderStates-142e86e0.js.map} +0 -0
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { HideMsgPropType, IconsHorizontalPropType, IdPropType, InputTypeOnDefault, LabelWithExpertSlotPropType, MsgPropType, NamePropType, OptionsPropType, ShortKeyPropType, SingleSelectAPI, SingleSelectStates, StencilUnknown, Stringified, SyncValueBySelectorPropType, TooltipAlignPropType } from '../../schema';
|
2
1
|
import type { JSX } from '../../stencil-public-runtime';
|
2
|
+
import type { HideMsgPropType, IconsHorizontalPropType, IdPropType, InputTypeOnDefault, LabelWithExpertSlotPropType, MsgPropType, NamePropType, OptionsPropType, RowsPropType, ShortKeyPropType, SingleSelectAPI, SingleSelectStates, StencilUnknown, Stringified, SyncValueBySelectorPropType, TooltipAlignPropType } from '../../schema';
|
3
3
|
export declare class KolSingleSelect implements SingleSelectAPI {
|
4
4
|
private readonly host?;
|
5
5
|
private refInput?;
|
@@ -51,6 +51,7 @@ export declare class KolSingleSelect implements SingleSelectAPI {
|
|
51
51
|
_touched?: boolean;
|
52
52
|
_value?: StencilUnknown;
|
53
53
|
_hideClearButton?: boolean;
|
54
|
+
_rows?: RowsPropType;
|
54
55
|
state: SingleSelectStates;
|
55
56
|
private inputHasFocus;
|
56
57
|
constructor();
|
@@ -74,6 +75,7 @@ export declare class KolSingleSelect implements SingleSelectAPI {
|
|
74
75
|
validateTouched(value?: boolean): void;
|
75
76
|
validateValue(value?: StencilUnknown): void;
|
76
77
|
validateHideClearButton(value?: boolean): void;
|
78
|
+
validateRows(value?: number): void;
|
77
79
|
handleMouseEvent(): void;
|
78
80
|
private updateInputValue;
|
79
81
|
componentWillLoad(): void;
|
@@ -12,6 +12,7 @@ export declare class KolTableStateless implements TableStatelessAPI {
|
|
12
12
|
private dataToKeyMap;
|
13
13
|
private checkboxRefs;
|
14
14
|
private tableDivElementHasScrollbar;
|
15
|
+
private previousHeaderCells?;
|
15
16
|
_data: TableDataPropType;
|
16
17
|
_dataFoot?: TableDataFootPropType;
|
17
18
|
_headerCells: TableHeaderCellsPropType;
|
@@ -6,11 +6,13 @@
|
|
6
6
|
*/
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
8
8
|
import { AccessKeyPropType, AccordionCallbacksPropType, AlertType, AlertVariant, AlignPropType, AlternativeButtonLinkRolePropType, AriaCurrentValuePropType, AriaDescriptionPropType, AriaOwnsPropType, BadgeTextPropType, BreadcrumbLinkProps, ButtonCallbacksPropType, ButtonOrLinkOrTextWithChildrenProps, ButtonProps, ButtonTypePropType, ButtonVariantPropType, CSSResize, CustomClassPropType, DetailsCallbacksPropType, DownloadPropType, ErrorListPropType, HeadingLevel, HeadingVariantPropType, HrefPropType, IconsHorizontalPropType, IconsPropType, IdPropType, ImageSourcePropType, InputCheckboxIconsProp, InputCheckboxVariant, InputDateType, InputTextType, InputTypeOnDefault, InputTypeOnOff, Iso8601, KoliBriAlertEventCallbacks, KoliBriCardEventCallbacks, KoliBriFormCallbacks, KoliBriIconsProp, KoliBriModalEventCallbacks, KoliBriPaginationButtonCallbacks, KoliBriProgressVariantType, KoliBriQuoteVariant, KoliBriTableDataType, KoliBriTableHeaders, KoliBriTablePaginationProps, KoliBriTabsCallbacks, LabelAlignPropType, LabelPropType, LabelWithExpertSlotPropType, LinkOnCallbacksPropType, LinkProps, LinkTargetPropType, Loading, MaxPropType, MsgPropType, NamePropType, OpenPropType, OptionsPropType, OptionsWithOptgroupPropType, Orientation, PaginationHasButton, PaginationPositionPropType, PopoverAlignPropType, PopoverCallbacksPropType, PropColor, RadioOptionsPropType, RowsPropType, ShortKeyPropType, SpellCheckPropType, SpinVariantPropType, StencilUnknown, Stringified, SuggestionsPropType, SyncValueBySelectorPropType, TabBehaviorPropType, TabButtonProps, TableCallbacksPropType, TableDataFootPropType, TableDataPropType, TableHeaderCellsPropType, TableSelectionPropType, TableStatefulCallbacksPropType, Toast, ToastState, ToolbarItemsPropType, TooltipAlignPropType, W3CInputValue } from "./schema";
|
9
|
+
import { AriaHasPopupPropType } from "./schema/props/aria-has-popup";
|
9
10
|
import { PasswordVariantPropType } from "./schema/props/variant/password-variant";
|
10
11
|
import { ModalVariantPropType } from "./schema/props/variant/modal";
|
11
12
|
import { TableSettingsPropType } from "./schema/props/table-settings";
|
12
13
|
import { MinWidthPropType } from "./schema/props/min-width";
|
13
14
|
export { AccessKeyPropType, AccordionCallbacksPropType, AlertType, AlertVariant, AlignPropType, AlternativeButtonLinkRolePropType, AriaCurrentValuePropType, AriaDescriptionPropType, AriaOwnsPropType, BadgeTextPropType, BreadcrumbLinkProps, ButtonCallbacksPropType, ButtonOrLinkOrTextWithChildrenProps, ButtonProps, ButtonTypePropType, ButtonVariantPropType, CSSResize, CustomClassPropType, DetailsCallbacksPropType, DownloadPropType, ErrorListPropType, HeadingLevel, HeadingVariantPropType, HrefPropType, IconsHorizontalPropType, IconsPropType, IdPropType, ImageSourcePropType, InputCheckboxIconsProp, InputCheckboxVariant, InputDateType, InputTextType, InputTypeOnDefault, InputTypeOnOff, Iso8601, KoliBriAlertEventCallbacks, KoliBriCardEventCallbacks, KoliBriFormCallbacks, KoliBriIconsProp, KoliBriModalEventCallbacks, KoliBriPaginationButtonCallbacks, KoliBriProgressVariantType, KoliBriQuoteVariant, KoliBriTableDataType, KoliBriTableHeaders, KoliBriTablePaginationProps, KoliBriTabsCallbacks, LabelAlignPropType, LabelPropType, LabelWithExpertSlotPropType, LinkOnCallbacksPropType, LinkProps, LinkTargetPropType, Loading, MaxPropType, MsgPropType, NamePropType, OpenPropType, OptionsPropType, OptionsWithOptgroupPropType, Orientation, PaginationHasButton, PaginationPositionPropType, PopoverAlignPropType, PopoverCallbacksPropType, PropColor, RadioOptionsPropType, RowsPropType, ShortKeyPropType, SpellCheckPropType, SpinVariantPropType, StencilUnknown, Stringified, SuggestionsPropType, SyncValueBySelectorPropType, TabBehaviorPropType, TabButtonProps, TableCallbacksPropType, TableDataFootPropType, TableDataPropType, TableHeaderCellsPropType, TableSelectionPropType, TableStatefulCallbacksPropType, Toast, ToastState, ToolbarItemsPropType, TooltipAlignPropType, W3CInputValue } from "./schema";
|
15
|
+
export { AriaHasPopupPropType } from "./schema/props/aria-has-popup";
|
14
16
|
export { PasswordVariantPropType } from "./schema/props/variant/password-variant";
|
15
17
|
export { ModalVariantPropType } from "./schema/props/variant/modal";
|
16
18
|
export { TableSettingsPropType } from "./schema/props/table-settings";
|
@@ -338,6 +340,10 @@ export namespace Components {
|
|
338
340
|
* Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)
|
339
341
|
*/
|
340
342
|
"_ariaExpanded"?: boolean;
|
343
|
+
/**
|
344
|
+
* Defines the aria-haspopup attribute. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-haspopup)
|
345
|
+
*/
|
346
|
+
"_ariaHasPopup"?: AriaHasPopupPropType;
|
341
347
|
/**
|
342
348
|
* Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)
|
343
349
|
*/
|
@@ -1960,10 +1966,6 @@ export namespace Components {
|
|
1960
1966
|
* Defines the value for the aria-description attribute.
|
1961
1967
|
*/
|
1962
1968
|
"_ariaDescription"?: AriaDescriptionPropType;
|
1963
|
-
/**
|
1964
|
-
* Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)
|
1965
|
-
*/
|
1966
|
-
"_ariaExpanded"?: boolean;
|
1967
1969
|
/**
|
1968
1970
|
* Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)
|
1969
1971
|
*/
|
@@ -2055,10 +2057,6 @@ export namespace Components {
|
|
2055
2057
|
* Defines the value for the aria-description attribute.
|
2056
2058
|
*/
|
2057
2059
|
"_ariaDescription"?: AriaDescriptionPropType;
|
2058
|
-
/**
|
2059
|
-
* Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)
|
2060
|
-
*/
|
2061
|
-
"_ariaExpanded"?: boolean;
|
2062
2060
|
/**
|
2063
2061
|
* Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)
|
2064
2062
|
*/
|
@@ -2350,6 +2348,10 @@ export namespace Components {
|
|
2350
2348
|
* @TODO : Change type back to `RequiredPropType` after Stencil#4663 has been resolved.
|
2351
2349
|
*/
|
2352
2350
|
"_required"?: boolean;
|
2351
|
+
/**
|
2352
|
+
* Maximum number of visible rows in the options dropdown before scrolling.
|
2353
|
+
*/
|
2354
|
+
"_rows"?: RowsPropType;
|
2353
2355
|
/**
|
2354
2356
|
* Adds a visual short key hint to the component.
|
2355
2357
|
*/
|
@@ -5105,10 +5107,6 @@ declare namespace LocalJSX {
|
|
5105
5107
|
* Defines the value for the aria-description attribute.
|
5106
5108
|
*/
|
5107
5109
|
"_ariaDescription"?: AriaDescriptionPropType;
|
5108
|
-
/**
|
5109
|
-
* Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)
|
5110
|
-
*/
|
5111
|
-
"_ariaExpanded"?: boolean;
|
5112
5110
|
/**
|
5113
5111
|
* Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)
|
5114
5112
|
*/
|
@@ -5192,10 +5190,6 @@ declare namespace LocalJSX {
|
|
5192
5190
|
* Defines the value for the aria-description attribute.
|
5193
5191
|
*/
|
5194
5192
|
"_ariaDescription"?: AriaDescriptionPropType;
|
5195
|
-
/**
|
5196
|
-
* Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)
|
5197
|
-
*/
|
5198
|
-
"_ariaExpanded"?: boolean;
|
5199
5193
|
/**
|
5200
5194
|
* Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)
|
5201
5195
|
*/
|
@@ -5473,6 +5467,10 @@ declare namespace LocalJSX {
|
|
5473
5467
|
* @TODO : Change type back to `RequiredPropType` after Stencil#4663 has been resolved.
|
5474
5468
|
*/
|
5475
5469
|
"_required"?: boolean;
|
5470
|
+
/**
|
5471
|
+
* Maximum number of visible rows in the options dropdown before scrolling.
|
5472
|
+
*/
|
5473
|
+
"_rows"?: RowsPropType;
|
5476
5474
|
/**
|
5477
5475
|
* Adds a visual short key hint to the component.
|
5478
5476
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type FunctionalComponent as FC } from '../../stencil-public-runtime';
|
2
|
-
import type
|
2
|
+
import { type JSXBase } from '../../stencil-public-runtime';
|
3
3
|
import { type InternalAlertProps } from '../../schema';
|
4
4
|
export type KolAlertFcProps = JSXBase.HTMLAttributes<HTMLDivElement> & Partial<Omit<InternalAlertProps, 'on'>> & {
|
5
5
|
onCloserClick?: () => void;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
type SCHEMA = {
|
2
|
+
'kol-alert': {
|
3
|
+
elements: {
|
4
|
+
container: {
|
5
|
+
modifiers: null;
|
6
|
+
};
|
7
|
+
icon: {
|
8
|
+
modifiers: null;
|
9
|
+
};
|
10
|
+
heading: {
|
11
|
+
modifiers: Set<'h0' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;
|
12
|
+
};
|
13
|
+
content: {
|
14
|
+
modifiers: null;
|
15
|
+
};
|
16
|
+
closer: {
|
17
|
+
modifiers: null;
|
18
|
+
};
|
19
|
+
};
|
20
|
+
modifiers: Set<'hasCloser' | 'type-default' | 'type-error' | 'type-info' | 'type-success' | 'type-warning' | 'variant-card' | 'variant-msg'>;
|
21
|
+
};
|
22
|
+
};
|
23
|
+
declare const bem: <BlockName extends "kol-alert", ElementName extends keyof NonNullable<SCHEMA[BlockName]["elements"]>>(blockName: BlockName, blockModifiersOrElementName?: ElementName | ((SCHEMA[BlockName]["modifiers"] extends infer T ? T extends SCHEMA[BlockName]["modifiers"] ? T extends Set<infer U> ? U : never : never : never) extends never ? undefined : Partial<Record<SCHEMA[BlockName]["modifiers"] extends infer T ? T extends SCHEMA[BlockName]["modifiers"] ? T extends Set<infer U> ? U : never : never : never, boolean>>) | undefined, elementModifiers?: ((NonNullable<SCHEMA[BlockName]["elements"]>[ElementName]["modifiers"] extends infer T_1 ? T_1 extends NonNullable<SCHEMA[BlockName]["elements"]>[ElementName]["modifiers"] ? T_1 extends Set<infer U> ? U : never : never : never) extends never ? undefined : Partial<Record<NonNullable<SCHEMA[BlockName]["elements"]>[ElementName]["modifiers"] extends infer T_1 ? T_1 extends NonNullable<SCHEMA[BlockName]["elements"]>[ElementName]["modifiers"] ? T_1 extends Set<infer U> ? U : never : never : never, boolean>>) | undefined) => string;
|
24
|
+
declare const BEM: SCHEMA;
|
25
|
+
declare const BEM_CLASS_ALERT__CLOSER: string;
|
26
|
+
declare const BEM_CLASS_ALERT__CONTENT: string;
|
27
|
+
declare const BEM_CLASS_ALERT__ICON: string;
|
28
|
+
export { bem as genBemAlert, BEM as BEM_ALERT };
|
29
|
+
export { BEM_CLASS_ALERT__CLOSER, BEM_CLASS_ALERT__CONTENT, BEM_CLASS_ALERT__ICON };
|
package/dist/types/index.d.ts
CHANGED
@@ -7,3 +7,5 @@ export * from './kolibri';
|
|
7
7
|
export { KoliBri, KoliBriDevHelper } from './schema';
|
8
8
|
export { KolEvent } from './utils/events';
|
9
9
|
export type { FocusableElement, KoliBriTableCell, KoliBriTableHeaderCell, KoliBriTableSelection, Optgroup, Option, SelectOption, Toast, ToasterOptions, } from './schema';
|
10
|
+
export { BEM_ALERT } from './functional-components/Alert/bem';
|
11
|
+
export { BEM_ICON } from './components/icon/bem';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Generic } from 'adopted-style-sheets';
|
2
|
-
import type { MsgPropType, PropAccessKey, PropDisabled, PropHideLabel, PropHideMsg, PropHorizontalIcons, PropId, PropLabelWithExpertSlot, PropMsg, PropName, PropOptions, PropRequired, PropShortKey, PropSyncValueBySelector, PropTouched } from '../props';
|
2
|
+
import type { MsgPropType, PropAccessKey, PropDisabled, PropHideLabel, PropHideMsg, PropHorizontalIcons, PropId, PropLabelWithExpertSlot, PropMsg, PropName, PropOptions, PropRequired, PropShortKey, PropSyncValueBySelector, PropTouched, PropRows } from '../props';
|
3
3
|
import type { InputTypeOnDefault, KoliBriHIcons, Option, StencilUnknown, Stringified } from '../types';
|
4
4
|
type RequiredProps = PropLabelWithExpertSlot & PropOptions;
|
5
5
|
type OptionalProps = {
|
@@ -9,7 +9,7 @@ type OptionalProps = {
|
|
9
9
|
placeholder: string;
|
10
10
|
value: StencilUnknown;
|
11
11
|
hideClearButton: boolean;
|
12
|
-
} & PropAccessKey & PropDisabled & PropHideMsg & PropHideLabel & PropHorizontalIcons & PropName & PropRequired & PropSyncValueBySelector & PropShortKey & PropTouched;
|
12
|
+
} & PropAccessKey & PropDisabled & PropHideMsg & PropHideLabel & PropHorizontalIcons & PropName & PropRequired & PropRows & PropSyncValueBySelector & PropShortKey & PropTouched;
|
13
13
|
type RequiredStates = {
|
14
14
|
options: Option<StencilUnknown>[];
|
15
15
|
} & PropId & PropHideMsg & PropLabelWithExpertSlot;
|
@@ -18,7 +18,7 @@ type OptionalStates = {
|
|
18
18
|
on: InputTypeOnDefault;
|
19
19
|
placeholder: string;
|
20
20
|
hideClearButton: boolean;
|
21
|
-
} & PropAccessKey & PropDisabled & PropHideLabel & KoliBriHIcons & PropId & PropName & PropRequired & PropMsg & PropShortKey & PropTouched;
|
21
|
+
} & PropAccessKey & PropDisabled & PropHideLabel & KoliBriHIcons & PropId & PropName & PropRequired & PropRows & PropMsg & PropShortKey & PropTouched;
|
22
22
|
export type SingleSelectProps = Generic.Element.Members<RequiredProps, OptionalProps>;
|
23
23
|
export type SingleSelectStates = Generic.Element.Members<RequiredStates, OptionalStates>;
|
24
24
|
export type SingleSelectWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;
|
package/doc/popover-button.md
CHANGED
@@ -10,7 +10,6 @@
|
|
10
10
|
| `_accessKey` | `_access-key` | Defines which key combination can be used to trigger or focus the interactive element of the component. | `string` \| `undefined` | `undefined` |
|
11
11
|
| `_ariaControls` | `_aria-controls` | Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls) | `string` \| `undefined` | `undefined` |
|
12
12
|
| `_ariaDescription` | `_aria-description` | Defines the value for the aria-description attribute. | `string` \| `undefined` | `undefined` |
|
13
|
-
| `_ariaExpanded` | `_aria-expanded` | Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded) | `boolean` \| `undefined` | `undefined` |
|
14
13
|
| `_ariaSelected` | `_aria-selected` | Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected) | `boolean` \| `undefined` | `undefined` |
|
15
14
|
| `_customClass` | `_custom-class` | Defines the custom class attribute if _variant="custom" is set. | `string` \| `undefined` | `undefined` |
|
16
15
|
| `_disabled` | `_disabled` | Makes the element not focusable and ignore all events. | `boolean` \| `undefined` | `false` |
|
package/doc/single-select.md
CHANGED
@@ -22,6 +22,7 @@
|
|
22
22
|
| `_options` _(required)_ | `_options` | Options the user can choose from. | `Option<StencilUnknown>[]` \| `string` | `undefined` |
|
23
23
|
| `_placeholder` | `_placeholder` | Defines the placeholder for input field. To be shown when there's no value. | `string` \| `undefined` | `undefined` |
|
24
24
|
| `_required` | `_required` | Makes the input element required. | `boolean` \| `undefined` | `false` |
|
25
|
+
| `_rows` | `_rows` | Maximum number of visible rows in the options dropdown before scrolling. | `number` \| `undefined` | `undefined` |
|
25
26
|
| `_shortKey` | `_short-key` | Adds a visual short key hint to the component. | `string` \| `undefined` | `undefined` |
|
26
27
|
| `_tooltipAlign` | `_tooltip-align` | Defines where to show the Tooltip preferably: top, right, bottom or left. | `"bottom"` \| `"left"` \| `"right"` \| `"top"` \| `undefined` | `'top'` |
|
27
28
|
| `_touched` | `_touched` | Shows if the input was touched by a user. | `boolean` \| `undefined` | `false` |
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@public-ui/components",
|
3
|
-
"version": "3.0.0-
|
3
|
+
"version": "3.0.0-82804cac7f9ab37b6fb20eb823fc1fe80df2f4cc.0",
|
4
4
|
"license": "EUPL-1.2",
|
5
5
|
"homepage": "https://public-ui.github.io",
|
6
6
|
"repository": {
|
@@ -61,6 +61,7 @@
|
|
61
61
|
"query-selector-all-shadow-root": "0.0.3",
|
62
62
|
"query-selector-shadow-root": "0.0.3",
|
63
63
|
"rgba-convert": "0.3.0",
|
64
|
+
"typed-bem": "1.0.0-rc.7",
|
64
65
|
"wcag-contrast": "3.0.0"
|
65
66
|
},
|
66
67
|
"peerDependencies": {
|
package/vscode-custom-data.json
CHANGED
@@ -2769,10 +2769,6 @@
|
|
2769
2769
|
"name": "_aria-description",
|
2770
2770
|
"description": "Defines the value for the aria-description attribute."
|
2771
2771
|
},
|
2772
|
-
{
|
2773
|
-
"name": "_aria-expanded",
|
2774
|
-
"description": "Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)"
|
2775
|
-
},
|
2776
2772
|
{
|
2777
2773
|
"name": "_aria-selected",
|
2778
2774
|
"description": "Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)"
|
@@ -2934,10 +2930,6 @@
|
|
2934
2930
|
"name": "_aria-description",
|
2935
2931
|
"description": "Defines the value for the aria-description attribute."
|
2936
2932
|
},
|
2937
|
-
{
|
2938
|
-
"name": "_aria-expanded",
|
2939
|
-
"description": "Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)"
|
2940
|
-
},
|
2941
2933
|
{
|
2942
2934
|
"name": "_aria-selected",
|
2943
2935
|
"description": "Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)"
|
@@ -3346,6 +3338,10 @@
|
|
3346
3338
|
"name": "_required",
|
3347
3339
|
"description": "Makes the input element required."
|
3348
3340
|
},
|
3341
|
+
{
|
3342
|
+
"name": "_rows",
|
3343
|
+
"description": "Maximum number of visible rows in the options dropdown before scrolling."
|
3344
|
+
},
|
3349
3345
|
{
|
3350
3346
|
"name": "_short-key",
|
3351
3347
|
"description": "Adds a visual short key hint to the component."
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
3
|
-
*/
|
4
|
-
"use strict";const tslib_es6=require("./tslib.es6-5e301284.js"),index=require("./index-9d66d61e.js"),clsx=require("./clsx-dd4d6dd1.js"),i18n=require("./i18n-0e710ccd.js"),componentNames=require("./component-names-82c4d68d.js"),Heading=require("./Heading-df45a02a.js"),Icon=({ariaLabel:e,icon:l})=>index.h(index.Fragment,null,index.h("span",{class:"visually-hidden"},e),index.h(componentNames.KolIconTag,{class:"kol-alert__heading-icon",_label:"",_icons:l})),AlertIcon=({type:e,label:l})=>{switch(e){case"error":return index.h(Icon,{ariaLabel:i18n.translate("kol-error"),icon:"codicon codicon-error",label:l});case"info":return index.h(Icon,{ariaLabel:i18n.translate("kol-info"),icon:"codicon codicon-info",label:l});case"warning":return index.h(Icon,{ariaLabel:i18n.translate("kol-warning"),icon:"codicon codicon-warning",label:l});case"success":return index.h(Icon,{ariaLabel:i18n.translate("kol-success"),icon:"codicon codicon-pass",label:l});default:return index.h(Icon,{ariaLabel:i18n.translate("kol-message"),icon:"codicon codicon-comment",label:l})}},AlertIcon$1=AlertIcon,KolAlertFc=(e,l)=>{var n,o;const{class:a={},type:i="default",variant:c="msg",label:t,hasCloser:r,alert:s,onAlertTimeout:d,onCloserClick:u,level:v}=e,b=tslib_es6.__rest(e,["class","type","variant","label","hasCloser","alert","onAlertTimeout","onCloserClick","level"]);s&&((null===(n=navigator.userActivation)||void 0===n?void 0:n.hasBeenActive)&&(null===(o=null===navigator||void 0===navigator?void 0:navigator.vibrate)||void 0===o||o.call(navigator,[100,75,100,75,100])),setTimeout((()=>{null==d||d()}),1e4));const _=Object.assign({class:clsx.clsx("kol-alert",`kol-alert--${i}`,`kol-alert--${c}`,{"kol-alert--hasCloser":!!r},a),role:s?"alert":void 0},b);return index.h("div",Object.assign({},_),index.h("div",{class:"kol-alert__container"},index.h(AlertIcon$1,{label:t,type:i}),index.h("div",{class:"kol-alert__container-content"},t?index.h(Heading.KolHeadingFc,{class:"kol-alert__heading",level:v},t):null,"msg"===c&&index.h("div",{class:"kol-alert__content"},l)),r&&index.h(componentNames.KolButtonWcTag,{class:"kol-alert__close-button close","data-testid":"alert-close-button",_ariaDescription:(null==t?void 0:t.trim())||"",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:i18n.translate("kol-close-alert"),_on:{onClick:u},_tooltipAlign:"left"})),"card"===c&&index.h("div",{class:"kol-alert__content"},l))},KolAlertFc$1=KolAlertFc;exports.KolAlertFc=KolAlertFc$1;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"Alert-1985e597.js","mappings":";;;;;;;;;;;;AAUA,MAAM,IAAI,GAA4D,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE;IACzF,QACCA;QACCA,kBAAM,KAAK,EAAC,iBAAiB,IAAE,SAAS,CAAQ;QAChDA,QAACC,yBAAU,IAAC,KAAK,EAAC,yBAAyB,EAAC,MAAM,EAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAI,CACpE,EACF;AACH,CAAC,CAAC;AAEF,MAAM,SAAS,GAA6C,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE;IAC3E,QAAQ,IAAI;QACX,KAAK,OAAO;YACX,OAAOD,QAAC,IAAI,IAAC,SAAS,EAAEE,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ag","translate","clsx","AlertIcon","KolHeadingFc","KolButtonWcTag"],"sources":["src/functional-components/AlertIcon/AlertIcon.tsx","src/functional-components/Alert/Alert.tsx"],"sourcesContent":["import { Fragment, type FunctionalComponent as FC, h } from '@stencil/core';\nimport { KolIconTag } from '../../core/component-names';\nimport type { AlertType } from '../../schema';\nimport { translate } from '../../i18n';\n\n/**\n * The icon uses a visually-hidden span instead of an aria-label because the Alert might be referenced as content for aria-describedby.\n * In this scenario, Firefox with NVDA does not properly read the aria-label, so the visually-hidden span ensures correct screen reader behavior.\n * @see https://github.com/public-ui/kolibri/issues/7119\n */\nconst Icon: FC<{ ariaLabel: string; icon: string; label?: string }> = ({ ariaLabel, icon }) => {\n\treturn (\n\t\t<>\n\t\t\t<span class=\"visually-hidden\">{ariaLabel}</span>\n\t\t\t<KolIconTag class=\"kol-alert__heading-icon\" _label=\"\" _icons={icon} />\n\t\t</>\n\t);\n};\n\nconst AlertIcon: FC<{ label?: string; type?: AlertType }> = ({ type, label }) => {\n\tswitch (type) {\n\t\tcase 'error':\n\t\t\treturn <Icon ariaLabel={translate('kol-error')} icon=\"codicon codicon-error\" label={label} />;\n\t\tcase 'info':\n\t\t\treturn <Icon ariaLabel={translate('kol-info')} icon=\"codicon codicon-info\" label={label} />;\n\t\tcase 'warning':\n\t\t\treturn <Icon ariaLabel={translate('kol-warning')} icon=\"codicon codicon-warning\" label={label} />;\n\t\tcase 'success':\n\t\t\treturn <Icon ariaLabel={translate('kol-success')} icon=\"codicon codicon-pass\" label={label} />;\n\t\tdefault:\n\t\t\treturn <Icon ariaLabel={translate('kol-message')} icon=\"codicon codicon-comment\" label={label} />;\n\t}\n};\n\nexport default AlertIcon;\n","import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\n\nimport { type InternalAlertProps } from '../../schema';\nimport { translate } from '../../i18n';\nimport { KolButtonWcTag } from '../../core/component-names';\n\nimport AlertIcon from '../AlertIcon';\nimport KolHeadingFc from '../Heading';\n\nexport type KolAlertFcProps = JSXBase.HTMLAttributes<HTMLDivElement> &\n\tPartial<Omit<InternalAlertProps, 'on'>> & {\n\t\tonCloserClick?: () => void;\n\t\tonAlertTimeout?: () => void;\n\t};\n\nconst KolAlertFc: FC<KolAlertFcProps> = (props, children) => {\n\tconst { class: classNames = {}, type = 'default', variant = 'msg', label, hasCloser, alert, onAlertTimeout, onCloserClick, level, ...other } = props;\n\n\tif (alert) {\n\t\t/**\n\t\t * - https://developer.mozilla.org/de/docs/Web/API/Navigator/vibrate\n\t\t * - https://googlechrome.github.io/samples/vibration/\n\t\t * - Ongoing discussion: https://github.com/public-ui/kolibri/issues/7191\n\t\t * @todo Move side-effect out of render-function to avoid multiple incarnations.\n\t\t */\n\t\tif (navigator.userActivation?.hasBeenActive) {\n\t\t\tnavigator?.vibrate?.([100, 75, 100, 75, 100]);\n\t\t}\n\n\t\tsetTimeout(() => {\n\t\t\tonAlertTimeout?.();\n\t\t}, 10000);\n\t}\n\n\tconst rootProps: Partial<JSXBase.HTMLAttributes<HTMLDivElement>> = {\n\t\tclass: clsx('kol-alert', `kol-alert--${type}`, `kol-alert--${variant}`, { 'kol-alert--hasCloser': !!hasCloser }, classNames),\n\t\trole: alert ? 'alert' : undefined,\n\t\t...other,\n\t};\n\n\treturn (\n\t\t<div {...rootProps}>\n\t\t\t<div class=\"kol-alert__container\">\n\t\t\t\t<AlertIcon label={label} type={type} />\n\t\t\t\t<div class=\"kol-alert__container-content\">\n\t\t\t\t\t{label ? (\n\t\t\t\t\t\t<KolHeadingFc class=\"kol-alert__heading\" level={level}>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</KolHeadingFc>\n\t\t\t\t\t) : null}\n\t\t\t\t\t{variant === 'msg' && <div class=\"kol-alert__content\">{children}</div>}\n\t\t\t\t</div>\n\t\t\t\t{hasCloser && (\n\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\tclass=\"kol-alert__close-button close\"\n\t\t\t\t\t\tdata-testid=\"alert-close-button\"\n\t\t\t\t\t\t_ariaDescription={label?.trim() || ''}\n\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t_icons={{\n\t\t\t\t\t\t\tleft: {\n\t\t\t\t\t\t\t\ticon: 'codicon codicon-close',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}}\n\t\t\t\t\t\t_label={translate('kol-close-alert')}\n\t\t\t\t\t\t_on={{ onClick: onCloserClick }}\n\t\t\t\t\t\t_tooltipAlign=\"left\"\n\t\t\t\t\t></KolButtonWcTag>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t\t{variant === 'card' && <div class=\"kol-alert__content\">{children}</div>}\n\t\t</div>\n\t);\n};\n\nexport default KolAlertFc;\n"],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"CustomSuggestionsOptionsGroup-f06b3c8b.js","mappings":";;;;;;;;;;MASa,eAAe,GAAG,CAAC,KAK/B;;IAKA,MAAM,cAAc,GAAG,CAAA,MAAA,KAAK,CAAC,IAAI,0CAAE,KAAK,MAAK,OAAO,CAAC;IACrD,MAAM,MAAM,GAAG,cAAc,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI,CAAC;IACzD,MAAM,OAAO,GAAG,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAE1E,MAAM,eAAe,GAAa,EAAE,CAAC;IACrC,IAAI,MAAM,KAAK,IAAI,EAAE;QACpB,eAAe,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,GAAG,QAAQ,CAAC,CAAC;KAC3C;IACD,IAAI,OAAO,KAAK,IAAI,EAAE;QACrB,eAAe,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC;KAC1C;IACD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC;AAC7C;;ACxBA,MAAM,yBAAyB,GAAqC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE;IACzF,QACCA,oBAAQ,QAAQ,EAAC,IAAI,EAAC,KAAK,EAAC,+BAA+B,EAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ;QAC/FA,QAACC,yBAAU,IAAC,MAAM,EAAC,+BAA+B,EAAC,MAAM,EAAEC,cAAS,CAAC,cAAc,CAAC,GAAI,CAChF,EACR;AACH,CAAC,CAAC;AACF,oCAAe,yBAAyB;;ACHxC,MAAM,yBAAyB,GAA+B,CAAC,SAAEC,OAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE;IACxI,QACCH,gBACC,EAAE,EAAE,UAAUG,OAAK,EAAE,EACrB,GAAG,EAAE,IAAIA,OAAK,EAAE,EAChB,GAAG,EAAE,GAAG,gBACIA,OAAK,EACjB,QAAQ,EAAE,CAAC,CAAC,EACZ,IAAI,EAAC,QAAQ,mBACE,QAAQ,GAAG,MAAM,GAAG,SAAS,EAC5C,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAC,+BAA+B,EACrC,SAAS,EAAE,SAAS,IAEnB,MAAM,CACH,EACJ;AACH,CAAC,CAAC;AACF,oCAAe,yBAAyB;;ACvBxC,MAAM,+BAA+B,GAA2C,CAAC,EAAE,wBAAwB,EAAE,SAAS,EAAE,EAAE,QAAQ;IACjI,QACCH,gBACC,IAAI,EAAC,SAAS,EACd,KAAK,EAAEI,SAAI,CAAC,sCAAsC,EAAE;YACnD,qDAAqD,EAAE,wBAAwB;SAC/E,CAAC,EACF,SAAS,EAAE,SAAS,IAEnB,QAAQ,CACL,EACJ;AACH,CAAC,CAAC;AACF,0CAAe,+BAA+B;;;;;;;","names":["h","KolIconTag","translate","index","clsx"],"sources":["src/components/input/controller.ts","src/functional-components/CustomSuggestionsToggle/CustomSuggestionsToggle.tsx","src/functional-components/CustomSuggestionsOption/CustomSuggestionsOption.tsx","src/functional-components/CustomSuggestionsOptionsGroup/CustomSuggestionsOptionsGroup.tsx"],"sourcesContent":["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\thasMsg: boolean;\n\thasHint: boolean;\n\tariaDescribedBy: string[];\n} => {\n\tconst isMessageValid = state._msg?._type === 'error';\n\tconst hasMsg = isMessageValid && state._touched === true;\n\tconst hasHint = typeof state._hint === 'string' && state._hint.length > 0;\n\n\tconst ariaDescribedBy: string[] = [];\n\tif (hasMsg === 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 { hasMsg, hasHint, ariaDescribedBy };\n};\n","import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport { KolIconTag } from '../../core/component-names';\nimport { translate } from '../../i18n';\nimport type { JSXBase } from '@stencil/core/internal';\n\nexport type CustomSuggestionsToggleProps = JSXBase.HTMLAttributes<HTMLButtonElement> & { disabled?: boolean };\n\nconst CustomSuggestionsToggleFc: FC<CustomSuggestionsToggleProps> = ({ onClick, disabled }) => {\n\treturn (\n\t\t<button tabindex=\"-1\" class=\"kol-custom-suggestions-toggle\" onClick={onClick} disabled={disabled}>\n\t\t\t<KolIconTag _icons=\"codicon codicon-triangle-down\" _label={translate('kol-dropdown')} />\n\t\t</button>\n\t);\n};\nexport default CustomSuggestionsToggleFc;\n","import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport type { W3CInputValue } from '../../schema';\n\nexport type CustomSuggestionsProps = JSXBase.HTMLAttributes<HTMLLIElement> & {\n\tindex: number;\n\toption: W3CInputValue;\n\tselected: boolean;\n\tref?: ((elm?: HTMLLIElement | undefined) => void) | undefined;\n};\n\nconst CustomSuggestionsOptionFc: FC<CustomSuggestionsProps> = ({ index, ref, selected, onClick, onMouseOver, onFocus, onKeyDown, option }) => {\n\treturn (\n\t\t<li\n\t\t\tid={`option-${index}`}\n\t\t\tkey={`-${index}`}\n\t\t\tref={ref}\n\t\t\tdata-index={index}\n\t\t\ttabIndex={-1}\n\t\t\trole=\"option\"\n\t\t\taria-selected={selected ? 'true' : undefined}\n\t\t\tonClick={onClick}\n\t\t\tonMouseOver={onMouseOver}\n\t\t\tonFocus={onFocus}\n\t\t\tclass=\"kol-custom-suggestions-option\"\n\t\t\tonKeyDown={onKeyDown}\n\t\t>\n\t\t\t{option}\n\t\t</li>\n\t);\n};\nexport default CustomSuggestionsOptionFc;\n","import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\n\nexport type CustomSuggestionsOptionsGroupProps = JSXBase.HTMLAttributes<HTMLUListElement> & {\n\tblockSuggestionMouseOver: boolean;\n};\n\nconst CustomSuggestionsOptionsGroupFc: FC<CustomSuggestionsOptionsGroupProps> = ({ blockSuggestionMouseOver, onKeyDown }, children) => {\n\treturn (\n\t\t<ul\n\t\t\trole=\"listbox\"\n\t\t\tclass={clsx('kol-custom-suggestions-options-group', {\n\t\t\t\t'kol-custom-suggestions-options-group--cursor-hidden': blockSuggestionMouseOver,\n\t\t\t})}\n\t\t\tonKeyDown={onKeyDown}\n\t\t>\n\t\t\t{children}\n\t\t</ul>\n\t);\n};\nexport default CustomSuggestionsOptionsGroupFc;\n"],"version":3}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
3
|
-
*/
|
4
|
-
"use strict";const index=require("./index-9d66d61e.js");var freeGlobal="object"==typeof global&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol=root$1.Symbol;const Symbol$1=Symbol;var objectProto$1=Object.prototype,hasOwnProperty=objectProto$1.hasOwnProperty,nativeObjectToString$1=objectProto$1.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(t){var e=hasOwnProperty.call(t,symToStringTag$1),n=t[symToStringTag$1];try{t[symToStringTag$1]=void 0;var r=!0}catch(t){}var o=nativeObjectToString$1.call(t);return r&&(e?t[symToStringTag$1]=n:delete t[symToStringTag$1]),o}var objectProto=Object.prototype,nativeObjectToString=objectProto.toString;function objectToString(t){return nativeObjectToString.call(t)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(t){return null==t?void 0===t?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(t)?getRawTag(t):objectToString(t)}function isObjectLike(t){return null!=t&&"object"==typeof t}var isArray=Array.isArray;const isArray$1=isArray;var stringTag="[object String]";function isString(t){return"string"==typeof t||!isArray$1(t)&&isObjectLike(t)&&baseGetTag(t)==stringTag}const KolInternalUnderlinedBadgeTextFc=({badgeText:t,label:e})=>{const n=t;let[r,...o]=e.split(n);return 0===o.length&&(t=n.toUpperCase(),[r,...o]=e.split(n)),0===o.length&&(t=n.toLowerCase(),[r,...o]=e.split(n)),index.h(index.Fragment,null,r,o.length?index.h(index.Fragment,null,index.h("u",null,t),o.join(n)):null)},InternalUnderlinedBadgeText=KolInternalUnderlinedBadgeTextFc;exports.InternalUnderlinedBadgeText=InternalUnderlinedBadgeText,exports.isString=isString;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"InternalUnderlinedBadgeText-7b352779.js","mappings":";;;;;;;AAAA;AACA,IAAI,UAAU,GAAG,OAAO,MAAM,IAAI,QAAQ,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,IAAI,MAA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;","names":["freeGlobal","root","objectProto","nativeObjectToString","symToStringTag","Symbol","isArray","h"],"sources":["../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.js","src/functional-components/InternalUnderlinedBadgeText/InternalUnderlinedBadgeText.tsx"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nexport default freeGlobal;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nexport default root;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nexport default Symbol;\n","import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nexport default getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nexport default objectToString;\n","import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nexport default baseGetTag;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nexport default isObjectLike;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nexport default isArray;\n","import baseGetTag from './_baseGetTag.js';\nimport isArray from './isArray.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nexport default isString;\n","import { Fragment, h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { BadgeTextPropType } from '../../schema';\n\ntype InternalUnderlinedBadgeTextProps = {\n\tbadgeText: BadgeTextPropType;\n\tlabel: string;\n};\n\nconst KolInternalUnderlinedBadgeTextFc: FC<InternalUnderlinedBadgeTextProps> = ({ badgeText, label }) => {\n\t/* Prefer capitalization as defined in the badge Text, try uppercase/lowercase when there's no match. */\n\tconst badgeTextAsString: string = badgeText;\n\tlet [first, ...rest] = label.split(badgeTextAsString);\n\tif (rest.length === 0) {\n\t\tbadgeText = badgeTextAsString.toUpperCase();\n\t\t[first, ...rest] = label.split(badgeTextAsString);\n\t}\n\tif (rest.length === 0) {\n\t\tbadgeText = badgeTextAsString.toLowerCase();\n\t\t[first, ...rest] = label.split(badgeTextAsString);\n\t}\n\treturn (\n\t\t<>\n\t\t\t{first}\n\t\t\t{rest.length ? (\n\t\t\t\t<>\n\t\t\t\t\t<u>{badgeText}</u>\n\t\t\t\t\t{rest.join(badgeTextAsString)}\n\t\t\t\t</>\n\t\t\t) : null}\n\t\t</>\n\t);\n};\n\nexport default KolInternalUnderlinedBadgeTextFc;\n"],"version":3}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
3
|
-
*/
|
4
|
-
"use strict";const controller=require("./controller-b25d03c0.js"),spellCheck=require("./spell-check-d54fcffc.js"),prop_validators=require("./prop.validators-3c86f8eb.js"),suggestions=require("./suggestions-eccef9c3.js"),inputTextTypeOptions=["text","search","url","tel"];class InputTextEmailController extends controller.InputPasswordController{constructor(t,e,o){super(t,e,o),this.component=t}validateSuggestions(t){suggestions.validateSuggestions(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class InputTextController extends InputTextEmailController{constructor(t,e,o){super(t,e,o),this.hasError=!1,this.component=t}validateSpellCheck(t){spellCheck.validateSpellCheck(this.component,t)}validateType(t){prop_validators.watchValidator(this.component,"_type",(t=>"string"==typeof t&&inputTextTypeOptions.includes(t)),new Set([`String {${inputTextTypeOptions.join(", ")}`]),t)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}exports.InputTextController=InputTextController,exports.InputTextEmailController=InputTextEmailController;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
3
|
-
*/
|
4
|
-
import{_ as __rest}from"./tslib.es6-1173d062.js";import{h,F as Fragment}from"./index-99a79ec9.js";import{c as clsx}from"./clsx-09a06a12.js";import{t as translate}from"./i18n-efbafc80.js";import{d as KolIconTag,a as KolButtonWcTag}from"./component-names-60d77143.js";import{K as KolHeadingFc}from"./Heading-485868a9.js";const Icon=({ariaLabel:l,icon:o})=>h(Fragment,null,h("span",{class:"visually-hidden"},l),h(KolIconTag,{class:"kol-alert__heading-icon",_label:"",_icons:o})),AlertIcon=({type:l,label:o})=>{switch(l){case"error":return h(Icon,{ariaLabel:translate("kol-error"),icon:"codicon codicon-error",label:o});case"info":return h(Icon,{ariaLabel:translate("kol-info"),icon:"codicon codicon-info",label:o});case"warning":return h(Icon,{ariaLabel:translate("kol-warning"),icon:"codicon codicon-warning",label:o});case"success":return h(Icon,{ariaLabel:translate("kol-success"),icon:"codicon codicon-pass",label:o});default:return h(Icon,{ariaLabel:translate("kol-message"),icon:"codicon codicon-comment",label:o})}},AlertIcon$1=AlertIcon,KolAlertFc=(l,o)=>{var a,e;const{class:n={},type:t="default",variant:c="msg",label:r,hasCloser:s,alert:i,onAlertTimeout:d,onCloserClick:v,level:_}=l,u=__rest(l,["class","type","variant","label","hasCloser","alert","onAlertTimeout","onCloserClick","level"]);i&&((null===(a=navigator.userActivation)||void 0===a?void 0:a.hasBeenActive)&&(null===(e=null===navigator||void 0===navigator?void 0:navigator.vibrate)||void 0===e||e.call(navigator,[100,75,100,75,100])),setTimeout((()=>{null==d||d()}),1e4));const b=Object.assign({class:clsx("kol-alert",`kol-alert--${t}`,`kol-alert--${c}`,{"kol-alert--hasCloser":!!s},n),role:i?"alert":void 0},u);return h("div",Object.assign({},b),h("div",{class:"kol-alert__container"},h(AlertIcon$1,{label:r,type:t}),h("div",{class:"kol-alert__container-content"},r?h(KolHeadingFc,{class:"kol-alert__heading",level:_},r):null,"msg"===c&&h("div",{class:"kol-alert__content"},o)),s&&h(KolButtonWcTag,{class:"kol-alert__close-button close","data-testid":"alert-close-button",_ariaDescription:(null==r?void 0:r.trim())||"",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:translate("kol-close-alert"),_on:{onClick:v},_tooltipAlign:"left"})),"card"===c&&h("div",{class:"kol-alert__content"},o))},KolAlertFc$1=KolAlertFc;export{Kol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gBAAgB,EAAE,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EAAE,KAAI,EAAE,EACrC,UAAU,QACV,MAAM,EAAE;oBACP,IAAI,EAAE;wBACL,IAAI,EAAE,uBAAuB;qBAC7B;iBACD,EACD,MAAM,EAAE,SAAS,CAAC,iBAAiB,CAAC,EACpC,GAAG,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,EAC/B,aAAa,EAAC,MAAM,GACH,CAClB,CACI;QACL,OAAO,KAAK,MAAM,IAAI,WAAK,KAAK,EAAC,oBAAoB,IAAE,QAAQ,CAAO,CAClE,EACL;AACH,CAAC,CAAC;AAEF,qBAAe,UAAU;;;;","names":["AlertIcon"],"sources":["src/functional-components/AlertIcon/AlertIcon.tsx","src/functional-components/Alert/Alert.tsx"],"sourcesContent":["import { Fragment, type FunctionalComponent as FC, h } from '@stencil/core';\nimport { KolIconTag } from '../../core/component-names';\nimport type { AlertType } from '../../schema';\nimport { translate } from '../../i18n';\n\n/**\n * The icon uses a visually-hidden span instead of an aria-label because the Alert might be referenced as content for aria-describedby.\n * In this scenario, Firefox with NVDA does not properly read the aria-label, so the visually-hidden span ensures correct screen reader behavior.\n * @see https://github.com/public-ui/kolibri/issues/7119\n */\nconst Icon: FC<{ ariaLabel: string; icon: string; label?: string }> = ({ ariaLabel, icon }) => {\n\treturn (\n\t\t<>\n\t\t\t<span class=\"visually-hidden\">{ariaLabel}</span>\n\t\t\t<KolIconTag class=\"kol-alert__heading-icon\" _label=\"\" _icons={icon} />\n\t\t</>\n\t);\n};\n\nconst AlertIcon: FC<{ label?: string; type?: AlertType }> = ({ type, label }) => {\n\tswitch (type) {\n\t\tcase 'error':\n\t\t\treturn <Icon ariaLabel={translate('kol-error')} icon=\"codicon codicon-error\" label={label} />;\n\t\tcase 'info':\n\t\t\treturn <Icon ariaLabel={translate('kol-info')} icon=\"codicon codicon-info\" label={label} />;\n\t\tcase 'warning':\n\t\t\treturn <Icon ariaLabel={translate('kol-warning')} icon=\"codicon codicon-warning\" label={label} />;\n\t\tcase 'success':\n\t\t\treturn <Icon ariaLabel={translate('kol-success')} icon=\"codicon codicon-pass\" label={label} />;\n\t\tdefault:\n\t\t\treturn <Icon ariaLabel={translate('kol-message')} icon=\"codicon codicon-comment\" label={label} />;\n\t}\n};\n\nexport default AlertIcon;\n","import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\n\nimport { type InternalAlertProps } from '../../schema';\nimport { translate } from '../../i18n';\nimport { KolButtonWcTag } from '../../core/component-names';\n\nimport AlertIcon from '../AlertIcon';\nimport KolHeadingFc from '../Heading';\n\nexport type KolAlertFcProps = JSXBase.HTMLAttributes<HTMLDivElement> &\n\tPartial<Omit<InternalAlertProps, 'on'>> & {\n\t\tonCloserClick?: () => void;\n\t\tonAlertTimeout?: () => void;\n\t};\n\nconst KolAlertFc: FC<KolAlertFcProps> = (props, children) => {\n\tconst { class: classNames = {}, type = 'default', variant = 'msg', label, hasCloser, alert, onAlertTimeout, onCloserClick, level, ...other } = props;\n\n\tif (alert) {\n\t\t/**\n\t\t * - https://developer.mozilla.org/de/docs/Web/API/Navigator/vibrate\n\t\t * - https://googlechrome.github.io/samples/vibration/\n\t\t * - Ongoing discussion: https://github.com/public-ui/kolibri/issues/7191\n\t\t * @todo Move side-effect out of render-function to avoid multiple incarnations.\n\t\t */\n\t\tif (navigator.userActivation?.hasBeenActive) {\n\t\t\tnavigator?.vibrate?.([100, 75, 100, 75, 100]);\n\t\t}\n\n\t\tsetTimeout(() => {\n\t\t\tonAlertTimeout?.();\n\t\t}, 10000);\n\t}\n\n\tconst rootProps: Partial<JSXBase.HTMLAttributes<HTMLDivElement>> = {\n\t\tclass: clsx('kol-alert', `kol-alert--${type}`, `kol-alert--${variant}`, { 'kol-alert--hasCloser': !!hasCloser }, classNames),\n\t\trole: alert ? 'alert' : undefined,\n\t\t...other,\n\t};\n\n\treturn (\n\t\t<div {...rootProps}>\n\t\t\t<div class=\"kol-alert__container\">\n\t\t\t\t<AlertIcon label={label} type={type} />\n\t\t\t\t<div class=\"kol-alert__container-content\">\n\t\t\t\t\t{label ? (\n\t\t\t\t\t\t<KolHeadingFc class=\"kol-alert__heading\" level={level}>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</KolHeadingFc>\n\t\t\t\t\t) : null}\n\t\t\t\t\t{variant === 'msg' && <div class=\"kol-alert__content\">{children}</div>}\n\t\t\t\t</div>\n\t\t\t\t{hasCloser && (\n\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\tclass=\"kol-alert__close-button close\"\n\t\t\t\t\t\tdata-testid=\"alert-close-button\"\n\t\t\t\t\t\t_ariaDescription={label?.trim() || ''}\n\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t_icons={{\n\t\t\t\t\t\t\tleft: {\n\t\t\t\t\t\t\t\ticon: 'codicon codicon-close',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}}\n\t\t\t\t\t\t_label={translate('kol-close-alert')}\n\t\t\t\t\t\t_on={{ onClick: onCloserClick }}\n\t\t\t\t\t\t_tooltipAlign=\"left\"\n\t\t\t\t\t></KolButtonWcTag>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t\t{variant === 'card' && <div class=\"kol-alert__content\">{children}</div>}\n\t\t</div>\n\t);\n};\n\nexport default KolAlertFc;\n"],"version":3}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
3
|
-
*/
|
4
|
-
import{h}from"./index-99a79ec9.js";import{d as KolIconTag}from"./component-names-60d77143.js";import{t as translate}from"./i18n-efbafc80.js";import{c as clsx}from"./clsx-09a06a12.js";const getRenderStates=o=>{var s;const t="error"===(null===(s=o._msg)||void 0===s?void 0:s._type)&&!0===o._touched,n="string"==typeof o._hint&&o._hint.length>0,e=[];return!0===t&&e.push(`${o._id}-error`),!0===n&&e.push(`${o._id}-hint`),{hasMsg:t,hasHint:n,ariaDescribedBy:e}},CustomSuggestionsToggleFc=({onClick:o,disabled:s})=>h("button",{tabindex:"-1",class:"kol-custom-suggestions-toggle",onClick:o,disabled:s},h(KolIconTag,{_icons:"codicon codicon-triangle-down",_label:translate("kol-dropdown")})),CustomSuggestionsToggleFc$1=CustomSuggestionsToggleFc,CustomSuggestionsOptionFc=({index:o,ref:s,selected:t,onClick:n,onMouseOver:e,onFocus:i,onKeyDown:g,option:u})=>h("li",{id:`option-${o}`,key:`-${o}`,ref:s,"data-index":o,tabIndex:-1,role:"option","aria-selected":t?"true":void 0,onClick:n,onMouseOver:e,onFocus:i,class:"kol-custom-suggestions-option",onKeyDown:g},u),CustomSuggestionsOptionFc$1=CustomSuggestionsOptionFc,CustomSuggestionsOptionsGroupFc=({blockSuggestionMouseOver:o,onKeyDown:s},t)=>h("ul",{role:"listbox",class:clsx("kol-custom-suggestions-options-group",{"kol-custom-suggestions-options-group--cursor-hidden":o}),onKeyDown:s},t),CustomSuggestionsOptionsGroupFc$1=CustomSuggestionsOptionsGroupFc;export{CustomSuggestionsToggleFc$1 as C,CustomSuggestionsOptionsGroupFc$1 as a,CustomSuggestionsOptionFc$1 as b,getRenderStates as g};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"CustomSuggestionsOptionsGroup-7481dbd7.js","mappings":";;;;;;;;MASa,eAAe,GAAG,CAAC,KAK/B;;IAKA,MAAM,cAAc,GAAG,CAAA,MAAA,KAAK,CAAC,IAAI,0CAAE,KAAK,MAAK,OAAO,CAAC;IACrD,MAAM,MAAM,GAAG,cAAc,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI,CAAC;IACzD,MAAM,OAAO,GAAG,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAE1E,MAAM,eAAe,GAAa,EAAE,CAAC;IACrC,IAAI,MAAM,KAAK,IAAI,EAAE;QACpB,eAAe,CAAC,IA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E,IAAI,CAAC,sCAAsC,EAAE;YACnD,qDAAqD,EAAE,wBAAwB;SAC/E,CAAC,EACF,SAAS,EAAE,SAAS,IAEnB,QAAQ,CACL,EACJ;AACH,CAAC,CAAC;AACF,0CAAe,+BAA+B;;;;","names":[],"sources":["src/components/input/controller.ts","src/functional-components/CustomSuggestionsToggle/CustomSuggestionsToggle.tsx","src/functional-components/CustomSuggestionsOption/CustomSuggestionsOption.tsx","src/functional-components/CustomSuggestionsOptionsGroup/CustomSuggestionsOptionsGroup.tsx"],"sourcesContent":["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\thasMsg: boolean;\n\thasHint: boolean;\n\tariaDescribedBy: string[];\n} => {\n\tconst isMessageValid = state._msg?._type === 'error';\n\tconst hasMsg = isMessageValid && state._touched === true;\n\tconst hasHint = typeof state._hint === 'string' && state._hint.length > 0;\n\n\tconst ariaDescribedBy: string[] = [];\n\tif (hasMsg === 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 { hasMsg, hasHint, ariaDescribedBy };\n};\n","import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport { KolIconTag } from '../../core/component-names';\nimport { translate } from '../../i18n';\nimport type { JSXBase } from '@stencil/core/internal';\n\nexport type CustomSuggestionsToggleProps = JSXBase.HTMLAttributes<HTMLButtonElement> & { disabled?: boolean };\n\nconst CustomSuggestionsToggleFc: FC<CustomSuggestionsToggleProps> = ({ onClick, disabled }) => {\n\treturn (\n\t\t<button tabindex=\"-1\" class=\"kol-custom-suggestions-toggle\" onClick={onClick} disabled={disabled}>\n\t\t\t<KolIconTag _icons=\"codicon codicon-triangle-down\" _label={translate('kol-dropdown')} />\n\t\t</button>\n\t);\n};\nexport default CustomSuggestionsToggleFc;\n","import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport type { W3CInputValue } from '../../schema';\n\nexport type CustomSuggestionsProps = JSXBase.HTMLAttributes<HTMLLIElement> & {\n\tindex: number;\n\toption: W3CInputValue;\n\tselected: boolean;\n\tref?: ((elm?: HTMLLIElement | undefined) => void) | undefined;\n};\n\nconst CustomSuggestionsOptionFc: FC<CustomSuggestionsProps> = ({ index, ref, selected, onClick, onMouseOver, onFocus, onKeyDown, option }) => {\n\treturn (\n\t\t<li\n\t\t\tid={`option-${index}`}\n\t\t\tkey={`-${index}`}\n\t\t\tref={ref}\n\t\t\tdata-index={index}\n\t\t\ttabIndex={-1}\n\t\t\trole=\"option\"\n\t\t\taria-selected={selected ? 'true' : undefined}\n\t\t\tonClick={onClick}\n\t\t\tonMouseOver={onMouseOver}\n\t\t\tonFocus={onFocus}\n\t\t\tclass=\"kol-custom-suggestions-option\"\n\t\t\tonKeyDown={onKeyDown}\n\t\t>\n\t\t\t{option}\n\t\t</li>\n\t);\n};\nexport default CustomSuggestionsOptionFc;\n","import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\n\nexport type CustomSuggestionsOptionsGroupProps = JSXBase.HTMLAttributes<HTMLUListElement> & {\n\tblockSuggestionMouseOver: boolean;\n};\n\nconst CustomSuggestionsOptionsGroupFc: FC<CustomSuggestionsOptionsGroupProps> = ({ blockSuggestionMouseOver, onKeyDown }, children) => {\n\treturn (\n\t\t<ul\n\t\t\trole=\"listbox\"\n\t\t\tclass={clsx('kol-custom-suggestions-options-group', {\n\t\t\t\t'kol-custom-suggestions-options-group--cursor-hidden': blockSuggestionMouseOver,\n\t\t\t})}\n\t\t\tonKeyDown={onKeyDown}\n\t\t>\n\t\t\t{children}\n\t\t</ul>\n\t);\n};\nexport default CustomSuggestionsOptionsGroupFc;\n"],"version":3}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
3
|
-
*/
|
4
|
-
import{h}from"./index-99a79ec9.js";import{d as KolIconTag}from"./component-names-60d77143.js";const KolIconFc=o=>{const{class:c,style:n,icons:l,label:s,onClick:a}=o;return h(KolIconTag,{class:c,style:n,onClick:a,_icons:l,_label:s})},KolIconFc$1=KolIconFc;export{KolIconFc$1 as K};
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
3
|
-
*/
|
4
|
-
import{h,F as Fragment}from"./index-99a79ec9.js";var freeGlobal="object"==typeof global&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol=root$1.Symbol;const Symbol$1=Symbol;var objectProto$1=Object.prototype,hasOwnProperty=objectProto$1.hasOwnProperty,nativeObjectToString$1=objectProto$1.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(t){var e=hasOwnProperty.call(t,symToStringTag$1),o=t[symToStringTag$1];try{t[symToStringTag$1]=void 0;var r=!0}catch(t){}var n=nativeObjectToString$1.call(t);return r&&(e?t[symToStringTag$1]=o:delete t[symToStringTag$1]),n}var objectProto=Object.prototype,nativeObjectToString=objectProto.toString;function objectToString(t){return nativeObjectToString.call(t)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(t){return null==t?void 0===t?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(t)?getRawTag(t):objectToString(t)}function isObjectLike(t){return null!=t&&"object"==typeof t}var isArray=Array.isArray;const isArray$1=isArray;var stringTag="[object String]";function isString(t){return"string"==typeof t||!isArray$1(t)&&isObjectLike(t)&&baseGetTag(t)==stringTag}const KolInternalUnderlinedBadgeTextFc=({badgeText:t,label:e})=>{const o=t;let[r,...n]=e.split(o);return 0===n.length&&(t=o.toUpperCase(),[r,...n]=e.split(o)),0===n.length&&(t=o.toLowerCase(),[r,...n]=e.split(o)),h(Fragment,null,r,n.length?h(Fragment,null,h("u",null,t),n.join(o)):null)},InternalUnderlinedBadgeText=KolInternalUnderlinedBadgeTextFc;export{InternalUnderlinedBadgeText as I,isString as i};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"InternalUnderlinedBadgeText-67c31e1b.js","mappings":";;;;;AAAA;AACA,IAAI,UAAU,GAAG,OAAO,MAAM,IAAI,QAAQ,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC;AAC3F;AACA,qBAAe,UAAU;;ACDzB;AACA,IAAI,QAAQ,GAAG,OAAO,IAAI,IAAI,QAAQ,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,IAAI,IAAI,CAAC;AACjF;AACA;AACA,IAAI,IAAI,GAAGA,YAAU,IAAI,QAAQ,IAAI,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;AAC/D;AACA,eAAe,IAAI;;ACNnB;AACA,IAAI,MAAM,GAAGC,MAAI,CAAC,MAAM,CAAC;AACzB;AACA,iBAAe,MAAM;;ACHrB;AACA,IAAIC,aAAW,GAAG,MAAM,CAAC,SAAS,CAAC;AACnC;AACA;AACA,IAAI,cAAc,GAAGA,aAAW,CAAC,cAAc,CAAC;AAChD;AACA;AACA;AACA;AACA;AACA;AACA,IAAIC,sBAAoB,GAAGD,aAAW,CAAC,QAAQ,CAAC;AAChD;AACA;AACA,IAAIE,gBAAc,GAAGC,QAAM,GAAGA,QAAM,CAAC,WAAW,GAAG,SAAS,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,SAAS,CAAC,KAAK,EAAE;AAC1B,EAAE,IAAI,KAAK,GAAG,cAAc,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KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;KAClD;IACD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB,SAAS,GAAG,iBAAiB,CAAC,WAAW,EAAE,CAAC;QAC5C,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;KAClD;IACD,QACC;QACE,KAAK;QACL,IAAI,CAAC,MAAM,IACX;YACC,aAAI,SAAS,CAAK;YACjB,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAC3B,IACA,IAAI,CACN,EACF;AACH,CAAC,CAAC;AAEF,oCAAe,gCAAgC;;;;","names":["freeGlobal","root","objectProto","nativeObjectToString","symToStringTag","Symbol","isArray"],"sources":["../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.js","src/functional-components/InternalUnderlinedBadgeText/InternalUnderlinedBadgeText.tsx"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nexport default freeGlobal;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nexport default root;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nexport default Symbol;\n","import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nexport default getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nexport default objectToString;\n","import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nexport default baseGetTag;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nexport default isObjectLike;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nexport default isArray;\n","import baseGetTag from './_baseGetTag.js';\nimport isArray from './isArray.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nexport default isString;\n","import { Fragment, h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { BadgeTextPropType } from '../../schema';\n\ntype InternalUnderlinedBadgeTextProps = {\n\tbadgeText: BadgeTextPropType;\n\tlabel: string;\n};\n\nconst KolInternalUnderlinedBadgeTextFc: FC<InternalUnderlinedBadgeTextProps> = ({ badgeText, label }) => {\n\t/* Prefer capitalization as defined in the badge Text, try uppercase/lowercase when there's no match. */\n\tconst badgeTextAsString: string = badgeText;\n\tlet [first, ...rest] = label.split(badgeTextAsString);\n\tif (rest.length === 0) {\n\t\tbadgeText = badgeTextAsString.toUpperCase();\n\t\t[first, ...rest] = label.split(badgeTextAsString);\n\t}\n\tif (rest.length === 0) {\n\t\tbadgeText = badgeTextAsString.toLowerCase();\n\t\t[first, ...rest] = label.split(badgeTextAsString);\n\t}\n\treturn (\n\t\t<>\n\t\t\t{first}\n\t\t\t{rest.length ? (\n\t\t\t\t<>\n\t\t\t\t\t<u>{badgeText}</u>\n\t\t\t\t\t{rest.join(badgeTextAsString)}\n\t\t\t\t</>\n\t\t\t) : null}\n\t\t</>\n\t);\n};\n\nexport default KolInternalUnderlinedBadgeTextFc;\n"],"version":3}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
3
|
-
*/
|
4
|
-
import{_ as o}from"./tslib.es6-1173d062.js";import{h as l,F as a}from"./index-99a79ec9.js";import{c as e}from"./clsx-09a06a12.js";import{t as n}from"./i18n-efbafc80.js";import{d as i,a as c}from"./component-names-60d77143.js";import{K as s}from"./Heading-485868a9.js";const t=({ariaLabel:o,icon:e})=>l(a,null,l("span",{class:"visually-hidden"},o),l(i,{class:"kol-alert__heading-icon",_label:"",_icons:e})),r=({type:a,label:o})=>{switch(a){case"error":return l(t,{ariaLabel:n("kol-error"),icon:"codicon codicon-error",label:o});case"info":return l(t,{ariaLabel:n("kol-info"),icon:"codicon codicon-info",label:o});case"warning":return l(t,{ariaLabel:n("kol-warning"),icon:"codicon codicon-warning",label:o});case"success":return l(t,{ariaLabel:n("kol-success"),icon:"codicon codicon-pass",label:o});default:return l(t,{ariaLabel:n("kol-message"),icon:"codicon codicon-comment",label:o})}},d=r,v=(a,i)=>{var t,r;const{class:v={},type:u="default",variant:b="msg",label:m,hasCloser:_,alert:k,onAlertTimeout:g,onCloserClick:p,level:f}=a,h=o(a,["class","type","variant","label","hasCloser","alert","onAlertTimeout","onCloserClick","level"]);k&&((null===(t=navigator.userActivation)||void 0===t?void 0:t.hasBeenActive)&&(null===(r=null===navigator||void 0===navigator?void 0:navigator.vibrate)||void 0===r||r.call(navigator,[100,75,100,75,100])),setTimeout((()=>{null==g||g()}),1e4));const j=Object.assign({class:e("kol-alert",`kol-alert--${u}`,`kol-alert--${b}`,{"kol-alert--hasCloser":!!_},v),role:k?"alert":void 0},h);return l("div",Object.assign({},j),l("div",{class:"kol-alert__container"},l(d,{label:m,type:u}),l("div",{class:"kol-alert__container-content"},m?l(s,{class:"kol-alert__heading",level:f},m):null,"msg"===b&&l("div",{class:"kol-alert__content"},i)),_&&l(c,{class:"kol-alert__close-button close","data-testid":"alert-close-button",_ariaDescription:(null==m?void 0:m.trim())||"",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:n("kol-close-alert"),_on:{onClick:p},_tooltipAlign:"left"})),"card"===b&&l("div",{class:"kol-alert__content"},i))},u=v;export{u as K};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["Icon","ariaLabel","icon","h","Fragment","class","KolIconTag","_label","_icons","AlertIcon","type","label","translate","AlertIcon$1","KolAlertFc","props","children","classNames","variant","hasCloser","alert","onAlertTimeout","onCloserClick","level","other","__rest","_a","navigator","userActivation","hasBeenActive","_b","vibrate","call","setTimeout","rootProps","Object","assign","clsx","role","undefined","KolHeadingFc","KolButtonWcTag","_ariaDescription","trim","_hideLabel","left","_on","onClick","_tooltipAlign","KolAlertFc$1"],"sources":["src/functional-components/AlertIcon/AlertIcon.tsx","src/functional-components/Alert/Alert.tsx"],"sourcesContent":["import { Fragment, type FunctionalComponent as FC, h } from '@stencil/core';\nimport { KolIconTag } from '../../core/component-names';\nimport type { AlertType } from '../../schema';\nimport { translate } from '../../i18n';\n\n/**\n * The icon uses a visually-hidden span instead of an aria-label because the Alert might be referenced as content for aria-describedby.\n * In this scenario, Firefox with NVDA does not properly read the aria-label, so the visually-hidden span ensures correct screen reader behavior.\n * @see https://github.com/public-ui/kolibri/issues/7119\n */\nconst Icon: FC<{ ariaLabel: string; icon: string; label?: string }> = ({ ariaLabel, icon }) => {\n\treturn (\n\t\t<>\n\t\t\t<span class=\"visually-hidden\">{ariaLabel}</span>\n\t\t\t<KolIconTag class=\"kol-alert__heading-icon\" _label=\"\" _icons={icon} />\n\t\t</>\n\t);\n};\n\nconst AlertIcon: FC<{ label?: string; type?: AlertType }> = ({ type, label }) => {\n\tswitch (type) {\n\t\tcase 'error':\n\t\t\treturn <Icon ariaLabel={translate('kol-error')} icon=\"codicon codicon-error\" label={label} />;\n\t\tcase 'info':\n\t\t\treturn <Icon ariaLabel={translate('kol-info')} icon=\"codicon codicon-info\" label={label} />;\n\t\tcase 'warning':\n\t\t\treturn <Icon ariaLabel={translate('kol-warning')} icon=\"codicon codicon-warning\" label={label} />;\n\t\tcase 'success':\n\t\t\treturn <Icon ariaLabel={translate('kol-success')} icon=\"codicon codicon-pass\" label={label} />;\n\t\tdefault:\n\t\t\treturn <Icon ariaLabel={translate('kol-message')} icon=\"codicon codicon-comment\" label={label} />;\n\t}\n};\n\nexport default AlertIcon;\n","import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\n\nimport { type InternalAlertProps } from '../../schema';\nimport { translate } from '../../i18n';\nimport { KolButtonWcTag } from '../../core/component-names';\n\nimport AlertIcon from '../AlertIcon';\nimport KolHeadingFc from '../Heading';\n\nexport type KolAlertFcProps = JSXBase.HTMLAttributes<HTMLDivElement> &\n\tPartial<Omit<InternalAlertProps, 'on'>> & {\n\t\tonCloserClick?: () => void;\n\t\tonAlertTimeout?: () => void;\n\t};\n\nconst KolAlertFc: FC<KolAlertFcProps> = (props, children) => {\n\tconst { class: classNames = {}, type = 'default', variant = 'msg', label, hasCloser, alert, onAlertTimeout, onCloserClick, level, ...other } = props;\n\n\tif (alert) {\n\t\t/**\n\t\t * - https://developer.mozilla.org/de/docs/Web/API/Navigator/vibrate\n\t\t * - https://googlechrome.github.io/samples/vibration/\n\t\t * - Ongoing discussion: https://github.com/public-ui/kolibri/issues/7191\n\t\t * @todo Move side-effect out of render-function to avoid multiple incarnations.\n\t\t */\n\t\tif (navigator.userActivation?.hasBeenActive) {\n\t\t\tnavigator?.vibrate?.([100, 75, 100, 75, 100]);\n\t\t}\n\n\t\tsetTimeout(() => {\n\t\t\tonAlertTimeout?.();\n\t\t}, 10000);\n\t}\n\n\tconst rootProps: Partial<JSXBase.HTMLAttributes<HTMLDivElement>> = {\n\t\tclass: clsx('kol-alert', `kol-alert--${type}`, `kol-alert--${variant}`, { 'kol-alert--hasCloser': !!hasCloser }, classNames),\n\t\trole: alert ? 'alert' : undefined,\n\t\t...other,\n\t};\n\n\treturn (\n\t\t<div {...rootProps}>\n\t\t\t<div class=\"kol-alert__container\">\n\t\t\t\t<AlertIcon label={label} type={type} />\n\t\t\t\t<div class=\"kol-alert__container-content\">\n\t\t\t\t\t{label ? (\n\t\t\t\t\t\t<KolHeadingFc class=\"kol-alert__heading\" level={level}>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</KolHeadingFc>\n\t\t\t\t\t) : null}\n\t\t\t\t\t{variant === 'msg' && <div class=\"kol-alert__content\">{children}</div>}\n\t\t\t\t</div>\n\t\t\t\t{hasCloser && (\n\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\tclass=\"kol-alert__close-button close\"\n\t\t\t\t\t\tdata-testid=\"alert-close-button\"\n\t\t\t\t\t\t_ariaDescription={label?.trim() || ''}\n\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t_icons={{\n\t\t\t\t\t\t\tleft: {\n\t\t\t\t\t\t\t\ticon: 'codicon codicon-close',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}}\n\t\t\t\t\t\t_label={translate('kol-close-alert')}\n\t\t\t\t\t\t_on={{ onClick: onCloserClick }}\n\t\t\t\t\t\t_tooltipAlign=\"left\"\n\t\t\t\t\t></KolButtonWcTag>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t\t{variant === 'card' && <div class=\"kol-alert__content\">{children}</div>}\n\t\t</div>\n\t);\n};\n\nexport default KolAlertFc;\n"],"mappings":";;;4QAUA,MAAMA,EAAgE,EAAGC,YAAWC,UAElFC,EAAAC,EAAA,KACCD,EAAA,QAAME,MAAM,mBAAmBJ,GAC/BE,EAACG,EAAU,CAACD,MAAM,0BAA0BE,OAAO,GAAGC,OAAQN,KAKjE,MAAMO,EAAsD,EAAGC,OAAMC,YACpE,OAAQD,GACP,IAAK,QACJ,OAAOP,EAACH,EAAI,CAACC,UAAWW,EAAU,aAAcV,KAAK,wBAAwBS,MAAOA,IACrF,IAAK,OACJ,OAAOR,EAACH,EAAI,CAACC,UAAWW,EAAU,YAAaV,KAAK,uBAAuBS,MAAOA,IACnF,IAAK,UACJ,OAAOR,EAACH,EAAI,CAACC,UAAWW,EAAU,eAAgBV,KAAK,0BAA0BS,MAAOA,IACzF,IAAK,UACJ,OAAOR,EAACH,EAAI,CAACC,UAAWW,EAAU,eAAgBV,KAAK,uBAAuBS,MAAOA,IACtF,QACC,OAAOR,EAACH,EAAI,CAACC,UAAWW,EAAU,eAAgBV,KAAK,0BAA0BS,MAAOA,I,EAI3F,MAAAE,EAAeJ,ECjBf,MAAMK,EAAkC,CAACC,EAAOC,K,QAC/C,MAAQX,MAAOY,EAAa,GAAEP,KAAEA,EAAO,UAASQ,QAAEA,EAAU,MAAKP,MAAEA,EAAKQ,UAAEA,EAASC,MAAEA,EAAKC,eAAEA,EAAcC,cAAEA,EAAaC,MAAEA,GAAoBR,EAAVS,EAAKC,EAAKV,EAAzI,iGAEN,GAAIK,EAAO,CAOV,IAAIM,EAAAC,UAAUC,kBAAc,MAAAF,SAAA,SAAAA,EAAEG,cAAe,EAC5CC,EAAAH,YAAS,MAATA,iBAAS,SAATA,UAAWI,WAAO,MAAAD,SAAA,SAAAA,EAAAE,KAAAL,UAAG,CAAC,IAAK,GAAI,IAAK,GAAI,K,CAGzCM,YAAW,KACVZ,IAAc,MAAdA,SAAc,SAAdA,GAAkB,GAChB,I,CAGJ,MAAMa,EAASC,OAAAC,OAAA,CACd/B,MAAOgC,EAAK,YAAa,cAAc3B,IAAQ,cAAcQ,IAAW,CAAE,yBAA0BC,GAAaF,GACjHqB,KAAMlB,EAAQ,QAAUmB,WACrBf,GAGJ,OACCrB,EAAA,MAAAgC,OAAAC,OAAA,GAASF,GACR/B,EAAA,OAAKE,MAAM,wBACVF,EAACM,EAAS,CAACE,MAAOA,EAAOD,KAAMA,IAC/BP,EAAA,OAAKE,MAAM,gCACTM,EACAR,EAACqC,EAAY,CAACnC,MAAM,qBAAqBkB,MAAOA,GAC9CZ,GAEC,KACHO,IAAY,OAASf,EAAA,OAAKE,MAAM,sBAAsBW,IAEvDG,GACAhB,EAACsC,EAAc,CACdpC,MAAM,gCAA+B,cACzB,qBACZqC,kBAAkB/B,IAAK,MAALA,SAAK,SAALA,EAAOgC,SAAU,GACnCC,WAAU,KACVpC,OAAQ,CACPqC,KAAM,CACL3C,KAAM,0BAGRK,OAAQK,EAAU,mBAClBkC,IAAK,CAAEC,QAASzB,GAChB0B,cAAc,UAIhB9B,IAAY,QAAUf,EAAA,OAAKE,MAAM,sBAAsBW,GACnD,EAIR,MAAAiC,EAAenC,S","ignoreList":[]}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
3
|
-
*/
|
4
|
-
import{h as o}from"./index-99a79ec9.js";import{d as s}from"./component-names-60d77143.js";import{t as n}from"./i18n-efbafc80.js";import{c as e}from"./clsx-09a06a12.js";const t=o=>{var s;const n="error"===(null===(s=o._msg)||void 0===s?void 0:s._type)&&!0===o._touched,e="string"==typeof o._hint&&o._hint.length>0,i=[];return!0===n&&i.push(`${o._id}-error`),!0===e&&i.push(`${o._id}-hint`),{hasMsg:n,hasHint:e,ariaDescribedBy:i}},i=({onClick:e,disabled:i})=>o("button",{tabindex:"-1",class:"kol-custom-suggestions-toggle",onClick:e,disabled:i},o(s,{_icons:"codicon codicon-triangle-down",_label:n("kol-dropdown")})),c=i,r=({index:s,ref:n,selected:e,onClick:i,onMouseOver:t,onFocus:r,onKeyDown:a,option:c})=>o("li",{id:`option-${s}`,key:`-${s}`,ref:n,"data-index":s,tabIndex:-1,role:"option","aria-selected":e?"true":void 0,onClick:i,onMouseOver:t,onFocus:r,class:"kol-custom-suggestions-option",onKeyDown:a},c),a=r,l=({blockSuggestionMouseOver:s,onKeyDown:n},i)=>o("ul",{role:"listbox",class:e("kol-custom-suggestions-options-group",{"kol-custom-suggestions-options-group--cursor-hidden":s}),onKeyDown:n},i),d=l;export{c as C,d as a,a as b,t as g};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["getRenderStates","state","isMessageValid","_a","_msg","_type","hasMsg","_touched","hasHint","_hint","length","ariaDescribedBy","push","_id","CustomSuggestionsToggleFc","onClick","disabled","h","tabindex","class","KolIconTag","_icons","_label","translate","CustomSuggestionsToggleFc$1","CustomSuggestionsOptionFc","index","ref","selected","onMouseOver","onFocus","onKeyDown","option","id","key","tabIndex","role","undefined","CustomSuggestionsOptionFc$1","CustomSuggestionsOptionsGroupFc","blockSuggestionMouseOver","children","clsx","CustomSuggestionsOptionsGroupFc$1"],"sources":["src/components/input/controller.ts","src/functional-components/CustomSuggestionsToggle/CustomSuggestionsToggle.tsx","src/functional-components/CustomSuggestionsOption/CustomSuggestionsOption.tsx","src/functional-components/CustomSuggestionsOptionsGroup/CustomSuggestionsOptionsGroup.tsx"],"sourcesContent":["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\thasMsg: boolean;\n\thasHint: boolean;\n\tariaDescribedBy: string[];\n} => {\n\tconst isMessageValid = state._msg?._type === 'error';\n\tconst hasMsg = isMessageValid && state._touched === true;\n\tconst hasHint = typeof state._hint === 'string' && state._hint.length > 0;\n\n\tconst ariaDescribedBy: string[] = [];\n\tif (hasMsg === 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 { hasMsg, hasHint, ariaDescribedBy };\n};\n","import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport { KolIconTag } from '../../core/component-names';\nimport { translate } from '../../i18n';\nimport type { JSXBase } from '@stencil/core/internal';\n\nexport type CustomSuggestionsToggleProps = JSXBase.HTMLAttributes<HTMLButtonElement> & { disabled?: boolean };\n\nconst CustomSuggestionsToggleFc: FC<CustomSuggestionsToggleProps> = ({ onClick, disabled }) => {\n\treturn (\n\t\t<button tabindex=\"-1\" class=\"kol-custom-suggestions-toggle\" onClick={onClick} disabled={disabled}>\n\t\t\t<KolIconTag _icons=\"codicon codicon-triangle-down\" _label={translate('kol-dropdown')} />\n\t\t</button>\n\t);\n};\nexport default CustomSuggestionsToggleFc;\n","import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport type { W3CInputValue } from '../../schema';\n\nexport type CustomSuggestionsProps = JSXBase.HTMLAttributes<HTMLLIElement> & {\n\tindex: number;\n\toption: W3CInputValue;\n\tselected: boolean;\n\tref?: ((elm?: HTMLLIElement | undefined) => void) | undefined;\n};\n\nconst CustomSuggestionsOptionFc: FC<CustomSuggestionsProps> = ({ index, ref, selected, onClick, onMouseOver, onFocus, onKeyDown, option }) => {\n\treturn (\n\t\t<li\n\t\t\tid={`option-${index}`}\n\t\t\tkey={`-${index}`}\n\t\t\tref={ref}\n\t\t\tdata-index={index}\n\t\t\ttabIndex={-1}\n\t\t\trole=\"option\"\n\t\t\taria-selected={selected ? 'true' : undefined}\n\t\t\tonClick={onClick}\n\t\t\tonMouseOver={onMouseOver}\n\t\t\tonFocus={onFocus}\n\t\t\tclass=\"kol-custom-suggestions-option\"\n\t\t\tonKeyDown={onKeyDown}\n\t\t>\n\t\t\t{option}\n\t\t</li>\n\t);\n};\nexport default CustomSuggestionsOptionFc;\n","import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\n\nexport type CustomSuggestionsOptionsGroupProps = JSXBase.HTMLAttributes<HTMLUListElement> & {\n\tblockSuggestionMouseOver: boolean;\n};\n\nconst CustomSuggestionsOptionsGroupFc: FC<CustomSuggestionsOptionsGroupProps> = ({ blockSuggestionMouseOver, onKeyDown }, children) => {\n\treturn (\n\t\t<ul\n\t\t\trole=\"listbox\"\n\t\t\tclass={clsx('kol-custom-suggestions-options-group', {\n\t\t\t\t'kol-custom-suggestions-options-group--cursor-hidden': blockSuggestionMouseOver,\n\t\t\t})}\n\t\t\tonKeyDown={onKeyDown}\n\t\t>\n\t\t\t{children}\n\t\t</ul>\n\t);\n};\nexport default CustomSuggestionsOptionsGroupFc;\n"],"mappings":";;;8KASaA,EAAmBC,I,MAU/B,MAAMC,IAAiBC,EAAAF,EAAMG,QAAI,MAAAD,SAAA,SAAAA,EAAEE,SAAU,QAC7C,MAAMC,EAASJ,GAAkBD,EAAMM,WAAa,KACpD,MAAMC,SAAiBP,EAAMQ,QAAU,UAAYR,EAAMQ,MAAMC,OAAS,EAExE,MAAMC,EAA4B,GAClC,GAAIL,IAAW,KAAM,CACpBK,EAAgBC,KAAK,GAAGX,EAAMY,Y,CAE/B,GAAIL,IAAY,KAAM,CACrBG,EAAgBC,KAAK,GAAGX,EAAMY,W,CAE/B,MAAO,CAAEP,SAAQE,UAASG,kBAAiB,ECvB5C,MAAMG,EAA8D,EAAGC,UAASC,cAE9EC,EAAA,UAAQC,SAAS,KAAKC,MAAM,gCAAgCJ,QAASA,EAASC,SAAUA,GACvFC,EAACG,EAAU,CAACC,OAAO,gCAAgCC,OAAQC,EAAU,mBAIxE,MAAAC,EAAeV,ECHf,MAAMW,EAAwD,EAAGC,QAAOC,MAAKC,WAAUb,UAASc,cAAaC,UAASC,YAAWC,YAE/Hf,EAAA,MACCgB,GAAI,UAAUP,IACdQ,IAAK,IAAIR,IACTC,IAAKA,EAAG,aACID,EACZS,UAAW,EACXC,KAAK,SAAQ,gBACER,EAAW,OAASS,UACnCtB,QAASA,EACTc,YAAaA,EACbC,QAASA,EACTX,MAAM,gCACNY,UAAWA,GAEVC,GAIJ,MAAAM,EAAeb,ECvBf,MAAMc,EAA0E,EAAGC,2BAA0BT,aAAaU,IAExHxB,EAAA,MACCmB,KAAK,UACLjB,MAAOuB,EAAK,uCAAwC,CACnD,sDAAuDF,IAExDT,UAAWA,GAEVU,GAIJ,MAAAE,EAAeJ,S","ignoreList":[]}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
3
|
-
*/
|
4
|
-
import{h as s}from"./index-99a79ec9.js";import{d as o}from"./component-names-60d77143.js";const n=n=>{const{class:c,style:e,icons:l,label:a,onClick:t}=n;return s(o,{class:c,style:e,onClick:t,_icons:l,_label:a})},c=n;export{c as K};
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
3
|
-
*/
|
4
|
-
import{h as e,F as n}from"./index-99a79ec9.js";var t="object"==typeof global&&global&&global.Object===Object&&global;const r=t;var l="object"==typeof self&&self&&self.Object===Object&&self,o=r||l||Function("return this")();const a=o;var c=a.Symbol;const u=c;var f=Object.prototype,i=f.hasOwnProperty,s=f.toString,b=u?u.toStringTag:void 0;function v(t){var e=i.call(t,b),n=t[b];try{t[b]=void 0;var o=!0}catch(t){}var r=s.call(t);return o&&(e?t[b]=n:delete t[b]),r}var d=Object.prototype,j=d.toString;function g(t){return j.call(t)}var p="[object Null]",y="[object Undefined]",O=u?u.toStringTag:void 0;function x(t){return null==t?void 0===t?y:p:O&&O in Object(t)?v(t):g(t)}function h(t){return null!=t&&"object"==typeof t}var m=Array.isArray;const F=m;var A="[object String]";function I(t){return"string"==typeof t||!F(t)&&h(t)&&x(t)==A}const N=({badgeText:t,label:o})=>{const r=t;let[l,...a]=o.split(r);return 0===a.length&&(t=r.toUpperCase(),[l,...a]=o.split(r)),0===a.length&&(t=r.toLowerCase(),[l,...a]=o.split(r)),e(n,null,l,a.length?e(n,null,e("u",null,t),a.join(r)):null)},S=N;export{S as I,I as i};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["freeGlobal","global","Object","freeGlobal$1","freeSelf","self","root","Function","root$1","Symbol","Symbol$1","objectProto","prototype","hasOwnProperty","nativeObjectToString","toString","symToStringTag","toStringTag","undefined","getRawTag","value","isOwn","call","tag","unmasked","e","result","objectToString","nullTag","undefinedTag","baseGetTag","isObjectLike","isArray","Array","isArray$1","stringTag","isString","KolInternalUnderlinedBadgeTextFc","badgeText","label","badgeTextAsString","first","rest","split","length","toUpperCase","toLowerCase","h","Fragment","join","InternalUnderlinedBadgeText"],"sources":["../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.js","src/functional-components/InternalUnderlinedBadgeText/InternalUnderlinedBadgeText.tsx"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nexport default freeGlobal;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nexport default root;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nexport default Symbol;\n","import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nexport default getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nexport default objectToString;\n","import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nexport default baseGetTag;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nexport default isObjectLike;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nexport default isArray;\n","import baseGetTag from './_baseGetTag.js';\nimport isArray from './isArray.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nexport default isString;\n","import { Fragment, h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { BadgeTextPropType } from '../../schema';\n\ntype InternalUnderlinedBadgeTextProps = {\n\tbadgeText: BadgeTextPropType;\n\tlabel: string;\n};\n\nconst KolInternalUnderlinedBadgeTextFc: FC<InternalUnderlinedBadgeTextProps> = ({ badgeText, label }) => {\n\t/* Prefer capitalization as defined in the badge Text, try uppercase/lowercase when there's no match. */\n\tconst badgeTextAsString: string = badgeText;\n\tlet [first, ...rest] = label.split(badgeTextAsString);\n\tif (rest.length === 0) {\n\t\tbadgeText = badgeTextAsString.toUpperCase();\n\t\t[first, ...rest] = label.split(badgeTextAsString);\n\t}\n\tif (rest.length === 0) {\n\t\tbadgeText = badgeTextAsString.toLowerCase();\n\t\t[first, ...rest] = label.split(badgeTextAsString);\n\t}\n\treturn (\n\t\t<>\n\t\t\t{first}\n\t\t\t{rest.length ? (\n\t\t\t\t<>\n\t\t\t\t\t<u>{badgeText}</u>\n\t\t\t\t\t{rest.join(badgeTextAsString)}\n\t\t\t\t</>\n\t\t\t) : null}\n\t\t</>\n\t);\n};\n\nexport default KolInternalUnderlinedBadgeTextFc;\n"],"mappings":";;;+CACA,IAAIA,SAAoBC,QAAU,UAAYA,QAAUA,OAAOC,SAAWA,QAAUD,OAEpF,MAAAE,EAAeH,EC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