@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
|
@@ -13,7 +13,7 @@ import { DuetCaptionSize } from "./components/duet-caption/duet-caption";
|
|
|
13
13
|
import { DuetCardPadding, DuetCardToggleEvent, DuetCardVariation } from "./components/duet-card/duet-card";
|
|
14
14
|
import { DuetCheckboxEvent } from "./components/duet-checkbox/duet-checkbox";
|
|
15
15
|
import { DuetChoiceEvent, DuetChoiceType } from "./components/duet-choice/duet-choice";
|
|
16
|
-
import { DuetCollapsibleToggleEvent, DuetCollapsibleWeight } from "./components/duet-collapsible/duet-collapsible";
|
|
16
|
+
import { DuetCollapsibleHeadingFontSize, DuetCollapsibleToggleEvent, DuetCollapsibleWeight } from "./components/duet-collapsible/duet-collapsible";
|
|
17
17
|
import { DuetCookieConsentEvent } from "./components/duet-cookie-consent/duet-cookie-consent";
|
|
18
18
|
import { DuetDatePickerChangeEvent, DuetDatePickerDirection, DuetDatePickerFocusEvent } from "./components/duet-date-picker/duet-date-picker";
|
|
19
19
|
import { DuetDividerMargin } from "./components/duet-divider/duet-divider";
|
|
@@ -49,12 +49,14 @@ export namespace Components {
|
|
|
49
49
|
interface DuetAlert {
|
|
50
50
|
/**
|
|
51
51
|
* Adds accessible label for the dismissible alert close button.
|
|
52
|
+
* @default {fi: "Sulje viesti", sv: "Stäng meddelandet", en: "Close the message"}
|
|
52
53
|
*/
|
|
53
54
|
"accessibleLabel": string;
|
|
54
55
|
/**
|
|
55
56
|
* Property to change languageDefaults on the component. normally you would handle these strings on an application level and override @accessibleLabel when needed
|
|
57
|
+
* @default {fi: "Sulje viesti", sv: "Stäng meddelandet", en: "Close the message"}
|
|
56
58
|
*/
|
|
57
|
-
"accessibleLabelDefaults": DuetLangObject;
|
|
59
|
+
"accessibleLabelDefaults": DuetLangObject | string;
|
|
58
60
|
/**
|
|
59
61
|
* Enable or disabled announcements by assistive technologies.
|
|
60
62
|
*/
|
|
@@ -125,12 +127,14 @@ export namespace Components {
|
|
|
125
127
|
"accessibleLabel": string;
|
|
126
128
|
/**
|
|
127
129
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
130
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
128
131
|
*/
|
|
129
132
|
"accessibleLabelExternal": string;
|
|
130
133
|
/**
|
|
131
134
|
* Property to change accessibleLabelExternal defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
|
|
135
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
132
136
|
*/
|
|
133
|
-
"accessibleLabelExternalDefaults": DuetLangObject;
|
|
137
|
+
"accessibleLabelExternalDefaults": DuetLangObject | string;
|
|
134
138
|
/**
|
|
135
139
|
* Indicates the id of a component owned by the button.
|
|
136
140
|
*/
|
|
@@ -181,6 +185,7 @@ export namespace Components {
|
|
|
181
185
|
"identifier": string;
|
|
182
186
|
/**
|
|
183
187
|
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
188
|
+
* @default "fi"
|
|
184
189
|
*/
|
|
185
190
|
"language": string;
|
|
186
191
|
/**
|
|
@@ -402,12 +407,13 @@ export namespace Components {
|
|
|
402
407
|
"accessibleDescribedBy": string;
|
|
403
408
|
/**
|
|
404
409
|
* Accessible label that is read for screen reader users in the info toggle trigger button. Not visible for normal users.
|
|
410
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
405
411
|
*/
|
|
406
412
|
"accessibleLabelInfoButton": string;
|
|
407
413
|
/**
|
|
408
414
|
* Property to change accessibleLabelInfoButton defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelInfoButton when needed
|
|
409
415
|
*/
|
|
410
|
-
"accessibleLabelInfoButtonDefaults": DuetLangObject;
|
|
416
|
+
"accessibleLabelInfoButtonDefaults": DuetLangObject | string;
|
|
411
417
|
/**
|
|
412
418
|
* Indicates the id of a component owned by the choice.
|
|
413
419
|
*/
|
|
@@ -539,6 +545,14 @@ export namespace Components {
|
|
|
539
545
|
* The content for the collapsible heading.
|
|
540
546
|
*/
|
|
541
547
|
"heading": string;
|
|
548
|
+
/**
|
|
549
|
+
* The actual heading level used for the heading in html markup. This setting exists for accessibility reasons. It doesn’t change the style visually. only variations of h1-h6 area accepted
|
|
550
|
+
*/
|
|
551
|
+
"headingLevel": DuetHeadingLevel | undefined;
|
|
552
|
+
/**
|
|
553
|
+
* Custom headingSize to be used for font size of heading, as a design token entered in kebab-case x-small -> font-size-x-small. Example: # 12px (0.75rem) ------ +2px (x-small) # 14px (0.875rem) ------ +2px (small) # 16px (1rem) ------ +2px (medium) # 20px (1.25rem) ------ +4px (large) # 24px (1.5rem) ------ +4px (x-large) # 36px (2.25rem) ------ +12px (xx-large) # 48px (3rem) ------ +12px (xxx-large) # 72px (4.5rem) ------ +24px (xxxx-large)
|
|
554
|
+
*/
|
|
555
|
+
"headingSize": DuetCollapsibleHeadingFontSize;
|
|
542
556
|
/**
|
|
543
557
|
* The font weight of the heading
|
|
544
558
|
*/
|
|
@@ -629,6 +643,8 @@ export namespace Components {
|
|
|
629
643
|
"labelHidden": boolean;
|
|
630
644
|
/**
|
|
631
645
|
* The currently active language. This setting changes the month/year/day names and button labels as well as all screen reader labels.
|
|
646
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
647
|
+
* @default "fi"
|
|
632
648
|
*/
|
|
633
649
|
"language": DuetLanguage;
|
|
634
650
|
/**
|
|
@@ -649,8 +665,14 @@ export namespace Components {
|
|
|
649
665
|
"name": string;
|
|
650
666
|
/**
|
|
651
667
|
* Hint text to display before the user types into the date picker input.
|
|
668
|
+
* @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
|
|
652
669
|
*/
|
|
653
670
|
"placeholder": string;
|
|
671
|
+
/**
|
|
672
|
+
* Placeholder defaults
|
|
673
|
+
* @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
|
|
674
|
+
*/
|
|
675
|
+
"placeholderDefaults": DuetLangObject | string;
|
|
654
676
|
/**
|
|
655
677
|
* Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them. When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.
|
|
656
678
|
*/
|
|
@@ -741,18 +763,22 @@ export namespace Components {
|
|
|
741
763
|
interface DuetFooter {
|
|
742
764
|
/**
|
|
743
765
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
766
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
744
767
|
*/
|
|
745
768
|
"accessibleLabelExternal": string;
|
|
746
769
|
/**
|
|
747
770
|
* Property to change accessibleLabelExternal defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
|
|
771
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
748
772
|
*/
|
|
749
|
-
"accessibleLabelExternalDefaults": DuetLangObject;
|
|
773
|
+
"accessibleLabelExternalDefaults": DuetLangObject | string;
|
|
750
774
|
/**
|
|
751
775
|
* An array of items for the main footer links. Items have to include mandatory "label", "href" and "icon" fields to work. Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag.
|
|
752
776
|
*/
|
|
753
777
|
"items": any;
|
|
754
778
|
/**
|
|
755
779
|
* The currently active language. This setting changes the logo to match the chosen language.
|
|
780
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
781
|
+
* @default "fi"
|
|
756
782
|
*/
|
|
757
783
|
"language": DuetLanguage;
|
|
758
784
|
/**
|
|
@@ -829,28 +855,34 @@ export namespace Components {
|
|
|
829
855
|
interface DuetHeader {
|
|
830
856
|
/**
|
|
831
857
|
* Adds i18n translations of all internally used textStrings
|
|
858
|
+
* @default { fi: { skipLabel: "Siirry pääsisältöön", changeLanguage: "Vaihda kieltä", activeLanguage: "Suomi valittuna", }, sv: { skipLabel: "Hoppa till huvudinnehåll", changeLanguage: "Ändra Språk", activeLanguage: "Svenska valt", }, en: { skipLabel: "Skip to main content", changeLanguage: "Change language", activeLanguage: "English selected", }, }
|
|
832
859
|
*/
|
|
833
860
|
"accessibleI18nLabels": I18nText;
|
|
834
861
|
/**
|
|
835
|
-
*
|
|
862
|
+
* Default strings for accessibleI18nLabels
|
|
863
|
+
* @default { fi: { skipLabel: "Siirry pääsisältöön", changeLanguage: "Vaihda kieltä", activeLanguage: "Suomi valittuna", }, sv: { skipLabel: "Hoppa till huvudinnehåll", changeLanguage: "Ändra Språk", activeLanguage: "Svenska valt", }, en: { skipLabel: "Skip to main content", changeLanguage: "Change language", activeLanguage: "English selected", }, }
|
|
836
864
|
*/
|
|
837
|
-
"
|
|
865
|
+
"accessibleI18nLabelsDefaults": | string
|
|
866
|
+
| Record<DuetLanguage, I18nText>;
|
|
838
867
|
/**
|
|
839
868
|
* Accessible label that is shown for screen reader users in the mobile navigation toggle. Not visible for normal users.
|
|
869
|
+
* @default { fi: "Valikko", sv: "Meny", en: "Menu", }
|
|
840
870
|
*/
|
|
841
871
|
"accessibleLabel": string;
|
|
842
872
|
/**
|
|
843
873
|
* Property to change accessibleLabel defaults on the component. normally you would handle these strings on an application level and override @accessibleLabel when needed
|
|
844
874
|
*/
|
|
845
|
-
"
|
|
875
|
+
"accessibleLabelDefaults": DuetLangObject | string;
|
|
846
876
|
/**
|
|
847
877
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
878
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
848
879
|
*/
|
|
849
880
|
"accessibleLabelExternal": string;
|
|
850
881
|
/**
|
|
851
882
|
* Property to change accessibleLabelExternal defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
|
|
883
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
852
884
|
*/
|
|
853
|
-
"accessibleLabelExternalDefaults": DuetLangObject;
|
|
885
|
+
"accessibleLabelExternalDefaults": DuetLangObject | string;
|
|
854
886
|
/**
|
|
855
887
|
* An object that includes mandatory "label" and "href" fields for the back link. Additionally, you can pass an "id" that is added as an HTML identifier for the element. If nothing is passed, back link won’t be shown. **NOTE: The back link should be ONLY used in combination with language and logoHref props.**
|
|
856
888
|
*/
|
|
@@ -877,6 +909,8 @@ export namespace Components {
|
|
|
877
909
|
"items": any;
|
|
878
910
|
/**
|
|
879
911
|
* The currently active language. This setting also changes the logo to match the chosen language.
|
|
912
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
913
|
+
* @default "fi"
|
|
880
914
|
*/
|
|
881
915
|
"language": DuetLanguage;
|
|
882
916
|
/**
|
|
@@ -949,12 +983,14 @@ export namespace Components {
|
|
|
949
983
|
interface DuetHero {
|
|
950
984
|
/**
|
|
951
985
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
986
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
952
987
|
*/
|
|
953
988
|
"accessibleLabelExternal": string;
|
|
954
989
|
/**
|
|
955
|
-
*
|
|
990
|
+
* Defaults for accessibleLabelExternal
|
|
991
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
956
992
|
*/
|
|
957
|
-
"accessibleLabelExternalDefaults": DuetLangObject;
|
|
993
|
+
"accessibleLabelExternalDefaults": DuetLangObject | string;
|
|
958
994
|
/**
|
|
959
995
|
* An array of items for the main actions. Items have to include mandatory "label", "href" and "icon" fields to work. Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag.
|
|
960
996
|
*/
|
|
@@ -1013,6 +1049,8 @@ export namespace Components {
|
|
|
1013
1049
|
"image": string;
|
|
1014
1050
|
/**
|
|
1015
1051
|
* The currently active language. This setting changes the accessible labels to match the chosen language.
|
|
1052
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
1053
|
+
* @default "fi"
|
|
1016
1054
|
*/
|
|
1017
1055
|
"language": DuetLanguage;
|
|
1018
1056
|
/**
|
|
@@ -1271,12 +1309,14 @@ export namespace Components {
|
|
|
1271
1309
|
"accessibleLabel": string;
|
|
1272
1310
|
/**
|
|
1273
1311
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
1312
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
1274
1313
|
*/
|
|
1275
1314
|
"accessibleLabelExternal": string;
|
|
1276
1315
|
/**
|
|
1277
|
-
*
|
|
1316
|
+
* Defaults for accessibleLabelExternal
|
|
1317
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
1278
1318
|
*/
|
|
1279
|
-
"accessibleLabelExternalDefaults": DuetLangObject;
|
|
1319
|
+
"accessibleLabelExternalDefaults": DuetLangObject | string;
|
|
1280
1320
|
/**
|
|
1281
1321
|
* Forces URL to open in a new browser tab. Used together with URL prop.
|
|
1282
1322
|
*/
|
|
@@ -1287,6 +1327,8 @@ export namespace Components {
|
|
|
1287
1327
|
"identifier": string;
|
|
1288
1328
|
/**
|
|
1289
1329
|
* The currently active language. This setting changes the external link accessible label to match the chosen language.
|
|
1330
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
1331
|
+
* @default "fi"
|
|
1290
1332
|
*/
|
|
1291
1333
|
"language": DuetLanguage;
|
|
1292
1334
|
/**
|
|
@@ -1345,6 +1387,8 @@ export namespace Components {
|
|
|
1345
1387
|
"inverse": boolean;
|
|
1346
1388
|
/**
|
|
1347
1389
|
* The language of the logo.
|
|
1390
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
1391
|
+
* @default "fi"
|
|
1348
1392
|
*/
|
|
1349
1393
|
"language": DuetLanguage;
|
|
1350
1394
|
/**
|
|
@@ -1367,12 +1411,14 @@ export namespace Components {
|
|
|
1367
1411
|
interface DuetModal {
|
|
1368
1412
|
/**
|
|
1369
1413
|
* Adds accessible label for the close icon that is only shown for screen readers. This property is always required to create an accessibly interface! Swedish translation for this property is “Stäng fönstret”.
|
|
1414
|
+
* @default {fi: "Sulje ikkuna", sv: "Stäng fönstret", en: "Close the dialog", }
|
|
1370
1415
|
*/
|
|
1371
1416
|
"accessibleCloseLabel": string;
|
|
1372
1417
|
/**
|
|
1373
|
-
*
|
|
1418
|
+
* Defaults for accessibleCloseLabel
|
|
1419
|
+
* @default {fi: "Sulje ikkuna", sv: "Stäng fönstret", en: "Close the dialog", }
|
|
1374
1420
|
*/
|
|
1375
|
-
"
|
|
1421
|
+
"accessibleCloseLabelDefaults": DuetLangObject | string;
|
|
1376
1422
|
/**
|
|
1377
1423
|
* Use this property when you need to have the modal dialog initially active.
|
|
1378
1424
|
*/
|
|
@@ -1403,6 +1449,8 @@ export namespace Components {
|
|
|
1403
1449
|
"icon": DuetIconName;
|
|
1404
1450
|
/**
|
|
1405
1451
|
* The currently active language. This setting also changes the logo to match the chosen language.
|
|
1452
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
1453
|
+
* @default "fi"
|
|
1406
1454
|
*/
|
|
1407
1455
|
"language": DuetLanguage;
|
|
1408
1456
|
/**
|
|
@@ -1421,6 +1469,7 @@ export namespace Components {
|
|
|
1421
1469
|
interface DuetNotification {
|
|
1422
1470
|
/**
|
|
1423
1471
|
* Adds accessible label for tooltip that is shown over unread counter
|
|
1472
|
+
* @default { en: "Unread", fi: "Lukematon", sv: "Oläst" }
|
|
1424
1473
|
*/
|
|
1425
1474
|
"accessibleLabelUnread": string;
|
|
1426
1475
|
/**
|
|
@@ -1441,6 +1490,8 @@ export namespace Components {
|
|
|
1441
1490
|
"highlight": boolean;
|
|
1442
1491
|
/**
|
|
1443
1492
|
* The currently active language. Used for announcing unread notifications to screen readers.
|
|
1493
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
1494
|
+
* @default "fi"
|
|
1444
1495
|
*/
|
|
1445
1496
|
"language": DuetLanguage;
|
|
1446
1497
|
/**
|
|
@@ -1460,12 +1511,15 @@ export namespace Components {
|
|
|
1460
1511
|
interface DuetNotificationDrawer {
|
|
1461
1512
|
/**
|
|
1462
1513
|
* Adds accessible label for tooltip that is shown for notifications
|
|
1514
|
+
* @default {en: "No notifications", fi: "Ei ilmoituksia", sv: "Inga notifikationer"}
|
|
1463
1515
|
*/
|
|
1464
1516
|
"accessibleLabelNotifications": string;
|
|
1465
1517
|
/**
|
|
1466
|
-
*
|
|
1518
|
+
* Defaults for accessibleLabelNotifications
|
|
1519
|
+
* @default {en: "No notifications", fi: "Ei ilmoituksia", sv: "Inga notifikationer"}
|
|
1467
1520
|
*/
|
|
1468
|
-
"accessibleLabelNotificationsDefaults": DuetLangObject
|
|
1521
|
+
"accessibleLabelNotificationsDefaults": | DuetLangObject
|
|
1522
|
+
| string;
|
|
1469
1523
|
/**
|
|
1470
1524
|
* Show a badge that indicates something has changed.
|
|
1471
1525
|
*/
|
|
@@ -1512,8 +1566,14 @@ export namespace Components {
|
|
|
1512
1566
|
"accessibleActiveDescendant": string;
|
|
1513
1567
|
/**
|
|
1514
1568
|
* Accessible label for the add button that is read for screen reader users.
|
|
1569
|
+
* @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
|
|
1515
1570
|
*/
|
|
1516
1571
|
"accessibleAdd": string;
|
|
1572
|
+
/**
|
|
1573
|
+
* Defaults for accessibleAdd
|
|
1574
|
+
* @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
|
|
1575
|
+
*/
|
|
1576
|
+
"accessibleAddDefaults": DuetLangObject | string;
|
|
1517
1577
|
/**
|
|
1518
1578
|
* Use this prop to add an aria-controls attribute. Use the attribute to indicate the id of a component controlled by this component.
|
|
1519
1579
|
*/
|
|
@@ -1524,8 +1584,14 @@ export namespace Components {
|
|
|
1524
1584
|
"accessibleDescribedBy": string;
|
|
1525
1585
|
/**
|
|
1526
1586
|
* Format of message used to announce current amount when switching between amounts. The string {current} is replaced with the current amount.
|
|
1587
|
+
* @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
|
|
1527
1588
|
*/
|
|
1528
1589
|
"accessibleLive": string;
|
|
1590
|
+
/**
|
|
1591
|
+
* Defaults for accessibleLive
|
|
1592
|
+
* @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
|
|
1593
|
+
*/
|
|
1594
|
+
"accessibleLiveDefaults": DuetLangObject | string;
|
|
1529
1595
|
/**
|
|
1530
1596
|
* Disables the aria-live messaging used internally in this component. This could be useful when you want to use custom aria-live messages instead.
|
|
1531
1597
|
*/
|
|
@@ -1536,8 +1602,14 @@ export namespace Components {
|
|
|
1536
1602
|
"accessibleOwns": string;
|
|
1537
1603
|
/**
|
|
1538
1604
|
* Accessible label for the subtract button that is read for screen reader users.
|
|
1605
|
+
* @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
|
|
1539
1606
|
*/
|
|
1540
1607
|
"accessibleSubtract": string;
|
|
1608
|
+
/**
|
|
1609
|
+
* Defaults for accessibleSubtract
|
|
1610
|
+
* @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
|
|
1611
|
+
*/
|
|
1612
|
+
"accessibleSubtractDefaults": DuetLangObject | string;
|
|
1541
1613
|
/**
|
|
1542
1614
|
* Makes the number input component disabled. This prevents users from being able to interact with the input, and conveys its inactive state to assistive technologies.
|
|
1543
1615
|
*/
|
|
@@ -1556,14 +1628,22 @@ export namespace Components {
|
|
|
1556
1628
|
"identifier": string;
|
|
1557
1629
|
/**
|
|
1558
1630
|
* Label for the number input.
|
|
1631
|
+
* @default {fi: "Etiketti", en: "Label", sv: "Märka"}
|
|
1559
1632
|
*/
|
|
1560
1633
|
"label": string;
|
|
1634
|
+
/**
|
|
1635
|
+
* Defaults for Label
|
|
1636
|
+
* @default {fi: "Etiketti", en: "Label", sv: "Märka"}
|
|
1637
|
+
*/
|
|
1638
|
+
"labelDefaults": DuetLangObject | string;
|
|
1561
1639
|
/**
|
|
1562
1640
|
* Visually hide the label, but still show it to screen readers.
|
|
1563
1641
|
*/
|
|
1564
1642
|
"labelHidden": boolean;
|
|
1565
1643
|
/**
|
|
1566
1644
|
* The currently active language. This setting changes the accessible labels to match the chosen language.
|
|
1645
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
1646
|
+
* @default "fi"
|
|
1567
1647
|
*/
|
|
1568
1648
|
"language": DuetLanguage;
|
|
1569
1649
|
/**
|
|
@@ -2041,14 +2121,22 @@ export namespace Components {
|
|
|
2041
2121
|
interface DuetTabGroup {
|
|
2042
2122
|
/**
|
|
2043
2123
|
* Label for the select element which gets shown on mobile.
|
|
2124
|
+
* @default {fi: "Valitse", en: "Choose", sv: "Välja"}
|
|
2044
2125
|
*/
|
|
2045
2126
|
"label": string;
|
|
2127
|
+
/**
|
|
2128
|
+
* Defaults for Label
|
|
2129
|
+
* @default {fi: "Valitse", en: "Choose", sv: "Välja"}
|
|
2130
|
+
*/
|
|
2131
|
+
"labelDefaults": DuetLangObject | string;
|
|
2046
2132
|
/**
|
|
2047
2133
|
* Determines whether the label for the select element shown on mobile is visually hidden.
|
|
2048
2134
|
*/
|
|
2049
2135
|
"labelHidden": boolean;
|
|
2050
2136
|
/**
|
|
2051
2137
|
* The currently active language. This setting changes the accessible labels to match the chosen language.
|
|
2138
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
2139
|
+
* @default "fi"
|
|
2052
2140
|
*/
|
|
2053
2141
|
"language": DuetLanguage;
|
|
2054
2142
|
/**
|
|
@@ -2282,13 +2370,25 @@ export namespace Components {
|
|
|
2282
2370
|
interface DuetTooltip {
|
|
2283
2371
|
/**
|
|
2284
2372
|
* Adds accessible label for the close icon that is only shown for screen readers. This property is always required to create an accessibly interface!
|
|
2373
|
+
* @default {fi: "Sulje lisätiedot", en: "Close details", sv: "Stäng detaljer"}
|
|
2285
2374
|
*/
|
|
2286
2375
|
"accessibleCloseLabel": string;
|
|
2376
|
+
/**
|
|
2377
|
+
* Default language strings for the accessibleCloseLabel
|
|
2378
|
+
* @default {fi: "Sulje lisätiedot", en: "Close details", sv: "Stäng detaljer"}
|
|
2379
|
+
*/
|
|
2380
|
+
"accessibleCloseLabelDefault": DuetLangObject | string;
|
|
2287
2381
|
"accessibleInputLabel": string;
|
|
2288
2382
|
/**
|
|
2289
2383
|
* Adds accessible label for the info icon that is only shown for screen readers. This property is always required to create an accessible interface!
|
|
2384
|
+
* @default {fi: "Näytä lisätietoja", en: "See more information", sv: "Se mer information"}
|
|
2290
2385
|
*/
|
|
2291
2386
|
"accessibleLabel": string;
|
|
2387
|
+
/**
|
|
2388
|
+
* Default language strings for the accessibleLabel
|
|
2389
|
+
* @default {fi: "Näytä lisätietoja", en: "See more information", sv: "Se mer information"}
|
|
2390
|
+
*/
|
|
2391
|
+
"accessibleLabelDefault": DuetLangObject | string;
|
|
2292
2392
|
/**
|
|
2293
2393
|
* Toggle whether the tooltip is initially visible or not. This property should not be used in production in most cases.
|
|
2294
2394
|
*/
|
|
@@ -2307,6 +2407,8 @@ export namespace Components {
|
|
|
2307
2407
|
"label": string;
|
|
2308
2408
|
/**
|
|
2309
2409
|
* The currently active language. This setting changes the accessible labels to match the chosen language.
|
|
2410
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
2411
|
+
* @default "fi"
|
|
2310
2412
|
*/
|
|
2311
2413
|
"language": DuetLanguage;
|
|
2312
2414
|
/**
|
|
@@ -2325,12 +2427,24 @@ export namespace Components {
|
|
|
2325
2427
|
interface DuetTray {
|
|
2326
2428
|
/**
|
|
2327
2429
|
* Accessible label that is shown for screen reader users in the expandable close toggle. Not visible for normal users.
|
|
2430
|
+
* @default {fi: "Sulje", en: "Close", sv: "Stänga"}
|
|
2328
2431
|
*/
|
|
2329
2432
|
"accessibleCloseLabel": string;
|
|
2433
|
+
/**
|
|
2434
|
+
* Defaults for accessibleCloseLabel
|
|
2435
|
+
* @default {fi: "Sulje", en: "Close", sv: "Stänga"}
|
|
2436
|
+
*/
|
|
2437
|
+
"accessibleCloseLabelDefaults": DuetLangObject | string;
|
|
2330
2438
|
/**
|
|
2331
2439
|
* Accessible label that is shown for screen reader users in the expandable open toggle. Not visible for normal users.
|
|
2440
|
+
* @default {fi: "Avaa", en: "Open", sv: "Öppen"}
|
|
2332
2441
|
*/
|
|
2333
2442
|
"accessibleOpenLabel": string;
|
|
2443
|
+
/**
|
|
2444
|
+
* Defaults for accessibleOpenLabel
|
|
2445
|
+
* @default {fi: "Avaa", en: "Open", sv: "Öppen"}
|
|
2446
|
+
*/
|
|
2447
|
+
"accessibleOpenLabelDefaults": DuetLangObject | string;
|
|
2334
2448
|
/**
|
|
2335
2449
|
* Toggle whether the info panel is visible or not. You can use this property e.g. when pricing information is revealed to the user.
|
|
2336
2450
|
*/
|
|
@@ -2341,6 +2455,8 @@ export namespace Components {
|
|
|
2341
2455
|
"autoHide": boolean;
|
|
2342
2456
|
/**
|
|
2343
2457
|
* The currently active language. This setting changes the accessible labels to match the chosen language.
|
|
2458
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
2459
|
+
* @default "fi"
|
|
2344
2460
|
*/
|
|
2345
2461
|
"language": DuetLanguage;
|
|
2346
2462
|
/**
|
|
@@ -2706,12 +2822,14 @@ declare namespace LocalJSX {
|
|
|
2706
2822
|
interface DuetAlert {
|
|
2707
2823
|
/**
|
|
2708
2824
|
* Adds accessible label for the dismissible alert close button.
|
|
2825
|
+
* @default {fi: "Sulje viesti", sv: "Stäng meddelandet", en: "Close the message"}
|
|
2709
2826
|
*/
|
|
2710
2827
|
"accessibleLabel"?: string;
|
|
2711
2828
|
/**
|
|
2712
2829
|
* Property to change languageDefaults on the component. normally you would handle these strings on an application level and override @accessibleLabel when needed
|
|
2830
|
+
* @default {fi: "Sulje viesti", sv: "Stäng meddelandet", en: "Close the message"}
|
|
2713
2831
|
*/
|
|
2714
|
-
"accessibleLabelDefaults"?: DuetLangObject;
|
|
2832
|
+
"accessibleLabelDefaults"?: DuetLangObject | string;
|
|
2715
2833
|
/**
|
|
2716
2834
|
* Enable or disabled announcements by assistive technologies.
|
|
2717
2835
|
*/
|
|
@@ -2786,12 +2904,14 @@ declare namespace LocalJSX {
|
|
|
2786
2904
|
"accessibleLabel"?: string;
|
|
2787
2905
|
/**
|
|
2788
2906
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
2907
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
2789
2908
|
*/
|
|
2790
2909
|
"accessibleLabelExternal"?: string;
|
|
2791
2910
|
/**
|
|
2792
2911
|
* Property to change accessibleLabelExternal defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
|
|
2912
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
2793
2913
|
*/
|
|
2794
|
-
"accessibleLabelExternalDefaults"?: DuetLangObject;
|
|
2914
|
+
"accessibleLabelExternalDefaults"?: DuetLangObject | string;
|
|
2795
2915
|
/**
|
|
2796
2916
|
* Indicates the id of a component owned by the button.
|
|
2797
2917
|
*/
|
|
@@ -2842,6 +2962,7 @@ declare namespace LocalJSX {
|
|
|
2842
2962
|
"identifier"?: string;
|
|
2843
2963
|
/**
|
|
2844
2964
|
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
2965
|
+
* @default "fi"
|
|
2845
2966
|
*/
|
|
2846
2967
|
"language"?: string;
|
|
2847
2968
|
/**
|
|
@@ -3075,12 +3196,13 @@ declare namespace LocalJSX {
|
|
|
3075
3196
|
"accessibleDescribedBy"?: string;
|
|
3076
3197
|
/**
|
|
3077
3198
|
* Accessible label that is read for screen reader users in the info toggle trigger button. Not visible for normal users.
|
|
3199
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
3078
3200
|
*/
|
|
3079
3201
|
"accessibleLabelInfoButton"?: string;
|
|
3080
3202
|
/**
|
|
3081
3203
|
* Property to change accessibleLabelInfoButton defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelInfoButton when needed
|
|
3082
3204
|
*/
|
|
3083
|
-
"accessibleLabelInfoButtonDefaults"?: DuetLangObject;
|
|
3205
|
+
"accessibleLabelInfoButtonDefaults"?: DuetLangObject | string;
|
|
3084
3206
|
/**
|
|
3085
3207
|
* Indicates the id of a component owned by the choice.
|
|
3086
3208
|
*/
|
|
@@ -3217,6 +3339,14 @@ declare namespace LocalJSX {
|
|
|
3217
3339
|
* The content for the collapsible heading.
|
|
3218
3340
|
*/
|
|
3219
3341
|
"heading"?: string;
|
|
3342
|
+
/**
|
|
3343
|
+
* The actual heading level used for the heading in html markup. This setting exists for accessibility reasons. It doesn’t change the style visually. only variations of h1-h6 area accepted
|
|
3344
|
+
*/
|
|
3345
|
+
"headingLevel"?: DuetHeadingLevel | undefined;
|
|
3346
|
+
/**
|
|
3347
|
+
* Custom headingSize to be used for font size of heading, as a design token entered in kebab-case x-small -> font-size-x-small. Example: # 12px (0.75rem) ------ +2px (x-small) # 14px (0.875rem) ------ +2px (small) # 16px (1rem) ------ +2px (medium) # 20px (1.25rem) ------ +4px (large) # 24px (1.5rem) ------ +4px (x-large) # 36px (2.25rem) ------ +12px (xx-large) # 48px (3rem) ------ +12px (xxx-large) # 72px (4.5rem) ------ +24px (xxxx-large)
|
|
3348
|
+
*/
|
|
3349
|
+
"headingSize"?: DuetCollapsibleHeadingFontSize;
|
|
3220
3350
|
/**
|
|
3221
3351
|
* The font weight of the heading
|
|
3222
3352
|
*/
|
|
@@ -3307,6 +3437,8 @@ declare namespace LocalJSX {
|
|
|
3307
3437
|
"labelHidden"?: boolean;
|
|
3308
3438
|
/**
|
|
3309
3439
|
* The currently active language. This setting changes the month/year/day names and button labels as well as all screen reader labels.
|
|
3440
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
3441
|
+
* @default "fi"
|
|
3310
3442
|
*/
|
|
3311
3443
|
"language"?: DuetLanguage;
|
|
3312
3444
|
/**
|
|
@@ -3339,8 +3471,14 @@ declare namespace LocalJSX {
|
|
|
3339
3471
|
"onDuetFocus"?: (event: CustomEvent<DuetDatePickerFocusEvent>) => void;
|
|
3340
3472
|
/**
|
|
3341
3473
|
* Hint text to display before the user types into the date picker input.
|
|
3474
|
+
* @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
|
|
3342
3475
|
*/
|
|
3343
3476
|
"placeholder"?: string;
|
|
3477
|
+
/**
|
|
3478
|
+
* Placeholder defaults
|
|
3479
|
+
* @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
|
|
3480
|
+
*/
|
|
3481
|
+
"placeholderDefaults"?: DuetLangObject | string;
|
|
3344
3482
|
/**
|
|
3345
3483
|
* Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them. When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.
|
|
3346
3484
|
*/
|
|
@@ -3423,18 +3561,22 @@ declare namespace LocalJSX {
|
|
|
3423
3561
|
interface DuetFooter {
|
|
3424
3562
|
/**
|
|
3425
3563
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
3564
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
3426
3565
|
*/
|
|
3427
3566
|
"accessibleLabelExternal"?: string;
|
|
3428
3567
|
/**
|
|
3429
3568
|
* Property to change accessibleLabelExternal defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
|
|
3569
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
3430
3570
|
*/
|
|
3431
|
-
"accessibleLabelExternalDefaults"?: DuetLangObject;
|
|
3571
|
+
"accessibleLabelExternalDefaults"?: DuetLangObject | string;
|
|
3432
3572
|
/**
|
|
3433
3573
|
* An array of items for the main footer links. Items have to include mandatory "label", "href" and "icon" fields to work. Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag.
|
|
3434
3574
|
*/
|
|
3435
3575
|
"items"?: any;
|
|
3436
3576
|
/**
|
|
3437
3577
|
* The currently active language. This setting changes the logo to match the chosen language.
|
|
3578
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
3579
|
+
* @default "fi"
|
|
3438
3580
|
*/
|
|
3439
3581
|
"language"?: DuetLanguage;
|
|
3440
3582
|
/**
|
|
@@ -3529,28 +3671,34 @@ declare namespace LocalJSX {
|
|
|
3529
3671
|
interface DuetHeader {
|
|
3530
3672
|
/**
|
|
3531
3673
|
* Adds i18n translations of all internally used textStrings
|
|
3674
|
+
* @default { fi: { skipLabel: "Siirry pääsisältöön", changeLanguage: "Vaihda kieltä", activeLanguage: "Suomi valittuna", }, sv: { skipLabel: "Hoppa till huvudinnehåll", changeLanguage: "Ändra Språk", activeLanguage: "Svenska valt", }, en: { skipLabel: "Skip to main content", changeLanguage: "Change language", activeLanguage: "English selected", }, }
|
|
3532
3675
|
*/
|
|
3533
3676
|
"accessibleI18nLabels"?: I18nText;
|
|
3534
3677
|
/**
|
|
3535
|
-
*
|
|
3678
|
+
* Default strings for accessibleI18nLabels
|
|
3679
|
+
* @default { fi: { skipLabel: "Siirry pääsisältöön", changeLanguage: "Vaihda kieltä", activeLanguage: "Suomi valittuna", }, sv: { skipLabel: "Hoppa till huvudinnehåll", changeLanguage: "Ändra Språk", activeLanguage: "Svenska valt", }, en: { skipLabel: "Skip to main content", changeLanguage: "Change language", activeLanguage: "English selected", }, }
|
|
3536
3680
|
*/
|
|
3537
|
-
"
|
|
3681
|
+
"accessibleI18nLabelsDefaults"?: | string
|
|
3682
|
+
| Record<DuetLanguage, I18nText>;
|
|
3538
3683
|
/**
|
|
3539
3684
|
* Accessible label that is shown for screen reader users in the mobile navigation toggle. Not visible for normal users.
|
|
3685
|
+
* @default { fi: "Valikko", sv: "Meny", en: "Menu", }
|
|
3540
3686
|
*/
|
|
3541
3687
|
"accessibleLabel"?: string;
|
|
3542
3688
|
/**
|
|
3543
3689
|
* Property to change accessibleLabel defaults on the component. normally you would handle these strings on an application level and override @accessibleLabel when needed
|
|
3544
3690
|
*/
|
|
3545
|
-
"
|
|
3691
|
+
"accessibleLabelDefaults"?: DuetLangObject | string;
|
|
3546
3692
|
/**
|
|
3547
3693
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
3694
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
3548
3695
|
*/
|
|
3549
3696
|
"accessibleLabelExternal"?: string;
|
|
3550
3697
|
/**
|
|
3551
3698
|
* Property to change accessibleLabelExternal defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
|
|
3699
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
3552
3700
|
*/
|
|
3553
|
-
"accessibleLabelExternalDefaults"?: DuetLangObject;
|
|
3701
|
+
"accessibleLabelExternalDefaults"?: DuetLangObject | string;
|
|
3554
3702
|
/**
|
|
3555
3703
|
* An object that includes mandatory "label" and "href" fields for the back link. Additionally, you can pass an "id" that is added as an HTML identifier for the element. If nothing is passed, back link won’t be shown. **NOTE: The back link should be ONLY used in combination with language and logoHref props.**
|
|
3556
3704
|
*/
|
|
@@ -3573,6 +3721,8 @@ declare namespace LocalJSX {
|
|
|
3573
3721
|
"items"?: any;
|
|
3574
3722
|
/**
|
|
3575
3723
|
* The currently active language. This setting also changes the logo to match the chosen language.
|
|
3724
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
3725
|
+
* @default "fi"
|
|
3576
3726
|
*/
|
|
3577
3727
|
"language"?: DuetLanguage;
|
|
3578
3728
|
/**
|
|
@@ -3681,12 +3831,14 @@ declare namespace LocalJSX {
|
|
|
3681
3831
|
interface DuetHero {
|
|
3682
3832
|
/**
|
|
3683
3833
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
3834
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
3684
3835
|
*/
|
|
3685
3836
|
"accessibleLabelExternal"?: string;
|
|
3686
3837
|
/**
|
|
3687
|
-
*
|
|
3838
|
+
* Defaults for accessibleLabelExternal
|
|
3839
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
3688
3840
|
*/
|
|
3689
|
-
"accessibleLabelExternalDefaults"?: DuetLangObject;
|
|
3841
|
+
"accessibleLabelExternalDefaults"?: DuetLangObject | string;
|
|
3690
3842
|
/**
|
|
3691
3843
|
* An array of items for the main actions. Items have to include mandatory "label", "href" and "icon" fields to work. Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag.
|
|
3692
3844
|
*/
|
|
@@ -3745,6 +3897,8 @@ declare namespace LocalJSX {
|
|
|
3745
3897
|
"image"?: string;
|
|
3746
3898
|
/**
|
|
3747
3899
|
* The currently active language. This setting changes the accessible labels to match the chosen language.
|
|
3900
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
3901
|
+
* @default "fi"
|
|
3748
3902
|
*/
|
|
3749
3903
|
"language"?: DuetLanguage;
|
|
3750
3904
|
/**
|
|
@@ -4023,12 +4177,14 @@ declare namespace LocalJSX {
|
|
|
4023
4177
|
"accessibleLabel"?: string;
|
|
4024
4178
|
/**
|
|
4025
4179
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
4180
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
4026
4181
|
*/
|
|
4027
4182
|
"accessibleLabelExternal"?: string;
|
|
4028
4183
|
/**
|
|
4029
|
-
*
|
|
4184
|
+
* Defaults for accessibleLabelExternal
|
|
4185
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
4030
4186
|
*/
|
|
4031
|
-
"accessibleLabelExternalDefaults"?: DuetLangObject;
|
|
4187
|
+
"accessibleLabelExternalDefaults"?: DuetLangObject | string;
|
|
4032
4188
|
/**
|
|
4033
4189
|
* Forces URL to open in a new browser tab. Used together with URL prop.
|
|
4034
4190
|
*/
|
|
@@ -4039,6 +4195,8 @@ declare namespace LocalJSX {
|
|
|
4039
4195
|
"identifier"?: string;
|
|
4040
4196
|
/**
|
|
4041
4197
|
* The currently active language. This setting changes the external link accessible label to match the chosen language.
|
|
4198
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
4199
|
+
* @default "fi"
|
|
4042
4200
|
*/
|
|
4043
4201
|
"language"?: DuetLanguage;
|
|
4044
4202
|
/**
|
|
@@ -4093,6 +4251,8 @@ declare namespace LocalJSX {
|
|
|
4093
4251
|
"inverse"?: boolean;
|
|
4094
4252
|
/**
|
|
4095
4253
|
* The language of the logo.
|
|
4254
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
4255
|
+
* @default "fi"
|
|
4096
4256
|
*/
|
|
4097
4257
|
"language"?: DuetLanguage;
|
|
4098
4258
|
/**
|
|
@@ -4111,12 +4271,14 @@ declare namespace LocalJSX {
|
|
|
4111
4271
|
interface DuetModal {
|
|
4112
4272
|
/**
|
|
4113
4273
|
* Adds accessible label for the close icon that is only shown for screen readers. This property is always required to create an accessibly interface! Swedish translation for this property is “Stäng fönstret”.
|
|
4274
|
+
* @default {fi: "Sulje ikkuna", sv: "Stäng fönstret", en: "Close the dialog", }
|
|
4114
4275
|
*/
|
|
4115
4276
|
"accessibleCloseLabel"?: string;
|
|
4116
4277
|
/**
|
|
4117
|
-
*
|
|
4278
|
+
* Defaults for accessibleCloseLabel
|
|
4279
|
+
* @default {fi: "Sulje ikkuna", sv: "Stäng fönstret", en: "Close the dialog", }
|
|
4118
4280
|
*/
|
|
4119
|
-
"
|
|
4281
|
+
"accessibleCloseLabelDefaults"?: DuetLangObject | string;
|
|
4120
4282
|
/**
|
|
4121
4283
|
* Use this property when you need to have the modal dialog initially active.
|
|
4122
4284
|
*/
|
|
@@ -4143,6 +4305,8 @@ declare namespace LocalJSX {
|
|
|
4143
4305
|
"icon"?: DuetIconName;
|
|
4144
4306
|
/**
|
|
4145
4307
|
* The currently active language. This setting also changes the logo to match the chosen language.
|
|
4308
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
4309
|
+
* @default "fi"
|
|
4146
4310
|
*/
|
|
4147
4311
|
"language"?: DuetLanguage;
|
|
4148
4312
|
/**
|
|
@@ -4169,6 +4333,7 @@ declare namespace LocalJSX {
|
|
|
4169
4333
|
interface DuetNotification {
|
|
4170
4334
|
/**
|
|
4171
4335
|
* Adds accessible label for tooltip that is shown over unread counter
|
|
4336
|
+
* @default { en: "Unread", fi: "Lukematon", sv: "Oläst" }
|
|
4172
4337
|
*/
|
|
4173
4338
|
"accessibleLabelUnread"?: string;
|
|
4174
4339
|
/**
|
|
@@ -4189,6 +4354,8 @@ declare namespace LocalJSX {
|
|
|
4189
4354
|
"highlight"?: boolean;
|
|
4190
4355
|
/**
|
|
4191
4356
|
* The currently active language. Used for announcing unread notifications to screen readers.
|
|
4357
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
4358
|
+
* @default "fi"
|
|
4192
4359
|
*/
|
|
4193
4360
|
"language"?: DuetLanguage;
|
|
4194
4361
|
/**
|
|
@@ -4203,12 +4370,15 @@ declare namespace LocalJSX {
|
|
|
4203
4370
|
interface DuetNotificationDrawer {
|
|
4204
4371
|
/**
|
|
4205
4372
|
* Adds accessible label for tooltip that is shown for notifications
|
|
4373
|
+
* @default {en: "No notifications", fi: "Ei ilmoituksia", sv: "Inga notifikationer"}
|
|
4206
4374
|
*/
|
|
4207
4375
|
"accessibleLabelNotifications"?: string;
|
|
4208
4376
|
/**
|
|
4209
|
-
*
|
|
4377
|
+
* Defaults for accessibleLabelNotifications
|
|
4378
|
+
* @default {en: "No notifications", fi: "Ei ilmoituksia", sv: "Inga notifikationer"}
|
|
4210
4379
|
*/
|
|
4211
|
-
"accessibleLabelNotificationsDefaults"?: DuetLangObject
|
|
4380
|
+
"accessibleLabelNotificationsDefaults"?: | DuetLangObject
|
|
4381
|
+
| string;
|
|
4212
4382
|
/**
|
|
4213
4383
|
* Show a badge that indicates something has changed.
|
|
4214
4384
|
*/
|
|
@@ -4241,8 +4411,14 @@ declare namespace LocalJSX {
|
|
|
4241
4411
|
"accessibleActiveDescendant"?: string;
|
|
4242
4412
|
/**
|
|
4243
4413
|
* Accessible label for the add button that is read for screen reader users.
|
|
4414
|
+
* @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
|
|
4244
4415
|
*/
|
|
4245
4416
|
"accessibleAdd"?: string;
|
|
4417
|
+
/**
|
|
4418
|
+
* Defaults for accessibleAdd
|
|
4419
|
+
* @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
|
|
4420
|
+
*/
|
|
4421
|
+
"accessibleAddDefaults"?: DuetLangObject | string;
|
|
4246
4422
|
/**
|
|
4247
4423
|
* Use this prop to add an aria-controls attribute. Use the attribute to indicate the id of a component controlled by this component.
|
|
4248
4424
|
*/
|
|
@@ -4253,8 +4429,14 @@ declare namespace LocalJSX {
|
|
|
4253
4429
|
"accessibleDescribedBy"?: string;
|
|
4254
4430
|
/**
|
|
4255
4431
|
* Format of message used to announce current amount when switching between amounts. The string {current} is replaced with the current amount.
|
|
4432
|
+
* @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
|
|
4256
4433
|
*/
|
|
4257
4434
|
"accessibleLive"?: string;
|
|
4435
|
+
/**
|
|
4436
|
+
* Defaults for accessibleLive
|
|
4437
|
+
* @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
|
|
4438
|
+
*/
|
|
4439
|
+
"accessibleLiveDefaults"?: DuetLangObject | string;
|
|
4258
4440
|
/**
|
|
4259
4441
|
* Disables the aria-live messaging used internally in this component. This could be useful when you want to use custom aria-live messages instead.
|
|
4260
4442
|
*/
|
|
@@ -4265,8 +4447,14 @@ declare namespace LocalJSX {
|
|
|
4265
4447
|
"accessibleOwns"?: string;
|
|
4266
4448
|
/**
|
|
4267
4449
|
* Accessible label for the subtract button that is read for screen reader users.
|
|
4450
|
+
* @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
|
|
4268
4451
|
*/
|
|
4269
4452
|
"accessibleSubtract"?: string;
|
|
4453
|
+
/**
|
|
4454
|
+
* Defaults for accessibleSubtract
|
|
4455
|
+
* @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
|
|
4456
|
+
*/
|
|
4457
|
+
"accessibleSubtractDefaults"?: DuetLangObject | string;
|
|
4270
4458
|
/**
|
|
4271
4459
|
* Makes the number input component disabled. This prevents users from being able to interact with the input, and conveys its inactive state to assistive technologies.
|
|
4272
4460
|
*/
|
|
@@ -4285,14 +4473,22 @@ declare namespace LocalJSX {
|
|
|
4285
4473
|
"identifier"?: string;
|
|
4286
4474
|
/**
|
|
4287
4475
|
* Label for the number input.
|
|
4476
|
+
* @default {fi: "Etiketti", en: "Label", sv: "Märka"}
|
|
4288
4477
|
*/
|
|
4289
4478
|
"label"?: string;
|
|
4479
|
+
/**
|
|
4480
|
+
* Defaults for Label
|
|
4481
|
+
* @default {fi: "Etiketti", en: "Label", sv: "Märka"}
|
|
4482
|
+
*/
|
|
4483
|
+
"labelDefaults"?: DuetLangObject | string;
|
|
4290
4484
|
/**
|
|
4291
4485
|
* Visually hide the label, but still show it to screen readers.
|
|
4292
4486
|
*/
|
|
4293
4487
|
"labelHidden"?: boolean;
|
|
4294
4488
|
/**
|
|
4295
4489
|
* The currently active language. This setting changes the accessible labels to match the chosen language.
|
|
4490
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
4491
|
+
* @default "fi"
|
|
4296
4492
|
*/
|
|
4297
4493
|
"language"?: DuetLanguage;
|
|
4298
4494
|
/**
|
|
@@ -4799,14 +4995,22 @@ declare namespace LocalJSX {
|
|
|
4799
4995
|
interface DuetTabGroup {
|
|
4800
4996
|
/**
|
|
4801
4997
|
* Label for the select element which gets shown on mobile.
|
|
4998
|
+
* @default {fi: "Valitse", en: "Choose", sv: "Välja"}
|
|
4802
4999
|
*/
|
|
4803
5000
|
"label"?: string;
|
|
5001
|
+
/**
|
|
5002
|
+
* Defaults for Label
|
|
5003
|
+
* @default {fi: "Valitse", en: "Choose", sv: "Välja"}
|
|
5004
|
+
*/
|
|
5005
|
+
"labelDefaults"?: DuetLangObject | string;
|
|
4804
5006
|
/**
|
|
4805
5007
|
* Determines whether the label for the select element shown on mobile is visually hidden.
|
|
4806
5008
|
*/
|
|
4807
5009
|
"labelHidden"?: boolean;
|
|
4808
5010
|
/**
|
|
4809
5011
|
* The currently active language. This setting changes the accessible labels to match the chosen language.
|
|
5012
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
5013
|
+
* @default "fi"
|
|
4810
5014
|
*/
|
|
4811
5015
|
"language"?: DuetLanguage;
|
|
4812
5016
|
/**
|
|
@@ -5051,12 +5255,24 @@ declare namespace LocalJSX {
|
|
|
5051
5255
|
interface DuetTooltip {
|
|
5052
5256
|
/**
|
|
5053
5257
|
* Adds accessible label for the close icon that is only shown for screen readers. This property is always required to create an accessibly interface!
|
|
5258
|
+
* @default {fi: "Sulje lisätiedot", en: "Close details", sv: "Stäng detaljer"}
|
|
5054
5259
|
*/
|
|
5055
5260
|
"accessibleCloseLabel"?: string;
|
|
5261
|
+
/**
|
|
5262
|
+
* Default language strings for the accessibleCloseLabel
|
|
5263
|
+
* @default {fi: "Sulje lisätiedot", en: "Close details", sv: "Stäng detaljer"}
|
|
5264
|
+
*/
|
|
5265
|
+
"accessibleCloseLabelDefault"?: DuetLangObject | string;
|
|
5056
5266
|
/**
|
|
5057
5267
|
* Adds accessible label for the info icon that is only shown for screen readers. This property is always required to create an accessible interface!
|
|
5268
|
+
* @default {fi: "Näytä lisätietoja", en: "See more information", sv: "Se mer information"}
|
|
5058
5269
|
*/
|
|
5059
5270
|
"accessibleLabel"?: string;
|
|
5271
|
+
/**
|
|
5272
|
+
* Default language strings for the accessibleLabel
|
|
5273
|
+
* @default {fi: "Näytä lisätietoja", en: "See more information", sv: "Se mer information"}
|
|
5274
|
+
*/
|
|
5275
|
+
"accessibleLabelDefault"?: DuetLangObject | string;
|
|
5060
5276
|
/**
|
|
5061
5277
|
* Toggle whether the tooltip is initially visible or not. This property should not be used in production in most cases.
|
|
5062
5278
|
*/
|
|
@@ -5075,6 +5291,8 @@ declare namespace LocalJSX {
|
|
|
5075
5291
|
"label"?: string;
|
|
5076
5292
|
/**
|
|
5077
5293
|
* The currently active language. This setting changes the accessible labels to match the chosen language.
|
|
5294
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
5295
|
+
* @default "fi"
|
|
5078
5296
|
*/
|
|
5079
5297
|
"language"?: DuetLanguage;
|
|
5080
5298
|
/**
|
|
@@ -5093,12 +5311,24 @@ declare namespace LocalJSX {
|
|
|
5093
5311
|
interface DuetTray {
|
|
5094
5312
|
/**
|
|
5095
5313
|
* Accessible label that is shown for screen reader users in the expandable close toggle. Not visible for normal users.
|
|
5314
|
+
* @default {fi: "Sulje", en: "Close", sv: "Stänga"}
|
|
5096
5315
|
*/
|
|
5097
5316
|
"accessibleCloseLabel"?: string;
|
|
5317
|
+
/**
|
|
5318
|
+
* Defaults for accessibleCloseLabel
|
|
5319
|
+
* @default {fi: "Sulje", en: "Close", sv: "Stänga"}
|
|
5320
|
+
*/
|
|
5321
|
+
"accessibleCloseLabelDefaults"?: DuetLangObject | string;
|
|
5098
5322
|
/**
|
|
5099
5323
|
* Accessible label that is shown for screen reader users in the expandable open toggle. Not visible for normal users.
|
|
5324
|
+
* @default {fi: "Avaa", en: "Open", sv: "Öppen"}
|
|
5100
5325
|
*/
|
|
5101
5326
|
"accessibleOpenLabel"?: string;
|
|
5327
|
+
/**
|
|
5328
|
+
* Defaults for accessibleOpenLabel
|
|
5329
|
+
* @default {fi: "Avaa", en: "Open", sv: "Öppen"}
|
|
5330
|
+
*/
|
|
5331
|
+
"accessibleOpenLabelDefaults"?: DuetLangObject | string;
|
|
5102
5332
|
/**
|
|
5103
5333
|
* Toggle whether the info panel is visible or not. You can use this property e.g. when pricing information is revealed to the user.
|
|
5104
5334
|
*/
|
|
@@ -5109,6 +5339,8 @@ declare namespace LocalJSX {
|
|
|
5109
5339
|
"autoHide"?: boolean;
|
|
5110
5340
|
/**
|
|
5111
5341
|
* The currently active language. This setting changes the accessible labels to match the chosen language.
|
|
5342
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
5343
|
+
* @default "fi"
|
|
5112
5344
|
*/
|
|
5113
5345
|
"language"?: DuetLanguage;
|
|
5114
5346
|
/**
|