@duetds/components 6.2.4 → 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 -4172
- 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 -77
- 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-25247ce1.js → focus-utils-18ea61a6.js} +1 -1
- package/lib/cjs/{index-e009343b.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 -401
- 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-ca2b02bc.js → p-0cc49790.js} +3 -25
- package/lib/dist-custom-elements/{p-1f03397c.js → p-0ef384ca.js} +7 -30
- package/lib/dist-custom-elements/{p-70d1ca9f.js → p-10feffd3.js} +1 -1
- package/lib/dist-custom-elements/{p-4367369a.js → p-14a163e6.js} +475 -272
- package/lib/dist-custom-elements/{p-e987e04b.js → p-25d4fffb.js} +1 -11
- package/lib/dist-custom-elements/{p-862c60cc.js → p-354f8a94.js} +3 -16
- package/lib/dist-custom-elements/{p-c5d74817.js → p-37dd7faf.js} +2 -22
- package/lib/dist-custom-elements/{p-e57df145.js → p-4115062c.js} +2 -25
- package/lib/dist-custom-elements/{p-ed503468.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-1fef1f90.js → p-65ee8608.js} +8 -14
- package/lib/dist-custom-elements/{p-3fa8edce.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-6e81048c.js → p-7958dc0c.js} +30 -70
- package/lib/dist-custom-elements/{p-2a509b17.js → p-82fec063.js} +2 -21
- package/lib/dist-custom-elements/{p-279dedcd.js → p-88d217a7.js} +2 -11
- package/lib/dist-custom-elements/{p-f51d88cc.js → p-9245c901.js} +2 -10
- package/lib/dist-custom-elements/{p-dcffd5be.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-bd4ab88c.js → p-9fef7d37.js} +21 -49
- package/lib/dist-custom-elements/{p-0347f9ec.js → p-a1212d29.js} +1 -1
- package/lib/dist-custom-elements/{p-29b4f008.js → p-ad7292b3.js} +5 -26
- package/lib/dist-custom-elements/{p-9cfc3bee.js → p-af2e8de4.js} +14 -46
- package/lib/dist-custom-elements/{p-396cb7a5.js → p-b5ea480c.js} +9 -30
- package/lib/dist-custom-elements/{p-4bb2e37b.js → p-bd64a84d.js} +6 -17
- package/lib/dist-custom-elements/{p-0938933e.js → p-cab1e8a0.js} +20 -71
- package/lib/dist-custom-elements/{p-8c0cf877.js → p-d2402b45.js} +27 -79
- package/lib/dist-custom-elements/{p-b89983b2.js → p-d34c42bc.js} +1 -10
- package/lib/dist-custom-elements/{p-f674e164.js → p-d628dd87.js} +17 -80
- package/lib/dist-custom-elements/{p-c4165359.js → p-db135ec9.js} +1 -13
- package/lib/dist-custom-elements/{p-d4c234ed.js → p-e2cd1c98.js} +1 -1
- package/lib/dist-custom-elements/{p-b9058029.js → p-e4a60f42.js} +8 -0
- package/lib/dist-custom-elements/{p-b4b809ff.js → p-eb6fc032.js} +33 -109
- package/lib/dist-custom-elements/{p-464a80f2.js → p-f7c0e5bf.js} +1 -23
- package/lib/dist-custom-elements/{p-908c1151.js → p-fddad5df.js} +5 -36
- package/lib/dist-custom-elements/{p-1302f6e8.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-fe87f458.system.entry.js → p-00ee31e2.system.entry.js} +1 -1
- package/lib/duet/{p-5d9ec5ef.entry.js → p-0169eb09.entry.js} +1 -1
- package/lib/duet/{p-a585455c.system.entry.js → p-0236fc28.system.entry.js} +1 -1
- package/lib/duet/p-0285e5d3.entry.js +4 -0
- package/lib/duet/{p-fc2cda87.system.entry.js → p-028da443.system.entry.js} +2 -2
- package/lib/duet/{p-b09e3f47.system.entry.js → p-0426e86f.system.entry.js} +1 -1
- package/lib/duet/{p-7ea15c5c.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-ad0cf0f5.system.entry.js → p-09e9e6e0.system.entry.js} +2 -2
- package/lib/duet/p-0aae8ebf.entry.js +4 -0
- package/lib/duet/{p-526c88d9.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-e60b3dc2.entry.js → p-0f8e4b6a.entry.js} +1 -1
- package/lib/duet/p-0fc0e90e.entry.js +4 -0
- package/lib/duet/{p-a5f977bc.system.entry.js → p-10b1ea3e.system.entry.js} +2 -2
- package/lib/duet/{p-32c587da.entry.js → p-1184c37e.entry.js} +1 -1
- package/lib/duet/{p-ce3fc2bd.entry.js → p-11c58a6b.entry.js} +1 -1
- package/lib/duet/p-14cca806.entry.js +4 -0
- package/lib/duet/{p-a2d89ed8.system.entry.js → p-14e93ad6.system.entry.js} +1 -1
- package/lib/duet/{p-2cf9ce9f.system.entry.js → p-16b61523.system.entry.js} +2 -2
- package/lib/duet/p-16cbd476.entry.js +4 -0
- package/lib/duet/{p-f5149c67.entry.js → p-1833941e.entry.js} +1 -1
- package/lib/duet/{p-15743dbe.system.entry.js → p-1a45eddb.system.entry.js} +1 -1
- package/lib/duet/{p-37b5759b.entry.js → p-1b63c3bf.entry.js} +1 -1
- package/lib/duet/p-1e442975.entry.js +4 -0
- package/lib/duet/{p-22793750.entry.js → p-27a1c897.entry.js} +1 -1
- package/lib/duet/{p-a4575910.entry.js → p-2c5b761d.entry.js} +1 -1
- package/lib/duet/{p-1b4da2a6.entry.js → p-2cbe5fe4.entry.js} +1 -1
- package/lib/duet/{p-ace82109.system.entry.js → p-2f0f8b9e.system.entry.js} +2 -2
- package/lib/duet/{p-b0fa24ea.system.entry.js → p-326d3440.system.entry.js} +1 -1
- package/lib/duet/{p-74edab4b.system.entry.js → p-394efc25.system.entry.js} +1 -1
- package/lib/duet/{p-bb2dab53.system.entry.js → p-400f8e9d.system.entry.js} +2 -2
- package/lib/duet/{p-21e8b3cb.system.entry.js → p-43750071.system.entry.js} +1 -1
- package/lib/duet/{p-995fe7b5.entry.js → p-45b0469f.entry.js} +1 -1
- package/lib/duet/p-4644616b.entry.js +4 -0
- package/lib/duet/{p-48d5c614.entry.js → p-4c96e54d.entry.js} +1 -1
- package/lib/duet/{p-f084d355.system.entry.js → p-4d1a5b9e.system.entry.js} +1 -1
- package/lib/duet/{p-fc34b8a0.system.entry.js → p-4e2db855.system.entry.js} +1 -1
- package/lib/duet/{p-e7196c1b.system.entry.js → p-5214682e.system.entry.js} +1 -1
- package/lib/duet/{p-c8ba8ed5.system.entry.js → p-575e4d53.system.entry.js} +1 -1
- package/lib/duet/{p-e1dc6e7f.system.entry.js → p-58de4753.system.entry.js} +1 -1
- package/lib/duet/p-592bcdd4.entry.js +4 -0
- package/lib/duet/{p-1b3fc470.system.entry.js → p-5b00d0cf.system.entry.js} +1 -1
- package/lib/duet/p-5bffb89f.entry.js +4 -0
- package/lib/duet/{p-93138df9.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-7ac15184.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-caf8cc5f.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-fc200674.system.entry.js → p-758c0528.system.entry.js} +2 -2
- package/lib/duet/{p-436b415a.system.entry.js → p-79c8d35c.system.entry.js} +1 -1
- package/lib/duet/{p-6226ebc9.entry.js → p-7ccf8ef9.entry.js} +1 -1
- package/lib/duet/{p-5a61c374.system.entry.js → p-7e67fedc.system.entry.js} +1 -1
- package/lib/duet/{p-aa10446f.system.entry.js → p-7fcbf80a.system.entry.js} +1 -1
- package/lib/duet/{p-a57f8242.entry.js → p-81313736.entry.js} +1 -1
- package/lib/duet/{p-a5dcf047.entry.js → p-81e66ef1.entry.js} +1 -1
- package/lib/duet/p-8512b463.js +4 -0
- package/lib/duet/p-855f9e2a.system.entry.js +4 -0
- package/lib/duet/{p-c4f57811.entry.js → p-8681c6e0.entry.js} +1 -1
- package/lib/duet/p-89bf7be7.entry.js +4 -0
- package/lib/duet/{p-1c2bc99b.system.entry.js → p-8a47d599.system.entry.js} +1 -1
- package/lib/duet/{p-ebbe496d.entry.js → p-8f6cf5d1.entry.js} +1 -1
- package/lib/duet/{p-0734bdd5.system.entry.js → p-90ea4509.system.entry.js} +1 -1
- package/lib/duet/p-9101f9ed.entry.js +4 -0
- package/lib/duet/{p-14e5b2e7.system.entry.js → p-914c3280.system.entry.js} +1 -1
- package/lib/duet/{p-9ea3b585.system.entry.js → p-948d492d.system.entry.js} +2 -2
- package/lib/duet/{p-daa920e3.system.entry.js → p-9a14ca19.system.entry.js} +1 -1
- package/lib/duet/{p-41110e9b.system.entry.js → p-9f60735a.system.entry.js} +1 -1
- package/lib/duet/p-a8d942ea.entry.js +4 -0
- package/lib/duet/{p-fe0cb2a5.entry.js → p-ac4c233b.entry.js} +1 -1
- package/lib/duet/p-acea52f5.entry.js +4 -0
- package/lib/duet/{p-bf4e00b1.system.entry.js → p-b180a4e2.system.entry.js} +1 -1
- package/lib/duet/{p-c0732300.system.entry.js → p-b2688afc.system.entry.js} +1 -1
- package/lib/duet/p-b293c2ff.entry.js +4 -0
- package/lib/duet/{p-2bcf54bb.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-d448c7fc.system.entry.js → p-b821b721.system.entry.js} +1 -1
- package/lib/duet/p-bc2c1014.entry.js +4 -0
- package/lib/duet/{p-4c7ae11f.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-870e88b7.system.entry.js → p-c3a0505e.system.entry.js} +1 -1
- package/lib/duet/{p-15b79ed1.entry.js → p-c41bfab0.entry.js} +1 -1
- package/lib/duet/{p-9e5192fd.entry.js → p-c4932f05.entry.js} +1 -1
- package/lib/duet/{p-8755500b.entry.js → p-c5e54be9.entry.js} +1 -1
- package/lib/duet/p-cf11b05b.entry.js +4 -0
- package/lib/duet/{p-d1da9fe1.system.entry.js → p-d0f1d25f.system.entry.js} +1 -1
- package/lib/duet/p-d16434dc.entry.js +4 -0
- package/lib/duet/{p-ed024bd6.entry.js → p-d2ef832d.entry.js} +1 -1
- package/lib/duet/{p-eb168145.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-eb94a92c.system.entry.js → p-daa20c36.system.entry.js} +1 -1
- package/lib/duet/{p-7e0d3659.entry.js → p-dbddb719.entry.js} +1 -1
- package/lib/duet/{p-5bbac6e9.system.entry.js → p-dc18b76c.system.entry.js} +1 -1
- package/lib/duet/p-dc51f077.entry.js +4 -0
- package/lib/duet/{p-db64d031.system.entry.js → p-dd676f12.system.entry.js} +1 -1
- package/lib/duet/{p-176c64c4.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-71e54f66.system.entry.js → p-e621c31c.system.entry.js} +1 -1
- package/lib/duet/p-e71a6257.system.js +5 -0
- package/lib/duet/{p-f8133fe1.system.entry.js → p-ea8e5649.system.entry.js} +1 -1
- package/lib/duet/{p-617872b5.system.entry.js → p-ebc09697.system.entry.js} +1 -1
- package/lib/duet/{p-66f1bdce.entry.js → p-ec635593.entry.js} +1 -1
- package/lib/duet/p-ef3f4213.entry.js +4 -0
- package/lib/duet/{p-61baccc6.system.entry.js → p-f01d234f.system.entry.js} +1 -1
- package/lib/duet/p-f150740b.entry.js +4 -0
- package/lib/duet/{p-71f1a210.system.entry.js → p-f2bcb922.system.entry.js} +1 -1
- package/lib/duet/{p-67a7ac4f.entry.js → p-f3d0d889.entry.js} +1 -1
- package/lib/duet/{p-a629e72a.system.entry.js → p-f6712ec8.system.entry.js} +1 -1
- package/lib/duet/{p-d164cdeb.system.entry.js → p-f678edf7.system.entry.js} +1 -1
- package/lib/duet/p-f7453c05.system.entry.js +4 -0
- package/lib/duet/{p-2e71b284.system.js → p-f9133dc5.system.js} +1 -1
- package/lib/duet/{p-465c7f64.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 -77
- 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-c6e25a2b.js → focus-utils-abaea1e6.js} +1 -1
- package/lib/esm/{index-adbabdb3.js → index-4df60498.js} +1438 -1235
- package/lib/esm/loader.js +3 -3
- package/lib/esm/polyfills/css-shim.js +1 -1
- package/lib/esm/{shadow-css-501eda9a.js → 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 +2 -2
- 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 +2 -2
- 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-c6e25a2b.js → focus-utils-abaea1e6.js} +1 -1
- 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 -10
- package/lib/duet/p-03ac8c12.entry.js +0 -4
- package/lib/duet/p-0b0b1a31.js +0 -4
- package/lib/duet/p-2482298d.entry.js +0 -4
- package/lib/duet/p-2be7affe.system.entry.js +0 -4
- package/lib/duet/p-2e2eca0e.entry.js +0 -4
- package/lib/duet/p-3198246d.system.entry.js +0 -4
- package/lib/duet/p-31a8380d.entry.js +0 -4
- package/lib/duet/p-3d96bd35.entry.js +0 -4
- package/lib/duet/p-4fd9fab5.entry.js +0 -4
- package/lib/duet/p-570786a7.system.entry.js +0 -4
- package/lib/duet/p-5be11a3f.entry.js +0 -4
- package/lib/duet/p-6198dd87.entry.js +0 -4
- package/lib/duet/p-6ef4c26f.system.entry.js +0 -4
- package/lib/duet/p-73b1bfff.system.js +0 -5
- package/lib/duet/p-74a85e06.entry.js +0 -4
- package/lib/duet/p-8e12f166.entry.js +0 -4
- package/lib/duet/p-8e83ab80.entry.js +0 -4
- package/lib/duet/p-925f5739.entry.js +0 -4
- package/lib/duet/p-aeee20b5.system.entry.js +0 -4
- package/lib/duet/p-b252c6c7.entry.js +0 -4
- package/lib/duet/p-b28b7458.entry.js +0 -4
- package/lib/duet/p-bbc7c22c.js +0 -5
- package/lib/duet/p-bce4669c.entry.js +0 -4
- package/lib/duet/p-bf165746.entry.js +0 -4
- package/lib/duet/p-c4375ca3.entry.js +0 -4
- package/lib/duet/p-cd5358ce.entry.js +0 -4
- package/lib/duet/p-d770b87e.entry.js +0 -4
- package/lib/duet/p-d7d944f5.entry.js +0 -4
- package/lib/duet/p-d7fa0c7c.entry.js +0 -4
- package/lib/duet/p-d83f8247.entry.js +0 -4
- package/lib/duet/p-dc9b21ad.entry.js +0 -4
- package/lib/duet/p-dcf2df11.entry.js +0 -4
- package/lib/duet/p-de024983.entry.js +0 -4
- package/lib/duet/p-e01e9f71.entry.js +0 -4
- package/lib/duet/p-e7808045.entry.js +0 -4
- package/lib/duet/p-e9cf0568.entry.js +0 -4
- package/lib/duet/p-f015180c.entry.js +0 -4
- package/lib/duet/p-f0e4ccb6.entry.js +0 -4
- package/lib/duet/p-f0f8a1fd.entry.js +0 -4
- package/lib/esm-es5/index-adbabdb3.js +0 -5
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, F as Fragment } from './p-
|
|
5
|
-
import {
|
|
4
|
+
import { p as proxyCustomElement, H, h, F as Fragment } from './p-14a163e6.js';
|
|
5
|
+
import { s as sizeHeader } from './p-55325c49.js';
|
|
6
6
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
7
7
|
import { c as createID } from './p-c1325e35.js';
|
|
8
8
|
import { a as getLanguage, g as getLocaleString } from './p-ede854e1.js';
|
|
9
|
-
import { d as defineCustomElement$3 } from './p-
|
|
10
|
-
import { d as defineCustomElement$2 } from './p-
|
|
9
|
+
import { d as defineCustomElement$3 } from './p-fddad5df.js';
|
|
10
|
+
import { d as defineCustomElement$2 } from './p-10feffd3.js';
|
|
11
11
|
|
|
12
12
|
const duetTrayCss = "*,*::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:block;width:100%}.duet-tray{position:fixed;top:4rem;right:0;left:0;z-index:399;display:flex;flex-direction:column;max-height:calc(100% - 8rem);padding:16px 20px 16px 24px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;line-height:1.5;color:#00294d;visibility:hidden;background:#f3f9fc;border-bottom:1px solid #e1e3e6;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07);opacity:0;transition:opacity 600ms ease, visibility 600ms ease, transform 600ms ease;transform:translateY(-4rem)}@media (min-width: 62em){.duet-tray{padding:16px 36px}}@media (min-width: 106.25em){.duet-tray{padding:16px 52px 16px 60px}}.duet-tray:focus{outline:0}:host(.user-is-tabbing) .duet-tray:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-tray.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-tray.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#171c3a;background:#f5f5f7;border-color:#e4e4e6}.duet-tray.duet-tray-is-active{visibility:visible;opacity:1;transform:translateY(0)}.duet-tray.duet-tray-is-hidden{visibility:hidden;opacity:0;transform:translateY(-4rem)}@media (min-width: 62em){.duet-tray.duet-tray-is-responsive{display:none !important}}.duet-tray.duet-tray-is-expandable{padding-right:66px}@media (min-width: 62em){.duet-tray.duet-tray-is-expandable{padding-right:78px}}@media (min-width: 106.25em){.duet-tray.duet-tray-is-expandable{padding-right:94px}}.duet-tray-expandable{position:relative;z-index:100;width:calc(100% + 46px);max-height:0;overflow-y:auto;visibility:hidden;opacity:0;transition:opacity 600ms ease, visibility 600ms ease, max-height 600ms ease;scrollbar-width:none}.duet-tray-expandable::-webkit-scrollbar{display:none}.duet-tray-expandable.active{max-height:500px;visibility:visible;opacity:1}.duet-tray-expandable-content{width:100%;margin-top:16px;border-top:1px solid #e1e3e6}.duet-theme-turva .duet-tray-expandable-content{border-color:#e4e4e6}.duet-tray-button{-webkit-user-select:none;user-select:none;padding:20px !important;position:absolute;top:-2px;right:0;z-index:200;color:#00294d;text-align:center;cursor:pointer;border-radius:4px;transition:transform 300ms ease;-webkit-tap-highlight-color:transparent}@media (min-width: 62em){.duet-tray-button{margin-right:16px}}@media (min-width: 106.25em){.duet-tray-button{margin-right:36px}}.duet-theme-turva .duet-tray-button{color:#171c3a}.duet-tray-button.duet-tray-is-expanded{transform:rotate(-180deg)}.duet-tray-button:focus{outline:0}:host(.user-is-tabbing) .duet-tray-button:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-theme-turva .duet-tray-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-tray-button:active{box-shadow:none;opacity:0.75}";
|
|
13
13
|
|
|
@@ -22,78 +22,36 @@ const DuetTray$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
|
22
22
|
*/
|
|
23
23
|
this.isTicking = false;
|
|
24
24
|
this.expandableId = createID("DuetTray");
|
|
25
|
-
this.expanded = false;
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
26
|
+
* Local methods.
|
|
28
27
|
*/
|
|
28
|
+
this.animationLoop = () => {
|
|
29
|
+
this.hiddenState = window.pageYOffset < topOffset;
|
|
30
|
+
this.isTicking = false;
|
|
31
|
+
};
|
|
32
|
+
this.toggleExpandable = ev => {
|
|
33
|
+
ev.preventDefault();
|
|
34
|
+
this.expanded = !this.expanded;
|
|
35
|
+
};
|
|
36
|
+
this.expanded = false;
|
|
29
37
|
this.hiddenState = false;
|
|
30
|
-
/**
|
|
31
|
-
* The currently active language. This setting changes the accessible labels to match the
|
|
32
|
-
* chosen language.
|
|
33
|
-
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
34
|
-
* @default "fi"
|
|
35
|
-
*/
|
|
36
38
|
this.language = getLanguage();
|
|
37
|
-
/**
|
|
38
|
-
* Defaults for accessibleCloseLabel
|
|
39
|
-
* @default {fi: "Sulje", en: "Close", sv: "Stänga"}
|
|
40
|
-
*/
|
|
41
39
|
this.accessibleCloseLabelDefaults = {
|
|
42
40
|
fi: "Sulje",
|
|
43
41
|
en: "Close",
|
|
44
42
|
sv: "Stäng",
|
|
45
43
|
};
|
|
46
|
-
/**
|
|
47
|
-
* Accessible label that is shown for screen reader users in the expandable
|
|
48
|
-
* close toggle. Not visible for normal users.
|
|
49
|
-
* @default {fi: "Sulje", en: "Close", sv: "Stänga"}
|
|
50
|
-
*/
|
|
51
44
|
this.accessibleCloseLabel = getLocaleString(this.accessibleCloseLabelDefaults, this.language);
|
|
52
|
-
/**
|
|
53
|
-
* Defaults for accessibleOpenLabel
|
|
54
|
-
* @default {fi: "Avaa", en: "Open", sv: "Öppen"}
|
|
55
|
-
*/
|
|
56
45
|
this.accessibleOpenLabelDefaults = {
|
|
57
46
|
fi: "Avaa",
|
|
58
47
|
en: "Open",
|
|
59
48
|
sv: "Öppna",
|
|
60
49
|
};
|
|
61
|
-
/**
|
|
62
|
-
* Accessible label that is shown for screen reader users in the expandable
|
|
63
|
-
* open toggle. Not visible for normal users.
|
|
64
|
-
* @default {fi: "Avaa", en: "Open", sv: "Öppen"}
|
|
65
|
-
*/
|
|
66
50
|
this.accessibleOpenLabel = getLocaleString(this.accessibleOpenLabelDefaults, this.language);
|
|
67
|
-
/**
|
|
68
|
-
* Theme of the info panel.
|
|
69
|
-
*/
|
|
70
51
|
this.theme = "";
|
|
71
|
-
/**
|
|
72
|
-
* Toggle whether the info panel is visible or not. You can use this
|
|
73
|
-
* property e.g. when pricing information is revealed to the user.
|
|
74
|
-
*/
|
|
75
52
|
this.active = false;
|
|
76
|
-
/**
|
|
77
|
-
* Hide the info panel when user scrolls back to the top of the viewport.
|
|
78
|
-
*/
|
|
79
53
|
this.autoHide = true;
|
|
80
|
-
/**
|
|
81
|
-
* Enable or disable the automatic responsive behaviour which
|
|
82
|
-
* makes the info panel hide on larger viewports. Settings this to
|
|
83
|
-
* "false" means that the header panel is visible on all device sizes.
|
|
84
|
-
*/
|
|
85
54
|
this.responsive = true;
|
|
86
|
-
/**
|
|
87
|
-
* Local methods.
|
|
88
|
-
*/
|
|
89
|
-
this.animationLoop = () => {
|
|
90
|
-
this.hiddenState = window.pageYOffset < topOffset;
|
|
91
|
-
this.isTicking = false;
|
|
92
|
-
};
|
|
93
|
-
this.toggleExpandable = ev => {
|
|
94
|
-
ev.preventDefault();
|
|
95
|
-
this.expanded = !this.expanded;
|
|
96
|
-
};
|
|
97
55
|
}
|
|
98
56
|
/**
|
|
99
57
|
* Component lifecycle events.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetUploadAriaStatus$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetUploadAriaStatus$1, d as defineCustomElement$1 } from './p-b5ea480c.js';
|
|
5
5
|
|
|
6
6
|
const DuetUploadAriaStatus = DuetUploadAriaStatus$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, c as createEvent, h as h$1, b as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, c as createEvent, h as h$1, b as Host } from './p-14a163e6.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { c as createID } from './p-c1325e35.js';
|
|
7
7
|
import { d as debounce } from './p-0b3f675e.js';
|
|
8
8
|
import { g as getLocaleString, s as sanitizeString } from './p-ede854e1.js';
|
|
9
9
|
import { p as parsePossibleJSON } from './p-5a9d75e1.js';
|
|
10
|
-
import { h } from './p-
|
|
11
|
-
import { d as defineCustomElement$i } from './p-
|
|
12
|
-
import { d as defineCustomElement$h } from './p-
|
|
13
|
-
import { d as defineCustomElement$g } from './p-
|
|
14
|
-
import { d as defineCustomElement$f } from './p-
|
|
15
|
-
import { d as defineCustomElement$e } from './p-
|
|
16
|
-
import { d as defineCustomElement$d } from './p-
|
|
17
|
-
import { d as defineCustomElement$c } from './p-
|
|
18
|
-
import { d as defineCustomElement$b } from './p-
|
|
19
|
-
import { d as defineCustomElement$a } from './p-
|
|
20
|
-
import { d as defineCustomElement$9 } from './p-
|
|
21
|
-
import { d as defineCustomElement$8 } from './p-
|
|
22
|
-
import { d as defineCustomElement$7 } from './p-
|
|
23
|
-
import { d as defineCustomElement$6 } from './p-
|
|
24
|
-
import { d as defineCustomElement$5 } from './p-
|
|
25
|
-
import { d as defineCustomElement$4 } from './p-
|
|
26
|
-
import { d as defineCustomElement$3 } from './p-
|
|
27
|
-
import { d as defineCustomElement$2 } from './p-
|
|
10
|
+
import { h } from './p-e4a60f42.js';
|
|
11
|
+
import { d as defineCustomElement$i } from './p-d628dd87.js';
|
|
12
|
+
import { d as defineCustomElement$h } from './p-af2e8de4.js';
|
|
13
|
+
import { d as defineCustomElement$g } from './p-d34c42bc.js';
|
|
14
|
+
import { d as defineCustomElement$f } from './p-eb6fc032.js';
|
|
15
|
+
import { d as defineCustomElement$e } from './p-db135ec9.js';
|
|
16
|
+
import { d as defineCustomElement$d } from './p-cab1e8a0.js';
|
|
17
|
+
import { d as defineCustomElement$c } from './p-65ee8608.js';
|
|
18
|
+
import { d as defineCustomElement$b } from './p-fddad5df.js';
|
|
19
|
+
import { d as defineCustomElement$a } from './p-9245c901.js';
|
|
20
|
+
import { d as defineCustomElement$9 } from './p-ad7292b3.js';
|
|
21
|
+
import { d as defineCustomElement$8 } from './p-82fec063.js';
|
|
22
|
+
import { d as defineCustomElement$7 } from './p-fed8d27a.js';
|
|
23
|
+
import { d as defineCustomElement$6 } from './p-25d4fffb.js';
|
|
24
|
+
import { d as defineCustomElement$5 } from './p-354f8a94.js';
|
|
25
|
+
import { d as defineCustomElement$4 } from './p-0ef384ca.js';
|
|
26
|
+
import { d as defineCustomElement$3 } from './p-b5ea480c.js';
|
|
27
|
+
import { d as defineCustomElement$2 } from './p-10feffd3.js';
|
|
28
28
|
|
|
29
29
|
const errorCodes = [
|
|
30
30
|
{
|
|
@@ -385,280 +385,6 @@ const DuetUpload$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
|
385
385
|
this.duetCancel = createEvent(this, "duetCancel", 3);
|
|
386
386
|
this.duetProgress = createEvent(this, "duetProgress", 3);
|
|
387
387
|
this.duetUpload = createEvent(this, "duetUpload", 3);
|
|
388
|
-
/**
|
|
389
|
-
* State() variables
|
|
390
|
-
*/
|
|
391
|
-
this.tick = Date.now();
|
|
392
|
-
/**
|
|
393
|
-
* If external is set to true, the upload component will not actually upload the files, but only keep states
|
|
394
|
-
* it will be up to you to handle the upload and return progress information to the upload-component
|
|
395
|
-
*/
|
|
396
|
-
this.external = false;
|
|
397
|
-
/**
|
|
398
|
-
* If internal upload method is used, and this has been set to a function - it will be called with the XHR options before the reqeust is sent, return an updated XHR options object in order to manipulate the request
|
|
399
|
-
*/
|
|
400
|
-
this.middleware = null;
|
|
401
|
-
/**
|
|
402
|
-
* If defer-upload is true, duet-upload will not (as recommended) instantly upload files but await a call to uploadPending()
|
|
403
|
-
*/
|
|
404
|
-
this.deferUpload = false;
|
|
405
|
-
/**
|
|
406
|
-
* If set the upload component will not display an upload button, you will have to create one yourself
|
|
407
|
-
* and call the exposed method startUpload to open the upload dialog
|
|
408
|
-
*/
|
|
409
|
-
this.hideButton = false;
|
|
410
|
-
/**
|
|
411
|
-
* Default actions added to the internally used duet-editable-table
|
|
412
|
-
*/
|
|
413
|
-
this.actions = [
|
|
414
|
-
{
|
|
415
|
-
icon: "action-delete",
|
|
416
|
-
color: "color-danger",
|
|
417
|
-
size: "x-small",
|
|
418
|
-
background: "gray-lightest",
|
|
419
|
-
name: "delete",
|
|
420
|
-
map: ["success", "failure"],
|
|
421
|
-
label: {
|
|
422
|
-
fi: "Poista tiedosto",
|
|
423
|
-
en: "Poista tiedosto",
|
|
424
|
-
sv: "Ta bort filen",
|
|
425
|
-
},
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
icon: "navigation-close",
|
|
429
|
-
color: "primary",
|
|
430
|
-
size: "x-small",
|
|
431
|
-
background: "gray-lightest",
|
|
432
|
-
name: "cancel",
|
|
433
|
-
map: ["inprogress", "pending"],
|
|
434
|
-
label: {
|
|
435
|
-
fi: "Keskeytä lähetys",
|
|
436
|
-
en: "Cancel the upload",
|
|
437
|
-
sv: "Stop överföringen",
|
|
438
|
-
},
|
|
439
|
-
},
|
|
440
|
-
];
|
|
441
|
-
/**
|
|
442
|
-
* If enabled the editable-table will display links on successfully uploaded items,
|
|
443
|
-
* this requires the server can respond with link URIs in the correct format
|
|
444
|
-
* and that the files are accessible to the user
|
|
445
|
-
*/
|
|
446
|
-
this.showLinks = false;
|
|
447
|
-
/**
|
|
448
|
-
* Property to change the aria upload progress text read aloud by screenreaders
|
|
449
|
-
* @default {
|
|
450
|
-
* fi: {
|
|
451
|
-
* inProgress: "Lähetetään {filesUploaded} lähetettävästä {filesTotal} tiedostosta",
|
|
452
|
-
* inProgressWithErrors:
|
|
453
|
-
* "Lähetetään {filesInProgress} tiedostoa, lähetetty {filesUploaded} lähetettävästä {filesTotal} tiedostosta, {filesWithErrors} tiedostossa on virheitä",
|
|
454
|
-
* done: "Kaikki {filesTotal} tiedostoa lähetetty onnistuneesti",
|
|
455
|
-
* doneWithErrors:
|
|
456
|
-
* "Lähetys valmis, {filesUploaded} tiedostoa on lähetetty onnistuneesti, {filesWithErrors} tiedostossa oli virheitä",
|
|
457
|
-
* files: "tiedostot",
|
|
458
|
-
* file: "tiedosto",
|
|
459
|
-
* },
|
|
460
|
-
* sv: {
|
|
461
|
-
* inProgress: "Adding {filesUploaded} of {filesTotal}",
|
|
462
|
-
* inProgressWithErrors:
|
|
463
|
-
* "Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",
|
|
464
|
-
* done: "Alla {filesTotal} har lagts till",
|
|
465
|
-
* doneWithErrors: "Handling slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",
|
|
466
|
-
* files: "filer",
|
|
467
|
-
* file: "fil",
|
|
468
|
-
* },
|
|
469
|
-
* en: {
|
|
470
|
-
* inProgress: "Adding {filesUploaded} of {filesTotal}",
|
|
471
|
-
* inProgressWithErrors:
|
|
472
|
-
* "Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",
|
|
473
|
-
* done: "All {filesTotal} added successfully",
|
|
474
|
-
* doneWithErrors: "Action completed, {filesUploaded} has been added successfully, {filesWithErrors} had errors",
|
|
475
|
-
* files: "tiedostoa",
|
|
476
|
-
* file: "tiedosto",
|
|
477
|
-
* },
|
|
478
|
-
* }
|
|
479
|
-
*/
|
|
480
|
-
this.statusLabelDefaults = {
|
|
481
|
-
fi: {
|
|
482
|
-
inProgress: "Lähetetään {filesUploaded} lähetettävästä {filesTotal} tiedostosta",
|
|
483
|
-
inProgressWithErrors: "Lähetetään {filesInProgress} tiedostoa, lähetetty {filesUploaded} lähetettävästä {filesTotal} tiedostosta, {filesWithErrors} tiedostossa on virheitä",
|
|
484
|
-
done: "Kaikki {filesTotal} tiedostoa lähetetty onnistuneesti",
|
|
485
|
-
doneWithErrors: "Lähetys valmis, {filesUploaded} tiedostoa on lähetetty onnistuneesti, {filesWithErrors} tiedostossa oli virheitä",
|
|
486
|
-
files: "tiedostot",
|
|
487
|
-
file: "tiedosto",
|
|
488
|
-
},
|
|
489
|
-
sv: {
|
|
490
|
-
inProgress: "Adding {filesUploaded} of {filesTotal}",
|
|
491
|
-
inProgressWithErrors: "Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",
|
|
492
|
-
done: "Alla {filesTotal} har lagts till",
|
|
493
|
-
doneWithErrors: "Handling slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",
|
|
494
|
-
files: "filer",
|
|
495
|
-
file: "fil",
|
|
496
|
-
},
|
|
497
|
-
en: {
|
|
498
|
-
inProgress: "Adding {filesUploaded} of {filesTotal}",
|
|
499
|
-
inProgressWithErrors: "Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",
|
|
500
|
-
done: "All {filesTotal} added successfully",
|
|
501
|
-
doneWithErrors: "Action completed, {filesUploaded} has been added successfully, {filesWithErrors} had errors",
|
|
502
|
-
files: "File",
|
|
503
|
-
file: "file",
|
|
504
|
-
},
|
|
505
|
-
};
|
|
506
|
-
/**
|
|
507
|
-
* Strings used for the status aria-label
|
|
508
|
-
*/
|
|
509
|
-
this.statusMessageLabel = getLocaleString(this.statusLabelDefaults);
|
|
510
|
-
/**
|
|
511
|
-
* Property to change button label defaults on the component.
|
|
512
|
-
* @default {
|
|
513
|
-
fi: "Lisää liite",
|
|
514
|
-
sv: "Lägg till en bilaga",
|
|
515
|
-
en: "Add an attachment",
|
|
516
|
-
}
|
|
517
|
-
*/
|
|
518
|
-
this.buttonLabelDefaults = {
|
|
519
|
-
fi: "Lisää liite",
|
|
520
|
-
sv: "Lägg till en bilaga",
|
|
521
|
-
en: "Add an attachment",
|
|
522
|
-
};
|
|
523
|
-
/**
|
|
524
|
-
* Label of button
|
|
525
|
-
* @default { fi: "Lisää liite", sv: "Lägg till en bilaga", en: "Add an attachment" }
|
|
526
|
-
*/
|
|
527
|
-
this.buttonLabel = getLocaleString(this.buttonLabelDefaults);
|
|
528
|
-
/**
|
|
529
|
-
* accessible aria-Label of button
|
|
530
|
-
*/
|
|
531
|
-
this.accessibleButtonLabel = undefined;
|
|
532
|
-
/**
|
|
533
|
-
* Theme of the input.
|
|
534
|
-
*/
|
|
535
|
-
this.theme = "";
|
|
536
|
-
/**
|
|
537
|
-
* Makes the input component disabled. This prevents users from being able to
|
|
538
|
-
* interact with the upload component, and conveys its inactive state to assistive technologies.
|
|
539
|
-
*/
|
|
540
|
-
this.disabled = false;
|
|
541
|
-
/**
|
|
542
|
-
* Controls the margin of the component.
|
|
543
|
-
*/
|
|
544
|
-
this.margin = "auto";
|
|
545
|
-
/**
|
|
546
|
-
* Set whether the input is required or not. Please note that this is necessary for
|
|
547
|
-
* accessible inputs when the user is required to fill them. When using this property
|
|
548
|
-
* you need to also set “novalidate” attribute to your form element to prevent
|
|
549
|
-
* browser from displaying its own validation errors.
|
|
550
|
-
*/
|
|
551
|
-
this.required = false;
|
|
552
|
-
/**
|
|
553
|
-
* Key used to set vertical alignment of action buttons
|
|
554
|
-
*/
|
|
555
|
-
this.alignment = "middle";
|
|
556
|
-
/**
|
|
557
|
-
* Visually hides the groups labels in the editable table list used to display the list of files
|
|
558
|
-
*/
|
|
559
|
-
this.hideGroups = false;
|
|
560
|
-
/**
|
|
561
|
-
* Map of string that contain list of uploaded files.
|
|
562
|
-
*/
|
|
563
|
-
this.files = new Map();
|
|
564
|
-
/**
|
|
565
|
-
* Property to read if the internally used editable-table contains errors or not
|
|
566
|
-
*/
|
|
567
|
-
this.valid = !this.required;
|
|
568
|
-
/**
|
|
569
|
-
* Property to change labelDefaults defaults on the component.
|
|
570
|
-
* normally you would handle these strings on an application level and override @label when needed
|
|
571
|
-
* @default { fi: "Lisää liite",sv: "Lägg till en bilaga",en: "Add attachments"}
|
|
572
|
-
*/
|
|
573
|
-
this.labelDefaults = {
|
|
574
|
-
fi: "Lisää liite",
|
|
575
|
-
sv: "Lägg till en bilaga",
|
|
576
|
-
en: "Add attachments",
|
|
577
|
-
};
|
|
578
|
-
/**
|
|
579
|
-
* Label for the input.
|
|
580
|
-
* @default { fi: "Lisää liite",sv: "Lägg till en bilaga",en: "Add attachments"}
|
|
581
|
-
*/
|
|
582
|
-
this.label = getLocaleString(this.labelDefaults);
|
|
583
|
-
/**
|
|
584
|
-
* Property to change descriptionDefaults defaults on the component.
|
|
585
|
-
* @default {
|
|
586
|
-
* en: "You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",
|
|
587
|
-
* sv: "Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",
|
|
588
|
-
* fi: "Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena.",
|
|
589
|
-
* }
|
|
590
|
-
*/
|
|
591
|
-
this.descriptionDefaults = {
|
|
592
|
-
en: "You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",
|
|
593
|
-
sv: "Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",
|
|
594
|
-
fi: "Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena.",
|
|
595
|
-
};
|
|
596
|
-
/**
|
|
597
|
-
* Description for the upload component.
|
|
598
|
-
* @default {
|
|
599
|
-
* en: "You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",
|
|
600
|
-
* sv: "Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",
|
|
601
|
-
* fi: "Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena.",
|
|
602
|
-
* }
|
|
603
|
-
*/
|
|
604
|
-
this.description = getLocaleString(this.descriptionDefaults);
|
|
605
|
-
/**
|
|
606
|
-
* Defaults for the filelist's empty state.
|
|
607
|
-
* @default {
|
|
608
|
-
fi: "Ei vielä lisättyjä tiedostoja.",
|
|
609
|
-
sv: "Inga filer har lagts till ännu.",
|
|
610
|
-
en: "No files added yet.",
|
|
611
|
-
}
|
|
612
|
-
*/
|
|
613
|
-
this.fileListEmptyDefaults = {
|
|
614
|
-
fi: "Ei vielä lisättyjä tiedostoja.",
|
|
615
|
-
sv: "Inga filer har lagts till ännu.",
|
|
616
|
-
en: "No files added yet.",
|
|
617
|
-
};
|
|
618
|
-
/**
|
|
619
|
-
* Label for the filelist's empty state.
|
|
620
|
-
* @default { fi: "Ei vielä lisättyjä tiedostoja.",sv: "Inga filer har lagts till ännu.",en: "No files added yet."}
|
|
621
|
-
*/
|
|
622
|
-
this.fileListEmpty = getLocaleString(this.fileListEmptyDefaults);
|
|
623
|
-
/**
|
|
624
|
-
* Display the input in error state along with an error message.
|
|
625
|
-
*/
|
|
626
|
-
this.error = "";
|
|
627
|
-
/**
|
|
628
|
-
* Default errorcodes used by the component, modifiable via javascript
|
|
629
|
-
*/
|
|
630
|
-
this.errorCodes = errorCodes;
|
|
631
|
-
/**
|
|
632
|
-
* Use maxBytes to specify the maximum size in Bytes of a file that can be uploaded.
|
|
633
|
-
*/
|
|
634
|
-
this.maxBytes = 200000000;
|
|
635
|
-
/**
|
|
636
|
-
* Use maxBytesTotal to specify the maximum size in Bytes of All files combined that can be uploaded.
|
|
637
|
-
*/
|
|
638
|
-
this.maxBytesTotal = undefined;
|
|
639
|
-
/**
|
|
640
|
-
* Use maxFiles to specify the maximum amount of files that can be uploaded
|
|
641
|
-
*/
|
|
642
|
-
this.maxFiles = 99;
|
|
643
|
-
/**
|
|
644
|
-
* A string of commaseperated file type values that are allowed
|
|
645
|
-
* @example: .pdf,.doc,.docx
|
|
646
|
-
*/
|
|
647
|
-
this.allowedExtensions = "all";
|
|
648
|
-
/**
|
|
649
|
-
* A string of commaseperated mime type values that are allowed
|
|
650
|
-
* @example: image/*,application/msword,
|
|
651
|
-
*/
|
|
652
|
-
this.allowedMimetypes = "*";
|
|
653
|
-
/**
|
|
654
|
-
* Use multiple to allow the user to select multiple files when uploading
|
|
655
|
-
*/
|
|
656
|
-
this.multiple = true;
|
|
657
|
-
/**
|
|
658
|
-
* Use limitSelection to enforce the value in allowedExtension & allowedMimetypes when selecting files,
|
|
659
|
-
* by default this is off, setting this to true will limit the users choices to what has been explicitly set
|
|
660
|
-
*/
|
|
661
|
-
this.limitSelection = false;
|
|
662
388
|
/**
|
|
663
389
|
* Own Properties
|
|
664
390
|
*/
|
|
@@ -678,45 +404,6 @@ const DuetUpload$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
|
678
404
|
pending: "pending",
|
|
679
405
|
failure: "failure",
|
|
680
406
|
};
|
|
681
|
-
/**
|
|
682
|
-
* Array of group names that you want the editable table to use to display files
|
|
683
|
-
* @required
|
|
684
|
-
* @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}]
|
|
685
|
-
*/
|
|
686
|
-
this.groups = [
|
|
687
|
-
{
|
|
688
|
-
id: this.DefaultGroups.pending,
|
|
689
|
-
label: {
|
|
690
|
-
en: "Files to upload",
|
|
691
|
-
sv: "Filer att ladda",
|
|
692
|
-
fi: "Ladattavat tiedostot",
|
|
693
|
-
},
|
|
694
|
-
},
|
|
695
|
-
{
|
|
696
|
-
id: this.DefaultGroups.success,
|
|
697
|
-
label: {
|
|
698
|
-
fi: "Valmiit tiedostot",
|
|
699
|
-
sv: "Files success",
|
|
700
|
-
en: "Files success",
|
|
701
|
-
},
|
|
702
|
-
},
|
|
703
|
-
{
|
|
704
|
-
id: this.DefaultGroups.failure,
|
|
705
|
-
label: {
|
|
706
|
-
fi: "Tiedostot, joissa on virheitä",
|
|
707
|
-
sv: "Filer med fel",
|
|
708
|
-
en: "Files with errors",
|
|
709
|
-
},
|
|
710
|
-
},
|
|
711
|
-
{
|
|
712
|
-
id: this.DefaultGroups.inprogress,
|
|
713
|
-
label: {
|
|
714
|
-
fi: "Kesken olevat tiedostot",
|
|
715
|
-
sv: "Filer inprogress",
|
|
716
|
-
en: "Files inprogress",
|
|
717
|
-
},
|
|
718
|
-
},
|
|
719
|
-
];
|
|
720
407
|
this.kick = debounce(() => {
|
|
721
408
|
this.tick = Date.now();
|
|
722
409
|
}, 30); // will trigger re-render
|
|
@@ -1129,6 +816,152 @@ const DuetUpload$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
|
1129
816
|
});
|
|
1130
817
|
return EditableTables;
|
|
1131
818
|
};
|
|
819
|
+
this.tick = Date.now();
|
|
820
|
+
this.accessibleActiveDescendant = undefined;
|
|
821
|
+
this.accessibleDescribedBy = undefined;
|
|
822
|
+
this.accessibleControls = undefined;
|
|
823
|
+
this.accessibleOwns = undefined;
|
|
824
|
+
this.external = false;
|
|
825
|
+
this.middleware = null;
|
|
826
|
+
this.deferUpload = false;
|
|
827
|
+
this.hideButton = false;
|
|
828
|
+
this.actions = [
|
|
829
|
+
{
|
|
830
|
+
icon: "action-delete",
|
|
831
|
+
color: "color-danger",
|
|
832
|
+
size: "x-small",
|
|
833
|
+
background: "gray-lightest",
|
|
834
|
+
name: "delete",
|
|
835
|
+
map: ["success", "failure"],
|
|
836
|
+
label: {
|
|
837
|
+
fi: "Poista tiedosto",
|
|
838
|
+
en: "Poista tiedosto",
|
|
839
|
+
sv: "Ta bort filen",
|
|
840
|
+
},
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
icon: "navigation-close",
|
|
844
|
+
color: "primary",
|
|
845
|
+
size: "x-small",
|
|
846
|
+
background: "gray-lightest",
|
|
847
|
+
name: "cancel",
|
|
848
|
+
map: ["inprogress", "pending"],
|
|
849
|
+
label: {
|
|
850
|
+
fi: "Keskeytä lähetys",
|
|
851
|
+
en: "Cancel the upload",
|
|
852
|
+
sv: "Stop överföringen",
|
|
853
|
+
},
|
|
854
|
+
},
|
|
855
|
+
];
|
|
856
|
+
this.uri = undefined;
|
|
857
|
+
this.showLinks = false;
|
|
858
|
+
this.caption = undefined;
|
|
859
|
+
this.statusLabelDefaults = {
|
|
860
|
+
fi: {
|
|
861
|
+
inProgress: "Lähetetään {filesUploaded} lähetettävästä {filesTotal} tiedostosta",
|
|
862
|
+
inProgressWithErrors: "Lähetetään {filesInProgress} tiedostoa, lähetetty {filesUploaded} lähetettävästä {filesTotal} tiedostosta, {filesWithErrors} tiedostossa on virheitä",
|
|
863
|
+
done: "Kaikki {filesTotal} tiedostoa lähetetty onnistuneesti",
|
|
864
|
+
doneWithErrors: "Lähetys valmis, {filesUploaded} tiedostoa on lähetetty onnistuneesti, {filesWithErrors} tiedostossa oli virheitä",
|
|
865
|
+
files: "tiedostot",
|
|
866
|
+
file: "tiedosto",
|
|
867
|
+
},
|
|
868
|
+
sv: {
|
|
869
|
+
inProgress: "Adding {filesUploaded} of {filesTotal}",
|
|
870
|
+
inProgressWithErrors: "Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",
|
|
871
|
+
done: "Alla {filesTotal} har lagts till",
|
|
872
|
+
doneWithErrors: "Handling slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",
|
|
873
|
+
files: "filer",
|
|
874
|
+
file: "fil",
|
|
875
|
+
},
|
|
876
|
+
en: {
|
|
877
|
+
inProgress: "Adding {filesUploaded} of {filesTotal}",
|
|
878
|
+
inProgressWithErrors: "Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",
|
|
879
|
+
done: "All {filesTotal} added successfully",
|
|
880
|
+
doneWithErrors: "Action completed, {filesUploaded} has been added successfully, {filesWithErrors} had errors",
|
|
881
|
+
files: "File",
|
|
882
|
+
file: "file",
|
|
883
|
+
},
|
|
884
|
+
};
|
|
885
|
+
this.statusMessageLabel = getLocaleString(this.statusLabelDefaults);
|
|
886
|
+
this.buttonLabelDefaults = {
|
|
887
|
+
fi: "Lisää liite",
|
|
888
|
+
sv: "Lägg till en bilaga",
|
|
889
|
+
en: "Add an attachment",
|
|
890
|
+
};
|
|
891
|
+
this.buttonLabel = getLocaleString(this.buttonLabelDefaults);
|
|
892
|
+
this.accessibleButtonLabel = undefined;
|
|
893
|
+
this.theme = "";
|
|
894
|
+
this.disabled = false;
|
|
895
|
+
this.identifier = undefined;
|
|
896
|
+
this.margin = "auto";
|
|
897
|
+
this.required = false;
|
|
898
|
+
this.alignment = "middle";
|
|
899
|
+
this.hideGroups = false;
|
|
900
|
+
this.files = new Map();
|
|
901
|
+
this.valid = !this.required;
|
|
902
|
+
this.labelDefaults = {
|
|
903
|
+
fi: "Lisää liite",
|
|
904
|
+
sv: "Lägg till en bilaga",
|
|
905
|
+
en: "Add attachments",
|
|
906
|
+
};
|
|
907
|
+
this.label = getLocaleString(this.labelDefaults);
|
|
908
|
+
this.descriptionDefaults = {
|
|
909
|
+
en: "You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",
|
|
910
|
+
sv: "Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",
|
|
911
|
+
fi: "Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena.",
|
|
912
|
+
};
|
|
913
|
+
this.description = getLocaleString(this.descriptionDefaults);
|
|
914
|
+
this.fileListEmptyDefaults = {
|
|
915
|
+
fi: "Ei vielä lisättyjä tiedostoja.",
|
|
916
|
+
sv: "Inga filer har lagts till ännu.",
|
|
917
|
+
en: "No files added yet.",
|
|
918
|
+
};
|
|
919
|
+
this.fileListEmpty = getLocaleString(this.fileListEmptyDefaults);
|
|
920
|
+
this.error = "";
|
|
921
|
+
this.errorCodes = errorCodes;
|
|
922
|
+
this.name = undefined;
|
|
923
|
+
this.maxBytes = 200000000;
|
|
924
|
+
this.maxBytesTotal = undefined;
|
|
925
|
+
this.maxFiles = 99;
|
|
926
|
+
this.allowedExtensions = "all";
|
|
927
|
+
this.allowedMimetypes = "*";
|
|
928
|
+
this.multiple = true;
|
|
929
|
+
this.limitSelection = false;
|
|
930
|
+
this.value = undefined;
|
|
931
|
+
this.groups = [
|
|
932
|
+
{
|
|
933
|
+
id: this.DefaultGroups.pending,
|
|
934
|
+
label: {
|
|
935
|
+
en: "Files to upload",
|
|
936
|
+
sv: "Filer att ladda",
|
|
937
|
+
fi: "Ladattavat tiedostot",
|
|
938
|
+
},
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
id: this.DefaultGroups.success,
|
|
942
|
+
label: {
|
|
943
|
+
fi: "Valmiit tiedostot",
|
|
944
|
+
sv: "Files success",
|
|
945
|
+
en: "Files success",
|
|
946
|
+
},
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
id: this.DefaultGroups.failure,
|
|
950
|
+
label: {
|
|
951
|
+
fi: "Tiedostot, joissa on virheitä",
|
|
952
|
+
sv: "Filer med fel",
|
|
953
|
+
en: "Files with errors",
|
|
954
|
+
},
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
id: this.DefaultGroups.inprogress,
|
|
958
|
+
label: {
|
|
959
|
+
fi: "Kesken olevat tiedostot",
|
|
960
|
+
sv: "Filer inprogress",
|
|
961
|
+
en: "Files inprogress",
|
|
962
|
+
},
|
|
963
|
+
},
|
|
964
|
+
];
|
|
1132
965
|
}
|
|
1133
966
|
watchValidHandler(newValue, oldValue) {
|
|
1134
967
|
if (newValue !== oldValue) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetVisuallyHidden$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetVisuallyHidden$1, d as defineCustomElement$1 } from './p-10feffd3.js';
|
|
5
5
|
|
|
6
6
|
const DuetVisuallyHidden = DuetVisuallyHidden$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|