@duetds/components 6.0.7 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hydrate/index.js +1362 -216
- package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
- 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 +3 -3
- package/lib/cjs/duet-caption_4.cjs.entry.js +3 -3
- package/lib/cjs/duet-card.cjs.entry.js +10 -4
- package/lib/cjs/duet-checkbox.cjs.entry.js +6 -2
- package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
- package/lib/cjs/duet-combobox.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 +7 -18
- 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 +2 -2
- package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-hero.cjs.entry.js +1 -1
- package/lib/cjs/duet-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-layout.cjs.entry.js +8 -2
- package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +49 -0
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +65 -0
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +46 -0
- package/lib/cjs/duet-menu-bar-menu-dropdown-link.cjs.entry.js +58 -0
- package/lib/cjs/duet-menu-bar-menu-dropdown.cjs.entry.js +65 -0
- package/lib/cjs/duet-menu-bar-menu-link.cjs.entry.js +50 -0
- package/lib/cjs/duet-menu-bar-menu.cjs.entry.js +65 -0
- package/lib/cjs/duet-menu-bar.cjs.entry.js +76 -0
- package/lib/cjs/duet-modal.cjs.entry.js +2 -2
- package/lib/cjs/duet-multiselect.cjs.entry.js +227 -0
- package/lib/cjs/duet-nav.cjs.entry.js +116 -0
- package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
- package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
- 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 +2 -2
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
- package/lib/cjs/duet-section-layout.cjs.entry.js +42 -0
- package/lib/cjs/duet-select.cjs.entry.js +1 -1
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- 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 +54 -0
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +78 -0
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +50 -0
- package/lib/cjs/duet-toolbar.cjs.entry.js +38 -0
- package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
- package/lib/cjs/duet-tray.cjs.entry.js +2 -2
- 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-46880ee6.js → focus-utils-7a45cd29.js} +1 -1
- package/lib/cjs/{index-54afad07.js → index-222041ff.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/cjs/{token-utils-f6e2f4ef.js → token-utils-2e10264d.js} +17 -1
- package/lib/cjs/{tokens-4c69b122.js → tokens-21b244ee.js} +1 -0
- package/lib/cjs/{tokens.module-1bb2d45e.js → tokens.module-69170ddd.js} +3 -0
- package/lib/collection/collection-manifest.json +20 -0
- package/lib/collection/components/duet-card/duet-card.css +45 -0
- package/lib/collection/components/duet-card/duet-card.js +29 -0
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +23 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +2 -1
- package/lib/collection/components/duet-layout/duet-layout.css +45 -0
- package/lib/collection/components/duet-layout/duet-layout.js +29 -0
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +62 -0
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +109 -0
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +125 -0
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +150 -0
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +52 -0
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +110 -0
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +61 -0
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +107 -0
- package/lib/collection/components/duet-menu-bar-menu/duet-menu-bar-menu.css +113 -0
- package/lib/collection/components/duet-menu-bar-menu/duet-menu-bar-menu.js +147 -0
- package/lib/collection/components/duet-menu-bar-menu-dropdown/duet-menu-bar-menu-dropdown.css +113 -0
- package/lib/collection/components/duet-menu-bar-menu-dropdown/duet-menu-bar-menu-dropdown.js +150 -0
- package/lib/collection/components/duet-menu-bar-menu-dropdown-link/duet-menu-bar-menu-dropdown-link.css +60 -0
- package/lib/collection/components/duet-menu-bar-menu-dropdown-link/duet-menu-bar-menu-dropdown-link.js +156 -0
- package/lib/collection/components/duet-menu-bar-menu-link/duet-menu-bar-menu-link.css +65 -0
- package/lib/collection/components/duet-menu-bar-menu-link/duet-menu-bar-menu-link.js +129 -0
- package/lib/collection/components/duet-multiselect/duet-multiselect.css +257 -0
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +607 -0
- package/lib/collection/components/duet-nav/duet-nav.css +24 -0
- package/lib/collection/components/duet-nav/duet-nav.js +177 -0
- package/lib/collection/components/duet-section-layout/duet-section-layout.css +100 -0
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +85 -0
- package/lib/collection/components/duet-table/duet-table.js +4 -16
- package/lib/collection/components/duet-toolbar/duet-toolbar.css +43 -0
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +67 -0
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +117 -0
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +181 -0
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +60 -0
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +133 -0
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +78 -0
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +129 -0
- package/lib/collection/utils/token-utils.js +15 -0
- 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 +2 -2
- 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 +12 -5
- package/lib/dist-custom-elements/duet-checkbox.js +1 -155
- package/lib/dist-custom-elements/duet-choice-group.js +6 -6
- package/lib/dist-custom-elements/duet-choice.js +5 -5
- package/lib/dist-custom-elements/duet-collapsible.js +3 -3
- package/lib/dist-custom-elements/duet-combobox.js +3 -3
- package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
- package/lib/dist-custom-elements/duet-date-picker.js +8 -8
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +1 -1
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-footer.js +4 -4
- 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 +9 -9
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +9 -9
- 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 +10 -3
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.d.ts +11 -0
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +73 -0
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.d.ts +11 -0
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +89 -0
- package/lib/dist-custom-elements/duet-menu-bar-link.d.ts +11 -0
- package/lib/dist-custom-elements/duet-menu-bar-link.js +70 -0
- package/lib/dist-custom-elements/duet-menu-bar-menu-dropdown-link.d.ts +11 -0
- package/lib/dist-custom-elements/duet-menu-bar-menu-dropdown-link.js +84 -0
- package/lib/dist-custom-elements/duet-menu-bar-menu-dropdown.d.ts +11 -0
- package/lib/dist-custom-elements/duet-menu-bar-menu-dropdown.js +89 -0
- package/lib/dist-custom-elements/duet-menu-bar-menu-link.d.ts +11 -0
- package/lib/dist-custom-elements/duet-menu-bar-menu-link.js +75 -0
- package/lib/dist-custom-elements/duet-menu-bar-menu.d.ts +11 -0
- package/lib/dist-custom-elements/duet-menu-bar-menu.js +83 -0
- package/lib/dist-custom-elements/duet-menu-bar.d.ts +11 -0
- package/lib/dist-custom-elements/duet-menu-bar.js +99 -0
- package/lib/dist-custom-elements/duet-modal.js +7 -7
- package/lib/dist-custom-elements/duet-multiselect.d.ts +11 -0
- package/lib/dist-custom-elements/duet-multiselect.js +302 -0
- package/lib/dist-custom-elements/duet-nav.d.ts +11 -0
- package/lib/dist-custom-elements/duet-nav.js +132 -0
- package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
- package/lib/dist-custom-elements/duet-notification.js +2 -2
- package/lib/dist-custom-elements/duet-number-input.js +7 -7
- package/lib/dist-custom-elements/duet-pagination.js +7 -7
- 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 +3 -3
- package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.d.ts +11 -0
- package/lib/dist-custom-elements/duet-section-layout.js +59 -0
- package/lib/dist-custom-elements/duet-select.js +1 -1
- package/lib/dist-custom-elements/duet-spacer.js +1 -1
- package/lib/dist-custom-elements/duet-spinner.js +1 -1
- package/lib/dist-custom-elements/duet-step.js +4 -4
- package/lib/dist-custom-elements/duet-stepper.js +2 -2
- package/lib/dist-custom-elements/duet-tab-group.js +8 -8
- package/lib/dist-custom-elements/duet-tab.js +1 -1
- 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.d.ts +11 -0
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +79 -0
- package/lib/dist-custom-elements/duet-toolbar-dropdown.d.ts +11 -0
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +103 -0
- package/lib/dist-custom-elements/duet-toolbar-link.d.ts +11 -0
- package/lib/dist-custom-elements/duet-toolbar-link.js +75 -0
- package/lib/dist-custom-elements/duet-toolbar.d.ts +11 -0
- package/lib/dist-custom-elements/duet-toolbar.js +54 -0
- 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 +18 -18
- 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-3426a84c.js → p-10c5ec0a.js} +2 -2
- package/lib/dist-custom-elements/{p-f23c23e9.js → p-30639e6d.js} +3 -3
- package/lib/{esm/tokens.module-385c4cf8.js → dist-custom-elements/p-33e00967.js} +1 -1
- package/lib/dist-custom-elements/{p-2f73ed5f.js → p-3691df06.js} +2 -2
- package/lib/dist-custom-elements/{p-12a61b16.js → p-3b984f00.js} +2 -2
- package/lib/dist-custom-elements/{p-4e94138b.js → p-53aed47b.js} +5 -5
- package/lib/dist-custom-elements/{p-836021e7.js → p-59f83f34.js} +2 -2
- package/lib/dist-custom-elements/{p-f42b7c16.js → p-629a7253.js} +4 -4
- package/lib/dist-custom-elements/{p-01a47ed0.js → p-704cfe64.js} +2 -2
- package/lib/dist-custom-elements/{p-bf876e72.js → p-70bfd26c.js} +2 -2
- package/lib/dist-custom-elements/{p-a081f721.js → p-809d88d4.js} +3 -3
- package/lib/dist-custom-elements/{p-a56649ff.js → p-8f052709.js} +6 -6
- package/lib/dist-custom-elements/{p-565c7b5e.js → p-914d8914.js} +2 -2
- package/lib/dist-custom-elements/p-936569fb.js +165 -0
- package/lib/dist-custom-elements/{p-0a3b3fbb.js → p-936e320e.js} +5 -5
- package/lib/dist-custom-elements/{p-c8517782.js → p-9607e182.js} +5 -17
- package/lib/dist-custom-elements/{p-76a78894.js → p-990a00b7.js} +2 -2
- package/lib/dist-custom-elements/{p-86faf728.js → p-9ed347f9.js} +17 -2
- package/lib/dist-custom-elements/{p-d05492d6.js → p-a5395818.js} +2 -2
- package/lib/dist-custom-elements/{p-3185bbc5.js → p-a563c612.js} +1 -1
- package/lib/dist-custom-elements/{p-b7f5c755.js → p-b715c813.js} +1 -1
- package/lib/dist-custom-elements/{p-10a1a3da.js → p-b8a94f80.js} +1 -1
- package/lib/dist-custom-elements/{p-f07d95b9.js → p-bcc881ab.js} +1 -1
- package/lib/dist-custom-elements/{p-fbb39f58.js → p-bd7fbd74.js} +1 -1
- package/lib/dist-custom-elements/{p-dfb36895.js → p-c0cc3992.js} +1 -1
- package/lib/dist-custom-elements/{p-02305a1e.js → p-c4d8cad0.js} +1 -1
- package/lib/dist-custom-elements/{p-f20bce7d.js → p-c62a4b7f.js} +1 -1
- package/lib/dist-custom-elements/{p-2215e15e.js → p-c9848d70.js} +6 -6
- package/lib/dist-custom-elements/{p-59480ad8.js → p-cf5f722f.js} +1 -1
- package/lib/dist-custom-elements/{p-068d8815.js → p-d629bb70.js} +1 -1
- package/lib/dist-custom-elements/{p-fe39bfb6.js → p-dde5cc29.js} +9 -8
- package/lib/dist-custom-elements/{p-1940df2f.js → p-f25401f4.js} +1 -1
- package/lib/dist-custom-elements/{p-85e4dd88.js → p-fcbb448b.js} +2 -2
- package/lib/dist-custom-elements/{p-c36d9eb5.js → p-fd6ca85a.js} +2 -2
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-d98eedc7.entry.js → p-008723a7.entry.js} +1 -1
- package/lib/duet/{p-8b0fef4c.system.entry.js → p-00875eb4.system.entry.js} +1 -1
- package/lib/duet/{p-c16f5680.system.entry.js → p-019dd9ee.system.entry.js} +1 -1
- package/lib/duet/p-02f96400.system.js +4 -0
- package/lib/duet/{p-108f093f.system.entry.js → p-038c0be8.system.entry.js} +1 -1
- package/lib/duet/{p-e873306b.system.entry.js → p-05a9b2ed.system.entry.js} +1 -1
- package/lib/duet/p-081ca907.entry.js +4 -0
- package/lib/duet/{p-794e74ca.system.entry.js → p-0b2968fd.system.entry.js} +1 -1
- package/lib/duet/{p-0ef9099d.system.entry.js → p-0b4d0648.system.entry.js} +1 -1
- package/lib/duet/{p-ed8d9d14.system.entry.js → p-0e26a1f7.system.entry.js} +1 -1
- package/lib/duet/{p-00228a70.entry.js → p-0e3add03.entry.js} +1 -1
- package/lib/duet/{p-dbdaec86.entry.js → p-14a34528.entry.js} +1 -1
- package/lib/duet/p-17063917.system.js +4 -0
- package/lib/duet/{p-bd85d575.entry.js → p-17d6a4ae.entry.js} +1 -1
- package/lib/duet/{p-0082ff0a.system.entry.js → p-1a46b65f.system.entry.js} +1 -1
- package/lib/duet/{p-6a49efbc.js → p-1c98eb39.js} +1 -1
- package/lib/duet/p-1cf2522d.js +4 -0
- package/lib/duet/{p-f8ae4f24.system.entry.js → p-1d398157.system.entry.js} +1 -1
- package/lib/duet/{p-1fd65b6a.system.entry.js → p-21c20799.system.entry.js} +1 -1
- package/lib/duet/{p-afdf9c1c.system.entry.js → p-221a80d7.system.entry.js} +1 -1
- package/lib/duet/{p-e7f779ed.entry.js → p-23c032d9.entry.js} +1 -1
- package/lib/duet/p-2436c0a5.system.entry.js +4 -0
- package/lib/duet/{p-8baa5bd1.system.entry.js → p-2801f614.system.entry.js} +1 -1
- package/lib/duet/{p-00030749.entry.js → p-28fd9fd5.entry.js} +1 -1
- package/lib/duet/p-2d2e2b4b.entry.js +4 -0
- package/lib/duet/p-2d84d85d.entry.js +4 -0
- package/lib/duet/p-2ed0b7b5.entry.js +4 -0
- package/lib/duet/p-2ed52fbc.entry.js +4 -0
- package/lib/duet/p-32fb7a16.entry.js +4 -0
- package/lib/duet/{p-59edf7bc.system.entry.js → p-3d1a4328.system.entry.js} +1 -1
- package/lib/duet/{p-16f67902.system.entry.js → p-3dbbac7c.system.entry.js} +1 -1
- package/lib/duet/{p-444b7187.system.entry.js → p-438f4e56.system.entry.js} +1 -1
- package/lib/duet/{p-3054a69d.entry.js → p-43f6c489.entry.js} +1 -1
- package/lib/duet/{p-69b0c916.system.entry.js → p-46c90395.system.entry.js} +1 -1
- package/lib/duet/p-4929228f.entry.js +4 -0
- package/lib/duet/p-5283c47e.system.entry.js +4 -0
- package/lib/duet/{p-b77057b8.entry.js → p-5360c82c.entry.js} +1 -1
- package/lib/duet/{p-8ff5cb03.entry.js → p-54fb6981.entry.js} +1 -1
- package/lib/duet/{p-7088d347.entry.js → p-54fdd242.entry.js} +1 -1
- package/lib/duet/{p-933a2bd0.system.entry.js → p-551d2285.system.entry.js} +1 -1
- package/lib/duet/{p-d74d81a1.system.entry.js → p-5596a05a.system.entry.js} +1 -1
- package/lib/duet/p-559f5bd9.system.entry.js +4 -0
- package/lib/duet/{p-3fd6ad80.entry.js → p-5716f7cf.entry.js} +1 -1
- package/lib/duet/p-5a1feacf.system.entry.js +4 -0
- package/lib/duet/p-5d46f619.system.js +4 -0
- package/lib/duet/{p-5116e9b7.system.entry.js → p-5da6bb5e.system.entry.js} +1 -1
- package/lib/duet/p-5effbb73.system.entry.js +4 -0
- package/lib/duet/p-63d9b5be.entry.js +4 -0
- package/lib/duet/p-66ecef22.entry.js +4 -0
- package/lib/duet/{p-d4bb0408.entry.js → p-67afeaa0.entry.js} +1 -1
- package/lib/duet/p-67caf318.system.entry.js +4 -0
- package/lib/duet/p-67dfbcb9.system.entry.js +4 -0
- package/lib/duet/{p-0433b19b.entry.js → p-6829edbb.entry.js} +1 -1
- package/lib/duet/{p-f92491e1.entry.js → p-69bd2658.entry.js} +1 -1
- package/lib/duet/{p-13cdbe65.entry.js → p-6f085d5d.entry.js} +1 -1
- package/lib/duet/{p-63b7a28e.system.entry.js → p-709b02d5.system.entry.js} +2 -2
- package/lib/duet/p-709d05a4.entry.js +4 -0
- package/lib/duet/p-73ee04df.system.entry.js +4 -0
- package/lib/duet/{p-9cb0def1.system.entry.js → p-754da360.system.entry.js} +1 -1
- package/lib/duet/{p-d674ef21.entry.js → p-768b2c68.entry.js} +1 -1
- package/lib/duet/{p-7e3d7a7e.system.entry.js → p-78aa261b.system.entry.js} +1 -1
- package/lib/duet/{p-9f51f625.entry.js → p-797c482e.entry.js} +1 -1
- package/lib/duet/p-79a9746e.js +4 -0
- package/lib/duet/{p-c76ec371.system.entry.js → p-7b1eb2c4.system.entry.js} +1 -1
- package/lib/duet/p-7d4fb3ca.system.entry.js +4 -0
- package/lib/duet/{p-faf74d63.entry.js → p-7ebf9213.entry.js} +1 -1
- package/lib/duet/{p-6be76f1d.entry.js → p-7ef938ce.entry.js} +1 -1
- package/lib/duet/p-806ef9ec.system.entry.js +4 -0
- package/lib/duet/p-8078b081.system.js +4 -0
- package/lib/duet/{p-6e648879.entry.js → p-808cae20.entry.js} +1 -1
- package/lib/duet/{p-f3e7fc61.system.entry.js → p-80c32801.system.entry.js} +1 -1
- package/lib/duet/{p-7ba68318.system.entry.js → p-828c0da8.system.entry.js} +1 -1
- package/lib/duet/p-82fb4b79.entry.js +4 -0
- package/lib/duet/p-8adfc149.entry.js +4 -0
- package/lib/duet/{p-f40277da.system.entry.js → p-8c647ccd.system.entry.js} +1 -1
- package/lib/duet/p-8e03dfcf.system.entry.js +4 -0
- package/lib/duet/p-8f037a84.system.entry.js +4 -0
- package/lib/duet/p-9052b6f5.js +4 -0
- package/lib/duet/{p-1219c251.system.js → p-945d09b1.system.js} +1 -1
- package/lib/duet/p-9511eeb0.system.entry.js +4 -0
- package/lib/duet/p-9b7206f2.entry.js +4 -0
- package/lib/duet/p-9eb819d4.entry.js +4 -0
- package/lib/duet/{p-607eb013.entry.js → p-9f180230.entry.js} +1 -1
- package/lib/duet/{p-b44ae985.system.entry.js → p-a308e5d8.system.entry.js} +1 -1
- package/lib/duet/{p-3dadf26a.system.entry.js → p-a896fc94.system.entry.js} +1 -1
- package/lib/duet/p-aa2d8671.system.entry.js +4 -0
- package/lib/duet/p-aae2908f.entry.js +4 -0
- package/lib/duet/{p-187a788e.entry.js → p-ac965a4c.entry.js} +1 -1
- package/lib/duet/p-b0cdcf07.system.entry.js +4 -0
- package/lib/duet/{p-6372465a.entry.js → p-b77a7f39.entry.js} +1 -1
- package/lib/duet/{p-ff4995cc.entry.js → p-bd764d77.entry.js} +1 -1
- package/lib/duet/p-be0fb72f.entry.js +4 -0
- package/lib/duet/{p-a3ca26e9.system.entry.js → p-c0522118.system.entry.js} +1 -1
- package/lib/duet/{p-39c02539.system.entry.js → p-c25bac2c.system.entry.js} +1 -1
- package/lib/duet/{p-889cf32a.system.entry.js → p-c3c89ceb.system.entry.js} +1 -1
- package/lib/duet/{p-dc163c6e.entry.js → p-c47d6d7f.entry.js} +1 -1
- package/lib/duet/p-c4d8cad0.js +4 -0
- package/lib/duet/p-c602c7d9.system.entry.js +4 -0
- package/lib/duet/{p-e52ea726.entry.js → p-c659f77e.entry.js} +1 -1
- package/lib/duet/p-cd81fe71.entry.js +4 -0
- package/lib/duet/{p-50551874.entry.js → p-ce2cb1a1.entry.js} +1 -1
- package/lib/duet/p-d2f68f18.system.entry.js +4 -0
- package/lib/duet/{p-b0bf6662.entry.js → p-d82fa629.entry.js} +1 -1
- package/lib/duet/{p-be4c1b3f.entry.js → p-d8e321c6.entry.js} +1 -1
- package/lib/duet/{p-b4ffca84.system.entry.js → p-dc56dcf6.system.entry.js} +1 -1
- package/lib/duet/p-dcf961de.entry.js +4 -0
- package/lib/duet/{p-70a1a9bf.system.js → p-e1dbc0ce.system.js} +1 -1
- package/lib/duet/{p-c4a44c55.system.entry.js → p-e2b3fd43.system.entry.js} +1 -1
- package/lib/duet/{p-14e9ccd4.entry.js → p-e4455346.entry.js} +1 -1
- package/lib/duet/p-e4af296b.entry.js +4 -0
- package/lib/duet/p-e658e8eb.system.entry.js +4 -0
- package/lib/duet/{p-661839a3.entry.js → p-e8fa961d.entry.js} +1 -1
- package/lib/duet/{p-46f86392.entry.js → p-ef10e614.entry.js} +1 -1
- package/lib/duet/{p-c1c11d71.system.entry.js → p-ef82e2ef.system.entry.js} +1 -1
- package/lib/duet/p-efaf5929.system.entry.js +4 -0
- package/lib/duet/{p-cacad773.system.entry.js → p-f07bfed6.system.entry.js} +1 -1
- package/lib/duet/p-f1fa5107.entry.js +4 -0
- package/lib/duet/{p-90e58b7f.entry.js → p-f26434c2.entry.js} +1 -1
- package/lib/duet/{p-24210b97.system.entry.js → p-f414ce87.system.entry.js} +1 -1
- package/lib/duet/{p-92c491d9.entry.js → p-f65d9557.entry.js} +1 -1
- package/lib/duet/{p-a44366ba.entry.js → p-f78e687a.entry.js} +1 -1
- package/lib/duet/{p-f020f7b9.entry.js → p-fbcaf752.entry.js} +1 -1
- package/lib/duet/{p-177abbdc.system.entry.js → p-fccbd519.system.entry.js} +1 -1
- package/lib/duet/{p-dcb5d509.system.entry.js → p-fe3b4f38.system.entry.js} +1 -1
- package/lib/duet/{p-9587a804.entry.js → p-ff6af701.entry.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +3 -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 +3 -3
- package/lib/esm/duet-caption_4.entry.js +3 -3
- package/lib/esm/duet-card.entry.js +10 -4
- package/lib/esm/duet-checkbox.entry.js +6 -2
- package/lib/esm/duet-choice_2.entry.js +2 -2
- package/lib/esm/duet-collapsible.entry.js +2 -2
- package/lib/esm/duet-combobox.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 +7 -18
- 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 +2 -2
- package/lib/esm/duet-header_2.entry.js +3 -3
- package/lib/esm/duet-hero.entry.js +1 -1
- package/lib/esm/duet-icon.entry.js +3 -3
- package/lib/esm/duet-input_2.entry.js +1 -1
- package/lib/esm/duet-layout.entry.js +8 -2
- package/lib/esm/duet-list_2.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +45 -0
- package/lib/esm/duet-menu-bar-dropdown.entry.js +61 -0
- package/lib/esm/duet-menu-bar-link.entry.js +42 -0
- package/lib/esm/duet-menu-bar-menu-dropdown-link.entry.js +54 -0
- package/lib/esm/duet-menu-bar-menu-dropdown.entry.js +61 -0
- package/lib/esm/duet-menu-bar-menu-link.entry.js +46 -0
- package/lib/esm/duet-menu-bar-menu.entry.js +61 -0
- package/lib/esm/duet-menu-bar.entry.js +72 -0
- package/lib/esm/duet-modal.entry.js +2 -2
- package/lib/esm/duet-multiselect.entry.js +223 -0
- package/lib/esm/duet-nav.entry.js +112 -0
- package/lib/esm/duet-notification_2.entry.js +1 -1
- package/lib/esm/duet-number-input.entry.js +1 -1
- package/lib/esm/duet-pagination_2.entry.js +1 -1
- 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 +2 -2
- package/lib/esm/duet-scrollable_3.entry.js +1 -1
- package/lib/esm/duet-section-layout.entry.js +38 -0
- package/lib/esm/duet-select.entry.js +1 -1
- package/lib/esm/duet-step_2.entry.js +1 -1
- 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 +50 -0
- package/lib/esm/duet-toolbar-dropdown.entry.js +74 -0
- package/lib/esm/duet-toolbar-link.entry.js +46 -0
- package/lib/esm/duet-toolbar.entry.js +34 -0
- package/lib/esm/duet-tooltip.entry.js +1 -1
- package/lib/esm/duet-tray.entry.js +2 -2
- 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 +2 -2
- package/lib/esm/{focus-utils-d5499410.js → focus-utils-ac3a342e.js} +1 -1
- package/lib/esm/{index-26388161.js → index-5c6775f8.js} +1 -1
- package/lib/esm/loader.js +2 -2
- package/lib/esm/{token-utils-ebf797ab.js → token-utils-b531747a.js} +17 -2
- package/lib/esm/{tokens-b9d87fda.js → tokens-0963dc8b.js} +1 -1
- package/lib/{dist-custom-elements/p-266411cf.js → esm/tokens.module-d3321092.js} +1 -1
- 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 +2 -2
- package/lib/esm-es5/duet-checkbox.entry.js +2 -2
- package/lib/esm-es5/duet-choice_2.entry.js +2 -2
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.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 +2 -2
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +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 +1 -1
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +4 -0
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +4 -0
- package/lib/esm-es5/duet-menu-bar-link.entry.js +4 -0
- package/lib/esm-es5/duet-menu-bar-menu-dropdown-link.entry.js +4 -0
- package/lib/esm-es5/duet-menu-bar-menu-dropdown.entry.js +4 -0
- package/lib/esm-es5/duet-menu-bar-menu-link.entry.js +4 -0
- package/lib/esm-es5/duet-menu-bar-menu.entry.js +4 -0
- package/lib/esm-es5/duet-menu-bar.entry.js +4 -0
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.entry.js +4 -0
- package/lib/esm-es5/duet-nav.entry.js +4 -0
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.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 +4 -0
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +4 -0
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +4 -0
- package/lib/esm-es5/duet-toolbar-link.entry.js +4 -0
- package/lib/esm-es5/duet-toolbar.entry.js +4 -0
- 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-d5499410.js → focus-utils-ac3a342e.js} +1 -1
- package/lib/esm-es5/{index-26388161.js → index-5c6775f8.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/token-utils-b531747a.js +4 -0
- package/lib/esm-es5/{tokens-b9d87fda.js → tokens-0963dc8b.js} +1 -1
- package/lib/esm-es5/{tokens.module-385c4cf8.js → tokens.module-d3321092.js} +1 -1
- package/lib/types/components/duet-card/duet-card.d.ts +6 -0
- package/lib/types/components/duet-checkbox/duet-checkbox.d.ts +4 -0
- package/lib/types/components/duet-layout/duet-layout.d.ts +6 -0
- package/lib/types/components/duet-menu-bar/duet-menu-bar.d.ts +35 -0
- package/lib/types/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.d.ts +49 -0
- package/lib/types/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.d.ts +32 -0
- package/lib/types/components/duet-menu-bar-link/duet-menu-bar-link.d.ts +32 -0
- package/lib/types/components/duet-menu-bar-menu/duet-menu-bar-menu.d.ts +49 -0
- package/lib/types/components/duet-menu-bar-menu-dropdown/duet-menu-bar-menu-dropdown.d.ts +49 -0
- package/lib/types/components/duet-menu-bar-menu-dropdown-link/duet-menu-bar-menu-dropdown-link.d.ts +40 -0
- package/lib/types/components/duet-menu-bar-menu-link/duet-menu-bar-menu-link.d.ts +36 -0
- package/lib/types/components/duet-multiselect/duet-multiselect.d.ts +137 -0
- package/lib/types/components/duet-nav/duet-nav.d.ts +42 -0
- package/lib/types/components/duet-section-layout/duet-section-layout.d.ts +21 -0
- package/lib/types/components/duet-table/duet-table.d.ts +1 -12
- package/lib/types/components/duet-toolbar/duet-toolbar.d.ts +28 -0
- package/lib/types/components/duet-toolbar-dropdown/duet-toolbar-dropdown.d.ts +53 -0
- package/lib/types/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.d.ts +36 -0
- package/lib/types/components/duet-toolbar-link/duet-toolbar-link.d.ts +36 -0
- package/lib/types/components.d.ts +717 -0
- package/lib/types/utils/token-utils.d.ts +12 -0
- package/package.json +8 -7
- package/lib/duet/p-02305a1e.js +0 -4
- package/lib/duet/p-159ce776.js +0 -4
- package/lib/duet/p-1d7bd203.system.entry.js +0 -4
- package/lib/duet/p-1fc60a60.system.js +0 -4
- package/lib/duet/p-32f7178a.system.js +0 -4
- package/lib/duet/p-50081b36.entry.js +0 -4
- package/lib/duet/p-532e9db7.js +0 -4
- package/lib/duet/p-588be556.js +0 -4
- package/lib/duet/p-58eeed4f.system.entry.js +0 -4
- package/lib/duet/p-5d160b76.system.entry.js +0 -4
- package/lib/duet/p-6caf3423.entry.js +0 -4
- package/lib/duet/p-9f37c7e3.entry.js +0 -4
- package/lib/duet/p-c1d755c9.system.entry.js +0 -4
- package/lib/duet/p-d209191d.system.js +0 -4
- package/lib/duet/p-d267c3a2.entry.js +0 -4
- package/lib/duet/p-e30dc26c.entry.js +0 -4
- package/lib/duet/p-e841deb6.system.js +0 -4
- package/lib/esm-es5/token-utils-ebf797ab.js +0 -4
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Element, Event, h, Host, Listen, Method, Prop, State, Watch } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
|
+
import { createID } from "../../utils/create-id";
|
|
7
|
+
import { isArrowDownKey, isArrowLeftKey, isArrowRightKey, isArrowUpKey, isEnterKey, isEscapeKey, isTabKey, } from "../../utils/keyboard-utils";
|
|
8
|
+
import { getLocaleString } from "../../utils/language-utils";
|
|
9
|
+
import { parsePossibleJSON } from "../../utils/string-utils";
|
|
10
|
+
function toggleInArray(arr, item) {
|
|
11
|
+
return arr.includes(item) ? arr.filter(i => i !== item) : [...arr, item];
|
|
12
|
+
}
|
|
13
|
+
export class DuetMultiselect {
|
|
14
|
+
constructor() {
|
|
15
|
+
/**
|
|
16
|
+
* Own Properties
|
|
17
|
+
*/
|
|
18
|
+
this.errorId = createID("DuetError");
|
|
19
|
+
this.labelId = createID("DuetLabel");
|
|
20
|
+
this.topCaptionId = createID("DuetCaptionTop");
|
|
21
|
+
this.selectedLangObject = {
|
|
22
|
+
en: "selected",
|
|
23
|
+
fi: "valittu",
|
|
24
|
+
sv: "vald",
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* State() variables
|
|
28
|
+
* Inlined decorator, alphabetical order.
|
|
29
|
+
*/
|
|
30
|
+
this.processedItems = [];
|
|
31
|
+
this.checkboxesVisible = false;
|
|
32
|
+
this.activeDescendant = "";
|
|
33
|
+
/**
|
|
34
|
+
* Controls the margin of the component.
|
|
35
|
+
*/
|
|
36
|
+
this.margin = "auto";
|
|
37
|
+
/**
|
|
38
|
+
* Display the select in error state along with an error message.
|
|
39
|
+
*/
|
|
40
|
+
this.error = "";
|
|
41
|
+
/**
|
|
42
|
+
* Expands the input to fill 100% of the container width.
|
|
43
|
+
*/
|
|
44
|
+
this.expand = false;
|
|
45
|
+
/**
|
|
46
|
+
* Value of multiselect
|
|
47
|
+
*/
|
|
48
|
+
this.value = [];
|
|
49
|
+
/**
|
|
50
|
+
* Theme of the select.
|
|
51
|
+
*/
|
|
52
|
+
this.theme = "";
|
|
53
|
+
/**
|
|
54
|
+
* Visually hide the label, but still show it to screen readers.
|
|
55
|
+
*/
|
|
56
|
+
this.labelHidden = false;
|
|
57
|
+
/**
|
|
58
|
+
* Adds a unique identifier for the select.
|
|
59
|
+
*/
|
|
60
|
+
this.identifier = createID("DuetMultiselect");
|
|
61
|
+
/**
|
|
62
|
+
* Hint text to display.
|
|
63
|
+
*/
|
|
64
|
+
this.placeholder = "";
|
|
65
|
+
/**
|
|
66
|
+
* Makes the select component disabled. This prevents users from being able
|
|
67
|
+
* to interact with the select, and conveys its inactive state to assistive
|
|
68
|
+
* technologies.
|
|
69
|
+
*/
|
|
70
|
+
this.disabled = false;
|
|
71
|
+
/**
|
|
72
|
+
* Label for the select.
|
|
73
|
+
*/
|
|
74
|
+
this.label = "label";
|
|
75
|
+
/**
|
|
76
|
+
* Tooltip to display next to the label of the input.
|
|
77
|
+
*/
|
|
78
|
+
this.tooltip = "";
|
|
79
|
+
/**
|
|
80
|
+
* With direction setting you can force the tooltip to always open towards left
|
|
81
|
+
* or right instead of automatically determining the direction.
|
|
82
|
+
*/
|
|
83
|
+
this.tooltipDirection = "auto";
|
|
84
|
+
/**
|
|
85
|
+
* Component event handling.
|
|
86
|
+
*/
|
|
87
|
+
this.onChange = (ev) => {
|
|
88
|
+
this.duetChange.emit({
|
|
89
|
+
originalEvent: ev,
|
|
90
|
+
value: this.value,
|
|
91
|
+
component: "duet-multiselect",
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
this.onBlur = (ev) => {
|
|
95
|
+
this.duetBlur.emit({
|
|
96
|
+
originalEvent: ev,
|
|
97
|
+
value: this.value,
|
|
98
|
+
component: "duet-multiselect",
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
this.onFocus = (ev) => {
|
|
102
|
+
this.duetFocus.emit({
|
|
103
|
+
originalEvent: ev,
|
|
104
|
+
value: this.value,
|
|
105
|
+
component: "duet-multiselect",
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
this.onMultiselectKeyDown = (e) => {
|
|
109
|
+
if (isEscapeKey(e) || isTabKey(e)) {
|
|
110
|
+
if (this.checkboxesVisible) {
|
|
111
|
+
this.checkboxesVisible = false;
|
|
112
|
+
this.multiselectElement.focus();
|
|
113
|
+
e.preventDefault();
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
this.onMultiselectInputKeyDown = (e) => {
|
|
118
|
+
if (isEnterKey(e)) {
|
|
119
|
+
e.preventDefault();
|
|
120
|
+
this.toggleCheckboxes();
|
|
121
|
+
setTimeout(() => {
|
|
122
|
+
if (this.checkboxesVisible) {
|
|
123
|
+
const firstOption = this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(0)}`);
|
|
124
|
+
if (firstOption) {
|
|
125
|
+
firstOption.focus();
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}, 200);
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
this.onCheckboxKeyDown = (e, key) => {
|
|
132
|
+
let nextOption;
|
|
133
|
+
if (isArrowLeftKey(e) || isArrowUpKey(e)) {
|
|
134
|
+
nextOption = this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(key - 1)}`);
|
|
135
|
+
}
|
|
136
|
+
else if (isArrowRightKey(e) || isArrowDownKey(e)) {
|
|
137
|
+
nextOption = this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(key + 1)}`);
|
|
138
|
+
}
|
|
139
|
+
if (nextOption) {
|
|
140
|
+
nextOption.focus();
|
|
141
|
+
e.preventDefault();
|
|
142
|
+
this.activeDescendant = nextOption.id;
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
this.toggleCheckboxes = () => {
|
|
146
|
+
this.checkboxesVisible = !this.checkboxesVisible;
|
|
147
|
+
};
|
|
148
|
+
this.toggleCheckbox = (e, item) => {
|
|
149
|
+
this.value = toggleInArray(this.value, item);
|
|
150
|
+
this.onChange(e);
|
|
151
|
+
};
|
|
152
|
+
this.getOptionIdentifier = (key) => {
|
|
153
|
+
return `${this.identifier}-option-${key}`;
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
handleFocus(e) {
|
|
157
|
+
const isClickOutside = e.composedPath().every(node => node !== this.element);
|
|
158
|
+
if (isClickOutside) {
|
|
159
|
+
this.checkboxesVisible = false;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Component lifecycle events.
|
|
164
|
+
*/
|
|
165
|
+
componentWillLoad() {
|
|
166
|
+
inheritGlobalTheme(this);
|
|
167
|
+
this.isCaptionVisible = !!this.caption;
|
|
168
|
+
this.refresh();
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Sets focus on the specified `duet-multiselect`. Use this method instead of the global
|
|
172
|
+
* `multiselect.focus()`.
|
|
173
|
+
*/
|
|
174
|
+
async setFocus(options) {
|
|
175
|
+
if (this.multiselectElement) {
|
|
176
|
+
this.multiselectElement.focus(options);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Local methods.
|
|
181
|
+
*/
|
|
182
|
+
async refresh() {
|
|
183
|
+
this.processedItems = parsePossibleJSON(this.items);
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* render() function
|
|
187
|
+
* Always the last one in the class.
|
|
188
|
+
*/
|
|
189
|
+
render() {
|
|
190
|
+
const selectedTranslation = getLocaleString(this.selectedLangObject);
|
|
191
|
+
return (h(Host, { class: {
|
|
192
|
+
"duet-m-0": this.margin === "none",
|
|
193
|
+
"duet-expand": this.expand,
|
|
194
|
+
} },
|
|
195
|
+
h("div", { class: {
|
|
196
|
+
"duet-multiselect-container": true,
|
|
197
|
+
"duet-label-hidden": this.labelHidden,
|
|
198
|
+
"duet-theme-turva": this.theme === "turva",
|
|
199
|
+
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
200
|
+
"has-error": !!this.error,
|
|
201
|
+
}, onKeyDown: (e) => this.onMultiselectKeyDown(e) },
|
|
202
|
+
h("duet-label", { theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, id: this.labelId, for: this.identifier }, this.label),
|
|
203
|
+
this.tooltip && (h("duet-tooltip", { class: "duet-multiselect-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)),
|
|
204
|
+
this.caption && (h("duet-caption", { id: this.topCaptionId, size: "medium" }, this.caption)),
|
|
205
|
+
h("div", { class: "duet-multiselect-wrapper" },
|
|
206
|
+
h("button", { id: this.identifier, ref: el => (this.multiselectElement = el), class: { "duet-multiselect": true, "duet-multiselect-active": this.checkboxesVisible }, tabindex: "0", onClick: () => this.toggleCheckboxes(), onFocus: e => this.onFocus(e), onBlur: e => this.onBlur(e), role: "combobox", "aria-expanded": this.checkboxesVisible ? "true" : "false", "aria-haspopup": "listbox", "aria-labelledby": `${this.labelId} ${this.errorId}`, "aria-owns": `${this.identifier}-checkboxes`, onKeyDown: (e) => this.onMultiselectInputKeyDown(e), disabled: this.disabled },
|
|
207
|
+
h("span", { role: "textbox", "aria-readonly": "true", "aria-multiline": "false", "aria-autocomplete": "none", "aria-controls": `${this.identifier}-checkboxes` }, this.placeholder),
|
|
208
|
+
this.value && this.value.length > 0 && (h("duet-badge", { class: "duet-multiselect-badge", margin: "none", theme: this.theme },
|
|
209
|
+
this.value.length,
|
|
210
|
+
" ",
|
|
211
|
+
selectedTranslation,
|
|
212
|
+
h("duet-visually-hidden", null,
|
|
213
|
+
", ",
|
|
214
|
+
this.value.map(item => item.label).join(", ")))),
|
|
215
|
+
h("svg", { role: "img", class: { "duet-multiselect-icon": true, "duet-multiselect-icon--rotate": this.checkboxesVisible }, fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
216
|
+
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" }))),
|
|
217
|
+
h("div", { id: `${this.identifier}-checkboxes`, role: "listbox", class: {
|
|
218
|
+
"duet-multiselect-checkboxes": true,
|
|
219
|
+
"duet-multiselect-checkboxes-active": this.checkboxesVisible,
|
|
220
|
+
}, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, this.processedItems &&
|
|
221
|
+
this.processedItems.map((item, key) => {
|
|
222
|
+
var _a, _b;
|
|
223
|
+
return (h("duet-checkbox", { identifier: this.getOptionIdentifier(key), role: "option", label: item.label, value: item.value, key: item.value, checked: (_a = this.value) === null || _a === void 0 ? void 0 : _a.includes(item), "accessible-selected": ((_b = this.value) === null || _b === void 0 ? void 0 : _b.includes(item)) ? "true" : undefined, disabled: !this.checkboxesVisible || item.disabled, onDuetChange: e => this.toggleCheckbox(e, item), onKeyDown: (e) => this.onCheckboxKeyDown(e, key), theme: this.theme }));
|
|
224
|
+
}))),
|
|
225
|
+
h("span", { class: "duet-multiselect-help", id: this.errorId, "aria-live": "assertive", "aria-relevant": "additions removals" }, this.error && h("span", null, this.error)))));
|
|
226
|
+
}
|
|
227
|
+
static get is() { return "duet-multiselect"; }
|
|
228
|
+
static get encapsulation() { return "shadow"; }
|
|
229
|
+
static get originalStyleUrls() { return {
|
|
230
|
+
"$": ["duet-multiselect.scss"]
|
|
231
|
+
}; }
|
|
232
|
+
static get styleUrls() { return {
|
|
233
|
+
"$": ["duet-multiselect.css"]
|
|
234
|
+
}; }
|
|
235
|
+
static get properties() { return {
|
|
236
|
+
"margin": {
|
|
237
|
+
"type": "string",
|
|
238
|
+
"mutable": false,
|
|
239
|
+
"complexType": {
|
|
240
|
+
"original": "DuetMargin",
|
|
241
|
+
"resolved": "\"auto\" | \"none\"",
|
|
242
|
+
"references": {
|
|
243
|
+
"DuetMargin": {
|
|
244
|
+
"location": "import",
|
|
245
|
+
"path": "../../common-types"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"required": false,
|
|
250
|
+
"optional": false,
|
|
251
|
+
"docs": {
|
|
252
|
+
"tags": [],
|
|
253
|
+
"text": "Controls the margin of the component."
|
|
254
|
+
},
|
|
255
|
+
"attribute": "margin",
|
|
256
|
+
"reflect": false,
|
|
257
|
+
"defaultValue": "\"auto\""
|
|
258
|
+
},
|
|
259
|
+
"error": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"mutable": false,
|
|
262
|
+
"complexType": {
|
|
263
|
+
"original": "string",
|
|
264
|
+
"resolved": "string",
|
|
265
|
+
"references": {}
|
|
266
|
+
},
|
|
267
|
+
"required": false,
|
|
268
|
+
"optional": false,
|
|
269
|
+
"docs": {
|
|
270
|
+
"tags": [],
|
|
271
|
+
"text": "Display the select in error state along with an error message."
|
|
272
|
+
},
|
|
273
|
+
"attribute": "error",
|
|
274
|
+
"reflect": false,
|
|
275
|
+
"defaultValue": "\"\""
|
|
276
|
+
},
|
|
277
|
+
"expand": {
|
|
278
|
+
"type": "boolean",
|
|
279
|
+
"mutable": false,
|
|
280
|
+
"complexType": {
|
|
281
|
+
"original": "boolean",
|
|
282
|
+
"resolved": "boolean",
|
|
283
|
+
"references": {}
|
|
284
|
+
},
|
|
285
|
+
"required": false,
|
|
286
|
+
"optional": false,
|
|
287
|
+
"docs": {
|
|
288
|
+
"tags": [],
|
|
289
|
+
"text": "Expands the input to fill 100% of the container width."
|
|
290
|
+
},
|
|
291
|
+
"attribute": "expand",
|
|
292
|
+
"reflect": false,
|
|
293
|
+
"defaultValue": "false"
|
|
294
|
+
},
|
|
295
|
+
"value": {
|
|
296
|
+
"type": "unknown",
|
|
297
|
+
"mutable": true,
|
|
298
|
+
"complexType": {
|
|
299
|
+
"original": "DuetMultiselectItem[]",
|
|
300
|
+
"resolved": "DuetMultiselectItem[]",
|
|
301
|
+
"references": {
|
|
302
|
+
"DuetMultiselectItem": {
|
|
303
|
+
"location": "local"
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"required": false,
|
|
308
|
+
"optional": false,
|
|
309
|
+
"docs": {
|
|
310
|
+
"tags": [],
|
|
311
|
+
"text": "Value of multiselect"
|
|
312
|
+
},
|
|
313
|
+
"defaultValue": "[]"
|
|
314
|
+
},
|
|
315
|
+
"theme": {
|
|
316
|
+
"type": "string",
|
|
317
|
+
"mutable": true,
|
|
318
|
+
"complexType": {
|
|
319
|
+
"original": "DuetTheme",
|
|
320
|
+
"resolved": "\"\" | \"default\" | \"turva\"",
|
|
321
|
+
"references": {
|
|
322
|
+
"DuetTheme": {
|
|
323
|
+
"location": "import",
|
|
324
|
+
"path": "../../common-types"
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"required": false,
|
|
329
|
+
"optional": false,
|
|
330
|
+
"docs": {
|
|
331
|
+
"tags": [],
|
|
332
|
+
"text": "Theme of the select."
|
|
333
|
+
},
|
|
334
|
+
"attribute": "theme",
|
|
335
|
+
"reflect": false,
|
|
336
|
+
"defaultValue": "\"\""
|
|
337
|
+
},
|
|
338
|
+
"labelHidden": {
|
|
339
|
+
"type": "boolean",
|
|
340
|
+
"mutable": false,
|
|
341
|
+
"complexType": {
|
|
342
|
+
"original": "boolean",
|
|
343
|
+
"resolved": "boolean",
|
|
344
|
+
"references": {}
|
|
345
|
+
},
|
|
346
|
+
"required": false,
|
|
347
|
+
"optional": false,
|
|
348
|
+
"docs": {
|
|
349
|
+
"tags": [],
|
|
350
|
+
"text": "Visually hide the label, but still show it to screen readers."
|
|
351
|
+
},
|
|
352
|
+
"attribute": "label-hidden",
|
|
353
|
+
"reflect": false,
|
|
354
|
+
"defaultValue": "false"
|
|
355
|
+
},
|
|
356
|
+
"identifier": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"mutable": false,
|
|
359
|
+
"complexType": {
|
|
360
|
+
"original": "string",
|
|
361
|
+
"resolved": "string",
|
|
362
|
+
"references": {}
|
|
363
|
+
},
|
|
364
|
+
"required": false,
|
|
365
|
+
"optional": false,
|
|
366
|
+
"docs": {
|
|
367
|
+
"tags": [],
|
|
368
|
+
"text": "Adds a unique identifier for the select."
|
|
369
|
+
},
|
|
370
|
+
"attribute": "identifier",
|
|
371
|
+
"reflect": false,
|
|
372
|
+
"defaultValue": "createID(\"DuetMultiselect\")"
|
|
373
|
+
},
|
|
374
|
+
"placeholder": {
|
|
375
|
+
"type": "string",
|
|
376
|
+
"mutable": false,
|
|
377
|
+
"complexType": {
|
|
378
|
+
"original": "string",
|
|
379
|
+
"resolved": "string",
|
|
380
|
+
"references": {}
|
|
381
|
+
},
|
|
382
|
+
"required": false,
|
|
383
|
+
"optional": false,
|
|
384
|
+
"docs": {
|
|
385
|
+
"tags": [],
|
|
386
|
+
"text": "Hint text to display."
|
|
387
|
+
},
|
|
388
|
+
"attribute": "placeholder",
|
|
389
|
+
"reflect": false,
|
|
390
|
+
"defaultValue": "\"\""
|
|
391
|
+
},
|
|
392
|
+
"caption": {
|
|
393
|
+
"type": "string",
|
|
394
|
+
"mutable": false,
|
|
395
|
+
"complexType": {
|
|
396
|
+
"original": "string",
|
|
397
|
+
"resolved": "string",
|
|
398
|
+
"references": {}
|
|
399
|
+
},
|
|
400
|
+
"required": false,
|
|
401
|
+
"optional": false,
|
|
402
|
+
"docs": {
|
|
403
|
+
"tags": [],
|
|
404
|
+
"text": "Caption (underneath label) that can be set as a way of adding extra information"
|
|
405
|
+
},
|
|
406
|
+
"attribute": "caption",
|
|
407
|
+
"reflect": false
|
|
408
|
+
},
|
|
409
|
+
"items": {
|
|
410
|
+
"type": "string",
|
|
411
|
+
"mutable": false,
|
|
412
|
+
"complexType": {
|
|
413
|
+
"original": "string | DuetMultiselectItem[]",
|
|
414
|
+
"resolved": "DuetMultiselectItem[] | string",
|
|
415
|
+
"references": {
|
|
416
|
+
"DuetMultiselectItem": {
|
|
417
|
+
"location": "local"
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
"required": false,
|
|
422
|
+
"optional": false,
|
|
423
|
+
"docs": {
|
|
424
|
+
"tags": [],
|
|
425
|
+
"text": "An array of items to choose from"
|
|
426
|
+
},
|
|
427
|
+
"attribute": "items",
|
|
428
|
+
"reflect": false
|
|
429
|
+
},
|
|
430
|
+
"disabled": {
|
|
431
|
+
"type": "boolean",
|
|
432
|
+
"mutable": false,
|
|
433
|
+
"complexType": {
|
|
434
|
+
"original": "boolean",
|
|
435
|
+
"resolved": "boolean",
|
|
436
|
+
"references": {}
|
|
437
|
+
},
|
|
438
|
+
"required": false,
|
|
439
|
+
"optional": false,
|
|
440
|
+
"docs": {
|
|
441
|
+
"tags": [],
|
|
442
|
+
"text": "Makes the select component disabled. This prevents users from being able\nto interact with the select, and conveys its inactive state to assistive\ntechnologies."
|
|
443
|
+
},
|
|
444
|
+
"attribute": "disabled",
|
|
445
|
+
"reflect": true,
|
|
446
|
+
"defaultValue": "false"
|
|
447
|
+
},
|
|
448
|
+
"label": {
|
|
449
|
+
"type": "string",
|
|
450
|
+
"mutable": false,
|
|
451
|
+
"complexType": {
|
|
452
|
+
"original": "string",
|
|
453
|
+
"resolved": "string",
|
|
454
|
+
"references": {}
|
|
455
|
+
},
|
|
456
|
+
"required": false,
|
|
457
|
+
"optional": false,
|
|
458
|
+
"docs": {
|
|
459
|
+
"tags": [],
|
|
460
|
+
"text": "Label for the select."
|
|
461
|
+
},
|
|
462
|
+
"attribute": "label",
|
|
463
|
+
"reflect": false,
|
|
464
|
+
"defaultValue": "\"label\""
|
|
465
|
+
},
|
|
466
|
+
"tooltip": {
|
|
467
|
+
"type": "string",
|
|
468
|
+
"mutable": false,
|
|
469
|
+
"complexType": {
|
|
470
|
+
"original": "string",
|
|
471
|
+
"resolved": "string",
|
|
472
|
+
"references": {}
|
|
473
|
+
},
|
|
474
|
+
"required": false,
|
|
475
|
+
"optional": false,
|
|
476
|
+
"docs": {
|
|
477
|
+
"tags": [],
|
|
478
|
+
"text": "Tooltip to display next to the label of the input."
|
|
479
|
+
},
|
|
480
|
+
"attribute": "tooltip",
|
|
481
|
+
"reflect": false,
|
|
482
|
+
"defaultValue": "\"\""
|
|
483
|
+
},
|
|
484
|
+
"tooltipDirection": {
|
|
485
|
+
"type": "string",
|
|
486
|
+
"mutable": false,
|
|
487
|
+
"complexType": {
|
|
488
|
+
"original": "DuetTooltipDirection",
|
|
489
|
+
"resolved": "\"auto\" | \"left\" | \"right\"",
|
|
490
|
+
"references": {
|
|
491
|
+
"DuetTooltipDirection": {
|
|
492
|
+
"location": "import",
|
|
493
|
+
"path": "../../common-types"
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
"required": false,
|
|
498
|
+
"optional": false,
|
|
499
|
+
"docs": {
|
|
500
|
+
"tags": [],
|
|
501
|
+
"text": "With direction setting you can force the tooltip to always open towards left\nor right instead of automatically determining the direction."
|
|
502
|
+
},
|
|
503
|
+
"attribute": "tooltip-direction",
|
|
504
|
+
"reflect": false,
|
|
505
|
+
"defaultValue": "\"auto\""
|
|
506
|
+
}
|
|
507
|
+
}; }
|
|
508
|
+
static get states() { return {
|
|
509
|
+
"processedItems": {},
|
|
510
|
+
"checkboxesVisible": {},
|
|
511
|
+
"activeDescendant": {}
|
|
512
|
+
}; }
|
|
513
|
+
static get events() { return [{
|
|
514
|
+
"method": "duetChange",
|
|
515
|
+
"name": "duetChange",
|
|
516
|
+
"bubbles": false,
|
|
517
|
+
"cancelable": true,
|
|
518
|
+
"composed": true,
|
|
519
|
+
"docs": {
|
|
520
|
+
"tags": [],
|
|
521
|
+
"text": "Callback for when the value changed."
|
|
522
|
+
},
|
|
523
|
+
"complexType": {
|
|
524
|
+
"original": "DuetMultiselectEvent",
|
|
525
|
+
"resolved": "{ originalEvent?: Event; component: \"duet-multiselect\"; value: DuetMultiselectItem[]; }",
|
|
526
|
+
"references": {
|
|
527
|
+
"DuetMultiselectEvent": {
|
|
528
|
+
"location": "local"
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}, {
|
|
533
|
+
"method": "duetFocus",
|
|
534
|
+
"name": "duetFocus",
|
|
535
|
+
"bubbles": true,
|
|
536
|
+
"cancelable": true,
|
|
537
|
+
"composed": true,
|
|
538
|
+
"docs": {
|
|
539
|
+
"tags": [],
|
|
540
|
+
"text": "Emitted when the select has focus."
|
|
541
|
+
},
|
|
542
|
+
"complexType": {
|
|
543
|
+
"original": "DuetMultiselectEvent",
|
|
544
|
+
"resolved": "{ originalEvent?: Event; component: \"duet-multiselect\"; value: DuetMultiselectItem[]; }",
|
|
545
|
+
"references": {
|
|
546
|
+
"DuetMultiselectEvent": {
|
|
547
|
+
"location": "local"
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}, {
|
|
552
|
+
"method": "duetBlur",
|
|
553
|
+
"name": "duetBlur",
|
|
554
|
+
"bubbles": true,
|
|
555
|
+
"cancelable": true,
|
|
556
|
+
"composed": true,
|
|
557
|
+
"docs": {
|
|
558
|
+
"tags": [],
|
|
559
|
+
"text": "Emitted when the select loses focus."
|
|
560
|
+
},
|
|
561
|
+
"complexType": {
|
|
562
|
+
"original": "DuetMultiselectEvent",
|
|
563
|
+
"resolved": "{ originalEvent?: Event; component: \"duet-multiselect\"; value: DuetMultiselectItem[]; }",
|
|
564
|
+
"references": {
|
|
565
|
+
"DuetMultiselectEvent": {
|
|
566
|
+
"location": "local"
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
}]; }
|
|
571
|
+
static get methods() { return {
|
|
572
|
+
"setFocus": {
|
|
573
|
+
"complexType": {
|
|
574
|
+
"signature": "(options?: FocusOptions) => Promise<void>",
|
|
575
|
+
"parameters": [{
|
|
576
|
+
"tags": [],
|
|
577
|
+
"text": ""
|
|
578
|
+
}],
|
|
579
|
+
"references": {
|
|
580
|
+
"Promise": {
|
|
581
|
+
"location": "global"
|
|
582
|
+
},
|
|
583
|
+
"FocusOptions": {
|
|
584
|
+
"location": "global"
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
"return": "Promise<void>"
|
|
588
|
+
},
|
|
589
|
+
"docs": {
|
|
590
|
+
"text": "Sets focus on the specified `duet-multiselect`. Use this method instead of the global\n`multiselect.focus()`.",
|
|
591
|
+
"tags": []
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}; }
|
|
595
|
+
static get elementRef() { return "element"; }
|
|
596
|
+
static get watchers() { return [{
|
|
597
|
+
"propName": "items",
|
|
598
|
+
"methodName": "refresh"
|
|
599
|
+
}]; }
|
|
600
|
+
static get listeners() { return [{
|
|
601
|
+
"name": "click",
|
|
602
|
+
"method": "handleFocus",
|
|
603
|
+
"target": "window",
|
|
604
|
+
"capture": false,
|
|
605
|
+
"passive": false
|
|
606
|
+
}]; }
|
|
607
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::after,
|
|
3
|
+
*::before {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
padding: 0;
|
|
6
|
+
margin: 0;
|
|
7
|
+
background: transparent;
|
|
8
|
+
border: 0;
|
|
9
|
+
-moz-appearance: none;
|
|
10
|
+
-webkit-appearance: none;
|
|
11
|
+
appearance: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
padding: 0;
|
|
17
|
+
margin: 0;
|
|
18
|
+
background: transparent;
|
|
19
|
+
border: 0;
|
|
20
|
+
-moz-appearance: none;
|
|
21
|
+
-webkit-appearance: none;
|
|
22
|
+
appearance: none;
|
|
23
|
+
width: 100%;
|
|
24
|
+
}
|