@duetds/components 6.9.0 → 6.9.2
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 +332 -111
- 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 +3 -3
- package/lib/cjs/duet-card.cjs.entry.js +9 -13
- 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 +27 -12
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +6 -2
- 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 +9 -14
- 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 +3 -2
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +3 -2
- 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 +23 -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 +19 -3
- package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +17 -4
- 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 +15 -4
- 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 +3 -2
- package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
- package/lib/cjs/duet-tooltip.cjs.entry.js +22 -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-76896ff7.js} +1 -1
- package/lib/cjs/{index-92f0a873.js → index-0000eab8.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-card/duet-card.css +13 -10
- package/lib/collection/components/duet-card/duet-card.js +7 -11
- 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-fieldset/duet-fieldset.js +5 -1
- 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-heading/duet-heading.js +4 -1
- package/lib/collection/components/duet-hero/duet-hero.css +23 -3
- package/lib/collection/components/duet-hero/duet-hero.js +17 -3
- package/lib/collection/components/duet-input/duet-input.js +8 -13
- package/lib/collection/components/duet-link/duet-link.css +3 -0
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +19 -1
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +19 -1
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +42 -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 +15 -2
- 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-tab-group/duet-tab-group.js +55 -2
- package/lib/collection/components/duet-table/duet-table.js +17 -1
- package/lib/collection/components/duet-textarea/duet-textarea.js +14 -3
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +19 -1
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +33 -4
- package/lib/collection/components/duet-upload/duet-upload.css +23 -10
- package/lib/collection/components/duet-upload/duet-upload.js +1 -1
- package/lib/collection/components/duet-upload/upload-item-header.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 +11 -15
- 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 +6 -4
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-link.js +5 -3
- 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 +33 -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 +29 -12
- 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 +22 -11
- 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 +6 -4
- 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 +24 -27
- 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-6c05e879.js → p-076452be.js} +1 -1
- package/lib/dist-custom-elements/{p-26d32594.js → p-0dee6e51.js} +28 -7
- package/lib/dist-custom-elements/{p-17d43428.js → p-148a04af.js} +5 -5
- package/lib/dist-custom-elements/{p-7a4bdb83.js → p-14d7b7b1.js} +1 -1
- package/lib/dist-custom-elements/{p-c820f65e.js → p-16da1a85.js} +2 -2
- package/lib/dist-custom-elements/{p-e1de0408.js → p-1b34ed71.js} +1 -1
- package/lib/dist-custom-elements/{p-41ef88f4.js → p-29b0c53d.js} +22 -6
- package/lib/dist-custom-elements/{p-9eba8647.js → p-2a7fe62b.js} +7 -3
- package/lib/dist-custom-elements/{p-d6bcc527.js → p-3ee0a1f0.js} +1 -1
- package/lib/dist-custom-elements/{p-a1ee31fb.js → p-427c3c85.js} +1 -1
- package/lib/dist-custom-elements/{p-353d6d0c.js → p-4672c5f9.js} +1 -1
- package/lib/dist-custom-elements/{p-c01c91d6.js → p-61d6063e.js} +2 -2
- package/lib/dist-custom-elements/p-685671d3.js +248 -0
- package/lib/dist-custom-elements/{p-49848110.js → p-6b75d471.js} +1 -1
- package/lib/dist-custom-elements/{p-4b4a086d.js → p-74eab201.js} +17 -22
- package/lib/dist-custom-elements/{p-29b2c3bb.js → p-773afd9d.js} +1 -1
- package/lib/dist-custom-elements/{p-d0dea200.js → p-80c873a7.js} +1 -1
- package/lib/dist-custom-elements/p-81ad703b.js +183 -0
- package/lib/dist-custom-elements/{p-dde8e436.js → p-8810d94c.js} +5 -5
- package/lib/dist-custom-elements/{p-47ba781e.js → p-a2640cf0.js} +15 -2
- package/lib/dist-custom-elements/{p-9d23386f.js → p-a98f3c53.js} +1 -1
- package/lib/dist-custom-elements/{p-85fd8f09.js → p-aa856cf3.js} +1 -1
- package/lib/dist-custom-elements/{p-c4a3d30d.js → p-b1c2d128.js} +1 -1
- package/lib/dist-custom-elements/{p-890a9b12.js → p-b8590b9e.js} +2 -2
- package/lib/dist-custom-elements/{p-1bf112be.js → p-b8bdb756.js} +1 -1
- package/lib/dist-custom-elements/{p-7199196e.js → p-b9713025.js} +3 -3
- package/lib/dist-custom-elements/{p-a56cc313.js → p-c06566bd.js} +2 -2
- package/lib/dist-custom-elements/{p-276e05ab.js → p-cf8e064c.js} +6 -6
- package/lib/dist-custom-elements/{p-0d1b84db.js → p-d0a476fa.js} +1 -1
- package/lib/dist-custom-elements/{p-945a2c0c.js → p-d6ebe136.js} +2 -2
- package/lib/dist-custom-elements/{p-19ad4945.js → p-d9374d44.js} +1 -1
- package/lib/dist-custom-elements/{p-d6a4de03.js → p-fb9ea1e2.js} +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/p-00492553.entry.js +4 -0
- package/lib/duet/p-00a6021a.entry.js +4 -0
- package/lib/duet/{p-c832c83e.system.entry.js → p-04b466d9.system.entry.js} +1 -1
- package/lib/duet/{p-4ab70001.system.entry.js → p-0956191f.system.entry.js} +1 -1
- package/lib/duet/{p-a5b5f3e2.system.entry.js → p-0b99b63a.system.entry.js} +1 -1
- package/lib/duet/p-0c7ba24e.entry.js +4 -0
- package/lib/duet/p-0fd03676.entry.js +4 -0
- package/lib/duet/{p-d7c0027e.entry.js → p-0febc106.entry.js} +1 -1
- package/lib/duet/{p-7d4e2e96.system.entry.js → p-10c8dcce.system.entry.js} +1 -1
- package/lib/duet/p-18417d31.system.entry.js +4 -0
- package/lib/duet/{p-26ebc753.system.entry.js → p-1a494e83.system.entry.js} +1 -1
- package/lib/duet/{p-93f3e158.system.entry.js → p-1af260c2.system.entry.js} +1 -1
- package/lib/duet/{p-4136d211.entry.js → p-1b53a027.entry.js} +1 -1
- package/lib/duet/p-1d4d1191.entry.js +4 -0
- package/lib/duet/p-1d6d12db.entry.js +4 -0
- package/lib/duet/{p-8f0579d1.entry.js → p-1f782abb.entry.js} +1 -1
- package/lib/duet/{p-29193196.entry.js → p-255e7c67.entry.js} +1 -1
- package/lib/duet/p-25608db1.entry.js +4 -0
- package/lib/duet/{p-190507d4.system.entry.js → p-2578566b.system.entry.js} +1 -1
- package/lib/duet/{p-5743852f.system.js → p-2852d734.system.js} +1 -1
- package/lib/duet/{p-ce108a20.entry.js → p-2ee96e3b.entry.js} +1 -1
- package/lib/duet/{p-84eb3d96.system.entry.js → p-30574b01.system.entry.js} +1 -1
- package/lib/duet/{p-d8de0d06.entry.js → p-3337b7b5.entry.js} +1 -1
- package/lib/duet/{p-48bab8b6.entry.js → p-335ce078.entry.js} +1 -1
- package/lib/duet/p-39311463.system.entry.js +4 -0
- package/lib/duet/{p-c7507f6b.system.entry.js → p-3eb4385b.system.entry.js} +2 -2
- package/lib/duet/{p-f7ff8b67.entry.js → p-3f823f65.entry.js} +1 -1
- package/lib/duet/p-40c8612e.entry.js +4 -0
- package/lib/duet/{p-7dc36831.system.js → p-473e553e.system.js} +1 -1
- package/lib/duet/{p-2b4f4c85.system.entry.js → p-4cf4097a.system.entry.js} +1 -1
- package/lib/duet/{p-7a53ff56.entry.js → p-4f054589.entry.js} +1 -1
- package/lib/duet/{p-7c32523b.system.entry.js → p-51b95a0b.system.entry.js} +1 -1
- package/lib/duet/{p-ef31120e.system.entry.js → p-5368ccf3.system.entry.js} +1 -1
- package/lib/duet/{p-d503fd3d.entry.js → p-57a480c6.entry.js} +1 -1
- package/lib/duet/{p-17d1d5ee.entry.js → p-5925af50.entry.js} +1 -1
- package/lib/duet/p-59dbe033.system.entry.js +4 -0
- package/lib/duet/{p-65b119a7.system.entry.js → p-5a0a47c5.system.entry.js} +1 -1
- package/lib/duet/{p-5047ae3d.entry.js → p-5dc301ad.entry.js} +1 -1
- package/lib/duet/{p-4b02643a.system.entry.js → p-612c5794.system.entry.js} +1 -1
- package/lib/duet/{p-ad82c633.system.entry.js → p-619129a1.system.entry.js} +1 -1
- package/lib/duet/{p-d563682c.entry.js → p-6288a8f7.entry.js} +1 -1
- package/lib/duet/{p-8b123c27.system.entry.js → p-62e5eda4.system.entry.js} +1 -1
- package/lib/duet/p-62ee8769.system.entry.js +4 -0
- package/lib/duet/{p-1bfff197.system.entry.js → p-64a97121.system.entry.js} +1 -1
- package/lib/duet/{p-cc7f7692.entry.js → p-65c666a0.entry.js} +1 -1
- package/lib/duet/p-66d17a50.entry.js +4 -0
- package/lib/duet/{p-049f7427.entry.js → p-68436d9b.entry.js} +1 -1
- package/lib/duet/{p-fc8b03f3.system.entry.js → p-6a23db40.system.entry.js} +1 -1
- package/lib/duet/{p-f173da98.entry.js → p-6b3d47fc.entry.js} +1 -1
- package/lib/duet/{p-568c7b6d.entry.js → p-6bec8453.entry.js} +1 -1
- package/lib/duet/{p-e9cea31c.entry.js → p-6cccad3a.entry.js} +1 -1
- package/lib/duet/{p-643dd974.entry.js → p-6dd7d693.entry.js} +1 -1
- package/lib/duet/{p-07e54b8a.entry.js → p-71012a41.entry.js} +1 -1
- package/lib/duet/{p-bc89db28.entry.js → p-711128a1.entry.js} +1 -1
- package/lib/duet/{p-c3495075.system.entry.js → p-71da4ed1.system.entry.js} +1 -1
- package/lib/duet/{p-1de4b105.system.entry.js → p-74d84deb.system.entry.js} +1 -1
- package/lib/duet/{p-80bc3db3.entry.js → p-754a1a94.entry.js} +1 -1
- package/lib/duet/{p-702a9390.entry.js → p-779234b0.entry.js} +1 -1
- package/lib/duet/p-78ce7a07.entry.js +4 -0
- package/lib/duet/{p-2b94fb6c.entry.js → p-79f6c24a.entry.js} +1 -1
- package/lib/duet/p-7e739548.system.entry.js +4 -0
- package/lib/duet/{p-7fd9b8b6.system.entry.js → p-7e96a306.system.entry.js} +1 -1
- package/lib/duet/{p-de06c5ff.entry.js → p-7f9cc019.entry.js} +1 -1
- package/lib/duet/{p-c91aaa04.system.entry.js → p-81236c93.system.entry.js} +1 -1
- package/lib/duet/{p-38680e94.system.entry.js → p-815cbab7.system.entry.js} +1 -1
- package/lib/duet/p-82398d82.entry.js +4 -0
- package/lib/duet/{p-5576e447.system.entry.js → p-840cdccb.system.entry.js} +1 -1
- package/lib/duet/{p-aac361b8.entry.js → p-86fede3f.entry.js} +1 -1
- package/lib/duet/{p-c073eb55.system.entry.js → p-8d1ccbc2.system.entry.js} +1 -1
- package/lib/duet/{p-addd277e.system.entry.js → p-8d482808.system.entry.js} +1 -1
- package/lib/duet/p-8ef91f59.entry.js +4 -0
- package/lib/duet/{p-b1b1160e.system.entry.js → p-8efc476e.system.entry.js} +1 -1
- package/lib/duet/{p-be3c04fb.entry.js → p-8f2834ae.entry.js} +1 -1
- package/lib/duet/p-8f3d5e14.system.entry.js +4 -0
- package/lib/duet/{p-2faa3962.entry.js → p-905d2cc8.entry.js} +1 -1
- package/lib/duet/{p-628c4fc7.system.entry.js → p-911c761b.system.entry.js} +1 -1
- package/lib/duet/{p-b16b89c3.system.entry.js → p-93562bf8.system.entry.js} +1 -1
- package/lib/duet/{p-7f2a16b3.entry.js → p-93da242f.entry.js} +1 -1
- package/lib/duet/{p-2184a285.system.entry.js → p-9446df5b.system.entry.js} +1 -1
- package/lib/duet/p-94760aea.entry.js +4 -0
- package/lib/duet/{p-9f5446d7.system.entry.js → p-97d314bb.system.entry.js} +1 -1
- package/lib/duet/{p-95f020cc.system.entry.js → p-9885878c.system.entry.js} +1 -1
- package/lib/duet/{p-e71cb6f4.entry.js → p-98d99400.entry.js} +1 -1
- package/lib/duet/p-9b75cec2.system.entry.js +4 -0
- package/lib/duet/{p-72585f83.entry.js → p-9e1585bd.entry.js} +1 -1
- package/lib/duet/{p-fad8bcee.system.entry.js → p-9e3c843a.system.entry.js} +1 -1
- package/lib/duet/p-9fb2e28a.js +4 -0
- package/lib/duet/p-a2728f08.system.entry.js +4 -0
- package/lib/duet/{p-7a5077a2.system.entry.js → p-a8c9268c.system.entry.js} +1 -1
- package/lib/duet/{p-e8a6eda7.system.entry.js → p-ac25aad5.system.entry.js} +1 -1
- package/lib/duet/{p-44bbf984.entry.js → p-b12261bb.entry.js} +1 -1
- package/lib/duet/p-b31e663e.system.entry.js +4 -0
- package/lib/duet/{p-fa7a4245.entry.js → p-b44b12af.entry.js} +1 -1
- package/lib/duet/{p-faaa6249.entry.js → p-b78eeeff.entry.js} +1 -1
- package/lib/duet/{p-c518f7da.system.entry.js → p-b8c2b5f2.system.entry.js} +1 -1
- package/lib/duet/p-b92f06ff.system.entry.js +4 -0
- package/lib/duet/p-bc169783.entry.js +4 -0
- package/lib/duet/{p-2e822cf0.entry.js → p-bed02d40.entry.js} +1 -1
- package/lib/duet/p-bf097e1b.entry.js +4 -0
- package/lib/duet/{p-58b9c7b4.system.entry.js → p-c19e2d81.system.entry.js} +1 -1
- package/lib/duet/{p-2a80caf9.entry.js → p-c2d2a2d2.entry.js} +1 -1
- package/lib/duet/{p-2e69c81b.entry.js → p-c3164a3c.entry.js} +1 -1
- package/lib/duet/p-c4266675.entry.js +4 -0
- package/lib/duet/{p-78f49cbf.system.entry.js → p-c919efff.system.entry.js} +1 -1
- package/lib/duet/{p-12ee9a23.system.entry.js → p-c9dcf840.system.entry.js} +1 -1
- package/lib/duet/p-cf3c27e4.system.entry.js +4 -0
- package/lib/duet/p-cf5f89af.entry.js +4 -0
- package/lib/duet/{p-d3da2989.system.entry.js → p-cf8b0da5.system.entry.js} +1 -1
- package/lib/duet/{p-6fe5922d.system.entry.js → p-cfcfd3fd.system.entry.js} +1 -1
- package/lib/duet/p-d225444d.entry.js +4 -0
- package/lib/duet/{p-02e23372.entry.js → p-d2abe34b.entry.js} +1 -1
- package/lib/duet/p-d5ac7213.entry.js +4 -0
- package/lib/duet/p-d658b29d.entry.js +4 -0
- package/lib/duet/{p-c4738155.system.entry.js → p-da2b07eb.system.entry.js} +1 -1
- package/lib/duet/p-db8ef99d.entry.js +4 -0
- package/lib/duet/{p-8760c0ee.system.entry.js → p-dbd0293b.system.entry.js} +1 -1
- package/lib/duet/{p-6326cade.system.entry.js → p-dbff88b5.system.entry.js} +1 -1
- package/lib/duet/{p-2ff8c614.entry.js → p-dcc18bd4.entry.js} +1 -1
- package/lib/duet/{p-835ea0dc.system.entry.js → p-e0ea4e90.system.entry.js} +1 -1
- package/lib/duet/p-e27bd167.entry.js +4 -0
- package/lib/duet/{p-2b0d6d66.system.entry.js → p-e6c16681.system.entry.js} +1 -1
- package/lib/duet/{p-723308e1.entry.js → p-e741b72a.entry.js} +1 -1
- package/lib/duet/{p-b3584ef1.system.entry.js → p-e7ba7e64.system.entry.js} +1 -1
- package/lib/duet/{p-c22a97ea.system.entry.js → p-e94fb66d.system.entry.js} +1 -1
- package/lib/duet/p-ea68c9e4.system.entry.js +4 -0
- package/lib/duet/{p-39c34fde.system.entry.js → p-eb6ec3b0.system.entry.js} +1 -1
- package/lib/duet/p-ebf82712.system.entry.js +4 -0
- package/lib/duet/{p-2c0d4d3c.entry.js → p-eefb5300.entry.js} +1 -1
- package/lib/duet/{p-1ef436d2.js → p-f235b6ff.js} +1 -1
- package/lib/duet/{p-c3e4e6a2.system.entry.js → p-f61cf0d1.system.entry.js} +1 -1
- package/lib/duet/{p-9aae9d2a.system.entry.js → p-f7393070.system.entry.js} +1 -1
- package/lib/duet/p-f96bb9f9.system.js +4 -0
- package/lib/duet/p-fb021333.entry.js +4 -0
- package/lib/duet/{p-47fb8005.system.entry.js → p-fb8a741c.system.entry.js} +1 -1
- package/lib/duet/{p-893d0a53.entry.js → p-fd377d28.entry.js} +1 -1
- package/lib/duet/{p-e57b04f0.entry.js → p-feac6e72.entry.js} +1 -1
- package/lib/duet/{p-a79f86b5.system.entry.js → p-ffdc54ad.system.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 +3 -3
- package/lib/esm/duet-card.entry.js +9 -13
- 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 +28 -13
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +6 -2
- 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 +9 -14
- 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 +3 -2
- package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm/duet-menu-bar-link.entry.js +3 -2
- 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 +24 -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 +19 -3
- package/lib/esm/duet-section-layout.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +17 -4
- 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 +15 -4
- 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 +3 -2
- package/lib/esm/duet-toolbar.entry.js +1 -1
- package/lib/esm/duet-tooltip.entry.js +23 -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-6a919f2a.js} +1 -1
- package/lib/esm/{index-9d169c3d.js → index-13f57135.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 +1 -1
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +2 -2
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-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 +2 -2
- 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-123e9cba.js → focus-utils-6a919f2a.js} +1 -1
- package/lib/esm-es5/{index-9d169c3d.js → index-13f57135.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-heading/duet-heading.d.ts +3 -0
- package/lib/types/components/duet-hero/duet-hero.d.ts +3 -0
- package/lib/types/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.d.ts +6 -0
- package/lib/types/components/duet-menu-bar-link/duet-menu-bar-link.d.ts +6 -0
- package/lib/types/components/duet-multiselect/duet-multiselect.d.ts +9 -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-select/duet-select.d.ts +1 -0
- package/lib/types/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.d.ts +2 -1
- package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +10 -0
- package/lib/types/components/duet-table/duet-table.d.ts +6 -1
- package/lib/types/components/duet-textarea/duet-textarea.d.ts +1 -0
- package/lib/types/components/duet-toolbar-link/duet-toolbar-link.d.ts +6 -0
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +5 -0
- package/lib/types/components.d.ts +52 -0
- package/package.json +5 -5
- package/lib/dist-custom-elements/p-132f2514.js +0 -235
- 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-21d08944.entry.js +0 -4
- package/lib/duet/p-21d4df80.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-45a64d20.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-58d08fb8.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-72264693.entry.js +0 -4
- package/lib/duet/p-850b95d7.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-a6a5458a.entry.js +0 -4
- package/lib/duet/p-acb0fbdc.system.entry.js +0 -4
- package/lib/duet/p-afb58e46.js +0 -4
- package/lib/duet/p-b421ea8a.system.entry.js +0 -4
- package/lib/duet/p-c0ac70a9.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-d5474f30.system.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-dcce6bad.entry.js +0 -4
- package/lib/duet/p-e73937e1.system.entry.js +0 -4
- package/lib/duet/p-f9c26b20.system.entry.js +0 -4
|
@@ -1262,6 +1262,10 @@ export namespace Components {
|
|
|
1262
1262
|
* Enable or disable the automatic responsive behaviour of the grid component. Setting this option to "true" makes sure that contents are stacked vertically on mobile (575px and under).
|
|
1263
1263
|
*/
|
|
1264
1264
|
"responsive": boolean;
|
|
1265
|
+
/**
|
|
1266
|
+
* Reverse the order of the grid items when horizontal. Usefull when we want the primary item to be on bottom right on desktop, but on top on mobile and the first for screen readers.
|
|
1267
|
+
*/
|
|
1268
|
+
"rowReverse": boolean;
|
|
1265
1269
|
}
|
|
1266
1270
|
interface DuetGridItem {
|
|
1267
1271
|
"breakpoint": DuetGridBreakpoint;
|
|
@@ -2021,6 +2025,10 @@ export namespace Components {
|
|
|
2021
2025
|
"theme": DuetTheme;
|
|
2022
2026
|
}
|
|
2023
2027
|
interface DuetMenuBarDropdownLink {
|
|
2028
|
+
/**
|
|
2029
|
+
* Adds accessible label for the link that is only shown for screen readers. Typically, this label text replaces the visible text on the link for users who use assistive technology.
|
|
2030
|
+
*/
|
|
2031
|
+
"accessibleLabel": string;
|
|
2024
2032
|
/**
|
|
2025
2033
|
* Href
|
|
2026
2034
|
*/
|
|
@@ -2035,6 +2043,10 @@ export namespace Components {
|
|
|
2035
2043
|
"theme": DuetTheme;
|
|
2036
2044
|
}
|
|
2037
2045
|
interface DuetMenuBarLink {
|
|
2046
|
+
/**
|
|
2047
|
+
* Adds accessible label for the link that is only shown for screen readers. Typically, this label text replaces the visible text on the link for users who use assistive technology.
|
|
2048
|
+
*/
|
|
2049
|
+
"accessibleLabel": string;
|
|
2038
2050
|
/**
|
|
2039
2051
|
* Active
|
|
2040
2052
|
*/
|
|
@@ -2139,6 +2151,10 @@ export namespace Components {
|
|
|
2139
2151
|
"theme": DuetTheme;
|
|
2140
2152
|
}
|
|
2141
2153
|
interface DuetMultiselect {
|
|
2154
|
+
/**
|
|
2155
|
+
* Indicates the id of a component that describes the input.
|
|
2156
|
+
*/
|
|
2157
|
+
"accessibleDescribedBy": string;
|
|
2142
2158
|
/**
|
|
2143
2159
|
* Caption (underneath label) that can be set as a way of adding extra information
|
|
2144
2160
|
*/
|
|
@@ -3337,6 +3353,10 @@ export namespace Components {
|
|
|
3337
3353
|
* Controls if tab content should have tab index and be accessible by pressing tab
|
|
3338
3354
|
*/
|
|
3339
3355
|
"setTabIndex": boolean;
|
|
3356
|
+
/**
|
|
3357
|
+
* If this property is set to true, tab won't change immediately after clicking it. Component will emit "duetTabChangeRequested" event, and it needs to be handled manually in order to change tab.
|
|
3358
|
+
*/
|
|
3359
|
+
"tabChangeConfirm": boolean;
|
|
3340
3360
|
/**
|
|
3341
3361
|
* Theme of the component.
|
|
3342
3362
|
*/
|
|
@@ -3643,6 +3663,10 @@ export namespace Components {
|
|
|
3643
3663
|
"theme": DuetTheme;
|
|
3644
3664
|
}
|
|
3645
3665
|
interface DuetToolbarLink {
|
|
3666
|
+
/**
|
|
3667
|
+
* Adds accessible label for the link that is only shown for screen readers. Typically, this label text replaces the visible text on the link for users who use assistive technology.
|
|
3668
|
+
*/
|
|
3669
|
+
"accessibleLabel": string;
|
|
3646
3670
|
/**
|
|
3647
3671
|
* Active
|
|
3648
3672
|
*/
|
|
@@ -5941,6 +5965,10 @@ declare namespace LocalJSX {
|
|
|
5941
5965
|
* Enable or disable the automatic responsive behaviour of the grid component. Setting this option to "true" makes sure that contents are stacked vertically on mobile (575px and under).
|
|
5942
5966
|
*/
|
|
5943
5967
|
"responsive"?: boolean;
|
|
5968
|
+
/**
|
|
5969
|
+
* Reverse the order of the grid items when horizontal. Usefull when we want the primary item to be on bottom right on desktop, but on top on mobile and the first for screen readers.
|
|
5970
|
+
*/
|
|
5971
|
+
"rowReverse"?: boolean;
|
|
5944
5972
|
}
|
|
5945
5973
|
interface DuetGridItem {
|
|
5946
5974
|
/**
|
|
@@ -6745,6 +6773,10 @@ declare namespace LocalJSX {
|
|
|
6745
6773
|
"theme"?: DuetTheme;
|
|
6746
6774
|
}
|
|
6747
6775
|
interface DuetMenuBarDropdownLink {
|
|
6776
|
+
/**
|
|
6777
|
+
* Adds accessible label for the link that is only shown for screen readers. Typically, this label text replaces the visible text on the link for users who use assistive technology.
|
|
6778
|
+
*/
|
|
6779
|
+
"accessibleLabel"?: string;
|
|
6748
6780
|
/**
|
|
6749
6781
|
* Href
|
|
6750
6782
|
*/
|
|
@@ -6759,6 +6791,10 @@ declare namespace LocalJSX {
|
|
|
6759
6791
|
"theme"?: DuetTheme;
|
|
6760
6792
|
}
|
|
6761
6793
|
interface DuetMenuBarLink {
|
|
6794
|
+
/**
|
|
6795
|
+
* Adds accessible label for the link that is only shown for screen readers. Typically, this label text replaces the visible text on the link for users who use assistive technology.
|
|
6796
|
+
*/
|
|
6797
|
+
"accessibleLabel"?: string;
|
|
6762
6798
|
/**
|
|
6763
6799
|
* Active
|
|
6764
6800
|
*/
|
|
@@ -6867,6 +6903,10 @@ declare namespace LocalJSX {
|
|
|
6867
6903
|
"theme"?: DuetTheme;
|
|
6868
6904
|
}
|
|
6869
6905
|
interface DuetMultiselect {
|
|
6906
|
+
/**
|
|
6907
|
+
* Indicates the id of a component that describes the input.
|
|
6908
|
+
*/
|
|
6909
|
+
"accessibleDescribedBy"?: string;
|
|
6870
6910
|
/**
|
|
6871
6911
|
* Caption (underneath label) that can be set as a way of adding extra information
|
|
6872
6912
|
*/
|
|
@@ -8057,6 +8097,10 @@ declare namespace LocalJSX {
|
|
|
8057
8097
|
* Event raised when the selected tab is changed
|
|
8058
8098
|
*/
|
|
8059
8099
|
"onDuetTabChange"?: (event: DuetTabGroupCustomEvent<DuetTabGroupEvent>) => void;
|
|
8100
|
+
/**
|
|
8101
|
+
* Event raised when new tab is clicked and "tabChangeConfirm" property is set to true
|
|
8102
|
+
*/
|
|
8103
|
+
"onDuetTabChangeRequested"?: (event: DuetTabGroupCustomEvent<DuetTabGroupEvent>) => void;
|
|
8060
8104
|
/**
|
|
8061
8105
|
* Controls the padding of the component.
|
|
8062
8106
|
*/
|
|
@@ -8069,6 +8113,10 @@ declare namespace LocalJSX {
|
|
|
8069
8113
|
* Controls if tab content should have tab index and be accessible by pressing tab
|
|
8070
8114
|
*/
|
|
8071
8115
|
"setTabIndex"?: boolean;
|
|
8116
|
+
/**
|
|
8117
|
+
* If this property is set to true, tab won't change immediately after clicking it. Component will emit "duetTabChangeRequested" event, and it needs to be handled manually in order to change tab.
|
|
8118
|
+
*/
|
|
8119
|
+
"tabChangeConfirm"?: boolean;
|
|
8072
8120
|
/**
|
|
8073
8121
|
* Theme of the component.
|
|
8074
8122
|
*/
|
|
@@ -8383,6 +8431,10 @@ declare namespace LocalJSX {
|
|
|
8383
8431
|
"theme"?: DuetTheme;
|
|
8384
8432
|
}
|
|
8385
8433
|
interface DuetToolbarLink {
|
|
8434
|
+
/**
|
|
8435
|
+
* Adds accessible label for the link that is only shown for screen readers. Typically, this label text replaces the visible text on the link for users who use assistive technology.
|
|
8436
|
+
*/
|
|
8437
|
+
"accessibleLabel"?: string;
|
|
8386
8438
|
/**
|
|
8387
8439
|
* Active
|
|
8388
8440
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duetds/components",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.2",
|
|
4
4
|
"description": "This package includes Duet Design System Web Components and related utilities.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "duetdesignsystem@lahitapiola.fi"
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"body-scroll-lock": "3.1.5"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@duetds/fonts": "2.0.
|
|
54
|
-
"@duetds/icons": "3.0.
|
|
55
|
-
"@duetds/tokens": "3.0.
|
|
53
|
+
"@duetds/fonts": "2.0.49",
|
|
54
|
+
"@duetds/icons": "3.0.49",
|
|
55
|
+
"@duetds/tokens": "3.0.49",
|
|
56
56
|
"@rollup/plugin-replace": "5.0.2",
|
|
57
57
|
"@stencil/core": "3.1.0",
|
|
58
58
|
"@stencil/sass": "3.0.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"collection": "lib/collection/collection-manifest.json",
|
|
79
79
|
"es2015": "lib/esm/index.js",
|
|
80
80
|
"es2017": "lib/esm/index.js",
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "25d8b210a5cff486da46eb36763935c97d365921"
|
|
82
82
|
}
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-0d1b84db.js';
|
|
5
|
-
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
|
-
import { c as createID } from './p-c1325e35.js';
|
|
7
|
-
import { p as parsePossibleJSON } from './p-5a9d75e1.js';
|
|
8
|
-
import { d as defineCustomElement$5 } from './p-29b2c3bb.js';
|
|
9
|
-
import { d as defineCustomElement$4 } from './p-d6a4de03.js';
|
|
10
|
-
import { d as defineCustomElement$3 } from './p-c4a3d30d.js';
|
|
11
|
-
import { d as defineCustomElement$2 } from './p-26d32594.js';
|
|
12
|
-
import { d as defineCustomElement$1 } from './p-85fd8f09.js';
|
|
13
|
-
|
|
14
|
-
const duetSelectCss = "@charset \"UTF-8\";*.sc-duet-select,*.sc-duet-select::after,*.sc-duet-select::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-select-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}.sc-duet-select-h:last-child,.sc-duet-select-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-select-h{width:calc(50% - 16px - 3px)}.duet-expand.sc-duet-select-h{width:100% !important}}.duet-select-variation-tiny.sc-duet-select-h{position:relative;top:-2px;width:72px;margin:0 !important;vertical-align:baseline}.duet-m-0.sc-duet-select-h{margin:0 !important}duet-tooltip.sc-duet-select{position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip.sc-duet-select{position:relative;top:4px;right:auto}}.duet-select-placeholder.sc-duet-select{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-select-container.sc-duet-select{position:relative;width:100%}.duet-select-container.duet-select-variation-tiny.sc-duet-select{width:72px}.duet-select-wrapper.sc-duet-select{position:relative;width:100%;padding:15px 14px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;line-height:1.25}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-select-variation-tiny.sc-duet-select .duet-select-wrapper.sc-duet-select{width:81px;padding:0 !important}.duet-select-wrapper.sc-duet-select::after{content:\" \"}.duet-select-wrapper.sc-duet-select select.sc-duet-select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:200;width:100%;height:100%;padding:0;margin:0;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;cursor:pointer;border:0;outline:none;opacity:0}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-select-wrapper.sc-duet-select select.sc-duet-select:hover+.duet-select.sc-duet-select{border-color:rgb(144, 149, 153);box-shadow:0 0 0 1px rgb(144, 149, 153)}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:hover+.duet-select.sc-duet-select{border-color:rgb(116, 116, 117);box-shadow:0 0 0 1px rgb(116, 116, 117)}.has-error.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:hover+.duet-select.sc-duet-select{box-shadow:0 0 0 1px rgb(222, 35, 98)}.duet-theme-turva.has-error.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:hover+.duet-select.sc-duet-select{box-shadow:0 0 0 1px rgb(224, 42, 13)}.duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px rgb(0, 119, 179);transition:none}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px rgb(23, 28, 58)}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select .duet-select-icon.sc-duet-select{color:rgb(23, 28, 58)}.duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select .duet-select-icon.sc-duet-select{color:rgb(0, 119, 179)}.has-error.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select{box-shadow:0 0 0 1px rgb(222, 35, 98)}.duet-theme-turva.has-error.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select{box-shadow:0 0 0 1px rgb(224, 42, 13)}.duet-select-wrapper.sc-duet-select select[disabled].sc-duet-select{cursor:default !important}.duet-select-wrapper.sc-duet-select select[disabled].sc-duet-select+.duet-select.sc-duet-select{color:rgb(0, 41, 77) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:rgb(0, 41, 77) !important}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select[disabled].sc-duet-select+.duet-select.sc-duet-select{color:rgb(23, 28, 58) !important;background:rgb(245, 245, 247) !important;border-color:rgb(245, 245, 247) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-select.sc-duet-select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:100;display:block;width:100%;min-width:8rem;padding:12px 14px !important;padding-right:48px !important;overflow:hidden;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(0, 41, 77);text-align:left;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255);border:1px solid rgb(144, 149, 153);border-radius:4px;transition:150ms ease}.has-error.sc-duet-select .duet-select.sc-duet-select{border-color:rgb(222, 35, 98) !important}.has-error.sc-duet-select .duet-select.sc-duet-select .duet-select-icon.sc-duet-select{color:rgb(222, 35, 98) !important}.duet-theme-turva.has-error.sc-duet-select .duet-select.sc-duet-select{border-color:rgb(224, 42, 13) !important}.duet-theme-turva.has-error.sc-duet-select .duet-select.sc-duet-select .duet-select-icon.sc-duet-select{color:rgb(224, 42, 13) !important}.duet-theme-turva.sc-duet-select .duet-select.sc-duet-select{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58);border-color:rgb(116, 116, 117)}.duet-select.sc-duet-select svg.sc-duet-select{position:absolute;top:50%;right:16px;z-index:200;width:20px;height:20px;color:rgb(0, 41, 77);pointer-events:none;transform:translateY(-50%)}.duet-theme-turva.sc-duet-select .duet-select.sc-duet-select svg.sc-duet-select{color:rgb(23, 28, 58)}.duet-select-variation-tiny.sc-duet-select .duet-select.sc-duet-select{width:72px;min-width:inherit;padding:0 !important;margin-bottom:-4px;overflow:visible;font-weight:600;text-align:center}.duet-select-variation-tiny.sc-duet-select .duet-select.sc-duet-select duet-icon.sc-duet-select{padding-left:10px}.duet-select-help.sc-duet-select{display:block;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;font-weight:400;line-height:1.25;color:rgb(101, 119, 135);border-radius:4px}.duet-select-help.sc-duet-select span.sc-duet-select{display:block;margin-top:8px}.duet-theme-turva.sc-duet-select .duet-select-help.sc-duet-select{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(116, 116, 117)}.has-error.sc-duet-select .duet-select-help.sc-duet-select{color:rgb(222, 35, 98)}.duet-theme-turva.has-error.sc-duet-select .duet-select-help.sc-duet-select{color:rgb(224, 42, 13)}.duet-label-hidden.sc-duet-select duet-label.sc-duet-select{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}";
|
|
15
|
-
|
|
16
|
-
function isOptionGroup(item) {
|
|
17
|
-
return "options" in item;
|
|
18
|
-
}
|
|
19
|
-
function findOptionByValue(items, value) {
|
|
20
|
-
for (var i = 0; i < items.length; i++) {
|
|
21
|
-
let item = items[i];
|
|
22
|
-
if (isOptionGroup(item)) {
|
|
23
|
-
item = findOptionByValue(item.options, value);
|
|
24
|
-
}
|
|
25
|
-
if (item && item.value === value) {
|
|
26
|
-
return item;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
const DuetSelect = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
31
|
-
constructor() {
|
|
32
|
-
super();
|
|
33
|
-
this.__registerHost();
|
|
34
|
-
this.duetChange = createEvent(this, "duetChange", 3);
|
|
35
|
-
this.duetFocus = createEvent(this, "duetFocus", 7);
|
|
36
|
-
this.duetBlur = createEvent(this, "duetBlur", 7);
|
|
37
|
-
/**
|
|
38
|
-
* Own Properties
|
|
39
|
-
*/
|
|
40
|
-
this.selectId = createID("DuetSelect");
|
|
41
|
-
this.errorId = createID("DuetError");
|
|
42
|
-
this.labelId = createID("DuetLabel");
|
|
43
|
-
this.topCaptionId = createID("DuetCaptionTop");
|
|
44
|
-
this.topCaptionPlaceholderId = createID("DuetCaptionPlaceholderTop");
|
|
45
|
-
/**
|
|
46
|
-
* Component event handling.
|
|
47
|
-
*/
|
|
48
|
-
this.onClick = (ev) => {
|
|
49
|
-
ev.stopPropagation();
|
|
50
|
-
};
|
|
51
|
-
this.onChange = () => {
|
|
52
|
-
this.value = this.nativeSelect.value;
|
|
53
|
-
this.duetChange.emit({
|
|
54
|
-
value: this.value,
|
|
55
|
-
component: "duet-select",
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
this.onBlur = (ev) => {
|
|
59
|
-
this.duetBlur.emit({
|
|
60
|
-
originalEvent: ev,
|
|
61
|
-
value: this.value,
|
|
62
|
-
component: "duet-select",
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
this.onFocus = (ev) => {
|
|
66
|
-
this.duetFocus.emit({
|
|
67
|
-
originalEvent: ev,
|
|
68
|
-
value: this.value,
|
|
69
|
-
component: "duet-select",
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
this.processedItems = null;
|
|
73
|
-
this.variation = "default";
|
|
74
|
-
this.accessibleActiveDescendant = undefined;
|
|
75
|
-
this.accessibleDescribedBy = undefined;
|
|
76
|
-
this.margin = "auto";
|
|
77
|
-
this.accessibleControls = undefined;
|
|
78
|
-
this.accessibleOwns = undefined;
|
|
79
|
-
this.error = "";
|
|
80
|
-
this.expand = false;
|
|
81
|
-
this.value = undefined;
|
|
82
|
-
this.theme = "";
|
|
83
|
-
this.labelHidden = false;
|
|
84
|
-
this.identifier = undefined;
|
|
85
|
-
this.name = undefined;
|
|
86
|
-
this.placeholder = "";
|
|
87
|
-
this.caption = undefined;
|
|
88
|
-
this.echoPlaceholder = false;
|
|
89
|
-
this.items = undefined;
|
|
90
|
-
this.disabled = false;
|
|
91
|
-
this.required = false;
|
|
92
|
-
this.label = "label";
|
|
93
|
-
this.role = undefined;
|
|
94
|
-
this.tooltip = "";
|
|
95
|
-
this.tooltipDirection = "auto";
|
|
96
|
-
}
|
|
97
|
-
valueChanged() {
|
|
98
|
-
if (this.nativeSelect) {
|
|
99
|
-
this.nativeSelect.value = this.value;
|
|
100
|
-
}
|
|
101
|
-
this.isCaptionVisible = !!this.caption;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Component lifecycle events.
|
|
105
|
-
*/
|
|
106
|
-
componentWillLoad() {
|
|
107
|
-
inheritGlobalTheme(this);
|
|
108
|
-
this.isCaptionVisible = !!this.caption;
|
|
109
|
-
this.refresh();
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Sets focus on the specified `duet-select`. Use this method instead of the global
|
|
113
|
-
* `select.focus()`.
|
|
114
|
-
*/
|
|
115
|
-
async setFocus(options) {
|
|
116
|
-
if (this.nativeSelect) {
|
|
117
|
-
this.nativeSelect.focus(options);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Local methods.
|
|
122
|
-
*/
|
|
123
|
-
async refresh() {
|
|
124
|
-
this.processedItems = parsePossibleJSON(this.items);
|
|
125
|
-
}
|
|
126
|
-
getSelectedItemLabel() {
|
|
127
|
-
let item;
|
|
128
|
-
if (this.processedItems) {
|
|
129
|
-
item = findOptionByValue(this.processedItems, this.value);
|
|
130
|
-
}
|
|
131
|
-
return item ? item.label : this.placeholder || "";
|
|
132
|
-
}
|
|
133
|
-
renderOption(option) {
|
|
134
|
-
return (h("option", { value: option.value, key: option.value, selected: this.value === option.value, disabled: option.disabled }, option.label));
|
|
135
|
-
}
|
|
136
|
-
renderOptionGroup(group) {
|
|
137
|
-
return (h("optgroup", { key: group.label, label: group.label, disabled: group.disabled }, group.options.map(option => this.renderOption(option))));
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* render() function
|
|
141
|
-
* Always the last one in the class.
|
|
142
|
-
*/
|
|
143
|
-
render() {
|
|
144
|
-
const identifier = this.identifier || this.selectId;
|
|
145
|
-
return (h(Host, { onClick: this.onClick, class: {
|
|
146
|
-
"duet-m-0": this.margin === "none",
|
|
147
|
-
"duet-expand": this.expand,
|
|
148
|
-
"duet-select-variation-tiny": this.variation === "tiny",
|
|
149
|
-
} }, h("div", { class: {
|
|
150
|
-
"duet-select-container": true,
|
|
151
|
-
"duet-label-hidden": this.labelHidden,
|
|
152
|
-
"duet-theme-turva": this.theme === "turva",
|
|
153
|
-
"duet-select-variation-tiny": this.variation === "tiny",
|
|
154
|
-
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
155
|
-
"has-error": !!this.error,
|
|
156
|
-
} }, h("duet-label", { theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, id: this.labelId, for: identifier }, this.label), this.tooltip && (h("duet-tooltip", { direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), this.caption && (h("duet-caption", { id: this.topCaptionId, size: "medium" }, this.caption)), h("div", { class: "duet-select-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { id: this.topCaptionPlaceholderId, class: "duet-select-placeholder", size: "small" }, this.placeholder)), h("select", { ref: select => (this.nativeSelect = select), disabled: this.disabled, name: this.name, id: identifier, role: this.role, "aria-labelledby": `${this.errorId} ${this.labelId}`, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-errormessage": this.error ? this.errorId : null, "aria-owns": this.accessibleOwns, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, required: this.required, "aria-describedby": this.accessibleDescribedBy }, this.placeholder && (h("option", { disabled: true, selected: true, value: "" }, this.placeholder)), !this.processedItems ? (h("option", null, "Virhe valintoja ladattaessa. P\u00E4ivit\u00E4 sivu ja kokeile uusiksi.")) : (this.processedItems.map(item => {
|
|
157
|
-
return isOptionGroup(item) ? this.renderOptionGroup(item) : this.renderOption(item);
|
|
158
|
-
}))), h("div", { class: {
|
|
159
|
-
"duet-select": true,
|
|
160
|
-
"duet-select-variation-tiny": this.variation === "tiny",
|
|
161
|
-
}, "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)))));
|
|
162
|
-
}
|
|
163
|
-
get element() { return this; }
|
|
164
|
-
static get watchers() { return {
|
|
165
|
-
"value": ["valueChanged"],
|
|
166
|
-
"items": ["refresh"]
|
|
167
|
-
}; }
|
|
168
|
-
static get style() { return duetSelectCss; }
|
|
169
|
-
}, [2, "duet-select", {
|
|
170
|
-
"variation": [1],
|
|
171
|
-
"accessibleActiveDescendant": [1, "accessible-active-descendant"],
|
|
172
|
-
"accessibleDescribedBy": [1, "accessible-described-by"],
|
|
173
|
-
"margin": [1],
|
|
174
|
-
"accessibleControls": [1, "accessible-controls"],
|
|
175
|
-
"accessibleOwns": [1, "accessible-owns"],
|
|
176
|
-
"error": [1],
|
|
177
|
-
"expand": [4],
|
|
178
|
-
"value": [1537],
|
|
179
|
-
"theme": [1025],
|
|
180
|
-
"labelHidden": [4, "label-hidden"],
|
|
181
|
-
"identifier": [1],
|
|
182
|
-
"name": [1],
|
|
183
|
-
"placeholder": [1],
|
|
184
|
-
"caption": [1],
|
|
185
|
-
"echoPlaceholder": [4, "echo-placeholder"],
|
|
186
|
-
"items": [1],
|
|
187
|
-
"disabled": [516],
|
|
188
|
-
"required": [4],
|
|
189
|
-
"label": [1],
|
|
190
|
-
"role": [1],
|
|
191
|
-
"tooltip": [1],
|
|
192
|
-
"tooltipDirection": [1, "tooltip-direction"],
|
|
193
|
-
"processedItems": [32],
|
|
194
|
-
"setFocus": [64]
|
|
195
|
-
}]);
|
|
196
|
-
function defineCustomElement() {
|
|
197
|
-
if (typeof customElements === "undefined") {
|
|
198
|
-
return;
|
|
199
|
-
}
|
|
200
|
-
const components = ["duet-select", "duet-caption", "duet-icon", "duet-label", "duet-tooltip", "duet-visually-hidden"];
|
|
201
|
-
components.forEach(tagName => { switch (tagName) {
|
|
202
|
-
case "duet-select":
|
|
203
|
-
if (!customElements.get(tagName)) {
|
|
204
|
-
customElements.define(tagName, DuetSelect);
|
|
205
|
-
}
|
|
206
|
-
break;
|
|
207
|
-
case "duet-caption":
|
|
208
|
-
if (!customElements.get(tagName)) {
|
|
209
|
-
defineCustomElement$5();
|
|
210
|
-
}
|
|
211
|
-
break;
|
|
212
|
-
case "duet-icon":
|
|
213
|
-
if (!customElements.get(tagName)) {
|
|
214
|
-
defineCustomElement$4();
|
|
215
|
-
}
|
|
216
|
-
break;
|
|
217
|
-
case "duet-label":
|
|
218
|
-
if (!customElements.get(tagName)) {
|
|
219
|
-
defineCustomElement$3();
|
|
220
|
-
}
|
|
221
|
-
break;
|
|
222
|
-
case "duet-tooltip":
|
|
223
|
-
if (!customElements.get(tagName)) {
|
|
224
|
-
defineCustomElement$2();
|
|
225
|
-
}
|
|
226
|
-
break;
|
|
227
|
-
case "duet-visually-hidden":
|
|
228
|
-
if (!customElements.get(tagName)) {
|
|
229
|
-
defineCustomElement$1();
|
|
230
|
-
}
|
|
231
|
-
break;
|
|
232
|
-
} });
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
export { DuetSelect as D, defineCustomElement as d };
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-0d1b84db.js';
|
|
5
|
-
import { m as media_query_large, a as media_query_medium, b as media_query_small } from './p-c4d8cad0.js';
|
|
6
|
-
import { w as watchForOptions, a as watchForElement } from './p-12721178.js';
|
|
7
|
-
|
|
8
|
-
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}}";
|
|
9
|
-
|
|
10
|
-
function isGridItem(element) {
|
|
11
|
-
return element.tagName.toLowerCase() === "duet-grid-item";
|
|
12
|
-
}
|
|
13
|
-
const DuetGrid = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
14
|
-
constructor() {
|
|
15
|
-
super();
|
|
16
|
-
this.__registerHost();
|
|
17
|
-
this.mql = [
|
|
18
|
-
window.matchMedia(media_query_large.replace(/'/g, "")),
|
|
19
|
-
window.matchMedia(media_query_medium.replace(/'/g, "")),
|
|
20
|
-
window.matchMedia(media_query_small.replace(/'/g, "")),
|
|
21
|
-
];
|
|
22
|
-
this.distributeFormElement = false;
|
|
23
|
-
this.responsive = false;
|
|
24
|
-
this.breakpoint = "small";
|
|
25
|
-
this.direction = "horizontal";
|
|
26
|
-
this.alignment = "top";
|
|
27
|
-
this.distribution = "default";
|
|
28
|
-
this.mobile = "";
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Private functions
|
|
32
|
-
*/
|
|
33
|
-
/**
|
|
34
|
-
* Returns the element height including margins
|
|
35
|
-
* @param element - element
|
|
36
|
-
* @returns {number}
|
|
37
|
-
*/
|
|
38
|
-
outerHeight(element) {
|
|
39
|
-
const height = element.offsetHeight, style = window.getComputedStyle(element);
|
|
40
|
-
return ["top", "bottom"]
|
|
41
|
-
.map(side => parseInt(style[`margin-${side}`]))
|
|
42
|
-
.reduce((total, side) => total + side, height);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Component lifecycle events.
|
|
46
|
-
*/
|
|
47
|
-
async connectedCallback() {
|
|
48
|
-
const el = this.element;
|
|
49
|
-
this.distributeFormElement = this.alignment === "form_distribute";
|
|
50
|
-
this.mutationO = watchForOptions(el, "duet-grid-item", () => {
|
|
51
|
-
this.updateGridItems();
|
|
52
|
-
});
|
|
53
|
-
// the next two functions are used to watch for changes in the grid items, and are process intensive - so only run when needed
|
|
54
|
-
if (this.distributeFormElement) {
|
|
55
|
-
this.mutation1 = watchForElement(el, "duet-input", () => {
|
|
56
|
-
this.updateGridItemsWithInputFields();
|
|
57
|
-
});
|
|
58
|
-
// listen for potential mediaquery changes and reset layout
|
|
59
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
60
|
-
// addEventListener is not available in Stencil hydrate
|
|
61
|
-
if (this.mql[i].addEventListener) {
|
|
62
|
-
this.mql[i].addEventListener("change", this.updateGridItemsWithInputFields.bind(this));
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
this.updateGridItems();
|
|
67
|
-
}
|
|
68
|
-
disconnectedCallback() {
|
|
69
|
-
if (this.mutationO) {
|
|
70
|
-
this.mutationO.disconnect();
|
|
71
|
-
this.mutationO = undefined;
|
|
72
|
-
}
|
|
73
|
-
if (this.mutation1) {
|
|
74
|
-
this.mutation1.disconnect();
|
|
75
|
-
this.mutation1 = undefined;
|
|
76
|
-
}
|
|
77
|
-
// listen for potential mediaquery changes and reset layout
|
|
78
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
79
|
-
// addEventListener is not available in Stencil hydrate
|
|
80
|
-
if (this.mql[i].removeEventListener) {
|
|
81
|
-
this.mql[i].removeEventListener("change", this.updateGridItemsWithInputFields.bind(this));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Local methods
|
|
87
|
-
*/
|
|
88
|
-
async updateGridItems() {
|
|
89
|
-
const items = Array.from(this.element.children).filter(isGridItem);
|
|
90
|
-
items.forEach(item => {
|
|
91
|
-
item.responsive = this.responsive;
|
|
92
|
-
item.breakpoint = this.breakpoint;
|
|
93
|
-
item.direction = this.direction;
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
async updateGridItemsWithInputFields() {
|
|
97
|
-
const items = Array.from(this.element.children).filter(isGridItem);
|
|
98
|
-
// if layout changes to columns instead of row, remove all padding
|
|
99
|
-
const hasColumnLayout = window ? window.getComputedStyle(this.element).flexDirection === "column" : false;
|
|
100
|
-
let maxHeight = 0;
|
|
101
|
-
const sizes = [];
|
|
102
|
-
items.forEach(item => {
|
|
103
|
-
const inputErrorDom = item.querySelector("span.duet-input-error");
|
|
104
|
-
const height = inputErrorDom ? this.outerHeight(inputErrorDom) : 0;
|
|
105
|
-
sizes.push(height);
|
|
106
|
-
});
|
|
107
|
-
maxHeight = Math.max(...sizes);
|
|
108
|
-
items.forEach(item => {
|
|
109
|
-
const inputErrorDom = item.querySelector("span.duet-input-error");
|
|
110
|
-
const height = inputErrorDom ? this.outerHeight(inputErrorDom) : 0;
|
|
111
|
-
if (height < maxHeight && !hasColumnLayout) {
|
|
112
|
-
item.setAttribute("style", `padding-bottom: ${maxHeight - height}px;`);
|
|
113
|
-
}
|
|
114
|
-
else if (height === maxHeight || hasColumnLayout) {
|
|
115
|
-
item.setAttribute("style", `padding-bottom: 0px;`);
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* render() function
|
|
121
|
-
* Always the last one in the class.
|
|
122
|
-
*/
|
|
123
|
-
render() {
|
|
124
|
-
return (h(Host, { class: {
|
|
125
|
-
"duet-grid": true,
|
|
126
|
-
"duet-no-stacking": !this.responsive,
|
|
127
|
-
"duet-grid-align-top": this.alignment === "top",
|
|
128
|
-
"duet-grid-align-bottom": this.alignment === "bottom" || this.alignment === "form_distribute",
|
|
129
|
-
"duet-grid-align-center": this.alignment === "center",
|
|
130
|
-
"duet-grid-align-stretch": this.alignment === "stretch",
|
|
131
|
-
"duet-grid-align-baseline": this.alignment === "baseline",
|
|
132
|
-
"duet-grid-distribution-left": this.distribution === "left",
|
|
133
|
-
"duet-grid-distribution-right": this.distribution === "right",
|
|
134
|
-
"duet-grid-distribution-center": this.distribution === "center",
|
|
135
|
-
"duet-grid-distribution-between": this.distribution === "space-between",
|
|
136
|
-
"duet-grid-distribution-around": this.distribution === "space-around",
|
|
137
|
-
"duet-grid-distribution-evenly": this.distribution === "space-evenly",
|
|
138
|
-
"duet-grid-mobile-left": this.mobile === "left",
|
|
139
|
-
"duet-grid-mobile-center": this.mobile === "center",
|
|
140
|
-
"duet-grid-mobile-right": this.mobile === "right",
|
|
141
|
-
"duet-grid-direction-horizontal": this.direction === "horizontal",
|
|
142
|
-
"duet-grid-direction-vertical": this.direction === "vertical",
|
|
143
|
-
"duet-grid-breakpoint-x-small": this.breakpoint === "x-small",
|
|
144
|
-
"duet-grid-breakpoint-small": this.breakpoint === "small",
|
|
145
|
-
"duet-grid-breakpoint-medium": this.breakpoint === "medium",
|
|
146
|
-
"duet-grid-breakpoint-large": this.breakpoint === "large",
|
|
147
|
-
"duet-grid-breakpoint-x-large": this.breakpoint === "x-large",
|
|
148
|
-
} }));
|
|
149
|
-
}
|
|
150
|
-
get element() { return this; }
|
|
151
|
-
static get watchers() { return {
|
|
152
|
-
"responsive": ["updateGridItems"],
|
|
153
|
-
"breakpoint": ["updateGridItems"],
|
|
154
|
-
"direction": ["updateGridItems"]
|
|
155
|
-
}; }
|
|
156
|
-
static get style() { return duetGridCss; }
|
|
157
|
-
}, [2, "duet-grid", {
|
|
158
|
-
"responsive": [4],
|
|
159
|
-
"breakpoint": [1],
|
|
160
|
-
"direction": [1],
|
|
161
|
-
"alignment": [1],
|
|
162
|
-
"distribution": [1],
|
|
163
|
-
"mobile": [1],
|
|
164
|
-
"distributeFormElement": [32]
|
|
165
|
-
}]);
|
|
166
|
-
function defineCustomElement() {
|
|
167
|
-
if (typeof customElements === "undefined") {
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
const components = ["duet-grid"];
|
|
171
|
-
components.forEach(tagName => { switch (tagName) {
|
|
172
|
-
case "duet-grid":
|
|
173
|
-
if (!customElements.get(tagName)) {
|
|
174
|
-
customElements.define(tagName, DuetGrid);
|
|
175
|
-
}
|
|
176
|
-
break;
|
|
177
|
-
} });
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export { DuetGrid as D, defineCustomElement as d };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,o,i){function r(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,n){function a(t){try{s(i.next(t))}catch(e){n(e)}}function l(t){try{s(i["throw"](t))}catch(e){n(e)}}function s(t){t.done?o(t.value):r(t.value).then(a,l)}s((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,r,n,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(t){return function(e){return s([t,e])}}function s(l){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,l[0]&&(o=0)),o)try{if(i=1,r&&(n=l[0]&2?r["return"]:l[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,l[1])).done)return n;if(r=0,n)l=[l[0]&2,n.value];switch(l[0]){case 0:case 1:n=l;break;case 4:o.label++;return{value:l[1],done:false};case 5:o.label++;r=l[1];l=[0];continue;case 7:l=o.ops.pop();o.trys.pop();continue;default:if(!(n=o.trys,n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]<n[3])){o.label=l[1];break}if(l[0]===6&&o.label<n[1]){o.label=n[1];n=l;break}if(n&&o.label<n[2]){o.label=n[2];o.ops.push(l);break}if(n[2])o.ops.pop();o.trys.pop();continue}l=e.call(t,o)}catch(s){l=[6,s];r=0}finally{i=n=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-7dc36831.system.js","./p-33b3aba4.system.js","./p-5f6bd5db.system.js","./p-c8dc599d.system.js","./p-b6d51921.system.js"],(function(t){"use strict";var e,o,i,r,n,a,l,s;return{setters:[function(t){e=t.r;o=t.h;i=t.H;r=t.g},function(t){n=t.i},function(t){a=t.c},function(t){l=t.g;s=t.a},function(){}],execute:function(){var p='*,*::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:relative;z-index:200;display:inline-flex;width:auto;margin-top:-16px !important;margin-left:-3px !important;-webkit-tap-highlight-color:transparent}.duet-tooltip{position:absolute;right:-141px;bottom:100%;z-index:950;display:block;width:282px;min-height:48px;max-height:340px;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;font-weight:400;line-height:1.25;color:rgb(0, 41, 77);visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(225, 227, 230);border-radius:4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.07);opacity:0;transition:300ms ease;transform:scale(0.9) translateZ(0) translateY(20px);transform-origin:100% 100%}.duet-tooltip.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(228, 228, 230);box-shadow:0 2px 10px 0 rgba(117, 117, 117, 0.13)}.duet-tooltip::after{position:absolute;right:142px;bottom:-20px;z-index:200;width:0;height:0;content:"";border:10px solid transparent;border-top:10px solid rgb(255, 255, 255)}.duet-tooltip::before{position:absolute;right:141px;bottom:-22px;z-index:100;width:0;height:0;content:"";border:11px solid transparent;border-top:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip::before{border-top:11px solid rgb(228, 228, 230)}.duet-tooltip.duet-tooltip-down{top:100%;bottom:auto;transform:scale(0.9) translateZ(0) translateY(-20px);transform-origin:100% 0}.duet-tooltip.duet-tooltip-down::after{top:-20px;bottom:auto;border:10px solid transparent;border-bottom:10px solid rgb(255, 255, 255)}.duet-tooltip.duet-tooltip-down::before{top:-22px;bottom:auto;border:11px solid transparent;border-bottom:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip.duet-tooltip-down::before{border-bottom:11px solid rgb(228, 228, 230)}.duet-tooltip.duet-tooltip-left{right:-21px !important;transform-origin:100% 100% !important}.duet-tooltip.duet-tooltip-left::after{right:22px !important;transform:none !important}.duet-tooltip.duet-tooltip-left::before{right:21px !important;transform:none !important}.duet-tooltip.duet-tooltip-right{right:auto !important;left:-9px !important;transform-origin:100% 100% !important}.duet-tooltip.duet-tooltip-right::after{right:auto !important;left:22px !important;transform:none !important}.duet-tooltip.duet-tooltip-right::before{right:auto !important;left:21px !important;transform:none !important}.duet-tooltip.duet-tooltip-has-label{right:auto !important;left:0;width:282px !important;transform-origin:0 0 !important}.duet-tooltip.duet-tooltip-has-label::after{right:auto !important;left:1px !important;transform:none !important}.duet-tooltip.duet-tooltip-has-label::before{right:auto !important;left:0 !important;transform:none !important}.duet-tooltip.duet-tooltip-active{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(-8px)}.duet-tooltip.duet-tooltip-active.duet-tooltip-down{transform:scale(1.0001) translateZ(0) translateY(8px)}.duet-tooltip-button{z-index:100;display:inline-block;align-items:center;justify-content:center;min-width:48px;height:48px;padding:0 !important;margin-right:-12px;line-height:normal !important;color:rgb(0, 119, 179);white-space:nowrap;cursor:pointer;background:transparent !important;border-radius:4px}.duet-tooltip-button.duet-theme-turva{color:rgb(198, 12, 48)}.duet-tooltip-button:hover{color:rgb(0, 77, 128)}.duet-tooltip-button:hover.duet-theme-turva{color:rgb(148, 9, 37)}.duet-tooltip-button:focus{background:transparent !important;outline:0}:host(.user-is-tabbing) .duet-tooltip-button:focus{background:transparent !important;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179) !important}:host(.user-is-tabbing) .duet-tooltip-button.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58) !important}.duet-tooltip-button svg{width:20px;height:20px;pointer-events:none}.duet-tooltip-button-has-label{margin-right:0}.duet-tooltip-scrollable{padding:20px !important;width:100%;max-height:250px;padding-right:25px !important;overflow-y:auto;-webkit-hyphens:auto;hyphens:auto;border-radius:4px;-webkit-overflow-scrolling:touch}.duet-tooltip-scrollable:focus{outline:none}:host(.user-is-tabbing) .duet-tooltip-scrollable: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-theme-turva .duet-tooltip-scrollable:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-tooltip-scrollable::-webkit-scrollbar{width:4px}.duet-tooltip-scrollable::-webkit-scrollbar-track{border-radius:4px}.duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(225, 227, 230);border-radius:4px}.duet-theme-turva .duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(228, 228, 230)}.duet-tooltip-label{position:relative;z-index:100;display:inline-block;max-width:calc(100% - 30px);margin-left:12px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.25;text-align:left;white-space:normal;vertical-align:top}.duet-theme-turva .duet-tooltip-label{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-tooltip-close{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:17px;height:17px;min-height:0 !important;padding:0 !important;margin:0 !important;line-height:normal;color:rgb(0, 41, 77);cursor:pointer;background:rgb(245, 248, 250);border-radius:50%;-webkit-appearance:none;appearance:none}.duet-tooltip-close:focus{outline:none;box-shadow:0 0 0 2px rgb(0, 119, 179)}.duet-theme-turva .duet-tooltip-close:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px rgb(23, 28, 58)}@media (min-width: 48em){.duet-tooltip.duet-mq-medium{right:-148px;width:320px;transform-origin:50% 100%}.duet-tooltip.duet-mq-medium::after{right:50%;transform:translateX(50%)}.duet-tooltip.duet-mq-medium::before{right:50%;transform:translateX(50%)}.duet-tooltip.duet-mq-medium.duet-tooltip-down{transform-origin:50% 0}}@media (min-width: 62em){.duet-tooltip.duet-mq-large{right:-148px;width:320px;transform-origin:50% 100%}.duet-tooltip.duet-mq-large::after{right:50%;transform:translateX(50%)}.duet-tooltip.duet-mq-large::before{right:50%;transform:translateX(50%)}.duet-tooltip.duet-mq-large.duet-tooltip-down{transform-origin:50% 0}}';var u=t("duet_tooltip",function(){function t(t){var o=this;e(this,t);this.tooltipId=a("DuetTooltip");this.lastScrollTop=0;this.openTooltip=function(){o.focusTarget="tooltip";o.active=true};this.closeTooltip=function(t){if(t===void 0){t=false}if(t){o.focusTarget="trigger"}o.active=false};this.toggleOpen=function(){o.active?o.closeTooltip():o.openTooltip()};this.handleFocusOut=function(t){if(!o.active){return}var e=t.relatedTarget;if(e==null||o.element.shadowRoot.contains(e)||o.element.contains(e)){return}o.closeTooltip()};this.handleKeyDown=function(t){var e=t.keyCode===27;var i=t.target===o.scrollableEl&&t.shiftKey&&t.keyCode===9;if(e||i){o.closeTooltip(true)}};this.handleCloseClick=function(){o.closeTooltip(true)};this.isElementInViewportVertically=function(){if(!o.tooltipEl){return false}var t=o.tooltipEl.getBoundingClientRect();return t.top>=100&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)};this.handleVerticalVisibility=function(){var t=window.pageYOffset||document.documentElement.scrollTop;if(!o.isElementInViewportVertically()){o.openDown=t>o.lastScrollTop}o.lastScrollTop=Math.max(0,t)};this.handleHorizontalVisibility=function(){var t=o.tooltipEl.getBoundingClientRect();var e=t.left>=0;var i=t.right<(window.innerWidth||document.documentElement.clientWidth);if(!e||o.direction!=="right"&&o.openRight){o.openRight=true}else{o.openRight=o.direction==="right"}if(!i||o.direction!=="left"&&o.openLeft){o.openLeft=true}else{o.openLeft=o.direction==="left"}};this.openDown=false;this.openLeft=false;this.openRight=false;this.theme="";this.language=l();this.accessibleLabelDefault={fi:"Näytä lisätietoja",en:"Show more information",sv:"Visa mer tilläggsuppgifter"};this.accessibleLabel=s(this.accessibleLabelDefault,this.language);this.accessibleInputLabel=undefined;this.accessibleCloseLabelDefault={fi:"Sulje lisätiedot",en:"Close details",sv:"Stäng tilläggsuppgifter"};this.accessibleCloseLabel=s(this.accessibleCloseLabelDefault,this.language);this.label="";this.breakpoint="medium";this.direction="auto";this.positionVertical="0";this.positionHorizontal="0";this.active=false}t.prototype.componentWillLoad=function(){n(this)};t.prototype.componentDidLoad=function(){this.handleHorizontalVisibility()};t.prototype.componentDidUpdate=function(){switch(this.focusTarget){case"tooltip":this.scrollableEl.focus({preventScroll:true});break;case"trigger":this.buttonEl.focus({preventScroll:true});break}this.focusTarget=null};t.prototype.onScroll=function(){var t=this;clearTimeout(this.scrollTimer);this.scrollTimer=setTimeout((function(){if(t.active){t.handleHorizontalVisibility();t.handleVerticalVisibility()}}),100)};t.prototype.handleDocumentClick=function(t){var e=this;if(!this.active){return}var o=t.composedPath();var i=o.every((function(t){return t!==e.element}));if(i){this.closeTooltip()}};t.prototype.handleActiveChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(o){if(t){this.handleHorizontalVisibility();this.openDown=!this.isElementInViewportVertically()}else{setTimeout((function(){return e.openDown=false}),300)}return[2]}))}))};t.prototype.render=function(){var t=this;var e={transform:"translateY(".concat(this.positionVertical,") translateX(").concat(this.positionHorizontal,")"),zIndex:this.active?"201":""};return o(i,{style:e},o("button",{ref:function(e){return t.buttonEl=e},"aria-controls":this.tooltipId,"aria-expanded":this.active?"true":"false",onClick:this.toggleOpen,type:"button",class:{"duet-tooltip-button":true,"duet-tooltip-button-has-label":!!this.label,"duet-theme-turva":this.theme==="turva"}},o("svg",{"aria-hidden":"true",role:"img",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},o("path",{d:"m13.5 17.25c-1.241 0-2.25-1.009-2.25-2.25v-3.75h-.75c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h.75c.827 0 1.5.673 1.5 1.5v3.75c0 .414.336.75.75.75h.75c.414 0 .75.336.75.75s-.336.75-.75.75z"}),o("circle",{cx:"11.625",cy:"7.125",r:"1.125"}),o("path",{d:"m12 24c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12zm0-22.5c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5 10.5-4.71 10.5-10.5-4.71-10.5-10.5-10.5z"})),this.label?o("span",{class:"duet-tooltip-label"},this.label):o("duet-visually-hidden",null,this.accessibleInputLabel?"".concat(this.accessibleInputLabel,", ").concat(this.accessibleLabel):this.accessibleLabel)),o("div",{ref:function(e){return t.tooltipEl=e},class:{"duet-tooltip":true,"duet-mq-large":this.breakpoint==="large","duet-mq-medium":this.breakpoint==="medium","duet-theme-turva":this.theme==="turva","duet-tooltip-down":this.openDown,"duet-tooltip-has-label":!!this.label,"duet-tooltip-left":this.openLeft,"duet-tooltip-right":this.openRight,"duet-tooltip-active":this.active===true},onClick:function(t){return t.stopPropagation()},onKeyDown:this.handleKeyDown,onFocusout:this.handleFocusOut},o("div",{ref:function(e){return t.scrollableEl=e},class:"duet-tooltip-scrollable",tabindex:"0",id:this.tooltipId},o("slot",null)),o("button",{type:"button",class:"duet-tooltip-close",onClick:this.handleCloseClick},o("duet-icon",{name:"navigation-close-small",margin:"none",color:"currentColor",size:"xxx-small"}),o("duet-visually-hidden",null,this.accessibleCloseLabel))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["handleActiveChange"]}},enumerable:false,configurable:true});return t}());u.style=p}}}));
|