@duetds/components 4.28.0 → 4.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/hydrate/index.js +914 -168
- package/lib/cjs/{action-arrow-down-small-ce4eddbc.js → action-arrow-down-small-ef77a2d1.js} +3 -0
- package/lib/cjs/{action-new-window-small-764927c8.js → action-new-window-small-fa51dfb9.js} +3 -0
- package/lib/cjs/{app-globals-10f3c9d9.js → app-globals-a032b236.js} +3 -0
- package/lib/cjs/{bodyScrollLock.es6-ec4c4a5c.js → bodyScrollLock.es6-6ef1142a.js} +3 -0
- package/lib/cjs/{common-strings-210be249.js → common-strings-de17f887.js} +3 -0
- package/lib/cjs/{create-id-d0d6cd15.js → create-id-c3b984b1.js} +3 -0
- package/lib/cjs/{dom-3e7d9c3b.js → dom-e89ebf90.js} +4 -1
- package/lib/cjs/duet-alert.cjs.entry.js +10 -4
- package/lib/cjs/duet-badge.cjs.entry.js +7 -4
- package/lib/cjs/duet-button_2.cjs.entry.js +17 -10
- package/lib/cjs/duet-caption_4.cjs.entry.js +23 -17
- package/lib/cjs/duet-card.cjs.entry.js +13 -10
- package/lib/cjs/duet-checkbox.cjs.entry.js +7 -4
- package/lib/cjs/duet-choice_2.cjs.entry.js +16 -11
- package/lib/cjs/duet-collapsible.cjs.entry.js +512 -8
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +6 -3
- package/lib/cjs/duet-date-picker.cjs.entry.js +31 -15
- package/lib/cjs/duet-divider_2.cjs.entry.js +7 -4
- package/lib/cjs/duet-empty-state.cjs.entry.js +6 -3
- package/lib/cjs/duet-fieldset.cjs.entry.js +7 -4
- package/lib/cjs/duet-footer.cjs.entry.js +15 -8
- package/lib/cjs/duet-grid_2.cjs.entry.js +8 -5
- package/lib/cjs/duet-header_2.cjs.entry.js +68 -21
- package/lib/cjs/duet-hero.cjs.entry.js +16 -10
- package/lib/cjs/duet-icon.cjs.entry.js +22 -6
- package/lib/cjs/duet-input_2.cjs.entry.js +16 -8
- package/lib/cjs/duet-layout.cjs.entry.js +6 -3
- package/lib/cjs/duet-list_2.cjs.entry.js +8 -5
- package/lib/cjs/duet-modal.cjs.entry.js +19 -12
- package/lib/cjs/duet-notification_2.cjs.entry.js +17 -9
- package/lib/cjs/duet-number-input.cjs.entry.js +54 -24
- package/lib/cjs/duet-radio_2.cjs.entry.js +9 -6
- package/lib/cjs/duet-range-slider.cjs.entry.js +9 -6
- package/lib/cjs/duet-select.cjs.entry.js +8 -5
- package/lib/cjs/duet-step_2.cjs.entry.js +9 -6
- package/lib/cjs/duet-tab_2.cjs.entry.js +23 -11
- package/lib/cjs/duet-table.cjs.entry.js +7 -4
- package/lib/cjs/duet-textarea.cjs.entry.js +8 -5
- package/lib/cjs/duet-toggle.cjs.entry.js +7 -4
- package/lib/cjs/duet-tooltip.cjs.entry.js +33 -15
- package/lib/cjs/duet-tray.cjs.entry.js +33 -15
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +5 -2
- package/lib/cjs/duet.cjs.js +8 -5
- package/lib/cjs/{focus-utils-162d8238.js → focus-utils-bd331feb.js} +4 -1
- package/lib/cjs/{index-69f4451b.js → index-113c2add.js} +11 -1
- package/lib/cjs/index.cjs.js +3 -0
- package/lib/cjs/{input-utils-712b8b32.js → input-utils-f3e3854c.js} +28 -0
- package/lib/cjs/{is-internet-explorer-cd4610fc.js → is-internet-explorer-91361c56.js} +3 -0
- package/lib/cjs/{keyboard-utils-a0b0a23c.js → keyboard-utils-b4e3d1d3.js} +3 -0
- package/lib/cjs/language-utils-48b8860b.js +93 -0
- package/lib/cjs/loader.cjs.js +7 -4
- package/lib/cjs/{shadow-css-09555044.js → shadow-css-0c8c175b.js} +4 -1
- package/lib/cjs/string-utils-267e3dbb.js +53 -0
- package/lib/cjs/{themeable-component-c462e6fd.js → themeable-component-0c1be552.js} +3 -0
- package/lib/cjs/{token-utils-4e9d1b6c.js → token-utils-13e5d13e.js} +4 -1
- package/lib/cjs/{tokens.module-6f0eaf7f.js → tokens.module-53b3bd92.js} +3 -0
- package/lib/cjs/{watch-options-edeeafd0.js → watch-options-3877c082.js} +3 -0
- package/lib/collection/collection-manifest.json +1 -1
- package/lib/collection/common-strings.js +3 -0
- package/lib/collection/components/duet-alert/duet-alert.js +19 -6
- package/lib/collection/components/duet-badge/duet-badge.css +1 -0
- package/lib/collection/components/duet-badge/duet-badge.js +4 -1
- package/lib/collection/components/duet-button/duet-button.css +3 -3
- package/lib/collection/components/duet-button/duet-button.js +28 -11
- package/lib/collection/components/duet-caption/duet-caption.js +4 -1
- package/lib/collection/components/duet-card/duet-card.css +10 -7
- package/lib/collection/components/duet-card/duet-card.js +9 -8
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +4 -1
- package/lib/collection/components/duet-choice/duet-choice.css +0 -1
- package/lib/collection/components/duet-choice/duet-choice.js +17 -8
- package/lib/collection/components/duet-choice-group/duet-choice-group.css +3 -1
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +5 -2
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +110 -6
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +4 -1
- package/lib/collection/components/duet-date-picker/date-i18n.js +3 -0
- package/lib/collection/components/duet-date-picker/date-picker-day.js +4 -1
- package/lib/collection/components/duet-date-picker/date-picker-input.js +4 -1
- package/lib/collection/components/duet-date-picker/date-picker-month.js +4 -1
- package/lib/collection/components/duet-date-picker/date-utils.js +3 -0
- package/lib/collection/components/duet-date-picker/duet-date-picker.css +1 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +85 -35
- package/lib/collection/components/duet-date-picker/utils.js +3 -0
- package/lib/collection/components/duet-divider/duet-divider.js +4 -1
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +4 -1
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +5 -2
- package/lib/collection/components/duet-footer/duet-footer.js +33 -12
- package/lib/collection/components/duet-grid/duet-grid.js +4 -1
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +4 -1
- package/lib/collection/components/duet-header/duet-header.js +108 -36
- package/lib/collection/components/duet-heading/duet-heading.css +1 -0
- package/lib/collection/components/duet-heading/duet-heading.js +5 -2
- package/lib/collection/components/duet-hero/duet-hero.js +35 -15
- package/lib/collection/components/duet-icon/duet-icon.js +6 -3
- package/lib/collection/components/duet-icon/icon-utils.js +17 -1
- package/lib/collection/components/duet-input/duet-input.js +12 -4
- package/lib/collection/components/duet-label/duet-label.css +2 -0
- package/lib/collection/components/duet-label/duet-label.js +4 -1
- package/lib/collection/components/duet-layout/duet-layout.js +4 -1
- package/lib/collection/components/duet-link/duet-link.js +35 -17
- package/lib/collection/components/duet-list/duet-list.js +5 -2
- package/lib/collection/components/duet-list-item/duet-list-item.js +4 -1
- package/lib/collection/components/duet-logo/duet-logo.js +15 -4
- package/lib/collection/components/duet-modal/duet-modal.js +40 -17
- package/lib/collection/components/duet-notification/duet-notification.js +19 -4
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +24 -12
- package/lib/collection/components/duet-number-input/duet-number-input.js +182 -31
- package/lib/collection/components/duet-number-input/number-input-utils.js +3 -0
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +5 -2
- package/lib/collection/components/duet-radio/duet-radio.js +4 -1
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +5 -2
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +6 -3
- package/lib/collection/components/duet-select/duet-select.js +4 -1
- package/lib/collection/components/duet-spacer/duet-spacer.js +4 -1
- package/lib/collection/components/duet-spinner/duet-spinner.js +5 -2
- package/lib/collection/components/duet-step/duet-step.js +6 -3
- package/lib/collection/components/duet-stepper/duet-stepper.js +4 -1
- package/lib/collection/components/duet-tab/duet-tab.js +4 -1
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +56 -10
- package/lib/collection/components/duet-table/duet-table.js +5 -2
- package/lib/collection/components/duet-textarea/duet-textarea.js +5 -2
- package/lib/collection/components/duet-toggle/duet-toggle.js +4 -1
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +98 -17
- package/lib/collection/components/duet-tray/duet-tray.js +97 -16
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +4 -1
- package/lib/collection/global/duet-global.js +3 -0
- package/lib/collection/utils/create-id.js +3 -0
- package/lib/collection/utils/fixture-utils.js +15 -5
- package/lib/collection/utils/focus-utils.js +3 -0
- package/lib/collection/utils/form-components.js +3 -0
- package/lib/collection/utils/group-by.js +3 -0
- package/lib/collection/utils/input-utils.js +27 -0
- package/lib/collection/utils/is-internet-explorer.js +3 -0
- package/lib/collection/utils/keyboard-utils.js +3 -0
- package/lib/collection/utils/language-utils.js +46 -8
- package/lib/collection/utils/string-utils.js +24 -0
- package/lib/collection/utils/test-utils.js +3 -0
- package/lib/collection/utils/themeable-component.js +3 -0
- package/lib/collection/utils/token-utils.js +3 -0
- package/lib/collection/utils/watch-options.js +3 -0
- package/lib/custom-elements-bundle/index.js +970 -222
- package/lib/duet/duet.esm.js +4 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/index.esm.js +3 -0
- package/lib/duet/p-0058512b.js +4 -0
- package/lib/duet/p-0224db45.entry.js +4 -0
- package/lib/duet/{p-c261a84b.system.entry.js → p-02ad46a0.system.entry.js} +4 -1
- package/lib/duet/{p-ae82ab86.js → p-04f9f1bf.js} +3 -0
- package/lib/duet/{p-62b75c80.system.js → p-053b71e6.system.js} +3 -0
- package/lib/duet/{p-f5e7899b.system.entry.js → p-07263910.system.entry.js} +4 -1
- package/lib/duet/{p-6242ef49.system.js → p-0c4bbd65.system.js} +3 -0
- package/lib/duet/{p-8b9ee5b0.js → p-115c79b6.js} +3 -0
- package/lib/duet/{p-a69855b7.js → p-15c15c6a.js} +3 -0
- package/lib/duet/{p-e780bfa0.js → p-18d801be.js} +3 -0
- package/lib/duet/p-1bfbc988.entry.js +4 -0
- package/lib/duet/p-1cd7177f.entry.js +4 -0
- package/lib/duet/p-1cec5a70.system.entry.js +4 -0
- package/lib/duet/p-1e7222c2.entry.js +4 -0
- package/lib/duet/p-202bbd70.entry.js +4 -0
- package/lib/duet/{p-44d3eb2f.system.entry.js → p-22f56356.system.entry.js} +4 -1
- package/lib/duet/{p-551d38f9.js → p-2826f987.js} +3 -0
- package/lib/duet/p-28b67b94.entry.js +4 -0
- package/lib/duet/{p-01dad2d3.js → p-322d1c38.js} +4 -1
- package/lib/duet/p-33426ddc.entry.js +4 -0
- package/lib/duet/p-33cf6ed1.entry.js +4 -0
- package/lib/duet/p-3d3f773d.system.entry.js +4 -0
- package/lib/duet/p-3e1ef509.system.entry.js +4 -0
- package/lib/duet/p-3f78a826.system.js +4 -0
- package/lib/duet/{p-50e14ff9.system.js → p-418b2ce7.system.js} +3 -0
- package/lib/duet/{p-9d4322ba.system.js → p-43e39d98.system.js} +3 -0
- package/lib/duet/p-44ffb960.entry.js +4 -0
- package/lib/duet/p-453955cc.system.entry.js +4 -0
- package/lib/duet/p-4670a654.entry.js +4 -0
- package/lib/duet/p-47645ea8.system.entry.js +4 -0
- package/lib/duet/p-504dbf8f.system.entry.js +4 -0
- package/lib/duet/p-5230ee3c.system.entry.js +4 -0
- package/lib/duet/p-56e172f5.system.entry.js +4 -0
- package/lib/duet/{p-7d7a595e.system.js → p-57ea2576.system.js} +4 -1
- package/lib/duet/p-5aa0d34d.entry.js +4 -0
- package/lib/duet/{p-63b13a5f.system.js → p-5f6bd5db.system.js} +3 -0
- package/lib/duet/p-5fc7e1f7.system.entry.js +4 -0
- package/lib/duet/p-605bc214.system.entry.js +4 -0
- package/lib/duet/p-60ab57d4.entry.js +4 -0
- package/lib/duet/p-64109493.entry.js +4 -0
- package/lib/duet/p-69a5dc6b.entry.js +4 -0
- package/lib/duet/p-6a230911.system.entry.js +4 -0
- package/lib/duet/p-6a356ab1.system.js +4 -0
- package/lib/duet/p-6a760b8a.entry.js +4 -0
- package/lib/duet/p-6d2da245.entry.js +4 -0
- package/lib/duet/p-704245ef.js +4 -0
- package/lib/duet/p-712e7dde.system.entry.js +4 -0
- package/lib/duet/p-746655ba.entry.js +4 -0
- package/lib/duet/p-76f00bd5.js +4 -0
- package/lib/duet/p-7b6db837.system.entry.js +4 -0
- package/lib/duet/p-7d080785.system.entry.js +4 -0
- package/lib/duet/p-82dc2e0b.entry.js +4 -0
- package/lib/duet/p-8c8e82aa.system.js +4 -0
- package/lib/duet/{p-5fe386d7.system.entry.js → p-8c980350.system.entry.js} +4 -1
- package/lib/duet/{p-1fcc25b6.system.entry.js → p-8cb47a70.system.entry.js} +4 -1
- package/lib/duet/p-8f03c3eb.entry.js +4 -0
- package/lib/duet/{p-50ea2036.system.js → p-8faaaf5f.system.js} +3 -0
- package/lib/duet/p-91fa68a5.js +4 -0
- package/lib/duet/p-92d38668.system.entry.js +4 -0
- package/lib/duet/p-95626e7e.system.entry.js +4 -0
- package/lib/duet/p-96808a2e.system.entry.js +4 -0
- package/lib/duet/p-96c103b2.system.entry.js +4 -0
- package/lib/duet/p-986779fb.js +4 -0
- package/lib/duet/{p-a0c363a1.js → p-9a89ec39.js} +3 -0
- package/lib/duet/p-9a8d5b11.system.js +4 -0
- package/lib/duet/p-9a945278.system.js +4 -0
- package/lib/duet/p-9c94be45.entry.js +4 -0
- package/lib/duet/p-9ce1baab.system.entry.js +4 -0
- package/lib/duet/p-9dfcd29a.js +4 -0
- package/lib/duet/p-9ff25646.entry.js +4 -0
- package/lib/duet/p-a1d12e94.system.entry.js +4 -0
- package/lib/duet/{p-a78af9f5.js → p-a28cf57b.js} +3 -0
- package/lib/duet/p-b03a46b6.entry.js +4 -0
- package/lib/duet/p-b1b8e510.entry.js +4 -0
- package/lib/duet/p-b694cbf5.system.js +4 -0
- package/lib/duet/p-b7e50cfa.entry.js +4 -0
- package/lib/duet/p-b82927b0.system.entry.js +4 -0
- package/lib/duet/p-ba205dca.entry.js +4 -0
- package/lib/duet/{p-2dd28142.system.js → p-bb12b972.system.js} +3 -0
- package/lib/duet/p-bcae23fc.system.entry.js +4 -0
- package/lib/duet/{p-a0e09a50.js → p-bd779757.js} +3 -0
- package/lib/duet/{p-69599f4e.js → p-bd9a7d8f.js} +3 -0
- package/lib/duet/p-be19c57b.system.entry.js +4 -0
- package/lib/duet/{p-6e296e99.js → p-c1325e35.js} +3 -0
- package/lib/duet/p-c4737f88.entry.js +4 -0
- package/lib/duet/{p-c3058688.js → p-c5beceed.js} +4 -1
- package/lib/duet/p-c5f10483.system.entry.js +4 -0
- package/lib/duet/{p-d95998b4.system.js → p-c7ae95bd.system.js} +3 -0
- package/lib/duet/{p-31c3b93f.system.js → p-ce0892e6.system.js} +3 -0
- package/lib/duet/p-d35fd913.system.entry.js +4 -0
- package/lib/duet/p-d4b4bfa6.entry.js +4 -0
- package/lib/duet/p-d7623eb8.system.entry.js +4 -0
- package/lib/duet/p-d863e150.system.js +4 -0
- package/lib/duet/p-dc85d2a4.entry.js +4 -0
- package/lib/duet/p-de093c16.entry.js +4 -0
- package/lib/duet/p-de842863.entry.js +4 -0
- package/lib/duet/p-e08b8909.entry.js +4 -0
- package/lib/duet/p-e39471b6.entry.js +4 -0
- package/lib/duet/{p-f180f2f2.system.js → p-e566ff11.system.js} +3 -0
- package/lib/duet/{p-cd603d87.system.js → p-e58ca7af.system.js} +4 -1
- package/lib/duet/p-e834c8d5.system.entry.js +4 -0
- package/lib/duet/{p-a8a8954e.system.entry.js → p-ef45cfe9.system.entry.js} +4 -1
- package/lib/duet/{p-73baca13.system.js → p-efaa0c04.system.js} +3 -0
- package/lib/duet/{p-fd305188.system.entry.js → p-f0b1850a.system.entry.js} +4 -1
- package/lib/duet/{p-871f3440.js → p-f11208c3.js} +3 -0
- package/lib/duet/p-f53c8019.entry.js +4 -0
- package/lib/duet/{p-95253d0a.entry.js → p-f96c4093.system.entry.js} +4 -1
- package/lib/duet/p-fbd83d67.entry.js +4 -0
- package/lib/duet/{p-dbe056ce.system.js → p-fd98468a.system.js} +3 -0
- package/lib/duet/p-fdecaf46.entry.js +4 -0
- package/lib/esm/{action-arrow-down-small-c24d2c7f.js → action-arrow-down-small-82273dc8.js} +3 -0
- package/lib/esm/{action-new-window-small-d592feb6.js → action-new-window-small-1945be91.js} +3 -0
- package/lib/esm/{app-globals-2796679e.js → app-globals-6641e444.js} +3 -0
- package/lib/esm/{bodyScrollLock.es6-cf1e49b2.js → bodyScrollLock.es6-61b5e9a4.js} +3 -0
- package/lib/esm/{common-strings-d5205fd4.js → common-strings-97e04e4b.js} +3 -0
- package/lib/esm/{create-id-124e0fc4.js → create-id-981107da.js} +3 -0
- package/lib/esm/{dom-1f98a75f.js → dom-21034390.js} +4 -1
- package/lib/esm/duet-alert.entry.js +10 -4
- package/lib/esm/duet-badge.entry.js +7 -4
- package/lib/esm/duet-button_2.entry.js +17 -10
- package/lib/esm/duet-caption_4.entry.js +23 -17
- package/lib/esm/duet-card.entry.js +13 -10
- package/lib/esm/duet-checkbox.entry.js +7 -4
- package/lib/esm/duet-choice_2.entry.js +16 -11
- package/lib/esm/duet-collapsible.entry.js +512 -8
- package/lib/esm/duet-cookie-consent.entry.js +6 -3
- package/lib/esm/duet-date-picker.entry.js +31 -15
- package/lib/esm/duet-divider_2.entry.js +7 -4
- package/lib/esm/duet-empty-state.entry.js +6 -3
- package/lib/esm/duet-fieldset.entry.js +7 -4
- package/lib/esm/duet-footer.entry.js +15 -8
- package/lib/esm/duet-grid_2.entry.js +8 -5
- package/lib/esm/duet-header_2.entry.js +68 -21
- package/lib/esm/duet-hero.entry.js +16 -10
- package/lib/esm/duet-icon.entry.js +22 -6
- package/lib/esm/duet-input_2.entry.js +16 -8
- package/lib/esm/duet-layout.entry.js +6 -3
- package/lib/esm/duet-list_2.entry.js +8 -5
- package/lib/esm/duet-modal.entry.js +19 -12
- package/lib/esm/duet-notification_2.entry.js +17 -9
- package/lib/esm/duet-number-input.entry.js +54 -24
- package/lib/esm/duet-radio_2.entry.js +9 -6
- package/lib/esm/duet-range-slider.entry.js +9 -6
- package/lib/esm/duet-select.entry.js +8 -5
- package/lib/esm/duet-step_2.entry.js +9 -6
- package/lib/esm/duet-tab_2.entry.js +23 -11
- package/lib/esm/duet-table.entry.js +7 -4
- package/lib/esm/duet-textarea.entry.js +8 -5
- package/lib/esm/duet-toggle.entry.js +7 -4
- package/lib/esm/duet-tooltip.entry.js +33 -15
- package/lib/esm/duet-tray.entry.js +33 -15
- package/lib/esm/duet-visually-hidden.entry.js +5 -2
- package/lib/esm/duet.js +8 -5
- package/lib/esm/{focus-utils-e76191e8.js → focus-utils-1995e5a9.js} +4 -1
- package/lib/esm/{index-aaa7610e.js → index-6e246691.js} +11 -1
- package/lib/esm/index.js +3 -1
- package/lib/esm/{input-utils-8a4c03a1.js → input-utils-f4cafee1.js} +28 -1
- package/lib/esm/{is-internet-explorer-0b40c5fe.js → is-internet-explorer-62b3bdbd.js} +3 -0
- package/lib/esm/{keyboard-utils-956f0d36.js → keyboard-utils-584cedd7.js} +3 -0
- package/lib/esm/language-utils-d5c38f65.js +89 -0
- package/lib/esm/loader.js +7 -4
- package/lib/esm/{shadow-css-67b66845.js → shadow-css-31e2d504.js} +4 -1
- package/lib/esm/string-utils-2f1793b8.js +49 -0
- package/lib/esm/{themeable-component-2a857b64.js → themeable-component-572685dd.js} +3 -0
- package/lib/esm/{token-utils-56e2be37.js → token-utils-5a35377f.js} +4 -1
- package/lib/esm/{tokens.module-17f6088f.js → tokens.module-edb66c04.js} +3 -0
- package/lib/esm/{watch-options-8f61a365.js → watch-options-de55ea78.js} +3 -0
- package/lib/esm-es5/{action-arrow-down-small-c24d2c7f.js → action-arrow-down-small-82273dc8.js} +3 -0
- package/lib/esm-es5/{action-new-window-small-d592feb6.js → action-new-window-small-1945be91.js} +3 -0
- package/lib/esm-es5/{app-globals-2796679e.js → app-globals-6641e444.js} +3 -0
- package/lib/esm-es5/{bodyScrollLock.es6-cf1e49b2.js → bodyScrollLock.es6-61b5e9a4.js} +3 -0
- package/lib/esm-es5/{common-strings-d5205fd4.js → common-strings-97e04e4b.js} +3 -0
- package/lib/esm-es5/{create-id-124e0fc4.js → create-id-981107da.js} +3 -0
- package/lib/esm-es5/{dom-1f98a75f.js → dom-21034390.js} +3 -0
- package/lib/esm-es5/duet-alert.entry.js +4 -1
- package/lib/esm-es5/duet-badge.entry.js +4 -1
- package/lib/esm-es5/duet-button_2.entry.js +4 -1
- package/lib/esm-es5/duet-caption_4.entry.js +4 -1
- package/lib/esm-es5/duet-card.entry.js +4 -1
- package/lib/esm-es5/duet-checkbox.entry.js +4 -1
- package/lib/esm-es5/duet-choice_2.entry.js +4 -1
- package/lib/esm-es5/duet-collapsible.entry.js +4 -1
- package/lib/esm-es5/duet-cookie-consent.entry.js +4 -1
- package/lib/esm-es5/duet-date-picker.entry.js +4 -1
- package/lib/esm-es5/duet-divider_2.entry.js +4 -1
- package/lib/esm-es5/duet-empty-state.entry.js +4 -1
- package/lib/esm-es5/duet-fieldset.entry.js +4 -1
- package/lib/esm-es5/duet-footer.entry.js +4 -1
- package/lib/esm-es5/duet-grid_2.entry.js +4 -1
- package/lib/esm-es5/duet-header_2.entry.js +4 -1
- package/lib/esm-es5/duet-hero.entry.js +4 -1
- package/lib/esm-es5/duet-icon.entry.js +4 -1
- package/lib/esm-es5/duet-input_2.entry.js +4 -1
- package/lib/esm-es5/duet-layout.entry.js +4 -1
- package/lib/esm-es5/duet-list_2.entry.js +4 -1
- package/lib/esm-es5/duet-modal.entry.js +4 -1
- package/lib/esm-es5/duet-notification_2.entry.js +4 -1
- package/lib/esm-es5/duet-number-input.entry.js +4 -1
- package/lib/esm-es5/duet-radio_2.entry.js +4 -1
- package/lib/esm-es5/duet-range-slider.entry.js +4 -1
- package/lib/esm-es5/duet-select.entry.js +4 -1
- package/lib/esm-es5/duet-step_2.entry.js +4 -1
- package/lib/esm-es5/duet-tab_2.entry.js +4 -1
- package/lib/esm-es5/duet-table.entry.js +4 -1
- package/lib/esm-es5/duet-textarea.entry.js +4 -1
- package/lib/esm-es5/duet-toggle.entry.js +4 -1
- package/lib/esm-es5/duet-tooltip.entry.js +4 -1
- package/lib/esm-es5/duet-tray.entry.js +4 -1
- package/lib/esm-es5/duet-visually-hidden.entry.js +4 -1
- package/lib/esm-es5/duet.js +4 -1
- package/lib/esm-es5/{focus-utils-e76191e8.js → focus-utils-1995e5a9.js} +4 -1
- package/lib/esm-es5/index-6e246691.js +4 -0
- package/lib/esm-es5/index.js +3 -0
- package/lib/esm-es5/input-utils-f4cafee1.js +4 -0
- package/lib/esm-es5/{is-internet-explorer-0b40c5fe.js → is-internet-explorer-62b3bdbd.js} +3 -0
- package/lib/esm-es5/{keyboard-utils-956f0d36.js → keyboard-utils-584cedd7.js} +3 -0
- package/lib/esm-es5/language-utils-d5c38f65.js +4 -0
- package/lib/esm-es5/loader.js +4 -1
- package/lib/esm-es5/{shadow-css-67b66845.js → shadow-css-31e2d504.js} +3 -0
- package/lib/esm-es5/string-utils-2f1793b8.js +4 -0
- package/lib/esm-es5/{themeable-component-2a857b64.js → themeable-component-572685dd.js} +3 -0
- package/lib/esm-es5/{token-utils-56e2be37.js → token-utils-5a35377f.js} +4 -1
- package/lib/esm-es5/{tokens.module-17f6088f.js → tokens.module-edb66c04.js} +3 -0
- package/lib/esm-es5/{watch-options-8f61a365.js → watch-options-de55ea78.js} +3 -0
- package/lib/html.html-data.json +140 -2
- package/lib/loader/cdn.js +3 -1
- package/lib/loader/index.cjs.js +3 -1
- package/lib/loader/index.d.ts +0 -1
- package/lib/loader/index.es2017.js +3 -1
- package/lib/loader/index.js +3 -1
- package/lib/types/components/duet-alert/duet-alert.d.ts +4 -2
- package/lib/types/components/duet-badge/duet-badge.d.ts +1 -1
- package/lib/types/components/duet-button/duet-button.d.ts +6 -3
- package/lib/types/components/duet-caption/duet-caption.d.ts +1 -1
- package/lib/types/components/duet-card/duet-card.d.ts +1 -1
- package/lib/types/components/duet-checkbox/duet-checkbox.d.ts +1 -1
- package/lib/types/components/duet-choice/duet-choice.d.ts +5 -4
- package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +24 -1
- package/lib/types/components/duet-date-picker/date-picker-month.d.ts +1 -1
- package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +16 -7
- package/lib/types/components/duet-divider/duet-divider.d.ts +1 -1
- package/lib/types/components/duet-empty-state/duet-empty-state.d.ts +1 -1
- package/lib/types/components/duet-fieldset/duet-fieldset.d.ts +1 -1
- package/lib/types/components/duet-footer/duet-footer.d.ts +7 -3
- package/lib/types/components/duet-grid-item/duet-grid-item.d.ts +1 -1
- package/lib/types/components/duet-header/duet-header.d.ts +50 -8
- package/lib/types/components/duet-heading/duet-heading.d.ts +1 -1
- package/lib/types/components/duet-hero/duet-hero.d.ts +8 -5
- package/lib/types/components/duet-icon/duet-icon.d.ts +1 -1
- package/lib/types/components/duet-input/duet-input.d.ts +2 -2
- package/lib/types/components/duet-link/duet-link.d.ts +8 -5
- package/lib/types/components/duet-list/duet-list.d.ts +1 -1
- package/lib/types/components/duet-logo/duet-logo.d.ts +3 -1
- package/lib/types/components/duet-modal/duet-modal.d.ts +11 -5
- package/lib/types/components/duet-notification/duet-notification.d.ts +4 -1
- package/lib/types/components/duet-notification-drawer/duet-notification-drawer.d.ts +6 -5
- package/lib/types/components/duet-number-input/duet-number-input.d.ts +29 -2
- package/lib/types/components/duet-paragraph/duet-paragraph.d.ts +1 -1
- package/lib/types/components/duet-radio/duet-radio.d.ts +2 -2
- package/lib/types/components/duet-range-slider/duet-range-slider.d.ts +2 -2
- package/lib/types/components/duet-select/duet-select.d.ts +1 -1
- package/lib/types/components/duet-step/duet-step.d.ts +1 -1
- package/lib/types/components/duet-stepper/duet-stepper.d.ts +1 -1
- package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +10 -1
- package/lib/types/components/duet-textarea/duet-textarea.d.ts +2 -2
- package/lib/types/components/duet-toggle/duet-toggle.d.ts +2 -2
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +16 -1
- package/lib/types/components/duet-tray/duet-tray.d.ts +15 -0
- package/lib/types/components.d.ts +265 -33
- package/lib/types/utils/input-utils.d.ts +9 -0
- package/lib/types/utils/language-utils.d.ts +26 -3
- package/lib/types/utils/string-utils.d.ts +1 -0
- package/lib/types/utils/test-utils.d.ts +1 -1
- package/package.json +39 -23
- package/lib/cjs/language-utils-0f4f60f1.js +0 -54
- package/lib/cjs/string-utils-0336d6da.js +0 -28
- package/lib/duet/p-00914fa8.entry.js +0 -1
- package/lib/duet/p-08b10b1b.entry.js +0 -1
- package/lib/duet/p-0a5bdffc.entry.js +0 -1
- package/lib/duet/p-117e6a2d.system.entry.js +0 -1
- package/lib/duet/p-11f650f9.system.entry.js +0 -1
- package/lib/duet/p-120f15f9.entry.js +0 -1
- package/lib/duet/p-1270fad1.entry.js +0 -1
- package/lib/duet/p-15c4ae87.system.entry.js +0 -1
- package/lib/duet/p-19d86321.system.js +0 -1
- package/lib/duet/p-1a544f89.js +0 -1
- package/lib/duet/p-1a773ea3.system.entry.js +0 -1
- package/lib/duet/p-1f18716e.entry.js +0 -1
- package/lib/duet/p-2141f564.system.js +0 -1
- package/lib/duet/p-23f2a281.entry.js +0 -1
- package/lib/duet/p-28072b15.entry.js +0 -1
- package/lib/duet/p-2ce3a1bc.entry.js +0 -1
- package/lib/duet/p-2f56c5d0.entry.js +0 -1
- package/lib/duet/p-330725c5.js +0 -1
- package/lib/duet/p-378186a8.entry.js +0 -1
- package/lib/duet/p-393dc5f0.system.entry.js +0 -1
- package/lib/duet/p-4486ae28.system.entry.js +0 -1
- package/lib/duet/p-45713f8a.system.entry.js +0 -1
- package/lib/duet/p-4e4d8137.system.entry.js +0 -1
- package/lib/duet/p-4f4895e0.entry.js +0 -1
- package/lib/duet/p-51f89eec.entry.js +0 -1
- package/lib/duet/p-545f6a97.entry.js +0 -1
- package/lib/duet/p-568ab60b.system.entry.js +0 -1
- package/lib/duet/p-598ba79a.js +0 -1
- package/lib/duet/p-598edf9e.system.entry.js +0 -1
- package/lib/duet/p-5e6a5340.entry.js +0 -1
- package/lib/duet/p-64fd394a.entry.js +0 -1
- package/lib/duet/p-66c75914.system.entry.js +0 -1
- package/lib/duet/p-6dc51621.system.entry.js +0 -1
- package/lib/duet/p-6f41124b.system.js +0 -1
- package/lib/duet/p-6f6b2cc5.system.entry.js +0 -1
- package/lib/duet/p-700243af.entry.js +0 -1
- package/lib/duet/p-770d46e6.entry.js +0 -1
- package/lib/duet/p-8498e753.system.entry.js +0 -1
- package/lib/duet/p-852e96c1.system.js +0 -1
- package/lib/duet/p-86de511c.system.entry.js +0 -1
- package/lib/duet/p-8db7a844.system.entry.js +0 -1
- package/lib/duet/p-91255671.js +0 -1
- package/lib/duet/p-921afc00.entry.js +0 -1
- package/lib/duet/p-9ac41fbc.system.entry.js +0 -1
- package/lib/duet/p-9b6adcb3.system.entry.js +0 -1
- package/lib/duet/p-9b9cb411.system.entry.js +0 -1
- package/lib/duet/p-9ff8c7c4.entry.js +0 -1
- package/lib/duet/p-a4d8b2c4.entry.js +0 -1
- package/lib/duet/p-a92bdc1c.system.entry.js +0 -1
- package/lib/duet/p-b6e261ef.js +0 -1
- package/lib/duet/p-b761ef2d.entry.js +0 -1
- package/lib/duet/p-b87ce8c9.system.entry.js +0 -1
- package/lib/duet/p-bdf5fe15.entry.js +0 -1
- package/lib/duet/p-c0c1bcba.system.js +0 -1
- package/lib/duet/p-c5fe3120.system.entry.js +0 -1
- package/lib/duet/p-c6d19c6c.system.entry.js +0 -1
- package/lib/duet/p-c8068a31.entry.js +0 -1
- package/lib/duet/p-cb073c9b.entry.js +0 -1
- package/lib/duet/p-cb49c05a.system.js +0 -1
- package/lib/duet/p-cb62f051.entry.js +0 -1
- package/lib/duet/p-ce55045f.js +0 -1
- package/lib/duet/p-d20651ba.entry.js +0 -1
- package/lib/duet/p-d7c57e6c.entry.js +0 -1
- package/lib/duet/p-da0df691.system.entry.js +0 -1
- package/lib/duet/p-dc2d2635.system.entry.js +0 -1
- package/lib/duet/p-dcd0f562.system.entry.js +0 -1
- package/lib/duet/p-dd4281d5.entry.js +0 -1
- package/lib/duet/p-e374aba6.entry.js +0 -1
- package/lib/duet/p-e693d73a.system.entry.js +0 -1
- package/lib/duet/p-e7bef783.entry.js +0 -1
- package/lib/duet/p-ec326c4c.system.entry.js +0 -1
- package/lib/duet/p-efa3e05d.entry.js +0 -1
- package/lib/duet/p-f2cca5cc.system.js +0 -1
- package/lib/duet/p-f3d07b69.entry.js +0 -1
- package/lib/duet/p-fbeb43e8.entry.js +0 -1
- package/lib/esm/language-utils-c7ce7c0e.js +0 -50
- package/lib/esm/string-utils-9ef35d2a.js +0 -25
- package/lib/esm-es5/index-aaa7610e.js +0 -1
- package/lib/esm-es5/input-utils-8a4c03a1.js +0 -1
- package/lib/esm-es5/language-utils-c7ce7c0e.js +0 -1
- package/lib/esm-es5/string-utils-9ef35d2a.js +0 -1
package/hydrate/index.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
1
4
|
'use strict';
|
|
2
5
|
|
|
3
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
7
|
|
|
5
8
|
/*!
|
|
6
|
-
Stencil Mock Doc v2.
|
|
9
|
+
Stencil Mock Doc v2.9.0 | MIT Licensed | https://stenciljs.com
|
|
7
10
|
*/
|
|
8
11
|
const CONTENT_REF_ID = 'r';
|
|
9
12
|
const ORG_LOCATION_ID = 'o';
|
|
@@ -2567,6 +2570,9 @@ class MockAnchorElement extends MockHTMLElement {
|
|
|
2567
2570
|
set href(value) {
|
|
2568
2571
|
this.setAttribute('href', value);
|
|
2569
2572
|
}
|
|
2573
|
+
get pathname() {
|
|
2574
|
+
return new URL(this.href).pathname;
|
|
2575
|
+
}
|
|
2570
2576
|
}
|
|
2571
2577
|
class MockButtonElement extends MockHTMLElement {
|
|
2572
2578
|
constructor(ownerDocument) {
|
|
@@ -5531,6 +5537,51 @@ const cmpModules = new Map, getModule = e => {
|
|
|
5531
5537
|
isTesting: !1
|
|
5532
5538
|
}, styles = new Map;
|
|
5533
5539
|
|
|
5540
|
+
function isObject(maybeObj) {
|
|
5541
|
+
return Object.prototype.toString.call(maybeObj) === "[object Object]";
|
|
5542
|
+
}
|
|
5543
|
+
const parsePossibleJSON = (maybeJSON) => {
|
|
5544
|
+
if (Array.isArray(maybeJSON) || isObject(maybeJSON)) {
|
|
5545
|
+
return maybeJSON;
|
|
5546
|
+
}
|
|
5547
|
+
if (typeof maybeJSON === "string") {
|
|
5548
|
+
try {
|
|
5549
|
+
return JSON.parse(maybeJSON);
|
|
5550
|
+
}
|
|
5551
|
+
catch (e) {
|
|
5552
|
+
console.warn(e);
|
|
5553
|
+
}
|
|
5554
|
+
}
|
|
5555
|
+
// undefined is not a type in JSON,
|
|
5556
|
+
// so we use it here to signal invalid input
|
|
5557
|
+
return undefined;
|
|
5558
|
+
};
|
|
5559
|
+
/**
|
|
5560
|
+
* Format string, via simplistic sprintf equivalent
|
|
5561
|
+
* @example String.format('{0} is super, but {1} is best! {{0}}', 'Duet', 'Coffee'); -> "Duet is super, but Coffee ist best! {0}"
|
|
5562
|
+
*
|
|
5563
|
+
*/
|
|
5564
|
+
// @ts-ignore
|
|
5565
|
+
if (!String.format) {
|
|
5566
|
+
// @ts-ignore
|
|
5567
|
+
String.format = function (format) {
|
|
5568
|
+
var args = Array.prototype.slice.call(arguments, 1);
|
|
5569
|
+
return format.replace(/\{\{|\}\}|\{(\d+)\}/g, function (curlyBrack, index) {
|
|
5570
|
+
return curlyBrack == "{{" ? "{" : curlyBrack == "}}" ? "}" : args[index];
|
|
5571
|
+
});
|
|
5572
|
+
};
|
|
5573
|
+
}
|
|
5574
|
+
const MATCH_DISALLOWED_CHARS = /[^a-z0-9áéíóúñüöäå \.,_-]/gim;
|
|
5575
|
+
function sanitizeString$1(string) {
|
|
5576
|
+
return string.replace(MATCH_DISALLOWED_CHARS, "").trim();
|
|
5577
|
+
}
|
|
5578
|
+
const convertHtmlQuotes = string => {
|
|
5579
|
+
if (typeof string === "string") {
|
|
5580
|
+
return string.replace(/"/g, '"').replace(/'/g, '"');
|
|
5581
|
+
}
|
|
5582
|
+
return string;
|
|
5583
|
+
};
|
|
5584
|
+
|
|
5534
5585
|
const localeLookUpTable = {
|
|
5535
5586
|
fi: "fi-FI",
|
|
5536
5587
|
en: "en-GB",
|
|
@@ -5545,13 +5596,13 @@ const localeMonetarySignifierLookUpTable = {
|
|
|
5545
5596
|
};
|
|
5546
5597
|
const defLanguageArray = ["fi", "en", "sv"];
|
|
5547
5598
|
const defaultLanguage = "fi";
|
|
5548
|
-
const
|
|
5549
|
-
? document.documentElement.lang.toLowerCase()
|
|
5550
|
-
|
|
5599
|
+
const getCurrentLanguage = () => {
|
|
5600
|
+
return document.documentElement.lang ? document.documentElement.lang.toLowerCase() : defaultLanguage;
|
|
5601
|
+
};
|
|
5551
5602
|
const isOfTypeLanguage = (keyInput) => {
|
|
5552
5603
|
return defLanguageArray.includes(keyInput);
|
|
5553
5604
|
};
|
|
5554
|
-
const checkForLanguage = (languageString =
|
|
5605
|
+
const checkForLanguage = (languageString = getCurrentLanguage()) => {
|
|
5555
5606
|
if (isOfTypeLanguage(languageString)) {
|
|
5556
5607
|
return languageString;
|
|
5557
5608
|
}
|
|
@@ -5559,8 +5610,20 @@ const checkForLanguage = (languageString = currentLanguage) => {
|
|
|
5559
5610
|
return defaultLanguage;
|
|
5560
5611
|
}
|
|
5561
5612
|
};
|
|
5562
|
-
|
|
5563
|
-
|
|
5613
|
+
/**
|
|
5614
|
+
* Returns the current language as a string representation (taken from html lang attribute)
|
|
5615
|
+
* If language is not fi|sv|en it will default to "fi"
|
|
5616
|
+
* @param {string} lang=fi - "fi" | "sv" | "en"
|
|
5617
|
+
* @default {string} "fi"
|
|
5618
|
+
*/
|
|
5619
|
+
const getLanguage = (languageString = getCurrentLanguage()) => checkForLanguage(languageString);
|
|
5620
|
+
/**
|
|
5621
|
+
* Returns the current language and locale
|
|
5622
|
+
* If language is not fi|sv|en it will default to "fi"
|
|
5623
|
+
* special case where lang can be ALSO be "us" in addition to other types - if user decides to override local language
|
|
5624
|
+
* @param {string} lang="fi" - "fi" | "sv" | "en" | "us"
|
|
5625
|
+
* @default {object} {locale: "fi-FI", money: "€"}
|
|
5626
|
+
*/
|
|
5564
5627
|
const getLocale = (lang) => {
|
|
5565
5628
|
const returnObj = {
|
|
5566
5629
|
locale: localeLookUpTable[lang],
|
|
@@ -5571,12 +5634,34 @@ const getLocale = (lang) => {
|
|
|
5571
5634
|
}
|
|
5572
5635
|
throw new Error(`Locale for "${lang}" not found`);
|
|
5573
5636
|
};
|
|
5637
|
+
const sanitizeString = (string) => {
|
|
5638
|
+
const argIsString = typeof string === "string";
|
|
5639
|
+
if (argIsString) {
|
|
5640
|
+
try {
|
|
5641
|
+
return JSON.parse(convertHtmlQuotes(string));
|
|
5642
|
+
}
|
|
5643
|
+
catch (e) {
|
|
5644
|
+
console.log("getLocaleString received a string, that didnt parse to json object", string, e);
|
|
5645
|
+
}
|
|
5646
|
+
}
|
|
5647
|
+
return string;
|
|
5648
|
+
};
|
|
5649
|
+
/**
|
|
5650
|
+
* Returns the current string / object from a given translation object
|
|
5651
|
+
* If language is not fi|sv|en it will default to "fi"
|
|
5652
|
+
* special case where lang can be ALSO be "us" in addition to other types - if user decides to override local language
|
|
5653
|
+
* @param {object} langObject - {fi: "finnish", sv: "swedish", en: "english"} | string will get JSON.parsed
|
|
5654
|
+
* @param {boolean} languageOverride = false - in case you want to override the actual language set in html tag
|
|
5655
|
+
* @default {object} {locale: "fi-FI", money: "€"}
|
|
5656
|
+
* @returns {(string|Object)} given example contains {fi:"something"} and langua===fi this will return "something"
|
|
5657
|
+
*/
|
|
5574
5658
|
const getLocaleString = (langObject, languageOverride) => {
|
|
5659
|
+
const obj = sanitizeString(langObject);
|
|
5575
5660
|
if (languageOverride) {
|
|
5576
|
-
return
|
|
5661
|
+
return obj[checkForLanguage(languageOverride)];
|
|
5577
5662
|
}
|
|
5578
5663
|
else {
|
|
5579
|
-
return
|
|
5664
|
+
return obj[getLanguage()];
|
|
5580
5665
|
}
|
|
5581
5666
|
};
|
|
5582
5667
|
|
|
@@ -5604,6 +5689,7 @@ class DuetAlert {
|
|
|
5604
5689
|
/**
|
|
5605
5690
|
* Property to change languageDefaults on the component.
|
|
5606
5691
|
* normally you would handle these strings on an application level and override @accessibleLabel when needed
|
|
5692
|
+
* @default {fi: "Sulje viesti", sv: "Stäng meddelandet", en: "Close the message"}
|
|
5607
5693
|
*/
|
|
5608
5694
|
this.accessibleLabelDefaults = {
|
|
5609
5695
|
fi: "Sulje viesti",
|
|
@@ -5612,6 +5698,7 @@ class DuetAlert {
|
|
|
5612
5698
|
};
|
|
5613
5699
|
/**
|
|
5614
5700
|
* Adds accessible label for the dismissible alert close button.
|
|
5701
|
+
* @default {fi: "Sulje viesti", sv: "Stäng meddelandet", en: "Close the message"}
|
|
5615
5702
|
*/
|
|
5616
5703
|
this.accessibleLabel = getLocaleString(this.accessibleLabelDefaults);
|
|
5617
5704
|
/**
|
|
@@ -5685,7 +5772,7 @@ class DuetAlert {
|
|
|
5685
5772
|
"$tagName$": "duet-alert",
|
|
5686
5773
|
"$members$": {
|
|
5687
5774
|
"theme": [1025],
|
|
5688
|
-
"accessibleLabelDefaults": [
|
|
5775
|
+
"accessibleLabelDefaults": [1, "accessible-label-default"],
|
|
5689
5776
|
"accessibleLabel": [1, "accessible-label"],
|
|
5690
5777
|
"announcements": [4],
|
|
5691
5778
|
"icon": [1],
|
|
@@ -5703,7 +5790,7 @@ class DuetAlert {
|
|
|
5703
5790
|
}; }
|
|
5704
5791
|
}
|
|
5705
5792
|
|
|
5706
|
-
const duetBadgeCss = "/*!@*,\n*::after,\n*::before*/*.sc-duet-badge,*.sc-duet-badge::after,*.sc-duet-badge::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}/*!@:host*/.sc-duet-badge-h{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*/.sc-duet-badge-h:last-child,.sc-duet-badge-h:last-of-type{margin-right:0 !important}/*!@:host(.duet-m-0)*/.duet-m-0.sc-duet-badge-h{margin:0 !important}/*!@.duet-badge*/.duet-badge.sc-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;vertical-align:middle;background:#e6f1f7;border-radius:20rem}/*!@.duet-badge.duet-p-0*/.duet-badge.duet-p-0.sc-duet-badge{padding:0 !important}/*!@.duet-badge.duet-m-0*/.duet-badge.duet-m-0.sc-duet-badge{margin:0 !important}/*!@.duet-badge.duet-theme-turva*/.duet-badge.duet-theme-turva.sc-duet-badge{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*/.duet-badge.warning.sc-duet-badge{background:#fef3df}/*!@.duet-badge.warning.duet-theme-turva*/.duet-badge.warning.duet-theme-turva.sc-duet-badge{background:#fef1db}/*!@.duet-badge.danger*/.duet-badge.danger.sc-duet-badge{background:#fce9ef}/*!@.duet-badge.danger.duet-theme-turva*/.duet-badge.danger.duet-theme-turva.sc-duet-badge{background:#fceae7}/*!@.duet-badge.success*/.duet-badge.success.sc-duet-badge{background:#e6f3ef}/*!@.duet-badge.success.duet-theme-turva*/.duet-badge.success.duet-theme-turva.sc-duet-badge{background:#e6f3ed}";
|
|
5793
|
+
const duetBadgeCss = "/*!@*,\n*::after,\n*::before*/*.sc-duet-badge,*.sc-duet-badge::after,*.sc-duet-badge::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}/*!@:host*/.sc-duet-badge-h{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*/.sc-duet-badge-h:last-child,.sc-duet-badge-h:last-of-type{margin-right:0 !important}/*!@:host(.duet-m-0)*/.duet-m-0.sc-duet-badge-h{margin:0 !important}/*!@.duet-badge*/.duet-badge.sc-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*/.duet-badge.duet-p-0.sc-duet-badge{padding:0 !important}/*!@.duet-badge.duet-m-0*/.duet-badge.duet-m-0.sc-duet-badge{margin:0 !important}/*!@.duet-badge.duet-theme-turva*/.duet-badge.duet-theme-turva.sc-duet-badge{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*/.duet-badge.warning.sc-duet-badge{background:#fef3df}/*!@.duet-badge.warning.duet-theme-turva*/.duet-badge.warning.duet-theme-turva.sc-duet-badge{background:#fef1db}/*!@.duet-badge.danger*/.duet-badge.danger.sc-duet-badge{background:#fce9ef}/*!@.duet-badge.danger.duet-theme-turva*/.duet-badge.danger.duet-theme-turva.sc-duet-badge{background:#fceae7}/*!@.duet-badge.success*/.duet-badge.success.sc-duet-badge{background:#e6f3ef}/*!@.duet-badge.success.duet-theme-turva*/.duet-badge.success.duet-theme-turva.sc-duet-badge{background:#e6f3ed}";
|
|
5707
5794
|
|
|
5708
5795
|
class DuetBadge {
|
|
5709
5796
|
constructor(hostRef) {
|
|
@@ -5753,6 +5840,12 @@ class DuetBadge {
|
|
|
5753
5840
|
}; }
|
|
5754
5841
|
}
|
|
5755
5842
|
|
|
5843
|
+
const DuetStringsExternalDefaults = {
|
|
5844
|
+
fi: "Avautuu uuteen ikkunaan",
|
|
5845
|
+
sv: "Öppnas i nytt fönster",
|
|
5846
|
+
en: "Opens in a new window",
|
|
5847
|
+
};
|
|
5848
|
+
|
|
5756
5849
|
const colorWarning = "rgb(247, 178, 40)";
|
|
5757
5850
|
const colorGrayDarker = "rgb(101, 119, 135)";
|
|
5758
5851
|
const colorGrayLighter = "rgb(245, 248, 250)";
|
|
@@ -5900,7 +5993,7 @@ const mediaQueryXLarge = "'(min-width: 64.0625em)'";
|
|
|
5900
5993
|
const mediaQueryXxLarge = "'(min-width: 76.25em)'";
|
|
5901
5994
|
const mediaQueryXxxLarge = "'(min-width: 106.25em)'";
|
|
5902
5995
|
|
|
5903
|
-
var tokens = /*#__PURE__*/Object.freeze({
|
|
5996
|
+
var tokens$2 = /*#__PURE__*/Object.freeze({
|
|
5904
5997
|
__proto__: null,
|
|
5905
5998
|
colorWarning: colorWarning,
|
|
5906
5999
|
colorGrayDarker: colorGrayDarker,
|
|
@@ -6068,17 +6161,11 @@ function convertToColorName(name) {
|
|
|
6068
6161
|
}
|
|
6069
6162
|
function getColorByName(name) {
|
|
6070
6163
|
if (name) {
|
|
6071
|
-
return tokens[convertToColorName(name)];
|
|
6164
|
+
return tokens$2[convertToColorName(name)];
|
|
6072
6165
|
}
|
|
6073
6166
|
}
|
|
6074
6167
|
|
|
6075
|
-
const DuetStringsExternalDefaults = {
|
|
6076
|
-
fi: "Avautuu uuteen ikkunaan",
|
|
6077
|
-
sv: "Öppnas i nytt fönster",
|
|
6078
|
-
en: "Opens in a new window",
|
|
6079
|
-
};
|
|
6080
|
-
|
|
6081
|
-
const duetButtonCss = "/*!@*,\n*::after,\n*::before*/*.sc-duet-button,*.sc-duet-button::after,*.sc-duet-button::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}/*!@:host*/.sc-duet-button-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;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*/.sc-duet-button-h:last-child,.sc-duet-button-h:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){/*!@:host*/.sc-duet-button-h{width:100%}}/*!@:host(.duet-small)*/.duet-small.sc-duet-button-h{margin-right:2px !important;margin-bottom:8px !important}/*!@:host(.duet-small):last-child, :host(.duet-small):last-of-type*/.duet-small.sc-duet-button-h:last-child,.duet-small.sc-duet-button-h:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){/*!@:host(.duet-small)*/.duet-small.sc-duet-button-h{width:auto}}/*!@:host(.duet-expand)*/.duet-expand.sc-duet-button-h{width:100% !important}/*!@:host(.duet-m-0)*/.duet-m-0.sc-duet-button-h{margin:0 !important}/*!@:host(.duet-fixed)*/.duet-fixed.sc-duet-button-h{width:auto !important}/*!@:host(:last-child)*/.sc-duet-button-h:last-child{margin-right:0 !important}/*!@.duet-button-container*/.duet-button-container.sc-duet-button{position:relative;width:100%}/*!@.duet-button*/.duet-button.sc-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*/.duet-button.duet-p-0.sc-duet-button{padding:0 !important}/*!@.duet-button.duet-m-0*/.duet-button.duet-m-0.sc-duet-button{margin:0 !important}/*!@.duet-button.duet-button-is-small*/.duet-button.duet-button-is-small.sc-duet-button{padding:9px 19px 10px !important;min-width:5.3333333333rem;font-size:0.875rem}/*!@.duet-button.duet-button-is-small.icon*/.duet-button.duet-button-is-small.icon.sc-duet-button{padding-left:48px !important}/*!@.duet-button.duet-button-is-small.icon-right*/.duet-button.duet-button-is-small.icon-right.sc-duet-button{padding-right:48px !important;padding-left:20px !important}/*!@.duet-theme-turva .duet-button*/.duet-theme-turva.sc-duet-button .duet-button.sc-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*/.duet-button.sc-duet-button .duet-button-contents.sc-duet-button{position:relative;display:inline-block;margin:0 auto;pointer-events:none}/*!@.duet-button.duet-no-wrap*/.duet-button.duet-no-wrap.sc-duet-button{white-space:nowrap}/*!@.duet-button.icon*/.duet-button.icon.sc-duet-button{padding-left:52px !important}/*!@.duet-button.icon-right*/.duet-button.icon-right.sc-duet-button{padding-right:52px !important;padding-left:28px !important}/*!@.duet-button svg*/.duet-button.sc-duet-button svg.sc-duet-button{width:100%;min-width:100%;fill:currentColor}/*!@.duet-button .duet-button-icon*/.duet-button.sc-duet-button .duet-button-icon.sc-duet-button{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*/.duet-button.sc-duet-button .duet-button-icon.sc-duet-button duet-icon.sc-duet-button{width:16px;height:16px}/*!@.duet-button .duet-button-icon.right*/.duet-button.sc-duet-button .duet-button-icon.right.sc-duet-button{right:-28px;left:auto}/*!@.duet-button .duet-button-icon.large*/.duet-button.sc-duet-button .duet-button-icon.large.sc-duet-button{left:-32px;width:20px;height:20px}/*!@.duet-button .duet-button-icon.large duet-icon*/.duet-button.sc-duet-button .duet-button-icon.large.sc-duet-button duet-icon.sc-duet-button{width:20px;height:20px}/*!@.duet-button .duet-button-icon.large.right*/.duet-button.sc-duet-button .duet-button-icon.large.right.sc-duet-button{right:-32px;left:auto}/*!@.duet-button .duet-button-icon.medium-small*/.duet-button.sc-duet-button .duet-button-icon.medium-small.sc-duet-button{left:-16px;width:10px;height:10px;padding-top:1px}/*!@.duet-button .duet-button-icon.medium-small duet-icon*/.duet-button.sc-duet-button .duet-button-icon.medium-small.sc-duet-button duet-icon.sc-duet-button{width:10px;height:10px}/*!@.duet-button .duet-button-icon.medium-small.right*/.duet-button.sc-duet-button .duet-button-icon.medium-small.right.sc-duet-button{right:-16px;left:auto}/*!@.duet-button .duet-button-icon.small*/.duet-button.sc-duet-button .duet-button-icon.small.sc-duet-button{left:-16px;width:7px;height:7px}/*!@.duet-button .duet-button-icon.small duet-icon*/.duet-button.sc-duet-button .duet-button-icon.small.sc-duet-button duet-icon.sc-duet-button{width:7px;height:7px}/*!@.duet-button .duet-button-icon.small.right*/.duet-button.sc-duet-button .duet-button-icon.small.right.sc-duet-button{right:-16px;left:auto}/*!@.duet-button:focus*/.duet-button.sc-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*/.duet-theme-turva.sc-duet-button .duet-button.sc-duet-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}/*!@.duet-button:active*/.duet-button.sc-duet-button:active{opacity:0.75;transition:none}/*!@.duet-button.default*/.duet-button.default.sc-duet-button{border-color:#e1e3e6}/*!@.duet-theme-turva .duet-button.default*/.duet-theme-turva.sc-duet-button .duet-button.default.sc-duet-button{color:#c60c30 !important;border-color:#e4e4e6}/*!@.duet-button.default:hover*/.duet-button.default.sc-duet-button:hover{border-color:#0077b3}/*!@.duet-theme-turva .duet-button.default:hover*/.duet-theme-turva.sc-duet-button .duet-button.default.sc-duet-button:hover{border-color:#c60c30}/*!@.duet-button.default.duet-button-negative*/.duet-button.default.duet-button-negative.sc-duet-button{background-color:white}/*!@.duet-theme-turva .duet-button.default.duet-button-negative*/.duet-theme-turva.sc-duet-button .duet-button.default.duet-button-negative.sc-duet-button{background-color:#e4e4e6 !important}/*!@.duet-button.default.duet-button-negative:hover*/.duet-button.default.duet-button-negative.sc-duet-button:hover{color:#0077b3 !important;border-color:#0077b3}/*!@.duet-theme-turva .duet-button.default.duet-button-negative:hover*/.duet-theme-turva.sc-duet-button .duet-button.default.duet-button-negative.sc-duet-button:hover{color:#c60c30 !important;border-color:#c60c30}/*!@.duet-button.primary*/.duet-button.primary.sc-duet-button{color:white !important;background:#0077b3;border-color:#0077b3}/*!@.duet-theme-turva .duet-button.primary*/.duet-theme-turva.sc-duet-button .duet-button.primary.sc-duet-button{color:white !important;background:#c60c30;border-color:#c60c30}/*!@.duet-button.primary:hover*/.duet-button.primary.sc-duet-button:hover{background:#005f8f;border-color:#005f8f;box-shadow:0 4px 20px rgba(34, 34, 34, 0.1)}/*!@.duet-theme-turva .duet-button.primary:hover*/.duet-theme-turva.sc-duet-button .duet-button.primary.sc-duet-button:hover{background:#940925;border-color:#940925}/*!@.duet-button.primary:focus*/.duet-button.primary.sc-duet-button: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*/.duet-theme-turva.sc-duet-button .duet-button.primary.sc-duet-button:focus{box-shadow:0 0 0 1px white, 0 0 0 4px rgba(23, 28, 58, 0.7)}/*!@.duet-button.secondary*/.duet-button.secondary.sc-duet-button{color:#00294d !important;background:transparent;border-color:#00294d}/*!@.duet-theme-turva .duet-button.secondary*/.duet-theme-turva.sc-duet-button .duet-button.secondary.sc-duet-button{color:#171c3a !important;border-color:#171c3a}/*!@.duet-button.secondary:hover*/.duet-button.secondary.sc-duet-button:hover{color:#0077b3 !important;border-color:#0077b3}/*!@.duet-theme-turva .duet-button.secondary:hover*/.duet-theme-turva.sc-duet-button .duet-button.secondary.sc-duet-button:hover{color:#c60c30 !important;border-color:#c60c30}/*!@.duet-button.secondary.duet-button-negative*/.duet-button.secondary.duet-button-negative.sc-duet-button{color:#e1e3e6 !important;border-color:white}/*!@.duet-theme-turva .duet-button.secondary.duet-button-negative*/.duet-theme-turva.sc-duet-button .duet-button.secondary.duet-button-negative.sc-duet-button{color:#e4e4e6 !important}/*!@.duet-button.secondary.duet-button-negative:hover*/.duet-button.secondary.duet-button-negative.sc-duet-button:hover{color:#0077b3 !important;border-color:#0077b3}/*!@.duet-theme-turva .duet-button.secondary.duet-button-negative:hover*/.duet-theme-turva.sc-duet-button .duet-button.secondary.duet-button-negative.sc-duet-button:hover{color:#c60c30 !important;border-color:#c60c30}/*!@.duet-button.negative*/.duet-button.negative.sc-duet-button{color:#00294d !important;background:white;border-color:white}/*!@.duet-theme-turva .duet-button.negative*/.duet-theme-turva.sc-duet-button .duet-button.negative.sc-duet-button{color:#171c3a !important}/*!@.duet-button.negative:hover*/.duet-button.negative.sc-duet-button:hover{color:white !important;background:transparent;border-color:white}/*!@.duet-button.negative:focus*/.duet-button.negative.sc-duet-button: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*/.duet-theme-turva.sc-duet-button .duet-button.negative.sc-duet-button:focus{box-shadow:0 0 0 1px #171c3a, 0 0 0 4px rgba(255, 255, 255, 0.7)}/*!@.duet-button.destructive*/.duet-button.destructive.sc-duet-button{color:#de2362 !important;background:white;border-color:#de2362}/*!@.duet-theme-turva .duet-button.destructive*/.duet-theme-turva.sc-duet-button .duet-button.destructive.sc-duet-button{color:#e02a0d !important;background:white;border-color:#e02a0d}/*!@.duet-button.destructive:hover*/.duet-button.destructive.sc-duet-button:hover{color:white !important;background:#b21c4e;border-color:#b21c4e}/*!@.duet-theme-turva .duet-button.destructive:hover*/.duet-theme-turva.sc-duet-button .duet-button.destructive.sc-duet-button:hover{color:white !important;background:#b3220a;border-color:#b3220a}/*!@.duet-button.plain*/.duet-button.plain.sc-duet-button{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*/.duet-theme-turva.sc-duet-button .duet-button.plain.sc-duet-button{color:#c60c30 !important;background:transparent;border-color:transparent}/*!@.duet-button.plain.icon*/.duet-button.plain.icon.sc-duet-button{padding-left:20px !important}/*!@.duet-button.plain.icon.icon-right*/.duet-button.plain.icon.icon-right.sc-duet-button{padding-right:20px !important;padding-left:0 !important}/*!@.duet-button.plain.icon.medium*/.duet-button.plain.icon.medium.sc-duet-button{padding-left:24px !important}/*!@.duet-button.plain.icon.medium.icon-right*/.duet-button.plain.icon.medium.icon-right.sc-duet-button{padding-right:24px !important;padding-left:0 !important}/*!@.duet-button.plain.icon.large*/.duet-button.plain.icon.large.sc-duet-button{padding-left:30px !important}/*!@.duet-button.plain.icon.large.icon-right*/.duet-button.plain.icon.large.icon-right.sc-duet-button{padding-right:30px !important;padding-left:0 !important}/*!@.duet-button.plain .duet-button-icon.left*/.duet-button.plain.sc-duet-button .duet-button-icon.left.sc-duet-button{left:-16.6666666667px !important}/*!@.duet-button.plain .duet-button-icon.left.medium*/.duet-button.plain.sc-duet-button .duet-button-icon.left.medium.sc-duet-button{left:-24px !important}/*!@.duet-button.plain .duet-button-icon.left.large*/.duet-button.plain.sc-duet-button .duet-button-icon.left.large.sc-duet-button{left:-30px !important}/*!@.duet-button.plain .duet-button-icon.right*/.duet-button.plain.sc-duet-button .duet-button-icon.right.sc-duet-button{right:-16.6666666667px !important}/*!@.duet-button.plain .duet-button-icon.right.medium*/.duet-button.plain.sc-duet-button .duet-button-icon.right.medium.sc-duet-button{right:-24px !important}/*!@.duet-button.plain .duet-button-icon.right.large*/.duet-button.plain.sc-duet-button .duet-button-icon.right.large.sc-duet-button{right:-30px !important}/*!@.duet-button.plain[disabled]*/.duet-button.plain[disabled].sc-duet-button{color:#657787 !important;background:transparent !important;border-color:transparent !important}/*!@.duet-theme-turva .duet-button.plain[disabled]*/.duet-theme-turva.sc-duet-button .duet-button.plain[disabled].sc-duet-button{color:transparent !important;background:transparent !important;border-color:#e4e4e6 !important}/*!@.duet-button.plain:hover*/.duet-button.plain.sc-duet-button:hover{color:#004d80 !important;background:transparent !important}/*!@.duet-theme-turva .duet-button.plain:hover*/.duet-theme-turva.sc-duet-button .duet-button.plain.sc-duet-button:hover{color:#940925 !important}/*!@.duet-button.plain.duet-button-negative*/.duet-button.plain.duet-button-negative.sc-duet-button{color:white !important}/*!@.duet-theme-turva .duet-button.plain.duet-button-negative*/.duet-theme-turva.sc-duet-button .duet-button.plain.duet-button-negative.sc-duet-button{color:#e4e4e6 !important}/*!@.duet-button.plain.duet-button-negative:hover*/.duet-button.plain.duet-button-negative.sc-duet-button:hover{color:#0077b3 !important}/*!@.duet-theme-turva .duet-button.plain.duet-button-negative:hover*/.duet-theme-turva.sc-duet-button .duet-button.plain.duet-button-negative.sc-duet-button:hover{color:#c60c30 !important}/*!@.duet-button.duet-button-icon-only*/.duet-button.duet-button-icon-only.sc-duet-button{min-width:48px;min-height:48px;padding:0 !important}/*!@.duet-button.duet-button-icon-only .duet-button-contents*/.duet-button.duet-button-icon-only.sc-duet-button .duet-button-contents.sc-duet-button{position:static}/*!@.duet-button.duet-button-icon-only .duet-button-icon.left.large,\n.duet-button.duet-button-icon-only .duet-button-icon.left.medium,\n.duet-button.duet-button-icon-only .duet-button-icon.left.small*/.duet-button.duet-button-icon-only.sc-duet-button .duet-button-icon.left.large.sc-duet-button,.duet-button.duet-button-icon-only.sc-duet-button .duet-button-icon.left.medium.sc-duet-button,.duet-button.duet-button-icon-only.sc-duet-button .duet-button-icon.left.small.sc-duet-button{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*/.duet-button[disabled].sc-duet-button,.duet-button[disabled].sc-duet-button:hover,.duet-button.duet-button-negative[disabled].sc-duet-button,.duet-button.duet-button-negative[disabled].sc-duet-button: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*/.duet-theme-turva.sc-duet-button .duet-button[disabled].sc-duet-button,.duet-theme-turva.sc-duet-button .duet-button[disabled].sc-duet-button:hover,.duet-theme-turva.sc-duet-button .duet-button.duet-button-negative.sc-duet-button [disabled].sc-duet-button,.duet-theme-turva.sc-duet-button .duet-button.duet-button-negative.sc-duet-button [disabled].sc-duet-button:hover{color:#747475 !important;background:#e4e4e6 !important;border-color:#e4e4e6 !important}/*!@.duet-button-is-loading.primary*/.duet-button-is-loading.primary.sc-duet-button{color:white}/*!@.duet-button-is-loading.default*/.duet-button-is-loading.default.sc-duet-button{color:#0077b3}/*!@.duet-button-is-loading.default.duet-theme-turva*/.duet-button-is-loading.default.duet-theme-turva.sc-duet-button{color:#c60c30}/*!@.duet-button-is-loading .duet-button-contents*/.duet-button-is-loading.sc-duet-button .duet-button-contents.sc-duet-button{visibility:hidden;opacity:0}";
|
|
6168
|
+
const duetButtonCss = "/*!@*,\n*::after,\n*::before*/*.sc-duet-button,*.sc-duet-button::after,*.sc-duet-button::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}/*!@:host*/.sc-duet-button-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;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*/.sc-duet-button-h:last-child,.sc-duet-button-h:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){/*!@:host*/.sc-duet-button-h{width:100%}}/*!@:host(.duet-small)*/.duet-small.sc-duet-button-h{margin-right:2px !important;margin-bottom:8px !important}/*!@:host(.duet-small):last-child, :host(.duet-small):last-of-type*/.duet-small.sc-duet-button-h:last-child,.duet-small.sc-duet-button-h:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){/*!@:host(.duet-small)*/.duet-small.sc-duet-button-h{width:auto}}/*!@:host(.duet-expand)*/.duet-expand.sc-duet-button-h{width:100% !important}/*!@:host(.duet-m-0)*/.duet-m-0.sc-duet-button-h{margin:0 !important}/*!@:host(.duet-fixed)*/.duet-fixed.sc-duet-button-h{width:auto !important}/*!@:host(:last-child)*/.sc-duet-button-h:last-child{margin-right:0 !important}/*!@.duet-button-container*/.duet-button-container.sc-duet-button{position:relative;width:100%}/*!@.duet-button*/.duet-button.sc-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*/.duet-button.duet-p-0.sc-duet-button{padding:0 !important}/*!@.duet-button.duet-m-0*/.duet-button.duet-m-0.sc-duet-button{margin:0 !important}/*!@.duet-button.duet-button-is-small:not(.duet-button-icon-only)*/.duet-button.duet-button-is-small.sc-duet-button: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*/.duet-button.duet-button-is-small.sc-duet-button:not(.duet-button-icon-only).icon{padding-left:48px !important}/*!@.duet-button.duet-button-is-small:not(.duet-button-icon-only).icon-right*/.duet-button.duet-button-is-small.sc-duet-button:not(.duet-button-icon-only).icon-right{padding-right:48px !important;padding-left:20px !important}/*!@.duet-theme-turva .duet-button*/.duet-theme-turva.sc-duet-button .duet-button.sc-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*/.duet-button.sc-duet-button .duet-button-contents.sc-duet-button{position:relative;display:inline-block;margin:0 auto;pointer-events:none}/*!@.duet-button.duet-no-wrap*/.duet-button.duet-no-wrap.sc-duet-button{white-space:nowrap}/*!@.duet-button.icon*/.duet-button.icon.sc-duet-button{padding-left:52px !important}/*!@.duet-button.icon-right*/.duet-button.icon-right.sc-duet-button{padding-right:52px !important;padding-left:28px !important}/*!@.duet-button svg*/.duet-button.sc-duet-button svg.sc-duet-button{width:100%;min-width:100%;fill:currentColor}/*!@.duet-button .duet-button-icon*/.duet-button.sc-duet-button .duet-button-icon.sc-duet-button{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*/.duet-button.sc-duet-button .duet-button-icon.sc-duet-button duet-icon.sc-duet-button{width:16px;height:16px}/*!@.duet-button .duet-button-icon.right*/.duet-button.sc-duet-button .duet-button-icon.right.sc-duet-button{right:-28px;left:auto}/*!@.duet-button .duet-button-icon.large*/.duet-button.sc-duet-button .duet-button-icon.large.sc-duet-button{left:-32px;width:20px;height:20px}/*!@.duet-button .duet-button-icon.large duet-icon*/.duet-button.sc-duet-button .duet-button-icon.large.sc-duet-button duet-icon.sc-duet-button{width:20px;height:20px}/*!@.duet-button .duet-button-icon.large.right*/.duet-button.sc-duet-button .duet-button-icon.large.right.sc-duet-button{right:-32px;left:auto}/*!@.duet-button .duet-button-icon.medium-small*/.duet-button.sc-duet-button .duet-button-icon.medium-small.sc-duet-button{left:-16px;width:10px;height:10px;padding-top:1px}/*!@.duet-button .duet-button-icon.medium-small duet-icon*/.duet-button.sc-duet-button .duet-button-icon.medium-small.sc-duet-button duet-icon.sc-duet-button{width:10px;height:10px}/*!@.duet-button .duet-button-icon.medium-small.right*/.duet-button.sc-duet-button .duet-button-icon.medium-small.right.sc-duet-button{right:-16px;left:auto}/*!@.duet-button .duet-button-icon.small*/.duet-button.sc-duet-button .duet-button-icon.small.sc-duet-button{left:-16px;width:7px;height:7px}/*!@.duet-button .duet-button-icon.small duet-icon*/.duet-button.sc-duet-button .duet-button-icon.small.sc-duet-button duet-icon.sc-duet-button{width:7px;height:7px}/*!@.duet-button .duet-button-icon.small.right*/.duet-button.sc-duet-button .duet-button-icon.small.right.sc-duet-button{right:-16px;left:auto}/*!@.duet-button:focus*/.duet-button.sc-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*/.duet-theme-turva.sc-duet-button .duet-button.sc-duet-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}/*!@.duet-button:active*/.duet-button.sc-duet-button:active{opacity:0.75;transition:none}/*!@.duet-button.default*/.duet-button.default.sc-duet-button{border-color:#e1e3e6}/*!@.duet-theme-turva .duet-button.default*/.duet-theme-turva.sc-duet-button .duet-button.default.sc-duet-button{color:#c60c30 !important;border-color:#e4e4e6}/*!@.duet-button.default:hover*/.duet-button.default.sc-duet-button:hover{border-color:#0077b3}/*!@.duet-theme-turva .duet-button.default:hover*/.duet-theme-turva.sc-duet-button .duet-button.default.sc-duet-button:hover{border-color:#c60c30}/*!@.duet-button.default.duet-button-negative*/.duet-button.default.duet-button-negative.sc-duet-button{background-color:white}/*!@.duet-theme-turva .duet-button.default.duet-button-negative*/.duet-theme-turva.sc-duet-button .duet-button.default.duet-button-negative.sc-duet-button{background-color:#e4e4e6 !important}/*!@.duet-button.default.duet-button-negative:hover*/.duet-button.default.duet-button-negative.sc-duet-button:hover{color:#0077b3 !important;border-color:#0077b3}/*!@.duet-theme-turva .duet-button.default.duet-button-negative:hover*/.duet-theme-turva.sc-duet-button .duet-button.default.duet-button-negative.sc-duet-button:hover{color:#c60c30 !important;border-color:#c60c30}/*!@.duet-button.primary*/.duet-button.primary.sc-duet-button{color:white !important;background:#0077b3;border-color:#0077b3}/*!@.duet-theme-turva .duet-button.primary*/.duet-theme-turva.sc-duet-button .duet-button.primary.sc-duet-button{color:white !important;background:#c60c30;border-color:#c60c30}/*!@.duet-button.primary:hover*/.duet-button.primary.sc-duet-button:hover{background:#005f8f;border-color:#005f8f;box-shadow:0 4px 20px rgba(34, 34, 34, 0.1)}/*!@.duet-theme-turva .duet-button.primary:hover*/.duet-theme-turva.sc-duet-button .duet-button.primary.sc-duet-button:hover{background:#940925;border-color:#940925}/*!@.duet-button.primary:focus*/.duet-button.primary.sc-duet-button: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*/.duet-theme-turva.sc-duet-button .duet-button.primary.sc-duet-button:focus{box-shadow:0 0 0 1px white, 0 0 0 4px rgba(23, 28, 58, 0.7)}/*!@.duet-button.secondary*/.duet-button.secondary.sc-duet-button{color:#00294d !important;background:transparent;border-color:#00294d}/*!@.duet-theme-turva .duet-button.secondary*/.duet-theme-turva.sc-duet-button .duet-button.secondary.sc-duet-button{color:#171c3a !important;border-color:#171c3a}/*!@.duet-button.secondary:hover*/.duet-button.secondary.sc-duet-button:hover{color:#0077b3 !important;border-color:#0077b3}/*!@.duet-theme-turva .duet-button.secondary:hover*/.duet-theme-turva.sc-duet-button .duet-button.secondary.sc-duet-button:hover{color:#c60c30 !important;border-color:#c60c30}/*!@.duet-button.secondary.duet-button-negative*/.duet-button.secondary.duet-button-negative.sc-duet-button{color:#e1e3e6 !important;border-color:white}/*!@.duet-theme-turva .duet-button.secondary.duet-button-negative*/.duet-theme-turva.sc-duet-button .duet-button.secondary.duet-button-negative.sc-duet-button{color:#e4e4e6 !important}/*!@.duet-button.secondary.duet-button-negative:hover*/.duet-button.secondary.duet-button-negative.sc-duet-button:hover{color:#0077b3 !important;border-color:#0077b3}/*!@.duet-theme-turva .duet-button.secondary.duet-button-negative:hover*/.duet-theme-turva.sc-duet-button .duet-button.secondary.duet-button-negative.sc-duet-button:hover{color:#c60c30 !important;border-color:#c60c30}/*!@.duet-button.negative*/.duet-button.negative.sc-duet-button{color:#00294d !important;background:white;border-color:white}/*!@.duet-theme-turva .duet-button.negative*/.duet-theme-turva.sc-duet-button .duet-button.negative.sc-duet-button{color:#171c3a !important}/*!@.duet-button.negative:hover*/.duet-button.negative.sc-duet-button:hover{color:white !important;background:transparent;border-color:white}/*!@.duet-button.negative:focus*/.duet-button.negative.sc-duet-button: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*/.duet-theme-turva.sc-duet-button .duet-button.negative.sc-duet-button:focus{box-shadow:0 0 0 1px #171c3a, 0 0 0 4px rgba(255, 255, 255, 0.7)}/*!@.duet-button.destructive*/.duet-button.destructive.sc-duet-button{color:#de2362 !important;background:white;border-color:#de2362}/*!@.duet-theme-turva .duet-button.destructive*/.duet-theme-turva.sc-duet-button .duet-button.destructive.sc-duet-button{color:#e02a0d !important;background:white;border-color:#e02a0d}/*!@.duet-button.destructive:hover*/.duet-button.destructive.sc-duet-button:hover{color:white !important;background:#b21c4e;border-color:#b21c4e}/*!@.duet-theme-turva .duet-button.destructive:hover*/.duet-theme-turva.sc-duet-button .duet-button.destructive.sc-duet-button:hover{color:white !important;background:#b3220a;border-color:#b3220a}/*!@.duet-button.plain*/.duet-button.plain.sc-duet-button{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*/.duet-theme-turva.sc-duet-button .duet-button.plain.sc-duet-button{color:#c60c30 !important;background:transparent;border-color:transparent}/*!@.duet-button.plain.icon*/.duet-button.plain.icon.sc-duet-button{padding-left:20px !important}/*!@.duet-button.plain.icon.icon-right*/.duet-button.plain.icon.icon-right.sc-duet-button{padding-right:20px !important;padding-left:0 !important}/*!@.duet-button.plain.icon.medium*/.duet-button.plain.icon.medium.sc-duet-button{padding-left:24px !important}/*!@.duet-button.plain.icon.medium.icon-right*/.duet-button.plain.icon.medium.icon-right.sc-duet-button{padding-right:24px !important;padding-left:0 !important}/*!@.duet-button.plain.icon.large*/.duet-button.plain.icon.large.sc-duet-button{padding-left:30px !important}/*!@.duet-button.plain.icon.large.icon-right*/.duet-button.plain.icon.large.icon-right.sc-duet-button{padding-right:30px !important;padding-left:0 !important}/*!@.duet-button.plain .duet-button-icon.left*/.duet-button.plain.sc-duet-button .duet-button-icon.left.sc-duet-button{left:-16.6666666667px !important}/*!@.duet-button.plain .duet-button-icon.left.medium*/.duet-button.plain.sc-duet-button .duet-button-icon.left.medium.sc-duet-button{left:-24px !important}/*!@.duet-button.plain .duet-button-icon.left.large*/.duet-button.plain.sc-duet-button .duet-button-icon.left.large.sc-duet-button{left:-30px !important}/*!@.duet-button.plain .duet-button-icon.right*/.duet-button.plain.sc-duet-button .duet-button-icon.right.sc-duet-button{right:-16.6666666667px !important}/*!@.duet-button.plain .duet-button-icon.right.medium*/.duet-button.plain.sc-duet-button .duet-button-icon.right.medium.sc-duet-button{right:-24px !important}/*!@.duet-button.plain .duet-button-icon.right.large*/.duet-button.plain.sc-duet-button .duet-button-icon.right.large.sc-duet-button{right:-30px !important}/*!@.duet-button.plain[disabled]*/.duet-button.plain[disabled].sc-duet-button{color:#657787 !important;background:transparent !important;border-color:transparent !important}/*!@.duet-theme-turva .duet-button.plain[disabled]*/.duet-theme-turva.sc-duet-button .duet-button.plain[disabled].sc-duet-button{color:transparent !important;background:transparent !important;border-color:#e4e4e6 !important}/*!@.duet-button.plain:hover*/.duet-button.plain.sc-duet-button:hover{color:#004d80 !important;background:transparent !important}/*!@.duet-theme-turva .duet-button.plain:hover*/.duet-theme-turva.sc-duet-button .duet-button.plain.sc-duet-button:hover{color:#940925 !important}/*!@.duet-button.plain.duet-button-negative*/.duet-button.plain.duet-button-negative.sc-duet-button{color:white !important}/*!@.duet-theme-turva .duet-button.plain.duet-button-negative*/.duet-theme-turva.sc-duet-button .duet-button.plain.duet-button-negative.sc-duet-button{color:#e4e4e6 !important}/*!@.duet-button.plain.duet-button-negative:hover*/.duet-button.plain.duet-button-negative.sc-duet-button:hover{color:#0077b3 !important}/*!@.duet-theme-turva .duet-button.plain.duet-button-negative:hover*/.duet-theme-turva.sc-duet-button .duet-button.plain.duet-button-negative.sc-duet-button:hover{color:#c60c30 !important}/*!@.duet-button.duet-button-icon-only*/.duet-button.duet-button-icon-only.sc-duet-button{min-width:48px;min-height:48px;padding:0 !important}/*!@.duet-button.duet-button-icon-only .duet-button-contents*/.duet-button.duet-button-icon-only.sc-duet-button .duet-button-contents.sc-duet-button{position:static}/*!@.duet-button.duet-button-icon-only .duet-button-icon.left.large,\n.duet-button.duet-button-icon-only .duet-button-icon.left.medium,\n.duet-button.duet-button-icon-only .duet-button-icon.left.small*/.duet-button.duet-button-icon-only.sc-duet-button .duet-button-icon.left.large.sc-duet-button,.duet-button.duet-button-icon-only.sc-duet-button .duet-button-icon.left.medium.sc-duet-button,.duet-button.duet-button-icon-only.sc-duet-button .duet-button-icon.left.small.sc-duet-button{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*/.duet-button[disabled].sc-duet-button,.duet-button[disabled].sc-duet-button:hover,.duet-button.duet-button-negative[disabled].sc-duet-button,.duet-button.duet-button-negative[disabled].sc-duet-button: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*/.duet-theme-turva.sc-duet-button .duet-button[disabled].sc-duet-button,.duet-theme-turva.sc-duet-button .duet-button[disabled].sc-duet-button:hover,.duet-theme-turva.sc-duet-button .duet-button.duet-button-negative.sc-duet-button [disabled].sc-duet-button,.duet-theme-turva.sc-duet-button .duet-button.duet-button-negative.sc-duet-button [disabled].sc-duet-button:hover{color:#747475 !important;background:#e4e4e6 !important;border-color:#e4e4e6 !important}/*!@.duet-button-is-loading.primary*/.duet-button-is-loading.primary.sc-duet-button{color:white}/*!@.duet-button-is-loading.default*/.duet-button-is-loading.default.sc-duet-button{color:#0077b3}/*!@.duet-button-is-loading.default.duet-theme-turva*/.duet-button-is-loading.default.duet-theme-turva.sc-duet-button{color:#c60c30}/*!@.duet-button-is-loading .duet-button-contents*/.duet-button-is-loading.sc-duet-button .duet-button-contents.sc-duet-button{visibility:hidden;opacity:0}";
|
|
6082
6169
|
|
|
6083
6170
|
class DuetButton {
|
|
6084
6171
|
constructor(hostRef) {
|
|
@@ -6137,17 +6224,20 @@ class DuetButton {
|
|
|
6137
6224
|
this.external = false;
|
|
6138
6225
|
/**
|
|
6139
6226
|
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
6227
|
+
* @default "fi"
|
|
6140
6228
|
*/
|
|
6141
6229
|
this.language = getLanguage();
|
|
6142
6230
|
/**
|
|
6143
6231
|
* Property to change accessibleLabelExternal defaults on the component.
|
|
6144
6232
|
* normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
|
|
6233
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
6145
6234
|
*/
|
|
6146
6235
|
this.accessibleLabelExternalDefaults = DuetStringsExternalDefaults;
|
|
6147
6236
|
/**
|
|
6148
6237
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
6238
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
6149
6239
|
*/
|
|
6150
|
-
this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults
|
|
6240
|
+
this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults);
|
|
6151
6241
|
/**
|
|
6152
6242
|
* Icon to display to the left of the button content.
|
|
6153
6243
|
* This is ignored/overridden when button is used as an external link.
|
|
@@ -6333,7 +6423,7 @@ class DuetButton {
|
|
|
6333
6423
|
"submit": [516],
|
|
6334
6424
|
"external": [4],
|
|
6335
6425
|
"language": [1],
|
|
6336
|
-
"accessibleLabelExternalDefaults": [
|
|
6426
|
+
"accessibleLabelExternalDefaults": [1, "accessible-label-external-default"],
|
|
6337
6427
|
"accessibleLabelExternal": [1, "accessible-label-external"],
|
|
6338
6428
|
"icon": [1],
|
|
6339
6429
|
"color": [1],
|
|
@@ -6409,6 +6499,13 @@ class DuetCaption {
|
|
|
6409
6499
|
|
|
6410
6500
|
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>"};
|
|
6411
6501
|
|
|
6502
|
+
function chr4() {
|
|
6503
|
+
return Math.random().toString(16).slice(-4);
|
|
6504
|
+
}
|
|
6505
|
+
function createID(prefix) {
|
|
6506
|
+
return `${prefix}-${chr4()}${chr4()}-${chr4()}-${chr4()}-${chr4()}-${chr4()}${chr4()}${chr4()}`;
|
|
6507
|
+
}
|
|
6508
|
+
|
|
6412
6509
|
const isArrowLeftKey = (e) => e.keyCode === 37;
|
|
6413
6510
|
const isArrowUpKey = (e) => e.keyCode === 38;
|
|
6414
6511
|
const isArrowRightKey = (e) => e.keyCode === 39;
|
|
@@ -6420,38 +6517,7 @@ const isQuestionKey = (e) => e.key === "?";
|
|
|
6420
6517
|
const isEnterKey = (e) => e.key === "Enter" || e.keyCode === 13;
|
|
6421
6518
|
const isKeyboardClick = (e) => isEnterKey(e) || isSpaceKey(e);
|
|
6422
6519
|
|
|
6423
|
-
function isObject(maybeObj) {
|
|
6424
|
-
return Object.prototype.toString.call(maybeObj) === "[object Object]";
|
|
6425
|
-
}
|
|
6426
|
-
const parsePossibleJSON = (maybeJSON) => {
|
|
6427
|
-
if (Array.isArray(maybeJSON) || isObject(maybeJSON)) {
|
|
6428
|
-
return maybeJSON;
|
|
6429
|
-
}
|
|
6430
|
-
if (typeof maybeJSON === "string") {
|
|
6431
|
-
try {
|
|
6432
|
-
return JSON.parse(maybeJSON);
|
|
6433
|
-
}
|
|
6434
|
-
catch (e) {
|
|
6435
|
-
console.warn(e);
|
|
6436
|
-
}
|
|
6437
|
-
}
|
|
6438
|
-
// undefined is not a type in JSON,
|
|
6439
|
-
// so we use it here to signal invalid input
|
|
6440
|
-
return undefined;
|
|
6441
|
-
};
|
|
6442
|
-
const MATCH_DISALLOWED_CHARS = /[^a-z0-9áéíóúñüöäå \.,_-]/gim;
|
|
6443
|
-
function sanitizeString(string) {
|
|
6444
|
-
return string.replace(MATCH_DISALLOWED_CHARS, "").trim();
|
|
6445
|
-
}
|
|
6446
|
-
|
|
6447
|
-
function chr4() {
|
|
6448
|
-
return Math.random().toString(16).slice(-4);
|
|
6449
|
-
}
|
|
6450
|
-
function createID(prefix) {
|
|
6451
|
-
return `${prefix}-${chr4()}${chr4()}-${chr4()}-${chr4()}-${chr4()}-${chr4()}${chr4()}${chr4()}`;
|
|
6452
|
-
}
|
|
6453
|
-
|
|
6454
|
-
const duetCardCss = "/*!@*,\n*::after,\n*::before*/*.sc-duet-card,*.sc-duet-card::after,*.sc-duet-card::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}/*!@:host*/.sc-duet-card-h{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)*/.duet-card-info.sc-duet-card-h{margin-bottom:16px !important}/*!@:host(.duet-m-0)*/.duet-m-0.sc-duet-card-h{margin:0 !important}/*!@.duet-card*/.duet-card.sc-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*/.duet-card.duet-p-0.sc-duet-card{padding:0 !important}/*!@.duet-card.duet-m-0*/.duet-card.duet-m-0.sc-duet-card{margin:0 !important}/*!@.duet-card:focus*/.duet-card.sc-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*/.duet-theme-turva.sc-duet-card .duet-card.sc-duet-card:focus,.duet-card.sc-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*/.duet-card.sc-duet-card{padding:28px !important}}/*!@.duet-card.duet-theme-turva*/.duet-card.duet-theme-turva.sc-duet-card{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*/.duet-card.x-small.sc-duet-card{padding:20px !important}}@media (min-width: 36em){/*!@.duet-card.medium*/.duet-card.medium.sc-duet-card{padding:28px !important}}@media (min-width: 48em){/*!@.duet-card.medium*/.duet-card.medium.sc-duet-card{padding:36px !important}}@media (min-width: 36em){/*!@.duet-card.large*/.duet-card.large.sc-duet-card{padding:36px !important}}@media (min-width: 48em){/*!@.duet-card.large*/.duet-card.large.sc-duet-card{padding:48px !important}}@media (min-width: 36em){/*!@.duet-card.x-large*/.duet-card.x-large.sc-duet-card{padding:48px !important}}@media (min-width: 48em){/*!@.duet-card.x-large*/.duet-card.x-large.sc-duet-card{padding:72px !important}}/*!@.duet-card.duet-card-collapsed*/.duet-card.duet-card-collapsed.sc-duet-card{padding-bottom:0 !important}@media (min-width: 36em){/*!@.duet-card.duet-card-collapsed*/.duet-card.duet-card-collapsed.sc-duet-card{padding-bottom:0 !important}}/*!@.duet-card.info*/.duet-card.info.sc-duet-card{background:rgba(0, 80, 128, 0.04) !important;box-shadow:none}/*!@.duet-card.info.duet-theme-turva*/.duet-card.info.duet-theme-turva.sc-duet-card{background:rgba(23, 28, 58, 0.035) !important}/*!@.duet-card.plain*/.duet-card.plain.sc-duet-card{box-shadow:none}/*!@.duet-card.plain:not(.duet-card-has-bg)*/.duet-card.plain.sc-duet-card:not(.duet-card-has-bg){background:transparent !important}/*!@.duet-card-heading-grid*/.duet-card-heading-grid.sc-duet-card{display:flex;align-items:center}/*!@.duet-card-heading-grid .expand*/.duet-card-heading-grid.sc-duet-card .expand.sc-duet-card{flex:1}/*!@.duet-card-heading-text*/.duet-card-heading-text.sc-duet-card{overflow:hidden;text-overflow:ellipsis}/*!@.duet-card-secondary-heading*/.duet-card-secondary-heading.sc-duet-card{font-size:1rem;font-weight:600}/*!@.duet-card-heading*/.duet-card-heading.sc-duet-card{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;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid #e1e3e6}@media (min-width: 36em){/*!@.duet-card-heading*/.duet-card-heading.sc-duet-card{padding:15px 28px 16px !important;margin:-28px -28px 20px}}/*!@.duet-card-heading[role=button]*/.duet-card-heading[role=button].sc-duet-card{-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*/.duet-card-heading[role=button].sc-duet-card:focus{outline:0}/*!@:host(.user-is-tabbing) .duet-card-heading[role=button]:focus*/.user-is-tabbing.sc-duet-card-h .duet-card-heading[role=button].sc-duet-card: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*/.user-is-tabbing.sc-duet-card-h .duet-theme-turva.sc-duet-card .duet-card-heading[role=button].sc-duet-card:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}/*!@.duet-card-collapsed .duet-card-heading*/.duet-card-collapsed.sc-duet-card .duet-card-heading.sc-duet-card{margin-bottom:0 !important;border-bottom:0 !important}/*!@.duet-theme-turva .duet-card-heading*/.duet-theme-turva.sc-duet-card .duet-card-heading.sc-duet-card{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*/.x-small.sc-duet-card .duet-card-heading.sc-duet-card{padding:10px 20px 11px !important;margin:-20px -20px 20px}}@media (min-width: 48em){/*!@.x-small .duet-card-heading*/.x-small.sc-duet-card .duet-card-heading.sc-duet-card{padding:10px 20px 11px !important;margin:-20px -20px 20px}}/*!@.medium .duet-card-heading*/.medium.sc-duet-card .duet-card-heading.sc-duet-card{margin:-20px -20px 20px}@media (min-width: 36em){/*!@.medium .duet-card-heading*/.medium.sc-duet-card .duet-card-heading.sc-duet-card{padding:15px 28px 16px !important;margin:-28px -28px 20px}}@media (min-width: 48em){/*!@.medium .duet-card-heading*/.medium.sc-duet-card .duet-card-heading.sc-duet-card{padding:19px 36px 20px !important;margin:-36px -36px 28px}}/*!@.large .duet-card-heading*/.large.sc-duet-card .duet-card-heading.sc-duet-card{margin:-20px -20px 20px}@media (min-width: 36em){/*!@.large .duet-card-heading*/.large.sc-duet-card .duet-card-heading.sc-duet-card{padding:19px 36px 20px !important;margin:-36px -36px 28px}}@media (min-width: 48em){/*!@.large .duet-card-heading*/.large.sc-duet-card .duet-card-heading.sc-duet-card{padding:26px 48px 27px !important;margin:-48px -48px 36px}}/*!@.x-large .duet-card-heading*/.x-large.sc-duet-card .duet-card-heading.sc-duet-card{margin:-20px -20px 20px}@media (min-width: 36em){/*!@.x-large .duet-card-heading*/.x-large.sc-duet-card .duet-card-heading.sc-duet-card{padding:26px 48px 27px !important;margin:-48px -48px 36px}}@media (min-width: 48em){/*!@.x-large .duet-card-heading*/.x-large.sc-duet-card .duet-card-heading.sc-duet-card{padding:39px 72px 40px !important;margin:-72px -72px 48px}}/*!@.none .duet-card-heading*/.none.sc-duet-card .duet-card-heading.sc-duet-card{padding:0 0 20px !important;margin:0 0 20px}/*!@.duet-card-footer*/.duet-card-footer.sc-duet-card{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*/.duet-theme-turva.sc-duet-card .duet-card-footer.sc-duet-card{background:#f5f5f7}@media (min-width: 36em){/*!@.duet-card-footer*/.duet-card-footer.sc-duet-card{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){/*!@.duet-card-footer*/.duet-card-footer.sc-duet-card{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 36em){/*!@.x-small .duet-card-footer*/.x-small.sc-duet-card .duet-card-footer.sc-duet-card{padding:15px 28px 16px !important;padding-left:20px !important;margin:20px -20px -20px}}@media (min-width: 36em){/*!@.medium .duet-card-footer*/.medium.sc-duet-card .duet-card-footer.sc-duet-card{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){/*!@.medium .duet-card-footer*/.medium.sc-duet-card .duet-card-footer.sc-duet-card{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 36em){/*!@.large .duet-card-footer*/.large.sc-duet-card .duet-card-footer.sc-duet-card{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 48em){/*!@.large .duet-card-footer*/.large.sc-duet-card .duet-card-footer.sc-duet-card{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 36em){/*!@.x-large .duet-card-footer*/.x-large.sc-duet-card .duet-card-footer.sc-duet-card{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 48em){/*!@.x-large .duet-card-footer*/.x-large.sc-duet-card .duet-card-footer.sc-duet-card{padding:39px 72px 40px !important;margin:48px -72px -72px}}/*!@.none .duet-card-footer*/.none.sc-duet-card .duet-card-footer.sc-duet-card{padding:12px 0 !important;margin:20px 0 0}/*!@.duet-card-content*/.duet-card-content.sc-duet-card{width:100%}/*!@.duet-card-collapsed .duet-card-content*/.duet-card-collapsed.sc-duet-card .duet-card-content.sc-duet-card{display:none}/*!@.duet-card-caret*/.duet-card-caret.sc-duet-card{transition:300ms ease}/*!@[aria-expanded=false] .duet-card-caret*/[aria-expanded=false].sc-duet-card .duet-card-caret.sc-duet-card{transform:rotate(-180deg)}/*!@.duet-card-image-mask*/.duet-card-image-mask.sc-duet-card{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*/.small.sc-duet-card .duet-card-image-mask.sc-duet-card{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 36em){/*!@.medium .duet-card-image-mask*/.medium.sc-duet-card .duet-card-image-mask.sc-duet-card{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 48em){/*!@.medium .duet-card-image-mask*/.medium.sc-duet-card .duet-card-image-mask.sc-duet-card{width:calc(100% + 72px);margin:-36px 0 28px -36px}}@media (min-width: 36em){/*!@.large .duet-card-image-mask*/.large.sc-duet-card .duet-card-image-mask.sc-duet-card{width:calc(100% + 72px);margin:-36px 0 36px -36px}}@media (min-width: 48em){/*!@.large .duet-card-image-mask*/.large.sc-duet-card .duet-card-image-mask.sc-duet-card{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 36em){/*!@.x-large .duet-card-image-mask*/.x-large.sc-duet-card .duet-card-image-mask.sc-duet-card{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 48em){/*!@.x-large .duet-card-image-mask*/.x-large.sc-duet-card .duet-card-image-mask.sc-duet-card{width:calc(100% + 144px);margin:-72px 0 36px -72px}}/*!@.none .duet-card-image-mask*/.none.sc-duet-card .duet-card-image-mask.sc-duet-card{width:100%;margin:0 0 20px}/*!@.duet-card-image*/.duet-card-image.sc-duet-card{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*/a.duet-card.sc-duet-card{transition:box-shadow 300ms ease, background-position 300ms ease}/*!@a.duet-card:hover*/a.duet-card.sc-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*/a.duet-card.sc-duet-card:hover .duet-card-image.sc-duet-card{transform:scale(1.024)}/*!@.duet-theme-turva a.duet-card:hover*/.duet-theme-turva.sc-duet-card a.duet-card.sc-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*/a.duet-card.sc-duet-card:active{transition:none;transform:translateY(1px)}";
|
|
6520
|
+
const duetCardCss = "/*!@*,\n*::after,\n*::before*/*.sc-duet-card,*.sc-duet-card::after,*.sc-duet-card::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}/*!@:host*/.sc-duet-card-h{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)*/.duet-card-info.sc-duet-card-h{margin-bottom:16px !important}/*!@:host(.duet-m-0)*/.duet-m-0.sc-duet-card-h{margin:0 !important}/*!@.duet-card*/.duet-card.sc-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*/.duet-card.duet-p-0.sc-duet-card{padding:0 !important}/*!@.duet-card.duet-m-0*/.duet-card.duet-m-0.sc-duet-card{margin:0 !important}/*!@.duet-card:focus*/.duet-card.sc-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*/.duet-theme-turva.sc-duet-card .duet-card.sc-duet-card:focus,.duet-card.sc-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*/.duet-card.sc-duet-card{padding:28px !important}}/*!@.duet-card.duet-theme-turva*/.duet-card.duet-theme-turva.sc-duet-card{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*/.duet-card.x-small.sc-duet-card{padding:20px !important}}@media (min-width: 36em){/*!@.duet-card.medium*/.duet-card.medium.sc-duet-card{padding:28px !important}}@media (min-width: 48em){/*!@.duet-card.medium*/.duet-card.medium.sc-duet-card{padding:36px !important}}@media (min-width: 36em){/*!@.duet-card.large*/.duet-card.large.sc-duet-card{padding:36px !important}}@media (min-width: 48em){/*!@.duet-card.large*/.duet-card.large.sc-duet-card{padding:48px !important}}@media (min-width: 36em){/*!@.duet-card.x-large*/.duet-card.x-large.sc-duet-card{padding:48px !important}}@media (min-width: 48em){/*!@.duet-card.x-large*/.duet-card.x-large.sc-duet-card{padding:72px !important}}/*!@.duet-card.duet-card-collapsed*/.duet-card.duet-card-collapsed.sc-duet-card{padding-bottom:0 !important}@media (min-width: 36em){/*!@.duet-card.duet-card-collapsed*/.duet-card.duet-card-collapsed.sc-duet-card{padding-bottom:0 !important}}/*!@.duet-card.info*/.duet-card.info.sc-duet-card{background:rgba(0, 80, 128, 0.04) !important;box-shadow:none}/*!@.duet-card.info.duet-theme-turva*/.duet-card.info.duet-theme-turva.sc-duet-card{background:rgba(23, 28, 58, 0.035) !important}/*!@.duet-card.plain*/.duet-card.plain.sc-duet-card{box-shadow:none}/*!@.duet-card.plain:not(.duet-card-has-bg)*/.duet-card.plain.sc-duet-card:not(.duet-card-has-bg){background:transparent !important}/*!@.duet-card-heading-grid*/.duet-card-heading-grid.sc-duet-card{display:flex;flex-direction:row}/*!@.duet-card-icon*/.duet-card-icon.sc-duet-card{align-self:center}/*!@.duet-card-heading-text*/.duet-card-heading-text.sc-duet-card{flex:1;word-break:break-word}/*!@.duet-card-secondary-heading*/.duet-card-secondary-heading.sc-duet-card{font-size:1rem;font-weight:600;word-break:break-word}/*!@.duet-card-heading*/.duet-card-heading.sc-duet-card{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*/.duet-card-heading.sc-duet-card{padding:15px 28px 16px !important;margin:-28px -28px 20px}}/*!@.duet-card-heading[role=button]*/.duet-card-heading[role=button].sc-duet-card{-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*/.duet-card-heading[role=button].sc-duet-card:focus{outline:0}/*!@:host(.user-is-tabbing) .duet-card-heading[role=button]:focus*/.user-is-tabbing.sc-duet-card-h .duet-card-heading[role=button].sc-duet-card: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*/.user-is-tabbing.sc-duet-card-h .duet-theme-turva.sc-duet-card .duet-card-heading[role=button].sc-duet-card:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}/*!@.duet-card-collapsed .duet-card-heading*/.duet-card-collapsed.sc-duet-card .duet-card-heading.sc-duet-card{margin-bottom:0 !important;border-bottom:0 !important}/*!@.duet-theme-turva .duet-card-heading*/.duet-theme-turva.sc-duet-card .duet-card-heading.sc-duet-card{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*/.x-small.sc-duet-card .duet-card-heading.sc-duet-card{padding:10px 20px 11px !important;margin:-20px -20px 20px}}@media (min-width: 48em){/*!@.x-small .duet-card-heading*/.x-small.sc-duet-card .duet-card-heading.sc-duet-card{padding:10px 20px 11px !important;margin:-20px -20px 20px}}/*!@.medium .duet-card-heading*/.medium.sc-duet-card .duet-card-heading.sc-duet-card{margin:-20px -20px 20px}@media (min-width: 36em){/*!@.medium .duet-card-heading*/.medium.sc-duet-card .duet-card-heading.sc-duet-card{padding:15px 28px 16px !important;margin:-28px -28px 20px}}@media (min-width: 48em){/*!@.medium .duet-card-heading*/.medium.sc-duet-card .duet-card-heading.sc-duet-card{padding:19px 36px 20px !important;margin:-36px -36px 28px}}/*!@.large .duet-card-heading*/.large.sc-duet-card .duet-card-heading.sc-duet-card{margin:-20px -20px 20px}@media (min-width: 36em){/*!@.large .duet-card-heading*/.large.sc-duet-card .duet-card-heading.sc-duet-card{padding:19px 36px 20px !important;margin:-36px -36px 28px}}@media (min-width: 48em){/*!@.large .duet-card-heading*/.large.sc-duet-card .duet-card-heading.sc-duet-card{padding:26px 48px 27px !important;margin:-48px -48px 36px}}/*!@.x-large .duet-card-heading*/.x-large.sc-duet-card .duet-card-heading.sc-duet-card{margin:-20px -20px 20px}@media (min-width: 36em){/*!@.x-large .duet-card-heading*/.x-large.sc-duet-card .duet-card-heading.sc-duet-card{padding:26px 48px 27px !important;margin:-48px -48px 36px}}@media (min-width: 48em){/*!@.x-large .duet-card-heading*/.x-large.sc-duet-card .duet-card-heading.sc-duet-card{padding:39px 72px 40px !important;margin:-72px -72px 48px}}/*!@.none .duet-card-heading*/.none.sc-duet-card .duet-card-heading.sc-duet-card{padding:0 0 20px !important;margin:0 0 20px}/*!@.duet-card-footer*/.duet-card-footer.sc-duet-card{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*/.duet-theme-turva.sc-duet-card .duet-card-footer.sc-duet-card{background:#f5f5f7}@media (min-width: 36em){/*!@.duet-card-footer*/.duet-card-footer.sc-duet-card{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){/*!@.duet-card-footer*/.duet-card-footer.sc-duet-card{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 36em){/*!@.x-small .duet-card-footer*/.x-small.sc-duet-card .duet-card-footer.sc-duet-card{padding:15px 28px 16px !important;padding-left:20px !important;margin:20px -20px -20px}}@media (min-width: 36em){/*!@.medium .duet-card-footer*/.medium.sc-duet-card .duet-card-footer.sc-duet-card{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){/*!@.medium .duet-card-footer*/.medium.sc-duet-card .duet-card-footer.sc-duet-card{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 36em){/*!@.large .duet-card-footer*/.large.sc-duet-card .duet-card-footer.sc-duet-card{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 48em){/*!@.large .duet-card-footer*/.large.sc-duet-card .duet-card-footer.sc-duet-card{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 36em){/*!@.x-large .duet-card-footer*/.x-large.sc-duet-card .duet-card-footer.sc-duet-card{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 48em){/*!@.x-large .duet-card-footer*/.x-large.sc-duet-card .duet-card-footer.sc-duet-card{padding:39px 72px 40px !important;margin:48px -72px -72px}}/*!@.none .duet-card-footer*/.none.sc-duet-card .duet-card-footer.sc-duet-card{padding:12px 0 !important;margin:20px 0 0}/*!@.duet-card-content*/.duet-card-content.sc-duet-card{width:100%}/*!@.duet-card-collapsed .duet-card-content*/.duet-card-collapsed.sc-duet-card .duet-card-content.sc-duet-card{display:none}/*!@.duet-card-caret*/.duet-card-caret.sc-duet-card{position:relative;top:6px;align-self:flex-start;transition:300ms ease}/*!@[aria-expanded=false] .duet-card-caret*/[aria-expanded=false].sc-duet-card .duet-card-caret.sc-duet-card{transform:rotate(-180deg)}/*!@.duet-card-image-mask*/.duet-card-image-mask.sc-duet-card{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*/.small.sc-duet-card .duet-card-image-mask.sc-duet-card{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 36em){/*!@.medium .duet-card-image-mask*/.medium.sc-duet-card .duet-card-image-mask.sc-duet-card{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 48em){/*!@.medium .duet-card-image-mask*/.medium.sc-duet-card .duet-card-image-mask.sc-duet-card{width:calc(100% + 72px);margin:-36px 0 28px -36px}}@media (min-width: 36em){/*!@.large .duet-card-image-mask*/.large.sc-duet-card .duet-card-image-mask.sc-duet-card{width:calc(100% + 72px);margin:-36px 0 36px -36px}}@media (min-width: 48em){/*!@.large .duet-card-image-mask*/.large.sc-duet-card .duet-card-image-mask.sc-duet-card{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 36em){/*!@.x-large .duet-card-image-mask*/.x-large.sc-duet-card .duet-card-image-mask.sc-duet-card{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 48em){/*!@.x-large .duet-card-image-mask*/.x-large.sc-duet-card .duet-card-image-mask.sc-duet-card{width:calc(100% + 144px);margin:-72px 0 36px -72px}}/*!@.none .duet-card-image-mask*/.none.sc-duet-card .duet-card-image-mask.sc-duet-card{width:100%;margin:0 0 20px}/*!@.duet-card-image*/.duet-card-image.sc-duet-card{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*/a.duet-card.sc-duet-card{transition:box-shadow 300ms ease, background-position 300ms ease}/*!@a.duet-card:hover*/a.duet-card.sc-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*/a.duet-card.sc-duet-card:hover .duet-card-image.sc-duet-card{transform:scale(1.024)}/*!@.duet-theme-turva a.duet-card:hover*/.duet-theme-turva.sc-duet-card a.duet-card.sc-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*/a.duet-card.sc-duet-card:active{transition:none;transform:translateY(1px)}";
|
|
6455
6521
|
|
|
6456
6522
|
/**
|
|
6457
6523
|
* @slot unnamed default slot - The component’s primary content. All child nodes that do not have a slot attribute defined are inserted into this primary slot.
|
|
@@ -6536,7 +6602,7 @@ class DuetCard {
|
|
|
6536
6602
|
this.hasFooter = !!this.element.querySelector("[slot='footer']");
|
|
6537
6603
|
}
|
|
6538
6604
|
renderHeading() {
|
|
6539
|
-
const HeadingTag = sanitizeString(this.headingLevel);
|
|
6605
|
+
const HeadingTag = sanitizeString$1(this.headingLevel);
|
|
6540
6606
|
const headingProps = this.collapsible
|
|
6541
6607
|
? {
|
|
6542
6608
|
role: "button",
|
|
@@ -6547,7 +6613,7 @@ class DuetCard {
|
|
|
6547
6613
|
onKeyDown: this.handleKeyDown,
|
|
6548
6614
|
}
|
|
6549
6615
|
: {};
|
|
6550
|
-
return (hAsync(HeadingTag, Object.assign({ class: "duet-card-heading" }, headingProps), hAsync("div", { class: "duet-card-heading-grid" }, this.icon && (hAsync(Fragment, null, hAsync("duet-icon", { class: "duet-card-icon", name: this.icon, size: "medium", margin: "none", color: "currentColor" }), hAsync("duet-spacer", { direction: "horizontal", size: "small" }))), hAsync("div", { class: "
|
|
6616
|
+
return (hAsync(HeadingTag, Object.assign({ class: "duet-card-heading" }, headingProps), hAsync("div", { class: "duet-card-heading-grid" }, this.icon && (hAsync(Fragment, null, hAsync("duet-icon", { class: "duet-card-icon", name: this.icon, size: "medium", margin: "none", color: "currentColor" }), hAsync("duet-spacer", { direction: "horizontal", size: "small" }))), hAsync("div", { class: "duet-card-heading-text" }, this.heading), this.collapsible && (hAsync(Fragment, null, hAsync("duet-spacer", { direction: "horizontal", size: "small" }), hAsync("duet-icon", { class: "duet-card-caret", icon: actionArrowUp.svg, size: "small", margin: "none", color: "currentColor" })))), this.secondaryHeading && hAsync("div", { class: "duet-card-secondary-heading" }, this.secondaryHeading)));
|
|
6551
6617
|
}
|
|
6552
6618
|
/**
|
|
6553
6619
|
* Sets focus on the specified `duet-card`. Use this method instead of the global
|
|
@@ -6742,7 +6808,7 @@ class DuetCheckbox {
|
|
|
6742
6808
|
|
|
6743
6809
|
var messagingInfo={"title":"messaging-info","tags":"messaging info information circle","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M13.5 17.25A2.252 2.252 0 0 1 11.25 15v-3.75h-.75a.75.75 0 0 1 0-1.5h.75c.827 0 1.5.673 1.5 1.5V15c0 .414.336.75.75.75h.75a.75.75 0 0 1 0 1.5z\"/><circle cx=\"11.625\" cy=\"7.125\" r=\"1.125\"/><path d=\"M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12zm0-22.5C6.21 1.5 1.5 6.21 1.5 12S6.21 22.5 12 22.5 22.5 17.79 22.5 12 17.79 1.5 12 1.5z\"/></svg>"};
|
|
6744
6810
|
|
|
6745
|
-
const duetChoiceCss = "*.sc-duet-choice,*.sc-duet-choice::after,*.sc-duet-choice::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;flex-direction:column;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-choice-h:last-child,.sc-duet-choice-h:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){.sc-duet-choice-h{width:100%}}.duet-expand.sc-duet-choice-h{width:100% !important}.duet-m-0.sc-duet-choice-h{margin:0 !important}.duet-fixed.sc-duet-choice-h{width:auto !important}.vertical.sc-duet-choice-h{margin-right:0 !important}.horizontal.sc-duet-choice-h{margin-bottom:0 !important}@media (min-width: 48em){.horizontal-responsive.sc-duet-choice-h{margin-bottom:0 !important;margin-right:16px !important}.horizontal-responsive.sc-duet-choice-h:last-child,.horizontal-responsive.sc-duet-choice-h:last-of-type{margin-right:0 !important}}.sc-duet-choice-h:last-child:not(:only-child){margin-right:0 !important;margin-bottom:0 !important}.duet-choice-card.sc-duet-choice{position:relative;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:400;-webkit-hyphens:auto;hyphens:auto;line-height:1.1;color:#00294d !important;text-align:left;background:white;border-width:2px}.duet-choice-card.duet-p-0.sc-duet-choice{padding:0 !important}.duet-choice-card.duet-m-0.sc-duet-choice{margin:0 !important}.duet-theme-turva.sc-duet-choice .duet-choice-card.sc-duet-choice{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 !important}.duet-choice-card-flextainer.sc-duet-choice{display:flex}.duet-choice-label.sc-duet-choice{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;padding:20px 48px 20px 16px;font-size:1rem;font-weight:600;text-decoration:none;cursor:pointer;border:2px solid #e1e3e6;border-radius:4px;transition:background-color 150ms ease}.has-info.sc-duet-choice .duet-choice-label.sc-duet-choice{padding-right:110px;border-top-right-radius:0;border-bottom-right-radius:0}.info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-bottom-right-radius:0;border-bottom-left-radius:0}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:#e4e4e6}.duet-theme-turva.sc-duet-choice .info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:#e4e4e6}.duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:#909599}.duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-checkmark-container.sc-duet-choice{border-color:#909599}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:#747475}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-checkmark-container.sc-duet-choice{border-color:#747475}.duet-theme-turva.sc-duet-choice .info.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:#747475}.duet-choice-label.sc-duet-choice:active{opacity:0.75;transition:none !important}.has-icon.sc-duet-choice .duet-choice-label.sc-duet-choice{padding-left:48px}.checked.sc-duet-choice .duet-choice-label.sc-duet-choice{color:#0077b3 !important;background:#f3f9fc;border-color:#0077b3 !important}.checked.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#0077b3}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice .duet-choice-label.sc-duet-choice{color:#171c3a !important;background:#f5f5f7;border-color:#171c3a !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#c60c30}.checked.collapsible.sc-duet-choice .duet-choice-label.sc-duet-choice{border-bottom:0 !important;border-bottom-right-radius:0;border-bottom-left-radius:0}input.sc-duet-choice:focus{outline:0}.user-is-tabbing.sc-duet-choice-h input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3)}.user-is-tabbing.sc-duet-choice-h input.sc-duet-choice:not(:checked):focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.user-is-tabbing.duet-theme-turva.sc-duet-choice-h input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2)}.user-is-tabbing.duet-theme-turva.sc-duet-choice-h input.sc-duet-choice:not(:checked):focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:#657787 !important;cursor:default !important;background:#f5f8fa !important;border-color:#e1e3e6 !important}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:#657787 !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:#747475 !important;background:#f5f5f7 !important;border-color:#e4e4e6 !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:#747475 !important}.checked.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{background:#e1e3e6 !important;border-color:#e1e3e6 !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{background:#e4e4e6 !important;border-color:#e4e4e6 !important}.duet-checkmark-container.sc-duet-choice{position:absolute;top:17.7777777778px;right:16px;width:20px;height:20px;border:1px solid #909599;border-radius:4px;transition:border 300ms ease}.duet-theme-turva.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#747475}.checked.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:#0077b3;border-color:#0077b3;transition:none}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:#171c3a;border-color:#171c3a !important}.duet-checkmark-container.duet-checkmark-radio.sc-duet-choice{border-radius:50%}[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#cfd2d4 !important}.duet-theme-turva.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#cfcfd1 !important}.checked.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:#cfd2d4 !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:#cfcfd1 !important}.duet-checkmark.sc-duet-choice{position:absolute;top:10px;left:3px;width:5.3333333333px;height:11.8518518519px;border-top:2px solid white;border-right:2px solid white;opacity:1;transform:scaleX(-1) rotate(135deg) translateZ(0);transform-origin:left top;animation-name:duet-checkmark;animation-duration:600ms;animation-timing-function:ease-out;animation-fill-mode:forwards}@keyframes duet-checkmark{0%{width:0;height:0;opacity:1}20%{width:5.3333333333px;height:0;opacity:1}40%,100%{width:5.3333333333px;height:11.8518518519px;opacity:1}}.duet-choice-card-icon.sc-duet-choice{position:absolute;top:50%;left:16px;transform:translateY(-50%)}.duet-choice-card-icon.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-card-info.sc-duet-choice,.duet-choice-card-collapsible.sc-duet-choice{padding:28px !important;position:relative;z-index:200;display:none;width:100%;font-weight:400;color:#00294d;border:2px solid #e1e3e6;border-top:0;border-radius:0 0 4px 4px}.duet-theme-turva.sc-duet-choice .duet-choice-card-info.sc-duet-choice,.duet-theme-turva.sc-duet-choice .duet-choice-card-collapsible.sc-duet-choice{color:#171c3a;border-color:#171c3a}.checked.sc-duet-choice .duet-choice-card-info.sc-duet-choice,.checked.sc-duet-choice .duet-choice-card-collapsible.sc-duet-choice{display:block}.duet-choice-card-info-expanded.sc-duet-choice,.duet-choice-card-collapsible-expanded.sc-duet-choice{display:block}.duet-choice-card-collapsible.sc-duet-choice{background:white;border:2px solid #0077b3;border-top:0}.duet-choice-card-collapsible.duet-theme-turva.sc-duet-choice{background:white;border-color:#171c3a}.duet-choice-card-collapsible-disabled.sc-duet-choice{background:#f5f8fa;border-color:#e1e3e6}.duet-choice-card-collapsible-disabled.duet-theme-turva.sc-duet-choice{background:#f5f5f7;border-color:#e4e4e6}.duet-choice-card-info.sc-duet-choice{font-size:0.875rem;line-height:1.5;background:#f5f8fa;transition:150ms ease-out}.duet-choice-card-info.duet-theme-turva.sc-duet-choice{background:#f5f5f7;border-color:#e4e4e6}.duet-choice-info-toggle.sc-duet-choice{display:flex;flex-shrink:0;justify-content:center;width:57.6px;padding-top:18px;cursor:pointer;background:white;border:2px solid #e1e3e6;border-left:0 none;border-top-right-radius:4px;border-bottom-right-radius:4px;-webkit-appearance:none;appearance:none}.duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:#f5f8fa;border-bottom:0;border-bottom-right-radius:0}.duet-choice-info-toggle[disabled].sc-duet-choice{pointer-events:none;background:#f5f8fa !important;border-color:#e1e3e6 !important}.duet-choice-info-toggle[disabled].sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:#909599 !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice{background:#f5f5f7 !important;border-color:#e4e4e6 !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:#747475 !important}.duet-choice-info-toggle.sc-duet-choice:focus{outline:none}.user-is-tabbing.sc-duet-choice-h .duet-choice-info-toggle.sc-duet-choice:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-choice-info-toggle.sc-duet-choice{border-left-color:#909599}.checked.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:#0077b3 !important}.duet-choice-info-toggle.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:#0077b3}.duet-theme-turva.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:#c60c30}.duet-choice-input.sc-duet-choice{position:absolute !important;width:100%;height:100%;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);color:transparent}";
|
|
6811
|
+
const duetChoiceCss = "*.sc-duet-choice,*.sc-duet-choice::after,*.sc-duet-choice::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;flex-direction:column;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-choice-h:last-child,.sc-duet-choice-h:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){.sc-duet-choice-h{width:100%}}.duet-expand.sc-duet-choice-h{width:100% !important}.duet-m-0.sc-duet-choice-h{margin:0 !important}.duet-fixed.sc-duet-choice-h{width:auto !important}.vertical.sc-duet-choice-h{margin-right:0 !important}.horizontal.sc-duet-choice-h{margin-bottom:0 !important}@media (min-width: 48em){.horizontal-responsive.sc-duet-choice-h{margin-bottom:0 !important;margin-right:16px !important}.horizontal-responsive.sc-duet-choice-h:last-child,.horizontal-responsive.sc-duet-choice-h:last-of-type{margin-right:0 !important}}.sc-duet-choice-h:last-child:not(:only-child){margin-right:0 !important}.duet-choice-card.sc-duet-choice{position:relative;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:400;-webkit-hyphens:auto;hyphens:auto;line-height:1.1;color:#00294d !important;text-align:left;background:white;border-width:2px}.duet-choice-card.duet-p-0.sc-duet-choice{padding:0 !important}.duet-choice-card.duet-m-0.sc-duet-choice{margin:0 !important}.duet-theme-turva.sc-duet-choice .duet-choice-card.sc-duet-choice{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 !important}.duet-choice-card-flextainer.sc-duet-choice{display:flex}.duet-choice-label.sc-duet-choice{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;padding:20px 48px 20px 16px;font-size:1rem;font-weight:600;text-decoration:none;cursor:pointer;border:2px solid #e1e3e6;border-radius:4px;transition:background-color 150ms ease}.has-info.sc-duet-choice .duet-choice-label.sc-duet-choice{padding-right:110px;border-top-right-radius:0;border-bottom-right-radius:0}.info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-bottom-right-radius:0;border-bottom-left-radius:0}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:#e4e4e6}.duet-theme-turva.sc-duet-choice .info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:#e4e4e6}.duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:#909599}.duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-checkmark-container.sc-duet-choice{border-color:#909599}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:#747475}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-checkmark-container.sc-duet-choice{border-color:#747475}.duet-theme-turva.sc-duet-choice .info.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:#747475}.duet-choice-label.sc-duet-choice:active{opacity:0.75;transition:none !important}.has-icon.sc-duet-choice .duet-choice-label.sc-duet-choice{padding-left:48px}.checked.sc-duet-choice .duet-choice-label.sc-duet-choice{color:#0077b3 !important;background:#f3f9fc;border-color:#0077b3 !important}.checked.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#0077b3}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice .duet-choice-label.sc-duet-choice{color:#171c3a !important;background:#f5f5f7;border-color:#171c3a !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#c60c30}.checked.collapsible.sc-duet-choice .duet-choice-label.sc-duet-choice{border-bottom:0 !important;border-bottom-right-radius:0;border-bottom-left-radius:0}input.sc-duet-choice:focus{outline:0}.user-is-tabbing.sc-duet-choice-h input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3)}.user-is-tabbing.sc-duet-choice-h input.sc-duet-choice:not(:checked):focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.user-is-tabbing.duet-theme-turva.sc-duet-choice-h input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2)}.user-is-tabbing.duet-theme-turva.sc-duet-choice-h input.sc-duet-choice:not(:checked):focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:#657787 !important;cursor:default !important;background:#f5f8fa !important;border-color:#e1e3e6 !important}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:#657787 !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:#747475 !important;background:#f5f5f7 !important;border-color:#e4e4e6 !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:#747475 !important}.checked.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{background:#e1e3e6 !important;border-color:#e1e3e6 !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{background:#e4e4e6 !important;border-color:#e4e4e6 !important}.duet-checkmark-container.sc-duet-choice{position:absolute;top:17.7777777778px;right:16px;width:20px;height:20px;border:1px solid #909599;border-radius:4px;transition:border 300ms ease}.duet-theme-turva.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#747475}.checked.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:#0077b3;border-color:#0077b3;transition:none}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:#171c3a;border-color:#171c3a !important}.duet-checkmark-container.duet-checkmark-radio.sc-duet-choice{border-radius:50%}[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#cfd2d4 !important}.duet-theme-turva.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#cfcfd1 !important}.checked.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:#cfd2d4 !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:#cfcfd1 !important}.duet-checkmark.sc-duet-choice{position:absolute;top:10px;left:3px;width:5.3333333333px;height:11.8518518519px;border-top:2px solid white;border-right:2px solid white;opacity:1;transform:scaleX(-1) rotate(135deg) translateZ(0);transform-origin:left top;animation-name:duet-checkmark;animation-duration:600ms;animation-timing-function:ease-out;animation-fill-mode:forwards}@keyframes duet-checkmark{0%{width:0;height:0;opacity:1}20%{width:5.3333333333px;height:0;opacity:1}40%,100%{width:5.3333333333px;height:11.8518518519px;opacity:1}}.duet-choice-card-icon.sc-duet-choice{position:absolute;top:50%;left:16px;transform:translateY(-50%)}.duet-choice-card-icon.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-card-info.sc-duet-choice,.duet-choice-card-collapsible.sc-duet-choice{padding:28px !important;position:relative;z-index:200;display:none;width:100%;font-weight:400;color:#00294d;border:2px solid #e1e3e6;border-top:0;border-radius:0 0 4px 4px}.duet-theme-turva.sc-duet-choice .duet-choice-card-info.sc-duet-choice,.duet-theme-turva.sc-duet-choice .duet-choice-card-collapsible.sc-duet-choice{color:#171c3a;border-color:#171c3a}.checked.sc-duet-choice .duet-choice-card-info.sc-duet-choice,.checked.sc-duet-choice .duet-choice-card-collapsible.sc-duet-choice{display:block}.duet-choice-card-info-expanded.sc-duet-choice,.duet-choice-card-collapsible-expanded.sc-duet-choice{display:block}.duet-choice-card-collapsible.sc-duet-choice{background:white;border:2px solid #0077b3;border-top:0}.duet-choice-card-collapsible.duet-theme-turva.sc-duet-choice{background:white;border-color:#171c3a}.duet-choice-card-collapsible-disabled.sc-duet-choice{background:#f5f8fa;border-color:#e1e3e6}.duet-choice-card-collapsible-disabled.duet-theme-turva.sc-duet-choice{background:#f5f5f7;border-color:#e4e4e6}.duet-choice-card-info.sc-duet-choice{font-size:0.875rem;line-height:1.5;background:#f5f8fa;transition:150ms ease-out}.duet-choice-card-info.duet-theme-turva.sc-duet-choice{background:#f5f5f7;border-color:#e4e4e6}.duet-choice-info-toggle.sc-duet-choice{display:flex;flex-shrink:0;justify-content:center;width:57.6px;padding-top:18px;cursor:pointer;background:white;border:2px solid #e1e3e6;border-left:0 none;border-top-right-radius:4px;border-bottom-right-radius:4px;-webkit-appearance:none;appearance:none}.duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:#f5f8fa;border-bottom:0;border-bottom-right-radius:0}.duet-choice-info-toggle[disabled].sc-duet-choice{pointer-events:none;background:#f5f8fa !important;border-color:#e1e3e6 !important}.duet-choice-info-toggle[disabled].sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:#909599 !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice{background:#f5f5f7 !important;border-color:#e4e4e6 !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:#747475 !important}.duet-choice-info-toggle.sc-duet-choice:focus{outline:none}.user-is-tabbing.sc-duet-choice-h .duet-choice-info-toggle.sc-duet-choice:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-choice-info-toggle.sc-duet-choice{border-left-color:#909599}.checked.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:#0077b3 !important}.duet-choice-info-toggle.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:#0077b3}.duet-theme-turva.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:#c60c30}.duet-choice-input.sc-duet-choice{position:absolute !important;width:100%;height:100%;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);color:transparent}";
|
|
6746
6812
|
|
|
6747
6813
|
/**
|
|
6748
6814
|
* @slot unnamed default slot - The component’s primary content. All child nodes that do not have a slot attribute defined are inserted into this primary slot.
|
|
@@ -6781,6 +6847,7 @@ class DuetChoice {
|
|
|
6781
6847
|
/**
|
|
6782
6848
|
* Accessible label that is read for screen reader users in the info toggle trigger button.
|
|
6783
6849
|
* Not visible for normal users.
|
|
6850
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
6784
6851
|
*/
|
|
6785
6852
|
this.accessibleLabelInfoButton = getLocaleString(this.accessibleLabelInfoButtonDefaults);
|
|
6786
6853
|
/**
|
|
@@ -7009,7 +7076,7 @@ class DuetChoice {
|
|
|
7009
7076
|
"$members$": {
|
|
7010
7077
|
"theme": [1025],
|
|
7011
7078
|
"label": [1],
|
|
7012
|
-
"accessibleLabelInfoButtonDefaults": [
|
|
7079
|
+
"accessibleLabelInfoButtonDefaults": [1, "accessible-label-info-default"],
|
|
7013
7080
|
"accessibleLabelInfoButton": [1, "accessible-label-info-button"],
|
|
7014
7081
|
"accessibleActiveDescendant": [1, "accessible-active-descendant"],
|
|
7015
7082
|
"accessibleControls": [1, "accessible-controls"],
|
|
@@ -7073,7 +7140,7 @@ const findCheckedOption = (el, tagName) => {
|
|
|
7073
7140
|
return options.find((o) => o.checked === true);
|
|
7074
7141
|
};
|
|
7075
7142
|
|
|
7076
|
-
const duetChoiceGroupCss = "*.sc-duet-choice-group,*.sc-duet-choice-group::after,*.sc-duet-choice-group::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-group-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:block}@media (min-width: 48em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:flex}}.horizontal.sc-duet-choice-group-h .duet-choice-group.duet-no-stacking.sc-duet-choice-group{display:flex}.
|
|
7143
|
+
const duetChoiceGroupCss = "*.sc-duet-choice-group,*.sc-duet-choice-group::after,*.sc-duet-choice-group::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-group-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:block}@media (min-width: 48em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:flex;margin-bottom:0}}.horizontal.sc-duet-choice-group-h .duet-choice-group.duet-no-stacking.sc-duet-choice-group{display:flex}.duet-choice-group.sc-duet-choice-group{position:relative;width:100%;margin-bottom:-12px}";
|
|
7077
7144
|
|
|
7078
7145
|
class DuetChoiceGroup {
|
|
7079
7146
|
constructor(hostRef) {
|
|
@@ -7247,6 +7314,452 @@ class DuetChoiceGroup {
|
|
|
7247
7314
|
|
|
7248
7315
|
var actionArrowDownSmall={"title":"action-arrow-down-small","tags":"action arrow down small caret","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M12 19.5a2.3 2.3 0 0 1-1.729-.78L.46 7.568a1.847 1.847 0 0 1 2.773-2.439l8.579 9.752a.25.25 0 0 0 .376 0l8.579-9.752a1.847 1.847 0 1 1 2.773 2.439l-9.808 11.148A2.31 2.31 0 0 1 12 19.5z\"/></svg>"};
|
|
7249
7316
|
|
|
7317
|
+
const color_warning = "rgb(247, 178, 40)";
|
|
7318
|
+
const color_gray_darker = "rgb(101, 119, 135)";
|
|
7319
|
+
const color_gray_lighter = "rgb(245, 248, 250)";
|
|
7320
|
+
const color_category_home = "rgb(211, 36, 131)";
|
|
7321
|
+
const color_primary = "rgb(0, 119, 179)";
|
|
7322
|
+
const color_category_vehicle = "rgb(54, 74, 129)";
|
|
7323
|
+
const color_success = "rgb(0, 135, 90)";
|
|
7324
|
+
const color_category_family = "rgb(11, 114, 136)";
|
|
7325
|
+
const color_primary_lightest = "rgb(243, 249, 252)";
|
|
7326
|
+
const color_primary_lighter = "rgb(230, 242, 248)";
|
|
7327
|
+
const color_brand_blue = "rgb(0, 161, 212)";
|
|
7328
|
+
const color_primary_dark = "rgb(0, 77, 128)";
|
|
7329
|
+
const color_gray_lightest = "rgb(255, 255, 255)";
|
|
7330
|
+
const color_category_finance = "rgb(122, 1, 196)";
|
|
7331
|
+
const color_gray_dark = "rgb(144, 149, 153)";
|
|
7332
|
+
const color_gray_light = "rgb(225, 227, 230)";
|
|
7333
|
+
const color_secondary = "rgb(0, 41, 77)";
|
|
7334
|
+
const color_category_pet = "rgb(168, 1, 78)";
|
|
7335
|
+
const color_primary_light = "rgb(205, 229, 241)";
|
|
7336
|
+
const color_category_travel = "rgb(213, 66, 3)";
|
|
7337
|
+
const color_gray = "rgb(207, 210, 212)";
|
|
7338
|
+
const color_danger = "rgb(222, 35, 98)";
|
|
7339
|
+
const color_gray_darker_turva = "rgb(68, 68, 69)";
|
|
7340
|
+
const color_gray_lighter_turva = "rgb(245, 245, 247)";
|
|
7341
|
+
const color_category_home_turva = "rgb(161, 10, 78)";
|
|
7342
|
+
const color_primary_turva = "rgb(198, 12, 48)";
|
|
7343
|
+
const color_category_vehicle_turva = "rgb(23, 28, 58)";
|
|
7344
|
+
const color_success_turva = "rgb(8, 135, 78)";
|
|
7345
|
+
const color_primary_lightest_turva = "rgb(252, 243, 244)";
|
|
7346
|
+
const color_category_family_turva = "rgb(199, 12, 112)";
|
|
7347
|
+
const color_category_union_turva = "rgb(169, 69, 124)";
|
|
7348
|
+
const color_primary_lighter_turva = "rgb(249, 230, 234)";
|
|
7349
|
+
const color_primary_dark_turva = "rgb(148, 9, 37)";
|
|
7350
|
+
const color_gray_lightest_turva = "rgb(255, 255, 255)";
|
|
7351
|
+
const color_gray_dark_turva = "rgb(116, 116, 117)";
|
|
7352
|
+
const color_gray_light_turva = "rgb(228, 228, 230)";
|
|
7353
|
+
const color_brand_gray_turva = "rgb(178, 180, 179)";
|
|
7354
|
+
const color_secondary_turva = "rgb(23, 28, 58)";
|
|
7355
|
+
const color_primary_light_turva = "rgb(244, 207, 214)";
|
|
7356
|
+
const color_category_travel_turva = "rgb(9, 129, 148)";
|
|
7357
|
+
const color_gray_turva = "rgb(207, 207, 209)";
|
|
7358
|
+
const color_danger_turva = "rgb(224, 42, 13)";
|
|
7359
|
+
const color_warning_turva = "rgb(250, 164, 15)";
|
|
7360
|
+
const color_data_07 = "rgb(192, 101, 247)";
|
|
7361
|
+
const color_data_08 = "rgb(0, 105, 191)";
|
|
7362
|
+
const color_data_09 = "rgb(19, 120, 53)";
|
|
7363
|
+
const color_data_10 = "rgb(179, 60, 24)";
|
|
7364
|
+
const color_data_11 = "rgb(13, 163, 166)";
|
|
7365
|
+
const color_data_01 = "rgb(122, 1, 196)";
|
|
7366
|
+
const color_data_12 = "rgb(11, 114, 136)";
|
|
7367
|
+
const color_data_02 = "rgb(0, 155, 204)";
|
|
7368
|
+
const color_data_13 = "rgb(179, 137, 24)";
|
|
7369
|
+
const color_data_03 = "rgb(27, 171, 75)";
|
|
7370
|
+
const color_data_14 = "rgb(128, 98, 17)";
|
|
7371
|
+
const color_data_04 = "rgb(255, 86, 34)";
|
|
7372
|
+
const color_data_15 = "rgb(0, 41, 77)";
|
|
7373
|
+
const color_data_05 = "rgb(245, 76, 154)";
|
|
7374
|
+
const color_data_06 = "rgb(194, 21, 101)";
|
|
7375
|
+
const font_weight_extra_bold = "800";
|
|
7376
|
+
const letter_spacing_heading = "-0.01rem";
|
|
7377
|
+
const font_family_heading_turva = "'turva-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'";
|
|
7378
|
+
const font_family_text_turva = "'turva-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'";
|
|
7379
|
+
const font_family_heading = "'localtapiola-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'";
|
|
7380
|
+
const font_family_text = "'localtapiola-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'";
|
|
7381
|
+
const font_weight_bold = "700";
|
|
7382
|
+
const font_weight_normal = "400";
|
|
7383
|
+
const font_weight_semi_bold = "600";
|
|
7384
|
+
const font_size_xxxx_large = "4.5rem";
|
|
7385
|
+
const font_size_xxx_large = "3rem";
|
|
7386
|
+
const font_size_xx_large = "2.25rem";
|
|
7387
|
+
const font_size_x_large = "1.5rem";
|
|
7388
|
+
const font_size_large = "1.25rem";
|
|
7389
|
+
const font_size_medium = "1rem";
|
|
7390
|
+
const font_size_small = "0.875rem";
|
|
7391
|
+
const font_size_x_small = "0.75rem";
|
|
7392
|
+
const radius_sharp = "0";
|
|
7393
|
+
const radius_default = "4px";
|
|
7394
|
+
const radius_circle = "50%";
|
|
7395
|
+
const radius_pill = "20rem";
|
|
7396
|
+
const shadow_tooltip_turva = "0 2px 10px 0 rgba(117, 117, 117, 0.13)";
|
|
7397
|
+
const shadow_default = "0 2px 6px 0 rgba(0, 41, 77, 0.07)";
|
|
7398
|
+
const shadow_tooltip = "0 2px 10px 0 rgba(0, 41, 77, 0.07)";
|
|
7399
|
+
const shadow_card_turva = "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)";
|
|
7400
|
+
const shadow_modal = "0 2px 20px 0 rgba(0, 0, 0, 0.2)";
|
|
7401
|
+
const shadow_card = "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)";
|
|
7402
|
+
const shadow_hover_turva = "0 2px 10px 0 rgba(117, 117, 117, 0.15)";
|
|
7403
|
+
const shadow_hover = "0 2px 10px 0 rgba(0, 41, 77, 0.1)";
|
|
7404
|
+
const shadow_default_turva = "0 2px 6px 0 rgba(117, 117, 117, 0.13)";
|
|
7405
|
+
const space_xx_small = "4px";
|
|
7406
|
+
const space_large = "20px";
|
|
7407
|
+
const space_x_small = "8px";
|
|
7408
|
+
const space_xxx_small = "2px";
|
|
7409
|
+
const space_small = "12px";
|
|
7410
|
+
const space_medium = "16px";
|
|
7411
|
+
const space_xx_large = "36px";
|
|
7412
|
+
const space_xxxx_large = "72px";
|
|
7413
|
+
const space_xxxxx_large = "94px";
|
|
7414
|
+
const space_xxx_large = "48px";
|
|
7415
|
+
const space_x_large = "28px";
|
|
7416
|
+
const size_icon_xx_large = "48px";
|
|
7417
|
+
const size_form_border = "1px";
|
|
7418
|
+
const size_step_medium = "40px";
|
|
7419
|
+
const size_button_min_width = "8rem";
|
|
7420
|
+
const size_header = "4rem";
|
|
7421
|
+
const size_icon_xxx_large = "72px";
|
|
7422
|
+
const size_icon_x_large = "36px";
|
|
7423
|
+
const size_icon_xx_small = "10px";
|
|
7424
|
+
const size_step_small = "30px";
|
|
7425
|
+
const size_navigation = "3rem";
|
|
7426
|
+
const size_icon_large = "30px";
|
|
7427
|
+
const size_layout_max_width = "1110px";
|
|
7428
|
+
const size_tappable_square = "48px";
|
|
7429
|
+
const size_icon_x_small = "16px";
|
|
7430
|
+
const size_icon_xxx_small = "7px";
|
|
7431
|
+
const size_button_border = "2px";
|
|
7432
|
+
const size_icon_medium = "24px";
|
|
7433
|
+
const size_icon_small = "20px";
|
|
7434
|
+
const opacity_85 = "0.85";
|
|
7435
|
+
const opacity_75 = "0.75";
|
|
7436
|
+
const opacity_50 = "0.50";
|
|
7437
|
+
const opacity_30 = "0.30";
|
|
7438
|
+
const z_index_dropdown = "600";
|
|
7439
|
+
const z_index_spinner = "800";
|
|
7440
|
+
const z_index_default = "1";
|
|
7441
|
+
const z_index_toast = "500";
|
|
7442
|
+
const z_index_popup = "950";
|
|
7443
|
+
const z_index_modal = "900";
|
|
7444
|
+
const z_index_sticky = "300";
|
|
7445
|
+
const z_index_masked = "100";
|
|
7446
|
+
const z_index_deep = "-999999";
|
|
7447
|
+
const z_index_overlay = "700";
|
|
7448
|
+
const z_index_mask = "200";
|
|
7449
|
+
const z_index_header = "400";
|
|
7450
|
+
const line_height_medium = "1.5";
|
|
7451
|
+
const line_height_small = "1.25";
|
|
7452
|
+
const line_height_x_small = "1.1";
|
|
7453
|
+
const transition_quickly = "300ms ease";
|
|
7454
|
+
const transition_slowly = "600ms ease";
|
|
7455
|
+
const media_query_xx_small = "'(max-width: 22.5em)'";
|
|
7456
|
+
const media_query_x_small = "'(max-width: 35.9375em)'";
|
|
7457
|
+
const media_query_small = "'(min-width: 36em)'";
|
|
7458
|
+
const media_query_medium = "'(min-width: 48em)'";
|
|
7459
|
+
const media_query_large = "'(min-width: 62em)'";
|
|
7460
|
+
const media_query_x_large = "'(min-width: 64.0625em)'";
|
|
7461
|
+
const media_query_xx_large = "'(min-width: 76.25em)'";
|
|
7462
|
+
const media_query_xxx_large = "'(min-width: 106.25em)'";
|
|
7463
|
+
var tokens = {
|
|
7464
|
+
color_warning: color_warning,
|
|
7465
|
+
color_gray_darker: color_gray_darker,
|
|
7466
|
+
color_gray_lighter: color_gray_lighter,
|
|
7467
|
+
color_category_home: color_category_home,
|
|
7468
|
+
color_primary: color_primary,
|
|
7469
|
+
color_category_vehicle: color_category_vehicle,
|
|
7470
|
+
color_success: color_success,
|
|
7471
|
+
color_category_family: color_category_family,
|
|
7472
|
+
color_primary_lightest: color_primary_lightest,
|
|
7473
|
+
color_primary_lighter: color_primary_lighter,
|
|
7474
|
+
color_brand_blue: color_brand_blue,
|
|
7475
|
+
color_primary_dark: color_primary_dark,
|
|
7476
|
+
color_gray_lightest: color_gray_lightest,
|
|
7477
|
+
color_category_finance: color_category_finance,
|
|
7478
|
+
color_gray_dark: color_gray_dark,
|
|
7479
|
+
color_gray_light: color_gray_light,
|
|
7480
|
+
color_secondary: color_secondary,
|
|
7481
|
+
color_category_pet: color_category_pet,
|
|
7482
|
+
color_primary_light: color_primary_light,
|
|
7483
|
+
color_category_travel: color_category_travel,
|
|
7484
|
+
color_gray: color_gray,
|
|
7485
|
+
color_danger: color_danger,
|
|
7486
|
+
color_gray_darker_turva: color_gray_darker_turva,
|
|
7487
|
+
color_gray_lighter_turva: color_gray_lighter_turva,
|
|
7488
|
+
color_category_home_turva: color_category_home_turva,
|
|
7489
|
+
color_primary_turva: color_primary_turva,
|
|
7490
|
+
color_category_vehicle_turva: color_category_vehicle_turva,
|
|
7491
|
+
color_success_turva: color_success_turva,
|
|
7492
|
+
color_primary_lightest_turva: color_primary_lightest_turva,
|
|
7493
|
+
color_category_family_turva: color_category_family_turva,
|
|
7494
|
+
color_category_union_turva: color_category_union_turva,
|
|
7495
|
+
color_primary_lighter_turva: color_primary_lighter_turva,
|
|
7496
|
+
color_primary_dark_turva: color_primary_dark_turva,
|
|
7497
|
+
color_gray_lightest_turva: color_gray_lightest_turva,
|
|
7498
|
+
color_gray_dark_turva: color_gray_dark_turva,
|
|
7499
|
+
color_gray_light_turva: color_gray_light_turva,
|
|
7500
|
+
color_brand_gray_turva: color_brand_gray_turva,
|
|
7501
|
+
color_secondary_turva: color_secondary_turva,
|
|
7502
|
+
color_primary_light_turva: color_primary_light_turva,
|
|
7503
|
+
color_category_travel_turva: color_category_travel_turva,
|
|
7504
|
+
color_gray_turva: color_gray_turva,
|
|
7505
|
+
color_danger_turva: color_danger_turva,
|
|
7506
|
+
color_warning_turva: color_warning_turva,
|
|
7507
|
+
color_data_07: color_data_07,
|
|
7508
|
+
color_data_08: color_data_08,
|
|
7509
|
+
color_data_09: color_data_09,
|
|
7510
|
+
color_data_10: color_data_10,
|
|
7511
|
+
color_data_11: color_data_11,
|
|
7512
|
+
color_data_01: color_data_01,
|
|
7513
|
+
color_data_12: color_data_12,
|
|
7514
|
+
color_data_02: color_data_02,
|
|
7515
|
+
color_data_13: color_data_13,
|
|
7516
|
+
color_data_03: color_data_03,
|
|
7517
|
+
color_data_14: color_data_14,
|
|
7518
|
+
color_data_04: color_data_04,
|
|
7519
|
+
color_data_15: color_data_15,
|
|
7520
|
+
color_data_05: color_data_05,
|
|
7521
|
+
color_data_06: color_data_06,
|
|
7522
|
+
font_weight_extra_bold: font_weight_extra_bold,
|
|
7523
|
+
letter_spacing_heading: letter_spacing_heading,
|
|
7524
|
+
font_family_heading_turva: font_family_heading_turva,
|
|
7525
|
+
font_family_text_turva: font_family_text_turva,
|
|
7526
|
+
font_family_heading: font_family_heading,
|
|
7527
|
+
font_family_text: font_family_text,
|
|
7528
|
+
font_weight_bold: font_weight_bold,
|
|
7529
|
+
font_weight_normal: font_weight_normal,
|
|
7530
|
+
font_weight_semi_bold: font_weight_semi_bold,
|
|
7531
|
+
font_size_xxxx_large: font_size_xxxx_large,
|
|
7532
|
+
font_size_xxx_large: font_size_xxx_large,
|
|
7533
|
+
font_size_xx_large: font_size_xx_large,
|
|
7534
|
+
font_size_x_large: font_size_x_large,
|
|
7535
|
+
font_size_large: font_size_large,
|
|
7536
|
+
font_size_medium: font_size_medium,
|
|
7537
|
+
font_size_small: font_size_small,
|
|
7538
|
+
font_size_x_small: font_size_x_small,
|
|
7539
|
+
radius_sharp: radius_sharp,
|
|
7540
|
+
radius_default: radius_default,
|
|
7541
|
+
radius_circle: radius_circle,
|
|
7542
|
+
radius_pill: radius_pill,
|
|
7543
|
+
shadow_tooltip_turva: shadow_tooltip_turva,
|
|
7544
|
+
shadow_default: shadow_default,
|
|
7545
|
+
shadow_tooltip: shadow_tooltip,
|
|
7546
|
+
shadow_card_turva: shadow_card_turva,
|
|
7547
|
+
shadow_modal: shadow_modal,
|
|
7548
|
+
shadow_card: shadow_card,
|
|
7549
|
+
shadow_hover_turva: shadow_hover_turva,
|
|
7550
|
+
shadow_hover: shadow_hover,
|
|
7551
|
+
shadow_default_turva: shadow_default_turva,
|
|
7552
|
+
space_xx_small: space_xx_small,
|
|
7553
|
+
space_large: space_large,
|
|
7554
|
+
space_x_small: space_x_small,
|
|
7555
|
+
space_xxx_small: space_xxx_small,
|
|
7556
|
+
space_small: space_small,
|
|
7557
|
+
space_medium: space_medium,
|
|
7558
|
+
space_xx_large: space_xx_large,
|
|
7559
|
+
space_xxxx_large: space_xxxx_large,
|
|
7560
|
+
space_xxxxx_large: space_xxxxx_large,
|
|
7561
|
+
space_xxx_large: space_xxx_large,
|
|
7562
|
+
space_x_large: space_x_large,
|
|
7563
|
+
size_icon_xx_large: size_icon_xx_large,
|
|
7564
|
+
size_form_border: size_form_border,
|
|
7565
|
+
size_step_medium: size_step_medium,
|
|
7566
|
+
size_button_min_width: size_button_min_width,
|
|
7567
|
+
size_header: size_header,
|
|
7568
|
+
size_icon_xxx_large: size_icon_xxx_large,
|
|
7569
|
+
size_icon_x_large: size_icon_x_large,
|
|
7570
|
+
size_icon_xx_small: size_icon_xx_small,
|
|
7571
|
+
size_step_small: size_step_small,
|
|
7572
|
+
size_navigation: size_navigation,
|
|
7573
|
+
size_icon_large: size_icon_large,
|
|
7574
|
+
size_layout_max_width: size_layout_max_width,
|
|
7575
|
+
size_tappable_square: size_tappable_square,
|
|
7576
|
+
size_icon_x_small: size_icon_x_small,
|
|
7577
|
+
size_icon_xxx_small: size_icon_xxx_small,
|
|
7578
|
+
size_button_border: size_button_border,
|
|
7579
|
+
size_icon_medium: size_icon_medium,
|
|
7580
|
+
size_icon_small: size_icon_small,
|
|
7581
|
+
opacity_85: opacity_85,
|
|
7582
|
+
opacity_75: opacity_75,
|
|
7583
|
+
opacity_50: opacity_50,
|
|
7584
|
+
opacity_30: opacity_30,
|
|
7585
|
+
z_index_dropdown: z_index_dropdown,
|
|
7586
|
+
z_index_spinner: z_index_spinner,
|
|
7587
|
+
z_index_default: z_index_default,
|
|
7588
|
+
z_index_toast: z_index_toast,
|
|
7589
|
+
z_index_popup: z_index_popup,
|
|
7590
|
+
z_index_modal: z_index_modal,
|
|
7591
|
+
z_index_sticky: z_index_sticky,
|
|
7592
|
+
z_index_masked: z_index_masked,
|
|
7593
|
+
z_index_deep: z_index_deep,
|
|
7594
|
+
z_index_overlay: z_index_overlay,
|
|
7595
|
+
z_index_mask: z_index_mask,
|
|
7596
|
+
z_index_header: z_index_header,
|
|
7597
|
+
line_height_medium: line_height_medium,
|
|
7598
|
+
line_height_small: line_height_small,
|
|
7599
|
+
line_height_x_small: line_height_x_small,
|
|
7600
|
+
transition_quickly: transition_quickly,
|
|
7601
|
+
transition_slowly: transition_slowly,
|
|
7602
|
+
media_query_xx_small: media_query_xx_small,
|
|
7603
|
+
media_query_x_small: media_query_x_small,
|
|
7604
|
+
media_query_small: media_query_small,
|
|
7605
|
+
media_query_medium: media_query_medium,
|
|
7606
|
+
media_query_large: media_query_large,
|
|
7607
|
+
media_query_x_large: media_query_x_large,
|
|
7608
|
+
media_query_xx_large: media_query_xx_large,
|
|
7609
|
+
media_query_xxx_large: media_query_xxx_large
|
|
7610
|
+
};
|
|
7611
|
+
|
|
7612
|
+
var tokens$1 = /*#__PURE__*/Object.freeze({
|
|
7613
|
+
__proto__: null,
|
|
7614
|
+
color_warning: color_warning,
|
|
7615
|
+
color_gray_darker: color_gray_darker,
|
|
7616
|
+
color_gray_lighter: color_gray_lighter,
|
|
7617
|
+
color_category_home: color_category_home,
|
|
7618
|
+
color_primary: color_primary,
|
|
7619
|
+
color_category_vehicle: color_category_vehicle,
|
|
7620
|
+
color_success: color_success,
|
|
7621
|
+
color_category_family: color_category_family,
|
|
7622
|
+
color_primary_lightest: color_primary_lightest,
|
|
7623
|
+
color_primary_lighter: color_primary_lighter,
|
|
7624
|
+
color_brand_blue: color_brand_blue,
|
|
7625
|
+
color_primary_dark: color_primary_dark,
|
|
7626
|
+
color_gray_lightest: color_gray_lightest,
|
|
7627
|
+
color_category_finance: color_category_finance,
|
|
7628
|
+
color_gray_dark: color_gray_dark,
|
|
7629
|
+
color_gray_light: color_gray_light,
|
|
7630
|
+
color_secondary: color_secondary,
|
|
7631
|
+
color_category_pet: color_category_pet,
|
|
7632
|
+
color_primary_light: color_primary_light,
|
|
7633
|
+
color_category_travel: color_category_travel,
|
|
7634
|
+
color_gray: color_gray,
|
|
7635
|
+
color_danger: color_danger,
|
|
7636
|
+
color_gray_darker_turva: color_gray_darker_turva,
|
|
7637
|
+
color_gray_lighter_turva: color_gray_lighter_turva,
|
|
7638
|
+
color_category_home_turva: color_category_home_turva,
|
|
7639
|
+
color_primary_turva: color_primary_turva,
|
|
7640
|
+
color_category_vehicle_turva: color_category_vehicle_turva,
|
|
7641
|
+
color_success_turva: color_success_turva,
|
|
7642
|
+
color_primary_lightest_turva: color_primary_lightest_turva,
|
|
7643
|
+
color_category_family_turva: color_category_family_turva,
|
|
7644
|
+
color_category_union_turva: color_category_union_turva,
|
|
7645
|
+
color_primary_lighter_turva: color_primary_lighter_turva,
|
|
7646
|
+
color_primary_dark_turva: color_primary_dark_turva,
|
|
7647
|
+
color_gray_lightest_turva: color_gray_lightest_turva,
|
|
7648
|
+
color_gray_dark_turva: color_gray_dark_turva,
|
|
7649
|
+
color_gray_light_turva: color_gray_light_turva,
|
|
7650
|
+
color_brand_gray_turva: color_brand_gray_turva,
|
|
7651
|
+
color_secondary_turva: color_secondary_turva,
|
|
7652
|
+
color_primary_light_turva: color_primary_light_turva,
|
|
7653
|
+
color_category_travel_turva: color_category_travel_turva,
|
|
7654
|
+
color_gray_turva: color_gray_turva,
|
|
7655
|
+
color_danger_turva: color_danger_turva,
|
|
7656
|
+
color_warning_turva: color_warning_turva,
|
|
7657
|
+
color_data_07: color_data_07,
|
|
7658
|
+
color_data_08: color_data_08,
|
|
7659
|
+
color_data_09: color_data_09,
|
|
7660
|
+
color_data_10: color_data_10,
|
|
7661
|
+
color_data_11: color_data_11,
|
|
7662
|
+
color_data_01: color_data_01,
|
|
7663
|
+
color_data_12: color_data_12,
|
|
7664
|
+
color_data_02: color_data_02,
|
|
7665
|
+
color_data_13: color_data_13,
|
|
7666
|
+
color_data_03: color_data_03,
|
|
7667
|
+
color_data_14: color_data_14,
|
|
7668
|
+
color_data_04: color_data_04,
|
|
7669
|
+
color_data_15: color_data_15,
|
|
7670
|
+
color_data_05: color_data_05,
|
|
7671
|
+
color_data_06: color_data_06,
|
|
7672
|
+
font_weight_extra_bold: font_weight_extra_bold,
|
|
7673
|
+
letter_spacing_heading: letter_spacing_heading,
|
|
7674
|
+
font_family_heading_turva: font_family_heading_turva,
|
|
7675
|
+
font_family_text_turva: font_family_text_turva,
|
|
7676
|
+
font_family_heading: font_family_heading,
|
|
7677
|
+
font_family_text: font_family_text,
|
|
7678
|
+
font_weight_bold: font_weight_bold,
|
|
7679
|
+
font_weight_normal: font_weight_normal,
|
|
7680
|
+
font_weight_semi_bold: font_weight_semi_bold,
|
|
7681
|
+
font_size_xxxx_large: font_size_xxxx_large,
|
|
7682
|
+
font_size_xxx_large: font_size_xxx_large,
|
|
7683
|
+
font_size_xx_large: font_size_xx_large,
|
|
7684
|
+
font_size_x_large: font_size_x_large,
|
|
7685
|
+
font_size_large: font_size_large,
|
|
7686
|
+
font_size_medium: font_size_medium,
|
|
7687
|
+
font_size_small: font_size_small,
|
|
7688
|
+
font_size_x_small: font_size_x_small,
|
|
7689
|
+
radius_sharp: radius_sharp,
|
|
7690
|
+
radius_default: radius_default,
|
|
7691
|
+
radius_circle: radius_circle,
|
|
7692
|
+
radius_pill: radius_pill,
|
|
7693
|
+
shadow_tooltip_turva: shadow_tooltip_turva,
|
|
7694
|
+
shadow_default: shadow_default,
|
|
7695
|
+
shadow_tooltip: shadow_tooltip,
|
|
7696
|
+
shadow_card_turva: shadow_card_turva,
|
|
7697
|
+
shadow_modal: shadow_modal,
|
|
7698
|
+
shadow_card: shadow_card,
|
|
7699
|
+
shadow_hover_turva: shadow_hover_turva,
|
|
7700
|
+
shadow_hover: shadow_hover,
|
|
7701
|
+
shadow_default_turva: shadow_default_turva,
|
|
7702
|
+
space_xx_small: space_xx_small,
|
|
7703
|
+
space_large: space_large,
|
|
7704
|
+
space_x_small: space_x_small,
|
|
7705
|
+
space_xxx_small: space_xxx_small,
|
|
7706
|
+
space_small: space_small,
|
|
7707
|
+
space_medium: space_medium,
|
|
7708
|
+
space_xx_large: space_xx_large,
|
|
7709
|
+
space_xxxx_large: space_xxxx_large,
|
|
7710
|
+
space_xxxxx_large: space_xxxxx_large,
|
|
7711
|
+
space_xxx_large: space_xxx_large,
|
|
7712
|
+
space_x_large: space_x_large,
|
|
7713
|
+
size_icon_xx_large: size_icon_xx_large,
|
|
7714
|
+
size_form_border: size_form_border,
|
|
7715
|
+
size_step_medium: size_step_medium,
|
|
7716
|
+
size_button_min_width: size_button_min_width,
|
|
7717
|
+
size_header: size_header,
|
|
7718
|
+
size_icon_xxx_large: size_icon_xxx_large,
|
|
7719
|
+
size_icon_x_large: size_icon_x_large,
|
|
7720
|
+
size_icon_xx_small: size_icon_xx_small,
|
|
7721
|
+
size_step_small: size_step_small,
|
|
7722
|
+
size_navigation: size_navigation,
|
|
7723
|
+
size_icon_large: size_icon_large,
|
|
7724
|
+
size_layout_max_width: size_layout_max_width,
|
|
7725
|
+
size_tappable_square: size_tappable_square,
|
|
7726
|
+
size_icon_x_small: size_icon_x_small,
|
|
7727
|
+
size_icon_xxx_small: size_icon_xxx_small,
|
|
7728
|
+
size_button_border: size_button_border,
|
|
7729
|
+
size_icon_medium: size_icon_medium,
|
|
7730
|
+
size_icon_small: size_icon_small,
|
|
7731
|
+
opacity_85: opacity_85,
|
|
7732
|
+
opacity_75: opacity_75,
|
|
7733
|
+
opacity_50: opacity_50,
|
|
7734
|
+
opacity_30: opacity_30,
|
|
7735
|
+
z_index_dropdown: z_index_dropdown,
|
|
7736
|
+
z_index_spinner: z_index_spinner,
|
|
7737
|
+
z_index_default: z_index_default,
|
|
7738
|
+
z_index_toast: z_index_toast,
|
|
7739
|
+
z_index_popup: z_index_popup,
|
|
7740
|
+
z_index_modal: z_index_modal,
|
|
7741
|
+
z_index_sticky: z_index_sticky,
|
|
7742
|
+
z_index_masked: z_index_masked,
|
|
7743
|
+
z_index_deep: z_index_deep,
|
|
7744
|
+
z_index_overlay: z_index_overlay,
|
|
7745
|
+
z_index_mask: z_index_mask,
|
|
7746
|
+
z_index_header: z_index_header,
|
|
7747
|
+
line_height_medium: line_height_medium,
|
|
7748
|
+
line_height_small: line_height_small,
|
|
7749
|
+
line_height_x_small: line_height_x_small,
|
|
7750
|
+
transition_quickly: transition_quickly,
|
|
7751
|
+
transition_slowly: transition_slowly,
|
|
7752
|
+
media_query_xx_small: media_query_xx_small,
|
|
7753
|
+
media_query_x_small: media_query_x_small,
|
|
7754
|
+
media_query_small: media_query_small,
|
|
7755
|
+
media_query_medium: media_query_medium,
|
|
7756
|
+
media_query_large: media_query_large,
|
|
7757
|
+
media_query_x_large: media_query_x_large,
|
|
7758
|
+
media_query_xx_large: media_query_xx_large,
|
|
7759
|
+
media_query_xxx_large: media_query_xxx_large,
|
|
7760
|
+
'default': tokens
|
|
7761
|
+
});
|
|
7762
|
+
|
|
7250
7763
|
const duetCollapsibleCss = "/*!@*,\n*::after,\n*::before*/*.sc-duet-collapsible,*.sc-duet-collapsible::after,*.sc-duet-collapsible::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}/*!@:host*/.sc-duet-collapsible-h{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:block;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;line-height:1.5;color:#00294d}/*!@:host(.duet-theme-turva)*/.duet-theme-turva.sc-duet-collapsible-h{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}/*!@:host(.duet-m-0)*/.duet-m-0.sc-duet-collapsible-h{margin:0 !important}/*!@.duet-collapsible-content*/.duet-collapsible-content.sc-duet-collapsible{display:none;padding-left:18px;margin-top:8px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:#00294d}@media (max-width: 35.9375em){/*!@.duet-collapsible-content*/.duet-collapsible-content.sc-duet-collapsible{font-size:0.875rem}}/*!@.duet-collapsible-content.duet-theme-turva*/.duet-collapsible-content.duet-theme-turva.sc-duet-collapsible{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}/*!@:host([open]) .duet-collapsible-content*/[open].sc-duet-collapsible-h .duet-collapsible-content.sc-duet-collapsible{display:block}/*!@.duet-collapsible-heading*/.duet-collapsible-heading.sc-duet-collapsible{-webkit-user-select:none;user-select:none;display:flex;align-items:center;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;line-height:1.5;color:#00294d;cursor:pointer;border-radius:4px}/*!@.duet-collapsible-heading.duet-collapsible-normal-weight*/.duet-collapsible-heading.duet-collapsible-normal-weight.sc-duet-collapsible{font-weight:400}/*!@.duet-collapsible-heading.duet-theme-turva*/.duet-collapsible-heading.duet-theme-turva.sc-duet-collapsible{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-collapsible-heading .duet-collapsible-heading-content*/.duet-collapsible-heading.sc-duet-collapsible .duet-collapsible-heading-content.sc-duet-collapsible{flex:1}/*!@.duet-collapsible-heading:focus*/.duet-collapsible-heading.sc-duet-collapsible:focus{outline:0}/*!@:host(.user-is-tabbing) .duet-collapsible-heading:focus*/.user-is-tabbing.sc-duet-collapsible-h .duet-collapsible-heading.sc-duet-collapsible: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-collapsible-heading:focus*/.user-is-tabbing.duet-theme-turva.sc-duet-collapsible-h .duet-collapsible-heading.sc-duet-collapsible:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}/*!@.duet-collapsible-heading-icon*/.duet-collapsible-heading-icon.sc-duet-collapsible{margin-right:8px !important;display:flex;align-items:center;justify-content:center;color:#00294d;transition:transform 300ms ease}/*!@.duet-collapsible-heading-icon:last-child, .duet-collapsible-heading-icon:last-of-type*/.duet-collapsible-heading-icon.sc-duet-collapsible:last-child,.duet-collapsible-heading-icon.sc-duet-collapsible:last-of-type{margin-right:0 !important}/*!@[aria-expanded=true] .duet-collapsible-heading-icon*/[aria-expanded=true].sc-duet-collapsible .duet-collapsible-heading-icon.sc-duet-collapsible{transform:rotate(180deg)}";
|
|
7251
7764
|
|
|
7252
7765
|
class DuetCollapsible {
|
|
@@ -7266,6 +7779,26 @@ class DuetCollapsible {
|
|
|
7266
7779
|
* The font weight of the heading
|
|
7267
7780
|
*/
|
|
7268
7781
|
this.headingWeight = "semibold";
|
|
7782
|
+
/**
|
|
7783
|
+
* Custom headingSize to be used for font size of heading, as a design token entered
|
|
7784
|
+
* in kebab-case x-small -> font-size-x-small.
|
|
7785
|
+
* Example:
|
|
7786
|
+
* # 12px (0.75rem) ------ +2px (x-small)
|
|
7787
|
+
* # 14px (0.875rem) ------ +2px (small)
|
|
7788
|
+
* # 16px (1rem) ------ +2px (medium)
|
|
7789
|
+
* # 20px (1.25rem) ------ +4px (large)
|
|
7790
|
+
* # 24px (1.5rem) ------ +4px (x-large)
|
|
7791
|
+
* # 36px (2.25rem) ------ +12px (xx-large)
|
|
7792
|
+
* # 48px (3rem) ------ +12px (xxx-large)
|
|
7793
|
+
* # 72px (4.5rem) ------ +24px (xxxx-large)
|
|
7794
|
+
*/
|
|
7795
|
+
this.headingSize = undefined;
|
|
7796
|
+
/**
|
|
7797
|
+
* The actual heading level used for the heading in html markup. This setting
|
|
7798
|
+
* exists for accessibility reasons. It doesn’t change the style visually.
|
|
7799
|
+
* only variations of h1-h6 area accepted
|
|
7800
|
+
*/
|
|
7801
|
+
this.headingLevel = undefined;
|
|
7269
7802
|
/**
|
|
7270
7803
|
* Controls the margin of the component.
|
|
7271
7804
|
*/
|
|
@@ -7279,6 +7812,39 @@ class DuetCollapsible {
|
|
|
7279
7812
|
this.handleClick(e);
|
|
7280
7813
|
}
|
|
7281
7814
|
};
|
|
7815
|
+
this.getFontSizeFromTokens = (fontSize = this.headingSize) => {
|
|
7816
|
+
if (!fontSize) {
|
|
7817
|
+
return font_size_medium;
|
|
7818
|
+
}
|
|
7819
|
+
else {
|
|
7820
|
+
const searchRegExp = /-/g;
|
|
7821
|
+
const fontSizeReplaced = fontSize.replace(searchRegExp, "_");
|
|
7822
|
+
return tokens$1[`font_size_${fontSizeReplaced}`];
|
|
7823
|
+
}
|
|
7824
|
+
};
|
|
7825
|
+
this.getEquivalentIconSize = (fontSize = this.headingSize) => {
|
|
7826
|
+
switch (fontSize) {
|
|
7827
|
+
case "x-small":
|
|
7828
|
+
return "xx-small";
|
|
7829
|
+
case "small":
|
|
7830
|
+
return "xx-small";
|
|
7831
|
+
case "medium":
|
|
7832
|
+
return "xx-small";
|
|
7833
|
+
case "large":
|
|
7834
|
+
return "x-small";
|
|
7835
|
+
case "x-large":
|
|
7836
|
+
return "small";
|
|
7837
|
+
case "xx-large":
|
|
7838
|
+
return "medium";
|
|
7839
|
+
case "xxx-large":
|
|
7840
|
+
return "x-large";
|
|
7841
|
+
case "xxxx-large":
|
|
7842
|
+
return "xxx-large";
|
|
7843
|
+
default:
|
|
7844
|
+
// default size
|
|
7845
|
+
return "xx-small";
|
|
7846
|
+
}
|
|
7847
|
+
};
|
|
7282
7848
|
this.handleClick = (e) => {
|
|
7283
7849
|
e.preventDefault();
|
|
7284
7850
|
this.open = !this.open;
|
|
@@ -7309,11 +7875,12 @@ class DuetCollapsible {
|
|
|
7309
7875
|
* Always the last one in the class.
|
|
7310
7876
|
*/
|
|
7311
7877
|
render() {
|
|
7312
|
-
|
|
7878
|
+
const HeadingTagName = this.headingLevel ? sanitizeString$1(this.headingLevel) : "div";
|
|
7879
|
+
return (hAsync(Host, { class: { "duet-m-0": this.margin === "none" } }, hAsync(HeadingTagName, { class: {
|
|
7313
7880
|
"duet-collapsible-heading": true,
|
|
7314
7881
|
"duet-theme-turva": this.theme === "turva",
|
|
7315
7882
|
"duet-collapsible-normal-weight": this.headingWeight === "normal",
|
|
7316
|
-
}, role: "button", tabindex: "0", ref: button => (this.nativeButton = button), "aria-expanded": this.open ? "true" : "false", "aria-controls": this.id, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, hAsync("div", { class: "duet-collapsible-heading-icon" }, hAsync("duet-icon", { margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary", size:
|
|
7883
|
+
}, style: { "font-size": this.getFontSizeFromTokens() }, role: "button", tabindex: "0", ref: button => (this.nativeButton = button), "aria-expanded": this.open ? "true" : "false", "aria-controls": this.id, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, hAsync("div", { class: "duet-collapsible-heading-icon" }, hAsync("duet-icon", { margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary", size: this.getEquivalentIconSize(), icon: actionArrowDownSmall.svg })), hAsync("div", { class: "duet-collapsible-heading-content" }, this.heading)), hAsync("div", { id: this.id, class: { "duet-collapsible-content": true, "duet-theme-turva": this.theme === "turva" } }, hAsync("slot", null))));
|
|
7317
7884
|
}
|
|
7318
7885
|
get element() { return getElement(this); }
|
|
7319
7886
|
static get style() { return duetCollapsibleCss; }
|
|
@@ -7324,6 +7891,8 @@ class DuetCollapsible {
|
|
|
7324
7891
|
"theme": [1025],
|
|
7325
7892
|
"heading": [1],
|
|
7326
7893
|
"headingWeight": [1, "heading-weight"],
|
|
7894
|
+
"headingSize": [1, "heading-size"],
|
|
7895
|
+
"headingLevel": [1, "heading-level"],
|
|
7327
7896
|
"margin": [1],
|
|
7328
7897
|
"open": [1540],
|
|
7329
7898
|
"setFocus": [64]
|
|
@@ -7381,7 +7950,17 @@ class DuetCookieConsent {
|
|
|
7381
7950
|
}; }
|
|
7382
7951
|
}
|
|
7383
7952
|
|
|
7384
|
-
|
|
7953
|
+
const focusElement = (element) => {
|
|
7954
|
+
if ("setFocus" in element) {
|
|
7955
|
+
element.setFocus();
|
|
7956
|
+
}
|
|
7957
|
+
else {
|
|
7958
|
+
element.focus();
|
|
7959
|
+
}
|
|
7960
|
+
};
|
|
7961
|
+
const FocusGuard = ({ moveFocusTo }) => {
|
|
7962
|
+
return hAsync("div", { class: "duet-focus-guard", "aria-hidden": "true", tabIndex: 0, onFocus: () => focusElement(moveFocusTo) });
|
|
7963
|
+
};
|
|
7385
7964
|
|
|
7386
7965
|
const formatOptionsShort = { day: "numeric", month: "long" };
|
|
7387
7966
|
const formatOptionsLong = { day: "numeric", month: "long", year: "numeric" };
|
|
@@ -7485,6 +8064,8 @@ const i18n$2 = {
|
|
|
7485
8064
|
},
|
|
7486
8065
|
};
|
|
7487
8066
|
|
|
8067
|
+
var formDate={"title":"form-date","tags":"form date calendar date picker","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M2.25 24A2.252 2.252 0 0 1 0 21.75V5.25A2.252 2.252 0 0 1 2.25 3H6V.75a.75.75 0 0 1 1.5 0V3h9V.75a.75.75 0 0 1 1.5 0V3h3.75A2.252 2.252 0 0 1 24 5.25v16.5A2.252 2.252 0 0 1 21.75 24zm-.75-2.25c0 .414.336.75.75.75h19.5a.75.75 0 0 0 .75-.75V10.5h-21zM22.5 9V5.25a.75.75 0 0 0-.75-.75H18V6a.75.75 0 0 1-1.5 0V4.5h-9V6A.75.75 0 0 1 6 6V4.5H2.25a.75.75 0 0 0-.75.75V9z\"/><circle cx=\"5.625\" cy=\"13.875\" r=\"1.125\"/><circle cx=\"5.625\" cy=\"19.125\" r=\"1.125\"/><circle cx=\"12\" cy=\"13.875\" r=\"1.125\"/><circle cx=\"12\" cy=\"19.125\" r=\"1.125\"/><circle cx=\"18.375\" cy=\"13.875\" r=\"1.125\"/><path d=\"M18.375 20.25c-.62 0-1.125-.505-1.125-1.125a1.127 1.127 0 0 1 1.171-1.122l.027.003a1.118 1.118 0 0 1 1.052 1.12c0 .619-.505 1.124-1.125 1.124z\"/></svg>"};
|
|
8068
|
+
|
|
7488
8069
|
const DatePickerInput = ({ onClick, placeholder, name, inputLabel, value, valueAsDate, formattedValue, language, identifier, theme, disabled, error, role, required, tooltip, tooltipDirection, labelHidden, buttonRef, inputRef, onInput, onBlur, onFocus, accessibleActiveDescendant, accessibleControls, accessibleOwns, accessibleDescribedBy, echoPlaceholder, caption, }) => {
|
|
7489
8070
|
const { buttonLabel, selected, formatterLong } = i18n$2[language];
|
|
7490
8071
|
return (hAsync("div", { class: {
|
|
@@ -7771,19 +8352,7 @@ const DatePickerMonth = ({ selectedDate, focusedDate, labelledById, theme, langu
|
|
|
7771
8352
|
} }))))))))));
|
|
7772
8353
|
};
|
|
7773
8354
|
|
|
7774
|
-
const focusElement = (element) => {
|
|
7775
|
-
if ("setFocus" in element) {
|
|
7776
|
-
element.setFocus();
|
|
7777
|
-
}
|
|
7778
|
-
else {
|
|
7779
|
-
element.focus();
|
|
7780
|
-
}
|
|
7781
|
-
};
|
|
7782
|
-
const FocusGuard = ({ moveFocusTo }) => {
|
|
7783
|
-
return hAsync("div", { class: "duet-focus-guard", "aria-hidden": "true", tabIndex: 0, onFocus: () => focusElement(moveFocusTo) });
|
|
7784
|
-
};
|
|
7785
|
-
|
|
7786
|
-
const duetDatePickerCss = "*.sc-duet-date-picker,*.sc-duet-date-picker::after,*.sc-duet-date-picker::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-date-picker-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;position:relative;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:bottom}.sc-duet-date-picker-h:last-child,.sc-duet-date-picker-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-date-picker-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-date-picker-h{width:100% !important}.duet-m-0.sc-duet-date-picker-h{margin:0 !important}.duet-date.sc-duet-date-picker{position:relative;width:100%}.duet-date.sc-duet-date-picker button.sc-duet-date-picker,.duet-date-dialog.sc-duet-date-picker button.sc-duet-date-picker{max-width:initial !important;min-height:initial !important;padding:0 !important;margin:0 !important;transition:initial}.duet-date-button.sc-duet-date-picker{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;display:flex;align-items:center;justify-content:center;width:48px;height:calc(100% - 2px);color:#00294d;cursor:pointer;background:transparent !important;border-left:1px solid #cfd2d4 !important;border-radius:0 4px 4px 0 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-button.sc-duet-date-picker{color:#171c3a;border-color:#cfcfd1}.duet-date-button.sc-duet-date-picker::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:\"\";background:linear-gradient(to left, rgba(207, 210, 212, 0.2) 0%, rgba(207, 210, 212, 0.2) 1px, rgba(207, 210, 212, 0.1) 1px, rgba(207, 210, 212, 0) 100%)}.duet-date-button.sc-duet-date-picker:disabled{pointer-events:none;cursor:default;background:#f5f8fa !important;border:0 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-button.sc-duet-date-picker:disabled{background:#f5f5f7 !important}.duet-date-button.sc-duet-date-picker:disabled::before{display:none}.duet-date-button.sc-duet-date-picker:disabled duet-icon.sc-duet-date-picker{opacity:0.4}.duet-date-button.sc-duet-date-picker duet-icon.sc-duet-date-picker{transform:translateY(-1px)}.duet-date-button.sc-duet-date-picker:active duet-icon.sc-duet-date-picker{transform:translateY(0)}.duet-date-button.sc-duet-date-picker:focus{color:#0077b3;border-color:transparent;outline:0;box-shadow:0 0 0 2px #0077b3}.duet-theme-turva.sc-duet-date-picker .duet-date-button.sc-duet-date-picker:focus{color:#171c3a;box-shadow:0 0 0 2px #171c3a}.duet-date-dialog.sc-duet-date-picker{position:absolute;top:100%;left:0;z-index:900;display:flex;width:100%;visibility:hidden;opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}@media (min-width: 36em){.duet-date-dialog.left.sc-duet-date-picker{right:0;left:auto;width:auto}}@media (max-width: 35.9375em){.duet-date-dialog.sc-duet-date-picker{position:fixed;top:0;right:0;bottom:0;background:rgba(0, 41, 77, 0.75);transition:opacity 400ms ease, visibility 400ms ease;transform:translateZ(0);transform-origin:bottom center}.duet-date-dialog.duet-theme-turva.sc-duet-date-picker{background:rgba(23, 28, 58, 0.75)}}.duet-date-dialog.active.sc-duet-date-picker{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}@media (min-width: 36em){.duet-date-dialog.error.sc-duet-date-picker{top:calc(100% - 28px);margin-top:4px}}.duet-date-dialog-wrapper.sc-duet-date-picker{position:relative;z-index:600;width:100%;min-width:290px;max-width:310px;padding:16px 16px 20px;margin-top:8px;margin-left:auto;background:white;border:1px solid #e1e3e6;border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);transform:none}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-wrapper.sc-duet-date-picker{border-color:#e4e4e6}@media (max-width: 35.9375em){.duet-date-dialog-wrapper.sc-duet-date-picker{position:absolute;bottom:0;left:0;z-index:900;max-width:none;min-height:25em;padding:0 8% 20px;margin:0;visibility:hidden;border:0;border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px;opacity:0;transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease;transform:translateZ(0) translateY(100%)}.active.sc-duet-date-picker .duet-date-dialog-wrapper.sc-duet-date-picker{visibility:visible;opacity:1;transition-property:transform, opacity;transform:translateZ(0) translateY(0)}}.duet-date-table.sc-duet-date-picker{width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;line-height:1.25;color:#00294d;text-align:center;border-spacing:0;border-collapse:collapse}.duet-date-table.duet-theme-turva.sc-duet-date-picker{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-date-table.sc-duet-date-picker th.sc-duet-date-picker{padding-bottom:8px;font-size:0.75rem;font-weight:600;line-height:1.25;text-decoration:none;text-transform:uppercase;letter-spacing:1px}.duet-date-table.sc-duet-date-picker .duet-date-table-cell.sc-duet-date-picker{text-align:center}.duet-date-table-button.sc-duet-date-picker{position:relative;z-index:100;display:inline-block !important;width:36.9230769231px !important;height:36.9230769231px !important;min-height:initial !important;padding:0 !important;margin:0 !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25 !important;color:#00294d !important;text-align:center;vertical-align:initial !important;cursor:pointer;background:transparent !important;border-radius:50% !important;transition:initial !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\" !important;color:#171c3a !important}.duet-date-table-button.sc-duet-date-picker:hover{background:#e6f2f8 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:hover{background:#f9e6ea !important}.duet-date-table-button.today.sc-duet-date-picker{z-index:200;color:#004d80 !important;background:#f3f9fc !important;box-shadow:0 0 0 1px #0077b3 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.today.sc-duet-date-picker{color:#940925 !important;background:#fcf3f4 !important;box-shadow:0 0 0 1px #c60c30 !important}.duet-date-table-button[aria-pressed=true].sc-duet-date-picker,.duet-date-table-button.sc-duet-date-picker:focus{color:white !important;background:#0077b3 !important;outline:0}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button[aria-pressed=true].sc-duet-date-picker,.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:focus{color:white !important;background:#c60c30 !important}.duet-date-table-button.sc-duet-date-picker:active{z-index:200;color:white !important;background:#0077b3 !important;box-shadow:0 0 5px #0077b3 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:active{color:white !important;background:#c60c30 !important;box-shadow:0 0 5px #c60c30 !important}.duet-date-table-button.sc-duet-date-picker:focus{z-index:200;box-shadow:0 0 5px #0077b3 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:focus{box-shadow:0 0 5px #c60c30 !important}.duet-date-table-button.disabled.sc-duet-date-picker{color:#909599 !important;cursor:default;background:transparent !important;box-shadow:none !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.disabled.sc-duet-date-picker{color:#747475 !important;background:transparent !important;box-shadow:none !important}.duet-date-table-button.outside.sc-duet-date-picker{color:#909599 !important;pointer-events:none;cursor:default;background:#f5f8fa !important;box-shadow:none;opacity:0.75}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.outside.sc-duet-date-picker{color:#747475;background:#f5f5f7;box-shadow:none}.duet-date-dialog-header.sc-duet-date-picker{margin-bottom:16px !important;display:flex;align-items:center;justify-content:space-between;width:100%}.duet-date-dialog-buttons.sc-duet-date-picker{white-space:nowrap}.duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:auto !important;padding:0 !important;margin:0 0 0 8px !important;color:#00294d;cursor:pointer;background:#f5f8fa;border-radius:50%;transition:background-color 300ms ease !important}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker{color:#171c3a;background:#f5f5f7}.duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker duet-icon.sc-duet-date-picker{display:block}@media (max-width: 35.9375em){.duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker{width:40px;height:40px}}.duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker:not(:disabled):hover{background:#e9ecee !important}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker:not(:disabled):hover{background:#e9e9eb !important}.duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker:focus{outline:0;box-shadow:0 0 0 2px #0077b3}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker:focus{box-shadow:0 0 0 2px #171c3a}.duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker:active:focus{background:#dddfe1;box-shadow:none}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker:active:focus{background:#ddddde}.duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker:disabled{color:#909599;cursor:default;background:#f5f8fa;opacity:0.75}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker:disabled{color:#747475;background:#f5f5f7}.duet-date-dialog-select.sc-duet-date-picker{position:relative;display:inline-flex;margin-top:4px}.duet-date-dialog-select.sc-duet-date-picker .duet-date-dialog-select-label.sc-duet-date-picker{position:relative;z-index:1;display:flex;align-items:center;width:100%;padding:0 8px;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:600;line-height:1.25;color:#00294d;pointer-events:none;border-radius:4px}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-select.sc-duet-date-picker .duet-date-dialog-select-label.sc-duet-date-picker{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-date-dialog-select.sc-duet-date-picker span.sc-duet-date-picker{margin-right:4px}.duet-date-dialog-select.sc-duet-date-picker select.sc-duet-date-picker{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;font-size:1rem;cursor:pointer;opacity:0}.duet-date-dialog-select.sc-duet-date-picker select.sc-duet-date-picker:focus+.duet-date-dialog-select-label.sc-duet-date-picker{box-shadow:0 0 0 2px #0077b3}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-select.sc-duet-date-picker select.sc-duet-date-picker:focus+.duet-date-dialog-select-label.sc-duet-date-picker{box-shadow:0 0 0 2px #171c3a}.duet-date-dialog-mobile-header.sc-duet-date-picker{position:relative;display:flex;align-items:center;justify-content:space-between;width:120%;padding:12px 20px;margin-bottom:20px;margin-left:-10%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid #cfd2d4}@media (min-width: 36em){.duet-date-dialog-mobile-header.sc-duet-date-picker{position:absolute;top:-8px;right:-8px;width:auto;padding:0;margin:0;overflow:visible;border:0}}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-mobile-header.sc-duet-date-picker{border-color:#cfcfd1}.duet-date-dialog-mobile-header.sc-duet-date-picker duet-label.sc-duet-date-picker{display:inline-block;max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.duet-date-dialog-mobile-header.sc-duet-date-picker duet-label.sc-duet-date-picker{display:none}}.duet-date-picker-close.sc-duet-date-picker{display:flex;align-items:center;justify-content:center;width:24px;height:24px !important;padding:0 !important;color:#00294d !important;cursor:pointer;background:#f5f8fa !important;border-radius:50%;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-date-picker-close.sc-duet-date-picker{opacity:0}}.duet-theme-turva.sc-duet-date-picker .duet-date-picker-close.sc-duet-date-picker{background:#f5f5f7 !important}.duet-date-picker-close.sc-duet-date-picker:hover{background:#f5f8fa !important}.duet-theme-turva.sc-duet-date-picker .duet-date-picker-close.sc-duet-date-picker:hover{background:#f5f5f7 !important}.duet-date-picker-close.sc-duet-date-picker:focus{outline:none;box-shadow:0 0 0 2px #0077b3}@media (min-width: 36em){.duet-date-picker-close.sc-duet-date-picker:focus{opacity:1}}.duet-theme-turva.sc-duet-date-picker .duet-date-picker-close.sc-duet-date-picker:focus{box-shadow:0 0 0 2px #171c3a}";
|
|
8355
|
+
const duetDatePickerCss = "*.sc-duet-date-picker,*.sc-duet-date-picker::after,*.sc-duet-date-picker::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-date-picker-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;position:relative;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:top}.sc-duet-date-picker-h:last-child,.sc-duet-date-picker-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-date-picker-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-date-picker-h{width:100% !important}.duet-m-0.sc-duet-date-picker-h{margin:0 !important}.duet-date.sc-duet-date-picker{position:relative;width:100%}.duet-date.sc-duet-date-picker button.sc-duet-date-picker,.duet-date-dialog.sc-duet-date-picker button.sc-duet-date-picker{max-width:initial !important;min-height:initial !important;padding:0 !important;margin:0 !important;transition:initial}.duet-date-button.sc-duet-date-picker{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;display:flex;align-items:center;justify-content:center;width:48px;height:calc(100% - 2px);color:#00294d;cursor:pointer;background:transparent !important;border-left:1px solid #cfd2d4 !important;border-radius:0 4px 4px 0 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-button.sc-duet-date-picker{color:#171c3a;border-color:#cfcfd1}.duet-date-button.sc-duet-date-picker::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:\"\";background:linear-gradient(to left, rgba(207, 210, 212, 0.2) 0%, rgba(207, 210, 212, 0.2) 1px, rgba(207, 210, 212, 0.1) 1px, rgba(207, 210, 212, 0) 100%)}.duet-date-button.sc-duet-date-picker:disabled{pointer-events:none;cursor:default;background:#f5f8fa !important;border:0 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-button.sc-duet-date-picker:disabled{background:#f5f5f7 !important}.duet-date-button.sc-duet-date-picker:disabled::before{display:none}.duet-date-button.sc-duet-date-picker:disabled duet-icon.sc-duet-date-picker{opacity:0.4}.duet-date-button.sc-duet-date-picker duet-icon.sc-duet-date-picker{transform:translateY(-1px)}.duet-date-button.sc-duet-date-picker:active duet-icon.sc-duet-date-picker{transform:translateY(0)}.duet-date-button.sc-duet-date-picker:focus{color:#0077b3;border-color:transparent;outline:0;box-shadow:0 0 0 2px #0077b3}.duet-theme-turva.sc-duet-date-picker .duet-date-button.sc-duet-date-picker:focus{color:#171c3a;box-shadow:0 0 0 2px #171c3a}.duet-date-dialog.sc-duet-date-picker{position:absolute;top:100%;left:0;z-index:900;display:flex;width:100%;visibility:hidden;opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}@media (min-width: 36em){.duet-date-dialog.left.sc-duet-date-picker{right:0;left:auto;width:auto}}@media (max-width: 35.9375em){.duet-date-dialog.sc-duet-date-picker{position:fixed;top:0;right:0;bottom:0;background:rgba(0, 41, 77, 0.75);transition:opacity 400ms ease, visibility 400ms ease;transform:translateZ(0);transform-origin:bottom center}.duet-date-dialog.duet-theme-turva.sc-duet-date-picker{background:rgba(23, 28, 58, 0.75)}}.duet-date-dialog.active.sc-duet-date-picker{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}@media (min-width: 36em){.duet-date-dialog.error.sc-duet-date-picker{top:calc(100% - 28px);margin-top:4px}}.duet-date-dialog-wrapper.sc-duet-date-picker{position:relative;z-index:600;width:100%;min-width:290px;max-width:310px;padding:16px 16px 20px;margin-top:8px;margin-left:auto;background:white;border:1px solid #e1e3e6;border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);transform:none}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-wrapper.sc-duet-date-picker{border-color:#e4e4e6}@media (max-width: 35.9375em){.duet-date-dialog-wrapper.sc-duet-date-picker{position:absolute;bottom:0;left:0;z-index:900;max-width:none;min-height:25em;padding:0 8% 20px;margin:0;visibility:hidden;border:0;border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px;opacity:0;transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease;transform:translateZ(0) translateY(100%)}.active.sc-duet-date-picker .duet-date-dialog-wrapper.sc-duet-date-picker{visibility:visible;opacity:1;transition-property:transform, opacity;transform:translateZ(0) translateY(0)}}.duet-date-table.sc-duet-date-picker{width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;line-height:1.25;color:#00294d;text-align:center;border-spacing:0;border-collapse:collapse}.duet-date-table.duet-theme-turva.sc-duet-date-picker{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-date-table.sc-duet-date-picker th.sc-duet-date-picker{padding-bottom:8px;font-size:0.75rem;font-weight:600;line-height:1.25;text-decoration:none;text-transform:uppercase;letter-spacing:1px}.duet-date-table.sc-duet-date-picker .duet-date-table-cell.sc-duet-date-picker{text-align:center}.duet-date-table-button.sc-duet-date-picker{position:relative;z-index:100;display:inline-block !important;width:36.9230769231px !important;height:36.9230769231px !important;min-height:initial !important;padding:0 !important;margin:0 !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25 !important;color:#00294d !important;text-align:center;vertical-align:initial !important;cursor:pointer;background:transparent !important;border-radius:50% !important;transition:initial !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\" !important;color:#171c3a !important}.duet-date-table-button.sc-duet-date-picker:hover{background:#e6f2f8 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:hover{background:#f9e6ea !important}.duet-date-table-button.today.sc-duet-date-picker{z-index:200;color:#004d80 !important;background:#f3f9fc !important;box-shadow:0 0 0 1px #0077b3 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.today.sc-duet-date-picker{color:#940925 !important;background:#fcf3f4 !important;box-shadow:0 0 0 1px #c60c30 !important}.duet-date-table-button[aria-pressed=true].sc-duet-date-picker,.duet-date-table-button.sc-duet-date-picker:focus{color:white !important;background:#0077b3 !important;outline:0}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button[aria-pressed=true].sc-duet-date-picker,.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:focus{color:white !important;background:#c60c30 !important}.duet-date-table-button.sc-duet-date-picker:active{z-index:200;color:white !important;background:#0077b3 !important;box-shadow:0 0 5px #0077b3 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:active{color:white !important;background:#c60c30 !important;box-shadow:0 0 5px #c60c30 !important}.duet-date-table-button.sc-duet-date-picker:focus{z-index:200;box-shadow:0 0 5px #0077b3 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:focus{box-shadow:0 0 5px #c60c30 !important}.duet-date-table-button.disabled.sc-duet-date-picker{color:#909599 !important;cursor:default;background:transparent !important;box-shadow:none !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.disabled.sc-duet-date-picker{color:#747475 !important;background:transparent !important;box-shadow:none !important}.duet-date-table-button.outside.sc-duet-date-picker{color:#909599 !important;pointer-events:none;cursor:default;background:#f5f8fa !important;box-shadow:none;opacity:0.75}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.outside.sc-duet-date-picker{color:#747475;background:#f5f5f7;box-shadow:none}.duet-date-dialog-header.sc-duet-date-picker{margin-bottom:16px !important;display:flex;align-items:center;justify-content:space-between;width:100%}.duet-date-dialog-buttons.sc-duet-date-picker{white-space:nowrap}.duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:auto !important;padding:0 !important;margin:0 0 0 8px !important;color:#00294d;cursor:pointer;background:#f5f8fa;border-radius:50%;transition:background-color 300ms ease !important}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker{color:#171c3a;background:#f5f5f7}.duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker duet-icon.sc-duet-date-picker{display:block}@media (max-width: 35.9375em){.duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker{width:40px;height:40px}}.duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker:not(:disabled):hover{background:#e9ecee !important}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker:not(:disabled):hover{background:#e9e9eb !important}.duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker:focus{outline:0;box-shadow:0 0 0 2px #0077b3}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker:focus{box-shadow:0 0 0 2px #171c3a}.duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker:active:focus{background:#dddfe1;box-shadow:none}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker:active:focus{background:#ddddde}.duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker:disabled{color:#909599;cursor:default;background:#f5f8fa;opacity:0.75}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-buttons.sc-duet-date-picker button.sc-duet-date-picker:disabled{color:#747475;background:#f5f5f7}.duet-date-dialog-select.sc-duet-date-picker{position:relative;display:inline-flex;margin-top:4px}.duet-date-dialog-select.sc-duet-date-picker .duet-date-dialog-select-label.sc-duet-date-picker{position:relative;z-index:1;display:flex;align-items:center;width:100%;padding:0 8px;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:600;line-height:1.25;color:#00294d;pointer-events:none;border-radius:4px}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-select.sc-duet-date-picker .duet-date-dialog-select-label.sc-duet-date-picker{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-date-dialog-select.sc-duet-date-picker span.sc-duet-date-picker{margin-right:4px}.duet-date-dialog-select.sc-duet-date-picker select.sc-duet-date-picker{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;font-size:1rem;cursor:pointer;opacity:0}.duet-date-dialog-select.sc-duet-date-picker select.sc-duet-date-picker:focus+.duet-date-dialog-select-label.sc-duet-date-picker{box-shadow:0 0 0 2px #0077b3}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-select.sc-duet-date-picker select.sc-duet-date-picker:focus+.duet-date-dialog-select-label.sc-duet-date-picker{box-shadow:0 0 0 2px #171c3a}.duet-date-dialog-mobile-header.sc-duet-date-picker{position:relative;display:flex;align-items:center;justify-content:space-between;width:120%;padding:12px 20px;margin-bottom:20px;margin-left:-10%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid #cfd2d4}@media (min-width: 36em){.duet-date-dialog-mobile-header.sc-duet-date-picker{position:absolute;top:-8px;right:-8px;width:auto;padding:0;margin:0;overflow:visible;border:0}}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-mobile-header.sc-duet-date-picker{border-color:#cfcfd1}.duet-date-dialog-mobile-header.sc-duet-date-picker duet-label.sc-duet-date-picker{display:inline-block;max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.duet-date-dialog-mobile-header.sc-duet-date-picker duet-label.sc-duet-date-picker{display:none}}.duet-date-picker-close.sc-duet-date-picker{display:flex;align-items:center;justify-content:center;width:24px;height:24px !important;padding:0 !important;color:#00294d !important;cursor:pointer;background:#f5f8fa !important;border-radius:50%;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-date-picker-close.sc-duet-date-picker{opacity:0}}.duet-theme-turva.sc-duet-date-picker .duet-date-picker-close.sc-duet-date-picker{background:#f5f5f7 !important}.duet-date-picker-close.sc-duet-date-picker:hover{background:#f5f8fa !important}.duet-theme-turva.sc-duet-date-picker .duet-date-picker-close.sc-duet-date-picker:hover{background:#f5f5f7 !important}.duet-date-picker-close.sc-duet-date-picker:focus{outline:none;box-shadow:0 0 0 2px #0077b3}@media (min-width: 36em){.duet-date-picker-close.sc-duet-date-picker:focus{opacity:1}}.duet-theme-turva.sc-duet-date-picker .duet-date-picker-close.sc-duet-date-picker:focus{box-shadow:0 0 0 2px #171c3a}";
|
|
7787
8356
|
|
|
7788
8357
|
class DuetDatePicker {
|
|
7789
8358
|
constructor(hostRef) {
|
|
@@ -7824,10 +8393,27 @@ class DuetDatePicker {
|
|
|
7824
8393
|
* Controls the margin of the component.
|
|
7825
8394
|
*/
|
|
7826
8395
|
this.margin = "auto";
|
|
8396
|
+
/**
|
|
8397
|
+
* The currently active language. This setting changes the month/year/day
|
|
8398
|
+
* names and button labels as well as all screen reader labels.
|
|
8399
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
8400
|
+
* @default "fi"
|
|
8401
|
+
*/
|
|
8402
|
+
this.language = getLanguage();
|
|
8403
|
+
/**
|
|
8404
|
+
* Placeholder defaults
|
|
8405
|
+
* @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
|
|
8406
|
+
*/
|
|
8407
|
+
this.placeholderDefaults = {
|
|
8408
|
+
fi: "pp.kk.vvvv",
|
|
8409
|
+
en: "dd.mm.yyyy",
|
|
8410
|
+
sv: "dd.mm.åååå",
|
|
8411
|
+
};
|
|
7827
8412
|
/**
|
|
7828
8413
|
* Hint text to display before the user types into the date picker input.
|
|
8414
|
+
* @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
|
|
7829
8415
|
*/
|
|
7830
|
-
this.placeholder = getLocaleString(
|
|
8416
|
+
this.placeholder = getLocaleString(this.placeholderDefaults, this.language);
|
|
7831
8417
|
/**
|
|
7832
8418
|
* If form input field has a placeholder text, and user types anything (causing the text to dissapear),
|
|
7833
8419
|
* settings this to true will "echo" it into the caption slot - this option will be false by default for the next few versions, but will eventually be true by default (scheduled for 4.30.0)
|
|
@@ -7838,11 +8424,6 @@ class DuetDatePicker {
|
|
|
7838
8424
|
* interact with the input, and conveys its inactive state to assistive technologies.
|
|
7839
8425
|
*/
|
|
7840
8426
|
this.disabled = false;
|
|
7841
|
-
/**
|
|
7842
|
-
* The currently active language. This setting changes the month/year/day
|
|
7843
|
-
* names and button labels as well as all screen reader labels.
|
|
7844
|
-
*/
|
|
7845
|
-
this.language = getLanguage();
|
|
7846
8427
|
/**
|
|
7847
8428
|
* Display the date picker input in error state along with an error message.
|
|
7848
8429
|
*/
|
|
@@ -8187,10 +8768,11 @@ class DuetDatePicker {
|
|
|
8187
8768
|
"label": [1],
|
|
8188
8769
|
"caption": [1],
|
|
8189
8770
|
"margin": [1],
|
|
8771
|
+
"language": [1],
|
|
8772
|
+
"placeholderDefaults": [1, "placeholder-default"],
|
|
8190
8773
|
"placeholder": [1],
|
|
8191
8774
|
"echoPlaceholder": [1540, "echo-placeholder"],
|
|
8192
8775
|
"disabled": [516],
|
|
8193
|
-
"language": [1],
|
|
8194
8776
|
"error": [1],
|
|
8195
8777
|
"labelHidden": [4, "label-hidden"],
|
|
8196
8778
|
"role": [1],
|
|
@@ -8388,10 +8970,10 @@ class DuetFieldset {
|
|
|
8388
8970
|
|
|
8389
8971
|
var actionArrowRight={"title":"action-arrow-right","tags":"action arrow right caret","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M5.499 24a.752.752 0 0 1-.53-1.281L15.689 12 4.969 1.28c-.142-.141-.22-.33-.22-.53s.078-.389.22-.53c.141-.142.33-.22.53-.22s.389.078.53.22l10.72 10.72a1.5 1.5 0 0 1 .001 2.119L6.029 23.78a.743.743 0 0 1-.53.22z\"/></svg>"};
|
|
8390
8972
|
|
|
8391
|
-
var actionNewWindowSmall={"title":"action-new-window-small","tags":"arrow open new window tab external linksquare box rectangle action small","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M10.5 2a1.5 1.5 0 0 1 .14 3H3.75c-.38 0-.7.28-.74.65l-.01.1v14.5c0 .38.28.7.65.74l.1.01h14.5c.38 0 .7-.28.74-.65l.01-.1v-6.89a1.5 1.5 0 0 1 3 0v6.89A3.75 3.75 0 0 1 18.25 24H3.75A3.75 3.75 0 0 1 0 20.25V5.75A3.75 3.75 0 0 1 3.75 2zm12-2c.78 0 1.42.6 1.5 1.36V7.5a1.5 1.5 0 0 1-3 .14V5.12l-5.44 5.44a1.5 1.5 0 0 1-2.22-2l.1-.12L18.88 3H16.5A1.5 1.5 0 0 1 15 1.64V1.5c0-.78.6-1.42 1.36-1.5h.14z\"/></svg>"};
|
|
8392
|
-
|
|
8393
8973
|
var actionNewWindow={"title":"action-new-window","tags":"arrow open new window tab external link square box rectangle action","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M10.25 2a.75.75 0 1 1 0 1.5h-6.5A2.252 2.252 0 0 0 1.5 5.75v14.5a2.252 2.252 0 0 0 2.25 2.25h14.5a2.252 2.252 0 0 0 2.25-2.25v-6.5a.75.75 0 0 1 1.5 0v6.5A3.754 3.754 0 0 1 18.25 24H3.75A3.754 3.754 0 0 1 0 20.25V5.75A3.754 3.754 0 0 1 3.75 2zm12.985-2c.1 0 .198.02.29.058l.025.011a.726.726 0 0 1 .15.091l.066.059a.755.755 0 0 1 .109.138l.051.1c.04.092.06.192.06.293l-.001 6.363c0 .2-.078.389-.22.53a.743.743 0 0 1-.53.22.743.743 0 0 1-.53-.22.743.743 0 0 1-.22-.53V2.559L15.28 9.764a.75.75 0 0 1-1.06-1.06l7.204-7.205h-4.553a.744.744 0 0 1-.75-.75c0-.2.078-.388.22-.53A.743.743 0 0 1 16.87 0z\"/></svg>"};
|
|
8394
8974
|
|
|
8975
|
+
var actionNewWindowSmall={"title":"action-new-window-small","tags":"arrow open new window tab external linksquare box rectangle action small","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M10.5 2a1.5 1.5 0 0 1 .14 3H3.75c-.38 0-.7.28-.74.65l-.01.1v14.5c0 .38.28.7.65.74l.1.01h14.5c.38 0 .7-.28.74-.65l.01-.1v-6.89a1.5 1.5 0 0 1 3 0v6.89A3.75 3.75 0 0 1 18.25 24H3.75A3.75 3.75 0 0 1 0 20.25V5.75A3.75 3.75 0 0 1 3.75 2zm12-2c.78 0 1.42.6 1.5 1.36V7.5a1.5 1.5 0 0 1-3 .14V5.12l-5.44 5.44a1.5 1.5 0 0 1-2.22-2l.1-.12L18.88 3H16.5A1.5 1.5 0 0 1 15 1.64V1.5c0-.78.6-1.42 1.36-1.5h.14z\"/></svg>"};
|
|
8976
|
+
|
|
8395
8977
|
const duetFooterCss = "/*!@*,\n*::after,\n*::before*/*.sc-duet-footer,*.sc-duet-footer::after,*.sc-duet-footer::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}/*!@:host*/.sc-duet-footer-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;flex-shrink:0;width:100%}/*!@.duet-footer*/.duet-footer.sc-duet-footer{display:block;width:100%;padding-top:20px;padding-bottom:16px;margin-top:48px;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:white;text-align:left;background:#00294d}/*!@.duet-footer.duet-p-0*/.duet-footer.duet-p-0.sc-duet-footer{padding:0 !important}/*!@.duet-footer.duet-m-0*/.duet-footer.duet-m-0.sc-duet-footer{margin:0 !important}@media (min-width: 36em){/*!@.duet-footer*/.duet-footer.sc-duet-footer{padding-top:36px}}@media (min-width: 62em){/*!@.duet-footer*/.duet-footer.sc-duet-footer{padding-top:48px;padding-bottom:36px}}/*!@.duet-footer.duet-theme-turva*/.duet-footer.duet-theme-turva.sc-duet-footer{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";background:#c60c30}/*!@.duet-footer a*/.duet-footer.sc-duet-footer a.sc-duet-footer{color:white;text-decoration:none}@media (min-width: 62em){/*!@.duet-footer a*/.duet-footer.sc-duet-footer a.sc-duet-footer{border-radius:4px}}/*!@.duet-footer a:focus*/.duet-footer.sc-duet-footer a.sc-duet-footer:focus{outline:0}/*!@:host(.user-is-tabbing) .duet-footer a:focus*/.user-is-tabbing.sc-duet-footer-h .duet-footer.sc-duet-footer a.sc-duet-footer:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}/*!@:host(.user-is-tabbing) .duet-theme-turva a:focus*/.user-is-tabbing.sc-duet-footer-h .duet-theme-turva.sc-duet-footer a.sc-duet-footer:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}/*!@.duet-footer-wrapper*/.duet-footer-wrapper.sc-duet-footer{position:relative;margin:0 auto}@media (min-width: 62em){/*!@.duet-footer-wrapper*/.duet-footer-wrapper.sc-duet-footer{padding:0 72px 0 48px}}@media (min-width: 76.25em){/*!@.duet-footer-wrapper*/.duet-footer-wrapper.sc-duet-footer{max-width:1110px;padding:0 20px 0 0}}/*!@.duet-footer-top*/.duet-footer-top.sc-duet-footer{width:100%}@media (min-width: 62em){/*!@.duet-footer-top*/.duet-footer-top.sc-duet-footer{display:flex;flex-direction:row;align-items:center;justify-content:space-between}}/*!@duet-logo*/duet-logo.sc-duet-footer{margin-left:16px !important}@media (min-width: 36em){/*!@duet-logo*/duet-logo.sc-duet-footer{margin-left:28px !important}}@media (min-width: 62em){/*!@duet-logo*/duet-logo.sc-duet-footer{margin-left:0 !important}}/*!@.duet-footer-link*/.duet-footer-link.sc-duet-footer{padding:16px !important;display:flex;flex-direction:row;align-items:center;width:100%;font-weight:600;border-bottom:1px solid rgba(255, 255, 255, 0.2);transition:background-color 300ms ease}@media (min-width: 36em){/*!@.duet-footer-link*/.duet-footer-link.sc-duet-footer{padding-right:20px !important;padding-left:28px !important}}@media (min-width: 62em){/*!@.duet-footer-link*/.duet-footer-link.sc-duet-footer{width:auto;min-width:0;padding-right:0 !important;padding-left:0 !important;border:0}}/*!@.duet-footer-link:first-of-type*/.duet-footer-link.sc-duet-footer:first-of-type{margin-top:20px;border-top:1px solid rgba(255, 255, 255, 0.2)}@media (min-width: 62em){/*!@.duet-footer-link:first-of-type*/.duet-footer-link.sc-duet-footer:first-of-type{margin:0;border:0}}/*!@.duet-footer-link span*/.duet-footer-link.sc-duet-footer span.sc-duet-footer{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}/*!@.duet-footer-link:hover*/.duet-footer-link.sc-duet-footer:hover{background:rgba(0, 0, 0, 0.1)}@media (min-width: 62em){/*!@.duet-footer-link:hover*/.duet-footer-link.sc-duet-footer:hover{background:transparent}}/*!@.duet-footer-icon*/.duet-footer-icon.sc-duet-footer{display:flex;align-items:center;justify-content:center;padding:12px;margin-right:16px;background:#0077b3;border-radius:50%;transition:300ms ease}/*!@.duet-theme-turva .duet-footer-icon*/.duet-theme-turva.sc-duet-footer .duet-footer-icon.sc-duet-footer{background:transparent;box-shadow:0 0 0 1px white}/*!@a:hover .duet-footer-icon*/a.sc-duet-footer:hover .duet-footer-icon.sc-duet-footer{background:#006ba1}/*!@.duet-theme-turva a:hover .duet-footer-icon*/.duet-theme-turva.sc-duet-footer a.sc-duet-footer:hover .duet-footer-icon.sc-duet-footer{background:transparent}/*!@.duet-footer-arrow*/.duet-footer-arrow.sc-duet-footer{display:flex;align-items:center;justify-content:center;width:20px;min-width:20px;max-width:20px;height:20px;max-height:20px;margin-left:auto;color:white;transition:transform 300ms ease}@media (min-width: 62em){/*!@.duet-footer-arrow*/.duet-footer-arrow.sc-duet-footer{width:10px;min-width:10px;margin-top:3px;margin-left:8px}}@media (min-width: 62em){/*!@.duet-footer-arrow*/.duet-footer-arrow.sc-duet-footer{margin-right:0}}/*!@a:hover .duet-footer-arrow*/a.sc-duet-footer:hover .duet-footer-arrow.sc-duet-footer{transform:translateX(4px)}/*!@.duet-footer-arrow duet-icon*/.duet-footer-arrow.sc-duet-footer duet-icon.sc-duet-footer{width:20px;height:20px}@media (min-width: 62em){/*!@.duet-footer-arrow duet-icon*/.duet-footer-arrow.sc-duet-footer duet-icon.sc-duet-footer{width:10px;height:10px}}/*!@.duet-footer-menu*/.duet-footer-menu.sc-duet-footer{padding:20px !important;font-size:0.875rem}@media (min-width: 36em){/*!@.duet-footer-menu*/.duet-footer-menu.sc-duet-footer{padding:28px !important}}@media (min-width: 62em){/*!@.duet-footer-menu*/.duet-footer-menu.sc-duet-footer{padding-left:8px !important}}/*!@.duet-footer-menu a*/.duet-footer-menu.sc-duet-footer a.sc-duet-footer{text-decoration:none}/*!@.duet-footer-menu a:hover, .duet-footer-menu a:focus*/.duet-footer-menu.sc-duet-footer a.sc-duet-footer:hover,.duet-footer-menu.sc-duet-footer a.sc-duet-footer:focus{text-decoration:underline}/*!@.duet-footer-menu a:hover .duet-footer-divider, .duet-footer-menu a:focus .duet-footer-divider*/.duet-footer-menu.sc-duet-footer a.sc-duet-footer:hover .duet-footer-divider.sc-duet-footer,.duet-footer-menu.sc-duet-footer a.sc-duet-footer:focus .duet-footer-divider.sc-duet-footer{text-decoration:none}/*!@.duet-footer-menu .duet-footer-divider*/.duet-footer-menu.sc-duet-footer .duet-footer-divider.sc-duet-footer{display:inline-block;margin:0 8px}/*!@.duet-footer-menu a:last-of-type .duet-footer-divider*/.duet-footer-menu.sc-duet-footer a.sc-duet-footer:last-of-type .duet-footer-divider.sc-duet-footer{display:none}/*!@.duet-footer-copyright*/.duet-footer-copyright.sc-duet-footer{color:white}/*!@.duet-footer-simple*/.duet-footer-simple.sc-duet-footer{padding:0;margin:0;margin-top:16px;color:#00294d;background:transparent !important;border-top:1px solid #e1e3e6}/*!@.duet-footer-simple .duet-footer-wrapper*/.duet-footer-simple.sc-duet-footer .duet-footer-wrapper.sc-duet-footer{max-width:100%;padding:0 20px;margin:0}@media (min-width: 62em){/*!@.duet-footer-simple .duet-footer-wrapper*/.duet-footer-simple.sc-duet-footer .duet-footer-wrapper.sc-duet-footer{padding:0 36px}}@media (min-width: 106.25em){/*!@.duet-footer-simple .duet-footer-wrapper*/.duet-footer-simple.sc-duet-footer .duet-footer-wrapper.sc-duet-footer{padding:0 48px}}/*!@.duet-footer-simple .duet-footer-copyright,\n.duet-footer-simple .duet-footer-menu a*/.duet-footer-simple.sc-duet-footer .duet-footer-copyright.sc-duet-footer,.duet-footer-simple.sc-duet-footer .duet-footer-menu.sc-duet-footer a.sc-duet-footer{color:#00294d}/*!@.duet-footer-simple .duet-footer-menu*/.duet-footer-simple.sc-duet-footer .duet-footer-menu.sc-duet-footer{padding:20px 0 !important}/*!@.duet-footer-simple.duet-theme-turva*/.duet-footer-simple.duet-theme-turva.sc-duet-footer{color:#171c3a;border-color:#e4e4e6}/*!@.duet-footer-simple.duet-theme-turva .duet-footer-copyright,\n.duet-footer-simple.duet-theme-turva .duet-footer-menu a*/.duet-footer-simple.duet-theme-turva.sc-duet-footer .duet-footer-copyright.sc-duet-footer,.duet-footer-simple.duet-theme-turva.sc-duet-footer .duet-footer-menu.sc-duet-footer a.sc-duet-footer{color:#171c3a}/*!@.duet-footer-external*/.duet-footer-external.sc-duet-footer{display:inline-block;margin-left:4px;color:#0077b3}/*!@.duet-theme-turva .duet-footer-external*/.duet-theme-turva.sc-duet-footer .duet-footer-external.sc-duet-footer{color:white}/*!@.duet-footer-simple.duet-theme-turva .duet-footer-external*/.duet-footer-simple.duet-theme-turva.sc-duet-footer .duet-footer-external.sc-duet-footer{color:#c60c30}";
|
|
8396
8978
|
|
|
8397
8979
|
const i18n$1 = {
|
|
@@ -8437,17 +9019,21 @@ class DuetFooter {
|
|
|
8437
9019
|
/**
|
|
8438
9020
|
* The currently active language. This setting changes the logo to match the
|
|
8439
9021
|
* chosen language.
|
|
9022
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
9023
|
+
* @default "fi"
|
|
8440
9024
|
*/
|
|
8441
9025
|
this.language = getLanguage();
|
|
8442
9026
|
/**
|
|
8443
9027
|
* Property to change accessibleLabelExternal defaults on the component.
|
|
8444
9028
|
* normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
|
|
9029
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
8445
9030
|
*/
|
|
8446
9031
|
this.accessibleLabelExternalDefaults = DuetStringsExternalDefaults;
|
|
8447
9032
|
/**
|
|
8448
9033
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
9034
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
8449
9035
|
*/
|
|
8450
|
-
this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults);
|
|
9036
|
+
this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults, this.language);
|
|
8451
9037
|
/**
|
|
8452
9038
|
* Component event handling.
|
|
8453
9039
|
*/
|
|
@@ -8522,7 +9108,7 @@ class DuetFooter {
|
|
|
8522
9108
|
"logoHref": [1, "logo-href"],
|
|
8523
9109
|
"language": [1025],
|
|
8524
9110
|
"items": [8],
|
|
8525
|
-
"accessibleLabelExternalDefaults": [
|
|
9111
|
+
"accessibleLabelExternalDefaults": [1, "accessible-label-external-default"],
|
|
8526
9112
|
"accessibleLabelExternal": [1, "accessible-label-external"],
|
|
8527
9113
|
"menu": [8],
|
|
8528
9114
|
"processedItems": [32],
|
|
@@ -8721,6 +9307,16 @@ class DuetGridItem {
|
|
|
8721
9307
|
}; }
|
|
8722
9308
|
}
|
|
8723
9309
|
|
|
9310
|
+
var navigationContactDropdown={"title":"navigation-contact-dropdown","tags":"navigation contact dropdown speech bubbles","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M20.247 24a.743.743 0 0 1-.53-.22l-4.28-4.28h-.439c-3.308 0-6-2.692-6-6s2.692-6 6-6h3c3.309.001 6 2.692 6 6a5.974 5.974 0 0 1-3 5.179v4.571a.75.75 0 0 1-.751.75zm-5.25-15c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5h.75c.198 0 .391.08.53.22l3.22 3.22v-3.213c0-.289.169-.555.429-.678a4.51 4.51 0 0 0 2.571-4.049 4.504 4.504 0 0 0-4.498-4.499h-3.002z\"/><path d=\"M3.747 16.5a.747.747 0 0 1-.75-.75v-4.57a5.967 5.967 0 0 1-2.65-3.171A5.948 5.948 0 0 1 .57 3.431 6.014 6.014 0 0 1 5.985 0h3.012a6.04 6.04 0 0 1 5.752 4.286.751.751 0 0 1-.718.964.755.755 0 0 1-.719-.536A4.531 4.531 0 0 0 8.997 1.5h-3a4.511 4.511 0 0 0-4.071 2.572c-.512 1.084-.571 2.302-.167 3.431s1.224 2.032 2.308 2.545c.261.123.43.39.43.678v3.214l1.72-1.72a.744.744 0 0 1 1.06 0 .752.752 0 0 1 0 1.061l-3 3a.744.744 0 0 1-.53.219z\"/></svg>"};
|
|
9311
|
+
|
|
9312
|
+
var navigationLanguage={"title":"navigation-language","tags":"navigation language earth world map","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M11.996 24c-2.732 0-5.309-.901-7.453-2.605l-.017-.012-.031-.025a12.68 12.68 0 0 1-.238-.196c-.071-.06-.142-.122-.213-.184l-.143-.126c-.13-.118-.257-.24-.381-.363l-.018-.018a11.904 11.904 0 0 1-3.445-9.695l.001-.007c.018-.174.041-.348.067-.523l.019-.125c.028-.174.058-.348.093-.521l.003-.013C1.379 4.031 6.321 0 11.996 0c6.617 0 12 5.383 12 12 0 1.083-.148 2.164-.44 3.214l-.009.032a12.172 12.172 0 0 1-.671 1.809s-.072.155-.1.212a11.896 11.896 0 0 1-.189.368A11.987 11.987 0 0 1 11.996 24zm-6.181-3.519a10.388 10.388 0 0 0 6.181 2.019c3.471 0 6.642-1.669 8.611-4.497h-.59a2.244 2.244 0 0 1-2.22-1.879L17.111 12h-.944a2.252 2.252 0 0 1-2.182-2.796l.75-3A2.245 2.245 0 0 1 16.917 4.5h2.416A10.49 10.49 0 0 0 1.934 9h4.391c1.034 0 1.932.701 2.183 1.704l.75 3a2.235 2.235 0 0 1-.592 2.137c-.425.425-.99.659-1.591.659h-.464zm-4.248-9.687-.015.116a9.092 9.092 0 0 0-.053.96l-.002.17c.001.145.005.29.011.435l.006.127c.009.154.02.308.035.461l.005.041c.071.68.209 1.354.411 2.003l.009.028a10.457 10.457 0 0 0 2.537 4.222l.75-3.751A.75.75 0 0 1 5.996 15h1.079a.75.75 0 0 0 .728-.932l-.75-3a.751.751 0 0 0-.729-.568H1.606l-.039.294zM16.917 6a.75.75 0 0 0-.728.568l-.75 3a.752.752 0 0 0 .728.932h1.579c.368 0 .679.264.74.627l.791 4.75a.748.748 0 0 0 .74.626h1.461c.171-.358.321-.727.449-1.1l.021-.062A10.486 10.486 0 0 0 20.598 6z\"/></svg>"};
|
|
9313
|
+
|
|
9314
|
+
var navigationLogin={"title":"navigation-login","tags":"navigation login sign in lock locked key","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M5.25 24A2.252 2.252 0 0 1 3 21.75v-10.5A2.252 2.252 0 0 1 5.25 9H6V6c0-3.308 2.692-6 6-6s6 2.692 6 6v3h.75A2.252 2.252 0 0 1 21 11.25v10.5A2.252 2.252 0 0 1 18.75 24zm0-13.5a.75.75 0 0 0-.75.75v10.5c0 .414.336.75.75.75h13.5a.75.75 0 0 0 .75-.75v-10.5a.75.75 0 0 0-.75-.75zM16.5 9V6c0-2.481-2.019-4.5-4.5-4.5S7.5 3.519 7.5 6v3z\"/><path d=\"M12 17.25c-.62 0-1.125-.505-1.125-1.125a1.127 1.127 0 0 1 1.923-.794A1.126 1.126 0 0 1 12 17.25z\"/></svg>"};
|
|
9315
|
+
|
|
9316
|
+
var navigationLogout={"title":"navigation-logout","tags":"navigation logout sign out lock unlocked key","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M8.25 24A2.252 2.252 0 0 1 6 21.75v-10.5A2.252 2.252 0 0 1 8.25 9h2.25V6c0-2.481-2.019-4.5-4.5-4.5S1.5 3.519 1.5 6v3.75a.75.75 0 0 1-1.5 0V6c0-3.308 2.692-6 6-6s6 2.692 6 6v3h9.75A2.252 2.252 0 0 1 24 11.25v10.5A2.252 2.252 0 0 1 21.75 24zm0-13.5a.75.75 0 0 0-.75.75v10.5c0 .414.336.75.75.75h13.5a.75.75 0 0 0 .75-.75v-10.5a.75.75 0 0 0-.75-.75z\"/><path d=\"M15 17.25c-.62 0-1.125-.505-1.125-1.125a1.127 1.127 0 0 1 1.923-.794A1.126 1.126 0 0 1 15 17.25z\"/></svg>"};
|
|
9317
|
+
|
|
9318
|
+
var navigationUser={"title":"navigation-user","tags":"navigation user human person head circle","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M12 15.75c-3.308 0-6-2.692-6-6s2.692-6 6-6 6 2.692 6 6-2.692 6-6 6zm0-10.5c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5 4.5-2.019 4.5-4.5-2.019-4.5-4.5-4.5z\"/><path d=\"M12 24c-2.677 0-5.211-.868-7.332-2.51a.507.507 0 0 1-.126-.099C1.655 19.094 0 15.674 0 12 0 5.383 5.383 0 12 0s12 5.383 12 12c0 3.674-1.655 7.094-4.543 9.391l-.015.016c-.043.043-.087.069-.112.084A11.868 11.868 0 0 1 12 24zm-5.716-3.199A10.408 10.408 0 0 0 12 22.5a10.41 10.41 0 0 0 5.717-1.699 8.966 8.966 0 0 0-5.716-2.045 8.965 8.965 0 0 0-5.717 2.045zM12 1.5C6.21 1.5 1.5 6.21 1.5 12c0 3.023 1.294 5.875 3.562 7.874A10.449 10.449 0 0 1 12 17.257c2.573 0 5.023.927 6.938 2.616 2.268-2 3.562-4.851 3.562-7.874C22.5 6.21 17.79 1.5 12 1.5z\"/></svg>"};
|
|
9319
|
+
|
|
8724
9320
|
// Older browsers don't support event options, feature detect it.
|
|
8725
9321
|
|
|
8726
9322
|
// Adopted and modified solution from Bohdan Didukh (2017)
|
|
@@ -8901,16 +9497,6 @@ const enableBodyScroll = targetElement => {
|
|
|
8901
9497
|
}
|
|
8902
9498
|
};
|
|
8903
9499
|
|
|
8904
|
-
var navigationContactDropdown={"title":"navigation-contact-dropdown","tags":"navigation contact dropdown speech bubbles","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M20.247 24a.743.743 0 0 1-.53-.22l-4.28-4.28h-.439c-3.308 0-6-2.692-6-6s2.692-6 6-6h3c3.309.001 6 2.692 6 6a5.974 5.974 0 0 1-3 5.179v4.571a.75.75 0 0 1-.751.75zm-5.25-15c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5h.75c.198 0 .391.08.53.22l3.22 3.22v-3.213c0-.289.169-.555.429-.678a4.51 4.51 0 0 0 2.571-4.049 4.504 4.504 0 0 0-4.498-4.499h-3.002z\"/><path d=\"M3.747 16.5a.747.747 0 0 1-.75-.75v-4.57a5.967 5.967 0 0 1-2.65-3.171A5.948 5.948 0 0 1 .57 3.431 6.014 6.014 0 0 1 5.985 0h3.012a6.04 6.04 0 0 1 5.752 4.286.751.751 0 0 1-.718.964.755.755 0 0 1-.719-.536A4.531 4.531 0 0 0 8.997 1.5h-3a4.511 4.511 0 0 0-4.071 2.572c-.512 1.084-.571 2.302-.167 3.431s1.224 2.032 2.308 2.545c.261.123.43.39.43.678v3.214l1.72-1.72a.744.744 0 0 1 1.06 0 .752.752 0 0 1 0 1.061l-3 3a.744.744 0 0 1-.53.219z\"/></svg>"};
|
|
8905
|
-
|
|
8906
|
-
var navigationLanguage={"title":"navigation-language","tags":"navigation language earth world map","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M11.996 24c-2.732 0-5.309-.901-7.453-2.605l-.017-.012-.031-.025a12.68 12.68 0 0 1-.238-.196c-.071-.06-.142-.122-.213-.184l-.143-.126c-.13-.118-.257-.24-.381-.363l-.018-.018a11.904 11.904 0 0 1-3.445-9.695l.001-.007c.018-.174.041-.348.067-.523l.019-.125c.028-.174.058-.348.093-.521l.003-.013C1.379 4.031 6.321 0 11.996 0c6.617 0 12 5.383 12 12 0 1.083-.148 2.164-.44 3.214l-.009.032a12.172 12.172 0 0 1-.671 1.809s-.072.155-.1.212a11.896 11.896 0 0 1-.189.368A11.987 11.987 0 0 1 11.996 24zm-6.181-3.519a10.388 10.388 0 0 0 6.181 2.019c3.471 0 6.642-1.669 8.611-4.497h-.59a2.244 2.244 0 0 1-2.22-1.879L17.111 12h-.944a2.252 2.252 0 0 1-2.182-2.796l.75-3A2.245 2.245 0 0 1 16.917 4.5h2.416A10.49 10.49 0 0 0 1.934 9h4.391c1.034 0 1.932.701 2.183 1.704l.75 3a2.235 2.235 0 0 1-.592 2.137c-.425.425-.99.659-1.591.659h-.464zm-4.248-9.687-.015.116a9.092 9.092 0 0 0-.053.96l-.002.17c.001.145.005.29.011.435l.006.127c.009.154.02.308.035.461l.005.041c.071.68.209 1.354.411 2.003l.009.028a10.457 10.457 0 0 0 2.537 4.222l.75-3.751A.75.75 0 0 1 5.996 15h1.079a.75.75 0 0 0 .728-.932l-.75-3a.751.751 0 0 0-.729-.568H1.606l-.039.294zM16.917 6a.75.75 0 0 0-.728.568l-.75 3a.752.752 0 0 0 .728.932h1.579c.368 0 .679.264.74.627l.791 4.75a.748.748 0 0 0 .74.626h1.461c.171-.358.321-.727.449-1.1l.021-.062A10.486 10.486 0 0 0 20.598 6z\"/></svg>"};
|
|
8907
|
-
|
|
8908
|
-
var navigationUser={"title":"navigation-user","tags":"navigation user human person head circle","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M12 15.75c-3.308 0-6-2.692-6-6s2.692-6 6-6 6 2.692 6 6-2.692 6-6 6zm0-10.5c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5 4.5-2.019 4.5-4.5-2.019-4.5-4.5-4.5z\"/><path d=\"M12 24c-2.677 0-5.211-.868-7.332-2.51a.507.507 0 0 1-.126-.099C1.655 19.094 0 15.674 0 12 0 5.383 5.383 0 12 0s12 5.383 12 12c0 3.674-1.655 7.094-4.543 9.391l-.015.016c-.043.043-.087.069-.112.084A11.868 11.868 0 0 1 12 24zm-5.716-3.199A10.408 10.408 0 0 0 12 22.5a10.41 10.41 0 0 0 5.717-1.699 8.966 8.966 0 0 0-5.716-2.045 8.965 8.965 0 0 0-5.717 2.045zM12 1.5C6.21 1.5 1.5 6.21 1.5 12c0 3.023 1.294 5.875 3.562 7.874A10.449 10.449 0 0 1 12 17.257c2.573 0 5.023.927 6.938 2.616 2.268-2 3.562-4.851 3.562-7.874C22.5 6.21 17.79 1.5 12 1.5z\"/></svg>"};
|
|
8909
|
-
|
|
8910
|
-
var navigationLogout={"title":"navigation-logout","tags":"navigation logout sign out lock unlocked key","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M8.25 24A2.252 2.252 0 0 1 6 21.75v-10.5A2.252 2.252 0 0 1 8.25 9h2.25V6c0-2.481-2.019-4.5-4.5-4.5S1.5 3.519 1.5 6v3.75a.75.75 0 0 1-1.5 0V6c0-3.308 2.692-6 6-6s6 2.692 6 6v3h9.75A2.252 2.252 0 0 1 24 11.25v10.5A2.252 2.252 0 0 1 21.75 24zm0-13.5a.75.75 0 0 0-.75.75v10.5c0 .414.336.75.75.75h13.5a.75.75 0 0 0 .75-.75v-10.5a.75.75 0 0 0-.75-.75z\"/><path d=\"M15 17.25c-.62 0-1.125-.505-1.125-1.125a1.127 1.127 0 0 1 1.923-.794A1.126 1.126 0 0 1 15 17.25z\"/></svg>"};
|
|
8911
|
-
|
|
8912
|
-
var navigationLogin={"title":"navigation-login","tags":"navigation login sign in lock locked key","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M5.25 24A2.252 2.252 0 0 1 3 21.75v-10.5A2.252 2.252 0 0 1 5.25 9H6V6c0-3.308 2.692-6 6-6s6 2.692 6 6v3h.75A2.252 2.252 0 0 1 21 11.25v10.5A2.252 2.252 0 0 1 18.75 24zm0-13.5a.75.75 0 0 0-.75.75v10.5c0 .414.336.75.75.75h13.5a.75.75 0 0 0 .75-.75v-10.5a.75.75 0 0 0-.75-.75zM16.5 9V6c0-2.481-2.019-4.5-4.5-4.5S7.5 3.519 7.5 6v3z\"/><path d=\"M12 17.25c-.62 0-1.125-.505-1.125-1.125a1.127 1.127 0 0 1 1.923-.794A1.126 1.126 0 0 1 12 17.25z\"/></svg>"};
|
|
8913
|
-
|
|
8914
9500
|
const duetHeaderCss = "/*!@*,\n*::after,\n*::before*/*.sc-duet-header,*.sc-duet-header::after,*.sc-duet-header::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}/*!@:host*/.sc-duet-header-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}@supports (position: -webkit-sticky){/*!@:host*/.sc-duet-header-h{position:-webkit-sticky;top:-4rem;z-index:400}}@supports (position: sticky){/*!@:host*/.sc-duet-header-h{position:sticky;top:-4rem;z-index:400}}/*!@.duet-header-reserved-space*/.duet-header-reserved-space.sc-duet-header{height:4rem}@media (min-width: 62em){/*!@.duet-header-reserved-space.duet-with-links*/.duet-header-reserved-space.duet-with-links.sc-duet-header{height:7rem}}/*!@.duet-header*/.duet-header.sc-duet-header{-webkit-user-select:none;user-select:none;position:fixed;top:0;left:0;z-index:400;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:0.875rem;font-weight:400;line-height:1.5;color:#00294d;text-align:left}/*!@.duet-header.duet-theme-turva*/.duet-header.duet-theme-turva.sc-duet-header{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}@media (min-width: 62em){/*!@.duet-header.duet-theme-turva*/.duet-header.duet-theme-turva.sc-duet-header{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13)}}@media (min-width: 62em){/*!@.duet-header*/.duet-header.sc-duet-header{position:absolute;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07)}/*!@.duet-header.duet-header-inactive*/.duet-header.duet-header-inactive.sc-duet-header{position:fixed}}/*!@.duet-header **/.duet-header.sc-duet-header *.sc-duet-header{-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}/*!@.duet-header-top*/.duet-header-top.sc-duet-header{position:relative;z-index:200;display:flex;flex-direction:row;align-items:center;width:100%;height:4rem;padding:0 16px;background:white;border-bottom:1px solid #e1e3e6;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07)}@media (min-width: 62em){/*!@.duet-header-top*/.duet-header-top.sc-duet-header{z-index:100;padding:0 28px;box-shadow:none}/*!@.duet-header-top duet-logo*/.duet-header-top.sc-duet-header duet-logo.sc-duet-header{padding-right:4px}}@media (min-width: 106.25em){/*!@.duet-header-top*/.duet-header-top.sc-duet-header{padding:0 48px}}/*!@.duet-theme-turva .duet-header-top*/.duet-theme-turva.sc-duet-header .duet-header-top.sc-duet-header{border-color:#e4e4e6;box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13)}@media (min-width: 62em){/*!@.duet-theme-turva .duet-header-top*/.duet-theme-turva.sc-duet-header .duet-header-top.sc-duet-header{box-shadow:none}}/*!@.duet-theme-turva .duet-header-top duet-logo*/.duet-theme-turva.sc-duet-header .duet-header-top.sc-duet-header duet-logo.sc-duet-header{left:-80px !important;margin-top:-8px !important}/*!@.duet-header-top .duet-header-region*/.duet-header-top.sc-duet-header .duet-header-region.sc-duet-header{max-width:200px;padding-left:16px;margin-top:1px;margin-right:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-left:1px solid #cfd2d4}/*!@.duet-theme-turva .duet-header-top .duet-header-region*/.duet-theme-turva.sc-duet-header .duet-header-top.sc-duet-header .duet-header-region.sc-duet-header{border-color:#cfcfd1}@media (max-width: 35.9375em){/*!@.duet-header-top .duet-header-region*/.duet-header-top.sc-duet-header .duet-header-region.sc-duet-header{display:none}}@media (min-width: 62em){/*!@.duet-header-top .duet-header-region*/.duet-header-top.sc-duet-header .duet-header-region.sc-duet-header{padding-left:19px}}/*!@.duet-header-bottom*/.duet-header-bottom.sc-duet-header{position:fixed;top:4rem;bottom:0;left:0;z-index:100;display:flex;flex-direction:column;width:100%;overflow-y:auto;visibility:hidden;background:#f5f8fa;opacity:0;-webkit-overflow-scrolling:touch}/*!@.duet-theme-turva .duet-header-bottom*/.duet-theme-turva.sc-duet-header .duet-header-bottom.sc-duet-header{background:#f5f5f7}@media (min-width: 62em){/*!@.duet-header-bottom*/.duet-header-bottom.sc-duet-header{position:relative;top:auto;bottom:auto;z-index:200;flex-direction:row;overflow:visible;visibility:visible;background:white;opacity:1}/*!@.duet-header-bottom.duet-header-inactive*/.duet-header-bottom.duet-header-inactive.sc-duet-header{position:relative}}/*!@.duet-header-bottom.active*/.duet-header-bottom.active.sc-duet-header{visibility:visible;opacity:1;transition:opacity 300ms ease, visibility 300ms ease}@media (min-width: 62em){/*!@.duet-header-bottom*/.duet-header-bottom.sc-duet-header{position:relative;transition:none !important}}/*!@.duet-header-items,\n.duet-header-bottom-utils,\n.duet-header-utils*/.duet-header-items.sc-duet-header,.duet-header-bottom-utils.sc-duet-header,.duet-header-utils.sc-duet-header{opacity:0;transition:transform 600ms ease, opacity 600ms ease;transform:translateY(-28px)}@media (min-width: 62em){/*!@.duet-header-items,\n.duet-header-bottom-utils,\n.duet-header-utils*/.duet-header-items.sc-duet-header,.duet-header-bottom-utils.sc-duet-header,.duet-header-utils.sc-duet-header{opacity:1;transition:none !important;transform:none}}/*!@.active .duet-header-items,\n.active .duet-header-bottom-utils,\n.active .duet-header-utils*/.active.sc-duet-header .duet-header-items.sc-duet-header,.active.sc-duet-header .duet-header-bottom-utils.sc-duet-header,.active.sc-duet-header .duet-header-utils.sc-duet-header{opacity:1;transform:translateY(0)}/*!@.duet-header-items*/.duet-header-items.sc-duet-header{position:relative;z-index:300;display:block;width:100%;font-size:1rem;font-weight:400;line-height:1.5;background:white}@media (min-width: 62em){/*!@.duet-header-items*/.duet-header-items.sc-duet-header{z-index:100;display:flex;flex-direction:row;padding:0 21.5384615385px}}@media (min-width: 106.25em){/*!@.duet-header-items*/.duet-header-items.sc-duet-header{padding-left:43.6363636364px}}/*!@.duet-header-items a*/.duet-header-items.sc-duet-header a.sc-duet-header{position:relative;display:block;width:100%;height:48px;padding:0 20px;overflow:hidden;font-size:1rem;font-weight:600;line-height:48px;color:#00294d;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid #e1e3e6;border-radius:0}@media (min-width: 62em){/*!@.duet-header-items a*/.duet-header-items.sc-duet-header a.sc-duet-header{border-radius:4px}}/*!@.duet-theme-turva .duet-header-items a*/.duet-theme-turva.sc-duet-header .duet-header-items.sc-duet-header a.sc-duet-header{font-weight:600;color:#171c3a;border-color:#e1e3e6}/*!@.duet-header-items a:hover*/.duet-header-items.sc-duet-header a.sc-duet-header:hover{color:#004d80}/*!@.duet-theme-turva .duet-header-items a:hover*/.duet-theme-turva.sc-duet-header .duet-header-items.sc-duet-header a.sc-duet-header:hover{color:#444445}/*!@.duet-header-items a:focus*/.duet-header-items.sc-duet-header a.sc-duet-header:focus{outline:0}/*!@:host(.user-is-tabbing) .duet-header-items a:focus*/.user-is-tabbing.sc-duet-header-h .duet-header-items.sc-duet-header a.sc-duet-header:focus{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-header-items a:focus*/.user-is-tabbing.sc-duet-header-h .duet-theme-turva.sc-duet-header .duet-header-items.sc-duet-header a.sc-duet-header:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}@media (min-width: 62em){/*!@.duet-header-items a*/.duet-header-items.sc-duet-header a.sc-duet-header{width:auto;max-width:300px;padding:0 12px;overflow:hidden;font-size:0.875rem;text-overflow:ellipsis;border:0}}/*!@.duet-header-items a.active*/.duet-header-items.sc-duet-header a.active.sc-duet-header{color:#0077b3;-moz-osx-font-smoothing:auto;-webkit-font-smoothing:subpixel-antialiased}/*!@.duet-theme-turva .duet-header-items a.active*/.duet-theme-turva.sc-duet-header .duet-header-items.sc-duet-header a.active.sc-duet-header{color:#c60c30}/*!@.duet-header-items a.active:hover*/.duet-header-items.sc-duet-header a.active.sc-duet-header:hover{color:#0077b3}/*!@.duet-theme-turva .duet-header-items a.active:hover*/.duet-theme-turva.sc-duet-header .duet-header-items.sc-duet-header a.active.sc-duet-header:hover{color:#c60c30}/*!@.duet-header-items a.active::after*/.duet-header-items.sc-duet-header a.active.sc-duet-header::after{position:absolute;top:0;bottom:0;left:0;width:4px;content:\"\";background:#0077b3}/*!@.duet-theme-turva .duet-header-items a.active::after*/.duet-theme-turva.sc-duet-header .duet-header-items.sc-duet-header a.active.sc-duet-header::after{background:#c60c30}@media (min-width: 62em){/*!@.duet-header-items a.active::after*/.duet-header-items.sc-duet-header a.active.sc-duet-header::after{top:auto;left:12px;width:calc(100% - 24px);height:3px}}/*!@.duet-header-toggle*/.duet-header-toggle.sc-duet-header{display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin-right:-8px;margin-left:auto;cursor:pointer;border-radius:4px;-webkit-appearance:none;appearance:none}/*!@.duet-header-toggle:focus*/.duet-header-toggle.sc-duet-header:focus{outline:0}/*!@:host(.user-is-tabbing) .duet-header-toggle:focus*/.user-is-tabbing.sc-duet-header-h .duet-header-toggle.sc-duet-header:focus{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-header-toggle:focus*/.user-is-tabbing.sc-duet-header-h .duet-theme-turva.sc-duet-header .duet-header-toggle.sc-duet-header:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}@media (min-width: 62em){/*!@.duet-header-toggle*/.duet-header-toggle.sc-duet-header{display:none}}/*!@.duet-header-hamburger*/.duet-header-hamburger.sc-duet-header{position:relative;width:24px;height:24px;margin-top:5px !important;pointer-events:none;transition:0.4s ease-in-out;backface-visibility:hidden}/*!@.duet-header-hamburger .duet-header-bar*/.duet-header-hamburger.sc-duet-header .duet-header-bar.sc-duet-header{position:absolute;left:0;display:block;width:100%;height:2px;background:#00294d;border-radius:20rem;opacity:1;transition:0.25s ease-in-out;transform:rotate(0deg) scale(0.98)}/*!@.duet-theme-turva .duet-header-hamburger .duet-header-bar*/.duet-theme-turva.sc-duet-header .duet-header-hamburger.sc-duet-header .duet-header-bar.sc-duet-header{background:#171c3a}/*!@.duet-header-hamburger .duet-header-bar:nth-child(1)*/.duet-header-hamburger.sc-duet-header .duet-header-bar.sc-duet-header:nth-child(1){top:0}/*!@.duet-header-hamburger .duet-header-bar:nth-child(2), .duet-header-hamburger .duet-header-bar:nth-child(3)*/.duet-header-hamburger.sc-duet-header .duet-header-bar.sc-duet-header:nth-child(2),.duet-header-hamburger.sc-duet-header .duet-header-bar.sc-duet-header:nth-child(3){top:7px}/*!@.duet-header-hamburger .duet-header-bar:nth-child(4)*/.duet-header-hamburger.sc-duet-header .duet-header-bar.sc-duet-header:nth-child(4){top:14px}/*!@button.active .duet-header-hamburger .duet-header-bar:nth-child(1)*/button.active.sc-duet-header .duet-header-hamburger.sc-duet-header .duet-header-bar.sc-duet-header:nth-child(1){top:7px;left:50%;width:0%}/*!@button.active .duet-header-hamburger .duet-header-bar:nth-child(2)*/button.active.sc-duet-header .duet-header-hamburger.sc-duet-header .duet-header-bar.sc-duet-header:nth-child(2){transform:rotate(45deg)}/*!@button.active .duet-header-hamburger .duet-header-bar:nth-child(3)*/button.active.sc-duet-header .duet-header-hamburger.sc-duet-header .duet-header-bar.sc-duet-header:nth-child(3){transform:rotate(-45deg)}/*!@button.active .duet-header-hamburger .duet-header-bar:nth-child(4)*/button.active.sc-duet-header .duet-header-hamburger.sc-duet-header .duet-header-bar.sc-duet-header:nth-child(4){top:7px;left:50%;width:0%}/*!@.duet-header-utils*/.duet-header-utils.sc-duet-header{display:flex;flex-direction:column;width:100%}@media (min-width: 62em){/*!@.duet-header-utils*/.duet-header-utils.sc-duet-header{position:absolute;top:-4rem;right:0;z-index:999999999;flex-direction:row;align-items:center;justify-content:space-between;width:auto;margin-right:20px}}@media (min-width: 106.25em){/*!@.duet-header-utils*/.duet-header-utils.sc-duet-header{margin-right:36px}}@media (min-width: 62em){/*!@.duet-header-bottom-utils*/.duet-header-bottom-utils.sc-duet-header{position:absolute;top:0;right:0;z-index:999999999;margin-right:20px}}@media (min-width: 106.25em){/*!@.duet-header-bottom-utils*/.duet-header-bottom-utils.sc-duet-header{margin-right:36px}}/*!@button*/button.sc-duet-header{font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}/*!@.duet-theme-turva button*/.duet-theme-turva.sc-duet-header button.sc-duet-header{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}/*!@.duet-header-button*/.duet-header-button.sc-duet-header{position:relative;display:flex;align-items:center;width:100%;height:48px;padding:0 20px;overflow:hidden;font-size:1rem;font-weight:400;line-height:48px;color:#00294d;text-align:left;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;border-bottom:1px solid #e1e3e6;border-radius:4px;-webkit-appearance:none;appearance:none}/*!@.duet-theme-turva .duet-header-button*/.duet-theme-turva.sc-duet-header .duet-header-button.sc-duet-header{color:#171c3a;border-color:#e4e4e6}/*!@.duet-header-button:hover*/.duet-header-button.sc-duet-header:hover{color:#004d80}/*!@.duet-theme-turva .duet-header-button:hover*/.duet-theme-turva.sc-duet-header .duet-header-button.sc-duet-header:hover{color:#444445}/*!@.duet-header-button:focus*/.duet-header-button.sc-duet-header:focus{outline:0}/*!@:host(.user-is-tabbing) .duet-header-button:focus*/.user-is-tabbing.sc-duet-header-h .duet-header-button.sc-duet-header:focus{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-header-button:focus*/.user-is-tabbing.sc-duet-header-h .duet-theme-turva.sc-duet-header .duet-header-button.sc-duet-header:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}/*!@.duet-header-button:active*/.duet-header-button.sc-duet-header:active{opacity:0.75}@media (min-width: 62em){/*!@.duet-header-button*/.duet-header-button.sc-duet-header{width:auto;max-width:200px;height:4rem;padding:0 16px;font-size:0.875rem;line-height:4rem;border:0}/*!@.duet-header-button::before*/.duet-header-button.sc-duet-header::before{position:absolute;top:50%;right:0;width:1px;height:20px;content:\"\";background:#cfd2d4;transform:translateY(-50%)}/*!@.duet-theme-turva .duet-header-button::before*/.duet-theme-turva.sc-duet-header .duet-header-button.sc-duet-header::before{background:#cfcfd1}}/*!@.duet-header-button.active*/.duet-header-button.active.sc-duet-header{color:#0077b3;border-radius:0}/*!@.duet-theme-turva .duet-header-button.active*/.duet-theme-turva.sc-duet-header .duet-header-button.active.sc-duet-header{color:#c60c30}/*!@.duet-header-button.active:hover*/.duet-header-button.active.sc-duet-header:hover{color:#0077b3}/*!@.duet-theme-turva .duet-header-button.active:hover*/.duet-theme-turva.sc-duet-header .duet-header-button.active.sc-duet-header:hover{color:#c60c30}/*!@.duet-header-button.active::after*/.duet-header-button.active.sc-duet-header::after{position:absolute;top:0;bottom:0;left:0;width:3px;content:\"\";background:#0077b3}/*!@.duet-theme-turva .duet-header-button.active::after*/.duet-theme-turva.sc-duet-header .duet-header-button.active.sc-duet-header::after{color:#c60c30}/*!@.duet-header-no-action*/.duet-header-no-action.sc-duet-header{pointer-events:none}/*!@.duet-header-user-label*/.duet-header-user-label.sc-duet-header{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 62em){/*!@.duet-header-utils > *:last-child::before,\n.duet-header-utils > *:last-child button::before*/.duet-header-utils.sc-duet-header>*.sc-duet-header:last-child::before,.duet-header-utils.sc-duet-header>*.sc-duet-header:last-child button.sc-duet-header::before{display:none}}@media (min-width: 62em){/*!@.duet-header-utils > *:last-child .duet-header-dropdown-content*/.duet-header-utils.sc-duet-header>*.sc-duet-header:last-child .duet-header-dropdown-content.sc-duet-header{right:0;left:auto}}/*!@.duet-header-language*/.duet-header-language.sc-duet-header{text-transform:uppercase}/*!@.duet-header-icon*/.duet-header-icon.sc-duet-header{display:inline-flex;min-width:12px;margin-right:12px;font-size:0;line-height:normal;vertical-align:baseline}@media (min-width: 62em){/*!@.duet-header-icon*/.duet-header-icon.sc-duet-header{margin-right:8px}}/*!@.duet-header-caret*/.duet-header-caret.sc-duet-header{position:absolute;top:50%;right:20px;display:flex;width:10px;height:10px;margin-left:8px;line-height:normal;pointer-events:none;transition:300ms ease;transform:translateY(-50%);transform-origin:50% 50%}@media (min-width: 62em){/*!@.duet-header-caret*/.duet-header-caret.sc-duet-header{width:7px;height:7px}}/*!@.duet-header-caret duet-icon*/.duet-header-caret.sc-duet-header duet-icon.sc-duet-header{width:10px}/*!@.duet-header-dropdown-toggle.active .duet-header-caret*/.duet-header-dropdown-toggle.active.sc-duet-header .duet-header-caret.sc-duet-header{transform:translateY(-50%) rotate(180deg)}/*!@.duet-header-dropdown-toggle:focus*/.duet-header-dropdown-toggle.sc-duet-header:focus{outline:0}/*!@:host(.user-is-tabbing) .duet-header-dropdown-toggle:focus*/.user-is-tabbing.sc-duet-header-h .duet-header-dropdown-toggle.sc-duet-header:focus{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-header-dropdown-toggle:focus*/.user-is-tabbing.sc-duet-header-h .duet-theme-turva.sc-duet-header .duet-header-dropdown-toggle.sc-duet-header:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}/*!@.duet-header-dropdown-toggle:active*/.duet-header-dropdown-toggle.sc-duet-header:active{outline:none}/*!@.duet-header-badge*/.duet-header-badge.sc-duet-header{display:inline-block;width:6px;height:6px;margin-top:16px;margin-left:5px;vertical-align:top;background:#f7b228;border-radius:50%;box-shadow:0 0 0 1px #c18b1f}/*!@.duet-theme-turva .duet-header-badge*/.duet-theme-turva.sc-duet-header .duet-header-badge.sc-duet-header{background:#faa40f}/*!@.duet-header-dropdown*/.duet-header-dropdown.sc-duet-header{position:relative}@media (min-width: 62em){/*!@.duet-header-dropdown .duet-header-dropdown-toggle*/.duet-header-dropdown.sc-duet-header .duet-header-dropdown-toggle.sc-duet-header{z-index:200;padding-right:36px;overflow:hidden;transition:border 300ms ease}}/*!@.duet-header-dropdown .duet-header-dropdown-toggle::after*/.duet-header-dropdown.sc-duet-header .duet-header-dropdown-toggle.sc-duet-header::after{display:none !important}@media (min-width: 62em){/*!@.duet-header-dropdown .duet-header-dropdown-toggle::after*/.duet-header-dropdown.sc-duet-header .duet-header-dropdown-toggle.sc-duet-header::after{position:absolute;top:auto;bottom:0;left:0;display:block !important;width:100%;height:3px;content:\"\";background:#0077b3;transition:300ms ease;transform:translateY(3px)}/*!@.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-toggle::after*/.duet-theme-turva.sc-duet-header .duet-header-dropdown.sc-duet-header .duet-header-dropdown-toggle.sc-duet-header::after{background:#c60c30}}/*!@.duet-header-dropdown .duet-header-dropdown-toggle.active, .duet-header-dropdown .duet-header-dropdown-toggle.active:hover*/.duet-header-dropdown.sc-duet-header .duet-header-dropdown-toggle.active.sc-duet-header,.duet-header-dropdown.sc-duet-header .duet-header-dropdown-toggle.active.sc-duet-header:hover{color:#004d80;border-bottom:1px solid #f5f8fa}/*!@.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-toggle.active, .duet-theme-turva .duet-header-dropdown .duet-header-dropdown-toggle.active:hover*/.duet-theme-turva.sc-duet-header .duet-header-dropdown.sc-duet-header .duet-header-dropdown-toggle.active.sc-duet-header,.duet-theme-turva.sc-duet-header .duet-header-dropdown.sc-duet-header .duet-header-dropdown-toggle.active.sc-duet-header:hover{color:#444445;border-color:#f5f5f7}@media (min-width: 62em){/*!@.duet-header-dropdown .duet-header-dropdown-toggle.active, .duet-header-dropdown .duet-header-dropdown-toggle.active:hover*/.duet-header-dropdown.sc-duet-header .duet-header-dropdown-toggle.active.sc-duet-header,.duet-header-dropdown.sc-duet-header .duet-header-dropdown-toggle.active.sc-duet-header:hover{border:0}/*!@.duet-header-dropdown .duet-header-dropdown-toggle.active::after, .duet-header-dropdown .duet-header-dropdown-toggle.active:hover::after*/.duet-header-dropdown.sc-duet-header .duet-header-dropdown-toggle.active.sc-duet-header::after,.duet-header-dropdown.sc-duet-header .duet-header-dropdown-toggle.active.sc-duet-header:hover::after{position:absolute;top:auto;bottom:0;left:0;width:100%;height:3px;transform:translateY(0)}}/*!@.duet-header-dropdown .duet-header-dropdown-content*/.duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.sc-duet-header{display:none;padding-bottom:16px;background:#f5f8fa;border-bottom:1px solid #e1e3e6}/*!@.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-content*/.duet-theme-turva.sc-duet-header .duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.sc-duet-header{background:#f5f5f7;border-color:#e1e3e6}@media (min-width: 62em){/*!@.duet-header-dropdown .duet-header-dropdown-content*/.duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.sc-duet-header{position:absolute;top:100%;left:0;z-index:600;display:block;min-width:170px;padding-top:16px;padding-left:0;visibility:hidden;border:0;border-radius:4px;border-top-left-radius:0;border-top-right-radius:0;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:300ms ease;transform:scale(0.85) translateZ(0) translateY(-20px)}}/*!@.duet-header-dropdown .duet-header-dropdown-content.active*/.duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.active.sc-duet-header{display:block}@media (min-width: 62em){/*!@.duet-header-dropdown .duet-header-dropdown-content.active*/.duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.active.sc-duet-header{visibility:visible;opacity:1;transform:translateZ(0) translateY(0)}}/*!@.duet-header-dropdown .duet-header-dropdown-content a*/.duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.sc-duet-header a.sc-duet-header{padding:3px 8px 4px !important;position:relative;display:block;width:100%;padding-right:16px;padding-left:48px !important;overflow:hidden;font-size:0.875rem;font-weight:400;line-height:1.5;color:#00294d;text-align:left;text-decoration:none;white-space:nowrap;cursor:pointer;transition:300ms ease}/*!@.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-content a*/.duet-theme-turva.sc-duet-header .duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.sc-duet-header a.sc-duet-header{color:#171c3a}@media (min-width: 62em){/*!@.duet-header-dropdown .duet-header-dropdown-content a*/.duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.sc-duet-header a.sc-duet-header{padding-left:20px !important}}@media (min-width: 62em){/*!@.duet-header-dropdown .duet-header-dropdown-content a:hover*/.duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.sc-duet-header a.sc-duet-header:hover{background:#e6f2f8}/*!@.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-content a:hover*/.duet-theme-turva.sc-duet-header .duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.sc-duet-header a.sc-duet-header:hover{background:#f9e6ea}}/*!@.duet-header-dropdown .duet-header-dropdown-content a:focus*/.duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.sc-duet-header a.sc-duet-header:focus{outline:0}/*!@:host(.user-is-tabbing) .duet-header-dropdown .duet-header-dropdown-content a:focus*/.user-is-tabbing.sc-duet-header-h .duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.sc-duet-header a.sc-duet-header:focus{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-header-dropdown .duet-header-dropdown-content a:focus*/.user-is-tabbing.sc-duet-header-h .duet-theme-turva.sc-duet-header .duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.sc-duet-header a.sc-duet-header:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}/*!@.duet-header-dropdown .duet-header-dropdown-content a.active*/.duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.sc-duet-header a.active.sc-duet-header{padding-right:36px;font-weight:600;vertical-align:baseline;pointer-events:none}/*!@.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-content a.active*/.duet-theme-turva.sc-duet-header .duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.sc-duet-header a.active.sc-duet-header{font-weight:700}@media (min-width: 62em){/*!@.duet-header-dropdown .duet-header-dropdown-content a.active*/.duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.sc-duet-header a.active.sc-duet-header{color:white;background:#0077b3}/*!@.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-content a.active*/.duet-theme-turva.sc-duet-header .duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.sc-duet-header a.active.sc-duet-header{background:#c60c30}}/*!@.duet-header-dropdown .duet-header-dropdown-content .duet-header-link-external*/.duet-header-dropdown.sc-duet-header .duet-header-dropdown-content.sc-duet-header .duet-header-link-external.sc-duet-header{margin-left:4px}/*!@.duet-header-back .duet-header-top*/.duet-header-back.sc-duet-header .duet-header-top.sc-duet-header{flex-direction:row;align-items:center;justify-content:center}/*!@.duet-header-back duet-button*/.duet-header-back.sc-duet-header duet-button.sc-duet-header{position:absolute;top:50%;left:36px;transform:translateY(-50%)}@media (max-width: 35.9375em){/*!@.duet-header-back duet-button*/.duet-header-back.sc-duet-header duet-button.sc-duet-header{left:20px;max-width:40px;padding:0 12px;overflow:hidden}}/*!@.duet-header-back .duet-header-toggle*/.duet-header-back.sc-duet-header .duet-header-toggle.sc-duet-header{display:none !important}/*!@.duet-header-skip*/.duet-header-skip.sc-duet-header{padding:8px 16px 9px !important;position:absolute;top:-100%;left:-100%;z-index:200;width:1px;min-width:160px;height:1px;overflow:hidden;font-weight:600;color:#0077b3;text-align:center;text-decoration:none;background:white;border-radius:4px;opacity:0}/*!@.duet-header-skip:focus*/.duet-header-skip.sc-duet-header:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}/*!@.duet-theme-turva .duet-header-skip:focus, .duet-header-skip:focus.duet-theme-turva*/.duet-theme-turva.sc-duet-header .duet-header-skip.sc-duet-header:focus,.duet-header-skip.sc-duet-header:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}/*!@.duet-theme-turva .duet-header-skip*/.duet-theme-turva.sc-duet-header .duet-header-skip.sc-duet-header{min-width:120px;color:#171c3a}@media (min-width: 106.25em){/*!@.duet-header-skip*/.duet-header-skip.sc-duet-header{margin-left:20px}}/*!@.duet-header-skip:focus*/.duet-header-skip.sc-duet-header:focus{top:12px;left:20px;width:auto;height:auto;outline:0;opacity:1}";
|
|
8915
9501
|
|
|
8916
9502
|
const createEvent = (ev, data) => ({
|
|
@@ -8956,13 +9542,13 @@ class DuetHeader {
|
|
|
8956
9542
|
/**
|
|
8957
9543
|
* The currently active language. This setting also changes the logo to match
|
|
8958
9544
|
* the chosen language.
|
|
9545
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
9546
|
+
* @default "fi"
|
|
8959
9547
|
*/
|
|
8960
9548
|
this.language = getLanguage();
|
|
8961
9549
|
/**
|
|
8962
|
-
*
|
|
8963
|
-
*
|
|
8964
|
-
*/
|
|
8965
|
-
this.accessibleI18nLabelsDefault = {
|
|
9550
|
+
* Default strings for accessibleI18nLabels
|
|
9551
|
+
* @default {
|
|
8966
9552
|
fi: {
|
|
8967
9553
|
skipLabel: "Siirry pääsisältöön",
|
|
8968
9554
|
changeLanguage: "Vaihda kieltä",
|
|
@@ -8978,25 +9564,62 @@ class DuetHeader {
|
|
|
8978
9564
|
changeLanguage: "Change language",
|
|
8979
9565
|
activeLanguage: "English selected",
|
|
8980
9566
|
},
|
|
9567
|
+
}
|
|
9568
|
+
*/
|
|
9569
|
+
this.accessibleI18nLabelsDefaults = {
|
|
9570
|
+
fi: {
|
|
9571
|
+
skipLabel: "Siirry pääsisältöön",
|
|
9572
|
+
changeLanguage: "Vaihda kieltä",
|
|
9573
|
+
activeLanguage: "Suomi valittuna",
|
|
9574
|
+
},
|
|
9575
|
+
sv: {
|
|
9576
|
+
skipLabel: "Gå till huvudinnehåll",
|
|
9577
|
+
changeLanguage: "Ändra Språk",
|
|
9578
|
+
activeLanguage: "Svenska valt",
|
|
9579
|
+
},
|
|
9580
|
+
en: {
|
|
9581
|
+
skipLabel: "Skip to main content",
|
|
9582
|
+
changeLanguage: "Change language",
|
|
9583
|
+
activeLanguage: "English selected",
|
|
9584
|
+
},
|
|
8981
9585
|
};
|
|
8982
9586
|
/**
|
|
8983
9587
|
* Adds i18n translations of all internally used textStrings
|
|
9588
|
+
* @default {
|
|
9589
|
+
fi: {
|
|
9590
|
+
skipLabel: "Siirry pääsisältöön",
|
|
9591
|
+
changeLanguage: "Vaihda kieltä",
|
|
9592
|
+
activeLanguage: "Suomi valittuna",
|
|
9593
|
+
},
|
|
9594
|
+
sv: {
|
|
9595
|
+
skipLabel: "Hoppa till huvudinnehåll",
|
|
9596
|
+
changeLanguage: "Ändra Språk",
|
|
9597
|
+
activeLanguage: "Svenska valt",
|
|
9598
|
+
},
|
|
9599
|
+
en: {
|
|
9600
|
+
skipLabel: "Skip to main content",
|
|
9601
|
+
changeLanguage: "Change language",
|
|
9602
|
+
activeLanguage: "English selected",
|
|
9603
|
+
},
|
|
9604
|
+
}
|
|
8984
9605
|
*/
|
|
8985
|
-
this.accessibleI18nLabels = getLocaleString(this.
|
|
9606
|
+
this.accessibleI18nLabels = getLocaleString(this.accessibleI18nLabelsDefaults);
|
|
8986
9607
|
/**
|
|
8987
9608
|
* Property to change accessibleLabelExternal defaults on the component.
|
|
8988
9609
|
* normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
|
|
9610
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
8989
9611
|
*/
|
|
8990
9612
|
this.accessibleLabelExternalDefaults = DuetStringsExternalDefaults;
|
|
8991
9613
|
/**
|
|
8992
9614
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
9615
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
8993
9616
|
*/
|
|
8994
9617
|
this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults);
|
|
8995
9618
|
/**
|
|
8996
9619
|
* Property to change accessibleLabel defaults on the component.
|
|
8997
9620
|
* normally you would handle these strings on an application level and override @accessibleLabel when needed
|
|
8998
9621
|
*/
|
|
8999
|
-
this.
|
|
9622
|
+
this.accessibleLabelDefaults = {
|
|
9000
9623
|
fi: "Valikko",
|
|
9001
9624
|
sv: "Meny",
|
|
9002
9625
|
en: "Menu",
|
|
@@ -9004,8 +9627,13 @@ class DuetHeader {
|
|
|
9004
9627
|
/**
|
|
9005
9628
|
* Accessible label that is shown for screen reader users in the mobile
|
|
9006
9629
|
* navigation toggle. Not visible for normal users.
|
|
9630
|
+
* @default {
|
|
9631
|
+
fi: "Valikko",
|
|
9632
|
+
sv: "Meny",
|
|
9633
|
+
en: "Menu",
|
|
9634
|
+
}
|
|
9007
9635
|
*/
|
|
9008
|
-
this.accessibleLabel = getLocaleString(this.
|
|
9636
|
+
this.accessibleLabel = getLocaleString(this.accessibleLabelDefaults);
|
|
9009
9637
|
/**
|
|
9010
9638
|
* URL that the logo link points to.
|
|
9011
9639
|
*/
|
|
@@ -9288,11 +9916,11 @@ class DuetHeader {
|
|
|
9288
9916
|
"$members$": {
|
|
9289
9917
|
"theme": [1025],
|
|
9290
9918
|
"language": [1025],
|
|
9291
|
-
"
|
|
9919
|
+
"accessibleI18nLabelsDefaults": [1, "accessible-labels-default"],
|
|
9292
9920
|
"accessibleI18nLabels": [16],
|
|
9293
|
-
"accessibleLabelExternalDefaults": [
|
|
9921
|
+
"accessibleLabelExternalDefaults": [1, "accessible-label-external-default"],
|
|
9294
9922
|
"accessibleLabelExternal": [1, "accessible-label-external"],
|
|
9295
|
-
"
|
|
9923
|
+
"accessibleLabelDefaults": [1, "accessible-label-default"],
|
|
9296
9924
|
"accessibleLabel": [1, "accessible-label"],
|
|
9297
9925
|
"user": [8],
|
|
9298
9926
|
"logoHref": [1, "logo-href"],
|
|
@@ -9323,7 +9951,7 @@ class DuetHeader {
|
|
|
9323
9951
|
}; }
|
|
9324
9952
|
}
|
|
9325
9953
|
|
|
9326
|
-
const duetHeadingCss = "/*!@*,\n*::after,\n*::before*/*.sc-duet-heading,*.sc-duet-heading::after,*.sc-duet-heading::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}/*!@:host*/.sc-duet-heading-h{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*/.duet-heading.sc-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}@media (min-width: 36em){/*!@.duet-heading*/.duet-heading.sc-duet-heading{margin-bottom:20px !important}}/*!@.duet-heading.duet-theme-turva*/.duet-heading.duet-theme-turva.sc-duet-heading{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*/.duet-heading.duet-heading-border.sc-duet-heading{padding-bottom:20px;border-bottom:1px solid #e1e3e6}/*!@.duet-heading.duet-heading-hyphenate*/.duet-heading.duet-heading-hyphenate.sc-duet-heading{-webkit-hyphens:auto;hyphens:auto}/*!@.duet-heading.h0*/.duet-heading.h0.sc-duet-heading{font-size:9.4vw}/*!@.duet-heading.h0.duet-p-0*/.duet-heading.h0.duet-p-0.sc-duet-heading{padding:0 !important}/*!@.duet-heading.h0.duet-m-0*/.duet-heading.h0.duet-m-0.sc-duet-heading{margin:0 !important}@media (max-width: 31.914893617rem){/*!@.duet-heading.h0*/.duet-heading.h0.sc-duet-heading{font-size:3rem}}@media (min-width: 47.8723404255rem){/*!@.duet-heading.h0*/.duet-heading.h0.sc-duet-heading{font-size:4.5rem}}@media (max-width: 22.5em){/*!@.duet-heading.h0*/.duet-heading.h0.sc-duet-heading{font-size:2.25rem}}/*!@.duet-heading.h1*/.duet-heading.h1.sc-duet-heading{font-size:7vw}/*!@.duet-heading.h1.duet-p-0*/.duet-heading.h1.duet-p-0.sc-duet-heading{padding:0 !important}/*!@.duet-heading.h1.duet-m-0*/.duet-heading.h1.duet-m-0.sc-duet-heading{margin:0 !important}@media (max-width: 32.1428571429rem){/*!@.duet-heading.h1*/.duet-heading.h1.sc-duet-heading{font-size:2.25rem}}@media (min-width: 42.8571428571rem){/*!@.duet-heading.h1*/.duet-heading.h1.sc-duet-heading{font-size:3rem}}@media (max-width: 22.5em){/*!@.duet-heading.h1*/.duet-heading.h1.sc-duet-heading{font-size:1.5rem}}/*!@.duet-heading.h2*/.duet-heading.h2.sc-duet-heading{font-size:5.8vw}/*!@.duet-heading.h2.duet-p-0*/.duet-heading.h2.duet-p-0.sc-duet-heading{padding:0 !important}/*!@.duet-heading.h2.duet-m-0*/.duet-heading.h2.duet-m-0.sc-duet-heading{margin:0 !important}@media (max-width: 25.8620689655rem){/*!@.duet-heading.h2*/.duet-heading.h2.sc-duet-heading{font-size:1.5rem}}@media (min-width: 38.7931034483rem){/*!@.duet-heading.h2*/.duet-heading.h2.sc-duet-heading{font-size:2.25rem}}@media (max-width: 22.5em){/*!@.duet-heading.h2*/.duet-heading.h2.sc-duet-heading{font-size:1.375rem}}/*!@.duet-heading.h3*/.duet-heading.h3.sc-duet-heading{margin-bottom:12px !important;font-size:4.2vw}/*!@.duet-heading.h3.duet-p-0*/.duet-heading.h3.duet-p-0.sc-duet-heading{padding:0 !important}/*!@.duet-heading.h3.duet-m-0*/.duet-heading.h3.duet-m-0.sc-duet-heading{margin:0 !important}@media (max-width: 29.7619047619rem){/*!@.duet-heading.h3*/.duet-heading.h3.sc-duet-heading{font-size:1.25rem}}@media (min-width: 35.7142857143rem){/*!@.duet-heading.h3*/.duet-heading.h3.sc-duet-heading{font-size:1.5rem}}/*!@.duet-heading.h3.duet-theme-turva*/.duet-heading.h3.duet-theme-turva.sc-duet-heading{font-style:normal}/*!@.duet-heading.h3.duet-heading-border*/.duet-heading.h3.duet-heading-border.sc-duet-heading{padding-bottom:20px}/*!@.duet-heading.h4*/.duet-heading.h4.sc-duet-heading{margin-bottom:8px !important;font-size:4vw;letter-spacing:0}/*!@.duet-heading.h4.duet-p-0*/.duet-heading.h4.duet-p-0.sc-duet-heading{padding:0 !important}/*!@.duet-heading.h4.duet-m-0*/.duet-heading.h4.duet-m-0.sc-duet-heading{margin:0 !important}@media (max-width: 27.5rem){/*!@.duet-heading.h4*/.duet-heading.h4.sc-duet-heading{font-size:1.1rem}}@media (min-width: 31.25rem){/*!@.duet-heading.h4*/.duet-heading.h4.sc-duet-heading{font-size:1.25rem}}/*!@.duet-heading.h4.duet-theme-turva*/.duet-heading.h4.duet-theme-turva.sc-duet-heading{font-style:normal;font-weight:700}/*!@.duet-heading.h4.duet-heading-border*/.duet-heading.h4.duet-heading-border.sc-duet-heading{padding-bottom:20px}/*!@.duet-heading.h5*/.duet-heading.h5.sc-duet-heading{margin-bottom:8px !important;font-size:4vw;font-weight:600;letter-spacing:0}/*!@.duet-heading.h5.duet-p-0*/.duet-heading.h5.duet-p-0.sc-duet-heading{padding:0 !important}/*!@.duet-heading.h5.duet-m-0*/.duet-heading.h5.duet-m-0.sc-duet-heading{margin:0 !important}@media (max-width: 27.5rem){/*!@.duet-heading.h5*/.duet-heading.h5.sc-duet-heading{font-size:1.1rem}}@media (min-width: 28.4090909091rem){/*!@.duet-heading.h5*/.duet-heading.h5.sc-duet-heading{font-size:1.1363636364rem}}/*!@.duet-heading.h5.duet-theme-turva*/.duet-heading.h5.duet-theme-turva.sc-duet-heading{font-style:normal;font-weight:700}/*!@.duet-heading.h5.duet-heading-border*/.duet-heading.h5.duet-heading-border.sc-duet-heading{padding-bottom:16px}/*!@.duet-heading.h6*/.duet-heading.h6.sc-duet-heading{margin-bottom:8px !important;font-size:1rem;font-weight:600;letter-spacing:0}/*!@.duet-heading.h6.duet-p-0*/.duet-heading.h6.duet-p-0.sc-duet-heading{padding:0 !important}/*!@.duet-heading.h6.duet-m-0*/.duet-heading.h6.duet-m-0.sc-duet-heading{margin:0 !important}/*!@.duet-heading.h6.duet-theme-turva*/.duet-heading.h6.duet-theme-turva.sc-duet-heading{font-style:normal;font-weight:700}/*!@.duet-heading.h6.duet-heading-border*/.duet-heading.h6.duet-heading-border.sc-duet-heading{padding-bottom:16px}/*!@.duet-heading.duet-semibold, .duet-heading.duet-theme-turva.duet-semibold*/.duet-heading.duet-semibold.sc-duet-heading,.duet-heading.duet-theme-turva.duet-semibold.sc-duet-heading{font-style:normal !important;font-weight:600 !important}";
|
|
9954
|
+
const duetHeadingCss = "/*!@*,\n*::after,\n*::before*/*.sc-duet-heading,*.sc-duet-heading::after,*.sc-duet-heading::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}/*!@:host*/.sc-duet-heading-h{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*/.duet-heading.sc-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*/.duet-heading.sc-duet-heading{margin-bottom:20px !important}}/*!@.duet-heading.duet-theme-turva*/.duet-heading.duet-theme-turva.sc-duet-heading{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*/.duet-heading.duet-heading-border.sc-duet-heading{padding-bottom:20px;border-bottom:1px solid #e1e3e6}/*!@.duet-heading.duet-heading-hyphenate*/.duet-heading.duet-heading-hyphenate.sc-duet-heading{-webkit-hyphens:auto;hyphens:auto}/*!@.duet-heading.h0*/.duet-heading.h0.sc-duet-heading{font-size:9.4vw}/*!@.duet-heading.h0.duet-p-0*/.duet-heading.h0.duet-p-0.sc-duet-heading{padding:0 !important}/*!@.duet-heading.h0.duet-m-0*/.duet-heading.h0.duet-m-0.sc-duet-heading{margin:0 !important}@media (max-width: 31.914893617rem){/*!@.duet-heading.h0*/.duet-heading.h0.sc-duet-heading{font-size:3rem}}@media (min-width: 47.8723404255rem){/*!@.duet-heading.h0*/.duet-heading.h0.sc-duet-heading{font-size:4.5rem}}@media (max-width: 22.5em){/*!@.duet-heading.h0*/.duet-heading.h0.sc-duet-heading{font-size:2.25rem}}/*!@.duet-heading.h1*/.duet-heading.h1.sc-duet-heading{font-size:7vw}/*!@.duet-heading.h1.duet-p-0*/.duet-heading.h1.duet-p-0.sc-duet-heading{padding:0 !important}/*!@.duet-heading.h1.duet-m-0*/.duet-heading.h1.duet-m-0.sc-duet-heading{margin:0 !important}@media (max-width: 32.1428571429rem){/*!@.duet-heading.h1*/.duet-heading.h1.sc-duet-heading{font-size:2.25rem}}@media (min-width: 42.8571428571rem){/*!@.duet-heading.h1*/.duet-heading.h1.sc-duet-heading{font-size:3rem}}@media (max-width: 22.5em){/*!@.duet-heading.h1*/.duet-heading.h1.sc-duet-heading{font-size:1.5rem}}/*!@.duet-heading.h2*/.duet-heading.h2.sc-duet-heading{font-size:5.8vw}/*!@.duet-heading.h2.duet-p-0*/.duet-heading.h2.duet-p-0.sc-duet-heading{padding:0 !important}/*!@.duet-heading.h2.duet-m-0*/.duet-heading.h2.duet-m-0.sc-duet-heading{margin:0 !important}@media (max-width: 25.8620689655rem){/*!@.duet-heading.h2*/.duet-heading.h2.sc-duet-heading{font-size:1.5rem}}@media (min-width: 38.7931034483rem){/*!@.duet-heading.h2*/.duet-heading.h2.sc-duet-heading{font-size:2.25rem}}@media (max-width: 22.5em){/*!@.duet-heading.h2*/.duet-heading.h2.sc-duet-heading{font-size:1.375rem}}/*!@.duet-heading.h3*/.duet-heading.h3.sc-duet-heading{margin-bottom:12px !important;font-size:4.2vw}/*!@.duet-heading.h3.duet-p-0*/.duet-heading.h3.duet-p-0.sc-duet-heading{padding:0 !important}/*!@.duet-heading.h3.duet-m-0*/.duet-heading.h3.duet-m-0.sc-duet-heading{margin:0 !important}@media (max-width: 29.7619047619rem){/*!@.duet-heading.h3*/.duet-heading.h3.sc-duet-heading{font-size:1.25rem}}@media (min-width: 35.7142857143rem){/*!@.duet-heading.h3*/.duet-heading.h3.sc-duet-heading{font-size:1.5rem}}/*!@.duet-heading.h3.duet-theme-turva*/.duet-heading.h3.duet-theme-turva.sc-duet-heading{font-style:normal}/*!@.duet-heading.h3.duet-heading-border*/.duet-heading.h3.duet-heading-border.sc-duet-heading{padding-bottom:20px}/*!@.duet-heading.h4*/.duet-heading.h4.sc-duet-heading{margin-bottom:8px !important;font-size:4vw;letter-spacing:0}/*!@.duet-heading.h4.duet-p-0*/.duet-heading.h4.duet-p-0.sc-duet-heading{padding:0 !important}/*!@.duet-heading.h4.duet-m-0*/.duet-heading.h4.duet-m-0.sc-duet-heading{margin:0 !important}@media (max-width: 27.5rem){/*!@.duet-heading.h4*/.duet-heading.h4.sc-duet-heading{font-size:1.1rem}}@media (min-width: 31.25rem){/*!@.duet-heading.h4*/.duet-heading.h4.sc-duet-heading{font-size:1.25rem}}/*!@.duet-heading.h4.duet-theme-turva*/.duet-heading.h4.duet-theme-turva.sc-duet-heading{font-style:normal;font-weight:700}/*!@.duet-heading.h4.duet-heading-border*/.duet-heading.h4.duet-heading-border.sc-duet-heading{padding-bottom:20px}/*!@.duet-heading.h5*/.duet-heading.h5.sc-duet-heading{margin-bottom:8px !important;font-size:4vw;font-weight:600;letter-spacing:0}/*!@.duet-heading.h5.duet-p-0*/.duet-heading.h5.duet-p-0.sc-duet-heading{padding:0 !important}/*!@.duet-heading.h5.duet-m-0*/.duet-heading.h5.duet-m-0.sc-duet-heading{margin:0 !important}@media (max-width: 27.5rem){/*!@.duet-heading.h5*/.duet-heading.h5.sc-duet-heading{font-size:1.1rem}}@media (min-width: 28.4090909091rem){/*!@.duet-heading.h5*/.duet-heading.h5.sc-duet-heading{font-size:1.1363636364rem}}/*!@.duet-heading.h5.duet-theme-turva*/.duet-heading.h5.duet-theme-turva.sc-duet-heading{font-style:normal;font-weight:700}/*!@.duet-heading.h5.duet-heading-border*/.duet-heading.h5.duet-heading-border.sc-duet-heading{padding-bottom:16px}/*!@.duet-heading.h6*/.duet-heading.h6.sc-duet-heading{margin-bottom:8px !important;font-size:1rem;font-weight:600;letter-spacing:0}/*!@.duet-heading.h6.duet-p-0*/.duet-heading.h6.duet-p-0.sc-duet-heading{padding:0 !important}/*!@.duet-heading.h6.duet-m-0*/.duet-heading.h6.duet-m-0.sc-duet-heading{margin:0 !important}/*!@.duet-heading.h6.duet-theme-turva*/.duet-heading.h6.duet-theme-turva.sc-duet-heading{font-style:normal;font-weight:700}/*!@.duet-heading.h6.duet-heading-border*/.duet-heading.h6.duet-heading-border.sc-duet-heading{padding-bottom:16px}/*!@.duet-heading.duet-semibold, .duet-heading.duet-theme-turva.duet-semibold*/.duet-heading.duet-semibold.sc-duet-heading,.duet-heading.duet-theme-turva.duet-semibold.sc-duet-heading{font-style:normal !important;font-weight:600 !important}";
|
|
9327
9955
|
|
|
9328
9956
|
class DuetHeading {
|
|
9329
9957
|
constructor(hostRef) {
|
|
@@ -9370,7 +9998,7 @@ class DuetHeading {
|
|
|
9370
9998
|
* Always the last one in the class.
|
|
9371
9999
|
*/
|
|
9372
10000
|
render() {
|
|
9373
|
-
const TagName = sanitizeString(this.level);
|
|
10001
|
+
const TagName = sanitizeString$1(this.level);
|
|
9374
10002
|
const color = getColorByName(this.color);
|
|
9375
10003
|
return (hAsync(TagName, { class: {
|
|
9376
10004
|
"duet-heading": true,
|
|
@@ -9471,17 +10099,20 @@ class DuetHero {
|
|
|
9471
10099
|
/**
|
|
9472
10100
|
* The currently active language. This setting changes the accessible labels to match the
|
|
9473
10101
|
* chosen language.
|
|
10102
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
10103
|
+
* @default "fi"
|
|
9474
10104
|
*/
|
|
9475
10105
|
this.language = getLanguage();
|
|
9476
10106
|
/**
|
|
9477
|
-
*
|
|
9478
|
-
*
|
|
10107
|
+
* Defaults for accessibleLabelExternal
|
|
10108
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
9479
10109
|
*/
|
|
9480
10110
|
this.accessibleLabelExternalDefaults = DuetStringsExternalDefaults;
|
|
9481
10111
|
/**
|
|
9482
10112
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
10113
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
9483
10114
|
*/
|
|
9484
|
-
this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults
|
|
10115
|
+
this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults);
|
|
9485
10116
|
/**
|
|
9486
10117
|
* URL that the button links to.
|
|
9487
10118
|
*/
|
|
@@ -9625,7 +10256,7 @@ class DuetHero {
|
|
|
9625
10256
|
"categoryIconColor": [1, "category-icon-color"],
|
|
9626
10257
|
"buttonLabel": [1, "button-label"],
|
|
9627
10258
|
"language": [1025],
|
|
9628
|
-
"accessibleLabelExternalDefaults": [
|
|
10259
|
+
"accessibleLabelExternalDefaults": [1, "accessible-label-external-default"],
|
|
9629
10260
|
"accessibleLabelExternal": [1, "accessible-label-external"],
|
|
9630
10261
|
"buttonUrl": [1, "button-url"],
|
|
9631
10262
|
"buttonId": [1, "button-id"],
|
|
@@ -9774,6 +10405,30 @@ var formEmail={"title":"form-email","tags":"form email","svg":"<svg fill=\"curre
|
|
|
9774
10405
|
|
|
9775
10406
|
var formSearch={"title":"form-search","tags":"form search magnifying glass","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M23.245 23.996a.743.743 0 0 1-.53-.22L16.2 17.26a9.824 9.824 0 0 1-2.553 1.579 9.766 9.766 0 0 1-7.51.069 9.745 9.745 0 0 1-5.359-5.262c-1.025-2.412-1.05-5.08-.069-7.51S3.558 1.802 5.97.777a9.744 9.744 0 0 1 7.51-.069c2.431.981 4.334 2.849 5.359 5.262s1.05 5.08.069 7.51a9.807 9.807 0 0 1-1.649 2.718l6.517 6.518a.75.75 0 0 1-.531 1.28zM9.807 1.49a8.259 8.259 0 0 0-3.25.667c-2.044.869-3.627 2.481-4.458 4.54s-.81 4.318.058 6.362a8.26 8.26 0 0 0 4.54 4.458 8.259 8.259 0 0 0 6.362-.059 8.285 8.285 0 0 0 2.594-1.736.365.365 0 0 1 .077-.076 8.245 8.245 0 0 0 1.786-2.728 8.255 8.255 0 0 0-.059-6.362 8.257 8.257 0 0 0-4.54-4.458 8.28 8.28 0 0 0-3.11-.608z\"/></svg>"};
|
|
9776
10407
|
|
|
10408
|
+
/**
|
|
10409
|
+
* This function restores cursor position after changing input
|
|
10410
|
+
*
|
|
10411
|
+
* @example
|
|
10412
|
+
* const resetCursor = storeAndResetCursor(this.input.selectionStart,this.input.selectionEnd)
|
|
10413
|
+
* this.input.changeValueAndForceUpdateOfCursoPosition()
|
|
10414
|
+
* resetCursor()
|
|
10415
|
+
*/
|
|
10416
|
+
function resetCursor(domElement) {
|
|
10417
|
+
if (domElement && domElement.selectionStart) {
|
|
10418
|
+
const start = domElement.selectionStart;
|
|
10419
|
+
const end = domElement.selectionEnd;
|
|
10420
|
+
return function () {
|
|
10421
|
+
if (start === end) {
|
|
10422
|
+
domElement.selectionStart = start;
|
|
10423
|
+
domElement.selectionEnd = end;
|
|
10424
|
+
}
|
|
10425
|
+
else {
|
|
10426
|
+
domElement.setSelectionRange(start, end);
|
|
10427
|
+
}
|
|
10428
|
+
};
|
|
10429
|
+
}
|
|
10430
|
+
return () => console.log("domElement not valid");
|
|
10431
|
+
}
|
|
9777
10432
|
/**
|
|
9778
10433
|
* Given an input and a regex, remove any characters from the input's value
|
|
9779
10434
|
* which match the regex, *whilst* maintaining cursor position.
|
|
@@ -9931,8 +10586,13 @@ class DuetInput {
|
|
|
9931
10586
|
this.disallowPatternRegex = this.disallowPattern ? new RegExp(this.disallowPattern, "g") : null;
|
|
9932
10587
|
}
|
|
9933
10588
|
valueChanged() {
|
|
9934
|
-
|
|
10589
|
+
var _a;
|
|
10590
|
+
if (((_a = this === null || this === void 0 ? void 0 : this.nativeInput) === null || _a === void 0 ? void 0 : _a.value) !== this.value) {
|
|
10591
|
+
const restoreCursor = resetCursor(this.nativeInput);
|
|
9935
10592
|
this.nativeInput.value = this.value;
|
|
10593
|
+
// restore selection position after having set value
|
|
10594
|
+
// (in webkit based browsers settings value trigger cursor position and will set it to EndOfText)
|
|
10595
|
+
restoreCursor();
|
|
9936
10596
|
}
|
|
9937
10597
|
this.isCaptionVisible = !!(this.caption || (this.placeholder && this.echoPlaceholder && this.value));
|
|
9938
10598
|
const emitEvent = () => this.duetChange.emit({
|
|
@@ -10045,7 +10705,7 @@ class DuetInput {
|
|
|
10045
10705
|
}; }
|
|
10046
10706
|
}
|
|
10047
10707
|
|
|
10048
|
-
const duetLabelCss = "*.sc-duet-label,*.sc-duet-label::after,*.sc-duet-label::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-label-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;line-height:1.25;cursor:default}.duet-p-0.sc-duet-label-h{padding:0 !important}.duet-m-0.sc-duet-label-h{margin:0 !important}.duet-m-0.sc-duet-label-h{margin-bottom:0 !important}.duet-small-margin.sc-duet-label-h{margin-top:8px !important;margin-bottom:4px !important}.duet-has-tooltip.sc-duet-label-h{padding-right:48px}@media (min-width: 48em){.duet-has-tooltip.sc-duet-label-h{padding-right:0}}label.sc-duet-label{margin:0;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 !important;line-height:1.25;color:#00294d;text-align:left}label.sc-duet-label span.sc-duet-label{font-size:1rem;font-weight:600 !important}.duet-label-small.sc-duet-label-h label.sc-duet-label{font-size:0.875rem}.duet-label-small.sc-duet-label-h label.sc-duet-label span.sc-duet-label{font-size:0.875rem}.duet-theme-turva.sc-duet-label-h label.sc-duet-label{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}";
|
|
10708
|
+
const duetLabelCss = "*.sc-duet-label,*.sc-duet-label::after,*.sc-duet-label::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-label-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;line-height:1.25;cursor:default}.duet-p-0.sc-duet-label-h{padding:0 !important}.duet-m-0.sc-duet-label-h{margin:0 !important}.duet-m-0.sc-duet-label-h{margin-bottom:0 !important}.duet-small-margin.sc-duet-label-h{margin-top:8px !important;margin-bottom:4px !important}.duet-has-tooltip.sc-duet-label-h{padding-right:48px}@media (min-width: 48em){.duet-has-tooltip.sc-duet-label-h{padding-right:0}}label.sc-duet-label{margin:0;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 !important;line-height:1.25;color:#00294d;text-align:left;word-break:break-word}label.sc-duet-label span.sc-duet-label{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-label-small.sc-duet-label-h label.sc-duet-label{font-size:0.875rem}.duet-label-small.sc-duet-label-h label.sc-duet-label span.sc-duet-label{font-size:0.875rem}.duet-theme-turva.sc-duet-label-h label.sc-duet-label{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}";
|
|
10049
10709
|
|
|
10050
10710
|
class DuetLabel {
|
|
10051
10711
|
constructor(hostRef) {
|
|
@@ -10206,17 +10866,20 @@ class DuetLink {
|
|
|
10206
10866
|
/**
|
|
10207
10867
|
* The currently active language. This setting changes the external link
|
|
10208
10868
|
* accessible label to match the chosen language.
|
|
10869
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
10870
|
+
* @default "fi"
|
|
10209
10871
|
*/
|
|
10210
10872
|
this.language = getLanguage();
|
|
10211
10873
|
/**
|
|
10212
|
-
*
|
|
10213
|
-
*
|
|
10874
|
+
* Defaults for accessibleLabelExternal
|
|
10875
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
10214
10876
|
*/
|
|
10215
10877
|
this.accessibleLabelExternalDefaults = DuetStringsExternalDefaults;
|
|
10216
10878
|
/**
|
|
10217
10879
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
10880
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
10218
10881
|
*/
|
|
10219
|
-
this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults
|
|
10882
|
+
this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults);
|
|
10220
10883
|
/**
|
|
10221
10884
|
* Theme of the button.
|
|
10222
10885
|
*/
|
|
@@ -10262,7 +10925,7 @@ class DuetLink {
|
|
|
10262
10925
|
"$members$": {
|
|
10263
10926
|
"accessibleLabel": [1, "accessible-label"],
|
|
10264
10927
|
"language": [1025],
|
|
10265
|
-
"accessibleLabelExternalDefaults": [
|
|
10928
|
+
"accessibleLabelExternalDefaults": [1, "accessible-label-external-default"],
|
|
10266
10929
|
"accessibleLabelExternal": [1, "accessible-label-external"],
|
|
10267
10930
|
"identifier": [1],
|
|
10268
10931
|
"theme": [1025],
|
|
@@ -10480,6 +11143,8 @@ class DuetLogo {
|
|
|
10480
11143
|
this.href = "/";
|
|
10481
11144
|
/**
|
|
10482
11145
|
* The language of the logo.
|
|
11146
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
11147
|
+
* @default "fi"
|
|
10483
11148
|
*/
|
|
10484
11149
|
this.language = getLanguage();
|
|
10485
11150
|
}
|
|
@@ -10538,6 +11203,9 @@ const duetModalCss = "/*!@*,\n*::after,\n*::before*/*.sc-duet-modal,*.sc-duet-mo
|
|
|
10538
11203
|
// iOS has otherwise problems moving the focus from modal back to the original element.
|
|
10539
11204
|
// This issue is similar to what we’ve seen in Duet Date Picker + iOS VoiceOver.
|
|
10540
11205
|
const TRANSITION_MS = 600;
|
|
11206
|
+
/**
|
|
11207
|
+
* @slot top - This is a slot that takes any content and will be displayed as the first thing in the hero area (typically an image)
|
|
11208
|
+
*/
|
|
10541
11209
|
class DuetModal {
|
|
10542
11210
|
constructor(hostRef) {
|
|
10543
11211
|
registerInstance(this, hostRef);
|
|
@@ -10574,13 +11242,15 @@ class DuetModal {
|
|
|
10574
11242
|
/**
|
|
10575
11243
|
* The currently active language. This setting also changes the logo to match
|
|
10576
11244
|
* the chosen language.
|
|
11245
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
11246
|
+
* @default "fi"
|
|
10577
11247
|
*/
|
|
10578
11248
|
this.language = getLanguage();
|
|
10579
11249
|
/**
|
|
10580
|
-
*
|
|
10581
|
-
*
|
|
11250
|
+
* Defaults for accessibleCloseLabel
|
|
11251
|
+
* @default {fi: "Sulje ikkuna", sv: "Stäng fönstret", en: "Close the dialog", }
|
|
10582
11252
|
*/
|
|
10583
|
-
this.
|
|
11253
|
+
this.accessibleCloseLabelDefaults = {
|
|
10584
11254
|
fi: "Sulje ikkuna",
|
|
10585
11255
|
sv: "Stäng fönstret",
|
|
10586
11256
|
en: "Close the dialog",
|
|
@@ -10589,8 +11259,9 @@ class DuetModal {
|
|
|
10589
11259
|
* Adds accessible label for the close icon that is only shown for screen
|
|
10590
11260
|
* readers. This property is always required to create an accessibly interface!
|
|
10591
11261
|
* Swedish translation for this property is “Stäng fönstret”.
|
|
11262
|
+
* @default {fi: "Sulje ikkuna", sv: "Stäng fönstret", en: "Close the dialog", }
|
|
10592
11263
|
*/
|
|
10593
|
-
this.accessibleCloseLabel = getLocaleString(this.
|
|
11264
|
+
this.accessibleCloseLabel = getLocaleString(this.accessibleCloseLabelDefaults, this.language);
|
|
10594
11265
|
/**
|
|
10595
11266
|
* Size of the modal window.
|
|
10596
11267
|
*/
|
|
@@ -10757,7 +11428,7 @@ class DuetModal {
|
|
|
10757
11428
|
"$tagName$": "duet-modal",
|
|
10758
11429
|
"$members$": {
|
|
10759
11430
|
"language": [1025],
|
|
10760
|
-
"
|
|
11431
|
+
"accessibleCloseLabelDefaults": [1, "accessible-close-label-default"],
|
|
10761
11432
|
"accessibleCloseLabel": [1, "accessible-close-label"],
|
|
10762
11433
|
"size": [1],
|
|
10763
11434
|
"gutterSize": [1, "gutter-size"],
|
|
@@ -10785,6 +11456,8 @@ class DuetNotification {
|
|
|
10785
11456
|
/**
|
|
10786
11457
|
* The currently active language.
|
|
10787
11458
|
* Used for announcing unread notifications to screen readers.
|
|
11459
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
11460
|
+
* @default "fi"
|
|
10788
11461
|
*/
|
|
10789
11462
|
this.language = getLanguage();
|
|
10790
11463
|
/**
|
|
@@ -10798,6 +11471,7 @@ class DuetNotification {
|
|
|
10798
11471
|
};
|
|
10799
11472
|
/**
|
|
10800
11473
|
* Adds accessible label for tooltip that is shown over unread counter
|
|
11474
|
+
* @default { en: "Unread", fi: "Lukematon", sv: "Oläst" }
|
|
10801
11475
|
*/
|
|
10802
11476
|
this.accessibleLabelUnread = getLocaleString(this.accessibleLabelUnreadDefaults, this.language);
|
|
10803
11477
|
/**
|
|
@@ -10889,8 +11563,8 @@ class DuetNotificationDrawer {
|
|
|
10889
11563
|
*/
|
|
10890
11564
|
this.language = getLanguage();
|
|
10891
11565
|
/**
|
|
10892
|
-
*
|
|
10893
|
-
*
|
|
11566
|
+
* Defaults for accessibleLabelNotifications
|
|
11567
|
+
* @default {en: "No notifications", fi: "Ei ilmoituksia", sv: "Inga notifikationer"}
|
|
10894
11568
|
*/
|
|
10895
11569
|
this.accessibleLabelNotificationsDefaults = {
|
|
10896
11570
|
en: "No notifications",
|
|
@@ -10899,8 +11573,9 @@ class DuetNotificationDrawer {
|
|
|
10899
11573
|
};
|
|
10900
11574
|
/**
|
|
10901
11575
|
* Adds accessible label for tooltip that is shown for notifications
|
|
11576
|
+
* @default {en: "No notifications", fi: "Ei ilmoituksia", sv: "Inga notifikationer"}
|
|
10902
11577
|
*/
|
|
10903
|
-
this.accessibleLabelNotifications = getLocaleString(this.accessibleLabelNotificationsDefaults
|
|
11578
|
+
this.accessibleLabelNotifications = getLocaleString(this.accessibleLabelNotificationsDefaults);
|
|
10904
11579
|
/**
|
|
10905
11580
|
* Show a badge that indicates something has changed.
|
|
10906
11581
|
*/
|
|
@@ -11003,7 +11678,7 @@ class DuetNotificationDrawer {
|
|
|
11003
11678
|
"icon": [1],
|
|
11004
11679
|
"label": [1],
|
|
11005
11680
|
"language": [1],
|
|
11006
|
-
"accessibleLabelNotificationsDefaults": [
|
|
11681
|
+
"accessibleLabelNotificationsDefaults": [1, "accessible-label-notification-default"],
|
|
11007
11682
|
"accessibleLabelNotifications": [1, "accessible-label-notifications"],
|
|
11008
11683
|
"badge": [4],
|
|
11009
11684
|
"theme": [1025],
|
|
@@ -11020,10 +11695,10 @@ class DuetNotificationDrawer {
|
|
|
11020
11695
|
}; }
|
|
11021
11696
|
}
|
|
11022
11697
|
|
|
11023
|
-
var actionSubtract={"title":"action-subtract","tags":"action subtract minus remove delete cancel","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z\"/></svg>"};
|
|
11024
|
-
|
|
11025
11698
|
var actionAdd={"title":"action-add","tags":"action add plus","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z\"/></svg>"};
|
|
11026
11699
|
|
|
11700
|
+
var actionSubtract={"title":"action-subtract","tags":"action subtract minus remove delete cancel","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z\"/></svg>"};
|
|
11701
|
+
|
|
11027
11702
|
const parseLocaleFloat = (str, locale) => {
|
|
11028
11703
|
// remove spaces and non-numeric characters
|
|
11029
11704
|
// "12 345,67€" -> "12345,67"
|
|
@@ -11061,6 +11736,8 @@ class DuetNumberInput {
|
|
|
11061
11736
|
/**
|
|
11062
11737
|
* The currently active language. This setting changes the accessible labels to match the
|
|
11063
11738
|
* chosen language.
|
|
11739
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
11740
|
+
* @default "fi"
|
|
11064
11741
|
*/
|
|
11065
11742
|
this.language = getLanguage();
|
|
11066
11743
|
/**
|
|
@@ -11072,34 +11749,52 @@ class DuetNumberInput {
|
|
|
11072
11749
|
*/
|
|
11073
11750
|
this.unit = getLocale(this.language).money;
|
|
11074
11751
|
/**
|
|
11075
|
-
*
|
|
11076
|
-
*
|
|
11752
|
+
* Defaults for accessibleLive
|
|
11753
|
+
* @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
|
|
11077
11754
|
*/
|
|
11078
|
-
this.
|
|
11755
|
+
this.accessibleLiveDefaults = {
|
|
11079
11756
|
fi: "{current} euroa valittuna",
|
|
11080
11757
|
en: "{current} euros selected",
|
|
11081
|
-
sv: "{current}
|
|
11082
|
-
}
|
|
11758
|
+
sv: "{current} euro valt",
|
|
11759
|
+
};
|
|
11760
|
+
/**
|
|
11761
|
+
* Format of message used to announce current amount when switching between amounts.
|
|
11762
|
+
* The string {current} is replaced with the current amount.
|
|
11763
|
+
* @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
|
|
11764
|
+
*/
|
|
11765
|
+
this.accessibleLive = getLocaleString(this.accessibleLiveDefaults, this.language);
|
|
11083
11766
|
/**
|
|
11084
11767
|
* Disables the aria-live messaging used internally in this component. This could be useful when you want to use custom aria-live messages instead.
|
|
11085
11768
|
*/
|
|
11086
11769
|
this.accessibleLiveEnabled = true;
|
|
11087
11770
|
/**
|
|
11088
|
-
*
|
|
11771
|
+
* Defaults for accessibleAdd
|
|
11772
|
+
* @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
|
|
11089
11773
|
*/
|
|
11090
|
-
this.
|
|
11774
|
+
this.accessibleAddDefaults = {
|
|
11091
11775
|
fi: "Lisää summaan",
|
|
11092
11776
|
en: "Add to the amount",
|
|
11093
11777
|
sv: "Lägg till beloppet",
|
|
11094
|
-
}
|
|
11778
|
+
};
|
|
11095
11779
|
/**
|
|
11096
|
-
* Accessible label for the
|
|
11780
|
+
* Accessible label for the add button that is read for screen reader users.
|
|
11781
|
+
* @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
|
|
11782
|
+
*/
|
|
11783
|
+
this.accessibleAdd = getLocaleString(this.accessibleAddDefaults, this.language);
|
|
11784
|
+
/**
|
|
11785
|
+
* Defaults for accessibleSubtract
|
|
11786
|
+
* @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
|
|
11097
11787
|
*/
|
|
11098
|
-
this.
|
|
11788
|
+
this.accessibleSubtractDefaults = {
|
|
11099
11789
|
fi: "Vähennä summasta",
|
|
11100
11790
|
en: "Subtract from the amount",
|
|
11101
11791
|
sv: "Dra från beloppet",
|
|
11102
|
-
}
|
|
11792
|
+
};
|
|
11793
|
+
/**
|
|
11794
|
+
* Accessible label for the subtract button that is read for screen reader users.
|
|
11795
|
+
* @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
|
|
11796
|
+
*/
|
|
11797
|
+
this.accessibleSubtract = getLocaleString(this.accessibleSubtractDefaults, this.language);
|
|
11103
11798
|
/**
|
|
11104
11799
|
* Theme of the input.
|
|
11105
11800
|
*/
|
|
@@ -11117,13 +11812,19 @@ class DuetNumberInput {
|
|
|
11117
11812
|
*/
|
|
11118
11813
|
this.min = 0;
|
|
11119
11814
|
/**
|
|
11120
|
-
*
|
|
11815
|
+
* Defaults for Label
|
|
11816
|
+
* @default {fi: "Etiketti", en: "Label", sv: "Märka"}
|
|
11121
11817
|
*/
|
|
11122
|
-
this.
|
|
11123
|
-
fi: "
|
|
11818
|
+
this.labelDefaults = {
|
|
11819
|
+
fi: "Nimilappu",
|
|
11124
11820
|
en: "Label",
|
|
11125
|
-
sv: "
|
|
11126
|
-
}
|
|
11821
|
+
sv: "Etikett",
|
|
11822
|
+
};
|
|
11823
|
+
/**
|
|
11824
|
+
* Label for the number input.
|
|
11825
|
+
* @default {fi: "Etiketti", en: "Label", sv: "Märka"}
|
|
11826
|
+
*/
|
|
11827
|
+
this.label = getLocaleString(this.labelDefaults, this.language);
|
|
11127
11828
|
/**
|
|
11128
11829
|
* Visually hide the label, but still show it to screen readers.
|
|
11129
11830
|
*/
|
|
@@ -11361,15 +12062,19 @@ class DuetNumberInput {
|
|
|
11361
12062
|
"accessibleControls": [1, "accessible-controls"],
|
|
11362
12063
|
"accessibleOwns": [1, "accessible-owns"],
|
|
11363
12064
|
"accessibleDescribedBy": [1, "accessible-described-by"],
|
|
12065
|
+
"accessibleLiveDefaults": [1, "accessible-live-default"],
|
|
11364
12066
|
"accessibleLive": [1, "accessible-live"],
|
|
11365
12067
|
"accessibleLiveEnabled": [4, "accessible-live-enabled"],
|
|
12068
|
+
"accessibleAddDefaults": [1, "accessible-add-default"],
|
|
11366
12069
|
"accessibleAdd": [1, "accessible-add"],
|
|
12070
|
+
"accessibleSubtractDefaults": [1, "accessible-subtract-defaults"],
|
|
11367
12071
|
"accessibleSubtract": [1, "accessible-subtract"],
|
|
11368
12072
|
"theme": [1025],
|
|
11369
12073
|
"margin": [1],
|
|
11370
12074
|
"expand": [4],
|
|
11371
12075
|
"identifier": [1],
|
|
11372
12076
|
"min": [2],
|
|
12077
|
+
"labelDefaults": [1, "label-default"],
|
|
11373
12078
|
"label": [1],
|
|
11374
12079
|
"labelHidden": [4, "label-hidden"],
|
|
11375
12080
|
"max": [2],
|
|
@@ -12574,16 +13279,24 @@ class DuetTabGroup {
|
|
|
12574
13279
|
/**
|
|
12575
13280
|
* The currently active language. This setting changes the accessible labels to match the
|
|
12576
13281
|
* chosen language.
|
|
13282
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
13283
|
+
* @default "fi"
|
|
12577
13284
|
*/
|
|
12578
13285
|
this.language = getLanguage();
|
|
12579
13286
|
/**
|
|
12580
|
-
*
|
|
13287
|
+
* Defaults for Label
|
|
13288
|
+
* @default {fi: "Valitse", en: "Choose", sv: "Välja"}
|
|
12581
13289
|
*/
|
|
12582
|
-
this.
|
|
13290
|
+
this.labelDefaults = {
|
|
12583
13291
|
fi: "Valitse",
|
|
12584
13292
|
en: "Choose",
|
|
12585
|
-
sv: "
|
|
12586
|
-
}
|
|
13293
|
+
sv: "Välj",
|
|
13294
|
+
};
|
|
13295
|
+
/**
|
|
13296
|
+
* Label for the select element which gets shown on mobile.
|
|
13297
|
+
* @default {fi: "Valitse", en: "Choose", sv: "Välja"}
|
|
13298
|
+
*/
|
|
13299
|
+
this.label = getLocaleString(this.labelDefaults, this.language);
|
|
12587
13300
|
/**
|
|
12588
13301
|
* Determines whether the label for the select element shown on mobile is visually hidden.
|
|
12589
13302
|
*/
|
|
@@ -12725,6 +13438,7 @@ class DuetTabGroup {
|
|
|
12725
13438
|
"theme": [1025],
|
|
12726
13439
|
"variation": [1],
|
|
12727
13440
|
"language": [1025],
|
|
13441
|
+
"labelDefaults": [1, "label-default"],
|
|
12728
13442
|
"label": [1],
|
|
12729
13443
|
"labelHidden": [4, "label-hidden"],
|
|
12730
13444
|
"margin": [1],
|
|
@@ -13222,26 +13936,40 @@ class DuetTooltip {
|
|
|
13222
13936
|
/**
|
|
13223
13937
|
* The currently active language. This setting changes the accessible labels to match the
|
|
13224
13938
|
* chosen language.
|
|
13939
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
13940
|
+
* @default "fi"
|
|
13225
13941
|
*/
|
|
13226
13942
|
this.language = getLanguage();
|
|
13943
|
+
/**
|
|
13944
|
+
* Default language strings for the accessibleLabel
|
|
13945
|
+
* @default {fi: "Näytä lisätietoja", en: "See more information", sv: "Se mer information"}
|
|
13946
|
+
*/
|
|
13947
|
+
this.accessibleLabelDefault = {
|
|
13948
|
+
fi: "Näytä lisätietoja",
|
|
13949
|
+
en: "Show more information",
|
|
13950
|
+
sv: "Visa mer tilläggsuppgifter",
|
|
13951
|
+
};
|
|
13227
13952
|
/**
|
|
13228
13953
|
* Adds accessible label for the info icon that is only shown for screen
|
|
13229
13954
|
* readers. This property is always required to create an accessible interface!
|
|
13955
|
+
* @default {fi: "Näytä lisätietoja", en: "See more information", sv: "Se mer information"}
|
|
13230
13956
|
*/
|
|
13231
|
-
this.accessibleLabel = getLocaleString(
|
|
13232
|
-
fi: "Näytä lisätietoja",
|
|
13233
|
-
en: "See more information",
|
|
13234
|
-
sv: "Se mer information",
|
|
13235
|
-
}, this.language);
|
|
13957
|
+
this.accessibleLabel = getLocaleString(this.accessibleLabelDefault, this.language);
|
|
13236
13958
|
/**
|
|
13237
|
-
*
|
|
13238
|
-
*
|
|
13959
|
+
* Default language strings for the accessibleCloseLabel
|
|
13960
|
+
* @default {fi: "Sulje lisätiedot", en: "Close details", sv: "Stäng detaljer"}
|
|
13239
13961
|
*/
|
|
13240
|
-
this.
|
|
13962
|
+
this.accessibleCloseLabelDefault = {
|
|
13241
13963
|
fi: "Sulje lisätiedot",
|
|
13242
13964
|
en: "Close details",
|
|
13243
|
-
sv: "Stäng
|
|
13244
|
-
}
|
|
13965
|
+
sv: "Stäng tilläggsuppgifter",
|
|
13966
|
+
};
|
|
13967
|
+
/**
|
|
13968
|
+
* Adds accessible label for the close icon that is only shown for screen
|
|
13969
|
+
* readers. This property is always required to create an accessibly interface!
|
|
13970
|
+
* @default {fi: "Sulje lisätiedot", en: "Close details", sv: "Stäng detaljer"}
|
|
13971
|
+
*/
|
|
13972
|
+
this.accessibleCloseLabel = getLocaleString(this.accessibleCloseLabelDefault, this.language);
|
|
13245
13973
|
/**
|
|
13246
13974
|
* Label of the tooltip. If used, replaces the accessibleLabel option.
|
|
13247
13975
|
*/
|
|
@@ -13414,8 +14142,10 @@ class DuetTooltip {
|
|
|
13414
14142
|
"$members$": {
|
|
13415
14143
|
"theme": [1025],
|
|
13416
14144
|
"language": [1025],
|
|
14145
|
+
"accessibleLabelDefault": [1, "accessible-label-default"],
|
|
13417
14146
|
"accessibleLabel": [1, "accessible-label"],
|
|
13418
14147
|
"accessibleInputLabel": [1, "accessible-input-label"],
|
|
14148
|
+
"accessibleCloseLabelDefault": [1, "accessible-close-label-default"],
|
|
13419
14149
|
"accessibleCloseLabel": [1, "accessible-close-label"],
|
|
13420
14150
|
"label": [1],
|
|
13421
14151
|
"breakpoint": [1],
|
|
@@ -13454,26 +14184,40 @@ class DuetTray {
|
|
|
13454
14184
|
/**
|
|
13455
14185
|
* The currently active language. This setting changes the accessible labels to match the
|
|
13456
14186
|
* chosen language.
|
|
14187
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
14188
|
+
* @default "fi"
|
|
13457
14189
|
*/
|
|
13458
14190
|
this.language = getLanguage();
|
|
13459
14191
|
/**
|
|
13460
|
-
*
|
|
13461
|
-
*
|
|
14192
|
+
* Defaults for accessibleCloseLabel
|
|
14193
|
+
* @default {fi: "Sulje", en: "Close", sv: "Stänga"}
|
|
13462
14194
|
*/
|
|
13463
|
-
this.
|
|
14195
|
+
this.accessibleCloseLabelDefaults = {
|
|
13464
14196
|
fi: "Sulje",
|
|
13465
14197
|
en: "Close",
|
|
13466
|
-
sv: "
|
|
13467
|
-
}
|
|
14198
|
+
sv: "Stäng",
|
|
14199
|
+
};
|
|
13468
14200
|
/**
|
|
13469
14201
|
* Accessible label that is shown for screen reader users in the expandable
|
|
13470
|
-
*
|
|
14202
|
+
* close toggle. Not visible for normal users.
|
|
14203
|
+
* @default {fi: "Sulje", en: "Close", sv: "Stänga"}
|
|
13471
14204
|
*/
|
|
13472
|
-
this.
|
|
14205
|
+
this.accessibleCloseLabel = getLocaleString(this.accessibleCloseLabelDefaults, this.language);
|
|
14206
|
+
/**
|
|
14207
|
+
* Defaults for accessibleOpenLabel
|
|
14208
|
+
* @default {fi: "Avaa", en: "Open", sv: "Öppen"}
|
|
14209
|
+
*/
|
|
14210
|
+
this.accessibleOpenLabelDefaults = {
|
|
13473
14211
|
fi: "Avaa",
|
|
13474
14212
|
en: "Open",
|
|
13475
|
-
sv: "
|
|
13476
|
-
}
|
|
14213
|
+
sv: "Öppna",
|
|
14214
|
+
};
|
|
14215
|
+
/**
|
|
14216
|
+
* Accessible label that is shown for screen reader users in the expandable
|
|
14217
|
+
* open toggle. Not visible for normal users.
|
|
14218
|
+
* @default {fi: "Avaa", en: "Open", sv: "Öppen"}
|
|
14219
|
+
*/
|
|
14220
|
+
this.accessibleOpenLabel = getLocaleString(this.accessibleOpenLabelDefaults, this.language);
|
|
13477
14221
|
/**
|
|
13478
14222
|
* Theme of the info panel.
|
|
13479
14223
|
*/
|
|
@@ -13547,7 +14291,9 @@ class DuetTray {
|
|
|
13547
14291
|
"$tagName$": "duet-tray",
|
|
13548
14292
|
"$members$": {
|
|
13549
14293
|
"language": [1025],
|
|
14294
|
+
"accessibleCloseLabelDefaults": [1, "accessible-close-label-default"],
|
|
13550
14295
|
"accessibleCloseLabel": [1, "accessible-close-label"],
|
|
14296
|
+
"accessibleOpenLabelDefaults": [1, "accessible-open-label-default"],
|
|
13551
14297
|
"accessibleOpenLabel": [1, "accessible-open-label"],
|
|
13552
14298
|
"theme": [1025],
|
|
13553
14299
|
"active": [516],
|