@duetds/components 6.9.0 → 6.9.1
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 +224 -69
- package/lib/cjs/duet-action-button.cjs.entry.js +17 -2
- package/lib/cjs/duet-alert.cjs.entry.js +1 -1
- package/lib/cjs/duet-badge.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
- package/lib/cjs/duet-button_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
- package/lib/cjs/duet-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
- package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
- package/lib/cjs/duet-combobox.cjs.entry.js +12 -2
- package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
- package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +25 -10
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +1 -1
- package/lib/cjs/duet-grid_2.cjs.entry.js +4 -2
- package/lib/cjs/duet-header_2.cjs.entry.js +15 -1
- package/lib/cjs/duet-hero.cjs.entry.js +15 -3
- package/lib/cjs/duet-icon.cjs.entry.js +1 -1
- package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
- package/lib/cjs/duet-modal.cjs.entry.js +2 -2
- package/lib/cjs/duet-multiselect.cjs.entry.js +9 -3
- package/lib/cjs/duet-nav.cjs.entry.js +1 -1
- package/lib/cjs/duet-notification_2.cjs.entry.js +15 -1
- package/lib/cjs/duet-number-input.cjs.entry.js +47 -27
- package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
- package/lib/cjs/duet-pagination_2.cjs.entry.js +16 -3
- package/lib/cjs/duet-progress.cjs.entry.js +1 -1
- package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
- package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +2 -2
- package/lib/cjs/duet-slideout.cjs.entry.js +3 -3
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +22 -7
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +2 -2
- package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
- package/lib/cjs/duet-tooltip.cjs.entry.js +16 -1
- package/lib/cjs/duet-tray.cjs.entry.js +1 -1
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +2 -2
- package/lib/cjs/{focus-utils-5c2e36e8.js → focus-utils-46e27452.js} +1 -1
- package/lib/cjs/{index-92f0a873.js → index-8512a70b.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/collection/components/duet-action-button/duet-action-button.js +25 -6
- package/lib/collection/components/duet-combobox/duet-combobox.js +16 -3
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +15 -3
- package/lib/collection/components/duet-grid/duet-grid.css +18 -0
- package/lib/collection/components/duet-grid/duet-grid.js +20 -0
- package/lib/collection/components/duet-header/duet-header.js +20 -4
- package/lib/collection/components/duet-hero/duet-hero.css +7 -0
- package/lib/collection/components/duet-hero/duet-hero.js +17 -3
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +11 -4
- package/lib/collection/components/duet-notification/duet-notification.js +22 -5
- package/lib/collection/components/duet-number-input/duet-number-input.js +46 -26
- package/lib/collection/components/duet-pagination/duet-pagination.js +21 -5
- package/lib/collection/components/duet-select/duet-select.css +0 -4
- package/lib/collection/components/duet-select/duet-select.js +1 -1
- package/lib/collection/components/duet-slideout/duet-slideout.css +2 -0
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +5 -21
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +1 -0
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +21 -5
- package/lib/collection/components/duet-table/duet-table.js +17 -1
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +21 -4
- package/lib/collection/components/duet-upload/duet-upload.css +19 -9
- package/lib/collection/components/duet-upload/duet-upload.js +1 -1
- package/lib/collection/components/duet-upload/upload-item.js +3 -3
- 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 +2 -2
- package/lib/dist-custom-elements/duet-breadcrumbs.js +3 -3
- 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 +3 -3
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-checkmark.js +1 -1
- package/lib/dist-custom-elements/duet-choice-group.js +6 -6
- package/lib/dist-custom-elements/duet-choice.js +6 -6
- package/lib/dist-custom-elements/duet-collapsible.js +2 -2
- package/lib/dist-custom-elements/duet-combobox.js +16 -5
- package/lib/dist-custom-elements/duet-contact-card.js +9 -9
- package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
- package/lib/dist-custom-elements/duet-date-picker.js +11 -11
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +19 -11
- 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 +5 -5
- 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 +26 -12
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +25 -13
- 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 -1
- 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-button.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
- package/lib/dist-custom-elements/duet-modal.js +8 -8
- package/lib/dist-custom-elements/duet-multiselect.js +18 -11
- package/lib/dist-custom-elements/duet-nav.js +1 -1
- package/lib/dist-custom-elements/duet-notification-drawer.js +5 -5
- package/lib/dist-custom-elements/duet-notification.js +19 -5
- package/lib/dist-custom-elements/duet-number-input.js +56 -36
- package/lib/dist-custom-elements/duet-page-heading.js +2 -2
- package/lib/dist-custom-elements/duet-pagination.js +26 -12
- 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 +6 -6
- package/lib/dist-custom-elements/duet-radio.js +1 -1
- package/lib/dist-custom-elements/duet-range-slider.js +2 -2
- package/lib/dist-custom-elements/duet-range-stepper.js +5 -5
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.js +1 -1
- package/lib/dist-custom-elements/duet-select.js +1 -1
- package/lib/dist-custom-elements/duet-slideout-lang.js +3 -3
- package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-panel.js +3 -3
- package/lib/dist-custom-elements/duet-slideout.js +4 -4
- 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 +4 -4
- package/lib/dist-custom-elements/duet-stepper.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +24 -8
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar.js +3 -3
- package/lib/dist-custom-elements/duet-tab-group.js +10 -10
- package/lib/dist-custom-elements/duet-tab.js +2 -2
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +8 -8
- package/lib/dist-custom-elements/duet-toggle.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +4 -4
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +22 -25
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.js +1 -1
- package/lib/dist-custom-elements/{p-1bf112be.js → p-00afad07.js} +1 -1
- package/lib/dist-custom-elements/{p-6c05e879.js → p-076452be.js} +1 -1
- package/lib/dist-custom-elements/{p-d0dea200.js → p-117109e4.js} +1 -1
- package/lib/dist-custom-elements/{p-0d1b84db.js → p-11fbe397.js} +1 -1
- package/lib/dist-custom-elements/{p-26d32594.js → p-2a919c81.js} +21 -6
- package/lib/dist-custom-elements/{p-c820f65e.js → p-414fdb0c.js} +1 -1
- package/lib/dist-custom-elements/{p-9eba8647.js → p-43bbb094.js} +2 -2
- package/lib/dist-custom-elements/{p-d6a4de03.js → p-51307fda.js} +1 -1
- package/lib/dist-custom-elements/{p-dde8e436.js → p-528cdd3e.js} +5 -5
- package/lib/dist-custom-elements/{p-353d6d0c.js → p-57d6495c.js} +1 -1
- package/lib/dist-custom-elements/{p-4b4a086d.js → p-5e60f757.js} +9 -9
- package/lib/dist-custom-elements/{p-132f2514.js → p-69fa1743.js} +8 -8
- package/lib/dist-custom-elements/{p-e1de0408.js → p-6f661b09.js} +1 -1
- package/lib/dist-custom-elements/{p-19ad4945.js → p-72635656.js} +1 -1
- package/lib/dist-custom-elements/{p-c01c91d6.js → p-7392a942.js} +2 -2
- package/lib/dist-custom-elements/{p-c4a3d30d.js → p-7c4c8cf0.js} +1 -1
- package/lib/dist-custom-elements/{p-17d43428.js → p-84d75d9d.js} +4 -4
- package/lib/dist-custom-elements/{p-29b2c3bb.js → p-8d12a863.js} +1 -1
- package/lib/dist-custom-elements/{p-7199196e.js → p-9175529e.js} +3 -3
- package/lib/dist-custom-elements/{p-49848110.js → p-94df5d2c.js} +1 -1
- package/lib/dist-custom-elements/{p-d6bcc527.js → p-98b0f345.js} +1 -1
- package/lib/dist-custom-elements/p-9f027a93.js +183 -0
- package/lib/dist-custom-elements/{p-a56cc313.js → p-afc65a24.js} +2 -2
- package/lib/dist-custom-elements/{p-890a9b12.js → p-b51fbd15.js} +2 -2
- package/lib/dist-custom-elements/{p-9d23386f.js → p-b7b7c63b.js} +1 -1
- package/lib/dist-custom-elements/{p-7a4bdb83.js → p-bbf48894.js} +1 -1
- package/lib/dist-custom-elements/{p-47ba781e.js → p-bdc087cb.js} +15 -2
- package/lib/dist-custom-elements/{p-276e05ab.js → p-c272c5d5.js} +6 -6
- package/lib/dist-custom-elements/{p-41ef88f4.js → p-c57eccd3.js} +22 -6
- package/lib/dist-custom-elements/{p-945a2c0c.js → p-c8659d75.js} +2 -2
- package/lib/dist-custom-elements/{p-a1ee31fb.js → p-cefb33f9.js} +1 -1
- package/lib/dist-custom-elements/{p-85fd8f09.js → p-f1b800f0.js} +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-d8de0d06.entry.js → p-00c11b87.entry.js} +1 -1
- package/lib/duet/{p-2e69c81b.entry.js → p-018b0ffe.entry.js} +1 -1
- package/lib/duet/p-01ca2f64.system.entry.js +4 -0
- package/lib/duet/{p-45a64d20.entry.js → p-02fb736a.entry.js} +1 -1
- package/lib/duet/{p-702a9390.entry.js → p-04ccc444.entry.js} +1 -1
- package/lib/duet/{p-f173da98.entry.js → p-05f30291.entry.js} +1 -1
- package/lib/duet/p-08b03779.system.entry.js +4 -0
- package/lib/duet/{p-a6a5458a.entry.js → p-097c4d0c.entry.js} +1 -1
- package/lib/duet/p-0ab4083f.entry.js +4 -0
- package/lib/duet/{p-d5474f30.system.entry.js → p-0ca53854.system.entry.js} +1 -1
- package/lib/duet/{p-c4738155.system.entry.js → p-0e8dab5b.system.entry.js} +1 -1
- package/lib/duet/{p-d503fd3d.entry.js → p-1254c99a.entry.js} +1 -1
- package/lib/duet/{p-c3495075.system.entry.js → p-1263323e.system.entry.js} +1 -1
- package/lib/duet/{p-835ea0dc.system.entry.js → p-133d2ee1.system.entry.js} +1 -1
- package/lib/duet/{p-9f5446d7.system.entry.js → p-14e3383d.system.entry.js} +1 -1
- package/lib/duet/{p-fa7a4245.entry.js → p-154c0d34.entry.js} +1 -1
- package/lib/duet/{p-65b119a7.system.entry.js → p-1666fed9.system.entry.js} +1 -1
- package/lib/duet/{p-21d08944.entry.js → p-1739bdd1.entry.js} +1 -1
- package/lib/duet/p-187c9ec6.system.entry.js +4 -0
- package/lib/duet/{p-2b94fb6c.entry.js → p-2078d7cd.entry.js} +1 -1
- package/lib/duet/{p-29193196.entry.js → p-22caa775.entry.js} +1 -1
- package/lib/duet/{p-893d0a53.entry.js → p-2695e6c6.entry.js} +1 -1
- package/lib/duet/{p-2c0d4d3c.entry.js → p-27cc2332.entry.js} +1 -1
- package/lib/duet/{p-e71cb6f4.entry.js → p-2c28eb80.entry.js} +1 -1
- package/lib/duet/{p-850b95d7.entry.js → p-2c6e4614.entry.js} +1 -1
- package/lib/duet/{p-47fb8005.system.entry.js → p-2d6e3927.system.entry.js} +1 -1
- package/lib/duet/{p-02e23372.entry.js → p-2e1e2d3d.entry.js} +1 -1
- package/lib/duet/{p-7c32523b.system.entry.js → p-2f936baf.system.entry.js} +1 -1
- package/lib/duet/{p-6fe5922d.system.entry.js → p-33bf6eed.system.entry.js} +1 -1
- package/lib/duet/{p-e8a6eda7.system.entry.js → p-340bef19.system.entry.js} +1 -1
- package/lib/duet/{p-78f49cbf.system.entry.js → p-35907d51.system.entry.js} +1 -1
- package/lib/duet/p-361ce072.system.entry.js +4 -0
- package/lib/duet/{p-d7c0027e.entry.js → p-376ec229.entry.js} +1 -1
- package/lib/duet/{p-72585f83.entry.js → p-3856f3a8.entry.js} +1 -1
- package/lib/duet/{p-39c34fde.system.entry.js → p-3a21d43b.system.entry.js} +1 -1
- package/lib/duet/p-3a28cf58.entry.js +4 -0
- package/lib/duet/p-3d3e5e9e.entry.js +4 -0
- package/lib/duet/{p-b3584ef1.system.entry.js → p-417c1eca.system.entry.js} +1 -1
- package/lib/duet/{p-643dd974.entry.js → p-45a939b3.entry.js} +1 -1
- package/lib/duet/{p-6326cade.system.entry.js → p-46ca69cf.system.entry.js} +1 -1
- package/lib/duet/{p-1ef436d2.js → p-4879ffe9.js} +1 -1
- package/lib/duet/p-4b7f3ac1.system.js +4 -0
- package/lib/duet/{p-7fd9b8b6.system.entry.js → p-4bdd34bc.system.entry.js} +1 -1
- package/lib/duet/{p-628c4fc7.system.entry.js → p-4c286dee.system.entry.js} +1 -1
- package/lib/duet/{p-be3c04fb.entry.js → p-50b51053.entry.js} +1 -1
- package/lib/duet/p-51160aa4.entry.js +4 -0
- package/lib/duet/{p-8b123c27.system.entry.js → p-539034b3.system.entry.js} +1 -1
- package/lib/duet/{p-c22a97ea.system.entry.js → p-54a44e1e.system.entry.js} +1 -1
- package/lib/duet/{p-95f020cc.system.entry.js → p-56b4f6e5.system.entry.js} +1 -1
- package/lib/duet/{p-faaa6249.entry.js → p-57f981bd.entry.js} +1 -1
- package/lib/duet/{p-049f7427.entry.js → p-58833aca.entry.js} +1 -1
- package/lib/duet/{p-4ab70001.system.entry.js → p-5abf961b.system.entry.js} +1 -1
- package/lib/duet/{p-c7507f6b.system.entry.js → p-5c2dd50b.system.entry.js} +2 -2
- package/lib/duet/p-5c83e833.entry.js +4 -0
- package/lib/duet/p-614194b1.entry.js +4 -0
- package/lib/duet/p-618615d1.system.entry.js +4 -0
- package/lib/duet/{p-58d08fb8.entry.js → p-61e84177.entry.js} +1 -1
- package/lib/duet/{p-b16b89c3.system.entry.js → p-64297b4d.system.entry.js} +1 -1
- package/lib/duet/{p-a5b5f3e2.system.entry.js → p-64b14d85.system.entry.js} +1 -1
- package/lib/duet/p-6a1f0973.system.entry.js +4 -0
- package/lib/duet/{p-bc89db28.entry.js → p-6a8341c1.entry.js} +1 -1
- package/lib/duet/p-71779b62.entry.js +4 -0
- package/lib/duet/{p-c073eb55.system.entry.js → p-71e63186.system.entry.js} +1 -1
- package/lib/duet/p-736eb6f6.system.entry.js +4 -0
- package/lib/duet/p-75a307e4.entry.js +4 -0
- package/lib/duet/{p-1bfff197.system.entry.js → p-76bac602.system.entry.js} +1 -1
- package/lib/duet/{p-4136d211.entry.js → p-7743d05c.entry.js} +1 -1
- package/lib/duet/{p-07e54b8a.entry.js → p-78973e79.entry.js} +1 -1
- package/lib/duet/{p-2b4f4c85.system.entry.js → p-7cbc8aa1.system.entry.js} +1 -1
- package/lib/duet/{p-ce108a20.entry.js → p-7dd4e3f6.entry.js} +1 -1
- package/lib/duet/p-7e9e10ab.entry.js +4 -0
- package/lib/duet/{p-7a5077a2.system.entry.js → p-80973cda.system.entry.js} +1 -1
- package/lib/duet/{p-c91aaa04.system.entry.js → p-825c4e47.system.entry.js} +1 -1
- package/lib/duet/{p-190507d4.system.entry.js → p-84881c84.system.entry.js} +1 -1
- package/lib/duet/p-86201340.system.entry.js +4 -0
- package/lib/duet/{p-c518f7da.system.entry.js → p-8a517f70.system.entry.js} +1 -1
- package/lib/duet/{p-5047ae3d.entry.js → p-8b7b4c46.entry.js} +1 -1
- package/lib/duet/{p-7a53ff56.entry.js → p-90fece55.entry.js} +1 -1
- package/lib/duet/{p-72264693.entry.js → p-9389ce47.entry.js} +1 -1
- package/lib/duet/{p-58b9c7b4.system.entry.js → p-94f2509c.system.entry.js} +1 -1
- package/lib/duet/p-960503a3.entry.js +4 -0
- package/lib/duet/p-9616579e.entry.js +4 -0
- package/lib/duet/{p-f7ff8b67.entry.js → p-981b43c2.entry.js} +1 -1
- package/lib/duet/{p-38680e94.system.entry.js → p-99ccb2c2.system.entry.js} +1 -1
- package/lib/duet/p-9cd3ea60.system.entry.js +4 -0
- package/lib/duet/p-9d36613e.system.entry.js +4 -0
- package/lib/duet/{p-4b02643a.system.entry.js → p-9fc991c2.system.entry.js} +1 -1
- package/lib/duet/{p-addd277e.system.entry.js → p-a0bcc46c.system.entry.js} +1 -1
- package/lib/duet/p-a113525c.entry.js +4 -0
- package/lib/duet/{p-5743852f.system.js → p-a190f8b9.system.js} +1 -1
- package/lib/duet/{p-aac361b8.entry.js → p-a29118e6.entry.js} +1 -1
- package/lib/duet/{p-80bc3db3.entry.js → p-a3f23363.entry.js} +1 -1
- package/lib/duet/{p-7f2a16b3.entry.js → p-a4a9705f.entry.js} +1 -1
- package/lib/duet/{p-ef31120e.system.entry.js → p-a4e42811.system.entry.js} +1 -1
- package/lib/duet/p-a6751ba6.entry.js +4 -0
- package/lib/duet/{p-44bbf984.entry.js → p-a7d9728a.entry.js} +1 -1
- package/lib/duet/{p-e9cea31c.entry.js → p-abbcf5dc.entry.js} +1 -1
- package/lib/duet/{p-fad8bcee.system.entry.js → p-aee38b4a.system.entry.js} +1 -1
- package/lib/duet/{p-ad82c633.system.entry.js → p-b1abb582.system.entry.js} +1 -1
- package/lib/duet/{p-c3e4e6a2.system.entry.js → p-b2be54b5.system.entry.js} +1 -1
- package/lib/duet/{p-b1b1160e.system.entry.js → p-b308ce5d.system.entry.js} +1 -1
- package/lib/duet/{p-d563682c.entry.js → p-b3f12c59.entry.js} +1 -1
- package/lib/duet/{p-2ff8c614.entry.js → p-b656b461.entry.js} +1 -1
- package/lib/duet/{p-48bab8b6.entry.js → p-bb536ec4.entry.js} +1 -1
- package/lib/duet/{p-8f0579d1.entry.js → p-bc0ce7e7.entry.js} +1 -1
- package/lib/duet/{p-93f3e158.system.entry.js → p-bf37cb60.system.entry.js} +1 -1
- package/lib/duet/{p-c832c83e.system.entry.js → p-c141d219.system.entry.js} +1 -1
- package/lib/duet/p-c16de43f.system.entry.js +4 -0
- package/lib/duet/{p-2184a285.system.entry.js → p-c19d32af.system.entry.js} +1 -1
- package/lib/duet/{p-84eb3d96.system.entry.js → p-c213c2f2.system.entry.js} +1 -1
- package/lib/duet/{p-2a80caf9.entry.js → p-c3c98ddf.entry.js} +1 -1
- package/lib/duet/{p-9aae9d2a.system.entry.js → p-c70da05a.system.entry.js} +1 -1
- package/lib/duet/{p-17d1d5ee.entry.js → p-cb5771c5.entry.js} +1 -1
- package/lib/duet/{p-dcce6bad.entry.js → p-cd410e2a.entry.js} +1 -1
- package/lib/duet/{p-8760c0ee.system.entry.js → p-cfebc130.system.entry.js} +1 -1
- package/lib/duet/{p-568c7b6d.entry.js → p-d22e694c.entry.js} +1 -1
- package/lib/duet/{p-fc8b03f3.system.entry.js → p-d2d14d3b.system.entry.js} +1 -1
- package/lib/duet/p-d51ed3e2.system.entry.js +4 -0
- package/lib/duet/{p-7dc36831.system.js → p-d8422099.system.js} +1 -1
- package/lib/duet/{p-c0ac70a9.entry.js → p-d924703a.entry.js} +1 -1
- package/lib/duet/{p-cc7f7692.entry.js → p-db9f9e24.entry.js} +1 -1
- package/lib/duet/{p-1de4b105.system.entry.js → p-dc1f60cd.system.entry.js} +1 -1
- package/lib/duet/p-dc566220.entry.js +4 -0
- package/lib/duet/{p-a79f86b5.system.entry.js → p-df1531b7.system.entry.js} +1 -1
- package/lib/duet/{p-12ee9a23.system.entry.js → p-e13d0460.system.entry.js} +1 -1
- package/lib/duet/{p-afb58e46.js → p-e1919861.js} +1 -1
- package/lib/duet/{p-21d4df80.entry.js → p-e4626c0e.entry.js} +1 -1
- package/lib/duet/{p-5576e447.system.entry.js → p-e920e34f.system.entry.js} +1 -1
- package/lib/duet/{p-26ebc753.system.entry.js → p-e9fb2c3b.system.entry.js} +1 -1
- package/lib/duet/{p-2faa3962.entry.js → p-eb4393ed.entry.js} +1 -1
- package/lib/duet/{p-2e822cf0.entry.js → p-ed222f86.entry.js} +1 -1
- package/lib/duet/p-f25db9b8.entry.js +4 -0
- package/lib/duet/{p-7d4e2e96.system.entry.js → p-f28d27a4.system.entry.js} +1 -1
- package/lib/duet/{p-2b0d6d66.system.entry.js → p-fa0896f4.system.entry.js} +1 -1
- package/lib/duet/{p-de06c5ff.entry.js → p-faeed6cf.entry.js} +1 -1
- package/lib/duet/{p-d3da2989.system.entry.js → p-fb352dcf.system.entry.js} +1 -1
- package/lib/duet/{p-e57b04f0.entry.js → p-fec9ec39.entry.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +18 -3
- package/lib/esm/duet-alert.entry.js +1 -1
- package/lib/esm/duet-badge.entry.js +1 -1
- package/lib/esm/duet-breadcrumb.entry.js +1 -1
- package/lib/esm/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm/duet-button_2.entry.js +1 -1
- package/lib/esm/duet-caption_4.entry.js +1 -1
- package/lib/esm/duet-card.entry.js +1 -1
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-checkmark.entry.js +1 -1
- package/lib/esm/duet-choice_2.entry.js +2 -2
- package/lib/esm/duet-collapsible.entry.js +1 -1
- package/lib/esm/duet-combobox.entry.js +13 -3
- package/lib/esm/duet-contact-card.entry.js +1 -1
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +2 -2
- package/lib/esm/duet-divider_2.entry.js +1 -1
- package/lib/esm/duet-editable-table_3.entry.js +26 -11
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +1 -1
- package/lib/esm/duet-grid_2.entry.js +4 -2
- package/lib/esm/duet-header_2.entry.js +15 -1
- package/lib/esm/duet-hero.entry.js +16 -4
- package/lib/esm/duet-icon.entry.js +1 -1
- package/lib/esm/duet-input_2.entry.js +1 -1
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +1 -1
- package/lib/esm/duet-menu-bar-button.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar.entry.js +1 -1
- package/lib/esm/duet-modal.entry.js +2 -2
- package/lib/esm/duet-multiselect.entry.js +10 -4
- package/lib/esm/duet-nav.entry.js +1 -1
- package/lib/esm/duet-notification_2.entry.js +16 -2
- package/lib/esm/duet-number-input.entry.js +47 -27
- package/lib/esm/duet-page-heading.entry.js +1 -1
- package/lib/esm/duet-pagination_2.entry.js +17 -4
- package/lib/esm/duet-progress.entry.js +1 -1
- package/lib/esm/duet-radio_2.entry.js +1 -1
- package/lib/esm/duet-range-slider.entry.js +1 -1
- package/lib/esm/duet-scrollable_3.entry.js +1 -1
- package/lib/esm/duet-section-layout.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +3 -3
- package/lib/esm/duet-slideout-lang.entry.js +1 -1
- package/lib/esm/duet-slideout-link.entry.js +1 -1
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
- package/lib/esm/duet-slideout-panel.entry.js +2 -2
- package/lib/esm/duet-slideout.entry.js +3 -3
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +22 -7
- package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar.entry.js +2 -2
- package/lib/esm/duet-textarea.entry.js +1 -1
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm/duet-toolbar-link.entry.js +1 -1
- package/lib/esm/duet-toolbar.entry.js +1 -1
- package/lib/esm/duet-tooltip.entry.js +17 -2
- package/lib/esm/duet-tray.entry.js +1 -1
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +3 -3
- package/lib/esm/{focus-utils-123e9cba.js → focus-utils-3483f616.js} +1 -1
- package/lib/esm/{index-9d169c3d.js → index-fff18e02.js} +1 -1
- package/lib/esm/loader.js +3 -3
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +1 -1
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-checkmark.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +1 -1
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +2 -2
- package/lib/esm-es5/duet-contact-card.entry.js +1 -1
- package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
- package/lib/esm-es5/duet-date-picker.entry.js +1 -1
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +2 -2
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +2 -2
- 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-button.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.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.entry.js +2 -2
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +2 -2
- package/lib/esm-es5/duet-number-input.entry.js +1 -1
- package/lib/esm-es5/duet-page-heading.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-radio_2.entry.js +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
- package/lib/esm-es5/duet-section-layout.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
- package/lib/esm-es5/duet-slideout.entry.js +1 -1
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +2 -2
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +1 -1
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/focus-utils-3483f616.js +4 -0
- package/lib/esm-es5/{index-9d169c3d.js → index-fff18e02.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/types/components/duet-action-button/duet-action-button.d.ts +8 -1
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +3 -1
- package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +4 -1
- package/lib/types/components/duet-grid/duet-grid.d.ts +5 -0
- package/lib/types/components/duet-header/duet-header.d.ts +1 -0
- package/lib/types/components/duet-hero/duet-hero.d.ts +3 -0
- package/lib/types/components/duet-multiselect/duet-multiselect.d.ts +4 -1
- package/lib/types/components/duet-notification/duet-notification.d.ts +3 -0
- package/lib/types/components/duet-number-input/duet-number-input.d.ts +1 -0
- package/lib/types/components/duet-pagination/duet-pagination.d.ts +5 -1
- package/lib/types/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.d.ts +2 -1
- package/lib/types/components/duet-table/duet-table.d.ts +6 -1
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +3 -0
- package/lib/types/components.d.ts +8 -0
- package/package.json +5 -5
- package/lib/dist-custom-elements/p-e48e8201.js +0 -180
- package/lib/duet/p-00e57f9b.system.entry.js +0 -4
- package/lib/duet/p-1710310b.entry.js +0 -4
- package/lib/duet/p-18843061.entry.js +0 -4
- package/lib/duet/p-197dba64.system.entry.js +0 -4
- package/lib/duet/p-1d283741.system.entry.js +0 -4
- package/lib/duet/p-2a89686a.entry.js +0 -4
- package/lib/duet/p-459b8e74.system.entry.js +0 -4
- package/lib/duet/p-5127e9fb.entry.js +0 -4
- package/lib/duet/p-52766fb1.entry.js +0 -4
- package/lib/duet/p-5c083efb.system.entry.js +0 -4
- package/lib/duet/p-5f872140.entry.js +0 -4
- package/lib/duet/p-6023d419.system.entry.js +0 -4
- package/lib/duet/p-6fe463e6.entry.js +0 -4
- package/lib/duet/p-723308e1.entry.js +0 -4
- package/lib/duet/p-8a963cd7.system.entry.js +0 -4
- package/lib/duet/p-8f60b4a4.entry.js +0 -4
- package/lib/duet/p-98c7286c.entry.js +0 -4
- package/lib/duet/p-9f9a14d7.entry.js +0 -4
- package/lib/duet/p-a3782a14.entry.js +0 -4
- package/lib/duet/p-acb0fbdc.system.entry.js +0 -4
- package/lib/duet/p-b421ea8a.system.entry.js +0 -4
- package/lib/duet/p-c360334a.system.js +0 -4
- package/lib/duet/p-cb2bd40e.entry.js +0 -4
- package/lib/duet/p-d8d3f485.system.entry.js +0 -4
- package/lib/duet/p-daa0dccd.entry.js +0 -4
- package/lib/duet/p-dc71bc89.entry.js +0 -4
- package/lib/duet/p-e73937e1.system.entry.js +0 -4
- package/lib/duet/p-f9c26b20.system.entry.js +0 -4
- package/lib/esm-es5/focus-utils-123e9cba.js +0 -4
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const jsUtils = require('./js-utils-134e0318.js');
|
|
@@ -37,6 +37,7 @@ const DuetActionButton = class {
|
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
39
|
this.numbersStore = "";
|
|
40
|
+
this.language = languageUtils.getLanguage();
|
|
40
41
|
this.theme = "";
|
|
41
42
|
this.iconName = "action-arrow-left-small";
|
|
42
43
|
this.iconColor = "currentColor";
|
|
@@ -54,12 +55,17 @@ const DuetActionButton = class {
|
|
|
54
55
|
this.accessibleDescription = undefined;
|
|
55
56
|
this.accessibleLabelsDefaults = {
|
|
56
57
|
en: "Click to activate action",
|
|
57
|
-
fi: "Klikkaa
|
|
58
|
+
fi: "Klikkaa aktivoidaksesi toiminto",
|
|
58
59
|
sv: "Klicka för att aktivera åtgärd",
|
|
59
60
|
};
|
|
60
61
|
this.accessibleLabel = languageUtils.getLocaleString(this.accessibleLabelsDefaults);
|
|
61
62
|
this.accessibleControls = "";
|
|
62
63
|
}
|
|
64
|
+
watchLanguageStateHandler(newValue, oldValue) {
|
|
65
|
+
if (newValue !== oldValue && this.accessibleLabel === this.accessibleLabelsDefaults[oldValue]) {
|
|
66
|
+
this.accessibleLabel = languageUtils.getLocaleString(this.accessibleLabelsDefaults, newValue);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
63
69
|
//handle a11y keyboard navigation events
|
|
64
70
|
async onKeyboardDown(e) {
|
|
65
71
|
if (keyboardUtils.isKeyboardClick(e)) {
|
|
@@ -94,6 +100,12 @@ const DuetActionButton = class {
|
|
|
94
100
|
componentWillLoad() {
|
|
95
101
|
themeableComponent.inheritGlobalTheme(this);
|
|
96
102
|
}
|
|
103
|
+
connectedCallback() {
|
|
104
|
+
languageUtils.connectLanguageChangeObserver(this);
|
|
105
|
+
}
|
|
106
|
+
disconnectedCallback() {
|
|
107
|
+
languageUtils.disconnectLanguageChangeObserver(this);
|
|
108
|
+
}
|
|
97
109
|
/**
|
|
98
110
|
* Sets focus on the specified `duet-action-button`. Use this method instead of the global
|
|
99
111
|
* `button.focus()`.
|
|
@@ -134,6 +146,9 @@ const DuetActionButton = class {
|
|
|
134
146
|
}, type: "button", onClick: e => this.onMouseHandler(e), "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy, "aria-description": this.accessibleDescription, "aria-describedby": this.accessibleDescribedBy, "aria-details": this.accessibleDetails, "aria-controls": this.accessibleControls, title: this.getTitle() }, index.h("duet-icon", { part: "icon", name: this.iconName, color: this.iconColor, margin: "none", size: this.iconSize }), index.h("duet-visually-hidden", null, index.h("slot", null)))));
|
|
135
147
|
}
|
|
136
148
|
get element() { return index.getElement(this); }
|
|
149
|
+
static get watchers() { return {
|
|
150
|
+
"language": ["watchLanguageStateHandler"]
|
|
151
|
+
}; }
|
|
137
152
|
};
|
|
138
153
|
DuetActionButton.style = duetActionButtonCss;
|
|
139
154
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const languageUtils = require('./language-utils-44df1d37.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
|
|
11
11
|
const duetBadgeCss = "*,*::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;margin-right:4px !important;margin-bottom:2px !important;display:inline-block;width:auto;vertical-align:middle}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-badge{width:100%;padding:4.4444444444px 12px 5.4444444444px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.75rem;font-style:normal;font-weight:600;line-height:1.25;color:rgb(0, 41, 77);text-align:center;word-break:break-word;vertical-align:middle;background:#e6f1f7;border-radius:20rem}.duet-badge.duet-p-0{padding:0 !important}.duet-badge.duet-m-0{margin:0 !important}.duet-badge.duet-theme-turva{padding:5.4444444444px 12px 4.4444444444px;font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-weight:700;color:rgb(23, 28, 58);background:#e8e8eb}.duet-badge.warning{background:#fef3df}.duet-badge.warning.duet-theme-turva{background:#fef1db}.duet-badge.danger{background:#fce9ef}.duet-badge.danger.duet-theme-turva{background:#fceae7}.duet-badge.success{background:#e6f3ef}.duet-badge.success.duet-theme-turva{background:#e6f3ed}";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
|
|
11
11
|
const duetBreadcrumbCss = "*,*::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-breadcrumb{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;height:100%;font-size:0.875rem;font-weight:inherit;color:rgb(0, 41, 77);text-decoration:none}.duet-breadcrumb:hover{color:rgb(0, 77, 128)}.duet-breadcrumb.duet-theme-turva{color:rgb(23, 28, 58)}.duet-breadcrumb.duet-theme-turva:hover{color:rgb(148, 9, 37)}.duet-breadcrumb:focus{outline:0}.duet-breadcrumb:active{opacity:0.75}:host(.user-is-tabbing) .duet-breadcrumb:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-breadcrumb.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-breadcrumb.duet-breadcrumb-without-href:hover{color:rgb(0, 41, 77)}.duet-breadcrumb.duet-breadcrumb-without-href.duet-theme-turva:hover{color:rgb(23, 28, 58)}.duet-breadcrumb.duet-breadcrumb-without-href:active{opacity:1}";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const languageUtils = require('./language-utils-44df1d37.js');
|
|
11
11
|
require('./string-utils-5cadd058.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const commonStrings = require('./common-strings-de17f887.js');
|
|
11
11
|
const languageUtils = require('./language-utils-44df1d37.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const stringUtils = require('./string-utils-5cadd058.js');
|
|
11
11
|
const tokenUtils = require('./token-utils-4bfb15d4.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const keyboardUtils = require('./keyboard-utils-bb32119b.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
|
|
11
11
|
const duetCheckmarkCss = ".duet-checkmark-container{position:relative;width:20px;height:20px;margin-left:auto;border:1px solid rgb(144, 149, 153);border-radius:4px;transition:border 300ms ease}.duet-checkmark-container.center{margin-right:auto}.duet-theme-turva .duet-checkmark-container{border-color:rgb(116, 116, 117)}.checked .duet-checkmark-container{background:rgb(0, 119, 179);border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva .checked .duet-checkmark-container{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58) !important}.duet-checkmark-container.duet-checkmark-radio{border-radius:50%}[disabled]+label .duet-checkmark-container{border-color:rgb(207, 210, 212) !important}.duet-theme-turva [disabled]+label .duet-checkmark-container{border-color:rgb(207, 207, 209) !important}.checked [disabled]+label .duet-checkmark-container{background:rgb(207, 210, 212) !important}.duet-theme-turva .checked [disabled]+label .duet-checkmark-container{background:rgb(207, 207, 209) !important}.duet-checkmark{position:absolute;top:10px;left:3px;width:5.3333333333px;height:11.8518518519px;border-top:2px solid rgb(255, 255, 255);border-right:2px solid rgb(255, 255, 255);opacity:1;transform:scaleX(-1) rotate(135deg) translateZ(0);transform-origin:left top;animation-name:duet-checkmark;animation-duration:600ms;animation-timing-function:ease-out;animation-fill-mode:forwards}@keyframes duet-checkmark{0%{width:0;height:0;opacity:1}20%{width:5.3333333333px;height:0;opacity:1}40%,100%{width:5.3333333333px;height:11.8518518519px;opacity:1}}";
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const commonStrings = require('./common-strings-de17f887.js');
|
|
11
11
|
const createId = require('./create-id-c3b984b1.js');
|
|
12
|
-
const focusUtils = require('./focus-utils-
|
|
12
|
+
const focusUtils = require('./focus-utils-46e27452.js');
|
|
13
13
|
const keyboardUtils = require('./keyboard-utils-bb32119b.js');
|
|
14
14
|
const languageUtils = require('./language-utils-44df1d37.js');
|
|
15
15
|
const watchOptions = require('./watch-options-d88afac0.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const actionArrowDownSmall = require('./action-arrow-down-small-ef77a2d1.js');
|
|
10
10
|
const tokens = require('./tokens-21b244ee.js');
|
|
11
11
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const jsUtils = require('./js-utils-134e0318.js');
|
|
11
11
|
const keyboardUtils = require('./keyboard-utils-bb32119b.js');
|
|
@@ -58,6 +58,7 @@ const DuetCombobox = class {
|
|
|
58
58
|
this.listOpen = false;
|
|
59
59
|
this.selectedItems = new Set();
|
|
60
60
|
this.activeItem = undefined;
|
|
61
|
+
this.language = languageUtils.getLanguage();
|
|
61
62
|
this.accessibleLabelDefaults = {
|
|
62
63
|
en: {
|
|
63
64
|
heading: "Select:",
|
|
@@ -88,6 +89,12 @@ const DuetCombobox = class {
|
|
|
88
89
|
activeItemHandler(state) {
|
|
89
90
|
this.input.accessibleActiveDescendant = this.listOpen && (state || state === 0) ? `active_item` : "";
|
|
90
91
|
}
|
|
92
|
+
watchLanguageStateHandler(newValue, oldValue) {
|
|
93
|
+
if (newValue !== oldValue &&
|
|
94
|
+
this.accessibleLabels === languageUtils.getLocaleString(stringUtils.parsePossibleJSON(this.accessibleLabelDefaults), oldValue)) {
|
|
95
|
+
this.accessibleLabels = languageUtils.getLocaleString(stringUtils.parsePossibleJSON(this.accessibleLabelDefaults), newValue);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
91
98
|
handleDocumentClick(e) {
|
|
92
99
|
//we want to remove all user text if they have NOT selected from the dropdown
|
|
93
100
|
const path = e.composedPath();
|
|
@@ -123,6 +130,7 @@ const DuetCombobox = class {
|
|
|
123
130
|
}
|
|
124
131
|
});
|
|
125
132
|
this.element.addEventListener("keydown", this.handleInputKeyDownEvent.bind(this));
|
|
133
|
+
languageUtils.connectLanguageChangeObserver(this);
|
|
126
134
|
//add correct aria attributes to the input element
|
|
127
135
|
this.input.accessibleAutocomplete = "list";
|
|
128
136
|
this.input.accessibleControls = "duet-combobox-list-element";
|
|
@@ -135,6 +143,7 @@ const DuetCombobox = class {
|
|
|
135
143
|
e.stopPropagation();
|
|
136
144
|
});
|
|
137
145
|
this.resizeObserver.disconnect();
|
|
146
|
+
languageUtils.disconnectLanguageChangeObserver(this);
|
|
138
147
|
}
|
|
139
148
|
componentDidLoad() {
|
|
140
149
|
// observe resize events to dynamically adjust size of dropdown area
|
|
@@ -366,7 +375,8 @@ const DuetCombobox = class {
|
|
|
366
375
|
}
|
|
367
376
|
get element() { return index.getElement(this); }
|
|
368
377
|
static get watchers() { return {
|
|
369
|
-
"activeItem": ["activeItemHandler"]
|
|
378
|
+
"activeItem": ["activeItemHandler"],
|
|
379
|
+
"language": ["watchLanguageStateHandler"]
|
|
370
380
|
}; }
|
|
371
381
|
};
|
|
372
382
|
DuetCombobox.style = duetComboboxCss;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const languageUtils = require('./language-utils-44df1d37.js');
|
|
11
11
|
require('./string-utils-5cadd058.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
|
|
11
11
|
const duetCookieConsentCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:fixed;right:0;bottom:0;left:0;z-index:950;display:block;width:100%;box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}@media (min-width: 48em){:host{right:28px;bottom:28px;left:auto;width:25rem}}:host(:focus){outline:0}:host(.user-is-tabbing:focus){border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing.duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-cookie-consent{padding:20px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;color:rgb(255, 255, 255) !important;background-color:rgba(0, 21, 39, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent{background:rgba(0, 21, 39, 0.8);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}.duet-cookie-consent.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";background-color:rgba(12, 14, 29, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent.duet-theme-turva{background:rgba(12, 14, 29, 0.8)}}@media (min-width: 48em){.duet-cookie-consent{padding:20px;border-radius:4px}}.duet-cookie-consent-content{display:flex;align-items:center;max-width:1110px;margin:0 auto}.duet-cookie-consent-content .expand{flex:1}::slotted(a){font-weight:600;color:rgb(255, 255, 255) !important;text-decoration:underline;white-space:nowrap}::slotted(a[target=_blank]){padding-right:16px;background:url(\"data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjUgMmExLjUgMS41IDAgMDEuMTQgM0gzLjc1Yy0uMzggMC0uNy4yOC0uNzQuNjVsLS4wMS4xdjE0LjVjMCAuMzguMjguNy42NS43NGwuMS4wMWgxNC41Yy4zOCAwIC43LS4yOC43NC0uNjVsLjAxLS4xdi02Ljg5YTEuNSAxLjUgMCAwMTMgMHY2Ljg5QTMuNzUgMy43NSAwIDAxMTguMjUgMjRIMy43NUEzLjc1IDMuNzUgMCAwMTAgMjAuMjVWNS43NUEzLjc1IDMuNzUgMCAwMTMuNzUgMnptMTItMmMuNzggMCAxLjQyLjYgMS41IDEuMzZWNy41YTEuNSAxLjUgMCAwMS0zIC4xNFY1LjEybC01LjQ0IDUuNDRhMS41IDEuNSAwIDAxLTIuMjItMmwuMS0uMTJMMTguODggM0gxNi41QTEuNSAxLjUgMCAwMTE1IDEuNjRWMS41YzAtLjc4LjYtMS40MiAxLjM2LTEuNWguMTR6Ii8+PC9zdmc+\") no-repeat right 50%;background-size:12px 10px}::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-theme-turva ::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}";
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
|
-
const focusUtils = require('./focus-utils-
|
|
11
|
+
const focusUtils = require('./focus-utils-46e27452.js');
|
|
12
12
|
const languageUtils = require('./language-utils-44df1d37.js');
|
|
13
13
|
require('./string-utils-5cadd058.js');
|
|
14
14
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const tokenUtils = require('./token-utils-4bfb15d4.js');
|
|
11
11
|
require('./tokens.module-d402cfac.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const jsUtils = require('./js-utils-134e0318.js');
|
|
11
11
|
const keyboardUtils = require('./keyboard-utils-bb32119b.js');
|
|
@@ -65,6 +65,7 @@ const DuetEditableTable = class {
|
|
|
65
65
|
this.toggleColumn(column, e);
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
+
this.language = languageUtils.getLanguage();
|
|
68
69
|
this.margin = "auto";
|
|
69
70
|
this.variation = "striped";
|
|
70
71
|
this.sticky = false;
|
|
@@ -87,6 +88,12 @@ const DuetEditableTable = class {
|
|
|
87
88
|
this.hasHeadSlotFirst = !!this.element.querySelector("[slot='thead-first']");
|
|
88
89
|
this.hasHeadSlotLast = !!this.element.querySelector("[slot='thead-last']");
|
|
89
90
|
}
|
|
91
|
+
connectedCallback() {
|
|
92
|
+
languageUtils.connectLanguageChangeObserver(this);
|
|
93
|
+
}
|
|
94
|
+
disconnectedCallback() {
|
|
95
|
+
languageUtils.disconnectLanguageChangeObserver(this);
|
|
96
|
+
}
|
|
90
97
|
createLabel(column) {
|
|
91
98
|
const { sort_order, direction, index: index$1, label } = column;
|
|
92
99
|
const i18nLabel = languageUtils.getLocaleString(label);
|
|
@@ -105,7 +112,7 @@ const DuetEditableTable = class {
|
|
|
105
112
|
}
|
|
106
113
|
return "action-subtract-small";
|
|
107
114
|
};
|
|
108
|
-
return (index.h("span", { class: "duet-table-label", "data-index": index$1 }, index.h("duet-button", { size: "small", icon: getButtonIcon(), "icon-size": "medium-small", "accessible-label":
|
|
115
|
+
return (index.h("span", { class: "duet-table-label", "data-index": index$1 }, index.h("duet-button", { size: "small", icon: getButtonIcon(), "icon-size": "medium-small", "accessible-label": this.sortableDefaultLabel[this.language], variation: "plain", margin: "none", "icon-right": true, onClick: event => this.toggleColumn(column, event), onKeyDown: event => this.handleKeyDown(column, event) }, i18nLabel)));
|
|
109
116
|
}
|
|
110
117
|
getSortedColumns() {
|
|
111
118
|
//create a new array from sort instead of mutating original
|
|
@@ -134,7 +141,7 @@ const DuetEditableTable = class {
|
|
|
134
141
|
const label = this.createLabel(column);
|
|
135
142
|
return label !== "" ? index.h("th", { scope: "col" }, label) : index.h("td", null);
|
|
136
143
|
}
|
|
137
|
-
}), this.actions && (index.h("th", { scope: "col", class: "duet-table-action-header-heading" }, this.actions && index.h("duet-visually-hidden", null,
|
|
144
|
+
}), this.actions && (index.h("th", { scope: "col", class: "duet-table-action-header-heading" }, this.actions && index.h("duet-visually-hidden", null, this.actionColumnLabel[this.language])))));
|
|
138
145
|
}
|
|
139
146
|
renderActions(rowItem, index$1) {
|
|
140
147
|
// escape early
|
|
@@ -198,6 +205,7 @@ const DuetTable = class {
|
|
|
198
205
|
this.matchesBreakpoint = tokenUtils.breakpointTokensUpTo.includes(this.breakpoint) ? !mq.matches : mq.matches;
|
|
199
206
|
};
|
|
200
207
|
this.matchesBreakpoint = true;
|
|
208
|
+
this.language = languageUtils.getLanguage();
|
|
201
209
|
this.theme = undefined;
|
|
202
210
|
this.margin = "auto";
|
|
203
211
|
this.variation = "striped";
|
|
@@ -206,6 +214,11 @@ const DuetTable = class {
|
|
|
206
214
|
this.breakpoint = "small";
|
|
207
215
|
this.hideHeadVisually = false;
|
|
208
216
|
}
|
|
217
|
+
watchLanguageStateHandler(newValue, oldValue) {
|
|
218
|
+
if (newValue !== oldValue) {
|
|
219
|
+
setTimeout(() => this.copyHeadingsToCells(), 50);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
209
222
|
connectedCallback() {
|
|
210
223
|
const token = this.breakpoint === "none" || this.breakpoint === "none-scrollable" ? "all" : tokenUtils.breakpointToToken[this.breakpoint];
|
|
211
224
|
this.mq = matchMedia(token);
|
|
@@ -234,6 +247,7 @@ const DuetTable = class {
|
|
|
234
247
|
// that way we avoid dealing with any initial changes
|
|
235
248
|
// and only get genuine mutations as rows are added/removed
|
|
236
249
|
this.observer ? this.observer.takeRecords() : null;
|
|
250
|
+
languageUtils.connectLanguageChangeObserver(this);
|
|
237
251
|
}
|
|
238
252
|
disconnectedCallback() {
|
|
239
253
|
this.observer.disconnect();
|
|
@@ -241,6 +255,7 @@ const DuetTable = class {
|
|
|
241
255
|
this.mq.removeListener(this.handleMediaQueryChange);
|
|
242
256
|
this.mq = null;
|
|
243
257
|
this.matchesBreakpoint = true;
|
|
258
|
+
languageUtils.disconnectLanguageChangeObserver(this);
|
|
244
259
|
}
|
|
245
260
|
/**
|
|
246
261
|
* Local methods.
|
|
@@ -270,6 +285,9 @@ const DuetTable = class {
|
|
|
270
285
|
} }, index.h("slot", null)));
|
|
271
286
|
}
|
|
272
287
|
get element() { return index.getElement(this); }
|
|
288
|
+
static get watchers() { return {
|
|
289
|
+
"language": ["watchLanguageStateHandler"]
|
|
290
|
+
}; }
|
|
273
291
|
};
|
|
274
292
|
DuetTable.style = duetTableCss;
|
|
275
293
|
|
|
@@ -453,7 +471,6 @@ const UploadItem = ({ data, showLinks, type, actions, errorCodes, theme, label,
|
|
|
453
471
|
index.h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
454
472
|
index.h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
455
473
|
name),
|
|
456
|
-
index.h("br", null),
|
|
457
474
|
index.h("duet-progress", { progress: Math.ceil(progress), "aria-hidden": true })));
|
|
458
475
|
case "pending":
|
|
459
476
|
return (index.h("span", { class: "duet-upload-item-name" },
|
|
@@ -485,9 +502,7 @@ const UploadItem = ({ data, showLinks, type, actions, errorCodes, theme, label,
|
|
|
485
502
|
"(",
|
|
486
503
|
formatBytes(size),
|
|
487
504
|
")"));
|
|
488
|
-
const Badges = meta && meta.badges ? (index.h("span", null,
|
|
489
|
-
index.h("duet-spacer", { size: "xx-small" }),
|
|
490
|
-
meta.badges.map(badgeText => (index.h("duet-badge", { color: "primary" }, badgeText))))) : undefined;
|
|
505
|
+
const Badges = meta && meta.badges ? (index.h("span", null, meta.badges.map(badgeText => (index.h("duet-badge", { color: "primary" }, badgeText))))) : undefined;
|
|
491
506
|
const actionDescription = `${meta && meta.badges ? meta.badges.join(",") : ""} ${name}`;
|
|
492
507
|
return (index.h("div", { class: {
|
|
493
508
|
"upload-item-row": true,
|
|
@@ -495,7 +510,7 @@ const UploadItem = ({ data, showLinks, type, actions, errorCodes, theme, label,
|
|
|
495
510
|
showCategory && (index.h("div", { class: "item-categories" },
|
|
496
511
|
index.h("duet-heading", { class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, languageUtils.getLocaleString(categoryLabel)),
|
|
497
512
|
Badges)),
|
|
498
|
-
index.h("div", { class: { "item-
|
|
513
|
+
index.h("div", { class: { "item-name": true, "no-category": !showCategory } },
|
|
499
514
|
!!label && (index.h("duet-heading", { class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, languageUtils.getLocaleString(label))),
|
|
500
515
|
getFileNameLine()),
|
|
501
516
|
index.h("div", { class: "item-actions" }, actions.map(actionItem => {
|
|
@@ -632,7 +647,7 @@ const makeXhrRequest = ({ payload, options, onFailure, onSuccess, onProgress })
|
|
|
632
647
|
return xhr;
|
|
633
648
|
};
|
|
634
649
|
|
|
635
|
-
const duetUploadCss = "*,*::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}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:
|
|
650
|
+
const duetUploadCss = "*,*::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}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:28px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:28px}.items-header{display:none;flex-direction:row}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:10px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(225, 227, 230)}@media (min-width: 36em){.upload-item-row{flex-direction:row}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;padding-top:6px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";
|
|
636
651
|
|
|
637
652
|
const DuetUpload = class {
|
|
638
653
|
constructor(hostRef) {
|
|
@@ -1318,7 +1333,7 @@ const DuetUpload = class {
|
|
|
1318
1333
|
this.externalUploadButton.ariaLabel = caption;
|
|
1319
1334
|
}
|
|
1320
1335
|
// @ts-ignore
|
|
1321
|
-
return (index.h(index.Host, { class: { "duet-m-0": this.margin === "none" } }, index.h("duet-fieldset", { "label-hidden": this.hideHeader, label: this.label, caption: !this.captionOnBottom ? caption : undefined }, index.h("slot", { name: "header" }), !this.files.size && (index.h("duet-empty-state", { id: this.labelId, part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", icon: "messaging-attachment" }, index.h("duet-paragraph", { margin: "none" }, this.fileListEmpty))), !!this.files.size && index.h("slot", { name: "fileheader" }), !!this.files.size && (index.h("duet-upload-aria-status", { 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 && index.h("slot", { name: "filefooter" }), index.h("slot", { name: "uploadfooter" }), this.captionOnBottom && (index.h("duet-caption", { size: "small" }, index.h("div", { class: "upload-bottom-caption" }, caption))), index.h("slot", { name: "afterfooter" }), index.h("duet-spacer", { size: "large" }),
|
|
1336
|
+
return (index.h(index.Host, { class: { "duet-m-0": this.margin === "none" } }, index.h("duet-fieldset", { "label-hidden": this.hideHeader, label: this.label, caption: !this.captionOnBottom ? caption : undefined }, index.h("slot", { name: "header" }), !this.files.size && (index.h("duet-empty-state", { id: this.labelId, part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", icon: "messaging-attachment" }, index.h("duet-paragraph", { margin: "none" }, this.fileListEmpty))), !!this.files.size && index.h("slot", { name: "fileheader" }), !!this.files.size && (index.h("duet-upload-aria-status", { 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 && index.h("slot", { name: "filefooter" }), index.h("slot", { name: "uploadfooter" }), this.captionOnBottom && (index.h("duet-caption", { size: "small" }, index.h("div", { class: "upload-bottom-caption" }, caption))), index.h("slot", { name: "afterfooter" }), !this.hideButton && (index.h(index.Fragment, null, index.h("duet-spacer", { size: "large" }), index.h("duet-button", { id: this.buttonId, onClick: this.startUpload, "accessible-controls": identifier, disabled: this.fileMaxReached, "accessible-label": this.accessibleButtonLabel, "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 || this.bytesMaxReached) && (index.h(index.Fragment, null, index.h("duet-spacer", { size: "medium" }), index.h("duet-alert", { 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)))), index.h("duet-visually-hidden", { "aria-hidden": "true" }, index.h("input", { ref: input => {
|
|
1322
1337
|
this.nativeInput = input;
|
|
1323
1338
|
}, accept: !this.limitSelection ? undefined : `${this.allowedMimetypes},${this.allowedExtensions}`, onBlur: this.onBlur, onFocus: this.onFocus, onChange: e => this.onChange(e), type: "file", class: {
|
|
1324
1339
|
"duet-upload": true,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
|
|
11
11
|
const duetEmptyStateCss = "*,*::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%;height:100%}.duet-empty-state{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%;padding:48px;color:rgb(0, 41, 77);text-align:center;background:rgb(245, 248, 250);border-radius:4px}.duet-empty-state.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(245, 245, 247)}";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const actionArrowRight = require('./action-arrow-right-24fe06be.js');
|
|
10
10
|
const actionNewWindowSmall = require('./action-new-window-small-fa51dfb9.js');
|
|
11
11
|
const commonStrings = require('./common-strings-de17f887.js');
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const tokens = require('./tokens-21b244ee.js');
|
|
10
10
|
const watchOptions = require('./watch-options-d88afac0.js');
|
|
11
11
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
12
12
|
|
|
13
|
-
const duetGridCss = ".sc-duet-grid-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:flex !important;flex-direction:column !important;align-items:flex-start !important;justify-content:flex-start !important;width:100%;max-width:100%;height:auto}.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:row !important}@media (max-width: 22.5em){.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}}@media (min-width: 36em){.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:row !important}}@media (min-width: 48em){.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:row !important}}@media (min-width: 62em){.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:row !important}}@media (min-width: 64.0625em){.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:row !important}}.duet-grid-wrap.sc-duet-grid-h{flex-wrap:wrap !important}.duet-no-stacking.sc-duet-grid-h{flex-direction:row !important}.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}@media (max-width: 35.9375em){.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 36em){.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 48em){.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 62em){.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 64.0625em){.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-align-top.duet-no-stacking.sc-duet-grid-h{align-items:flex-start !important}.duet-grid-align-bottom.duet-no-stacking.sc-duet-grid-h{align-items:flex-end !important}.duet-grid-align-center.duet-no-stacking.sc-duet-grid-h{align-items:center !important}.duet-grid-align-stretch.duet-no-stacking.sc-duet-grid-h{align-items:stretch !important}.duet-grid-align-baseline.duet-no-stacking.sc-duet-grid-h{align-items:baseline !important}.duet-grid-align-top.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:flex-start !important}.duet-grid-align-bottom.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:flex-end !important}.duet-grid-align-center.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:center !important}.duet-grid-align-stretch.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:stretch !important}.duet-grid-align-baseline.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:baseline !important}@media (min-width: 36em){.duet-grid-align-top.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 36em){.duet-grid-align-bottom.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 36em){.duet-grid-align-center.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:center !important}}@media (min-width: 36em){.duet-grid-align-stretch.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 36em){.duet-grid-align-baseline.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 48em){.duet-grid-align-top.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 48em){.duet-grid-align-bottom.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 48em){.duet-grid-align-center.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:center !important}}@media (min-width: 48em){.duet-grid-align-stretch.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 48em){.duet-grid-align-baseline.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 62em){.duet-grid-align-top.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 62em){.duet-grid-align-bottom.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 62em){.duet-grid-align-center.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:center !important}}@media (min-width: 62em){.duet-grid-align-stretch.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 62em){.duet-grid-align-baseline.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 64.0625em){.duet-grid-align-top.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 64.0625em){.duet-grid-align-bottom.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 64.0625em){.duet-grid-align-center.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:center !important}}@media (min-width: 64.0625em){.duet-grid-align-stretch.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 64.0625em){.duet-grid-align-baseline.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:baseline !important}}.duet-grid-distribution-left.sc-duet-grid-h{justify-content:flex-start !important}.duet-grid-distribution-right.sc-duet-grid-h{justify-content:flex-end !important}.duet-grid-distribution-center.sc-duet-grid-h{justify-content:center !important}.duet-grid-distribution-between.sc-duet-grid-h{justify-content:space-between !important}.duet-grid-distribution-around.sc-duet-grid-h{justify-content:space-around !important}.duet-grid-distribution-evenly.sc-duet-grid-h{justify-content:space-evenly !important}@media (max-width: 35.9375em){.duet-grid-mobile-left.sc-duet-grid-h{align-items:flex-start !important;justify-content:flex-start !important;text-align:left !important}}@media (max-width: 35.9375em){.duet-grid-mobile-center.sc-duet-grid-h{align-items:center !important;justify-content:center !important;text-align:center !important}.duet-grid-mobile-center.sc-duet-grid-h *.sc-duet-grid{text-align:center !important}}@media (max-width: 35.9375em){.duet-grid-mobile-right.sc-duet-grid-h{align-items:flex-end !important;justify-content:flex-end !important;text-align:right !important}.duet-grid-mobile-right.sc-duet-grid-h *.sc-duet-grid{text-align:right !important}}";
|
|
13
|
+
const duetGridCss = ".sc-duet-grid-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:flex !important;flex-direction:column !important;align-items:flex-start !important;justify-content:flex-start !important;width:100%;max-width:100%;height:auto}.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-x-small.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}@media (max-width: 22.5em){.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}}@media (min-width: 36em){.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-small.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}}@media (min-width: 48em){.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-medium.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}}@media (min-width: 62em){.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-large.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}}@media (min-width: 64.0625em){.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-x-large.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}}.duet-grid-wrap.sc-duet-grid-h{flex-wrap:wrap !important}.duet-no-stacking.sc-duet-grid-h{flex-direction:row !important}.duet-no-stacking.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}@media (max-width: 35.9375em){.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 36em){.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 48em){.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 62em){.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 64.0625em){.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-align-top.duet-no-stacking.sc-duet-grid-h{align-items:flex-start !important}.duet-grid-align-bottom.duet-no-stacking.sc-duet-grid-h{align-items:flex-end !important}.duet-grid-align-center.duet-no-stacking.sc-duet-grid-h{align-items:center !important}.duet-grid-align-stretch.duet-no-stacking.sc-duet-grid-h{align-items:stretch !important}.duet-grid-align-baseline.duet-no-stacking.sc-duet-grid-h{align-items:baseline !important}.duet-grid-align-top.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:flex-start !important}.duet-grid-align-bottom.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:flex-end !important}.duet-grid-align-center.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:center !important}.duet-grid-align-stretch.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:stretch !important}.duet-grid-align-baseline.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:baseline !important}@media (min-width: 36em){.duet-grid-align-top.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 36em){.duet-grid-align-bottom.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 36em){.duet-grid-align-center.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:center !important}}@media (min-width: 36em){.duet-grid-align-stretch.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 36em){.duet-grid-align-baseline.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 48em){.duet-grid-align-top.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 48em){.duet-grid-align-bottom.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 48em){.duet-grid-align-center.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:center !important}}@media (min-width: 48em){.duet-grid-align-stretch.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 48em){.duet-grid-align-baseline.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 62em){.duet-grid-align-top.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 62em){.duet-grid-align-bottom.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 62em){.duet-grid-align-center.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:center !important}}@media (min-width: 62em){.duet-grid-align-stretch.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 62em){.duet-grid-align-baseline.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 64.0625em){.duet-grid-align-top.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 64.0625em){.duet-grid-align-bottom.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 64.0625em){.duet-grid-align-center.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:center !important}}@media (min-width: 64.0625em){.duet-grid-align-stretch.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 64.0625em){.duet-grid-align-baseline.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:baseline !important}}.duet-grid-distribution-left.sc-duet-grid-h{justify-content:flex-start !important}.duet-grid-distribution-right.sc-duet-grid-h{justify-content:flex-end !important}.duet-grid-distribution-center.sc-duet-grid-h{justify-content:center !important}.duet-grid-distribution-between.sc-duet-grid-h{justify-content:space-between !important}.duet-grid-distribution-around.sc-duet-grid-h{justify-content:space-around !important}.duet-grid-distribution-evenly.sc-duet-grid-h{justify-content:space-evenly !important}@media (max-width: 35.9375em){.duet-grid-mobile-left.sc-duet-grid-h{align-items:flex-start !important;justify-content:flex-start !important;text-align:left !important}}@media (max-width: 35.9375em){.duet-grid-mobile-center.sc-duet-grid-h{align-items:center !important;justify-content:center !important;text-align:center !important}.duet-grid-mobile-center.sc-duet-grid-h *.sc-duet-grid{text-align:center !important}}@media (max-width: 35.9375em){.duet-grid-mobile-right.sc-duet-grid-h{align-items:flex-end !important;justify-content:flex-end !important;text-align:right !important}.duet-grid-mobile-right.sc-duet-grid-h *.sc-duet-grid{text-align:right !important}}";
|
|
14
14
|
|
|
15
15
|
function isGridItem(element) {
|
|
16
16
|
return element.tagName.toLowerCase() === "duet-grid-item";
|
|
@@ -27,6 +27,7 @@ const DuetGrid = class {
|
|
|
27
27
|
this.responsive = false;
|
|
28
28
|
this.breakpoint = "small";
|
|
29
29
|
this.direction = "horizontal";
|
|
30
|
+
this.rowReverse = false;
|
|
30
31
|
this.alignment = "top";
|
|
31
32
|
this.distribution = "default";
|
|
32
33
|
this.mobile = "";
|
|
@@ -149,6 +150,7 @@ const DuetGrid = class {
|
|
|
149
150
|
"duet-grid-breakpoint-medium": this.breakpoint === "medium",
|
|
150
151
|
"duet-grid-breakpoint-large": this.breakpoint === "large",
|
|
151
152
|
"duet-grid-breakpoint-x-large": this.breakpoint === "x-large",
|
|
153
|
+
"duet-grid-row-reverse": this.rowReverse,
|
|
152
154
|
} }));
|
|
153
155
|
}
|
|
154
156
|
get element() { return index.getElement(this); }
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const formSearch = require('./form-search-d61b2843.js');
|
|
10
10
|
const tokens = require('./tokens-21b244ee.js');
|
|
11
11
|
const bodyScrollLock_es6 = require('./bodyScrollLock.es6-6ef1142a.js');
|
|
@@ -307,6 +307,17 @@ const DuetHeader = class {
|
|
|
307
307
|
this.contactItems = undefined;
|
|
308
308
|
this.languageItems = undefined;
|
|
309
309
|
}
|
|
310
|
+
watchLanguageStateHandler(newValue, oldValue) {
|
|
311
|
+
if (newValue !== oldValue && this.accessibleLabel === this.accessibleLabelDefaults[oldValue]) {
|
|
312
|
+
this.accessibleLabel = languageUtils.getLocaleString(this.accessibleLabelDefaults, newValue);
|
|
313
|
+
}
|
|
314
|
+
if (newValue !== oldValue && this.accessibleI18nLabels === this.accessibleI18nLabelsDefaults[oldValue]) {
|
|
315
|
+
this.accessibleI18nLabels = languageUtils.getLocaleString(this.accessibleI18nLabelsDefaults, newValue);
|
|
316
|
+
}
|
|
317
|
+
if (newValue !== oldValue && this.accessibleLabelExternal === this.accessibleLabelExternalDefaults[oldValue]) {
|
|
318
|
+
this.accessibleLabelExternal = languageUtils.getLocaleString(this.accessibleLabelExternalDefaults, newValue);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
310
321
|
/**
|
|
311
322
|
* Component lifecycle events.
|
|
312
323
|
*/
|
|
@@ -323,6 +334,7 @@ const DuetHeader = class {
|
|
|
323
334
|
this.boundMqlFunctions[i] = bound;
|
|
324
335
|
}
|
|
325
336
|
}
|
|
337
|
+
languageUtils.connectLanguageChangeObserver(this);
|
|
326
338
|
}
|
|
327
339
|
disconnectedCallback() {
|
|
328
340
|
if (this.navigationEl) {
|
|
@@ -335,6 +347,7 @@ const DuetHeader = class {
|
|
|
335
347
|
}
|
|
336
348
|
}
|
|
337
349
|
this.boundMqlFunctions = [];
|
|
350
|
+
languageUtils.disconnectLanguageChangeObserver(this);
|
|
338
351
|
}
|
|
339
352
|
/**
|
|
340
353
|
* Component event handling.
|
|
@@ -571,6 +584,7 @@ const DuetHeader = class {
|
|
|
571
584
|
}
|
|
572
585
|
get element() { return index.getElement(this); }
|
|
573
586
|
static get watchers() { return {
|
|
587
|
+
"language": ["watchLanguageStateHandler"],
|
|
574
588
|
"user": ["refresh"],
|
|
575
589
|
"items": ["refresh"],
|
|
576
590
|
"session": ["refresh"],
|