@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
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Event, h, Host, Prop, State } from "@stencil/core";
|
|
2
5
|
import { getLocaleString } from "../../utils/language-utils";
|
|
3
6
|
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
4
7
|
export class DuetAlert {
|
|
@@ -15,6 +18,7 @@ export class DuetAlert {
|
|
|
15
18
|
/**
|
|
16
19
|
* Property to change languageDefaults on the component.
|
|
17
20
|
* normally you would handle these strings on an application level and override @accessibleLabel when needed
|
|
21
|
+
* @default {fi: "Sulje viesti", sv: "Stäng meddelandet", en: "Close the message"}
|
|
18
22
|
*/
|
|
19
23
|
this.accessibleLabelDefaults = {
|
|
20
24
|
fi: "Sulje viesti",
|
|
@@ -23,6 +27,7 @@ export class DuetAlert {
|
|
|
23
27
|
};
|
|
24
28
|
/**
|
|
25
29
|
* Adds accessible label for the dismissible alert close button.
|
|
30
|
+
* @default {fi: "Sulje viesti", sv: "Stäng meddelandet", en: "Close the message"}
|
|
26
31
|
*/
|
|
27
32
|
this.accessibleLabel = getLocaleString(this.accessibleLabelDefaults);
|
|
28
33
|
/**
|
|
@@ -131,11 +136,11 @@ export class DuetAlert {
|
|
|
131
136
|
"defaultValue": "\"\""
|
|
132
137
|
},
|
|
133
138
|
"accessibleLabelDefaults": {
|
|
134
|
-
"type": "
|
|
139
|
+
"type": "string",
|
|
135
140
|
"mutable": false,
|
|
136
141
|
"complexType": {
|
|
137
|
-
"original": "DuetLangObject",
|
|
138
|
-
"resolved": "DuetLangObject",
|
|
142
|
+
"original": "DuetLangObject | string",
|
|
143
|
+
"resolved": "DuetLangObject | string",
|
|
139
144
|
"references": {
|
|
140
145
|
"DuetLangObject": {
|
|
141
146
|
"location": "import",
|
|
@@ -146,9 +151,14 @@ export class DuetAlert {
|
|
|
146
151
|
"required": false,
|
|
147
152
|
"optional": false,
|
|
148
153
|
"docs": {
|
|
149
|
-
"tags": [
|
|
154
|
+
"tags": [{
|
|
155
|
+
"text": "{fi: \"Sulje viesti\", sv: \"St\u00E4ng meddelandet\", en: \"Close the message\"}",
|
|
156
|
+
"name": "default"
|
|
157
|
+
}],
|
|
150
158
|
"text": "Property to change languageDefaults on the component.\nnormally you would handle these strings on an application level and override @accessibleLabel when needed"
|
|
151
159
|
},
|
|
160
|
+
"attribute": "accessible-label-default",
|
|
161
|
+
"reflect": false,
|
|
152
162
|
"defaultValue": "{\n fi: \"Sulje viesti\",\n sv: \"St\u00E4ng meddelandet\",\n en: \"Close the message\",\n }"
|
|
153
163
|
},
|
|
154
164
|
"accessibleLabel": {
|
|
@@ -162,7 +172,10 @@ export class DuetAlert {
|
|
|
162
172
|
"required": false,
|
|
163
173
|
"optional": false,
|
|
164
174
|
"docs": {
|
|
165
|
-
"tags": [
|
|
175
|
+
"tags": [{
|
|
176
|
+
"text": "{fi: \"Sulje viesti\", sv: \"St\u00E4ng meddelandet\", en: \"Close the message\"}",
|
|
177
|
+
"name": "default"
|
|
178
|
+
}],
|
|
166
179
|
"text": "Adds accessible label for the dismissible alert close button."
|
|
167
180
|
},
|
|
168
181
|
"attribute": "accessible-label",
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { Component, h, Host, Prop } from "@stencil/core";
|
|
2
5
|
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
3
6
|
export class DuetBadge {
|
|
4
7
|
constructor() {
|
|
@@ -105,15 +105,15 @@
|
|
|
105
105
|
.duet-button.duet-m-0 {
|
|
106
106
|
margin: 0 !important;
|
|
107
107
|
}
|
|
108
|
-
.duet-button.duet-button-is-small {
|
|
108
|
+
.duet-button.duet-button-is-small:not(.duet-button-icon-only) {
|
|
109
109
|
padding: 9px 19px 10px !important;
|
|
110
110
|
min-width: 5.3333333333rem;
|
|
111
111
|
font-size: 0.875rem;
|
|
112
112
|
}
|
|
113
|
-
.duet-button.duet-button-is-small.icon {
|
|
113
|
+
.duet-button.duet-button-is-small:not(.duet-button-icon-only).icon {
|
|
114
114
|
padding-left: 48px !important;
|
|
115
115
|
}
|
|
116
|
-
.duet-button.duet-button-is-small.icon-right {
|
|
116
|
+
.duet-button.duet-button-is-small:not(.duet-button-icon-only).icon-right {
|
|
117
117
|
padding-right: 48px !important;
|
|
118
118
|
padding-left: 20px !important;
|
|
119
119
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Element, Event, h, Host, Method, Prop, Watch } from "@stencil/core";
|
|
5
5
|
import { DuetStringsExternalDefaults } from "../../common-strings";
|
|
6
|
+
import { getLanguage, getLocaleString } from "../../utils/language-utils";
|
|
7
|
+
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
8
|
+
import { getColorByName } from "../../utils/token-utils";
|
|
6
9
|
export class DuetButton {
|
|
7
10
|
constructor() {
|
|
8
11
|
/**
|
|
@@ -57,17 +60,20 @@ export class DuetButton {
|
|
|
57
60
|
this.external = false;
|
|
58
61
|
/**
|
|
59
62
|
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
63
|
+
* @default "fi"
|
|
60
64
|
*/
|
|
61
65
|
this.language = getLanguage();
|
|
62
66
|
/**
|
|
63
67
|
* Property to change accessibleLabelExternal defaults on the component.
|
|
64
68
|
* normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
|
|
69
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
65
70
|
*/
|
|
66
71
|
this.accessibleLabelExternalDefaults = DuetStringsExternalDefaults;
|
|
67
72
|
/**
|
|
68
73
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
74
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
69
75
|
*/
|
|
70
|
-
this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults
|
|
76
|
+
this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults);
|
|
71
77
|
/**
|
|
72
78
|
* Icon to display to the left of the button content.
|
|
73
79
|
* This is ignored/overridden when button is used as an external link.
|
|
@@ -663,6 +669,9 @@ export class DuetButton {
|
|
|
663
669
|
"tags": [{
|
|
664
670
|
"text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing",
|
|
665
671
|
"name": "deprecated"
|
|
672
|
+
}, {
|
|
673
|
+
"text": "\"fi\"",
|
|
674
|
+
"name": "default"
|
|
666
675
|
}],
|
|
667
676
|
"text": ""
|
|
668
677
|
},
|
|
@@ -671,11 +680,11 @@ export class DuetButton {
|
|
|
671
680
|
"defaultValue": "getLanguage()"
|
|
672
681
|
},
|
|
673
682
|
"accessibleLabelExternalDefaults": {
|
|
674
|
-
"type": "
|
|
683
|
+
"type": "string",
|
|
675
684
|
"mutable": false,
|
|
676
685
|
"complexType": {
|
|
677
|
-
"original": "DuetLangObject",
|
|
678
|
-
"resolved": "DuetLangObject",
|
|
686
|
+
"original": "DuetLangObject | string",
|
|
687
|
+
"resolved": "DuetLangObject | string",
|
|
679
688
|
"references": {
|
|
680
689
|
"DuetLangObject": {
|
|
681
690
|
"location": "import",
|
|
@@ -686,9 +695,14 @@ export class DuetButton {
|
|
|
686
695
|
"required": false,
|
|
687
696
|
"optional": false,
|
|
688
697
|
"docs": {
|
|
689
|
-
"tags": [
|
|
698
|
+
"tags": [{
|
|
699
|
+
"text": "{fi: \"Avautuu uuteen ikkunaan\",sv: \"\u00D6ppnas i nytt f\u00F6nster\",en: \"Opens in a new window\"}",
|
|
700
|
+
"name": "default"
|
|
701
|
+
}],
|
|
690
702
|
"text": "Property to change accessibleLabelExternal defaults on the component.\nnormally you would handle these strings on an application level and override @accessibleLabelExternal when needed"
|
|
691
703
|
},
|
|
704
|
+
"attribute": "accessible-label-external-default",
|
|
705
|
+
"reflect": false,
|
|
692
706
|
"defaultValue": "DuetStringsExternalDefaults"
|
|
693
707
|
},
|
|
694
708
|
"accessibleLabelExternal": {
|
|
@@ -702,12 +716,15 @@ export class DuetButton {
|
|
|
702
716
|
"required": false,
|
|
703
717
|
"optional": false,
|
|
704
718
|
"docs": {
|
|
705
|
-
"tags": [
|
|
719
|
+
"tags": [{
|
|
720
|
+
"text": "{fi: \"Avautuu uuteen ikkunaan\",sv: \"\u00D6ppnas i nytt f\u00F6nster\",en: \"Opens in a new window\"}",
|
|
721
|
+
"name": "default"
|
|
722
|
+
}],
|
|
706
723
|
"text": "Adds accessible label for tooltip that is shown in external link (url & external have both been set)"
|
|
707
724
|
},
|
|
708
725
|
"attribute": "accessible-label-external",
|
|
709
726
|
"reflect": false,
|
|
710
|
-
"defaultValue": "getLocaleString(this.accessibleLabelExternalDefaults
|
|
727
|
+
"defaultValue": "getLocaleString(this.accessibleLabelExternalDefaults)"
|
|
711
728
|
},
|
|
712
729
|
"icon": {
|
|
713
730
|
"type": "string",
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { Component, h, Host, Prop } from "@stencil/core";
|
|
2
5
|
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
3
6
|
export class DuetCaption {
|
|
4
7
|
constructor() {
|
|
@@ -134,20 +134,22 @@
|
|
|
134
134
|
|
|
135
135
|
.duet-card-heading-grid {
|
|
136
136
|
display: flex;
|
|
137
|
-
|
|
137
|
+
flex-direction: row;
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
|
|
140
|
+
.duet-card-icon {
|
|
141
|
+
align-self: center;
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
.duet-card-heading-text {
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
flex: 1;
|
|
146
|
+
word-break: break-word;
|
|
146
147
|
}
|
|
147
148
|
|
|
148
149
|
.duet-card-secondary-heading {
|
|
149
150
|
font-size: 1rem;
|
|
150
151
|
font-weight: 600;
|
|
152
|
+
word-break: break-word;
|
|
151
153
|
}
|
|
152
154
|
|
|
153
155
|
.duet-card-heading {
|
|
@@ -160,8 +162,6 @@
|
|
|
160
162
|
font-size: 1.25rem;
|
|
161
163
|
font-weight: 800;
|
|
162
164
|
color: #00294d;
|
|
163
|
-
text-overflow: ellipsis;
|
|
164
|
-
white-space: nowrap;
|
|
165
165
|
border-bottom: 1px solid #e1e3e6;
|
|
166
166
|
}
|
|
167
167
|
@media (min-width: 36em) {
|
|
@@ -340,6 +340,9 @@
|
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
.duet-card-caret {
|
|
343
|
+
position: relative;
|
|
344
|
+
top: 6px;
|
|
345
|
+
align-self: flex-start;
|
|
343
346
|
transition: 300ms ease;
|
|
344
347
|
}
|
|
345
348
|
[aria-expanded=false] .duet-card-caret {
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
3
4
|
import arrowUpIcon from "@duetds/icons/lib/assets/action-arrow-up";
|
|
5
|
+
import { Component, Element, Event, Fragment, h, Host, Method, Prop } from "@stencil/core";
|
|
6
|
+
import { createID } from "../../utils/create-id";
|
|
4
7
|
import { isKeyboardClick } from "../../utils/keyboard-utils";
|
|
5
8
|
import { sanitizeString } from "../../utils/string-utils";
|
|
9
|
+
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
6
10
|
import { getColorByName } from "../../utils/token-utils";
|
|
7
|
-
import { createID } from "../../utils/create-id";
|
|
8
11
|
/**
|
|
9
12
|
* @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.
|
|
10
13
|
* @slot footer - Footer content.
|
|
@@ -102,13 +105,11 @@ export class DuetCard {
|
|
|
102
105
|
this.icon && (h(Fragment, null,
|
|
103
106
|
h("duet-icon", { class: "duet-card-icon", name: this.icon, size: "medium", margin: "none", color: "currentColor" }),
|
|
104
107
|
h("duet-spacer", { direction: "horizontal", size: "small" }))),
|
|
105
|
-
h("div", { class: "
|
|
106
|
-
this.secondaryHeading && (h(Fragment, null,
|
|
107
|
-
h("duet-spacer", { direction: "horizontal", size: "small" }),
|
|
108
|
-
h("div", { class: "duet-card-secondary-heading" }, this.secondaryHeading))),
|
|
108
|
+
h("div", { class: "duet-card-heading-text" }, this.heading),
|
|
109
109
|
this.collapsible && (h(Fragment, null,
|
|
110
110
|
h("duet-spacer", { direction: "horizontal", size: "small" }),
|
|
111
|
-
h("duet-icon", { class: "duet-card-caret", icon: arrowUpIcon.svg, size: "small", margin: "none", color: "currentColor" }))))
|
|
111
|
+
h("duet-icon", { class: "duet-card-caret", icon: arrowUpIcon.svg, size: "small", margin: "none", color: "currentColor" })))),
|
|
112
|
+
this.secondaryHeading && h("div", { class: "duet-card-secondary-heading" }, this.secondaryHeading)));
|
|
112
113
|
}
|
|
113
114
|
/**
|
|
114
115
|
* Sets focus on the specified `duet-card`. Use this method instead of the global
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Element, Event, h, Host, Method, Prop } from "@stencil/core";
|
|
2
5
|
import { createID } from "../../utils/create-id";
|
|
3
6
|
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
4
7
|
export class DuetCheckbox {
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
3
4
|
import infoIcon from "@duetds/icons/lib/assets/messaging-info";
|
|
4
|
-
import {
|
|
5
|
+
import { Component, Element, Event, h, Host, Listen, Method, Prop, State } from "@stencil/core";
|
|
6
|
+
import { DuetStringsExternalDefaults } from "../../common-strings";
|
|
7
|
+
import { createID } from "../../utils/create-id";
|
|
5
8
|
import { isKeyboardClick, isQuestionKey } from "../../utils/keyboard-utils";
|
|
6
9
|
import { getLocaleString } from "../../utils/language-utils";
|
|
7
|
-
import {
|
|
10
|
+
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
8
11
|
/**
|
|
9
12
|
* @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.
|
|
10
13
|
* @slot info - Info content. Anything inserted into this slot is displayed in a collapsible info box.
|
|
@@ -38,6 +41,7 @@ export class DuetChoice {
|
|
|
38
41
|
/**
|
|
39
42
|
* Accessible label that is read for screen reader users in the info toggle trigger button.
|
|
40
43
|
* Not visible for normal users.
|
|
44
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
41
45
|
*/
|
|
42
46
|
this.accessibleLabelInfoButton = getLocaleString(this.accessibleLabelInfoButtonDefaults);
|
|
43
47
|
/**
|
|
@@ -330,11 +334,11 @@ export class DuetChoice {
|
|
|
330
334
|
"defaultValue": "\"label\""
|
|
331
335
|
},
|
|
332
336
|
"accessibleLabelInfoButtonDefaults": {
|
|
333
|
-
"type": "
|
|
337
|
+
"type": "string",
|
|
334
338
|
"mutable": false,
|
|
335
339
|
"complexType": {
|
|
336
|
-
"original": "DuetLangObject",
|
|
337
|
-
"resolved": "DuetLangObject",
|
|
340
|
+
"original": "DuetLangObject | string",
|
|
341
|
+
"resolved": "DuetLangObject | string",
|
|
338
342
|
"references": {
|
|
339
343
|
"DuetLangObject": {
|
|
340
344
|
"location": "import",
|
|
@@ -348,6 +352,8 @@ export class DuetChoice {
|
|
|
348
352
|
"tags": [],
|
|
349
353
|
"text": "Property to change accessibleLabelInfoButton defaults on the component.\nnormally you would handle these strings on an application level and override @accessibleLabelInfoButton when needed"
|
|
350
354
|
},
|
|
355
|
+
"attribute": "accessible-label-info-default",
|
|
356
|
+
"reflect": false,
|
|
351
357
|
"defaultValue": "DuetStringsExternalDefaults"
|
|
352
358
|
},
|
|
353
359
|
"accessibleLabelInfoButton": {
|
|
@@ -361,7 +367,10 @@ export class DuetChoice {
|
|
|
361
367
|
"required": false,
|
|
362
368
|
"optional": false,
|
|
363
369
|
"docs": {
|
|
364
|
-
"tags": [
|
|
370
|
+
"tags": [{
|
|
371
|
+
"text": "{fi: \"Avautuu uuteen ikkunaan\",sv: \"\u00D6ppnas i nytt f\u00F6nster\",en: \"Opens in a new window\"}",
|
|
372
|
+
"name": "default"
|
|
373
|
+
}],
|
|
365
374
|
"text": "Accessible label that is read for screen reader users in the info toggle trigger button.\nNot visible for normal users."
|
|
366
375
|
},
|
|
367
376
|
"attribute": "accessible-label-info-button",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
@media (min-width: 48em) {
|
|
31
31
|
:host(.horizontal) .duet-choice-group {
|
|
32
32
|
display: flex;
|
|
33
|
+
margin-bottom: 0;
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
|
|
@@ -37,7 +38,8 @@
|
|
|
37
38
|
display: flex;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
.
|
|
41
|
+
.duet-choice-group {
|
|
41
42
|
position: relative;
|
|
42
43
|
width: 100%;
|
|
44
|
+
margin-bottom: -12px;
|
|
43
45
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Element, h, Host, Prop, Watch } from "@stencil/core";
|
|
3
5
|
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
6
|
+
import { findCheckedOption, watchForOptions } from "../../utils/watch-options";
|
|
4
7
|
export class DuetChoiceGroup {
|
|
5
8
|
constructor() {
|
|
6
9
|
/**
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
4
|
import icon from "@duetds/icons/lib/assets/action-arrow-down-small";
|
|
5
|
+
import * as tokens from "@duetds/tokens/lib/tokens.json";
|
|
6
|
+
import { Component, Element, Event, h, Host, Method, Prop } from "@stencil/core";
|
|
7
|
+
import { createID } from "../../utils/create-id";
|
|
5
8
|
import { isKeyboardClick } from "../../utils/keyboard-utils";
|
|
9
|
+
import { sanitizeString } from "../../utils/string-utils";
|
|
10
|
+
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
6
11
|
export class DuetCollapsible {
|
|
7
12
|
constructor() {
|
|
8
13
|
this.id = createID("DuetCollapsible");
|
|
@@ -18,6 +23,26 @@ export class DuetCollapsible {
|
|
|
18
23
|
* The font weight of the heading
|
|
19
24
|
*/
|
|
20
25
|
this.headingWeight = "semibold";
|
|
26
|
+
/**
|
|
27
|
+
* Custom headingSize to be used for font size of heading, as a design token entered
|
|
28
|
+
* in kebab-case x-small -> font-size-x-small.
|
|
29
|
+
* Example:
|
|
30
|
+
* # 12px (0.75rem) ------ +2px (x-small)
|
|
31
|
+
* # 14px (0.875rem) ------ +2px (small)
|
|
32
|
+
* # 16px (1rem) ------ +2px (medium)
|
|
33
|
+
* # 20px (1.25rem) ------ +4px (large)
|
|
34
|
+
* # 24px (1.5rem) ------ +4px (x-large)
|
|
35
|
+
* # 36px (2.25rem) ------ +12px (xx-large)
|
|
36
|
+
* # 48px (3rem) ------ +12px (xxx-large)
|
|
37
|
+
* # 72px (4.5rem) ------ +24px (xxxx-large)
|
|
38
|
+
*/
|
|
39
|
+
this.headingSize = undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The actual heading level used for the heading in html markup. This setting
|
|
42
|
+
* exists for accessibility reasons. It doesn’t change the style visually.
|
|
43
|
+
* only variations of h1-h6 area accepted
|
|
44
|
+
*/
|
|
45
|
+
this.headingLevel = undefined;
|
|
21
46
|
/**
|
|
22
47
|
* Controls the margin of the component.
|
|
23
48
|
*/
|
|
@@ -31,6 +56,39 @@ export class DuetCollapsible {
|
|
|
31
56
|
this.handleClick(e);
|
|
32
57
|
}
|
|
33
58
|
};
|
|
59
|
+
this.getFontSizeFromTokens = (fontSize = this.headingSize) => {
|
|
60
|
+
if (!fontSize) {
|
|
61
|
+
return tokens["font_size_medium"];
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
const searchRegExp = /-/g;
|
|
65
|
+
const fontSizeReplaced = fontSize.replace(searchRegExp, "_");
|
|
66
|
+
return tokens[`font_size_${fontSizeReplaced}`];
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
this.getEquivalentIconSize = (fontSize = this.headingSize) => {
|
|
70
|
+
switch (fontSize) {
|
|
71
|
+
case "x-small":
|
|
72
|
+
return "xx-small";
|
|
73
|
+
case "small":
|
|
74
|
+
return "xx-small";
|
|
75
|
+
case "medium":
|
|
76
|
+
return "xx-small";
|
|
77
|
+
case "large":
|
|
78
|
+
return "x-small";
|
|
79
|
+
case "x-large":
|
|
80
|
+
return "small";
|
|
81
|
+
case "xx-large":
|
|
82
|
+
return "medium";
|
|
83
|
+
case "xxx-large":
|
|
84
|
+
return "x-large";
|
|
85
|
+
case "xxxx-large":
|
|
86
|
+
return "xxx-large";
|
|
87
|
+
default:
|
|
88
|
+
// default size
|
|
89
|
+
return "xx-small";
|
|
90
|
+
}
|
|
91
|
+
};
|
|
34
92
|
this.handleClick = (e) => {
|
|
35
93
|
e.preventDefault();
|
|
36
94
|
this.open = !this.open;
|
|
@@ -61,14 +119,15 @@ export class DuetCollapsible {
|
|
|
61
119
|
* Always the last one in the class.
|
|
62
120
|
*/
|
|
63
121
|
render() {
|
|
122
|
+
const HeadingTagName = this.headingLevel ? sanitizeString(this.headingLevel) : "div";
|
|
64
123
|
return (h(Host, { class: { "duet-m-0": this.margin === "none" } },
|
|
65
|
-
h(
|
|
124
|
+
h(HeadingTagName, { class: {
|
|
66
125
|
"duet-collapsible-heading": true,
|
|
67
126
|
"duet-theme-turva": this.theme === "turva",
|
|
68
127
|
"duet-collapsible-normal-weight": this.headingWeight === "normal",
|
|
69
|
-
}, 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 },
|
|
128
|
+
}, 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 },
|
|
70
129
|
h("div", { class: "duet-collapsible-heading-icon" },
|
|
71
|
-
h("duet-icon", { margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary", size:
|
|
130
|
+
h("duet-icon", { margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary", size: this.getEquivalentIconSize(), icon: icon.svg })),
|
|
72
131
|
h("div", { class: "duet-collapsible-heading-content" }, this.heading)),
|
|
73
132
|
h("div", { id: this.id, class: { "duet-collapsible-content": true, "duet-theme-turva": this.theme === "turva" } },
|
|
74
133
|
h("slot", null))));
|
|
@@ -145,6 +204,51 @@ export class DuetCollapsible {
|
|
|
145
204
|
"reflect": false,
|
|
146
205
|
"defaultValue": "\"semibold\""
|
|
147
206
|
},
|
|
207
|
+
"headingSize": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"mutable": false,
|
|
210
|
+
"complexType": {
|
|
211
|
+
"original": "DuetCollapsibleHeadingFontSize",
|
|
212
|
+
"resolved": "\"large\" | \"medium\" | \"small\" | \"x-large\" | \"x-small\" | \"xx-large\" | \"xxx-large\" | \"xxxx-large\"",
|
|
213
|
+
"references": {
|
|
214
|
+
"DuetCollapsibleHeadingFontSize": {
|
|
215
|
+
"location": "local"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"required": false,
|
|
220
|
+
"optional": false,
|
|
221
|
+
"docs": {
|
|
222
|
+
"tags": [],
|
|
223
|
+
"text": "Custom headingSize to be used for font size of heading, as a design token entered\nin kebab-case x-small -> font-size-x-small.\nExample:\n# 12px (0.75rem) ------ +2px (x-small)\n# 14px (0.875rem) ------ +2px (small)\n# 16px (1rem) ------ +2px (medium)\n# 20px (1.25rem) ------ +4px (large)\n# 24px (1.5rem) ------ +4px (x-large)\n# 36px (2.25rem) ------ +12px (xx-large)\n# 48px (3rem) ------ +12px (xxx-large)\n# 72px (4.5rem) ------ +24px (xxxx-large)"
|
|
224
|
+
},
|
|
225
|
+
"attribute": "heading-size",
|
|
226
|
+
"reflect": false,
|
|
227
|
+
"defaultValue": "undefined"
|
|
228
|
+
},
|
|
229
|
+
"headingLevel": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"mutable": false,
|
|
232
|
+
"complexType": {
|
|
233
|
+
"original": "DuetHeadingLevel | undefined",
|
|
234
|
+
"resolved": "\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
|
|
235
|
+
"references": {
|
|
236
|
+
"DuetHeadingLevel": {
|
|
237
|
+
"location": "import",
|
|
238
|
+
"path": "../../common-types"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"required": false,
|
|
243
|
+
"optional": false,
|
|
244
|
+
"docs": {
|
|
245
|
+
"tags": [],
|
|
246
|
+
"text": "The actual heading level used for the heading in html markup. This setting\nexists for accessibility reasons. It doesn\u2019t change the style visually.\nonly variations of h1-h6 area accepted"
|
|
247
|
+
},
|
|
248
|
+
"attribute": "heading-level",
|
|
249
|
+
"reflect": false,
|
|
250
|
+
"defaultValue": "undefined"
|
|
251
|
+
},
|
|
148
252
|
"margin": {
|
|
149
253
|
"type": "string",
|
|
150
254
|
"mutable": false,
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Element, Event, h, Host, Prop } from "@stencil/core";
|
|
2
5
|
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
3
6
|
export class DuetCookieConsent {
|
|
4
7
|
constructor() {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
1
4
|
import { h } from "@stencil/core";
|
|
2
|
-
import { isEqual } from "./date-utils";
|
|
3
5
|
import i18n from "./date-i18n";
|
|
6
|
+
import { isEqual } from "./date-utils";
|
|
4
7
|
export const DatePickerDay = ({ focusedDay, today, day, language, onDaySelect, onKeyboardNavigation, ref, inRange, isSelected, }) => {
|
|
5
8
|
const isToday = isEqual(day, today);
|
|
6
9
|
const isFocused = isEqual(day, focusedDay);
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
2
4
|
import formDateIcon from "@duetds/icons/lib/assets/form-date";
|
|
5
|
+
import { h } from "@stencil/core";
|
|
3
6
|
import i18n from "./date-i18n";
|
|
4
7
|
export 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, }) => {
|
|
5
8
|
const { buttonLabel, selected, formatterLong } = i18n[language];
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
1
4
|
import { h } from "@stencil/core";
|
|
5
|
+
import i18n from "./date-i18n";
|
|
2
6
|
import { DatePickerDay } from "./date-picker-day";
|
|
3
7
|
import { getViewOfMonth, inRange, isEqual } from "./date-utils";
|
|
4
|
-
import i18n from "./date-i18n";
|
|
5
8
|
import { chunk } from "./utils";
|
|
6
9
|
export const DatePickerMonth = ({ selectedDate, focusedDate, labelledById, theme, language, min, max, onDateSelect, onKeyboardNavigation, focusedDayRef, onFocusEnter, onFocusExit, }) => {
|
|
7
10
|
const { dayLabels } = i18n[language];
|