@duetds/components 6.0.2 → 6.0.4
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 +51 -41
- package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
- package/lib/cjs/duet-alert.cjs.entry.js +1 -1
- package/lib/cjs/duet-badge.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
- package/lib/cjs/duet-button_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-caption_4.cjs.entry.js +3 -3
- package/lib/cjs/duet-card.cjs.entry.js +6 -5
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-choice_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
- package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
- package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +17 -14
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +1 -1
- 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 +1 -1
- package/lib/cjs/duet-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-modal.cjs.entry.js +2 -2
- package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
- package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-progress.cjs.entry.js +1 -1
- package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +1 -1
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
- 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 +1 -1
- package/lib/cjs/{focus-utils-8089a1a8.js → focus-utils-8a615003.js} +1 -1
- package/lib/cjs/{index-9d0e33db.js → index-d106d801.js} +1 -1
- package/lib/cjs/loader.cjs.js +1 -1
- package/lib/cjs/{token-utils-fef5b4eb.js → token-utils-f6e2f4ef.js} +1 -1
- package/lib/cjs/{tokens-29450bcb.js → tokens-4c69b122.js} +18 -15
- package/lib/cjs/{tokens.module-ef598645.js → tokens.module-1bb2d45e.js} +12 -10
- package/lib/collection/components/duet-card/duet-card.js +4 -2
- package/lib/collection/components/duet-choice/duet-choice.js +1 -1
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +1 -1
- package/lib/collection/components/duet-upload/duet-upload.js +18 -15
- package/lib/dist-custom-elements/duet-action-button.d.ts +11 -0
- package/lib/dist-custom-elements/duet-action-button.js +9 -0
- package/lib/dist-custom-elements/duet-alert.d.ts +11 -0
- package/lib/dist-custom-elements/duet-alert.js +9 -0
- package/lib/dist-custom-elements/duet-badge.d.ts +11 -0
- package/lib/dist-custom-elements/duet-badge.js +9 -0
- package/lib/dist-custom-elements/duet-breadcrumb.d.ts +11 -0
- package/lib/dist-custom-elements/duet-breadcrumb.js +73 -0
- package/lib/dist-custom-elements/duet-breadcrumbs.d.ts +11 -0
- package/lib/dist-custom-elements/duet-breadcrumbs.js +90 -0
- package/lib/dist-custom-elements/duet-button.d.ts +11 -0
- package/lib/dist-custom-elements/duet-button.js +9 -0
- package/lib/dist-custom-elements/duet-caption.d.ts +11 -0
- package/lib/dist-custom-elements/duet-caption.js +9 -0
- package/lib/dist-custom-elements/duet-card.d.ts +11 -0
- package/lib/dist-custom-elements/duet-card.js +190 -0
- package/lib/dist-custom-elements/duet-checkbox.d.ts +11 -0
- package/lib/dist-custom-elements/duet-checkbox.js +163 -0
- package/lib/dist-custom-elements/duet-choice-group.d.ts +11 -0
- package/lib/dist-custom-elements/duet-choice-group.js +226 -0
- package/lib/dist-custom-elements/duet-choice.d.ts +11 -0
- package/lib/dist-custom-elements/duet-choice.js +390 -0
- package/lib/dist-custom-elements/duet-collapsible.d.ts +11 -0
- package/lib/dist-custom-elements/duet-collapsible.js +170 -0
- package/lib/dist-custom-elements/duet-combobox.d.ts +11 -0
- package/lib/dist-custom-elements/duet-combobox.js +432 -0
- package/lib/dist-custom-elements/duet-cookie-consent.d.ts +11 -0
- package/lib/dist-custom-elements/duet-cookie-consent.js +94 -0
- package/lib/dist-custom-elements/duet-date-picker.d.ts +11 -0
- package/lib/dist-custom-elements/duet-date-picker.js +906 -0
- package/lib/dist-custom-elements/duet-divider.d.ts +11 -0
- package/lib/dist-custom-elements/duet-divider.js +9 -0
- package/lib/dist-custom-elements/duet-editable-table.d.ts +11 -0
- package/lib/dist-custom-elements/duet-editable-table.js +9 -0
- package/lib/dist-custom-elements/duet-empty-state.d.ts +11 -0
- package/lib/dist-custom-elements/duet-empty-state.js +9 -0
- package/lib/dist-custom-elements/duet-fieldset.d.ts +11 -0
- package/lib/dist-custom-elements/duet-fieldset.js +9 -0
- package/lib/dist-custom-elements/duet-footer.d.ts +11 -0
- package/lib/dist-custom-elements/duet-footer.js +199 -0
- package/lib/dist-custom-elements/duet-grid-item.d.ts +11 -0
- package/lib/dist-custom-elements/duet-grid-item.js +9 -0
- package/lib/dist-custom-elements/duet-grid.d.ts +11 -0
- package/lib/dist-custom-elements/duet-grid.js +9 -0
- package/lib/dist-custom-elements/duet-header.d.ts +11 -0
- package/lib/dist-custom-elements/duet-header.js +764 -0
- package/lib/dist-custom-elements/duet-heading.d.ts +11 -0
- package/lib/dist-custom-elements/duet-heading.js +9 -0
- package/lib/dist-custom-elements/duet-hero.d.ts +11 -0
- package/lib/dist-custom-elements/duet-hero.js +314 -0
- package/lib/dist-custom-elements/duet-icon.d.ts +11 -0
- package/lib/dist-custom-elements/duet-icon.js +9 -0
- package/lib/dist-custom-elements/duet-input.d.ts +11 -0
- package/lib/dist-custom-elements/duet-input.js +9 -0
- package/lib/dist-custom-elements/duet-label.d.ts +11 -0
- package/lib/dist-custom-elements/duet-label.js +9 -0
- package/lib/dist-custom-elements/duet-layout.d.ts +11 -0
- package/lib/dist-custom-elements/duet-layout.js +107 -0
- package/lib/dist-custom-elements/duet-link.d.ts +11 -0
- package/lib/dist-custom-elements/duet-link.js +9 -0
- package/lib/dist-custom-elements/duet-list-item.d.ts +11 -0
- package/lib/dist-custom-elements/duet-list-item.js +9 -0
- package/lib/dist-custom-elements/duet-list.d.ts +11 -0
- package/lib/dist-custom-elements/duet-list.js +9 -0
- package/lib/dist-custom-elements/duet-logo.d.ts +11 -0
- package/lib/dist-custom-elements/duet-logo.js +9 -0
- package/lib/dist-custom-elements/duet-modal.d.ts +11 -0
- package/lib/dist-custom-elements/duet-modal.js +331 -0
- package/lib/dist-custom-elements/duet-notification-drawer.d.ts +11 -0
- package/lib/dist-custom-elements/duet-notification-drawer.js +194 -0
- package/lib/dist-custom-elements/duet-notification.d.ts +11 -0
- package/lib/dist-custom-elements/duet-notification.js +114 -0
- package/lib/dist-custom-elements/duet-number-input.d.ts +11 -0
- package/lib/dist-custom-elements/duet-number-input.js +516 -0
- package/lib/dist-custom-elements/duet-pagination.d.ts +11 -0
- package/lib/dist-custom-elements/duet-pagination.js +396 -0
- package/lib/dist-custom-elements/duet-paragraph.d.ts +11 -0
- package/lib/dist-custom-elements/duet-paragraph.js +9 -0
- package/lib/dist-custom-elements/duet-progress.d.ts +11 -0
- package/lib/dist-custom-elements/duet-progress.js +9 -0
- package/lib/dist-custom-elements/duet-radio-group.d.ts +11 -0
- package/lib/dist-custom-elements/duet-radio-group.js +216 -0
- package/lib/dist-custom-elements/duet-radio.d.ts +11 -0
- package/lib/dist-custom-elements/duet-radio.js +167 -0
- package/lib/dist-custom-elements/duet-range-slider.d.ts +11 -0
- package/lib/dist-custom-elements/duet-range-slider.js +209 -0
- package/lib/dist-custom-elements/duet-range-stepper.d.ts +11 -0
- package/lib/dist-custom-elements/duet-range-stepper.js +225 -0
- package/lib/dist-custom-elements/duet-scrollable.d.ts +11 -0
- package/lib/dist-custom-elements/duet-scrollable.js +9 -0
- package/lib/dist-custom-elements/duet-select.d.ts +11 -0
- package/lib/dist-custom-elements/duet-select.js +9 -0
- package/lib/dist-custom-elements/duet-spacer.d.ts +11 -0
- package/lib/dist-custom-elements/duet-spacer.js +9 -0
- package/lib/dist-custom-elements/duet-spinner.d.ts +11 -0
- package/lib/dist-custom-elements/duet-spinner.js +9 -0
- package/lib/dist-custom-elements/duet-step.d.ts +11 -0
- package/lib/dist-custom-elements/duet-step.js +150 -0
- package/lib/dist-custom-elements/duet-stepper.d.ts +11 -0
- package/lib/dist-custom-elements/duet-stepper.js +164 -0
- package/lib/dist-custom-elements/duet-tab-group.d.ts +11 -0
- package/lib/dist-custom-elements/duet-tab-group.js +301 -0
- package/lib/dist-custom-elements/duet-tab.d.ts +11 -0
- package/lib/dist-custom-elements/duet-tab.js +59 -0
- package/lib/dist-custom-elements/duet-table.d.ts +11 -0
- package/lib/dist-custom-elements/duet-table.js +9 -0
- package/lib/dist-custom-elements/duet-textarea.d.ts +11 -0
- package/lib/dist-custom-elements/duet-textarea.js +297 -0
- package/lib/dist-custom-elements/duet-toggle.d.ts +11 -0
- package/lib/dist-custom-elements/duet-toggle.js +150 -0
- package/lib/dist-custom-elements/duet-tooltip.d.ts +11 -0
- package/lib/dist-custom-elements/duet-tooltip.js +9 -0
- package/lib/dist-custom-elements/duet-tray.d.ts +11 -0
- package/lib/dist-custom-elements/duet-tray.js +175 -0
- package/lib/dist-custom-elements/duet-upload-aria-status.d.ts +11 -0
- package/lib/dist-custom-elements/duet-upload-aria-status.js +9 -0
- package/lib/dist-custom-elements/duet-upload.d.ts +11 -0
- package/lib/dist-custom-elements/duet-upload.js +1514 -0
- package/lib/dist-custom-elements/duet-visually-hidden.d.ts +11 -0
- package/lib/dist-custom-elements/duet-visually-hidden.js +9 -0
- package/lib/dist-custom-elements/index.d.ts +26 -0
- package/lib/dist-custom-elements/index.js +37 -0
- package/lib/dist-custom-elements/p-01de0640.js +37 -0
- package/lib/{esm/tokens-8ff8c570.js → dist-custom-elements/p-02305a1e.js} +18 -15
- package/lib/dist-custom-elements/p-08cfe544.js +125 -0
- package/lib/dist-custom-elements/p-09ed1ffa.js +160 -0
- package/lib/dist-custom-elements/p-0a928609.js +241 -0
- package/lib/dist-custom-elements/p-0b3f675e.js +47 -0
- package/lib/{esm/focus-utils-9e76623d.js → dist-custom-elements/p-0b8f16f1.js} +1 -1
- package/lib/dist-custom-elements/p-115c79b6.js +6 -0
- package/lib/dist-custom-elements/p-12721178.js +57 -0
- package/lib/dist-custom-elements/p-14dcd82b.js +133 -0
- package/lib/dist-custom-elements/p-16d518fd.js +66 -0
- package/lib/dist-custom-elements/p-213ef84c.js +87 -0
- package/lib/dist-custom-elements/p-266411cf.js +307 -0
- package/lib/dist-custom-elements/p-3d987b87.js +75 -0
- package/lib/dist-custom-elements/p-3fc2d124.js +1666 -0
- package/lib/dist-custom-elements/p-4717744e.js +110 -0
- package/lib/dist-custom-elements/p-4ebf1618.js +13 -0
- package/lib/dist-custom-elements/p-56118313.js +53 -0
- package/lib/dist-custom-elements/p-565779f5.js +199 -0
- package/lib/dist-custom-elements/p-5a9d75e1.js +55 -0
- package/lib/dist-custom-elements/p-65d3ead5.js +428 -0
- package/lib/dist-custom-elements/p-6886544b.js +129 -0
- package/lib/dist-custom-elements/p-6e74e660.js +275 -0
- package/lib/dist-custom-elements/p-704245ef.js +9 -0
- package/lib/dist-custom-elements/p-76f00bd5.js +10 -0
- package/lib/dist-custom-elements/p-7739604d.js +214 -0
- package/lib/dist-custom-elements/p-81c9b244.js +65 -0
- package/lib/{esm/token-utils-df78f4d8.js → dist-custom-elements/p-86faf728.js} +1 -1
- package/lib/dist-custom-elements/p-88511d7a.js +275 -0
- package/lib/dist-custom-elements/p-9c732bb9.js +193 -0
- package/lib/dist-custom-elements/p-acdba2db.js +114 -0
- package/lib/dist-custom-elements/p-b08e57cf.js +37 -0
- package/lib/dist-custom-elements/p-b9058029.js +138 -0
- package/lib/dist-custom-elements/p-bd4b92c4.js +86 -0
- package/lib/dist-custom-elements/p-bd779757.js +184 -0
- package/lib/dist-custom-elements/p-c1325e35.js +11 -0
- package/lib/dist-custom-elements/p-c70f3ccb.js +70 -0
- package/lib/dist-custom-elements/p-d004da5f.js +6 -0
- package/lib/dist-custom-elements/p-d4c234ed.js +390 -0
- package/lib/dist-custom-elements/p-d8549efe.js +20 -0
- package/lib/dist-custom-elements/p-d96debb6.js +287 -0
- package/lib/dist-custom-elements/p-da03a443.js +154 -0
- package/lib/dist-custom-elements/p-e294c0fb.js +341 -0
- package/lib/dist-custom-elements/p-e4d5fbc0.js +87 -0
- package/lib/dist-custom-elements/p-e5c8a58f.js +71 -0
- package/lib/dist-custom-elements/p-ede854e1.js +92 -0
- package/lib/dist-custom-elements/p-ef8eff22.js +64 -0
- package/lib/dist-custom-elements/p-f11208c3.js +6 -0
- package/lib/dist-custom-elements/p-f7db7c40.js +98 -0
- package/lib/dist-custom-elements/p-fc5362e7.js +61 -0
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-9ed4eac7.system.entry.js → p-01c551f1.system.entry.js} +1 -1
- package/lib/duet/p-02305a1e.js +4 -0
- package/lib/duet/{p-f51969f5.entry.js → p-033bfa67.entry.js} +1 -1
- package/lib/duet/{p-86a3b203.system.entry.js → p-07a850a5.system.entry.js} +1 -1
- package/lib/duet/{p-211e59a0.system.entry.js → p-09e2ff96.system.entry.js} +1 -1
- package/lib/duet/{p-07f83b14.entry.js → p-0b74af40.entry.js} +1 -1
- package/lib/duet/{p-0c59905a.entry.js → p-0c2a51ac.entry.js} +1 -1
- package/lib/duet/{p-e56705ac.system.entry.js → p-0c9f0b8a.system.entry.js} +2 -2
- package/lib/duet/{p-4af6e3b1.entry.js → p-0d96924d.entry.js} +1 -1
- package/lib/duet/{p-67a78cbe.system.entry.js → p-0e48bca9.system.entry.js} +1 -1
- package/lib/duet/{p-82abc212.system.entry.js → p-0e98f667.system.entry.js} +1 -1
- package/lib/duet/{p-f5a06ff6.system.js → p-1999f503.system.js} +1 -1
- package/lib/duet/{p-e3a6351b.system.entry.js → p-1a41550e.system.entry.js} +1 -1
- package/lib/duet/{p-4d6b341d.system.entry.js → p-1bd57792.system.entry.js} +1 -1
- package/lib/duet/{p-567cab28.system.entry.js → p-1e0d7680.system.entry.js} +1 -1
- package/lib/duet/{p-921085f6.system.entry.js → p-1ebd7945.system.entry.js} +1 -1
- package/lib/duet/p-1fc60a60.system.js +4 -0
- package/lib/duet/{p-f416e108.entry.js → p-21662682.entry.js} +1 -1
- package/lib/duet/{p-2eea39f3.entry.js → p-23943f39.entry.js} +1 -1
- package/lib/duet/{p-9a3826e8.system.entry.js → p-23a8fa64.system.entry.js} +1 -1
- package/lib/duet/{p-902552a7.system.entry.js → p-264a0e0c.system.entry.js} +1 -1
- package/lib/duet/{p-5f407bd1.entry.js → p-27f72e70.entry.js} +1 -1
- package/lib/duet/{p-3c80d2fc.entry.js → p-2a3b1a2e.entry.js} +1 -1
- package/lib/duet/{p-6c022105.system.entry.js → p-2b320481.system.entry.js} +1 -1
- package/lib/duet/p-32f7178a.system.js +4 -0
- package/lib/duet/{p-196b2664.entry.js → p-3620ded5.entry.js} +1 -1
- package/lib/duet/{p-7d43d67b.entry.js → p-3904232a.entry.js} +1 -1
- package/lib/duet/{p-c89b1c28.entry.js → p-3b173cbd.entry.js} +1 -1
- package/lib/duet/{p-a9a9d22b.system.entry.js → p-430acad4.system.entry.js} +1 -1
- package/lib/duet/{p-5bde4aed.system.entry.js → p-4463946b.system.entry.js} +1 -1
- package/lib/duet/{p-cb1f9512.system.entry.js → p-44e9b1c8.system.entry.js} +1 -1
- package/lib/duet/p-49ce11a1.entry.js +4 -0
- package/lib/duet/{p-5d286e53.system.entry.js → p-4d6feeb5.system.entry.js} +1 -1
- package/lib/duet/{p-b4e8f605.system.entry.js → p-4d767c61.system.entry.js} +1 -1
- package/lib/duet/{p-94d496e1.system.entry.js → p-4f1fe415.system.entry.js} +1 -1
- package/lib/duet/{p-de3c0f4d.js → p-532e9db7.js} +1 -1
- package/lib/duet/{p-0250c7b7.system.entry.js → p-55fd512b.system.entry.js} +1 -1
- package/lib/duet/{p-398a79a0.js → p-588be556.js} +1 -1
- package/lib/duet/{p-f8a52ab0.entry.js → p-5af6d9e2.entry.js} +1 -1
- package/lib/duet/{p-626a5916.entry.js → p-5e1d64d8.entry.js} +1 -1
- package/lib/duet/{p-422c0465.system.entry.js → p-5f6452ce.system.entry.js} +1 -1
- package/lib/duet/{p-b57a4b2d.system.entry.js → p-60e29f52.system.entry.js} +1 -1
- package/lib/duet/{p-29157f26.system.entry.js → p-613c4099.system.entry.js} +1 -1
- package/lib/duet/{p-f0e4f685.system.entry.js → p-61444a3d.system.entry.js} +1 -1
- package/lib/duet/{p-9ef03ba6.js → p-6aca8584.js} +1 -1
- package/lib/duet/{p-0c83d107.system.entry.js → p-6e5f2016.system.entry.js} +1 -1
- package/lib/duet/{p-0930ce38.system.entry.js → p-6f93638a.system.entry.js} +1 -1
- package/lib/duet/{p-bc23dcde.entry.js → p-71105750.entry.js} +1 -1
- package/lib/duet/{p-3bbfe384.entry.js → p-73c6e5fb.entry.js} +1 -1
- package/lib/duet/{p-af3a016a.system.entry.js → p-751f6957.system.entry.js} +1 -1
- package/lib/duet/{p-920f9ff2.system.js → p-77600ed7.system.js} +1 -1
- package/lib/duet/{p-32883741.system.entry.js → p-77ca874f.system.entry.js} +1 -1
- package/lib/duet/{p-4427f4b2.entry.js → p-787f9eba.entry.js} +1 -1
- package/lib/duet/{p-8a91c7bb.system.entry.js → p-7ad2cb10.system.entry.js} +1 -1
- package/lib/duet/p-7de4d97d.entry.js +4 -0
- package/lib/duet/{p-20b5e96b.system.entry.js → p-8107aeb5.system.entry.js} +1 -1
- package/lib/duet/{p-a687eeaa.system.entry.js → p-86cb85b9.system.entry.js} +1 -1
- package/lib/duet/{p-d644302f.js → p-875ae637.js} +1 -1
- package/lib/duet/{p-39e1c6da.system.entry.js → p-8aafa8e7.system.entry.js} +1 -1
- package/lib/duet/{p-8bcd7936.entry.js → p-8b09a46f.entry.js} +1 -1
- package/lib/duet/{p-9059b7e3.entry.js → p-8c08e7ba.entry.js} +1 -1
- package/lib/duet/p-8e8f8b29.entry.js +4 -0
- package/lib/duet/{p-012e33e8.entry.js → p-9094fcf8.entry.js} +1 -1
- package/lib/duet/{p-2ebf682d.entry.js → p-988a781d.entry.js} +1 -1
- package/lib/duet/{p-194f22b3.system.entry.js → p-a395d4bc.system.entry.js} +1 -1
- package/lib/duet/{p-3f1c98d0.entry.js → p-a585113b.entry.js} +1 -1
- package/lib/duet/{p-e233e6ed.entry.js → p-aa8973fc.entry.js} +1 -1
- package/lib/duet/{p-b014fdca.entry.js → p-ab7f4070.entry.js} +1 -1
- package/lib/duet/{p-278340d9.system.entry.js → p-ab89d948.system.entry.js} +1 -1
- package/lib/duet/{p-14a2d6f2.entry.js → p-aef02083.entry.js} +1 -1
- package/lib/duet/{p-24978396.entry.js → p-afdc57da.entry.js} +1 -1
- package/lib/duet/{p-a124d4a0.entry.js → p-b2abaa9e.entry.js} +1 -1
- package/lib/duet/{p-68419f1e.entry.js → p-b55e55b5.entry.js} +1 -1
- package/lib/duet/{p-007d0250.system.entry.js → p-bbc91480.system.entry.js} +1 -1
- package/lib/duet/{p-ecc8ec3e.entry.js → p-bbe1a2cd.entry.js} +1 -1
- package/lib/duet/{p-9bd36dc0.system.entry.js → p-bd3c926c.system.entry.js} +1 -1
- package/lib/duet/{p-3feb442e.system.entry.js → p-bec16aea.system.entry.js} +1 -1
- package/lib/duet/p-bf59e11d.entry.js +4 -0
- package/lib/duet/{p-d5ef1959.system.entry.js → p-c4217626.system.entry.js} +1 -1
- package/lib/duet/{p-e1a1e52d.system.entry.js → p-c5f6ea62.system.entry.js} +1 -1
- package/lib/duet/{p-6ebb40da.entry.js → p-c6d05091.entry.js} +1 -1
- package/lib/duet/{p-c3d3f68d.system.entry.js → p-c73a591d.system.entry.js} +1 -1
- package/lib/duet/{p-35eaa5a8.entry.js → p-c863a0d1.entry.js} +1 -1
- package/lib/duet/{p-33300690.entry.js → p-c986532d.entry.js} +1 -1
- package/lib/duet/{p-b43a8c7a.entry.js → p-caa49454.entry.js} +1 -1
- package/lib/duet/{p-ddf8a652.system.entry.js → p-ccb0de84.system.entry.js} +1 -1
- package/lib/duet/{p-18cc5627.system.js → p-d209191d.system.js} +1 -1
- package/lib/duet/{p-4f235805.entry.js → p-defba7cd.entry.js} +1 -1
- package/lib/duet/{p-b9e9ac80.system.js → p-df785776.system.js} +1 -1
- package/lib/duet/{p-ea60602a.entry.js → p-e9862947.entry.js} +1 -1
- package/lib/duet/{p-b9b19fe9.entry.js → p-eb74c96e.entry.js} +1 -1
- package/lib/duet/{p-f96da661.entry.js → p-ece47184.entry.js} +1 -1
- package/lib/duet/{p-178e0ae7.entry.js → p-f09f968c.entry.js} +1 -1
- package/lib/duet/{p-2171d336.entry.js → p-f97776be.entry.js} +1 -1
- package/lib/duet/{p-1c0fdc62.system.entry.js → p-fe8fc877.system.entry.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +3 -3
- package/lib/esm/duet-alert.entry.js +1 -1
- package/lib/esm/duet-badge.entry.js +1 -1
- package/lib/esm/duet-breadcrumb.entry.js +1 -1
- package/lib/esm/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm/duet-button_2.entry.js +3 -3
- package/lib/esm/duet-caption_4.entry.js +3 -3
- package/lib/esm/duet-card.entry.js +6 -5
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-choice_2.entry.js +4 -4
- package/lib/esm/duet-collapsible.entry.js +2 -2
- package/lib/esm/duet-combobox.entry.js +1 -1
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +2 -2
- package/lib/esm/duet-divider_2.entry.js +1 -1
- package/lib/esm/duet-editable-table_3.entry.js +17 -14
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +1 -1
- 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 +1 -1
- package/lib/esm/duet-icon.entry.js +3 -3
- package/lib/esm/duet-input_2.entry.js +1 -1
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +1 -1
- package/lib/esm/duet-modal.entry.js +2 -2
- package/lib/esm/duet-notification_2.entry.js +1 -1
- package/lib/esm/duet-number-input.entry.js +1 -1
- package/lib/esm/duet-pagination_2.entry.js +1 -1
- package/lib/esm/duet-progress.entry.js +1 -1
- package/lib/esm/duet-radio_2.entry.js +1 -1
- package/lib/esm/duet-range-slider.entry.js +2 -2
- package/lib/esm/duet-scrollable_3.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +1 -1
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-textarea.entry.js +1 -1
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-tooltip.entry.js +1 -1
- 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 +1 -1
- package/lib/esm/focus-utils-236f580e.js +18 -0
- package/lib/esm/{index-0d0e51b6.js → index-b601aac1.js} +1 -1
- package/lib/esm/loader.js +1 -1
- package/lib/esm/token-utils-ebf797ab.js +92 -0
- package/lib/esm/tokens-b9d87fda.js +459 -0
- package/lib/esm/{tokens.module-f4572ed7.js → tokens.module-385c4cf8.js} +12 -10
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- 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 +1 -1
- package/lib/esm-es5/duet-collapsible.entry.js +2 -2
- 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 +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
- 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 +1 -1
- 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-236f580e.js +4 -0
- package/lib/esm-es5/{index-0d0e51b6.js → index-b601aac1.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{token-utils-df78f4d8.js → token-utils-ebf797ab.js} +1 -1
- package/lib/esm-es5/tokens-b9d87fda.js +4 -0
- package/lib/esm-es5/{tokens.module-f4572ed7.js → tokens.module-385c4cf8.js} +1 -1
- package/lib/types/components/duet-card/duet-card.d.ts +2 -0
- package/lib/types/components/duet-upload/duet-upload.d.ts +8 -8
- package/lib/types/components.d.ts +4 -4
- package/package.json +5 -5
- package/lib/custom-elements-bundle/index.d.ts +0 -399
- package/lib/custom-elements-bundle/index.js +0 -14109
- package/lib/duet/p-16d21cef.entry.js +0 -4
- package/lib/duet/p-6002f3d2.system.js +0 -4
- package/lib/duet/p-79817456.entry.js +0 -4
- package/lib/duet/p-835f4429.entry.js +0 -4
- package/lib/duet/p-a93a04b9.system.js +0 -4
- package/lib/duet/p-b6ef2e72.entry.js +0 -4
- package/lib/duet/p-d1746325.js +0 -4
- package/lib/esm-es5/focus-utils-9e76623d.js +0 -4
- package/lib/esm-es5/tokens-8ff8c570.js +0 -4
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { p as proxyCustomElement, H, c as createEvent, h as h$1, b as Host } from './p-3fc2d124.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
|
+
import { d as debounce } from './p-0b3f675e.js';
|
|
7
|
+
import { c as isEnterKey, b as isEscapeKey, d as isTabKey, e as isArrowUpKey, f as isArrowDownKey } from './p-d8549efe.js';
|
|
8
|
+
import { g as getLocaleString, a as getLanguage } from './p-ede854e1.js';
|
|
9
|
+
import { p as parsePossibleJSON } from './p-5a9d75e1.js';
|
|
10
|
+
import { h, F as Fragment } from './p-b9058029.js';
|
|
11
|
+
import { d as defineCustomElement$3 } from './p-7739604d.js';
|
|
12
|
+
import { d as defineCustomElement$2 } from './p-b08e57cf.js';
|
|
13
|
+
|
|
14
|
+
const SelectSingle = ({ item, search = "", selected }) => {
|
|
15
|
+
const regEx = search !== "" ? new RegExp("(" + search.split(" ").join("|") + ")", "gi") : undefined;
|
|
16
|
+
return (h(Fragment, null,
|
|
17
|
+
selected && h("duet-icon", { class: "option-icon", name: "messaging-checked", size: "xx-small", margin: "none" }),
|
|
18
|
+
regEx ? (h("span", { class: "option-container", "aria-hidden": "true" },
|
|
19
|
+
h("span", { innerHTML: item.name.replace(regEx, '<span class="highlight">$&</span>') }))) : (item.name),
|
|
20
|
+
item.tags && h("span", { class: "option-tags" }, item.tags.join(", "))));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const DuetComboBoxSelect = ({ item, active, total, selected, label = undefined, clickHandler = e => {
|
|
24
|
+
e.preventDefault();
|
|
25
|
+
}, keyHandler = e => {
|
|
26
|
+
e.preventDefault();
|
|
27
|
+
}, search, }) => {
|
|
28
|
+
return (h("li", { class: {
|
|
29
|
+
"list-item": true,
|
|
30
|
+
option: true,
|
|
31
|
+
active: active,
|
|
32
|
+
selected: selected,
|
|
33
|
+
}, id: active ? "active_item" : "", "data-index": item.id, "aria-selected": active ? "true" : undefined, "aria-current": selected ? "true" : undefined, role: "option", "aria-label": label || `${item.name}, (${item.id + 1} of ${total})` },
|
|
34
|
+
h("a", { tabindex: "-1", onClick: e => clickHandler(e), onKeyUp: e => keyHandler(e), class: "option-link", "aria-label": label || `${item.name}, (${item.id + 1} of ${total})`, "aria-hidden": "true" },
|
|
35
|
+
h(SelectSingle, { item: item, search: search, selected: selected }))));
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const duetComboboxCss = ".sc-duet-combobox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;width:auto;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#00294d}.duet-combobox-list.sc-duet-combobox{position:absolute;top:calc(100% - 12px);display:none;overflow:hidden;background:white;border-radius:0 4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.1)}.duet-combobox-list.open.sc-duet-combobox{z-index:700;display:block}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox{max-height:200px;padding:0.75rem 0;margin:0;overflow-y:scroll;font-weight:600;list-style:none;cursor:pointer;scroll-behavior:smooth}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.sc-duet-combobox{padding:4px 0}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.sc-duet-combobox:not(.selected){padding-left:16px}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.sc-duet-combobox:not(.selected) .highlight.sc-duet-combobox{text-decoration:underline}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.option.sc-duet-combobox .option-link.sc-duet-combobox{display:block;width:100%}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.option.sc-duet-combobox .option-tags.sc-duet-combobox{float:right;padding-right:0.875rem;font-weight:400;color:#909599}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.option-link.sc-duet-combobox{display:block;width:100%}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.selected.sc-duet-combobox{padding-left:0;background:#cde5f1}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.selected.option.sc-duet-combobox .option-icon.sc-duet-combobox{padding:0 8px 0 8px}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.selected.option.sc-duet-combobox .option-tags.sc-duet-combobox{color:#909599}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.active.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus,.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover{color:white;background:#0077b3}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.active.sc-duet-combobox .option-tags.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus .option-tags.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover .option-tags.sc-duet-combobox{color:#e1e3e6}";
|
|
39
|
+
|
|
40
|
+
const DuetCombobox$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
41
|
+
constructor() {
|
|
42
|
+
super();
|
|
43
|
+
this.__registerHost();
|
|
44
|
+
this.duetChange = createEvent(this, "duetChange", 3);
|
|
45
|
+
// Safari doesnt properly support aria-activedecendatn, the code associated with this bool is a workaround for that,
|
|
46
|
+
// this should be removed when Safari fixes the issue
|
|
47
|
+
// see: https://a11ysupport.io/tests/apg__aria-1-2-combobox-with-list-autocomplete-example#assertion-aria-aria-activedescendant_attribute-convey_value-aria-combobox_role-vo_macos-safari
|
|
48
|
+
this.isSafari = false;
|
|
49
|
+
this.resizeObserver = new ResizeObserver(debounce(entries => {
|
|
50
|
+
var _a, _b;
|
|
51
|
+
// otherwise, something is wrong, expecting 1 element only
|
|
52
|
+
if ((entries === null || entries === void 0 ? void 0 : entries.length) === 1) {
|
|
53
|
+
const currentWidth = (_b = (_a = entries[0]) === null || _a === void 0 ? void 0 : _a.target) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().width;
|
|
54
|
+
this.listContainer.style.width = `${currentWidth + 1}px`;
|
|
55
|
+
// this.listElement.style.width = `${currentWidth + 1}px`
|
|
56
|
+
}
|
|
57
|
+
}, 100));
|
|
58
|
+
this.processedItems = null;
|
|
59
|
+
this.inputWidth = 0;
|
|
60
|
+
this.inputValue = "";
|
|
61
|
+
this.selectionMsg = "";
|
|
62
|
+
this.listOpen = false;
|
|
63
|
+
// the selected item is based upon the DuetComboboxItem.id value
|
|
64
|
+
this.selectedItems = new Set();
|
|
65
|
+
// the activeItem number is based upon the array.index of the array stored in processedItems
|
|
66
|
+
this.activeItem = undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Placeholder defaults
|
|
69
|
+
* @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
|
|
70
|
+
*/
|
|
71
|
+
this.accessibleLabelDefaults = {
|
|
72
|
+
en: {
|
|
73
|
+
heading: "Select:",
|
|
74
|
+
item: "{name}, ({current} of {total})",
|
|
75
|
+
itemFiltered: "{name}, ({current} of {total}, {hiddenItems} filtered)",
|
|
76
|
+
},
|
|
77
|
+
fi: {
|
|
78
|
+
heading: "Valitse:",
|
|
79
|
+
item: "{name}, ({current}/{total})",
|
|
80
|
+
itemFiltered: "{name}, ({current}/{total}, {hiddenItems} suodatettu)",
|
|
81
|
+
},
|
|
82
|
+
sv: {
|
|
83
|
+
heading: "Välj:",
|
|
84
|
+
item: "{name}, ({current} av {total})",
|
|
85
|
+
itemFiltered: "{name}, ({current} av {total}, {hiddenItems} filtrerade)",
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Hint text to display before the user types into the date picker input.
|
|
90
|
+
* @default {
|
|
91
|
+
* heading: "Valitse:",
|
|
92
|
+
* item: "{0}, ({1}/{2})",
|
|
93
|
+
* itemFiltered: "{0}, ({1}/{2} - {3} suodatettu"
|
|
94
|
+
* }
|
|
95
|
+
*/
|
|
96
|
+
this.accessibleLabels = getLocaleString(parsePossibleJSON(this.accessibleLabelDefaults), getLanguage());
|
|
97
|
+
/**
|
|
98
|
+
* Theme of the combobox.
|
|
99
|
+
*/
|
|
100
|
+
this.theme = "";
|
|
101
|
+
/**
|
|
102
|
+
* Force the user to make a selection (typing things in the input field will only be used for list search)
|
|
103
|
+
*/
|
|
104
|
+
this.force = false;
|
|
105
|
+
/**
|
|
106
|
+
* A hook to overwrite how the values are displayed in the input field after a User select an item
|
|
107
|
+
* @example (item) => `${item.name} (${item.value})`
|
|
108
|
+
* @default undefined
|
|
109
|
+
*/
|
|
110
|
+
this.formatter = (item) => item && item.name ? item.name : "";
|
|
111
|
+
}
|
|
112
|
+
activeItemHandler(state) {
|
|
113
|
+
this.input.accessibleActiveDescendant = this.listOpen && (state || state === 0) ? `active_item` : "";
|
|
114
|
+
}
|
|
115
|
+
handleDocumentClick(e) {
|
|
116
|
+
//we want to remove all user text if they have NOT selected from the dropdown
|
|
117
|
+
const path = e.composedPath();
|
|
118
|
+
const isClickOutside = path.every(el => el !== this.element);
|
|
119
|
+
if (isClickOutside) {
|
|
120
|
+
this.updateInputText(true);
|
|
121
|
+
this.listOpen = false;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Exposes a formatter function to format the item value displayed after a user selects an item
|
|
126
|
+
* @param item: DuetComboboxItem
|
|
127
|
+
*/
|
|
128
|
+
async formatItem(item) {
|
|
129
|
+
return this.formatter(item);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Component lifecycle events.
|
|
133
|
+
*/
|
|
134
|
+
componentWillLoad() {
|
|
135
|
+
inheritGlobalTheme(this);
|
|
136
|
+
}
|
|
137
|
+
connectedCallback() {
|
|
138
|
+
if (/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
|
|
139
|
+
this.isSafari = true;
|
|
140
|
+
}
|
|
141
|
+
this.items = this.processedItems = parsePossibleJSON(this.items);
|
|
142
|
+
this.input = this.element.querySelector("duet-input");
|
|
143
|
+
this.input.addEventListener("duetChange", this.updateInputValue.bind(this));
|
|
144
|
+
this.input.addEventListener("click", () => {
|
|
145
|
+
this.inputValue.length ? (this.listOpen = true) : (this.listOpen = false);
|
|
146
|
+
});
|
|
147
|
+
this.element.addEventListener("keydown", this.handleInputKeyDownEvent.bind(this));
|
|
148
|
+
//add correct aria attributes to the input element
|
|
149
|
+
this.input.accessibleAutocomplete = "list";
|
|
150
|
+
this.input.accessibleControls = "duet-combobox-list-element";
|
|
151
|
+
}
|
|
152
|
+
disconnectedCallback() {
|
|
153
|
+
this.input.removeEventListener("duetChange", this.updateInputValue.bind(this));
|
|
154
|
+
this.input.removeEventListener("click", () => this.inputValue.length ? (this.listOpen = true) : (this.listOpen = false));
|
|
155
|
+
this.element.removeEventListener("keydown", this.handleInputKeyDownEvent.bind(this));
|
|
156
|
+
this.listElement.removeEventListener("click", e => {
|
|
157
|
+
e.stopPropagation();
|
|
158
|
+
});
|
|
159
|
+
this.resizeObserver.disconnect();
|
|
160
|
+
}
|
|
161
|
+
componentDidLoad() {
|
|
162
|
+
// observe resize events to dynamically adjust size of dropdown area
|
|
163
|
+
this.resizeObserver.observe(this.input);
|
|
164
|
+
this.listElement.addEventListener("click", e => {
|
|
165
|
+
e.stopPropagation();
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Updates the input text based on the selected/clicked items.
|
|
170
|
+
* @param event - event
|
|
171
|
+
*'param item: DuetComboboxItem - the item that was selected
|
|
172
|
+
*/
|
|
173
|
+
onListClick(e, item) {
|
|
174
|
+
e.preventDefault();
|
|
175
|
+
// update selected item with id
|
|
176
|
+
this.updateSelectedItems(item.id);
|
|
177
|
+
this.listOpen = false;
|
|
178
|
+
return this.listOpen;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Helper function that checks inputs in the field, compares it with the item list and returns true when inputvalue matches selectedItem id
|
|
182
|
+
* TODO: this should be disabled in multiple mode
|
|
183
|
+
*/
|
|
184
|
+
shouldListBeFiltered() {
|
|
185
|
+
if (this.selectedItems.size && this.input.value === this.inputValue) {
|
|
186
|
+
const item = this.items.filter(item => this.selectedItems.has(item.id));
|
|
187
|
+
return !(this.formatter(item).toLowerCase() === this.input.value.toLowerCase());
|
|
188
|
+
}
|
|
189
|
+
return true;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Helper function that return correct collection depending on filter status returend by shouldListBeFiltered
|
|
193
|
+
*/
|
|
194
|
+
returnFilteredOrNonFiltered() {
|
|
195
|
+
return this.processedItems
|
|
196
|
+
? this.shouldListBeFiltered()
|
|
197
|
+
? this.getFilteredItems()
|
|
198
|
+
: this.sortFilteredItems(this.processedItems)
|
|
199
|
+
: [];
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Updates the selected items based on the item id.
|
|
203
|
+
* @param id
|
|
204
|
+
* @private
|
|
205
|
+
*/
|
|
206
|
+
async updateSelectedItems(id) {
|
|
207
|
+
// for a multiple scenario wrap this in an if/else and just don't clear here
|
|
208
|
+
this.selectedItems.clear();
|
|
209
|
+
if (this.selectedItems) {
|
|
210
|
+
if (this.selectedItems.has(id)) {
|
|
211
|
+
this.selectedItems.delete(id);
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
this.selectedItems.add(id);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
await this.updateInputText();
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Updates the input text based on the selected/clicked items.
|
|
221
|
+
* @param bool -override to clear if invoked by "click outside"
|
|
222
|
+
*/
|
|
223
|
+
async updateInputText(isBlurred = false) {
|
|
224
|
+
const item = this.selectedItems.size === 0 ? [] : this.items.filter(item => this.selectedItems.has(item.id));
|
|
225
|
+
if (this.selectedItems.size === 1) {
|
|
226
|
+
this.input.value = ""; // set value to empty so that cursor position follows accordingly
|
|
227
|
+
this.input.value = await this.formatItem(item[0]);
|
|
228
|
+
this.input.scrollLeft = this.input.scrollWidth;
|
|
229
|
+
this.activeItem = undefined;
|
|
230
|
+
this.value = await this.formatItem(item[0]);
|
|
231
|
+
this.duetChange.emit({
|
|
232
|
+
value: item[0].value,
|
|
233
|
+
item: item[0],
|
|
234
|
+
component: "duet-combobox",
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
else if (isBlurred && this.selectedItems.size === 0) {
|
|
238
|
+
//if nothing is selected and a user clicks outside, we want the input field to clearly illustrate that nothing was selected
|
|
239
|
+
if (this.force) {
|
|
240
|
+
this.inputValue = "";
|
|
241
|
+
this.input.value = "";
|
|
242
|
+
}
|
|
243
|
+
this.activeItem = undefined;
|
|
244
|
+
}
|
|
245
|
+
this.listOpen = false;
|
|
246
|
+
}
|
|
247
|
+
updateInputValue(e) {
|
|
248
|
+
var _a;
|
|
249
|
+
this.inputValue = e.detail.value;
|
|
250
|
+
this.listOpen = String(this.inputValue).length > 0 && ((_a = this.getFilteredItems()) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
251
|
+
}
|
|
252
|
+
handleInputKeyDownEvent(e) {
|
|
253
|
+
//if selection is made, close the list and update internal and external values
|
|
254
|
+
// this should be set to undefined on everything BUT up/down arrow according to the aria 1.1 specs
|
|
255
|
+
// https://www.w3.org/TR/wai-aria-practices-1.1/#combobox
|
|
256
|
+
this.input.accessibleActiveDescendant = undefined;
|
|
257
|
+
if (isEnterKey(e)) {
|
|
258
|
+
e.preventDefault();
|
|
259
|
+
this.selectActiveItem();
|
|
260
|
+
this.listOpen = false;
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
//tabbing out or escaping, restore initial state
|
|
264
|
+
if (isEscapeKey(e) || isTabKey(e)) {
|
|
265
|
+
this.updateInputText(true);
|
|
266
|
+
this.listOpen = false;
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
//handle arrow up/down navigation
|
|
270
|
+
let nextActiveItem = this.activeItem;
|
|
271
|
+
if (isArrowUpKey(e)) {
|
|
272
|
+
e.preventDefault();
|
|
273
|
+
nextActiveItem = this.activeItem - 1;
|
|
274
|
+
}
|
|
275
|
+
else if (isArrowDownKey(e)) {
|
|
276
|
+
e.preventDefault();
|
|
277
|
+
nextActiveItem = this.listOpen ? this.activeItem + 1 : this.activeItem;
|
|
278
|
+
this.listOpen = true;
|
|
279
|
+
}
|
|
280
|
+
if (isArrowDownKey(e) || isArrowUpKey(e)) {
|
|
281
|
+
const listItems = this.shouldListBeFiltered() ? this.getFilteredItems() : this.processedItems;
|
|
282
|
+
if (nextActiveItem < 0 || !nextActiveItem) {
|
|
283
|
+
nextActiveItem = 0;
|
|
284
|
+
}
|
|
285
|
+
if (nextActiveItem >= listItems.length) {
|
|
286
|
+
nextActiveItem = listItems.length - 1;
|
|
287
|
+
}
|
|
288
|
+
// this should be set to undefined on everything BUT up/down arrow according to the aria 1.1 specs
|
|
289
|
+
// https://www.w3.org/TR/wai-aria-practices-1.1/#combobox
|
|
290
|
+
this.input.accessibleActiveDescendant = "active_item";
|
|
291
|
+
this.activeItem = nextActiveItem;
|
|
292
|
+
this.scrollToActive();
|
|
293
|
+
}
|
|
294
|
+
this.announceActive();
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
selectActiveItem() {
|
|
298
|
+
if (this.activeItem === undefined) {
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
const filteredItem = this.returnFilteredOrNonFiltered();
|
|
302
|
+
const item = filteredItem[this.activeItem];
|
|
303
|
+
this.updateSelectedItems(item.id);
|
|
304
|
+
}
|
|
305
|
+
announceActive(items) {
|
|
306
|
+
if (!items) {
|
|
307
|
+
items = this.returnFilteredOrNonFiltered();
|
|
308
|
+
}
|
|
309
|
+
if (this.activeItem === undefined || this.activeItem === -1) {
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
const item = items[this.activeItem];
|
|
313
|
+
this.selectionMsg = this.formatLabel(item, items.length, this.items.length);
|
|
314
|
+
}
|
|
315
|
+
//function that scrolls to the li element with the class "active"
|
|
316
|
+
scrollToActive() {
|
|
317
|
+
const activeElement = this.listElement.querySelector(".active");
|
|
318
|
+
if (activeElement) {
|
|
319
|
+
activeElement.scrollIntoView({
|
|
320
|
+
behavior: "smooth",
|
|
321
|
+
block: "center",
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
formatLabel(item, length, itemsLength) {
|
|
326
|
+
if (!item || itemsLength === undefined) {
|
|
327
|
+
return "";
|
|
328
|
+
}
|
|
329
|
+
const labelString = length === itemsLength ? this.accessibleLabels.item : this.accessibleLabels.itemFiltered;
|
|
330
|
+
return labelString
|
|
331
|
+
.replace("{name}", String(item.name))
|
|
332
|
+
.replace("{current}", String(this.activeItem + 1))
|
|
333
|
+
.replace("{total}", String(length))
|
|
334
|
+
.replace("{hiddenItems}", String(itemsLength - length));
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Filter the items based on the input value
|
|
338
|
+
*/
|
|
339
|
+
getFilteredItems() {
|
|
340
|
+
// filter items based on user inputs
|
|
341
|
+
const filteredItems = this.processedItems.filter(item =>
|
|
342
|
+
// filter by name and value
|
|
343
|
+
// if value contains inputvalue
|
|
344
|
+
String(item.value).toLowerCase().includes(this.inputValue.toLowerCase()) ||
|
|
345
|
+
// if name contains input value
|
|
346
|
+
String(item.name).toLowerCase().includes(this.inputValue.toLowerCase()) ||
|
|
347
|
+
// if the item is selected
|
|
348
|
+
this.selectedItems.has(item.id));
|
|
349
|
+
return this.sortFilteredItems(filteredItems);
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Sort the return from getFilteredItems so that any item with and item.id that matches this.selectedItems is placed first
|
|
353
|
+
*/
|
|
354
|
+
sortFilteredItems(items) {
|
|
355
|
+
if (items.length > 0) {
|
|
356
|
+
items
|
|
357
|
+
.filter(item => this.selectedItems.has(item.id))
|
|
358
|
+
.forEach(item => {
|
|
359
|
+
const index = items.indexOf(item);
|
|
360
|
+
items.splice(index, 1);
|
|
361
|
+
items.unshift(item);
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
return items;
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* render() function
|
|
368
|
+
* Always the last one in the class.
|
|
369
|
+
*/
|
|
370
|
+
render() {
|
|
371
|
+
const selectElements = this.returnFilteredOrNonFiltered();
|
|
372
|
+
return (h$1(Host, { role: "combobox", "aria-expanded": this.listOpen ? "true" : "false", "aria-owns": this.listOpen ? "duet-combobox-list-element" : undefined, "aria-haspopup": "listbox", class: {
|
|
373
|
+
"duet-combobox": true,
|
|
374
|
+
[`duet-theme-${this.theme}`]: true,
|
|
375
|
+
} }, h$1("slot", null), this.isSafari && (h$1("duet-visually-hidden", { "aria-live": "assertive", "aria-atomic": "true", "aria-relevant": "all" }, this.selectionMsg)), h$1("div", { role: "list", class: {
|
|
376
|
+
"duet-combobox-list": true,
|
|
377
|
+
open: this.listOpen,
|
|
378
|
+
}, ref: el => (this.listContainer = el) }, h$1("ul", { role: "listbox", ref: el => (this.listElement = el), id: "duet-combobox-list-element", class: "listbox" }, this.processedItems &&
|
|
379
|
+
selectElements.map((item, index) => {
|
|
380
|
+
return (h$1(DuetComboBoxSelect, { item: item, active: index === this.activeItem, selected: this.selectedItems.has(item.id), search: this.inputValue, total: selectElements.length, clickHandler: e => this.onListClick(e, item), label: this.formatLabel(item, this.returnFilteredOrNonFiltered().length, this.items.length) }));
|
|
381
|
+
})))));
|
|
382
|
+
}
|
|
383
|
+
get element() { return this; }
|
|
384
|
+
static get watchers() { return {
|
|
385
|
+
"activeItem": ["activeItemHandler"]
|
|
386
|
+
}; }
|
|
387
|
+
static get style() { return duetComboboxCss; }
|
|
388
|
+
}, [6, "duet-combobox", {
|
|
389
|
+
"accessibleLabelDefaults": [1, "accessible-label-defaults"],
|
|
390
|
+
"accessibleLabels": [16],
|
|
391
|
+
"theme": [1025],
|
|
392
|
+
"force": [4],
|
|
393
|
+
"items": [1032],
|
|
394
|
+
"formatter": [16],
|
|
395
|
+
"value": [1537],
|
|
396
|
+
"processedItems": [32],
|
|
397
|
+
"inputWidth": [32],
|
|
398
|
+
"inputValue": [32],
|
|
399
|
+
"selectionMsg": [32],
|
|
400
|
+
"listOpen": [32],
|
|
401
|
+
"selectedItems": [32],
|
|
402
|
+
"activeItem": [32],
|
|
403
|
+
"formatItem": [64]
|
|
404
|
+
}, [[4, "click", "handleDocumentClick"]]]);
|
|
405
|
+
function defineCustomElement$1() {
|
|
406
|
+
if (typeof customElements === "undefined") {
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
const components = ["duet-combobox", "duet-icon", "duet-visually-hidden"];
|
|
410
|
+
components.forEach(tagName => { switch (tagName) {
|
|
411
|
+
case "duet-combobox":
|
|
412
|
+
if (!customElements.get(tagName)) {
|
|
413
|
+
customElements.define(tagName, DuetCombobox$1);
|
|
414
|
+
}
|
|
415
|
+
break;
|
|
416
|
+
case "duet-icon":
|
|
417
|
+
if (!customElements.get(tagName)) {
|
|
418
|
+
defineCustomElement$3();
|
|
419
|
+
}
|
|
420
|
+
break;
|
|
421
|
+
case "duet-visually-hidden":
|
|
422
|
+
if (!customElements.get(tagName)) {
|
|
423
|
+
defineCustomElement$2();
|
|
424
|
+
}
|
|
425
|
+
break;
|
|
426
|
+
} });
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
const DuetCombobox = DuetCombobox$1;
|
|
430
|
+
const defineCustomElement = defineCustomElement$1;
|
|
431
|
+
|
|
432
|
+
export { DuetCombobox, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface DuetCookieConsent extends Components.DuetCookieConsent, HTMLElement {}
|
|
4
|
+
export const DuetCookieConsent: {
|
|
5
|
+
prototype: DuetCookieConsent;
|
|
6
|
+
new (): DuetCookieConsent;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { p as proxyCustomElement, H, c as createEvent, h, b as Host } from './p-3fc2d124.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
|
+
import { d as defineCustomElement$6 } from './p-e294c0fb.js';
|
|
7
|
+
import { d as defineCustomElement$5 } from './p-7739604d.js';
|
|
8
|
+
import { d as defineCustomElement$4 } from './p-81c9b244.js';
|
|
9
|
+
import { d as defineCustomElement$3 } from './p-3d987b87.js';
|
|
10
|
+
import { d as defineCustomElement$2 } from './p-b08e57cf.js';
|
|
11
|
+
|
|
12
|
+
const duetCookieConsentCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:fixed;right:0;bottom:0;left:0;z-index:950;display:block;width:100%;box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}@media (min-width: 48em){:host{right:28px;bottom:28px;left:auto;width:25rem}}:host(:focus){outline:0}:host(.user-is-tabbing:focus){border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing.duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-cookie-consent{padding:20px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;color:white !important;background-color:rgba(0, 21, 39, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent{background:rgba(0, 21, 39, 0.8);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}.duet-cookie-consent.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";background-color:rgba(12, 14, 29, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent.duet-theme-turva{background:rgba(12, 14, 29, 0.8)}}@media (min-width: 48em){.duet-cookie-consent{padding:20px;border-radius:4px}}.duet-cookie-consent-content{display:flex;align-items:center;max-width:1110px;margin:0 auto}.duet-cookie-consent-content .expand{flex:1}::slotted(a){font-weight:600;color:white !important;text-decoration:underline;white-space:nowrap}::slotted(a[target=_blank]){padding-right:16px;background:url(\"data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjUgMmExLjUgMS41IDAgMDEuMTQgM0gzLjc1Yy0uMzggMC0uNy4yOC0uNzQuNjVsLS4wMS4xdjE0LjVjMCAuMzguMjguNy42NS43NGwuMS4wMWgxNC41Yy4zOCAwIC43LS4yOC43NC0uNjVsLjAxLS4xdi02Ljg5YTEuNSAxLjUgMCAwMTMgMHY2Ljg5QTMuNzUgMy43NSAwIDAxMTguMjUgMjRIMy43NUEzLjc1IDMuNzUgMCAwMTAgMjAuMjVWNS43NUEzLjc1IDMuNzUgMCAwMTMuNzUgMnptMTItMmMuNzggMCAxLjQyLjYgMS41IDEuMzZWNy41YTEuNSAxLjUgMCAwMS0zIC4xNFY1LjEybC01LjQ0IDUuNDRhMS41IDEuNSAwIDAxLTIuMjItMmwuMS0uMTJMMTguODggM0gxNi41QTEuNSAxLjUgMCAwMTE1IDEuNjRWMS41YzAtLjc4LjYtMS40MiAxLjM2LTEuNWguMTR6Ii8+PC9zdmc+\") no-repeat right 50%;background-size:12px 10px}::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva ::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}";
|
|
13
|
+
|
|
14
|
+
const DuetCookieConsent$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
15
|
+
constructor() {
|
|
16
|
+
super();
|
|
17
|
+
this.__registerHost();
|
|
18
|
+
this.__attachShadow();
|
|
19
|
+
this.duetCookieConsent = createEvent(this, "duetCookieConsent", 7);
|
|
20
|
+
/**
|
|
21
|
+
* Adds accessible label for the cookie consent ok button.
|
|
22
|
+
*/
|
|
23
|
+
this.accessibleLabel = "Hyväksyn evästeiden käytön";
|
|
24
|
+
/**
|
|
25
|
+
* Theme of the cookie consent banner.
|
|
26
|
+
*/
|
|
27
|
+
this.theme = "";
|
|
28
|
+
this.handleClick = e => {
|
|
29
|
+
e.preventDefault();
|
|
30
|
+
this.duetCookieConsent.emit({ component: "duet-cookie-consent" });
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Component lifecycle events.
|
|
35
|
+
*/
|
|
36
|
+
componentWillLoad() {
|
|
37
|
+
inheritGlobalTheme(this);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* render() function.
|
|
41
|
+
* Always the last one in the class.
|
|
42
|
+
*/
|
|
43
|
+
render() {
|
|
44
|
+
return (h(Host, { tabindex: "0" }, h("div", { class: { "duet-cookie-consent": true, "duet-theme-turva": this.theme === "turva" } }, h("div", { class: "duet-cookie-consent-content" }, h("div", { class: "expand" }, h("slot", null)), h("duet-spacer", { size: "large", direction: "horizontal" }), h("div", null, h("duet-button", { variation: "negative", size: "small", onClick: this.handleClick, margin: "none", "aria-label": this.accessibleLabel, theme: this.theme }, "OK"))))));
|
|
45
|
+
}
|
|
46
|
+
get element() { return this; }
|
|
47
|
+
static get style() { return duetCookieConsentCss; }
|
|
48
|
+
}, [1, "duet-cookie-consent", {
|
|
49
|
+
"accessibleLabel": [1, "accessible-label"],
|
|
50
|
+
"theme": [1025]
|
|
51
|
+
}]);
|
|
52
|
+
function defineCustomElement$1() {
|
|
53
|
+
if (typeof customElements === "undefined") {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const components = ["duet-cookie-consent", "duet-button", "duet-icon", "duet-spacer", "duet-spinner", "duet-visually-hidden"];
|
|
57
|
+
components.forEach(tagName => { switch (tagName) {
|
|
58
|
+
case "duet-cookie-consent":
|
|
59
|
+
if (!customElements.get(tagName)) {
|
|
60
|
+
customElements.define(tagName, DuetCookieConsent$1);
|
|
61
|
+
}
|
|
62
|
+
break;
|
|
63
|
+
case "duet-button":
|
|
64
|
+
if (!customElements.get(tagName)) {
|
|
65
|
+
defineCustomElement$6();
|
|
66
|
+
}
|
|
67
|
+
break;
|
|
68
|
+
case "duet-icon":
|
|
69
|
+
if (!customElements.get(tagName)) {
|
|
70
|
+
defineCustomElement$5();
|
|
71
|
+
}
|
|
72
|
+
break;
|
|
73
|
+
case "duet-spacer":
|
|
74
|
+
if (!customElements.get(tagName)) {
|
|
75
|
+
defineCustomElement$4();
|
|
76
|
+
}
|
|
77
|
+
break;
|
|
78
|
+
case "duet-spinner":
|
|
79
|
+
if (!customElements.get(tagName)) {
|
|
80
|
+
defineCustomElement$3();
|
|
81
|
+
}
|
|
82
|
+
break;
|
|
83
|
+
case "duet-visually-hidden":
|
|
84
|
+
if (!customElements.get(tagName)) {
|
|
85
|
+
defineCustomElement$2();
|
|
86
|
+
}
|
|
87
|
+
break;
|
|
88
|
+
} });
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const DuetCookieConsent = DuetCookieConsent$1;
|
|
92
|
+
const defineCustomElement = defineCustomElement$1;
|
|
93
|
+
|
|
94
|
+
export { DuetCookieConsent, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface DuetDatePicker extends Components.DuetDatePicker, HTMLElement {}
|
|
4
|
+
export const DuetDatePicker: {
|
|
5
|
+
prototype: DuetDatePicker;
|
|
6
|
+
new (): DuetDatePicker;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|