@duetds/components 5.1.9 → 5.2.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/hydrate/index.js +216 -33
- package/lib/cjs/duet-action-button.cjs.entry.js +16 -8
- package/lib/cjs/duet-alert.cjs.entry.js +2 -2
- package/lib/cjs/duet-badge.cjs.entry.js +2 -2
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +2 -2
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +2 -2
- package/lib/cjs/duet-button_2.cjs.entry.js +17 -2
- package/lib/cjs/duet-caption_4.cjs.entry.js +2 -2
- package/lib/cjs/duet-card.cjs.entry.js +2 -2
- package/lib/cjs/duet-checkbox.cjs.entry.js +15 -3
- package/lib/cjs/duet-choice_2.cjs.entry.js +16 -4
- package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
- package/lib/cjs/duet-combobox.cjs.entry.js +2 -2
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
- package/lib/cjs/duet-date-picker.cjs.entry.js +3 -4
- package/lib/cjs/duet-divider_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +2 -2
- package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
- package/lib/cjs/duet-fieldset.cjs.entry.js +2 -2
- package/lib/cjs/duet-footer.cjs.entry.js +2 -2
- package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-hero.cjs.entry.js +2 -2
- package/lib/cjs/duet-icon.cjs.entry.js +2 -2
- package/lib/cjs/duet-input_2.cjs.entry.js +18 -4
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-modal.cjs.entry.js +12 -4
- package/lib/cjs/duet-notification_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-number-input.cjs.entry.js +15 -3
- package/lib/cjs/duet-pagination_2.cjs.entry.js +19 -3
- package/lib/cjs/duet-progress.cjs.entry.js +15 -3
- package/lib/cjs/duet-radio_2.cjs.entry.js +15 -3
- package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +2 -2
- package/lib/cjs/duet-select.cjs.entry.js +2 -2
- package/lib/cjs/duet-step_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-textarea.cjs.entry.js +17 -3
- package/lib/cjs/duet-toggle.cjs.entry.js +15 -3
- package/lib/cjs/duet-tooltip.cjs.entry.js +2 -2
- package/lib/cjs/duet-tray.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +2 -2
- package/lib/cjs/{focus-utils-3ef68d4c.js → focus-utils-bfb10d32.js} +1 -1
- package/lib/cjs/{index-e1907091.js → index-a4844346.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/cjs/{themeable-component-940d3b50.js → themeable-component-fdeaef9f.js} +0 -0
- package/lib/collection/{utils/form-components.js → common/a11y-component.js} +0 -0
- package/lib/collection/common/form-components.js +4 -0
- package/lib/collection/common/index.js +4 -0
- package/lib/collection/{utils → common}/themeable-component.js +0 -0
- package/lib/collection/components/duet-action-button/duet-action-button.js +57 -13
- package/lib/collection/components/duet-alert/duet-alert.js +1 -1
- package/lib/collection/components/duet-badge/duet-badge.js +1 -1
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +1 -1
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +1 -1
- package/lib/collection/components/duet-button/duet-button.js +70 -1
- package/lib/collection/components/duet-caption/duet-caption.js +1 -1
- package/lib/collection/components/duet-card/duet-card.js +1 -1
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +68 -2
- package/lib/collection/components/duet-choice/duet-choice.js +68 -2
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +1 -1
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +1 -1
- package/lib/collection/components/duet-combobox/duet-combobox.js +1 -1
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +1 -1
- package/lib/collection/components/duet-date-picker/utils.js +0 -1
- package/lib/collection/components/duet-divider/duet-divider.js +1 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +1 -1
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +1 -1
- package/lib/collection/components/duet-footer/duet-footer.js +1 -1
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +1 -1
- package/lib/collection/components/duet-header/duet-header.css +1 -1
- package/lib/collection/components/duet-header/duet-header.js +1 -1
- package/lib/collection/components/duet-heading/duet-heading.js +1 -1
- package/lib/collection/components/duet-hero/duet-hero.js +1 -1
- package/lib/collection/components/duet-icon/duet-icon.js +1 -1
- package/lib/collection/components/duet-input/duet-input.js +72 -4
- package/lib/collection/components/duet-label/duet-label.js +1 -1
- package/lib/collection/components/duet-link/duet-link.js +1 -1
- package/lib/collection/components/duet-list/duet-list.js +1 -1
- package/lib/collection/components/duet-logo/duet-logo.js +1 -1
- package/lib/collection/components/duet-modal/duet-modal.js +80 -2
- package/lib/collection/components/duet-notification/duet-notification.js +1 -1
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
- package/lib/collection/components/duet-number-input/duet-number-input.js +68 -2
- package/lib/collection/components/duet-pagination/duet-pagination.js +90 -2
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +1 -1
- package/lib/collection/components/duet-progress/duet-progress.js +68 -2
- package/lib/collection/components/duet-radio/duet-radio.js +68 -2
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +1 -1
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -1
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +1 -1
- package/lib/collection/components/duet-select/duet-select.js +1 -1
- package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
- package/lib/collection/components/duet-step/duet-step.js +1 -1
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +1 -1
- package/lib/collection/components/duet-table/duet-table.js +1 -1
- package/lib/collection/components/duet-textarea/duet-textarea.js +70 -2
- package/lib/collection/components/duet-toggle/duet-toggle.js +68 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
- package/lib/collection/components/duet-tray/duet-tray.js +1 -1
- package/lib/collection/components/duet-upload/duet-upload.js +1 -1
- package/lib/custom-elements-bundle/index.js +187 -41
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-d2c9bb5f.system.entry.js → p-00bf0bb9.system.entry.js} +1 -1
- package/lib/duet/{p-6d148390.system.entry.js → p-01478a01.system.entry.js} +2 -2
- package/lib/duet/{p-c23ef060.entry.js → p-030e20d7.entry.js} +1 -1
- package/lib/duet/{p-906e53f9.entry.js → p-03b6ce80.entry.js} +1 -1
- package/lib/duet/{p-007518fb.entry.js → p-04061cef.entry.js} +1 -1
- package/lib/duet/p-05e069d8.entry.js +4 -0
- package/lib/duet/{p-fbc61588.system.entry.js → p-071ebe1d.system.entry.js} +1 -1
- package/lib/duet/p-08eb2200.entry.js +4 -0
- package/lib/duet/{p-b5ef3764.entry.js → p-0ae816ee.entry.js} +1 -1
- package/lib/duet/{p-4fcde9bd.system.entry.js → p-0bee3151.system.entry.js} +1 -1
- package/lib/duet/{p-41ed75d0.system.entry.js → p-10585f06.system.entry.js} +1 -1
- package/lib/duet/{p-cce3f6c1.system.js → p-12c89686.system.js} +1 -1
- package/lib/duet/{p-d50a26ce.system.entry.js → p-19100783.system.entry.js} +2 -2
- package/lib/duet/{p-ca10ad5f.system.entry.js → p-1ff51ad8.system.entry.js} +1 -1
- package/lib/duet/{p-2d244cbb.system.entry.js → p-24721182.system.entry.js} +1 -1
- package/lib/duet/{p-0e3fad96.entry.js → p-271107d8.entry.js} +1 -1
- package/lib/duet/p-285714dd.entry.js +4 -0
- package/lib/duet/{p-fcf30d60.system.entry.js → p-30e901f2.system.entry.js} +1 -1
- package/lib/duet/p-3260eef0.entry.js +4 -0
- package/lib/duet/{p-ef5c2a47.system.entry.js → p-33388bf3.system.entry.js} +1 -1
- package/lib/duet/{p-6b03322b.system.js → p-33b3aba4.system.js} +0 -0
- package/lib/duet/p-360f8fff.system.entry.js +4 -0
- package/lib/duet/{p-56212fca.js → p-37dc064c.js} +1 -1
- package/lib/duet/{p-b32178af.entry.js → p-41cc3490.entry.js} +1 -1
- package/lib/duet/{p-cd158ec2.system.entry.js → p-423d4211.system.entry.js} +1 -1
- package/lib/duet/p-437fe50b.system.entry.js +4 -0
- package/lib/duet/{p-d7e383e1.system.entry.js → p-495a1326.system.entry.js} +1 -1
- package/lib/duet/p-4972c76e.system.js +4 -0
- package/lib/duet/p-4a7f290f.entry.js +4 -0
- package/lib/duet/{p-abf8eaf7.js → p-4ebf1618.js} +0 -0
- package/lib/duet/{p-4fb88265.entry.js → p-53ad61ed.entry.js} +1 -1
- package/lib/duet/{p-7f26e522.entry.js → p-56d3e64f.entry.js} +1 -1
- package/lib/duet/p-5a5d8fb1.entry.js +4 -0
- package/lib/duet/p-5b1cbe5b.entry.js +4 -0
- package/lib/duet/{p-c5b1e054.system.entry.js → p-5f009925.system.entry.js} +1 -1
- package/lib/duet/{p-f4bba24d.system.entry.js → p-641edb93.system.entry.js} +1 -1
- package/lib/duet/p-64685397.entry.js +4 -0
- package/lib/duet/{p-55376e66.system.entry.js → p-66536958.system.entry.js} +1 -1
- package/lib/duet/{p-1ce6c0c0.entry.js → p-68cbc3b7.entry.js} +1 -1
- package/lib/duet/{p-76dc3268.entry.js → p-6a843f9e.entry.js} +1 -1
- package/lib/duet/p-7021d0c6.system.entry.js +4 -0
- package/lib/duet/{p-86395c08.entry.js → p-72739cec.entry.js} +1 -1
- package/lib/duet/{p-f4b909bd.system.entry.js → p-73cd4f03.system.entry.js} +1 -1
- package/lib/duet/{p-fcb0ac03.system.entry.js → p-76e38bb2.system.entry.js} +2 -2
- package/lib/duet/{p-eeeadb94.entry.js → p-78de93b3.entry.js} +1 -1
- package/lib/duet/{p-36455aba.entry.js → p-790ee851.entry.js} +1 -1
- package/lib/duet/{p-8fa561be.system.entry.js → p-7a4764db.system.entry.js} +1 -1
- package/lib/duet/{p-43bdb5df.system.entry.js → p-7fe67436.system.entry.js} +2 -2
- package/lib/duet/p-88ffd1cc.entry.js +4 -0
- package/lib/duet/{p-5d2204fc.entry.js → p-9406ee60.entry.js} +1 -1
- package/lib/duet/p-9496d6d4.entry.js +4 -0
- package/lib/duet/{p-70f5c86d.entry.js → p-95a0db46.entry.js} +1 -1
- package/lib/duet/{p-2911128f.entry.js → p-95e1a336.entry.js} +1 -1
- package/lib/duet/p-971f42d6.system.entry.js +4 -0
- package/lib/duet/{p-5b0f15e4.entry.js → p-97f1e254.entry.js} +1 -1
- package/lib/duet/{p-3ed22b96.system.entry.js → p-98039227.system.entry.js} +1 -1
- package/lib/duet/p-98a9556f.js +4 -0
- package/lib/duet/p-9920ad3b.entry.js +4 -0
- package/lib/duet/{p-b67edf51.system.entry.js → p-99fe93c6.system.entry.js} +1 -1
- package/lib/duet/{p-5b609e18.entry.js → p-a2fa0049.entry.js} +1 -1
- package/lib/duet/{p-0a8cb1f2.system.entry.js → p-a509cc2b.system.entry.js} +1 -1
- package/lib/duet/{p-0fce5ee0.entry.js → p-a76bf729.entry.js} +1 -1
- package/lib/duet/{p-7772d2f3.system.entry.js → p-a843e579.system.entry.js} +1 -1
- package/lib/duet/{p-6b87a943.system.entry.js → p-afd34b6b.system.entry.js} +1 -1
- package/lib/duet/{p-00f69be4.entry.js → p-b08bb1fd.entry.js} +1 -1
- package/lib/duet/{p-080ce662.entry.js → p-b0a4dc6d.entry.js} +1 -1
- package/lib/duet/{p-2e68b854.system.entry.js → p-b16befbc.system.entry.js} +1 -1
- package/lib/duet/{p-f1f59897.system.entry.js → p-b35d6368.system.entry.js} +1 -1
- package/lib/duet/{p-d92b2eac.system.entry.js → p-b4ca3864.system.entry.js} +1 -1
- package/lib/duet/{p-b953aedb.system.entry.js → p-b51928dc.system.entry.js} +1 -1
- package/lib/duet/{p-3504f285.system.entry.js → p-b7462f8c.system.entry.js} +1 -1
- package/lib/duet/p-b8623ab8.entry.js +4 -0
- package/lib/duet/{p-7f705e70.entry.js → p-bb4d8e7b.entry.js} +1 -1
- package/lib/duet/p-bf87d801.entry.js +4 -0
- package/lib/duet/p-c0aca70c.entry.js +4 -0
- package/lib/duet/{p-43a54146.system.entry.js → p-c1d55269.system.entry.js} +1 -1
- package/lib/duet/{p-6fd465b3.entry.js → p-c7657242.entry.js} +1 -1
- package/lib/duet/{p-112c7cf4.entry.js → p-cb8ebdd7.entry.js} +1 -1
- package/lib/duet/{p-95be8318.system.entry.js → p-d33b5ac5.system.entry.js} +1 -1
- package/lib/duet/{p-1c315e22.system.entry.js → p-d4dba079.system.entry.js} +1 -1
- package/lib/duet/{p-d5b3feeb.system.entry.js → p-e75c7aa8.system.entry.js} +1 -1
- package/lib/duet/{p-1d87a095.system.js → p-e7b761c5.system.js} +1 -1
- package/lib/duet/{p-0da0c06d.system.entry.js → p-e8f8374b.system.entry.js} +2 -2
- package/lib/duet/{p-eda1280f.entry.js → p-ec6d63fc.entry.js} +1 -1
- package/lib/duet/{p-851b469e.system.entry.js → p-ee97a406.system.entry.js} +2 -2
- package/lib/duet/{p-8c372ef6.system.entry.js → p-f5613315.system.entry.js} +2 -2
- package/lib/duet/{p-ae5872e3.system.entry.js → p-f91e88e3.system.entry.js} +1 -1
- package/lib/duet/p-fbec1a47.entry.js +4 -0
- package/lib/duet/p-fd0a3ab7.entry.js +4 -0
- package/lib/duet/p-fe99b9cb.entry.js +4 -0
- package/lib/duet/p-fef3a403.system.entry.js +4 -0
- package/lib/esm/duet-action-button.entry.js +16 -8
- package/lib/esm/duet-alert.entry.js +2 -2
- package/lib/esm/duet-badge.entry.js +2 -2
- package/lib/esm/duet-breadcrumb.entry.js +2 -2
- package/lib/esm/duet-breadcrumbs.entry.js +2 -2
- package/lib/esm/duet-button_2.entry.js +17 -2
- package/lib/esm/duet-caption_4.entry.js +2 -2
- package/lib/esm/duet-card.entry.js +2 -2
- package/lib/esm/duet-checkbox.entry.js +15 -3
- package/lib/esm/duet-choice_2.entry.js +16 -4
- package/lib/esm/duet-collapsible.entry.js +2 -2
- package/lib/esm/duet-combobox.entry.js +2 -2
- package/lib/esm/duet-cookie-consent.entry.js +2 -2
- package/lib/esm/duet-date-picker.entry.js +3 -4
- package/lib/esm/duet-divider_2.entry.js +2 -2
- package/lib/esm/duet-editable-table_3.entry.js +2 -2
- package/lib/esm/duet-empty-state.entry.js +2 -2
- package/lib/esm/duet-fieldset.entry.js +2 -2
- package/lib/esm/duet-footer.entry.js +2 -2
- package/lib/esm/duet-grid_2.entry.js +2 -2
- package/lib/esm/duet-header_2.entry.js +3 -3
- package/lib/esm/duet-hero.entry.js +2 -2
- package/lib/esm/duet-icon.entry.js +2 -2
- package/lib/esm/duet-input_2.entry.js +18 -4
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +2 -2
- package/lib/esm/duet-modal.entry.js +12 -4
- package/lib/esm/duet-notification_2.entry.js +2 -2
- package/lib/esm/duet-number-input.entry.js +15 -3
- package/lib/esm/duet-pagination_2.entry.js +19 -3
- package/lib/esm/duet-progress.entry.js +15 -3
- package/lib/esm/duet-radio_2.entry.js +15 -3
- package/lib/esm/duet-range-slider.entry.js +2 -2
- package/lib/esm/duet-scrollable_3.entry.js +2 -2
- package/lib/esm/duet-select.entry.js +2 -2
- package/lib/esm/duet-step_2.entry.js +2 -2
- package/lib/esm/duet-textarea.entry.js +17 -3
- package/lib/esm/duet-toggle.entry.js +15 -3
- package/lib/esm/duet-tooltip.entry.js +2 -2
- package/lib/esm/duet-tray.entry.js +2 -2
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +2 -2
- package/lib/esm/{focus-utils-dbdd6235.js → focus-utils-3af074ea.js} +1 -1
- package/lib/esm/{index-33a07cd5.js → index-ab2bfa68.js} +1 -1
- package/lib/esm/loader.js +2 -2
- package/lib/esm/{themeable-component-e8fc98bf.js → themeable-component-cb76be7c.js} +0 -0
- package/lib/esm-es5/duet-action-button.entry.js +2 -2
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +1 -1
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +2 -2
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +1 -1
- package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
- package/lib/esm-es5/duet-date-picker.entry.js +1 -1
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +1 -1
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +1 -1
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +2 -2
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.entry.js +2 -2
- package/lib/esm-es5/duet-pagination_2.entry.js +2 -2
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-radio_2.entry.js +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +2 -2
- package/lib/esm-es5/duet-toggle.entry.js +2 -2
- package/lib/esm-es5/duet-tooltip.entry.js +1 -1
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/{focus-utils-dbdd6235.js → focus-utils-3af074ea.js} +1 -1
- package/lib/esm-es5/{index-33a07cd5.js → index-ab2bfa68.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{themeable-component-e8fc98bf.js → themeable-component-cb76be7c.js} +0 -0
- package/lib/types/common/a11y-component.d.ts +13 -0
- package/lib/types/{utils → common}/form-components.d.ts +0 -1
- package/lib/types/common/index.d.ts +3 -0
- package/lib/types/{utils → common}/themeable-component.d.ts +0 -0
- package/lib/types/components/duet-action-button/duet-action-button.d.ts +15 -7
- package/lib/types/components/duet-alert/duet-alert.d.ts +1 -1
- package/lib/types/components/duet-badge/duet-badge.d.ts +1 -1
- package/lib/types/components/duet-breadcrumbs/duet-breadcrumb.d.ts +1 -1
- package/lib/types/components/duet-breadcrumbs/duet-breadcrumbs.d.ts +1 -1
- package/lib/types/components/duet-button/duet-button.d.ts +14 -3
- package/lib/types/components/duet-caption/duet-caption.d.ts +1 -1
- package/lib/types/components/duet-card/duet-card.d.ts +1 -1
- package/lib/types/components/duet-checkbox/duet-checkbox.d.ts +14 -3
- package/lib/types/components/duet-choice/duet-choice.d.ts +14 -3
- package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +1 -1
- package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +1 -1
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +1 -1
- package/lib/types/components/duet-cookie-consent/duet-cookie-consent.d.ts +1 -1
- package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +2 -2
- package/lib/types/components/duet-divider/duet-divider.d.ts +1 -1
- package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +1 -1
- package/lib/types/components/duet-empty-state/duet-empty-state.d.ts +1 -1
- package/lib/types/components/duet-fieldset/duet-fieldset.d.ts +1 -1
- package/lib/types/components/duet-footer/duet-footer.d.ts +1 -1
- package/lib/types/components/duet-grid-item/duet-grid-item.d.ts +1 -1
- package/lib/types/components/duet-header/duet-header.d.ts +1 -1
- package/lib/types/components/duet-heading/duet-heading.d.ts +1 -1
- package/lib/types/components/duet-hero/duet-hero.d.ts +1 -1
- package/lib/types/components/duet-icon/duet-icon.d.ts +1 -1
- package/lib/types/components/duet-input/duet-input.d.ts +15 -4
- package/lib/types/components/duet-label/duet-label.d.ts +1 -1
- package/lib/types/components/duet-link/duet-link.d.ts +1 -1
- package/lib/types/components/duet-list/duet-list.d.ts +1 -1
- package/lib/types/components/duet-logo/duet-logo.d.ts +1 -1
- package/lib/types/components/duet-modal/duet-modal.d.ts +18 -2
- package/lib/types/components/duet-notification/duet-notification.d.ts +1 -1
- package/lib/types/components/duet-notification-drawer/duet-notification-drawer.d.ts +1 -1
- package/lib/types/components/duet-number-input/duet-number-input.d.ts +14 -3
- package/lib/types/components/duet-pagination/duet-pagination.d.ts +18 -2
- package/lib/types/components/duet-paragraph/duet-paragraph.d.ts +1 -1
- package/lib/types/components/duet-progress/duet-progress.d.ts +14 -2
- package/lib/types/components/duet-radio/duet-radio.d.ts +14 -3
- package/lib/types/components/duet-radio-group/duet-radio-group.d.ts +1 -1
- package/lib/types/components/duet-range-slider/duet-range-slider.d.ts +2 -2
- package/lib/types/components/duet-range-stepper/duet-range-stepper.d.ts +1 -1
- package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +1 -1
- package/lib/types/components/duet-select/duet-select.d.ts +2 -2
- package/lib/types/components/duet-spinner/duet-spinner.d.ts +1 -1
- package/lib/types/components/duet-step/duet-step.d.ts +1 -1
- package/lib/types/components/duet-stepper/duet-stepper.d.ts +1 -1
- package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +1 -1
- package/lib/types/components/duet-table/duet-table.d.ts +1 -1
- package/lib/types/components/duet-textarea/duet-textarea.d.ts +14 -3
- package/lib/types/components/duet-toggle/duet-toggle.d.ts +14 -3
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +1 -1
- package/lib/types/components/duet-tray/duet-tray.d.ts +1 -1
- package/lib/types/components/duet-upload/duet-upload.d.ts +2 -2
- package/lib/types/components.d.ts +328 -32
- package/package.json +5 -5
- package/lib/duet/p-14940019.entry.js +0 -4
- package/lib/duet/p-1a39ba08.entry.js +0 -4
- package/lib/duet/p-2c66423c.system.entry.js +0 -4
- package/lib/duet/p-356c2c34.entry.js +0 -4
- package/lib/duet/p-41e0b7a6.entry.js +0 -4
- package/lib/duet/p-46aab89e.entry.js +0 -4
- package/lib/duet/p-539f2a06.system.js +0 -4
- package/lib/duet/p-60931fe2.entry.js +0 -4
- package/lib/duet/p-65256911.entry.js +0 -4
- package/lib/duet/p-6d4f68c7.entry.js +0 -4
- package/lib/duet/p-80d48e3c.entry.js +0 -4
- package/lib/duet/p-934b6e46.entry.js +0 -4
- package/lib/duet/p-aa3a10db.system.entry.js +0 -4
- package/lib/duet/p-b97e1c6e.entry.js +0 -4
- package/lib/duet/p-c94d980f.system.entry.js +0 -4
- package/lib/duet/p-c953e685.entry.js +0 -4
- package/lib/duet/p-ce973d95.entry.js +0 -4
- package/lib/duet/p-da4808e6.entry.js +0 -4
- package/lib/duet/p-da6ec22c.js +0 -4
- package/lib/duet/p-e70200b0.entry.js +0 -4
- package/lib/duet/p-e93e4714.system.entry.js +0 -4
- package/lib/duet/p-fb9b713b.entry.js +0 -4
- package/lib/duet/p-fec90322.entry.js +0 -4
- package/lib/duet/p-ff54acdd.system.entry.js +0 -4
|
File without changes
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { Component, Element, Event, h, Host, Prop, State } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common";
|
|
5
6
|
import { createID } from "../../utils/create-id";
|
|
6
7
|
import { debounce } from "../../utils/js-utils";
|
|
7
8
|
import { isKeyboardClick } from "../../utils/keyboard-utils";
|
|
8
9
|
import { getLocaleString } from "../../utils/language-utils";
|
|
9
|
-
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
10
10
|
import { getColorByName, shadeRGBColor } from "../../utils/token-utils";
|
|
11
11
|
/**
|
|
12
12
|
* Slot: default slot inside an invisible element, this can be used to enhance accessibility
|
|
@@ -65,15 +65,23 @@ export class DuetActionButton {
|
|
|
65
65
|
/**
|
|
66
66
|
* Described By id
|
|
67
67
|
*/
|
|
68
|
-
this.
|
|
68
|
+
this.accessibleDescribedBy = undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Details of the component
|
|
71
|
+
*/
|
|
72
|
+
this.accessibleDetails = undefined;
|
|
73
|
+
/**
|
|
74
|
+
* String of id's that indicate alternative labels elements
|
|
75
|
+
*/
|
|
76
|
+
this.accessibleLabelledBy = undefined;
|
|
69
77
|
/**
|
|
70
78
|
* Aria description the button
|
|
71
79
|
*/
|
|
72
|
-
this.
|
|
80
|
+
this.accessibleDescription = undefined;
|
|
73
81
|
/**
|
|
74
82
|
* Default pagination labels
|
|
75
83
|
*/
|
|
76
|
-
this.
|
|
84
|
+
this.accessibleLabelsDefaults = {
|
|
77
85
|
en: {
|
|
78
86
|
label: "Click to activate action",
|
|
79
87
|
},
|
|
@@ -87,11 +95,11 @@ export class DuetActionButton {
|
|
|
87
95
|
/**
|
|
88
96
|
* Default pagination labels
|
|
89
97
|
*/
|
|
90
|
-
this.
|
|
98
|
+
this.accessibleLabels = getLocaleString(this.accessibleLabelsDefaults);
|
|
91
99
|
/**
|
|
92
100
|
* Used to indicate which dom element with ID this element controls
|
|
93
101
|
*/
|
|
94
|
-
this.
|
|
102
|
+
this.accessibleControls = "";
|
|
95
103
|
this.listId = createID("duet-action-button");
|
|
96
104
|
/**
|
|
97
105
|
* Private methods.
|
|
@@ -161,7 +169,7 @@ export class DuetActionButton {
|
|
|
161
169
|
"duet-action-button": true,
|
|
162
170
|
"duet-action-button--disabled": this.disabled,
|
|
163
171
|
[`duet-action-button--${this.theme}`]: this.theme !== "",
|
|
164
|
-
}, type: "button", onClick: e => this.onMouseHandler(e), "aria-label": this.
|
|
172
|
+
}, type: "button", onClick: e => this.onMouseHandler(e), "aria-label": this.accessibleLabels.label, "aria-labelledby": this.accessibleLabelledBy, "aria-description": this.accessibleDescription, "aria-describedby": this.accessibleDescribedBy, "aria-details": this.accessibleDetails, "aria-controls": this.accessibleControls },
|
|
165
173
|
h("duet-icon", { part: "icon", name: this.iconName, color: this.iconColor, margin: "none", size: this.iconSize }),
|
|
166
174
|
h("duet-visually-hidden", null,
|
|
167
175
|
h("slot", null)))));
|
|
@@ -378,7 +386,7 @@ export class DuetActionButton {
|
|
|
378
386
|
"reflect": false,
|
|
379
387
|
"defaultValue": "\"\""
|
|
380
388
|
},
|
|
381
|
-
"
|
|
389
|
+
"accessibleDescribedBy": {
|
|
382
390
|
"type": "string",
|
|
383
391
|
"mutable": false,
|
|
384
392
|
"complexType": {
|
|
@@ -396,7 +404,43 @@ export class DuetActionButton {
|
|
|
396
404
|
"reflect": false,
|
|
397
405
|
"defaultValue": "undefined"
|
|
398
406
|
},
|
|
399
|
-
"
|
|
407
|
+
"accessibleDetails": {
|
|
408
|
+
"type": "string",
|
|
409
|
+
"mutable": false,
|
|
410
|
+
"complexType": {
|
|
411
|
+
"original": "string",
|
|
412
|
+
"resolved": "string",
|
|
413
|
+
"references": {}
|
|
414
|
+
},
|
|
415
|
+
"required": false,
|
|
416
|
+
"optional": false,
|
|
417
|
+
"docs": {
|
|
418
|
+
"tags": [],
|
|
419
|
+
"text": "Details of the component"
|
|
420
|
+
},
|
|
421
|
+
"attribute": "accessible-details",
|
|
422
|
+
"reflect": false,
|
|
423
|
+
"defaultValue": "undefined"
|
|
424
|
+
},
|
|
425
|
+
"accessibleLabelledBy": {
|
|
426
|
+
"type": "string",
|
|
427
|
+
"mutable": false,
|
|
428
|
+
"complexType": {
|
|
429
|
+
"original": "string",
|
|
430
|
+
"resolved": "string",
|
|
431
|
+
"references": {}
|
|
432
|
+
},
|
|
433
|
+
"required": false,
|
|
434
|
+
"optional": false,
|
|
435
|
+
"docs": {
|
|
436
|
+
"tags": [],
|
|
437
|
+
"text": "String of id's that indicate alternative labels elements"
|
|
438
|
+
},
|
|
439
|
+
"attribute": "accessible-labelled-by",
|
|
440
|
+
"reflect": false,
|
|
441
|
+
"defaultValue": "undefined"
|
|
442
|
+
},
|
|
443
|
+
"accessibleDescription": {
|
|
400
444
|
"type": "string",
|
|
401
445
|
"mutable": false,
|
|
402
446
|
"complexType": {
|
|
@@ -414,7 +458,7 @@ export class DuetActionButton {
|
|
|
414
458
|
"reflect": false,
|
|
415
459
|
"defaultValue": "undefined"
|
|
416
460
|
},
|
|
417
|
-
"
|
|
461
|
+
"accessibleLabelsDefaults": {
|
|
418
462
|
"type": "unknown",
|
|
419
463
|
"mutable": false,
|
|
420
464
|
"complexType": {
|
|
@@ -435,7 +479,7 @@ export class DuetActionButton {
|
|
|
435
479
|
},
|
|
436
480
|
"defaultValue": "{\n en: {\n label: \"Click to activate action\",\n },\n fi: {\n label: \"Klikkaa toiminnon aktivointiin\",\n },\n sv: {\n label: \"Klicka f\u00F6r att aktivera \u00E5tg\u00E4rd\",\n },\n }"
|
|
437
481
|
},
|
|
438
|
-
"
|
|
482
|
+
"accessibleLabels": {
|
|
439
483
|
"type": "unknown",
|
|
440
484
|
"mutable": false,
|
|
441
485
|
"complexType": {
|
|
@@ -453,9 +497,9 @@ export class DuetActionButton {
|
|
|
453
497
|
"tags": [],
|
|
454
498
|
"text": "Default pagination labels"
|
|
455
499
|
},
|
|
456
|
-
"defaultValue": "getLocaleString(\n this.
|
|
500
|
+
"defaultValue": "getLocaleString(\n this.accessibleLabelsDefaults\n )"
|
|
457
501
|
},
|
|
458
|
-
"
|
|
502
|
+
"accessibleControls": {
|
|
459
503
|
"type": "string",
|
|
460
504
|
"mutable": false,
|
|
461
505
|
"complexType": {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { Component, Event, h, Host, Prop, State } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
5
6
|
import { getLocaleString } from "../../utils/language-utils";
|
|
6
|
-
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
7
7
|
export class DuetAlert {
|
|
8
8
|
constructor() {
|
|
9
9
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { Component, h, Host, Prop } from "@stencil/core";
|
|
5
|
-
import { inheritGlobalTheme } from "../../
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
6
|
export class DuetBadge {
|
|
7
7
|
constructor() {
|
|
8
8
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { Component, h, Host, Prop } from "@stencil/core";
|
|
5
|
-
import { inheritGlobalTheme } from "../../
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
6
|
export class DuetBreadcrumb {
|
|
7
7
|
constructor() {
|
|
8
8
|
/**
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import arrowRightSmallIcon from "@duetds/icons/lib/assets/action-arrow-right-small";
|
|
5
5
|
import { Build, Component, Element, Fragment, h, Host, Prop, State } from "@stencil/core";
|
|
6
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
7
|
import { getLocaleString } from "../../utils/language-utils";
|
|
7
|
-
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
8
8
|
export class DuetBreadcrumbs {
|
|
9
9
|
constructor() {
|
|
10
10
|
this.observers = [];
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { Component, Element, Event, h, Host, Method, Prop, Watch } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common";
|
|
5
6
|
import { DuetStringsExternalDefaults } from "../../common-strings";
|
|
6
7
|
import { getLanguage, getLocaleString } from "../../utils/language-utils";
|
|
7
|
-
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
8
8
|
import { getColorByName } from "../../utils/token-utils";
|
|
9
9
|
export class DuetButton {
|
|
10
10
|
constructor() {
|
|
@@ -12,6 +12,18 @@ export class DuetButton {
|
|
|
12
12
|
* Use this property to add an aria-haspopup attribute to a button, if you are using it as a menu button.
|
|
13
13
|
*/
|
|
14
14
|
this.accessiblePopup = "false";
|
|
15
|
+
/**
|
|
16
|
+
* Details of the component
|
|
17
|
+
*/
|
|
18
|
+
this.accessibleDetails = undefined;
|
|
19
|
+
/**
|
|
20
|
+
* String of id's that indicate alternative labels elements
|
|
21
|
+
*/
|
|
22
|
+
this.accessibleLabelledBy = undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Aria description the button
|
|
25
|
+
*/
|
|
26
|
+
this.accessibleDescription = undefined;
|
|
15
27
|
/**
|
|
16
28
|
* Loading state of the button
|
|
17
29
|
*/
|
|
@@ -223,6 +235,9 @@ export class DuetButton {
|
|
|
223
235
|
"aria-activedescendant": this.accessibleActiveDescendant,
|
|
224
236
|
"aria-owns": this.accessibleOwns,
|
|
225
237
|
"aria-describedby": this.accessibleDescribedBy,
|
|
238
|
+
"aria-labelledby": this.accessibleLabelledBy,
|
|
239
|
+
"aria-details": this.accessibleDetails,
|
|
240
|
+
"aria-description": this.accessibleDescription,
|
|
226
241
|
};
|
|
227
242
|
return (h(Host, { onClick: this.handleClick, class: {
|
|
228
243
|
"duet-m-0": this.margin === "none",
|
|
@@ -357,6 +372,60 @@ export class DuetButton {
|
|
|
357
372
|
"attribute": "accessible-described-by",
|
|
358
373
|
"reflect": false
|
|
359
374
|
},
|
|
375
|
+
"accessibleDetails": {
|
|
376
|
+
"type": "string",
|
|
377
|
+
"mutable": false,
|
|
378
|
+
"complexType": {
|
|
379
|
+
"original": "string",
|
|
380
|
+
"resolved": "string",
|
|
381
|
+
"references": {}
|
|
382
|
+
},
|
|
383
|
+
"required": false,
|
|
384
|
+
"optional": false,
|
|
385
|
+
"docs": {
|
|
386
|
+
"tags": [],
|
|
387
|
+
"text": "Details of the component"
|
|
388
|
+
},
|
|
389
|
+
"attribute": "accessible-details",
|
|
390
|
+
"reflect": false,
|
|
391
|
+
"defaultValue": "undefined"
|
|
392
|
+
},
|
|
393
|
+
"accessibleLabelledBy": {
|
|
394
|
+
"type": "string",
|
|
395
|
+
"mutable": false,
|
|
396
|
+
"complexType": {
|
|
397
|
+
"original": "string",
|
|
398
|
+
"resolved": "string",
|
|
399
|
+
"references": {}
|
|
400
|
+
},
|
|
401
|
+
"required": false,
|
|
402
|
+
"optional": false,
|
|
403
|
+
"docs": {
|
|
404
|
+
"tags": [],
|
|
405
|
+
"text": "String of id's that indicate alternative labels elements"
|
|
406
|
+
},
|
|
407
|
+
"attribute": "accessible-labelled-by",
|
|
408
|
+
"reflect": false,
|
|
409
|
+
"defaultValue": "undefined"
|
|
410
|
+
},
|
|
411
|
+
"accessibleDescription": {
|
|
412
|
+
"type": "string",
|
|
413
|
+
"mutable": false,
|
|
414
|
+
"complexType": {
|
|
415
|
+
"original": "string",
|
|
416
|
+
"resolved": "string",
|
|
417
|
+
"references": {}
|
|
418
|
+
},
|
|
419
|
+
"required": false,
|
|
420
|
+
"optional": false,
|
|
421
|
+
"docs": {
|
|
422
|
+
"tags": [],
|
|
423
|
+
"text": "Aria description the button"
|
|
424
|
+
},
|
|
425
|
+
"attribute": "accessible-description",
|
|
426
|
+
"reflect": false,
|
|
427
|
+
"defaultValue": "undefined"
|
|
428
|
+
},
|
|
360
429
|
"accessibleExpanded": {
|
|
361
430
|
"type": "boolean",
|
|
362
431
|
"mutable": false,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { Component, h, Host, Prop } from "@stencil/core";
|
|
5
|
-
import { inheritGlobalTheme } from "../../
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
6
|
export class DuetCaption {
|
|
7
7
|
constructor() {
|
|
8
8
|
/**
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import arrowUpIcon from "@duetds/icons/lib/assets/action-arrow-up";
|
|
5
5
|
import { Component, Element, Event, Fragment, h, Host, Method, Prop } from "@stencil/core";
|
|
6
|
+
import { inheritGlobalTheme } from "../../common";
|
|
6
7
|
import { createID } from "../../utils/create-id";
|
|
7
8
|
import { isKeyboardClick } from "../../utils/keyboard-utils";
|
|
8
9
|
import { sanitizeString } from "../../utils/string-utils";
|
|
9
|
-
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
10
10
|
import { getColorByName } from "../../utils/token-utils";
|
|
11
11
|
/**
|
|
12
12
|
* @slot unnamed default slot - The component’s primary content. All child nodes that do not have a slot attribute defined are inserted into this primary slot.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { Component, Element, Event, h, Host, Method, Prop } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common";
|
|
5
6
|
import { createID } from "../../utils/create-id";
|
|
6
|
-
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
7
7
|
export class DuetCheckbox {
|
|
8
8
|
constructor() {
|
|
9
9
|
/**
|
|
@@ -14,6 +14,18 @@ export class DuetCheckbox {
|
|
|
14
14
|
* Controls the margin of the component.
|
|
15
15
|
*/
|
|
16
16
|
this.margin = "auto";
|
|
17
|
+
/**
|
|
18
|
+
* Aria Details of the component
|
|
19
|
+
*/
|
|
20
|
+
this.accessibleDetails = undefined;
|
|
21
|
+
/**
|
|
22
|
+
* String of id's that indicate alternative labels elements
|
|
23
|
+
*/
|
|
24
|
+
this.accessibleLabelledBy = undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Aria description the button
|
|
27
|
+
*/
|
|
28
|
+
this.accessibleDescription = undefined;
|
|
17
29
|
/**
|
|
18
30
|
* Set whether the input is required or not. Please note that this is required for
|
|
19
31
|
* accessible inputs when the user is required to fill them. When using this property
|
|
@@ -99,7 +111,7 @@ export class DuetCheckbox {
|
|
|
99
111
|
"duet-label-hidden": this.labelHidden,
|
|
100
112
|
"duet-theme-turva": this.theme === "turva",
|
|
101
113
|
} },
|
|
102
|
-
h("input", { ref: input => (this.nativeInput = input), type: "checkbox", onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, value: this.value, class: { "duet-checkbox": true, disabled: this.disabled }, checked: this.checked, disabled: this.disabled, tabindex: this.accessibleIndex, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, required: this.required, role: this.role, name: this.name, id: identifier }),
|
|
114
|
+
h("input", { ref: input => (this.nativeInput = input), type: "checkbox", onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, value: this.value, class: { "duet-checkbox": true, disabled: this.disabled }, checked: this.checked, disabled: this.disabled, tabindex: this.accessibleIndex, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, required: this.required, role: this.role, name: this.name, id: identifier }),
|
|
103
115
|
h("label", { class: "duet-label", htmlFor: identifier },
|
|
104
116
|
h("span", null, this.label)))));
|
|
105
117
|
}
|
|
@@ -220,6 +232,60 @@ export class DuetCheckbox {
|
|
|
220
232
|
"attribute": "accessible-described-by",
|
|
221
233
|
"reflect": false
|
|
222
234
|
},
|
|
235
|
+
"accessibleDetails": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"mutable": false,
|
|
238
|
+
"complexType": {
|
|
239
|
+
"original": "string",
|
|
240
|
+
"resolved": "string",
|
|
241
|
+
"references": {}
|
|
242
|
+
},
|
|
243
|
+
"required": false,
|
|
244
|
+
"optional": false,
|
|
245
|
+
"docs": {
|
|
246
|
+
"tags": [],
|
|
247
|
+
"text": "Aria Details of the component"
|
|
248
|
+
},
|
|
249
|
+
"attribute": "accessible-details",
|
|
250
|
+
"reflect": false,
|
|
251
|
+
"defaultValue": "undefined"
|
|
252
|
+
},
|
|
253
|
+
"accessibleLabelledBy": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"mutable": false,
|
|
256
|
+
"complexType": {
|
|
257
|
+
"original": "string",
|
|
258
|
+
"resolved": "string",
|
|
259
|
+
"references": {}
|
|
260
|
+
},
|
|
261
|
+
"required": false,
|
|
262
|
+
"optional": false,
|
|
263
|
+
"docs": {
|
|
264
|
+
"tags": [],
|
|
265
|
+
"text": "String of id's that indicate alternative labels elements"
|
|
266
|
+
},
|
|
267
|
+
"attribute": "accessible-labelled-by",
|
|
268
|
+
"reflect": false,
|
|
269
|
+
"defaultValue": "undefined"
|
|
270
|
+
},
|
|
271
|
+
"accessibleDescription": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"mutable": false,
|
|
274
|
+
"complexType": {
|
|
275
|
+
"original": "string",
|
|
276
|
+
"resolved": "string",
|
|
277
|
+
"references": {}
|
|
278
|
+
},
|
|
279
|
+
"required": false,
|
|
280
|
+
"optional": false,
|
|
281
|
+
"docs": {
|
|
282
|
+
"tags": [],
|
|
283
|
+
"text": "Aria description the button"
|
|
284
|
+
},
|
|
285
|
+
"attribute": "accessible-description",
|
|
286
|
+
"reflect": false,
|
|
287
|
+
"defaultValue": "undefined"
|
|
288
|
+
},
|
|
223
289
|
"required": {
|
|
224
290
|
"type": "boolean",
|
|
225
291
|
"mutable": false,
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import infoIcon from "@duetds/icons/lib/assets/messaging-info";
|
|
5
5
|
import { Component, Element, Event, h, Host, Listen, Method, Prop, State } from "@stencil/core";
|
|
6
|
+
import { inheritGlobalTheme } from "../../common";
|
|
6
7
|
import { DuetStringsExternalDefaults } from "../../common-strings";
|
|
7
8
|
import { createID } from "../../utils/create-id";
|
|
8
9
|
import { FocusGuard } from "../../utils/focus-utils";
|
|
9
10
|
import { isEscapeKey, isKeyboardClick, isQuestionKey } from "../../utils/keyboard-utils";
|
|
10
11
|
import { getLanguage, getLocaleString } from "../../utils/language-utils";
|
|
11
|
-
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
12
12
|
/**
|
|
13
13
|
* @slot unnamed default slot - The component’s primary content. All child nodes that do not have a slot attribute defined are inserted into this primary slot.
|
|
14
14
|
* @slot info - Info content. Anything inserted into this slot is displayed in a collapsible info box.
|
|
@@ -48,6 +48,18 @@ export class DuetChoice {
|
|
|
48
48
|
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
49
49
|
*/
|
|
50
50
|
this.accessibleLabelInfoButton = getLocaleString(this.accessibleLabelInfoButtonDefaults);
|
|
51
|
+
/**
|
|
52
|
+
* Aria Details of the component
|
|
53
|
+
*/
|
|
54
|
+
this.accessibleDetails = undefined;
|
|
55
|
+
/**
|
|
56
|
+
* String of id's that indicate alternative labels elements
|
|
57
|
+
*/
|
|
58
|
+
this.accessibleLabelledBy = undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Aria description the button
|
|
61
|
+
*/
|
|
62
|
+
this.accessibleDescription = undefined;
|
|
51
63
|
/**
|
|
52
64
|
* Additional caption to show inside the label of the choice button.
|
|
53
65
|
*/
|
|
@@ -287,7 +299,7 @@ export class DuetChoice {
|
|
|
287
299
|
collapsible: this.collapsible,
|
|
288
300
|
"duet-p-0": this.padding === "none",
|
|
289
301
|
} },
|
|
290
|
-
h("input", { class: "duet-choice-input", type: this.type, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, disabled: this.disabled || this.groupDisabled, required: this.required, id: identifier, name: this.name, value: this.value, checked: this.checked, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.getAriaDescribedby(), onKeyDown: this.handleKeyDown, ref: input => (this.nativeInput = input) }),
|
|
302
|
+
h("input", { class: "duet-choice-input", type: this.type, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, disabled: this.disabled || this.groupDisabled, required: this.required, id: identifier, name: this.name, value: this.value, checked: this.checked, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-owns": this.accessibleOwns, "aria-describedby": this.getAriaDescribedby(), onKeyDown: this.handleKeyDown, ref: input => (this.nativeInput = input) }),
|
|
291
303
|
h("label", { htmlFor: identifier, class: { "duet-choice-label": true, "no-hover": this.isHovering }, onClick: this.onClick },
|
|
292
304
|
this.icon && (h("div", { class: "duet-choice-card-icon" },
|
|
293
305
|
h("duet-icon", { margin: "none", size: "small", name: this.icon, color: "currentColor" }))),
|
|
@@ -484,6 +496,60 @@ export class DuetChoice {
|
|
|
484
496
|
"attribute": "accessible-described-by",
|
|
485
497
|
"reflect": false
|
|
486
498
|
},
|
|
499
|
+
"accessibleDetails": {
|
|
500
|
+
"type": "string",
|
|
501
|
+
"mutable": false,
|
|
502
|
+
"complexType": {
|
|
503
|
+
"original": "string",
|
|
504
|
+
"resolved": "string",
|
|
505
|
+
"references": {}
|
|
506
|
+
},
|
|
507
|
+
"required": false,
|
|
508
|
+
"optional": false,
|
|
509
|
+
"docs": {
|
|
510
|
+
"tags": [],
|
|
511
|
+
"text": "Aria Details of the component"
|
|
512
|
+
},
|
|
513
|
+
"attribute": "accessible-details",
|
|
514
|
+
"reflect": false,
|
|
515
|
+
"defaultValue": "undefined"
|
|
516
|
+
},
|
|
517
|
+
"accessibleLabelledBy": {
|
|
518
|
+
"type": "string",
|
|
519
|
+
"mutable": false,
|
|
520
|
+
"complexType": {
|
|
521
|
+
"original": "string",
|
|
522
|
+
"resolved": "string",
|
|
523
|
+
"references": {}
|
|
524
|
+
},
|
|
525
|
+
"required": false,
|
|
526
|
+
"optional": false,
|
|
527
|
+
"docs": {
|
|
528
|
+
"tags": [],
|
|
529
|
+
"text": "String of id's that indicate alternative labels elements"
|
|
530
|
+
},
|
|
531
|
+
"attribute": "accessible-labelled-by",
|
|
532
|
+
"reflect": false,
|
|
533
|
+
"defaultValue": "undefined"
|
|
534
|
+
},
|
|
535
|
+
"accessibleDescription": {
|
|
536
|
+
"type": "string",
|
|
537
|
+
"mutable": false,
|
|
538
|
+
"complexType": {
|
|
539
|
+
"original": "string",
|
|
540
|
+
"resolved": "string",
|
|
541
|
+
"references": {}
|
|
542
|
+
},
|
|
543
|
+
"required": false,
|
|
544
|
+
"optional": false,
|
|
545
|
+
"docs": {
|
|
546
|
+
"tags": [],
|
|
547
|
+
"text": "Aria description the button"
|
|
548
|
+
},
|
|
549
|
+
"attribute": "accessible-description",
|
|
550
|
+
"reflect": false,
|
|
551
|
+
"defaultValue": "undefined"
|
|
552
|
+
},
|
|
487
553
|
"caption": {
|
|
488
554
|
"type": "string",
|
|
489
555
|
"mutable": false,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { Component, Element, h, Host, Prop, Watch } from "@stencil/core";
|
|
5
|
-
import { inheritGlobalTheme } from "../../
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
6
|
import { findCheckedOption, watchForOptions } from "../../utils/watch-options";
|
|
7
7
|
export class DuetChoiceGroup {
|
|
8
8
|
constructor() {
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import icon from "@duetds/icons/lib/assets/action-arrow-down-small";
|
|
5
5
|
import * as tokens from "@duetds/tokens/lib/tokens.json";
|
|
6
6
|
import { Component, Element, Event, h, Host, Method, Prop } from "@stencil/core";
|
|
7
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
7
8
|
import { createID } from "../../utils/create-id";
|
|
8
9
|
import { isKeyboardClick } from "../../utils/keyboard-utils";
|
|
9
10
|
import { sanitizeString } from "../../utils/string-utils";
|
|
10
|
-
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
11
11
|
/**
|
|
12
12
|
* @part duet-collapsible-heading-content - piercing selector for styling the heading content
|
|
13
13
|
* @part duet-collapsible-content - piercing selector for styling the content
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { Build, Component, Element, Event, h, Host, Listen, Method, Prop, State, Watch, } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
5
6
|
import { debounce } from "../../utils/js-utils";
|
|
6
7
|
import { isArrowDownKey, isArrowUpKey, isEnterKey, isEscapeKey, isTabKey } from "../../utils/keyboard-utils";
|
|
7
8
|
import { getLanguage, getLocaleString } from "../../utils/language-utils";
|
|
8
9
|
import { parsePossibleJSON } from "../../utils/string-utils";
|
|
9
|
-
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
10
10
|
import { DuetComboBoxSelect } from "./duet-combobox-select";
|
|
11
11
|
export class DuetCombobox {
|
|
12
12
|
constructor() {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { Component, Element, Event, h, Host, Prop } from "@stencil/core";
|
|
5
|
-
import { inheritGlobalTheme } from "../../
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
6
|
export class DuetCookieConsent {
|
|
7
7
|
constructor() {
|
|
8
8
|
/**
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { Component, Element, Event, h, Host, Listen, Method, Prop, State, Watch } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
5
6
|
import { createID } from "../../utils/create-id";
|
|
6
7
|
import { FocusGuard } from "../../utils/focus-utils";
|
|
7
8
|
import { getLanguage, getLocaleString } from "../../utils/language-utils";
|
|
8
|
-
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
9
9
|
import i18n from "./date-i18n";
|
|
10
10
|
import { DatePickerInput } from "./date-picker-input";
|
|
11
11
|
import { DatePickerMonth } from "./date-picker-month";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { Component, Element, h, Prop } from "@stencil/core";
|
|
5
|
-
import { inheritGlobalTheme } from "../../
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
6
|
export class DuetDivider {
|
|
7
7
|
constructor() {
|
|
8
8
|
/**
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { Component, Element, Event, h, Host, Prop } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
5
6
|
import { fieldSorter } from "../../utils/js-utils";
|
|
6
7
|
import { isKeyboardClick } from "../../utils/keyboard-utils";
|
|
7
8
|
import { getLocaleString } from "../../utils/language-utils";
|
|
8
|
-
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
9
9
|
import { TableData } from "./duet-editable-table-tabledata";
|
|
10
10
|
export class DuetEditableTable {
|
|
11
11
|
constructor() {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { Component, h, Host, Prop } from "@stencil/core";
|
|
5
|
-
import { inheritGlobalTheme } from "../../
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
6
|
export class DuetEmptyState {
|
|
7
7
|
constructor() {
|
|
8
8
|
/**
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { Component, Element, h, Host, Prop, State } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
5
6
|
import { createID } from "../../utils/create-id";
|
|
6
|
-
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
7
7
|
/**
|
|
8
8
|
* @slot unnamed default slot - The component’s primary content. All child nodes that do not have a slot attribute defined are inserted into this primary slot.
|
|
9
9
|
* @slot tooltip - Use to place a tooltip alongside the fieldset label.
|
|
@@ -8,9 +8,9 @@ import newWindowIcon from "@duetds/icons/lib/assets/action-new-window";
|
|
|
8
8
|
import newWindowIconSmall from "@duetds/icons/lib/assets/action-new-window-small";
|
|
9
9
|
import { Component, Element, Event, Fragment, h, Prop, State, Watch } from "@stencil/core";
|
|
10
10
|
import { DuetStringsExternalDefaults } from "../../common-strings";
|
|
11
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
11
12
|
import { getLanguage, getLocaleString } from "../../utils/language-utils";
|
|
12
13
|
import { parsePossibleJSON } from "../../utils/string-utils";
|
|
13
|
-
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
14
14
|
const i18n = {
|
|
15
15
|
fi: { lahi: "© LähiTapiola", turva: "© Turva" },
|
|
16
16
|
sv: { lahi: "© LokalTapiola", turva: "© Turva" },
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { Component, h, Host, Prop } from "@stencil/core";
|
|
5
|
-
import { inheritGlobalTheme } from "../../
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
6
|
export class DuetGridItem {
|
|
7
7
|
constructor() {
|
|
8
8
|
/**
|