@duetds/components 6.0.4 → 6.0.5
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 +31 -32
- 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 +1 -1
- package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
- package/lib/cjs/duet-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-choice_2.cjs.entry.js +9 -8
- 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 +1 -1
- 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-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 +25 -27
- 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 +1 -1
- package/lib/cjs/{focus-utils-8a615003.js → focus-utils-bbba1f98.js} +1 -1
- package/lib/cjs/{index-d106d801.js → index-af927d29.js} +1 -1
- package/lib/cjs/loader.cjs.js +1 -1
- package/lib/collection/components/duet-choice/duet-choice.js +4 -4
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +3 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +25 -27
- 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 -1
- package/lib/dist-custom-elements/duet-choice-group.js +9 -8
- package/lib/dist-custom-elements/duet-choice.js +9 -9
- 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-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 +28 -30
- 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 +18 -18
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.js +1 -1
- package/lib/dist-custom-elements/{p-da03a443.js → p-0ce83b83.js} +1 -1
- package/lib/dist-custom-elements/{p-d96debb6.js → p-0f5b2dfe.js} +7 -7
- package/lib/dist-custom-elements/{p-565779f5.js → p-166d7b9c.js} +1 -1
- package/lib/dist-custom-elements/{p-3fc2d124.js → p-1ad6b04e.js} +1 -1
- package/lib/dist-custom-elements/{p-6e74e660.js → p-21887c28.js} +6 -6
- package/lib/dist-custom-elements/{p-acdba2db.js → p-24c2ac51.js} +2 -2
- package/lib/dist-custom-elements/{p-9c732bb9.js → p-2bb345c0.js} +2 -2
- package/lib/dist-custom-elements/{p-e4d5fbc0.js → p-32a67b55.js} +2 -2
- package/lib/dist-custom-elements/{p-e294c0fb.js → p-4c52333e.js} +4 -4
- package/lib/dist-custom-elements/{p-7739604d.js → p-4f516732.js} +1 -1
- package/lib/dist-custom-elements/{p-b08e57cf.js → p-53a0c93d.js} +1 -1
- package/lib/dist-custom-elements/{p-fc5362e7.js → p-544d933d.js} +1 -1
- package/lib/dist-custom-elements/{p-09ed1ffa.js → p-56b5945f.js} +5 -5
- package/lib/dist-custom-elements/{p-08cfe544.js → p-692cc270.js} +2 -2
- package/lib/dist-custom-elements/{p-3d987b87.js → p-6cae0682.js} +1 -1
- package/lib/dist-custom-elements/{p-01de0640.js → p-7a003d73.js} +1 -1
- package/lib/dist-custom-elements/{p-ef8eff22.js → p-7f5ad01d.js} +1 -1
- package/lib/dist-custom-elements/{p-65d3ead5.js → p-8f69f7ca.js} +6 -6
- package/lib/dist-custom-elements/{p-e5c8a58f.js → p-92012dcc.js} +1 -1
- package/lib/dist-custom-elements/{p-c70f3ccb.js → p-9af8e9da.js} +2 -2
- package/lib/dist-custom-elements/{p-bd4b92c4.js → p-a087e30a.js} +1 -1
- package/lib/dist-custom-elements/{p-14dcd82b.js → p-c0469b33.js} +1 -1
- package/lib/dist-custom-elements/{p-213ef84c.js → p-c8d44e6d.js} +1 -1
- package/lib/dist-custom-elements/{p-4717744e.js → p-cfab50b5.js} +3 -3
- package/lib/dist-custom-elements/{p-6886544b.js → p-d11287e1.js} +1 -1
- package/lib/dist-custom-elements/{p-f7db7c40.js → p-db91a981.js} +1 -1
- package/lib/dist-custom-elements/{p-0a928609.js → p-e121eb6d.js} +3 -3
- package/lib/dist-custom-elements/{p-81c9b244.js → p-ee9a63c3.js} +1 -1
- package/lib/dist-custom-elements/{p-88511d7a.js → p-f1d0dca7.js} +3 -3
- package/lib/dist-custom-elements/{p-16d518fd.js → p-fb6be4e4.js} +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-5f6452ce.system.entry.js → p-01ec746a.system.entry.js} +1 -1
- package/lib/duet/{p-7ad2cb10.system.entry.js → p-02a0c4f6.system.entry.js} +1 -1
- package/lib/duet/{p-3904232a.entry.js → p-02fec3bd.entry.js} +1 -1
- package/lib/duet/{p-9094fcf8.entry.js → p-032a5071.entry.js} +1 -1
- package/lib/duet/{p-8e8f8b29.entry.js → p-08fe21b1.entry.js} +1 -1
- package/lib/duet/{p-0b74af40.entry.js → p-0b0c7f09.entry.js} +1 -1
- package/lib/duet/{p-77600ed7.system.js → p-100c6ed7.system.js} +1 -1
- package/lib/duet/{p-1e0d7680.system.entry.js → p-168a22df.system.entry.js} +1 -1
- package/lib/duet/{p-defba7cd.entry.js → p-24dafa59.entry.js} +1 -1
- package/lib/duet/{p-0e48bca9.system.entry.js → p-28fcab59.system.entry.js} +1 -1
- package/lib/duet/{p-6e5f2016.system.entry.js → p-292ab686.system.entry.js} +1 -1
- package/lib/duet/{p-60e29f52.system.entry.js → p-293b8c58.system.entry.js} +1 -1
- package/lib/duet/{p-5e1d64d8.entry.js → p-2c698aec.entry.js} +1 -1
- package/lib/duet/{p-23a8fa64.system.entry.js → p-3967595b.system.entry.js} +1 -1
- package/lib/duet/{p-264a0e0c.system.entry.js → p-414b1ba7.system.entry.js} +1 -1
- package/lib/duet/{p-caa49454.entry.js → p-422d7157.entry.js} +1 -1
- package/lib/duet/{p-ccb0de84.system.entry.js → p-4df190b5.system.entry.js} +1 -1
- package/lib/duet/{p-c986532d.entry.js → p-50eb1959.entry.js} +1 -1
- package/lib/duet/{p-8c08e7ba.entry.js → p-552ce747.entry.js} +1 -1
- package/lib/duet/{p-23943f39.entry.js → p-58c58219.entry.js} +1 -1
- package/lib/duet/{p-0c2a51ac.entry.js → p-5b7db3d5.entry.js} +1 -1
- package/lib/duet/{p-27f72e70.entry.js → p-5bb6f856.entry.js} +1 -1
- package/lib/duet/{p-aef02083.entry.js → p-62ff683a.entry.js} +1 -1
- package/lib/duet/{p-613c4099.system.entry.js → p-65206bf2.system.entry.js} +1 -1
- package/lib/duet/{p-3b173cbd.entry.js → p-66bb00c2.entry.js} +1 -1
- package/lib/duet/{p-ab89d948.system.entry.js → p-6cc35a71.system.entry.js} +1 -1
- package/lib/duet/{p-6f93638a.system.entry.js → p-7431ad27.system.entry.js} +1 -1
- package/lib/duet/{p-2b320481.system.entry.js → p-74bcd39f.system.entry.js} +1 -1
- package/lib/duet/{p-bec16aea.system.entry.js → p-76fd11ff.system.entry.js} +1 -1
- package/lib/duet/{p-df785776.system.js → p-7871ef0a.system.js} +1 -1
- package/lib/duet/{p-bbe1a2cd.entry.js → p-79160b90.entry.js} +1 -1
- package/lib/duet/{p-ab7f4070.entry.js → p-7d71fd3b.entry.js} +1 -1
- package/lib/duet/{p-07a850a5.system.entry.js → p-7d866e2a.system.entry.js} +1 -1
- package/lib/duet/{p-09e2ff96.system.entry.js → p-83120829.system.entry.js} +1 -1
- package/lib/duet/{p-6aca8584.js → p-85c3f82e.js} +1 -1
- package/lib/duet/{p-4d6feeb5.system.entry.js → p-85df6ff1.system.entry.js} +1 -1
- package/lib/duet/{p-f97776be.entry.js → p-86567f28.entry.js} +1 -1
- package/lib/duet/{p-0d96924d.entry.js → p-8669b09e.entry.js} +1 -1
- package/lib/duet/{p-b2abaa9e.entry.js → p-88819152.entry.js} +1 -1
- package/lib/duet/{p-eb74c96e.entry.js → p-89dc739e.entry.js} +1 -1
- package/lib/duet/{p-01c551f1.system.entry.js → p-8a4d7ae9.system.entry.js} +1 -1
- package/lib/duet/{p-77ca874f.system.entry.js → p-8edd208a.system.entry.js} +1 -1
- package/lib/duet/{p-e9862947.entry.js → p-8efd9495.entry.js} +1 -1
- package/lib/duet/{p-afdc57da.entry.js → p-8f222a1b.entry.js} +1 -1
- package/lib/duet/{p-c863a0d1.entry.js → p-98ba3424.entry.js} +1 -1
- package/lib/duet/{p-86cb85b9.system.entry.js → p-996ba330.system.entry.js} +1 -1
- package/lib/duet/{p-0e98f667.system.entry.js → p-9999e5fa.system.entry.js} +1 -1
- package/lib/duet/{p-8aafa8e7.system.entry.js → p-9bae46c2.system.entry.js} +1 -1
- package/lib/duet/{p-c4217626.system.entry.js → p-9cb366b1.system.entry.js} +1 -1
- package/lib/duet/{p-bd3c926c.system.entry.js → p-a3de163c.system.entry.js} +1 -1
- package/lib/duet/{p-8b09a46f.entry.js → p-a40a7074.entry.js} +1 -1
- package/lib/duet/{p-033bfa67.entry.js → p-a463d7ba.entry.js} +1 -1
- package/lib/duet/{p-430acad4.system.entry.js → p-a755f378.system.entry.js} +1 -1
- package/lib/duet/{p-7de4d97d.entry.js → p-a78c751d.entry.js} +1 -1
- package/lib/duet/{p-71105750.entry.js → p-aae486b1.entry.js} +1 -1
- package/lib/duet/{p-c73a591d.system.entry.js → p-ade95c1a.system.entry.js} +1 -1
- package/lib/duet/{p-55fd512b.system.entry.js → p-ae270d5c.system.entry.js} +1 -1
- package/lib/duet/{p-61444a3d.system.entry.js → p-afd48ab5.system.entry.js} +1 -1
- package/lib/duet/{p-875ae637.js → p-b1931fae.js} +1 -1
- package/lib/duet/{p-3620ded5.entry.js → p-b1b6bfaf.entry.js} +1 -1
- package/lib/duet/{p-fe8fc877.system.entry.js → p-bcaa46bc.system.entry.js} +1 -1
- package/lib/duet/{p-0c9f0b8a.system.entry.js → p-bd95bbac.system.entry.js} +1 -1
- package/lib/duet/{p-2a3b1a2e.entry.js → p-c14e364f.entry.js} +1 -1
- package/lib/duet/{p-5af6d9e2.entry.js → p-cd24ed34.entry.js} +1 -1
- package/lib/duet/{p-44e9b1c8.system.entry.js → p-ceaefc71.system.entry.js} +1 -1
- package/lib/duet/{p-c5f6ea62.system.entry.js → p-d33ad700.system.entry.js} +1 -1
- package/lib/duet/{p-c6d05091.entry.js → p-d5700477.entry.js} +1 -1
- package/lib/duet/{p-751f6957.system.entry.js → p-d8c1e717.system.entry.js} +1 -1
- package/lib/duet/{p-a395d4bc.system.entry.js → p-d8e4683f.system.entry.js} +1 -1
- package/lib/duet/{p-ece47184.entry.js → p-db5582e2.entry.js} +1 -1
- package/lib/duet/{p-4d767c61.system.entry.js → p-dc3379cf.system.entry.js} +1 -1
- package/lib/duet/{p-1999f503.system.js → p-ddc42b65.system.js} +1 -1
- package/lib/duet/{p-bbc91480.system.entry.js → p-e1c35023.system.entry.js} +1 -1
- package/lib/duet/{p-49ce11a1.entry.js → p-e6d75fab.entry.js} +1 -1
- package/lib/duet/{p-f09f968c.entry.js → p-e99cfa9a.entry.js} +1 -1
- package/lib/duet/{p-1a41550e.system.entry.js → p-ec08089e.system.entry.js} +1 -1
- package/lib/duet/{p-1bd57792.system.entry.js → p-ec45b5c6.system.entry.js} +1 -1
- package/lib/duet/{p-988a781d.entry.js → p-ed41265b.entry.js} +1 -1
- package/lib/duet/{p-b55e55b5.entry.js → p-ed985877.entry.js} +1 -1
- package/lib/duet/{p-bf59e11d.entry.js → p-f5cac1af.entry.js} +1 -1
- package/lib/duet/{p-4f1fe415.system.entry.js → p-f6725c7b.system.entry.js} +1 -1
- package/lib/duet/{p-787f9eba.entry.js → p-f7012b1f.entry.js} +1 -1
- package/lib/duet/{p-4463946b.system.entry.js → p-f7856429.system.entry.js} +1 -1
- package/lib/duet/{p-a585113b.entry.js → p-f9d05a5c.entry.js} +1 -1
- package/lib/duet/{p-aa8973fc.entry.js → p-fb798cb8.entry.js} +1 -1
- package/lib/duet/{p-21662682.entry.js → p-fcbf70a6.entry.js} +1 -1
- package/lib/duet/{p-8107aeb5.system.entry.js → p-fcc58f66.system.entry.js} +1 -1
- package/lib/duet/{p-73c6e5fb.entry.js → p-fdd0a7df.entry.js} +1 -1
- package/lib/duet/{p-1ebd7945.system.entry.js → p-feae179e.system.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 +1 -1
- package/lib/esm/duet-caption_4.entry.js +1 -1
- package/lib/esm/duet-card.entry.js +1 -1
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-choice_2.entry.js +9 -8
- 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 +1 -1
- 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-notification_2.entry.js +1 -1
- package/lib/esm/duet-number-input.entry.js +1 -1
- package/lib/esm/duet-pagination_2.entry.js +25 -27
- 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 +1 -1
- package/lib/esm/{focus-utils-236f580e.js → focus-utils-b515b88b.js} +1 -1
- package/lib/esm/{index-b601aac1.js → index-d8c3ba71.js} +1 -1
- package/lib/esm/loader.js +1 -1
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +1 -1
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +1 -1
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +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-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-236f580e.js → focus-utils-b515b88b.js} +1 -1
- package/lib/esm-es5/{index-b601aac1.js → index-d8c3ba71.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +1 -0
- package/lib/types/components/duet-range-stepper/duet-range-stepper.d.ts +2 -2
- package/lib/types/components.d.ts +2 -2
- package/package.json +5 -5
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { D as DuetStringsExternalDefaults } from './common-strings-97e04e4b.js';
|
|
7
7
|
import { c as createID } from './create-id-981107da.js';
|
|
8
|
-
import { F as FocusGuard } from './focus-utils-
|
|
8
|
+
import { F as FocusGuard } from './focus-utils-b515b88b.js';
|
|
9
9
|
import { i as isKeyboardClick, h as isQuestionKey, f as isEscapeKey } from './keyboard-utils-88ea1007.js';
|
|
10
10
|
import { g as getLocaleString, a as getLanguage } from './language-utils-bf701d37.js';
|
|
11
11
|
import { f as findCheckedOption, w as watchForOptions } from './watch-options-dd55bce8.js';
|
|
@@ -18,7 +18,7 @@ const duetChoiceCss = "*.sc-duet-choice,*.sc-duet-choice::after,*.sc-duet-choice
|
|
|
18
18
|
const DuetChoice = class {
|
|
19
19
|
constructor(hostRef) {
|
|
20
20
|
registerInstance(this, hostRef);
|
|
21
|
-
this.duetChange = createEvent(this, "duetChange",
|
|
21
|
+
this.duetChange = createEvent(this, "duetChange", 5);
|
|
22
22
|
this.duetFocus = createEvent(this, "duetFocus", 7);
|
|
23
23
|
this.duetBlur = createEvent(this, "duetBlur", 7);
|
|
24
24
|
this.hasHeader = false;
|
|
@@ -178,11 +178,13 @@ const DuetChoice = class {
|
|
|
178
178
|
* Local methods
|
|
179
179
|
*/
|
|
180
180
|
this.toggleChecked = ev => {
|
|
181
|
+
ev.preventDefault();
|
|
182
|
+
ev.stopPropagation();
|
|
181
183
|
if (this.disabled || this.groupDisabled) {
|
|
182
184
|
return;
|
|
183
185
|
}
|
|
184
186
|
this.isInfoOpen = false;
|
|
185
|
-
// if it's a radio button and it's already checked
|
|
187
|
+
// if it's a radio button, and it's already checked
|
|
186
188
|
// we shouldn't fire an event, so exit early
|
|
187
189
|
if (this.type === "radio" && this.checked) {
|
|
188
190
|
return;
|
|
@@ -194,8 +196,6 @@ const DuetChoice = class {
|
|
|
194
196
|
value: this.value,
|
|
195
197
|
component: "duet-choice",
|
|
196
198
|
});
|
|
197
|
-
ev.preventDefault();
|
|
198
|
-
ev.stopPropagation();
|
|
199
199
|
};
|
|
200
200
|
this.toggleInfo = () => {
|
|
201
201
|
this.isInfoOpen = !this.isInfoOpen;
|
|
@@ -320,6 +320,7 @@ const duetChoiceSelector = ":scope duet-choice:not(:scope duet-choice duet-choic
|
|
|
320
320
|
const DuetChoiceGroup = class {
|
|
321
321
|
constructor(hostRef) {
|
|
322
322
|
registerInstance(this, hostRef);
|
|
323
|
+
this.choiceGroupName = "duet-choice-group";
|
|
323
324
|
/**
|
|
324
325
|
* Direction of the choice group.
|
|
325
326
|
*/
|
|
@@ -374,7 +375,7 @@ const DuetChoiceGroup = class {
|
|
|
374
375
|
return;
|
|
375
376
|
}
|
|
376
377
|
const selectedChoice = ev.target;
|
|
377
|
-
if (selectedChoice) {
|
|
378
|
+
if (selectedChoice && selectedChoice.parentElement.classList.contains(this.choiceGroupName)) {
|
|
378
379
|
this.value = selectedChoice.value;
|
|
379
380
|
}
|
|
380
381
|
// Prevent events from bubbling up the DOM tree in case
|
|
@@ -458,7 +459,7 @@ const DuetChoiceGroup = class {
|
|
|
458
459
|
* Always the last one in the class.
|
|
459
460
|
*/
|
|
460
461
|
render() {
|
|
461
|
-
return (h(Host, { onDuetChange: this.onSelect, class: { horizontal: this.direction === "horizontal" } }, h("duet-fieldset", { label: this.label, labelHidden: this.labelHidden, caption: this.caption, error: this.error, margin: this.margin, theme: this.theme }, this.tooltip && (h("duet-tooltip", { slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("div", { class: {
|
|
462
|
+
return (h(Host, { onDuetChange: this.onSelect, class: { horizontal: this.direction === "horizontal" } }, h("duet-fieldset", { label: this.label, labelHidden: this.labelHidden, caption: this.caption, error: this.error, margin: this.margin, theme: this.theme }, this.tooltip && (h("duet-tooltip", { slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("div", { class: { [this.choiceGroupName]: true, "duet-no-stacking": !this.responsive } }, h("slot", null)))));
|
|
462
463
|
}
|
|
463
464
|
get element() { return getElement(this); }
|
|
464
465
|
static get watchers() { return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { a as actionArrowDownSmall } from './action-arrow-down-small-82273dc8.js';
|
|
6
6
|
import { f as font_size_medium, t as tokens } from './tokens-b9d87fda.js';
|
|
7
7
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { h, F as Fragment, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
4
|
+
import { h, F as Fragment, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { d as debounce } from './js-utils-fa98b8cd.js';
|
|
7
7
|
import { n as isEnterKey, f as isEscapeKey, o as isTabKey, b as isArrowUpKey, c as isArrowDownKey } from './keyboard-utils-88ea1007.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
|
|
7
7
|
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}";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
4
|
+
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
|
-
import { F as FocusGuard } from './focus-utils-
|
|
7
|
+
import { F as FocusGuard } from './focus-utils-b515b88b.js';
|
|
8
8
|
import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
|
|
9
9
|
import './string-utils-5954f458.js';
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, g as getElement, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, g as getElement, H as Host } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
|
|
7
7
|
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}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
4
|
+
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { f as fieldSorter, d as debounce } from './js-utils-fa98b8cd.js';
|
|
7
7
|
import { i as isKeyboardClick } from './keyboard-utils-88ea1007.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
|
|
7
7
|
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}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent$1, h, F as Fragment, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent$1, h, F as Fragment, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { a as actionNewWindowSmall } from './action-new-window-small-1945be91.js';
|
|
6
6
|
import { D as DuetStringsExternalDefaults } from './common-strings-97e04e4b.js';
|
|
7
7
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, g as getElement, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, g as getElement, H as Host } from './index-d8c3ba71.js';
|
|
5
5
|
import { m as media_query_large, a as media_query_medium, b as media_query_small } from './tokens-b9d87fda.js';
|
|
6
6
|
import { w as watchForOptions, a as watchForElement } from './watch-options-dd55bce8.js';
|
|
7
7
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { h, r as registerInstance, c as createEvent$1, B as Build, H as Host, F as Fragment, g as getElement } from './index-
|
|
4
|
+
import { h, r as registerInstance, c as createEvent$1, B as Build, H as Host, F as Fragment, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { f as formSearch } from './form-search-ea8e19ae.js';
|
|
6
6
|
import { m as media_query_large } from './tokens-b9d87fda.js';
|
|
7
7
|
import { d as disableBodyScroll, e as enableBodyScroll } from './bodyScrollLock.es6-61b5e9a4.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { a as actionNewWindowSmall } from './action-new-window-small-1945be91.js';
|
|
6
6
|
import { D as DuetStringsExternalDefaults } from './common-strings-97e04e4b.js';
|
|
7
7
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { E as Env, r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { E as Env, r as registerInstance, h, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { g as getColorByName } from './token-utils-ebf797ab.js';
|
|
7
7
|
import './tokens.module-385c4cf8.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { f as formSearch } from './form-search-ea8e19ae.js';
|
|
6
6
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
7
7
|
import { c as createID } from './create-id-981107da.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as isInternetExplorer } from './is-internet-explorer-62b3bdbd.js';
|
|
6
6
|
|
|
7
7
|
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)}}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, g as getElement, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, g as getElement, H as Host } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { w as watchForOptions } from './watch-options-dd55bce8.js';
|
|
7
7
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { d as disableBodyScroll, e as enableBodyScroll } from './bodyScrollLock.es6-61b5e9a4.js';
|
|
6
6
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
7
7
|
import { c as createID } from './create-id-981107da.js';
|
|
8
|
-
import { f as focusElement, F as FocusGuard } from './focus-utils-
|
|
8
|
+
import { f as focusElement, F as FocusGuard } from './focus-utils-b515b88b.js';
|
|
9
9
|
import { f as isEscapeKey } from './keyboard-utils-88ea1007.js';
|
|
10
10
|
import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
|
|
11
11
|
import './string-utils-5954f458.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
|
|
7
7
|
import { a as actionArrowDownSmall } from './action-arrow-down-small-82273dc8.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { a as isArrowRightKey, b as isArrowUpKey, c as isArrowDownKey, d as isArrowLeftKey, e as isBackspaceKey } from './keyboard-utils-88ea1007.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { d as debounce } from './js-utils-fa98b8cd.js';
|
|
@@ -341,7 +341,7 @@ const DuetRangeStepper = class {
|
|
|
341
341
|
this.stepIndex = 1;
|
|
342
342
|
/**
|
|
343
343
|
* How big is the step
|
|
344
|
-
* @default
|
|
344
|
+
* @default 50
|
|
345
345
|
*/
|
|
346
346
|
this.stepSize = 50;
|
|
347
347
|
/**
|
|
@@ -379,30 +379,33 @@ const DuetRangeStepper = class {
|
|
|
379
379
|
this.ariaControls = "";
|
|
380
380
|
this.handleClick = (e, direction) => {
|
|
381
381
|
e.preventDefault();
|
|
382
|
-
this.
|
|
382
|
+
this.stepIndex += direction;
|
|
383
|
+
this.clampStepIndex();
|
|
383
384
|
this.handleStepClick(e);
|
|
384
385
|
};
|
|
385
386
|
}
|
|
386
387
|
watchStepIndexStateHandler(newValue) {
|
|
387
|
-
if (
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
this.
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
388
|
+
if (this.element.shadowRoot.childElementCount > 0) {
|
|
389
|
+
if (newValue <= 1) {
|
|
390
|
+
this.leftBnRef.setAttribute("disabled", "");
|
|
391
|
+
this.rightBnRef.focus();
|
|
392
|
+
}
|
|
393
|
+
else {
|
|
394
|
+
this.leftBnRef.removeAttribute("disabled");
|
|
395
|
+
}
|
|
396
|
+
if (newValue >= this.total / this.stepSize) {
|
|
397
|
+
this.rightBnRef.setAttribute("disabled", "");
|
|
398
|
+
this.leftBnRef.focus();
|
|
399
|
+
}
|
|
400
|
+
else {
|
|
401
|
+
this.rightBnRef.removeAttribute("disabled");
|
|
402
|
+
}
|
|
400
403
|
}
|
|
401
404
|
}
|
|
402
405
|
watchStepSizeStateHandler(newValue, oldValue) {
|
|
403
406
|
if (newValue !== oldValue) {
|
|
404
407
|
if (this.stepIndex * newValue > this.total) {
|
|
405
|
-
this.stepIndex = this.total / newValue;
|
|
408
|
+
this.stepIndex = Math.ceil(this.total / newValue);
|
|
406
409
|
}
|
|
407
410
|
}
|
|
408
411
|
}
|
|
@@ -418,22 +421,17 @@ const DuetRangeStepper = class {
|
|
|
418
421
|
}
|
|
419
422
|
componentWillLoad() {
|
|
420
423
|
inheritGlobalTheme(this);
|
|
424
|
+
this.clampStepIndex();
|
|
421
425
|
}
|
|
422
426
|
componentDidLoad() {
|
|
423
427
|
this.watchStepIndexStateHandler(this.stepIndex);
|
|
424
428
|
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
if (newIndex <= 0) {
|
|
429
|
+
clampStepIndex() {
|
|
430
|
+
if (this.stepIndex < 1) {
|
|
428
431
|
this.stepIndex = 1;
|
|
429
432
|
}
|
|
430
|
-
else {
|
|
431
|
-
|
|
432
|
-
this.stepIndex = newIndex;
|
|
433
|
-
}
|
|
434
|
-
else if (newIndex * this.stepSize > this.total + this.stepSize) {
|
|
435
|
-
this.stepIndex = Math.floor(this.total / this.stepSize);
|
|
436
|
-
}
|
|
433
|
+
else if (this.stepIndex * this.stepSize > this.total) {
|
|
434
|
+
this.stepIndex = Math.ceil(this.total / this.stepSize);
|
|
437
435
|
}
|
|
438
436
|
}
|
|
439
437
|
getTo() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { g as getLocaleString } from './language-utils-bf701d37.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { f as findCheckedOption, w as watchForOptions } from './watch-options-dd55bce8.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { c as colorPrimaryTurva, a as colorGrayTurva, b as colorPrimary, d as colorGray } from './tokens.module-385c4cf8.js';
|
|
6
6
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
7
7
|
import { c as createID } from './create-id-981107da.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { g as getLocaleString, a as getLanguage } from './language-utils-bf701d37.js';
|
|
7
7
|
import { c as createID } from './create-id-981107da.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { p as parsePossibleJSON } from './string-utils-5954f458.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { i as isKeyboardClick } from './keyboard-utils-88ea1007.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { c as cleanValue } from './input-utils-de45e099.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, F as Fragment, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, F as Fragment, g as getElement } from './index-d8c3ba71.js';
|
|
5
5
|
import { s as sizeHeader } from './tokens.module-385c4cf8.js';
|
|
6
6
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
7
7
|
import { c as createID } from './create-id-981107da.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-d8c3ba71.js';
|
|
5
5
|
|
|
6
6
|
const duetVisuallyHiddenCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}";
|
|
7
7
|
|
package/lib/esm/duet.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { d as doc, N as NAMESPACE, w as win, p as promiseResolve, b as bootstrapLazy } from './index-
|
|
4
|
+
import { d as doc, N as NAMESPACE, w as win, p as promiseResolve, b as bootstrapLazy } from './index-d8c3ba71.js';
|
|
5
5
|
import { g as globalScripts } from './app-globals-6641e444.js';
|
|
6
6
|
|
|
7
7
|
/*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
const NAMESPACE = 'duet';
|
|
5
|
-
const Env = /* duet */ {"cdnURILocal":"http://0.0.0.0:3334","cdnURIProd":"https://cdn.duetds.com/api","duetIconVersion":"3.0.
|
|
5
|
+
const Env = /* duet */ {"cdnURILocal":"http://0.0.0.0:3334","cdnURIProd":"https://cdn.duetds.com/api","duetIconVersion":"3.0.5"};
|
|
6
6
|
|
|
7
7
|
let scopeId;
|
|
8
8
|
let contentRef;
|
package/lib/esm/loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
4
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-d8c3ba71.js';
|
|
5
5
|
import { g as globalScripts } from './app-globals-6641e444.js';
|
|
6
6
|
|
|
7
7
|
/*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(t,e,n,o){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function r(t){try{c(o.next(t))}catch(e){a(e)}}function s(t){try{c(o["throw"](t))}catch(e){a(e)}}function c(t){t.done?n(t.value):i(t.value).then(r,s)}c((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,i,a,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(t){return function(e){return c([t,e])}}function c(r){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(a=r[0]&2?i["return"]:r[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,r[1])).done)return a;if(i=0,a)r=[r[0]&2,a.value];switch(r[0]){case 0:case 1:a=r;break;case 4:n.label++;return{value:r[1],done:false};case 5:n.label++;i=r[1];r=[0];continue;case 7:r=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!a||r[1]>a[0]&&r[1]<a[3])){n.label=r[1];break}if(r[0]===6&&n.label<a[1]){n.label=a[1];a=r;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(r);break}if(a[2])n.ops.pop();n.trys.pop();continue}r=e.call(t,n)}catch(s){r=[6,s];i=0}finally{o=a=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Built with Duet Design System
|
|
4
|
-
*/import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-
|
|
4
|
+
*/import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-d8c3ba71.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";import{c as createID}from"./create-id-981107da.js";import{d as debounce}from"./js-utils-fa98b8cd.js";import{i as isKeyboardClick}from"./keyboard-utils-88ea1007.js";import{g as getLocaleString}from"./language-utils-bf701d37.js";import{c as capitalizeFirstLetter,g as getColorByName,s as shadeRGBColor}from"./token-utils-ebf797ab.js";import"./string-utils-5954f458.js";import"./tokens.module-385c4cf8.js";var duetActionButtonCss="*,*::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:inline-block;margin:0 auto}button.duet-action-button{white-space:nowrap}button.duet-action-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:auto !important;padding:0 !important;margin:0 0 0 8px !important;color:#00294d;cursor:pointer;background:#f5f8fa;border-radius:50%;transition:background-color 300ms ease !important}.duet-theme-turva button.duet-action-button{color:#171c3a;background:#f5f5f7}button.duet-action-button duet-icon{display:block}@media (max-width: 35.9375em){button.duet-action-button{width:32px;height:32px}}button.duet-action-button:not(:disabled):hover{background:#e9ecee}.duet-theme-turva button.duet-action-button:not(:disabled):hover{background:#e9e9eb}button.duet-action-button:focus{outline:0;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva button.duet-action-button:focus{box-shadow:0 0 0 2px #171c3a !important}button.duet-action-button:active:focus{background:#dddfe1 !important;box-shadow:none}.duet-theme-turva button.duet-action-button:active:focus{background:#ddddde !important}button.duet-action-button:disabled{color:#909599;cursor:default;background:#f5f8fa;opacity:0.75}.duet-theme-turva button.duet-action-button:disabled{color:#747475;background:#f5f5f7}";var DuetActionButton=function(){function t(t){var e=this;registerInstance(this,t);this.duetActionEvent=createEvent(this,"duetActionEvent",6);this.listId=createID("duet-action-button");this.numbersStore="";this.theme="";this.iconName="action-arrow-left-small";this.iconColor="currentColor";this.iconSize="xx-small";this.actionName="default-action";this.actionId=undefined;this.actionMeta=undefined;this.disabled=false;this.color="";this.background="";this.accessibleTitle=true;this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabelsDefaults={en:{label:"Click to activate action"},fi:{label:"Klikkaa toiminnon aktivointiin"},sv:{label:"Klicka för att aktivera åtgärd"}};this.accessibleLabels=getLocaleString(this.accessibleLabelsDefaults);this.accessibleControls="";this.emitPageEvent=debounce((function(t){e.duetActionEvent.emit({component:"duet-action-button",originalEvent:t,action:e.actionId,name:e.actionName,meta:e.actionMeta,id:e.listId})}))}t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(isKeyboardClick(t)){this.emitPageEvent(t)}return[2]}))}))};t.prototype.getTitle=function(){var t="";if(typeof this.accessibleTitle==="string"){t=this.accessibleTitle}if(this.accessibleTitle===true){t=capitalizeFirstLetter("".concat(this.actionName))}return t};t.prototype.onMouseHandler=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){t.preventDefault();this.duetActionEvent.emit({component:"duet-action-button",originalEvent:t,action:this.actionName,id:this.actionId,meta:this.actionMeta});return[2]}))}))};t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.render=function(){var t;var e=this;var n=this.color==="currentColor"?"currentColor":getColorByName(this.color,this.theme);var o=getColorByName(this.background,this.theme);var i=o?shadeRGBColor(o,-.1):o;var a=o?"\n button.duet-action-button {\n background: ".concat(o," !important;\n }\n button.duet-action-button:not(:disabled):hover {\n background: ").concat(i," !important;\n }\n "):"";var r={color:n,"border-color":getColorByName(this.iconColor,this.theme),"border-width":"1px","border-style":"solid"};return h(Host,{onKeyDown:function(t){return e.onKeyboardDown(t)}},h("style",{innerHTML:a}),h("button",{part:"button",style:r,disabled:this.disabled,id:this.listId,class:(t={"duet-action-button":true,"duet-action-button--disabled":this.disabled},t["duet-action-button--".concat(this.theme)]=this.theme!=="",t),type:"button",onClick:function(t){return e.onMouseHandler(t)},"aria-label":this.accessibleLabels.label,"aria-labelledby":this.accessibleLabelledBy,"aria-description":this.accessibleDescription,"aria-describedby":this.accessibleDescribedBy,"aria-details":this.accessibleDetails,"aria-controls":this.accessibleControls,title:this.getTitle()},h("duet-icon",{part:"icon",name:this.iconName,color:this.iconColor,margin:"none",size:this.iconSize}),h("duet-visually-hidden",null,h("slot",null))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetActionButton.style=duetActionButtonCss;export{DuetActionButton as duet_action_button};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as registerInstance,c as createEvent,h,H as Host}from"./index-
|
|
4
|
+
import{r as registerInstance,c as createEvent,h,H as Host}from"./index-d8c3ba71.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";import{c as createID}from"./create-id-981107da.js";import{g as getLocaleString}from"./language-utils-bf701d37.js";import"./string-utils-5954f458.js";var duetAlertCss='*,*::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%;max-height:999px;border-radius:4px;transition:opacity 300ms ease, visibility 300ms ease, transform 300ms ease, max-height 300ms ease}: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}:host(.duet-alert-is-dismissed){max-height:0;visibility:hidden;opacity:0;transform:scale(0.98)}:host(.duet-alert-is-dismissed) .duet-alert{margin:0 !important}.duet-alert{margin-bottom:16px !important;position:relative;width:100%;padding:16px;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;color:#00294d;background:#f2f8fb;border:1px solid #0077b3;border-radius:4px;transition:margin 100ms 300ms ease}.duet-alert.duet-p-0{padding:0 !important}.duet-alert.duet-m-0{margin:0 !important}.duet-alert.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:#171c3a;background:#f3f4f5;border-color:#171c3a}.duet-alert.warning{background:#fffbf4;border-color:#f7b228}.duet-alert.warning.duet-theme-turva{background:#fffaf3;border-color:#faa40f}.duet-alert.danger{background:#fdf4f7;border-color:#de2362}.duet-alert.danger.duet-theme-turva{background:#fdf4f3;border-color:#e02a0d}.duet-alert.success{background:#f2f9f7;border-color:#00875a}.duet-alert.success.duet-theme-turva{background:#f3f9f6;border-color:#08874e}.duet-alert-dismiss{position:absolute;top:2px;right:2px}.duet-alert-container{display:inline-flex;align-items:center;justify-content:center;width:100%;margin:0 auto !important}.duet-alert-container span{width:100%}.duet-alert-has-icon .duet-alert-container{margin-top:2px !important}.duet-alert-icon{display:inline-block;align-self:center;width:20px;min-width:20px;height:20px;margin:0 16px 0 0 !important}.duet-alert-icon duet-icon{width:20px;height:20px}.duet-alert-is-dismissible{padding:16px 48px 16px 16px;text-align:left}.duet-alert-is-dismissible .duet-alert-container{text-align:left}';var DuetAlert=function(){function e(e){var t=this;registerInstance(this,e);this.duetDismiss=createEvent(this,"duetDismiss",7);this.descriptiveId=createID("DuetAlert");this.theme="";this.isDismissed=false;this.accessibleLabelDefaults={fi:"Sulje viesti",sv:"Stäng meddelandet",en:"Close the message"};this.accessibleLabel=getLocaleString(this.accessibleLabelDefaults);this.announcements=true;this.icon="";this.margin="auto";this.padding="auto";this.variation="default";this.dismissible=false;this.handleDismiss=function(e){t.isDismissed=true;t.duetDismiss.emit({component:"duet-alert",originalEvent:e})}}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.componentDidLoad=function(){var e=this;if(this.autoDismiss){this.timeoutID=setTimeout((function(){return e.handleDismiss()}),this.autoDismiss)}};e.prototype.disconnectedCallback=function(){if(this.timeoutID){clearTimeout(this.timeoutID)}};e.prototype.render=function(){var e;var t=this.theme==="turva"?"secondary-turva":"secondary";var i=this.variation==="danger"||this.variation==="warning"?"alert":"status";return h(Host,{class:{"duet-theme-turva":this.theme==="turva","duet-alert-is-dismissed":this.isDismissed},role:this.announcements?i:undefined},h("div",{class:(e={"duet-alert":true,"duet-alert-has-icon":!!this.icon,"duet-alert-is-dismissible":this.dismissible,"duet-p-0":this.padding==="none","duet-m-0":this.margin==="none"},e[this.variation]=true,e["duet-theme-turva"]=this.theme==="turva",e)},h("div",{class:"duet-alert-container"},this.icon&&h("div",{class:"duet-alert-icon"},h("duet-icon",{size:"auto",name:this.icon,color:"currentColor"})),h("span",{id:this.descriptiveId},h("slot",null))),this.dismissible&&h("div",{class:"duet-alert-dismiss"},h("duet-button",{variation:"plain",accessibleLabel:this.accessibleLabel,accessibleDescribedBy:this.descriptiveId,color:t,iconSize:"medium",icon:"navigation-close",iconOnly:true,margin:"none",theme:this.theme,onClick:this.handleDismiss,fixed:true}))))};return e}();DuetAlert.style=duetAlertCss;export{DuetAlert as duet_alert};
|