@public-ui/components 3.0.2-ab502d4896d9763f93bb8cce1b07a1b2f8d04439.0 → 3.0.2-d721ede5369345abe032367b7d05a7c5a20dca9b.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/README.md +58 -8
- package/custom-elements.json +29 -1
- package/dist/cjs/Alert-733f9c9a.js +4 -0
- package/dist/cjs/Alert-733f9c9a.js.map +1 -0
- package/dist/cjs/{Collapsible-a3348b65.js → Collapsible-39f04392.js} +1 -1
- package/dist/cjs/{Collapsible-a3348b65.js.map → Collapsible-39f04392.js.map} +1 -1
- package/dist/cjs/CustomSuggestionsOptionsGroup-e1b3d59a.js +4 -0
- package/dist/cjs/CustomSuggestionsOptionsGroup-e1b3d59a.js.map +1 -0
- package/dist/cjs/{FieldControlStateWrapper-275c5fe3.js → FieldControlStateWrapper-55e9f29c.js} +1 -1
- package/dist/cjs/{FieldControlStateWrapper-275c5fe3.js.map → FieldControlStateWrapper-55e9f29c.js.map} +1 -1
- package/dist/cjs/{Heading-831f5344.js → Heading-8b4da934.js} +1 -1
- package/dist/cjs/{Heading-831f5344.js.map → Heading-8b4da934.js.map} +1 -1
- package/dist/cjs/Icon-b5637598.js +4 -0
- package/dist/cjs/{Icon-0bb5c729.js.map → Icon-b5637598.js.map} +1 -1
- package/dist/cjs/{Input-68e72472.js → Input-0e3fa3e7.js} +1 -1
- package/dist/cjs/{Input-68e72472.js.map → Input-0e3fa3e7.js.map} +1 -1
- package/dist/cjs/{InputStateWrapper-8261610e.js → InputStateWrapper-dabd1632.js} +1 -1
- package/dist/cjs/{InputStateWrapper-8261610e.js.map → InputStateWrapper-dabd1632.js.map} +1 -1
- package/dist/cjs/{InternalUnderlinedBadgeText-1bc154d6.js → InternalUnderlinedBadgeText-930eede9.js} +1 -1
- package/dist/cjs/{InternalUnderlinedBadgeText-1bc154d6.js.map → InternalUnderlinedBadgeText-930eede9.js.map} +1 -1
- package/dist/cjs/{Span-075a6839.js → Span-256e06ce.js} +1 -1
- package/dist/cjs/{Span-075a6839.js.map → Span-256e06ce.js.map} +1 -1
- package/dist/cjs/{app-globals-b81e81b4.js → app-globals-c9c91a91.js} +1 -1
- package/dist/cjs/{app-globals-b81e81b4.js.map → app-globals-c9c91a91.js.map} +1 -1
- package/dist/cjs/{controller-4ed7f7a2.js → controller-470f6fe7.js} +1 -1
- package/dist/cjs/{controller-4ed7f7a2.js.map → controller-470f6fe7.js.map} +1 -1
- package/dist/cjs/{controller-dd97ea50.js → controller-9911e89c.js} +1 -1
- package/dist/cjs/{controller-dd97ea50.js.map → controller-9911e89c.js.map} +1 -1
- package/dist/cjs/{controller-9d924d4c.js → controller-c2619bc8.js} +1 -1
- package/dist/cjs/{controller-9d924d4c.js.map → controller-c2619bc8.js.map} +1 -1
- package/dist/cjs/{controller-icon-254c03cc.js → controller-icon-03cf1054.js} +1 -1
- package/dist/cjs/{controller-icon-254c03cc.js.map → controller-icon-03cf1054.js.map} +1 -1
- package/dist/cjs/{dev.utils-cdb40099.js → dev.utils-71d7b5ae.js} +1 -1
- package/dist/cjs/{dev.utils-cdb40099.js.map → dev.utils-71d7b5ae.js.map} +1 -1
- package/dist/cjs/{devtools-1b1530aa.js → devtools-23be223d.js} +1 -1
- package/dist/cjs/{devtools-1b1530aa.js.map → devtools-23be223d.js.map} +1 -1
- package/dist/cjs/{getRenderStates-73bb848b.js → getRenderStates-e7566e7e.js} +1 -1
- package/dist/cjs/{getRenderStates-73bb848b.js.map → getRenderStates-e7566e7e.js.map} +1 -1
- package/dist/cjs/{index-3a8217e6.js → index-8c157970.js} +1 -1
- package/dist/cjs/{index-3a8217e6.js.map → index-8c157970.js.map} +1 -1
- 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-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-breadcrumb.cjs.entry.js +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.cjs.entry.js +1 -1
- package/dist/cjs/kol-card-wc.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-heading.cjs.entry.js +1 -1
- package/dist/cjs/kol-icon.cjs.entry.js +1 -1
- package/dist/cjs/kol-image.cjs.entry.js +1 -1
- package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
- package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
- package/dist/cjs/kol-input-text.cjs.entry.js +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.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.cjs.entry.js +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-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-split-button.cjs.entry.js.map +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-stateless-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-table-stateless.cjs.entry.js +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-toast-container.cjs.entry.js +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-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/kol-alert-wc.js +1 -1
- package/dist/components/kol-alert-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-image.js +1 -1
- package/dist/components/kol-image.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-split-button.js +1 -1
- package/dist/components/kol-split-button.js.map +1 -1
- package/dist/esm/Alert-bea534f9.js +4 -0
- package/dist/esm/Alert-bea534f9.js.map +1 -0
- package/dist/esm/{Collapsible-eb5f8bf7.js → Collapsible-1510d0ad.js} +1 -1
- package/dist/esm/{Collapsible-eb5f8bf7.js.map → Collapsible-1510d0ad.js.map} +1 -1
- package/dist/esm/CustomSuggestionsOptionsGroup-ecfb3933.js +4 -0
- package/dist/esm/CustomSuggestionsOptionsGroup-ecfb3933.js.map +1 -0
- package/dist/esm/{FieldControlStateWrapper-f0050c71.js → FieldControlStateWrapper-78f71063.js} +1 -1
- package/dist/esm/{FieldControlStateWrapper-f0050c71.js.map → FieldControlStateWrapper-78f71063.js.map} +1 -1
- package/dist/esm/{Heading-1e98210c.js → Heading-0a6e428a.js} +1 -1
- package/dist/esm/{Heading-1e98210c.js.map → Heading-0a6e428a.js.map} +1 -1
- package/dist/esm/{Icon-34fc4368.js → Icon-5ed61d01.js} +1 -1
- package/dist/esm/{Icon-34fc4368.js.map → Icon-5ed61d01.js.map} +1 -1
- package/dist/esm/{Input-0929c3c6.js → Input-c1657cf4.js} +1 -1
- package/dist/esm/{Input-0929c3c6.js.map → Input-c1657cf4.js.map} +1 -1
- package/dist/esm/{InputStateWrapper-fa236825.js → InputStateWrapper-54e926f1.js} +1 -1
- package/dist/esm/{InputStateWrapper-fa236825.js.map → InputStateWrapper-54e926f1.js.map} +1 -1
- package/dist/esm/{InternalUnderlinedBadgeText-ca1489f7.js → InternalUnderlinedBadgeText-1f0b9da7.js} +1 -1
- package/dist/esm/{InternalUnderlinedBadgeText-ca1489f7.js.map → InternalUnderlinedBadgeText-1f0b9da7.js.map} +1 -1
- package/dist/esm/{Span-34b71ebc.js → Span-4dcea6ad.js} +1 -1
- package/dist/esm/{Span-34b71ebc.js.map → Span-4dcea6ad.js.map} +1 -1
- package/dist/esm/{app-globals-4392aff3.js → app-globals-7bc87cc4.js} +1 -1
- package/dist/esm/{app-globals-4392aff3.js.map → app-globals-7bc87cc4.js.map} +1 -1
- package/dist/esm/{controller-374b61ec.js → controller-09fe6dc6.js} +1 -1
- package/dist/esm/{controller-374b61ec.js.map → controller-09fe6dc6.js.map} +1 -1
- package/dist/esm/{controller-83424231.js → controller-bcc5eeef.js} +1 -1
- package/dist/esm/{controller-83424231.js.map → controller-bcc5eeef.js.map} +1 -1
- package/dist/esm/{controller-69d06fa0.js → controller-be61e935.js} +1 -1
- package/dist/esm/{controller-69d06fa0.js.map → controller-be61e935.js.map} +1 -1
- package/dist/esm/{controller-icon-256a4f31.js → controller-icon-64049794.js} +1 -1
- package/dist/esm/{controller-icon-256a4f31.js.map → controller-icon-64049794.js.map} +1 -1
- package/dist/esm/{dev.utils-7b2d1fa9.js → dev.utils-2d90fdc8.js} +1 -1
- package/dist/esm/{dev.utils-7b2d1fa9.js.map → dev.utils-2d90fdc8.js.map} +1 -1
- package/dist/esm/{devtools-a09bf7e7.js → devtools-d59f3183.js} +1 -1
- package/dist/esm/{devtools-a09bf7e7.js.map → devtools-d59f3183.js.map} +1 -1
- package/dist/esm/{getRenderStates-67595fa6.js → getRenderStates-d255cc7a.js} +1 -1
- package/dist/esm/{getRenderStates-67595fa6.js.map → getRenderStates-d255cc7a.js.map} +1 -1
- package/dist/esm/{index-1704c42b.js → index-4d380356.js} +1 -1
- package/dist/esm/{index-1704c42b.js.map → index-4d380356.js.map} +1 -1
- 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-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-breadcrumb.entry.js +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.entry.js +1 -1
- package/dist/esm/kol-card-wc.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-heading.entry.js +1 -1
- package/dist/esm/kol-icon.entry.js +1 -1
- package/dist/esm/kol-image.entry.js +1 -1
- package/dist/esm/kol-image.entry.js.map +1 -1
- package/dist/esm/kol-input-checkbox.entry.js +1 -1
- package/dist/esm/kol-input-color.entry.js +1 -1
- package/dist/esm/kol-input-date.entry.js +1 -1
- package/dist/esm/kol-input-email.entry.js +1 -1
- package/dist/esm/kol-input-file.entry.js +1 -1
- package/dist/esm/kol-input-number.entry.js +1 -1
- package/dist/esm/kol-input-password.entry.js +1 -1
- package/dist/esm/kol-input-radio.entry.js +1 -1
- package/dist/esm/kol-input-range.entry.js +1 -1
- package/dist/esm/kol-input-text.entry.js +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.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.entry.js +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-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-split-button.entry.js.map +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-stateless-wc.entry.js +1 -1
- package/dist/esm/kol-table-stateless.entry.js +1 -1
- package/dist/esm/kol-tabs.entry.js +1 -1
- package/dist/esm/kol-textarea.entry.js +1 -1
- package/dist/esm/kol-toast-container.entry.js +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-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-bea534f9.js +4 -0
- package/dist/kolibri/Alert-bea534f9.js.map +1 -0
- package/dist/kolibri/{Collapsible-eb5f8bf7.js → Collapsible-1510d0ad.js} +1 -1
- package/dist/kolibri/CustomSuggestionsOptionsGroup-ecfb3933.js +4 -0
- package/dist/kolibri/CustomSuggestionsOptionsGroup-ecfb3933.js.map +1 -0
- package/dist/kolibri/{FieldControlStateWrapper-f0050c71.js → FieldControlStateWrapper-78f71063.js} +1 -1
- package/dist/kolibri/{Heading-1e98210c.js → Heading-0a6e428a.js} +1 -1
- package/dist/kolibri/Icon-5ed61d01.js +4 -0
- package/dist/kolibri/{Input-0929c3c6.js → Input-c1657cf4.js} +1 -1
- package/dist/kolibri/{InputStateWrapper-fa236825.js → InputStateWrapper-54e926f1.js} +1 -1
- package/dist/kolibri/{InternalUnderlinedBadgeText-ca1489f7.js → InternalUnderlinedBadgeText-1f0b9da7.js} +1 -1
- package/dist/kolibri/Span-4dcea6ad.js +4 -0
- package/dist/kolibri/{Span-34b71ebc.js.map → Span-4dcea6ad.js.map} +1 -1
- package/dist/kolibri/app-globals-7bc87cc4.js +4 -0
- package/dist/kolibri/{app-globals-4392aff3.js.map → app-globals-7bc87cc4.js.map} +1 -1
- package/dist/kolibri/controller-09fe6dc6.js +4 -0
- package/dist/kolibri/{controller-83424231.js → controller-bcc5eeef.js} +1 -1
- package/dist/kolibri/{controller-69d06fa0.js → controller-be61e935.js} +1 -1
- package/dist/kolibri/{controller-icon-256a4f31.js → controller-icon-64049794.js} +1 -1
- package/dist/kolibri/{dev.utils-7b2d1fa9.js → dev.utils-2d90fdc8.js} +1 -1
- package/dist/kolibri/{devtools-a09bf7e7.js → devtools-d59f3183.js} +1 -1
- package/dist/kolibri/{getRenderStates-67595fa6.js → getRenderStates-d255cc7a.js} +1 -1
- package/dist/kolibri/{index-1704c42b.js → index-4d380356.js} +1 -1
- package/dist/kolibri/{index-1704c42b.js.map → index-4d380356.js.map} +1 -1
- 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-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-breadcrumb.entry.js +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.entry.js +1 -1
- package/dist/kolibri/kol-card-wc.entry.js +1 -1
- package/dist/kolibri/kol-card-wc.entry.js.map +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-heading.entry.js +1 -1
- package/dist/kolibri/kol-icon.entry.js +1 -1
- package/dist/kolibri/kol-image.entry.js +1 -1
- package/dist/kolibri/kol-image.entry.js.map +1 -1
- package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
- package/dist/kolibri/kol-input-color.entry.js +1 -1
- package/dist/kolibri/kol-input-date.entry.js +1 -1
- package/dist/kolibri/kol-input-email.entry.js +1 -1
- package/dist/kolibri/kol-input-file.entry.js +1 -1
- package/dist/kolibri/kol-input-number.entry.js +1 -1
- package/dist/kolibri/kol-input-password.entry.js +1 -1
- package/dist/kolibri/kol-input-radio.entry.js +1 -1
- package/dist/kolibri/kol-input-range.entry.js +1 -1
- package/dist/kolibri/kol-input-text.entry.js +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.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.entry.js +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-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-split-button.entry.js.map +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-stateless-wc.entry.js +1 -1
- package/dist/kolibri/kol-table-stateless.entry.js +1 -1
- package/dist/kolibri/kol-tabs.entry.js +1 -1
- package/dist/kolibri/kol-textarea.entry.js +1 -1
- package/dist/kolibri/kol-toast-container.entry.js +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-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/split-button/shadow.d.ts +11 -4
- package/dist/types/components.d.ts +32 -6
- package/dist/types/functional-components/CustomSuggestionsOption/CustomSuggestionsOption.d.ts +1 -0
- package/dist/types/schema/components/image.d.ts +5 -16
- package/dist/types/schema/props/alt.d.ts +7 -0
- package/dist/types/schema/props/image-sizes.d.ts +7 -0
- package/dist/types/schema/props/image-srcset.d.ts +7 -0
- package/dist/types/schema/props/index.d.ts +1 -1
- package/dist/types/schema/props/loading.d.ts +3 -0
- package/doc/components.md +4 -4
- package/doc/split-button.md +41 -18
- package/package.json +1 -1
- package/vscode-custom-data.json +12 -0
- package/dist/cjs/Alert-b599bc66.js +0 -4
- package/dist/cjs/Alert-b599bc66.js.map +0 -1
- package/dist/cjs/CustomSuggestionsOptionsGroup-51c0ad18.js +0 -4
- package/dist/cjs/CustomSuggestionsOptionsGroup-51c0ad18.js.map +0 -1
- package/dist/cjs/Icon-0bb5c729.js +0 -4
- package/dist/esm/Alert-58253beb.js +0 -4
- package/dist/esm/Alert-58253beb.js.map +0 -1
- package/dist/esm/CustomSuggestionsOptionsGroup-14853f08.js +0 -4
- package/dist/esm/CustomSuggestionsOptionsGroup-14853f08.js.map +0 -1
- package/dist/kolibri/Alert-58253beb.js +0 -4
- package/dist/kolibri/Alert-58253beb.js.map +0 -1
- package/dist/kolibri/CustomSuggestionsOptionsGroup-14853f08.js +0 -4
- package/dist/kolibri/CustomSuggestionsOptionsGroup-14853f08.js.map +0 -1
- package/dist/kolibri/Icon-34fc4368.js +0 -4
- package/dist/kolibri/Span-34b71ebc.js +0 -4
- package/dist/kolibri/app-globals-4392aff3.js +0 -4
- package/dist/kolibri/controller-374b61ec.js +0 -4
- /package/dist/kolibri/{Collapsible-eb5f8bf7.js.map → Collapsible-1510d0ad.js.map} +0 -0
- /package/dist/kolibri/{FieldControlStateWrapper-f0050c71.js.map → FieldControlStateWrapper-78f71063.js.map} +0 -0
- /package/dist/kolibri/{Heading-1e98210c.js.map → Heading-0a6e428a.js.map} +0 -0
- /package/dist/kolibri/{Icon-34fc4368.js.map → Icon-5ed61d01.js.map} +0 -0
- /package/dist/kolibri/{Input-0929c3c6.js.map → Input-c1657cf4.js.map} +0 -0
- /package/dist/kolibri/{InputStateWrapper-fa236825.js.map → InputStateWrapper-54e926f1.js.map} +0 -0
- /package/dist/kolibri/{InternalUnderlinedBadgeText-ca1489f7.js.map → InternalUnderlinedBadgeText-1f0b9da7.js.map} +0 -0
- /package/dist/kolibri/{controller-374b61ec.js.map → controller-09fe6dc6.js.map} +0 -0
- /package/dist/kolibri/{controller-83424231.js.map → controller-bcc5eeef.js.map} +0 -0
- /package/dist/kolibri/{controller-69d06fa0.js.map → controller-be61e935.js.map} +0 -0
- /package/dist/kolibri/{controller-icon-256a4f31.js.map → controller-icon-64049794.js.map} +0 -0
- /package/dist/kolibri/{dev.utils-7b2d1fa9.js.map → dev.utils-2d90fdc8.js.map} +0 -0
- /package/dist/kolibri/{devtools-a09bf7e7.js.map → devtools-d59f3183.js.map} +0 -0
- /package/dist/kolibri/{getRenderStates-67595fa6.js.map → getRenderStates-d255cc7a.js.map} +0 -0
@@ -1,13 +1,19 @@
|
|
1
|
-
import type { AlternativeButtonLinkRolePropType, ButtonCallbacksPropType, ButtonTypePropType, ButtonVariantPropType, CustomClassPropType, IconsPropType,
|
1
|
+
import type { AccessKeyPropType, AlternativeButtonLinkRolePropType, AriaDescriptionPropType, ButtonCallbacksPropType, ButtonTypePropType, ButtonVariantPropType, CustomClassPropType, IconsPropType, LabelWithExpertSlotPropType, ShortKeyPropType, SplitButtonProps, SplitButtonStates, StencilUnknown, SyncValueBySelectorPropType, TooltipAlignPropType } from '../../schema';
|
2
2
|
import type { JSX } from '../../stencil-public-runtime';
|
3
3
|
export declare class KolSplitButton implements SplitButtonProps {
|
4
|
+
private primaryButtonWcRef?;
|
5
|
+
private readonly catchPrimaryRef;
|
6
|
+
getValue(): Promise<StencilUnknown>;
|
7
|
+
kolFocus(): Promise<void>;
|
4
8
|
private readonly clickButtonHandler;
|
5
9
|
private readonly clickToggleHandler;
|
6
10
|
private readonly toggleDropdown;
|
7
11
|
private readonly handleOnClose;
|
8
12
|
render(): JSX.Element;
|
9
13
|
closePopup(): Promise<void>;
|
14
|
+
_accessKey?: AccessKeyPropType;
|
10
15
|
_ariaControls?: string;
|
16
|
+
_ariaDescription?: AriaDescriptionPropType;
|
11
17
|
_ariaExpanded?: boolean;
|
12
18
|
_ariaSelected?: boolean;
|
13
19
|
_customClass?: CustomClassPropType;
|
@@ -15,14 +21,15 @@ export declare class KolSplitButton implements SplitButtonProps {
|
|
15
21
|
_hideLabel?: boolean;
|
16
22
|
_icons?: IconsPropType;
|
17
23
|
_id?: string;
|
18
|
-
_label:
|
19
|
-
_name?:
|
24
|
+
_label: LabelWithExpertSlotPropType;
|
25
|
+
_name?: string;
|
20
26
|
_on?: ButtonCallbacksPropType<StencilUnknown>;
|
21
27
|
_role?: AlternativeButtonLinkRolePropType;
|
28
|
+
_shortKey?: ShortKeyPropType;
|
22
29
|
_syncValueBySelector?: SyncValueBySelectorPropType;
|
23
30
|
_tooltipAlign?: TooltipAlignPropType;
|
24
31
|
_type?: ButtonTypePropType;
|
25
|
-
_value?:
|
32
|
+
_value?: StencilUnknown;
|
26
33
|
_variant?: ButtonVariantPropType;
|
27
34
|
state: SplitButtonStates;
|
28
35
|
}
|
@@ -2430,10 +2430,18 @@ export namespace Components {
|
|
2430
2430
|
"_variant"?: SpinVariantPropType;
|
2431
2431
|
}
|
2432
2432
|
interface KolSplitButton {
|
2433
|
+
/**
|
2434
|
+
* Defines which key combination can be used to trigger or focus the interactive element of the component.
|
2435
|
+
*/
|
2436
|
+
"_accessKey"?: AccessKeyPropType;
|
2433
2437
|
/**
|
2434
2438
|
* Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)
|
2435
2439
|
*/
|
2436
2440
|
"_ariaControls"?: string;
|
2441
|
+
/**
|
2442
|
+
* Defines the value for the aria-description attribute.
|
2443
|
+
*/
|
2444
|
+
"_ariaDescription"?: AriaDescriptionPropType;
|
2437
2445
|
/**
|
2438
2446
|
* Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)
|
2439
2447
|
*/
|
@@ -2466,11 +2474,11 @@ export namespace Components {
|
|
2466
2474
|
/**
|
2467
2475
|
* Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).
|
2468
2476
|
*/
|
2469
|
-
"_label":
|
2477
|
+
"_label": LabelWithExpertSlotPropType;
|
2470
2478
|
/**
|
2471
2479
|
* Defines the technical name of an input field.
|
2472
2480
|
*/
|
2473
|
-
"_name"?:
|
2481
|
+
"_name"?: string;
|
2474
2482
|
/**
|
2475
2483
|
* Defines the callback functions for button events.
|
2476
2484
|
*/
|
@@ -2479,6 +2487,10 @@ export namespace Components {
|
|
2479
2487
|
* Defines the role of the components primary element.
|
2480
2488
|
*/
|
2481
2489
|
"_role"?: AlternativeButtonLinkRolePropType;
|
2490
|
+
/**
|
2491
|
+
* Adds a visual short key hint to the component.
|
2492
|
+
*/
|
2493
|
+
"_shortKey"?: ShortKeyPropType;
|
2482
2494
|
/**
|
2483
2495
|
* Selector for synchronizing the value with another input element.
|
2484
2496
|
*/
|
@@ -2494,12 +2506,14 @@ export namespace Components {
|
|
2494
2506
|
/**
|
2495
2507
|
* Defines the value that the button emits on click.
|
2496
2508
|
*/
|
2497
|
-
"_value"?:
|
2509
|
+
"_value"?: StencilUnknown;
|
2498
2510
|
/**
|
2499
2511
|
* Defines which variant should be used for presentation.
|
2500
2512
|
*/
|
2501
2513
|
"_variant"?: ButtonVariantPropType;
|
2502
2514
|
"closePopup": () => Promise<void>;
|
2515
|
+
"getValue": () => Promise<StencilUnknown>;
|
2516
|
+
"kolFocus": () => Promise<void>;
|
2503
2517
|
}
|
2504
2518
|
interface KolTableSettingsWc {
|
2505
2519
|
"_tableSettings": TableSettingsPropType;
|
@@ -5570,10 +5584,18 @@ declare namespace LocalJSX {
|
|
5570
5584
|
"_variant"?: SpinVariantPropType;
|
5571
5585
|
}
|
5572
5586
|
interface KolSplitButton {
|
5587
|
+
/**
|
5588
|
+
* Defines which key combination can be used to trigger or focus the interactive element of the component.
|
5589
|
+
*/
|
5590
|
+
"_accessKey"?: AccessKeyPropType;
|
5573
5591
|
/**
|
5574
5592
|
* Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)
|
5575
5593
|
*/
|
5576
5594
|
"_ariaControls"?: string;
|
5595
|
+
/**
|
5596
|
+
* Defines the value for the aria-description attribute.
|
5597
|
+
*/
|
5598
|
+
"_ariaDescription"?: AriaDescriptionPropType;
|
5577
5599
|
/**
|
5578
5600
|
* Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)
|
5579
5601
|
*/
|
@@ -5606,11 +5628,11 @@ declare namespace LocalJSX {
|
|
5606
5628
|
/**
|
5607
5629
|
* Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).
|
5608
5630
|
*/
|
5609
|
-
"_label":
|
5631
|
+
"_label": LabelWithExpertSlotPropType;
|
5610
5632
|
/**
|
5611
5633
|
* Defines the technical name of an input field.
|
5612
5634
|
*/
|
5613
|
-
"_name"?:
|
5635
|
+
"_name"?: string;
|
5614
5636
|
/**
|
5615
5637
|
* Defines the callback functions for button events.
|
5616
5638
|
*/
|
@@ -5619,6 +5641,10 @@ declare namespace LocalJSX {
|
|
5619
5641
|
* Defines the role of the components primary element.
|
5620
5642
|
*/
|
5621
5643
|
"_role"?: AlternativeButtonLinkRolePropType;
|
5644
|
+
/**
|
5645
|
+
* Adds a visual short key hint to the component.
|
5646
|
+
*/
|
5647
|
+
"_shortKey"?: ShortKeyPropType;
|
5622
5648
|
/**
|
5623
5649
|
* Defines where to show the Tooltip preferably: top, right, bottom or left.
|
5624
5650
|
*/
|
@@ -5630,7 +5656,7 @@ declare namespace LocalJSX {
|
|
5630
5656
|
/**
|
5631
5657
|
* Defines the value that the button emits on click.
|
5632
5658
|
*/
|
5633
|
-
"_value"?:
|
5659
|
+
"_value"?: StencilUnknown;
|
5634
5660
|
/**
|
5635
5661
|
* Defines which variant should be used for presentation.
|
5636
5662
|
*/
|
package/dist/types/functional-components/CustomSuggestionsOption/CustomSuggestionsOption.d.ts
CHANGED
@@ -5,6 +5,7 @@ export type CustomSuggestionsProps = JSXBase.HTMLAttributes<HTMLLIElement> & {
|
|
5
5
|
index: number;
|
6
6
|
option: W3CInputValue;
|
7
7
|
selected: boolean;
|
8
|
+
searchTerm?: string;
|
8
9
|
ref?: ((elm?: HTMLLIElement | undefined) => void) | undefined;
|
9
10
|
};
|
10
11
|
declare const CustomSuggestionsOptionFc: FC<CustomSuggestionsProps>;
|
@@ -1,20 +1,9 @@
|
|
1
1
|
import type { Generic } from 'adopted-style-sheets';
|
2
|
-
import type {
|
3
|
-
type RequiredProps =
|
4
|
-
|
5
|
-
|
6
|
-
type
|
7
|
-
loading: Loading;
|
8
|
-
sizes: string;
|
9
|
-
srcset: string;
|
10
|
-
};
|
11
|
-
type RequiredStates = RequiredProps & {
|
12
|
-
loading: Loading;
|
13
|
-
};
|
14
|
-
type OptionalStates = {
|
15
|
-
sizes: string;
|
16
|
-
srcset: string;
|
17
|
-
};
|
2
|
+
import type { PropAlt, PropImageSizes, PropImageSource, PropImageSrcset, PropLoading } from '../props';
|
3
|
+
type RequiredProps = PropAlt & PropImageSource;
|
4
|
+
type OptionalProps = PropLoading & PropImageSizes & PropImageSrcset;
|
5
|
+
type RequiredStates = RequiredProps & PropLoading;
|
6
|
+
type OptionalStates = PropImageSizes & PropImageSrcset;
|
18
7
|
export type ImageProps = Generic.Element.Members<RequiredProps, OptionalProps>;
|
19
8
|
export type ImageStates = Generic.Element.Members<RequiredStates, OptionalStates>;
|
20
9
|
export type ImageAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { Generic } from 'adopted-style-sheets';
|
2
|
+
import type { WatchStringOptions } from '../utils';
|
3
|
+
export type AltPropType = string;
|
4
|
+
export type PropAlt = {
|
5
|
+
alt: AltPropType;
|
6
|
+
};
|
7
|
+
export declare const validateAlt: (component: Generic.Element.Component, value?: AltPropType, options?: WatchStringOptions) => void;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { Generic } from 'adopted-style-sheets';
|
2
|
+
import type { WatchStringOptions } from '../utils';
|
3
|
+
export type ImageSizesPropType = string;
|
4
|
+
export type PropImageSizes = {
|
5
|
+
sizes: ImageSizesPropType;
|
6
|
+
};
|
7
|
+
export declare const validateImageSizes: (component: Generic.Element.Component, value?: ImageSizesPropType, options?: WatchStringOptions) => void;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { Generic } from 'adopted-style-sheets';
|
2
|
+
import type { WatchStringOptions } from '../utils';
|
3
|
+
export type ImageSrcsetPropType = string;
|
4
|
+
export type PropImageSrcset = {
|
5
|
+
srcset: ImageSrcsetPropType;
|
6
|
+
};
|
7
|
+
export declare const validateImageSrcset: (component: Generic.Element.Component, value?: ImageSrcsetPropType, options?: WatchStringOptions) => void;
|
@@ -1 +1 @@
|
|
1
|
-
export*from"./access-key";export*from"./accordion-callbacks";export*from"./active";export*from"./adjust-height";export*from"./alert";export*from"./align";export*from"./alternative-button-link-role";export*from"./aria-controls";export*from"./aria-current-value";export*from"./aria-description";export*from"./aria-expanded";export*from"./aria-owns";export*from"./aria-selected";export*from"./badge-text";export*from"./button-callbacks";export*from"./button-type";export*from"./button-variant";export*from"./checked";export*from"./collapsible";export*from"./color";export*from"./custom-class";export*from"./details-callbacks";export*from"./disabled";export*from"./download";export*from"./error-list";export*from"./has-closer";export*from"./has-compact-button";export*from"./has-counter";export*from"./has-icons-when-expanded";export*from"./hide-label";export*from"./hide-msg";export*from"./href";export*from"./icons";export*from"./id";export*from"./image-source";export*from"./indeterminate";export*from"./label";export*from"./label-align";export*from"./link-on-callbacks";export*from"./link-target";export*from"./link-variant";export*from"./loading";export*from"./max";export*from"./modal";export*from"./msg";export*from"./multiple";export*from"./name";export*from"./open";export*from"./options";export*from"./pagination-position";export*from"./popover-align";export*from"./popover-callbacks";export*from"./read-only";export*from"./required";export*from"./rows";export*from"./short-key";export*from"./show";export*from"./spell-check";export*from"./suggestions";export*from"./sync-value-by-selector";export*from"./tab-behavior";export*from"./table-callbacks";export*from"./table-data";export*from"./table-data-foot";export*from"./table-header-cells";export*from"./table-selection";export*from"./toolbar-items";export*from"./tooltip-align";export*from"./touched";export*from"./variant/spin";
|
1
|
+
export*from"./access-key";export*from"./accordion-callbacks";export*from"./active";export*from"./adjust-height";export*from"./alert";export*from"./alt";export*from"./align";export*from"./alternative-button-link-role";export*from"./aria-controls";export*from"./aria-current-value";export*from"./aria-description";export*from"./aria-expanded";export*from"./aria-owns";export*from"./aria-selected";export*from"./badge-text";export*from"./button-callbacks";export*from"./button-type";export*from"./button-variant";export*from"./checked";export*from"./collapsible";export*from"./color";export*from"./custom-class";export*from"./details-callbacks";export*from"./disabled";export*from"./download";export*from"./error-list";export*from"./has-closer";export*from"./has-compact-button";export*from"./has-counter";export*from"./has-icons-when-expanded";export*from"./hide-label";export*from"./hide-msg";export*from"./href";export*from"./icons";export*from"./id";export*from"./image-source";export*from"./image-sizes";export*from"./image-srcset";export*from"./indeterminate";export*from"./label";export*from"./label-align";export*from"./link-on-callbacks";export*from"./link-target";export*from"./link-variant";export*from"./loading";export*from"./max";export*from"./modal";export*from"./msg";export*from"./multiple";export*from"./name";export*from"./open";export*from"./options";export*from"./pagination-position";export*from"./popover-align";export*from"./popover-callbacks";export*from"./read-only";export*from"./required";export*from"./rows";export*from"./short-key";export*from"./show";export*from"./spell-check";export*from"./suggestions";export*from"./sync-value-by-selector";export*from"./tab-behavior";export*from"./table-callbacks";export*from"./table-data";export*from"./table-data-foot";export*from"./table-header-cells";export*from"./table-selection";export*from"./toolbar-items";export*from"./tooltip-align";export*from"./touched";export*from"./variant/spin";
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import type { Generic } from 'adopted-style-sheets';
|
2
2
|
declare const loadingOptions: readonly ["eager", "lazy"];
|
3
3
|
export type Loading = (typeof loadingOptions)[number];
|
4
|
+
export type PropLoading = {
|
5
|
+
loading: Loading;
|
6
|
+
};
|
4
7
|
export declare function validateLoading(component: Generic.Element.Component, value?: Loading): void;
|
5
8
|
export {};
|
package/doc/components.md
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
You can install the KoliBri components with `npm`, `pnpm` or `yarn`:
|
6
6
|
|
7
7
|
```bash
|
8
|
-
npm i
|
9
|
-
pnpm i
|
10
|
-
yarn add
|
8
|
+
npm i @public-ui/components
|
9
|
+
pnpm i @public-ui/components
|
10
|
+
yarn add @public-ui/components
|
11
11
|
```
|
12
12
|
|
13
13
|
## Usage
|
@@ -36,7 +36,7 @@ Then, you can use the components in your HTML:
|
|
36
36
|
|
37
37
|
Consider using one of the [framework integrations](https://public-ui.github.io/en/docs/get-started/frameworks) for a better developer experience.
|
38
38
|
|
39
|
-
## Development
|
39
|
+
## Development notes
|
40
40
|
|
41
41
|
### Styling
|
42
42
|
|
package/doc/split-button.md
CHANGED
@@ -5,24 +5,27 @@
|
|
5
5
|
|
6
6
|
## Properties
|
7
7
|
|
8
|
-
| Property | Attribute
|
9
|
-
| --------------------- |
|
10
|
-
| `
|
11
|
-
| `
|
12
|
-
| `
|
13
|
-
| `
|
14
|
-
| `
|
15
|
-
| `
|
16
|
-
| `
|
17
|
-
| `
|
18
|
-
| `
|
19
|
-
| `
|
20
|
-
| `
|
21
|
-
| `
|
22
|
-
| `
|
23
|
-
| `
|
24
|
-
| `
|
25
|
-
| `
|
8
|
+
| Property | Attribute | Description | Type | Default |
|
9
|
+
| --------------------- | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- |
|
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
|
+
| `_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
|
+
| `_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
|
+
| `_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
|
+
| `_customClass` | `_custom-class` | Defines the custom class attribute if _variant="custom" is set. | `string` \| `undefined` | `undefined` |
|
16
|
+
| `_disabled` | `_disabled` | Makes the element not focusable and ignore all events. | `boolean` \| `undefined` | `false` |
|
17
|
+
| `_hideLabel` | `_hide-label` | Hides the caption by default and displays the caption text with a tooltip when the interactive element is focused or the mouse is over it. | `boolean` \| `undefined` | `false` |
|
18
|
+
| `_icons` | `_icons` | Defines the icon classnames (e.g. `_icons="fa-solid fa-user"`). | `KoliBriHorizontalIcons & KoliBriVerticalIcons` \| `string` \| `undefined` | `undefined` |
|
19
|
+
| `_id` | `_id` | Defines the internal ID of the primary component element. | `string` \| `undefined` | `undefined` |
|
20
|
+
| `_label` _(required)_ | `_label` | Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). | `string` | `undefined` |
|
21
|
+
| `_name` | `_name` | Defines the technical name of an input field. | `string` \| `undefined` | `undefined` |
|
22
|
+
| `_on` | -- | Defines the callback functions for button events. | `undefined` \| `{ onClick?: EventValueOrEventCallback<MouseEvent, StencilUnknown>` \| `undefined; onMouseDown?: EventCallback<MouseEvent>` \| `undefined; }` | `undefined` |
|
23
|
+
| `_role` | `_role` | Defines the role of the components primary element. | `"button"` \| `"link"` \| `"tab"` \| `"treeitem"` \| `undefined` | `undefined` |
|
24
|
+
| `_shortKey` | `_short-key` | Adds a visual short key hint to the component. | `string` \| `undefined` | `undefined` |
|
25
|
+
| `_tooltipAlign` | `_tooltip-align` | Defines where to show the Tooltip preferably: top, right, bottom or left. | `"bottom"` \| `"left"` \| `"right"` \| `"top"` \| `undefined` | `'top'` |
|
26
|
+
| `_type` | `_type` | Defines either the type of the component or of the components interactive element. | `"button"` \| `"reset"` \| `"submit"` \| `undefined` | `'button'` |
|
27
|
+
| `_value` | `_value` | Defines the value that the button emits on click. | `boolean` \| `null` \| `number` \| `object` \| `string` \| `undefined` | `undefined` |
|
28
|
+
| `_variant` | `_variant` | Defines which variant should be used for presentation. | `"custom"` \| `"danger"` \| `"ghost"` \| `"normal"` \| `"primary"` \| `"secondary"` \| `"tertiary"` \| `undefined` | `'normal'` |
|
26
29
|
|
27
30
|
|
28
31
|
## Methods
|
@@ -37,6 +40,26 @@ Type: `Promise<void>`
|
|
37
40
|
|
38
41
|
|
39
42
|
|
43
|
+
### `getValue() => Promise<StencilUnknown>`
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
#### Returns
|
48
|
+
|
49
|
+
Type: `Promise<StencilUnknown>`
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
### `kolFocus() => Promise<void>`
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
#### Returns
|
58
|
+
|
59
|
+
Type: `Promise<void>`
|
60
|
+
|
61
|
+
|
62
|
+
|
40
63
|
|
41
64
|
## Slots
|
42
65
|
|
package/package.json
CHANGED
package/vscode-custom-data.json
CHANGED
@@ -3440,10 +3440,18 @@
|
|
3440
3440
|
"value": ""
|
3441
3441
|
},
|
3442
3442
|
"attributes": [
|
3443
|
+
{
|
3444
|
+
"name": "_access-key",
|
3445
|
+
"description": "Defines which key combination can be used to trigger or focus the interactive element of the component."
|
3446
|
+
},
|
3443
3447
|
{
|
3444
3448
|
"name": "_aria-controls",
|
3445
3449
|
"description": "Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)"
|
3446
3450
|
},
|
3451
|
+
{
|
3452
|
+
"name": "_aria-description",
|
3453
|
+
"description": "Defines the value for the aria-description attribute."
|
3454
|
+
},
|
3447
3455
|
{
|
3448
3456
|
"name": "_aria-expanded",
|
3449
3457
|
"description": "Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)"
|
@@ -3498,6 +3506,10 @@
|
|
3498
3506
|
}
|
3499
3507
|
]
|
3500
3508
|
},
|
3509
|
+
{
|
3510
|
+
"name": "_short-key",
|
3511
|
+
"description": "Adds a visual short key hint to the component."
|
3512
|
+
},
|
3501
3513
|
{
|
3502
3514
|
"name": "_tooltip-align",
|
3503
3515
|
"description": "Defines where to show the Tooltip preferably: top, right, bottom or left.",
|
@@ -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-3a8217e6.js"),clsx=require("./clsx-dd4d6dd1.js"),componentNames=require("./component-names-f5f2ca3a.js"),i18n=require("./i18n-b01aa5d0.js"),bem=require("./bem-85316256.js"),Heading=require("./Heading-831f5344.js"),Icon=({ariaLabel:e,icon:n})=>index.h(index.Fragment,null,index.h("span",{class:"visually-hidden"},e),index.h(componentNames.KolIconTag,{class:bem.BEM_CLASS_ALERT__ICON,_label:"",_icons:n})),AlertIcon=({type:e,label:n})=>{switch(e){case"error":return index.h(Icon,{ariaLabel:i18n.translate("kol-error"),icon:"codicon codicon-error",label:n});case"info":return index.h(Icon,{ariaLabel:i18n.translate("kol-info"),icon:"codicon codicon-info",label:n});case"warning":return index.h(Icon,{ariaLabel:i18n.translate("kol-warning"),icon:"codicon codicon-warning",label:n});case"success":return index.h(Icon,{ariaLabel:i18n.translate("kol-success"),icon:"codicon codicon-pass",label:n});default:return index.h(Icon,{ariaLabel:i18n.translate("kol-message"),icon:"codicon codicon-comment",label:n})}},KolAlertFc=(e,n)=>{var a,i;const{class:l={},alert:o=!1,hasCloser:s=!1,label:r,level:c=0,type:t="default",variant:d="msg",onAlertTimeout:b,onCloserClick:u}=e,_=tslib_es6.__rest(e,["class","alert","hasCloser","label","level","type","variant","onAlertTimeout","onCloserClick"]);o&&((null===(a=navigator.userActivation)||void 0===a?void 0:a.hasBeenActive)&&(null===(i=null===navigator||void 0===navigator?void 0:navigator.vibrate)||void 0===i||i.call(navigator,[100,75,100,75,100])),setTimeout((()=>{null==b||b()}),1e4));const v=bem.bem("kol-alert",{hasCloser:!!s,[`type-${t}`]:!0,[`variant-${d}`]:!0}),h=bem.bem("kol-alert","heading",{[`h${c}`]:!0}),m=Object.assign({class:clsx.clsx(l,v),role:o?"error"===t?"alert":"status":void 0},_);return index.h("div",Object.assign({},m),index.h("div",{class:"kol-alert__container"},index.h(AlertIcon,{label:r,type:t}),index.h("div",{class:"kol-alert__container-content"},r&&index.h(Heading.KolHeadingFc,{class:h,level:c,id:"heading"},r),"msg"===d&&index.h("span",{class:bem.BEM_CLASS_ALERT__CONTENT,"aria-describedby":r?"heading":void 0},n)),s&&index.h(componentNames.KolButtonWcTag,{class:bem.BEM_CLASS_ALERT__CLOSER,"data-testid":"alert-close-button",_ariaDescription:(null==r?void 0:r.trim())||"",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:i18n.translate("kol-close-alert"),_on:{onClick:u},_tooltipAlign:"left"})),"card"===d&&index.h("div",{class:bem.BEM_CLASS_ALERT__CONTENT,"aria-describedby":r?"heading":void 0},n))};exports.KolAlertFc=KolAlertFc;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"Alert-b599bc66.js","mappings":"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","names":["h","KolIconTag","BEM_CLASS_ALERT__ICON","translate","bem","clsx","KolHeadingFc","BEM_CLASS_ALERT__CONTENT","KolButtonWcTag","BEM_CLASS_ALERT__CLOSER"],"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';\nimport { BEM_CLASS_ALERT__ICON } from '../Alert/bem';\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={BEM_CLASS_ALERT__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 { KolButtonWcTag } from '../../core/component-names';\nimport { translate } from '../../i18n';\nimport { type InternalAlertProps } from '../../schema';\nimport AlertIcon from '../AlertIcon';\nimport KolHeadingFc from '../Heading';\nimport { genBemAlert as bem, BEM_CLASS_ALERT__CLOSER, BEM_CLASS_ALERT__CONTENT } from './bem';\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 {\n\t\tclass: classNames = {},\n\t\talert = false,\n\t\thasCloser = false,\n\t\tlabel,\n\t\tlevel = 0,\n\t\ttype = 'default',\n\t\tvariant = 'msg',\n\t\tonAlertTimeout,\n\t\tonCloserClick,\n\t\t...other\n\t} = 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\t/**\n\t * Define the dynamic BEM class names for the alert component.\n\t */\n\tconst BEM_CLASS_ROOT = bem('kol-alert', {\n\t\thasCloser: !!hasCloser,\n\t\t[`type-${type}`]: true,\n\t\t[`variant-${variant}`]: true,\n\t});\n\tconst BEM_CLASS__HEADING = bem('kol-alert', 'heading', {\n\t\t[`h${level}`]: true,\n\t});\n\n\tconst rootProps: Partial<JSXBase.HTMLAttributes<HTMLDivElement>> = {\n\t\tclass: clsx(classNames, BEM_CLASS_ROOT),\n\t\trole: alert ? (type === 'error' ? 'alert' : 'status') : 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={BEM_CLASS__HEADING} level={level} id=\"heading\">\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</KolHeadingFc>\n\t\t\t\t\t)}\n\t\t\t\t\t{variant === 'msg' && (\n\t\t\t\t\t\t<span class={BEM_CLASS_ALERT__CONTENT} aria-describedby={label ? 'heading' : undefined}>\n\t\t\t\t\t\t\t{children}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t)}\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={BEM_CLASS_ALERT__CLOSER}\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/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t\t{variant === 'card' && (\n\t\t\t\t<div class={BEM_CLASS_ALERT__CONTENT} aria-describedby={label ? 'heading' : undefined}>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t)}\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
|
-
"use strict";const index=require("./index-3a8217e6.js"),componentNames=require("./component-names-f5f2ca3a.js"),i18n=require("./i18n-b01aa5d0.js"),clsx=require("./clsx-dd4d6dd1.js"),getRenderStates=o=>{var s;const e="error"===(null===(s=o._msg)||void 0===s?void 0:s._type)&&!0===o._touched,n="string"==typeof o._hint&&o._hint.length>0,t=[];return!0===e&&t.push(`${o._id}-error`),!0===n&&t.push(`${o._id}-hint`),{hasMsg:e,hasHint:n,ariaDescribedBy:t}},CustomSuggestionsToggleFc=({onClick:o,disabled:s})=>index.h("button",{tabindex:"-1",class:"kol-custom-suggestions-toggle",onClick:o,disabled:s},index.h(componentNames.KolIconTag,{_icons:"codicon codicon-triangle-down",_label:i18n.translate("kol-dropdown")})),CustomSuggestionsOptionFc=({index:o,ref:s,selected:e,onClick:n,onMouseOver:t,onFocus:i,onKeyDown:u,option:g})=>index.h("li",{id:`option-${o}`,key:`-${o}`,ref:s,"data-index":o,tabIndex:-1,role:"option","aria-selected":e?"true":void 0,onClick:n,onMouseOver:t,onFocus:i,class:"kol-custom-suggestions-option",onKeyDown:u},g),CustomSuggestionsOptionsGroupFc=({blockSuggestionMouseOver:o,onKeyDown:s,style:e},n)=>index.h("ul",{role:"listbox",style:e,class:clsx.clsx("kol-custom-suggestions-options-group",{"kol-custom-suggestions-options-group--cursor-hidden":o}),onKeyDown:s},n);exports.CustomSuggestionsOptionFc=CustomSuggestionsOptionFc,exports.CustomSuggestionsOptionsGroupFc=CustomSuggestionsOptionsGroupFc,exports.CustomSuggestionsToggleFc=CustomSuggestionsToggleFc,exports.getRenderStates=getRenderStates;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"CustomSuggestionsOptionsGroup-51c0ad18.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;;MCxBM,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;;MCFM,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;;MCtBM,+BAA+B,GAA2C,CAAC,EAAE,wBAAwB,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,QAAQ;IACxI,QACCH,gBACC,IAAI,EAAC,SAAS,EACd,KAAK,EAAE,KAAK,EACZ,KAAK,EAAEI,SAAI,CAAC,sCAAsC,EAAE;YACnD,qDAAqD,EAAE,wBAAwB;SAC/E,CAAC,EACF,SAAS,EAAE,SAAS,IAEnB,QAAQ,CACL,EACJ;AACH;;;;;;;","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, style }, children) => {\n\treturn (\n\t\t<ul\n\t\t\trole=\"listbox\"\n\t\t\tstyle={style}\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-3a8217e6.js"),componentNames=require("./component-names-f5f2ca3a.js"),KolIconFc=e=>{const{class:n,style:o,icons:c,label:s,onClick:l}=e;return index.h(componentNames.KolIconTag,{class:n,style:o,onClick:l,_icons:c,_label:s})};exports.KolIconFc=KolIconFc;
|
@@ -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-1704c42b.js";import{c as clsx}from"./clsx-09a06a12.js";import{e as KolIconTag,b as KolButtonWcTag}from"./component-names-553d8bfa.js";import{t as translate}from"./i18n-260f0fe9.js";import{a as BEM_CLASS_ALERT__ICON,b as bem,c as BEM_CLASS_ALERT__CONTENT,d as BEM_CLASS_ALERT__CLOSER}from"./bem-e4c3a2e6.js";import{K as KolHeadingFc}from"./Heading-1e98210c.js";const Icon=({ariaLabel:a,icon:e})=>h(Fragment,null,h("span",{class:"visually-hidden"},a),h(KolIconTag,{class:BEM_CLASS_ALERT__ICON,_label:"",_icons:e})),AlertIcon=({type:a,label:e})=>{switch(a){case"error":return h(Icon,{ariaLabel:translate("kol-error"),icon:"codicon codicon-error",label:e});case"info":return h(Icon,{ariaLabel:translate("kol-info"),icon:"codicon codicon-info",label:e});case"warning":return h(Icon,{ariaLabel:translate("kol-warning"),icon:"codicon codicon-warning",label:e});case"success":return h(Icon,{ariaLabel:translate("kol-success"),icon:"codicon codicon-pass",label:e});default:return h(Icon,{ariaLabel:translate("kol-message"),icon:"codicon codicon-comment",label:e})}},KolAlertFc=(a,e)=>{var o,l;const{class:n={},alert:s=!1,hasCloser:i=!1,label:r,level:t=0,type:c="default",variant:d="msg",onAlertTimeout:_,onCloserClick:b}=a,m=__rest(a,["class","alert","hasCloser","label","level","type","variant","onAlertTimeout","onCloserClick"]);s&&((null===(o=navigator.userActivation)||void 0===o?void 0:o.hasBeenActive)&&(null===(l=null===navigator||void 0===navigator?void 0:navigator.vibrate)||void 0===l||l.call(navigator,[100,75,100,75,100])),setTimeout((()=>{null==_||_()}),1e4));const v=bem("kol-alert",{hasCloser:!!i,[`type-${c}`]:!0,[`variant-${d}`]:!0}),g=bem("kol-alert","heading",{[`h${t}`]:!0}),u=Object.assign({class:clsx(n,v),role:s?"error"===c?"alert":"status":void 0},m);return h("div",Object.assign({},u),h("div",{class:"kol-alert__container"},h(AlertIcon,{label:r,type:c}),h("div",{class:"kol-alert__container-content"},r&&h(KolHeadingFc,{class:g,level:t,id:"heading"},r),"msg"===d&&h("span",{class:BEM_CLASS_ALERT__CONTENT,"aria-describedby":r?"heading":void 0},e)),i&&h(KolButtonWcTag,{class:BEM_CLASS_ALERT__CLOSER,"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:b},_tooltipAlign:"left"})),"card"===d&&h("div",{class:BEM_CLASS_ALERT__CONTENT,"aria-describedby":r?"heading":void 0},e))};export{KolAlertFc as K};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"Alert-58253beb.js","mappings":"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","names":[],"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';\nimport { BEM_CLASS_ALERT__ICON } from '../Alert/bem';\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={BEM_CLASS_ALERT__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 { KolButtonWcTag } from '../../core/component-names';\nimport { translate } from '../../i18n';\nimport { type InternalAlertProps } from '../../schema';\nimport AlertIcon from '../AlertIcon';\nimport KolHeadingFc from '../Heading';\nimport { genBemAlert as bem, BEM_CLASS_ALERT__CLOSER, BEM_CLASS_ALERT__CONTENT } from './bem';\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 {\n\t\tclass: classNames = {},\n\t\talert = false,\n\t\thasCloser = false,\n\t\tlabel,\n\t\tlevel = 0,\n\t\ttype = 'default',\n\t\tvariant = 'msg',\n\t\tonAlertTimeout,\n\t\tonCloserClick,\n\t\t...other\n\t} = 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\t/**\n\t * Define the dynamic BEM class names for the alert component.\n\t */\n\tconst BEM_CLASS_ROOT = bem('kol-alert', {\n\t\thasCloser: !!hasCloser,\n\t\t[`type-${type}`]: true,\n\t\t[`variant-${variant}`]: true,\n\t});\n\tconst BEM_CLASS__HEADING = bem('kol-alert', 'heading', {\n\t\t[`h${level}`]: true,\n\t});\n\n\tconst rootProps: Partial<JSXBase.HTMLAttributes<HTMLDivElement>> = {\n\t\tclass: clsx(classNames, BEM_CLASS_ROOT),\n\t\trole: alert ? (type === 'error' ? 'alert' : 'status') : 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={BEM_CLASS__HEADING} level={level} id=\"heading\">\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</KolHeadingFc>\n\t\t\t\t\t)}\n\t\t\t\t\t{variant === 'msg' && (\n\t\t\t\t\t\t<span class={BEM_CLASS_ALERT__CONTENT} aria-describedby={label ? 'heading' : undefined}>\n\t\t\t\t\t\t\t{children}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t)}\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={BEM_CLASS_ALERT__CLOSER}\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/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t\t{variant === 'card' && (\n\t\t\t\t<div class={BEM_CLASS_ALERT__CONTENT} aria-describedby={label ? 'heading' : undefined}>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t)}\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-1704c42b.js";import{e as KolIconTag}from"./component-names-553d8bfa.js";import{t as translate}from"./i18n-260f0fe9.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,e="string"==typeof o._hint&&o._hint.length>0,n=[];return!0===t&&n.push(`${o._id}-error`),!0===e&&n.push(`${o._id}-hint`),{hasMsg:t,hasHint:e,ariaDescribedBy:n}},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")})),CustomSuggestionsOptionFc=({index:o,ref:s,selected:t,onClick:e,onMouseOver:n,onFocus:i,onKeyDown:r,option:c})=>h("li",{id:`option-${o}`,key:`-${o}`,ref:s,"data-index":o,tabIndex:-1,role:"option","aria-selected":t?"true":void 0,onClick:e,onMouseOver:n,onFocus:i,class:"kol-custom-suggestions-option",onKeyDown:r},c),CustomSuggestionsOptionsGroupFc=({blockSuggestionMouseOver:o,onKeyDown:s,style:t},e)=>h("ul",{role:"listbox",style:t,class:clsx("kol-custom-suggestions-options-group",{"kol-custom-suggestions-options-group--cursor-hidden":o}),onKeyDown:s},e);export{CustomSuggestionsToggleFc as C,CustomSuggestionsOptionsGroupFc as a,CustomSuggestionsOptionFc as b,getRenderStates as g};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"CustomSuggestionsOptionsGroup-14853f08.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;;MCxBM,yBAAyB,GAAqC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE;IACzF,QACC,cAAQ,QAAQ,EAAC,IAAI,EAAC,KAAK,EAAC,+BAA+B,EAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ;QAC/F,EAAC,UAAU,IAAC,MAAM,EAAC,+BAA+B,EAAC,MAAM,EAAE,SAAS,CAAC,cAAc,CAAC,GAAI,CAChF,EACR;AACH;;MCFM,yBAAyB,GAA+B,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE;IACxI,QACC,UACC,EAAE,EAAE,UAAU,KAAK,EAAE,EACrB,GAAG,EAAE,IAAI,KAAK,EAAE,EAChB,GAAG,EAAE,GAAG,gBACI,KAAK,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;;MCtBM,+BAA+B,GAA2C,CAAC,EAAE,wBAAwB,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,QAAQ;IACxI,QACC,UACC,IAAI,EAAC,SAAS,EACd,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,IAAI,CAAC,sCAAsC,EAAE;YACnD,qDAAqD,EAAE,wBAAwB;SAC/E,CAAC,EACF,SAAS,EAAE,SAAS,IAEnB,QAAQ,CACL,EACJ;AACH;;;;","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, style }, children) => {\n\treturn (\n\t\t<ul\n\t\t\trole=\"listbox\"\n\t\t\tstyle={style}\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{_ as a}from"./tslib.es6-1173d062.js";import{h as e,F as o}from"./index-1704c42b.js";import{c as l}from"./clsx-09a06a12.js";import{e as i,b as s}from"./component-names-553d8bfa.js";import{t as n}from"./i18n-260f0fe9.js";import{a as r,b as c,c as t,d}from"./bem-e4c3a2e6.js";import{K as b}from"./Heading-1e98210c.js";const u=({ariaLabel:a,icon:l})=>e(o,null,e("span",{class:"visually-hidden"},a),e(i,{class:r,_label:"",_icons:l})),v=({type:a,label:o})=>{switch(a){case"error":return e(u,{ariaLabel:n("kol-error"),icon:"codicon codicon-error",label:o});case"info":return e(u,{ariaLabel:n("kol-info"),icon:"codicon codicon-info",label:o});case"warning":return e(u,{ariaLabel:n("kol-warning"),icon:"codicon codicon-warning",label:o});case"success":return e(u,{ariaLabel:n("kol-success"),icon:"codicon codicon-pass",label:o});default:return e(u,{ariaLabel:n("kol-message"),icon:"codicon codicon-comment",label:o})}},m=(o,i)=>{var r,u;const{class:m={},alert:g=!1,hasCloser:p=!1,label:f,level:h=0,type:k="default",variant:_="msg",onAlertTimeout:j,onCloserClick:y}=o,C=a(o,["class","alert","hasCloser","label","level","type","variant","onAlertTimeout","onCloserClick"]);g&&((null===(r=navigator.userActivation)||void 0===r?void 0:r.hasBeenActive)&&(null===(u=null===navigator||void 0===navigator?void 0:navigator.vibrate)||void 0===u||u.call(navigator,[100,75,100,75,100])),setTimeout((()=>{null==j||j()}),1e4));const L=c("kol-alert",{hasCloser:!!p,[`type-${k}`]:!0,[`variant-${_}`]:!0}),A=c("kol-alert","heading",{[`h${h}`]:!0}),w=Object.assign({class:l(m,L),role:g?"error"===k?"alert":"status":void 0},C);return e("div",Object.assign({},w),e("div",{class:"kol-alert__container"},e(v,{label:f,type:k}),e("div",{class:"kol-alert__container-content"},f&&e(b,{class:A,level:h,id:"heading"},f),"msg"===_&&e("span",{class:t,"aria-describedby":f?"heading":void 0},i)),p&&e(s,{class:d,"data-testid":"alert-close-button",_ariaDescription:(null==f?void 0:f.trim())||"",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:n("kol-close-alert"),_on:{onClick:y},_tooltipAlign:"left"})),"card"===_&&e("div",{class:t,"aria-describedby":f?"heading":void 0},i))};export{m as K};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["Icon","ariaLabel","icon","h","Fragment","class","KolIconTag","BEM_CLASS_ALERT__ICON","_label","_icons","AlertIcon","type","label","translate","KolAlertFc","props","children","classNames","alert","hasCloser","level","variant","onAlertTimeout","onCloserClick","other","__rest","_a","navigator","userActivation","hasBeenActive","_b","vibrate","call","setTimeout","BEM_CLASS_ROOT","bem","BEM_CLASS__HEADING","rootProps","Object","assign","clsx","role","undefined","KolHeadingFc","id","BEM_CLASS_ALERT__CONTENT","KolButtonWcTag","BEM_CLASS_ALERT__CLOSER","_ariaDescription","trim","_hideLabel","left","_on","onClick","_tooltipAlign"],"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';\nimport { BEM_CLASS_ALERT__ICON } from '../Alert/bem';\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={BEM_CLASS_ALERT__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 { KolButtonWcTag } from '../../core/component-names';\nimport { translate } from '../../i18n';\nimport { type InternalAlertProps } from '../../schema';\nimport AlertIcon from '../AlertIcon';\nimport KolHeadingFc from '../Heading';\nimport { genBemAlert as bem, BEM_CLASS_ALERT__CLOSER, BEM_CLASS_ALERT__CONTENT } from './bem';\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 {\n\t\tclass: classNames = {},\n\t\talert = false,\n\t\thasCloser = false,\n\t\tlabel,\n\t\tlevel = 0,\n\t\ttype = 'default',\n\t\tvariant = 'msg',\n\t\tonAlertTimeout,\n\t\tonCloserClick,\n\t\t...other\n\t} = 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\t/**\n\t * Define the dynamic BEM class names for the alert component.\n\t */\n\tconst BEM_CLASS_ROOT = bem('kol-alert', {\n\t\thasCloser: !!hasCloser,\n\t\t[`type-${type}`]: true,\n\t\t[`variant-${variant}`]: true,\n\t});\n\tconst BEM_CLASS__HEADING = bem('kol-alert', 'heading', {\n\t\t[`h${level}`]: true,\n\t});\n\n\tconst rootProps: Partial<JSXBase.HTMLAttributes<HTMLDivElement>> = {\n\t\tclass: clsx(classNames, BEM_CLASS_ROOT),\n\t\trole: alert ? (type === 'error' ? 'alert' : 'status') : 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={BEM_CLASS__HEADING} level={level} id=\"heading\">\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</KolHeadingFc>\n\t\t\t\t\t)}\n\t\t\t\t\t{variant === 'msg' && (\n\t\t\t\t\t\t<span class={BEM_CLASS_ALERT__CONTENT} aria-describedby={label ? 'heading' : undefined}>\n\t\t\t\t\t\t\t{children}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t)}\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={BEM_CLASS_ALERT__CLOSER}\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/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t\t{variant === 'card' && (\n\t\t\t\t<div class={BEM_CLASS_ALERT__CONTENT} aria-describedby={label ? 'heading' : undefined}>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nexport default KolAlertFc;\n"],"mappings":";;;kUAWA,MAAMA,EAAgE,EAAGC,YAAWC,UAElFC,EAAAC,EAAA,KACCD,EAAA,QAAME,MAAM,mBAAmBJ,GAC/BE,EAACG,EAAU,CAACD,MAAOE,EAAuBC,OAAO,GAAGC,OAAQP,KAK/D,MAAMQ,EAAsD,EAAGC,OAAMC,YACpE,OAAQD,GACP,IAAK,QACJ,OAAOR,EAACH,EAAI,CAACC,UAAWY,EAAU,aAAcX,KAAK,wBAAwBU,MAAOA,IACrF,IAAK,OACJ,OAAOT,EAACH,EAAI,CAACC,UAAWY,EAAU,YAAaX,KAAK,uBAAuBU,MAAOA,IACnF,IAAK,UACJ,OAAOT,EAACH,EAAI,CAACC,UAAWY,EAAU,eAAgBX,KAAK,0BAA0BU,MAAOA,IACzF,IAAK,UACJ,OAAOT,EAACH,EAAI,CAACC,UAAWY,EAAU,eAAgBX,KAAK,uBAAuBU,MAAOA,IACtF,QACC,OAAOT,EAACH,EAAI,CAACC,UAAWY,EAAU,eAAgBX,KAAK,0BAA0BU,MAAOA,I,QCdrFE,EAAkC,CAACC,EAAOC,K,QAC/C,MACCX,MAAOY,EAAa,GAAEC,MACtBA,EAAQ,MAAKC,UACbA,EAAY,MAAKP,MACjBA,EAAKQ,MACLA,EAAQ,EAACT,KACTA,EAAO,UAASU,QAChBA,EAAU,MAAKC,eACfA,EAAcC,cACdA,GAEGR,EADAS,EAAKC,EACLV,EAXE,iGAaN,GAAIG,EAAO,CAOV,IAAIQ,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,KACVX,IAAc,MAAdA,SAAc,SAAdA,GAAkB,GAChB,I,CAMJ,MAAMY,EAAiBC,EAAI,YAAa,CACvChB,YAAaA,EACb,CAAC,QAAQR,KAAS,KAClB,CAAC,WAAWU,KAAY,OAEzB,MAAMe,EAAqBD,EAAI,YAAa,UAAW,CACtD,CAAC,IAAIf,KAAU,OAGhB,MAAMiB,EAASC,OAAAC,OAAA,CACdlC,MAAOmC,EAAKvB,EAAYiB,GACxBO,KAAMvB,EAASP,IAAS,QAAU,QAAU,SAAY+B,WACrDlB,GAGJ,OACCrB,EAAA,MAAAmC,OAAAC,OAAA,GAASF,GACRlC,EAAA,OAAKE,MAAM,wBACVF,EAACO,EAAS,CAACE,MAAOA,EAAOD,KAAMA,IAC/BR,EAAA,OAAKE,MAAM,gCACTO,GACAT,EAACwC,EAAY,CAACtC,MAAO+B,EAAoBhB,MAAOA,EAAOwB,GAAG,WACxDhC,GAGFS,IAAY,OACZlB,EAAA,QAAME,MAAOwC,EAAwB,mBAAoBjC,EAAQ,UAAY8B,WAC3E1B,IAIHG,GACAhB,EAAC2C,EAAc,CACdzC,MAAO0C,EAAuB,cAClB,qBACZC,kBAAkBpC,IAAK,MAALA,SAAK,SAALA,EAAOqC,SAAU,GACnCC,WAAU,KACVzC,OAAQ,CACP0C,KAAM,CACLjD,KAAM,0BAGRM,OAAQK,EAAU,mBAClBuC,IAAK,CAAEC,QAAS9B,GAChB+B,cAAc,UAIhBjC,IAAY,QACZlB,EAAA,OAAKE,MAAOwC,EAAwB,mBAAoBjC,EAAQ,UAAY8B,WAC1E1B,GAGE,S","ignoreList":[]}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
3
|
-
*/
|
4
|
-
import{h as o}from"./index-1704c42b.js";import{e as s}from"./component-names-553d8bfa.js";import{t as n}from"./i18n-260f0fe9.js";import{c as e}from"./clsx-09a06a12.js";const t=o=>{var s;const e="error"===(null===(s=o._msg)||void 0===s?void 0:s._type)&&!0===o._touched,n="string"==typeof o._hint&&o._hint.length>0,i=[];return!0===e&&i.push(`${o._id}-error`),!0===n&&i.push(`${o._id}-hint`),{hasMsg:e,hasHint:n,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")})),r=({index:s,ref:e,selected:n,onClick:i,onMouseOver:t,onFocus:r,onKeyDown:c,option:l})=>o("li",{id:`option-${s}`,key:`-${s}`,ref:e,"data-index":s,tabIndex:-1,role:"option","aria-selected":n?"true":void 0,onClick:i,onMouseOver:t,onFocus:r,class:"kol-custom-suggestions-option",onKeyDown:c},l),c=({blockSuggestionMouseOver:s,onKeyDown:n,style:i},t)=>o("ul",{role:"listbox",style:i,class:e("kol-custom-suggestions-options-group",{"kol-custom-suggestions-options-group--cursor-hidden":s}),onKeyDown:n},t);export{i as C,c as a,r 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","CustomSuggestionsOptionFc","index","ref","selected","onMouseOver","onFocus","onKeyDown","option","id","key","tabIndex","role","undefined","CustomSuggestionsOptionsGroupFc","blockSuggestionMouseOver","style","children","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, style }, children) => {\n\treturn (\n\t\t<ul\n\t\t\trole=\"listbox\"\n\t\t\tstyle={style}\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,E,MCvBtCG,EAA8D,EAAGC,UAASC,cAE9EC,EAAA,UAAQC,SAAS,KAAKC,MAAM,gCAAgCJ,QAASA,EAASC,SAAUA,GACvFC,EAACG,EAAU,CAACC,OAAO,gCAAgCC,OAAQC,EAAU,mB,MCClEC,EAAwD,EAAGC,QAAOC,MAAKC,WAAUZ,UAASa,cAAaC,UAASC,YAAWC,YAE/Hd,EAAA,MACCe,GAAI,UAAUP,IACdQ,IAAK,IAAIR,IACTC,IAAKA,EAAG,aACID,EACZS,UAAW,EACXC,KAAK,SAAQ,gBACER,EAAW,OAASS,UACnCrB,QAASA,EACTa,YAAaA,EACbC,QAASA,EACTV,MAAM,gCACNW,UAAWA,GAEVC,G,MCnBEM,EAA0E,EAAGC,2BAA0BR,YAAWS,SAASC,IAE/HvB,EAAA,MACCkB,KAAK,UACLI,MAAOA,EACPpB,MAAOsB,EAAK,uCAAwC,CACnD,sDAAuDH,IAExDR,UAAWA,GAEVU,U","ignoreList":[]}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* KoliBri - The accessible HTML-Standard
|
3
|
-
*/
|
4
|
-
import{h as s}from"./index-1704c42b.js";import{e as o}from"./component-names-553d8bfa.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})};export{n as K};
|