@duetds/components 6.2.3 → 6.2.5
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.d.ts +1 -1
- package/hydrate/index.js +2257 -4173
- package/lib/cjs/{dom-96576bce.js → dom-bcfa684c.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +14 -77
- package/lib/cjs/duet-alert.cjs.entry.js +10 -42
- package/lib/cjs/duet-badge.cjs.entry.js +1 -10
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +2 -10
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +2 -4
- package/lib/cjs/duet-button_2.cjs.entry.js +30 -119
- package/lib/cjs/duet-caption_4.cjs.entry.js +4 -78
- package/lib/cjs/duet-card.cjs.entry.js +16 -55
- package/lib/cjs/duet-checkbox.cjs.entry.js +21 -49
- package/lib/cjs/duet-choice_2.cjs.entry.js +51 -152
- package/lib/cjs/duet-collapsible.cjs.entry.js +8 -41
- package/lib/cjs/duet-combobox.cjs.entry.js +26 -50
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +3 -9
- package/lib/cjs/duet-date-picker.cjs.entry.js +37 -108
- package/lib/cjs/duet-divider_2.cjs.entry.js +1 -17
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +163 -404
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -10
- package/lib/cjs/duet-fieldset.cjs.entry.js +7 -13
- package/lib/cjs/duet-footer.cjs.entry.js +13 -42
- package/lib/cjs/duet-grid_2.cjs.entry.js +3 -43
- package/lib/cjs/duet-header_2.cjs.entry.js +56 -163
- package/lib/cjs/duet-hero.cjs.entry.js +15 -90
- package/lib/cjs/duet-icon.cjs.entry.js +4 -35
- package/lib/cjs/duet-input_2.cjs.entry.js +41 -115
- package/lib/cjs/duet-layout.cjs.entry.js +1 -24
- package/lib/cjs/duet-list_2.cjs.entry.js +1 -23
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -10
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +4 -13
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -10
- package/lib/cjs/duet-menu-bar-menu-dropdown-link.cjs.entry.js +1 -16
- package/lib/cjs/duet-menu-bar-menu-dropdown.cjs.entry.js +4 -13
- package/lib/cjs/duet-menu-bar-menu-link.cjs.entry.js +1 -13
- package/lib/cjs/duet-menu-bar-menu.cjs.entry.js +4 -13
- package/lib/cjs/duet-menu-bar.cjs.entry.js +3 -6
- package/lib/cjs/duet-modal.cjs.entry.js +4 -59
- package/lib/cjs/duet-multiselect.cjs.entry.js +18 -59
- package/lib/cjs/duet-nav.cjs.entry.js +2 -5
- package/lib/cjs/duet-notification_2.cjs.entry.js +15 -74
- package/lib/cjs/duet-number-input.cjs.entry.js +53 -142
- package/lib/cjs/duet-pagination_2.cjs.entry.js +51 -125
- package/lib/cjs/duet-progress.cjs.entry.js +4 -26
- package/lib/cjs/duet-radio_2.cjs.entry.js +36 -84
- package/lib/cjs/duet-range-slider.cjs.entry.js +21 -62
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +25 -88
- package/lib/cjs/duet-section-layout.cjs.entry.js +1 -7
- package/lib/cjs/duet-select.cjs.entry.js +25 -65
- package/lib/cjs/duet-step_2.cjs.entry.js +8 -34
- package/lib/cjs/duet-textarea.cjs.entry.js +31 -79
- package/lib/cjs/duet-toggle.cjs.entry.js +15 -38
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -13
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +5 -17
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -13
- package/lib/cjs/duet-toolbar.cjs.entry.js +1 -4
- package/lib/cjs/duet-tooltip.cjs.entry.js +25 -78
- package/lib/cjs/duet-tray.cjs.entry.js +11 -53
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +8 -29
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +4 -4
- package/lib/cjs/{focus-utils-53db3623.js → focus-utils-18ea61a6.js} +1 -1
- package/lib/cjs/{index-1420909f.js → index-d2f05eb8.js} +1438 -1235
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{shadow-css-38b9e725.js → shadow-css-1ea48714.js} +1 -1
- package/lib/collection/collection-manifest.json +2 -2
- package/lib/collection/common/a11y-component.js +0 -3
- package/lib/collection/common/form-components.js +0 -3
- package/lib/collection/components/duet-action-button/duet-action-button.js +403 -461
- package/lib/collection/components/duet-alert/duet-alert.js +259 -289
- package/lib/collection/components/duet-badge/duet-badge.js +84 -89
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +96 -101
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +47 -48
- package/lib/collection/components/duet-button/duet-button.js +838 -912
- package/lib/collection/components/duet-caption/duet-caption.js +96 -103
- package/lib/collection/components/duet-card/duet-card.js +381 -431
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +476 -498
- package/lib/collection/components/duet-choice/duet-choice.js +731 -819
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +282 -308
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +208 -237
- package/lib/collection/components/duet-combobox/duet-combobox-select-single.js +1 -5
- package/lib/collection/components/duet-combobox/duet-combobox-select.js +1 -3
- package/lib/collection/components/duet-combobox/duet-combobox.css +47 -14
- package/lib/collection/components/duet-combobox/duet-combobox.js +257 -269
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +77 -82
- package/lib/collection/components/duet-date-picker/date-picker-day.js +1 -3
- package/lib/collection/components/duet-date-picker/date-picker-input.js +1 -12
- package/lib/collection/components/duet-date-picker/date-picker-month.js +6 -12
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +703 -795
- package/lib/collection/components/duet-divider/duet-divider.js +57 -57
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +316 -381
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +83 -90
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +143 -153
- package/lib/collection/components/duet-footer/duet-footer.js +337 -378
- package/lib/collection/components/duet-grid/duet-grid.js +149 -162
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +153 -164
- package/lib/collection/components/duet-header/duet-header-dropdown.js +11 -19
- package/lib/collection/components/duet-header/duet-header-hamburger.js +1 -5
- package/lib/collection/components/duet-header/duet-header-icon.js +1 -2
- package/lib/collection/components/duet-header/duet-header.js +872 -1023
- package/lib/collection/components/duet-heading/duet-heading.js +183 -200
- package/lib/collection/components/duet-hero/duet-hero.js +568 -660
- package/lib/collection/components/duet-icon/duet-icon.js +240 -263
- package/lib/collection/components/duet-input/duet-input.js +937 -1009
- package/lib/collection/components/duet-label/duet-label.js +95 -100
- package/lib/collection/components/duet-layout/duet-layout.js +163 -189
- package/lib/collection/components/duet-link/duet-link.js +204 -223
- package/lib/collection/components/duet-list/duet-list.js +181 -196
- package/lib/collection/components/duet-list-item/duet-list-item.js +12 -12
- package/lib/collection/components/duet-logo/duet-logo.js +171 -190
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +45 -44
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +100 -109
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +75 -81
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +72 -78
- package/lib/collection/components/duet-menu-bar-menu/duet-menu-bar-menu.js +100 -106
- package/lib/collection/components/duet-menu-bar-menu-dropdown/duet-menu-bar-menu-dropdown.js +100 -109
- package/lib/collection/components/duet-menu-bar-menu-dropdown-link/duet-menu-bar-menu-dropdown-link.js +110 -123
- package/lib/collection/components/duet-menu-bar-menu-link/duet-menu-bar-menu-link.js +89 -98
- package/lib/collection/components/duet-modal/duet-modal.js +466 -520
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +411 -454
- package/lib/collection/components/duet-nav/duet-nav.js +78 -75
- package/lib/collection/components/duet-notification/duet-notification.js +201 -231
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +284 -312
- package/lib/collection/components/duet-number-input/duet-number-input.js +851 -944
- package/lib/collection/components/duet-pagination/duet-pagination.js +374 -439
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +140 -154
- package/lib/collection/components/duet-progress/duet-progress.js +223 -253
- package/lib/collection/components/duet-radio/duet-radio.js +519 -531
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +282 -308
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +468 -505
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +187 -204
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +98 -106
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +58 -61
- package/lib/collection/components/duet-select/duet-select.js +565 -606
- package/lib/collection/components/duet-spacer/duet-spacer.js +77 -81
- package/lib/collection/components/duet-spinner/duet-spinner.js +99 -107
- package/lib/collection/components/duet-step/duet-step.js +206 -219
- package/lib/collection/components/duet-stepper/duet-stepper.js +148 -156
- package/lib/collection/components/duet-tab/duet-tab.js +95 -96
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +367 -405
- package/lib/collection/components/duet-table/duet-table.js +144 -160
- package/lib/collection/components/duet-textarea/duet-textarea.js +694 -747
- package/lib/collection/components/duet-toggle/duet-toggle.js +388 -404
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +38 -38
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +123 -135
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +93 -102
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +89 -98
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +349 -402
- package/lib/collection/components/duet-tray/duet-tray.js +235 -276
- package/lib/collection/components/duet-upload/duet-upload.js +1371 -1549
- package/lib/collection/components/duet-upload/upload-editable-item-error.js +1 -6
- package/lib/collection/components/duet-upload/upload-editable-item-inprogres.js +1 -6
- package/lib/collection/components/duet-upload/upload-editable-item-pending.js +1 -4
- package/lib/collection/components/duet-upload/upload-editable-item-success.js +5 -21
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +137 -153
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +12 -9
- package/lib/dist-custom-elements/duet-action-button.js +1 -1
- package/lib/dist-custom-elements/duet-alert.js +1 -1
- package/lib/dist-custom-elements/duet-badge.js +1 -1
- package/lib/dist-custom-elements/duet-breadcrumb.js +3 -11
- package/lib/dist-custom-elements/duet-breadcrumbs.js +3 -5
- package/lib/dist-custom-elements/duet-button.js +1 -1
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +19 -58
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-choice-group.js +19 -49
- package/lib/dist-custom-elements/duet-choice.js +42 -113
- package/lib/dist-custom-elements/duet-collapsible.js +10 -43
- package/lib/dist-custom-elements/duet-combobox.js +29 -59
- package/lib/dist-custom-elements/duet-cookie-consent.js +8 -14
- package/lib/dist-custom-elements/duet-date-picker.js +45 -116
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +1 -1
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-footer.js +16 -45
- package/lib/dist-custom-elements/duet-grid-item.js +1 -1
- package/lib/dist-custom-elements/duet-grid.js +1 -1
- package/lib/dist-custom-elements/duet-header.js +65 -152
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +23 -98
- package/lib/dist-custom-elements/duet-icon.js +1 -1
- package/lib/dist-custom-elements/duet-input.js +1 -1
- package/lib/dist-custom-elements/duet-label.js +1 -1
- package/lib/dist-custom-elements/duet-layout.js +1 -24
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -11
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +5 -14
- package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -11
- package/lib/dist-custom-elements/duet-menu-bar-menu-dropdown-link.js +2 -17
- package/lib/dist-custom-elements/duet-menu-bar-menu-dropdown.js +5 -14
- package/lib/dist-custom-elements/duet-menu-bar-menu-link.js +2 -14
- package/lib/dist-custom-elements/duet-menu-bar-menu.js +4 -13
- package/lib/dist-custom-elements/duet-menu-bar.js +5 -8
- package/lib/dist-custom-elements/duet-modal.js +10 -65
- package/lib/dist-custom-elements/duet-multiselect.js +25 -66
- package/lib/dist-custom-elements/duet-nav.js +2 -5
- package/lib/dist-custom-elements/duet-notification-drawer.js +18 -48
- package/lib/dist-custom-elements/duet-notification.js +2 -31
- package/lib/dist-custom-elements/duet-number-input.js +59 -148
- package/lib/dist-custom-elements/duet-pagination.js +51 -101
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-radio-group.js +19 -49
- package/lib/dist-custom-elements/duet-radio.js +23 -41
- package/lib/dist-custom-elements/duet-range-slider.js +23 -64
- package/lib/dist-custom-elements/duet-range-stepper.js +10 -34
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.js +1 -7
- package/lib/dist-custom-elements/duet-select.js +1 -1
- package/lib/dist-custom-elements/duet-spacer.js +1 -1
- package/lib/dist-custom-elements/duet-spinner.js +1 -1
- package/lib/dist-custom-elements/duet-step.js +11 -20
- package/lib/dist-custom-elements/duet-stepper.js +2 -19
- package/lib/dist-custom-elements/duet-tab-group.js +26 -72
- package/lib/dist-custom-elements/duet-tab.js +3 -9
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +38 -86
- package/lib/dist-custom-elements/duet-toggle.js +16 -39
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -14
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +6 -18
- package/lib/dist-custom-elements/duet-toolbar-link.js +2 -14
- package/lib/dist-custom-elements/duet-toolbar.js +1 -4
- package/lib/dist-custom-elements/duet-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +14 -56
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +165 -332
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.d.ts +75 -5
- package/lib/dist-custom-elements/index.js +76 -1
- package/lib/dist-custom-elements/{p-7fca7185.js → p-0cc49790.js} +3 -25
- package/lib/dist-custom-elements/{p-c978c011.js → p-0ef384ca.js} +7 -30
- package/lib/dist-custom-elements/{p-d339505b.js → p-10feffd3.js} +1 -1
- package/lib/dist-custom-elements/{p-e68fe06d.js → p-14a163e6.js} +475 -272
- package/lib/dist-custom-elements/{p-f22c141f.js → p-25d4fffb.js} +1 -11
- package/lib/dist-custom-elements/{p-77e39f63.js → p-354f8a94.js} +3 -16
- package/lib/dist-custom-elements/{p-428f8fe3.js → p-37dd7faf.js} +2 -22
- package/lib/dist-custom-elements/{p-fff89409.js → p-4115062c.js} +2 -25
- package/lib/dist-custom-elements/{p-2481ab53.js → p-4447816d.js} +3 -20
- package/lib/dist-custom-elements/{p-9ed347f9.js → p-535ce3ec.js} +1 -1
- package/lib/dist-custom-elements/{p-33e00967.js → p-55325c49.js} +1 -1
- package/lib/dist-custom-elements/{p-f7d6c7c8.js → p-65ee8608.js} +8 -14
- package/lib/dist-custom-elements/{p-c2d5ef52.js → p-737dd784.js} +45 -111
- package/lib/dist-custom-elements/{p-c4d8cad0.js → p-738bd3c5.js} +1 -1
- package/lib/dist-custom-elements/{p-066e5253.js → p-7958dc0c.js} +30 -70
- package/lib/dist-custom-elements/{p-00d8bf80.js → p-82fec063.js} +2 -21
- package/lib/dist-custom-elements/{p-d01deae4.js → p-88d217a7.js} +2 -11
- package/lib/dist-custom-elements/{p-2320f4a6.js → p-9245c901.js} +2 -10
- package/lib/dist-custom-elements/{p-378842c8.js → p-94eae3e6.js} +1 -7
- package/lib/dist-custom-elements/{p-0b8f16f1.js → p-9986919d.js} +1 -1
- package/lib/dist-custom-elements/{p-d29accfb.js → p-9fef7d37.js} +21 -49
- package/lib/dist-custom-elements/{p-63ec7354.js → p-a1212d29.js} +1 -1
- package/lib/dist-custom-elements/{p-79d893c1.js → p-ad7292b3.js} +5 -26
- package/lib/dist-custom-elements/{p-37b3f58a.js → p-af2e8de4.js} +14 -46
- package/lib/dist-custom-elements/{p-a82f5ca7.js → p-b5ea480c.js} +9 -30
- package/lib/dist-custom-elements/{p-d84c65e4.js → p-bd64a84d.js} +6 -17
- package/lib/dist-custom-elements/{p-8184db82.js → p-cab1e8a0.js} +20 -71
- package/lib/dist-custom-elements/{p-fbcece41.js → p-d2402b45.js} +27 -80
- package/lib/dist-custom-elements/{p-d6e7df61.js → p-d34c42bc.js} +1 -10
- package/lib/dist-custom-elements/{p-204da43b.js → p-d628dd87.js} +17 -80
- package/lib/dist-custom-elements/{p-db21a6ca.js → p-db135ec9.js} +1 -13
- package/lib/{esm/shadow-css-501eda9a.js → dist-custom-elements/p-e2cd1c98.js} +1 -1
- package/lib/dist-custom-elements/{p-b9058029.js → p-e4a60f42.js} +8 -0
- package/lib/dist-custom-elements/{p-321dbb74.js → p-eb6fc032.js} +33 -109
- package/lib/dist-custom-elements/{p-d80f3be0.js → p-f7c0e5bf.js} +1 -23
- package/lib/dist-custom-elements/{p-bd533ea2.js → p-fddad5df.js} +5 -36
- package/lib/dist-custom-elements/{p-c1943ce9.js → p-fed8d27a.js} +5 -27
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +2 -1
- package/lib/duet/{p-8666ba38.system.entry.js → p-00ee31e2.system.entry.js} +1 -1
- package/lib/duet/{p-05a8d445.entry.js → p-0169eb09.entry.js} +1 -1
- package/lib/duet/{p-4e3d3e94.system.entry.js → p-0236fc28.system.entry.js} +1 -1
- package/lib/duet/p-0285e5d3.entry.js +4 -0
- package/lib/duet/{p-77bdfe6e.system.entry.js → p-028da443.system.entry.js} +2 -2
- package/lib/duet/{p-0d0beb65.system.entry.js → p-0426e86f.system.entry.js} +1 -1
- package/lib/duet/{p-c7f47570.system.entry.js → p-06c01b8a.system.entry.js} +1 -1
- package/lib/duet/{p-3b31184e.js → p-07970d29.js} +0 -0
- package/lib/duet/{p-2a493a0e.system.entry.js → p-09e9e6e0.system.entry.js} +2 -2
- package/lib/duet/p-0aae8ebf.entry.js +4 -0
- package/lib/duet/{p-c6df2736.system.entry.js → p-0c519c1f.system.entry.js} +1 -1
- package/lib/duet/p-0d218007.entry.js +4 -0
- package/lib/duet/p-0d6723f5.entry.js +4 -0
- package/lib/duet/p-0e1a3c6d.entry.js +4 -0
- package/lib/duet/{p-f9d7e274.entry.js → p-0f8e4b6a.entry.js} +1 -1
- package/lib/duet/p-0fc0e90e.entry.js +4 -0
- package/lib/duet/{p-8d88fa17.system.entry.js → p-10b1ea3e.system.entry.js} +2 -2
- package/lib/duet/{p-651dcf55.entry.js → p-1184c37e.entry.js} +1 -1
- package/lib/duet/{p-9a47beb4.entry.js → p-11c58a6b.entry.js} +1 -1
- package/lib/duet/p-14cca806.entry.js +4 -0
- package/lib/duet/{p-199f6d43.system.entry.js → p-14e93ad6.system.entry.js} +1 -1
- package/lib/duet/{p-d90afed1.system.entry.js → p-16b61523.system.entry.js} +2 -2
- package/lib/duet/p-16cbd476.entry.js +4 -0
- package/lib/duet/{p-6db3d0a6.entry.js → p-1833941e.entry.js} +1 -1
- package/lib/duet/{p-2b8921d9.system.entry.js → p-1a45eddb.system.entry.js} +1 -1
- package/lib/duet/{p-2fc85d76.entry.js → p-1b63c3bf.entry.js} +1 -1
- package/lib/duet/p-1e442975.entry.js +4 -0
- package/lib/duet/{p-69a5e4b8.entry.js → p-27a1c897.entry.js} +1 -1
- package/lib/duet/{p-f8469405.entry.js → p-2c5b761d.entry.js} +1 -1
- package/lib/duet/{p-70b6f442.entry.js → p-2cbe5fe4.entry.js} +1 -1
- package/lib/duet/{p-ed9b4b98.system.entry.js → p-2f0f8b9e.system.entry.js} +2 -2
- package/lib/duet/{p-28bd21cc.system.entry.js → p-326d3440.system.entry.js} +1 -1
- package/lib/duet/{p-e260059f.system.entry.js → p-394efc25.system.entry.js} +1 -1
- package/lib/duet/{p-8cc1adec.system.entry.js → p-400f8e9d.system.entry.js} +2 -2
- package/lib/duet/{p-87f97244.system.entry.js → p-43750071.system.entry.js} +1 -1
- package/lib/duet/{p-b0c1475a.entry.js → p-45b0469f.entry.js} +1 -1
- package/lib/duet/p-4644616b.entry.js +4 -0
- package/lib/duet/{p-4cbce73e.entry.js → p-4c96e54d.entry.js} +1 -1
- package/lib/duet/{p-bd09268f.system.entry.js → p-4d1a5b9e.system.entry.js} +1 -1
- package/lib/duet/{p-3dbc8279.system.entry.js → p-4e2db855.system.entry.js} +1 -1
- package/lib/duet/{p-bfe342b1.system.entry.js → p-5214682e.system.entry.js} +1 -1
- package/lib/duet/{p-fb35b871.system.entry.js → p-575e4d53.system.entry.js} +1 -1
- package/lib/duet/{p-08366ae7.system.entry.js → p-58de4753.system.entry.js} +1 -1
- package/lib/duet/p-592bcdd4.entry.js +4 -0
- package/lib/duet/{p-865a8528.system.entry.js → p-5b00d0cf.system.entry.js} +1 -1
- package/lib/duet/p-5bffb89f.entry.js +4 -0
- package/lib/duet/{p-b8959b6f.entry.js → p-5e134670.entry.js} +1 -1
- package/lib/duet/p-60c70efa.entry.js +4 -0
- package/lib/duet/p-61f8dd7f.system.entry.js +4 -0
- package/lib/duet/{p-89f143a3.system.entry.js → p-63cb7308.system.entry.js} +1 -1
- package/lib/duet/p-696d99ff.system.entry.js +4 -0
- package/lib/duet/p-6999702a.js +5 -0
- package/lib/duet/p-6db0f8c0.entry.js +4 -0
- package/lib/duet/{p-37cb3159.system.entry.js → p-6f2e72e2.system.entry.js} +2 -2
- package/lib/duet/{p-b668b67c.system.js → p-73900354.system.js} +0 -0
- package/lib/duet/{p-325e4d06.system.entry.js → p-758c0528.system.entry.js} +2 -2
- package/lib/duet/{p-63b28fee.system.entry.js → p-79c8d35c.system.entry.js} +1 -1
- package/lib/duet/{p-1e8f0b15.entry.js → p-7ccf8ef9.entry.js} +1 -1
- package/lib/duet/{p-f71d7d3b.system.entry.js → p-7e67fedc.system.entry.js} +1 -1
- package/lib/duet/{p-f60a660e.system.entry.js → p-7fcbf80a.system.entry.js} +1 -1
- package/lib/duet/{p-d509251c.entry.js → p-81313736.entry.js} +1 -1
- package/lib/duet/{p-2dde5eda.entry.js → p-81e66ef1.entry.js} +1 -1
- package/lib/duet/{p-70473bcc.js → p-8512b463.js} +1 -1
- package/lib/duet/p-855f9e2a.system.entry.js +4 -0
- package/lib/duet/{p-2c9b4b54.entry.js → p-8681c6e0.entry.js} +1 -1
- package/lib/duet/p-89bf7be7.entry.js +4 -0
- package/lib/duet/{p-feec6a21.system.entry.js → p-8a47d599.system.entry.js} +1 -1
- package/lib/duet/{p-e0733d78.entry.js → p-8f6cf5d1.entry.js} +1 -1
- package/lib/duet/{p-01e4ad70.system.entry.js → p-90ea4509.system.entry.js} +2 -2
- package/lib/duet/p-9101f9ed.entry.js +4 -0
- package/lib/duet/{p-15f1db88.system.entry.js → p-914c3280.system.entry.js} +1 -1
- package/lib/duet/{p-c400d01c.system.entry.js → p-948d492d.system.entry.js} +2 -2
- package/lib/duet/{p-17210d14.system.entry.js → p-9a14ca19.system.entry.js} +1 -1
- package/lib/duet/{p-cfa9d7df.system.entry.js → p-9f60735a.system.entry.js} +1 -1
- package/lib/duet/p-a8d942ea.entry.js +4 -0
- package/lib/duet/{p-a0c38881.entry.js → p-ac4c233b.entry.js} +1 -1
- package/lib/duet/p-acea52f5.entry.js +4 -0
- package/lib/duet/{p-0840d514.system.entry.js → p-b180a4e2.system.entry.js} +1 -1
- package/lib/duet/{p-737f77f5.system.entry.js → p-b2688afc.system.entry.js} +1 -1
- package/lib/duet/p-b293c2ff.entry.js +4 -0
- package/lib/duet/{p-0c9c6b33.entry.js → p-b2c913ea.entry.js} +1 -1
- package/lib/duet/p-b3046425.entry.js +4 -0
- package/lib/duet/p-b5dc8a8f.system.entry.js +4 -0
- package/lib/duet/{p-162a19c4.system.entry.js → p-b821b721.system.entry.js} +1 -1
- package/lib/duet/p-bc2c1014.entry.js +4 -0
- package/lib/duet/{p-0de9cdff.system.entry.js → p-bcd4a927.system.entry.js} +1 -1
- package/lib/duet/p-c12ecca9.entry.js +4 -0
- package/lib/duet/p-c17cae49.entry.js +4 -0
- package/lib/duet/p-c2c48bb2.entry.js +4 -0
- package/lib/duet/{p-dd952c1a.system.entry.js → p-c3a0505e.system.entry.js} +1 -1
- package/lib/duet/{p-ea23276d.entry.js → p-c41bfab0.entry.js} +1 -1
- package/lib/duet/{p-08118dc1.entry.js → p-c4932f05.entry.js} +1 -1
- package/lib/duet/{p-f97c3b7c.entry.js → p-c5e54be9.entry.js} +1 -1
- package/lib/duet/p-cf11b05b.entry.js +4 -0
- package/lib/duet/{p-4c6f9fb6.system.entry.js → p-d0f1d25f.system.entry.js} +1 -1
- package/lib/duet/p-d16434dc.entry.js +4 -0
- package/lib/duet/{p-8aea5243.entry.js → p-d2ef832d.entry.js} +1 -1
- package/lib/duet/{p-d31ee0d6.system.js → p-d58991bc.system.js} +1 -1
- package/lib/duet/p-d971be46.entry.js +4 -0
- package/lib/duet/{p-ff46ec81.system.js → p-da0d4ee3.system.js} +0 -0
- package/lib/duet/p-da803459.entry.js +4 -0
- package/lib/duet/{p-06799688.system.entry.js → p-daa20c36.system.entry.js} +1 -1
- package/lib/duet/{p-e3e94989.entry.js → p-dbddb719.entry.js} +1 -1
- package/lib/duet/{p-abb8e55c.system.entry.js → p-dc18b76c.system.entry.js} +1 -1
- package/lib/duet/p-dc51f077.entry.js +4 -0
- package/lib/duet/{p-b3e9368c.system.entry.js → p-dd676f12.system.entry.js} +1 -1
- package/lib/duet/{p-cc2b0098.system.entry.js → p-dfcbf758.system.entry.js} +1 -1
- package/lib/duet/{p-d4c234ed.js → p-e2cd1c98.js} +0 -0
- package/lib/duet/{p-185aae73.system.entry.js → p-e621c31c.system.entry.js} +1 -1
- package/lib/duet/p-e71a6257.system.js +5 -0
- package/lib/duet/{p-14ff22af.system.entry.js → p-ea8e5649.system.entry.js} +2 -2
- package/lib/duet/{p-5b11d0bb.system.entry.js → p-ebc09697.system.entry.js} +1 -1
- package/lib/duet/{p-97dd0fb2.entry.js → p-ec635593.entry.js} +1 -1
- package/lib/duet/p-ef3f4213.entry.js +4 -0
- package/lib/duet/{p-66c5896b.system.entry.js → p-f01d234f.system.entry.js} +1 -1
- package/lib/duet/p-f150740b.entry.js +4 -0
- package/lib/duet/{p-d440608a.system.entry.js → p-f2bcb922.system.entry.js} +1 -1
- package/lib/duet/{p-d31cb05e.entry.js → p-f3d0d889.entry.js} +1 -1
- package/lib/duet/{p-9da8a731.system.entry.js → p-f6712ec8.system.entry.js} +1 -1
- package/lib/duet/{p-6cc95db3.system.entry.js → p-f678edf7.system.entry.js} +1 -1
- package/lib/duet/p-f7453c05.system.entry.js +4 -0
- package/lib/duet/{p-6aa6ec86.system.js → p-f9133dc5.system.js} +1 -1
- package/lib/duet/{p-532dff7f.system.entry.js → p-f9afad76.system.entry.js} +1 -1
- package/lib/esm/{dom-3dbcb0d8.js → dom-4d9c03f4.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +14 -77
- package/lib/esm/duet-alert.entry.js +10 -42
- package/lib/esm/duet-badge.entry.js +1 -10
- package/lib/esm/duet-breadcrumb.entry.js +2 -10
- package/lib/esm/duet-breadcrumbs.entry.js +2 -4
- package/lib/esm/duet-button_2.entry.js +30 -119
- package/lib/esm/duet-caption_4.entry.js +4 -78
- package/lib/esm/duet-card.entry.js +16 -55
- package/lib/esm/duet-checkbox.entry.js +21 -49
- package/lib/esm/duet-choice_2.entry.js +51 -152
- package/lib/esm/duet-collapsible.entry.js +8 -41
- package/lib/esm/duet-combobox.entry.js +26 -50
- package/lib/esm/duet-cookie-consent.entry.js +3 -9
- package/lib/esm/duet-date-picker.entry.js +37 -108
- package/lib/esm/duet-divider_2.entry.js +1 -17
- package/lib/esm/duet-editable-table_3.entry.js +163 -404
- package/lib/esm/duet-empty-state.entry.js +1 -10
- package/lib/esm/duet-fieldset.entry.js +7 -13
- package/lib/esm/duet-footer.entry.js +13 -42
- package/lib/esm/duet-grid_2.entry.js +3 -43
- package/lib/esm/duet-header_2.entry.js +56 -163
- package/lib/esm/duet-hero.entry.js +15 -90
- package/lib/esm/duet-icon.entry.js +4 -35
- package/lib/esm/duet-input_2.entry.js +41 -115
- package/lib/esm/duet-layout.entry.js +1 -24
- package/lib/esm/duet-list_2.entry.js +1 -23
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -10
- package/lib/esm/duet-menu-bar-dropdown.entry.js +4 -13
- package/lib/esm/duet-menu-bar-link.entry.js +1 -10
- package/lib/esm/duet-menu-bar-menu-dropdown-link.entry.js +1 -16
- package/lib/esm/duet-menu-bar-menu-dropdown.entry.js +4 -13
- package/lib/esm/duet-menu-bar-menu-link.entry.js +1 -13
- package/lib/esm/duet-menu-bar-menu.entry.js +4 -13
- package/lib/esm/duet-menu-bar.entry.js +3 -6
- package/lib/esm/duet-modal.entry.js +4 -59
- package/lib/esm/duet-multiselect.entry.js +18 -59
- package/lib/esm/duet-nav.entry.js +2 -5
- package/lib/esm/duet-notification_2.entry.js +15 -74
- package/lib/esm/duet-number-input.entry.js +53 -142
- package/lib/esm/duet-pagination_2.entry.js +51 -125
- package/lib/esm/duet-progress.entry.js +4 -26
- package/lib/esm/duet-radio_2.entry.js +36 -84
- package/lib/esm/duet-range-slider.entry.js +21 -62
- package/lib/esm/duet-scrollable_3.entry.js +25 -88
- package/lib/esm/duet-section-layout.entry.js +1 -7
- package/lib/esm/duet-select.entry.js +25 -65
- package/lib/esm/duet-step_2.entry.js +8 -34
- package/lib/esm/duet-textarea.entry.js +31 -79
- package/lib/esm/duet-toggle.entry.js +15 -38
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -13
- package/lib/esm/duet-toolbar-dropdown.entry.js +5 -17
- package/lib/esm/duet-toolbar-link.entry.js +1 -13
- package/lib/esm/duet-toolbar.entry.js +1 -4
- package/lib/esm/duet-tooltip.entry.js +25 -78
- package/lib/esm/duet-tray.entry.js +11 -53
- package/lib/esm/duet-upload-aria-status.entry.js +8 -29
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{focus-utils-9787b47f.js → focus-utils-abaea1e6.js} +1 -1
- package/lib/esm/{index-8469ee1a.js → index-4df60498.js} +1438 -1235
- package/lib/esm/loader.js +3 -3
- package/lib/esm/polyfills/css-shim.js +1 -1
- package/lib/{dist-custom-elements/p-d4c234ed.js → esm/shadow-css-a011f1fe.js} +1 -1
- package/lib/esm-es5/{dom-3dbcb0d8.js → dom-4d9c03f4.js} +0 -0
- 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 +2 -2
- package/lib/esm-es5/duet-button_2.entry.js +2 -2
- 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 +2 -2
- package/lib/esm-es5/duet-choice_2.entry.js +2 -2
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/lib/esm-es5/duet-grid_2.entry.js +2 -2
- package/lib/esm-es5/duet-header_2.entry.js +2 -2
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +2 -2
- 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-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-menu-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-menu-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-menu-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-menu.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +2 -2
- package/lib/esm-es5/duet-multiselect.entry.js +1 -1
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.entry.js +2 -2
- package/lib/esm-es5/duet-pagination_2.entry.js +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 +2 -2
- package/lib/esm-es5/duet-section-layout.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +2 -2
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +2 -2
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.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-abaea1e6.js +4 -0
- package/lib/esm-es5/index-4df60498.js +5 -0
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{shadow-css-501eda9a.js → shadow-css-a011f1fe.js} +0 -0
- package/lib/loader/package.json +1 -0
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +1 -2
- package/lib/types/stencil-public-runtime.d.ts +20 -4
- package/package.json +8 -11
- package/lib/duet/p-096f20dc.js +0 -5
- package/lib/duet/p-186f5c04.entry.js +0 -4
- package/lib/duet/p-1a48148d.entry.js +0 -4
- package/lib/duet/p-1a6a0dc6.entry.js +0 -4
- package/lib/duet/p-1f224365.entry.js +0 -4
- package/lib/duet/p-2b2e62d6.entry.js +0 -4
- package/lib/duet/p-2e356385.entry.js +0 -4
- package/lib/duet/p-400766d6.entry.js +0 -4
- package/lib/duet/p-410af698.entry.js +0 -4
- package/lib/duet/p-487f2417.system.entry.js +0 -4
- package/lib/duet/p-5f15acee.system.entry.js +0 -4
- package/lib/duet/p-6d7416bc.entry.js +0 -4
- package/lib/duet/p-71f7a269.entry.js +0 -4
- package/lib/duet/p-74c4587a.system.entry.js +0 -4
- package/lib/duet/p-779adc11.system.entry.js +0 -4
- package/lib/duet/p-7b1ed7b7.entry.js +0 -4
- package/lib/duet/p-7c527761.entry.js +0 -4
- package/lib/duet/p-82ed2eea.entry.js +0 -4
- package/lib/duet/p-8b328e9d.entry.js +0 -4
- package/lib/duet/p-90f9c2b6.entry.js +0 -4
- package/lib/duet/p-92c0d1a1.entry.js +0 -4
- package/lib/duet/p-9c8cd6d0.system.entry.js +0 -4
- package/lib/duet/p-9db96010.entry.js +0 -4
- package/lib/duet/p-a1191c7c.entry.js +0 -4
- package/lib/duet/p-a27830b0.entry.js +0 -4
- package/lib/duet/p-b0d7a24e.entry.js +0 -4
- package/lib/duet/p-b3237285.entry.js +0 -4
- package/lib/duet/p-bc2b6d90.entry.js +0 -4
- package/lib/duet/p-bd1ca1bf.entry.js +0 -4
- package/lib/duet/p-c634ea77.entry.js +0 -4
- package/lib/duet/p-c686bbb6.entry.js +0 -4
- package/lib/duet/p-cfee81ae.system.js +0 -5
- package/lib/duet/p-d1eeb040.entry.js +0 -4
- package/lib/duet/p-d35bb3c7.entry.js +0 -4
- package/lib/duet/p-e6162450.entry.js +0 -4
- package/lib/duet/p-ed0e37f0.entry.js +0 -4
- package/lib/duet/p-f5863365.entry.js +0 -4
- package/lib/duet/p-fcb2e0dc.entry.js +0 -4
- package/lib/esm-es5/focus-utils-9787b47f.js +0 -4
- package/lib/esm-es5/index-8469ee1a.js +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-4df60498.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { i as isKeyboardClick } from './keyboard-utils-88ea1007.js';
|
|
@@ -18,60 +18,6 @@ const DuetCard = class {
|
|
|
18
18
|
registerInstance(this, hostRef);
|
|
19
19
|
this.duetToggle = createEvent(this, "duetToggle", 7);
|
|
20
20
|
this.cardId = createID("DuetCard");
|
|
21
|
-
/**
|
|
22
|
-
* The content for the card heading. If empty, both heading and collapse
|
|
23
|
-
* functionality will be hidden.
|
|
24
|
-
*/
|
|
25
|
-
this.heading = "";
|
|
26
|
-
/**
|
|
27
|
-
* Additional content for the card heading. If empty, both heading and collapse
|
|
28
|
-
* functionality will be hidden.
|
|
29
|
-
*/
|
|
30
|
-
this.secondaryHeading = "";
|
|
31
|
-
/**
|
|
32
|
-
* Style variation of the card.
|
|
33
|
-
*/
|
|
34
|
-
this.variation = "default";
|
|
35
|
-
/**
|
|
36
|
-
* Makes the card expand and collapse when the collapse/expand arrow in the
|
|
37
|
-
* heading is clicked or tapped. This option only works together with the
|
|
38
|
-
* heading option, meaning that you also need to set the heading for this
|
|
39
|
-
* functionality to show up.
|
|
40
|
-
*/
|
|
41
|
-
this.collapsible = false;
|
|
42
|
-
/**
|
|
43
|
-
* If the card is collapsible, this property controls whether the card is open or closed.
|
|
44
|
-
*/
|
|
45
|
-
this.open = true;
|
|
46
|
-
/**
|
|
47
|
-
* The actual heading level used for the heading in html markup. This setting
|
|
48
|
-
* exists for accessibility reasons. It doesn’t change the style visually.
|
|
49
|
-
*/
|
|
50
|
-
this.headingLevel = "h2";
|
|
51
|
-
/**
|
|
52
|
-
* Custom color to be used for the card background, as a design token entered in
|
|
53
|
-
* camelCase or kebab-case. Example: "primary".
|
|
54
|
-
*/
|
|
55
|
-
this.background = "gray-lightest";
|
|
56
|
-
/**
|
|
57
|
-
* The padding for the card. Please note that the card padding values don’t directly
|
|
58
|
-
* translate to similar space token names, but instead the card uses it’s own
|
|
59
|
-
* derived defaults.
|
|
60
|
-
*/
|
|
61
|
-
this.padding = "small";
|
|
62
|
-
/**
|
|
63
|
-
* Controls the margin of the component.
|
|
64
|
-
*/
|
|
65
|
-
this.margin = "auto";
|
|
66
|
-
/**
|
|
67
|
-
* Theme of the card.
|
|
68
|
-
*/
|
|
69
|
-
this.theme = "";
|
|
70
|
-
/**
|
|
71
|
-
* Breakpoint used to remove shadow around card. These match to
|
|
72
|
-
* similar media query tokens: $media-query-small and $media-query-medium.
|
|
73
|
-
*/
|
|
74
|
-
this.shadowBreakpoint = undefined;
|
|
75
21
|
/**
|
|
76
22
|
* Local methods.
|
|
77
23
|
*/
|
|
@@ -88,6 +34,21 @@ const DuetCard = class {
|
|
|
88
34
|
this.togglePanel(e);
|
|
89
35
|
}
|
|
90
36
|
};
|
|
37
|
+
this.accessibleLabel = undefined;
|
|
38
|
+
this.heading = "";
|
|
39
|
+
this.secondaryHeading = "";
|
|
40
|
+
this.variation = "default";
|
|
41
|
+
this.collapsible = false;
|
|
42
|
+
this.open = true;
|
|
43
|
+
this.headingLevel = "h2";
|
|
44
|
+
this.icon = undefined;
|
|
45
|
+
this.image = undefined;
|
|
46
|
+
this.background = "gray-lightest";
|
|
47
|
+
this.padding = "small";
|
|
48
|
+
this.margin = "auto";
|
|
49
|
+
this.theme = "";
|
|
50
|
+
this.url = undefined;
|
|
51
|
+
this.shadowBreakpoint = undefined;
|
|
91
52
|
}
|
|
92
53
|
/**
|
|
93
54
|
* Component lifecycle events.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4df60498.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
|
|
@@ -17,54 +17,6 @@ const DuetCheckbox = class {
|
|
|
17
17
|
* Own Properties.
|
|
18
18
|
*/
|
|
19
19
|
this.checkboxId = createID("DuetCheckbox");
|
|
20
|
-
/**
|
|
21
|
-
* Controls the margin of the component.
|
|
22
|
-
*/
|
|
23
|
-
this.margin = "auto";
|
|
24
|
-
/**
|
|
25
|
-
* Aria Details of the component
|
|
26
|
-
*/
|
|
27
|
-
this.accessibleDetails = undefined;
|
|
28
|
-
/**
|
|
29
|
-
* String of id's that indicate alternative labels elements
|
|
30
|
-
*/
|
|
31
|
-
this.accessibleLabelledBy = undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Aria description the button
|
|
34
|
-
*/
|
|
35
|
-
this.accessibleDescription = undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Aria selected
|
|
38
|
-
*/
|
|
39
|
-
this.accessibleSelected = undefined;
|
|
40
|
-
/**
|
|
41
|
-
* Set whether the input is required or not. Please note that this is required for
|
|
42
|
-
* accessible inputs when the user is required to fill them. When using this property
|
|
43
|
-
* you need to also set “novalidate” attribute to your form element to prevent
|
|
44
|
-
* browser from displaying its own validation errors.
|
|
45
|
-
*/
|
|
46
|
-
this.required = false;
|
|
47
|
-
/**
|
|
48
|
-
* Theme of the checkbox.
|
|
49
|
-
*/
|
|
50
|
-
this.theme = "";
|
|
51
|
-
/**
|
|
52
|
-
* Makes the checkbox component disabled. This prevents users from being able to
|
|
53
|
-
* interact with the checkbox, and conveys its inactive state to assistive technologies.
|
|
54
|
-
*/
|
|
55
|
-
this.disabled = false;
|
|
56
|
-
/**
|
|
57
|
-
* Label for the checkbox
|
|
58
|
-
*/
|
|
59
|
-
this.label = "label";
|
|
60
|
-
/**
|
|
61
|
-
* Visually hide the label, but still show it to screen readers.
|
|
62
|
-
*/
|
|
63
|
-
this.labelHidden = false;
|
|
64
|
-
/**
|
|
65
|
-
* Check state of the checkbox.
|
|
66
|
-
*/
|
|
67
|
-
this.checked = false;
|
|
68
20
|
/**
|
|
69
21
|
* Component event handling.
|
|
70
22
|
*/
|
|
@@ -93,6 +45,26 @@ const DuetCheckbox = class {
|
|
|
93
45
|
component: "duet-checkbox",
|
|
94
46
|
});
|
|
95
47
|
};
|
|
48
|
+
this.accessibleActiveDescendant = undefined;
|
|
49
|
+
this.margin = "auto";
|
|
50
|
+
this.accessibleControls = undefined;
|
|
51
|
+
this.accessibleIndex = undefined;
|
|
52
|
+
this.accessibleOwns = undefined;
|
|
53
|
+
this.accessibleDescribedBy = undefined;
|
|
54
|
+
this.accessibleDetails = undefined;
|
|
55
|
+
this.accessibleLabelledBy = undefined;
|
|
56
|
+
this.accessibleDescription = undefined;
|
|
57
|
+
this.accessibleSelected = undefined;
|
|
58
|
+
this.required = false;
|
|
59
|
+
this.theme = "";
|
|
60
|
+
this.disabled = false;
|
|
61
|
+
this.identifier = undefined;
|
|
62
|
+
this.label = "label";
|
|
63
|
+
this.labelHidden = false;
|
|
64
|
+
this.name = undefined;
|
|
65
|
+
this.role = undefined;
|
|
66
|
+
this.checked = false;
|
|
67
|
+
this.value = undefined;
|
|
96
68
|
}
|
|
97
69
|
/**
|
|
98
70
|
* Component lifecycle events.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4df60498.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { D as DuetStringsExternalDefaults } from './common-strings-97e04e4b.js';
|
|
7
7
|
import { c as createID } from './create-id-981107da.js';
|
|
8
|
-
import { F as FocusGuard } from './focus-utils-
|
|
8
|
+
import { F as FocusGuard } from './focus-utils-abaea1e6.js';
|
|
9
9
|
import { i as isKeyboardClick, h as isQuestionKey, f as isEscapeKey } from './keyboard-utils-88ea1007.js';
|
|
10
10
|
import { g as getLocaleString, a as getLanguage } from './language-utils-bf701d37.js';
|
|
11
11
|
import { f as findCheckedOption, w as watchForOptions } from './watch-options-dd55bce8.js';
|
|
@@ -26,113 +26,6 @@ const DuetChoice = class {
|
|
|
26
26
|
this.expandId = createID("DuetChoiceExpand");
|
|
27
27
|
this.headerId = createID("DuetChoiceHeader");
|
|
28
28
|
this.infoButtonId = createID("DuetChoiceInfoButton");
|
|
29
|
-
/**
|
|
30
|
-
* State() variables
|
|
31
|
-
* Inlined decorator, alphabetical order.
|
|
32
|
-
*/
|
|
33
|
-
this.isHovering = false;
|
|
34
|
-
this.isInfoOpen = false;
|
|
35
|
-
this.isBlurred = false;
|
|
36
|
-
/**
|
|
37
|
-
* Theme of the choice.
|
|
38
|
-
*/
|
|
39
|
-
this.theme = "";
|
|
40
|
-
/**
|
|
41
|
-
* Label for the choice button.
|
|
42
|
-
*/
|
|
43
|
-
this.label = "label";
|
|
44
|
-
/**
|
|
45
|
-
* Property to change accessibleLabelInfoButton defaults on the component.
|
|
46
|
-
* normally you would handle these strings on an application level and override @accessibleLabelInfoButton when needed
|
|
47
|
-
*/
|
|
48
|
-
this.accessibleLabelInfoButtonDefaults = DuetStringsExternalDefaults;
|
|
49
|
-
/**
|
|
50
|
-
* Accessible label that is read for screen reader users in the info toggle trigger button.
|
|
51
|
-
* Not visible for normal users.
|
|
52
|
-
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
53
|
-
*/
|
|
54
|
-
this.accessibleLabelInfoButton = getLocaleString(this.accessibleLabelInfoButtonDefaults);
|
|
55
|
-
/**
|
|
56
|
-
* Aria Details of the component
|
|
57
|
-
*/
|
|
58
|
-
this.accessibleDetails = undefined;
|
|
59
|
-
/**
|
|
60
|
-
* String of id's that indicate alternative labels elements
|
|
61
|
-
*/
|
|
62
|
-
this.accessibleLabelledBy = undefined;
|
|
63
|
-
/**
|
|
64
|
-
* Aria description the button
|
|
65
|
-
*/
|
|
66
|
-
this.accessibleDescription = undefined;
|
|
67
|
-
/**
|
|
68
|
-
* Additional caption to show inside the label of the choice button.
|
|
69
|
-
*/
|
|
70
|
-
this.caption = "";
|
|
71
|
-
/**
|
|
72
|
-
* Type of the choice button. You can set the type of the choice to be either
|
|
73
|
-
* “radio” or “checkbox”. Depending on this selection we convey the selection
|
|
74
|
-
* type to assistive technologies as well. When type “radio” is chosen it is
|
|
75
|
-
* required to place the choices inside Choice Group component.
|
|
76
|
-
*/
|
|
77
|
-
this.type = "checkbox";
|
|
78
|
-
/**
|
|
79
|
-
* Checked state of the choice button.
|
|
80
|
-
*/
|
|
81
|
-
this.checked = false;
|
|
82
|
-
/**
|
|
83
|
-
* Makes the choice button open a new section underneath it when clicked or
|
|
84
|
-
* tapped. This new section can be used to show more options related to this
|
|
85
|
-
* choice. Please note that this feature can’t be used together with the "info"
|
|
86
|
-
* functionality and that it only accepts plain dom nodes (no shadow dom elements
|
|
87
|
-
* such as duet-paragraph can be used as this will break accessibility)
|
|
88
|
-
*/
|
|
89
|
-
this.collapsible = false;
|
|
90
|
-
/**
|
|
91
|
-
* Controls the margin of the component.
|
|
92
|
-
*/
|
|
93
|
-
this.margin = "auto";
|
|
94
|
-
/**
|
|
95
|
-
* Icon to display to the left of the choice button label.
|
|
96
|
-
*/
|
|
97
|
-
this.icon = "";
|
|
98
|
-
/**
|
|
99
|
-
* Expands the choice button to fill 100% of the container width.
|
|
100
|
-
*/
|
|
101
|
-
this.expand = false;
|
|
102
|
-
/**
|
|
103
|
-
* Controls the padding of the component.
|
|
104
|
-
*/
|
|
105
|
-
this.padding = "auto";
|
|
106
|
-
/**
|
|
107
|
-
* Makes the choice component disabled. This prevents users from being able to
|
|
108
|
-
* interact with the choice, and conveys its inactive state to assistive technologies.
|
|
109
|
-
*/
|
|
110
|
-
this.disabled = false;
|
|
111
|
-
/**
|
|
112
|
-
* Set whether the input is required or not. Please note that this is necessary for
|
|
113
|
-
* accessible inputs when the user is required to fill them. When using this property
|
|
114
|
-
* you need to also set “novalidate” attribute to your form element to prevent
|
|
115
|
-
* browser from displaying its own validation errors.
|
|
116
|
-
*/
|
|
117
|
-
this.required = false;
|
|
118
|
-
/**
|
|
119
|
-
* Placeholder defaults
|
|
120
|
-
* @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
|
|
121
|
-
*/
|
|
122
|
-
this.infoLabelDefaults = {
|
|
123
|
-
fi: "Lisätietoja",
|
|
124
|
-
en: "More information about",
|
|
125
|
-
sv: "Mera information om",
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* Hint text to display before the user types into the date picker input.
|
|
129
|
-
* @default {
|
|
130
|
-
* fi: "Lisätietoja",
|
|
131
|
-
* en: "More information about",
|
|
132
|
-
* sv: "Mera information om",
|
|
133
|
-
* }
|
|
134
|
-
*/
|
|
135
|
-
this.infoLabel = getLocaleString(this.infoLabelDefaults, getLanguage());
|
|
136
29
|
this.onMouseEnter = () => {
|
|
137
30
|
this.isHovering = true;
|
|
138
31
|
};
|
|
@@ -200,6 +93,42 @@ const DuetChoice = class {
|
|
|
200
93
|
this.toggleInfo = () => {
|
|
201
94
|
this.isInfoOpen = !this.isInfoOpen;
|
|
202
95
|
};
|
|
96
|
+
this.isHovering = false;
|
|
97
|
+
this.isInfoOpen = false;
|
|
98
|
+
this.isBlurred = false;
|
|
99
|
+
this.theme = "";
|
|
100
|
+
this.label = "label";
|
|
101
|
+
this.accessibleLabelInfoButtonDefaults = DuetStringsExternalDefaults;
|
|
102
|
+
this.accessibleLabelInfoButton = getLocaleString(this.accessibleLabelInfoButtonDefaults);
|
|
103
|
+
this.accessibleActiveDescendant = undefined;
|
|
104
|
+
this.accessibleControls = undefined;
|
|
105
|
+
this.accessibleOwns = undefined;
|
|
106
|
+
this.accessibleDescribedBy = undefined;
|
|
107
|
+
this.accessibleDetails = undefined;
|
|
108
|
+
this.accessibleLabelledBy = undefined;
|
|
109
|
+
this.accessibleDescription = undefined;
|
|
110
|
+
this.caption = "";
|
|
111
|
+
this.value = undefined;
|
|
112
|
+
this.type = "checkbox";
|
|
113
|
+
this.name = undefined;
|
|
114
|
+
this.checked = false;
|
|
115
|
+
this.collapsible = false;
|
|
116
|
+
this.margin = "auto";
|
|
117
|
+
this.icon = "";
|
|
118
|
+
this.expand = false;
|
|
119
|
+
this.padding = "auto";
|
|
120
|
+
this.identifier = undefined;
|
|
121
|
+
this.groupDirection = undefined;
|
|
122
|
+
this.groupDisabled = undefined;
|
|
123
|
+
this.groupResponsive = undefined;
|
|
124
|
+
this.disabled = false;
|
|
125
|
+
this.required = false;
|
|
126
|
+
this.infoLabelDefaults = {
|
|
127
|
+
fi: "Lisätietoja",
|
|
128
|
+
en: "More information about",
|
|
129
|
+
sv: "Mera information om",
|
|
130
|
+
};
|
|
131
|
+
this.infoLabel = getLocaleString(this.infoLabelDefaults, getLanguage());
|
|
203
132
|
}
|
|
204
133
|
/**
|
|
205
134
|
* Component lifecycle events.
|
|
@@ -321,49 +250,6 @@ const DuetChoiceGroup = class {
|
|
|
321
250
|
constructor(hostRef) {
|
|
322
251
|
registerInstance(this, hostRef);
|
|
323
252
|
this.choiceGroupName = "duet-choice-group";
|
|
324
|
-
/**
|
|
325
|
-
* Direction of the choice group.
|
|
326
|
-
*/
|
|
327
|
-
this.direction = "vertical";
|
|
328
|
-
/**
|
|
329
|
-
* Controls the margin of the component.
|
|
330
|
-
*/
|
|
331
|
-
this.margin = "auto";
|
|
332
|
-
/**
|
|
333
|
-
* Theme of the choice group.
|
|
334
|
-
*/
|
|
335
|
-
this.theme = "";
|
|
336
|
-
/**
|
|
337
|
-
* Display choice group in error state along with an error message.
|
|
338
|
-
*/
|
|
339
|
-
this.error = "";
|
|
340
|
-
/**
|
|
341
|
-
* Legend displayed for the choice buttons in this group.
|
|
342
|
-
*/
|
|
343
|
-
this.label = "Label";
|
|
344
|
-
/**
|
|
345
|
-
* Visually hide the label, but still show it to screen readers.
|
|
346
|
-
*/
|
|
347
|
-
this.labelHidden = false;
|
|
348
|
-
/**
|
|
349
|
-
* Additional caption to show inside the label of the choice group.
|
|
350
|
-
*/
|
|
351
|
-
this.caption = undefined;
|
|
352
|
-
/**
|
|
353
|
-
* Tooltip to display next to the label of the choice group.
|
|
354
|
-
*/
|
|
355
|
-
this.tooltip = undefined;
|
|
356
|
-
/**
|
|
357
|
-
* With direction setting you can force the tooltip to always open towards left
|
|
358
|
-
* or right instead of automatically determining the direction.
|
|
359
|
-
*/
|
|
360
|
-
this.tooltipDirection = "auto";
|
|
361
|
-
/**
|
|
362
|
-
* Enable or disable the automatic responsive behaviour of the choice group
|
|
363
|
-
* component when horizontal setting is used. Setting this option to "true"
|
|
364
|
-
* makes sure that contents are stacked vertically on mobile.
|
|
365
|
-
*/
|
|
366
|
-
this.responsive = false;
|
|
367
253
|
this.getChoices = () => {
|
|
368
254
|
return Array.from(this.element.querySelectorAll(duetChoiceSelector));
|
|
369
255
|
};
|
|
@@ -385,6 +271,19 @@ const DuetChoiceGroup = class {
|
|
|
385
271
|
// this group is a sub-group of another choice group.
|
|
386
272
|
ev.cancelBubble = true;
|
|
387
273
|
};
|
|
274
|
+
this.direction = "vertical";
|
|
275
|
+
this.margin = "auto";
|
|
276
|
+
this.theme = "";
|
|
277
|
+
this.error = "";
|
|
278
|
+
this.name = undefined;
|
|
279
|
+
this.label = "Label";
|
|
280
|
+
this.labelHidden = false;
|
|
281
|
+
this.caption = undefined;
|
|
282
|
+
this.tooltip = undefined;
|
|
283
|
+
this.tooltipDirection = "auto";
|
|
284
|
+
this.responsive = false;
|
|
285
|
+
this.value = undefined;
|
|
286
|
+
this.disabled = undefined;
|
|
388
287
|
}
|
|
389
288
|
/**
|
|
390
289
|
* Component lifecycle events.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4df60498.js';
|
|
5
5
|
import { a as actionArrowDownSmall } from './action-arrow-down-small-82273dc8.js';
|
|
6
6
|
import { f as font_size_medium, t as tokens } from './tokens-0963dc8b.js';
|
|
7
7
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
@@ -16,46 +16,6 @@ const DuetCollapsible = class {
|
|
|
16
16
|
registerInstance(this, hostRef);
|
|
17
17
|
this.duetToggle = createEvent(this, "duetToggle", 7);
|
|
18
18
|
this.id = createID("DuetCollapsible");
|
|
19
|
-
/**
|
|
20
|
-
* Theme of the collapsible.
|
|
21
|
-
*/
|
|
22
|
-
this.theme = "";
|
|
23
|
-
/**
|
|
24
|
-
* The content for the collapsible heading.
|
|
25
|
-
*/
|
|
26
|
-
this.heading = "";
|
|
27
|
-
/**
|
|
28
|
-
* The font weight of the heading
|
|
29
|
-
*/
|
|
30
|
-
this.headingWeight = "semibold";
|
|
31
|
-
/**
|
|
32
|
-
* Custom headingSize to be used for font size of heading, as a design token entered
|
|
33
|
-
* in kebab-case x-small -> font-size-x-small.
|
|
34
|
-
* Example:
|
|
35
|
-
* # 12px (0.75rem) ------ +2px (x-small)
|
|
36
|
-
* # 14px (0.875rem) ------ +2px (small)
|
|
37
|
-
* # 16px (1rem) ------ +2px (medium)
|
|
38
|
-
* # 20px (1.25rem) ------ +4px (large)
|
|
39
|
-
* # 24px (1.5rem) ------ +4px (x-large)
|
|
40
|
-
* # 36px (2.25rem) ------ +12px (xx-large)
|
|
41
|
-
* # 48px (3rem) ------ +12px (xxx-large)
|
|
42
|
-
* # 72px (4.5rem) ------ +24px (xxxx-large)
|
|
43
|
-
*/
|
|
44
|
-
this.headingSize = undefined;
|
|
45
|
-
/**
|
|
46
|
-
* The actual heading level used for the heading in html markup. This setting
|
|
47
|
-
* exists for accessibility reasons. It doesn’t change the style visually.
|
|
48
|
-
* only variations of h1-h6 area accepted
|
|
49
|
-
*/
|
|
50
|
-
this.headingLevel = undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Controls the margin of the component.
|
|
53
|
-
*/
|
|
54
|
-
this.margin = "auto";
|
|
55
|
-
/**
|
|
56
|
-
* Is the component expanded or collapsed.
|
|
57
|
-
*/
|
|
58
|
-
this.open = false;
|
|
59
19
|
this.handleKeyDown = (e) => {
|
|
60
20
|
if (isKeyboardClick(e)) {
|
|
61
21
|
this.handleClick(e);
|
|
@@ -102,6 +62,13 @@ const DuetCollapsible = class {
|
|
|
102
62
|
originalEvent: e,
|
|
103
63
|
});
|
|
104
64
|
};
|
|
65
|
+
this.theme = "";
|
|
66
|
+
this.heading = "";
|
|
67
|
+
this.headingWeight = "semibold";
|
|
68
|
+
this.headingSize = undefined;
|
|
69
|
+
this.headingLevel = undefined;
|
|
70
|
+
this.margin = "auto";
|
|
71
|
+
this.open = false;
|
|
105
72
|
}
|
|
106
73
|
/**
|
|
107
74
|
* Component lifecycle events.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { h, F as Fragment, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
4
|
+
import { h, F as Fragment, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-4df60498.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { d as debounce } from './js-utils-fa98b8cd.js';
|
|
7
7
|
import { n as isEnterKey, f as isEscapeKey, o as isTabKey, b as isArrowUpKey, c as isArrowDownKey } from './keyboard-utils-88ea1007.js';
|
|
@@ -32,16 +32,12 @@ const DuetComboBoxSelect = ({ item, active, total, selected, label = undefined,
|
|
|
32
32
|
h(SelectSingle, { item: item, search: search, selected: selected }))));
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
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);
|
|
35
|
+
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}.sc-duet-combobox-h a.sc-duet-combobox{color:#00294d;transition:none}.duet-theme-turva.sc-duet-combobox-h{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#171c3a}.duet-theme-turva.sc-duet-combobox-h a.sc-duet-combobox{color:#171c3a}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.sc-duet-combobox .option-tags.sc-duet-combobox{color:#747475}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.selected.sc-duet-combobox{background:#f4cfd6}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover{color:white;background:#c60c30}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox .option-tags.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus .option-tags.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover .option-tags.sc-duet-combobox{color:white}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox a.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus a.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover a.sc-duet-combobox{color:white}.duet-combobox-list.sc-duet-combobox{position:absolute;top:calc(100% - 12px);height:0;overflow:hidden;background:white;border-radius:0 4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.1);opacity:0}.duet-combobox-list.open.sc-duet-combobox{z-index:700;display:block;height:auto;opacity:1}.duet-combobox-list.sc-duet-combobox .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 .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox{padding:4px 0}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:not(.selected){padding-left:16px}.duet-combobox-list.sc-duet-combobox .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 .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 .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 .duet-combobox-listbox.sc-duet-combobox .list-item.option-link.sc-duet-combobox{display:block;width:100%}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.selected.sc-duet-combobox{padding-left:0;background:#cde5f1}.duet-combobox-list.sc-duet-combobox .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 .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 .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover{color:white;background:#0077b3}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox .option-tags.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus .option-tags.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover .option-tags.sc-duet-combobox{color:white}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox a.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus a.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover a.sc-duet-combobox{color:white}";
|
|
36
36
|
|
|
37
37
|
const DuetCombobox = class {
|
|
38
38
|
constructor(hostRef) {
|
|
39
39
|
registerInstance(this, hostRef);
|
|
40
40
|
this.duetChange = createEvent(this, "duetChange", 3);
|
|
41
|
-
// Safari doesnt properly support aria-activedecendatn, the code associated with this bool is a workaround for that,
|
|
42
|
-
// this should be removed when Safari fixes the issue
|
|
43
|
-
// 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
|
|
44
|
-
this.isSafari = false;
|
|
45
41
|
this.resizeObserver = new ResizeObserver(debounce(entries => {
|
|
46
42
|
var _a, _b;
|
|
47
43
|
// otherwise, something is wrong, expecting 1 element only
|
|
@@ -56,14 +52,8 @@ const DuetCombobox = class {
|
|
|
56
52
|
this.inputValue = "";
|
|
57
53
|
this.selectionMsg = "";
|
|
58
54
|
this.listOpen = false;
|
|
59
|
-
// the selected item is based upon the DuetComboboxItem.id value
|
|
60
55
|
this.selectedItems = new Set();
|
|
61
|
-
// the activeItem number is based upon the array.index of the array stored in processedItems
|
|
62
56
|
this.activeItem = undefined;
|
|
63
|
-
/**
|
|
64
|
-
* Placeholder defaults
|
|
65
|
-
* @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
|
|
66
|
-
*/
|
|
67
57
|
this.accessibleLabelDefaults = {
|
|
68
58
|
en: {
|
|
69
59
|
heading: "Select:",
|
|
@@ -81,29 +71,12 @@ const DuetCombobox = class {
|
|
|
81
71
|
itemFiltered: "{name}, ({current} av {total}, {hiddenItems} filtrerade)",
|
|
82
72
|
},
|
|
83
73
|
};
|
|
84
|
-
/**
|
|
85
|
-
* Hint text to display before the user types into the date picker input.
|
|
86
|
-
* @default {
|
|
87
|
-
* heading: "Valitse:",
|
|
88
|
-
* item: "{0}, ({1}/{2})",
|
|
89
|
-
* itemFiltered: "{0}, ({1}/{2} - {3} suodatettu"
|
|
90
|
-
* }
|
|
91
|
-
*/
|
|
92
74
|
this.accessibleLabels = getLocaleString(parsePossibleJSON(this.accessibleLabelDefaults), getLanguage());
|
|
93
|
-
/**
|
|
94
|
-
* Theme of the combobox.
|
|
95
|
-
*/
|
|
96
75
|
this.theme = "";
|
|
97
|
-
/**
|
|
98
|
-
* Force the user to make a selection (typing things in the input field will only be used for list search)
|
|
99
|
-
*/
|
|
100
76
|
this.force = false;
|
|
101
|
-
|
|
102
|
-
* A hook to overwrite how the values are displayed in the input field after a User select an item
|
|
103
|
-
* @example (item) => `${item.name} (${item.value})`
|
|
104
|
-
* @default undefined
|
|
105
|
-
*/
|
|
77
|
+
this.items = undefined;
|
|
106
78
|
this.formatter = (item) => item && item.name ? item.name : "";
|
|
79
|
+
this.value = undefined;
|
|
107
80
|
}
|
|
108
81
|
activeItemHandler(state) {
|
|
109
82
|
this.input.accessibleActiveDescendant = this.listOpen && (state || state === 0) ? `active_item` : "";
|
|
@@ -131,9 +104,6 @@ const DuetCombobox = class {
|
|
|
131
104
|
inheritGlobalTheme(this);
|
|
132
105
|
}
|
|
133
106
|
connectedCallback() {
|
|
134
|
-
if (/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
|
|
135
|
-
this.isSafari = true;
|
|
136
|
-
}
|
|
137
107
|
this.items = this.processedItems = parsePossibleJSON(this.items);
|
|
138
108
|
this.input = this.element.querySelector("duet-input");
|
|
139
109
|
this.input.addEventListener("duetChange", this.updateInputValue.bind(this));
|
|
@@ -230,7 +200,7 @@ const DuetCombobox = class {
|
|
|
230
200
|
component: "duet-combobox",
|
|
231
201
|
});
|
|
232
202
|
}
|
|
233
|
-
|
|
203
|
+
if (isBlurred && this.selectedItems.size === 0) {
|
|
234
204
|
//if nothing is selected and a user clicks outside, we want the input field to clearly illustrate that nothing was selected
|
|
235
205
|
if (this.force) {
|
|
236
206
|
this.inputValue = "";
|
|
@@ -253,6 +223,7 @@ const DuetCombobox = class {
|
|
|
253
223
|
if (isEnterKey(e)) {
|
|
254
224
|
e.preventDefault();
|
|
255
225
|
this.selectActiveItem();
|
|
226
|
+
this.updateInputText(false);
|
|
256
227
|
this.listOpen = false;
|
|
257
228
|
return;
|
|
258
229
|
}
|
|
@@ -306,7 +277,7 @@ const DuetCombobox = class {
|
|
|
306
277
|
return;
|
|
307
278
|
}
|
|
308
279
|
const item = items[this.activeItem];
|
|
309
|
-
this.selectionMsg = this.formatLabel(item, items.length, this.items.length);
|
|
280
|
+
this.selectionMsg = structuredClone(this.formatLabel(item, items.length, this.items.length));
|
|
310
281
|
}
|
|
311
282
|
//function that scrolls to the li element with the class "active"
|
|
312
283
|
scrollToActive() {
|
|
@@ -334,14 +305,17 @@ const DuetCombobox = class {
|
|
|
334
305
|
*/
|
|
335
306
|
getFilteredItems() {
|
|
336
307
|
// filter items based on user inputs
|
|
337
|
-
const filteredItems = this.processedItems.filter(item =>
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
308
|
+
const filteredItems = this.processedItems.filter(item => {
|
|
309
|
+
var _a, _b, _c, _d;
|
|
310
|
+
// filter by name and value
|
|
311
|
+
// if value contains inputvalue
|
|
312
|
+
return ((_a = String(item.value)) === null || _a === void 0 ? void 0 : _a.toLowerCase().startsWith((_b = this.inputValue) === null || _b === void 0 ? void 0 : _b.toLowerCase())) ||
|
|
313
|
+
(
|
|
314
|
+
// if name contains input value
|
|
315
|
+
(_c = String(item.name)) === null || _c === void 0 ? void 0 : _c.toLowerCase().startsWith((_d = this.inputValue) === null || _d === void 0 ? void 0 : _d.toLowerCase())) ||
|
|
316
|
+
// if the item is selected
|
|
317
|
+
this.selectedItems.has(item.id);
|
|
318
|
+
});
|
|
345
319
|
return this.sortFilteredItems(filteredItems);
|
|
346
320
|
}
|
|
347
321
|
/**
|
|
@@ -365,16 +339,18 @@ const DuetCombobox = class {
|
|
|
365
339
|
*/
|
|
366
340
|
render() {
|
|
367
341
|
const selectElements = this.returnFilteredOrNonFiltered();
|
|
368
|
-
return (h(Host, { role: "combobox", "aria-expanded": this.listOpen ? "true" : "false", "aria-owns":
|
|
342
|
+
return (h(Host, { role: "combobox", "aria-expanded": this.listOpen ? "true" : "false", "aria-owns": "duet-combobox-list-element", "aria-haspopup": "listbox", class: {
|
|
369
343
|
"duet-combobox": true,
|
|
370
344
|
[`duet-theme-${this.theme}`]: true,
|
|
371
|
-
} }, h("slot", null),
|
|
345
|
+
} }, h("slot", null), h("div", { role: "list", class: {
|
|
372
346
|
"duet-combobox-list": true,
|
|
373
347
|
open: this.listOpen,
|
|
374
|
-
}, ref: el => (this.listContainer = el) }, h("ul", {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
}))
|
|
348
|
+
}, ref: el => (this.listContainer = el) }, h("ul", { class: {
|
|
349
|
+
"duet-combobox-listbox-open": this.listOpen,
|
|
350
|
+
"duet-combobox-listbox": true,
|
|
351
|
+
}, role: "listbox", ref: el => (this.listElement = el), id: "duet-combobox-list-element" }, selectElements.map((item, index) => {
|
|
352
|
+
return (h(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) }));
|
|
353
|
+
})))));
|
|
378
354
|
}
|
|
379
355
|
get element() { return getElement(this); }
|
|
380
356
|
static get watchers() { return {
|