@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
|
@@ -33,19 +33,29 @@ export class DuetNumberInput {
|
|
|
33
33
|
this.handleChange = (ev) => {
|
|
34
34
|
const input = ev.target;
|
|
35
35
|
if (input && input.value) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
value
|
|
36
|
+
try {
|
|
37
|
+
let value = SafeParseFloat(input.value, this.locale);
|
|
38
|
+
// Make sure that everything works if the user clears the input and
|
|
39
|
+
// starts typing non-numeric characters.
|
|
40
|
+
if (isNaN(value) || value == null) {
|
|
41
|
+
value = this.min || 0;
|
|
42
|
+
}
|
|
43
|
+
this.setValue(value);
|
|
44
|
+
this.duetInput.emit({
|
|
45
|
+
component: "duet-number-input",
|
|
46
|
+
originalEvent: ev,
|
|
47
|
+
value: SafeParseFloat(this.value, this.locale).toString(),
|
|
48
|
+
valueAsNumber: value,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
catch (e) {
|
|
52
|
+
this.duetInput.emit({
|
|
53
|
+
component: "duet-number-input",
|
|
54
|
+
originalEvent: ev,
|
|
55
|
+
value: null,
|
|
56
|
+
valueAsNumber: null,
|
|
57
|
+
});
|
|
41
58
|
}
|
|
42
|
-
this.setValue(value);
|
|
43
|
-
this.duetInput.emit({
|
|
44
|
-
component: "duet-number-input",
|
|
45
|
-
originalEvent: ev,
|
|
46
|
-
value: SafeParseFloat(this.value, this.locale).toString(),
|
|
47
|
-
valueAsNumber: value,
|
|
48
|
-
});
|
|
49
59
|
}
|
|
50
60
|
else {
|
|
51
61
|
this.duetInput.emit({
|
|
@@ -64,23 +74,25 @@ export class DuetNumberInput {
|
|
|
64
74
|
if (input.value) {
|
|
65
75
|
// On blur we want to make sure that the user input is between the min and max values,
|
|
66
76
|
// and also round it up or down to the nearest step.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
77
|
+
try {
|
|
78
|
+
let value = SafeParseFloat(input.value, this.locale);
|
|
79
|
+
if (this.rounding) {
|
|
80
|
+
value = roundTo(value, this.step);
|
|
81
|
+
}
|
|
82
|
+
value = clamp(value, this.min, this.max);
|
|
83
|
+
if (value !== SafeParseFloat(this.value, this.locale) ||
|
|
84
|
+
value !== SafeParseFloat(this.focusedValue, this.locale)) {
|
|
85
|
+
this.setValue(value);
|
|
86
|
+
this.emitChange(ev);
|
|
87
|
+
}
|
|
70
88
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
value !== SafeParseFloat(this.focusedValue, this.locale)) {
|
|
74
|
-
this.setValue(value);
|
|
75
|
-
this.emitChange(ev);
|
|
89
|
+
catch (e) {
|
|
90
|
+
this.emitNull(ev);
|
|
76
91
|
}
|
|
77
92
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
valueAsNumber: null,
|
|
82
|
-
component: "duet-number-input",
|
|
83
|
-
});
|
|
93
|
+
else {
|
|
94
|
+
this.emitNull(ev);
|
|
95
|
+
}
|
|
84
96
|
};
|
|
85
97
|
/**
|
|
86
98
|
* Local methods.
|
|
@@ -94,6 +106,14 @@ export class DuetNumberInput {
|
|
|
94
106
|
component: "duet-number-input",
|
|
95
107
|
});
|
|
96
108
|
};
|
|
109
|
+
this.emitNull = (ev) => {
|
|
110
|
+
this.duetChange.emit({
|
|
111
|
+
originalEvent: ev,
|
|
112
|
+
value: null,
|
|
113
|
+
valueAsNumber: null,
|
|
114
|
+
component: "duet-number-input",
|
|
115
|
+
});
|
|
116
|
+
};
|
|
97
117
|
this.localizeValue = (value) => {
|
|
98
118
|
// Returns a localized string that can be used as input value.
|
|
99
119
|
return value.toLocaleString(this.locale);
|
|
@@ -6,7 +6,7 @@ import { inheritGlobalTheme } from "../../common";
|
|
|
6
6
|
import { createID } from "../../utils/create-id";
|
|
7
7
|
import { debounce } from "../../utils/js-utils";
|
|
8
8
|
import { isArrowDownKey, isArrowKey, isArrowLeftKey, isArrowRightKey, isArrowUpKey, isNumber, } from "../../utils/keyboard-utils";
|
|
9
|
-
import { getLocaleString } from "../../utils/language-utils";
|
|
9
|
+
import { connectLanguageChangeObserver, disconnectLanguageChangeObserver, getLanguage, getLocaleString, } from "../../utils/language-utils";
|
|
10
10
|
import { shouldDisplayNavigation } from "./duet-pagination-utils";
|
|
11
11
|
/**
|
|
12
12
|
* @part navigation-arrow - this part enables style overrides for the navigation-arrow
|
|
@@ -65,6 +65,7 @@ export class DuetPagination {
|
|
|
65
65
|
this.numbersStore = "";
|
|
66
66
|
this.totalPages = 10;
|
|
67
67
|
this.internalSectionIndex = 0;
|
|
68
|
+
this.language = getLanguage();
|
|
68
69
|
this.theme = "";
|
|
69
70
|
this.jumpString = "...";
|
|
70
71
|
this.variation = "default";
|
|
@@ -117,6 +118,11 @@ export class DuetPagination {
|
|
|
117
118
|
this.ariaControls = "";
|
|
118
119
|
this.current = 1;
|
|
119
120
|
}
|
|
121
|
+
watchLanguageStateHandler(newValue, oldValue) {
|
|
122
|
+
if (newValue !== oldValue && this.accessibleLabels === this.accessibleLabelsDefaults[oldValue]) {
|
|
123
|
+
this.accessibleLabels = getLocaleString(this.accessibleLabelsDefaults, newValue);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
120
126
|
watchPropTotalHandler( /*newValue: boolean, oldValue: boolean*/) {
|
|
121
127
|
this.calculatePageTake();
|
|
122
128
|
return true;
|
|
@@ -141,6 +147,12 @@ export class DuetPagination {
|
|
|
141
147
|
componentDidRender() {
|
|
142
148
|
this.setFocus();
|
|
143
149
|
}
|
|
150
|
+
connectedCallback() {
|
|
151
|
+
connectLanguageChangeObserver(this);
|
|
152
|
+
}
|
|
153
|
+
disconnectedCallback() {
|
|
154
|
+
disconnectLanguageChangeObserver(this);
|
|
155
|
+
}
|
|
144
156
|
//get totalpages from visible and total
|
|
145
157
|
calculatePageTake() {
|
|
146
158
|
this.totalPages = Math.ceil(this.total / this.take);
|
|
@@ -260,8 +272,8 @@ export class DuetPagination {
|
|
|
260
272
|
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, h("li", { class: {
|
|
261
273
|
"duet-pagination-page-button": true,
|
|
262
274
|
"duet-pagination-button-first": true,
|
|
263
|
-
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { disabled: this.internalSectionIndex === 0 && this.current <= 1, "data-direction": "back", onClick: e => this.onMouseHandler(e, -1), "accessible-label": this.accessibleLabels.previous_page, "icon-name": "action-arrow-left-small", theme: this.theme })), this.internalSectionIndex !== 0 && this.shouldDisplayNavigation() && (h(Fragment, null, h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, h("duet-button", { class: "duet-pagination-link duet-pagination-link-jump-back", "center-text": "true", variation: "plain", color: this.theme !== "turva" ? "secondary" : "secondary-turva", margin: "none", accessibleLabel: this.accessibleLabels.first_page, onClick: e => this.jumpToStart(e), theme: this.theme }, h("div", { class: "duet-pagination-page-number" }, "1"))), h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, h("duet-button", { class: "duet-pagination-link duet-pagination-link-dots-back", "center-text": "true", color: this.theme !== "turva" ? "secondary" : "secondary-turva", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.prev_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, -1), theme: this.theme }, h("div", { class: "duet-pagination-page-number", "aria-hidden": "true" }, "..."))))), this.renderPageNumbers(), this.internalSectionIndex * (this.visibleItems + 2) < this.totalPages &&
|
|
264
|
-
|
|
275
|
+
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { disabled: this.internalSectionIndex === 0 && this.current <= 1, "data-direction": "back", onClick: e => this.onMouseHandler(e, -1), "accessible-label": this.accessibleLabels.previous_page, "icon-name": "action-arrow-left-small", theme: this.theme })), this.internalSectionIndex !== 0 && this.shouldDisplayNavigation() && (h(Fragment, null, h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, h("duet-button", { class: "duet-pagination-link duet-pagination-link-jump-back", "center-text": "true", variation: "plain", color: this.theme !== "turva" ? "secondary" : "secondary-turva", margin: "none", accessibleLabel: this.accessibleLabels.first_page, onClick: e => this.jumpToStart(e), theme: this.theme }, h("div", { class: "duet-pagination-page-number" }, "1"))), h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, h("duet-button", { class: "duet-pagination-link duet-pagination-link-dots-back", "center-text": "true", color: this.theme !== "turva" ? "secondary" : "secondary-turva", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.prev_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, -1), theme: this.theme }, h("div", { class: "duet-pagination-page-number", "aria-hidden": "true" }, "..."))))), this.renderPageNumbers(), this.internalSectionIndex * (this.visibleItems + 2) < this.totalPages && this.shouldDisplayNavigation() && // eslint-disable-line
|
|
276
|
+
(h(Fragment, null, h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, h("duet-button", { class: "duet-pagination-link duet-pagination-link-dots-forward", "center-text": "true", color: this.theme !== "turva" ? "secondary" : "secondary-turva", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.next_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, 1), theme: this.theme }, h("div", { class: "duet-pagination-page-number", "aria-hidden": "true" }, "..."))), h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, h("duet-button", { class: "duet-pagination-link duet-pagination-link-jump-forward", "center-text": "true", color: this.theme !== "turva" ? "secondary" : "secondary-turva", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.last_page, onClick: e => this.jumpToEnd(e), theme: this.theme }, h("div", { class: "duet-pagination-page-number" }, this.totalPages))))), h("li", { class: {
|
|
265
277
|
"duet-pagination-page-button": true,
|
|
266
278
|
"duet-pagination-button-last": true,
|
|
267
279
|
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { disabled: this.current === this.totalPages &&
|
|
@@ -440,7 +452,7 @@ export class DuetPagination {
|
|
|
440
452
|
},
|
|
441
453
|
"accessibleLabels": {
|
|
442
454
|
"type": "unknown",
|
|
443
|
-
"mutable":
|
|
455
|
+
"mutable": true,
|
|
444
456
|
"complexType": {
|
|
445
457
|
"original": "Record<string, string>",
|
|
446
458
|
"resolved": "{ [x: string]: string; }",
|
|
@@ -554,7 +566,8 @@ export class DuetPagination {
|
|
|
554
566
|
return {
|
|
555
567
|
"numbersStore": {},
|
|
556
568
|
"totalPages": {},
|
|
557
|
-
"internalSectionIndex": {}
|
|
569
|
+
"internalSectionIndex": {},
|
|
570
|
+
"language": {}
|
|
558
571
|
};
|
|
559
572
|
}
|
|
560
573
|
static get events() {
|
|
@@ -583,6 +596,9 @@ export class DuetPagination {
|
|
|
583
596
|
static get elementRef() { return "element"; }
|
|
584
597
|
static get watchers() {
|
|
585
598
|
return [{
|
|
599
|
+
"propName": "language",
|
|
600
|
+
"methodName": "watchLanguageStateHandler"
|
|
601
|
+
}, {
|
|
586
602
|
"propName": "total",
|
|
587
603
|
"methodName": "watchPropTotalHandler"
|
|
588
604
|
}, {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
1
|
*,
|
|
3
2
|
*::after,
|
|
4
3
|
*::before {
|
|
@@ -103,9 +102,6 @@ duet-tooltip {
|
|
|
103
102
|
width: 81px;
|
|
104
103
|
padding: 0 !important;
|
|
105
104
|
}
|
|
106
|
-
.duet-select-wrapper::after {
|
|
107
|
-
content: " ";
|
|
108
|
-
}
|
|
109
105
|
.duet-select-wrapper select {
|
|
110
106
|
position: absolute;
|
|
111
107
|
top: 0;
|
|
@@ -145,7 +145,7 @@ export class DuetSelect {
|
|
|
145
145
|
}))), h("div", { class: {
|
|
146
146
|
"duet-select": true,
|
|
147
147
|
"duet-select-variation-tiny": this.variation === "tiny",
|
|
148
|
-
}, "aria-hidden": "true" }, h("span", { key: this.value }, this.getSelectedItemLabel()), this.variation !== "tiny" && (h("svg", { role: "img", class: "duet-select-icon", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z" }))), this.variation === "tiny" && (h("duet-icon", { name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xx-small" })))), h("span", { class: "duet-select-help", id: this.errorId, "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "additions removals" }, this.error && h("span", null, this.error)))));
|
|
148
|
+
}, "aria-hidden": "true" }, h("span", { key: this.value }, this.getSelectedItemLabel()), this.variation !== "tiny" && (h("svg", { role: "img", class: "duet-select-icon", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z" }))), this.variation === "tiny" && (h("duet-icon", { name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xx-small" }))), h("span", { class: "keep-container-height", role: "presention", "aria-hidden": "true" }, "_")), h("span", { class: "duet-select-help", id: this.errorId, "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "additions removals" }, this.error && h("span", null, this.error)))));
|
|
149
149
|
}
|
|
150
150
|
static get is() { return "duet-select"; }
|
|
151
151
|
static get encapsulation() { return "scoped"; }
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
z-index: 400;
|
|
80
80
|
width: 100%;
|
|
81
81
|
height: 100%;
|
|
82
|
+
padding-bottom: 75px;
|
|
82
83
|
overflow-y: auto;
|
|
83
84
|
box-shadow: 0 3px 6px 0 rgba(0, 41, 77, 0.1) inset;
|
|
84
85
|
}
|
|
@@ -87,6 +88,7 @@
|
|
|
87
88
|
right: 0;
|
|
88
89
|
left: auto;
|
|
89
90
|
width: 500px;
|
|
91
|
+
padding-bottom: 0;
|
|
90
92
|
transition: right 300ms ease;
|
|
91
93
|
transition-delay: 0s;
|
|
92
94
|
}
|
|
@@ -23,29 +23,15 @@
|
|
|
23
23
|
width: 100%;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
:host
|
|
27
|
-
:
|
|
28
|
-
position: relative;
|
|
29
|
-
top: -0.5rem;
|
|
30
|
-
opacity: 0;
|
|
31
|
-
transition: top 0.3s ease-in, opacity 0.3s ease-in;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
:host([open]) slot::slotted(duet-submenu-bar-link),
|
|
35
|
-
:host([open]) slot::slotted(duet-submenu-bar-dropdown) {
|
|
36
|
-
top: 0;
|
|
37
|
-
opacity: 1;
|
|
26
|
+
:host(:not([open])) ::slotted(duet-submenu-bar-dropdown) {
|
|
27
|
+
display: none;
|
|
38
28
|
}
|
|
39
|
-
|
|
40
29
|
@media (min-width: 62em) {
|
|
41
|
-
:host
|
|
42
|
-
|
|
43
|
-
position: relative;
|
|
44
|
-
top: auto;
|
|
45
|
-
opacity: 1;
|
|
46
|
-
transition: none;
|
|
30
|
+
:host(:not([open])) ::slotted(duet-submenu-bar-dropdown) {
|
|
31
|
+
display: inherit;
|
|
47
32
|
}
|
|
48
33
|
}
|
|
34
|
+
|
|
49
35
|
.duet-submenu-bar {
|
|
50
36
|
position: relative;
|
|
51
37
|
background: rgb(243, 249, 252);
|
|
@@ -114,7 +100,6 @@
|
|
|
114
100
|
visibility: visible;
|
|
115
101
|
background: rgb(243, 249, 252);
|
|
116
102
|
border-bottom: 1px solid rgb(207, 210, 212);
|
|
117
|
-
transition: 300ms ease;
|
|
118
103
|
}
|
|
119
104
|
.duet-submenu-bar .items ::slotted(*) {
|
|
120
105
|
position: relative;
|
|
@@ -124,7 +109,6 @@
|
|
|
124
109
|
overflow: hidden;
|
|
125
110
|
visibility: hidden;
|
|
126
111
|
border-bottom: 0 solid rgb(207, 210, 212);
|
|
127
|
-
transition: 300ms ease;
|
|
128
112
|
}
|
|
129
113
|
@media (min-width: 62em) {
|
|
130
114
|
.duet-submenu-bar .items .list {
|
|
@@ -194,6 +194,7 @@
|
|
|
194
194
|
@media (min-width: 62em) {
|
|
195
195
|
.duet-submenu-bar-dropdown.duet-theme-turva button.active, .duet-submenu-bar-dropdown.duet-theme-turva button.open {
|
|
196
196
|
color: rgb(148, 9, 37);
|
|
197
|
+
background: rgb(228, 228, 230);
|
|
197
198
|
}
|
|
198
199
|
}
|
|
199
200
|
.duet-submenu-bar-dropdown.duet-theme-turva button.active::after, .duet-submenu-bar-dropdown.duet-theme-turva button.open::after {
|
|
@@ -12,17 +12,32 @@ export class DuetSubmenuBarDropdown {
|
|
|
12
12
|
*/
|
|
13
13
|
this.mql = [window.matchMedia(media_query_large.replace(/'/g, ""))];
|
|
14
14
|
this.boundMqlFunctions = [];
|
|
15
|
-
this.
|
|
15
|
+
this.checkIsDesktop = () => {
|
|
16
16
|
if (this.mql[0].matches) {
|
|
17
|
+
this.isDesktop = true;
|
|
17
18
|
this.iconSize = "x-small";
|
|
18
19
|
}
|
|
19
20
|
else {
|
|
21
|
+
this.isDesktop = false;
|
|
20
22
|
this.iconSize = "small";
|
|
21
23
|
}
|
|
22
24
|
};
|
|
23
25
|
this.onClick = () => {
|
|
24
|
-
|
|
26
|
+
const open = this.open;
|
|
27
|
+
if (!this.isDesktop) {
|
|
28
|
+
const dropdowns = Array.from(this.element.parentElement.querySelectorAll("duet-submenu-bar-dropdown"));
|
|
29
|
+
for (const dropdown of dropdowns) {
|
|
30
|
+
dropdown.open = false;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (open) {
|
|
34
|
+
this.open = false;
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
this.open = true;
|
|
38
|
+
}
|
|
25
39
|
};
|
|
40
|
+
this.isDesktop = false;
|
|
26
41
|
this.iconSize = "small";
|
|
27
42
|
this.theme = "";
|
|
28
43
|
this.active = false;
|
|
@@ -31,7 +46,7 @@ export class DuetSubmenuBarDropdown {
|
|
|
31
46
|
}
|
|
32
47
|
handleFocus(e) {
|
|
33
48
|
const isClickOutside = e.composedPath().every(node => node !== this.element);
|
|
34
|
-
if (isClickOutside) {
|
|
49
|
+
if (isClickOutside && this.isDesktop) {
|
|
35
50
|
this.open = false;
|
|
36
51
|
}
|
|
37
52
|
}
|
|
@@ -42,11 +57,11 @@ export class DuetSubmenuBarDropdown {
|
|
|
42
57
|
inheritGlobalTheme(this);
|
|
43
58
|
}
|
|
44
59
|
connectedCallback() {
|
|
45
|
-
this.
|
|
60
|
+
this.checkIsDesktop();
|
|
46
61
|
for (let i = 0; i < this.mql.length; i++) {
|
|
47
62
|
// addEventListener is not available in Stencil hydrate
|
|
48
63
|
if (this.mql[i].addEventListener) {
|
|
49
|
-
const bound = this.
|
|
64
|
+
const bound = this.checkIsDesktop.bind(this);
|
|
50
65
|
this.mql[i].addEventListener("change", bound);
|
|
51
66
|
this.boundMqlFunctions[i] = bound;
|
|
52
67
|
}
|
|
@@ -192,6 +207,7 @@ export class DuetSubmenuBarDropdown {
|
|
|
192
207
|
}
|
|
193
208
|
static get states() {
|
|
194
209
|
return {
|
|
210
|
+
"isDesktop": {},
|
|
195
211
|
"iconSize": {}
|
|
196
212
|
};
|
|
197
213
|
}
|
|
@@ -5,6 +5,7 @@ import { sizeHeader, sizeNavigation } from "@duetds/tokens";
|
|
|
5
5
|
import { Build, h, Host } from "@stencil/core";
|
|
6
6
|
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
7
7
|
import { debounce } from "../../utils/js-utils";
|
|
8
|
+
import { connectLanguageChangeObserver, disconnectLanguageChangeObserver, getLanguage, } from "../../utils/language-utils";
|
|
8
9
|
import { breakpointTokensUpTo, breakpointToToken } from "../../utils/token-utils";
|
|
9
10
|
const stickyTopValues = {
|
|
10
11
|
none: 0,
|
|
@@ -23,6 +24,7 @@ export class DuetTable {
|
|
|
23
24
|
this.matchesBreakpoint = breakpointTokensUpTo.includes(this.breakpoint) ? !mq.matches : mq.matches;
|
|
24
25
|
};
|
|
25
26
|
this.matchesBreakpoint = true;
|
|
27
|
+
this.language = getLanguage();
|
|
26
28
|
this.theme = undefined;
|
|
27
29
|
this.margin = "auto";
|
|
28
30
|
this.variation = "striped";
|
|
@@ -31,6 +33,11 @@ export class DuetTable {
|
|
|
31
33
|
this.breakpoint = "small";
|
|
32
34
|
this.hideHeadVisually = false;
|
|
33
35
|
}
|
|
36
|
+
watchLanguageStateHandler(newValue, oldValue) {
|
|
37
|
+
if (newValue !== oldValue) {
|
|
38
|
+
setTimeout(() => this.copyHeadingsToCells(), 50);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
34
41
|
connectedCallback() {
|
|
35
42
|
if (Build.isServer) {
|
|
36
43
|
return;
|
|
@@ -65,6 +72,7 @@ export class DuetTable {
|
|
|
65
72
|
// that way we avoid dealing with any initial changes
|
|
66
73
|
// and only get genuine mutations as rows are added/removed
|
|
67
74
|
this.observer ? this.observer.takeRecords() : null;
|
|
75
|
+
connectLanguageChangeObserver(this);
|
|
68
76
|
}
|
|
69
77
|
disconnectedCallback() {
|
|
70
78
|
if (Build.isServer) {
|
|
@@ -75,6 +83,7 @@ export class DuetTable {
|
|
|
75
83
|
this.mq.removeListener(this.handleMediaQueryChange);
|
|
76
84
|
this.mq = null;
|
|
77
85
|
this.matchesBreakpoint = true;
|
|
86
|
+
disconnectLanguageChangeObserver(this);
|
|
78
87
|
}
|
|
79
88
|
/**
|
|
80
89
|
* Local methods.
|
|
@@ -270,8 +279,15 @@ export class DuetTable {
|
|
|
270
279
|
}
|
|
271
280
|
static get states() {
|
|
272
281
|
return {
|
|
273
|
-
"matchesBreakpoint": {}
|
|
282
|
+
"matchesBreakpoint": {},
|
|
283
|
+
"language": {}
|
|
274
284
|
};
|
|
275
285
|
}
|
|
276
286
|
static get elementRef() { return "element"; }
|
|
287
|
+
static get watchers() {
|
|
288
|
+
return [{
|
|
289
|
+
"propName": "language",
|
|
290
|
+
"methodName": "watchLanguageStateHandler"
|
|
291
|
+
}];
|
|
292
|
+
}
|
|
277
293
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { h, Host } from "@stencil/core";
|
|
5
5
|
import { inheritGlobalTheme } from "../../common";
|
|
6
6
|
import { createID } from "../../utils/create-id";
|
|
7
|
-
import { getLanguage, getLocaleString } from "../../utils/language-utils";
|
|
7
|
+
import { connectLanguageChangeObserver, disconnectLanguageChangeObserver, getLanguage, getLocaleString, } from "../../utils/language-utils";
|
|
8
8
|
export class DuetTooltip {
|
|
9
9
|
constructor() {
|
|
10
10
|
/**
|
|
@@ -113,6 +113,14 @@ export class DuetTooltip {
|
|
|
113
113
|
this.positionHorizontal = "0";
|
|
114
114
|
this.active = false;
|
|
115
115
|
}
|
|
116
|
+
watchLanguageStateHandler(newValue, oldValue) {
|
|
117
|
+
if (newValue !== oldValue && this.accessibleLabel === this.accessibleLabelDefault[oldValue]) {
|
|
118
|
+
this.accessibleLabel = getLocaleString(this.accessibleLabelDefault, newValue);
|
|
119
|
+
}
|
|
120
|
+
if (newValue !== oldValue && this.accessibleCloseLabel === this.accessibleCloseLabelDefault[oldValue]) {
|
|
121
|
+
this.accessibleCloseLabel = getLocaleString(this.accessibleCloseLabelDefault, newValue);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
116
124
|
/**
|
|
117
125
|
* Component lifecycle events.
|
|
118
126
|
*/
|
|
@@ -133,6 +141,12 @@ export class DuetTooltip {
|
|
|
133
141
|
}
|
|
134
142
|
this.focusTarget = null;
|
|
135
143
|
}
|
|
144
|
+
connectedCallback() {
|
|
145
|
+
connectLanguageChangeObserver(this);
|
|
146
|
+
}
|
|
147
|
+
disconnectedCallback() {
|
|
148
|
+
disconnectLanguageChangeObserver(this);
|
|
149
|
+
}
|
|
136
150
|
/**
|
|
137
151
|
* Component event handling.
|
|
138
152
|
*/
|
|
@@ -287,7 +301,7 @@ export class DuetTooltip {
|
|
|
287
301
|
},
|
|
288
302
|
"accessibleLabel": {
|
|
289
303
|
"type": "string",
|
|
290
|
-
"mutable":
|
|
304
|
+
"mutable": true,
|
|
291
305
|
"complexType": {
|
|
292
306
|
"original": "string",
|
|
293
307
|
"resolved": "string",
|
|
@@ -354,7 +368,7 @@ export class DuetTooltip {
|
|
|
354
368
|
},
|
|
355
369
|
"accessibleCloseLabel": {
|
|
356
370
|
"type": "string",
|
|
357
|
-
"mutable":
|
|
371
|
+
"mutable": true,
|
|
358
372
|
"complexType": {
|
|
359
373
|
"original": "string",
|
|
360
374
|
"resolved": "string",
|
|
@@ -371,7 +385,7 @@ export class DuetTooltip {
|
|
|
371
385
|
},
|
|
372
386
|
"attribute": "accessible-close-label",
|
|
373
387
|
"reflect": false,
|
|
374
|
-
"defaultValue": "getLocaleString(this.accessibleCloseLabelDefault
|
|
388
|
+
"defaultValue": "getLocaleString(\n this.accessibleCloseLabelDefault,\n this.language\n )"
|
|
375
389
|
},
|
|
376
390
|
"label": {
|
|
377
391
|
"type": "string",
|
|
@@ -503,6 +517,9 @@ export class DuetTooltip {
|
|
|
503
517
|
static get elementRef() { return "element"; }
|
|
504
518
|
static get watchers() {
|
|
505
519
|
return [{
|
|
520
|
+
"propName": "language",
|
|
521
|
+
"methodName": "watchLanguageStateHandler"
|
|
522
|
+
}, {
|
|
506
523
|
"propName": "active",
|
|
507
524
|
"methodName": "handleActiveChange"
|
|
508
525
|
}];
|
|
@@ -34,6 +34,10 @@
|
|
|
34
34
|
margin-top: 16px;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
::slotted([slot=uploadfooter]) {
|
|
38
|
+
margin-top: 28px;
|
|
39
|
+
}
|
|
40
|
+
|
|
37
41
|
.duet-upload {
|
|
38
42
|
box-sizing: border-box;
|
|
39
43
|
padding: 0;
|
|
@@ -109,8 +113,8 @@ duet-editable-table tfoot {
|
|
|
109
113
|
}
|
|
110
114
|
|
|
111
115
|
.upload-bottom-caption {
|
|
112
|
-
margin-top:
|
|
113
|
-
margin-bottom:
|
|
116
|
+
margin-top: 12px;
|
|
117
|
+
margin-bottom: 28px;
|
|
114
118
|
}
|
|
115
119
|
|
|
116
120
|
.items-header {
|
|
@@ -151,47 +155,53 @@ duet-editable-table tfoot {
|
|
|
151
155
|
}
|
|
152
156
|
.upload-item-row .item-categories {
|
|
153
157
|
width: 100%;
|
|
154
|
-
margin-bottom: 8px;
|
|
155
158
|
}
|
|
156
159
|
@media (min-width: 36em) {
|
|
157
160
|
.upload-item-row .item-categories {
|
|
158
161
|
width: 35%;
|
|
159
162
|
}
|
|
160
163
|
}
|
|
161
|
-
.upload-item-row .item-
|
|
164
|
+
.upload-item-row .item-name {
|
|
165
|
+
position: relative;
|
|
166
|
+
bottom: 2px;
|
|
162
167
|
width: 100%;
|
|
163
|
-
margin-bottom: 8px;
|
|
164
168
|
text-align: left;
|
|
165
169
|
}
|
|
166
170
|
@media (min-width: 36em) {
|
|
167
|
-
.upload-item-row .item-
|
|
171
|
+
.upload-item-row .item-name {
|
|
168
172
|
width: 50%;
|
|
169
173
|
}
|
|
170
|
-
.upload-item-row .item-
|
|
174
|
+
.upload-item-row .item-name.no-category {
|
|
171
175
|
width: 85%;
|
|
172
176
|
}
|
|
173
177
|
}
|
|
174
178
|
.upload-item-row .item-categories .heading,
|
|
175
|
-
.upload-item-row .item-
|
|
179
|
+
.upload-item-row .item-name .heading {
|
|
176
180
|
display: block;
|
|
177
181
|
}
|
|
178
182
|
@media (min-width: 36em) {
|
|
179
183
|
.upload-item-row .item-categories .heading,
|
|
180
|
-
.upload-item-row .item-
|
|
184
|
+
.upload-item-row .item-name .heading {
|
|
181
185
|
display: none;
|
|
182
186
|
}
|
|
183
187
|
}
|
|
184
188
|
.upload-item-row .item-actions {
|
|
185
189
|
width: 100%;
|
|
190
|
+
padding-top: 6px;
|
|
186
191
|
text-align: left;
|
|
187
192
|
}
|
|
188
193
|
@media (min-width: 36em) {
|
|
189
194
|
.upload-item-row .item-actions {
|
|
190
195
|
width: 15%;
|
|
196
|
+
padding-top: 0;
|
|
191
197
|
text-align: right;
|
|
192
198
|
}
|
|
193
199
|
}
|
|
194
200
|
.upload-item-row .duet-upload-item-name duet-icon {
|
|
195
201
|
position: relative;
|
|
196
202
|
top: 4px;
|
|
203
|
+
}
|
|
204
|
+
.upload-item-row .duet-upload-item-name duet-progress {
|
|
205
|
+
display: block;
|
|
206
|
+
margin-top: 16px;
|
|
197
207
|
}
|
|
@@ -696,7 +696,7 @@ export class DuetUpload {
|
|
|
696
696
|
this.externalUploadButton.ariaLabel = caption;
|
|
697
697
|
}
|
|
698
698
|
// @ts-ignore
|
|
699
|
-
return (h(Host, { class: { "duet-m-0": this.margin === "none" } }, h("duet-fieldset", { "label-hidden": this.hideHeader, label: this.label, caption: !this.captionOnBottom ? caption : undefined }, h("slot", { name: "header" }), !this.files.size && (h("duet-empty-state", { id: this.labelId, part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", icon: "messaging-attachment" }, h("duet-paragraph", { margin: "none" }, this.fileListEmpty))), !!this.files.size && h("slot", { name: "fileheader" }), !!this.files.size && (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 && h("slot", { name: "filefooter" }), h("slot", { name: "uploadfooter" }), this.captionOnBottom && (h("duet-caption", { size: "small" }, h("div", { class: "upload-bottom-caption" }, caption))), h("slot", { name: "afterfooter" }), h("duet-spacer", { size: "large" }),
|
|
699
|
+
return (h(Host, { class: { "duet-m-0": this.margin === "none" } }, h("duet-fieldset", { "label-hidden": this.hideHeader, label: this.label, caption: !this.captionOnBottom ? caption : undefined }, h("slot", { name: "header" }), !this.files.size && (h("duet-empty-state", { id: this.labelId, part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", icon: "messaging-attachment" }, h("duet-paragraph", { margin: "none" }, this.fileListEmpty))), !!this.files.size && h("slot", { name: "fileheader" }), !!this.files.size && (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 && h("slot", { name: "filefooter" }), h("slot", { name: "uploadfooter" }), this.captionOnBottom && (h("duet-caption", { size: "small" }, h("div", { class: "upload-bottom-caption" }, caption))), h("slot", { name: "afterfooter" }), !this.hideButton && (h(Fragment, null, h("duet-spacer", { size: "large" }), 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) && (h(Fragment, null, h("duet-spacer", { size: "medium" }), 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)))), h("duet-visually-hidden", { "aria-hidden": "true" }, h("input", { ref: input => {
|
|
700
700
|
this.nativeInput = input;
|
|
701
701
|
}, accept: !this.limitSelection ? undefined : `${this.allowedMimetypes},${this.allowedExtensions}`, onBlur: this.onBlur, onFocus: this.onFocus, onChange: e => this.onChange(e), type: "file", class: {
|
|
702
702
|
"duet-upload": true,
|
|
@@ -11,7 +11,7 @@ export const UploadItem = ({ data, showLinks, type, actions, errorCodes, theme,
|
|
|
11
11
|
const getFileNameLine = () => {
|
|
12
12
|
switch (type) {
|
|
13
13
|
case "inprogress":
|
|
14
|
-
return (h("span", { class: "duet-upload-item-name" }, h("duet-paragraph", { class: "duet-upload-item-name", color: "gray-darker", margin: "none", weight: "semi-bold" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name), h("
|
|
14
|
+
return (h("span", { class: "duet-upload-item-name" }, h("duet-paragraph", { class: "duet-upload-item-name", color: "gray-darker", margin: "none", weight: "semi-bold" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name), h("duet-progress", { progress: Math.ceil(progress), "aria-hidden": true })));
|
|
15
15
|
case "pending":
|
|
16
16
|
return (h("span", { class: "duet-upload-item-name" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name));
|
|
17
17
|
case "failure":
|
|
@@ -22,11 +22,11 @@ export const UploadItem = ({ data, showLinks, type, actions, errorCodes, theme,
|
|
|
22
22
|
};
|
|
23
23
|
const ContentName = (h("span", { class: "duet-upload-item-name" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name));
|
|
24
24
|
const SizeText = (h("span", { class: "duet-upload-item-size", style: { fontSize: "14px", fontWeight: "400" } }, "(", formatBytes(size), ")"));
|
|
25
|
-
const Badges = meta && meta.badges ? (h("span", null,
|
|
25
|
+
const Badges = meta && meta.badges ? (h("span", null, meta.badges.map(badgeText => (h("duet-badge", { color: "primary" }, badgeText))))) : undefined;
|
|
26
26
|
const actionDescription = `${meta && meta.badges ? meta.badges.join(",") : ""} ${name}`;
|
|
27
27
|
return (h("div", { class: {
|
|
28
28
|
"upload-item-row": true,
|
|
29
|
-
} }, showCategory && (h("div", { class: "item-categories" }, h("duet-heading", { class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(categoryLabel)), Badges)), h("div", { class: { "item-
|
|
29
|
+
} }, showCategory && (h("div", { class: "item-categories" }, h("duet-heading", { class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(categoryLabel)), Badges)), h("div", { class: { "item-name": true, "no-category": !showCategory } }, !!label && (h("duet-heading", { class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(label))), getFileNameLine()), h("div", { class: "item-actions" }, actions.map(actionItem => {
|
|
30
30
|
return (h("duet-action-button", { actionMeta: Object.assign({}, meta || {}), actionId: uid || null, actionName: actionItem.name, theme: theme, iconName: actionItem.icon, iconColor: actionItem.color, iconSize: actionItem.size, background: actionItem.background, "accessible-label": `${actionDescription} ${getLocaleString(actionItem.label)} ` }));
|
|
31
31
|
}))));
|
|
32
32
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetActionButton$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetActionButton$1, d as defineCustomElement$1 } from './p-c57eccd3.js';
|
|
5
5
|
|
|
6
6
|
const DuetActionButton = DuetActionButton$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetAlert$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetAlert$1, d as defineCustomElement$1 } from './p-c272c5d5.js';
|
|
5
5
|
|
|
6
6
|
const DuetAlert = DuetAlert$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetBadge$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetBadge$1, d as defineCustomElement$1 } from './p-94df5d2c.js';
|
|
5
5
|
|
|
6
6
|
const DuetBadge = DuetBadge$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|