@public-ui/components 3.0.0-37e952f54ae220a836264edf844556a2c45116ea.0 → 3.0.0-5b77407d5176cae7a2828963773736f2e84d442f.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 +1 -1
- package/dist/cjs/{Alert-2081f13f.js → Alert-8fc0a3d1.js} +1 -1
- package/dist/cjs/{Alert-2081f13f.js.map → Alert-8fc0a3d1.js.map} +1 -1
- package/dist/cjs/{Collapsible-8faf0000.js → Collapsible-3e215ef1.js} +1 -1
- package/dist/cjs/{Collapsible-8faf0000.js.map → Collapsible-3e215ef1.js.map} +1 -1
- package/dist/cjs/{CustomSuggestionsOptionsGroup-ed59192b.js → CustomSuggestionsOptionsGroup-f577f8e0.js} +1 -1
- package/dist/cjs/{CustomSuggestionsOptionsGroup-ed59192b.js.map → CustomSuggestionsOptionsGroup-f577f8e0.js.map} +1 -1
- package/dist/cjs/{FieldControlStateWrapper-f1f27193.js → FieldControlStateWrapper-9f185e78.js} +1 -1
- package/dist/cjs/{FieldControlStateWrapper-f1f27193.js.map → FieldControlStateWrapper-9f185e78.js.map} +1 -1
- package/dist/cjs/{Heading-7c92fd24.js → Heading-f41eb65f.js} +1 -1
- package/dist/cjs/{Heading-7c92fd24.js.map → Heading-f41eb65f.js.map} +1 -1
- package/dist/cjs/{Icon-eaf6789f.js → Icon-a2c0ae4b.js} +1 -1
- package/dist/cjs/{Icon-eaf6789f.js.map → Icon-a2c0ae4b.js.map} +1 -1
- package/dist/cjs/{Input-956b42d2.js → Input-775c533a.js} +1 -1
- package/dist/cjs/{Input-956b42d2.js.map → Input-775c533a.js.map} +1 -1
- package/dist/cjs/{InputStateWrapper-47cc5b7e.js → InputStateWrapper-c84ab71f.js} +1 -1
- package/dist/cjs/{InputStateWrapper-47cc5b7e.js.map → InputStateWrapper-c84ab71f.js.map} +1 -1
- package/dist/cjs/{InternalUnderlinedBadgeText-75ec8b12.js → InternalUnderlinedBadgeText-908acd7d.js} +1 -1
- package/dist/cjs/{InternalUnderlinedBadgeText-75ec8b12.js.map → InternalUnderlinedBadgeText-908acd7d.js.map} +1 -1
- package/dist/cjs/{Span-da47606f.js → Span-a5271f1e.js} +1 -1
- package/dist/cjs/{Span-da47606f.js.map → Span-a5271f1e.js.map} +1 -1
- package/dist/cjs/{access-and-short-key-d0fc7c38.js → access-and-short-key-922a6b85.js} +1 -1
- package/dist/cjs/{access-and-short-key-d0fc7c38.js.map → access-and-short-key-922a6b85.js.map} +1 -1
- package/dist/cjs/{align-93ac54ce.js → align-adc6786d.js} +1 -1
- package/dist/cjs/{align-93ac54ce.js.map → align-adc6786d.js.map} +1 -1
- package/dist/cjs/app-globals-1b6e414e.js +4 -0
- package/dist/cjs/{app-globals-2d20db47.js.map → app-globals-1b6e414e.js.map} +1 -1
- package/dist/cjs/{associated.controller-3b505cce.js → associated.controller-aea127fa.js} +1 -1
- package/dist/cjs/{associated.controller-3b505cce.js.map → associated.controller-aea127fa.js.map} +1 -1
- package/dist/cjs/{button-variant-bf871613.js → button-variant-e8d64c5c.js} +1 -1
- package/dist/cjs/{button-variant-bf871613.js.map → button-variant-e8d64c5c.js.map} +1 -1
- package/dist/cjs/{color-e425cd22.js → color-4fe2e3d4.js} +1 -1
- package/dist/cjs/{color-e425cd22.js.map → color-4fe2e3d4.js.map} +1 -1
- package/dist/cjs/{controller-c5807631.js → controller-0055cce9.js} +1 -1
- package/dist/cjs/{controller-c5807631.js.map → controller-0055cce9.js.map} +1 -1
- package/dist/cjs/{controller-f64cf64d.js → controller-2bd8b480.js} +1 -1
- package/dist/cjs/{controller-f64cf64d.js.map → controller-2bd8b480.js.map} +1 -1
- package/dist/cjs/controller-99c47b51.js +4 -0
- package/dist/cjs/{controller-9087aeae.js.map → controller-99c47b51.js.map} +1 -1
- package/dist/cjs/{controller-a37c3bf3.js → controller-deb8aecc.js} +1 -1
- package/dist/cjs/{controller-a37c3bf3.js.map → controller-deb8aecc.js.map} +1 -1
- package/dist/cjs/{controller-icon-af749150.js → controller-icon-7ced4ecc.js} +1 -1
- package/dist/cjs/{controller-icon-af749150.js.map → controller-icon-7ced4ecc.js.map} +1 -1
- package/dist/cjs/custom-class-594ce1e0.js +4 -0
- package/dist/cjs/{custom-class-090248c5.js.map → custom-class-594ce1e0.js.map} +1 -1
- package/dist/cjs/{dev.utils-2aebece9.js → dev.utils-09c7b22e.js} +1 -1
- package/dist/cjs/{dev.utils-2aebece9.js.map → dev.utils-09c7b22e.js.map} +1 -1
- package/dist/cjs/{devtools-a4ca6fb6.js → devtools-04e25f21.js} +1 -1
- package/dist/cjs/{devtools-a4ca6fb6.js.map → devtools-04e25f21.js.map} +1 -1
- package/dist/cjs/disabled-a1cf705e.js +4 -0
- package/dist/cjs/{disabled-8e4f2f5c.js.map → disabled-a1cf705e.js.map} +1 -1
- package/dist/cjs/{getRenderStates-34145e2d.js → getRenderStates-2f7e6a7d.js} +1 -1
- package/dist/cjs/{getRenderStates-34145e2d.js.map → getRenderStates-2f7e6a7d.js.map} +1 -1
- package/dist/cjs/has-closer-9a2b6dd6.js +4 -0
- package/dist/cjs/{has-closer-70d42d31.js.map → has-closer-9a2b6dd6.js.map} +1 -1
- package/dist/cjs/has-counter-1bf3100a.js +4 -0
- package/dist/cjs/{has-counter-fac5a323.js.map → has-counter-1bf3100a.js.map} +1 -1
- package/dist/cjs/hide-label-bba72139.js +4 -0
- package/dist/cjs/{hide-label-a5f79571.js.map → hide-label-bba72139.js.map} +1 -1
- package/dist/cjs/href-c241a8fd.js +4 -0
- package/dist/cjs/{href-e0353cd7.js.map → href-c241a8fd.js.map} +1 -1
- package/dist/cjs/{icons-73f0fbcf.js → icons-9fe925f0.js} +1 -1
- package/dist/cjs/{icons-73f0fbcf.js.map → icons-9fe925f0.js.map} +1 -1
- package/dist/cjs/image-source-b51a4caf.js +4 -0
- package/dist/cjs/{image-source-c7eb536a.js.map → image-source-b51a4caf.js.map} +1 -1
- package/dist/cjs/{index-92a1d333.js → index-3e885030.js} +1 -1
- package/dist/cjs/{index-92a1d333.js.map → index-3e885030.js.map} +1 -1
- package/dist/cjs/{index-49ec9257.js → index-5a2d7a7c.js} +1 -1
- package/dist/cjs/index-5a2d7a7c.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
- package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
- package/dist/cjs/kol-alert.cjs.entry.js +1 -1
- package/dist/cjs/kol-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.cjs.entry.js +1 -1
- package/dist/cjs/kol-combobox.cjs.entry.js +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-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-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-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/{label-fab376ae.js → label-09ad9e27.js} +1 -1
- package/dist/cjs/{label-fab376ae.js.map → label-09ad9e27.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/open-a69f6f8c.js +4 -0
- package/dist/cjs/{open-10500c96.js.map → open-a69f6f8c.js.map} +1 -1
- package/dist/cjs/{prop.validators-b788b493.js → prop.validators-076b52fe.js} +1 -1
- package/dist/cjs/{prop.validators-b788b493.js.map → prop.validators-076b52fe.js.map} +1 -1
- package/dist/cjs/rows-cf38b9f8.js +4 -0
- package/dist/cjs/{rows-e801d3f8.js.map → rows-cf38b9f8.js.map} +1 -1
- package/dist/cjs/show-48868387.js +4 -0
- package/dist/cjs/{show-e401e023.js.map → show-48868387.js.map} +1 -1
- package/dist/cjs/spell-check-85a8e643.js +4 -0
- package/dist/cjs/{spell-check-c271d689.js.map → spell-check-85a8e643.js.map} +1 -1
- package/dist/cjs/{suggestions-58a5019e.js → suggestions-03dc6fe6.js} +1 -1
- package/dist/cjs/{suggestions-58a5019e.js.map → suggestions-03dc6fe6.js.map} +1 -1
- package/dist/cjs/{table-settings-c05aaa16.js → table-settings-34ba65b2.js} +1 -1
- package/dist/cjs/{table-settings-c05aaa16.js.map → table-settings-34ba65b2.js.map} +1 -1
- package/dist/cjs/test-component.cjs.entry.js +1 -1
- package/dist/cjs/tooltip-align-d832f178.js +4 -0
- package/dist/cjs/{tooltip-align-b25e613c.js.map → tooltip-align-d832f178.js.map} +1 -1
- package/dist/cjs/{validation-0e34c435.js → validation-9746c5a8.js} +1 -1
- package/dist/cjs/{validation-0e34c435.js.map → validation-9746c5a8.js.map} +1 -1
- package/dist/cjs/{validation-d75a53d3.js → validation-c9463be5.js} +1 -1
- package/dist/cjs/{validation-d75a53d3.js.map → validation-c9463be5.js.map} +1 -1
- package/dist/components/devtools.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/prop.validators.js +1 -1
- package/dist/components/prop.validators.js.map +1 -1
- package/dist/esm/{Alert-362a56d6.js → Alert-c7c350d4.js} +1 -1
- package/dist/esm/{Alert-362a56d6.js.map → Alert-c7c350d4.js.map} +1 -1
- package/dist/esm/{Collapsible-f5aaa0af.js → Collapsible-a6a7a1ed.js} +1 -1
- package/dist/esm/{Collapsible-f5aaa0af.js.map → Collapsible-a6a7a1ed.js.map} +1 -1
- package/dist/esm/{CustomSuggestionsOptionsGroup-45c3a085.js → CustomSuggestionsOptionsGroup-5dbe9972.js} +1 -1
- package/dist/esm/{CustomSuggestionsOptionsGroup-45c3a085.js.map → CustomSuggestionsOptionsGroup-5dbe9972.js.map} +1 -1
- package/dist/esm/{FieldControlStateWrapper-5fe1febc.js → FieldControlStateWrapper-e723fa2b.js} +1 -1
- package/dist/esm/{FieldControlStateWrapper-5fe1febc.js.map → FieldControlStateWrapper-e723fa2b.js.map} +1 -1
- package/dist/esm/{Heading-a93a1765.js → Heading-268e2c44.js} +1 -1
- package/dist/esm/{Heading-a93a1765.js.map → Heading-268e2c44.js.map} +1 -1
- package/dist/esm/Icon-6863084d.js +4 -0
- package/dist/esm/{Icon-1679f3fc.js.map → Icon-6863084d.js.map} +1 -1
- package/dist/esm/{Input-f05ea4d5.js → Input-7414a2d3.js} +1 -1
- package/dist/esm/{Input-f05ea4d5.js.map → Input-7414a2d3.js.map} +1 -1
- package/dist/esm/{InputStateWrapper-040f7635.js → InputStateWrapper-24d14c8a.js} +1 -1
- package/dist/esm/{InputStateWrapper-040f7635.js.map → InputStateWrapper-24d14c8a.js.map} +1 -1
- package/dist/esm/{InternalUnderlinedBadgeText-77ae0c4d.js → InternalUnderlinedBadgeText-a54af9a3.js} +1 -1
- package/dist/esm/{InternalUnderlinedBadgeText-77ae0c4d.js.map → InternalUnderlinedBadgeText-a54af9a3.js.map} +1 -1
- package/dist/esm/{Span-a625f565.js → Span-cf62b38f.js} +1 -1
- package/dist/esm/{Span-a625f565.js.map → Span-cf62b38f.js.map} +1 -1
- package/dist/esm/{access-and-short-key-7091d688.js → access-and-short-key-11f043b2.js} +1 -1
- package/dist/esm/{access-and-short-key-7091d688.js.map → access-and-short-key-11f043b2.js.map} +1 -1
- package/dist/esm/{align-679f189f.js → align-460e0791.js} +1 -1
- package/dist/esm/{align-679f189f.js.map → align-460e0791.js.map} +1 -1
- package/dist/esm/{app-globals-832318f2.js → app-globals-181c68cb.js} +1 -1
- package/dist/esm/{app-globals-832318f2.js.map → app-globals-181c68cb.js.map} +1 -1
- package/dist/esm/{associated.controller-9e991177.js → associated.controller-d9fdc504.js} +1 -1
- package/dist/esm/{associated.controller-9e991177.js.map → associated.controller-d9fdc504.js.map} +1 -1
- package/dist/esm/{button-variant-68e61ccd.js → button-variant-88a113d1.js} +1 -1
- package/dist/esm/{button-variant-68e61ccd.js.map → button-variant-88a113d1.js.map} +1 -1
- package/dist/esm/{color-adb63076.js → color-ba0da1d8.js} +1 -1
- package/dist/esm/{color-adb63076.js.map → color-ba0da1d8.js.map} +1 -1
- package/dist/esm/{controller-71d68376.js → controller-2ef93a79.js} +1 -1
- package/dist/esm/{controller-71d68376.js.map → controller-2ef93a79.js.map} +1 -1
- package/dist/esm/{controller-f04a784c.js → controller-352b354a.js} +1 -1
- package/dist/esm/{controller-f04a784c.js.map → controller-352b354a.js.map} +1 -1
- package/dist/esm/{controller-1be136a8.js → controller-97b1923e.js} +1 -1
- package/dist/esm/{controller-1be136a8.js.map → controller-97b1923e.js.map} +1 -1
- package/dist/esm/{controller-070818e3.js → controller-fe5f9430.js} +1 -1
- package/dist/esm/{controller-070818e3.js.map → controller-fe5f9430.js.map} +1 -1
- package/dist/esm/{controller-icon-9397b382.js → controller-icon-dc402b02.js} +1 -1
- package/dist/esm/{controller-icon-9397b382.js.map → controller-icon-dc402b02.js.map} +1 -1
- package/dist/esm/custom-class-00e6a8e3.js +4 -0
- package/dist/esm/{custom-class-7ee02f93.js.map → custom-class-00e6a8e3.js.map} +1 -1
- package/dist/esm/{dev.utils-ada1cd11.js → dev.utils-0d99621e.js} +1 -1
- package/dist/esm/{dev.utils-ada1cd11.js.map → dev.utils-0d99621e.js.map} +1 -1
- package/dist/esm/{devtools-10e45767.js → devtools-0edd5497.js} +1 -1
- package/dist/esm/{devtools-10e45767.js.map → devtools-0edd5497.js.map} +1 -1
- package/dist/esm/{disabled-66301c63.js → disabled-2cff4d2e.js} +1 -1
- package/dist/esm/{disabled-66301c63.js.map → disabled-2cff4d2e.js.map} +1 -1
- package/dist/esm/{getRenderStates-3c94aee3.js → getRenderStates-2c7678ef.js} +1 -1
- package/dist/esm/{getRenderStates-3c94aee3.js.map → getRenderStates-2c7678ef.js.map} +1 -1
- package/dist/esm/{has-closer-f231599a.js → has-closer-21c1c1a1.js} +1 -1
- package/dist/esm/{has-closer-f231599a.js.map → has-closer-21c1c1a1.js.map} +1 -1
- package/dist/esm/{has-counter-239ecfc9.js → has-counter-c693fdf7.js} +1 -1
- package/dist/esm/{has-counter-239ecfc9.js.map → has-counter-c693fdf7.js.map} +1 -1
- package/dist/esm/{hide-label-4a7cf616.js → hide-label-c67b3beb.js} +1 -1
- package/dist/esm/{hide-label-4a7cf616.js.map → hide-label-c67b3beb.js.map} +1 -1
- package/dist/esm/{href-8cf96f1c.js → href-4c3ff009.js} +1 -1
- package/dist/esm/{href-8cf96f1c.js.map → href-4c3ff009.js.map} +1 -1
- package/dist/esm/{icons-ae235ff9.js → icons-74418997.js} +1 -1
- package/dist/esm/{icons-ae235ff9.js.map → icons-74418997.js.map} +1 -1
- package/dist/esm/{image-source-f8e45250.js → image-source-960a10c0.js} +1 -1
- package/dist/esm/{image-source-f8e45250.js.map → image-source-960a10c0.js.map} +1 -1
- package/dist/esm/{index-932feda8.js → index-2c786087.js} +1 -1
- package/dist/esm/index-2c786087.js.map +1 -0
- package/dist/esm/{index-62ec26b4.js → index-8a3861a0.js} +1 -1
- package/dist/esm/{index-62ec26b4.js.map → index-8a3861a0.js.map} +1 -1
- package/dist/esm/index.js +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.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.entry.js +1 -1
- package/dist/esm/kol-combobox.entry.js +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-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-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-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/{label-5355d0b2.js → label-17021220.js} +1 -1
- package/dist/esm/{label-5355d0b2.js.map → label-17021220.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{open-cbfb3998.js → open-5fe331a2.js} +1 -1
- package/dist/esm/{open-cbfb3998.js.map → open-5fe331a2.js.map} +1 -1
- package/dist/esm/{prop.validators-bb13c77c.js → prop.validators-644974c7.js} +1 -1
- package/dist/esm/{prop.validators-bb13c77c.js.map → prop.validators-644974c7.js.map} +1 -1
- package/dist/esm/{rows-e07b2646.js → rows-20cf69b2.js} +1 -1
- package/dist/esm/{rows-e07b2646.js.map → rows-20cf69b2.js.map} +1 -1
- package/dist/esm/{show-fea62c9e.js → show-d79c4a16.js} +1 -1
- package/dist/esm/{show-fea62c9e.js.map → show-d79c4a16.js.map} +1 -1
- package/dist/esm/spell-check-8022aadd.js +4 -0
- package/dist/esm/{spell-check-6beed622.js.map → spell-check-8022aadd.js.map} +1 -1
- package/dist/esm/{suggestions-935a4e0c.js → suggestions-933c68f4.js} +1 -1
- package/dist/esm/{suggestions-935a4e0c.js.map → suggestions-933c68f4.js.map} +1 -1
- package/dist/esm/{table-settings-4fe55021.js → table-settings-9a700fb0.js} +1 -1
- package/dist/esm/{table-settings-4fe55021.js.map → table-settings-9a700fb0.js.map} +1 -1
- package/dist/esm/test-component.entry.js +1 -1
- package/dist/esm/{tooltip-align-4b5c8431.js → tooltip-align-f225c652.js} +1 -1
- package/dist/esm/{tooltip-align-4b5c8431.js.map → tooltip-align-f225c652.js.map} +1 -1
- package/dist/esm/{validation-06abd8ec.js → validation-4889471b.js} +1 -1
- package/dist/esm/{validation-06abd8ec.js.map → validation-4889471b.js.map} +1 -1
- package/dist/esm/{validation-b0361862.js → validation-d12dde72.js} +1 -1
- package/dist/esm/{validation-b0361862.js.map → validation-d12dde72.js.map} +1 -1
- package/dist/kolibri/{Alert-362a56d6.js → Alert-c7c350d4.js} +1 -1
- package/dist/kolibri/{Collapsible-f5aaa0af.js → Collapsible-a6a7a1ed.js} +1 -1
- package/dist/kolibri/{CustomSuggestionsOptionsGroup-45c3a085.js → CustomSuggestionsOptionsGroup-5dbe9972.js} +1 -1
- package/dist/kolibri/{FieldControlStateWrapper-5fe1febc.js → FieldControlStateWrapper-e723fa2b.js} +1 -1
- package/dist/kolibri/{Heading-a93a1765.js → Heading-268e2c44.js} +1 -1
- package/dist/kolibri/Icon-6863084d.js +4 -0
- package/dist/kolibri/{Input-f05ea4d5.js → Input-7414a2d3.js} +1 -1
- package/dist/kolibri/{InputStateWrapper-040f7635.js → InputStateWrapper-24d14c8a.js} +1 -1
- package/dist/kolibri/InternalUnderlinedBadgeText-a54af9a3.js +4 -0
- package/dist/kolibri/{Span-a625f565.js → Span-cf62b38f.js} +1 -1
- package/dist/kolibri/{access-and-short-key-7091d688.js → access-and-short-key-11f043b2.js} +1 -1
- package/dist/kolibri/align-460e0791.js +4 -0
- package/dist/kolibri/app-globals-181c68cb.js +4 -0
- package/dist/kolibri/{associated.controller-9e991177.js → associated.controller-d9fdc504.js} +1 -1
- package/dist/kolibri/{button-variant-68e61ccd.js → button-variant-88a113d1.js} +1 -1
- package/dist/kolibri/{color-adb63076.js → color-ba0da1d8.js} +1 -1
- package/dist/kolibri/{controller-71d68376.js → controller-2ef93a79.js} +1 -1
- package/dist/kolibri/{controller-f04a784c.js → controller-352b354a.js} +1 -1
- package/dist/kolibri/{controller-1be136a8.js → controller-97b1923e.js} +1 -1
- package/dist/kolibri/{controller-070818e3.js → controller-fe5f9430.js} +1 -1
- package/dist/kolibri/controller-icon-dc402b02.js +4 -0
- package/dist/kolibri/{controller-icon-9397b382.js.map → controller-icon-dc402b02.js.map} +1 -1
- package/dist/kolibri/custom-class-00e6a8e3.js +4 -0
- package/dist/kolibri/{dev.utils-ada1cd11.js → dev.utils-0d99621e.js} +1 -1
- package/dist/kolibri/devtools-0edd5497.js +4 -0
- package/dist/kolibri/{devtools-10e45767.js.map → devtools-0edd5497.js.map} +1 -1
- package/dist/kolibri/{disabled-66301c63.js → disabled-2cff4d2e.js} +1 -1
- package/dist/kolibri/{getRenderStates-3c94aee3.js → getRenderStates-2c7678ef.js} +1 -1
- package/dist/kolibri/has-closer-21c1c1a1.js +4 -0
- package/dist/kolibri/has-counter-c693fdf7.js +4 -0
- package/dist/kolibri/hide-label-c67b3beb.js +4 -0
- package/dist/kolibri/href-4c3ff009.js +4 -0
- package/dist/kolibri/{icons-ae235ff9.js → icons-74418997.js} +1 -1
- package/dist/kolibri/image-source-960a10c0.js +4 -0
- package/dist/kolibri/{index-932feda8.js → index-2c786087.js} +1 -1
- package/dist/kolibri/index-2c786087.js.map +1 -0
- package/dist/kolibri/{index-62ec26b4.js → index-8a3861a0.js} +1 -1
- package/dist/kolibri/{index-62ec26b4.js.map → index-8a3861a0.js.map} +1 -1
- package/dist/kolibri/index.esm.js +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.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.entry.js +1 -1
- package/dist/kolibri/kol-combobox.entry.js +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-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-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-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/label-17021220.js +4 -0
- package/dist/kolibri/open-5fe331a2.js +4 -0
- package/dist/kolibri/{prop.validators-bb13c77c.js → prop.validators-644974c7.js} +1 -1
- package/dist/kolibri/rows-20cf69b2.js +4 -0
- package/dist/kolibri/show-d79c4a16.js +4 -0
- package/dist/kolibri/spell-check-8022aadd.js +4 -0
- package/dist/kolibri/{suggestions-935a4e0c.js → suggestions-933c68f4.js} +1 -1
- package/dist/kolibri/{table-settings-4fe55021.js → table-settings-9a700fb0.js} +1 -1
- package/dist/kolibri/test-component.entry.js +1 -1
- package/dist/kolibri/tooltip-align-f225c652.js +4 -0
- package/dist/kolibri/validation-4889471b.js +4 -0
- package/dist/kolibri/{validation-b0361862.js → validation-d12dde72.js} +1 -1
- package/package.json +3 -3
- package/dist/cjs/app-globals-2d20db47.js +0 -4
- package/dist/cjs/controller-9087aeae.js +0 -4
- package/dist/cjs/custom-class-090248c5.js +0 -4
- package/dist/cjs/disabled-8e4f2f5c.js +0 -4
- package/dist/cjs/has-closer-70d42d31.js +0 -4
- package/dist/cjs/has-counter-fac5a323.js +0 -4
- package/dist/cjs/hide-label-a5f79571.js +0 -4
- package/dist/cjs/href-e0353cd7.js +0 -4
- package/dist/cjs/image-source-c7eb536a.js +0 -4
- package/dist/cjs/index-49ec9257.js.map +0 -1
- package/dist/cjs/open-10500c96.js +0 -4
- package/dist/cjs/rows-e801d3f8.js +0 -4
- package/dist/cjs/show-e401e023.js +0 -4
- package/dist/cjs/spell-check-c271d689.js +0 -4
- package/dist/cjs/tooltip-align-b25e613c.js +0 -4
- package/dist/esm/Icon-1679f3fc.js +0 -4
- package/dist/esm/custom-class-7ee02f93.js +0 -4
- package/dist/esm/index-932feda8.js.map +0 -1
- package/dist/esm/spell-check-6beed622.js +0 -4
- package/dist/kolibri/Icon-1679f3fc.js +0 -4
- package/dist/kolibri/InternalUnderlinedBadgeText-77ae0c4d.js +0 -4
- package/dist/kolibri/align-679f189f.js +0 -4
- package/dist/kolibri/app-globals-832318f2.js +0 -4
- package/dist/kolibri/controller-icon-9397b382.js +0 -4
- package/dist/kolibri/custom-class-7ee02f93.js +0 -4
- package/dist/kolibri/devtools-10e45767.js +0 -4
- package/dist/kolibri/has-closer-f231599a.js +0 -4
- package/dist/kolibri/has-counter-239ecfc9.js +0 -4
- package/dist/kolibri/hide-label-4a7cf616.js +0 -4
- package/dist/kolibri/href-8cf96f1c.js +0 -4
- package/dist/kolibri/image-source-f8e45250.js +0 -4
- package/dist/kolibri/index-932feda8.js.map +0 -1
- package/dist/kolibri/label-5355d0b2.js +0 -4
- package/dist/kolibri/open-cbfb3998.js +0 -4
- package/dist/kolibri/rows-e07b2646.js +0 -4
- package/dist/kolibri/show-fea62c9e.js +0 -4
- package/dist/kolibri/spell-check-6beed622.js +0 -4
- package/dist/kolibri/tooltip-align-4b5c8431.js +0 -4
- package/dist/kolibri/validation-06abd8ec.js +0 -4
- /package/dist/kolibri/{Alert-362a56d6.js.map → Alert-c7c350d4.js.map} +0 -0
- /package/dist/kolibri/{Collapsible-f5aaa0af.js.map → Collapsible-a6a7a1ed.js.map} +0 -0
- /package/dist/kolibri/{CustomSuggestionsOptionsGroup-45c3a085.js.map → CustomSuggestionsOptionsGroup-5dbe9972.js.map} +0 -0
- /package/dist/kolibri/{FieldControlStateWrapper-5fe1febc.js.map → FieldControlStateWrapper-e723fa2b.js.map} +0 -0
- /package/dist/kolibri/{Heading-a93a1765.js.map → Heading-268e2c44.js.map} +0 -0
- /package/dist/kolibri/{Icon-1679f3fc.js.map → Icon-6863084d.js.map} +0 -0
- /package/dist/kolibri/{Input-f05ea4d5.js.map → Input-7414a2d3.js.map} +0 -0
- /package/dist/kolibri/{InputStateWrapper-040f7635.js.map → InputStateWrapper-24d14c8a.js.map} +0 -0
- /package/dist/kolibri/{InternalUnderlinedBadgeText-77ae0c4d.js.map → InternalUnderlinedBadgeText-a54af9a3.js.map} +0 -0
- /package/dist/kolibri/{Span-a625f565.js.map → Span-cf62b38f.js.map} +0 -0
- /package/dist/kolibri/{access-and-short-key-7091d688.js.map → access-and-short-key-11f043b2.js.map} +0 -0
- /package/dist/kolibri/{align-679f189f.js.map → align-460e0791.js.map} +0 -0
- /package/dist/kolibri/{app-globals-832318f2.js.map → app-globals-181c68cb.js.map} +0 -0
- /package/dist/kolibri/{associated.controller-9e991177.js.map → associated.controller-d9fdc504.js.map} +0 -0
- /package/dist/kolibri/{button-variant-68e61ccd.js.map → button-variant-88a113d1.js.map} +0 -0
- /package/dist/kolibri/{color-adb63076.js.map → color-ba0da1d8.js.map} +0 -0
- /package/dist/kolibri/{controller-71d68376.js.map → controller-2ef93a79.js.map} +0 -0
- /package/dist/kolibri/{controller-f04a784c.js.map → controller-352b354a.js.map} +0 -0
- /package/dist/kolibri/{controller-1be136a8.js.map → controller-97b1923e.js.map} +0 -0
- /package/dist/kolibri/{controller-070818e3.js.map → controller-fe5f9430.js.map} +0 -0
- /package/dist/kolibri/{custom-class-7ee02f93.js.map → custom-class-00e6a8e3.js.map} +0 -0
- /package/dist/kolibri/{dev.utils-ada1cd11.js.map → dev.utils-0d99621e.js.map} +0 -0
- /package/dist/kolibri/{disabled-66301c63.js.map → disabled-2cff4d2e.js.map} +0 -0
- /package/dist/kolibri/{getRenderStates-3c94aee3.js.map → getRenderStates-2c7678ef.js.map} +0 -0
- /package/dist/kolibri/{has-closer-f231599a.js.map → has-closer-21c1c1a1.js.map} +0 -0
- /package/dist/kolibri/{has-counter-239ecfc9.js.map → has-counter-c693fdf7.js.map} +0 -0
- /package/dist/kolibri/{hide-label-4a7cf616.js.map → hide-label-c67b3beb.js.map} +0 -0
- /package/dist/kolibri/{href-8cf96f1c.js.map → href-4c3ff009.js.map} +0 -0
- /package/dist/kolibri/{icons-ae235ff9.js.map → icons-74418997.js.map} +0 -0
- /package/dist/kolibri/{image-source-f8e45250.js.map → image-source-960a10c0.js.map} +0 -0
- /package/dist/kolibri/{label-5355d0b2.js.map → label-17021220.js.map} +0 -0
- /package/dist/kolibri/{open-cbfb3998.js.map → open-5fe331a2.js.map} +0 -0
- /package/dist/kolibri/{prop.validators-bb13c77c.js.map → prop.validators-644974c7.js.map} +0 -0
- /package/dist/kolibri/{rows-e07b2646.js.map → rows-20cf69b2.js.map} +0 -0
- /package/dist/kolibri/{show-fea62c9e.js.map → show-d79c4a16.js.map} +0 -0
- /package/dist/kolibri/{spell-check-6beed622.js.map → spell-check-8022aadd.js.map} +0 -0
- /package/dist/kolibri/{suggestions-935a4e0c.js.map → suggestions-933c68f4.js.map} +0 -0
- /package/dist/kolibri/{table-settings-4fe55021.js.map → table-settings-9a700fb0.js.map} +0 -0
- /package/dist/kolibri/{tooltip-align-4b5c8431.js.map → tooltip-align-f225c652.js.map} +0 -0
- /package/dist/kolibri/{validation-06abd8ec.js.map → validation-4889471b.js.map} +0 -0
- /package/dist/kolibri/{validation-b0361862.js.map → validation-d12dde72.js.map} +0 -0
package/dist/kolibri/{associated.controller-9e991177.js → associated.controller-d9fdc504.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{a as t}from"./dev.utils-fab45cbc.js";import{i as e,j as i,l as s}from"./prop.validators-
|
4
|
+
import{a as t}from"./dev.utils-fab45cbc.js";import{i as e,j as i,l as s}from"./prop.validators-644974c7.js";const o=(t,i,s)=>{e(t,"_name",i,s)},a=t=>"KOL-BUTTON"===t||"KOL-COMBOBOX"===t||"KOL-INPUT-CHECKBOX"===t||"KOL-INPUT-COLOR"===t||"KOL-INPUT-DATE"===t||"KOL-INPUT-EMAIL"===t||"KOL-INPUT-FILE"===t||"KOL-INPUT-NUMBER"===t||"KOL-INPUT-PASSWORD"===t||"KOL-INPUT-RADIO"===t||"KOL-INPUT-RANGE"===t||"KOL-INPUT-TEXT"===t||"KOL-SELECT"===t||"KOL-SINGLE-SELECT"===t||"KOL-TEXTAREA"===t;class n{constructor(e,s,o){var r,n,l;if(this.experimentalMode=t(),this.setFormAssociatedValue=t=>{var e;const s=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==s&&""!==s||i(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.component=e,this.host=this.findHostWithShadowRoot(o),this.type=s,this.experimentalMode&&a(null===(r=this.host)||void 0===r?void 0:r.tagName)&&e._name){switch(null===(n=this.host)||void 0===n||n.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.type){case"button":case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type",this.type);break;case"select":this.formAssociated=document.createElement("select"),this.formAssociated.setAttribute("multiple","");break;case"textarea":this.formAssociated=document.createElement("textarea");break;default:this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden")}this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(l=this.host)||void 0===l||l.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,i){if(this.experimentalMode)try{if("boolean"!=typeof(i="object"==typeof i&&null!==i?JSON.stringify(i):i)&&"number"!=typeof i&&"string"!=typeof i)throw new Error("Invalid value type: "+typeof i);null==e||e.setAttribute(t,`${i}`)}catch(i){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return s(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,i){if(i)switch(this.type){case"file":i.files=t;break;case"select":i.querySelectorAll("option").forEach((t=>{i.removeChild(t)})),Array.isArray(t)&&t.forEach((t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),i.appendChild(t)}}));break;case"radio":"string"==typeof e&&(i.setAttribute("value",e),i.setAttribute("checked",""),i.value=e);break;default:"string"==typeof e?(i.setAttribute("value",e),i.value=e):(i.removeAttribute("value"),i.value="")}}validateName(t){o(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&i("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}validateSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}export{n as A};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{w as t,i as a,b as o}from"./prop.validators-
|
4
|
+
import{w as t,i as a,b as o}from"./prop.validators-644974c7.js";const r=["button","link","tab","treeitem"],n=(a,i)=>{t(a,"_role",(t=>"string"==typeof t&&r.includes(t)),new Set([`KoliBriAlternativeButtonLinkRole {${r.join(", ")}`]),i)},e=(t,r)=>{a(t,"_ariaDescription",r)},i=(t,a)=>{o(t,"_ariaExpanded",a)},s=["primary","secondary","normal","tertiary","danger","ghost","custom"],c=(a,r)=>{t(a,"_variant",(t=>"string"==typeof t&&s.includes(t)),new Set([`KoliBriButtonVariant {${s.join(", ")}`]),r,{defaultValue:"normal"})};export{i as a,n as b,c,e as v};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{L as e}from"./dev.utils-fab45cbc.js";import{r,d as a,w as t,a as n}from"./prop.validators-
|
4
|
+
import{L as e}from"./dev.utils-fab45cbc.js";import{r,d as a,w as t,a as n}from"./prop.validators-644974c7.js";var l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},o=l,i=u,s={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function u(e){var r,a,t=[],n=1;if("string"==typeof e)if(e=e.toLowerCase(),o[e])t=o[e].slice(),a="rgb";else if("transparent"===e)n=0,a="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var l=e.slice(1);n=1,(g=l.length)<=4?(t=[parseInt(l[0]+l[0],16),parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16)],4===g&&(n=parseInt(l[3]+l[3],16)/255)):(t=[parseInt(l[0]+l[1],16),parseInt(l[2]+l[3],16),parseInt(l[4]+l[5],16)],8===g&&(n=parseInt(l[6]+l[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),a="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var i=r[1],u="rgb"===i;a=l=i.replace(/a$/,"");var g="cmyk"===l?4:"gray"===l?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,r){if(/%$/.test(e))return r===g?parseFloat(e)/100:"rgb"===l?255*parseFloat(e)/100:parseFloat(e);if("h"===l[r]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==s[e])return s[e]}return parseFloat(e)})),i===l&&t.push(1),n=u||void 0===t[g]?1:t[g],t=t.slice(0,g)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),a=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],a="rgb",n=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(a="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(a="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(n/=100)):(a="rgb",t=[e>>>16,(65280&e)>>>8,255&e]);return{space:a,values:t,alpha:n}}var g=i,f=function(e){var r;Array.isArray(e)&&e.raw&&(e=String.raw.apply(null,arguments));var a=g(e);if(!a.space)return[];var o=[0,0,0],t="h"===a.space[0]?[360,100,100]:[255,255,255];return(r=Array(3))[0]=Math.min(Math.max(a.values[0],o[0]),t[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),t[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),t[2]),"h"===a.space[0]&&(r=d(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function d(e){var r,a,o,t,n,l=e[0]/360,i=e[1]/100,s=e[2]/100,u=0;if(0===i)return[n=255*s,n,n];for(r=2*s-(a=s<.5?s*(1+i):s+i-s*i),t=[0,0,0];u<3;)(o=l+1/3*-(u-1))<0?o++:o>1&&o--,n=6*o<1?r+6*(a-r)*o:2*o<1?a:3*o<2?r+(a-r)*(2/3-o)*6:r,t[u++]=255*n;return t}const c=f,h=(e,r,a)=>(299*e+587*r+114*a)/1e3>=128?-1:1,p=(e,o,t,n=1)=>{const l=[Math.max(Math.min(Math.round(o[0]+n*Math.max(1,o[0]/100)),255),0),Math.max(Math.min(Math.round(o[1]+n*Math.max(1,o[1]/100)),255),0),Math.max(Math.min(Math.round(o[2]+n*Math.max(1,o[2]/100)),255),0)],i=a(r.hex(`rgba(${e.join(",")},1)`),r.hex(`rgba(${l.join(",")},1)`)),s=l[0]+l[1]+l[2];return 0===s||765===s||i>t?{background:e,foreground:l,contrast:i}:p(e,l,t,n)},y=new Map,b=(e,r,a,o=1)=>{if(y.has(e))return y.get(e);const t=p(e,r,a,o);return y.set(e,t),t},v=(e,a=7)=>{let o=[0,0,0,1],t=[255,255,255,1];"string"==typeof e?(o=c(e),t=o):"object"==typeof e&&null!==e&&"string"==typeof e.background&&"string"==typeof e.foreground&&(o=c(e.background),t="string"==typeof e.foreground?c(e.foreground):o);const n=h(o[0],o[1],o[2]),l=b([o[0],o[1],o[2]],[t[0],t[1],t[2]],a,n);return t=[...l.foreground,1],{background:r.hex(`rgba(${o.join(",")})`),foreground:r.hex(`rgba(${t.join(",")})`),contrast:l.contrast}},m=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function k(e){return m.test(e)}function w(e){if(e.startsWith("{"))try{const r=JSON.parse(e);if($(r))return{type:"ColorPair",value:r}}catch(e){return{type:null,value:null}}return{type:null,value:null}}function M(e){if(e)if("string"==typeof e){if(k(e))return{type:"string",valid:!0,value:e};{const r=w(e);if(r.value)return{type:r.type,valid:!0,value:r.value}}}else{const r=e;if($(r))return{type:"ColorPair",valid:!0,value:r}}return{type:null,valid:!1,value:""}}function $(e){return!("object"!=typeof e||!e||"string"!=typeof e.backgroundColor||!("string"==typeof e.foregroundColor||e.foregroundColor&&"string"==typeof e.foregroundColor.primary&&"string"==typeof e.foregroundColor.secondary&&"string"==typeof e.foregroundColor.neutral))}function q(e){const r=M(e);switch(r.type){case null:return!1;case"string":case"ColorPair":return r.valid}}const I=(e,r,a)=>{t(e,"_color",q,new Set(["rgb in hex","ColorPair"]),r,a)},A=r=>{var a;let o;const t=M(r);switch(t.type){case"string":o=v(t.value);break;case"ColorPair":{const e=t.value;let r="";"string"==typeof e.foregroundColor?r=e.foregroundColor:(null===(a=e.foregroundColor)||void 0===a?void 0:a.primary)&&(r=e.foregroundColor.primary),r&&"string"==typeof r||(r="#fff"),o=v({background:e.backgroundColor,foreground:r});break}case null:e.warn(`_color was empty or invalid (${JSON.stringify(r)})`,{forceLog:!0}),o=v({background:"#000",foreground:"#000"})}return o.contrast<7&&n(`[KolBadge] The contrast of ${o.contrast} (≥7, AAA) is to low, between the color pair ${o.background} and ${o.foreground}.`),{backgroundColor:o.background,foregroundColor:o.foreground}};export{c,A as h,I as v};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{g as e}from"./component-names-7ee7402b.js";import{n as o,K as t,j as n}from"./prop.validators-
|
4
|
+
import{g as e}from"./component-names-7ee7402b.js";import{n as o,K as t,j as n}from"./prop.validators-644974c7.js";import{a as i,L as s}from"./dev.utils-fab45cbc.js";const f=t=>{for(i()&&(n("↓ Search form element start."),s.debug(t));t instanceof HTMLElement&&"FORM"!==t.tagName&&t.tagName!==e.toUpperCase();){try{t=t.parentElement instanceof HTMLElement?t.parentElement:t.parentNode instanceof ShadowRoot?t.parentNode.host:null}catch(e){}i()&&(s.debug(t),n("↑ Search form element finished."))}return t},a=(n={})=>{var a,s;const i=f(n.form);if(i instanceof HTMLElement){const n=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===i.tagName)o(n,i),i.dispatchEvent(n);else if(i.tagName===e.toUpperCase()){o(n,t.querySelector("form",i));const e=i;"function"==typeof(null===(a=e._on)||void 0===a?void 0:a.onReset)&&(null===(s=e._on)||void 0===s||s.onReset(n))}}},l=(a={})=>{const s=f(a.form);if(s instanceof HTMLElement){const a=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:s});if("FORM"===s.tagName)i()&&!1===s.noValidate&&n("If you have not focusable or hidden form fields in your form, you should enable noValidate for your form.",{force:!0}),setTimeout((()=>{"function"==typeof s.requestSubmit?s.requestSubmit():(o(a,s),s.dispatchEvent(a))}));else if(s.tagName===e.toUpperCase()){o(a,t.querySelector("form",s));const e=s;setTimeout((()=>{var t,o;"function"==typeof(null===(t=e._on)||void 0===t?void 0:t.onSubmit)&&(null===(o=e._on)||void 0===o||o.onSubmit(a))}))}}};export{a,l as p};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{I as s}from"./controller-
|
4
|
+
import{I as s}from"./controller-fe5f9430.js";import{v as t}from"./spell-check-8022aadd.js";import{w as e}from"./prop.validators-644974c7.js";import{v as o}from"./suggestions-933c68f4.js";const i=["text","search","url","tel"];class r extends s{constructor(t,o,e){super(t,o,e),this.component=t}validateSuggestions(t){o(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class a extends r{constructor(t,o,e){super(t,o,e),this.hasError=!1,this.component=t}validateSpellCheck(o){t(this.component,o)}validateType(t){e(this.component,"_type",(t=>"string"==typeof t&&i.includes(t)),new Set([`String {${i.join(", ")}`]),t)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}export{r as I,a};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{I as t}from"./getRenderStates-
|
4
|
+
import{I as t}from"./getRenderStates-2c7678ef.js";import{a as s,g as e,b as i,w as a,s as r}from"./prop.validators-644974c7.js";import{b as o,c as n}from"./label-17021220.js";const f=t=>{if("object"==typeof t&&null!==t){if("string"==typeof t.label&&t.label.length>0)return t.disabled=!0===t.disabled,t.label=`${t.label}`.trim(),!1===o(t.label,3)&&!1===n(t.label)&&s(`A differing Aria-Label (${t.label}) is not accessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(t.options)||void 0===t.options.find((t=>!1===f(t)));if("number"==typeof t.label)return!0}return!1},l=(t,o,a={})=>{e(t,"_options",(t=>"object"==typeof t&&null!==t&&"string"==typeof t.label&&t.label.length>0),o,void 0,a)},h=(t,o,a={})=>{e(t,"_options",f,o,void 0,a)},c=(t,e)=>{i(t,"_required",e)},u=["horizontal","vertical"],p=(t,e,o="")=>{e.forEach(((e,a)=>{const i=`${o}-${a}`;"object"==typeof e&&null!==e&&"string"==typeof e.label&&e.label.length>0&&(Array.isArray(e.options)?p(t,e.options,i):t.set(i,e))}))};class d extends t{constructor(t,e,o){super(t,e,o),this.component=t}validateRequired(t){c(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateRequired(this.component._required)}}class b extends d{constructor(t,e,o){super(t,e,o),this.keyOptionMap=new Map,this.getOptionByKey=t=>this.keyOptionMap.get(t),this.afterPatchOptions=(t,e,o,a)=>{"_value"===a&&this.setFormAssociatedValue(t)},this.beforePatchOptions=(t,e)=>{const o=e.has("_options")?e.get("_options"):this.component.state._options;Array.isArray(o)&&o.length>0&&(this.keyOptionMap.clear(),p(this.keyOptionMap,o))},this.component=t}validateOrientation(t){a(this.component,"_orientation",(t=>"string"==typeof t&&u.includes(t)),new Set([`Orientation {${u.join(", ")}`]),t,{defaultValue:"vertical"})}validateOptions(t){l(this.component,t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateValue(t){t=Array.isArray(t)?t[0]:t,r(this.component,"_value",t,{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions})}componentWillLoad(){super.componentWillLoad(),this.validateOrientation(this.component._orientation),this.validateOptions(this.component._options),this.validateValue(this.component._value)}}export{d as I,b as a,l as b,p as f,h as v};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{w as t,k as i,i as s,b as a}from"./prop.validators-
|
4
|
+
import{w as t,k as i,i as s,b as a}from"./prop.validators-644974c7.js";import{I as e}from"./controller-icon-dc402b02.js";import{v as h}from"./has-counter-c693fdf7.js";const o=["default","visibility-toggle"],r=(e,a)=>{t(e,"_variant",(t=>"string"==typeof t&&o.includes(t)),new Set(o),a)};class l extends e{constructor(t,e,a){super(t,e,a),this.afterSyncCharCounter=()=>{"string"==typeof this.component._value&&this.component._value.length>0&&(this.component.state._currentLength=this.component._value.length)},this.component=t}validateAutoComplete(e){t(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),e)}validateHasCounter(t){h(this.component,t,{hooks:{afterPatch:this.afterSyncCharCounter}})}validateVariant(t){r(this.component,t)}validateMaxLength(t){i(this.component,"_maxLength",t,{hooks:{afterPatch:this.afterSyncCharCounter},min:0})}validatePattern(t){s(this.component,"_pattern",t)}validatePlaceholder(t){s(this.component,"_placeholder",t)}validateReadOnly(t){a(this.component,"_readOnly",t)}validateRequired(t){a(this.component,"_required",t)}validateValue(t){s(this.component,"_value",t,{hooks:{afterPatch:this.afterSyncCharCounter}}),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateHasCounter(this.component._hasCounter),this.validateMaxLength(this.component._maxLength),this.validatePattern(this.component._pattern),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateValue(this.component._value),this.validateVariant(this.component._variant)}}export{l as I};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
3
|
+
*/
|
4
|
+
import{h as n}from"./index-8a3861a0.js";import{i as t}from"./InternalUnderlinedBadgeText-a54af9a3.js";import{i as o}from"./isObject-ffcbbb76.js";import{_ as e}from"./tslib.es6-1173d062.js";import{a as s}from"./component-names-7ee7402b.js";import{K as i}from"./Icon-6863084d.js";import{c}from"./clsx-09a06a12.js";import{c as a,a as r,I as l}from"./getRenderStates-2c7678ef.js";import{v as d}from"./icons-74418997.js";const m=(s,t)=>{var{position:o="start",class:i}=s,a=e(s,["position","class"]);const r="kol-input-container__adornment",l=`${r}--${o}`;return n("div",Object.assign({class:c(r,l,i)},a),t)},b=m;function u(n){return!!n&&(Array.isArray(n)?n.length>0:Boolean(n))}const p=(s,t)=>{var{class:o}=s,i=e(s,["class"]);return n("div",Object.assign({class:c("kol-input-container__container",o)},i),t)},f=(s,t)=>{const{class:o,startAdornment:i,endAdornment:r,disabled:l,msg:d,touched:m,containerProps:g,startAdornmentProps:j,endAdornmentProps:_}=s,h=e(s,["class","startAdornment","endAdornment","disabled","msg","touched","containerProps","startAdornmentProps","endAdornmentProps"]),k=a(d,m),f={"kol-input-container--disabled":l,[`kol-input-container--${(null==d?void 0:d.type)||"error"}`]:k},A=Object.assign({class:c("kol-input-container",f,o)},h);return u(i)||u(r)?n("div",Object.assign({},A),n(b,Object.assign({},j,{position:"start"}),i),n(p,Object.assign({},g),t),n(b,Object.assign({},_,{position:"end"}),r)):n("div",Object.assign({},A),n(p,Object.assign({},g),t))},j=f,_=t=>{const{label:o,icons:i,hideLabel:a,disabled:c,onClick:r}=t,l=e(t,["label","icons","hideLabel","disabled","onClick"]);return n(s,Object.assign({_label:o,_disabled:c,_icons:i,_hideLabel:a,_on:{onClick:r}},l))},O=_,h=s=>{const{componentName:t="button",label:o,icon:a,onClick:c}=s,r=e(s,["componentName","label","icon","onClick"]);return n("button"===t?O:i,Object.assign({label:o||"",hideLabel:!0,icons:`codicon codicon-${a}`,onClick:c},r))},k=h;function v(n){let s,t;return"_icons"in n&&(s=n._icons),"_smartButton"in n&&(t=n._smartButton),{icons:s,smartButton:t,disabled:n._disabled,msg:r(n._msg),touched:n._touched}}const A=({state:s,endAdornment:e},i)=>{const{icons:a,smartButton:c,disabled:r,msg:l,touched:d}=v(s);let m=null==a?void 0:a.left;t(m)&&(m={icon:m});let p=null==a?void 0:a.right;t(p)&&(p={icon:p});const b=[],u=[];return e&&(Array.isArray(e)?u.push(...e):u.push(e)),m&&b.push(n(k,Object.assign({componentName:"icon",class:"kol-input-container__icon"},o(m)?m:{}))),o(c)&&u.push(n(k,Object.assign({componentName:"button",class:"kol-input-container__smart-button"},c,{hideLabel:!0,disabled:r}))),p&&u.push(n(k,Object.assign({componentName:"icon",class:"kol-input-container__icon"},o(p)?p:{}))),n(j,{disabled:r,msg:l,touched:d,startAdornment:b,endAdornment:u},i)},g=A;class C extends l{constructor(n,s,t){super(n,s,t),this.component=n}validateIcons(n){d(this.component,n)}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons)}}export{C as I,g as K,k as a};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["InputAdornment","_a","children","position","class","className","other","__rest","rootClassName","positionClassName","h","Object","assign","clsx","InputAdornment$1","hasItems","items","Array","isArray","length","Boolean","Container","KolInputContainerFc","props","classNames","startAdornment","endAdornment","disabled","msg","touched","containerProps","startAdornmentProps","endAdornmentProps","showMsg","checkHasMsg","stateCssClasses","type","baseProps","KolInputContainerFc$2","KolButtonFc","label","icons","hideLabel","onClick","KolButtonWcTag","_label","_disabled","_icons","_hideLabel","_on","KolButtonFc$1","KolIconButtonFc","componentName","icon","Component","KolIconFc","KolIconButtonFc$1","getInputContainerProps","state","undefined","smartButton","_smartButton","convertMsgToInternMsg","_msg","_touched","InputContainerStateWrapperFc","defaultEndAdornment","leftIconProps","left","isString","rightIconProps","right","push","isObject","InputIconController","InputController","constructor","component","name","host","super","this","validateIcons","value","componentWillLoad"],"sources":["src/functional-components/InputAdornment/InputAdornment.tsx","src/functional-components/InputContainer/InputContainer.tsx","src/functional-components/Button/Button.tsx","src/functional-components/IconButton/IconButton.tsx","src/functional-component-wrappers/InputContainerStateWrapper/InputContainerStateWrapper.tsx","src/components/@deprecated/input/controller-icon.ts"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\n\nexport type InputAdornmentProps = JSXBase.HTMLAttributes<HTMLDivElement> & {\n\tposition?: 'start' | 'end';\n};\n\nconst InputAdornment: FC<InputAdornmentProps> = ({ position = 'start', class: className, ...other }, children) => {\n\tconst rootClassName = `kol-input-container__adornment`;\n\tconst positionClassName = `${rootClassName}--${position}`;\n\n\treturn (\n\t\t<div class={clsx(rootClassName, positionClassName, className)} {...other}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default InputAdornment;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport clsx from 'clsx';\nimport type { JSXBase, VNode } from '@stencil/core/internal';\nimport InputAdornment from '../InputAdornment';\nimport { checkHasMsg, type InternMsgPropType } from '../../schema';\n\ntype InputAdornmentType = VNode | VNode[] | null;\n\nexport type InputContainerProps = JSXBase.HTMLAttributes & {\n\tstartAdornment?: InputAdornmentType;\n\tendAdornment?: InputAdornmentType;\n\tdisabled?: boolean;\n\tmsg?: InternMsgPropType;\n\ttouched?: boolean;\n\n\tcontainerProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n\tstartAdornmentProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n\tendAdornmentProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n};\n\nfunction hasItems(items?: InputAdornmentType): boolean {\n\tif (!items) {\n\t\treturn false;\n\t}\n\n\treturn Array.isArray(items) ? items.length > 0 : Boolean(items);\n}\n\nconst Container: FC<JSXBase.HTMLAttributes<HTMLDivElement>> = ({ class: className, ...other }, children) => {\n\treturn (\n\t\t<div class={clsx('kol-input-container__container', className)} {...other}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst KolInputContainerFc: FC<InputContainerProps> = (props, children) => {\n\tconst { class: classNames, startAdornment, endAdornment, disabled, msg, touched, containerProps, startAdornmentProps, endAdornmentProps, ...other } = props;\n\tconst showMsg = checkHasMsg(msg, touched);\n\n\tconst stateCssClasses = {\n\t\t['kol-input-container--disabled']: disabled,\n\t\t[`kol-input-container--${msg?.type || 'error'}`]: showMsg,\n\t};\n\n\tconst baseProps: JSXBase.HTMLAttributes<HTMLDivElement> = {\n\t\tclass: clsx('kol-input-container', stateCssClasses, classNames),\n\t\t...other,\n\t};\n\n\tif (!hasItems(startAdornment) && !hasItems(endAdornment)) {\n\t\treturn (\n\t\t\t<div {...baseProps}>\n\t\t\t\t<Container {...containerProps}>{children}</Container>\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div {...baseProps}>\n\t\t\t<InputAdornment {...startAdornmentProps} position=\"start\">\n\t\t\t\t{startAdornment}\n\t\t\t</InputAdornment>\n\t\t\t<Container {...containerProps}>{children}</Container>\n\t\t\t<InputAdornment {...endAdornmentProps} position=\"end\">\n\t\t\t\t{endAdornment}\n\t\t\t</InputAdornment>\n\t\t</div>\n\t);\n};\n\nexport default KolInputContainerFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\nimport type { InternalButtonProps } from '../../schema';\n\nexport type ButtonProps = Partial<InternalButtonProps> & {\n\tlabel: string;\n\tclass?: string;\n\tonClick?: (event: MouseEvent) => void;\n};\n\nconst KolButtonFc: FC<ButtonProps> = (props) => {\n\tconst { label, icons, hideLabel, disabled, onClick, ...other } = props;\n\n\treturn <KolButtonWcTag _label={label} _disabled={disabled} _icons={icons} _hideLabel={hideLabel} _on={{ onClick }} {...other} />;\n};\n\nexport default KolButtonFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport KolButtonFc, { type ButtonProps } from '../Button';\nimport KolIconFc, { type IconProps } from '../Icon';\n\ntype IconType = Partial<Omit<IconProps, 'icons'>> & {\n\tcomponentName: 'icon';\n\ticon?: string;\n\tclass?: string;\n\n\tonClick?: (event: MouseEvent) => void;\n};\n\ntype ButtonType = Partial<Omit<ButtonProps, 'icons'>> & {\n\tcomponentName: 'button';\n\ticon?: string;\n\tlabel?: string;\n\tclass?: string;\n\n\tonClick?: (event: MouseEvent) => void;\n};\n\nexport type IconButtonProps = IconType | ButtonType;\n\n/**\n * `KolIconButtonFc` is a functional component that renders either a Button or an Icon based on the provided props.\n *\n * Depending on the value of the `componentName` prop, either a Button (`KolButtonFc`) or an Icon (`KolIconFc`) is rendered.\n * Both components support optional `icon` props for displaying an icon and an optional `onClick` handler for user interactions.\n *\n * This component combines the flexibility of rendering either a button with an optional label or a simple icon, while ensuring that unnecessary props for the selected element are not passed.\n *\n * Supported props:\n * - `componentName`: Specifies whether a 'button' or 'icon' should be rendered. Default is 'button'.\n * - `label`: An optional label, which is only shown for Buttons.\n * - `icon`: The name of the icon (e.g., \"home\", \"edit\") or the Codicon class used for the icon display.\n * - `class`: Optional CSS class for additional styling customization.\n * - `onClick`: Optional click handler for user interactions.\n *\n * Example usage:\n * ```tsx\n * <KolIconButtonFc componentName=\"button\" label=\"Submit\" icon=\"check\" onClick={handleClick} />\n * <KolIconButtonFc componentName=\"icon\" icon=\"alert\" onClick={handleClick} />\n * ```\n *\n * @param {IconButtonProps} props - The properties that customize the component, including the selection of the component type (Button or Icon) and other specific attributes.\n * @returns {JSX.Element} - The rendered JSX element (Button or Icon).\n */\nconst KolIconButtonFc: FC<IconButtonProps> = (props) => {\n\tconst { componentName = 'button', label, icon, onClick, ...other } = props;\n\tconst Component = componentName === 'button' ? KolButtonFc : KolIconFc;\n\n\treturn <Component label={label || ''} hideLabel icons={`codicon codicon-${icon}`} onClick={onClick} {...other} />;\n};\n\nexport default KolIconButtonFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { InternMsgPropType } from '../../schema';\nimport {\n\ttype ButtonProps,\n\ttype IconOrIconClass,\n\ttype InputColorStates,\n\ttype InputEmailStates,\n\ttype InputFileStates,\n\ttype InputNumberStates,\n\ttype InputPasswordStates,\n\ttype InputRangeStates,\n\ttype InputTextStates,\n\ttype KoliBriHorizontalIcons,\n\ttype TextareaStates,\n\ttype SelectStates,\n\tconvertMsgToInternMsg,\n} from '../../schema';\n\nimport KolInputContainerFc, { type InputContainerProps } from '../../functional-components/InputContainer';\nimport KolIconButtonFc from '../../functional-components/IconButton';\nimport { isObject, isString } from 'lodash-es';\n\ntype InputState =\n\t| TextareaStates\n\t| SelectStates\n\t| InputTextStates\n\t| InputEmailStates\n\t| InputPasswordStates\n\t| InputNumberStates\n\t| InputColorStates\n\t| InputFileStates\n\t| InputRangeStates;\n\nexport type InputContainerStateWrapperProps = Partial<InputContainerProps> & {\n\tstate: InputState;\n};\n\nfunction getInputContainerProps(state: InputState): {\n\ticons?: KoliBriHorizontalIcons;\n\tsmartButton?: ButtonProps;\n\tdisabled?: boolean;\n\tmsg?: InternMsgPropType;\n\ttouched?: boolean;\n} {\n\tlet icons: KoliBriHorizontalIcons | undefined = undefined;\n\tlet smartButton: ButtonProps | undefined;\n\n\tif ('_icons' in state) {\n\t\ticons = state._icons;\n\t}\n\n\tif ('_smartButton' in state) {\n\t\tsmartButton = state._smartButton;\n\t}\n\n\treturn {\n\t\ticons,\n\t\tsmartButton,\n\t\tdisabled: state._disabled,\n\t\tmsg: convertMsgToInternMsg(state._msg),\n\t\ttouched: state._touched,\n\t};\n}\n\nconst InputContainerStateWrapperFc: FC<InputContainerStateWrapperProps> = ({ state, endAdornment: defaultEndAdornment }, children) => {\n\tconst { icons, smartButton, disabled, msg, touched } = getInputContainerProps(state);\n\n\tlet leftIconProps: IconOrIconClass | undefined = icons?.left;\n\tif (isString(leftIconProps)) {\n\t\tleftIconProps = { icon: leftIconProps };\n\t}\n\n\tlet rightIconProps: IconOrIconClass | undefined = icons?.right;\n\tif (isString(rightIconProps)) {\n\t\trightIconProps = { icon: rightIconProps };\n\t}\n\n\tconst startAdornment = [];\n\tconst endAdornment = [];\n\n\tif (defaultEndAdornment) {\n\t\tif (Array.isArray(defaultEndAdornment)) {\n\t\t\tendAdornment.push(...defaultEndAdornment);\n\t\t} else {\n\t\t\tendAdornment.push(defaultEndAdornment);\n\t\t}\n\t}\n\n\tif (leftIconProps) {\n\t\tstartAdornment.push(<KolIconButtonFc componentName=\"icon\" class=\"kol-input-container__icon\" {...(isObject(leftIconProps) ? leftIconProps : {})} />);\n\t}\n\n\tif (isObject(smartButton)) {\n\t\tendAdornment.push(\n\t\t\t<KolIconButtonFc componentName=\"button\" class=\"kol-input-container__smart-button\" {...smartButton} hideLabel={true} disabled={disabled} />,\n\t\t);\n\t}\n\n\tif (rightIconProps) {\n\t\tendAdornment.push(<KolIconButtonFc componentName=\"icon\" class=\"kol-input-container__icon\" {...(isObject(rightIconProps) ? rightIconProps : {})} />);\n\t}\n\n\treturn (\n\t\t<KolInputContainerFc disabled={disabled} msg={msg} touched={touched} startAdornment={startAdornment} endAdornment={endAdornment}>\n\t\t\t{children}\n\t\t</KolInputContainerFc>\n\t);\n};\n\nexport default InputContainerStateWrapperFc;\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { IconsHorizontalPropType } from '../../../schema';\nimport { validateIcons } from '../../../schema';\n\nimport { InputController } from './controller';\n\nimport type { Props, Watches } from './types-icon';\n\nexport class InputIconController extends InputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateIcons(value?: IconsHorizontalPropType): void {\n\t\tvalidateIcons(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateIcons(this.component._icons);\n\t}\n}\n"],"mappings":";;;qaAQA,MAAMA,EAA0C,CAACC,EAAoDC,K,IAApDC,SAAEA,EAAW,QAASC,MAAOC,GAASJ,EAAKK,EAAKC,EAAAN,EAAhD,sBAChD,MAAMO,EAAgB,iCACtB,MAAMC,EAAoB,GAAGD,MAAkBL,IAE/C,OACCO,EAAA,MAAAC,OAAAC,OAAA,CAAKR,MAAOS,EAAKL,EAAeC,EAAmBJ,IAAgBC,GACjEJ,EACI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7BA,EAAiB,CAAEjB,KAAMiB,E,CAG1B,MAAM7C,EAAiB,GACvB,MAAMC,EAAe,GAErB,GAAIwC,EAAqB,CACxB,GAAIjD,MAAMC,QAAQgD,GAAsB,CACvCxC,EAAa8C,QAAQN,E,KACf,CACNxC,EAAa8C,KAAKN,E,EAIpB,GAAIC,EAAe,CAClB1C,EAAe+C,KAAK9D,EAACyC,EAAexC,OAAAC,OAAA,CAACwC,cAAc,OAAOhD,MAAM,6BAAiCqE,EAASN,GAAiBA,EAAgB,K,CAG5I,GAAIM,EAASb,GAAc,CAC1BlC,EAAa8C,KACZ9D,EAACyC,EAAexC,OAAAC,OAAA,CAACwC,cAAc,SAAShD,MAAM,qCAAwCwD,EAAW,CAAElB,UAAW,KAAMf,SAAUA,K,CAIhI,GAAI2C,EAAgB,CACnB5C,EAAa8C,KAAK9D,EAACyC,EAAexC,OAAAC,OAAA,CAACwC,cAAc,OAAOhD,MAAM,6BAAiCqE,EAASH,GAAkBA,EAAiB,K,CAG5I,OACC5D,EAACY,EAAmB,CAACK,SAAUA,EAAUC,IAAKA,EAAKC,QAASA,EAASJ,eAAgBA,EAAgBC,aAAcA,GACjHxB,EACoB,EAIxB,MAAAoB,EAAe2C,E,MCpGFS,UAA4BC,EAGxC,WAAAC,CAAmBC,EAA8CC,EAAcC,GAC9EC,MAAMH,EAAWC,EAAMC,GACvBE,KAAKJ,UAAYA,C,CAGX,aAAAK,CAAcC,GACpBD,EAAcD,KAAKJ,UAAWM,E,CAGxB,iBAAAC,GACNJ,MAAMI,oBACNH,KAAKC,cAAcD,KAAKJ,UAAU9B,O","ignoreList":[]}
|
1
|
+
{"version":3,"names":["InputAdornment","_a","children","position","class","className","other","__rest","rootClassName","positionClassName","h","Object","assign","clsx","InputAdornment$1","hasItems","items","Array","isArray","length","Boolean","Container","KolInputContainerFc","props","classNames","startAdornment","endAdornment","disabled","msg","touched","containerProps","startAdornmentProps","endAdornmentProps","showMsg","checkHasMsg","stateCssClasses","type","baseProps","KolInputContainerFc$2","KolButtonFc","label","icons","hideLabel","onClick","KolButtonWcTag","_label","_disabled","_icons","_hideLabel","_on","KolButtonFc$1","KolIconButtonFc","componentName","icon","Component","KolIconFc","KolIconButtonFc$1","getInputContainerProps","state","undefined","smartButton","_smartButton","convertMsgToInternMsg","_msg","_touched","InputContainerStateWrapperFc","defaultEndAdornment","leftIconProps","left","isString","rightIconProps","right","push","isObject","InputIconController","InputController","constructor","component","name","host","super","this","validateIcons","value","componentWillLoad"],"sources":["src/functional-components/InputAdornment/InputAdornment.tsx","src/functional-components/InputContainer/InputContainer.tsx","src/functional-components/Button/Button.tsx","src/functional-components/IconButton/IconButton.tsx","src/functional-component-wrappers/InputContainerStateWrapper/InputContainerStateWrapper.tsx","src/components/@deprecated/input/controller-icon.ts"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\n\nexport type InputAdornmentProps = JSXBase.HTMLAttributes<HTMLDivElement> & {\n\tposition?: 'start' | 'end';\n};\n\nconst InputAdornment: FC<InputAdornmentProps> = ({ position = 'start', class: className, ...other }, children) => {\n\tconst rootClassName = `kol-input-container__adornment`;\n\tconst positionClassName = `${rootClassName}--${position}`;\n\n\treturn (\n\t\t<div class={clsx(rootClassName, positionClassName, className)} {...other}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default InputAdornment;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport clsx from 'clsx';\nimport type { JSXBase, VNode } from '@stencil/core/internal';\nimport InputAdornment from '../InputAdornment';\nimport { checkHasMsg, type InternMsgPropType } from '../../schema';\n\ntype InputAdornmentType = VNode | VNode[] | null;\n\nexport type InputContainerProps = JSXBase.HTMLAttributes & {\n\tstartAdornment?: InputAdornmentType;\n\tendAdornment?: InputAdornmentType;\n\tdisabled?: boolean;\n\tmsg?: InternMsgPropType;\n\ttouched?: boolean;\n\n\tcontainerProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n\tstartAdornmentProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n\tendAdornmentProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n};\n\nfunction hasItems(items?: InputAdornmentType): boolean {\n\tif (!items) {\n\t\treturn false;\n\t}\n\n\treturn Array.isArray(items) ? items.length > 0 : Boolean(items);\n}\n\nconst Container: FC<JSXBase.HTMLAttributes<HTMLDivElement>> = ({ class: className, ...other }, children) => {\n\treturn (\n\t\t<div class={clsx('kol-input-container__container', className)} {...other}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst KolInputContainerFc: FC<InputContainerProps> = (props, children) => {\n\tconst { class: classNames, startAdornment, endAdornment, disabled, msg, touched, containerProps, startAdornmentProps, endAdornmentProps, ...other } = props;\n\tconst showMsg = checkHasMsg(msg, touched);\n\n\tconst stateCssClasses = {\n\t\t['kol-input-container--disabled']: disabled,\n\t\t[`kol-input-container--${msg?.type || 'error'}`]: showMsg,\n\t};\n\n\tconst baseProps: JSXBase.HTMLAttributes<HTMLDivElement> = {\n\t\tclass: clsx('kol-input-container', stateCssClasses, classNames),\n\t\t...other,\n\t};\n\n\tif (!hasItems(startAdornment) && !hasItems(endAdornment)) {\n\t\treturn (\n\t\t\t<div {...baseProps}>\n\t\t\t\t<Container {...containerProps}>{children}</Container>\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div {...baseProps}>\n\t\t\t<InputAdornment {...startAdornmentProps} position=\"start\">\n\t\t\t\t{startAdornment}\n\t\t\t</InputAdornment>\n\t\t\t<Container {...containerProps}>{children}</Container>\n\t\t\t<InputAdornment {...endAdornmentProps} position=\"end\">\n\t\t\t\t{endAdornment}\n\t\t\t</InputAdornment>\n\t\t</div>\n\t);\n};\n\nexport default KolInputContainerFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\nimport type { InternalButtonProps } from '../../schema';\n\nexport type ButtonProps = Partial<InternalButtonProps> & {\n\tlabel: string;\n\tclass?: string;\n\tonClick?: (event: MouseEvent) => void;\n};\n\nconst KolButtonFc: FC<ButtonProps> = (props) => {\n\tconst { label, icons, hideLabel, disabled, onClick, ...other } = props;\n\n\treturn <KolButtonWcTag _label={label} _disabled={disabled} _icons={icons} _hideLabel={hideLabel} _on={{ onClick }} {...other} />;\n};\n\nexport default KolButtonFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport KolButtonFc, { type ButtonProps } from '../Button';\nimport KolIconFc, { type IconProps } from '../Icon';\n\ntype IconType = Partial<Omit<IconProps, 'icons'>> & {\n\tcomponentName: 'icon';\n\ticon?: string;\n\tclass?: string;\n\n\tonClick?: (event: MouseEvent) => void;\n};\n\ntype ButtonType = Partial<Omit<ButtonProps, 'icons'>> & {\n\tcomponentName: 'button';\n\ticon?: string;\n\tlabel?: string;\n\tclass?: string;\n\n\tonClick?: (event: MouseEvent) => void;\n};\n\nexport type IconButtonProps = IconType | ButtonType;\n\n/**\n * `KolIconButtonFc` is a functional component that renders either a Button or an Icon based on the provided props.\n *\n * Depending on the value of the `componentName` prop, either a Button (`KolButtonFc`) or an Icon (`KolIconFc`) is rendered.\n * Both components support optional `icon` props for displaying an icon and an optional `onClick` handler for user interactions.\n *\n * This component combines the flexibility of rendering either a button with an optional label or a simple icon, while ensuring that unnecessary props for the selected element are not passed.\n *\n * Supported props:\n * - `componentName`: Specifies whether a 'button' or 'icon' should be rendered. Default is 'button'.\n * - `label`: An optional label, which is only shown for Buttons.\n * - `icon`: The name of the icon (e.g., \"home\", \"edit\") or the Codicon class used for the icon display.\n * - `class`: Optional CSS class for additional styling customization.\n * - `onClick`: Optional click handler for user interactions.\n *\n * Example usage:\n * ```tsx\n * <KolIconButtonFc componentName=\"button\" label=\"Submit\" icon=\"check\" onClick={handleClick} />\n * <KolIconButtonFc componentName=\"icon\" icon=\"alert\" onClick={handleClick} />\n * ```\n *\n * @param {IconButtonProps} props - The properties that customize the component, including the selection of the component type (Button or Icon) and other specific attributes.\n * @returns {JSX.Element} - The rendered JSX element (Button or Icon).\n */\nconst KolIconButtonFc: FC<IconButtonProps> = (props) => {\n\tconst { componentName = 'button', label, icon, onClick, ...other } = props;\n\tconst Component = componentName === 'button' ? KolButtonFc : KolIconFc;\n\n\treturn <Component label={label || ''} hideLabel icons={`codicon codicon-${icon}`} onClick={onClick} {...other} />;\n};\n\nexport default KolIconButtonFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { InternMsgPropType } from '../../schema';\nimport {\n\ttype ButtonProps,\n\ttype IconOrIconClass,\n\ttype InputColorStates,\n\ttype InputEmailStates,\n\ttype InputFileStates,\n\ttype InputNumberStates,\n\ttype InputPasswordStates,\n\ttype InputRangeStates,\n\ttype InputTextStates,\n\ttype KoliBriHorizontalIcons,\n\ttype TextareaStates,\n\ttype SelectStates,\n\tconvertMsgToInternMsg,\n} from '../../schema';\n\nimport KolInputContainerFc, { type InputContainerProps } from '../../functional-components/InputContainer';\nimport KolIconButtonFc from '../../functional-components/IconButton';\nimport { isObject, isString } from 'lodash-es';\n\ntype InputState =\n\t| TextareaStates\n\t| SelectStates\n\t| InputTextStates\n\t| InputEmailStates\n\t| InputPasswordStates\n\t| InputNumberStates\n\t| InputColorStates\n\t| InputFileStates\n\t| InputRangeStates;\n\nexport type InputContainerStateWrapperProps = Partial<InputContainerProps> & {\n\tstate: InputState;\n};\n\nfunction getInputContainerProps(state: InputState): {\n\ticons?: KoliBriHorizontalIcons;\n\tsmartButton?: ButtonProps;\n\tdisabled?: boolean;\n\tmsg?: InternMsgPropType;\n\ttouched?: boolean;\n} {\n\tlet icons: KoliBriHorizontalIcons | undefined = undefined;\n\tlet smartButton: ButtonProps | undefined;\n\n\tif ('_icons' in state) {\n\t\ticons = state._icons;\n\t}\n\n\tif ('_smartButton' in state) {\n\t\tsmartButton = state._smartButton;\n\t}\n\n\treturn {\n\t\ticons,\n\t\tsmartButton,\n\t\tdisabled: state._disabled,\n\t\tmsg: convertMsgToInternMsg(state._msg),\n\t\ttouched: state._touched,\n\t};\n}\n\nconst InputContainerStateWrapperFc: FC<InputContainerStateWrapperProps> = ({ state, endAdornment: defaultEndAdornment }, children) => {\n\tconst { icons, smartButton, disabled, msg, touched } = getInputContainerProps(state);\n\n\tlet leftIconProps: IconOrIconClass | undefined = icons?.left;\n\tif (isString(leftIconProps)) {\n\t\tleftIconProps = { icon: leftIconProps };\n\t}\n\n\tlet rightIconProps: IconOrIconClass | undefined = icons?.right;\n\tif (isString(rightIconProps)) {\n\t\trightIconProps = { icon: rightIconProps };\n\t}\n\n\tconst startAdornment = [];\n\tconst endAdornment = [];\n\n\tif (defaultEndAdornment) {\n\t\tif (Array.isArray(defaultEndAdornment)) {\n\t\t\tendAdornment.push(...defaultEndAdornment);\n\t\t} else {\n\t\t\tendAdornment.push(defaultEndAdornment);\n\t\t}\n\t}\n\n\tif (leftIconProps) {\n\t\tstartAdornment.push(<KolIconButtonFc componentName=\"icon\" class=\"kol-input-container__icon\" {...(isObject(leftIconProps) ? leftIconProps : {})} />);\n\t}\n\n\tif (isObject(smartButton)) {\n\t\tendAdornment.push(\n\t\t\t<KolIconButtonFc componentName=\"button\" class=\"kol-input-container__smart-button\" {...smartButton} hideLabel={true} disabled={disabled} />,\n\t\t);\n\t}\n\n\tif (rightIconProps) {\n\t\tendAdornment.push(<KolIconButtonFc componentName=\"icon\" class=\"kol-input-container__icon\" {...(isObject(rightIconProps) ? rightIconProps : {})} />);\n\t}\n\n\treturn (\n\t\t<KolInputContainerFc disabled={disabled} msg={msg} touched={touched} startAdornment={startAdornment} endAdornment={endAdornment}>\n\t\t\t{children}\n\t\t</KolInputContainerFc>\n\t);\n};\n\nexport default InputContainerStateWrapperFc;\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { IconsHorizontalPropType } from '../../../schema';\nimport { validateIcons } from '../../../schema';\n\nimport { InputController } from './controller';\n\nimport type { Props, Watches } from './types-icon';\n\nexport class InputIconController extends InputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateIcons(value?: IconsHorizontalPropType): void {\n\t\tvalidateIcons(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateIcons(this.component._icons);\n\t}\n}\n"],"mappings":";;;gaAQA,MAAMA,EAA0C,CAACC,EAAoDC,K,IAApDC,SAAEA,EAAW,QAASC,MAAOC,GAASJ,EAAKK,EAAKC,EAAAN,EAAhD,sBAChD,MAAMO,EAAgB,iCACtB,MAAMC,EAAoB,GAAGD,MAAkBL,IAE/C,OACCO,EAAA,MAAAC,OAAAC,OAAA,CAAKR,MAAOS,EAAKL,EAAeC,EAAmBJ,IAAgBC,GACjEJ,EACI,EAIR,MAAAY,EAAed,ECCf,SAASe,EAASC,GACjB,IAAKA,EAAO,CACX,OAAO,K,CAGR,OAAOC,MAAMC,QAAQF,GAASA,EAAMG,OAAS,EAAIC,QAAQJ,EAC1D,CAEA,MAAMK,EAAwD,CAACpB,EAAgCC,K,IAA9BE,MAAOC,GAASJ,EAAKK,EAAKC,EAAAN,EAA5B,WAC9D,OACCS,EAAA,MAAAC,OAAAC,OAAA,CAAKR,MAAOS,EAAK,iCAAkCR,IAAgBC,GACjEJ,EACI,EAIR,MAAMoB,EAA+C,CAACC,EAAOrB,KAC5D,MAAQE,MAAOoB,EAAUC,eAAEA,EAAcC,aAAEA,EAAYC,SAAEA,EAAQC,IAAEA,EAAGC,QAAEA,EAAOC,eAAEA,EAAcC,oBAAEA,EAAmBC,kBAAEA,GAAgCT,EAAVjB,EAAKC,EAAKgB,EAAhJ,iIACN,MAAMU,EAAUC,EAAYN,EAAKC,GAEjC,MAAMM,EAAkB,CACvB,CAAC,iCAAkCR,EACnC,CAAC,yBAAwBC,IAAG,MAAHA,SAAG,SAAHA,EAAKQ,OAAQ,WAAYH,GA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eAAgBA,EAAgBC,aAAcA,GACjHxB,EACoB,EAIxB,MAAAoB,EAAe2C,E,MCpGFS,UAA4BC,EAGxC,WAAAC,CAAmBC,EAA8CC,EAAcC,GAC9EC,MAAMH,EAAWC,EAAMC,GACvBE,KAAKJ,UAAYA,C,CAGX,aAAAK,CAAcC,GACpBD,EAAcD,KAAKJ,UAAWM,E,CAGxB,iBAAAC,GACNJ,MAAMI,oBACNH,KAAKC,cAAcD,KAAKJ,UAAU9B,O","ignoreList":[]}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{E as e}from"./index-
|
4
|
+
import{E as e}from"./index-8a3861a0.js";import{p as t}from"./reuse-f46e7e35.js";import{L as n,g as i,s as o,b as s,c as a,d as r}from"./dev.utils-fab45cbc.js";const c=()=>{const e=i().querySelector('meta[name="kolibri"]');if(e&&e.hasAttribute("content")){const t=e.getAttribute("content");"string"==typeof t&&(o(t.includes("dev-mode=true")),s(t.includes("experimental-mode=true")),a(t.includes("color-contrast-analysis=true")))}},u=()=>{let e=r().KoliBri;return void 0===e&&(e={},Object.defineProperty(r(),"KoliBri",{value:e,writable:!1})),e},l=()=>{c(),n.debug(`\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | \`--' | |) /_ ,--.--. \`--'\n| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n| |\\ \\ | '-' | | | | | | '--' / | | | |\n\`--' \`--´ \`---´ \`--' \`--' \`------´ \`--' \`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${e.kolibriVersion}\n\t`,{forceLog:!0})},f=()=>{!0!==u().adviceShown&&(Object.defineProperty(u(),"adviceShown",{get:function(){return!0}}),n.debug("\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n"))};let m=()=>Math.floor(16777215*Math.random()).toString(16);"test"===t&&(m=()=>"nonce");export{l as i,m as n,f as r};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* KoliBri - The accessible HTML-Standard
|
3
|
+
*/
|
4
|
+
import{i as t,r as e}from"./dev.utils-0d99621e.js";import{e as o,g as s,L as r,a as i,f as a,d as l}from"./dev.utils-fab45cbc.js";import{y as n,t as c,z as f,A as p,B as d,p as m,C as L}from"./prop.validators-644974c7.js";import"./index-8a3861a0.js";import"./reuse-f46e7e35.js";import"./index-2c786087.js";const u=()=>{let t=l().KoliBri;return void 0===t&&(t={},Object.defineProperty(l(),"KoliBri",{value:t,writable:!1})),t};function v(t,e){try{Object.defineProperty(u(),t,{get:function(){return e}})}catch(e){r.debug(`KoliBri property ${t} is already bind.`)}}const h=(t,e)=>r.debug(`${t} ${e?"":"not "}activated`),g=()=>{if(t(),o()){e(),v("a11yColorContrast",n),v("querySelector",c),v("querySelectorAll",f),v("querySelectorColors",p),v("utils",(function(){return d})),v("parseJson",m),v("stringifyJson",L);const t=s().body,r=s().createElement("svg");if(r.setAttribute("aria-label","KoliBri-DevTools"),r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("role","toolbar"),r.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;"),r.innerHTML='<svg\n xmlns="http://www.w3.org/2000/svg"\n width="50"\n height="50"\n viewBox="0 0 600 600"\n>\n <path d="M353 322L213 304V434L353 322Z" fill="#047" />\n <path d="M209 564V304L149 434L209 564Z" fill="#047" />\n <path d="M357 316L417 250L361 210L275 244L357 316Z" fill="#047" />\n <path d="M353 318L35 36L213 300L353 318Z" fill="#047" />\n <path d="M329 218L237 92L250 222L272 241L329 218Z" fill="#047" />\n <path d="M391 286L565 272L421 252L391 286Z" fill="#047" />\n</svg>',s().body.appendChild(r),h("Development mode",o()),h("Experimental mode",i()),h("Color contrast analysis",a()),a()){const e=setTimeout((()=>{clearTimeout(e),setInterval((()=>{d.queryHtmlElementColors(s().createElement("div"),n(t),!1,!1)}),1e4)}),2500)}}};export{g as initialize};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["getKoliBri","kolibri","getWindow","KoliBri","undefined","Object","defineProperty","value","writable","prototypeKoliBri","name","cb","get","e","Log","debug","metaModeLog","active","initialize","initKoliBri","getDevMode","renderDevAdvice","koliBriA11yColorContrast","koliBriQuerySelector","koliBriQuerySelectorAll","koliBriQuerySelectorColors","KoliBriUtils","parseJson","stringifyJson","body","getDocument","div","createElement","setAttribute","innerHTML","appendChild","getExperimentalMode","getColorContrastAnalysis","timeout","setTimeout","clearTimeout","setInterval","queryHtmlElementColors"],"sources":["src/global/devtools.ts"],"sourcesContent":["import {\n\tgetColorContrastAnalysis,\n\tgetDevMode,\n\tgetDocument,\n\tgetExperimentalMode,\n\tgetWindow,\n\tkoliBriA11yColorContrast,\n\tkoliBriQuerySelector,\n\tkoliBriQuerySelectorAll,\n\tkoliBriQuerySelectorColors,\n\tKoliBriUtils,\n\tLog,\n\tparseJson,\n\tstringifyJson,\n} from '../schema';\nimport { initKoliBri, renderDevAdvice } from '../utils/dev.utils';\n\nconst getKoliBri = (): Record<string, unknown> => {\n\tlet kolibri = getWindow().KoliBri;\n\tif (kolibri === undefined) {\n\t\tkolibri = {};\n\t\tObject.defineProperty(getWindow(), 'KoliBri', {\n\t\t\tvalue: kolibri,\n\t\t\twritable: false,\n\t\t});\n\t}\n\treturn kolibri;\n};\n\nfunction prototypeKoliBri<T>(name: string, cb: T) {\n\ttry {\n\t\tObject.defineProperty(getKoliBri(), name, {\n\t\t\tget: function () {\n\t\t\t\treturn cb;\n\t\t\t},\n\t\t});\n\t} catch (e) {\n\t\tLog.debug(`KoliBri property ${name} is already bind.`);\n\t}\n}\n\nconst metaModeLog = (name: string, active: boolean) => Log.debug(`${name} ${active ? '' : 'not '}activated`);\n\nexport const initialize = (): void => {\n\tinitKoliBri();\n\tif (getDevMode()) {\n\t\trenderDevAdvice();\n\n\t\tprototypeKoliBri('a11yColorContrast', koliBriA11yColorContrast);\n\t\tprototypeKoliBri('querySelector', koliBriQuerySelector);\n\t\tprototypeKoliBri('querySelectorAll', koliBriQuerySelectorAll);\n\t\tprototypeKoliBri('querySelectorColors', koliBriQuerySelectorColors);\n\t\tprototypeKoliBri('utils', function () {\n\t\t\treturn KoliBriUtils;\n\t\t});\n\t\tprototypeKoliBri('parseJson', parseJson);\n\t\tprototypeKoliBri('stringifyJson', stringifyJson);\n\n\t\tconst body = getDocument().body;\n\n\t\tconst div = getDocument().createElement('svg');\n\t\tdiv.setAttribute('aria-label', 'KoliBri-DevTools');\n\t\tdiv.setAttribute('xmlns', 'http://www.w3.org/2000/svg');\n\t\tdiv.setAttribute('role', 'toolbar');\n\t\tdiv.setAttribute('style', 'position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;');\n\t\tdiv.innerHTML = `<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"50\"\n height=\"50\"\n viewBox=\"0 0 600 600\"\n>\n <path d=\"M353 322L213 304V434L353 322Z\" fill=\"#047\" />\n <path d=\"M209 564V304L149 434L209 564Z\" fill=\"#047\" />\n <path d=\"M357 316L417 250L361 210L275 244L357 316Z\" fill=\"#047\" />\n <path d=\"M353 318L35 36L213 300L353 318Z\" fill=\"#047\" />\n <path d=\"M329 218L237 92L250 222L272 241L329 218Z\" fill=\"#047\" />\n <path d=\"M391 286L565 272L421 252L391 286Z\" fill=\"#047\" />\n</svg>`;\n\n\t\tgetDocument().body.appendChild(div);\n\n\t\tmetaModeLog('Development mode', getDevMode());\n\t\tmetaModeLog('Experimental mode', getExperimentalMode());\n\t\tmetaModeLog('Color contrast analysis', getColorContrastAnalysis());\n\n\t\tif (getColorContrastAnalysis()) {\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\tsetInterval(() => {\n\t\t\t\t\tKoliBriUtils.queryHtmlElementColors(getDocument().createElement('div'), koliBriA11yColorContrast(body), false, false);\n\t\t\t\t}, 10000);\n\t\t\t}, 2500);\n\t\t}\n\n\t\t// setTimeout(() => {\n\t\t// const kolButton = koliBriQuerySelector<HTMLButtonElement>(document, '[_label=\"Aktion ausführen\"]');\n\t\t// if (kolButton) {\n\t\t// const button = koliBriQuerySelector<HTMLButtonElement>(kolButton?.shadowRoot as ShadowRoot, 'button');\n\t\t// if (button) {\n\t\t// kolButton.style.backgroundColor = '#988';\n\t\t// button.style.backgroundColor = 'inherit';\n\t\t// button.style.color = '#988';\n\t\t// const kolButtonColors = koliBriQuerySelectorColors('[_label=\"Aktion ausführen\"]');\n\t\t// console.log(\n\t\t// koliBriQuerySelectorColors('button', {\n\t\t// ...kolButtonColors,\n\t\t// })\n\t\t// );\n\t\t// }\n\t\t// }\n\t\t// }, 2500);\n\t}\n};\n"],"mappings":";;;
|
1
|
+
{"version":3,"names":["getKoliBri","kolibri","getWindow","KoliBri","undefined","Object","defineProperty","value","writable","prototypeKoliBri","name","cb","get","e","Log","debug","metaModeLog","active","initialize","initKoliBri","getDevMode","renderDevAdvice","koliBriA11yColorContrast","koliBriQuerySelector","koliBriQuerySelectorAll","koliBriQuerySelectorColors","KoliBriUtils","parseJson","stringifyJson","body","getDocument","div","createElement","setAttribute","innerHTML","appendChild","getExperimentalMode","getColorContrastAnalysis","timeout","setTimeout","clearTimeout","setInterval","queryHtmlElementColors"],"sources":["src/global/devtools.ts"],"sourcesContent":["import {\n\tgetColorContrastAnalysis,\n\tgetDevMode,\n\tgetDocument,\n\tgetExperimentalMode,\n\tgetWindow,\n\tkoliBriA11yColorContrast,\n\tkoliBriQuerySelector,\n\tkoliBriQuerySelectorAll,\n\tkoliBriQuerySelectorColors,\n\tKoliBriUtils,\n\tLog,\n\tparseJson,\n\tstringifyJson,\n} from '../schema';\nimport { initKoliBri, renderDevAdvice } from '../utils/dev.utils';\n\nconst getKoliBri = (): Record<string, unknown> => {\n\tlet kolibri = getWindow().KoliBri;\n\tif (kolibri === undefined) {\n\t\tkolibri = {};\n\t\tObject.defineProperty(getWindow(), 'KoliBri', {\n\t\t\tvalue: kolibri,\n\t\t\twritable: false,\n\t\t});\n\t}\n\treturn kolibri;\n};\n\nfunction prototypeKoliBri<T>(name: string, cb: T) {\n\ttry {\n\t\tObject.defineProperty(getKoliBri(), name, {\n\t\t\tget: function () {\n\t\t\t\treturn cb;\n\t\t\t},\n\t\t});\n\t} catch (e) {\n\t\tLog.debug(`KoliBri property ${name} is already bind.`);\n\t}\n}\n\nconst metaModeLog = (name: string, active: boolean) => Log.debug(`${name} ${active ? '' : 'not '}activated`);\n\nexport const initialize = (): void => {\n\tinitKoliBri();\n\tif (getDevMode()) {\n\t\trenderDevAdvice();\n\n\t\tprototypeKoliBri('a11yColorContrast', koliBriA11yColorContrast);\n\t\tprototypeKoliBri('querySelector', koliBriQuerySelector);\n\t\tprototypeKoliBri('querySelectorAll', koliBriQuerySelectorAll);\n\t\tprototypeKoliBri('querySelectorColors', koliBriQuerySelectorColors);\n\t\tprototypeKoliBri('utils', function () {\n\t\t\treturn KoliBriUtils;\n\t\t});\n\t\tprototypeKoliBri('parseJson', parseJson);\n\t\tprototypeKoliBri('stringifyJson', stringifyJson);\n\n\t\tconst body = getDocument().body;\n\n\t\tconst div = getDocument().createElement('svg');\n\t\tdiv.setAttribute('aria-label', 'KoliBri-DevTools');\n\t\tdiv.setAttribute('xmlns', 'http://www.w3.org/2000/svg');\n\t\tdiv.setAttribute('role', 'toolbar');\n\t\tdiv.setAttribute('style', 'position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;');\n\t\tdiv.innerHTML = `<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"50\"\n height=\"50\"\n viewBox=\"0 0 600 600\"\n>\n <path d=\"M353 322L213 304V434L353 322Z\" fill=\"#047\" />\n <path d=\"M209 564V304L149 434L209 564Z\" fill=\"#047\" />\n <path d=\"M357 316L417 250L361 210L275 244L357 316Z\" fill=\"#047\" />\n <path d=\"M353 318L35 36L213 300L353 318Z\" fill=\"#047\" />\n <path d=\"M329 218L237 92L250 222L272 241L329 218Z\" fill=\"#047\" />\n <path d=\"M391 286L565 272L421 252L391 286Z\" fill=\"#047\" />\n</svg>`;\n\n\t\tgetDocument().body.appendChild(div);\n\n\t\tmetaModeLog('Development mode', getDevMode());\n\t\tmetaModeLog('Experimental mode', getExperimentalMode());\n\t\tmetaModeLog('Color contrast analysis', getColorContrastAnalysis());\n\n\t\tif (getColorContrastAnalysis()) {\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\tsetInterval(() => {\n\t\t\t\t\tKoliBriUtils.queryHtmlElementColors(getDocument().createElement('div'), koliBriA11yColorContrast(body), false, false);\n\t\t\t\t}, 10000);\n\t\t\t}, 2500);\n\t\t}\n\n\t\t// setTimeout(() => {\n\t\t// const kolButton = koliBriQuerySelector<HTMLButtonElement>(document, '[_label=\"Aktion ausführen\"]');\n\t\t// if (kolButton) {\n\t\t// const button = koliBriQuerySelector<HTMLButtonElement>(kolButton?.shadowRoot as ShadowRoot, 'button');\n\t\t// if (button) {\n\t\t// kolButton.style.backgroundColor = '#988';\n\t\t// button.style.backgroundColor = 'inherit';\n\t\t// button.style.color = '#988';\n\t\t// const kolButtonColors = koliBriQuerySelectorColors('[_label=\"Aktion ausführen\"]');\n\t\t// console.log(\n\t\t// koliBriQuerySelectorColors('button', {\n\t\t// ...kolButtonColors,\n\t\t// })\n\t\t// );\n\t\t// }\n\t\t// }\n\t\t// }, 2500);\n\t}\n};\n"],"mappings":";;;kTAiBA,MAAMA,EAAa,KAClB,IAAIC,EAAUC,IAAYC,QAC1B,GAAIF,IAAYG,UAAW,CAC1BH,EAAU,GACVI,OAAOC,eAAeJ,IAAa,UAAW,CAC7CK,MAAON,EACPO,SAAU,O,CAGZ,OAAOP,CAAO,EAGf,SAASQ,EAAoBC,EAAcC,GAC1C,IACCN,OAAOC,eAAeN,IAAcU,EAAM,CACzCE,IAAK,WACJ,OAAOD,C,IAGR,MAAOE,GACRC,EAAIC,MAAM,oBAAoBL,qB,CAEhC,CAEA,MAAMM,EAAc,CAACN,EAAcO,IAAoBH,EAAIC,MAAM,GAAGL,KAAQO,EAAS,GAAK,mB,MAE7EC,EAAa,KACzBC,IACA,GAAIC,IAAc,CACjBC,IAEAZ,EAAiB,oBAAqBa,GACtCb,EAAiB,gBAAiBc,GAClCd,EAAiB,mBAAoBe,GACrCf,EAAiB,sBAAuBgB,GACxChB,EAAiB,SAAS,WACzB,OAAOiB,C,IAERjB,EAAiB,YAAakB,GAC9BlB,EAAiB,gBAAiBmB,GAElC,MAAMC,EAAOC,IAAcD,KAE3B,MAAME,EAAMD,IAAcE,cAAc,OACxCD,EAAIE,aAAa,aAAc,oBAC/BF,EAAIE,aAAa,QAAS,8BAC1BF,EAAIE,aAAa,OAAQ,WACzBF,EAAIE,aAAa,QAAS,gFAC1BF,EAAIG,UAAY,ueAchBJ,IAAcD,KAAKM,YAAYJ,GAE/Bf,EAAY,mBAAoBI,KAChCJ,EAAY,oBAAqBoB,KACjCpB,EAAY,0BAA2BqB,KAEvC,GAAIA,IAA4B,CAC/B,MAAMC,EAAUC,YAAW,KAC1BC,aAAaF,GACbG,aAAY,KACXf,EAAagB,uBAAuBZ,IAAcE,cAAc,OAAQV,EAAyBO,GAAO,MAAO,MAAM,GACnH,IAAM,GACP,K","ignoreList":[]}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{b as a,c as o}from"./prop.validators-
|
4
|
+
import{b as a,c as o}from"./prop.validators-644974c7.js";const s=(s,r)=>{a(s,"_disabled",r,{hooks:{afterPatch:a=>{!0===a&&o()}}})};export{s as v};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{d as e,K as t}from"./events-5886c68b.js";import{A as s}from"./associated.controller-
|
4
|
+
import{d as e,K as t}from"./events-5886c68b.js";import{A as s}from"./associated.controller-d9fdc504.js";import{b as i,o,p as a,w as r,c as n,a as l,i as d,j as h,s as c}from"./prop.validators-644974c7.js";import{v as f,a as u,b as m,c as p}from"./access-and-short-key-11f043b2.js";import{v as b}from"./tooltip-align-f225c652.js";import{v}from"./hide-label-c67b3beb.js";import{a as g}from"./label-17021220.js";import{_ as y}from"./tslib.es6-1173d062.js";import{h as j,F as _}from"./index-8a3861a0.js";import{c as L}from"./clsx-09a06a12.js";import{K as x}from"./Alert-c7c350d4.js";import{t as O}from"./i18n-efbafc80.js";import{f as k}from"./component-names-7ee7402b.js";import{i as K,I as B}from"./InternalUnderlinedBadgeText-a54af9a3.js";import{b as P,s as C}from"./reuse-f46e7e35.js";import{b as F,i as M}from"./common-54bf85ba.js";const T=(e,t)=>{i(e,"_adjustHeight",t)},$=(e,t,o)=>{i(e,"_hideMsg",t,o)};function w(e){return Object.entries(e).reduce(((e,[t,o])=>{const s=t.startsWith("_")?t.slice(1):t;return Object.assign(Object.assign({},e),{[s]:o})}),{})}const H=(e,t)=>{o(t,(()=>{try{t=a(t)}catch(e){}r(e,"_msg",(e=>F(e)&&M(null==e?void 0:e._description,1)||void 0===(null==e?void 0:e._type)),new Set(["MsgPropType"]),t)}))};function I(e){if(e)return w(e)}function N(e,t){return!!e&&(!0===t||"error"!==(null==e?void 0:e.type))}const E=(e,t)=>{i(e,"_touched",t)},A=e=>{var{alert:t,msg:o,hideMsg:s,id:i,class:n}=e,a=y(e,["alert","msg","hideMsg","id","class"]);return j(x,Object.assign({id:`${i}-msg`,alert:t,type:"error",class:L("kol-form-field__msg",{"visually-hidden":!0===s},n)},o,a,{"aria-hidden":"true"}),(null==o?void 0:o.description)||void 0)},S=A,q=({hasExpertSlot:e,accessKey:t,shortKey:o,label:s,showBadge:i=!0})=>{if(e)return j("slot",{name:"expert"});if(!s)return null;const n=K(t)||K(o);if(!i||!n)return j("span",null,s);const a=P(t,o);return j(_,null,j(B,{badgeText:a,label:s})," ",j("span",{class:"badge-text-hint","aria-hidden":"true"},a))},D=e=>{var{component:t="label",id:o,baseClassName:s="kol-form-field",class:i,accessKey:n,shortKey:a,label:l,hideLabel:r,hasExpertSlot:d,showBadge:c}=e,h=y(e,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","showBadge"]);const m=!d&&r;return j(t,Object.assign({},h,{class:L(`${s}__label`,i),id:m?void 0:`${o}-label`,hidden:m,htmlFor:o}),j("span",{class:L(`${s}__label-text`)},j(q,{hasExpertSlot:d,accessKey:n,shortKey:a,label:l,showBadge:c})))},W=D,z=e=>{var{id:t,class:o,hint:s,baseClassName:i="kol-form-field"}=e,n=y(e,["id","class","hint","baseClassName"]);return s?j("span",Object.assign({class:L(`${i}__hint`,o),id:`${t}-hint`},n),s):null},U=z,V=e=>{var{currentLength:t,maxLength:o,class:s}=e,i=y(e,["currentLength","maxLength","class"]);return j("span",Object.assign({class:L("kol-form-field__counter",s)},i,{"aria-atomic":"true","aria-live":"polite","data-testid":"input-counter"}),t,o&&j(_,null,j("span",{"aria-label":O("kol-of"),role:"img"},"/"),o)," ",j("span",null,O("kol-characters")))},G=V,J=({id:e,align:t,badgeText:o,hideLabel:s,label:i,class:n})=>j(k,{"aria-hidden":"true",class:L("kol-form-field__tooltip",n),_badgeText:o,_align:t,_id:s?`${e}-label`:void 0,_label:i}),Q=J;function R(e){return(null==e?void 0:e.type)&&{default:"msg-type-default",info:"msg-type-info",success:"msg-type-success",warning:"msg-type-warning",error:"msg-type-error"}[null==e?void 0:e.type]||""}const X=(e,t)=>{var{class:o}=e,s=y(e,["class"]);return j("div",Object.assign({class:L("kol-form-field__input",o)},s),t)},Y=(e,t)=>{const{component:o="div",renderNoLabel:s,renderNoTooltip:i,renderNoHint:n,anotherChildren:a,id:l,required:r,alert:d,disabled:c,class:h,msg:m,hideMsg:p,hideLabel:u,label:b,hint:f,accessKey:g,shortKey:v,tooltipAlign:_,counter:K,readOnly:x,touched:O,formFieldLabelProps:k,formFieldHintProps:B,formFieldTooltipProps:F,formFieldMsgProps:M,formFieldCounterProps:I,formFieldInputProps:E}=e,H=y(e,["component","renderNoLabel","renderNoTooltip","renderNoHint","anotherChildren","id","required","alert","disabled","class","msg","hideMsg","hideLabel","label","hint","accessKey","shortKey","tooltipAlign","counter","readOnly","touched","formFieldLabelProps","formFieldHintProps","formFieldTooltipProps","formFieldMsgProps","formFieldCounterProps","formFieldInputProps"]),T=!s,A=!n,$=!i,w=C(b),q=N(m,O),D=P(g,v),V=$&&!w&&u;let z={"kol-form-field--disabled":Boolean(c),"kol-form-field--required":Boolean(r),"kol-form-field--touched":Boolean(O),"kol-form-field--hide-label":Boolean(u),"kol-form-field--read-only":Boolean(x),"kol-form-field--hidden-msg":Boolean(p)};return q&&(z=Object.assign(Object.assign({},z),{[`kol-form-field--${(null==m?void 0:m.type)||"error"}`]:!0,[`kol-form-field--${R(m)}`]:!0})),j(o,Object.assign({class:L("kol-form-field",z,h)},H),T&&j(W,Object.assign({},k||{},{id:l,hasExpertSlot:w,hideLabel:u,label:b,accessKey:g,shortKey:v})),j(X,Object.assign({},E),t,V&&j(Q,Object.assign({},F||{},{id:l,label:b,hideLabel:u,align:_,badgeText:D}))),K?j(G,Object.assign({},I||{},K)):null,q&&j(S,Object.assign({},M||{},{id:l,alert:d,msg:m,hideMsg:p})),A&&j(U,Object.assign({},B||{},{id:l,hint:f})),a)},Z=Y;function ee({ariaDescribedBy:e,hideLabel:t,label:o}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":t&&o?o:void 0}}class te extends s{constructor(e,t,o){super(e,t,o),this.component=e}validateTouched(e){E(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateTouched(this.component._touched)}}class se extends te{constructor(e,t,o){super(e,t,o),this.valueChangeListeners=[],this.onFacade={onBlur:this.onBlur.bind(this),onChange:this.onChange.bind(this),onClick:this.onClick.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this)},this.component=e}validateAccessKey(e){f(this.component,e),u(e,this.component._shortKey)}validateAdjustHeight(e){T(this.component,e)}validateDisabled(e){i(this.component,"_disabled",e),!0===e&&n()}validateTooltipAlign(e){b(this.component,e)}validateHideMsg(e){$(this.component,e,{hooks:{afterPatch:()=>{this.component.state._hideMsg&&l("Property _hideMsg for inputs: Only use when the error message is shown outside of the input component.")}}})}validateHideLabel(e){v(this.component,e,{hooks:{afterPatch:()=>{this.component.state._hideLabel&&l("Property hide-label for inputs: Only use for exceptions like search inputs that are clearly identifiable by their context.")}}})}validateHint(e){d(this.component,"_hint",e)}validateId(e){d(this.component,"_id",e,{minLength:1}),""!==e&&void 0!==e||h("A unique ID on the input fields is not strictly required, but it might be relevant for E2E tests.")}validateLabel(e){g(this.component,e,{required:!0})}validateMsg(e){H(this.component,e)}validateOn(e){"object"==typeof e&&c(this.component,"_on",e)}validateShortKey(e){m(this.component,e),u(this.component._accessKey,e)}validateSmartButton(e){o(e,(()=>{try{e=a(e)}catch(e){}c(this.component,"_smartButton",e)}))}validateTabIndex(e){p(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateAccessKey(this.component._accessKey),this.validateAdjustHeight(this.component._adjustHeight),this.validateMsg(this.component._msg),this.validateDisabled(this.component._disabled),this.validateHideMsg(this.component._hideMsg),this.validateHideLabel(this.component._hideLabel),this.validateHint(this.component._hint),this.validateId(this.component._id),this.validateLabel(this.component._label),this.validateShortKey(this.component._shortKey),this.validateSmartButton(this.component._smartButton),this.validateOn(this.component._on),this.validateTabIndex(this.component._tabIndex),u(this.component._accessKey,this.component._shortKey)}emitEvent(t,o){this.host&&e(this.host,t,o)}onBlur(e){var o;this.component._touched=!0,this.emitEvent(t.blur),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onBlur)&&this.component._on.onBlur(e)}onChange(e,o){var s;void 0===o&&(o=e.target.value),this.emitEvent(t.change,o),"function"==typeof(null===(s=this.component._on)||void 0===s?void 0:s.onChange)&&this.component._on.onChange(e,o),this.valueChangeListeners.forEach((e=>e(o)))}onInput(e,o=!0,s){var i;void 0===s&&(s=e.target.value),this.emitEvent(t.input,s),o&&this.setFormAssociatedValue(s),"function"==typeof(null===(i=this.component._on)||void 0===i?void 0:i.onInput)&&this.component._on.onInput(e,s)}onClick(e){var o;this.emitEvent(t.click),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onClick)&&this.component._on.onClick(e)}onFocus(e){var o;this.emitEvent(t.focus),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onFocus)&&this.component._on.onFocus(e)}addValueChangeListener(e){this.valueChangeListeners.push(e)}}function ie(e){const t={id:e._id,disabled:e._disabled,msg:I(e._msg),hint:e._hint,label:e._label,hideLabel:e._hideLabel,hideMsg:e._hideMsg,touched:e._touched,accessKey:e._accessKey,shortKey:e._shortKey};return"_required"in e&&(t.required=e._required),"_readOnly"in e&&(t.readOnly=e._readOnly),"_hasCounter"in e&&"_currentLength"in e&&(t.counter=e._hasCounter?{currentLength:e._currentLength}:void 0,t.counter&&"_maxLength"in e&&(t.counter.maxLength=e._maxLength)),t}const oe=(e,t)=>{var{state:o}=e,s=y(e,["state"]);return j(Z,Object.assign({},ie(o),s),t)},ae=oe,re=e=>{var t,o,s;const i=Boolean((null===(t=null==e?void 0:e._msg)||void 0===t?void 0:t._description)&&(null===(o=e._msg._description)||void 0===o?void 0:o.length)>0),n="error"===(null===(s=e._msg)||void 0===s?void 0:s._type)&&i&&!0===e._touched,a="string"==typeof e._hint&&e._hint.length>0,l=[];return i&&l.push(`${e._id}-msg`),a&&l.push(`${e._id}-hint`),{hasError:n,hasHint:a,ariaDescribedBy:l}};export{se as I,ae as K,I as a,Q as b,N as c,W as d,U as e,ee as f,re as g};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
import{o,p as t,w as e}from"./prop.validators-
|
4
|
+
import{o,p as t,w as e}from"./prop.validators-644974c7.js";import{i as n,a as i,b as l}from"./common-54bf85ba.js";const c=(t,o,e)=>{l(e)?t[o]=e:n(e,1)&&(t[o]={icon:e})},f=t=>{let o={};return n(t,1)?o={left:{icon:t}}:"object"==typeof t&&null!==t&&(c(o,"top",t.top),c(o,"right",t.right),c(o,"bottom",t.bottom),c(o,"left",t.left)),o},s=t=>{var o,e,n;if(null===(o=t.nextState)||void 0===o?void 0:o.has("_icons")){const o=null===(e=t.nextState)||void 0===e?void 0:e.get("_icons");null===(n=t.nextState)||void 0===n||n.set("_icons",f(o))}},a=t=>"object"==typeof t&&null!==t&&(void 0===t.style||i(t.style))&&(void 0===t.label||n(t.label))&&n(t.icon,1),r=(l,i,c={})=>{o(i,(()=>{var o;try{i=t(i)}catch(o){}e(l,"_icons",(t=>{const o="object"==typeof t&&null!==t&&0===Object.keys(t).length;return null===t||o||n(t,1)||"object"==typeof t&&null!==t&&(n(t.left,1)||a(t.left)||n(t.right,1)||a(t.right)||n(t.top,1)||a(t.top)||n(t.bottom,1)||a(t.bottom))}),new Set(["KoliBriIcon"]),i,Object.assign(Object.assign({},c),{defaultValue:{},hooks:{afterPatch:null===(o=c.hooks)||void 0===o?void 0:o.afterPatch,beforePatch:(t,o,e,n)=>{var l,a;"function"==typeof(null===(l=c.hooks)||void 0===l?void 0:l.beforePatch)&&(null===(a=c.hooks)||void 0===a||a.beforePatch(t,o,e,n)),s(e)}}}))}))};export{r as v};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* KoliBri - The accessible HTML-Standard
|
3
3
|
*/
|
4
|
-
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t={exports:{}};!function(t){!function(e,o){t.exports?t.exports=o():e.log=o()}(e,(function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],i={},s=null;function r(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?a:void 0!==console[n]?r(console,n):void 0!==console.log?r(console,"log"):e)}function c(){for(var o=this.getLevel(),i=0;i<n.length;i++){var s=n[i];this[s]=i<o?e:this.methodFactory(s,o,this.name)}if(this.log=this.debug,typeof console===t&&o<this.levels.SILENT)return"No console available for logging"}function h(e){return function(){typeof console!==t&&(c.call(this),this[e].apply(this,arguments))}}function f(e,t,o){return l(e)||h.apply(this,arguments)}function m(e,o){var r,a,l,h=this,m="loglevel";function y(e){var o=(n[e]||"silent").toUpperCase();if(typeof window!==t&&m){try{return void(window.localStorage[m]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(m)+"="+o+";"}catch(e){}}}function d(){var e;if(typeof window!==t&&m){try{e=window.localStorage[m]}catch(e){}if(typeof e===t)try{var o=window.document.cookie,n=encodeURIComponent(m),i=o.indexOf(n+"=");-1!==i&&(e=/^([^;]+)/.exec(o.slice(i+n.length+1))[1])}catch(e){}return void 0===h.levels[e]&&(e=void 0),e}}function u(e){var t=e;if("string"==typeof t&&void 0!==h.levels[t.toUpperCase()]&&(t=h.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=h.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?m+=":"+e:"symbol"==typeof e&&(m=void 0),h.name=e,h.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},h.methodFactory=o||f,h.getLevel=function(){return null!=l?l:null!=a?a:r},h.setLevel=function(e,t){return l=u(e),!1!==t&&y(l),c.call(h)},h.setDefaultLevel=function(e){a=u(e),d()||h.setLevel(e,!1)},h.resetLevel=function(){l=null,function(){if(typeof window!==t&&m){try{window.localStorage.removeItem(m)}catch(e){}try{window.document.cookie=encodeURIComponent(m)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),c.call(h)},h.enableAll=function(e){h.setLevel(h.levels.TRACE,e)},h.disableAll=function(e){h.setLevel(h.levels.SILENT,e)},h.rebuild=function(){if(s!==h&&(r=u(s.getLevel())),c.call(h),s===h)for(var e in i)i[e].rebuild()},r=u(s?s.getLevel():"WARN");var p=d();null!=p&&(l=u(p)),c.call(h)}(s=new m).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=i[e];return t||(t=i[e]=new m(e,s.methodFactory)),t};var y=typeof window!==t?window.log:void 0;return s.noConflict=function(){return typeof window!==t&&window.log===s&&(window.log=y),s},s.getLoggers=function(){return i},s.default=s,s}))}(t);const n=t.exports,o=(e,t)=>o=>o(e,t),r=(e,t)=>o=>o(e,t,{append:!1}),i={A11yUi:{CSS_STYLE_CACHE:new Map,HYDRATED_HISTORY:[],STYLING_TASK_QUEUE:new Map,Themes:{}}};let s=!0,f=!1;const l=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,c=e=>"string"==typeof e&&l.test(e),a=e=>{if(!1===c(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},u=(e,t,o,n)=>d(e,t,o,n),d=(e,t,o,r)=>{(r=r??{}).append=r.append??!1,a(e),!0===s&&!1===f&&(f=!0,n.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\n\timport { register } from 'adopted-style-sheets';\n\timport { defineCustomElements } from '...';\n\timport { THEME } from '...';\n\n\tregister(THEME, defineCustomElements)\n\t.then(() => {\n\t\t// run your app or website\n\t})\n\t.catch(console.warn);`)),("object"!=typeof i.A11yUi.Themes[e]||null===i.A11yUi.Themes[e])&&(i.A11yUi.Themes[e]={}),r.append&&"string"==typeof i.A11yUi.Themes[e][t]?i.A11yUi.Themes[e][t]+=o:i.A11yUi.Themes[e][t]=o},y=(e,t,o,n)=>h(e,t,o,n),h=(e,t,o,n)=>(a(e),"object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach((i=>{const s=t[i],r=i.toLowerCase(),a="function"!=typeof n?.transformTagName||["GLOBAL","PROPERTIES"].includes(i)?i:n.transformTagName(r);"string"==typeof s&&s.length>0&&d(e,a.toUpperCase(),s,o)})),e),p=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return p(t)}}return null},w=(e={})=>"false"!==e.themeEncroachCss&&"true"!==e.themeReset&&{mode:"after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode?e.themeEncroachCssMode:"before"},m=()=>"object"==typeof i.A11yUi&&null!==i.A11yUi&&"object"==typeof i.A11yUi.Theme&&null!==i.A11yUi.Theme&&"boolean"==typeof i.A11yUi.Theme.cache&&"object"==typeof i.A11yUi.Theme.encroachCss&&null!==i.A11yUi.Theme.encroachCss&&"string"==typeof i.A11yUi.Theme.encroachCss.mode&&"string"==typeof i.A11yUi.Theme.name,b=()=>!("object"==typeof i.A11yUi&&null!==i.A11yUi&&"object"==typeof i.A11yUi.Theme&&null!==i.A11yUi.Theme&&"default"===i.A11yUi.Theme.name),g=e=>{if(m())return i.A11yUi.Theme;{const t={cache:!0,encroachCss:w(),loglevel:"silent",mode:"csr",name:null},o=p(e);return o instanceof HTMLElement&&(t.cache="false"!==o.dataset.themeCache,t.encroachCss=w(o.dataset),t.loglevel="debug"===o.dataset.themeLoglevel?o.dataset.themeLoglevel:"silent",t.mode="ssr"===o.dataset.themeMode?o.dataset.themeMode:"csr",t.name=o.dataset.theme||null),t}},T=(e,t)=>({cache:!1!==t.cache,detect:"auto"===t.detect?"auto":"fixed",encroachCss:!1!==t.encroachCss&&("object"!=typeof t.encroachCss||null==t.encroachCss||"after"!==t.encroachCss.mode&&"before"!==t.encroachCss.mode?{mode:"before"}:t.encroachCss),loglevel:"debug"===t.loglevel?t.loglevel:"silent",mode:"ssr"===t.mode?t.mode:"csr",name:"string"==typeof t.name?t.name:e}),v=(e,t)=>{!1===m()&&b()&&"object"==typeof t&&null!==t&&("fixed"===(t=T(e,t)).detect?(null===t.name&&"string"==typeof e&&(t.name=e),e===t.name&&(i.A11yUi.Theme=t,n.info(`[Theming] Theme "${e}" was set as default theme.`))):f||(f=!0,n.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.")))};let E=!1;const S=(e,t,o={})=>{!1===E&&(E=!0,s=!1),"function"==typeof e?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach((e=>{"function"==typeof e&&1===e.length?v(e(((e,t,n)=>h(e,t,n,o))),{cache:o.theme?.cache,detect:o.theme?.detect,encroachCss:o.theme?.encroachCss,mode:o.theme?.mode,name:o.theme?.name}):n.error("[Theming] An attempt was made to load an incompatible theme.")})),s=!0,"function"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const i=[];return t.forEach((e=>{const t=e();t instanceof Promise&&i.push(t)})),Promise.all(i)},A=new Set,R=/--[^;]+/g,L=/:/;let C,j=0;const M=(e,t)=>{let o=t.match(R);if(Array.isArray(o)){o=o.filter((e=>L.test(e)));const t=document.createElement("style");t.innerHTML=`.${e} {${o.join(";")}}`,document.querySelector("head")?.appendChild(t)}A.add(e)},O=(e,t)=>"object"==typeof i.A11yUi&&null!==i.A11yUi&&"object"==typeof i.A11yUi.Themes&&null!==i.A11yUi.Themes&&"object"==typeof i.A11yUi.Themes[e]&&null!==i.A11yUi.Themes[e]&&"string"==typeof i.A11yUi.Themes[e][t]?i.A11yUi.Themes[e][t].replace(/\r?\n/g,""):"",I=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName&&void 0===t.dataset.themingFallback))break;e.removeChild(t)}},$=(e,t)=>{try{if("ssr"===i.A11yUi.Theme?.mode)throw new Error("SSR");const o=[];t.forEach((e=>{const t=new CSSStyleSheet;t.replaceSync(e),o.push(t)})),e.adoptedStyleSheets=o}catch{[...t].reverse().forEach(((t,o)=>{if("string"!=typeof t||0===t.length)return;const n=document.createElement("style");switch(n.dataset.themingFallback="",o){case 4:n.dataset.themingBaseA11y="";break;case 3:n.dataset.themingBaseGlobal="";break;case 2:n.dataset.themingBaseComponent="";break;case 1:n.dataset.themingCustomGlobal="";break;case 0:n.dataset.themingCustomComponent="";break;default:n.dataset.themingUnknown=""}n.innerHTML=t,e.insertBefore(n,e.firstChild)}))}},H=(e,t,o)=>{if(!1!==o){const n=[...Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName))];let i;try{i=[...Array.from(e.adoptedStyleSheets)]}catch{i=[]}"before"===o?.mode?(n.reverse().forEach((e=>t.unshift(e.innerHTML))),i.reverse().forEach((e=>t.unshift(Array.from(e.cssRules).map((e=>e.cssText)).join(""))))):"after"===o?.mode&&(n.forEach((e=>t.push(e.innerHTML))),i.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join("")))))}},k=(e,t,o)=>{const n=t.name||"default";let s;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");s=e.shadowRoot}catch{s=e}if(i.A11yUi.CSS_STYLE_CACHE.get(n)?.has(e.tagName))P(e,s,i.A11yUi.CSS_STYLE_CACHE.get(n)?.get(e.tagName),o);else{const r=O(n,"PROPERTIES"),a=O(n,"GLOBAL"),l=O(n,e.tagName);!1===A.has(n)&&M(n,a);const c=[r,a,l];H(s,c,t.encroachCss),!0===t.cache&&(!1===i.A11yUi.CSS_STYLE_CACHE.has(n)&&i.A11yUi.CSS_STYLE_CACHE.set(n,new Map),i.A11yUi.CSS_STYLE_CACHE.get(n)?.set(e.tagName,c)),P(e,s,c,o)}},P=(e,t,o,n)=>{I(t),$(t,o),requestAnimationFrame((()=>{e.style.visibility=n}))},U={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1},x={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},F=new MutationObserver((e=>{for(const t of e){const e=t.target;if(e.classList.contains("hydrated")){const t=i.A11yUi.STYLING_TASK_QUEUE.get(e);if(t){const{styleVisibility:o,themeDetails:n}=t;k(e,n,o),D(e)}F.observe(e,x)}}})),Y=new IntersectionObserver((e=>{for(const t of e){const e=t.target;if(t.isIntersecting){if(0===j&&(j=performance.now()),e.classList.contains("hydrated")){const t=i.A11yUi.STYLING_TASK_QUEUE.get(e);if(t){const{styleVisibility:o,themeDetails:n}=t;k(e,n,o),D(e)}}else F.observe(e,U);Y.unobserve(e)}}}),{root:null,threshold:0}),z=(e,t)=>{i.A11yUi.STYLING_TASK_QUEUE.set(e,{startTime:0,styleVisibility:e.style.visibility?`${e.style.visibility}`:null,themeDetails:t}),e.style.visibility="hidden",Y.observe(e)},D=e=>{i.A11yUi.STYLING_TASK_QUEUE.delete(e),clearTimeout(C),C=setTimeout((()=>{const e=Math.round(performance.now()-j-2500);console.log(`Theming finished for all components in ${e}ms`),j=0}),2500)},N=(e,t)=>{z(e,{...i.A11yUi.Theme,...t})};class _{Prefix;Key;Tag;createTheme=(e,t)=>r(e,t);createTranslation=(e,t)=>o(e,t);constructor(e,t,o){this.Prefix=e,this.Key=Object.getOwnPropertyNames(t),this.Tag=Object.getOwnPropertyNames(o)}}export{u as I,y as R,g as S,N as e,_ as t,O as y,S as z};
|
4
|
+
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t={exports:{}};!function(t){!function(e,o){t.exports?t.exports=o():e.log=o()}(e,(function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],i={},s=null;function r(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?a:void 0!==console[n]?r(console,n):void 0!==console.log?r(console,"log"):e)}function c(){for(var o=this.getLevel(),i=0;i<n.length;i++){var s=n[i];this[s]=i<o?e:this.methodFactory(s,o,this.name)}if(this.log=this.debug,typeof console===t&&o<this.levels.SILENT)return"No console available for logging"}function h(e){return function(){typeof console!==t&&(c.call(this),this[e].apply(this,arguments))}}function f(e,t,o){return l(e)||h.apply(this,arguments)}function m(e,o){var r,a,l,h=this,m="loglevel";function d(e){var o=(n[e]||"silent").toUpperCase();if(typeof window!==t&&m){try{return void(window.localStorage[m]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(m)+"="+o+";"}catch(e){}}}function y(){var e;if(typeof window!==t&&m){try{e=window.localStorage[m]}catch(e){}if(typeof e===t)try{var o=window.document.cookie,n=encodeURIComponent(m),i=o.indexOf(n+"=");-1!==i&&(e=/^([^;]+)/.exec(o.slice(i+n.length+1))[1])}catch(e){}return void 0===h.levels[e]&&(e=void 0),e}}function u(e){var t=e;if("string"==typeof t&&void 0!==h.levels[t.toUpperCase()]&&(t=h.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=h.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?m+=":"+e:"symbol"==typeof e&&(m=void 0),h.name=e,h.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},h.methodFactory=o||f,h.getLevel=function(){return null!=l?l:null!=a?a:r},h.setLevel=function(e,t){return l=u(e),!1!==t&&d(l),c.call(h)},h.setDefaultLevel=function(e){a=u(e),y()||h.setLevel(e,!1)},h.resetLevel=function(){l=null,function(){if(typeof window!==t&&m){try{window.localStorage.removeItem(m)}catch(e){}try{window.document.cookie=encodeURIComponent(m)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),c.call(h)},h.enableAll=function(e){h.setLevel(h.levels.TRACE,e)},h.disableAll=function(e){h.setLevel(h.levels.SILENT,e)},h.rebuild=function(){if(s!==h&&(r=u(s.getLevel())),c.call(h),s===h)for(var e in i)i[e].rebuild()},r=u(s?s.getLevel():"WARN");var p=y();null!=p&&(l=u(p)),c.call(h)}(s=new m).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=i[e];return t||(t=i[e]=new m(e,s.methodFactory)),t};var d=typeof window!==t?window.log:void 0;return s.noConflict=function(){return typeof window!==t&&window.log===s&&(window.log=d),s},s.getLoggers=function(){return i},s.default=s,s}))}(t);const n=t.exports,o=(e,t)=>o=>o(e,t),r=(e,t)=>o=>o(e,t,{append:!1}),i={A11yUi:{CSS_STYLE_CACHE:new Map,HYDRATED_HISTORY:[],STYLING_TASK_QUEUE:new Map,Themes:{}}};let s=!0,f=!1;const l=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,c=e=>"string"==typeof e&&l.test(e),a=e=>{if(!1===c(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},u=(e,t,o,n)=>d(e,t,o,n),d=(e,t,o,r)=>{(r=r??{}).append=r.append??!1,a(e),!0===s&&!1===f&&(f=!0,n.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\n\timport { register } from 'adopted-style-sheets';\n\timport { defineCustomElements } from '...';\n\timport { THEME } from '...';\n\n\tregister(THEME, defineCustomElements)\n\t.then(() => {\n\t\t// run your app or website\n\t})\n\t.catch(console.warn);`)),("object"!=typeof i.A11yUi.Themes[e]||null===i.A11yUi.Themes[e])&&(i.A11yUi.Themes[e]={}),r.append&&"string"==typeof i.A11yUi.Themes[e][t]?i.A11yUi.Themes[e][t]+=o:i.A11yUi.Themes[e][t]=o},y=(e,t,o,n)=>h(e,t,o,n),h=(e,t,o,n)=>(a(e),"object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach((i=>{const s=t[i],r=i.toLowerCase(),a="function"!=typeof n?.transformTagName||["GLOBAL","PROPERTIES"].includes(i)?i:n.transformTagName(r);"string"==typeof s&&s.length>0&&d(e,a.toUpperCase(),s,o)})),e),p=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return p(t)}}return null},w=(e={})=>"false"!==e.themeEncroachCss&&"true"!==e.themeReset&&{mode:"after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode?e.themeEncroachCssMode:"before"},m=()=>"object"==typeof i.A11yUi&&null!==i.A11yUi&&"object"==typeof i.A11yUi.Theme&&null!==i.A11yUi.Theme&&"boolean"==typeof i.A11yUi.Theme.cache&&"object"==typeof i.A11yUi.Theme.encroachCss&&null!==i.A11yUi.Theme.encroachCss&&"string"==typeof i.A11yUi.Theme.encroachCss.mode&&"string"==typeof i.A11yUi.Theme.name,b=()=>!("object"==typeof i.A11yUi&&null!==i.A11yUi&&"object"==typeof i.A11yUi.Theme&&null!==i.A11yUi.Theme&&"default"===i.A11yUi.Theme.name),g=e=>{if(m())return i.A11yUi.Theme;{const t={cache:!0,encroachCss:w(),loglevel:"silent",mode:"csr",name:null},o=p(e);return o instanceof HTMLElement&&(t.cache="false"!==o.dataset.themeCache,t.encroachCss=w(o.dataset),t.loglevel="debug"===o.dataset.themeLoglevel?o.dataset.themeLoglevel:"silent",t.mode="ssr"===o.dataset.themeMode?o.dataset.themeMode:"csr",t.name=o.dataset.theme||null),t}},T=(e,t)=>({cache:!1!==t.cache,detect:"auto"===t.detect?"auto":"fixed",encroachCss:!1!==t.encroachCss&&("object"!=typeof t.encroachCss||null==t.encroachCss||"after"!==t.encroachCss.mode&&"before"!==t.encroachCss.mode?{mode:"before"}:t.encroachCss),loglevel:"debug"===t.loglevel?t.loglevel:"silent",mode:"ssr"===t.mode?t.mode:"csr",name:"string"==typeof t.name?t.name:e}),v=(e,t)=>{!1===m()&&b()&&"object"==typeof t&&null!==t&&("fixed"===(t=T(e,t)).detect?(null===t.name&&"string"==typeof e&&(t.name=e),e===t.name&&(i.A11yUi.Theme=t,n.info(`[Theming] Theme "${e}" was set as default theme.`))):f||(f=!0,n.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.")))};let E=!1;const S=(e,t,o={})=>{!1===E&&(E=!0,s=!1),"function"==typeof e?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach((e=>{"function"==typeof e&&1===e.length?v(e(((e,t,n)=>h(e,t,n,o))),{cache:o.theme?.cache,detect:o.theme?.detect,encroachCss:o.theme?.encroachCss,mode:o.theme?.mode,name:o.theme?.name}):n.error("[Theming] An attempt was made to load an incompatible theme.")})),s=!0,"function"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const i=[];return t.forEach((e=>{const t=e();t instanceof Promise&&i.push(t)})),Promise.all(i)},A=new Set,R=/--[^;]+/g,L=/:/;let C,j=0;const M=(e,t)=>{let o=t.match(R);if(Array.isArray(o)){o=o.filter((e=>L.test(e)));const t=document.createElement("style");t.innerHTML=`.${e} {${o.join(";")}}`,document.querySelector("head")?.appendChild(t)}A.add(e)},O=(e,t)=>"object"==typeof i.A11yUi&&null!==i.A11yUi&&"object"==typeof i.A11yUi.Themes&&null!==i.A11yUi.Themes&&"object"==typeof i.A11yUi.Themes[e]&&null!==i.A11yUi.Themes[e]&&"string"==typeof i.A11yUi.Themes[e][t]?i.A11yUi.Themes[e][t].replace(/\r?\n/g,""):"",I=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName&&void 0===t.dataset.themingFallback))break;e.removeChild(t)}},P=(e,t)=>{try{if("ssr"===i.A11yUi.Theme?.mode)throw new Error("SSR");const o=[];t.forEach((e=>{const t=new CSSStyleSheet;t.replaceSync(e),o.push(t)})),e.adoptedStyleSheets=o}catch{[...t].reverse().forEach(((t,o)=>{if("string"!=typeof t||0===t.length)return;const n=document.createElement("style");switch(n.dataset.themingFallback="",o){case 4:n.dataset.themingBaseA11y="";break;case 3:n.dataset.themingBaseGlobal="";break;case 2:n.dataset.themingBaseComponent="";break;case 1:n.dataset.themingCustomGlobal="";break;case 0:n.dataset.themingCustomComponent="";break;default:n.dataset.themingUnknown=""}n.innerHTML=t,e.insertBefore(n,e.firstChild)}))}},H=(e,t,o)=>{if(!1!==o){const n=[...Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName))];let i;try{i=[...Array.from(e.adoptedStyleSheets)]}catch{i=[]}"before"===o?.mode?(n.reverse().forEach((e=>t.unshift(e.innerHTML))),i.reverse().forEach((e=>t.unshift(Array.from(e.cssRules).map((e=>e.cssText)).join(""))))):"after"===o?.mode&&(n.forEach((e=>t.push(e.innerHTML))),i.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join("")))))}},$=(e,t,o)=>{const n=t.name||"default";let s;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");s=e.shadowRoot}catch{s=e}if(i.A11yUi.CSS_STYLE_CACHE.get(n)?.has(e.tagName))k(e,s,i.A11yUi.CSS_STYLE_CACHE.get(n)?.get(e.tagName),o);else{const r=O(n,"PROPERTIES"),a=O(n,"GLOBAL"),l=O(n,e.tagName);!1===A.has(n)&&M(n,a);const c=[r,a,l];H(s,c,t.encroachCss),!0===t.cache&&(!1===i.A11yUi.CSS_STYLE_CACHE.has(n)&&i.A11yUi.CSS_STYLE_CACHE.set(n,new Map),i.A11yUi.CSS_STYLE_CACHE.get(n)?.set(e.tagName,c)),k(e,s,c,o)}},k=(e,t,o,n)=>{I(t),P(t,o),requestAnimationFrame((()=>{e.style.opacity=n}))},U={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1},x={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},F=new MutationObserver((e=>{for(const t of e){const e=t.target;if(e.classList.contains("hydrated")){const t=i.A11yUi.STYLING_TASK_QUEUE.get(e);if(t){const{hidingStyleProp:o,themeDetails:n}=t;$(e,n,o),D(e)}F.observe(e,x)}}})),Y=new IntersectionObserver((e=>{for(const t of e){const e=t.target;if(t.isIntersecting){if(0===j&&(j=performance.now()),e.classList.contains("hydrated")){const t=i.A11yUi.STYLING_TASK_QUEUE.get(e);if(t){const{hidingStyleProp:o,themeDetails:n}=t;$(e,n,o),D(e)}}else F.observe(e,U);Y.unobserve(e)}}}),{root:null,rootMargin:"15%",threshold:0}),z=(e,t)=>{i.A11yUi.STYLING_TASK_QUEUE.set(e,{startTime:0,hidingStyleProp:e.style.opacity||null,themeDetails:t}),e.style.opacity="0.01 !important",Y.observe(e)},D=e=>{i.A11yUi.STYLING_TASK_QUEUE.delete(e),clearTimeout(C),C=setTimeout((()=>{const e=Math.round(performance.now()-j-2500);console.log(`Theming finished for all components in ${e}ms`),j=0}),2500)},N=(e,t)=>{z(e,{...i.A11yUi.Theme,...t})};class _{Prefix;Key;Tag;createTheme=(e,t)=>r(e,t);createTranslation=(e,t)=>o(e,t);constructor(e,t,o){this.Prefix=e,this.Key=Object.getOwnPropertyNames(t),this.Tag=Object.getOwnPropertyNames(o)}}export{g as E,u as I,y as P,N as e,_ as t,O as y,S as z};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["root","definition","module","exports","log","this","noop","undefinedType","isIE","window","navigator","test","userAgent","logMethods","_loggersByName","defaultLogger","bindMethod","obj","methodName","method","bind","Function","prototype","call","e","apply","arguments","traceForIE","console","trace","realMethod","undefined","replaceLoggingMethods","level","getLevel","i","length","methodFactory","name","debug","levels","SILENT","enableLoggingWhenConsoleArrives","defaultMethodFactory","_level","_loggerName","Logger","factory","self","inheritedLevel","defaultLevel","userLevel","storageKey","persistLevelIfPossible","levelNum","levelName","toUpperCase","localStorage","ignore","document","cookie","encodeURIComponent","getPersistedLevel","storedLevel","cookieName","location","indexOf","exec","slice","clearPersistedLevel","removeItem","normalizeLevel","input","TypeError","TRACE","DEBUG","INFO","WARN","ERROR","setLevel","persist","setDefaultLevel","resetLevel","enableAll","disableAll","rebuild","childName","initialLevel","getLogger","logger","_log","noConflict","getLoggers","$","t","s","H","append","a","A11yUi","CSS_STYLE_CACHE","Map","HYDRATED_HISTORY","STYLING_TASK_QUEUE","Themes","T","h","O","_","g","Error","I","o","u","m","warn","P","p","Object","getOwnPropertyNames","forEach","r","n","toLowerCase","c","transformTagName","includes","A","HTMLElement","dataset","theme","parentNode","ShadowRoot","host","S","themeEncroachCss","themeReset","mode","themeEncroachCssMode","b","Theme","cache","encroachCss","R","E","loglevel","themeCache","themeLoglevel","themeMode","k","detect","G","info","U","z","Set","Array","isArray","error","Promise","push","all","C","D","F","f","w","Q","match","filter","createElement","innerHTML","join","querySelector","appendChild","add","y","replace","q","from","childNodes","HTMLStyleElement","tagName","themingFallback","removeChild","J","CSSStyleSheet","replaceSync","adoptedStyleSheets","reverse","themingBaseA11y","themingBaseGlobal","themingBaseComponent","themingCustomGlobal","themingCustomComponent","themingUnknown","insertBefore","firstChild","V","unshift","cssRules","map","cssText","L","shadowRoot","get","has","v","d","set","requestAnimationFrame","style","opacity","W","attributes","attributeFilter","childList","subtree","X","j","MutationObserver","target","classList","contains","hidingStyleProp","themeDetails","N","observe","M","IntersectionObserver","isIntersecting","performance","now","unobserve","rootMargin","threshold","Z","startTime","delete","clearTimeout","setTimeout","Math","round","ee","te","Prefix","Key","Tag","createTheme","createTranslation","constructor"],"sources":["../../node_modules/.pnpm/loglevel@1.9.2/node_modules/loglevel/lib/loglevel.js","../../node_modules/.pnpm/adopted-style-sheets@1.1.9-rc.9/node_modules/adopted-style-sheets/dist/index.mjs"],"sourcesContent":["/*\n* loglevel - https://github.com/pimterry/loglevel\n*\n* Copyright (c) 2013 Tim Perry\n* Licensed under the MIT license.\n*/\n(function (root, definition) {\n \"use strict\";\n if (typeof define === 'function' && define.amd) {\n define(definition);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = definition();\n } else {\n root.log = definition();\n }\n}(this, function () {\n \"use strict\";\n\n // Slightly dubious tricks to cut down minimized file size\n var noop = function() {};\n var undefinedType = \"undefined\";\n var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (\n /Trident\\/|MSIE /.test(window.navigator.userAgent)\n );\n\n var logMethods = [\n \"trace\",\n \"debug\",\n \"info\",\n \"warn\",\n \"error\"\n ];\n\n var _loggersByName = {};\n var defaultLogger = null;\n\n // Cross-browser bind equivalent that works at least back to IE6\n function bindMethod(obj, methodName) {\n var method = obj[methodName];\n if (typeof method.bind === 'function') {\n return method.bind(obj);\n } else {\n try {\n return Function.prototype.bind.call(method, obj);\n } catch (e) {\n // Missing bind shim or IE8 + Modernizr, fallback to wrapping\n return function() {\n return Function.prototype.apply.apply(method, [obj, arguments]);\n };\n }\n }\n }\n\n // Trace() doesn't print the message in IE, so for that case we need to wrap it\n function traceForIE() {\n if (console.log) {\n if (console.log.apply) {\n console.log.apply(console, arguments);\n } else {\n // In old IE, native console methods themselves don't have apply().\n Function.prototype.apply.apply(console.log, [console, arguments]);\n }\n }\n if (console.trace) console.trace();\n }\n\n // Build the best logging method possible for this env\n // Wherever possible we want to bind, not wrap, to preserve stack traces\n function realMethod(methodName) {\n if (methodName === 'debug') {\n methodName = 'log';\n }\n\n if (typeof console === undefinedType) {\n return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives\n } else if (methodName === 'trace' && isIE) {\n return traceForIE;\n } else if (console[methodName] !== undefined) {\n return bindMethod(console, methodName);\n } else if (console.log !== undefined) {\n return bindMethod(console, 'log');\n } else {\n return noop;\n }\n }\n\n // These private functions always need `this` to be set properly\n\n function replaceLoggingMethods() {\n /*jshint validthis:true */\n var level = this.getLevel();\n\n // Replace the actual methods.\n for (var i = 0; i < logMethods.length; i++) {\n var methodName = logMethods[i];\n this[methodName] = (i < level) ?\n noop :\n this.methodFactory(methodName, level, this.name);\n }\n\n // Define log.log as an alias for log.debug\n this.log = this.debug;\n\n // Return any important warnings.\n if (typeof console === undefinedType && level < this.levels.SILENT) {\n return \"No console available for logging\";\n }\n }\n\n // In old IE versions, the console isn't present until you first open it.\n // We build realMethod() replacements here that regenerate logging methods\n function enableLoggingWhenConsoleArrives(methodName) {\n return function () {\n if (typeof console !== undefinedType) {\n replaceLoggingMethods.call(this);\n this[methodName].apply(this, arguments);\n }\n };\n }\n\n // By default, we use closely bound real methods wherever possible, and\n // otherwise we wait for a console to appear, and then try again.\n function defaultMethodFactory(methodName, _level, _loggerName) {\n /*jshint validthis:true */\n return realMethod(methodName) ||\n enableLoggingWhenConsoleArrives.apply(this, arguments);\n }\n\n function Logger(name, factory) {\n // Private instance variables.\n var self = this;\n /**\n * The level inherited from a parent logger (or a global default). We\n * cache this here rather than delegating to the parent so that it stays\n * in sync with the actual logging methods that we have installed (the\n * parent could change levels but we might not have rebuilt the loggers\n * in this child yet).\n * @type {number}\n */\n var inheritedLevel;\n /**\n * The default level for this logger, if any. If set, this overrides\n * `inheritedLevel`.\n * @type {number|null}\n */\n var defaultLevel;\n /**\n * A user-specific level for this logger. If set, this overrides\n * `defaultLevel`.\n * @type {number|null}\n */\n var userLevel;\n\n var storageKey = \"loglevel\";\n if (typeof name === \"string\") {\n storageKey += \":\" + name;\n } else if (typeof name === \"symbol\") {\n storageKey = undefined;\n }\n\n function persistLevelIfPossible(levelNum) {\n var levelName = (logMethods[levelNum] || 'silent').toUpperCase();\n\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage[storageKey] = levelName;\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=\" + levelName + \";\";\n } catch (ignore) {}\n }\n\n function getPersistedLevel() {\n var storedLevel;\n\n if (typeof window === undefinedType || !storageKey) return;\n\n try {\n storedLevel = window.localStorage[storageKey];\n } catch (ignore) {}\n\n // Fallback to cookies if local storage gives us nothing\n if (typeof storedLevel === undefinedType) {\n try {\n var cookie = window.document.cookie;\n var cookieName = encodeURIComponent(storageKey);\n var location = cookie.indexOf(cookieName + \"=\");\n if (location !== -1) {\n storedLevel = /^([^;]+)/.exec(\n cookie.slice(location + cookieName.length + 1)\n )[1];\n }\n } catch (ignore) {}\n }\n\n // If the stored level is not valid, treat it as if nothing was stored.\n if (self.levels[storedLevel] === undefined) {\n storedLevel = undefined;\n }\n\n return storedLevel;\n }\n\n function clearPersistedLevel() {\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage.removeItem(storageKey);\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=; expires=Thu, 01 Jan 1970 00:00:00 UTC\";\n } catch (ignore) {}\n }\n\n function normalizeLevel(input) {\n var level = input;\n if (typeof level === \"string\" && self.levels[level.toUpperCase()] !== undefined) {\n level = self.levels[level.toUpperCase()];\n }\n if (typeof level === \"number\" && level >= 0 && level <= self.levels.SILENT) {\n return level;\n } else {\n throw new TypeError(\"log.setLevel() called with invalid level: \" + input);\n }\n }\n\n /*\n *\n * Public logger API - see https://github.com/pimterry/loglevel for details\n *\n */\n\n self.name = name;\n\n self.levels = { \"TRACE\": 0, \"DEBUG\": 1, \"INFO\": 2, \"WARN\": 3,\n \"ERROR\": 4, \"SILENT\": 5};\n\n self.methodFactory = factory || defaultMethodFactory;\n\n self.getLevel = function () {\n if (userLevel != null) {\n return userLevel;\n } else if (defaultLevel != null) {\n return defaultLevel;\n } else {\n return inheritedLevel;\n }\n };\n\n self.setLevel = function (level, persist) {\n userLevel = normalizeLevel(level);\n if (persist !== false) { // defaults to true\n persistLevelIfPossible(userLevel);\n }\n\n // NOTE: in v2, this should call rebuild(), which updates children.\n return replaceLoggingMethods.call(self);\n };\n\n self.setDefaultLevel = function (level) {\n defaultLevel = normalizeLevel(level);\n if (!getPersistedLevel()) {\n self.setLevel(level, false);\n }\n };\n\n self.resetLevel = function () {\n userLevel = null;\n clearPersistedLevel();\n replaceLoggingMethods.call(self);\n };\n\n self.enableAll = function(persist) {\n self.setLevel(self.levels.TRACE, persist);\n };\n\n self.disableAll = function(persist) {\n self.setLevel(self.levels.SILENT, persist);\n };\n\n self.rebuild = function () {\n if (defaultLogger !== self) {\n inheritedLevel = normalizeLevel(defaultLogger.getLevel());\n }\n replaceLoggingMethods.call(self);\n\n if (defaultLogger === self) {\n for (var childName in _loggersByName) {\n _loggersByName[childName].rebuild();\n }\n }\n };\n\n // Initialize all the internal levels.\n inheritedLevel = normalizeLevel(\n defaultLogger ? defaultLogger.getLevel() : \"WARN\"\n );\n var initialLevel = getPersistedLevel();\n if (initialLevel != null) {\n userLevel = normalizeLevel(initialLevel);\n }\n replaceLoggingMethods.call(self);\n }\n\n /*\n *\n * Top-level API\n *\n */\n\n defaultLogger = new Logger();\n\n defaultLogger.getLogger = function getLogger(name) {\n if ((typeof name !== \"symbol\" && typeof name !== \"string\") || name === \"\") {\n throw new TypeError(\"You must supply a name when creating a logger.\");\n }\n\n var logger = _loggersByName[name];\n if (!logger) {\n logger = _loggersByName[name] = new Logger(\n name,\n defaultLogger.methodFactory\n );\n }\n return logger;\n };\n\n // Grab the current global log variable in case of overwrite\n var _log = (typeof window !== undefinedType) ? window.log : undefined;\n defaultLogger.noConflict = function() {\n if (typeof window !== undefinedType &&\n window.log === defaultLogger) {\n window.log = _log;\n }\n\n return defaultLogger;\n };\n\n defaultLogger.getLoggers = function getLoggers() {\n return _loggersByName;\n };\n\n // ES6 default export, for compatibility\n defaultLogger['default'] = defaultLogger;\n\n return defaultLogger;\n}));\n","import m from\"loglevel\";const $=(t,e)=>s=>s(t,e),H=(t,e)=>s=>s(t,e,{append:!1}),a={A11yUi:{CSS_STYLE_CACHE:new Map,HYDRATED_HISTORY:[],STYLING_TASK_QUEUE:new Map,Themes:{}}};let T=!0,h=!1;const O=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,_=t=>typeof t==\"string\"&&O.test(t),g=t=>{if(_(t)===!1)throw new Error(`[Theming] The theme identifier \"${typeof t==\"string\"?t:\"\"}\" (Type: ${typeof t}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},I=(t,e,s,o)=>u(t,e,s,o),u=(t,e,s,o)=>{o=o??{},o.append=o.append??!1,g(t),T===!0&&h===!1&&(h=!0,m.warn(`[Theming] The theme process is locked. This means that the theme \"${t}\" should not be patched.\n\n\timport { register } from 'adopted-style-sheets';\n\timport { defineCustomElements } from '...';\n\timport { THEME } from '...';\n\n\tregister(THEME, defineCustomElements)\n\t.then(() => {\n\t\t// run your app or website\n\t})\n\t.catch(console.warn);`)),(typeof a.A11yUi.Themes[t]!=\"object\"||a.A11yUi.Themes[t]===null)&&(a.A11yUi.Themes[t]={}),o.append&&typeof a.A11yUi.Themes[t][e]==\"string\"?a.A11yUi.Themes[t][e]+=s:a.A11yUi.Themes[t][e]=s},P=(t,e,s,o)=>p(t,e,s,o),p=(t,e,s,o)=>(g(t),typeof e==\"object\"&&e!==null&&Object.getOwnPropertyNames(e).forEach(r=>{const n=e[r],i=r.toLowerCase(),c=typeof o?.transformTagName==\"function\"&&![\"GLOBAL\",\"PROPERTIES\"].includes(r)?o.transformTagName(i):r;typeof n==\"string\"&&n.length>0&&u(t,c.toUpperCase(),n,s)}),t),A=t=>{if(t instanceof HTMLElement){if(typeof t.dataset.theme==\"string\")return t;{let e=t.parentNode;for(;e instanceof ShadowRoot;)e=e.host;return A(e)}}else return null},S=(t={})=>t.themeEncroachCss===\"false\"||t.themeReset===\"true\"?!1:{mode:t.themeEncroachCssMode===\"after\"||t.themeEncroachCssMode===\"before\"?t.themeEncroachCssMode:\"before\"},b=()=>typeof a.A11yUi==\"object\"&&a.A11yUi!==null&&typeof a.A11yUi.Theme==\"object\"&&a.A11yUi.Theme!==null&&typeof a.A11yUi.Theme.cache==\"boolean\"&&typeof a.A11yUi.Theme.encroachCss==\"object\"&&a.A11yUi.Theme.encroachCss!==null&&typeof a.A11yUi.Theme.encroachCss.mode==\"string\"&&typeof a.A11yUi.Theme.name==\"string\",R=()=>!(typeof a.A11yUi==\"object\"&&a.A11yUi!==null)||!(typeof a.A11yUi.Theme==\"object\"&&a.A11yUi.Theme!==null)||a.A11yUi.Theme.name!==\"default\",E=t=>{if(b())return a.A11yUi.Theme;{const e={cache:!0,encroachCss:S(),loglevel:\"silent\",mode:\"csr\",name:null},s=A(t);return s instanceof HTMLElement&&(e.cache=s.dataset.themeCache!==\"false\",e.encroachCss=S(s.dataset),e.loglevel=s.dataset.themeLoglevel===\"debug\"?s.dataset.themeLoglevel:\"silent\",e.mode=s.dataset.themeMode===\"ssr\"?s.dataset.themeMode:\"csr\",e.name=s.dataset.theme||null),e}},Y=t=>E(t).name,k=(t,e)=>({cache:e.cache!==!1,detect:e.detect===\"auto\"?\"auto\":\"fixed\",encroachCss:e.encroachCss===!1?!1:typeof e.encroachCss==\"object\"&&e.encroachCss!=null&&(e.encroachCss.mode===\"after\"||e.encroachCss.mode===\"before\")?e.encroachCss:{mode:\"before\"},loglevel:e.loglevel===\"debug\"?e.loglevel:\"silent\",mode:e.mode===\"ssr\"?e.mode:\"csr\",name:typeof e.name==\"string\"?e.name:t}),G=(t,e)=>{b()===!1&&R()&&typeof e==\"object\"&&e!==null&&(e=k(t,e),e.detect===\"fixed\"?(e.name===null&&typeof t==\"string\"&&(e.name=t),t===e.name&&(a.A11yUi.Theme=e,m.info(`[Theming] Theme \"${t}\" was set as default theme.`))):h||(h=!0,m.warn(\"[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.\")))},x=()=>Object.keys(a.A11yUi.Themes),B=()=>a.A11yUi.Themes,K=t=>a.A11yUi.Themes[t];let U=!1;const z=(t,e,s={})=>{U===!1&&(U=!0,T=!1),typeof t==\"function\"?t=new Set([t]):Array.isArray(t)&&(t=new Set(t)),t instanceof Set&&t.forEach(r=>{typeof r==\"function\"&&r.length===1?G(r((n,i,c)=>p(n,i,c,s)),{cache:s.theme?.cache,detect:s.theme?.detect,encroachCss:s.theme?.encroachCss,mode:s.theme?.mode,name:s.theme?.name}):m.error(\"[Theming] An attempt was made to load an incompatible theme.\")}),T=!0,typeof e==\"function\"?e=new Set([e]):Array.isArray(e)&&(e=new Set(e));const o=[];return e.forEach(r=>{const n=r();n instanceof Promise&&o.push(n)}),Promise.all(o)};class l{static options={enumerable:!1,immutable:!1};static instances=new Map;store;constructor(e,s){this.store=this.createStore(e,s)}static getInstance(e,s){let o=l.instances.get(e);return o===void 0&&(o=new l(s,e),l.instances.set(e,o)),o}createStore(e,s){return Object.defineProperty(e,s,{enumerable:!1,value:{},writable:!1}),e[s]}recursiveSetItem(e,s,o,r=l.options){let n=typeof o==\"object\"&&o!==null?{}:o;if(Object.defineProperty(e,s,{enumerable:r.enumerable===!0,get:()=>n,set:r.immutable===!0?void 0:i=>n=i}),typeof o==\"object\"&&o!==null)for(const[i,c]of Object.entries(o))this.recursiveSetItem(e[s],i,c,r)}setItem(e,s,o=l.options){return this.recursiveSetItem(this.store,e,s,o),this}getItem(e){return Array.isArray(e)?e.map(s=>this.getItem(s)):this.store[e]}}const C=new Set,D=/--[^;]+/g,F=/:/;let f=0,w;const Q=(t,e)=>{let s=e.match(D);if(Array.isArray(s)){s=s.filter(r=>F.test(r));const o=document.createElement(\"style\");o.innerHTML=`.${t} {${s.join(\";\")}}`,document.querySelector(\"head\")?.appendChild(o)}C.add(t)},y=(t,e)=>typeof a.A11yUi==\"object\"&&a.A11yUi!==null&&typeof a.A11yUi.Themes==\"object\"&&a.A11yUi.Themes!==null&&typeof a.A11yUi.Themes[t]==\"object\"&&a.A11yUi.Themes[t]!==null&&typeof a.A11yUi.Themes[t][e]==\"string\"?a.A11yUi.Themes[t][e].replace(/\\r?\\n/g,\"\"):\"\",q=t=>{for(const e of Array.from(t.childNodes))if(e instanceof HTMLStyleElement&&e.tagName===\"STYLE\"&&e.dataset.themingFallback===void 0)t.removeChild(e);else break},J=(t,e)=>{try{if(a.A11yUi.Theme?.mode===\"ssr\")throw new Error(\"SSR\");const s=[];e.forEach(o=>{const r=new CSSStyleSheet;r.replaceSync(o),s.push(r)}),t.adoptedStyleSheets=s}catch{[...e].reverse().forEach((o,r)=>{if(typeof o!=\"string\"||o.length===0)return;const n=document.createElement(\"style\");switch(n.dataset.themingFallback=\"\",r){case 4:n.dataset.themingBaseA11y=\"\";break;case 3:n.dataset.themingBaseGlobal=\"\";break;case 2:n.dataset.themingBaseComponent=\"\";break;case 1:n.dataset.themingCustomGlobal=\"\";break;case 0:n.dataset.themingCustomComponent=\"\";break;default:n.dataset.themingUnknown=\"\";break}n.innerHTML=o,t.insertBefore(n,t.firstChild)})}},V=(t,e,s)=>{if(s!==!1){const o=[...Array.from(t.childNodes).filter(n=>n instanceof HTMLStyleElement&&n.tagName===\"STYLE\")];let r;try{r=[...Array.from(t.adoptedStyleSheets)]}catch{r=[]}s?.mode===\"before\"?(o.reverse().forEach(n=>e.unshift(n.innerHTML)),r.reverse().forEach(n=>e.unshift(Array.from(n.cssRules).map(i=>i.cssText).join(\"\")))):s?.mode===\"after\"&&(o.forEach(n=>e.push(n.innerHTML)),r.forEach(n=>e.push(Array.from(n.cssRules).map(i=>i.cssText).join(\"\"))))}},L=(t,e,s)=>{const o=e.name||\"default\";let r;try{if(t.shadowRoot===null)throw new Error(\"ShadowRoot is null\");r=t.shadowRoot}catch{r=t}if(a.A11yUi.CSS_STYLE_CACHE.get(o)?.has(t.tagName))v(t,r,a.A11yUi.CSS_STYLE_CACHE.get(o)?.get(t.tagName),s);else{const n=y(o,\"PROPERTIES\"),i=y(o,\"GLOBAL\"),c=y(o,t.tagName);C.has(o)===!1&&Q(o,i);const d=[n,i,c];V(r,d,e.encroachCss),e.cache===!0&&(a.A11yUi.CSS_STYLE_CACHE.has(o)===!1&&a.A11yUi.CSS_STYLE_CACHE.set(o,new Map),a.A11yUi.CSS_STYLE_CACHE.get(o)?.set(t.tagName,d)),v(t,r,d,s)}},v=(t,e,s,o)=>{q(e),J(e,s),requestAnimationFrame(()=>{t.style.opacity=o})},W={attributes:!0,attributeFilter:[\"class\"],childList:!1,subtree:!1},X={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},j=new MutationObserver(t=>{for(const e of t){const s=e.target;if(s.classList.contains(\"hydrated\")){const o=a.A11yUi.STYLING_TASK_QUEUE.get(s);if(o){const{hidingStyleProp:r,themeDetails:n}=o;L(s,n,r),N(s)}j.observe(s,X)}}}),M=new IntersectionObserver(t=>{for(const e of t){const s=e.target;if(e.isIntersecting){if(f===0&&(f=performance.now()),s.classList.contains(\"hydrated\")){const o=a.A11yUi.STYLING_TASK_QUEUE.get(s);if(o){const{hidingStyleProp:r,themeDetails:n}=o;L(s,n,r),N(s)}}else j.observe(s,W);M.unobserve(s)}}},{root:null,rootMargin:\"15%\",threshold:0}),Z=(t,e)=>{a.A11yUi.STYLING_TASK_QUEUE.set(t,{startTime:0,hidingStyleProp:t.style.opacity||null,themeDetails:e}),t.style.opacity=\"0.01 !important\",M.observe(t)},N=t=>{a.A11yUi.STYLING_TASK_QUEUE.delete(t),clearTimeout(w),w=setTimeout(()=>{const e=Math.round(performance.now()-f-2500);console.log(`Theming finished for all components in ${e}ms`),f=0},2500)},ee=(t,e)=>{Z(t,{...a.A11yUi.Theme,...e})};class te{Prefix;Key;Tag;createTheme=(e,s)=>H(e,s);createTranslation=(e,s)=>$(e,s);constructor(e,s,o){this.Prefix=e,this.Key=Object.getOwnPropertyNames(s),this.Tag=Object.getOwnPropertyNames(o)}}export{l as RobustStore,a as STORE,te as Theme,y as getCssStyle,K as getRegisteredThemeByName,x as getRegisteredThemeNames,B as getRegisteredThemes,Y as getTheme,E as getThemeDetails,P as patchTheme,I as patchThemeTag,z as register,p as setTheme,ee as setThemeStyle,u as set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