@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
|
@@ -0,0 +1,597 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Element, Event, h, Host, 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.onClick = (ev) => {
|
|
88
|
+
ev.stopPropagation();
|
|
89
|
+
};
|
|
90
|
+
this.onChange = (ev) => {
|
|
91
|
+
this.duetChange.emit({
|
|
92
|
+
originalEvent: ev,
|
|
93
|
+
value: this.value,
|
|
94
|
+
component: "duet-multiselect",
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
this.onBlur = (ev) => {
|
|
98
|
+
this.duetBlur.emit({
|
|
99
|
+
originalEvent: ev,
|
|
100
|
+
value: this.value,
|
|
101
|
+
component: "duet-multiselect",
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
this.onFocus = (ev) => {
|
|
105
|
+
this.duetFocus.emit({
|
|
106
|
+
originalEvent: ev,
|
|
107
|
+
value: this.value,
|
|
108
|
+
component: "duet-multiselect",
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
this.onMultiselectKeyDown = (e) => {
|
|
112
|
+
if (isEscapeKey(e) || isTabKey(e)) {
|
|
113
|
+
if (this.checkboxesVisible) {
|
|
114
|
+
this.checkboxesVisible = false;
|
|
115
|
+
this.multiselectElement.focus();
|
|
116
|
+
e.preventDefault();
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
this.onMultiselectInputKeyDown = (e) => {
|
|
121
|
+
if (isEnterKey(e)) {
|
|
122
|
+
e.preventDefault();
|
|
123
|
+
this.toggleCheckboxes();
|
|
124
|
+
setTimeout(() => {
|
|
125
|
+
if (this.checkboxesVisible) {
|
|
126
|
+
const firstOption = this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(0)}`);
|
|
127
|
+
if (firstOption) {
|
|
128
|
+
firstOption.focus();
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}, 200);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
this.onCheckboxKeyDown = (e, key) => {
|
|
135
|
+
let nextOption;
|
|
136
|
+
if (isArrowLeftKey(e) || isArrowUpKey(e)) {
|
|
137
|
+
nextOption = this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(key - 1)}`);
|
|
138
|
+
}
|
|
139
|
+
else if (isArrowRightKey(e) || isArrowDownKey(e)) {
|
|
140
|
+
nextOption = this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(key + 1)}`);
|
|
141
|
+
}
|
|
142
|
+
if (nextOption) {
|
|
143
|
+
nextOption.focus();
|
|
144
|
+
e.preventDefault();
|
|
145
|
+
this.activeDescendant = nextOption.id;
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
this.toggleCheckboxes = () => {
|
|
149
|
+
this.checkboxesVisible = !this.checkboxesVisible;
|
|
150
|
+
};
|
|
151
|
+
this.toggleCheckbox = (e, item) => {
|
|
152
|
+
this.value = toggleInArray(this.value, item);
|
|
153
|
+
this.onChange(e);
|
|
154
|
+
};
|
|
155
|
+
this.getOptionIdentifier = (key) => {
|
|
156
|
+
return `${this.identifier}-option-${key}`;
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Component lifecycle events.
|
|
161
|
+
*/
|
|
162
|
+
componentWillLoad() {
|
|
163
|
+
inheritGlobalTheme(this);
|
|
164
|
+
this.isCaptionVisible = !!this.caption;
|
|
165
|
+
this.refresh();
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Sets focus on the specified `duet-multiselect`. Use this method instead of the global
|
|
169
|
+
* `multiselect.focus()`.
|
|
170
|
+
*/
|
|
171
|
+
async setFocus(options) {
|
|
172
|
+
if (this.multiselectElement) {
|
|
173
|
+
this.multiselectElement.focus(options);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Local methods.
|
|
178
|
+
*/
|
|
179
|
+
async refresh() {
|
|
180
|
+
this.processedItems = parsePossibleJSON(this.items);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* render() function
|
|
184
|
+
* Always the last one in the class.
|
|
185
|
+
*/
|
|
186
|
+
render() {
|
|
187
|
+
const selectedTranslation = getLocaleString(this.selectedLangObject);
|
|
188
|
+
return (h(Host, { onClick: this.onClick, class: {
|
|
189
|
+
"duet-m-0": this.margin === "none",
|
|
190
|
+
"duet-expand": this.expand,
|
|
191
|
+
} },
|
|
192
|
+
h("div", { class: {
|
|
193
|
+
"duet-multiselect-container": true,
|
|
194
|
+
"duet-label-hidden": this.labelHidden,
|
|
195
|
+
"duet-theme-turva": this.theme === "turva",
|
|
196
|
+
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
197
|
+
"has-error": !!this.error,
|
|
198
|
+
}, onKeyDown: (e) => this.onMultiselectKeyDown(e) },
|
|
199
|
+
h("duet-label", { theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, id: this.labelId, for: this.identifier }, this.label),
|
|
200
|
+
this.tooltip && (h("duet-tooltip", { class: "duet-multiselect-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)),
|
|
201
|
+
this.caption && (h("duet-caption", { id: this.topCaptionId, size: "medium" }, this.caption)),
|
|
202
|
+
h("div", { class: "duet-multiselect-wrapper" },
|
|
203
|
+
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 },
|
|
204
|
+
h("span", { role: "textbox", "aria-readonly": "true", "aria-multiline": "false", "aria-autocomplete": "none", "aria-controls": `${this.identifier}-checkboxes` }, this.placeholder),
|
|
205
|
+
this.value && this.value.length > 0 && (h("duet-badge", { class: "duet-multiselect-badge", margin: "none", theme: this.theme },
|
|
206
|
+
this.value.length,
|
|
207
|
+
" ",
|
|
208
|
+
selectedTranslation,
|
|
209
|
+
h("duet-visually-hidden", null,
|
|
210
|
+
", ",
|
|
211
|
+
this.value.map(item => item.label).join(", ")))),
|
|
212
|
+
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" },
|
|
213
|
+
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" }))),
|
|
214
|
+
h("div", { id: `${this.identifier}-checkboxes`, role: "listbox", class: {
|
|
215
|
+
"duet-multiselect-checkboxes": true,
|
|
216
|
+
"duet-multiselect-checkboxes-active": this.checkboxesVisible,
|
|
217
|
+
}, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, this.processedItems &&
|
|
218
|
+
this.processedItems.map((item, key) => {
|
|
219
|
+
var _a, _b;
|
|
220
|
+
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 }));
|
|
221
|
+
}))),
|
|
222
|
+
h("span", { class: "duet-multiselect-help", id: this.errorId, "aria-live": "assertive", "aria-relevant": "additions removals" }, this.error && h("span", null, this.error)))));
|
|
223
|
+
}
|
|
224
|
+
static get is() { return "duet-multiselect"; }
|
|
225
|
+
static get encapsulation() { return "shadow"; }
|
|
226
|
+
static get originalStyleUrls() { return {
|
|
227
|
+
"$": ["duet-multiselect.scss"]
|
|
228
|
+
}; }
|
|
229
|
+
static get styleUrls() { return {
|
|
230
|
+
"$": ["duet-multiselect.css"]
|
|
231
|
+
}; }
|
|
232
|
+
static get properties() { return {
|
|
233
|
+
"margin": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"mutable": false,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "DuetMargin",
|
|
238
|
+
"resolved": "\"auto\" | \"none\"",
|
|
239
|
+
"references": {
|
|
240
|
+
"DuetMargin": {
|
|
241
|
+
"location": "import",
|
|
242
|
+
"path": "../../common-types"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"required": false,
|
|
247
|
+
"optional": false,
|
|
248
|
+
"docs": {
|
|
249
|
+
"tags": [],
|
|
250
|
+
"text": "Controls the margin of the component."
|
|
251
|
+
},
|
|
252
|
+
"attribute": "margin",
|
|
253
|
+
"reflect": false,
|
|
254
|
+
"defaultValue": "\"auto\""
|
|
255
|
+
},
|
|
256
|
+
"error": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"mutable": false,
|
|
259
|
+
"complexType": {
|
|
260
|
+
"original": "string",
|
|
261
|
+
"resolved": "string",
|
|
262
|
+
"references": {}
|
|
263
|
+
},
|
|
264
|
+
"required": false,
|
|
265
|
+
"optional": false,
|
|
266
|
+
"docs": {
|
|
267
|
+
"tags": [],
|
|
268
|
+
"text": "Display the select in error state along with an error message."
|
|
269
|
+
},
|
|
270
|
+
"attribute": "error",
|
|
271
|
+
"reflect": false,
|
|
272
|
+
"defaultValue": "\"\""
|
|
273
|
+
},
|
|
274
|
+
"expand": {
|
|
275
|
+
"type": "boolean",
|
|
276
|
+
"mutable": false,
|
|
277
|
+
"complexType": {
|
|
278
|
+
"original": "boolean",
|
|
279
|
+
"resolved": "boolean",
|
|
280
|
+
"references": {}
|
|
281
|
+
},
|
|
282
|
+
"required": false,
|
|
283
|
+
"optional": false,
|
|
284
|
+
"docs": {
|
|
285
|
+
"tags": [],
|
|
286
|
+
"text": "Expands the input to fill 100% of the container width."
|
|
287
|
+
},
|
|
288
|
+
"attribute": "expand",
|
|
289
|
+
"reflect": false,
|
|
290
|
+
"defaultValue": "false"
|
|
291
|
+
},
|
|
292
|
+
"value": {
|
|
293
|
+
"type": "unknown",
|
|
294
|
+
"mutable": true,
|
|
295
|
+
"complexType": {
|
|
296
|
+
"original": "DuetMultiselectItem[]",
|
|
297
|
+
"resolved": "DuetMultiselectItem[]",
|
|
298
|
+
"references": {
|
|
299
|
+
"DuetMultiselectItem": {
|
|
300
|
+
"location": "local"
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"required": false,
|
|
305
|
+
"optional": false,
|
|
306
|
+
"docs": {
|
|
307
|
+
"tags": [],
|
|
308
|
+
"text": "Value of multiselect"
|
|
309
|
+
},
|
|
310
|
+
"defaultValue": "[]"
|
|
311
|
+
},
|
|
312
|
+
"theme": {
|
|
313
|
+
"type": "string",
|
|
314
|
+
"mutable": true,
|
|
315
|
+
"complexType": {
|
|
316
|
+
"original": "DuetTheme",
|
|
317
|
+
"resolved": "\"\" | \"default\" | \"turva\"",
|
|
318
|
+
"references": {
|
|
319
|
+
"DuetTheme": {
|
|
320
|
+
"location": "import",
|
|
321
|
+
"path": "../../common-types"
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"required": false,
|
|
326
|
+
"optional": false,
|
|
327
|
+
"docs": {
|
|
328
|
+
"tags": [],
|
|
329
|
+
"text": "Theme of the select."
|
|
330
|
+
},
|
|
331
|
+
"attribute": "theme",
|
|
332
|
+
"reflect": false,
|
|
333
|
+
"defaultValue": "\"\""
|
|
334
|
+
},
|
|
335
|
+
"labelHidden": {
|
|
336
|
+
"type": "boolean",
|
|
337
|
+
"mutable": false,
|
|
338
|
+
"complexType": {
|
|
339
|
+
"original": "boolean",
|
|
340
|
+
"resolved": "boolean",
|
|
341
|
+
"references": {}
|
|
342
|
+
},
|
|
343
|
+
"required": false,
|
|
344
|
+
"optional": false,
|
|
345
|
+
"docs": {
|
|
346
|
+
"tags": [],
|
|
347
|
+
"text": "Visually hide the label, but still show it to screen readers."
|
|
348
|
+
},
|
|
349
|
+
"attribute": "label-hidden",
|
|
350
|
+
"reflect": false,
|
|
351
|
+
"defaultValue": "false"
|
|
352
|
+
},
|
|
353
|
+
"identifier": {
|
|
354
|
+
"type": "string",
|
|
355
|
+
"mutable": false,
|
|
356
|
+
"complexType": {
|
|
357
|
+
"original": "string",
|
|
358
|
+
"resolved": "string",
|
|
359
|
+
"references": {}
|
|
360
|
+
},
|
|
361
|
+
"required": false,
|
|
362
|
+
"optional": false,
|
|
363
|
+
"docs": {
|
|
364
|
+
"tags": [],
|
|
365
|
+
"text": "Adds a unique identifier for the select."
|
|
366
|
+
},
|
|
367
|
+
"attribute": "identifier",
|
|
368
|
+
"reflect": false,
|
|
369
|
+
"defaultValue": "createID(\"DuetMultiselect\")"
|
|
370
|
+
},
|
|
371
|
+
"placeholder": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"mutable": false,
|
|
374
|
+
"complexType": {
|
|
375
|
+
"original": "string",
|
|
376
|
+
"resolved": "string",
|
|
377
|
+
"references": {}
|
|
378
|
+
},
|
|
379
|
+
"required": false,
|
|
380
|
+
"optional": false,
|
|
381
|
+
"docs": {
|
|
382
|
+
"tags": [],
|
|
383
|
+
"text": "Hint text to display."
|
|
384
|
+
},
|
|
385
|
+
"attribute": "placeholder",
|
|
386
|
+
"reflect": false,
|
|
387
|
+
"defaultValue": "\"\""
|
|
388
|
+
},
|
|
389
|
+
"caption": {
|
|
390
|
+
"type": "string",
|
|
391
|
+
"mutable": false,
|
|
392
|
+
"complexType": {
|
|
393
|
+
"original": "string",
|
|
394
|
+
"resolved": "string",
|
|
395
|
+
"references": {}
|
|
396
|
+
},
|
|
397
|
+
"required": false,
|
|
398
|
+
"optional": false,
|
|
399
|
+
"docs": {
|
|
400
|
+
"tags": [],
|
|
401
|
+
"text": "Caption (underneath label) that can be set as a way of adding extra information"
|
|
402
|
+
},
|
|
403
|
+
"attribute": "caption",
|
|
404
|
+
"reflect": false
|
|
405
|
+
},
|
|
406
|
+
"items": {
|
|
407
|
+
"type": "string",
|
|
408
|
+
"mutable": false,
|
|
409
|
+
"complexType": {
|
|
410
|
+
"original": "string | DuetMultiselectItem[]",
|
|
411
|
+
"resolved": "DuetMultiselectItem[] | string",
|
|
412
|
+
"references": {
|
|
413
|
+
"DuetMultiselectItem": {
|
|
414
|
+
"location": "local"
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"required": false,
|
|
419
|
+
"optional": false,
|
|
420
|
+
"docs": {
|
|
421
|
+
"tags": [],
|
|
422
|
+
"text": "An array of items to choose from"
|
|
423
|
+
},
|
|
424
|
+
"attribute": "items",
|
|
425
|
+
"reflect": false
|
|
426
|
+
},
|
|
427
|
+
"disabled": {
|
|
428
|
+
"type": "boolean",
|
|
429
|
+
"mutable": false,
|
|
430
|
+
"complexType": {
|
|
431
|
+
"original": "boolean",
|
|
432
|
+
"resolved": "boolean",
|
|
433
|
+
"references": {}
|
|
434
|
+
},
|
|
435
|
+
"required": false,
|
|
436
|
+
"optional": false,
|
|
437
|
+
"docs": {
|
|
438
|
+
"tags": [],
|
|
439
|
+
"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."
|
|
440
|
+
},
|
|
441
|
+
"attribute": "disabled",
|
|
442
|
+
"reflect": true,
|
|
443
|
+
"defaultValue": "false"
|
|
444
|
+
},
|
|
445
|
+
"label": {
|
|
446
|
+
"type": "string",
|
|
447
|
+
"mutable": false,
|
|
448
|
+
"complexType": {
|
|
449
|
+
"original": "string",
|
|
450
|
+
"resolved": "string",
|
|
451
|
+
"references": {}
|
|
452
|
+
},
|
|
453
|
+
"required": false,
|
|
454
|
+
"optional": false,
|
|
455
|
+
"docs": {
|
|
456
|
+
"tags": [],
|
|
457
|
+
"text": "Label for the select."
|
|
458
|
+
},
|
|
459
|
+
"attribute": "label",
|
|
460
|
+
"reflect": false,
|
|
461
|
+
"defaultValue": "\"label\""
|
|
462
|
+
},
|
|
463
|
+
"tooltip": {
|
|
464
|
+
"type": "string",
|
|
465
|
+
"mutable": false,
|
|
466
|
+
"complexType": {
|
|
467
|
+
"original": "string",
|
|
468
|
+
"resolved": "string",
|
|
469
|
+
"references": {}
|
|
470
|
+
},
|
|
471
|
+
"required": false,
|
|
472
|
+
"optional": false,
|
|
473
|
+
"docs": {
|
|
474
|
+
"tags": [],
|
|
475
|
+
"text": "Tooltip to display next to the label of the input."
|
|
476
|
+
},
|
|
477
|
+
"attribute": "tooltip",
|
|
478
|
+
"reflect": false,
|
|
479
|
+
"defaultValue": "\"\""
|
|
480
|
+
},
|
|
481
|
+
"tooltipDirection": {
|
|
482
|
+
"type": "string",
|
|
483
|
+
"mutable": false,
|
|
484
|
+
"complexType": {
|
|
485
|
+
"original": "DuetTooltipDirection",
|
|
486
|
+
"resolved": "\"auto\" | \"left\" | \"right\"",
|
|
487
|
+
"references": {
|
|
488
|
+
"DuetTooltipDirection": {
|
|
489
|
+
"location": "import",
|
|
490
|
+
"path": "../../common-types"
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"required": false,
|
|
495
|
+
"optional": false,
|
|
496
|
+
"docs": {
|
|
497
|
+
"tags": [],
|
|
498
|
+
"text": "With direction setting you can force the tooltip to always open towards left\nor right instead of automatically determining the direction."
|
|
499
|
+
},
|
|
500
|
+
"attribute": "tooltip-direction",
|
|
501
|
+
"reflect": false,
|
|
502
|
+
"defaultValue": "\"auto\""
|
|
503
|
+
}
|
|
504
|
+
}; }
|
|
505
|
+
static get states() { return {
|
|
506
|
+
"processedItems": {},
|
|
507
|
+
"checkboxesVisible": {},
|
|
508
|
+
"activeDescendant": {}
|
|
509
|
+
}; }
|
|
510
|
+
static get events() { return [{
|
|
511
|
+
"method": "duetChange",
|
|
512
|
+
"name": "duetChange",
|
|
513
|
+
"bubbles": false,
|
|
514
|
+
"cancelable": true,
|
|
515
|
+
"composed": true,
|
|
516
|
+
"docs": {
|
|
517
|
+
"tags": [],
|
|
518
|
+
"text": "Callback for when the value changed."
|
|
519
|
+
},
|
|
520
|
+
"complexType": {
|
|
521
|
+
"original": "DuetMultiselectEvent",
|
|
522
|
+
"resolved": "{ originalEvent?: Event; component: \"duet-multiselect\"; value: DuetMultiselectItem[]; }",
|
|
523
|
+
"references": {
|
|
524
|
+
"DuetMultiselectEvent": {
|
|
525
|
+
"location": "local"
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}, {
|
|
530
|
+
"method": "duetFocus",
|
|
531
|
+
"name": "duetFocus",
|
|
532
|
+
"bubbles": true,
|
|
533
|
+
"cancelable": true,
|
|
534
|
+
"composed": true,
|
|
535
|
+
"docs": {
|
|
536
|
+
"tags": [],
|
|
537
|
+
"text": "Emitted when the select has focus."
|
|
538
|
+
},
|
|
539
|
+
"complexType": {
|
|
540
|
+
"original": "DuetMultiselectEvent",
|
|
541
|
+
"resolved": "{ originalEvent?: Event; component: \"duet-multiselect\"; value: DuetMultiselectItem[]; }",
|
|
542
|
+
"references": {
|
|
543
|
+
"DuetMultiselectEvent": {
|
|
544
|
+
"location": "local"
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}, {
|
|
549
|
+
"method": "duetBlur",
|
|
550
|
+
"name": "duetBlur",
|
|
551
|
+
"bubbles": true,
|
|
552
|
+
"cancelable": true,
|
|
553
|
+
"composed": true,
|
|
554
|
+
"docs": {
|
|
555
|
+
"tags": [],
|
|
556
|
+
"text": "Emitted when the select loses focus."
|
|
557
|
+
},
|
|
558
|
+
"complexType": {
|
|
559
|
+
"original": "DuetMultiselectEvent",
|
|
560
|
+
"resolved": "{ originalEvent?: Event; component: \"duet-multiselect\"; value: DuetMultiselectItem[]; }",
|
|
561
|
+
"references": {
|
|
562
|
+
"DuetMultiselectEvent": {
|
|
563
|
+
"location": "local"
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}]; }
|
|
568
|
+
static get methods() { return {
|
|
569
|
+
"setFocus": {
|
|
570
|
+
"complexType": {
|
|
571
|
+
"signature": "(options?: FocusOptions) => Promise<void>",
|
|
572
|
+
"parameters": [{
|
|
573
|
+
"tags": [],
|
|
574
|
+
"text": ""
|
|
575
|
+
}],
|
|
576
|
+
"references": {
|
|
577
|
+
"Promise": {
|
|
578
|
+
"location": "global"
|
|
579
|
+
},
|
|
580
|
+
"FocusOptions": {
|
|
581
|
+
"location": "global"
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
"return": "Promise<void>"
|
|
585
|
+
},
|
|
586
|
+
"docs": {
|
|
587
|
+
"text": "Sets focus on the specified `duet-multiselect`. Use this method instead of the global\n`multiselect.focus()`.",
|
|
588
|
+
"tags": []
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}; }
|
|
592
|
+
static get elementRef() { return "element"; }
|
|
593
|
+
static get watchers() { return [{
|
|
594
|
+
"propName": "items",
|
|
595
|
+
"methodName": "refresh"
|
|
596
|
+
}]; }
|
|
597
|
+
}
|
|
@@ -889,7 +889,7 @@ export class DuetUpload {
|
|
|
889
889
|
this.nativeInput = input;
|
|
890
890
|
}, accept: !this.limitSelection ? undefined : `${this.allowedMimetypes},${this.allowedExtensions}`, onBlur: this.onBlur, onFocus: this.onFocus, onChange: e => this.onChange(e), type: "file", class: {
|
|
891
891
|
"duet-upload": true,
|
|
892
|
-
}, disabled: this.disabled, "aria-hidden": "true", required: this.required, name: this.name, id: this.identifier, multiple: this.multiple
|
|
892
|
+
}, disabled: this.disabled, "aria-hidden": "true", required: this.required, name: this.name, id: this.identifier, multiple: this.multiple })))));
|
|
893
893
|
}
|
|
894
894
|
/**
|
|
895
895
|
* XHR request utilities
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetActionButton$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetActionButton$1, d as defineCustomElement$1 } from './p-f06badc1.js';
|
|
5
5
|
|
|
6
6
|
const DuetActionButton = DuetActionButton$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetAlert$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetAlert$1, d as defineCustomElement$1 } from './p-e436e97c.js';
|
|
5
5
|
|
|
6
6
|
const DuetAlert = DuetAlert$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetBadge$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetBadge$1, d as defineCustomElement$1 } from './p-35856a5f.js';
|
|
5
5
|
|
|
6
6
|
const DuetBadge = DuetBadge$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, b as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, h, b as Host } from './p-df05a117.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
|
-
import { d as defineCustomElement$2 } from './p-
|
|
6
|
+
import { d as defineCustomElement$2 } from './p-983633e4.js';
|
|
7
7
|
|
|
8
8
|
const duetBreadcrumbCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-breadcrumb{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;height:100%;font-size:0.875rem;color:#00294d;text-decoration:none}.duet-breadcrumb:hover{color:#004d80}.duet-breadcrumb.duet-theme-turva{color:#171c3a}.duet-breadcrumb.duet-theme-turva:hover{color:#940925}.duet-breadcrumb:focus{outline:0}.duet-breadcrumb:active{opacity:0.75}:host(.user-is-tabbing) .duet-breadcrumb:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-breadcrumb.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}";
|
|
9
9
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, F as Fragment, b as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, h, F as Fragment, b as Host } from './p-df05a117.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { g as getLocaleString } from './p-ede854e1.js';
|
|
7
|
-
import { d as defineCustomElement$2 } from './p-
|
|
7
|
+
import { d as defineCustomElement$2 } from './p-983633e4.js';
|
|
8
8
|
|
|
9
9
|
var actionArrowRightSmall={"title":"action-arrow-right-small","tags":"action arrow right small caret","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M19.5 12a2.3 2.3 0 0 1-.78 1.729L7.568 23.54a1.847 1.847 0 0 1-2.439-2.773l9.752-8.579a.25.25 0 0 0 0-.376L5.129 3.233A1.847 1.847 0 0 1 7.568.46l11.148 9.808A2.31 2.31 0 0 1 19.5 12z\"/></svg>"};
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetButton$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetButton$1, d as defineCustomElement$1 } from './p-a0188402.js';
|
|
5
5
|
|
|
6
6
|
const DuetButton = DuetButton$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetCaption$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetCaption$1, d as defineCustomElement$1 } from './p-a10df7a8.js';
|
|
5
5
|
|
|
6
6
|
const DuetCaption = DuetCaption$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|