@duetds/components 4.30.0 → 4.33.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/hydrate/index.js +1481 -434
- package/lib/cjs/{dom-e89ebf90.js → dom-c850c8d7.js} +1 -1
- package/lib/cjs/duet-alert.cjs.entry.js +4 -2
- package/lib/cjs/duet-badge.cjs.entry.js +2 -2
- package/lib/cjs/duet-button_2.cjs.entry.js +6 -5
- package/lib/cjs/duet-caption_4.cjs.entry.js +21 -15
- package/lib/cjs/duet-card.cjs.entry.js +6 -6
- package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
- package/lib/cjs/duet-choice_2.cjs.entry.js +56 -25
- package/lib/cjs/duet-collapsible.cjs.entry.js +5 -2
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +23 -13
- package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-editable-table-button_3.cjs.entry.js +232 -0
- package/lib/cjs/{duet-table.cjs.entry.js → duet-editable-table_3.cjs.entry.js} +206 -2
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +4 -4
- package/lib/cjs/duet-grid_2.cjs.entry.js +52 -4
- package/lib/cjs/duet-header_2.cjs.entry.js +26 -10
- package/lib/cjs/duet-hero.cjs.entry.js +6 -6
- package/lib/cjs/duet-icon.cjs.entry.js +6 -14
- package/lib/cjs/duet-input_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-modal.cjs.entry.js +8 -7
- package/lib/cjs/duet-notification_2.cjs.entry.js +6 -5
- package/lib/cjs/duet-number-input.cjs.entry.js +36 -15
- package/lib/cjs/duet-progress.cjs.entry.js +75 -0
- package/lib/cjs/duet-radio_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
- package/lib/cjs/duet-select.cjs.entry.js +6 -6
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-tab_2.cjs.entry.js +12 -6
- package/lib/cjs/duet-textarea.cjs.entry.js +5 -5
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-tooltip.cjs.entry.js +21 -10
- package/lib/cjs/duet-tray.cjs.entry.js +21 -10
- package/lib/cjs/duet-upload.cjs.entry.js +403 -180
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +4 -4
- package/lib/cjs/{focus-utils-7605778f.js → focus-utils-a7a1fb8b.js} +1 -1
- package/lib/cjs/{index-0c949193.js → index-b724d698.js} +88 -77
- package/lib/cjs/js-utils-33a9dbe3.js +16 -0
- package/lib/cjs/{language-utils-70d6a9a4.js → language-utils-aa282901.js} +28 -9
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{shadow-css-0c8c175b.js → shadow-css-e3edeed1.js} +9 -10
- package/lib/cjs/{string-utils-a6de43d8.js → string-utils-267e3dbb.js} +7 -0
- package/lib/cjs/{token-utils-13e5d13e.js → token-utils-63a9c8dc.js} +1 -1
- package/lib/cjs/{tokens.module-53b3bd92.js → tokens.module-6b2df1c2.js} +2 -0
- package/lib/cjs/{watch-options-3877c082.js → watch-options-d88afac0.js} +29 -6
- package/lib/collection/collection-manifest.json +15 -8
- package/lib/collection/components/duet-alert/duet-alert.js +12 -6
- package/lib/collection/components/duet-badge/duet-badge.css +1 -0
- package/lib/collection/components/duet-button/duet-button.js +17 -15
- package/lib/collection/components/duet-card/duet-card.css +30 -7
- package/lib/collection/components/duet-card/duet-card.js +4 -3
- package/lib/collection/components/duet-checkbox/duet-checkbox.css +1 -1
- package/lib/collection/components/duet-choice/duet-choice.css +16 -3
- package/lib/collection/components/duet-choice/duet-choice.js +123 -36
- package/lib/collection/components/duet-choice-group/duet-choice-group.css +1 -0
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +4 -4
- package/lib/collection/components/duet-date-picker/duet-date-picker.css +1 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +78 -43
- package/lib/collection/components/duet-editable-table/duet-editable-table-button.css +32 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table-button.js +218 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table-item.css +36 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table-item.js +203 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table-tabledata.js +13 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table.css +16 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +348 -0
- package/lib/collection/components/duet-footer/duet-footer.js +17 -15
- package/lib/collection/components/duet-grid/duet-grid.js +57 -6
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +4 -4
- package/lib/collection/components/duet-header/duet-header.js +60 -35
- package/lib/collection/components/duet-heading/duet-heading.css +4 -0
- package/lib/collection/components/duet-heading/duet-heading.js +7 -6
- package/lib/collection/components/duet-hero/duet-hero.js +20 -15
- package/lib/collection/components/duet-icon/duet-icon.js +2 -6
- package/lib/collection/components/duet-icon/icon-utils.js +5 -8
- package/lib/collection/components/duet-input/duet-input.css +15 -0
- package/lib/collection/components/duet-input/duet-input.js +4 -4
- package/lib/collection/components/duet-label/duet-label.css +2 -0
- package/lib/collection/components/duet-link/duet-link.js +18 -19
- package/lib/collection/components/duet-logo/duet-logo.js +4 -4
- package/lib/collection/components/duet-modal/duet-modal.js +22 -17
- package/lib/collection/components/duet-notification/duet-notification.js +8 -8
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +20 -15
- package/lib/collection/components/duet-number-input/duet-number-input.js +153 -29
- package/lib/collection/components/duet-paragraph/duet-paragraph.css +6 -0
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +34 -3
- package/lib/collection/components/duet-progress/duet-progress.css +103 -0
- package/lib/collection/components/duet-progress/duet-progress.js +240 -0
- package/lib/collection/components/duet-radio/duet-radio.js +6 -6
- package/lib/collection/components/duet-select/duet-select.css +15 -0
- package/lib/collection/components/duet-select/duet-select.js +3 -3
- package/lib/collection/components/duet-step/duet-step.js +8 -8
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +2 -2
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +43 -12
- package/lib/collection/components/duet-textarea/duet-textarea.css +19 -0
- package/lib/collection/components/duet-textarea/duet-textarea.js +5 -4
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +82 -20
- package/lib/collection/components/duet-tray/duet-tray.js +79 -17
- package/lib/collection/components/duet-upload/duet-upload-aria-status.js +217 -0
- package/lib/collection/components/duet-upload/duet-upload-editable-item-error.js +16 -0
- package/lib/collection/components/duet-upload/duet-upload-editable-item-inprogres.js +8 -0
- package/lib/collection/components/duet-upload/duet-upload-editable-item-success.js +30 -0
- package/lib/collection/components/duet-upload/duet-upload.css +17 -86
- package/lib/collection/components/duet-upload/duet-upload.js +551 -153
- package/lib/collection/components/duet-upload/errorcodes.utils.js +16 -4
- package/lib/collection/components/duet-upload/xhr.helpers.js +2 -6
- package/lib/collection/utils/fixture-utils.js +7 -5
- package/lib/collection/utils/js-utils.js +12 -0
- package/lib/collection/utils/language-utils.js +26 -9
- package/lib/collection/utils/string-utils.js +6 -0
- package/lib/collection/utils/watch-options.js +35 -6
- package/lib/custom-elements-bundle/index.d.ts +30 -0
- package/lib/custom-elements-bundle/index.js +1603 -721
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-4a7911fd.entry.js → p-00735436.entry.js} +1 -1
- package/lib/duet/p-060d79be.entry.js +4 -0
- package/lib/duet/p-0d22396e.system.js +16 -0
- package/lib/duet/p-10deead0.system.js +4 -0
- package/lib/duet/p-1208c84f.entry.js +4 -0
- package/lib/duet/p-12721178.js +4 -0
- package/lib/duet/p-155ef581.system.entry.js +4 -0
- package/lib/duet/p-16c48c5d.entry.js +4 -0
- package/lib/duet/p-1797df7b.system.entry.js +4 -0
- package/lib/duet/p-1a08fc22.system.entry.js +4 -0
- package/lib/duet/{p-d1817efe.system.entry.js → p-237e47b4.system.entry.js} +1 -1
- package/lib/duet/p-2443bdca.system.entry.js +4 -0
- package/lib/duet/p-263bc9cd.system.entry.js +4 -0
- package/lib/duet/p-2764f081.js +4 -0
- package/lib/duet/p-27d80cef.system.entry.js +4 -0
- package/lib/duet/p-28e02c08.entry.js +4 -0
- package/lib/duet/{p-f81d8534.entry.js → p-2bb1460c.entry.js} +1 -1
- package/lib/duet/p-33c58756.entry.js +4 -0
- package/lib/duet/{p-bd9a7d8f.js → p-35a3794e.js} +0 -0
- package/lib/duet/{p-bbc229d8.system.entry.js → p-374fb7e6.system.entry.js} +1 -1
- package/lib/duet/p-387823af.system.entry.js +4 -0
- package/lib/duet/p-3af5d66f.entry.js +4 -0
- package/lib/duet/{p-322d1c38.js → p-3c1971d8.js} +1 -1
- package/lib/duet/{p-7e108b7e.entry.js → p-4607af59.entry.js} +1 -1
- package/lib/duet/p-48d1eb1f.system.entry.js +4 -0
- package/lib/duet/p-4a87e9ab.system.entry.js +4 -0
- package/lib/duet/{p-031c2cd8.system.entry.js → p-4b6ebe40.system.entry.js} +1 -1
- package/lib/duet/p-4e28da18.system.entry.js +4 -0
- package/lib/duet/p-548d484e.js +4 -0
- package/lib/duet/p-5826523b.entry.js +4 -0
- package/lib/duet/{p-ce1374a4.system.entry.js → p-58750bae.system.entry.js} +1 -1
- package/lib/duet/p-597d99c7.entry.js +4 -0
- package/lib/duet/p-5ea0cd19.entry.js +4 -0
- package/lib/duet/p-63d5bf73.system.entry.js +4 -0
- package/lib/duet/p-67d9a9a9.system.entry.js +4 -0
- package/lib/duet/p-6a19b5ec.entry.js +4 -0
- package/lib/duet/p-6cc3be76.system.entry.js +4 -0
- package/lib/duet/p-6e363557.system.js +4 -0
- package/lib/duet/p-6e6e76db.system.entry.js +4 -0
- package/lib/duet/p-70fafc98.system.js +4 -0
- package/lib/duet/p-7368b14e.system.entry.js +4 -0
- package/lib/duet/p-751542a0.system.entry.js +4 -0
- package/lib/duet/p-794659ac.entry.js +4 -0
- package/lib/duet/p-7e8d5bb9.system.entry.js +4 -0
- package/lib/duet/p-7fee0d23.system.entry.js +4 -0
- package/lib/duet/p-81867417.system.js +4 -0
- package/lib/duet/p-86daec1c.entry.js +4 -0
- package/lib/duet/{p-4265de16.system.entry.js → p-8b5ca0e7.system.entry.js} +1 -1
- package/lib/duet/{p-66dde4d2.entry.js → p-8cb7416d.entry.js} +1 -1
- package/lib/duet/p-8f826843.system.entry.js +4 -0
- package/lib/duet/p-94169303.entry.js +4 -0
- package/lib/duet/{p-36007600.entry.js → p-9481e312.entry.js} +1 -1
- package/lib/duet/{p-f82709ba.entry.js → p-984576c9.entry.js} +1 -1
- package/lib/duet/p-986779fb.js +4 -0
- package/lib/duet/p-987edcd0.js +15 -0
- package/lib/duet/{p-35e45c19.system.js → p-9a945278.system.js} +1 -1
- package/lib/duet/p-9d73343a.entry.js +4 -0
- package/lib/duet/{p-e26116e0.system.entry.js → p-9dca5c22.system.entry.js} +1 -1
- package/lib/duet/p-a207b008.entry.js +4 -0
- package/lib/duet/p-a5b9c192.system.entry.js +4 -0
- package/lib/duet/p-a6a84ec6.entry.js +4 -0
- package/lib/duet/{p-2d2c45f9.entry.js → p-a890da72.entry.js} +1 -1
- package/lib/duet/p-a9859a82.entry.js +4 -0
- package/lib/duet/p-aba68b7b.entry.js +4 -0
- package/lib/duet/p-acc57c77.entry.js +4 -0
- package/lib/duet/{p-2826f987.js → p-ad07f399.js} +1 -1
- package/lib/duet/p-aee24388.system.entry.js +4 -0
- package/lib/duet/p-aef1b720.system.entry.js +4 -0
- package/lib/duet/{p-62806bb6.system.entry.js → p-af41d894.system.entry.js} +1 -1
- package/lib/duet/p-b25d3769.js +4 -0
- package/lib/duet/{p-dee41056.system.entry.js → p-b32224fe.system.entry.js} +1 -1
- package/lib/duet/p-b3744481.entry.js +4 -0
- package/lib/duet/{p-de2be65b.system.js → p-b42d81c3.system.js} +1 -1
- package/lib/duet/{p-27d538f7.system.entry.js → p-b4e87f02.system.entry.js} +1 -1
- package/lib/duet/{p-f71f12ed.entry.js → p-bf93a991.entry.js} +1 -1
- package/lib/duet/{p-fd98468a.system.js → p-c18a599e.system.js} +0 -0
- package/lib/duet/p-c2e77278.entry.js +4 -0
- package/lib/duet/p-c34329f3.entry.js +4 -0
- package/lib/duet/{p-59a07cf9.entry.js → p-c36b4da0.entry.js} +1 -1
- package/lib/duet/{p-a321a98c.entry.js → p-cdd70b93.entry.js} +1 -1
- package/lib/duet/p-d1c19f04.system.entry.js +4 -0
- package/lib/duet/{p-f71e337e.system.entry.js → p-d3a3c3c7.system.entry.js} +1 -1
- package/lib/duet/{p-345ea4f2.system.entry.js → p-d4118b6e.system.entry.js} +1 -1
- package/lib/duet/{p-3dc9d15d.system.entry.js → p-d744d188.system.entry.js} +1 -1
- package/lib/duet/p-ddb6344c.system.js +4 -0
- package/lib/duet/p-de07c7d7.entry.js +4 -0
- package/lib/duet/p-dfe79666.system.entry.js +4 -0
- package/lib/duet/p-e12f2b8b.system.js +4 -0
- package/lib/duet/p-e2a44156.js +4 -0
- package/lib/duet/p-e76b722f.entry.js +4 -0
- package/lib/duet/p-e964d062.entry.js +4 -0
- package/lib/duet/p-eb55ccd2.system.js +4 -0
- package/lib/duet/p-f0a4b68d.system.entry.js +4 -0
- package/lib/duet/p-f364eb96.entry.js +4 -0
- package/lib/duet/{p-a88df408.entry.js → p-f8ce39fb.entry.js} +1 -1
- package/lib/esm/{dom-21034390.js → dom-58cd15f6.js} +1 -1
- package/lib/esm/duet-alert.entry.js +4 -2
- package/lib/esm/duet-badge.entry.js +2 -2
- package/lib/esm/duet-button_2.entry.js +6 -5
- package/lib/esm/duet-caption_4.entry.js +21 -15
- package/lib/esm/duet-card.entry.js +6 -6
- package/lib/esm/duet-checkbox.entry.js +2 -2
- package/lib/esm/duet-choice_2.entry.js +57 -26
- package/lib/esm/duet-collapsible.entry.js +5 -2
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +23 -13
- package/lib/esm/duet-divider_2.entry.js +1 -1
- package/lib/esm/duet-editable-table-button_3.entry.js +226 -0
- package/lib/esm/{duet-table.entry.js → duet-editable-table_3.entry.js} +205 -3
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +4 -4
- package/lib/esm/duet-grid_2.entry.js +52 -4
- package/lib/esm/duet-header_2.entry.js +26 -10
- package/lib/esm/duet-hero.entry.js +6 -6
- package/lib/esm/duet-icon.entry.js +6 -14
- package/lib/esm/duet-input_2.entry.js +7 -7
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +2 -2
- package/lib/esm/duet-modal.entry.js +8 -7
- package/lib/esm/duet-notification_2.entry.js +6 -5
- package/lib/esm/duet-number-input.entry.js +36 -15
- package/lib/esm/duet-progress.entry.js +71 -0
- package/lib/esm/duet-radio_2.entry.js +2 -2
- package/lib/esm/duet-range-slider.entry.js +2 -2
- package/lib/esm/duet-select.entry.js +6 -6
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-tab_2.entry.js +12 -6
- package/lib/esm/duet-textarea.entry.js +5 -5
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-tooltip.entry.js +21 -10
- package/lib/esm/duet-tray.entry.js +21 -10
- package/lib/esm/duet-upload.entry.js +403 -180
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{focus-utils-0b12f0df.js → focus-utils-1fe0dcd0.js} +1 -1
- package/lib/esm/{index-f70ddc7f.js → index-84d97bd1.js} +88 -78
- package/lib/esm/js-utils-b69f17df.js +14 -0
- package/lib/esm/{language-utils-ab9c3afc.js → language-utils-344d894c.js} +28 -10
- package/lib/esm/loader.js +3 -3
- package/lib/esm/{shadow-css-31e2d504.js → shadow-css-7c726abb.js} +9 -10
- package/lib/esm/{string-utils-69cf0d09.js → string-utils-2f1793b8.js} +7 -1
- package/lib/esm/{token-utils-5a35377f.js → token-utils-590d9413.js} +1 -1
- package/lib/esm/{tokens.module-edb66c04.js → tokens.module-49cbf963.js} +3 -1
- package/lib/esm/watch-options-dd55bce8.js +57 -0
- package/lib/esm-es5/{dom-21034390.js → dom-58cd15f6.js} +0 -0
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +2 -2
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +2 -2
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
- package/lib/esm-es5/duet-date-picker.entry.js +1 -1
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table-button_3.entry.js +4 -0
- package/lib/esm-es5/duet-editable-table_3.entry.js +4 -0
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +2 -2
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +2 -2
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.entry.js +2 -2
- package/lib/esm-es5/duet-progress.entry.js +4 -0
- package/lib/esm-es5/duet-radio_2.entry.js +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-tab_2.entry.js +2 -2
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +1 -1
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload.entry.js +2 -2
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/{focus-utils-0b12f0df.js → focus-utils-1fe0dcd0.js} +1 -1
- package/lib/esm-es5/index-84d97bd1.js +4 -0
- package/lib/esm-es5/js-utils-b69f17df.js +4 -0
- package/lib/esm-es5/language-utils-344d894c.js +4 -0
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/shadow-css-7c726abb.js +15 -0
- package/lib/esm-es5/{string-utils-69cf0d09.js → string-utils-2f1793b8.js} +1 -1
- package/lib/esm-es5/{token-utils-5a35377f.js → token-utils-590d9413.js} +1 -1
- package/lib/esm-es5/tokens.module-49cbf963.js +4 -0
- package/lib/esm-es5/watch-options-dd55bce8.js +4 -0
- package/lib/types/components/duet-alert/duet-alert.d.ts +2 -1
- package/lib/types/components/duet-button/duet-button.d.ts +1 -1
- package/lib/types/components/duet-choice/duet-choice.d.ts +24 -5
- package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +15 -9
- package/lib/types/components/duet-editable-table/duet-editable-table-button.d.ts +72 -0
- package/lib/types/components/duet-editable-table/duet-editable-table-item.d.ts +72 -0
- package/lib/types/components/duet-editable-table/duet-editable-table-tabledata.d.ts +7 -0
- package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +84 -0
- package/lib/types/components/duet-footer/duet-footer.d.ts +1 -1
- package/lib/types/components/duet-grid/duet-grid.d.ts +16 -2
- package/lib/types/components/duet-header/duet-header.d.ts +21 -5
- package/lib/types/components/duet-heading/duet-heading.d.ts +2 -2
- package/lib/types/components/duet-hero/duet-hero.d.ts +3 -3
- package/lib/types/components/duet-icon/duet-icon.d.ts +1 -1
- package/lib/types/components/duet-link/duet-link.d.ts +2 -3
- package/lib/types/components/duet-modal/duet-modal.d.ts +3 -3
- package/lib/types/components/duet-notification-drawer/duet-notification-drawer.d.ts +3 -3
- package/lib/types/components/duet-number-input/duet-number-input.d.ts +21 -0
- package/lib/types/components/duet-paragraph/duet-paragraph.d.ts +9 -1
- package/lib/types/components/duet-progress/duet-progress.d.ts +64 -0
- package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +6 -0
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +11 -0
- package/lib/types/components/duet-tray/duet-tray.d.ts +11 -0
- package/lib/types/components/duet-upload/duet-upload-aria-status.d.ts +49 -0
- package/lib/types/components/duet-upload/duet-upload-editable-item-error.d.ts +7 -0
- package/lib/types/components/duet-upload/duet-upload-editable-item-inprogres.d.ts +7 -0
- package/lib/types/components/duet-upload/duet-upload-editable-item-success.d.ts +8 -0
- package/lib/types/components/duet-upload/duet-upload.d.ts +94 -25
- package/lib/types/components/duet-upload/errorcodes.utils.d.ts +1 -0
- package/lib/types/components/duet-upload/xhr.helpers.d.ts +7 -1
- package/lib/types/components.d.ts +611 -79
- package/lib/types/utils/js-utils.d.ts +1 -0
- package/lib/types/utils/language-utils.d.ts +8 -3
- package/lib/types/utils/string-utils.d.ts +1 -0
- package/lib/types/utils/watch-options.d.ts +2 -0
- package/package.json +19 -15
- package/hydrate/package.json +0 -6
- package/lib/cjs/duet-fieldset.cjs.entry.js +0 -62
- package/lib/collection/components/duet-upload/duet-upload-file-list.js +0 -49
- package/lib/duet/p-0733c303.system.entry.js +0 -4
- package/lib/duet/p-095060cc.js +0 -4
- package/lib/duet/p-156864a1.system.entry.js +0 -4
- package/lib/duet/p-15c15c6a.js +0 -15
- package/lib/duet/p-1911dfe7.system.entry.js +0 -4
- package/lib/duet/p-1c41525a.entry.js +0 -4
- package/lib/duet/p-1cfe38b1.system.entry.js +0 -4
- package/lib/duet/p-2834a302.entry.js +0 -4
- package/lib/duet/p-28a3d38f.system.entry.js +0 -4
- package/lib/duet/p-2a1a9f9f.entry.js +0 -4
- package/lib/duet/p-2a4d7c5b.system.entry.js +0 -4
- package/lib/duet/p-3eb36e3d.entry.js +0 -4
- package/lib/duet/p-4095dba5.entry.js +0 -4
- package/lib/duet/p-418b2ce7.system.js +0 -4
- package/lib/duet/p-4289b543.entry.js +0 -4
- package/lib/duet/p-43e39d98.system.js +0 -4
- package/lib/duet/p-46a3ae43.system.js +0 -4
- package/lib/duet/p-4a38cf9d.entry.js +0 -4
- package/lib/duet/p-4be8e814.entry.js +0 -4
- package/lib/duet/p-4dcea8fb.system.entry.js +0 -4
- package/lib/duet/p-591b2137.entry.js +0 -4
- package/lib/duet/p-5c5bdb06.system.entry.js +0 -4
- package/lib/duet/p-5f70e318.entry.js +0 -4
- package/lib/duet/p-62c294d6.system.entry.js +0 -4
- package/lib/duet/p-6a356ab1.system.js +0 -4
- package/lib/duet/p-6c2729da.js +0 -4
- package/lib/duet/p-6f107847.system.entry.js +0 -4
- package/lib/duet/p-77a5fe4c.system.js +0 -4
- package/lib/duet/p-7809e78b.system.entry.js +0 -4
- package/lib/duet/p-7a36d76f.system.entry.js +0 -4
- package/lib/duet/p-7ee52f58.entry.js +0 -4
- package/lib/duet/p-884693f1.entry.js +0 -4
- package/lib/duet/p-89db3b94.entry.js +0 -4
- package/lib/duet/p-8cfce39e.system.entry.js +0 -4
- package/lib/duet/p-8ffe1461.system.entry.js +0 -4
- package/lib/duet/p-9381c2d4.entry.js +0 -4
- package/lib/duet/p-9a450c9a.entry.js +0 -4
- package/lib/duet/p-9a89ec39.js +0 -4
- package/lib/duet/p-9bbfe606.system.entry.js +0 -4
- package/lib/duet/p-a6096b05.system.entry.js +0 -4
- package/lib/duet/p-a89d5d7c.entry.js +0 -4
- package/lib/duet/p-b07055fd.system.entry.js +0 -4
- package/lib/duet/p-b4374f0e.entry.js +0 -4
- package/lib/duet/p-b456d684.system.entry.js +0 -4
- package/lib/duet/p-bd18c93f.js +0 -4
- package/lib/duet/p-bddb1c15.system.entry.js +0 -4
- package/lib/duet/p-c0b95b58.entry.js +0 -4
- package/lib/duet/p-c3688975.entry.js +0 -4
- package/lib/duet/p-c4d183e6.entry.js +0 -4
- package/lib/duet/p-c9303f9a.entry.js +0 -4
- package/lib/duet/p-cd4e8ccf.js +0 -4
- package/lib/duet/p-ceb75b35.system.entry.js +0 -4
- package/lib/duet/p-cf243bcb.system.entry.js +0 -4
- package/lib/duet/p-d37c8a05.system.js +0 -4
- package/lib/duet/p-d989af11.entry.js +0 -4
- package/lib/duet/p-e58ca7af.system.js +0 -16
- package/lib/duet/p-e6128d82.system.entry.js +0 -4
- package/lib/duet/p-e86cdc17.entry.js +0 -4
- package/lib/duet/p-eadb29c7.entry.js +0 -4
- package/lib/duet/p-f30b14d6.system.entry.js +0 -4
- package/lib/duet/p-f79f8da1.entry.js +0 -4
- package/lib/duet/p-fc397e03.system.entry.js +0 -4
- package/lib/esm/duet-fieldset.entry.js +0 -58
- package/lib/esm/watch-options-de55ea78.js +0 -35
- package/lib/esm-es5/duet-fieldset.entry.js +0 -4
- package/lib/esm-es5/duet-table.entry.js +0 -4
- package/lib/esm-es5/index-f70ddc7f.js +0 -4
- package/lib/esm-es5/language-utils-ab9c3afc.js +0 -4
- package/lib/esm-es5/shadow-css-31e2d504.js +0 -15
- package/lib/esm-es5/tokens.module-edb66c04.js +0 -4
- package/lib/esm-es5/watch-options-de55ea78.js +0 -4
- package/lib/html.html-data.json +0 -4556
- package/lib/types/components/duet-upload/duet-upload-file-list.d.ts +0 -9
|
@@ -51,10 +51,26 @@ export class DuetHeader {
|
|
|
51
51
|
*/
|
|
52
52
|
this.language = getLanguage();
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
54
|
+
* Default strings for accessibleI18nLabels
|
|
55
|
+
* @default {
|
|
56
|
+
fi: {
|
|
57
|
+
skipLabel: "Siirry pääsisältöön",
|
|
58
|
+
changeLanguage: "Vaihda kieltä",
|
|
59
|
+
activeLanguage: "Suomi valittuna",
|
|
60
|
+
},
|
|
61
|
+
sv: {
|
|
62
|
+
skipLabel: "Hoppa till huvudinnehåll",
|
|
63
|
+
changeLanguage: "Ändra Språk",
|
|
64
|
+
activeLanguage: "Svenska valt",
|
|
65
|
+
},
|
|
66
|
+
en: {
|
|
67
|
+
skipLabel: "Skip to main content",
|
|
68
|
+
changeLanguage: "Change language",
|
|
69
|
+
activeLanguage: "English selected",
|
|
70
|
+
},
|
|
71
|
+
}
|
|
56
72
|
*/
|
|
57
|
-
this.
|
|
73
|
+
this.accessibleI18nLabelsDefaults = {
|
|
58
74
|
fi: {
|
|
59
75
|
skipLabel: "Siirry pääsisältöön",
|
|
60
76
|
changeLanguage: "Vaihda kieltä",
|
|
@@ -91,7 +107,7 @@ export class DuetHeader {
|
|
|
91
107
|
},
|
|
92
108
|
}
|
|
93
109
|
*/
|
|
94
|
-
this.accessibleI18nLabels = getLocaleString(this.
|
|
110
|
+
this.accessibleI18nLabels = getLocaleString(this.accessibleI18nLabelsDefaults);
|
|
95
111
|
/**
|
|
96
112
|
* Property to change accessibleLabelExternal defaults on the component.
|
|
97
113
|
* normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
|
|
@@ -107,7 +123,7 @@ export class DuetHeader {
|
|
|
107
123
|
* Property to change accessibleLabel defaults on the component.
|
|
108
124
|
* normally you would handle these strings on an application level and override @accessibleLabel when needed
|
|
109
125
|
*/
|
|
110
|
-
this.
|
|
126
|
+
this.accessibleLabelDefaults = {
|
|
111
127
|
fi: "Valikko",
|
|
112
128
|
sv: "Meny",
|
|
113
129
|
en: "Menu",
|
|
@@ -121,7 +137,7 @@ export class DuetHeader {
|
|
|
121
137
|
en: "Menu",
|
|
122
138
|
}
|
|
123
139
|
*/
|
|
124
|
-
this.accessibleLabel = getLocaleString(this.
|
|
140
|
+
this.accessibleLabel = getLocaleString(this.accessibleLabelDefaults);
|
|
125
141
|
/**
|
|
126
142
|
* URL that the logo link points to.
|
|
127
143
|
*/
|
|
@@ -497,11 +513,11 @@ export class DuetHeader {
|
|
|
497
513
|
"optional": false,
|
|
498
514
|
"docs": {
|
|
499
515
|
"tags": [{
|
|
500
|
-
"
|
|
501
|
-
"
|
|
516
|
+
"name": "deprecated",
|
|
517
|
+
"text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
|
|
502
518
|
}, {
|
|
503
|
-
"
|
|
504
|
-
"
|
|
519
|
+
"name": "default",
|
|
520
|
+
"text": "\"fi\""
|
|
505
521
|
}],
|
|
506
522
|
"text": "The currently active language. This setting also changes the logo to match\nthe chosen language."
|
|
507
523
|
},
|
|
@@ -509,12 +525,12 @@ export class DuetHeader {
|
|
|
509
525
|
"reflect": false,
|
|
510
526
|
"defaultValue": "getLanguage()"
|
|
511
527
|
},
|
|
512
|
-
"
|
|
513
|
-
"type": "
|
|
528
|
+
"accessibleI18nLabelsDefaults": {
|
|
529
|
+
"type": "string",
|
|
514
530
|
"mutable": false,
|
|
515
531
|
"complexType": {
|
|
516
|
-
"original": "Record<DuetLanguage, I18nText>",
|
|
517
|
-
"resolved": "{ fi: I18nText; en: I18nText; sv: I18nText; }",
|
|
532
|
+
"original": "| string\n | Record<DuetLanguage, I18nText>",
|
|
533
|
+
"resolved": "string | { fi: I18nText; en: I18nText; sv: I18nText; }",
|
|
518
534
|
"references": {
|
|
519
535
|
"Record": {
|
|
520
536
|
"location": "global"
|
|
@@ -531,9 +547,14 @@ export class DuetHeader {
|
|
|
531
547
|
"required": false,
|
|
532
548
|
"optional": false,
|
|
533
549
|
"docs": {
|
|
534
|
-
"tags": [
|
|
535
|
-
|
|
550
|
+
"tags": [{
|
|
551
|
+
"name": "default",
|
|
552
|
+
"text": "{\nfi: {\nskipLabel: \"Siirry p\u00E4\u00E4sis\u00E4lt\u00F6\u00F6n\",\nchangeLanguage: \"Vaihda kielt\u00E4\",\nactiveLanguage: \"Suomi valittuna\",\n},\nsv: {\nskipLabel: \"Hoppa till huvudinneh\u00E5ll\",\nchangeLanguage: \"\u00C4ndra Spr\u00E5k\",\nactiveLanguage: \"Svenska valt\",\n},\nen: {\nskipLabel: \"Skip to main content\",\nchangeLanguage: \"Change language\",\nactiveLanguage: \"English selected\",\n},\n}"
|
|
553
|
+
}],
|
|
554
|
+
"text": "Default strings for accessibleI18nLabels"
|
|
536
555
|
},
|
|
556
|
+
"attribute": "accessible-labels-default",
|
|
557
|
+
"reflect": false,
|
|
537
558
|
"defaultValue": "{\n fi: {\n skipLabel: \"Siirry p\u00E4\u00E4sis\u00E4lt\u00F6\u00F6n\",\n changeLanguage: \"Vaihda kielt\u00E4\",\n activeLanguage: \"Suomi valittuna\",\n },\n sv: {\n skipLabel: \"G\u00E5 till huvudinneh\u00E5ll\",\n changeLanguage: \"\u00C4ndra Spr\u00E5k\",\n activeLanguage: \"Svenska valt\",\n },\n en: {\n skipLabel: \"Skip to main content\",\n changeLanguage: \"Change language\",\n activeLanguage: \"English selected\",\n },\n }"
|
|
538
559
|
},
|
|
539
560
|
"accessibleI18nLabels": {
|
|
@@ -552,19 +573,19 @@ export class DuetHeader {
|
|
|
552
573
|
"optional": false,
|
|
553
574
|
"docs": {
|
|
554
575
|
"tags": [{
|
|
555
|
-
"
|
|
556
|
-
"
|
|
576
|
+
"name": "default",
|
|
577
|
+
"text": "{\nfi: {\nskipLabel: \"Siirry p\u00E4\u00E4sis\u00E4lt\u00F6\u00F6n\",\nchangeLanguage: \"Vaihda kielt\u00E4\",\nactiveLanguage: \"Suomi valittuna\",\n},\nsv: {\nskipLabel: \"Hoppa till huvudinneh\u00E5ll\",\nchangeLanguage: \"\u00C4ndra Spr\u00E5k\",\nactiveLanguage: \"Svenska valt\",\n},\nen: {\nskipLabel: \"Skip to main content\",\nchangeLanguage: \"Change language\",\nactiveLanguage: \"English selected\",\n},\n}"
|
|
557
578
|
}],
|
|
558
579
|
"text": "Adds i18n translations of all internally used textStrings"
|
|
559
580
|
},
|
|
560
|
-
"defaultValue": "getLocaleString(this.
|
|
581
|
+
"defaultValue": "getLocaleString(\n this.accessibleI18nLabelsDefaults\n )"
|
|
561
582
|
},
|
|
562
583
|
"accessibleLabelExternalDefaults": {
|
|
563
|
-
"type": "
|
|
584
|
+
"type": "string",
|
|
564
585
|
"mutable": false,
|
|
565
586
|
"complexType": {
|
|
566
|
-
"original": "DuetLangObject",
|
|
567
|
-
"resolved": "DuetLangObject",
|
|
587
|
+
"original": "DuetLangObject | string",
|
|
588
|
+
"resolved": "DuetLangObject | string",
|
|
568
589
|
"references": {
|
|
569
590
|
"DuetLangObject": {
|
|
570
591
|
"location": "import",
|
|
@@ -576,11 +597,13 @@ export class DuetHeader {
|
|
|
576
597
|
"optional": false,
|
|
577
598
|
"docs": {
|
|
578
599
|
"tags": [{
|
|
579
|
-
"
|
|
580
|
-
"
|
|
600
|
+
"name": "default",
|
|
601
|
+
"text": "{fi: \"Avautuu uuteen ikkunaan\",sv: \"\u00D6ppnas i nytt f\u00F6nster\",en: \"Opens in a new window\"}"
|
|
581
602
|
}],
|
|
582
603
|
"text": "Property to change accessibleLabelExternal defaults on the component.\nnormally you would handle these strings on an application level and override @accessibleLabelExternal when needed"
|
|
583
604
|
},
|
|
605
|
+
"attribute": "accessible-label-external-default",
|
|
606
|
+
"reflect": false,
|
|
584
607
|
"defaultValue": "DuetStringsExternalDefaults"
|
|
585
608
|
},
|
|
586
609
|
"accessibleLabelExternal": {
|
|
@@ -595,8 +618,8 @@ export class DuetHeader {
|
|
|
595
618
|
"optional": false,
|
|
596
619
|
"docs": {
|
|
597
620
|
"tags": [{
|
|
598
|
-
"
|
|
599
|
-
"
|
|
621
|
+
"name": "default",
|
|
622
|
+
"text": "{fi: \"Avautuu uuteen ikkunaan\",sv: \"\u00D6ppnas i nytt f\u00F6nster\",en: \"Opens in a new window\"}"
|
|
600
623
|
}],
|
|
601
624
|
"text": "Adds accessible label for tooltip that is shown in external link (url & external have both been set)"
|
|
602
625
|
},
|
|
@@ -604,12 +627,12 @@ export class DuetHeader {
|
|
|
604
627
|
"reflect": false,
|
|
605
628
|
"defaultValue": "getLocaleString(this.accessibleLabelExternalDefaults)"
|
|
606
629
|
},
|
|
607
|
-
"
|
|
608
|
-
"type": "
|
|
630
|
+
"accessibleLabelDefaults": {
|
|
631
|
+
"type": "string",
|
|
609
632
|
"mutable": false,
|
|
610
633
|
"complexType": {
|
|
611
|
-
"original": "DuetLangObject",
|
|
612
|
-
"resolved": "DuetLangObject",
|
|
634
|
+
"original": "DuetLangObject | string",
|
|
635
|
+
"resolved": "DuetLangObject | string",
|
|
613
636
|
"references": {
|
|
614
637
|
"DuetLangObject": {
|
|
615
638
|
"location": "import",
|
|
@@ -623,6 +646,8 @@ export class DuetHeader {
|
|
|
623
646
|
"tags": [],
|
|
624
647
|
"text": "Property to change accessibleLabel defaults on the component.\nnormally you would handle these strings on an application level and override @accessibleLabel when needed"
|
|
625
648
|
},
|
|
649
|
+
"attribute": "accessible-label-default",
|
|
650
|
+
"reflect": false,
|
|
626
651
|
"defaultValue": "{\n fi: \"Valikko\",\n sv: \"Meny\",\n en: \"Menu\",\n }"
|
|
627
652
|
},
|
|
628
653
|
"accessibleLabel": {
|
|
@@ -637,14 +662,14 @@ export class DuetHeader {
|
|
|
637
662
|
"optional": false,
|
|
638
663
|
"docs": {
|
|
639
664
|
"tags": [{
|
|
640
|
-
"
|
|
641
|
-
"
|
|
665
|
+
"name": "default",
|
|
666
|
+
"text": "{\nfi: \"Valikko\",\nsv: \"Meny\",\nen: \"Menu\",\n}"
|
|
642
667
|
}],
|
|
643
668
|
"text": "Accessible label that is shown for screen reader users in the mobile\nnavigation toggle. Not visible for normal users."
|
|
644
669
|
},
|
|
645
670
|
"attribute": "accessible-label",
|
|
646
671
|
"reflect": false,
|
|
647
|
-
"defaultValue": "getLocaleString(this.
|
|
672
|
+
"defaultValue": "getLocaleString(this.accessibleLabelDefaults)"
|
|
648
673
|
},
|
|
649
674
|
"user": {
|
|
650
675
|
"type": "any",
|
|
@@ -858,8 +883,8 @@ export class DuetHeader {
|
|
|
858
883
|
"composed": true,
|
|
859
884
|
"docs": {
|
|
860
885
|
"tags": [{
|
|
861
|
-
"
|
|
862
|
-
"
|
|
886
|
+
"name": "deprecated",
|
|
887
|
+
"text": "in favour of more specific events like duetLogoClick.\nCallback for when a user is about to navigate to another page. You can prevent the\ndefault browser functionality by calling **event.detail.originalEvent.preventDefault()**\ninside your listener. Additionally, the passed data is available via **event.detail.data**."
|
|
863
888
|
}],
|
|
864
889
|
"text": ""
|
|
865
890
|
},
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
color: #00294d;
|
|
37
37
|
text-decoration: none;
|
|
38
38
|
letter-spacing: -0.01rem;
|
|
39
|
+
word-break: break-word;
|
|
39
40
|
}
|
|
40
41
|
@media (min-width: 36em) {
|
|
41
42
|
.duet-heading {
|
|
@@ -52,6 +53,9 @@
|
|
|
52
53
|
padding-bottom: 20px;
|
|
53
54
|
border-bottom: 1px solid #e1e3e6;
|
|
54
55
|
}
|
|
56
|
+
.duet-heading.duet-heading-border.duet-heading-border-solid {
|
|
57
|
+
border-bottom-color: #657787;
|
|
58
|
+
}
|
|
55
59
|
.duet-heading.duet-heading-hyphenate {
|
|
56
60
|
-webkit-hyphens: auto;
|
|
57
61
|
hyphens: auto;
|
|
@@ -16,7 +16,7 @@ export class DuetHeading {
|
|
|
16
16
|
*/
|
|
17
17
|
this.margin = "auto";
|
|
18
18
|
/**
|
|
19
|
-
* Enable or disable the border underneath the heading
|
|
19
|
+
* Enable or disable the border underneath the heading, solid will darken the border
|
|
20
20
|
*/
|
|
21
21
|
this.border = false;
|
|
22
22
|
/**
|
|
@@ -53,7 +53,8 @@ export class DuetHeading {
|
|
|
53
53
|
const color = getColorByName(this.color);
|
|
54
54
|
return (h(TagName, { class: {
|
|
55
55
|
"duet-heading": true,
|
|
56
|
-
"duet-heading-border": this.border,
|
|
56
|
+
"duet-heading-border": this.border !== false,
|
|
57
|
+
"duet-heading-border-solid": this.border === "solid",
|
|
57
58
|
"duet-semibold": this.weight === "semibold",
|
|
58
59
|
"duet-heading-hyphenate": this.hyphenate,
|
|
59
60
|
"duet-m-0": this.margin === "none",
|
|
@@ -140,18 +141,18 @@ export class DuetHeading {
|
|
|
140
141
|
"reflect": false
|
|
141
142
|
},
|
|
142
143
|
"border": {
|
|
143
|
-
"type": "
|
|
144
|
+
"type": "any",
|
|
144
145
|
"mutable": false,
|
|
145
146
|
"complexType": {
|
|
146
|
-
"original": "boolean",
|
|
147
|
-
"resolved": "boolean",
|
|
147
|
+
"original": "boolean | \"solid\"",
|
|
148
|
+
"resolved": "\"solid\" | boolean",
|
|
148
149
|
"references": {}
|
|
149
150
|
},
|
|
150
151
|
"required": false,
|
|
151
152
|
"optional": false,
|
|
152
153
|
"docs": {
|
|
153
154
|
"tags": [],
|
|
154
|
-
"text": "Enable or disable the border underneath the heading
|
|
155
|
+
"text": "Enable or disable the border underneath the heading, solid will darken the border"
|
|
155
156
|
},
|
|
156
157
|
"attribute": "border",
|
|
157
158
|
"reflect": false,
|
|
@@ -75,15 +75,15 @@ export class DuetHero {
|
|
|
75
75
|
*/
|
|
76
76
|
this.language = getLanguage();
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
79
|
-
*
|
|
78
|
+
* Defaults for accessibleLabelExternal
|
|
79
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
80
80
|
*/
|
|
81
81
|
this.accessibleLabelExternalDefaults = DuetStringsExternalDefaults;
|
|
82
82
|
/**
|
|
83
83
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
84
84
|
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
85
85
|
*/
|
|
86
|
-
this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults
|
|
86
|
+
this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults);
|
|
87
87
|
/**
|
|
88
88
|
* URL that the button links to.
|
|
89
89
|
*/
|
|
@@ -485,11 +485,11 @@ export class DuetHero {
|
|
|
485
485
|
"optional": false,
|
|
486
486
|
"docs": {
|
|
487
487
|
"tags": [{
|
|
488
|
-
"
|
|
489
|
-
"
|
|
488
|
+
"name": "deprecated",
|
|
489
|
+
"text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
|
|
490
490
|
}, {
|
|
491
|
-
"
|
|
492
|
-
"
|
|
491
|
+
"name": "default",
|
|
492
|
+
"text": "\"fi\""
|
|
493
493
|
}],
|
|
494
494
|
"text": "The currently active language. This setting changes the accessible labels to match the\nchosen language."
|
|
495
495
|
},
|
|
@@ -498,11 +498,11 @@ export class DuetHero {
|
|
|
498
498
|
"defaultValue": "getLanguage()"
|
|
499
499
|
},
|
|
500
500
|
"accessibleLabelExternalDefaults": {
|
|
501
|
-
"type": "
|
|
501
|
+
"type": "string",
|
|
502
502
|
"mutable": false,
|
|
503
503
|
"complexType": {
|
|
504
|
-
"original": "DuetLangObject",
|
|
505
|
-
"resolved": "DuetLangObject",
|
|
504
|
+
"original": "DuetLangObject | string",
|
|
505
|
+
"resolved": "DuetLangObject | string",
|
|
506
506
|
"references": {
|
|
507
507
|
"DuetLangObject": {
|
|
508
508
|
"location": "import",
|
|
@@ -513,9 +513,14 @@ export class DuetHero {
|
|
|
513
513
|
"required": false,
|
|
514
514
|
"optional": false,
|
|
515
515
|
"docs": {
|
|
516
|
-
"tags": [
|
|
517
|
-
|
|
516
|
+
"tags": [{
|
|
517
|
+
"name": "default",
|
|
518
|
+
"text": "{fi: \"Avautuu uuteen ikkunaan\",sv: \"\u00D6ppnas i nytt f\u00F6nster\",en: \"Opens in a new window\"}"
|
|
519
|
+
}],
|
|
520
|
+
"text": "Defaults for accessibleLabelExternal"
|
|
518
521
|
},
|
|
522
|
+
"attribute": "accessible-label-external-default",
|
|
523
|
+
"reflect": false,
|
|
519
524
|
"defaultValue": "DuetStringsExternalDefaults"
|
|
520
525
|
},
|
|
521
526
|
"accessibleLabelExternal": {
|
|
@@ -530,14 +535,14 @@ export class DuetHero {
|
|
|
530
535
|
"optional": false,
|
|
531
536
|
"docs": {
|
|
532
537
|
"tags": [{
|
|
533
|
-
"
|
|
534
|
-
"
|
|
538
|
+
"name": "default",
|
|
539
|
+
"text": "{fi: \"Avautuu uuteen ikkunaan\",sv: \"\u00D6ppnas i nytt f\u00F6nster\",en: \"Opens in a new window\"}"
|
|
535
540
|
}],
|
|
536
541
|
"text": "Adds accessible label for tooltip that is shown in external link (url & external have both been set)"
|
|
537
542
|
},
|
|
538
543
|
"attribute": "accessible-label-external",
|
|
539
544
|
"reflect": false,
|
|
540
|
-
"defaultValue": "getLocaleString(this.accessibleLabelExternalDefaults
|
|
545
|
+
"defaultValue": "getLocaleString(this.accessibleLabelExternalDefaults)"
|
|
541
546
|
},
|
|
542
547
|
"buttonUrl": {
|
|
543
548
|
"type": "string",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { Component, Element, h, Host, Prop, State, Watch } from "@stencil/core";
|
|
5
5
|
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
6
6
|
import { getColorByName } from "../../utils/token-utils";
|
|
7
7
|
import { buildIconUrl, fetchIconByUrl } from "./icon-utils";
|
|
@@ -58,7 +58,7 @@ export class DuetIcon {
|
|
|
58
58
|
if (this.src && this.icon) {
|
|
59
59
|
console.warn("[DUET COMPONENTS]: <duet-icon> should have either have src or icon attributes, but not both. icon attribute will take precedence", "icon:", this.icon, "src:", this.src);
|
|
60
60
|
}
|
|
61
|
-
this.loadIcon();
|
|
61
|
+
return this.loadIcon();
|
|
62
62
|
}
|
|
63
63
|
async loadIcon() {
|
|
64
64
|
// static icon known at build-time, so we can set it synchronously
|
|
@@ -66,10 +66,6 @@ export class DuetIcon {
|
|
|
66
66
|
this.svgContent = this.icon;
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
|
-
// on server, don't make requests
|
|
70
|
-
if (!Build.isBrowser) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
69
|
// dynamically load icon from url
|
|
74
70
|
const src = this.src ? this.src : buildIconUrl(this.name);
|
|
75
71
|
try {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
+
import { Build, Env } from "@stencil/core";
|
|
4
5
|
const cleanupSvg = (svgContent) => {
|
|
5
6
|
if (typeof document === "undefined" || !svgContent) {
|
|
6
7
|
return;
|
|
@@ -37,16 +38,12 @@ const isValid = (elm) => {
|
|
|
37
38
|
};
|
|
38
39
|
export const buildIconUrl = (iconName) => {
|
|
39
40
|
// under normal operations the Icons should always be loaded from the CDN
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const host = window.location.hostname;
|
|
44
|
-
const re = /(localhost|loca\.lt|127\.0\.0\.1|0\.0\.0\.0)/i;
|
|
45
|
-
if (host.match(re)) {
|
|
46
|
-
return localURI;
|
|
41
|
+
if (Build.isDev || Build.isTesting) {
|
|
42
|
+
// however for vizdiffing and local development / testing we need to be able to access the raw images
|
|
43
|
+
return `${Env.cdnURILocal}/icons/lib/assets/${iconName}.svg`;
|
|
47
44
|
}
|
|
48
45
|
else {
|
|
49
|
-
return
|
|
46
|
+
return `${Env.cdnURIProd}/icons/${Env.duetIconVersion}/lib/assets/${iconName}.svg`;
|
|
50
47
|
}
|
|
51
48
|
};
|
|
52
49
|
const iconCache = {};
|
|
@@ -63,6 +63,21 @@ duet-caption:not(:last-of-type) {
|
|
|
63
63
|
margin-bottom: 0;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
.duet-input-placeholder {
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: -9px;
|
|
69
|
+
left: 9px;
|
|
70
|
+
z-index: 200;
|
|
71
|
+
display: block;
|
|
72
|
+
width: auto;
|
|
73
|
+
max-width: 60%;
|
|
74
|
+
padding: 0 0.25rem;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
text-overflow: ellipsis;
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
background: white;
|
|
79
|
+
}
|
|
80
|
+
|
|
66
81
|
.duet-input-icon {
|
|
67
82
|
position: absolute;
|
|
68
83
|
top: 50%;
|
|
@@ -140,7 +140,7 @@ export class DuetInput {
|
|
|
140
140
|
// (in webkit based browsers settings value trigger cursor position and will set it to EndOfText)
|
|
141
141
|
restoreCursor();
|
|
142
142
|
}
|
|
143
|
-
this.isCaptionVisible = !!
|
|
143
|
+
this.isCaptionVisible = !!this.caption;
|
|
144
144
|
const emitEvent = () => this.duetChange.emit({
|
|
145
145
|
value: this.value,
|
|
146
146
|
component: "duet-input",
|
|
@@ -159,7 +159,7 @@ export class DuetInput {
|
|
|
159
159
|
componentWillLoad() {
|
|
160
160
|
inheritGlobalTheme(this);
|
|
161
161
|
this.disallowedPatternChange();
|
|
162
|
-
this.isCaptionVisible = !!
|
|
162
|
+
this.isCaptionVisible = !!this.caption;
|
|
163
163
|
}
|
|
164
164
|
/**
|
|
165
165
|
* Sets focus on the specified `duet-input`. Use this method instead of the global
|
|
@@ -199,8 +199,8 @@ export class DuetInput {
|
|
|
199
199
|
h("duet-label", { theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, margin: this.isCaptionVisible ? "small" : "auto", id: this.labelId, for: identifier }, this.label),
|
|
200
200
|
this.tooltip && (h("duet-tooltip", { direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)),
|
|
201
201
|
this.caption && (h("duet-caption", { id: this.topCaptionId, size: "medium" }, this.caption)),
|
|
202
|
-
this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { id: this.topCaptionPlaceholderId, size: "small" }, this.placeholder)),
|
|
203
202
|
h("div", { class: "duet-input-relative" },
|
|
203
|
+
this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { id: this.topCaptionPlaceholderId, class: "duet-input-placeholder", margin: "none", size: "small" }, this.placeholder)),
|
|
204
204
|
h("input", Object.assign({ ref: input => (this.nativeInput = input), onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, type: this.type, class: {
|
|
205
205
|
"duet-input": true,
|
|
206
206
|
disabled: this.disabled,
|
|
@@ -212,7 +212,7 @@ export class DuetInput {
|
|
|
212
212
|
this.icon && (h("div", { class: "duet-input-icon" },
|
|
213
213
|
h("duet-icon", { margin: "none", size: "small", name: this.icon, color: "currentColor" }))),
|
|
214
214
|
h("slot", null)),
|
|
215
|
-
h("span", { class: "duet-input-help", id: this.errorId, "aria-live": "assertive", "aria-relevant": "additions removals" }, this.error && h("span",
|
|
215
|
+
h("span", { class: "duet-input-help", id: this.errorId, "aria-live": "assertive", "aria-relevant": "additions removals" }, this.error && h("span", { class: "duet-input-error" }, this.error)))));
|
|
216
216
|
}
|
|
217
217
|
static get is() { return "duet-input"; }
|
|
218
218
|
static get encapsulation() { return "scoped"; }
|
|
@@ -16,8 +16,7 @@ export class DuetLink {
|
|
|
16
16
|
*/
|
|
17
17
|
this.language = getLanguage();
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
* normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
|
|
19
|
+
* Defaults for accessibleLabelExternal
|
|
21
20
|
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
22
21
|
*/
|
|
23
22
|
this.accessibleLabelExternalDefaults = DuetStringsExternalDefaults;
|
|
@@ -25,7 +24,7 @@ export class DuetLink {
|
|
|
25
24
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
26
25
|
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
27
26
|
*/
|
|
28
|
-
this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults
|
|
27
|
+
this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults);
|
|
29
28
|
/**
|
|
30
29
|
* Theme of the button.
|
|
31
30
|
*/
|
|
@@ -65,9 +64,7 @@ export class DuetLink {
|
|
|
65
64
|
}, target: this.external ? "_blank" : "_self", "aria-label": this.accessibleLabel, id: this.identifier, ref: el => (this.nativeLink = el) },
|
|
66
65
|
h("slot", null),
|
|
67
66
|
Build.isBrowser && this.external && (h(Fragment, null,
|
|
68
|
-
h("duet-visually-hidden", null,
|
|
69
|
-
", ",
|
|
70
|
-
this.accessibleLabelExternal),
|
|
67
|
+
h("duet-visually-hidden", null, this.accessibleLabelExternal),
|
|
71
68
|
h("span", { class: "duet-link-external" },
|
|
72
69
|
h("duet-icon", { icon: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })))))));
|
|
73
70
|
}
|
|
@@ -115,11 +112,11 @@ export class DuetLink {
|
|
|
115
112
|
"optional": false,
|
|
116
113
|
"docs": {
|
|
117
114
|
"tags": [{
|
|
118
|
-
"
|
|
119
|
-
"
|
|
115
|
+
"name": "deprecated",
|
|
116
|
+
"text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
|
|
120
117
|
}, {
|
|
121
|
-
"
|
|
122
|
-
"
|
|
118
|
+
"name": "default",
|
|
119
|
+
"text": "\"fi\""
|
|
123
120
|
}],
|
|
124
121
|
"text": "The currently active language. This setting changes the external link\naccessible label to match the chosen language."
|
|
125
122
|
},
|
|
@@ -128,11 +125,11 @@ export class DuetLink {
|
|
|
128
125
|
"defaultValue": "getLanguage()"
|
|
129
126
|
},
|
|
130
127
|
"accessibleLabelExternalDefaults": {
|
|
131
|
-
"type": "
|
|
128
|
+
"type": "string",
|
|
132
129
|
"mutable": false,
|
|
133
130
|
"complexType": {
|
|
134
|
-
"original": "DuetLangObject",
|
|
135
|
-
"resolved": "DuetLangObject",
|
|
131
|
+
"original": "DuetLangObject | string",
|
|
132
|
+
"resolved": "DuetLangObject | string",
|
|
136
133
|
"references": {
|
|
137
134
|
"DuetLangObject": {
|
|
138
135
|
"location": "import",
|
|
@@ -144,11 +141,13 @@ export class DuetLink {
|
|
|
144
141
|
"optional": false,
|
|
145
142
|
"docs": {
|
|
146
143
|
"tags": [{
|
|
147
|
-
"
|
|
148
|
-
"
|
|
144
|
+
"name": "default",
|
|
145
|
+
"text": "{fi: \"Avautuu uuteen ikkunaan\",sv: \"\u00D6ppnas i nytt f\u00F6nster\",en: \"Opens in a new window\"}"
|
|
149
146
|
}],
|
|
150
|
-
"text": "
|
|
147
|
+
"text": "Defaults for accessibleLabelExternal"
|
|
151
148
|
},
|
|
149
|
+
"attribute": "accessible-label-external-default",
|
|
150
|
+
"reflect": false,
|
|
152
151
|
"defaultValue": "DuetStringsExternalDefaults"
|
|
153
152
|
},
|
|
154
153
|
"accessibleLabelExternal": {
|
|
@@ -163,14 +162,14 @@ export class DuetLink {
|
|
|
163
162
|
"optional": false,
|
|
164
163
|
"docs": {
|
|
165
164
|
"tags": [{
|
|
166
|
-
"
|
|
167
|
-
"
|
|
165
|
+
"name": "default",
|
|
166
|
+
"text": "{fi: \"Avautuu uuteen ikkunaan\",sv: \"\u00D6ppnas i nytt f\u00F6nster\",en: \"Opens in a new window\"}"
|
|
168
167
|
}],
|
|
169
168
|
"text": "Adds accessible label for tooltip that is shown in external link (url & external have both been set)"
|
|
170
169
|
},
|
|
171
170
|
"attribute": "accessible-label-external",
|
|
172
171
|
"reflect": false,
|
|
173
|
-
"defaultValue": "getLocaleString(this.accessibleLabelExternalDefaults
|
|
172
|
+
"defaultValue": "getLocaleString(this.accessibleLabelExternalDefaults)"
|
|
174
173
|
},
|
|
175
174
|
"identifier": {
|
|
176
175
|
"type": "string",
|
|
@@ -232,11 +232,11 @@ export class DuetLogo {
|
|
|
232
232
|
"optional": false,
|
|
233
233
|
"docs": {
|
|
234
234
|
"tags": [{
|
|
235
|
-
"
|
|
236
|
-
"
|
|
235
|
+
"name": "deprecated",
|
|
236
|
+
"text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
|
|
237
237
|
}, {
|
|
238
|
-
"
|
|
239
|
-
"
|
|
238
|
+
"name": "default",
|
|
239
|
+
"text": "\"fi\""
|
|
240
240
|
}],
|
|
241
241
|
"text": "The language of the logo."
|
|
242
242
|
},
|