@duetds/components 4.33.2 → 4.34.3
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 +427 -90
- package/lib/cjs/{dom-c850c8d7.js → dom-52a4f07a.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-button_2.cjs.entry.js +4 -3
- package/lib/cjs/duet-caption_4.cjs.entry.js +3 -3
- package/lib/cjs/duet-card.cjs.entry.js +2 -2
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
- package/lib/cjs/duet-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-button.cjs.entry.js +14 -7
- package/lib/cjs/duet-editable-table_4.cjs.entry.js +95 -11
- 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 +2 -2
- package/lib/cjs/duet-grid_2.cjs.entry.js +9 -3
- package/lib/cjs/duet-header_2.cjs.entry.js +220 -47
- package/lib/cjs/duet-hero.cjs.entry.js +1 -1
- package/lib/cjs/duet-icon.cjs.entry.js +7 -5
- package/lib/cjs/duet-input_2.cjs.entry.js +3 -4
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-modal.cjs.entry.js +2 -2
- package/lib/cjs/duet-notification_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-number-input.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-select.cjs.entry.js +1 -1
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-tab_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 +4 -4
- package/lib/cjs/{focus-utils-27c696bb.js → focus-utils-3d73245e.js} +1 -1
- package/lib/cjs/form-search-d61b2843.js +8 -0
- package/lib/cjs/{index-18b0f43a.js → index-b8c8ebe4.js} +2 -2
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{shadow-css-e3edeed1.js → shadow-css-e1b62a99.js} +1 -1
- package/lib/cjs/token-utils-05bd23b4.js +77 -0
- package/lib/collection/collection-manifest.json +2 -2
- package/lib/collection/components/duet-button/duet-button.css +21 -4
- package/lib/collection/components/duet-button/duet-button.js +5 -1
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +4 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table-button.js +13 -6
- package/lib/collection/components/duet-editable-table/duet-editable-table-item.js +25 -3
- package/lib/collection/components/duet-editable-table/duet-editable-table-tabledata.js +3 -3
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +58 -2
- package/lib/collection/components/duet-footer/duet-footer.css +2 -0
- package/lib/collection/components/duet-grid/duet-grid.js +8 -2
- package/lib/collection/components/duet-header/duet-header-dropdown.js +27 -0
- package/lib/collection/components/duet-header/duet-header-hamburger.js +9 -0
- package/lib/collection/components/duet-header/duet-header-icon.js +9 -0
- package/lib/collection/components/duet-header/duet-header.css +272 -39
- package/lib/collection/components/duet-header/duet-header.js +316 -122
- package/lib/collection/components/duet-icon/duet-icon.js +5 -3
- package/lib/collection/components/duet-link/duet-link.js +4 -1
- package/lib/collection/components/duet-list-item/duet-list-item.css +1 -1
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +4 -3
- package/lib/collection/components/duet-table/duet-table.css +42 -17
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.js +51 -4
- package/lib/collection/utils/template-utils.js +33 -0
- package/lib/collection/utils/token-utils.js +67 -14
- package/lib/custom-elements-bundle/index.js +411 -93
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-637df820.entry.js → p-01927eb0.entry.js} +1 -1
- package/lib/duet/{p-ba6214be.entry.js → p-032607e4.entry.js} +1 -1
- package/lib/duet/{p-68635a1c.entry.js → p-04597b37.entry.js} +1 -1
- package/lib/duet/{p-5b9621e2.entry.js → p-061d59b3.entry.js} +1 -1
- package/lib/duet/{p-33538e90.system.entry.js → p-08a34bd4.system.entry.js} +1 -1
- package/lib/duet/{p-be349a3d.system.entry.js → p-0b64cf3d.system.entry.js} +1 -1
- package/lib/duet/{p-50b796eb.entry.js → p-117e0339.entry.js} +1 -1
- package/lib/duet/{p-9125ed25.entry.js → p-11f389cd.entry.js} +1 -1
- package/lib/duet/{p-2d8e0faa.system.entry.js → p-129bc252.system.entry.js} +1 -1
- package/lib/duet/{p-b1ad7a52.system.entry.js → p-13058dc6.system.entry.js} +1 -1
- package/lib/duet/p-16de4b21.entry.js +4 -0
- package/lib/duet/{p-35a3794e.js → p-183726f7.js} +0 -0
- package/lib/duet/{p-d0fb19f7.system.entry.js → p-1e3ec7dc.system.entry.js} +1 -1
- package/lib/duet/{p-dd9b8fcb.system.entry.js → p-25aa7ac3.system.entry.js} +1 -1
- package/lib/duet/{p-0435b54a.system.entry.js → p-279aa668.system.entry.js} +1 -1
- package/lib/duet/p-2ce50cc6.system.entry.js +4 -0
- package/lib/duet/{p-5727cd82.system.entry.js → p-3211cb0d.system.entry.js} +1 -1
- package/lib/duet/{p-7f8cce41.system.entry.js → p-349c6990.system.entry.js} +1 -1
- package/lib/duet/{p-3a7e519e.entry.js → p-3839858e.entry.js} +1 -1
- package/lib/duet/{p-cd21755b.entry.js → p-3c173e89.entry.js} +1 -1
- package/lib/duet/p-3dc1e5c7.entry.js +4 -0
- package/lib/duet/{p-350cea4e.system.entry.js → p-414a29ba.system.entry.js} +2 -2
- package/lib/duet/p-4bb35e6f.entry.js +4 -0
- package/lib/duet/{p-042ec8b1.entry.js → p-4eca4ef3.entry.js} +1 -1
- package/lib/duet/p-50b4fb2c.js +4 -0
- package/lib/duet/{p-60ef3d05.entry.js → p-5152f1e4.entry.js} +1 -1
- package/lib/duet/{p-987edcd0.js → p-52621211.js} +0 -0
- package/lib/duet/p-53fb919f.entry.js +4 -0
- package/lib/duet/{p-15fae689.entry.js → p-59d4e6b8.entry.js} +1 -1
- package/lib/duet/p-5a6e464a.system.entry.js +4 -0
- package/lib/duet/{p-4e17a6cb.system.entry.js → p-5d2ec61d.system.entry.js} +1 -1
- package/lib/duet/{p-3cad13af.system.entry.js → p-5e6e0547.system.entry.js} +1 -1
- package/lib/duet/{p-04b3e682.entry.js → p-61a0e3f7.entry.js} +1 -1
- package/lib/duet/{p-c506017d.entry.js → p-62b3e73e.entry.js} +1 -1
- package/lib/duet/{p-8c2f14d8.system.entry.js → p-64f8c8e0.system.entry.js} +1 -1
- package/lib/duet/{p-cff461b6.entry.js → p-6aaf4be0.entry.js} +1 -1
- package/lib/duet/{p-c18a599e.system.js → p-6e4fd6ba.system.js} +0 -0
- package/lib/duet/{p-f37ffb6f.system.entry.js → p-6f288b44.system.entry.js} +1 -1
- package/lib/duet/{p-7ab0bad8.entry.js → p-6f35218d.entry.js} +1 -1
- package/lib/duet/{p-408e8cdb.system.js → p-715eb86e.system.js} +1 -1
- package/lib/duet/{p-0ac2e60d.system.entry.js → p-7232506d.system.entry.js} +1 -1
- package/lib/duet/{p-9a09ac2b.system.entry.js → p-7241b006.system.entry.js} +1 -1
- package/lib/duet/{p-c74cecf2.system.entry.js → p-75c48ba1.system.entry.js} +1 -1
- package/lib/duet/{p-9584411c.entry.js → p-77434f16.entry.js} +1 -1
- package/lib/duet/{p-66fdebc5.js → p-79cc24ee.js} +1 -1
- package/lib/duet/{p-61fc3872.system.js → p-7b4d646d.system.js} +1 -1
- package/lib/duet/{p-d4e706ac.system.entry.js → p-7cdfbafd.system.entry.js} +1 -1
- package/lib/duet/{p-f8744611.entry.js → p-7dadfd66.entry.js} +1 -1
- package/lib/duet/{p-de43620d.system.entry.js → p-8402709a.system.entry.js} +1 -1
- package/lib/duet/{p-659d6cb7.entry.js → p-8e70de92.entry.js} +1 -1
- package/lib/duet/p-8f477bd6.system.js +4 -0
- package/lib/duet/p-8fda2b95.entry.js +4 -0
- package/lib/duet/{p-1cf8dbc7.system.js → p-942856d9.system.js} +1 -1
- package/lib/duet/p-9d8421d4.entry.js +4 -0
- package/lib/duet/{p-c3c95a34.system.entry.js → p-a01664b5.system.entry.js} +1 -1
- package/lib/duet/p-a16a58c1.system.js +4 -0
- package/lib/duet/{p-7ceaf4ef.system.entry.js → p-a2373348.system.entry.js} +2 -2
- package/lib/duet/{p-1ecddc1d.entry.js → p-a35f849e.entry.js} +1 -1
- package/lib/duet/{p-582f3a2c.entry.js → p-a43ed343.entry.js} +1 -1
- package/lib/duet/{p-3bcf2054.system.entry.js → p-a76ae6e9.system.entry.js} +1 -1
- package/lib/duet/p-accaacf9.entry.js +4 -0
- package/lib/duet/{p-1c7d7cdd.system.entry.js → p-aefca63e.system.entry.js} +1 -1
- package/lib/duet/{p-720a36f2.entry.js → p-b2e9e246.entry.js} +1 -1
- package/lib/duet/p-bf246e5d.system.entry.js +4 -0
- package/lib/duet/{p-65451003.entry.js → p-c414a7d0.entry.js} +1 -1
- package/lib/duet/{p-2b4bd1b2.system.entry.js → p-c75bf5dd.system.entry.js} +1 -1
- package/lib/duet/{p-3364cfd2.entry.js → p-c90c17c7.entry.js} +1 -1
- package/lib/duet/p-c95b0a0e.system.entry.js +4 -0
- package/lib/duet/{p-b5dc29b8.system.entry.js → p-cb7921b9.system.entry.js} +1 -1
- package/lib/duet/{p-c0f3f60f.system.entry.js → p-cd795dee.system.entry.js} +1 -1
- package/lib/duet/p-d004da5f.js +4 -0
- package/lib/duet/p-d30c3f2c.system.entry.js +4 -0
- package/lib/duet/{p-d1dfa30e.entry.js → p-d855249b.entry.js} +1 -1
- package/lib/duet/{p-8c730326.entry.js → p-d8ac3d77.entry.js} +1 -1
- package/lib/duet/p-d992e2b5.entry.js +4 -0
- package/lib/duet/{p-6402041d.system.entry.js → p-daeb205a.system.entry.js} +1 -1
- package/lib/duet/{p-c9a11360.entry.js → p-db33afbe.entry.js} +1 -1
- package/lib/duet/{p-5f79eff8.system.entry.js → p-dd1bc83c.system.entry.js} +1 -1
- package/lib/duet/{p-a2b2fa13.system.entry.js → p-de658899.system.entry.js} +1 -1
- package/lib/duet/{p-d5e2bb48.system.entry.js → p-e1a40bab.system.entry.js} +1 -1
- package/lib/duet/{p-0d22396e.system.js → p-e5c1751e.system.js} +0 -0
- package/lib/duet/{p-4a14da52.entry.js → p-e9b95f7c.entry.js} +1 -1
- package/lib/duet/{p-1dcbd837.system.entry.js → p-ed57e786.system.entry.js} +1 -1
- package/lib/duet/{p-75e5d4d1.system.entry.js → p-f137fdb6.system.entry.js} +1 -1
- package/lib/duet/{p-fd00b025.entry.js → p-f96efcb6.entry.js} +1 -1
- package/lib/duet/{p-39e9d638.entry.js → p-fae44e29.entry.js} +1 -1
- package/lib/duet/{p-ebc4e334.js → p-fceb0df8.js} +1 -1
- package/lib/duet/p-fdc358b8.entry.js +4 -0
- package/lib/duet/{p-933c2774.system.entry.js → p-fefe12f8.system.entry.js} +1 -1
- package/lib/esm/{dom-58cd15f6.js → dom-5d060ace.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-button_2.entry.js +4 -3
- package/lib/esm/duet-caption_4.entry.js +3 -3
- package/lib/esm/duet-card.entry.js +2 -2
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-choice_2.entry.js +2 -2
- package/lib/esm/duet-collapsible.entry.js +2 -2
- 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-button.entry.js +14 -7
- package/lib/esm/duet-editable-table_4.entry.js +95 -11
- 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 +2 -2
- package/lib/esm/duet-grid_2.entry.js +9 -3
- package/lib/esm/duet-header_2.entry.js +220 -47
- package/lib/esm/duet-hero.entry.js +1 -1
- package/lib/esm/duet-icon.entry.js +7 -5
- package/lib/esm/duet-input_2.entry.js +2 -3
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +2 -2
- package/lib/esm/duet-modal.entry.js +2 -2
- package/lib/esm/duet-notification_2.entry.js +2 -2
- package/lib/esm/duet-number-input.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-select.entry.js +1 -1
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-tab_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 +4 -4
- package/lib/esm/{focus-utils-c1fa24c4.js → focus-utils-6989cada.js} +1 -1
- package/lib/esm/form-search-ea8e19ae.js +6 -0
- package/lib/esm/{index-05e43a37.js → index-ddb14345.js} +2 -2
- package/lib/esm/loader.js +3 -3
- package/lib/esm/{shadow-css-7c726abb.js → shadow-css-13d024f4.js} +1 -1
- package/lib/esm/token-utils-75f78ca4.js +75 -0
- package/lib/esm-es5/{dom-58cd15f6.js → dom-5d060ace.js} +0 -0
- 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-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 +2 -2
- 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-button.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_4.entry.js +2 -2
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +1 -1
- package/lib/esm-es5/duet-header_2.entry.js +2 -2
- 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-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-select.entry.js +1 -1
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-tab_2.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +1 -1
- package/lib/esm-es5/duet-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-6989cada.js +4 -0
- package/lib/esm-es5/form-search-ea8e19ae.js +4 -0
- package/lib/esm-es5/{index-05e43a37.js → index-ddb14345.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{shadow-css-7c726abb.js → shadow-css-13d024f4.js} +0 -0
- package/lib/esm-es5/token-utils-75f78ca4.js +4 -0
- package/lib/html.html-data.json +36 -11
- package/lib/types/common-types.d.ts +0 -1
- package/lib/types/components/duet-button/duet-button.d.ts +2 -1
- package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +3 -0
- package/lib/types/components/duet-editable-table/duet-editable-table-button.d.ts +1 -0
- package/lib/types/components/duet-editable-table/duet-editable-table-item.d.ts +5 -1
- package/lib/types/components/duet-editable-table/duet-editable-table-tabledata.d.ts +1 -0
- package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +10 -0
- package/lib/types/components/duet-header/duet-header-dropdown.d.ts +16 -0
- package/lib/types/components/duet-header/duet-header-hamburger.d.ts +2 -0
- package/lib/types/components/duet-header/duet-header-icon.d.ts +8 -0
- package/lib/types/components/duet-header/duet-header.d.ts +41 -4
- package/lib/types/components/duet-link/duet-link.d.ts +3 -0
- package/lib/types/components/duet-table/duet-table.d.ts +1 -1
- package/lib/types/components/duet-upload/duet-upload.d.ts +10 -0
- package/lib/types/components.d.ts +52 -10
- package/lib/types/stencil-public-runtime.d.ts +6 -4
- package/lib/types/utils/template-utils.d.ts +13 -0
- package/lib/types/utils/token-utils.d.ts +8 -2
- package/package.json +13 -13
- package/lib/cjs/token-utils-63a9c8dc.js +0 -30
- package/lib/duet/p-1082d9f2.system.entry.js +0 -4
- package/lib/duet/p-12fc4849.system.entry.js +0 -4
- package/lib/duet/p-1ad58142.entry.js +0 -4
- package/lib/duet/p-3c1971d8.js +0 -4
- package/lib/duet/p-60e721aa.system.entry.js +0 -4
- package/lib/duet/p-64c0aa2a.entry.js +0 -4
- package/lib/duet/p-6708db8a.entry.js +0 -4
- package/lib/duet/p-6e363557.system.js +0 -4
- package/lib/duet/p-72629304.entry.js +0 -4
- package/lib/duet/p-75a104e3.entry.js +0 -4
- package/lib/duet/p-7fed7f57.entry.js +0 -4
- package/lib/duet/p-9930e52e.entry.js +0 -4
- package/lib/duet/p-a09ddd8f.entry.js +0 -4
- package/lib/duet/p-cd597d62.system.entry.js +0 -4
- package/lib/duet/p-dd79932a.entry.js +0 -4
- package/lib/duet/p-e038da47.system.entry.js +0 -4
- package/lib/esm/token-utils-590d9413.js +0 -28
- package/lib/esm-es5/focus-utils-c1fa24c4.js +0 -4
- package/lib/esm-es5/token-utils-590d9413.js +0 -4
package/lib/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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-ddb14345.js';
|
|
5
5
|
import { g as globalScripts } from './app-globals-6641e444.js';
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.12.1 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return promiseResolve();
|
|
@@ -15,7 +15,7 @@ const defineCustomElements = (win, options) => {
|
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
17
|
globalScripts();
|
|
18
|
-
return bootstrapLazy(JSON.parse("[[\"duet-choice_2\",[[6,\"duet-choice-group\",{\"direction\":[1],\"margin\":[1],\"theme\":[1025],\"error\":[1],\"name\":[1],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"caption\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"responsive\":[4],\"value\":[1537],\"disabled\":[4]}],[6,\"duet-choice\",{\"theme\":[1025],\"label\":[1],\"accessibleLabelInfoButtonDefaults\":[1,\"accessible-label-info-default\"],\"accessibleLabelInfoButton\":[1,\"accessible-label-info-button\"],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"caption\":[1],\"value\":[1537],\"type\":[513],\"name\":[1],\"checked\":[1540],\"collapsible\":[4],\"margin\":[1],\"icon\":[1],\"expand\":[4],\"padding\":[1],\"identifier\":[1],\"groupDirection\":[1,\"group-direction\"],\"groupDisabled\":[4,\"group-disabled\"],\"groupResponsive\":[4,\"group-responsive\"],\"disabled\":[516],\"required\":[4],\"infoLabelDefaults\":[1,\"accessible-label-info-default\"],\"infoLabel\":[1,\"info-label\"],\"isHovering\":[32],\"isInfoOpen\":[32],\"isBlurred\":[32],\"setFocus\":[64]},[[2,\"blur\",\"handleHostBlur\"],[2,\"keydown\",\"handleHostKeyDown\"],[2,\"keyup\",\"handleHostKeyUp\"]]]]],[\"duet-hero\",[[1,\"duet-hero\",{\"theme\":[1025],\"heading\":[1],\"preHeading\":[1,\"pre-heading\"],\"level\":[1],\"description\":[1],\"icon\":[1],\"iconSize\":[1,\"icon-size\"],\"iconRight\":[4,\"icon-right\"],\"categoryIcon\":[1,\"category-icon\"],\"categoryIconColor\":[1,\"category-icon-color\"],\"buttonLabel\":[1,\"button-label\"],\"language\":[1025],\"accessibleLabelExternalDefaults\":[1,\"accessible-label-external-default\"],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"buttonUrl\":[1,\"button-url\"],\"buttonId\":[1,\"button-id\"],\"buttonData\":[16],\"textCenter\":[4,\"text-center\"],\"leftAlign\":[4,\"left-align\"],\"image\":[1],\"variation\":[1],\"back\":[8],\"listItems\":[8,\"list-items\"],\"actions\":[8],\"processedListItems\":[32],\"processedActions\":[32],\"processedBack\":[32]}]]],[\"duet-tab_2\",[[6,\"duet-tab-group\",{\"theme\":[1025],\"variation\":[1],\"language\":[1025],\"labelDefaults\":[1,\"label-default\"],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"margin\":[1],\"padding\":[1],\"tabs\":[32],\"selected\":[32],\"openTab\":[64],\"refresh\":[64]}],[6,\"duet-tab\",{\"label\":[513],\"selected\":[516]}]]],[\"duet-date-picker\",[[2,\"duet-date-picker\",{\"theme\":[1025],\"expand\":[4],\"name\":[1],\"identifier\":[1],\"label\":[1],\"caption\":[1],\"margin\":[1],\"language\":[1],\"placeholderDefaults\":[1,\"placeholder-default\"],\"placeholder\":[1],\"echoPlaceholder\":[1540,\"echo-placeholder\"],\"disabled\":[516],\"error\":[1],\"labelHidden\":[4,\"label-hidden\"],\"role\":[1],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"required\":[4],\"direction\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"value\":[1537],\"min\":[1],\"max\":[1],\"validity\":[1040],\"open\":[32],\"focusedDay\":[32],\"inputValue\":[32],\"setFocus\":[64],\"show\":[64],\"hide\":[64]},[[4,\"click\",\"handleDocumentClick\"]]]]],[\"duet-number-input\",[[2,\"duet-number-input\",{\"language\":[1025],\"locale\":[1],\"unit\":[1],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleLiveDefaults\":[1,\"accessible-live-default\"],\"accessibleLive\":[1,\"accessible-live\"],\"accessibleLiveEnabled\":[4,\"accessible-live-enabled\"],\"accessibleAddDefaults\":[1,\"accessible-add-default\"],\"accessibleAdd\":[1,\"accessible-add\"],\"accessibleSubtractDefaults\":[1,\"accessible-subtract-defaults\"],\"accessibleSubtract\":[1,\"accessible-subtract\"],\"theme\":[1025],\"margin\":[1],\"expand\":[4],\"identifier\":[1],\"min\":[2],\"labelDefaults\":[1,\"label-default\"],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"max\":[2],\"name\":[1],\"error\":[1],\"tooltip\":[1],\"step\":[2],\"rounding\":[4],\"role\":[1],\"disabled\":[516],\"required\":[4],\"value\":[1025],\"focusedValue\":[32],\"setFocus\":[64]}]]],[\"duet-radio_2\",[[6,\"duet-radio-group\",{\"direction\":[1],\"margin\":[1],\"theme\":[1025],\"error\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"name\":[1],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"caption\":[1],\"responsive\":[4],\"value\":[1537],\"disabled\":[4]}],[2,\"duet-radio\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleIndex\":[1,\"accessible-index\"],\"margin\":[1],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"theme\":[1025],\"disabled\":[516],\"required\":[4],\"blockEvents\":[4,\"block-events\"],\"identifier\":[1],\"label\":[1],\"name\":[1],\"role\":[1],\"groupDisabled\":[4,\"group-disabled\"],\"groupDirection\":[1,\"group-direction\"],\"groupResponsive\":[4,\"group-responsive\"],\"checked\":[1540],\"value\":[1537],\"setFocus\":[64]}]]],[\"duet-card\",[[1,\"duet-card\",{\"accessibleLabel\":[1,\"accessible-label\"],\"heading\":[1],\"secondaryHeading\":[1,\"secondary-heading\"],\"variation\":[1],\"collapsible\":[4],\"open\":[1540],\"headingLevel\":[1,\"heading-level\"],\"icon\":[1],\"image\":[1],\"background\":[1],\"padding\":[1],\"margin\":[1],\"theme\":[1025],\"url\":[1],\"setFocus\":[64]}]]],[\"duet-range-slider\",[[2,\"duet-range-slider\",{\"theme\":[1025],\"margin\":[1],\"expand\":[4],\"identifier\":[1],\"name\":[1],\"required\":[4],\"disabled\":[516],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"min\":[2],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"unit\":[1],\"max\":[2],\"step\":[2],\"locale\":[1],\"value\":[1026],\"debounce\":[2],\"setFocus\":[64]}]]],[\"duet-toggle\",[[2,\"duet-toggle\",{\"theme\":[1025],\"margin\":[1],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"label\":[1],\"required\":[4],\"disabled\":[516],\"checked\":[1540],\"value\":[1537],\"identifier\":[1],\"name\":[1],\"role\":[1],\"setFocus\":[64]}]]],[\"duet-checkbox\",[[2,\"duet-checkbox\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"margin\":[1],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleIndex\":[1,\"accessible-index\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"required\":[4],\"theme\":[1025],\"disabled\":[516],\"identifier\":[1],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"name\":[1],\"role\":[1],\"checked\":[1540],\"value\":[1537],\"setFocus\":[64]}]]],[\"duet-layout\",[[1,\"duet-layout\",{\"sticky\":[4],\"margin\":[1],\"stickyDistance\":[1,\"sticky-distance\"],\"center\":[4],\"tabs\":[4],\"middle\":[4]}]]],[\"duet-divider_2\",[[1,\"duet-divider\",{\"theme\":[1025],\"margin\":[1]}],[1,\"duet-spacer\",{\"size\":[1],\"direction\":[1],\"breakpoint\":[1]}]]],[\"duet-visually-hidden\",[[1,\"duet-visually-hidden\"]]],[\"duet-icon\",[[1,\"duet-icon\",{\"theme\":[1025],\"icon\":[1],\"src\":[1],\"name\":[1],\"margin\":[1],\"responsive\":[4],\"color\":[513],\"background\":[1],\"size\":[1],\"outline\":[1],\"svgContent\":[32]}]]],[\"duet-textarea\",[[2,\"duet-textarea\",{\"margin\":[1],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleAutocomplete\":[1,\"accessible-autocomplete\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"theme\":[1025],\"expand\":[4],\"disabled\":[516],\"identifier\":[1],\"required\":[4],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"name\":[1],\"placeholder\":[1],\"caption\":[1],\"echoPlaceholder\":[4,\"echo-placeholder\"],\"maxlength\":[2],\"minlength\":[2],\"error\":[1],\"role\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"value\":[1025],\"disallowPattern\":[1,\"disallow-pattern\"],\"counter\":[4],\"counterLabel\":[1,\"counter-label\"],\"setFocus\":[64]}]]],[\"duet-modal\",[[1,\"duet-modal\",{\"language\":[1025],\"accessibleCloseLabelDefaults\":[1,\"accessible-close-label-default\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"size\":[1],\"gutterSize\":[1,\"gutter-size\"],\"theme\":[1025],\"heading\":[1],\"headingLevel\":[1,\"heading-level\"],\"icon\":[1],\"color\":[1],\"active\":[1540],\"open\":[32],\"show\":[64],\"hide\":[64]},[[8,\"keyup\",\"handleKeyUp\"]]]]],[\"duet-cookie-consent\",[[1,\"duet-cookie-consent\",{\"accessibleLabel\":[1,\"accessible-label\"],\"theme\":[1025]}]]],[\"duet-step_2\",[[6,\"duet-step\",{\"theme\":[1025],\"heading\":[1],\"headingLevel\":[1,\"heading-level\"],\"stepIndex\":[2,\"step-index\"],\"state\":[1],\"roundedTop\":[4,\"rounded-top\"],\"roundedBottom\":[4,\"rounded-bottom\"],\"setFocus\":[64]}],[1,\"duet-stepper\",{\"theme\":[1025],\"accessibleLive\":[1,\"accessible-live\"],\"margin\":[1],\"backDisabled\":[4,\"back-disabled\"],\"selected\":[514]},[[0,\"duetStepClick\",\"onDuetStepClick\"]]]]],[\"duet-footer\",[[1,\"duet-footer\",{\"theme\":[1025],\"variation\":[1],\"margin\":[1],\"logoHref\":[1,\"logo-href\"],\"language\":[1025],\"items\":[8],\"accessibleLabelExternalDefaults\":[1,\"accessible-label-external-default\"],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"menu\":[8],\"processedItems\":[32],\"processedMenu\":[32]}]]],[\"duet-tray\",[[1,\"duet-tray\",{\"language\":[1025],\"accessibleCloseLabelDefaults\":[1,\"accessible-close-label-default\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"accessibleOpenLabelDefaults\":[1,\"accessible-open-label-default\"],\"accessibleOpenLabel\":[1,\"accessible-open-label\"],\"theme\":[1025],\"active\":[516],\"autoHide\":[4,\"auto-hide\"],\"responsive\":[4],\"expanded\":[32],\"hiddenState\":[32]},[[9,\"scroll\",\"getFrame\"],[16,\"click\",\"handleBodyClick\"]]]]],[\"duet-collapsible\",[[1,\"duet-collapsible\",{\"theme\":[1025],\"heading\":[1],\"headingWeight\":[1,\"heading-weight\"],\"headingSize\":[1,\"heading-size\"],\"headingLevel\":[1,\"heading-level\"],\"margin\":[1],\"open\":[1540],\"setFocus\":[64]}]]],[\"duet-caption_4\",[[17,\"duet-link\",{\"accessibleLabel\":[1,\"accessible-label\"],\"language\":[1025],\"accessibleLabelExternalDefaults\":[1,\"accessible-label-external-default\"],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"identifier\":[1],\"theme\":[1025],\"url\":[513],\"external\":[4],\"setFocus\":[64]}],[1,\"duet-heading\",{\"level\":[513],\"margin\":[1],\"visualLevel\":[1,\"visual-level\"],\"border\":[8],\"weight\":[1],\"color\":[1],\"theme\":[1025],\"hyphenate\":[4]}],[1,\"duet-paragraph\",{\"theme\":[1025],\"margin\":[1],\"size\":[1],\"weight\":[1],\"variation\":[1],\"color\":[1]}],[1,\"duet-caption\",{\"theme\":[1025],\"margin\":[1],\"selected\":[4],\"size\":[1]}]]],[\"duet-select\",[[2,\"duet-select\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"margin\":[1],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"error\":[1],\"expand\":[4],\"value\":[1537],\"theme\":[1025],\"labelHidden\":[4,\"label-hidden\"],\"identifier\":[1],\"name\":[1],\"placeholder\":[1],\"caption\":[1],\"echoPlaceholder\":[4,\"echo-placeholder\"],\"items\":[1],\"disabled\":[516],\"required\":[4],\"label\":[1],\"role\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"processedItems\":[32],\"setFocus\":[64]}]]],[\"duet-button_2\",[[1,\"duet-button\",{\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleExpanded\":[4,\"accessible-expanded\"],\"accessiblePressed\":[4,\"accessible-pressed\"],\"loading\":[4],\"variation\":[1],\"negative\":[4],\"theme\":[1025],\"margin\":[1],\"padding\":[1],\"wrapping\":[1],\"expand\":[4],\"fixed\":[4],\"disabled\":[516],\"name\":[1],\"value\":[1],\"identifier\":[1],\"submit\":[516],\"external\":[4],\"language\":[1],\"accessibleLabelExternalDefaults\":[1,\"accessible-label-external-default\"],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"icon\":[1],\"color\":[1],\"iconRight\":[4,\"icon-right\"],\"iconSize\":[1,\"icon-size\"],\"size\":[1],\"iconOnly\":[4,\"icon-only\"],\"url\":[513],\"setFocus\":[64]}],[1,\"duet-spinner\",{\"accessibleLabel\":[1,\"accessible-label\"],\"color\":[1],\"size\":[1],\"theme\":[1025]}]]],[\"duet-alert\",[[1,\"duet-alert\",{\"theme\":[1025],\"accessibleLabelDefaults\":[1,\"accessible-label-default\"],\"accessibleLabel\":[1,\"accessible-label\"],\"announcements\":[4],\"icon\":[1],\"autoDismiss\":[2,\"auto-dismiss\"],\"margin\":[1],\"padding\":[1],\"variation\":[1],\"dismissible\":[4],\"isDismissed\":[32],\"timeoutID\":[32]}]]],[\"duet-empty-state\",[[1,\"duet-empty-state\",{\"theme\":[1025],\"icon\":[1],\"size\":[1]}]]],[\"duet-notification_2\",[[1,\"duet-notification-drawer\",{\"icon\":[1],\"label\":[1],\"language\":[1],\"accessibleLabelNotificationsDefaults\":[1,\"accessible-label-notification-default\"],\"accessibleLabelNotifications\":[1,\"accessible-label-notifications\"],\"badge\":[4],\"theme\":[1025],\"direction\":[1],\"isOpen\":[32],\"hasNotifications\":[32],\"setFocus\":[64],\"open\":[64],\"close\":[64]},[[6,\"focus\",\"handleClickFocusOutside\"],[6,\"click\",\"handleClickFocusOutside\"]]],[1,\"duet-notification\",{\"language\":[1],\"accessibleLabelUnreadDefaults\":[16],\"accessibleLabelUnread\":[1,\"accessible-label-unread\"],\"url\":[1],\"date\":[1],\"highlight\":[4],\"external\":[4],\"theme\":[1025],\"setFocus\":[64]}]]],[\"duet-progress\",[[0,\"duet-progress\",{\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleLabelUploadDefaults\":[1,\"accessible-label-upload-defaults\"],\"accessibleLabelUpload\":[1,\"accessible-label-upload\"],\"progress\":[1538],\"caption\":[1],\"height\":[1],\"theme\":[1025]}]]],[\"duet-upload-aria-status\",[[1,\"duet-upload-aria-status\",{\"statusMessageLabel\":[16],\"accessibleAriaLive\":[1,\"accessible-aria-live\"],\"valid\":[2],\"total\":[2],\"invalid\":[2],\"inprogress\":[2],\"statusMessage\":[32]}]]],[\"duet-badge\",[[1,\"duet-badge\",{\"theme\":[1025],\"variation\":[1],\"margin\":[1]}]]],[\"duet-header_2\",[[1,\"duet-header\",{\"theme\":[1025],\"language\":[1025],\"accessibleI18nLabelsDefaults\":[1,\"accessible-labels-default\"],\"accessibleI18nLabels\":[16],\"accessibleLabelExternalDefaults\":[1,\"accessible-label-external-default\"],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"accessibleLabelDefaults\":[1,\"accessible-label-default\"],\"accessibleLabel\":[1,\"accessible-label\"],\"user\":[8],\"logoHref\":[1,\"logo-href\"],\"currentHref\":[1025,\"current-href\"],\"skipToId\":[1,\"skip-to-id\"],\"items\":[8],\"region\":[1],\"session\":[8],\"back\":[8],\"contact\":[1],\"contactItems\":[8,\"contact-items\"],\"languageItems\":[8,\"language-items\"],\"isContactOpen\":[32],\"isLanguageOpen\":[32],\"isSlideOutOpen\":[32],\"processedItems\":[32],\"processedLanguageItems\":[32],\"processedContactItems\":[32],\"processedSession\":[32],\"processedUser\":[32],\"processedBack\":[32],\"closeMenus\":[64],\"setFocus\":[64]},[[8,\"keyup\",\"handleKeyUp\"],[8,\"keydown\",\"handleKeyDown\"],[4,\"focus\",\"handleDocumentClick\"],[4,\"click\",\"handleDocumentClick\"]]],[1,\"duet-logo\",{\"theme\":[1025],\"margin\":[1],\"inverse\":[4],\"size\":[1],\"href\":[1537],\"language\":[1537],\"setFocus\":[64]}]]],[\"duet-grid_2\",[[2,\"duet-grid\",{\"responsive\":[4],\"breakpoint\":[1],\"direction\":[1],\"alignment\":[1],\"distribution\":[1],\"mobile\":[1],\"distributeFormElement\":[32]}],[2,\"duet-grid-item\",{\"fill\":[4],\"maxWidth\":[1,\"max-width\"],\"minWidth\":[1,\"min-width\"],\"theme\":[1025],\"margin\":[1],\"responsive\":[4],\"breakpoint\":[1]}]]],[\"duet-list_2\",[[1,\"duet-list\",{\"theme\":[1025],\"margin\":[1],\"padding\":[1],\"mobile\":[1],\"breakpoint\":[1],\"variation\":[1],\"labelWidth\":[1,\"label-width\"]}],[1,\"duet-list-item\"]]],[\"duet-editable-table-button\",[[2,\"duet-editable-table-button\",{\"theme\":[1025],\"actions\":[16],\"uid\":[1],\"group\":[1],\"keyName\":[1,\"key-name\"],\"isHovering\":[32]}]]],[\"duet-fieldset\",[[1,\"duet-fieldset\",{\"theme\":[1025],\"margin\":[1],\"caption\":[1],\"label\":[1],\"error\":[1],\"labelHidden\":[4,\"label-hidden\"],\"hasTooltip\":[32]}]]],[\"duet-editable-table_4\",[[1,\"duet-upload\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"external\":[4],\"hideButton\":[4,\"hide-upload-button\"],\"actions\":[1],\"uri\":[1],\"showLinks\":[4,\"show-links\"],\"caption\":[1],\"statusLabelDefaults\":[1,\"status-label-default\"],\"statusMessageLabel\":[1,\"status-message-label\"],\"buttonLabelDefaults\":[1,\"button-label-default\"],\"buttonLabel\":[1,\"button-label\"],\"accessibleButtonLabel\":[1,\"accessible-button-label\"],\"theme\":[1025],\"disabled\":[516],\"identifier\":[1],\"margin\":[1],\"required\":[4],\"groups\":[1],\"hideGroups\":[4,\"hide-table-labels\"],\"files\":[1040],\"valid\":[1540],\"labelDefaults\":[1,\"label-default\"],\"label\":[1],\"descriptionDefaults\":[1,\"description-default\"],\"description\":[1],\"fileListEmptyDefaults\":[1,\"list-empty-default\"],\"fileListEmpty\":[1,\"file-list-empty\"],\"error\":[1],\"name\":[1],\"maxBytes\":[2,\"max-bytes\"],\"maxBytesTotal\":[2,\"max-bytes-total\"],\"maxFiles\":[2,\"max-files\"],\"allowedExtensions\":[1,\"allowed-extensions\"],\"allowedMimetypes\":[1,\"allowed-mimetypes\"],\"multiple\":[4],\"limitSelection\":[4,\"limit-selection\"],\"value\":[1025],\"tick\":[32],\"setFocus\":[64],\"upload\":[64],\"getFiles\":[64],\"updateValue\":[64]}],[1,\"duet-editable-table\",{\"items\":[1040],\"groupsLabelDefaults\":[16],\"actionLabelDefaults\":[16],\"groups\":[1],\"actions\":[1],\"hideGroups\":[4,\"hide-table-labels\"],\"accessibleRole\":[1,\"accessible-role\"],\"theme\":[1025],\"tick\":[32],\"updateTable\":[64]}],[1,\"duet-editable-table-item\",{\"theme\":[1025],\"actions\":[16],\"groupId\":[1,\"group-id\"],\"keyName\":[1,\"key-name\"],\"data\":[1040],\"isHovering\":[32]}],[4,\"duet-table\",{\"theme\":[1025],\"margin\":[1],\"variation\":[1],\"sticky\":[4],\"stickyDistance\":[1,\"sticky-distance\"],\"breakpoint\":[1],\"matchesBreakpoint\":[32]}]]],[\"duet-tooltip\",[[1,\"duet-tooltip\",{\"theme\":[1025],\"language\":[1025],\"accessibleLabelDefault\":[1,\"accessible-label-default\"],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleInputLabel\":[1,\"accessible-input-label\"],\"accessibleCloseLabelDefault\":[1,\"accessible-close-label-default\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"label\":[1],\"breakpoint\":[1],\"direction\":[1],\"positionVertical\":[513,\"position-vertical\"],\"positionHorizontal\":[513,\"position-horizontal\"],\"active\":[1540],\"openDown\":[32]},[[9,\"scroll\",\"onScroll\"],[4,\"click\",\"handleDocumentClick\"]]]]],[\"duet-input_2\",[[6,\"duet-input\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleAutocomplete\":[1,\"accessible-autocomplete\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"debounce\":[2],\"caption\":[1],\"echoPlaceholder\":[4,\"echo-placeholder\"],\"theme\":[1025],\"expand\":[4],\"disabled\":[516],\"identifier\":[1],\"margin\":[1],\"required\":[4],\"type\":[1],\"label\":[1],\"error\":[1],\"labelHidden\":[4,\"label-hidden\"],\"numericKeyboard\":[4,\"numeric-keyboard\"],\"name\":[1],\"pattern\":[1],\"maxlength\":[2],\"minlength\":[2],\"placeholder\":[1],\"component\":[1],\"role\":[1],\"icon\":[1],\"autoComplete\":[1,\"auto-complete\"],\"disallowPattern\":[1,\"disallow-pattern\"],\"value\":[1025],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"setFocus\":[64]}],[6,\"duet-label\",{\"theme\":[1025],\"for\":[1],\"margin\":[1],\"size\":[1]}]]]]"), options);
|
|
18
|
+
return bootstrapLazy(JSON.parse("[[\"duet-choice_2\",[[6,\"duet-choice-group\",{\"direction\":[1],\"margin\":[1],\"theme\":[1025],\"error\":[1],\"name\":[1],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"caption\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"responsive\":[4],\"value\":[1537],\"disabled\":[4]}],[6,\"duet-choice\",{\"theme\":[1025],\"label\":[1],\"accessibleLabelInfoButtonDefaults\":[1,\"accessible-label-info-default\"],\"accessibleLabelInfoButton\":[1,\"accessible-label-info-button\"],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"caption\":[1],\"value\":[1537],\"type\":[513],\"name\":[1],\"checked\":[1540],\"collapsible\":[4],\"margin\":[1],\"icon\":[1],\"expand\":[4],\"padding\":[1],\"identifier\":[1],\"groupDirection\":[1,\"group-direction\"],\"groupDisabled\":[4,\"group-disabled\"],\"groupResponsive\":[4,\"group-responsive\"],\"disabled\":[516],\"required\":[4],\"infoLabelDefaults\":[1,\"accessible-label-info-default\"],\"infoLabel\":[1,\"info-label\"],\"isHovering\":[32],\"isInfoOpen\":[32],\"isBlurred\":[32],\"setFocus\":[64]},[[2,\"blur\",\"handleHostBlur\"],[2,\"keydown\",\"handleHostKeyDown\"],[2,\"keyup\",\"handleHostKeyUp\"]]]]],[\"duet-hero\",[[1,\"duet-hero\",{\"theme\":[1025],\"heading\":[1],\"preHeading\":[1,\"pre-heading\"],\"level\":[1],\"description\":[1],\"icon\":[1],\"iconSize\":[1,\"icon-size\"],\"iconRight\":[4,\"icon-right\"],\"categoryIcon\":[1,\"category-icon\"],\"categoryIconColor\":[1,\"category-icon-color\"],\"buttonLabel\":[1,\"button-label\"],\"language\":[1025],\"accessibleLabelExternalDefaults\":[1,\"accessible-label-external-default\"],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"buttonUrl\":[1,\"button-url\"],\"buttonId\":[1,\"button-id\"],\"buttonData\":[16],\"textCenter\":[4,\"text-center\"],\"leftAlign\":[4,\"left-align\"],\"image\":[1],\"variation\":[1],\"back\":[8],\"listItems\":[8,\"list-items\"],\"actions\":[8],\"processedListItems\":[32],\"processedActions\":[32],\"processedBack\":[32]}]]],[\"duet-tab_2\",[[6,\"duet-tab-group\",{\"theme\":[1025],\"variation\":[1],\"language\":[1025],\"labelDefaults\":[1,\"label-default\"],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"margin\":[1],\"padding\":[1],\"tabs\":[32],\"selected\":[32],\"openTab\":[64],\"refresh\":[64]}],[6,\"duet-tab\",{\"label\":[513],\"selected\":[516]}]]],[\"duet-date-picker\",[[2,\"duet-date-picker\",{\"theme\":[1025],\"expand\":[4],\"name\":[1],\"identifier\":[1],\"label\":[1],\"caption\":[1],\"margin\":[1],\"language\":[1],\"placeholderDefaults\":[1,\"placeholder-default\"],\"placeholder\":[1],\"echoPlaceholder\":[1540,\"echo-placeholder\"],\"disabled\":[516],\"error\":[1],\"labelHidden\":[4,\"label-hidden\"],\"role\":[1],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"required\":[4],\"direction\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"value\":[1537],\"min\":[1],\"max\":[1],\"validity\":[1040],\"open\":[32],\"focusedDay\":[32],\"inputValue\":[32],\"setFocus\":[64],\"show\":[64],\"hide\":[64]},[[4,\"click\",\"handleDocumentClick\"]]]]],[\"duet-number-input\",[[2,\"duet-number-input\",{\"language\":[1025],\"locale\":[1],\"unit\":[1],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleLiveDefaults\":[1,\"accessible-live-default\"],\"accessibleLive\":[1,\"accessible-live\"],\"accessibleLiveEnabled\":[4,\"accessible-live-enabled\"],\"accessibleAddDefaults\":[1,\"accessible-add-default\"],\"accessibleAdd\":[1,\"accessible-add\"],\"accessibleSubtractDefaults\":[1,\"accessible-subtract-defaults\"],\"accessibleSubtract\":[1,\"accessible-subtract\"],\"theme\":[1025],\"margin\":[1],\"expand\":[4],\"identifier\":[1],\"min\":[2],\"labelDefaults\":[1,\"label-default\"],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"max\":[2],\"name\":[1],\"error\":[1],\"tooltip\":[1],\"step\":[2],\"rounding\":[4],\"role\":[1],\"disabled\":[516],\"required\":[4],\"value\":[1025],\"focusedValue\":[32],\"setFocus\":[64]}]]],[\"duet-radio_2\",[[6,\"duet-radio-group\",{\"direction\":[1],\"margin\":[1],\"theme\":[1025],\"error\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"name\":[1],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"caption\":[1],\"responsive\":[4],\"value\":[1537],\"disabled\":[4]}],[2,\"duet-radio\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleIndex\":[1,\"accessible-index\"],\"margin\":[1],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"theme\":[1025],\"disabled\":[516],\"required\":[4],\"blockEvents\":[4,\"block-events\"],\"identifier\":[1],\"label\":[1],\"name\":[1],\"role\":[1],\"groupDisabled\":[4,\"group-disabled\"],\"groupDirection\":[1,\"group-direction\"],\"groupResponsive\":[4,\"group-responsive\"],\"checked\":[1540],\"value\":[1537],\"setFocus\":[64]}]]],[\"duet-card\",[[1,\"duet-card\",{\"accessibleLabel\":[1,\"accessible-label\"],\"heading\":[1],\"secondaryHeading\":[1,\"secondary-heading\"],\"variation\":[1],\"collapsible\":[4],\"open\":[1540],\"headingLevel\":[1,\"heading-level\"],\"icon\":[1],\"image\":[1],\"background\":[1],\"padding\":[1],\"margin\":[1],\"theme\":[1025],\"url\":[1],\"setFocus\":[64]}]]],[\"duet-range-slider\",[[2,\"duet-range-slider\",{\"theme\":[1025],\"margin\":[1],\"expand\":[4],\"identifier\":[1],\"name\":[1],\"required\":[4],\"disabled\":[516],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"min\":[2],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"unit\":[1],\"max\":[2],\"step\":[2],\"locale\":[1],\"value\":[1026],\"debounce\":[2],\"setFocus\":[64]}]]],[\"duet-toggle\",[[2,\"duet-toggle\",{\"theme\":[1025],\"margin\":[1],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"label\":[1],\"required\":[4],\"disabled\":[516],\"checked\":[1540],\"value\":[1537],\"identifier\":[1],\"name\":[1],\"role\":[1],\"setFocus\":[64]}]]],[\"duet-checkbox\",[[2,\"duet-checkbox\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"margin\":[1],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleIndex\":[1,\"accessible-index\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"required\":[4],\"theme\":[1025],\"disabled\":[516],\"identifier\":[1],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"name\":[1],\"role\":[1],\"checked\":[1540],\"value\":[1537],\"setFocus\":[64]}]]],[\"duet-layout\",[[1,\"duet-layout\",{\"sticky\":[4],\"margin\":[1],\"stickyDistance\":[1,\"sticky-distance\"],\"center\":[4],\"tabs\":[4],\"middle\":[4]}]]],[\"duet-divider_2\",[[1,\"duet-divider\",{\"theme\":[1025],\"margin\":[1]}],[1,\"duet-spacer\",{\"size\":[1],\"direction\":[1],\"breakpoint\":[1]}]]],[\"duet-visually-hidden\",[[1,\"duet-visually-hidden\"]]],[\"duet-icon\",[[1,\"duet-icon\",{\"theme\":[1025],\"icon\":[1],\"src\":[1],\"name\":[1],\"margin\":[1],\"responsive\":[4],\"color\":[513],\"background\":[1],\"size\":[1],\"outline\":[1],\"svgContent\":[32]}]]],[\"duet-textarea\",[[2,\"duet-textarea\",{\"margin\":[1],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleAutocomplete\":[1,\"accessible-autocomplete\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"theme\":[1025],\"expand\":[4],\"disabled\":[516],\"identifier\":[1],\"required\":[4],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"name\":[1],\"placeholder\":[1],\"caption\":[1],\"echoPlaceholder\":[4,\"echo-placeholder\"],\"maxlength\":[2],\"minlength\":[2],\"error\":[1],\"role\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"value\":[1025],\"disallowPattern\":[1,\"disallow-pattern\"],\"counter\":[4],\"counterLabel\":[1,\"counter-label\"],\"setFocus\":[64]}]]],[\"duet-modal\",[[1,\"duet-modal\",{\"language\":[1025],\"accessibleCloseLabelDefaults\":[1,\"accessible-close-label-default\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"size\":[1],\"gutterSize\":[1,\"gutter-size\"],\"theme\":[1025],\"heading\":[1],\"headingLevel\":[1,\"heading-level\"],\"icon\":[1],\"color\":[1],\"active\":[1540],\"open\":[32],\"show\":[64],\"hide\":[64]},[[8,\"keyup\",\"handleKeyUp\"]]]]],[\"duet-cookie-consent\",[[1,\"duet-cookie-consent\",{\"accessibleLabel\":[1,\"accessible-label\"],\"theme\":[1025]}]]],[\"duet-step_2\",[[6,\"duet-step\",{\"theme\":[1025],\"heading\":[1],\"headingLevel\":[1,\"heading-level\"],\"stepIndex\":[2,\"step-index\"],\"state\":[1],\"roundedTop\":[4,\"rounded-top\"],\"roundedBottom\":[4,\"rounded-bottom\"],\"setFocus\":[64]}],[1,\"duet-stepper\",{\"theme\":[1025],\"accessibleLive\":[1,\"accessible-live\"],\"margin\":[1],\"backDisabled\":[4,\"back-disabled\"],\"selected\":[514]},[[0,\"duetStepClick\",\"onDuetStepClick\"]]]]],[\"duet-footer\",[[1,\"duet-footer\",{\"theme\":[1025],\"variation\":[1],\"margin\":[1],\"logoHref\":[1,\"logo-href\"],\"language\":[1025],\"items\":[8],\"accessibleLabelExternalDefaults\":[1,\"accessible-label-external-default\"],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"menu\":[8],\"processedItems\":[32],\"processedMenu\":[32]}]]],[\"duet-tray\",[[1,\"duet-tray\",{\"language\":[1025],\"accessibleCloseLabelDefaults\":[1,\"accessible-close-label-default\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"accessibleOpenLabelDefaults\":[1,\"accessible-open-label-default\"],\"accessibleOpenLabel\":[1,\"accessible-open-label\"],\"theme\":[1025],\"active\":[516],\"autoHide\":[4,\"auto-hide\"],\"responsive\":[4],\"expanded\":[32],\"hiddenState\":[32]},[[9,\"scroll\",\"getFrame\"],[16,\"click\",\"handleBodyClick\"]]]]],[\"duet-collapsible\",[[1,\"duet-collapsible\",{\"theme\":[1025],\"heading\":[1],\"headingWeight\":[1,\"heading-weight\"],\"headingSize\":[1,\"heading-size\"],\"headingLevel\":[1,\"heading-level\"],\"margin\":[1],\"open\":[1540],\"setFocus\":[64]}]]],[\"duet-caption_4\",[[17,\"duet-link\",{\"accessibleLabel\":[1,\"accessible-label\"],\"language\":[1025],\"accessibleLabelExternalDefaults\":[1,\"accessible-label-external-default\"],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"identifier\":[1],\"theme\":[1025],\"url\":[513],\"external\":[4],\"setFocus\":[64]}],[1,\"duet-heading\",{\"level\":[513],\"margin\":[1],\"visualLevel\":[1,\"visual-level\"],\"border\":[8],\"weight\":[1],\"color\":[1],\"theme\":[1025],\"hyphenate\":[4]}],[1,\"duet-paragraph\",{\"theme\":[1025],\"margin\":[1],\"size\":[1],\"weight\":[1],\"variation\":[1],\"color\":[1]}],[1,\"duet-caption\",{\"theme\":[1025],\"margin\":[1],\"selected\":[4],\"size\":[1]}]]],[\"duet-select\",[[2,\"duet-select\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"margin\":[1],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"error\":[1],\"expand\":[4],\"value\":[1537],\"theme\":[1025],\"labelHidden\":[4,\"label-hidden\"],\"identifier\":[1],\"name\":[1],\"placeholder\":[1],\"caption\":[1],\"echoPlaceholder\":[4,\"echo-placeholder\"],\"items\":[1],\"disabled\":[516],\"required\":[4],\"label\":[1],\"role\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"processedItems\":[32],\"setFocus\":[64]}]]],[\"duet-button_2\",[[1,\"duet-button\",{\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleExpanded\":[4,\"accessible-expanded\"],\"accessiblePressed\":[4,\"accessible-pressed\"],\"loading\":[4],\"variation\":[1],\"negative\":[4],\"theme\":[1025],\"margin\":[1],\"padding\":[1],\"wrapping\":[1],\"expand\":[4],\"fixed\":[4],\"disabled\":[516],\"name\":[1],\"value\":[1],\"identifier\":[1],\"submit\":[516],\"external\":[4],\"language\":[1],\"accessibleLabelExternalDefaults\":[1,\"accessible-label-external-default\"],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"icon\":[1],\"color\":[1],\"iconRight\":[4,\"icon-right\"],\"iconSize\":[1,\"icon-size\"],\"size\":[1],\"iconOnly\":[4,\"icon-only\"],\"url\":[513],\"setFocus\":[64]}],[1,\"duet-spinner\",{\"accessibleLabel\":[1,\"accessible-label\"],\"color\":[1],\"size\":[1],\"theme\":[1025]}]]],[\"duet-alert\",[[1,\"duet-alert\",{\"theme\":[1025],\"accessibleLabelDefaults\":[1,\"accessible-label-default\"],\"accessibleLabel\":[1,\"accessible-label\"],\"announcements\":[4],\"icon\":[1],\"autoDismiss\":[2,\"auto-dismiss\"],\"margin\":[1],\"padding\":[1],\"variation\":[1],\"dismissible\":[4],\"isDismissed\":[32],\"timeoutID\":[32]}]]],[\"duet-empty-state\",[[1,\"duet-empty-state\",{\"theme\":[1025],\"icon\":[1],\"size\":[1]}]]],[\"duet-notification_2\",[[1,\"duet-notification-drawer\",{\"icon\":[1],\"label\":[1],\"language\":[1],\"accessibleLabelNotificationsDefaults\":[1,\"accessible-label-notification-default\"],\"accessibleLabelNotifications\":[1,\"accessible-label-notifications\"],\"badge\":[4],\"theme\":[1025],\"direction\":[1],\"isOpen\":[32],\"hasNotifications\":[32],\"setFocus\":[64],\"open\":[64],\"close\":[64]},[[6,\"focus\",\"handleClickFocusOutside\"],[6,\"click\",\"handleClickFocusOutside\"]]],[1,\"duet-notification\",{\"language\":[1],\"accessibleLabelUnreadDefaults\":[16],\"accessibleLabelUnread\":[1,\"accessible-label-unread\"],\"url\":[1],\"date\":[1],\"highlight\":[4],\"external\":[4],\"theme\":[1025],\"setFocus\":[64]}]]],[\"duet-progress\",[[0,\"duet-progress\",{\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleLabelUploadDefaults\":[1,\"accessible-label-upload-defaults\"],\"accessibleLabelUpload\":[1,\"accessible-label-upload\"],\"progress\":[1538],\"caption\":[1],\"height\":[1],\"theme\":[1025]}]]],[\"duet-upload-aria-status\",[[1,\"duet-upload-aria-status\",{\"statusMessageLabel\":[16],\"accessibleAriaLive\":[1,\"accessible-aria-live\"],\"valid\":[2],\"total\":[2],\"invalid\":[2],\"inprogress\":[2],\"statusMessage\":[32]}]]],[\"duet-badge\",[[1,\"duet-badge\",{\"theme\":[1025],\"variation\":[1],\"margin\":[1]}]]],[\"duet-header_2\",[[1,\"duet-header\",{\"theme\":[1025],\"language\":[1025],\"accessibleI18nLabelsDefaults\":[1,\"accessible-labels-default\"],\"accessibleI18nLabels\":[16],\"accessibleLabelExternalDefaults\":[1,\"accessible-label-external-default\"],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"accessibleLabelDefaults\":[1,\"accessible-label-default\"],\"accessibleLabel\":[1,\"accessible-label\"],\"user\":[8],\"logoHref\":[1,\"logo-href\"],\"currentHref\":[1025,\"current-href\"],\"skipToId\":[1,\"skip-to-id\"],\"items\":[8],\"region\":[1],\"session\":[8],\"search\":[8],\"back\":[8],\"contact\":[1],\"contactItems\":[8,\"contact-items\"],\"languageItems\":[8,\"language-items\"],\"isContactOpen\":[32],\"isLanguageOpen\":[32],\"isSlideOutOpen\":[32],\"isSegmentOpen\":[32],\"openMenu\":[32],\"closedActives\":[32],\"processedItems\":[32],\"processedLanguageItems\":[32],\"processedContactItems\":[32],\"processedSession\":[32],\"processedSearch\":[32],\"processedUser\":[32],\"processedBack\":[32],\"renderDesktopNav\":[32],\"closeMenus\":[64],\"setFocus\":[64]},[[8,\"keyup\",\"handleKeyUp\"],[8,\"keydown\",\"handleKeyDown\"],[4,\"focus\",\"handleDocumentClick\"],[4,\"click\",\"handleDocumentClick\"]]],[1,\"duet-logo\",{\"theme\":[1025],\"margin\":[1],\"inverse\":[4],\"size\":[1],\"href\":[1537],\"language\":[1537],\"setFocus\":[64]}]]],[\"duet-grid_2\",[[2,\"duet-grid\",{\"responsive\":[4],\"breakpoint\":[1],\"direction\":[1],\"alignment\":[1],\"distribution\":[1],\"mobile\":[1],\"distributeFormElement\":[32]}],[2,\"duet-grid-item\",{\"fill\":[4],\"maxWidth\":[1,\"max-width\"],\"minWidth\":[1,\"min-width\"],\"theme\":[1025],\"margin\":[1],\"responsive\":[4],\"breakpoint\":[1]}]]],[\"duet-list_2\",[[1,\"duet-list\",{\"theme\":[1025],\"margin\":[1],\"padding\":[1],\"mobile\":[1],\"breakpoint\":[1],\"variation\":[1],\"labelWidth\":[1,\"label-width\"]}],[1,\"duet-list-item\"]]],[\"duet-editable-table-button\",[[2,\"duet-editable-table-button\",{\"theme\":[1025],\"actions\":[16],\"uid\":[1],\"group\":[1],\"keyName\":[1,\"key-name\"],\"isHovering\":[32]}]]],[\"duet-fieldset\",[[1,\"duet-fieldset\",{\"theme\":[1025],\"margin\":[1],\"caption\":[1],\"label\":[1],\"error\":[1],\"labelHidden\":[4,\"label-hidden\"],\"hasTooltip\":[32]}]]],[\"duet-editable-table_4\",[[1,\"duet-upload\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"external\":[4],\"hideButton\":[4,\"hide-upload-button\"],\"actions\":[1],\"uri\":[1],\"showLinks\":[4,\"show-links\"],\"caption\":[1],\"statusLabelDefaults\":[1,\"status-label-default\"],\"statusMessageLabel\":[1,\"status-message-label\"],\"buttonLabelDefaults\":[1,\"button-label-default\"],\"buttonLabel\":[1,\"button-label\"],\"accessibleButtonLabel\":[1,\"accessible-button-label\"],\"theme\":[1025],\"disabled\":[516],\"identifier\":[1],\"margin\":[1],\"required\":[4],\"groups\":[1],\"alignment\":[1],\"hideGroups\":[4,\"hide-table-labels\"],\"files\":[1040],\"valid\":[1540],\"labelDefaults\":[1,\"label-default\"],\"label\":[1],\"descriptionDefaults\":[1,\"description-default\"],\"description\":[1],\"fileListEmptyDefaults\":[1,\"list-empty-default\"],\"fileListEmpty\":[1,\"file-list-empty\"],\"error\":[1],\"name\":[1],\"maxBytes\":[2,\"max-bytes\"],\"maxBytesTotal\":[2,\"max-bytes-total\"],\"maxFiles\":[2,\"max-files\"],\"allowedExtensions\":[1,\"allowed-extensions\"],\"allowedMimetypes\":[1,\"allowed-mimetypes\"],\"multiple\":[4],\"limitSelection\":[4,\"limit-selection\"],\"value\":[1025],\"tick\":[32],\"setFocus\":[64],\"upload\":[64],\"refresh\":[64],\"getFiles\":[64],\"updateValue\":[64]}],[1,\"duet-editable-table\",{\"items\":[1040],\"alignment\":[1],\"groupsLabelDefaults\":[16],\"actionLabelDefaults\":[16],\"groups\":[1],\"actions\":[1],\"hideGroups\":[4,\"hide-table-labels\"],\"accessibleRole\":[1,\"accessible-role\"],\"theme\":[1025],\"tick\":[32],\"updateTable\":[64]}],[1,\"duet-editable-table-item\",{\"theme\":[1025],\"actions\":[16],\"groupId\":[1,\"group-id\"],\"alignment\":[1],\"keyName\":[1,\"key-name\"],\"data\":[1040],\"isHovering\":[32]}],[4,\"duet-table\",{\"theme\":[1025],\"margin\":[1],\"variation\":[1],\"sticky\":[4],\"stickyDistance\":[1,\"sticky-distance\"],\"breakpoint\":[1],\"matchesBreakpoint\":[32]}]]],[\"duet-tooltip\",[[1,\"duet-tooltip\",{\"theme\":[1025],\"language\":[1025],\"accessibleLabelDefault\":[1,\"accessible-label-default\"],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleInputLabel\":[1,\"accessible-input-label\"],\"accessibleCloseLabelDefault\":[1,\"accessible-close-label-default\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"label\":[1],\"breakpoint\":[1],\"direction\":[1],\"positionVertical\":[513,\"position-vertical\"],\"positionHorizontal\":[513,\"position-horizontal\"],\"active\":[1540],\"openDown\":[32]},[[9,\"scroll\",\"onScroll\"],[4,\"click\",\"handleDocumentClick\"]]]]],[\"duet-input_2\",[[6,\"duet-input\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleAutocomplete\":[1,\"accessible-autocomplete\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"debounce\":[2],\"caption\":[1],\"echoPlaceholder\":[4,\"echo-placeholder\"],\"theme\":[1025],\"expand\":[4],\"disabled\":[516],\"identifier\":[1],\"margin\":[1],\"required\":[4],\"type\":[1],\"label\":[1],\"error\":[1],\"labelHidden\":[4,\"label-hidden\"],\"numericKeyboard\":[4,\"numeric-keyboard\"],\"name\":[1],\"pattern\":[1],\"maxlength\":[2],\"minlength\":[2],\"placeholder\":[1],\"component\":[1],\"role\":[1],\"icon\":[1],\"autoComplete\":[1,\"auto-complete\"],\"disallowPattern\":[1,\"disallow-pattern\"],\"value\":[1025],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"setFocus\":[64]}],[6,\"duet-label\",{\"theme\":[1025],\"for\":[1],\"margin\":[1],\"size\":[1]}]]]]"), options);
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { t as tokens } from './tokens.module-49cbf963.js';
|
|
5
|
+
|
|
6
|
+
const allowedThemes = ["turva"];
|
|
7
|
+
function isDashCase(str) {
|
|
8
|
+
const dash = str.includes("-");
|
|
9
|
+
const barredString = str.includes(" ") || str.includes("_");
|
|
10
|
+
const barredStartingString = str.charAt(0) === "-";
|
|
11
|
+
return dash && !barredString && !barredStartingString;
|
|
12
|
+
}
|
|
13
|
+
function capitalize(str = "") {
|
|
14
|
+
return `${str.charAt(0).toUpperCase()}${str.slice(1)}`;
|
|
15
|
+
}
|
|
16
|
+
function lowerCaseFirst(str = "") {
|
|
17
|
+
return `${str.charAt(0).toLowerCase()}${str.slice(1)}`;
|
|
18
|
+
}
|
|
19
|
+
function camelize(str = "") {
|
|
20
|
+
const arr = str.split("-");
|
|
21
|
+
//loop through each element of the array and capitalize the first letter.'
|
|
22
|
+
arr.forEach((string, index) => {
|
|
23
|
+
arr[index] = capitalize(string);
|
|
24
|
+
});
|
|
25
|
+
return arr.join("");
|
|
26
|
+
}
|
|
27
|
+
function getTheme(theme = "") {
|
|
28
|
+
if (allowedThemes.includes(theme.toLowerCase())) {
|
|
29
|
+
return theme.toLowerCase();
|
|
30
|
+
}
|
|
31
|
+
return "";
|
|
32
|
+
}
|
|
33
|
+
function hasColor(str = "") {
|
|
34
|
+
return str.indexOf("Color") === 0 || str.indexOf("color") === 0;
|
|
35
|
+
}
|
|
36
|
+
function addColor(str = "") {
|
|
37
|
+
if (str && !isDashCase(str) && !hasColor(str)) {
|
|
38
|
+
return `color${capitalize(str)}`;
|
|
39
|
+
}
|
|
40
|
+
return str;
|
|
41
|
+
}
|
|
42
|
+
function addTheme(str, theme) {
|
|
43
|
+
const hasTheme = getTheme(theme).length;
|
|
44
|
+
if (hasTheme && str.indexOf(theme) === -1) {
|
|
45
|
+
return `${str}${capitalize(theme)}`;
|
|
46
|
+
}
|
|
47
|
+
return str;
|
|
48
|
+
}
|
|
49
|
+
function getColorByName(name, theme = "") {
|
|
50
|
+
if (!name) {
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
const defaultColor = convertToColorName(name);
|
|
54
|
+
const themedColor = convertToColorName(name, theme);
|
|
55
|
+
// lets just try to get the color first to save some cycles
|
|
56
|
+
let resolvedToken = tokens[themedColor];
|
|
57
|
+
if (!resolvedToken) {
|
|
58
|
+
resolvedToken = tokens[defaultColor];
|
|
59
|
+
}
|
|
60
|
+
return resolvedToken;
|
|
61
|
+
}
|
|
62
|
+
function convertToColorName(name = "", theme = "") {
|
|
63
|
+
let colorResolution = name;
|
|
64
|
+
const dash = isDashCase(name);
|
|
65
|
+
if (dash) {
|
|
66
|
+
colorResolution = camelize(colorResolution);
|
|
67
|
+
}
|
|
68
|
+
colorResolution = addColor(colorResolution);
|
|
69
|
+
colorResolution = addTheme(colorResolution, theme);
|
|
70
|
+
// takes care of the case where colorPrimaryDark ends up with ColorPrimaryDark
|
|
71
|
+
colorResolution = lowerCaseFirst(colorResolution);
|
|
72
|
+
return colorResolution;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export { getColorByName as g };
|
|
File without changes
|
|
@@ -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-ddb14345.js";import{g as getLocaleString}from"./language-utils-344d894c.js";import{i as inheritGlobalTheme}from"./themeable-component-572685dd.js";import"./string-utils-2f1793b8.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.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,{tabindex:"0",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",null,h("slot",null))),this.dismissible&&h("div",{class:"duet-alert-dismiss"},h("duet-button",{variation:"plain",accessibleLabel:this.accessibleLabel,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};
|
|
@@ -1,4 +1,4 @@
|
|
|
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-ddb14345.js";import{i as inheritGlobalTheme}from"./themeable-component-572685dd.js";var duetBadgeCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:4px !important;margin-bottom:2px !important;display:inline-block;width:auto;vertical-align:middle}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-badge{width:100%;padding:4.4444444444px 12px 5.4444444444px;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.75rem;font-style:normal;font-weight:600;line-height:1.25;color:#00294d;text-align:center;word-break:break-word;vertical-align:middle;background:#e6f1f7;border-radius:20rem}.duet-badge.duet-p-0{padding:0 !important}.duet-badge.duet-m-0{margin:0 !important}.duet-badge.duet-theme-turva{padding:5.4444444444px 12px 4.4444444444px;font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:700;color:#171c3a;background:#e8e8eb}.duet-badge.warning{background:#fef3df}.duet-badge.warning.duet-theme-turva{background:#fef1db}.duet-badge.danger{background:#fce9ef}.duet-badge.danger.duet-theme-turva{background:#fceae7}.duet-badge.success{background:#e6f3ef}.duet-badge.success.duet-theme-turva{background:#e6f3ed}';var DuetBadge=function(){function e(e){registerInstance(this,e);this.theme="";this.variation="default";this.margin="auto"}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e;return h(Host,{class:{"duet-m-0":this.margin==="none"}},h("div",{class:(e={"duet-badge":true},e[this.variation]=true,e["duet-theme-turva"]=this.theme==="turva",e)},h("slot",null)))};return e}();DuetBadge.style=duetBadgeCss;export{DuetBadge as duet_badge};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(t,e,o,n){function r(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,i){function a(t){try{d(n.next(t))}catch(e){i(e)}}function u(t){try{d(n["throw"](t))}catch(e){i(e)}}function d(t){t.done?o(t.value):r(t.value).then(a,u)}d((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(t){return function(e){return d([t,e])}}function d(a){if(n)throw new TypeError("Generator is already executing.");while(o)try{if(n=1,r&&(i=a[0]&2?r["return"]:a[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;if(r=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:o.label++;return{value:a[1],done:false};case 5:o.label++;r=a[1];a=[0];continue;case 7:a=o.ops.pop();o.trys.pop();continue;default:if(!(i=o.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1];i=a;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(a);break}if(i[2])o.ops.pop();o.trys.pop();continue}a=e.call(t,o)}catch(u){a=[6,u];r=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[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-05e43a37.js";import{D as DuetStringsExternalDefaults}from"./common-strings-97e04e4b.js";import{a as getLanguage,g as getLocaleString}from"./language-utils-344d894c.js";import{i as inheritGlobalTheme}from"./themeable-component-572685dd.js";import{g as getColorByName}from"./token-utils-590d9413.js";import"./string-utils-2f1793b8.js";import"./tokens.module-49cbf963.js";var duetButtonCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;position:relative;z-index:1;display:inline-flex;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){:host{width:100%}}:host(.duet-small){margin-right:2px !important;margin-bottom:8px !important}:host(.duet-small):last-child,:host(.duet-small):last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){:host(.duet-small){width:auto}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}:host(.duet-fixed){width:auto !important}:host(:last-child){margin-right:0 !important}.duet-button-container{position:relative;width:100%}.duet-button{padding:14px 27px 15px !important;-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;min-width:8rem;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.1;color:#0077b3 !important;text-align:center;text-decoration:none;cursor:pointer;background:transparent;border-style:solid;border-width:2px;border-radius:20rem;transition:background-color 300ms ease, color 300ms ease, border 300ms ease, box-shadow 300ms ease}.duet-button.duet-p-0{padding:0 !important}.duet-button.duet-m-0{margin:0 !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only){padding:9px 19px 10px !important;min-width:5.3333333333rem;font-size:0.875rem}.duet-button.duet-button-is-small:not(.duet-button-icon-only).icon{padding-left:48px !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only).icon-right{padding-right:48px !important;padding-left:20px !important}.duet-theme-turva .duet-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:#c60c30 !important}.duet-button .duet-button-contents{position:relative;display:inline-block;margin:0 auto;pointer-events:none}.duet-button.duet-no-wrap{white-space:nowrap}.duet-button.icon{padding-left:52px !important}.duet-button.icon-right{padding-right:52px !important;padding-left:28px !important}.duet-button svg{width:100%;min-width:100%;fill:currentColor}.duet-button .duet-button-icon{position:absolute;top:50%;left:-28px;display:flex;align-items:center;justify-content:center;width:16px;height:16px;margin:0 !important;transform:translateY(-50%)}.duet-button .duet-button-icon duet-icon{width:16px;height:16px}.duet-button .duet-button-icon.right{right:-28px;left:auto}.duet-button .duet-button-icon.large{left:-32px;width:20px;height:20px}.duet-button .duet-button-icon.large duet-icon{width:20px;height:20px}.duet-button .duet-button-icon.large.right{right:-32px;left:auto}.duet-button .duet-button-icon.medium-small{left:-16px;width:10px;height:10px;padding-top:1px}.duet-button .duet-button-icon.medium-small duet-icon{width:10px;height:10px}.duet-button .duet-button-icon.medium-small.right{right:-16px;left:auto}.duet-button .duet-button-icon.small{left:-16px;width:7px;height:7px}.duet-button .duet-button-icon.small duet-icon{width:7px;height:7px}.duet-button .duet-button-icon.small.right{right:-16px;left:auto}.duet-button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-button:active{opacity:0.75;transition:none}.duet-button.default{border-color:#e1e3e6}.duet-theme-turva .duet-button.default{color:#c60c30 !important;border-color:#e4e4e6}.duet-button.default:hover{border-color:#0077b3}.duet-theme-turva .duet-button.default:hover{border-color:#c60c30}.duet-button.default.duet-button-negative{background-color:white}.duet-theme-turva .duet-button.default.duet-button-negative{background-color:#e4e4e6 !important}.duet-button.default.duet-button-negative:hover{color:#0077b3 !important;border-color:#0077b3}.duet-theme-turva .duet-button.default.duet-button-negative:hover{color:#c60c30 !important;border-color:#c60c30}.duet-button.primary{color:white !important;background:#0077b3;border-color:#0077b3}.duet-theme-turva .duet-button.primary{color:white !important;background:#c60c30;border-color:#c60c30}.duet-button.primary:hover{background:#005f8f;border-color:#005f8f;box-shadow:0 4px 20px rgba(34, 34, 34, 0.1)}.duet-theme-turva .duet-button.primary:hover{background:#940925;border-color:#940925}.duet-button.primary:focus{outline:0;box-shadow:0 0 0 1px white, 0 0 0 4px rgba(0, 119, 179, 0.75)}.duet-theme-turva .duet-button.primary:focus{box-shadow:0 0 0 1px white, 0 0 0 4px rgba(23, 28, 58, 0.7)}.duet-button.secondary{color:#00294d !important;background:transparent;border-color:#00294d}.duet-theme-turva .duet-button.secondary{color:#171c3a !important;border-color:#171c3a}.duet-button.secondary:hover{color:#0077b3 !important;border-color:#0077b3}.duet-theme-turva .duet-button.secondary:hover{color:#c60c30 !important;border-color:#c60c30}.duet-button.secondary.duet-button-negative{color:#e1e3e6 !important;border-color:white}.duet-theme-turva .duet-button.secondary.duet-button-negative{color:#e4e4e6 !important}.duet-button.secondary.duet-button-negative:hover{color:#0077b3 !important;border-color:#0077b3}.duet-theme-turva .duet-button.secondary.duet-button-negative:hover{color:#c60c30 !important;border-color:#c60c30}.duet-button.negative{color:#00294d !important;background:white;border-color:white}.duet-theme-turva .duet-button.negative{color:#171c3a !important}.duet-button.negative:hover{color:white !important;background:transparent;border-color:white}.duet-button.negative:focus{outline:0;box-shadow:0 0 0 1px #00294d, 0 0 0 4px rgba(255, 255, 255, 0.7)}.duet-theme-turva .duet-button.negative:focus{box-shadow:0 0 0 1px #171c3a, 0 0 0 4px rgba(255, 255, 255, 0.7)}.duet-button.destructive{color:#de2362 !important;background:white;border-color:#de2362}.duet-theme-turva .duet-button.destructive{color:#e02a0d !important;background:white;border-color:#e02a0d}.duet-button.destructive:hover{color:white !important;background:#b21c4e;border-color:#b21c4e}.duet-theme-turva .duet-button.destructive:hover{color:white !important;background:#b3220a;border-color:#b3220a}.duet-button.plain{min-width:48px;padding-right:0 !important;padding-left:0 !important;line-height:1.5;text-align:left;background:transparent;border:0;border-color:transparent;border-radius:4px}.duet-theme-turva .duet-button.plain{color:#c60c30 !important;background:transparent;border-color:transparent}.duet-button.plain.icon{padding-left:20px !important}.duet-button.plain.icon.icon-right{padding-right:20px !important;padding-left:0 !important}.duet-button.plain.icon.medium{padding-left:24px !important}.duet-button.plain.icon.medium.icon-right{padding-right:24px !important;padding-left:0 !important}.duet-button.plain.icon.large{padding-left:30px !important}.duet-button.plain.icon.large.icon-right{padding-right:30px !important;padding-left:0 !important}.duet-button.plain .duet-button-icon.left{left:-16.6666666667px !important}.duet-button.plain .duet-button-icon.left.medium{left:-24px !important}.duet-button.plain .duet-button-icon.left.large{left:-30px !important}.duet-button.plain .duet-button-icon.right{right:-16.6666666667px !important}.duet-button.plain .duet-button-icon.right.medium{right:-24px !important}.duet-button.plain .duet-button-icon.right.large{right:-30px !important}.duet-button.plain[disabled]{color:#657787 !important;background:transparent !important;border-color:transparent !important}.duet-theme-turva .duet-button.plain[disabled]{color:transparent !important;background:transparent !important;border-color:#e4e4e6 !important}.duet-button.plain:hover{color:#004d80 !important;background:transparent !important}.duet-theme-turva .duet-button.plain:hover{color:#940925 !important}.duet-button.plain.duet-button-negative{color:white !important}.duet-theme-turva .duet-button.plain.duet-button-negative{color:#e4e4e6 !important}.duet-button.plain.duet-button-negative:hover{color:#0077b3 !important}.duet-theme-turva .duet-button.plain.duet-button-negative:hover{color:#c60c30 !important}.duet-button.duet-button-icon-only{min-width:48px;min-height:48px;padding:0 !important}.duet-button.duet-button-icon-only .duet-button-contents{position:static}.duet-button.duet-button-icon-only .duet-button-icon.left.large,.duet-button.duet-button-icon-only .duet-button-icon.left.medium,.duet-button.duet-button-icon-only .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button[disabled],.duet-button[disabled]:hover,.duet-button.duet-button-negative[disabled],.duet-button.duet-button-negative[disabled]:hover{color:#657787 !important;background:#e1e3e6 !important;border-color:#e1e3e6 !important;box-shadow:none !important}.duet-theme-turva .duet-button[disabled],.duet-theme-turva .duet-button[disabled]:hover,.duet-theme-turva .duet-button.duet-button-negative [disabled],.duet-theme-turva .duet-button.duet-button-negative [disabled]:hover{color:#747475 !important;background:#e4e4e6 !important;border-color:#e4e4e6 !important}.duet-button-is-loading.primary{color:white}.duet-button-is-loading.default{color:#0077b3}.duet-button-is-loading.default.duet-theme-turva{color:#c60c30}.duet-button-is-loading .duet-button-contents{visibility:hidden;opacity:0}';var DuetButton=function(){function t(t){var e=this;registerInstance(this,t);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.loading=false;this.variation="default";this.negative=false;this.theme="";this.margin="auto";this.padding="auto";this.wrapping="auto";this.expand=false;this.fixed=false;this.disabled=false;this.submit=false;this.external=false;this.language=getLanguage();this.accessibleLabelExternalDefaults=DuetStringsExternalDefaults;this.accessibleLabelExternal=getLocaleString(this.accessibleLabelExternalDefaults);this.icon="";this.color="";this.iconRight=false;this.iconSize="medium";this.size="medium";this.iconOnly=false;this.handleClick=function(t){if(!e.url&&e.element.closest("form")){t.preventDefault();e.proxyButton.click()}};this.onFocus=function(){e.duetFocus.emit()};this.onBlur=function(){e.duetBlur.emit()}}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);if(this.url&&this.external&&this.icon){console.warn("[DUET]: Button used as an external link will override any icon that is set")}};t.prototype.connectedCallback=function(){this.proxyButton=document.createElement("button");this.proxyButton.style.display="none";this.syncToProxyButton();if(!this.url&&this.element.closest("form")){this.element.insertAdjacentElement("beforebegin",this.proxyButton)}};t.prototype.disconnectedCallback=function(){this.proxyButton.remove();this.proxyButton=null};t.prototype.syncToProxyButton=function(){this.proxyButton.type=this.getButtonType();this.proxyButton.disabled=this.disabled;if(this.name!=null){this.proxyButton.name=this.name}else{this.proxyButton.removeAttribute("name")}if(this.value!=null){this.proxyButton.value=this.value}else{this.proxyButton.removeAttribute("value")}};t.prototype.getButtonType=function(){return this.submit?"submit":"button"};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeButton){this.nativeButton.focus(t)}return[2]}))}))};t.prototype.render=function(){var t,e,o;var n=this;var r=this.external&&this.url;var i=r?"action-new-window":this.icon;var a=r?true:this.iconRight;var u=h("span",{class:"duet-button-contents",style:{color:getColorByName(this.color)}},i&&h("div",{"aria-hidden":"true",class:(t={"duet-button-icon":true,left:!a,right:a},t[this.iconSize]=true,t)},h("duet-icon",{size:"auto",margin:"none",name:i,color:"currentColor"})),h("slot",null));var d={onFocus:this.onFocus,onBlur:this.onBlur,ref:function(t){return n.nativeButton=t},id:this.identifier,class:(e={"duet-m-0":this.margin==="none","duet-p-0":this.padding==="none","duet-no-wrap":this.wrapping==="none","duet-button":true,"duet-button-is-small":this.size==="small","duet-button-icon-only":this.iconOnly,"duet-button-negative":this.negative||this.variation==="negative"},e[this.variation]=true,e.disabled=this.disabled,e.icon=!!i,e["icon-right"]=a,e[this.iconSize]=true,e),"aria-controls":this.accessibleControls,"aria-label":this.accessibleLabel,"aria-expanded":this.accessibleExpanded!=null?this.accessibleExpanded.toString():undefined,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy};return h(Host,{onClick:this.handleClick,class:{"duet-m-0":this.margin==="none","duet-small":this.size==="small","duet-fixed":this.fixed,"duet-expand":this.expand}},h("div",{class:(o={"duet-button-container":true,"duet-button-is-loading":this.loading,"duet-theme-turva":this.theme==="turva","duet-button-negative":this.negative||this.variation==="negative"},o[this.variation]=true,o)},this.url?h("a",Object.assign({},d,{href:this.url,target:this.external?"_blank":"_self"}),u,this.external&&h("duet-visually-hidden",null,", ",this.accessibleLabelExternal)):h("button",Object.assign({},d,{type:this.getButtonType(),disabled:this.disabled,name:this.name,value:this.value,"aria-pressed":this.accessiblePressed!=null?this.accessiblePressed.toString():undefined}),u),this.loading&&h("duet-spinner",{color:"currentColor"})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["syncToProxyButton"],submit:["syncToProxyButton"],value:["syncToProxyButton"],name:["syncToProxyButton"]}},enumerable:false,configurable:true});return t}();DuetButton.style=duetButtonCss;var duetSpinnerCss=':host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute;top:50%;left:50%;z-index:800;max-width:100%}:host(.duet-theme-default) .duet-spinner{color:#0077b3 !important}:host(.duet-theme-turva) .duet-spinner{color:#c60c30 !important}:host(.duet-custom-color){color:inherit}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-spinner{-webkit-user-select:none;user-select:none;position:absolute;top:50%;left:50%;z-index:800;width:24px;height:24px;color:#0077b3;border:2px solid transparent;border-left:2px solid currentColor;border-radius:50%;transform:translateZ(0) translateX(-50%) translateY(-50%);transform-origin:0% 0%;animation:duetRotate 0.6s linear infinite}.duet-spinner::after{position:absolute;top:50%;left:50%;z-index:200;box-sizing:content-box;width:100%;height:100%;overflow:hidden;content:"";border:2px solid currentColor;border-radius:50%;opacity:0.3;transform:translateZ(0) translateX(-50%) translateY(-50%);transform-origin:0% 0%}.duet-spinner.medium{width:36px;height:36px;border-width:4px}.duet-spinner.medium::after{border-width:4px}.duet-spinner.large{width:72px;height:72px;border-width:8px}.duet-spinner.large::after{border-width:8px}@keyframes duetRotate{0%{transform:translateZ(0) rotate(0deg) translateX(-50%) translateY(-50%)}100%{transform:translateZ(0) rotate(360deg) translateX(-50%) translateY(-50%)}}';var DuetSpinner=function(){function t(t){registerInstance(this,t);this.color="gray-lightest";this.size="small";this.theme=""}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.render=function(){var t;var e=this.color==="currentColor"?"currentColor":getColorByName(this.color);return h(Host,{class:{"duet-custom-color":this.color!=="currentColor"&&this.theme!=="turva"&&this.theme!=="default","duet-theme-turva":this.theme==="turva"&&this.color!=="currentColor","duet-theme-default":this.theme==="default"&&this.color!=="currentColor"}},h("div",{class:(t={"duet-spinner":true},t[this.size]=true,t),style:{color:e},"aria-label":this.accessibleLabel}))};return t}();DuetSpinner.style=duetSpinnerCss;export{DuetButton as duet_button,DuetSpinner as duet_spinner};
|
|
4
|
+
*/import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-ddb14345.js";import{D as DuetStringsExternalDefaults}from"./common-strings-97e04e4b.js";import{a as getLanguage,g as getLocaleString}from"./language-utils-344d894c.js";import{i as inheritGlobalTheme}from"./themeable-component-572685dd.js";import{g as getColorByName}from"./token-utils-75f78ca4.js";import"./string-utils-2f1793b8.js";import"./tokens.module-49cbf963.js";var duetButtonCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;position:relative;z-index:1;display:inline-flex;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){:host{width:100%}}:host(.duet-small){margin-right:2px !important;margin-bottom:8px !important}:host(.duet-small):last-child,:host(.duet-small):last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){:host(.duet-small){width:auto}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}:host(.duet-fixed){width:auto !important}:host(:last-child){margin-right:0 !important}.duet-button-container{position:relative;width:100%}.duet-button{padding:14px 27px 15px !important;-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;min-width:8rem;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.1;color:#0077b3 !important;text-align:center;text-decoration:none;cursor:pointer;background:transparent;border-style:solid;border-width:2px;border-radius:20rem;transition:background-color 300ms ease, color 300ms ease, border 300ms ease, box-shadow 300ms ease}.duet-button.duet-p-0{padding:0 !important}.duet-button.duet-m-0{margin:0 !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only){padding:9px 19px 10px !important;min-width:5.3333333333rem;font-size:0.875rem}.duet-button.duet-button-is-small:not(.duet-button-icon-only).icon{padding-left:48px !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only).icon-right{padding-right:48px !important;padding-left:20px !important}.duet-theme-turva .duet-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:#c60c30 !important}.duet-button .duet-button-contents{position:relative;display:inline-block;margin:0 auto;pointer-events:none}.duet-button.duet-no-wrap{white-space:nowrap}.duet-button.icon{padding-left:52px !important}.duet-button.icon-right{padding-right:52px !important;padding-left:28px !important}.duet-button svg{width:100%;min-width:100%;fill:currentColor}.duet-button .duet-button-icon{position:absolute;top:50%;left:-28px;display:flex;align-items:center;justify-content:center;width:16px;height:16px;margin:0 !important;transform:translateY(-50%)}.duet-button .duet-button-icon duet-icon{width:16px;height:16px}.duet-button .duet-button-icon.right{right:-28px;left:auto}.duet-button .duet-button-icon.large{left:-32px;width:20px;height:20px}.duet-button .duet-button-icon.large duet-icon{width:20px;height:20px}.duet-button .duet-button-icon.large.right{right:-32px;left:auto}.duet-button .duet-button-icon.medium-small{left:-16px;width:10px;height:10px;padding-top:1px}.duet-button .duet-button-icon.medium-small duet-icon{width:10px;height:10px}.duet-button .duet-button-icon.medium-small.right{right:-16px;left:auto}.duet-button .duet-button-icon.small{left:-16px;width:7px;height:7px}.duet-button .duet-button-icon.small duet-icon{width:7px;height:7px}.duet-button .duet-button-icon.small.right{right:-16px;left:auto}.duet-button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-button:active{opacity:0.75;transition:none}.duet-button.default{border-color:#e1e3e6}.duet-theme-turva .duet-button.default{color:#c60c30 !important;border-color:#e4e4e6}.duet-button.default:hover{border-color:#0077b3}.duet-theme-turva .duet-button.default:hover{border-color:#c60c30}.duet-button.default.duet-button-negative{background-color:white}.duet-theme-turva .duet-button.default.duet-button-negative{background-color:#e4e4e6 !important}.duet-button.default.duet-button-negative:hover{color:#0077b3 !important;border-color:#0077b3}.duet-theme-turva .duet-button.default.duet-button-negative:hover{color:#c60c30 !important;border-color:#c60c30}.duet-button.primary{color:white !important;background:#0077b3;border-color:#0077b3}.duet-theme-turva .duet-button.primary{color:white !important;background:#c60c30;border-color:#c60c30}.duet-button.primary:hover{background:#005f8f;border-color:#005f8f;box-shadow:0 4px 20px rgba(34, 34, 34, 0.1)}.duet-theme-turva .duet-button.primary:hover{background:#940925;border-color:#940925}.duet-button.primary:focus{outline:0;box-shadow:0 0 0 1px white, 0 0 0 4px rgba(0, 119, 179, 0.75)}.duet-theme-turva .duet-button.primary:focus{box-shadow:0 0 0 1px white, 0 0 0 4px rgba(23, 28, 58, 0.7)}.duet-button.secondary{color:#00294d !important;background:transparent;border-color:#00294d}.duet-theme-turva .duet-button.secondary{color:#171c3a !important;border-color:#171c3a}.duet-button.secondary:hover{color:#0077b3 !important;border-color:#0077b3}.duet-theme-turva .duet-button.secondary:hover{color:#c60c30 !important;border-color:#c60c30}.duet-button.secondary.duet-button-negative{color:#e1e3e6 !important;border-color:white}.duet-theme-turva .duet-button.secondary.duet-button-negative{color:#e4e4e6 !important}.duet-button.secondary.duet-button-negative:hover{color:#0077b3 !important;border-color:#0077b3}.duet-theme-turva .duet-button.secondary.duet-button-negative:hover{color:#c60c30 !important;border-color:#c60c30}.duet-button.negative{color:#00294d !important;background:white;border-color:white}.duet-theme-turva .duet-button.negative{color:#171c3a !important}.duet-button.negative:hover{color:white !important;background:transparent;border-color:white}.duet-button.negative:focus{outline:0;box-shadow:0 0 0 1px #00294d, 0 0 0 4px rgba(255, 255, 255, 0.7)}.duet-theme-turva .duet-button.negative:focus{box-shadow:0 0 0 1px #171c3a, 0 0 0 4px rgba(255, 255, 255, 0.7)}.duet-button.destructive-primary{color:white !important;background:#de2362;border-color:#de2362}.duet-theme-turva .duet-button.destructive-primary{color:white !important;background:#e02a0d;border-color:#e02a0d}.duet-button.destructive-primary:hover{background:#b21c4e;box-shadow:0 4px 20px rgba(34, 34, 34, 0.1)}.duet-theme-turva .duet-button.destructive-primary:hover{background:#b3220a}.duet-button.destructive,.duet-button.destructive-secondary{color:#de2362 !important;background:white;border-color:#de2362}.duet-theme-turva .duet-button.destructive,.duet-theme-turva .duet-button.destructive-secondary{color:#e02a0d !important;background:white;border-color:#e02a0d}.duet-button.destructive:hover,.duet-button.destructive-secondary:hover{color:white !important;background:#b21c4e;border-color:#b21c4e}.duet-theme-turva .duet-button.destructive:hover,.duet-theme-turva .duet-button.destructive-secondary:hover{color:white !important;background:#b3220a;border-color:#b3220a}.duet-button.plain{min-width:48px;padding-right:0 !important;padding-left:0 !important;line-height:1.5;text-align:left;background:transparent;border:0;border-color:transparent;border-radius:4px}.duet-theme-turva .duet-button.plain{color:#c60c30 !important;background:transparent;border-color:transparent}.duet-button.plain.icon{padding-left:20px !important}.duet-button.plain.icon.icon-right{padding-right:20px !important;padding-left:0 !important}.duet-button.plain.icon.medium{padding-left:24px !important}.duet-button.plain.icon.medium.icon-right{padding-right:24px !important;padding-left:0 !important}.duet-button.plain.icon.large{padding-left:30px !important}.duet-button.plain.icon.large.icon-right{padding-right:30px !important;padding-left:0 !important}.duet-button.plain .duet-button-icon.left{left:-16.6666666667px !important}.duet-button.plain .duet-button-icon.left.medium{left:-24px !important}.duet-button.plain .duet-button-icon.left.large{left:-30px !important}.duet-button.plain .duet-button-icon.right{right:-16.6666666667px !important}.duet-button.plain .duet-button-icon.right.medium{right:-24px !important}.duet-button.plain .duet-button-icon.right.large{right:-30px !important}.duet-button.plain[disabled]{color:#657787 !important;background:transparent !important;border-color:transparent !important}.duet-theme-turva .duet-button.plain[disabled]{color:transparent !important;background:transparent !important;border-color:#e4e4e6 !important}.duet-button.plain:hover{color:#004d80 !important;background:transparent !important}.duet-theme-turva .duet-button.plain:hover{color:#940925 !important}.duet-button.plain.duet-button-negative{color:white !important}.duet-theme-turva .duet-button.plain.duet-button-negative{color:#e4e4e6 !important}.duet-button.plain.duet-button-negative:hover{color:#0077b3 !important}.duet-theme-turva .duet-button.plain.duet-button-negative:hover{color:#c60c30 !important}.duet-button.duet-button-icon-only{min-width:48px;min-height:48px;padding:0 !important}.duet-button.duet-button-icon-only .duet-button-contents{position:static}.duet-button.duet-button-icon-only .duet-button-icon.left.large,.duet-button.duet-button-icon-only .duet-button-icon.left.medium,.duet-button.duet-button-icon-only .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button[disabled],.duet-button[disabled]:hover,.duet-button.duet-button-negative[disabled],.duet-button.duet-button-negative[disabled]:hover{color:#657787 !important;background:#e1e3e6 !important;border-color:#e1e3e6 !important;box-shadow:none !important}.duet-theme-turva .duet-button[disabled],.duet-theme-turva .duet-button[disabled]:hover,.duet-theme-turva .duet-button.duet-button-negative [disabled],.duet-theme-turva .duet-button.duet-button-negative [disabled]:hover{color:#747475 !important;background:#e4e4e6 !important;border-color:#e4e4e6 !important}.duet-button-is-loading.primary{color:white}.duet-button-is-loading.default{color:#0077b3}.duet-button-is-loading.default.duet-theme-turva{color:#c60c30}.duet-button-is-loading .duet-button-contents{visibility:hidden;opacity:0}';var DuetButton=function(){function t(t){var e=this;registerInstance(this,t);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.loading=false;this.variation="default";this.negative=false;this.theme="";this.margin="auto";this.padding="auto";this.wrapping="auto";this.expand=false;this.fixed=false;this.disabled=false;this.submit=false;this.external=false;this.language=getLanguage();this.accessibleLabelExternalDefaults=DuetStringsExternalDefaults;this.accessibleLabelExternal=getLocaleString(this.accessibleLabelExternalDefaults);this.icon="";this.color="";this.iconRight=false;this.iconSize="medium";this.size="medium";this.iconOnly=false;this.handleClick=function(t){if(!e.url&&e.element.closest("form")){t.preventDefault();e.proxyButton.click()}};this.onFocus=function(){e.duetFocus.emit()};this.onBlur=function(){e.duetBlur.emit()}}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);if(this.url&&this.external&&this.icon){console.warn("[DUET]: Button used as an external link will override any icon that is set")}};t.prototype.connectedCallback=function(){this.proxyButton=document.createElement("button");this.proxyButton.style.display="none";this.syncToProxyButton();if(!this.url&&this.element.closest("form")){this.element.insertAdjacentElement("beforebegin",this.proxyButton)}};t.prototype.disconnectedCallback=function(){this.proxyButton.remove();this.proxyButton=null};t.prototype.syncToProxyButton=function(){this.proxyButton.type=this.getButtonType();this.proxyButton.disabled=this.disabled;if(this.name!=null){this.proxyButton.name=this.name}else{this.proxyButton.removeAttribute("name")}if(this.value!=null){this.proxyButton.value=this.value}else{this.proxyButton.removeAttribute("value")}};t.prototype.getButtonType=function(){return this.submit?"submit":"button"};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeButton){this.nativeButton.focus(t)}return[2]}))}))};t.prototype.render=function(){var t,e,o;var n=this;var r=this.external&&this.url;var i=r?"action-new-window":this.icon;var a=r?true:this.iconRight;var u=h("span",{class:"duet-button-contents",style:{color:getColorByName(this.color)}},i&&h("div",{"aria-hidden":"true",class:(t={"duet-button-icon":true,left:!a,right:a},t[this.iconSize]=true,t)},h("duet-icon",{size:"auto",margin:"none",name:i,color:"currentColor"})),h("slot",null));var d={onFocus:this.onFocus,onBlur:this.onBlur,ref:function(t){return n.nativeButton=t},id:this.identifier,class:(e={"duet-m-0":this.margin==="none","duet-p-0":this.padding==="none","duet-no-wrap":this.wrapping==="none","duet-button":true,"duet-button-is-small":this.size==="small","duet-button-icon-only":this.iconOnly,"duet-button-negative":this.negative||this.variation==="negative"},e[this.variation]=true,e.disabled=this.disabled,e.icon=!!i,e["icon-right"]=a,e[this.iconSize]=true,e),"aria-controls":this.accessibleControls,"aria-label":this.accessibleLabel,"aria-expanded":this.accessibleExpanded!=null?this.accessibleExpanded.toString():undefined,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy};return h(Host,{onClick:this.handleClick,class:{"duet-m-0":this.margin==="none","duet-small":this.size==="small","duet-fixed":this.fixed,"duet-expand":this.expand}},h("div",{class:(o={"duet-button-container":true,"duet-button-is-loading":this.loading,"duet-theme-turva":this.theme==="turva","duet-button-negative":this.negative||this.variation==="negative"},o[this.variation]=true,o)},this.url?h("a",Object.assign({},d,{href:this.url,target:this.external?"_blank":"_self"}),u,this.external&&h("duet-visually-hidden",null,", ",this.accessibleLabelExternal)):h("button",Object.assign({},d,{type:this.getButtonType(),disabled:this.disabled,name:this.name,value:this.value,"aria-pressed":this.accessiblePressed!=null?this.accessiblePressed.toString():undefined}),u),this.loading&&h("duet-spinner",{color:"currentColor"})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["syncToProxyButton"],submit:["syncToProxyButton"],value:["syncToProxyButton"],name:["syncToProxyButton"]}},enumerable:false,configurable:true});return t}();DuetButton.style=duetButtonCss;var duetSpinnerCss=':host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute;top:50%;left:50%;z-index:800;max-width:100%}:host(.duet-theme-default) .duet-spinner{color:#0077b3 !important}:host(.duet-theme-turva) .duet-spinner{color:#c60c30 !important}:host(.duet-custom-color){color:inherit}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-spinner{-webkit-user-select:none;user-select:none;position:absolute;top:50%;left:50%;z-index:800;width:24px;height:24px;color:#0077b3;border:2px solid transparent;border-left:2px solid currentColor;border-radius:50%;transform:translateZ(0) translateX(-50%) translateY(-50%);transform-origin:0% 0%;animation:duetRotate 0.6s linear infinite}.duet-spinner::after{position:absolute;top:50%;left:50%;z-index:200;box-sizing:content-box;width:100%;height:100%;overflow:hidden;content:"";border:2px solid currentColor;border-radius:50%;opacity:0.3;transform:translateZ(0) translateX(-50%) translateY(-50%);transform-origin:0% 0%}.duet-spinner.medium{width:36px;height:36px;border-width:4px}.duet-spinner.medium::after{border-width:4px}.duet-spinner.large{width:72px;height:72px;border-width:8px}.duet-spinner.large::after{border-width:8px}@keyframes duetRotate{0%{transform:translateZ(0) rotate(0deg) translateX(-50%) translateY(-50%)}100%{transform:translateZ(0) rotate(360deg) translateX(-50%) translateY(-50%)}}';var DuetSpinner=function(){function t(t){registerInstance(this,t);this.color="gray-lightest";this.size="small";this.theme=""}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.render=function(){var t;var e=this.color==="currentColor"?"currentColor":getColorByName(this.color);return h(Host,{class:{"duet-custom-color":this.color!=="currentColor"&&this.theme!=="turva"&&this.theme!=="default","duet-theme-turva":this.theme==="turva"&&this.color!=="currentColor","duet-theme-default":this.theme==="default"&&this.color!=="currentColor"}},h("div",{class:(t={"duet-spinner":true},t[this.size]=true,t),style:{color:e},"aria-label":this.accessibleLabel}))};return t}();DuetSpinner.style=duetSpinnerCss;export{DuetButton as duet_button,DuetSpinner as duet_spinner};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(e,t,a,n){function i(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function r(e){try{s(n.next(e))}catch(t){o(t)}}function d(e){try{s(n["throw"](e))}catch(t){o(t)}}function s(e){e.done?a(e.value):i(e.value).then(r,d)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,r;return r={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function d(e){return function(t){return s([e,t])}}function s(r){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,i&&(o=r[0]&2?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;if(i=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:a.label++;return{value:r[1],done:false};case 5:a.label++;i=r[1];r=[0];continue;case 7:r=a.ops.pop();a.trys.pop();continue;default:if(!(o=a.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){a=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(r[0]===6&&a.label<o[1]){a.label=o[1];o=r;break}if(o&&a.label<o[2]){a.label=o[2];a.ops.push(r);break}if(o[2])a.ops.pop();a.trys.pop();continue}r=t.call(e,a)}catch(d){r=[6,d];i=0}finally{n=o=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,h,H as Host,g as getElement,F as Fragment}from"./index-05e43a37.js";import{i as inheritGlobalTheme}from"./themeable-component-572685dd.js";import{s as sanitizeString}from"./string-utils-2f1793b8.js";import{g as getColorByName}from"./token-utils-590d9413.js";import{a as actionNewWindowSmall}from"./action-new-window-small-1945be91.js";import{D as DuetStringsExternalDefaults}from"./common-strings-97e04e4b.js";import{a as getLanguage,g as getLocaleString}from"./language-utils-344d894c.js";import"./tokens.module-49cbf963.js";var duetCaptionCss=':host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:flex;flex:0 0 100%;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:#657787;vertical-align:top}:host.duet-p-0{padding:0 !important}:host.duet-m-0{margin:0 !important}:host(.duet-caption-small){font-size:0.875rem;line-height:1.25}:host(.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:#747475}:host(.duet-caption-selected){color:#0077b3}:host(.duet-caption-selected.duet-theme-turva){color:#171c3a}:host(.duet-m-0){margin:0 !important}';var DuetCaption=function(){function e(e){registerInstance(this,e);this.theme="";this.margin="auto";this.selected=false;this.size="medium"}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){return h(Host,{class:{"duet-caption":true,"duet-caption-selected":this.selected,"duet-caption-small":this.size==="small","duet-theme-turva":this.theme==="turva","duet-m-0":this.margin==="none"}},h("slot",null))};return e}();DuetCaption.style=duetCaptionCss;var duetHeadingCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:100%}.duet-heading{margin-bottom:16px !important;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.25;color:#00294d;text-decoration:none;letter-spacing:-0.01rem;word-break:break-word}@media (min-width: 36em){.duet-heading{margin-bottom:20px !important}}.duet-heading.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";font-style:italic;font-weight:700;color:#171c3a}.duet-heading.duet-heading-border{padding-bottom:20px;border-bottom:1px solid #e1e3e6}.duet-heading.duet-heading-border.duet-heading-border-solid{border-bottom-color:#657787}.duet-heading.duet-heading-hyphenate{-webkit-hyphens:auto;hyphens:auto}.duet-heading.h0{font-size:9.4vw}.duet-heading.h0.duet-p-0{padding:0 !important}.duet-heading.h0.duet-m-0{margin:0 !important}@media (max-width: 31.914893617rem){.duet-heading.h0{font-size:3rem}}@media (min-width: 47.8723404255rem){.duet-heading.h0{font-size:4.5rem}}@media (max-width: 22.5em){.duet-heading.h0{font-size:2.25rem}}.duet-heading.h1{font-size:7vw}.duet-heading.h1.duet-p-0{padding:0 !important}.duet-heading.h1.duet-m-0{margin:0 !important}@media (max-width: 32.1428571429rem){.duet-heading.h1{font-size:2.25rem}}@media (min-width: 42.8571428571rem){.duet-heading.h1{font-size:3rem}}@media (max-width: 22.5em){.duet-heading.h1{font-size:1.5rem}}.duet-heading.h2{font-size:5.8vw}.duet-heading.h2.duet-p-0{padding:0 !important}.duet-heading.h2.duet-m-0{margin:0 !important}@media (max-width: 25.8620689655rem){.duet-heading.h2{font-size:1.5rem}}@media (min-width: 38.7931034483rem){.duet-heading.h2{font-size:2.25rem}}@media (max-width: 22.5em){.duet-heading.h2{font-size:1.375rem}}.duet-heading.h3{margin-bottom:12px !important;font-size:4.2vw}.duet-heading.h3.duet-p-0{padding:0 !important}.duet-heading.h3.duet-m-0{margin:0 !important}@media (max-width: 29.7619047619rem){.duet-heading.h3{font-size:1.25rem}}@media (min-width: 35.7142857143rem){.duet-heading.h3{font-size:1.5rem}}.duet-heading.h3.duet-theme-turva{font-style:normal}.duet-heading.h3.duet-heading-border{padding-bottom:20px}.duet-heading.h4{margin-bottom:8px !important;font-size:4vw;letter-spacing:0}.duet-heading.h4.duet-p-0{padding:0 !important}.duet-heading.h4.duet-m-0{margin:0 !important}@media (max-width: 27.5rem){.duet-heading.h4{font-size:1.1rem}}@media (min-width: 31.25rem){.duet-heading.h4{font-size:1.25rem}}.duet-heading.h4.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h4.duet-heading-border{padding-bottom:20px}.duet-heading.h5{margin-bottom:8px !important;font-size:4vw;font-weight:600;letter-spacing:0}.duet-heading.h5.duet-p-0{padding:0 !important}.duet-heading.h5.duet-m-0{margin:0 !important}@media (max-width: 27.5rem){.duet-heading.h5{font-size:1.1rem}}@media (min-width: 28.4090909091rem){.duet-heading.h5{font-size:1.1363636364rem}}.duet-heading.h5.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h5.duet-heading-border{padding-bottom:16px}.duet-heading.h6{margin-bottom:8px !important;font-size:1rem;font-weight:600;letter-spacing:0}.duet-heading.h6.duet-p-0{padding:0 !important}.duet-heading.h6.duet-m-0{margin:0 !important}.duet-heading.h6.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h6.duet-heading-border{padding-bottom:16px}.duet-heading.duet-semibold,.duet-heading.duet-theme-turva.duet-semibold{font-style:normal !important;font-weight:600 !important}';var DuetHeading=function(){function e(e){registerInstance(this,e);this.level="h2";this.margin="auto";this.border=false;this.weight="auto";this.color="";this.theme="";this.hyphenate=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e;var t=sanitizeString(this.level);var a=getColorByName(this.color);return h(t,{class:(e={"duet-heading":true,"duet-heading-border":this.border!==false,"duet-heading-border-solid":this.border==="solid","duet-semibold":this.weight==="semibold","duet-heading-hyphenate":this.hyphenate,"duet-m-0":this.margin==="none"},e[this.visualLevel?this.visualLevel:this.level]=true,e["duet-theme-turva"]=this.theme==="turva",e),style:{color:a}},h("slot",null))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetHeading.style=duetHeadingCss;var duetLinkCss='*,*::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}.duet-link{display:inline;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;font-weight:400;color:#0077b3;text-decoration:underline;border-radius:4px;transition:300ms ease}.duet-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-link:focus,.duet-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-link.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:#c60c30}.duet-link:hover{color:#004d80;text-decoration:none}.duet-link:hover.duet-theme-turva{color:#940925}.duet-link:active{opacity:0.75;transition:none}.duet-link-external{margin-left:4px}';var DuetLink=function(){function e(e){registerInstance(this,e);this.language=getLanguage();this.accessibleLabelExternalDefaults=DuetStringsExternalDefaults;this.accessibleLabelExternal=getLocaleString(this.accessibleLabelExternalDefaults);this.theme="";this.url="#";this.external=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.nativeLink.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;return h(Host,null,h("a",{href:this.url,class:{"duet-link":true,"duet-link-is-external":this.external,"duet-theme-turva":this.theme==="turva"},target:this.external?"_blank":"_self","aria-label":this.accessibleLabel,id:this.identifier,ref:function(t){return e.nativeLink=t}},h("slot",null),this.external&&h(Fragment,null,h("duet-visually-hidden",null,this.accessibleLabelExternal),h("span",{class:"duet-link-external"},h("duet-icon",{icon:actionNewWindowSmall.svg,size:"xx-small",margin:"none",color:"currentColor"})))))};Object.defineProperty(e,"delegatesFocus",{get:function(){return true},enumerable:false,configurable:true});return e}();DuetLink.style=duetLinkCss;var duetParagraphCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:100%}.duet-paragraph{margin-bottom:16px !important;display:block;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-style:normal;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:#00294d}.duet-paragraph.duet-p-0{padding:0 !important}.duet-paragraph.duet-m-0{margin:0 !important}.duet-paragraph.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}.duet-paragraph.duet-paragraph-small{font-size:0.875rem}.duet-paragraph.duet-paragraph-semi-bold{font-weight:600}.duet-paragraph.duet-paragraph-bold{font-weight:700}.duet-paragraph.duet-m-0{margin:0 !important}.duet-paragraph.intro{font-size:2.7vw;margin-bottom:28px !important;-webkit-hyphens:inherit;hyphens:inherit}@media (max-width: 37.037037037rem){.duet-paragraph.intro{font-size:1rem}}@media (min-width: 46.2962962963rem){.duet-paragraph.intro{font-size:1.25rem}}.duet-paragraph.intro.duet-m-0{margin:0 !important}::slotted(a){font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;font-weight:400;color:#0077b3;text-decoration:underline;transition:300ms ease}::slotted(a).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:#c60c30}::slotted(a):hover{color:#004d80;text-decoration:none}::slotted(a):hover.duet-theme-turva{color:#940925}::slotted(a):active{opacity:0.75;transition:none}';var DuetParagraph=function(){function e(e){registerInstance(this,e);this.theme="";this.margin="auto";this.size="medium";this.weight=undefined;this.variation="default";this.color=""}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e;var t=getColorByName(this.color);return h("p",{class:(e={"duet-paragraph":true,"duet-paragraph-small":this.size==="small","duet-paragraph-semi-bold":this.weight==="semi-bold","duet-paragraph-bold":this.weight==="bold","duet-m-0":this.margin==="none"},e[this.variation]=true,e["duet-theme-turva"]=this.theme==="turva",e),style:{color:t},part:"duet-paragraph"},h("slot",null))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetParagraph.style=duetParagraphCss;export{DuetCaption as duet_caption,DuetHeading as duet_heading,DuetLink as duet_link,DuetParagraph as duet_paragraph};
|
|
4
|
+
*/import{r as registerInstance,h,H as Host,g as getElement,F as Fragment}from"./index-ddb14345.js";import{i as inheritGlobalTheme}from"./themeable-component-572685dd.js";import{s as sanitizeString}from"./string-utils-2f1793b8.js";import{g as getColorByName}from"./token-utils-75f78ca4.js";import{a as actionNewWindowSmall}from"./action-new-window-small-1945be91.js";import{D as DuetStringsExternalDefaults}from"./common-strings-97e04e4b.js";import{a as getLanguage,g as getLocaleString}from"./language-utils-344d894c.js";import"./tokens.module-49cbf963.js";var duetCaptionCss=':host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:flex;flex:0 0 100%;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:#657787;vertical-align:top}:host.duet-p-0{padding:0 !important}:host.duet-m-0{margin:0 !important}:host(.duet-caption-small){font-size:0.875rem;line-height:1.25}:host(.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:#747475}:host(.duet-caption-selected){color:#0077b3}:host(.duet-caption-selected.duet-theme-turva){color:#171c3a}:host(.duet-m-0){margin:0 !important}';var DuetCaption=function(){function e(e){registerInstance(this,e);this.theme="";this.margin="auto";this.selected=false;this.size="medium"}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){return h(Host,{class:{"duet-caption":true,"duet-caption-selected":this.selected,"duet-caption-small":this.size==="small","duet-theme-turva":this.theme==="turva","duet-m-0":this.margin==="none"}},h("slot",null))};return e}();DuetCaption.style=duetCaptionCss;var duetHeadingCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:100%}.duet-heading{margin-bottom:16px !important;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.25;color:#00294d;text-decoration:none;letter-spacing:-0.01rem;word-break:break-word}@media (min-width: 36em){.duet-heading{margin-bottom:20px !important}}.duet-heading.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";font-style:italic;font-weight:700;color:#171c3a}.duet-heading.duet-heading-border{padding-bottom:20px;border-bottom:1px solid #e1e3e6}.duet-heading.duet-heading-border.duet-heading-border-solid{border-bottom-color:#657787}.duet-heading.duet-heading-hyphenate{-webkit-hyphens:auto;hyphens:auto}.duet-heading.h0{font-size:9.4vw}.duet-heading.h0.duet-p-0{padding:0 !important}.duet-heading.h0.duet-m-0{margin:0 !important}@media (max-width: 31.914893617rem){.duet-heading.h0{font-size:3rem}}@media (min-width: 47.8723404255rem){.duet-heading.h0{font-size:4.5rem}}@media (max-width: 22.5em){.duet-heading.h0{font-size:2.25rem}}.duet-heading.h1{font-size:7vw}.duet-heading.h1.duet-p-0{padding:0 !important}.duet-heading.h1.duet-m-0{margin:0 !important}@media (max-width: 32.1428571429rem){.duet-heading.h1{font-size:2.25rem}}@media (min-width: 42.8571428571rem){.duet-heading.h1{font-size:3rem}}@media (max-width: 22.5em){.duet-heading.h1{font-size:1.5rem}}.duet-heading.h2{font-size:5.8vw}.duet-heading.h2.duet-p-0{padding:0 !important}.duet-heading.h2.duet-m-0{margin:0 !important}@media (max-width: 25.8620689655rem){.duet-heading.h2{font-size:1.5rem}}@media (min-width: 38.7931034483rem){.duet-heading.h2{font-size:2.25rem}}@media (max-width: 22.5em){.duet-heading.h2{font-size:1.375rem}}.duet-heading.h3{margin-bottom:12px !important;font-size:4.2vw}.duet-heading.h3.duet-p-0{padding:0 !important}.duet-heading.h3.duet-m-0{margin:0 !important}@media (max-width: 29.7619047619rem){.duet-heading.h3{font-size:1.25rem}}@media (min-width: 35.7142857143rem){.duet-heading.h3{font-size:1.5rem}}.duet-heading.h3.duet-theme-turva{font-style:normal}.duet-heading.h3.duet-heading-border{padding-bottom:20px}.duet-heading.h4{margin-bottom:8px !important;font-size:4vw;letter-spacing:0}.duet-heading.h4.duet-p-0{padding:0 !important}.duet-heading.h4.duet-m-0{margin:0 !important}@media (max-width: 27.5rem){.duet-heading.h4{font-size:1.1rem}}@media (min-width: 31.25rem){.duet-heading.h4{font-size:1.25rem}}.duet-heading.h4.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h4.duet-heading-border{padding-bottom:20px}.duet-heading.h5{margin-bottom:8px !important;font-size:4vw;font-weight:600;letter-spacing:0}.duet-heading.h5.duet-p-0{padding:0 !important}.duet-heading.h5.duet-m-0{margin:0 !important}@media (max-width: 27.5rem){.duet-heading.h5{font-size:1.1rem}}@media (min-width: 28.4090909091rem){.duet-heading.h5{font-size:1.1363636364rem}}.duet-heading.h5.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h5.duet-heading-border{padding-bottom:16px}.duet-heading.h6{margin-bottom:8px !important;font-size:1rem;font-weight:600;letter-spacing:0}.duet-heading.h6.duet-p-0{padding:0 !important}.duet-heading.h6.duet-m-0{margin:0 !important}.duet-heading.h6.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h6.duet-heading-border{padding-bottom:16px}.duet-heading.duet-semibold,.duet-heading.duet-theme-turva.duet-semibold{font-style:normal !important;font-weight:600 !important}';var DuetHeading=function(){function e(e){registerInstance(this,e);this.level="h2";this.margin="auto";this.border=false;this.weight="auto";this.color="";this.theme="";this.hyphenate=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e;var t=sanitizeString(this.level);var a=getColorByName(this.color);return h(t,{class:(e={"duet-heading":true,"duet-heading-border":this.border!==false,"duet-heading-border-solid":this.border==="solid","duet-semibold":this.weight==="semibold","duet-heading-hyphenate":this.hyphenate,"duet-m-0":this.margin==="none"},e[this.visualLevel?this.visualLevel:this.level]=true,e["duet-theme-turva"]=this.theme==="turva",e),style:{color:a}},h("slot",null))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetHeading.style=duetHeadingCss;var duetLinkCss='*,*::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}.duet-link{display:inline;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;font-weight:400;color:#0077b3;text-decoration:underline;border-radius:4px;transition:300ms ease}.duet-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-link:focus,.duet-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-link.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:#c60c30}.duet-link:hover{color:#004d80;text-decoration:none}.duet-link:hover.duet-theme-turva{color:#940925}.duet-link:active{opacity:0.75;transition:none}.duet-link-external{margin-left:4px}';var DuetLink=function(){function e(e){registerInstance(this,e);this.language=getLanguage();this.accessibleLabelExternalDefaults=DuetStringsExternalDefaults;this.accessibleLabelExternal=getLocaleString(this.accessibleLabelExternalDefaults);this.theme="";this.url="#";this.external=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.nativeLink.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;return h(Host,null,h("a",{href:this.url,class:{"duet-link":true,"duet-link-is-external":this.external,"duet-theme-turva":this.theme==="turva"},target:this.external?"_blank":"_self","aria-label":this.accessibleLabel,id:this.identifier,ref:function(t){return e.nativeLink=t},part:"duet-link"},h("slot",null),this.external&&h(Fragment,null,h("duet-visually-hidden",null,this.accessibleLabelExternal),h("span",{class:"duet-link-external"},h("duet-icon",{icon:actionNewWindowSmall.svg,size:"xx-small",margin:"none",color:"currentColor"})))))};Object.defineProperty(e,"delegatesFocus",{get:function(){return true},enumerable:false,configurable:true});return e}();DuetLink.style=duetLinkCss;var duetParagraphCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:100%}.duet-paragraph{margin-bottom:16px !important;display:block;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-style:normal;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:#00294d}.duet-paragraph.duet-p-0{padding:0 !important}.duet-paragraph.duet-m-0{margin:0 !important}.duet-paragraph.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}.duet-paragraph.duet-paragraph-small{font-size:0.875rem}.duet-paragraph.duet-paragraph-semi-bold{font-weight:600}.duet-paragraph.duet-paragraph-bold{font-weight:700}.duet-paragraph.duet-m-0{margin:0 !important}.duet-paragraph.intro{font-size:2.7vw;margin-bottom:28px !important;-webkit-hyphens:inherit;hyphens:inherit}@media (max-width: 37.037037037rem){.duet-paragraph.intro{font-size:1rem}}@media (min-width: 46.2962962963rem){.duet-paragraph.intro{font-size:1.25rem}}.duet-paragraph.intro.duet-m-0{margin:0 !important}::slotted(a){font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;font-weight:400;color:#0077b3;text-decoration:underline;transition:300ms ease}::slotted(a).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:#c60c30}::slotted(a):hover{color:#004d80;text-decoration:none}::slotted(a):hover.duet-theme-turva{color:#940925}::slotted(a):active{opacity:0.75;transition:none}';var DuetParagraph=function(){function e(e){registerInstance(this,e);this.theme="";this.margin="auto";this.size="medium";this.weight=undefined;this.variation="default";this.color=""}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e;var t=getColorByName(this.color);return h("p",{class:(e={"duet-paragraph":true,"duet-paragraph-small":this.size==="small","duet-paragraph-semi-bold":this.weight==="semi-bold","duet-paragraph-bold":this.weight==="bold","duet-m-0":this.margin==="none"},e[this.variation]=true,e["duet-theme-turva"]=this.theme==="turva",e),style:{color:t},part:"duet-paragraph"},h("slot",null))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetParagraph.style=duetParagraphCss;export{DuetCaption as duet_caption,DuetHeading as duet_heading,DuetLink as duet_link,DuetParagraph as duet_paragraph};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(e,a,t,i){function r(e){return e instanceof t?e:new t((function(a){a(e)}))}return new(t||(t=Promise))((function(t,d){function n(e){try{p(i.next(e))}catch(a){d(a)}}function o(e){try{p(i["throw"](e))}catch(a){d(a)}}function p(e){e.done?t(e.value):r(e.value).then(n,o)}p((i=i.apply(e,a||[])).next())}))};var __generator=this&&this.__generator||function(e,a){var t={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},i,r,d,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(e){return function(a){return p([e,a])}}function p(n){if(i)throw new TypeError("Generator is already executing.");while(t)try{if(i=1,r&&(d=n[0]&2?r["return"]:n[0]?r["throw"]||((d=r["return"])&&d.call(r),0):r.next)&&!(d=d.call(r,n[1])).done)return d;if(r=0,d)n=[n[0]&2,d.value];switch(n[0]){case 0:case 1:d=n;break;case 4:t.label++;return{value:n[1],done:false};case 5:t.label++;r=n[1];n=[0];continue;case 7:n=t.ops.pop();t.trys.pop();continue;default:if(!(d=t.trys,d=d.length>0&&d[d.length-1])&&(n[0]===6||n[0]===2)){t=0;continue}if(n[0]===3&&(!d||n[1]>d[0]&&n[1]<d[3])){t.label=n[1];break}if(n[0]===6&&t.label<d[1]){t.label=d[1];d=n;break}if(d&&t.label<d[2]){t.label=d[2];t.ops.push(n);break}if(d[2])t.ops.pop();t.trys.pop();continue}n=a.call(e,t)}catch(o){n=[6,o];r=0}finally{i=d=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Built with Duet Design System
|
|
4
|
-
*/import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host,g as getElement}from"./index-05e43a37.js";import{c as createID}from"./create-id-981107da.js";import{i as isKeyboardClick}from"./keyboard-utils-584cedd7.js";import{s as sanitizeString}from"./string-utils-2f1793b8.js";import{i as inheritGlobalTheme}from"./themeable-component-572685dd.js";import{g as getColorByName}from"./token-utils-590d9413.js";import"./tokens.module-49cbf963.js";var actionArrowUp={title:"action-arrow-up",tags:"action arrow up caret",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 17.939a.752.752 0 0 1-.53-1.281L10.94 5.94c.283-.284.659-.44 1.059-.44.401 0 .777.156 1.06.438l10.721 10.72a.752.752 0 0 1-.53 1.281.743.743 0 0 1-.53-.22L12 7 1.28 17.719a.743.743 0 0 1-.53.22z"/></svg>'};var duetCardCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:flex;width:100%;vertical-align:top}:host(.duet-card-info){margin-bottom:16px !important}:host(.duet-m-0){margin:0 !important}.duet-card{padding:20px !important;position:relative;display:block;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-style:normal;font-weight:400;line-height:1.5;color:#00294d;text-decoration:none;border-radius:4px;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-card.duet-p-0{padding:0 !important}.duet-card.duet-m-0{margin:0 !important}.duet-card:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-card:focus,.duet-card:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}@media (min-width: 36em){.duet-card{padding:28px !important}}.duet-card.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;box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}@media (min-width: 36em){.duet-card.x-small{padding:20px !important}}@media (min-width: 36em){.duet-card.medium{padding:28px !important}}@media (min-width: 48em){.duet-card.medium{padding:36px !important}}@media (min-width: 36em){.duet-card.large{padding:36px !important}}@media (min-width: 48em){.duet-card.large{padding:48px !important}}@media (min-width: 36em){.duet-card.x-large{padding:48px !important}}@media (min-width: 48em){.duet-card.x-large{padding:72px !important}}.duet-card.duet-card-collapsed{padding-bottom:0 !important}@media (min-width: 36em){.duet-card.duet-card-collapsed{padding-bottom:0 !important}}.duet-card.info{background:rgba(0, 80, 128, 0.04) !important;box-shadow:none}.duet-card.info.duet-theme-turva{background:rgba(23, 28, 58, 0.035) !important}.duet-card.plain{box-shadow:none}.duet-card.plain:not(.duet-card-has-bg){background:transparent !important}.duet-card-heading-grid{display:flex;flex-direction:row}.duet-card-icon{align-self:center}.duet-card-heading-text{flex:1;word-break:break-word}.duet-card-secondary-heading{font-size:1rem;font-weight:600;word-break:break-word}.duet-card-secondary-heading--inline{display:block;flex:1;align-self:flex-start;line-height:1.875;text-align:right}@media (max-width: 22.5em){.duet-card-secondary-heading--inline{display:none}}.duet-card-secondary-heading--new-line{display:none}@media (max-width: 22.5em){.duet-card-secondary-heading--new-line{display:block}}.duet-card-heading{position:relative;display:block;padding:16px 20px;margin:-20px -20px 20px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-weight:800;color:#00294d;border-bottom:1px solid #e1e3e6}@media (min-width: 36em){.duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}}.duet-card-heading[role=button]{-webkit-user-select:none;user-select:none;cursor:pointer;border-radius:4px;-webkit-appearance:none;-webkit-tap-highlight-color:transparent;appearance:none}.duet-card-heading[role=button]:focus{outline:0}:host(.user-is-tabbing) .duet-card-heading[role=button]: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 .duet-card-heading[role=button]:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-card-collapsed .duet-card-heading{margin-bottom:0 !important;border-bottom:0 !important}.duet-theme-turva .duet-card-heading{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:#171c3a;border-color:#e4e4e6}@media (min-width: 36em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}@media (min-width: 48em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}.medium .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.medium .duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}}@media (min-width: 48em){.medium .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}.large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.large .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}@media (min-width: 48em){.large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}.x-large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.x-large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}@media (min-width: 48em){.x-large .duet-card-heading{padding:39px 72px 40px !important;margin:-72px -72px 48px}}.none .duet-card-heading{padding:0 0 20px !important;margin:0 0 20px}.duet-card-footer{padding:20px;margin:20px -20px -20px;font-size:0.875rem;line-height:1.25;background:#f5f8fa;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.duet-theme-turva .duet-card-footer{background:#f5f5f7}@media (min-width: 36em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 36em){.x-small .duet-card-footer{padding:15px 28px 16px !important;padding-left:20px !important;margin:20px -20px -20px}}@media (min-width: 36em){.medium .duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.medium .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 36em){.large .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 48em){.large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 36em){.x-large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 48em){.x-large .duet-card-footer{padding:39px 72px 40px !important;margin:48px -72px -72px}}.none .duet-card-footer{padding:12px 0 !important;margin:20px 0 0}.duet-card-content{width:100%}.duet-card-collapsed .duet-card-content{display:none}.duet-card-caret{position:relative;top:6px;align-self:flex-start;transition:300ms ease}[aria-expanded=false] .duet-card-caret{transform:rotate(-180deg)}.duet-card-image-mask{position:relative;width:calc(100% + 40px);margin:-20px 0 20px -20px;overflow:hidden;border-top-left-radius:4px;border-top-right-radius:4px}@media (min-width: 36em){.small .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 36em){.medium .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 48em){.medium .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 28px -36px}}@media (min-width: 36em){.large .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 36px -36px}}@media (min-width: 48em){.large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 36em){.x-large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 48em){.x-large .duet-card-image-mask{width:calc(100% + 144px);margin:-72px 0 36px -72px}}.none .duet-card-image-mask{width:100%;margin:0 0 20px}.duet-card-image{display:block;width:102%;min-width:1px;max-width:102%;height:auto;min-height:1px;margin-left:-1%;transition:transform 300ms ease;transform:scale(1.0001)}a.duet-card{transition:box-shadow 300ms ease, background-position 300ms ease}a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}a.duet-card:hover .duet-card-image{transform:scale(1.024)}.duet-theme-turva a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}a.duet-card:active{transition:none;transform:translateY(1px)}';var DuetCard=function(){function e(e){var a=this;registerInstance(this,e);this.duetToggle=createEvent(this,"duetToggle",7);this.cardId=createID("DuetCard");this.heading="";this.secondaryHeading="";this.variation="default";this.collapsible=false;this.open=true;this.headingLevel="h2";this.background="gray-lightest";this.padding="small";this.margin="auto";this.theme="";this.togglePanel=function(e){e.preventDefault();a.open=!a.open;a.duetToggle.emit({component:"duet-card",originalEvent:e})};this.handleKeyDown=function(e){if(isKeyboardClick(e)){a.togglePanel(e)}}}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasFooter=!!this.element.querySelector("[slot='footer']")};e.prototype.renderHeading=function(){var e=sanitizeString(this.headingLevel);var a=this.collapsible?{role:"button",tabindex:"0","aria-controls":this.cardId,"aria-expanded":this.open?"true":"false",onClick:this.togglePanel,onKeyDown:this.handleKeyDown}:{};return h(e,Object.assign({class:"duet-card-heading"},a),h("div",{class:"duet-card-heading-grid"},this.icon&&h(Fragment,null,h("duet-icon",{class:"duet-card-icon",name:this.icon,size:"medium",margin:"none",color:"currentColor"}),h("duet-spacer",{direction:"horizontal",size:"small"})),h("div",{class:"duet-card-heading-text"},this.heading),this.secondaryHeading&&h(Fragment,null,h("duet-spacer",{direction:"horizontal",size:"small"}),h("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--inline"},this.secondaryHeading)),this.collapsible&&h(Fragment,null,h("duet-spacer",{direction:"horizontal",size:"small"}),h("duet-icon",{class:"duet-card-caret",icon:actionArrowUp.svg,size:"small",margin:"none",color:"currentColor"}))),this.secondaryHeading&&h("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--new-line"},this.secondaryHeading))};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){if(this.nativeCard){this.nativeCard.focus(e)}return[2]}))}))};e.prototype.render=function(){var e;var a=this;var t=this.url?"a":"div";var i={backgroundColor:getColorByName(this.background)};return h(Host,{class:{"duet-m-0":this.margin==="none","duet-card-info":this.variation==="info"}},h(t,{href:this.url,style:i,ref:function(e){return a.nativeCard=e},"aria-label":this.accessibleLabel,class:(e={"duet-card":true},e[this.padding]=true,e[this.variation]=true,e["duet-p-0"]=this.padding==="none",e["duet-theme-turva"]=this.theme==="turva",e["duet-card-has-bg"]=this.background!=="gray-lightest",e["duet-card-has-icon"]=!!this.icon,e["duet-card-collapsed"]=this.collapsible&&!this.open,e)},this.image&&h("div",{class:"duet-card-image-mask"},h("img",{src:this.image,class:"duet-card-image",loading:"lazy",alt:"","aria-hidden":"true"})),this.heading&&this.renderHeading(),h("div",{class:"duet-card-content",id:this.cardId},h("slot",null),this.hasFooter&&h("div",{class:"duet-card-footer"},h("slot",{name:"footer"})))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetCard.style=duetCardCss;export{DuetCard as duet_card};
|
|
4
|
+
*/import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host,g as getElement}from"./index-ddb14345.js";import{c as createID}from"./create-id-981107da.js";import{i as isKeyboardClick}from"./keyboard-utils-584cedd7.js";import{s as sanitizeString}from"./string-utils-2f1793b8.js";import{i as inheritGlobalTheme}from"./themeable-component-572685dd.js";import{g as getColorByName}from"./token-utils-75f78ca4.js";import"./tokens.module-49cbf963.js";var actionArrowUp={title:"action-arrow-up",tags:"action arrow up caret",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 17.939a.752.752 0 0 1-.53-1.281L10.94 5.94c.283-.284.659-.44 1.059-.44.401 0 .777.156 1.06.438l10.721 10.72a.752.752 0 0 1-.53 1.281.743.743 0 0 1-.53-.22L12 7 1.28 17.719a.743.743 0 0 1-.53.22z"/></svg>'};var duetCardCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:flex;width:100%;vertical-align:top}:host(.duet-card-info){margin-bottom:16px !important}:host(.duet-m-0){margin:0 !important}.duet-card{padding:20px !important;position:relative;display:block;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-style:normal;font-weight:400;line-height:1.5;color:#00294d;text-decoration:none;border-radius:4px;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-card.duet-p-0{padding:0 !important}.duet-card.duet-m-0{margin:0 !important}.duet-card:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-card:focus,.duet-card:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}@media (min-width: 36em){.duet-card{padding:28px !important}}.duet-card.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;box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}@media (min-width: 36em){.duet-card.x-small{padding:20px !important}}@media (min-width: 36em){.duet-card.medium{padding:28px !important}}@media (min-width: 48em){.duet-card.medium{padding:36px !important}}@media (min-width: 36em){.duet-card.large{padding:36px !important}}@media (min-width: 48em){.duet-card.large{padding:48px !important}}@media (min-width: 36em){.duet-card.x-large{padding:48px !important}}@media (min-width: 48em){.duet-card.x-large{padding:72px !important}}.duet-card.duet-card-collapsed{padding-bottom:0 !important}@media (min-width: 36em){.duet-card.duet-card-collapsed{padding-bottom:0 !important}}.duet-card.info{background:rgba(0, 80, 128, 0.04) !important;box-shadow:none}.duet-card.info.duet-theme-turva{background:rgba(23, 28, 58, 0.035) !important}.duet-card.plain{box-shadow:none}.duet-card.plain:not(.duet-card-has-bg){background:transparent !important}.duet-card-heading-grid{display:flex;flex-direction:row}.duet-card-icon{align-self:center}.duet-card-heading-text{flex:1;word-break:break-word}.duet-card-secondary-heading{font-size:1rem;font-weight:600;word-break:break-word}.duet-card-secondary-heading--inline{display:block;flex:1;align-self:flex-start;line-height:1.875;text-align:right}@media (max-width: 22.5em){.duet-card-secondary-heading--inline{display:none}}.duet-card-secondary-heading--new-line{display:none}@media (max-width: 22.5em){.duet-card-secondary-heading--new-line{display:block}}.duet-card-heading{position:relative;display:block;padding:16px 20px;margin:-20px -20px 20px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-weight:800;color:#00294d;border-bottom:1px solid #e1e3e6}@media (min-width: 36em){.duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}}.duet-card-heading[role=button]{-webkit-user-select:none;user-select:none;cursor:pointer;border-radius:4px;-webkit-appearance:none;-webkit-tap-highlight-color:transparent;appearance:none}.duet-card-heading[role=button]:focus{outline:0}:host(.user-is-tabbing) .duet-card-heading[role=button]: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 .duet-card-heading[role=button]:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-card-collapsed .duet-card-heading{margin-bottom:0 !important;border-bottom:0 !important}.duet-theme-turva .duet-card-heading{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:#171c3a;border-color:#e4e4e6}@media (min-width: 36em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}@media (min-width: 48em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}.medium .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.medium .duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}}@media (min-width: 48em){.medium .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}.large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.large .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}@media (min-width: 48em){.large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}.x-large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.x-large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}@media (min-width: 48em){.x-large .duet-card-heading{padding:39px 72px 40px !important;margin:-72px -72px 48px}}.none .duet-card-heading{padding:0 0 20px !important;margin:0 0 20px}.duet-card-footer{padding:20px;margin:20px -20px -20px;font-size:0.875rem;line-height:1.25;background:#f5f8fa;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.duet-theme-turva .duet-card-footer{background:#f5f5f7}@media (min-width: 36em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 36em){.x-small .duet-card-footer{padding:15px 28px 16px !important;padding-left:20px !important;margin:20px -20px -20px}}@media (min-width: 36em){.medium .duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.medium .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 36em){.large .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 48em){.large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 36em){.x-large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 48em){.x-large .duet-card-footer{padding:39px 72px 40px !important;margin:48px -72px -72px}}.none .duet-card-footer{padding:12px 0 !important;margin:20px 0 0}.duet-card-content{width:100%}.duet-card-collapsed .duet-card-content{display:none}.duet-card-caret{position:relative;top:6px;align-self:flex-start;transition:300ms ease}[aria-expanded=false] .duet-card-caret{transform:rotate(-180deg)}.duet-card-image-mask{position:relative;width:calc(100% + 40px);margin:-20px 0 20px -20px;overflow:hidden;border-top-left-radius:4px;border-top-right-radius:4px}@media (min-width: 36em){.small .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 36em){.medium .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 48em){.medium .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 28px -36px}}@media (min-width: 36em){.large .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 36px -36px}}@media (min-width: 48em){.large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 36em){.x-large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 48em){.x-large .duet-card-image-mask{width:calc(100% + 144px);margin:-72px 0 36px -72px}}.none .duet-card-image-mask{width:100%;margin:0 0 20px}.duet-card-image{display:block;width:102%;min-width:1px;max-width:102%;height:auto;min-height:1px;margin-left:-1%;transition:transform 300ms ease;transform:scale(1.0001)}a.duet-card{transition:box-shadow 300ms ease, background-position 300ms ease}a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}a.duet-card:hover .duet-card-image{transform:scale(1.024)}.duet-theme-turva a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}a.duet-card:active{transition:none;transform:translateY(1px)}';var DuetCard=function(){function e(e){var a=this;registerInstance(this,e);this.duetToggle=createEvent(this,"duetToggle",7);this.cardId=createID("DuetCard");this.heading="";this.secondaryHeading="";this.variation="default";this.collapsible=false;this.open=true;this.headingLevel="h2";this.background="gray-lightest";this.padding="small";this.margin="auto";this.theme="";this.togglePanel=function(e){e.preventDefault();a.open=!a.open;a.duetToggle.emit({component:"duet-card",originalEvent:e})};this.handleKeyDown=function(e){if(isKeyboardClick(e)){a.togglePanel(e)}}}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasFooter=!!this.element.querySelector("[slot='footer']")};e.prototype.renderHeading=function(){var e=sanitizeString(this.headingLevel);var a=this.collapsible?{role:"button",tabindex:"0","aria-controls":this.cardId,"aria-expanded":this.open?"true":"false",onClick:this.togglePanel,onKeyDown:this.handleKeyDown}:{};return h(e,Object.assign({class:"duet-card-heading"},a),h("div",{class:"duet-card-heading-grid"},this.icon&&h(Fragment,null,h("duet-icon",{class:"duet-card-icon",name:this.icon,size:"medium",margin:"none",color:"currentColor"}),h("duet-spacer",{direction:"horizontal",size:"small"})),h("div",{class:"duet-card-heading-text"},this.heading),this.secondaryHeading&&h(Fragment,null,h("duet-spacer",{direction:"horizontal",size:"small"}),h("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--inline"},this.secondaryHeading)),this.collapsible&&h(Fragment,null,h("duet-spacer",{direction:"horizontal",size:"small"}),h("duet-icon",{class:"duet-card-caret",icon:actionArrowUp.svg,size:"small",margin:"none",color:"currentColor"}))),this.secondaryHeading&&h("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--new-line"},this.secondaryHeading))};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){if(this.nativeCard){this.nativeCard.focus(e)}return[2]}))}))};e.prototype.render=function(){var e;var a=this;var t=this.url?"a":"div";var i={backgroundColor:getColorByName(this.background)};return h(Host,{class:{"duet-m-0":this.margin==="none","duet-card-info":this.variation==="info"}},h(t,{href:this.url,style:i,ref:function(e){return a.nativeCard=e},"aria-label":this.accessibleLabel,class:(e={"duet-card":true},e[this.padding]=true,e[this.variation]=true,e["duet-p-0"]=this.padding==="none",e["duet-theme-turva"]=this.theme==="turva",e["duet-card-has-bg"]=this.background!=="gray-lightest",e["duet-card-has-icon"]=!!this.icon,e["duet-card-collapsed"]=this.collapsible&&!this.open,e)},this.image&&h("div",{class:"duet-card-image-mask"},h("img",{src:this.image,class:"duet-card-image",loading:"lazy",alt:"","aria-hidden":"true"})),this.heading&&this.renderHeading(),h("div",{class:"duet-card-content",id:this.cardId},h("slot",null),this.hasFooter&&h("div",{class:"duet-card-footer"},h("slot",{name:"footer"})))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetCard.style=duetCardCss;export{DuetCard as duet_card};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(e,t,c,o){function i(e){return e instanceof c?e:new c((function(t){t(e)}))}return new(c||(c=Promise))((function(c,a){function n(e){try{s(o.next(e))}catch(t){a(t)}}function r(e){try{s(o["throw"](e))}catch(t){a(t)}}function s(e){e.done?c(e.value):i(e.value).then(n,r)}s((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var c={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,i,a,n;return n={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function r(e){return function(t){return s([e,t])}}function s(n){if(o)throw new TypeError("Generator is already executing.");while(c)try{if(o=1,i&&(a=n[0]&2?i["return"]:n[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,n[1])).done)return a;if(i=0,a)n=[n[0]&2,a.value];switch(n[0]){case 0:case 1:a=n;break;case 4:c.label++;return{value:n[1],done:false};case 5:c.label++;i=n[1];n=[0];continue;case 7:n=c.ops.pop();c.trys.pop();continue;default:if(!(a=c.trys,a=a.length>0&&a[a.length-1])&&(n[0]===6||n[0]===2)){c=0;continue}if(n[0]===3&&(!a||n[1]>a[0]&&n[1]<a[3])){c.label=n[1];break}if(n[0]===6&&c.label<a[1]){c.label=a[1];a=n;break}if(a&&c.label<a[2]){c.label=a[2];c.ops.push(n);break}if(a[2])c.ops.pop();c.trys.pop();continue}n=t.call(e,c)}catch(r){n=[6,r];i=0}finally{o=a=0}if(n[0]&5)throw n[1];return{value:n[0]?n[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-ddb14345.js";import{c as createID}from"./create-id-981107da.js";import{i as inheritGlobalTheme}from"./themeable-component-572685dd.js";var duetCheckboxCss='*.sc-duet-checkbox,*.sc-duet-checkbox::after,*.sc-duet-checkbox::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-checkbox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-checkbox-h:last-child,.sc-duet-checkbox-h:last-of-type{margin-right:0 !important}.sc-duet-checkbox-h:last-child:not(:only-child){margin-bottom:0 !important}.duet-m-0.sc-duet-checkbox-h{margin:0 !important}.duet-label.sc-duet-checkbox{position:relative;z-index:100;display:inline;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.5;color:#00294d;vertical-align:top;cursor:pointer;background:transparent;transition:300ms ease}.duet-theme-turva.sc-duet-checkbox .duet-label.sc-duet-checkbox{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}.duet-label.sc-duet-checkbox span.sc-duet-checkbox{display:inline-block;width:calc(100% - 32px);font-size:1rem;font-weight:400;vertical-align:top}.duet-checkbox-container.sc-duet-checkbox{position:relative;width:100%;height:100%}.duet-checkbox.sc-duet-checkbox{padding:14px !important;position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;cursor:pointer;opacity:0}.duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox::before{z-index:100;display:inline-block;width:20px;height:20px;margin:2px 10px 1px 1px;vertical-align:top;content:"";background:white;border:1px solid #00294d;border-radius:4px}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:#171c3a}.duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:#00294d;border:1px solid #00294d}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:#171c3a;border-color:#171c3a}.duet-checkbox.sc-duet-checkbox:focus+label.sc-duet-checkbox::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox:focus+label.sc-duet-checkbox::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox{position:static}.duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::after{position:absolute;top:6px;left:5px;z-index:200;width:12px;height:12px;pointer-events:none;content:"";background:transparent url("data:image/svg+xml,%3Csvg%20fill%3D%27white%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M23.374.287a1.5%2C1.5%2C0%2C0%2C0-2.093.345L7.246%2C20.2%2C2.561%2C15.511A1.5%2C1.5%2C0%2C1%2C0%2C.439%2C17.632l5.935%2C5.934a1.525%2C1.525%2C0%2C0%2C0%2C2.279-.186l15.066-21A1.5%2C1.5%2C0%2C0%2C0%2C23.374.287Z%27%20%2F%3E%3C%2Fsvg%3E") no-repeat 0 0;background-size:100% auto}.duet-checkbox[disabled].sc-duet-checkbox{cursor:default}.duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox{color:#657787}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox{color:#747475}.duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:#cfd2d4}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:#cfcfd1}.duet-checkbox[disabled].sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:#657787;border:1px solid #657787}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:#747475;border-color:#747475}.duet-label-hidden.sc-duet-checkbox .duet-label.sc-duet-checkbox span.sc-duet-checkbox{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';var DuetCheckbox=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",3);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.checkboxId=createID("DuetCheckbox");this.margin="auto";this.required=false;this.theme="";this.disabled=false;this.label="label";this.labelHidden=false;this.checked=false;this.onChange=function(e){t.checked=!t.checked;t.duetChange.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-checkbox"})};this.onBlur=function(e){t.duetBlur.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-checkbox"})};this.onFocus=function(e){t.duetFocus.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-checkbox"})}}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);if(this.value===undefined){this.value=this.identifier}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.nativeInput.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this.identifier||this.checkboxId;return h(Host,{class:{"duet-m-0":this.margin==="none"}},h("div",{class:{"duet-checkbox-container":true,"duet-label-hidden":this.labelHidden,"duet-theme-turva":this.theme==="turva"}},h("input",{ref:function(t){return e.nativeInput=t},type:"checkbox",onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,value:this.value,class:{"duet-checkbox":true,disabled:this.disabled},checked:this.checked,disabled:this.disabled,tabindex:this.accessibleIndex,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,required:this.required,role:this.role,name:this.name,id:t}),h("label",{class:"duet-label",htmlFor:t},h("span",null,this.label))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetCheckbox.style=duetCheckboxCss;export{DuetCheckbox as duet_checkbox};
|