@duetds/components 6.0.6 → 6.1.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 +253 -9
- package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
- 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 +2 -2
- package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
- package/lib/cjs/duet-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkbox.cjs.entry.js +6 -2
- package/lib/cjs/duet-choice_2.cjs.entry.js +8 -6
- package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
- 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 +4 -3
- 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 +1 -1
- package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-hero.cjs.entry.js +1 -1
- package/lib/cjs/duet-icon.cjs.entry.js +1 -1
- package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-modal.cjs.entry.js +2 -2
- package/lib/cjs/duet-multiselect.cjs.entry.js +224 -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 +1 -1
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
- 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-tooltip.cjs.entry.js +1 -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-dd4ce1de.js → focus-utils-5bf92cc0.js} +1 -1
- package/lib/cjs/{index-e4517eb5.js → index-d380d72b.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/collection/collection-manifest.json +1 -0
- package/lib/collection/components/duet-button/duet-button.css +4 -4
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +23 -1
- package/lib/collection/components/duet-choice/duet-choice.js +1 -1
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +5 -3
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +2 -1
- package/lib/collection/components/duet-multiselect/duet-multiselect.css +261 -0
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +597 -0
- package/lib/collection/components/duet-upload/duet-upload.js +1 -1
- 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 +3 -3
- package/lib/dist-custom-elements/duet-checkbox.js +1 -155
- package/lib/dist-custom-elements/duet-choice-group.js +11 -9
- 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 +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 +8 -8
- 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 +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-modal.js +7 -7
- package/lib/dist-custom-elements/duet-multiselect.d.ts +11 -0
- package/lib/dist-custom-elements/duet-multiselect.js +299 -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 +2 -2
- 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-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-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +3 -3
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +19 -19
- 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-80931556.js → p-025242f2.js} +6 -6
- package/lib/dist-custom-elements/{p-aa0d2da3.js → p-14799264.js} +1 -1
- package/lib/dist-custom-elements/{p-64632357.js → p-15cca1fa.js} +2 -2
- package/lib/dist-custom-elements/{p-aa492620.js → p-260d7413.js} +1 -1
- package/lib/dist-custom-elements/{p-bf5314b7.js → p-2b6e0098.js} +1 -1
- package/lib/dist-custom-elements/{p-3a9cfcc9.js → p-35856a5f.js} +1 -1
- package/lib/dist-custom-elements/{p-c04225ed.js → p-3f5248cc.js} +6 -6
- package/lib/dist-custom-elements/p-3f9960ee.js +165 -0
- package/lib/dist-custom-elements/{p-a379b2d3.js → p-40964c90.js} +2 -2
- package/lib/dist-custom-elements/{p-29eb2df5.js → p-4dd0d2e0.js} +1 -1
- package/lib/dist-custom-elements/{p-8cd228d4.js → p-5368b90e.js} +1 -1
- package/lib/dist-custom-elements/{p-b39ebe64.js → p-5c30c1e6.js} +3 -3
- package/lib/dist-custom-elements/{p-87a6b2d6.js → p-6352244e.js} +1 -1
- package/lib/dist-custom-elements/{p-7c13db02.js → p-76a12869.js} +2 -2
- package/lib/dist-custom-elements/{p-4945e262.js → p-84036192.js} +3 -3
- package/lib/dist-custom-elements/{p-e0a69099.js → p-983633e4.js} +1 -1
- package/lib/dist-custom-elements/{p-199c2f56.js → p-a0188402.js} +5 -5
- package/lib/dist-custom-elements/{p-7f15884f.js → p-a10df7a8.js} +1 -1
- package/lib/dist-custom-elements/{p-9f0235d2.js → p-a19a3c64.js} +1 -1
- package/lib/dist-custom-elements/{p-b74969f0.js → p-a720eb56.js} +2 -2
- package/lib/dist-custom-elements/{p-592779ce.js → p-b125807e.js} +1 -1
- package/lib/dist-custom-elements/{p-4f279f53.js → p-b828da80.js} +9 -8
- package/lib/dist-custom-elements/{p-cb00b1f9.js → p-c2260d50.js} +2 -2
- package/lib/dist-custom-elements/{p-7576d4ff.js → p-c2c3e421.js} +1 -1
- package/lib/dist-custom-elements/{p-b32fb567.js → p-dde39f08.js} +1 -1
- package/lib/dist-custom-elements/{p-d7e59b1c.js → p-df05a117.js} +1 -1
- package/lib/dist-custom-elements/{p-28011c52.js → p-e06d804b.js} +1 -1
- package/lib/dist-custom-elements/{p-7289badb.js → p-e436e97c.js} +5 -5
- package/lib/dist-custom-elements/{p-a426557f.js → p-eef3373f.js} +1 -1
- package/lib/dist-custom-elements/{p-d00cffea.js → p-f06badc1.js} +3 -3
- package/lib/dist-custom-elements/{p-082654a0.js → p-f5d54803.js} +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-9b3a36e6.entry.js → p-07c53212.entry.js} +1 -1
- package/lib/duet/{p-8fbe317b.system.js → p-08c8edc7.system.js} +1 -1
- package/lib/duet/{p-2248cea0.system.entry.js → p-0bc10576.system.entry.js} +1 -1
- package/lib/duet/{p-fe658814.entry.js → p-0c1fdd7c.entry.js} +1 -1
- package/lib/duet/{p-6e39375e.system.entry.js → p-1034d5d8.system.entry.js} +1 -1
- package/lib/duet/{p-fc7bff4b.system.entry.js → p-10a9fe19.system.entry.js} +1 -1
- package/lib/duet/{p-42fd968a.entry.js → p-134bbc67.entry.js} +1 -1
- package/lib/duet/{p-2f94a10d.system.entry.js → p-17213a02.system.entry.js} +1 -1
- package/lib/duet/{p-46c15952.entry.js → p-18c2588a.entry.js} +1 -1
- package/lib/duet/{p-f640cfa4.entry.js → p-1e8365c3.entry.js} +1 -1
- package/lib/duet/{p-52c056db.entry.js → p-20df1f28.entry.js} +1 -1
- package/lib/duet/{p-440ab681.entry.js → p-24b890e9.entry.js} +1 -1
- package/lib/duet/{p-9b991fcc.system.entry.js → p-2957055a.system.entry.js} +1 -1
- package/lib/duet/{p-38ebcf7c.entry.js → p-2a2b5109.entry.js} +1 -1
- package/lib/duet/{p-f9bbab0b.system.entry.js → p-2b7f998c.system.entry.js} +1 -1
- package/lib/duet/{p-7c667e8f.entry.js → p-2b822122.entry.js} +1 -1
- package/lib/duet/{p-7b41013a.entry.js → p-2d906752.entry.js} +1 -1
- package/lib/duet/{p-76bd1cd1.js → p-2f183314.js} +1 -1
- package/lib/duet/{p-2aa13286.entry.js → p-3166de44.entry.js} +1 -1
- package/lib/duet/{p-48ebc2b0.entry.js → p-3287e496.entry.js} +1 -1
- package/lib/duet/{p-59b50ef3.entry.js → p-33814c22.entry.js} +1 -1
- package/lib/duet/p-33bbde60.entry.js +4 -0
- package/lib/duet/{p-45b515be.entry.js → p-351fbda4.entry.js} +1 -1
- package/lib/duet/{p-8f3a0c72.system.entry.js → p-35351cf2.system.entry.js} +1 -1
- package/lib/duet/{p-039fc9c3.entry.js → p-363c6807.entry.js} +1 -1
- package/lib/duet/{p-b38311d2.system.entry.js → p-3ab707be.system.entry.js} +1 -1
- package/lib/duet/{p-2070fce5.entry.js → p-3f6487d8.entry.js} +1 -1
- package/lib/duet/{p-35a057b3.entry.js → p-4056c348.entry.js} +1 -1
- package/lib/duet/{p-678e8cbb.entry.js → p-48f15ed7.entry.js} +1 -1
- package/lib/duet/{p-fe5c5165.system.entry.js → p-4a97bbae.system.entry.js} +1 -1
- package/lib/duet/{p-de540d60.entry.js → p-4c3bfd8a.entry.js} +1 -1
- package/lib/duet/{p-6c762845.system.entry.js → p-4d6b04f1.system.entry.js} +1 -1
- package/lib/duet/{p-c468a3a5.system.entry.js → p-4fee02ae.system.entry.js} +1 -1
- package/lib/duet/{p-19727bc9.system.entry.js → p-5174a8af.system.entry.js} +1 -1
- package/lib/duet/{p-71d5f97d.entry.js → p-545177af.entry.js} +1 -1
- package/lib/duet/{p-48d64315.system.entry.js → p-55f8c851.system.entry.js} +1 -1
- package/lib/duet/{p-20f35cdc.system.entry.js → p-5f4a200f.system.entry.js} +1 -1
- package/lib/duet/{p-d1433a6c.system.entry.js → p-69d0a2ce.system.entry.js} +1 -1
- package/lib/duet/{p-fafcae12.system.entry.js → p-6cc20670.system.entry.js} +1 -1
- package/lib/duet/{p-8177d52d.entry.js → p-6d2d9897.entry.js} +1 -1
- package/lib/duet/{p-6d95f910.system.entry.js → p-6def950d.system.entry.js} +1 -1
- package/lib/duet/{p-c530394c.entry.js → p-709654f2.entry.js} +1 -1
- package/lib/duet/{p-52c6ae14.system.entry.js → p-73c3092e.system.entry.js} +1 -1
- package/lib/duet/{p-37ed2dff.system.entry.js → p-79eada30.system.entry.js} +1 -1
- package/lib/duet/{p-0213ed5d.system.entry.js → p-7ed493e6.system.entry.js} +1 -1
- package/lib/duet/{p-a59437ad.entry.js → p-88e3d858.entry.js} +1 -1
- package/lib/duet/{p-b719d692.entry.js → p-88eabc52.entry.js} +1 -1
- package/lib/duet/p-89b3c614.entry.js +4 -0
- package/lib/duet/{p-5cdddc36.system.entry.js → p-8c17003f.system.entry.js} +2 -2
- package/lib/duet/p-8c2a2440.entry.js +4 -0
- package/lib/duet/p-8cea8546.system.js +4 -0
- package/lib/duet/{p-4b297926.system.entry.js → p-8db9e436.system.entry.js} +1 -1
- package/lib/duet/{p-27264236.system.entry.js → p-9343afe6.system.entry.js} +1 -1
- package/lib/duet/{p-9128d8c9.system.entry.js → p-95340ddf.system.entry.js} +1 -1
- package/lib/duet/p-97b281b2.system.entry.js +4 -0
- package/lib/duet/{p-2f82c49d.entry.js → p-9c2d276b.entry.js} +1 -1
- package/lib/duet/{p-605d7b1b.system.js → p-9e9b3182.system.js} +1 -1
- package/lib/duet/{p-7fa21213.entry.js → p-9ff90002.entry.js} +1 -1
- package/lib/duet/{p-bd5e1712.entry.js → p-a4acf397.entry.js} +1 -1
- package/lib/duet/{p-79f628fc.entry.js → p-a883b01d.entry.js} +1 -1
- package/lib/duet/{p-dbbbfb36.system.entry.js → p-a8e38895.system.entry.js} +1 -1
- package/lib/duet/{p-f75b852a.entry.js → p-aba4b236.entry.js} +1 -1
- package/lib/duet/{p-a090cc23.system.entry.js → p-b0b61064.system.entry.js} +1 -1
- package/lib/duet/p-b2a940b5.system.entry.js +4 -0
- package/lib/duet/{p-34c60dae.system.entry.js → p-b2da699d.system.entry.js} +1 -1
- package/lib/duet/{p-4f74dcb0.system.entry.js → p-bdbe682d.system.entry.js} +2 -2
- package/lib/duet/{p-0366aa94.entry.js → p-be9d7718.entry.js} +1 -1
- package/lib/duet/{p-251a5aac.system.entry.js → p-bedf7cb7.system.entry.js} +1 -1
- package/lib/duet/{p-939a6cc1.entry.js → p-c055fcd1.entry.js} +1 -1
- package/lib/duet/{p-e9ac6c20.system.entry.js → p-c8a46ebb.system.entry.js} +1 -1
- package/lib/duet/{p-42b60815.entry.js → p-c8e84baf.entry.js} +1 -1
- package/lib/duet/{p-24df277b.system.entry.js → p-cc7f44f9.system.entry.js} +1 -1
- package/lib/duet/{p-9af0bc52.system.entry.js → p-cf9027e3.system.entry.js} +1 -1
- package/lib/duet/{p-05737119.system.entry.js → p-d2a55128.system.entry.js} +1 -1
- package/lib/duet/{p-5a996bf9.entry.js → p-d4a24199.entry.js} +1 -1
- package/lib/duet/{p-a4bec573.entry.js → p-d50688a8.entry.js} +1 -1
- package/lib/duet/p-d8ae3650.system.entry.js +4 -0
- package/lib/duet/{p-65ee3b0a.system.entry.js → p-db2cfc87.system.entry.js} +1 -1
- package/lib/duet/{p-45695a2f.system.entry.js → p-db9db173.system.entry.js} +1 -1
- package/lib/duet/{p-cc2dcefa.js → p-dc6fd9c6.js} +1 -1
- package/lib/duet/{p-ae11885c.system.entry.js → p-e13a54c8.system.entry.js} +1 -1
- package/lib/duet/{p-53e9db65.entry.js → p-e19ba091.entry.js} +1 -1
- package/lib/duet/p-e2adbecc.entry.js +4 -0
- package/lib/duet/{p-adf1ecbf.system.entry.js → p-e4c320e2.system.entry.js} +1 -1
- package/lib/duet/{p-0285b819.system.entry.js → p-e86917b0.system.entry.js} +1 -1
- package/lib/duet/{p-995aaa93.system.entry.js → p-f01eb4ea.system.entry.js} +1 -1
- package/lib/duet/{p-da33b001.entry.js → p-f493ae81.entry.js} +1 -1
- package/lib/duet/{p-5c0b7a57.system.entry.js → p-f6240801.system.entry.js} +1 -1
- package/lib/duet/{p-d02af930.entry.js → p-f827b4b6.entry.js} +1 -1
- package/lib/duet/{p-16ce8d7a.entry.js → p-fb97dc52.entry.js} +1 -1
- package/lib/duet/{p-fe1b83c8.entry.js → p-fd1ed521.entry.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +1 -1
- 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 +2 -2
- package/lib/esm/duet-caption_4.entry.js +1 -1
- package/lib/esm/duet-card.entry.js +1 -1
- package/lib/esm/duet-checkbox.entry.js +6 -2
- package/lib/esm/duet-choice_2.entry.js +8 -6
- package/lib/esm/duet-collapsible.entry.js +1 -1
- 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 +4 -3
- 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 +1 -1
- package/lib/esm/duet-header_2.entry.js +1 -1
- package/lib/esm/duet-hero.entry.js +1 -1
- package/lib/esm/duet-icon.entry.js +1 -1
- package/lib/esm/duet-input_2.entry.js +1 -1
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +1 -1
- package/lib/esm/duet-modal.entry.js +2 -2
- package/lib/esm/duet-multiselect.entry.js +220 -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 +1 -1
- package/lib/esm/duet-scrollable_3.entry.js +1 -1
- 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-tooltip.entry.js +1 -1
- 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 +2 -2
- package/lib/esm/{focus-utils-d7f2dd58.js → focus-utils-f6146965.js} +1 -1
- package/lib/esm/{index-5528c321.js → index-81967d12.js} +1 -1
- package/lib/esm/loader.js +2 -2
- 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 +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 +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 +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-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.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-select.entry.js +1 -1
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +2 -2
- package/lib/esm-es5/duet-toggle.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-d7f2dd58.js → focus-utils-f6146965.js} +1 -1
- package/lib/esm-es5/{index-5528c321.js → index-81967d12.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/types/components/duet-checkbox/duet-checkbox.d.ts +4 -0
- package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +1 -0
- package/lib/types/components/duet-multiselect/duet-multiselect.d.ts +137 -0
- package/lib/types/components.d.ts +154 -0
- package/package.json +8 -7
- package/lib/duet/p-1bd40aae.entry.js +0 -4
- package/lib/duet/p-45d3e7f3.system.entry.js +0 -4
- package/lib/duet/p-bee31561.system.js +0 -4
- package/lib/duet/p-c6a32c19.entry.js +0 -4
- package/lib/duet/p-e79e0c89.entry.js +0 -4
- package/lib/duet/p-ef8288aa.system.entry.js +0 -4
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
|
|
@@ -37,6 +37,10 @@ const DuetCheckbox = class {
|
|
|
37
37
|
* Aria description the button
|
|
38
38
|
*/
|
|
39
39
|
this.accessibleDescription = undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Aria selected
|
|
42
|
+
*/
|
|
43
|
+
this.accessibleSelected = undefined;
|
|
40
44
|
/**
|
|
41
45
|
* Set whether the input is required or not. Please note that this is required for
|
|
42
46
|
* accessible inputs when the user is required to fill them. When using this property
|
|
@@ -120,7 +124,7 @@ const DuetCheckbox = class {
|
|
|
120
124
|
"duet-checkbox-container": true,
|
|
121
125
|
"duet-label-hidden": this.labelHidden,
|
|
122
126
|
"duet-theme-turva": this.theme === "turva",
|
|
123
|
-
} }, index.h("input", { ref: input => (this.nativeInput = input), type: "checkbox", onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, value: this.value, class: { "duet-checkbox": true, disabled: this.disabled }, checked: this.checked, disabled: this.disabled, tabindex: this.accessibleIndex, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, required: this.required, role: this.role, name: this.name, id: identifier }), index.h("label", { class: "duet-label", htmlFor: identifier }, index.h("span", null, this.label)))));
|
|
127
|
+
} }, index.h("input", { ref: input => (this.nativeInput = input), type: "checkbox", onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, value: this.value, class: { "duet-checkbox": true, disabled: this.disabled }, checked: this.checked, disabled: this.disabled, tabindex: this.accessibleIndex, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-selected": this.accessibleSelected, required: this.required, role: this.role, name: this.name, id: identifier }), index.h("label", { class: "duet-label", htmlFor: identifier }, index.h("span", null, this.label)))));
|
|
124
128
|
}
|
|
125
129
|
get element() { return index.getElement(this); }
|
|
126
130
|
};
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const commonStrings = require('./common-strings-de17f887.js');
|
|
11
11
|
const createId = require('./create-id-c3b984b1.js');
|
|
12
|
-
const focusUtils = require('./focus-utils-
|
|
12
|
+
const focusUtils = require('./focus-utils-5bf92cc0.js');
|
|
13
13
|
const keyboardUtils = require('./keyboard-utils-bb32119b.js');
|
|
14
14
|
const languageUtils = require('./language-utils-4f62a7db.js');
|
|
15
15
|
const watchOptions = require('./watch-options-d88afac0.js');
|
|
@@ -22,7 +22,7 @@ const duetChoiceCss = "*.sc-duet-choice,*.sc-duet-choice::after,*.sc-duet-choice
|
|
|
22
22
|
const DuetChoice = class {
|
|
23
23
|
constructor(hostRef) {
|
|
24
24
|
index.registerInstance(this, hostRef);
|
|
25
|
-
this.duetChange = index.createEvent(this, "duetChange",
|
|
25
|
+
this.duetChange = index.createEvent(this, "duetChange", 7);
|
|
26
26
|
this.duetFocus = index.createEvent(this, "duetFocus", 7);
|
|
27
27
|
this.duetBlur = index.createEvent(this, "duetBlur", 7);
|
|
28
28
|
this.hasHeader = false;
|
|
@@ -371,6 +371,9 @@ const DuetChoiceGroup = class {
|
|
|
371
371
|
this.getChoices = () => {
|
|
372
372
|
return Array.from(this.element.querySelectorAll(duetChoiceSelector));
|
|
373
373
|
};
|
|
374
|
+
this.isMyChoice = (choice) => {
|
|
375
|
+
return this.getChoices().includes(choice);
|
|
376
|
+
};
|
|
374
377
|
/**
|
|
375
378
|
* Component event handling.
|
|
376
379
|
*/
|
|
@@ -379,7 +382,7 @@ const DuetChoiceGroup = class {
|
|
|
379
382
|
return;
|
|
380
383
|
}
|
|
381
384
|
const selectedChoice = ev.target;
|
|
382
|
-
if (selectedChoice &&
|
|
385
|
+
if (selectedChoice && this.isMyChoice(selectedChoice)) {
|
|
383
386
|
this.value = selectedChoice.value;
|
|
384
387
|
}
|
|
385
388
|
// Prevent events from bubbling up the DOM tree in case
|
|
@@ -404,8 +407,7 @@ const DuetChoiceGroup = class {
|
|
|
404
407
|
this.mutationO = watchOptions.watchForOptions(el, duetChoiceSelector, newOption => {
|
|
405
408
|
if (newOption !== undefined) {
|
|
406
409
|
newOption.componentOnReady().then(() => {
|
|
407
|
-
|
|
408
|
-
if (choices.includes(newOption)) {
|
|
410
|
+
if (this.isMyChoice(newOption)) {
|
|
409
411
|
this.value = newOption.value;
|
|
410
412
|
}
|
|
411
413
|
});
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const actionArrowDownSmall = require('./action-arrow-down-small-ef77a2d1.js');
|
|
10
10
|
const tokens = require('./tokens-4c69b122.js');
|
|
11
11
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const jsUtils = require('./js-utils-134e0318.js');
|
|
11
11
|
const keyboardUtils = require('./keyboard-utils-bb32119b.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
|
|
11
11
|
const duetCookieConsentCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:fixed;right:0;bottom:0;left:0;z-index:950;display:block;width:100%;box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}@media (min-width: 48em){:host{right:28px;bottom:28px;left:auto;width:25rem}}:host(:focus){outline:0}:host(.user-is-tabbing:focus){border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing.duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-cookie-consent{padding:20px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;color:white !important;background-color:rgba(0, 21, 39, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent{background:rgba(0, 21, 39, 0.8);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}.duet-cookie-consent.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";background-color:rgba(12, 14, 29, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent.duet-theme-turva{background:rgba(12, 14, 29, 0.8)}}@media (min-width: 48em){.duet-cookie-consent{padding:20px;border-radius:4px}}.duet-cookie-consent-content{display:flex;align-items:center;max-width:1110px;margin:0 auto}.duet-cookie-consent-content .expand{flex:1}::slotted(a){font-weight:600;color:white !important;text-decoration:underline;white-space:nowrap}::slotted(a[target=_blank]){padding-right:16px;background:url(\"data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjUgMmExLjUgMS41IDAgMDEuMTQgM0gzLjc1Yy0uMzggMC0uNy4yOC0uNzQuNjVsLS4wMS4xdjE0LjVjMCAuMzguMjguNy42NS43NGwuMS4wMWgxNC41Yy4zOCAwIC43LS4yOC43NC0uNjVsLjAxLS4xdi02Ljg5YTEuNSAxLjUgMCAwMTMgMHY2Ljg5QTMuNzUgMy43NSAwIDAxMTguMjUgMjRIMy43NUEzLjc1IDMuNzUgMCAwMTAgMjAuMjVWNS43NUEzLjc1IDMuNzUgMCAwMTMuNzUgMnptMTItMmMuNzggMCAxLjQyLjYgMS41IDEuMzZWNy41YTEuNSAxLjUgMCAwMS0zIC4xNFY1LjEybC01LjQ0IDUuNDRhMS41IDEuNSAwIDAxLTIuMjItMmwuMS0uMTJMMTguODggM0gxNi41QTEuNSAxLjUgMCAwMTE1IDEuNjRWMS41YzAtLjc4LjYtMS40MiAxLjM2LTEuNWguMTR6Ii8+PC9zdmc+\") no-repeat right 50%;background-size:12px 10px}::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva ::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}";
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
|
-
const focusUtils = require('./focus-utils-
|
|
11
|
+
const focusUtils = require('./focus-utils-5bf92cc0.js');
|
|
12
12
|
const languageUtils = require('./language-utils-4f62a7db.js');
|
|
13
13
|
require('./string-utils-5cadd058.js');
|
|
14
14
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
|
|
11
11
|
const duetDividerCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-divider{-webkit-user-select:none;user-select:none;display:block;width:100%;height:1px;margin-top:36px !important;margin-bottom:28px;background:#e1e3e6}.duet-divider.duet-p-0{padding:0 !important}.duet-divider.duet-m-0{margin:0 !important}.duet-divider.duet-m-s{margin-bottom:16px !important;margin-top:0 !important}.duet-divider.duet-theme-turva{background:#e4e4e6}";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const jsUtils = require('./js-utils-134e0318.js');
|
|
11
11
|
const keyboardUtils = require('./keyboard-utils-bb32119b.js');
|
|
@@ -176,7 +176,8 @@ const DuetEditableTable = class {
|
|
|
176
176
|
"duet-table-action-header": !!this.actions,
|
|
177
177
|
} }, sortedColumns.map(column => {
|
|
178
178
|
if (column.display !== false) {
|
|
179
|
-
|
|
179
|
+
const label = this.createLabel(column);
|
|
180
|
+
return label !== "" ? index.h("th", { scope: "col" }, label) : index.h("td", null);
|
|
180
181
|
}
|
|
181
182
|
}), this.actions && (index.h("th", { scope: "col", class: "duet-table-action-header-heading" }, this.actions && index.h("duet-visually-hidden", null, languageUtils.getLocaleString(this.actionColumnLabel))))));
|
|
182
183
|
}
|
|
@@ -1546,7 +1547,7 @@ const DuetUpload = class {
|
|
|
1546
1547
|
this.nativeInput = input;
|
|
1547
1548
|
}, accept: !this.limitSelection ? undefined : `${this.allowedMimetypes},${this.allowedExtensions}`, onBlur: this.onBlur, onFocus: this.onFocus, onChange: e => this.onChange(e), type: "file", class: {
|
|
1548
1549
|
"duet-upload": true,
|
|
1549
|
-
}, disabled: this.disabled, "aria-hidden": "true", required: this.required, name: this.name, id: this.identifier, multiple: this.multiple
|
|
1550
|
+
}, disabled: this.disabled, "aria-hidden": "true", required: this.required, name: this.name, id: this.identifier, multiple: this.multiple })))));
|
|
1550
1551
|
}
|
|
1551
1552
|
/**
|
|
1552
1553
|
* XHR request utilities
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
|
|
11
11
|
const duetEmptyStateCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;height:100%}.duet-empty-state{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%;padding:48px;color:#00294d;text-align:center;background:#f5f8fa;border-radius:4px}.duet-empty-state.duet-theme-turva{color:#171c3a;background:#f5f5f7}";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const actionNewWindowSmall = require('./action-new-window-small-fa51dfb9.js');
|
|
10
10
|
const commonStrings = require('./common-strings-de17f887.js');
|
|
11
11
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const tokens = require('./tokens-4c69b122.js');
|
|
10
10
|
const watchOptions = require('./watch-options-d88afac0.js');
|
|
11
11
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const formSearch = require('./form-search-d61b2843.js');
|
|
10
10
|
const tokens = require('./tokens-4c69b122.js');
|
|
11
11
|
const bodyScrollLock_es6 = require('./bodyScrollLock.es6-6ef1142a.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const actionNewWindowSmall = require('./action-new-window-small-fa51dfb9.js');
|
|
10
10
|
const commonStrings = require('./common-strings-de17f887.js');
|
|
11
11
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const tokenUtils = require('./token-utils-f6e2f4ef.js');
|
|
11
11
|
require('./tokens.module-1bb2d45e.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const formSearch = require('./form-search-d61b2843.js');
|
|
10
10
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
11
11
|
const createId = require('./create-id-c3b984b1.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const isInternetExplorer = require('./is-internet-explorer-91361c56.js');
|
|
10
10
|
|
|
11
11
|
const duetLayoutCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;flex:1 0 auto;width:100%}:host(.duet-middle){display:flex}:host(.duet-middle) .duet-layout{padding:36px 28px !important}@media (min-width: 36em){:host(.duet-middle) .duet-layout{padding:48px 36px !important}}@media (min-width: 62em){:host(.duet-middle) .duet-layout{padding:56px !important}}:host(.duet-ie){height:100%}:host(.duet-middle.duet-ie){height:auto}.duet-layout{position:relative;padding:0 16px;margin:48px auto 36px}@media (min-width: 36em){.duet-layout{margin-top:72px}}.duet-layout.duet-layout-has-top{margin-top:0}.duet-layout.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout.duet-center{display:flex;align-items:center;justify-content:center;width:100%;max-width:888px}@media (min-width: 36em){.duet-layout.duet-center{padding:0 48px}}@media (min-width: 48em){.duet-layout.duet-center{padding:0 72px}}@media (min-width: 62em){.duet-layout.duet-center{width:100%}}@media (min-width: 36em){.duet-layout{padding:0 28px}}@media (min-width: 62em){.duet-layout{display:flex;flex-direction:row;padding:0 56px;margin-bottom:48px}}@media (min-width: 76.25em){.duet-layout{max-width:1110px;padding:0}}.duet-main,.duet-sidebar,.duet-layout-top,.duet-layout-bottom{display:block;width:100%}.duet-layout-top{position:relative;display:block;width:100%;margin:72px auto 0}.duet-layout-top.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout-top .duet-layout-top-wrapper{padding:0 20px;margin:0 auto}@media (min-width: 36em){.duet-layout-top .duet-layout-top-wrapper{padding:0 28px}}@media (min-width: 62em){.duet-layout-top .duet-layout-top-wrapper{padding:0 56px}}@media (min-width: 76.25em){.duet-layout-top .duet-layout-top-wrapper{max-width:1110px;padding:0}}.duet-center .duet-layout-top-wrapper{max-width:888px}@media (min-width: 36em){.duet-center .duet-layout-top-wrapper{padding:0 48px}}@media (min-width: 48em){.duet-center .duet-layout-top-wrapper{padding:0 72px}}@media (min-width: 62em){.duet-main{min-width:600px;margin:0 auto}.has-sidebar .duet-main{max-width:734px;margin-right:20px}}@media (min-width: 62em){.duet-sidebar{min-width:256px;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container{width:auto;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container.has-tabs{margin-top:89px}}@media (min-width: 62em){.duet-sidebar-container.sticky{position:sticky}.duet-sidebar-container.sticky.with-links{top:calc(3rem + 20px)}.duet-sidebar-container.sticky.without-links{top:calc(4rem + 20px)}}";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const watchOptions = require('./watch-options-d88afac0.js');
|
|
11
11
|
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const bodyScrollLock_es6 = require('./bodyScrollLock.es6-6ef1142a.js');
|
|
10
10
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
11
11
|
const createId = require('./create-id-c3b984b1.js');
|
|
12
|
-
const focusUtils = require('./focus-utils-
|
|
12
|
+
const focusUtils = require('./focus-utils-5bf92cc0.js');
|
|
13
13
|
const keyboardUtils = require('./keyboard-utils-bb32119b.js');
|
|
14
14
|
const languageUtils = require('./language-utils-4f62a7db.js');
|
|
15
15
|
require('./string-utils-5cadd058.js');
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
|
+
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
|
+
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
|
+
const createId = require('./create-id-c3b984b1.js');
|
|
11
|
+
const keyboardUtils = require('./keyboard-utils-bb32119b.js');
|
|
12
|
+
const languageUtils = require('./language-utils-4f62a7db.js');
|
|
13
|
+
const stringUtils = require('./string-utils-5cadd058.js');
|
|
14
|
+
|
|
15
|
+
const duetMultiselectCss = "@charset \"UTF-8\";*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}.duet-multiselect-tooltip{position:absolute;top:12px;right:0}@media (min-width: 48em){.duet-multiselect-tooltip{position:relative;top:4px;right:auto}}.duet-multiselect-placeholder{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:white}.duet-multiselect-container{position:relative;width:100%}.duet-multiselect-wrapper{position:relative;width:100%;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 .duet-multiselect-wrapper{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-multiselect-wrapper::after{content:\" \"}.duet-multiselect{display:flex;gap:12px;align-items:center;justify-content:flex-start;width:100%;min-width:8rem;padding:12px 14px !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:#00294d;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background:white;border:1px solid #909599;border-radius:4px;transition:150ms ease}.duet-multiselect:hover{border-color:#909599;box-shadow:0 0 0 1px #909599}.duet-theme-turva .duet-multiselect:hover{border-color:#747475;box-shadow:0 0 0 1px #747475}.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #e02a0d}.duet-multiselect:focus,.duet-multiselect.duet-multiselect-active{border-color:#0077b3;outline:0;box-shadow:0 0 0 1px #0077b3;transition:none}.duet-theme-turva .duet-multiselect:focus,.duet-theme-turva .duet-multiselect.duet-multiselect-active{border-color:#171c3a;box-shadow:0 0 0 1px #171c3a}.has-error .duet-multiselect:focus,.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:focus,.duet-theme-turva.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #e02a0d}.duet-multiselect[disabled]{color:#00294d !important;cursor:default !important;background:#f5f8fa !important;border-color:#f5f8fa !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:#00294d !important}.duet-theme-turva .duet-multiselect[disabled]{color:#171c3a !important;background:#f5f5f7 !important;border-color:#f5f5f7 !important;-webkit-text-fill-color:#171c3a !important}.duet-multiselect>:first-child{flex:1}.duet-multiselect .duet-multiselect-badge{position:absolute;right:3rem}.has-error .duet-multiselect{border-color:#de2362 !important}.has-error .duet-multiselect .duet-multiselect-icon{color:#de2362 !important}.duet-theme-turva.has-error .duet-multiselect{border-color:#e02a0d !important}.duet-theme-turva.has-error .duet-multiselect .duet-multiselect-icon{color:#e02a0d !important}.duet-theme-turva .duet-multiselect{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#171c3a;border-color:#747475}.duet-multiselect svg{width:20px;height:20px;color:#00294d;pointer-events:none}.duet-theme-turva .duet-multiselect svg{color:#171c3a}.duet-multiselect svg.duet-multiselect-icon--rotate{transform:rotate(180deg)}.duet-multiselect-checkboxes{position:absolute;z-index:700;width:100%;padding:16px;margin:8px 0 0;visibility:hidden;background:white;border:1px solid #e1e3e6;border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}.duet-theme-turva .duet-multiselect-checkboxes{background:white;border-color:#e4e4e6;box-shadow:0 4px 10px 0 rgba(23, 28, 58, 0.15)}.duet-multiselect-checkboxes.duet-multiselect-checkboxes-active{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}.duet-multiselect-help{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:#657787;border-radius:4px}.duet-multiselect-help span{display:block;margin-top:8px}.duet-theme-turva .duet-multiselect-help{color:#747475}.has-error .duet-multiselect-help{color:#de2362}.duet-theme-turva.has-error .duet-multiselect-help{color:#e02a0d}.duet-label-hidden duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}";
|
|
16
|
+
|
|
17
|
+
function toggleInArray(arr, item) {
|
|
18
|
+
return arr.includes(item) ? arr.filter(i => i !== item) : [...arr, item];
|
|
19
|
+
}
|
|
20
|
+
const DuetMultiselect = class {
|
|
21
|
+
constructor(hostRef) {
|
|
22
|
+
index.registerInstance(this, hostRef);
|
|
23
|
+
this.duetChange = index.createEvent(this, "duetChange", 3);
|
|
24
|
+
this.duetFocus = index.createEvent(this, "duetFocus", 7);
|
|
25
|
+
this.duetBlur = index.createEvent(this, "duetBlur", 7);
|
|
26
|
+
/**
|
|
27
|
+
* Own Properties
|
|
28
|
+
*/
|
|
29
|
+
this.errorId = createId.createID("DuetError");
|
|
30
|
+
this.labelId = createId.createID("DuetLabel");
|
|
31
|
+
this.topCaptionId = createId.createID("DuetCaptionTop");
|
|
32
|
+
this.selectedLangObject = {
|
|
33
|
+
en: "selected",
|
|
34
|
+
fi: "valittu",
|
|
35
|
+
sv: "vald",
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* State() variables
|
|
39
|
+
* Inlined decorator, alphabetical order.
|
|
40
|
+
*/
|
|
41
|
+
this.processedItems = [];
|
|
42
|
+
this.checkboxesVisible = false;
|
|
43
|
+
this.activeDescendant = "";
|
|
44
|
+
/**
|
|
45
|
+
* Controls the margin of the component.
|
|
46
|
+
*/
|
|
47
|
+
this.margin = "auto";
|
|
48
|
+
/**
|
|
49
|
+
* Display the select in error state along with an error message.
|
|
50
|
+
*/
|
|
51
|
+
this.error = "";
|
|
52
|
+
/**
|
|
53
|
+
* Expands the input to fill 100% of the container width.
|
|
54
|
+
*/
|
|
55
|
+
this.expand = false;
|
|
56
|
+
/**
|
|
57
|
+
* Value of multiselect
|
|
58
|
+
*/
|
|
59
|
+
this.value = [];
|
|
60
|
+
/**
|
|
61
|
+
* Theme of the select.
|
|
62
|
+
*/
|
|
63
|
+
this.theme = "";
|
|
64
|
+
/**
|
|
65
|
+
* Visually hide the label, but still show it to screen readers.
|
|
66
|
+
*/
|
|
67
|
+
this.labelHidden = false;
|
|
68
|
+
/**
|
|
69
|
+
* Adds a unique identifier for the select.
|
|
70
|
+
*/
|
|
71
|
+
this.identifier = createId.createID("DuetMultiselect");
|
|
72
|
+
/**
|
|
73
|
+
* Hint text to display.
|
|
74
|
+
*/
|
|
75
|
+
this.placeholder = "";
|
|
76
|
+
/**
|
|
77
|
+
* Makes the select component disabled. This prevents users from being able
|
|
78
|
+
* to interact with the select, and conveys its inactive state to assistive
|
|
79
|
+
* technologies.
|
|
80
|
+
*/
|
|
81
|
+
this.disabled = false;
|
|
82
|
+
/**
|
|
83
|
+
* Label for the select.
|
|
84
|
+
*/
|
|
85
|
+
this.label = "label";
|
|
86
|
+
/**
|
|
87
|
+
* Tooltip to display next to the label of the input.
|
|
88
|
+
*/
|
|
89
|
+
this.tooltip = "";
|
|
90
|
+
/**
|
|
91
|
+
* With direction setting you can force the tooltip to always open towards left
|
|
92
|
+
* or right instead of automatically determining the direction.
|
|
93
|
+
*/
|
|
94
|
+
this.tooltipDirection = "auto";
|
|
95
|
+
/**
|
|
96
|
+
* Component event handling.
|
|
97
|
+
*/
|
|
98
|
+
this.onClick = (ev) => {
|
|
99
|
+
ev.stopPropagation();
|
|
100
|
+
};
|
|
101
|
+
this.onChange = (ev) => {
|
|
102
|
+
this.duetChange.emit({
|
|
103
|
+
originalEvent: ev,
|
|
104
|
+
value: this.value,
|
|
105
|
+
component: "duet-multiselect",
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
this.onBlur = (ev) => {
|
|
109
|
+
this.duetBlur.emit({
|
|
110
|
+
originalEvent: ev,
|
|
111
|
+
value: this.value,
|
|
112
|
+
component: "duet-multiselect",
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
this.onFocus = (ev) => {
|
|
116
|
+
this.duetFocus.emit({
|
|
117
|
+
originalEvent: ev,
|
|
118
|
+
value: this.value,
|
|
119
|
+
component: "duet-multiselect",
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
this.onMultiselectKeyDown = (e) => {
|
|
123
|
+
if (keyboardUtils.isEscapeKey(e) || keyboardUtils.isTabKey(e)) {
|
|
124
|
+
if (this.checkboxesVisible) {
|
|
125
|
+
this.checkboxesVisible = false;
|
|
126
|
+
this.multiselectElement.focus();
|
|
127
|
+
e.preventDefault();
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
this.onMultiselectInputKeyDown = (e) => {
|
|
132
|
+
if (keyboardUtils.isEnterKey(e)) {
|
|
133
|
+
e.preventDefault();
|
|
134
|
+
this.toggleCheckboxes();
|
|
135
|
+
setTimeout(() => {
|
|
136
|
+
if (this.checkboxesVisible) {
|
|
137
|
+
const firstOption = this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(0)}`);
|
|
138
|
+
if (firstOption) {
|
|
139
|
+
firstOption.focus();
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}, 200);
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
this.onCheckboxKeyDown = (e, key) => {
|
|
146
|
+
let nextOption;
|
|
147
|
+
if (keyboardUtils.isArrowLeftKey(e) || keyboardUtils.isArrowUpKey(e)) {
|
|
148
|
+
nextOption = this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(key - 1)}`);
|
|
149
|
+
}
|
|
150
|
+
else if (keyboardUtils.isArrowRightKey(e) || keyboardUtils.isArrowDownKey(e)) {
|
|
151
|
+
nextOption = this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(key + 1)}`);
|
|
152
|
+
}
|
|
153
|
+
if (nextOption) {
|
|
154
|
+
nextOption.focus();
|
|
155
|
+
e.preventDefault();
|
|
156
|
+
this.activeDescendant = nextOption.id;
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
this.toggleCheckboxes = () => {
|
|
160
|
+
this.checkboxesVisible = !this.checkboxesVisible;
|
|
161
|
+
};
|
|
162
|
+
this.toggleCheckbox = (e, item) => {
|
|
163
|
+
this.value = toggleInArray(this.value, item);
|
|
164
|
+
this.onChange(e);
|
|
165
|
+
};
|
|
166
|
+
this.getOptionIdentifier = (key) => {
|
|
167
|
+
return `${this.identifier}-option-${key}`;
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Component lifecycle events.
|
|
172
|
+
*/
|
|
173
|
+
componentWillLoad() {
|
|
174
|
+
themeableComponent.inheritGlobalTheme(this);
|
|
175
|
+
this.isCaptionVisible = !!this.caption;
|
|
176
|
+
this.refresh();
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Sets focus on the specified `duet-multiselect`. Use this method instead of the global
|
|
180
|
+
* `multiselect.focus()`.
|
|
181
|
+
*/
|
|
182
|
+
async setFocus(options) {
|
|
183
|
+
if (this.multiselectElement) {
|
|
184
|
+
this.multiselectElement.focus(options);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Local methods.
|
|
189
|
+
*/
|
|
190
|
+
async refresh() {
|
|
191
|
+
this.processedItems = stringUtils.parsePossibleJSON(this.items);
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* render() function
|
|
195
|
+
* Always the last one in the class.
|
|
196
|
+
*/
|
|
197
|
+
render() {
|
|
198
|
+
const selectedTranslation = languageUtils.getLocaleString(this.selectedLangObject);
|
|
199
|
+
return (index.h(index.Host, { onClick: this.onClick, class: {
|
|
200
|
+
"duet-m-0": this.margin === "none",
|
|
201
|
+
"duet-expand": this.expand,
|
|
202
|
+
} }, index.h("div", { class: {
|
|
203
|
+
"duet-multiselect-container": true,
|
|
204
|
+
"duet-label-hidden": this.labelHidden,
|
|
205
|
+
"duet-theme-turva": this.theme === "turva",
|
|
206
|
+
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
207
|
+
"has-error": !!this.error,
|
|
208
|
+
}, onKeyDown: (e) => this.onMultiselectKeyDown(e) }, index.h("duet-label", { theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, id: this.labelId, for: this.identifier }, this.label), this.tooltip && (index.h("duet-tooltip", { class: "duet-multiselect-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), this.caption && (index.h("duet-caption", { id: this.topCaptionId, size: "medium" }, this.caption)), index.h("div", { class: "duet-multiselect-wrapper" }, index.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 }, index.h("span", { role: "textbox", "aria-readonly": "true", "aria-multiline": "false", "aria-autocomplete": "none", "aria-controls": `${this.identifier}-checkboxes` }, this.placeholder), this.value && this.value.length > 0 && (index.h("duet-badge", { class: "duet-multiselect-badge", margin: "none", theme: this.theme }, this.value.length, " ", selectedTranslation, index.h("duet-visually-hidden", null, ", ", this.value.map(item => item.label).join(", ")))), index.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" }, index.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" }))), index.h("div", { id: `${this.identifier}-checkboxes`, role: "listbox", class: {
|
|
209
|
+
"duet-multiselect-checkboxes": true,
|
|
210
|
+
"duet-multiselect-checkboxes-active": this.checkboxesVisible,
|
|
211
|
+
}, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, this.processedItems &&
|
|
212
|
+
this.processedItems.map((item, key) => {
|
|
213
|
+
var _a, _b;
|
|
214
|
+
return (index.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 }));
|
|
215
|
+
}))), index.h("span", { class: "duet-multiselect-help", id: this.errorId, "aria-live": "assertive", "aria-relevant": "additions removals" }, this.error && index.h("span", null, this.error)))));
|
|
216
|
+
}
|
|
217
|
+
get element() { return index.getElement(this); }
|
|
218
|
+
static get watchers() { return {
|
|
219
|
+
"items": ["refresh"]
|
|
220
|
+
}; }
|
|
221
|
+
};
|
|
222
|
+
DuetMultiselect.style = duetMultiselectCss;
|
|
223
|
+
|
|
224
|
+
exports.duet_multiselect = DuetMultiselect;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const languageUtils = require('./language-utils-4f62a7db.js');
|
|
11
11
|
const actionArrowDownSmall = require('./action-arrow-down-small-ef77a2d1.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const keyboardUtils = require('./keyboard-utils-bb32119b.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const jsUtils = require('./js-utils-134e0318.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const languageUtils = require('./language-utils-4f62a7db.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const watchOptions = require('./watch-options-d88afac0.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const tokens_module = require('./tokens.module-1bb2d45e.js');
|
|
10
10
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
11
11
|
const createId = require('./create-id-c3b984b1.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const languageUtils = require('./language-utils-4f62a7db.js');
|
|
11
11
|
const createId = require('./create-id-c3b984b1.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const stringUtils = require('./string-utils-5cadd058.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const keyboardUtils = require('./keyboard-utils-bb32119b.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-d380d72b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const inputUtils = require('./input-utils-b5e8f524.js');
|