@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,396 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment, b as Host } from './p-3fc2d124.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
|
+
import { c as createID } from './p-c1325e35.js';
|
|
7
|
+
import { d as debounce } from './p-0b3f675e.js';
|
|
8
|
+
import { l as isArrowKey, m as isNumber, h as isArrowLeftKey, e as isArrowUpKey, j as isArrowRightKey, f as isArrowDownKey } from './p-d8549efe.js';
|
|
9
|
+
import { g as getLocaleString } from './p-ede854e1.js';
|
|
10
|
+
import { d as defineCustomElement$7 } from './p-0a928609.js';
|
|
11
|
+
import { d as defineCustomElement$6 } from './p-ef8eff22.js';
|
|
12
|
+
import { d as defineCustomElement$5 } from './p-e294c0fb.js';
|
|
13
|
+
import { d as defineCustomElement$4 } from './p-7739604d.js';
|
|
14
|
+
import { d as defineCustomElement$3 } from './p-3d987b87.js';
|
|
15
|
+
import { d as defineCustomElement$2 } from './p-b08e57cf.js';
|
|
16
|
+
|
|
17
|
+
const shouldDisplayNavigation = (visibleItems, total, take) => {
|
|
18
|
+
if (visibleItems * 2 > total / take) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
return true;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const duetPaginationCss = "*,*::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;display:inline-block;margin:0 auto}.duet-pagination-nav{position:relative}.duet-pagination ::part(button){border:0}.duet-pagination,.duet-pagination li{display:flex;flex-wrap:wrap;gap:0.1rem;align-items:center}.duet-pagination-item-is-active .duet-pagination-page-number{border-bottom-color:inherit;border-bottom-style:solid;border-bottom-width:2px}.duet-pagination duet-button{width:30px;min-width:36px;font-weight:600;text-decoration:none;border-left-width:0}.duet-pagination-overlay{position:absolute;top:1rem;z-index:300;width:100%;text-align:center}.duet-pagination.duet-pagination-is-dimmed{opacity:0.5}";
|
|
25
|
+
|
|
26
|
+
const DuetPagination$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
27
|
+
constructor() {
|
|
28
|
+
super();
|
|
29
|
+
this.__registerHost();
|
|
30
|
+
this.__attachShadow();
|
|
31
|
+
this.duetPageChange = createEvent(this, "duetPageChange", 3);
|
|
32
|
+
this.listId = createID("duet-pagination-list");
|
|
33
|
+
this.numbersStore = "";
|
|
34
|
+
/**
|
|
35
|
+
* State() variables
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
this.totalPages = 10;
|
|
39
|
+
/**
|
|
40
|
+
* State() variables
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
this.internalSectionIndex = 0;
|
|
44
|
+
/**
|
|
45
|
+
* Theme of the pagination.
|
|
46
|
+
*/
|
|
47
|
+
this.theme = "";
|
|
48
|
+
/**
|
|
49
|
+
* Characters to use for the jump buttons.
|
|
50
|
+
*/
|
|
51
|
+
this.jumpString = "...";
|
|
52
|
+
/**
|
|
53
|
+
* Variation of the paginator (compact and default supported)
|
|
54
|
+
*/
|
|
55
|
+
this.variation = "default";
|
|
56
|
+
/**
|
|
57
|
+
* Described By id
|
|
58
|
+
*/
|
|
59
|
+
this.accessibleDescribedBy = undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Details of the component
|
|
62
|
+
*/
|
|
63
|
+
this.accessibleDetails = undefined;
|
|
64
|
+
/**
|
|
65
|
+
* String of id's that indicate alternative labels elements
|
|
66
|
+
*/
|
|
67
|
+
this.accessibleLabelledBy = undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Aria description the button
|
|
70
|
+
*/
|
|
71
|
+
this.accessibleDescription = undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Default pagination labels
|
|
74
|
+
*/
|
|
75
|
+
this.accessibleLabelsDefaults = {
|
|
76
|
+
en: {
|
|
77
|
+
next_page: "Next page",
|
|
78
|
+
previous_page: "Previous page",
|
|
79
|
+
first_page: "First page",
|
|
80
|
+
last_page: "Last page",
|
|
81
|
+
jump_to: "Jump to page",
|
|
82
|
+
go_to: "Go to page",
|
|
83
|
+
description: "You may use arrow keys to select page number, or enter a page number when this element is in focus to jump to a page",
|
|
84
|
+
pagination_label: "Pagination, choose a number to jump to a page",
|
|
85
|
+
prev_section: "Show previous {0} page numbers, screen reader user should use arrowkeys to navigate",
|
|
86
|
+
next_section: "Show next {0} page numbers, screen reader user should use arrowkeys to navigate",
|
|
87
|
+
},
|
|
88
|
+
fi: {
|
|
89
|
+
next_page: "Seuraava sivu",
|
|
90
|
+
previous_page: "Edellinen sivu",
|
|
91
|
+
first_page: "Ensimmäinen sivu",
|
|
92
|
+
last_page: "Viimeinen sivu",
|
|
93
|
+
jump_to: "Siirry sivulle",
|
|
94
|
+
go_to: "Siirry sivulle",
|
|
95
|
+
description: "Voit käyttää nuolinäppäimiä sivunumeron valitsemiseen, tai kirjoittaa sivunumeron, jos tämä elementti on aktiivinen, siirtymään sivulle",
|
|
96
|
+
pagination_label: "Sivutus, valitse sivunumero siirtyäksesi sivulle",
|
|
97
|
+
prev_section: "Näytä edelliset {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi",
|
|
98
|
+
next_section: "Näytä seuraavat {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi",
|
|
99
|
+
},
|
|
100
|
+
sv: {
|
|
101
|
+
next_page: "Nästa sida",
|
|
102
|
+
previous_page: "Föregående sida",
|
|
103
|
+
first_page: "Första sidan",
|
|
104
|
+
last_page: "Sista sidan",
|
|
105
|
+
jump_to: "Hoppa till sida",
|
|
106
|
+
go_to: "Hoppa till sida",
|
|
107
|
+
description: "Du kan använda piltangenterna för att välja sida, eller skriva in sida när elementet är i fokus för att hoppa till en sida",
|
|
108
|
+
pagination_label: "Sidutning, välj en siffra för att hoppa till en sida",
|
|
109
|
+
prev_section: "Visa föregående {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera",
|
|
110
|
+
next_section: "Visa nästa {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera",
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Default pagination labels
|
|
115
|
+
*/
|
|
116
|
+
this.accessibleLabels = getLocaleString(this.accessibleLabelsDefaults);
|
|
117
|
+
/**
|
|
118
|
+
* The size of the take, when paginating.
|
|
119
|
+
*/
|
|
120
|
+
this.take = 5;
|
|
121
|
+
/**
|
|
122
|
+
* Amount of visible page numbers to show
|
|
123
|
+
*/
|
|
124
|
+
this.visibleItems = 5;
|
|
125
|
+
/**
|
|
126
|
+
* The total size of the paginating data
|
|
127
|
+
*/
|
|
128
|
+
this.total = 1000;
|
|
129
|
+
/**
|
|
130
|
+
* Used to indicate which dom element with ID this element controls
|
|
131
|
+
*/
|
|
132
|
+
this.ariaControls = "";
|
|
133
|
+
/**
|
|
134
|
+
* The current page
|
|
135
|
+
*/
|
|
136
|
+
this.current = 1;
|
|
137
|
+
/**
|
|
138
|
+
* Private methods.
|
|
139
|
+
*/
|
|
140
|
+
// called from the watcher and used to make sure any changed to current also updates the internal section index
|
|
141
|
+
this.actionChain = async (after, before) => {
|
|
142
|
+
if (after === 0) {
|
|
143
|
+
this.current = 1;
|
|
144
|
+
}
|
|
145
|
+
else if (before !== after) {
|
|
146
|
+
const calculatedSectionIndex = Math.ceil(after / this.visibleItems) - 1;
|
|
147
|
+
if (calculatedSectionIndex !== this.internalSectionIndex) {
|
|
148
|
+
this.internalSectionIndex = calculatedSectionIndex;
|
|
149
|
+
await this.setFocus();
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return true;
|
|
153
|
+
};
|
|
154
|
+
//helper to emit relevant page events
|
|
155
|
+
this.emitPageEvent = debounce((ev, passedPage) => {
|
|
156
|
+
const page = Number(passedPage || this.current);
|
|
157
|
+
this.duetPageChange.emit({
|
|
158
|
+
component: "duet-pagination",
|
|
159
|
+
from: page * this.take,
|
|
160
|
+
to: page * this.take + this.take,
|
|
161
|
+
current: page,
|
|
162
|
+
take: this.take,
|
|
163
|
+
type: "page",
|
|
164
|
+
originalEvent: ev,
|
|
165
|
+
});
|
|
166
|
+
}, 100);
|
|
167
|
+
// this will return the entered number, or the current page if the user presses enter
|
|
168
|
+
this.getEnteredNumber = debounce(ev => {
|
|
169
|
+
this.emitPageEvent(ev, this.numbersStore);
|
|
170
|
+
this.current = Number(this.numbersStore);
|
|
171
|
+
this.numbersStore = "";
|
|
172
|
+
this.duetPageChange.emit({
|
|
173
|
+
component: "duet-pagination",
|
|
174
|
+
from: this.current * this.take,
|
|
175
|
+
to: this.current * this.take + this.take,
|
|
176
|
+
current: this.current,
|
|
177
|
+
take: this.take,
|
|
178
|
+
type: "jump",
|
|
179
|
+
originalEvent: ev,
|
|
180
|
+
});
|
|
181
|
+
}, 500);
|
|
182
|
+
}
|
|
183
|
+
watchPropTotalHandler( /*newValue: boolean, oldValue: boolean*/) {
|
|
184
|
+
this.calculatePageTake();
|
|
185
|
+
return true;
|
|
186
|
+
}
|
|
187
|
+
watchStateHandler(newValue, oldValue) {
|
|
188
|
+
return this.actionChain(newValue, oldValue);
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Component lifecycle events.
|
|
192
|
+
*/
|
|
193
|
+
componentWillLoad() {
|
|
194
|
+
// we want to keep the internal current index in sync with the current prop, but take advantage of the multiple with 0 for the first iteration
|
|
195
|
+
this.internalSectionIndex = Math.ceil(this.current / this.visibleItems) - 1;
|
|
196
|
+
this.calculatePageTake();
|
|
197
|
+
inheritGlobalTheme(this);
|
|
198
|
+
}
|
|
199
|
+
componentWillRender() {
|
|
200
|
+
if (this.internalSectionIndex !== 0 && this.internalSectionIndex !== this.totalPages) {
|
|
201
|
+
this.calculatePageTake();
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
componentDidRender() {
|
|
205
|
+
this.setFocus();
|
|
206
|
+
}
|
|
207
|
+
//get totalpages from visible and total
|
|
208
|
+
calculatePageTake() {
|
|
209
|
+
this.totalPages = Math.ceil(this.total / this.take);
|
|
210
|
+
}
|
|
211
|
+
//set update current when mouse click on page number
|
|
212
|
+
async onMouseHandler(e, dir) {
|
|
213
|
+
e.preventDefault();
|
|
214
|
+
e.stopPropagation();
|
|
215
|
+
this.current = this.current + dir;
|
|
216
|
+
this.emitPageEvent(e);
|
|
217
|
+
}
|
|
218
|
+
//handle a11y keyboard navigation events
|
|
219
|
+
async onKeyboardDown(e) {
|
|
220
|
+
let next = this.current;
|
|
221
|
+
// handle a11y based keyboard navigation for left/right/up/down
|
|
222
|
+
if (isArrowLeftKey(e) || isArrowUpKey(e)) {
|
|
223
|
+
next--;
|
|
224
|
+
}
|
|
225
|
+
if (isArrowRightKey(e) || isArrowDownKey(e)) {
|
|
226
|
+
next++;
|
|
227
|
+
}
|
|
228
|
+
if (isArrowKey(e)) {
|
|
229
|
+
if (next <= this.totalPages) {
|
|
230
|
+
this.current = next;
|
|
231
|
+
this.emitPageEvent(e);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
//handle the jump feature, where numbers can be entered
|
|
235
|
+
if (isNumber(e) && this.shouldDisplayNavigation()) {
|
|
236
|
+
this.numbersStore = this.numbersStore + e.key;
|
|
237
|
+
if (Number(this.numbersStore) > this.totalPages) {
|
|
238
|
+
this.numbersStore = this.totalPages + "";
|
|
239
|
+
}
|
|
240
|
+
this.getEnteredNumber(e);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
// utility to set focus on active button
|
|
244
|
+
async setFocus() {
|
|
245
|
+
const currentDomElement = this.nativeNav.querySelector(`li.duet-pagination-item-is-active duet-button`);
|
|
246
|
+
currentDomElement && (await currentDomElement.setFocus());
|
|
247
|
+
}
|
|
248
|
+
//handles click on page numbers
|
|
249
|
+
pageClickHandler(e) {
|
|
250
|
+
e.preventDefault();
|
|
251
|
+
const clickedId = Number(e.target.getAttribute("data-id"));
|
|
252
|
+
this.current = clickedId;
|
|
253
|
+
this.emitPageEvent({}, clickedId);
|
|
254
|
+
}
|
|
255
|
+
//handles click on the next section buttons
|
|
256
|
+
sectionClickHandler(e, direction) {
|
|
257
|
+
e.preventDefault();
|
|
258
|
+
let next = this.internalSectionIndex + direction;
|
|
259
|
+
const takePerVisibleItems = this.take * this.visibleItems;
|
|
260
|
+
if (next * takePerVisibleItems > this.total) {
|
|
261
|
+
next = this.internalSectionIndex;
|
|
262
|
+
}
|
|
263
|
+
const newSection = next;
|
|
264
|
+
this.internalSectionIndex = newSection >= 0 ? newSection : 0;
|
|
265
|
+
}
|
|
266
|
+
//handles click on the jump (1)button
|
|
267
|
+
jumpToStart(e) {
|
|
268
|
+
e.preventDefault();
|
|
269
|
+
this.internalSectionIndex = 0;
|
|
270
|
+
this.current = 1;
|
|
271
|
+
this.emitPageEvent(e);
|
|
272
|
+
}
|
|
273
|
+
//handles click on the jump (total) button
|
|
274
|
+
jumpToEnd(e) {
|
|
275
|
+
e.preventDefault();
|
|
276
|
+
this.internalSectionIndex = Math.ceil(this.totalPages / this.take - 1);
|
|
277
|
+
this.current = this.totalPages;
|
|
278
|
+
this.emitPageEvent(e);
|
|
279
|
+
}
|
|
280
|
+
// render the individual page numbers
|
|
281
|
+
renderPageNumbers() {
|
|
282
|
+
const items = [];
|
|
283
|
+
let i = this.internalSectionIndex * this.visibleItems;
|
|
284
|
+
do {
|
|
285
|
+
i++;
|
|
286
|
+
if (i > this.totalPages) {
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
items.push(h("li", { class: {
|
|
290
|
+
"duet-pagination-item": true,
|
|
291
|
+
"duet-pagination-item-is-active": i === this.current,
|
|
292
|
+
}, role: "menuitem" }, h("duet-button", { class: {
|
|
293
|
+
"duet-pagination-link": true,
|
|
294
|
+
}, color: i !== this.current ? "secondary" : "primary", "data-id": i, "center-text": true, variation: "plain", margin: "none", accessibleLabel: `${this.accessibleLabels.go_to} ${i}`, onClick: e => this.pageClickHandler(e) }, h("div", { class: "duet-pagination-page-number", "aria-hidden": true }, i))));
|
|
295
|
+
} while (i < this.visibleItems + this.internalSectionIndex * this.visibleItems);
|
|
296
|
+
return items;
|
|
297
|
+
}
|
|
298
|
+
shouldDisplayNavigation() {
|
|
299
|
+
if (this.variation !== "compact") {
|
|
300
|
+
return shouldDisplayNavigation(this.visibleItems, this.total, this.take);
|
|
301
|
+
}
|
|
302
|
+
return false;
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* render() function
|
|
306
|
+
* Always the last one in the class.
|
|
307
|
+
*/
|
|
308
|
+
render() {
|
|
309
|
+
return (h(Host, { onKeyDown: e => this.onKeyboardDown(e) }, h("nav", { role: "navigation", "aria-labelledby": this.accessibleLabelledBy ? `${this.accessibleLabelledBy} ${this.listId}` : this.listId, "aria-describedby": this.accessibleDescribedBy ? `${this.accessibleDescribedBy} ${this.listId}` : this.listId, "aria-descriptions": this.accessibleDescription, "aria-details": this.accessibleDetails, ref: el => (this.nativeNav = el), "aria-controls": this.ariaControls, class: {
|
|
310
|
+
"duet-pagination-nav": true,
|
|
311
|
+
[`duet-pagination-variation-${this.variation}`]: true,
|
|
312
|
+
} }, this.numbersStore !== "" && (h("div", { "aria-live": "assertive", "aria-relevant": "text", class: "duet-pagination-overlay", "aria-label": `${this.accessibleLabels.jump_to} ${this.numbersStore}`, part: "navigation-overlay" }, h("duet-badge", null, "jump to page : ", this.numbersStore))), h("ol", { id: this.listId, class: {
|
|
313
|
+
"duet-pagination": true,
|
|
314
|
+
"duet-pagination-is-dimmed": this.numbersStore !== "",
|
|
315
|
+
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, h("li", { class: {
|
|
316
|
+
"duet-pagination-page-button": true,
|
|
317
|
+
"duet-pagination-button-first": true,
|
|
318
|
+
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { disabled: this.internalSectionIndex === 0 && this.current <= 1, "data-direction": "back", onClick: e => this.onMouseHandler(e, -1), "aria-label": this.accessibleLabels.previous_page, "icon-name": "action-arrow-left-small" })), this.internalSectionIndex !== 0 && this.shouldDisplayNavigation() && (h(Fragment, null, h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, h("duet-button", { class: "duet-pagination-link duet-pagination-link-jump-back", "center-text": "true", variation: "plain", color: "secondary", margin: "none", accessibleLabel: this.accessibleLabels.first_page, onClick: e => this.jumpToStart(e) }, h("div", { class: "duet-pagination-page-number" }, "1"))), h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, h("duet-button", { class: "duet-pagination-link duet-pagination-link-dots-back", "center-text": "true", color: "secondary", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.prev_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, -1) }, h("div", { class: "duet-pagination-page-number", "aria-hidden": "true" }, "..."))))), this.renderPageNumbers(), this.internalSectionIndex * (this.visibleItems + 2) < this.totalPages && this.shouldDisplayNavigation() && (h(Fragment, null, h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, h("duet-button", { class: "duet-pagination-link duet-pagination-link-dots-forward", "center-text": "true", color: "secondary", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.next_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, 1) }, h("div", { class: "duet-pagination-page-number", "aria-hidden": "true" }, "..."))), h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, h("duet-button", { class: "duet-pagination-link duet-pagination-link-jump-forward", "center-text": "true", color: "secondary", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.last_page, onClick: e => this.jumpToEnd(e) }, h("div", { class: "duet-pagination-page-number" }, this.totalPages))))), h("li", { class: {
|
|
319
|
+
"duet-pagination-page-button": true,
|
|
320
|
+
"duet-pagination-button-last": true,
|
|
321
|
+
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { disabled: this.current === this.totalPages &&
|
|
322
|
+
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1, class: "duet-date-dialog-next", "aria-label": this.accessibleLabels.next_page, onClick: e => this.onMouseHandler(e, 1), "icon-name": "action-arrow-right-small" }))))));
|
|
323
|
+
}
|
|
324
|
+
get element() { return this; }
|
|
325
|
+
static get watchers() { return {
|
|
326
|
+
"total": ["watchPropTotalHandler"],
|
|
327
|
+
"current": ["watchStateHandler"]
|
|
328
|
+
}; }
|
|
329
|
+
static get style() { return duetPaginationCss; }
|
|
330
|
+
}, [1, "duet-pagination", {
|
|
331
|
+
"theme": [1025],
|
|
332
|
+
"jumpString": [1, "jump-string"],
|
|
333
|
+
"variation": [1],
|
|
334
|
+
"accessibleDescribedBy": [1, "accessible-described-by"],
|
|
335
|
+
"accessibleDetails": [1, "accessible-details"],
|
|
336
|
+
"accessibleLabelledBy": [1, "accessible-labelled-by"],
|
|
337
|
+
"accessibleDescription": [1, "accessible-description"],
|
|
338
|
+
"accessibleLabelsDefaults": [16],
|
|
339
|
+
"accessibleLabels": [16],
|
|
340
|
+
"take": [2],
|
|
341
|
+
"visibleItems": [2, "visible-items"],
|
|
342
|
+
"total": [2],
|
|
343
|
+
"ariaControls": [1, "accessible-controls"],
|
|
344
|
+
"current": [1026],
|
|
345
|
+
"numbersStore": [32],
|
|
346
|
+
"totalPages": [32],
|
|
347
|
+
"internalSectionIndex": [32]
|
|
348
|
+
}]);
|
|
349
|
+
function defineCustomElement$1() {
|
|
350
|
+
if (typeof customElements === "undefined") {
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
const components = ["duet-pagination", "duet-action-button", "duet-badge", "duet-button", "duet-icon", "duet-spinner", "duet-visually-hidden"];
|
|
354
|
+
components.forEach(tagName => { switch (tagName) {
|
|
355
|
+
case "duet-pagination":
|
|
356
|
+
if (!customElements.get(tagName)) {
|
|
357
|
+
customElements.define(tagName, DuetPagination$1);
|
|
358
|
+
}
|
|
359
|
+
break;
|
|
360
|
+
case "duet-action-button":
|
|
361
|
+
if (!customElements.get(tagName)) {
|
|
362
|
+
defineCustomElement$7();
|
|
363
|
+
}
|
|
364
|
+
break;
|
|
365
|
+
case "duet-badge":
|
|
366
|
+
if (!customElements.get(tagName)) {
|
|
367
|
+
defineCustomElement$6();
|
|
368
|
+
}
|
|
369
|
+
break;
|
|
370
|
+
case "duet-button":
|
|
371
|
+
if (!customElements.get(tagName)) {
|
|
372
|
+
defineCustomElement$5();
|
|
373
|
+
}
|
|
374
|
+
break;
|
|
375
|
+
case "duet-icon":
|
|
376
|
+
if (!customElements.get(tagName)) {
|
|
377
|
+
defineCustomElement$4();
|
|
378
|
+
}
|
|
379
|
+
break;
|
|
380
|
+
case "duet-spinner":
|
|
381
|
+
if (!customElements.get(tagName)) {
|
|
382
|
+
defineCustomElement$3();
|
|
383
|
+
}
|
|
384
|
+
break;
|
|
385
|
+
case "duet-visually-hidden":
|
|
386
|
+
if (!customElements.get(tagName)) {
|
|
387
|
+
defineCustomElement$2();
|
|
388
|
+
}
|
|
389
|
+
break;
|
|
390
|
+
} });
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
const DuetPagination = DuetPagination$1;
|
|
394
|
+
const defineCustomElement = defineCustomElement$1;
|
|
395
|
+
|
|
396
|
+
export { DuetPagination, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface DuetParagraph extends Components.DuetParagraph, HTMLElement {}
|
|
4
|
+
export const DuetParagraph: {
|
|
5
|
+
prototype: DuetParagraph;
|
|
6
|
+
new (): DuetParagraph;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { D as DuetParagraph$1, d as defineCustomElement$1 } from './p-213ef84c.js';
|
|
5
|
+
|
|
6
|
+
const DuetParagraph = DuetParagraph$1;
|
|
7
|
+
const defineCustomElement = defineCustomElement$1;
|
|
8
|
+
|
|
9
|
+
export { DuetParagraph, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface DuetProgress extends Components.DuetProgress, HTMLElement {}
|
|
4
|
+
export const DuetProgress: {
|
|
5
|
+
prototype: DuetProgress;
|
|
6
|
+
new (): DuetProgress;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { D as DuetProgress$1, d as defineCustomElement$1 } from './p-acdba2db.js';
|
|
5
|
+
|
|
6
|
+
const DuetProgress = DuetProgress$1;
|
|
7
|
+
const defineCustomElement = defineCustomElement$1;
|
|
8
|
+
|
|
9
|
+
export { DuetProgress, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface DuetRadioGroup extends Components.DuetRadioGroup, HTMLElement {}
|
|
4
|
+
export const DuetRadioGroup: {
|
|
5
|
+
prototype: DuetRadioGroup;
|
|
6
|
+
new (): DuetRadioGroup;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { p as proxyCustomElement, H, h, b as Host } from './p-3fc2d124.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
|
+
import { f as findCheckedOption, w as watchForOptions } from './p-12721178.js';
|
|
7
|
+
import { d as defineCustomElement$6 } from './p-e5c8a58f.js';
|
|
8
|
+
import { d as defineCustomElement$5 } from './p-e4d5fbc0.js';
|
|
9
|
+
import { d as defineCustomElement$4 } from './p-7739604d.js';
|
|
10
|
+
import { d as defineCustomElement$3 } from './p-88511d7a.js';
|
|
11
|
+
import { d as defineCustomElement$2 } from './p-b08e57cf.js';
|
|
12
|
+
|
|
13
|
+
const duetRadioGroupCss = "*.sc-duet-radio-group,*.sc-duet-radio-group::after,*.sc-duet-radio-group::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-radio-group-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.horizontal.sc-duet-radio-group-h .duet-radio-group.sc-duet-radio-group{display:block}@media (min-width: 48em){.horizontal.sc-duet-radio-group-h .duet-radio-group.sc-duet-radio-group{display:flex}}.horizontal.sc-duet-radio-group-h .duet-radio-group.duet-no-stacking.sc-duet-radio-group{display:flex}.deut-radio-group.sc-duet-radio-group{width:100%}";
|
|
14
|
+
|
|
15
|
+
const DuetRadioGroup$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
this.__registerHost();
|
|
19
|
+
/**
|
|
20
|
+
* Direction of the radio group.
|
|
21
|
+
*/
|
|
22
|
+
this.direction = "vertical";
|
|
23
|
+
/**
|
|
24
|
+
* Controls the margin of the component.
|
|
25
|
+
*/
|
|
26
|
+
this.margin = "auto";
|
|
27
|
+
/**
|
|
28
|
+
* Theme of the radio group.
|
|
29
|
+
*/
|
|
30
|
+
this.theme = "";
|
|
31
|
+
/**
|
|
32
|
+
* Display radio group in error state along with an error message.
|
|
33
|
+
*/
|
|
34
|
+
this.error = "";
|
|
35
|
+
/**
|
|
36
|
+
* Tooltip to display next to the label of the radio group.
|
|
37
|
+
*/
|
|
38
|
+
this.tooltip = "";
|
|
39
|
+
/**
|
|
40
|
+
* With direction setting you can force the tooltip to always open towards left
|
|
41
|
+
* or right instead of automatically determining the direction.
|
|
42
|
+
*/
|
|
43
|
+
this.tooltipDirection = "auto";
|
|
44
|
+
/**
|
|
45
|
+
* Legend displayed for the radio buttons in this group.
|
|
46
|
+
*/
|
|
47
|
+
this.label = "Label";
|
|
48
|
+
/**
|
|
49
|
+
* Visually hide the label, but still show it to screen readers.
|
|
50
|
+
*/
|
|
51
|
+
this.labelHidden = false;
|
|
52
|
+
/**
|
|
53
|
+
* Additional caption to show inside the label of the radio group.
|
|
54
|
+
*/
|
|
55
|
+
this.caption = "";
|
|
56
|
+
/**
|
|
57
|
+
* Enable or disable the automatic responsive behaviour of the radio group
|
|
58
|
+
* component when horizontal setting is used. Setting this option to "true"
|
|
59
|
+
* makes sure that contents are stacked vertically on mobile.
|
|
60
|
+
*/
|
|
61
|
+
this.responsive = false;
|
|
62
|
+
/**
|
|
63
|
+
* Component event handling.
|
|
64
|
+
*/
|
|
65
|
+
this.onSelect = (ev) => {
|
|
66
|
+
const selectedRadio = ev.target;
|
|
67
|
+
if (selectedRadio) {
|
|
68
|
+
this.value = selectedRadio.value;
|
|
69
|
+
}
|
|
70
|
+
// Prevent events from bubbling up the DOM tree in case
|
|
71
|
+
// this group is a sub-group of another choice group.
|
|
72
|
+
ev.cancelBubble = true;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Component lifecycle events.
|
|
77
|
+
*/
|
|
78
|
+
async connectedCallback() {
|
|
79
|
+
const el = this.element;
|
|
80
|
+
if (this.value === undefined) {
|
|
81
|
+
const radio = findCheckedOption(el, "duet-radio");
|
|
82
|
+
if (radio !== undefined) {
|
|
83
|
+
await radio.componentOnReady();
|
|
84
|
+
if (this.value === undefined) {
|
|
85
|
+
this.value = radio.value;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
this.mutationO = watchForOptions(el, "duet-radio", newOption => {
|
|
90
|
+
if (newOption !== undefined) {
|
|
91
|
+
newOption.componentOnReady().then(() => {
|
|
92
|
+
this.value = newOption.value;
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
this.updateRadios();
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
this.updateRadios();
|
|
100
|
+
}
|
|
101
|
+
disconnectedCallback() {
|
|
102
|
+
if (this.mutationO) {
|
|
103
|
+
this.mutationO.disconnect();
|
|
104
|
+
this.mutationO = undefined;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
componentWillLoad() {
|
|
108
|
+
inheritGlobalTheme(this);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Local methods.
|
|
112
|
+
*/
|
|
113
|
+
async updateRadios() {
|
|
114
|
+
/**
|
|
115
|
+
* Make sure we get all radios first so values are up to date prior
|
|
116
|
+
* to caching the radio group value
|
|
117
|
+
*/
|
|
118
|
+
const radios = Array.from(this.element.querySelectorAll("duet-radio"));
|
|
119
|
+
const { value } = this;
|
|
120
|
+
let hasChecked = false;
|
|
121
|
+
// Walk the DOM in reverse order, since the last selected one wins
|
|
122
|
+
for (const radio of radios) {
|
|
123
|
+
radio.name = this.name;
|
|
124
|
+
radio.groupDisabled = this.disabled;
|
|
125
|
+
radio.groupDirection = this.direction;
|
|
126
|
+
radio.groupResponsive = this.responsive;
|
|
127
|
+
if (!hasChecked && radio.value === value) {
|
|
128
|
+
// Correct value for this radio, but this radio isn't checked yet
|
|
129
|
+
// and we haven't found a checked yet
|
|
130
|
+
hasChecked = true;
|
|
131
|
+
radio.checked = true;
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
// This radio doesn't have the correct value or the radio group has been already checked
|
|
135
|
+
radio.checked = false;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
// Reset value if
|
|
139
|
+
if (!hasChecked) {
|
|
140
|
+
this.value = undefined;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* render() function
|
|
145
|
+
* Always the last one in the class.
|
|
146
|
+
*/
|
|
147
|
+
render() {
|
|
148
|
+
return (h(Host, { onDuetChange: this.onSelect, class: { horizontal: this.direction === "horizontal" } }, h("duet-fieldset", { label: this.label, labelHidden: this.labelHidden, caption: this.caption, error: this.error, margin: this.margin, theme: this.theme }, this.tooltip && (h("duet-tooltip", { slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("div", { class: { "duet-radio-group": true, "duet-no-stacking": !this.responsive } }, h("slot", null)))));
|
|
149
|
+
}
|
|
150
|
+
get element() { return this; }
|
|
151
|
+
static get watchers() { return {
|
|
152
|
+
"name": ["updateRadios"],
|
|
153
|
+
"value": ["updateRadios"],
|
|
154
|
+
"disabled": ["updateRadios"],
|
|
155
|
+
"direction": ["updateRadios"],
|
|
156
|
+
"responsive": ["updateRadios"]
|
|
157
|
+
}; }
|
|
158
|
+
static get style() { return duetRadioGroupCss; }
|
|
159
|
+
}, [6, "duet-radio-group", {
|
|
160
|
+
"direction": [1],
|
|
161
|
+
"margin": [1],
|
|
162
|
+
"theme": [1025],
|
|
163
|
+
"error": [1],
|
|
164
|
+
"tooltip": [1],
|
|
165
|
+
"tooltipDirection": [1, "tooltip-direction"],
|
|
166
|
+
"name": [1],
|
|
167
|
+
"label": [1],
|
|
168
|
+
"labelHidden": [4, "label-hidden"],
|
|
169
|
+
"caption": [1],
|
|
170
|
+
"responsive": [4],
|
|
171
|
+
"value": [1537],
|
|
172
|
+
"disabled": [4]
|
|
173
|
+
}]);
|
|
174
|
+
function defineCustomElement$1() {
|
|
175
|
+
if (typeof customElements === "undefined") {
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
const components = ["duet-radio-group", "duet-caption", "duet-fieldset", "duet-icon", "duet-tooltip", "duet-visually-hidden"];
|
|
179
|
+
components.forEach(tagName => { switch (tagName) {
|
|
180
|
+
case "duet-radio-group":
|
|
181
|
+
if (!customElements.get(tagName)) {
|
|
182
|
+
customElements.define(tagName, DuetRadioGroup$1);
|
|
183
|
+
}
|
|
184
|
+
break;
|
|
185
|
+
case "duet-caption":
|
|
186
|
+
if (!customElements.get(tagName)) {
|
|
187
|
+
defineCustomElement$6();
|
|
188
|
+
}
|
|
189
|
+
break;
|
|
190
|
+
case "duet-fieldset":
|
|
191
|
+
if (!customElements.get(tagName)) {
|
|
192
|
+
defineCustomElement$5();
|
|
193
|
+
}
|
|
194
|
+
break;
|
|
195
|
+
case "duet-icon":
|
|
196
|
+
if (!customElements.get(tagName)) {
|
|
197
|
+
defineCustomElement$4();
|
|
198
|
+
}
|
|
199
|
+
break;
|
|
200
|
+
case "duet-tooltip":
|
|
201
|
+
if (!customElements.get(tagName)) {
|
|
202
|
+
defineCustomElement$3();
|
|
203
|
+
}
|
|
204
|
+
break;
|
|
205
|
+
case "duet-visually-hidden":
|
|
206
|
+
if (!customElements.get(tagName)) {
|
|
207
|
+
defineCustomElement$2();
|
|
208
|
+
}
|
|
209
|
+
break;
|
|
210
|
+
} });
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
const DuetRadioGroup = DuetRadioGroup$1;
|
|
214
|
+
const defineCustomElement = defineCustomElement$1;
|
|
215
|
+
|
|
216
|
+
export { DuetRadioGroup, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface DuetRadio extends Components.DuetRadio, HTMLElement {}
|
|
4
|
+
export const DuetRadio: {
|
|
5
|
+
prototype: DuetRadio;
|
|
6
|
+
new (): DuetRadio;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|