@duetds/components 10.1.0 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hydrate/index.js +342 -265
- package/hydrate/index.mjs +342 -265
- package/lib/cjs/{a11y-utils-DzwEPbds.js → a11y-utils-Dt4L3QkG.js} +1 -1
- package/lib/cjs/{app-globals-BtFYkwDf.js → app-globals-1gECxmAH.js} +1 -1
- package/lib/cjs/{common-strings-CC6Xpjb8.js → common-strings-DMaSb4Ld.js} +8 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +5 -5
- package/lib/cjs/duet-alert.cjs.entry.js +5 -5
- package/lib/cjs/duet-badge.cjs.entry.js +6 -6
- package/lib/cjs/duet-banner.cjs.entry.js +5 -5
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +7 -7
- package/lib/cjs/duet-button_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-callout.cjs.entry.js +5 -5
- package/lib/cjs/duet-caption_4.cjs.entry.js +22 -16
- package/lib/cjs/duet-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-checkbox.cjs.entry.js +19 -5
- package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
- package/lib/cjs/duet-chip.cjs.entry.js +4 -4
- package/lib/cjs/duet-choice_2.cjs.entry.js +13 -13
- package/lib/cjs/duet-collapsible.cjs.entry.js +6 -6
- package/lib/cjs/duet-combobox.cjs.entry.js +32 -11
- package/lib/cjs/duet-contact-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +3 -3
- package/lib/cjs/duet-date-picker.cjs.entry.js +9 -9
- package/lib/cjs/duet-divider_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +12 -12
- package/lib/cjs/duet-empty-state.cjs.entry.js +4 -4
- package/lib/cjs/duet-fieldset.cjs.entry.js +7 -7
- package/lib/cjs/duet-file-chooser.cjs.entry.js +3 -3
- package/lib/cjs/duet-footer.cjs.entry.js +25 -18
- package/lib/cjs/duet-grid_2.cjs.entry.js +7 -6
- package/lib/cjs/duet-header_2.cjs.entry.js +8 -8
- package/lib/cjs/duet-hero.cjs.entry.js +11 -11
- package/lib/cjs/duet-icon.cjs.entry.js +7 -7
- package/lib/cjs/duet-indicator.cjs.entry.js +4 -4
- package/lib/cjs/duet-input_2.cjs.entry.js +13 -13
- package/lib/cjs/duet-layout.cjs.entry.js +7 -7
- package/lib/cjs/duet-list_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +8 -8
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar.cjs.entry.js +6 -6
- package/lib/cjs/duet-modal.cjs.entry.js +15 -15
- package/lib/cjs/duet-multiselect.cjs.entry.js +10 -10
- package/lib/cjs/duet-nav.cjs.entry.js +3 -3
- package/lib/cjs/duet-notification_2.cjs.entry.js +9 -9
- package/lib/cjs/duet-number-input.cjs.entry.js +8 -8
- package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
- package/lib/cjs/duet-page-heading.cjs.entry.js +4 -4
- package/lib/cjs/duet-pagination_2.cjs.entry.js +18 -18
- package/lib/cjs/duet-panel.cjs.entry.js +4 -4
- package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +12 -12
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +7 -7
- package/lib/cjs/duet-radio_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-range-slider.cjs.entry.js +7 -7
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +17 -17
- package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
- package/lib/cjs/duet-select.cjs.entry.js +9 -9
- package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
- package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
- package/lib/cjs/duet-share-chart.cjs.entry.js +8 -8
- package/lib/cjs/duet-show-more.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout-link.cjs.entry.js +8 -8
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +13 -13
- package/lib/cjs/duet-slideout.cjs.entry.js +12 -12
- package/lib/cjs/duet-status-icon.cjs.entry.js +4 -4
- package/lib/cjs/duet-step_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +8 -8
- package/lib/cjs/duet-textarea.cjs.entry.js +8 -8
- package/lib/cjs/duet-toggle.cjs.entry.js +25 -7
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +9 -9
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +9 -9
- package/lib/cjs/duet-tooltip.cjs.entry.js +5 -5
- package/lib/cjs/duet-tray.cjs.entry.js +6 -6
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-BuseNrD9.js → errorcodes.utils-DtuBPKs3.js} +1 -1
- package/lib/cjs/{focus-utils-Cbk0cnOs.js → focus-utils-n84nLLND.js} +1 -1
- package/lib/cjs/{index-blgG8IJB.js → index-BfggyC6D.js} +1 -1
- package/lib/cjs/{label-DeanNJa0.js → label-CFsg_9mi.js} +1 -1
- package/lib/cjs/{language-utils-DWW8tvkB.js → language-utils-UQJMUCLw.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-Byx247xX.js → slot-utils-BEQnfNX2.js} +1 -1
- package/lib/cjs/{themeable-component-DcR7DztR.js → themeable-component-BkwBlXGz.js} +1 -1
- package/lib/cjs/{token-utils-BJtlJxnJ.js → token-utils-GXq9O-4F.js} +1 -1
- package/lib/cjs/{tokens-BxWzRxOl.js → tokens-DZMc8s3K.js} +3 -0
- package/lib/cjs/{tokens.module-DJt2h4FX.js → tokens.module-Bc3oSOjD.js} +3 -0
- package/lib/collection/common-strings.js +7 -1
- package/lib/collection/components/duet-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-checkbox/duet-checkbox.css +11 -2
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +24 -2
- package/lib/collection/components/duet-chip/duet-chip.js +1 -1
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.js +6 -6
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -2
- package/lib/collection/components/duet-combobox/duet-combobox.css +0 -5
- package/lib/collection/components/duet-combobox/duet-combobox.js +27 -6
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.css +2 -2
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +2 -2
- package/lib/collection/components/duet-divider/duet-divider.js +1 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +2 -2
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +2 -2
- package/lib/collection/components/duet-fieldset/duet-fieldset.css +2 -17
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
- package/lib/collection/components/duet-footer/duet-footer.js +20 -13
- package/lib/collection/components/duet-grid/duet-grid.js +2 -2
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +3 -2
- package/lib/collection/components/duet-heading/duet-heading.js +2 -2
- package/lib/collection/components/duet-hero/duet-hero.css +1 -0
- package/lib/collection/components/duet-hero/duet-hero.js +5 -5
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-indicator/duet-indicator.js +1 -1
- package/lib/collection/components/duet-input/duet-input.js +6 -6
- package/lib/collection/components/duet-layout/duet-layout.js +5 -5
- package/lib/collection/components/duet-link/duet-link.css +42 -8
- package/lib/collection/components/duet-link/duet-link.js +11 -5
- package/lib/collection/components/duet-list/duet-list.js +1 -1
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-logo/duet-logo.js +1 -1
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +3 -3
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
- package/lib/collection/components/duet-modal/duet-modal.js +7 -7
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
- package/lib/collection/components/duet-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +3 -3
- package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
- package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
- package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
- package/lib/collection/components/duet-panel/duet-panel.js +2 -2
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +3 -3
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
- package/lib/collection/components/duet-radio/duet-radio.js +3 -3
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
- package/lib/collection/components/duet-select/duet-select.js +5 -5
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
- package/lib/collection/components/duet-share-chart/duet-share-chart.js +2 -2
- package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
- package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
- package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
- package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
- package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
- package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
- package/lib/collection/components/duet-step/duet-step.js +2 -2
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
- package/lib/collection/components/duet-tab/duet-tab.js +2 -2
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.js +3 -3
- package/lib/collection/components/duet-toggle/duet-toggle.css +22 -9
- package/lib/collection/components/duet-toggle/duet-toggle.js +84 -2
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
- package/lib/collection/components/duet-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.js +2 -2
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/{p-83c7bfe0.entry.js → p-01ede40e.entry.js} +1 -1
- package/lib/duet/{p-ab74c20e.entry.js → p-0c677bac.entry.js} +1 -1
- package/lib/duet/{p-8f2fbd03.entry.js → p-0e6feeaf.entry.js} +1 -1
- package/lib/duet/{p-4862f0c6.entry.js → p-10d943ea.entry.js} +1 -1
- package/lib/duet/{p-b2f22262.entry.js → p-11e17622.entry.js} +1 -1
- package/lib/duet/{p-6cf8e63d.entry.js → p-16db57d6.entry.js} +1 -1
- package/lib/duet/{p-e195c5e2.entry.js → p-19dfac00.entry.js} +1 -1
- package/lib/duet/{p-a9692b2a.entry.js → p-1a9f5440.entry.js} +1 -1
- package/lib/duet/{p-1d8da041.entry.js → p-1b1018d1.entry.js} +1 -1
- package/lib/duet/p-1e4903a7.entry.js +4 -0
- package/lib/duet/{p-36d2a441.entry.js → p-1e82c441.entry.js} +1 -1
- package/lib/duet/{p-960ada39.entry.js → p-1f76c77a.entry.js} +1 -1
- package/lib/duet/{p-8857eb7b.entry.js → p-2871d3f5.entry.js} +1 -1
- package/lib/duet/{p-2d0eb4b5.entry.js → p-2a1db046.entry.js} +1 -1
- package/lib/duet/{p-14d64261.entry.js → p-2b41b6c3.entry.js} +1 -1
- package/lib/duet/{p-e7c058b0.entry.js → p-2d813dd9.entry.js} +1 -1
- package/lib/duet/{p-d26c644d.entry.js → p-2e99a3d1.entry.js} +1 -1
- package/lib/duet/{p-486a4bc6.entry.js → p-308328c0.entry.js} +1 -1
- package/lib/duet/p-31c03dbc.entry.js +4 -0
- package/lib/duet/p-32ae38d2.entry.js +4 -0
- package/lib/duet/p-3650e089.entry.js +4 -0
- package/lib/duet/{p-43f15ad6.entry.js → p-3b6f0ed3.entry.js} +1 -1
- package/lib/duet/{p-4d14780b.entry.js → p-3c19d851.entry.js} +1 -1
- package/lib/duet/{p-dc57fff7.entry.js → p-3d85dbf7.entry.js} +1 -1
- package/lib/duet/p-3dd1304e.entry.js +4 -0
- package/lib/duet/{p-bb8634c4.entry.js → p-413ccfee.entry.js} +1 -1
- package/lib/duet/{p-04c9c13e.entry.js → p-45f8d839.entry.js} +1 -1
- package/lib/duet/{p-3b52f20d.entry.js → p-493b240f.entry.js} +1 -1
- package/lib/duet/{p-e3780362.entry.js → p-4f16859a.entry.js} +1 -1
- package/lib/duet/{p-320e4688.entry.js → p-50f80b6c.entry.js} +1 -1
- package/lib/duet/{p-1380370e.entry.js → p-5302f338.entry.js} +1 -1
- package/lib/duet/{p-40956ec6.entry.js → p-549e68da.entry.js} +1 -1
- package/lib/duet/{p-a28d4312.entry.js → p-6333c633.entry.js} +1 -1
- package/lib/duet/{p-bd0ad7c3.entry.js → p-6969647c.entry.js} +1 -1
- package/lib/duet/{p-d4e2e471.entry.js → p-6b06705f.entry.js} +1 -1
- package/lib/duet/{p-dc4d385d.entry.js → p-6b9ac7ea.entry.js} +1 -1
- package/lib/duet/{p-d9f504b7.entry.js → p-6bddd7b7.entry.js} +1 -1
- package/lib/duet/{p-db22799a.entry.js → p-7515a195.entry.js} +1 -1
- package/lib/duet/{p-24f206ab.entry.js → p-7916d25e.entry.js} +1 -1
- package/lib/duet/{p-6662042f.entry.js → p-81e55a2f.entry.js} +1 -1
- package/lib/duet/{p-ec5b54f3.entry.js → p-82ed09c9.entry.js} +1 -1
- package/lib/duet/{p-2c4f4896.entry.js → p-89cba286.entry.js} +1 -1
- package/lib/duet/p-8RjiAqaE.js +4 -0
- package/lib/duet/{p-140b87f4.entry.js → p-8a9ad498.entry.js} +1 -1
- package/lib/duet/{p-0d1a4928.entry.js → p-8ecfef50.entry.js} +1 -1
- package/lib/duet/{p-3a108321.entry.js → p-8f43c23a.entry.js} +1 -1
- package/lib/duet/{p-6qQ9c51e.js → p-8odxhfeD.js} +1 -1
- package/lib/duet/{p-d8ebfd49.entry.js → p-9289e2d6.entry.js} +1 -1
- package/lib/duet/{p-9dc2b0d2.entry.js → p-9bcb57a9.entry.js} +1 -1
- package/lib/duet/{p-57ba8f5f.entry.js → p-9efde101.entry.js} +1 -1
- package/lib/duet/{p-1U75pxcR.js → p-BcVbsW_2.js} +1 -1
- package/lib/duet/p-BhRNiBUo.js +4 -0
- package/lib/duet/p-BxH0r0DA.js +5 -0
- package/lib/duet/p-C-hMrqKD.js +4 -0
- package/lib/duet/{p-CxgSYSyh.js → p-C7D5HRhY.js} +1 -1
- package/lib/duet/p-CKemMSHL.js +4 -0
- package/lib/duet/p-CjSEMtsI.js +4 -0
- package/lib/duet/{p-Bg75Vqqq.js → p-D7VOYHjg.js} +1 -1
- package/lib/duet/p-DMjxD3N-.js +4 -0
- package/lib/duet/p-LYJwm2Mz.js +4 -0
- package/lib/duet/{p-fe34272e.entry.js → p-a408c8ef.entry.js} +1 -1
- package/lib/duet/{p-9ee8ddc9.entry.js → p-a8b8aa7f.entry.js} +1 -1
- package/lib/duet/{p-bcb8d390.entry.js → p-abb3a02c.entry.js} +1 -1
- package/lib/duet/{p-90981fbb.entry.js → p-ad2d810a.entry.js} +1 -1
- package/lib/duet/{p-a1e60676.entry.js → p-ad86f19c.entry.js} +1 -1
- package/lib/duet/{p-276f8827.entry.js → p-ad8929e4.entry.js} +1 -1
- package/lib/duet/p-aef55e42.entry.js +4 -0
- package/lib/duet/{p-823522c9.entry.js → p-b178aa13.entry.js} +1 -1
- package/lib/duet/{p-7a8f23b7.entry.js → p-b8fe3df0.entry.js} +1 -1
- package/lib/duet/{p-4de6cd49.entry.js → p-b9327667.entry.js} +1 -1
- package/lib/duet/{p-9fd10aed.entry.js → p-b9c35e5e.entry.js} +1 -1
- package/lib/duet/{p-6043a6de.entry.js → p-bbaa683a.entry.js} +1 -1
- package/lib/duet/{p-93303c68.entry.js → p-bdb10c77.entry.js} +1 -1
- package/lib/duet/{p-72c7816e.entry.js → p-bdd24cc6.entry.js} +1 -1
- package/lib/duet/p-be91dd8c.entry.js +4 -0
- package/lib/duet/{p-d31cafc9.entry.js → p-cb90478e.entry.js} +1 -1
- package/lib/duet/{p-de255274.entry.js → p-cdc6285c.entry.js} +1 -1
- package/lib/duet/{p-e2e7b3bd.entry.js → p-d1db3194.entry.js} +1 -1
- package/lib/duet/{p-f6720f8c.entry.js → p-d2c50765.entry.js} +1 -1
- package/lib/duet/{p-6862c7d5.entry.js → p-d625732a.entry.js} +1 -1
- package/lib/duet/{p-f6f6b960.entry.js → p-d8ddd6aa.entry.js} +1 -1
- package/lib/duet/{p-6b2823ed.entry.js → p-d948db17.entry.js} +1 -1
- package/lib/duet/{p-ac_1YilV.js → p-dX4lCxX-.js} +1 -1
- package/lib/duet/{p-db594a93.entry.js → p-dc7b2908.entry.js} +1 -1
- package/lib/duet/{p-fb4ab1f5.entry.js → p-dfb7e2a4.entry.js} +1 -1
- package/lib/duet/p-e042f54a.entry.js +4 -0
- package/lib/duet/{p-b2464865.entry.js → p-e197cf15.entry.js} +1 -1
- package/lib/duet/p-e21285ad.entry.js +4 -0
- package/lib/duet/p-e5173b25.entry.js +4 -0
- package/lib/duet/p-e6a05ef9.entry.js +4 -0
- package/lib/duet/{p-29e677bc.entry.js → p-ecad641c.entry.js} +1 -1
- package/lib/duet/{p-ba39d3ad.entry.js → p-ed84afb6.entry.js} +1 -1
- package/lib/duet/p-ee7e1387.entry.js +4 -0
- package/lib/duet/{p-581e1e08.entry.js → p-f2cc172e.entry.js} +1 -1
- package/lib/duet/p-f55ffe76.entry.js +4 -0
- package/lib/duet/{p-fd120a7b.entry.js → p-f80c76b3.entry.js} +1 -1
- package/lib/duet/{p-ca3fe683.entry.js → p-f920d7a8.entry.js} +1 -1
- package/lib/duet/{p-de639eff.entry.js → p-fc427a9c.entry.js} +1 -1
- package/lib/duet/{p-d35a4b95.entry.js → p-fd1bf11b.entry.js} +1 -1
- package/lib/esm/{a11y-utils-BuWx2D09.js → a11y-utils-Cc259XJX.js} +1 -1
- package/lib/esm/{app-globals-DRDLN5wE.js → app-globals-CIsV7gbu.js} +1 -1
- package/lib/esm/{common-strings-CVPfl9fc.js → common-strings-8RjiAqaE.js} +8 -2
- package/lib/esm/duet-action-button.entry.js +5 -5
- package/lib/esm/duet-alert.entry.js +5 -5
- package/lib/esm/duet-badge.entry.js +6 -6
- package/lib/esm/duet-banner.entry.js +5 -5
- package/lib/esm/duet-breadcrumb.entry.js +6 -6
- package/lib/esm/duet-breadcrumbs.entry.js +7 -7
- package/lib/esm/duet-button_2.entry.js +7 -7
- package/lib/esm/duet-callout.entry.js +5 -5
- package/lib/esm/duet-caption_4.entry.js +22 -16
- package/lib/esm/duet-card.entry.js +5 -5
- package/lib/esm/duet-checkbox.entry.js +19 -5
- package/lib/esm/duet-checkmark.entry.js +4 -4
- package/lib/esm/duet-chip.entry.js +4 -4
- package/lib/esm/duet-choice_2.entry.js +13 -13
- package/lib/esm/duet-collapsible.entry.js +6 -6
- package/lib/esm/duet-combobox.entry.js +33 -12
- package/lib/esm/duet-contact-card.entry.js +5 -5
- package/lib/esm/duet-cookie-consent.entry.js +3 -3
- package/lib/esm/duet-date-picker.entry.js +9 -9
- package/lib/esm/duet-divider_2.entry.js +6 -6
- package/lib/esm/duet-editable-table_3.entry.js +12 -12
- package/lib/esm/duet-empty-state.entry.js +4 -4
- package/lib/esm/duet-fieldset.entry.js +7 -7
- package/lib/esm/duet-file-chooser.entry.js +3 -3
- package/lib/esm/duet-footer.entry.js +25 -18
- package/lib/esm/duet-grid_2.entry.js +7 -6
- package/lib/esm/duet-header_2.entry.js +8 -8
- package/lib/esm/duet-hero.entry.js +11 -11
- package/lib/esm/duet-icon.entry.js +7 -7
- package/lib/esm/duet-indicator.entry.js +4 -4
- package/lib/esm/duet-input_2.entry.js +13 -13
- package/lib/esm/duet-layout.entry.js +7 -7
- package/lib/esm/duet-list_2.entry.js +5 -5
- package/lib/esm/duet-menu-bar-button.entry.js +4 -4
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
- package/lib/esm/duet-menu-bar-item.entry.js +8 -8
- package/lib/esm/duet-menu-bar-link.entry.js +4 -4
- package/lib/esm/duet-menu-bar.entry.js +6 -6
- package/lib/esm/duet-modal.entry.js +15 -15
- package/lib/esm/duet-multiselect.entry.js +10 -10
- package/lib/esm/duet-nav.entry.js +3 -3
- package/lib/esm/duet-notification_2.entry.js +9 -9
- package/lib/esm/duet-number-input.entry.js +8 -8
- package/lib/esm/duet-overlay.entry.js +3 -3
- package/lib/esm/duet-page-heading.entry.js +4 -4
- package/lib/esm/duet-pagination_2.entry.js +18 -18
- package/lib/esm/duet-panel.entry.js +4 -4
- package/lib/esm/duet-phone-input.entry.js +4 -4
- package/lib/esm/duet-popup-menu_2.entry.js +12 -12
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +7 -7
- package/lib/esm/duet-radio_2.entry.js +7 -7
- package/lib/esm/duet-range-slider.entry.js +7 -7
- package/lib/esm/duet-scrollable_3.entry.js +17 -17
- package/lib/esm/duet-section-layout.entry.js +4 -4
- package/lib/esm/duet-select.entry.js +9 -9
- package/lib/esm/duet-shaped-image.entry.js +4 -4
- package/lib/esm/duet-share-chart-item.entry.js +2 -2
- package/lib/esm/duet-share-chart.entry.js +8 -8
- package/lib/esm/duet-show-more.entry.js +5 -5
- package/lib/esm/duet-slideout-lang.entry.js +4 -4
- package/lib/esm/duet-slideout-link.entry.js +8 -8
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
- package/lib/esm/duet-slideout-panel.entry.js +13 -13
- package/lib/esm/duet-slideout.entry.js +12 -12
- package/lib/esm/duet-status-icon.entry.js +4 -4
- package/lib/esm/duet-step_2.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-item.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
- package/lib/esm/duet-submenu-bar.entry.js +8 -8
- package/lib/esm/duet-textarea.entry.js +8 -8
- package/lib/esm/duet-toggle.entry.js +25 -7
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
- package/lib/esm/duet-toolbar-item.entry.js +9 -9
- package/lib/esm/duet-toolbar-link.entry.js +4 -4
- package/lib/esm/duet-toolbar.entry.js +4 -4
- package/lib/esm/duet-tooltip-button_2.entry.js +9 -9
- package/lib/esm/duet-tooltip.entry.js +5 -5
- package/lib/esm/duet-tray.entry.js +6 -6
- package/lib/esm/duet-upload-aria-status.entry.js +2 -2
- package/lib/esm/duet-upload-item.entry.js +6 -6
- package/lib/esm/duet-visually-hidden.entry.js +2 -2
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-CjUqHglR.js → errorcodes.utils-KnjOo5JF.js} +1 -1
- package/lib/esm/{focus-utils-Do5KtPgs.js → focus-utils-Cgrh4d7y.js} +1 -1
- package/lib/esm/{index-BhYt_2Vd.js → index-BxH0r0DA.js} +1 -1
- package/lib/esm/{label-BRuShBbJ.js → label-DA-iWWhe.js} +1 -1
- package/lib/esm/{language-utils-D2jecvOr.js → language-utils-BqCiY8zW.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-nDLvv_4O.js → slot-utils-Bi4BkMYE.js} +1 -1
- package/lib/esm/{themeable-component-C0nhBgYw.js → themeable-component-EeTaKAPP.js} +1 -1
- package/lib/esm/{token-utils-Dks4GBDa.js → token-utils-ibPg9tBe.js} +1 -1
- package/lib/esm/{tokens-DOuLHrH5.js → tokens-CjSEMtsI.js} +3 -0
- package/lib/esm/{tokens.module-BDAqOMlM.js → tokens.module-C-hMrqKD.js} +3 -1
- package/lib/types/common-strings.d.ts +1 -0
- package/lib/types/common-types.d.ts +8 -1
- package/lib/types/components/duet-checkbox/duet-checkbox.d.ts +6 -0
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +4 -0
- package/lib/types/components/duet-footer/duet-footer.d.ts +2 -0
- package/lib/types/components/duet-grid-item/duet-grid-item.d.ts +4 -0
- package/lib/types/components/duet-link/duet-link.d.ts +3 -1
- package/lib/types/components/duet-toggle/duet-toggle.d.ts +16 -0
- package/lib/types/components.d.ts +28 -2
- package/package.json +5 -5
- package/lib/duet/p-01ce999b.entry.js +0 -4
- package/lib/duet/p-0fabcede.entry.js +0 -4
- package/lib/duet/p-141f03da.entry.js +0 -4
- package/lib/duet/p-28325583.entry.js +0 -4
- package/lib/duet/p-30ae4852.entry.js +0 -4
- package/lib/duet/p-540fc47b.entry.js +0 -4
- package/lib/duet/p-5db08755.entry.js +0 -4
- package/lib/duet/p-5f329414.entry.js +0 -4
- package/lib/duet/p-6d90a89c.entry.js +0 -4
- package/lib/duet/p-90eed96d.entry.js +0 -4
- package/lib/duet/p-94f1de2c.entry.js +0 -4
- package/lib/duet/p-B0pM7dNk.js +0 -4
- package/lib/duet/p-BDAqOMlM.js +0 -4
- package/lib/duet/p-BhYt_2Vd.js +0 -5
- package/lib/duet/p-BtxOyTe3.js +0 -4
- package/lib/duet/p-CVPfl9fc.js +0 -4
- package/lib/duet/p-DJzDRf9m.js +0 -4
- package/lib/duet/p-DOuLHrH5.js +0 -4
- package/lib/duet/p-a9cf57f5.entry.js +0 -4
- package/lib/duet/p-afabb51f.entry.js +0 -4
- package/lib/duet/p-xwlQQBxs.js +0 -4
|
@@ -247,17 +247,17 @@ export class DuetTextarea {
|
|
|
247
247
|
*/
|
|
248
248
|
render() {
|
|
249
249
|
const identifier = this.identifier || this.textareaId;
|
|
250
|
-
return (h(Host, { key: '
|
|
250
|
+
return (h(Host, { key: '48030acc05f6f8415df8753151991eb3c83ae370', class: {
|
|
251
251
|
"duet-m-0": this.margin === "none",
|
|
252
252
|
"duet-has-counter": this.counter && !this.error,
|
|
253
253
|
"duet-expand": this.expand,
|
|
254
|
-
} }, h("div", { key: '
|
|
254
|
+
} }, h("div", { key: 'e8cac00d84bfbef67bb1f30037bb986905fc2d94', class: {
|
|
255
255
|
"duet-textarea-container": true,
|
|
256
256
|
"duet-theme-turva": this.theme === "turva",
|
|
257
257
|
"duet-label-hidden": this.labelHidden,
|
|
258
258
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
259
259
|
"has-error": !!this.error,
|
|
260
|
-
} }, h(DuetInternalLabel, { key: '
|
|
260
|
+
} }, h(DuetInternalLabel, { key: '2f25117dc9dfce852022a09efb8a1b0c2117bb0c', theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, margin: this.isCaptionVisible ? "small" : "auto", color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (h("duet-tooltip", { key: 'b5c614194a8699068a2b9c9156cc2a1955d8ae8c', direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), h("slot", { key: '0a72de201a51d22df2604f3fa1a5fba77f9de897', name: "tooltip" }), this.caption && (h("duet-caption", { key: 'fc1baf023f9c4b81131de5244bfb73c925ab265d', id: this.topCaptionId, size: "medium", theme: this.theme === "turva" ? "turva" : "default" }, this.caption)), h("div", { key: '3395893df5eacc499f082eade175e6bb0ce0512c', class: "duet-textarea-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { key: '6a71fad928ba647c069c05439e86a5e6eefd4e40', id: this.topCaptionPlaceholderId, class: "duet-textarea-placeholder", size: "small" }, this.placeholder)), h("textarea", { key: '28c7559a63890bb80d6503e3028ea430f24c739a', onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown, ref: input => (this.nativeInput = input), class: { "duet-textarea": true, disabled: this.disabled }, value: this.value, disabled: this.disabled, "aria-labelledby": this.accessibleLabelledBy ? `${this.labelId} ${this.accessibleLabelledBy}` : this.labelId, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.getDescribedBy(), "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, placeholder: this.placeholder, spellcheck: "false", required: this.required, rows: this.rows, minlength: this.minlength, maxlength: this.maxlength, role: this.role, name: this.name, id: identifier })), h("duet-grid", { key: '66ddcb0507cf754111843d5aa871c80ae8d7207e', alignment: "stretch" }, h("duet-grid-item", { key: '79edd18dd19f6500b2c471e960c5fefc1b9492be', margin: "none", fill: true }, h("div", { key: '38d0f75afeefcd4ba8afb2f87802a64885fbc0ea', class: "duet-textarea-help duet-textarea-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", { key: 'a03fdd80d3a82221abbdeeff8c368d8208efd2b1' }, this.error))), h("duet-grid-item", { key: 'deb6e76efba3354828dd21acd8a362c91c3d2e4f', margin: "none", class: "duet-character-count-caption" }, this.counter && h(CharacterCount, { key: '282fe11b68a1bdd7c63b8071cfd37a3e33086bbc', theme: this.theme, value: this.value, maxlength: this.maxlength }))), this.counter && this.maxlength && (h("duet-visually-hidden", { key: '06b481e31a4dad73a6538a943274f898410be541', id: this.characterCountId, class: "visually-hidden-counter" }, this.visuallyHiddenCounterText)))));
|
|
261
261
|
}
|
|
262
262
|
static get is() { return "duet-textarea"; }
|
|
263
263
|
static get encapsulation() { return "shadow"; }
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
width: 100%;
|
|
97
97
|
vertical-align: bottom;
|
|
98
98
|
-webkit-tap-highlight-color: transparent;
|
|
99
|
+
cursor: pointer;
|
|
99
100
|
}
|
|
100
101
|
:host:last-child, :host:last-of-type {
|
|
101
102
|
margin-right: 0 !important;
|
|
@@ -108,9 +109,12 @@
|
|
|
108
109
|
margin: 0 !important;
|
|
109
110
|
}
|
|
110
111
|
|
|
111
|
-
duet-
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
:host(.duet-toggle-is-disabled) {
|
|
113
|
+
cursor: not-allowed;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:host(.duet-toggle-is-loading) {
|
|
117
|
+
cursor: wait;
|
|
114
118
|
}
|
|
115
119
|
|
|
116
120
|
.duet-side-label {
|
|
@@ -118,9 +122,6 @@ duet-label {
|
|
|
118
122
|
gap: 12px;
|
|
119
123
|
align-items: center;
|
|
120
124
|
}
|
|
121
|
-
.duet-side-label duet-label {
|
|
122
|
-
width: auto !important;
|
|
123
|
-
}
|
|
124
125
|
|
|
125
126
|
.duet-reverse-label {
|
|
126
127
|
flex-direction: row-reverse;
|
|
@@ -158,9 +159,6 @@ duet-label {
|
|
|
158
159
|
background-color: rgb(255, 255, 255);
|
|
159
160
|
box-shadow: -1px 0 2px #660619;
|
|
160
161
|
}
|
|
161
|
-
.duet-switch input:disabled + .duet-slider {
|
|
162
|
-
cursor: default;
|
|
163
|
-
}
|
|
164
162
|
.duet-switch input:disabled + .duet-slider::before {
|
|
165
163
|
box-shadow: none;
|
|
166
164
|
}
|
|
@@ -218,6 +216,15 @@ duet-label {
|
|
|
218
216
|
box-shadow: 1px 0 2px 0 #5d6266;
|
|
219
217
|
transition: 300ms ease;
|
|
220
218
|
}
|
|
219
|
+
.duet-toggle-is-loading .duet-slider::before {
|
|
220
|
+
transform: translateX(10px) !important;
|
|
221
|
+
}
|
|
222
|
+
.duet-toggle-is-loading .duet-slider {
|
|
223
|
+
cursor: wait;
|
|
224
|
+
}
|
|
225
|
+
.duet-toggle-is-disabled .duet-slider {
|
|
226
|
+
cursor: not-allowed;
|
|
227
|
+
}
|
|
221
228
|
.duet-theme-turva .duet-slider {
|
|
222
229
|
background-color: rgb(143, 147, 158);
|
|
223
230
|
}
|
|
@@ -226,6 +233,12 @@ duet-label {
|
|
|
226
233
|
box-shadow: 1px 0 2px 0 #00334d;
|
|
227
234
|
}
|
|
228
235
|
|
|
236
|
+
duet-spinner {
|
|
237
|
+
margin: 2px;
|
|
238
|
+
cursor: wait;
|
|
239
|
+
transform: translate(-2px, -2px) scale(80%);
|
|
240
|
+
}
|
|
241
|
+
|
|
229
242
|
.duet-label-hidden .duet-internal-label {
|
|
230
243
|
position: absolute !important;
|
|
231
244
|
top: 0;
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { h, Host } from "@stencil/core";
|
|
5
5
|
import { inheritGlobalTheme } from "../../common";
|
|
6
|
+
import { DuetStringsCompleteDefaults, DuetStringsLoadingDefaults } from "../../common-strings";
|
|
7
|
+
import { getLanguage } from "../../utils/language-utils";
|
|
6
8
|
import { DuetInternalLabel } from "../../common/label";
|
|
7
9
|
import { createID } from "../../utils/create-id";
|
|
8
10
|
import { subscribeTabbingChange, unsubscribeTabbingChange } from "../../utils/keyboard-utils";
|
|
@@ -34,6 +36,10 @@ export class DuetToggle {
|
|
|
34
36
|
* Aria description the button
|
|
35
37
|
*/
|
|
36
38
|
this.accessibleDescription = undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Loading state of the toggle
|
|
41
|
+
*/
|
|
42
|
+
this.loading = false;
|
|
37
43
|
/**
|
|
38
44
|
* Label for the toggle.
|
|
39
45
|
*/
|
|
@@ -66,11 +72,15 @@ export class DuetToggle {
|
|
|
66
72
|
* Component event handling.
|
|
67
73
|
*/
|
|
68
74
|
this.onClick = (ev) => {
|
|
75
|
+
console.log("click");
|
|
69
76
|
ev.preventDefault();
|
|
70
77
|
this.setFocus();
|
|
71
78
|
this.checked = !this.checked;
|
|
72
79
|
};
|
|
73
80
|
}
|
|
81
|
+
setLoadingState() {
|
|
82
|
+
this.loadingComplete = !this.loading;
|
|
83
|
+
}
|
|
74
84
|
checkedChanged(isChecked) {
|
|
75
85
|
this.duetChange.emit({
|
|
76
86
|
checked: isChecked,
|
|
@@ -109,13 +119,19 @@ export class DuetToggle {
|
|
|
109
119
|
*/
|
|
110
120
|
render() {
|
|
111
121
|
const identifier = this.identifier || this.toggleId;
|
|
112
|
-
return (h(Host, { key: '
|
|
122
|
+
return (h(Host, { key: '512f0afaafc2cd0bb097f52be094a57d35933d8f', onClick: this.disabled || this.loading ? undefined : this.onClick, class: {
|
|
123
|
+
"duet-m-0": this.margin === "none",
|
|
124
|
+
"duet-toggle-is-disabled": this.disabled,
|
|
125
|
+
"duet-toggle-is-loading": this.loading,
|
|
126
|
+
} }, h("div", { key: '11a884ca254f910c8e066e28d623ee7f074a75cb', class: {
|
|
113
127
|
"duet-toggle": true,
|
|
114
128
|
"duet-theme-turva": this.theme === "turva",
|
|
115
129
|
"duet-side-label": this.labelPosition !== "top",
|
|
116
130
|
"duet-reverse-label": this.labelPosition === "right",
|
|
117
131
|
"duet-label-hidden": this.labelHidden,
|
|
118
|
-
|
|
132
|
+
"duet-toggle-is-disabled": this.disabled,
|
|
133
|
+
"duet-toggle-is-loading": this.loading,
|
|
134
|
+
} }, h(DuetInternalLabel, { key: '51c6fbc61a7322024ad75091c2b2c855738afffa', theme: this.theme, color: this.labelColor, weight: this.labelWeight, for: identifier, margin: this.labelPosition === "top" ? "auto" : "none" }, this.label), h("label", { key: '0657f6a2d4314dbc196a906495c22f94d7d3e551', class: "duet-switch" }, h("input", { key: '0f84f9f1ca13523adf2b4d86b5f9f4186016996a', type: "checkbox", value: this.value, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, id: identifier, role: this.role, name: this.name, checked: this.checked, required: this.required, disabled: this.disabled || this.loading, ref: input => (this.nativeInput = input) }), h("div", { key: '1a6c06cb5c314e5f7431ecbca9b59615dd0ac040', class: "duet-slider" }), this.loading && h("duet-spinner", { key: '94d364fd5f11a06f81b9a0160ab3630ba8bae2c0', color: "primary" }))), this.loading && (h("duet-visually-hidden", { key: '2171c862cedb3bb2eeaee72f9f6b1e9d02eac3e0', "aria-live": "polite" }, this.accessibleLabelLoading || DuetStringsLoadingDefaults[getLanguage()])), this.loadingComplete && (h("duet-visually-hidden", { key: '8671fbb46feeeb3d651cb55f0a9243c77c97ab2c', "aria-live": "polite" }, this.accessibleLabelComplete || DuetStringsCompleteDefaults[getLanguage()]))));
|
|
119
135
|
}
|
|
120
136
|
static get is() { return "duet-toggle"; }
|
|
121
137
|
static get encapsulation() { return "shadow"; }
|
|
@@ -319,6 +335,64 @@ export class DuetToggle {
|
|
|
319
335
|
"reflect": false,
|
|
320
336
|
"defaultValue": "undefined"
|
|
321
337
|
},
|
|
338
|
+
"accessibleLabelLoading": {
|
|
339
|
+
"type": "string",
|
|
340
|
+
"attribute": "accessible-label-loading",
|
|
341
|
+
"mutable": false,
|
|
342
|
+
"complexType": {
|
|
343
|
+
"original": "string",
|
|
344
|
+
"resolved": "string",
|
|
345
|
+
"references": {}
|
|
346
|
+
},
|
|
347
|
+
"required": false,
|
|
348
|
+
"optional": true,
|
|
349
|
+
"docs": {
|
|
350
|
+
"tags": [],
|
|
351
|
+
"text": "Adds accessible announcement for toggle in \"loading\" state\nIf not set, default strings are used: fi: \"Ladataan\", sv: \"Lastning\", en: \"Loading\""
|
|
352
|
+
},
|
|
353
|
+
"getter": false,
|
|
354
|
+
"setter": false,
|
|
355
|
+
"reflect": false
|
|
356
|
+
},
|
|
357
|
+
"accessibleLabelComplete": {
|
|
358
|
+
"type": "string",
|
|
359
|
+
"attribute": "accessible-label-complete",
|
|
360
|
+
"mutable": false,
|
|
361
|
+
"complexType": {
|
|
362
|
+
"original": "string",
|
|
363
|
+
"resolved": "string",
|
|
364
|
+
"references": {}
|
|
365
|
+
},
|
|
366
|
+
"required": false,
|
|
367
|
+
"optional": true,
|
|
368
|
+
"docs": {
|
|
369
|
+
"tags": [],
|
|
370
|
+
"text": "Adds accessible announcement for toggle when \"loading\" state ends.\nIf not set, default strings are used: fi: \"Valmis\", sv: \"F\u00E4rdig\", en: \"Complete\""
|
|
371
|
+
},
|
|
372
|
+
"getter": false,
|
|
373
|
+
"setter": false,
|
|
374
|
+
"reflect": false
|
|
375
|
+
},
|
|
376
|
+
"loading": {
|
|
377
|
+
"type": "boolean",
|
|
378
|
+
"attribute": "loading",
|
|
379
|
+
"mutable": false,
|
|
380
|
+
"complexType": {
|
|
381
|
+
"original": "boolean",
|
|
382
|
+
"resolved": "boolean",
|
|
383
|
+
"references": {}
|
|
384
|
+
},
|
|
385
|
+
"required": false,
|
|
386
|
+
"optional": false,
|
|
387
|
+
"docs": {
|
|
388
|
+
"tags": [],
|
|
389
|
+
"text": "Loading state of the toggle"
|
|
390
|
+
},
|
|
391
|
+
"getter": false,
|
|
392
|
+
"setter": false,
|
|
393
|
+
"reflect": false,
|
|
394
|
+
"defaultValue": "false"
|
|
395
|
+
},
|
|
322
396
|
"label": {
|
|
323
397
|
"type": "string",
|
|
324
398
|
"attribute": "label",
|
|
@@ -561,6 +635,11 @@ export class DuetToggle {
|
|
|
561
635
|
}
|
|
562
636
|
};
|
|
563
637
|
}
|
|
638
|
+
static get states() {
|
|
639
|
+
return {
|
|
640
|
+
"loadingComplete": {}
|
|
641
|
+
};
|
|
642
|
+
}
|
|
564
643
|
static get events() {
|
|
565
644
|
return [{
|
|
566
645
|
"method": "duetChange",
|
|
@@ -617,6 +696,9 @@ export class DuetToggle {
|
|
|
617
696
|
static get elementRef() { return "element"; }
|
|
618
697
|
static get watchers() {
|
|
619
698
|
return [{
|
|
699
|
+
"propName": "loading",
|
|
700
|
+
"methodName": "setLoadingState"
|
|
701
|
+
}, {
|
|
620
702
|
"propName": "checked",
|
|
621
703
|
"methodName": "checkedChanged"
|
|
622
704
|
}];
|
|
@@ -36,11 +36,11 @@ export class DuetToolbar {
|
|
|
36
36
|
: this.variation === "secondary"
|
|
37
37
|
? "secondary"
|
|
38
38
|
: "default";
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: 'c860be4ffbc7d94876629c2039b767516ae67069' }, h("nav", { key: '93355e73bf35ed26d242a3e08140140f09d4cbcf', class: {
|
|
40
40
|
"duet-toolbar": true,
|
|
41
41
|
"duet-theme-turva": this.theme === "turva",
|
|
42
42
|
[variation]: true,
|
|
43
|
-
}, "aria-label": this.accessibleLabel }, h("div", { key: '
|
|
43
|
+
}, "aria-label": this.accessibleLabel }, h("div", { key: 'a50a6a5ec9b49d85edcbc10a275264e95a6ad93b', class: "container" }, h("div", { key: 'd3187fa520b84678f46876238269b9e3f48aced4', class: "list", role: "list" }, h("slot", { key: 'd0a092e1c45ac428b73d549b94ac932e3f4e871e', name: "left" })), h("div", { key: '90c02bddb8937b6e48648a2b758211ab88ae4b00', class: "list", role: "list" }, h("slot", { key: '8d66429a3b7a5d4ca4c3a570677c5fca14915108', name: "right" }))))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "duet-toolbar"; }
|
|
46
46
|
static get encapsulation() { return "shadow"; }
|
|
@@ -64,18 +64,18 @@ export class DuetToolbarDropdown {
|
|
|
64
64
|
itemsAlign = this.element.parentElement.getAttribute("slot") === "left" ? "right" : "left";
|
|
65
65
|
}
|
|
66
66
|
const variation = this.variation === "negative" ? "negative" : "white";
|
|
67
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '22441fcb5b8138475d82dab2645eb4be7acc7683', role: "listitem" }, h("div", { key: 'ddda27f016e058d656ebef316dbe040559949c88', class: {
|
|
68
68
|
"duet-toolbar-dropdown": true,
|
|
69
69
|
"duet-theme-turva": this.theme === "turva",
|
|
70
70
|
[itemsAlign]: true,
|
|
71
71
|
[variation]: true,
|
|
72
|
-
} }, h("button", { key: '
|
|
72
|
+
} }, h("button", { key: 'ecdfa65704fb809858dd451e2cabd81eb6362def', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel, id: "button", type: "button", class: {
|
|
73
73
|
active: this.active,
|
|
74
74
|
open: this.open,
|
|
75
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { key: '
|
|
75
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { key: '094d722d70d59a46406f1e0eef3b23a2d2bfa58f', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("span", { key: '574c62534b8ee3098ed1bcd1a68bb8ac21712a1e', class: "label" }, h("slot", { key: '702645793ce1d7acc23ab3d81ca340c34d68f05c', name: "label" }), h("duet-icon", { key: '26e38570a74cd2d6997029053bb462449e4542e3', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { key: '5e778fe7b21fea29300f437f18970c419fc312e5', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
76
76
|
items: true,
|
|
77
77
|
hidden: !this.open,
|
|
78
|
-
} }, h("slot", { key: '
|
|
78
|
+
} }, h("slot", { key: 'a8694deb60b5d8fb5b9131cec991471ef0020a83' })))));
|
|
79
79
|
}
|
|
80
80
|
static get is() { return "duet-toolbar-dropdown"; }
|
|
81
81
|
static get encapsulation() { return "shadow"; }
|
|
@@ -45,11 +45,11 @@ export class DuetToolbarDropdownLink {
|
|
|
45
45
|
* Always the last one in the class.
|
|
46
46
|
*/
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '8e41d151e3313b5891dff17b78353776a85a8f07' }, h("a", { key: '1dbfa3d41901af78023b0121f0b5d4699c88a190', class: {
|
|
49
49
|
"duet-toolbar-dropdown-link": true,
|
|
50
50
|
"duet-theme-turva": this.theme === "turva",
|
|
51
51
|
active: this.active,
|
|
52
|
-
}, href: this.href, lang: this.targetLanguage, hreflang: this.targetLanguage, role: "link menuitem", "aria-label": this.accessibleLabel, "aria-current": this.active ? "true" : "false", onKeyUp: e => this.handleEscape(e) }, this.icon && h("duet-icon", { key: '
|
|
52
|
+
}, href: this.href, lang: this.targetLanguage, hreflang: this.targetLanguage, role: "link menuitem", "aria-label": this.accessibleLabel, "aria-current": this.active ? "true" : "false", onKeyUp: e => this.handleEscape(e) }, this.icon && h("duet-icon", { key: 'e33514dc4358840cbc8520514b16e519a56458ea', name: this.icon, size: "x-small", margin: "none" }), h("span", { key: '3c1420a627929ed17d384db1762e55918ca055f6', class: "label" }, h("slot", { key: '73cd382bf5e2f19e5d1c6e2e64d0322021f19635' })), this.active && (h("duet-icon", { key: '22214495161d78c4f620a84a03089f018d377400', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor" })))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "duet-toolbar-dropdown-link"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -86,17 +86,17 @@ export class DuetToolbarItem {
|
|
|
86
86
|
: this.variation === "secondary"
|
|
87
87
|
? "secondary"
|
|
88
88
|
: "default";
|
|
89
|
-
return (h(Host, { key: '
|
|
89
|
+
return (h(Host, { key: '82a17ce8483bcaa16bdef27b50238898b81a7549', role: "listitem" }, this.badge && h("duet-indicator", { key: 'd1a27a07f28a95232cde24a20f05a0a2d7f61745', variation: "change" }), h(TagName, { key: 'c2192a7a73d5f09fc1acf9d13c7f2f2d26af7def', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
|
|
90
90
|
"duet-toolbar-item": true,
|
|
91
91
|
"duet-theme-turva": this.theme === "turva",
|
|
92
92
|
active: this.active,
|
|
93
93
|
[variation]: true,
|
|
94
|
-
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (h("div", { key: '
|
|
94
|
+
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (h("div", { key: '00b85b5398cc6a21478840d79a11fa91270d74c0', class: "duet-toolbar-icon" }, h("duet-icon", { key: '73ffe104fcc9af56100dbc8f863e207efb93a2aa', size: "x-small", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" }), this.badge && h("div", { key: '4d185a66ab6fdf842f0d8c967fcb621fcd30e4d8', class: "duet-toolbar-badge" }))), h("slot", { key: '9fc239303a5fdb7931d47ecbb57649f0650c2fa4' }), (this.trailingIcon || (this.url && this.external)) && (h("div", { key: '4643254add55b63662d8c133c4c235110f82f2d7', class: "duet-toolbar-icon" }, h("duet-icon", { key: 'af3c48ea2d30ddb9f7569626d49df896e6be8206', class: {
|
|
95
95
|
"trailing-icon": !!this.trailingIcon,
|
|
96
96
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
97
97
|
"external-icon": !!(this.url && this.external),
|
|
98
98
|
rotate: this.trailingIcon === "action-arrow-down-small" && this.accessibleExpanded,
|
|
99
|
-
}, theme: this.theme, name: this.trailingIcon ? this.trailingIcon : this.url && this.external ? newWindowIcon.title : "", margin: "none", size: "auto", color: "currentColor" }), this.badge && this.trailingIcon !== "action-arrow-down-small" && h("div", { key: '
|
|
99
|
+
}, theme: this.theme, name: this.trailingIcon ? this.trailingIcon : this.url && this.external ? newWindowIcon.title : "", margin: "none", size: "auto", color: "currentColor" }), this.badge && this.trailingIcon !== "action-arrow-down-small" && h("div", { key: '9b26ddf0fce82536ea49fec8fcfa2973ae732e84', class: "duet-toolbar-badge" }))))));
|
|
100
100
|
}
|
|
101
101
|
static get is() { return "duet-toolbar-item"; }
|
|
102
102
|
static get encapsulation() { return "shadow"; }
|
|
@@ -38,12 +38,12 @@ export class DuetToolbarLink {
|
|
|
38
38
|
*/
|
|
39
39
|
render() {
|
|
40
40
|
const variation = this.variation === "negative" ? "negative" : "white";
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '82d0a3759f48e1d3770e078ace177b7024958e6b', role: "listitem" }, h("a", { key: '3865f0bcb98452a4b3f68e0242ceb7f0927dd4ad', class: {
|
|
42
42
|
"duet-toolbar-link": true,
|
|
43
43
|
"duet-theme-turva": this.theme === "turva",
|
|
44
44
|
active: this.active,
|
|
45
45
|
[variation]: true,
|
|
46
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: '
|
|
46
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: '09e4f28e3bca743b155330a0df9400bf47c51f9c', size: "x-small", name: this.icon, margin: "none", theme: this.theme, color: "currentColor" })), h("slot", { key: '68c25000344101d59cd7102c51b072636137fd62' }))));
|
|
47
47
|
}
|
|
48
48
|
static get is() { return "duet-toolbar-link"; }
|
|
49
49
|
static get encapsulation() { return "shadow"; }
|
|
@@ -36,13 +36,13 @@ export class DuetTooltipButton {
|
|
|
36
36
|
* Always the last one in the class.
|
|
37
37
|
*/
|
|
38
38
|
render() {
|
|
39
|
-
const visuallyHidden = h("duet-visually-hidden", { key: '
|
|
40
|
-
return (h(Host, { key: '
|
|
39
|
+
const visuallyHidden = h("duet-visually-hidden", { key: 'f839514d25ea6f0be10ff17007bc5598c0674f61' }, this.accessibleLabel);
|
|
40
|
+
return (h(Host, { key: '1184ee05def105c059edfaabbb51f19a0ff25ad0' }, h("button", { key: 'b31a9e19755ee98f2504e9aa6345f3e96cd2672e', ref: el => (this.buttonElement = el), "aria-controls": this.tooltipId, "aria-expanded": this.active ? "true" : "false", type: "button", class: {
|
|
41
41
|
"duet-tooltip-button": true,
|
|
42
42
|
"duet-tooltip-button-has-label": !!this.label,
|
|
43
43
|
"duet-theme-turva": this.theme === "turva",
|
|
44
44
|
"duet-tooltip-button-negative": this.negative,
|
|
45
|
-
} }, h("svg", { key: '
|
|
45
|
+
} }, h("svg", { key: '28d46d3d9005cc1a147a740f84ff0fba3b250b34', "aria-hidden": "true", role: "img", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '742e3a51a9b20bedea4334e3fcc1e2a3517e8342', d: "m13.5 17.25c-1.241 0-2.25-1.009-2.25-2.25v-3.75h-.75c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h.75c.827 0 1.5.673 1.5 1.5v3.75c0 .414.336.75.75.75h.75c.414 0 .75.336.75.75s-.336.75-.75.75z" }), h("circle", { key: '5af82ccdef41b720dbf5fbf75c63793a6d15bc2b', cx: "11.625", cy: "7.125", r: "1.125" }), h("path", { key: '30aec776b7b26838c552073174643773da4db6b8', d: "m12 24c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12zm0-22.5c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5 10.5-4.71 10.5-10.5-4.71-10.5-10.5-10.5z" })), this.label ? (h("span", { class: "duet-tooltip-label" }, this.label, visuallyHidden)) : (visuallyHidden))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "duet-tooltip-button"; }
|
|
48
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -53,14 +53,14 @@ export class DuetTooltipPopup {
|
|
|
53
53
|
this.contentEl.focus();
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '3c8d28cef7325f7f9a37c42323e2703197a46b4c' }, h("div", { key: '758460093b178a0bf27b146f95b079f25da46279', class: {
|
|
57
57
|
"duet-tooltip": true,
|
|
58
58
|
"duet-theme-turva": this.theme === "turva",
|
|
59
59
|
"duet-tooltip-active": this.active === true,
|
|
60
|
-
} }, h(FocusGuard, { key: '
|
|
60
|
+
} }, h(FocusGuard, { key: 'a380f2eae0bbaa67867cbaa7851e8fdb91e725e3', moveFocusTo: this.buttonEl }), h("div", { key: '93547c2941da1e4bf5f11d4e927ab0a898faadb8', ref: element => (this.contentEl = element), class: {
|
|
61
61
|
"duet-tooltip-content-area": true,
|
|
62
62
|
"duet-theme-turva": this.theme === "turva",
|
|
63
|
-
}, tabindex: -1, id: this.tooltipId }, h("slot", { key: '
|
|
63
|
+
}, tabindex: -1, id: this.tooltipId }, h("slot", { key: 'e7d05bdad7849e242c18429e7694606d034931f5' })), h("div", { key: 'b41cf5f06f034fad1455f5dd20cf40828be2535c', ref: element => (this.arrowEl = element), class: { arrow: true, [this.placement]: true }, style: this.arrowStyles }, h("div", { key: '67b9bd2303a7c04a44d12c110b8a675b8c55f526', class: { "arrow-container": true, [this.placement]: true } })), h("button", { key: '140b64666484c9cd541f10b4aa8a3c786dc0e13f', type: "button", class: "duet-tooltip-close", onClick: this.handleCloseClick, ref: el => (this.buttonEl = el) }, h("duet-icon", { key: '7cdb146d795acaa65561d690e3286ce03e932684', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xxx-small" }), h("duet-visually-hidden", { key: 'bb523f67e60aa14b2f404a6e9ae8d6079360adf4' }, this.accessibleCloseLabel)), h(FocusGuard, { key: 'c7dfc301f8b422a6722ceb11e1978306227bce52', moveFocusTo: this.contentEl }))));
|
|
64
64
|
}
|
|
65
65
|
static get is() { return "duet-tooltip-popup"; }
|
|
66
66
|
static get encapsulation() { return "shadow"; }
|
|
@@ -129,14 +129,14 @@ export class DuetTray {
|
|
|
129
129
|
* Always the last one in the class.
|
|
130
130
|
*/
|
|
131
131
|
render() {
|
|
132
|
-
return (h("div", { key: '
|
|
132
|
+
return (h("div", { key: '9d5fc8800023764518de215eb610e8d45ab86e2b', class: {
|
|
133
133
|
"duet-tray": true,
|
|
134
134
|
"duet-tray-is-active": this.active,
|
|
135
135
|
"duet-tray-is-hidden": this.hiddenState,
|
|
136
136
|
"duet-tray-is-responsive": this.responsive,
|
|
137
137
|
"duet-theme-turva": this.theme === "turva",
|
|
138
138
|
"duet-tray-is-expandable": this.hasAdditionalContent,
|
|
139
|
-
} }, h("div", { key: '
|
|
139
|
+
} }, h("div", { key: 'd52a0e2f9d54d671a5840ac8039e6f7197021de6', class: "duet-tray-default-content", role: "status" }, h("slot", { key: 'aae51b2629d00e82ff54d429dfa65d922391c017' })), this.hasAdditionalContent && (h(Fragment, { key: 'f039ce601fc5bba7cc18da4b74ddae8531839c33' }, h("button", { key: 'c9c444d39b541b567efdd63c629a39d891a83dda', "aria-expanded": this.expanded ? "true" : "false", "aria-controls": this.expandableId, onClick: ev => this.toggleExpandable(ev), class: { "duet-tray-button": true, "duet-tray-is-expanded": this.expanded } }, h("duet-icon", { key: '3311dd9edddb29cd4eff813b50e7d9998934f6d5', name: "action-arrow-down", size: "small", color: "currentColor", margin: "none" }), h("duet-visually-hidden", { key: '8758967c602734c8843f9a3bb31e4847a64d6257' }, this.expanded ? this.accessibleCloseLabel : this.accessibleOpenLabel)), h("div", { key: '82a72aaa64ba7459397290078267177fff26d2be', id: this.expandableId, class: { "duet-tray-expandable": true, active: this.expanded } }, h("div", { key: 'b7a7af3aeeeb43966f018fdd457388b0571ade0a', class: "duet-tray-expandable-content" }, h("slot", { key: '527312ba646745f4a4deaad914cf9a1df640a9f2', name: "additional" })))))));
|
|
140
140
|
}
|
|
141
141
|
static get is() { return "duet-tray"; }
|
|
142
142
|
static get encapsulation() { return "shadow"; }
|
|
@@ -953,10 +953,10 @@ export class DuetUpload {
|
|
|
953
953
|
this.externalUploadButton.accessibleLabel = `${this.externalUploadButton.innerText}. ${caption}`;
|
|
954
954
|
}
|
|
955
955
|
// @ts-ignore
|
|
956
|
-
return (h(Host, { key: '
|
|
956
|
+
return (h(Host, { key: '027dcff01c8c5aef8445a0ed996aa5ad3e854b5e', class: { "duet-m-0": this.margin === "none" } }, h("duet-fieldset", { key: '47ed56bd728ba7c100e5d68dd71f727b6e6b2a4d', "label-heading-level": this.headerHeadingLevel, "label-hidden": this.hideHeader, label: this.label }, h("slot", { key: '63328b6f03549224f711b858cbb5e95665bbdef9', name: "header" }), !this.files.size && (h("duet-empty-state", { key: '88492085957485c18c6ba40b767b87c89ff89fd2', id: this.labelId, part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", icon: "messaging-attachment" }, h("duet-paragraph", { key: '2cbe2581b60800f93dafe93e63c67d9ac826737c', margin: "none" }, this.fileListEmpty))), !!this.files.size && h("slot", { key: '2bf2901abf2934c09cfeca8514ddfec09f48e82a', name: "fileheader" }), !!this.files.size && (h("duet-upload-aria-status", { key: '2ac21565dbd47cfbf9954b03e4404c018871c85c', invalid: this.getFilesAsArray().invalid.length, valid: this.getFilesAsArray().valid.length, inprogress: this.filesInProgress.size, total: this.files.size, statusMessageLabel: this.internalStatusMessageLabel })), !!this.files.size && this.renderUploadedItems(), !!this.files.size && h("slot", { key: '7eb58ca2a63237ee9d22f4ce8136c7bf4bd90f41', name: "filefooter" }), h("slot", { key: '36bc35eb74e40102333469dadda4ac75a77ebd90', name: "uploadfooter" }), this.captionOnBottom && (h("duet-caption", { key: 'c6465f63ef97ab6cb78af308da6c4c2528b911e0', margin: "none", size: "small" }, h("div", { key: 'd189b328248cf862a920d1e542a18546b0b76b94', class: "upload-bottom-caption" }, caption))), h("slot", { key: '87c92c6cac9b662315a12218e848a54b74094cec', name: "afterfooter" }), !this.hideButton && (h(Fragment, { key: '89ba989869f8286e58f01704ef5339ab23106761' }, h("duet-spacer", { key: '5c4dc126f197421e5c62edf556f9ef967df4cf89', size: "large" }), h("duet-button", { key: '67c4e90266831664dbd7aae7fb1792460013cee3', id: this.buttonId, onClick: this.startUpload, "accessible-controls": identifier, disabled: this.fileMaxReached, "accessible-label": this.accessibleButtonLabel || `${this.buttonLabel}. ${caption}`, "accessible-owns": identifier, size: "small", variation: "secondary", fixed: true, icon: "action-add-circle", part: this.identifier ? `${this.identifier}-button-upload` : "duet-upload-button-upload" }, this.buttonLabel))), (this.fileMaxReached ||
|
|
957
957
|
this.bytesMaxReached ||
|
|
958
958
|
this.filesToUploadExceedsLimit ||
|
|
959
|
-
this.filesToUploadTotalSizeIsAboveMax) && (h(Fragment, { key: '
|
|
959
|
+
this.filesToUploadTotalSizeIsAboveMax) && (h(Fragment, { key: '2984ff475257e2ed17b964aa6113e6592809996a' }, h("duet-spacer", { key: '3400a7c832dceb6f04c6a1efc9f69bc764004cc7', size: "medium" }), h("duet-alert", { key: '22bb6896cec80f0468dd34bb2ff29d20ccb474a9', part: this.identifier ? `${this.identifier}-error-notification` : "duet-upload-error-notification" }, this.fileMaxReached && getI18nError("duet-upload-301", this.errorCodes), this.bytesMaxReached && getI18nError("duet-upload-202", this.errorCodes), this.filesToUploadExceedsLimit && getI18nError("duet-upload-302", this.errorCodes), this.filesToUploadTotalSizeIsAboveMax && getI18nError("duet-upload-203", this.errorCodes)))), h("duet-visually-hidden", { key: 'f6871858e8e2e13839f9898cf340951616c81595', "aria-hidden": "true" }, h("input", { key: 'faa902cc6425f28c15c89a0f95c1c7ce69ec8b6b', ref: input => {
|
|
960
960
|
this.nativeInput = input;
|
|
961
961
|
}, accept: !this.limitSelection ? undefined : `${this.allowedMimetypes},${this.allowedExtensions}`, onBlur: this.onBlur, onFocus: this.onFocus, onChange: e => this.onChange(e), type: "file", class: {
|
|
962
962
|
"duet-upload": true,
|
|
@@ -85,7 +85,7 @@ export class DuetUploadAriaStatus {
|
|
|
85
85
|
* Always the last one in the class.
|
|
86
86
|
*/
|
|
87
87
|
render() {
|
|
88
|
-
return (h(Host, { key: '
|
|
88
|
+
return (h(Host, { key: '5cf7965d65a20a104085bde4788a4b7a044b7eed', role: "status", "aria-live": "assertive", "aria-atomic": "true", "aria-relevant": "all" }, h("duet-visually-hidden", { key: 'fe28885c561bd1884856c733ae6f34f2b84873c7' }, this.statusMessage)));
|
|
89
89
|
}
|
|
90
90
|
static get is() { return "duet-upload-aria-status"; }
|
|
91
91
|
static get encapsulation() { return "shadow"; }
|
|
@@ -73,9 +73,9 @@ export class DuetUploadItem {
|
|
|
73
73
|
const { uid, meta, item } = this.data;
|
|
74
74
|
const Badges = meta && meta.badges ? (h("span", null, meta.badges.map(badgeText => (h("duet-badge", { color: "primary" }, badgeText))))) : undefined;
|
|
75
75
|
const actionDescription = `${meta && meta.badges ? meta.badges.join(",") : ""} ${item.name}`;
|
|
76
|
-
return (h("div", { key: '
|
|
76
|
+
return (h("div", { key: '77bb336f85e5157b02e275554ec058cd783a6f58', class: {
|
|
77
77
|
"upload-item-row": true,
|
|
78
|
-
} }, this.showCategory && (h("div", { key: '
|
|
78
|
+
} }, this.showCategory && (h("div", { key: '1511526cfa7a8a3c7ffa039c761f0518c2de8f07', class: "item-categories" }, h("duet-heading", { key: '8190b64ad02a4cf3ad5d50fba2dd29175c91f2cb', class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(this.categoryLabel)), Badges)), h("div", { key: '9a72d26ea9b6ac13f9f1edca9faab7c4ddd86474', class: { "item-name": true, "no-category": !this.showCategory } }, !!this.label && (h("duet-heading", { key: '463a1611352d71956e7a4264ca9bd238333a71f9', class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(this.label))), this.getFileNameLine()), h("div", { key: 'cb864f51d8d622526be69d3a34c32ee0b8722312', class: "item-actions" }, this.actions.map(actionItem => {
|
|
79
79
|
return (h("duet-action-button", { actionMeta: Object.assign({}, meta || {}), actionId: uid || null, actionName: actionItem.name, theme: this.theme, iconName: actionItem.icon, iconColor: actionItem.color, iconSize: actionItem.size, background: actionItem.background, "accessible-label": `${actionDescription} ${getLocaleString(actionItem.label)} `, accessibleTitle: this.getActionButtonTitle(actionItem), ref: button => (this.actionButton = button) }));
|
|
80
80
|
}))));
|
|
81
81
|
}
|
|
@@ -8,7 +8,7 @@ export class DuetVisuallyHidden {
|
|
|
8
8
|
* Always the last one in the class.
|
|
9
9
|
*/
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: '24d3d4f9d5f7c38bb5f173d6fcb4ed6eb9c74510', class: "duet-visually-hidden" }, h("slot", { key: 'f6acbedb718f5416d46b82450ff03d8a3416ffc5' })));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "duet-visually-hidden"; }
|
|
14
14
|
static get encapsulation() { return "shadow"; }
|