@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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { DuetLanguage, DuetMargin, DuetTheme, DuetTooltipDirection } from "../../common-types";
|
|
3
3
|
import { InputComponent } from "../../utils/form-components";
|
|
4
|
+
import { DuetLangObject } from "../../utils/language-utils";
|
|
4
5
|
import { ThemeableComponent } from "../../utils/themeable-component";
|
|
5
6
|
export declare type DuetDatePickerChangeEvent = {
|
|
6
7
|
component: "duet-date-picker";
|
|
@@ -52,13 +53,25 @@ export declare class DuetDatePicker implements ThemeableComponent, InputComponen
|
|
|
52
53
|
*/
|
|
53
54
|
label: string;
|
|
54
55
|
/**
|
|
55
|
-
* Caption (underneath label) that can be set as a way of adding extra information
|
|
56
|
+
* Caption (underneath label) that can be set as a way of adding extra information.
|
|
56
57
|
*/
|
|
57
58
|
caption: string;
|
|
58
59
|
/**
|
|
59
60
|
* Controls the margin of the component.
|
|
60
61
|
*/
|
|
61
62
|
margin: DuetMargin;
|
|
63
|
+
/**
|
|
64
|
+
* The currently active language. This setting changes the month/year/day.
|
|
65
|
+
* names and button labels as well as all screen reader labels.
|
|
66
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing.
|
|
67
|
+
* @default "fi"
|
|
68
|
+
*/
|
|
69
|
+
language: DuetLanguage;
|
|
70
|
+
/**
|
|
71
|
+
* Placeholder defaults.
|
|
72
|
+
* @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
|
|
73
|
+
*/
|
|
74
|
+
placeholderDefaults: DuetLangObject | string;
|
|
62
75
|
/**
|
|
63
76
|
* Hint text to display before the user types into the date picker input.
|
|
64
77
|
* @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
|
|
@@ -74,13 +87,6 @@ export declare class DuetDatePicker implements ThemeableComponent, InputComponen
|
|
|
74
87
|
* interact with the input, and conveys its inactive state to assistive technologies.
|
|
75
88
|
*/
|
|
76
89
|
disabled: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* The currently active language. This setting changes the month/year/day
|
|
79
|
-
* names and button labels as well as all screen reader labels.
|
|
80
|
-
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
81
|
-
* @default "fi"
|
|
82
|
-
*/
|
|
83
|
-
language: DuetLanguage;
|
|
84
90
|
/**
|
|
85
91
|
* Display the date picker input in error state along with an error message.
|
|
86
92
|
*/
|
|
@@ -142,7 +148,7 @@ export declare class DuetDatePicker implements ThemeableComponent, InputComponen
|
|
|
142
148
|
*/
|
|
143
149
|
min: string;
|
|
144
150
|
/**
|
|
145
|
-
* Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD
|
|
151
|
+
* Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.
|
|
146
152
|
* This setting can be used alone or together with the min property.
|
|
147
153
|
*/
|
|
148
154
|
max: string;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { DuetTheme } from "../../common-types";
|
|
3
|
+
import { DuetLangObject } from "../../utils/language-utils";
|
|
4
|
+
import { ThemeableComponent } from "../../utils/themeable-component";
|
|
5
|
+
export interface StringMap {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export declare type DuetEditableTableItemEvent = {
|
|
9
|
+
originalEvent?: Event;
|
|
10
|
+
uid: string | number | bigint;
|
|
11
|
+
keyName: string | number | bigint;
|
|
12
|
+
action: string;
|
|
13
|
+
group: string;
|
|
14
|
+
component: "duet-editable-table-item";
|
|
15
|
+
};
|
|
16
|
+
export declare type DuetEditableTableActionButtonItems = {
|
|
17
|
+
icon: string;
|
|
18
|
+
color: string;
|
|
19
|
+
color_hover: string;
|
|
20
|
+
id: string;
|
|
21
|
+
map?: string[];
|
|
22
|
+
label?: DuetLangObject;
|
|
23
|
+
};
|
|
24
|
+
export declare class DuetEditableTableButton implements ThemeableComponent {
|
|
25
|
+
el: HTMLElement;
|
|
26
|
+
isHovering: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Theme of the empty state component.
|
|
29
|
+
*/
|
|
30
|
+
theme: DuetTheme;
|
|
31
|
+
/**
|
|
32
|
+
* action items passed from host component
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
actions: DuetEditableTableActionButtonItems;
|
|
36
|
+
/**
|
|
37
|
+
* uid that gets passed along when the action is emitted
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
uid: string;
|
|
41
|
+
/**
|
|
42
|
+
* group associated with action
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
group: string;
|
|
46
|
+
/**
|
|
47
|
+
* key of the item in the map
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
50
|
+
keyName: string;
|
|
51
|
+
/**
|
|
52
|
+
* Emitted when any action is clicked
|
|
53
|
+
*/
|
|
54
|
+
duetEditableItemAction: EventEmitter<DuetEditableTableItemEvent>;
|
|
55
|
+
/**
|
|
56
|
+
/**
|
|
57
|
+
* Component lifecycle events.
|
|
58
|
+
*/
|
|
59
|
+
componentWillLoad(): void;
|
|
60
|
+
/**
|
|
61
|
+
/**
|
|
62
|
+
* private functions
|
|
63
|
+
*/
|
|
64
|
+
private emitActionEvent;
|
|
65
|
+
private onMouseEnter;
|
|
66
|
+
private onMouseLeave;
|
|
67
|
+
/**
|
|
68
|
+
* render() function
|
|
69
|
+
* Always the last one in the class.
|
|
70
|
+
*/
|
|
71
|
+
render(): any;
|
|
72
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { DuetTheme } from "../../common-types";
|
|
3
|
+
import { DuetLangObject } from "../../utils/language-utils";
|
|
4
|
+
import { ThemeableComponent } from "../../utils/themeable-component";
|
|
5
|
+
export interface StringMap {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export declare type DuetEditableTableItemEvent = {
|
|
9
|
+
originalEvent?: Event;
|
|
10
|
+
uid: string;
|
|
11
|
+
keyName: string;
|
|
12
|
+
action: string;
|
|
13
|
+
group: string;
|
|
14
|
+
component: "duet-editable-table-item";
|
|
15
|
+
};
|
|
16
|
+
export declare type DuetEditableTableActions = {
|
|
17
|
+
icon: string;
|
|
18
|
+
color: string;
|
|
19
|
+
color_hover: string;
|
|
20
|
+
id: string;
|
|
21
|
+
map?: string[];
|
|
22
|
+
label?: DuetLangObject;
|
|
23
|
+
}[];
|
|
24
|
+
export declare type DuetEditableTableItemData = {
|
|
25
|
+
uid: string;
|
|
26
|
+
item: string | HTMLElement;
|
|
27
|
+
group: string;
|
|
28
|
+
};
|
|
29
|
+
export declare class DuetEditableTableItem implements ThemeableComponent {
|
|
30
|
+
el: HTMLElement;
|
|
31
|
+
isHovering: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Theme of the empty state component.
|
|
34
|
+
*/
|
|
35
|
+
theme: DuetTheme;
|
|
36
|
+
/**
|
|
37
|
+
* Actions that can be performed on the element
|
|
38
|
+
*/
|
|
39
|
+
actions: DuetEditableTableActions;
|
|
40
|
+
/**
|
|
41
|
+
* GroupId used to pierce the shadowdom - gets concatenated with "content & actions" and used as part="groupIDcontent/actions" to pierce the content/Action item
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
groupId: string;
|
|
45
|
+
/**
|
|
46
|
+
* Key used to identify item, when running actions
|
|
47
|
+
*/
|
|
48
|
+
keyName: string;
|
|
49
|
+
/**
|
|
50
|
+
* Object of data itemsused to render the entire row
|
|
51
|
+
*/
|
|
52
|
+
data: DuetEditableTableItemData;
|
|
53
|
+
watchPropHandler(_newValue: any, _oldValue: any): void;
|
|
54
|
+
/**
|
|
55
|
+
* Emitted when any action is clicked
|
|
56
|
+
*/
|
|
57
|
+
duetEditableItemAction: EventEmitter<DuetEditableTableItemEvent>;
|
|
58
|
+
/**
|
|
59
|
+
/**
|
|
60
|
+
* Component lifecycle events.
|
|
61
|
+
*/
|
|
62
|
+
componentWillLoad(): void;
|
|
63
|
+
/**
|
|
64
|
+
/**
|
|
65
|
+
* private functions
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* render() function
|
|
69
|
+
* Always the last one in the class.
|
|
70
|
+
*/
|
|
71
|
+
render(): any;
|
|
72
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { DuetTheme } from "../../common-types";
|
|
2
|
+
import { DuetLangObject } from "../../utils/language-utils";
|
|
3
|
+
import { ThemeableComponent } from "../../utils/themeable-component";
|
|
4
|
+
import { DuetEditableTableActions, DuetEditableTableItemData } from "./duet-editable-table-item";
|
|
5
|
+
export declare type DuetEditableTableGroupNames = {
|
|
6
|
+
id: string;
|
|
7
|
+
label: DuetLangObject;
|
|
8
|
+
actionLabel?: DuetLangObject;
|
|
9
|
+
}[];
|
|
10
|
+
export declare type DuetEditableTableItems = Map<any, DuetEditableTableItemData>;
|
|
11
|
+
export declare class DuetEditableTable implements ThemeableComponent {
|
|
12
|
+
private internalGroupArray;
|
|
13
|
+
private internalActionsArray;
|
|
14
|
+
/**
|
|
15
|
+
* Reference to host HTML element.
|
|
16
|
+
*/
|
|
17
|
+
element: HTMLElement;
|
|
18
|
+
/**
|
|
19
|
+
* State() variables
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
tick: number;
|
|
23
|
+
/**
|
|
24
|
+
* Map of items that contain list of things.
|
|
25
|
+
*/
|
|
26
|
+
items: DuetEditableTableItems;
|
|
27
|
+
/**
|
|
28
|
+
* Array of internationalized defaults for the default groups labels.
|
|
29
|
+
*/
|
|
30
|
+
groupsLabelDefaults: DuetLangObject;
|
|
31
|
+
/**
|
|
32
|
+
* Array of internationalized defaults for the default action labels.
|
|
33
|
+
*/
|
|
34
|
+
actionLabelDefaults: DuetLangObject;
|
|
35
|
+
/**
|
|
36
|
+
* Array of group names that you want the editable table to display (can be used to hide or show groups depending on conditions).
|
|
37
|
+
* @default { id: "all", label: this.groupsLabelDefaults, actionLabel: this.actionLabelDefaults }.
|
|
38
|
+
* @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}].
|
|
39
|
+
*/
|
|
40
|
+
groups: DuetEditableTableGroupNames | string;
|
|
41
|
+
/**
|
|
42
|
+
* Array of actions that are mapped via the map variable to the various groups defined in group.
|
|
43
|
+
* @default undefined
|
|
44
|
+
* @example [{
|
|
45
|
+
variation: "default",
|
|
46
|
+
icon: "action-edit-2",
|
|
47
|
+
id: "edit",
|
|
48
|
+
map: ["success"],
|
|
49
|
+
label: {
|
|
50
|
+
fi: " Label",
|
|
51
|
+
en: " Label",
|
|
52
|
+
sv: " Label",
|
|
53
|
+
}
|
|
54
|
+
}]
|
|
55
|
+
*/
|
|
56
|
+
actions: DuetEditableTableActions | string;
|
|
57
|
+
/**
|
|
58
|
+
* Shows or hides the table labels.
|
|
59
|
+
*/
|
|
60
|
+
hideGroups: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Exposes the aria role for optimizing accessibility.
|
|
63
|
+
*/
|
|
64
|
+
accessibleRole: string;
|
|
65
|
+
/**
|
|
66
|
+
* Theme of the table.
|
|
67
|
+
*/
|
|
68
|
+
theme: DuetTheme;
|
|
69
|
+
/**
|
|
70
|
+
* Component lifecycle events.
|
|
71
|
+
*/
|
|
72
|
+
componentWillLoad(): void;
|
|
73
|
+
/**
|
|
74
|
+
* Method to force an update of a tabular data array.
|
|
75
|
+
* when called the method will rerender the entire tabular structure.
|
|
76
|
+
*/
|
|
77
|
+
updateTable(passedItems?: DuetEditableTableItems): Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* Private methods.
|
|
80
|
+
*/
|
|
81
|
+
private kick;
|
|
82
|
+
filterMap: (needle: any) => [any, DuetEditableTableItemData][];
|
|
83
|
+
render(): any;
|
|
84
|
+
}
|
|
@@ -64,7 +64,7 @@ export declare class DuetFooter implements ThemeableComponent {
|
|
|
64
64
|
* normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
|
|
65
65
|
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
66
66
|
*/
|
|
67
|
-
accessibleLabelExternalDefaults: DuetLangObject;
|
|
67
|
+
accessibleLabelExternalDefaults: DuetLangObject | string;
|
|
68
68
|
/**
|
|
69
69
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
70
70
|
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentInterface } from "../../stencil-public-runtime";
|
|
2
2
|
import { DuetDirection, DuetGridBreakpoint } from "../../common-types";
|
|
3
|
-
export declare type DuetGridAlignment = "top" | "bottom" | "center" | "stretch" | "baseline";
|
|
3
|
+
export declare type DuetGridAlignment = "top" | "bottom" | "center" | "stretch" | "baseline" | "form_distribute";
|
|
4
4
|
export declare type DuetGridDistribution = "default" | "left" | "right" | "center" | "space-between" | "space-around" | "space-evenly";
|
|
5
5
|
export declare type DuetGridMobileAlignment = "" | "auto" | "left" | "right" | "center";
|
|
6
6
|
export declare class DuetGrid implements ComponentInterface {
|
|
@@ -8,6 +8,8 @@ export declare class DuetGrid implements ComponentInterface {
|
|
|
8
8
|
* Own Properties.
|
|
9
9
|
*/
|
|
10
10
|
private mutationO?;
|
|
11
|
+
private mutation1?;
|
|
12
|
+
distributeFormElement: boolean;
|
|
11
13
|
/**
|
|
12
14
|
* Reference to host HTML element.
|
|
13
15
|
*/
|
|
@@ -28,7 +30,9 @@ export declare class DuetGrid implements ComponentInterface {
|
|
|
28
30
|
*/
|
|
29
31
|
direction: DuetDirection;
|
|
30
32
|
/**
|
|
31
|
-
* Adjusts the vertical alignment of the grid items
|
|
33
|
+
* Adjusts the vertical alignment of the grid items, if set to "form_distribute"
|
|
34
|
+
* the grid will try to calculate correct paddings for any duet-input fields inside duet-grid-items,
|
|
35
|
+
* so that they align even when displaying errors.
|
|
32
36
|
*/
|
|
33
37
|
alignment: DuetGridAlignment;
|
|
34
38
|
/**
|
|
@@ -39,6 +43,15 @@ export declare class DuetGrid implements ComponentInterface {
|
|
|
39
43
|
* Adjusts the horizontal alignment of the grid items on mobile (575px and under).
|
|
40
44
|
*/
|
|
41
45
|
mobile: DuetGridMobileAlignment;
|
|
46
|
+
/**
|
|
47
|
+
* Private functions
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* Returns the element height including margins
|
|
51
|
+
* @param element - element
|
|
52
|
+
* @returns {number}
|
|
53
|
+
*/
|
|
54
|
+
private outerHeight;
|
|
42
55
|
/**
|
|
43
56
|
* Component lifecycle events.
|
|
44
57
|
*/
|
|
@@ -48,6 +61,7 @@ export declare class DuetGrid implements ComponentInterface {
|
|
|
48
61
|
* Local methods
|
|
49
62
|
*/
|
|
50
63
|
private updateGridItems;
|
|
64
|
+
private updateGridItemsWithInputFields;
|
|
51
65
|
/**
|
|
52
66
|
* render() function
|
|
53
67
|
* Always the last one in the class.
|
|
@@ -75,10 +75,26 @@ export declare class DuetHeader implements ThemeableComponent {
|
|
|
75
75
|
*/
|
|
76
76
|
language: DuetLanguage;
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
79
|
-
*
|
|
78
|
+
* Default strings for accessibleI18nLabels
|
|
79
|
+
* @default {
|
|
80
|
+
fi: {
|
|
81
|
+
skipLabel: "Siirry pääsisältöön",
|
|
82
|
+
changeLanguage: "Vaihda kieltä",
|
|
83
|
+
activeLanguage: "Suomi valittuna",
|
|
84
|
+
},
|
|
85
|
+
sv: {
|
|
86
|
+
skipLabel: "Hoppa till huvudinnehåll",
|
|
87
|
+
changeLanguage: "Ändra Språk",
|
|
88
|
+
activeLanguage: "Svenska valt",
|
|
89
|
+
},
|
|
90
|
+
en: {
|
|
91
|
+
skipLabel: "Skip to main content",
|
|
92
|
+
changeLanguage: "Change language",
|
|
93
|
+
activeLanguage: "English selected",
|
|
94
|
+
},
|
|
95
|
+
}
|
|
80
96
|
*/
|
|
81
|
-
|
|
97
|
+
accessibleI18nLabelsDefaults: string | Record<DuetLanguage, I18nText>;
|
|
82
98
|
/**
|
|
83
99
|
* Adds i18n translations of all internally used textStrings
|
|
84
100
|
* @default {
|
|
@@ -105,7 +121,7 @@ export declare class DuetHeader implements ThemeableComponent {
|
|
|
105
121
|
* normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
|
|
106
122
|
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
107
123
|
*/
|
|
108
|
-
accessibleLabelExternalDefaults: DuetLangObject;
|
|
124
|
+
accessibleLabelExternalDefaults: DuetLangObject | string;
|
|
109
125
|
/**
|
|
110
126
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
111
127
|
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
@@ -115,7 +131,7 @@ export declare class DuetHeader implements ThemeableComponent {
|
|
|
115
131
|
* Property to change accessibleLabel defaults on the component.
|
|
116
132
|
* normally you would handle these strings on an application level and override @accessibleLabel when needed
|
|
117
133
|
*/
|
|
118
|
-
|
|
134
|
+
accessibleLabelDefaults: DuetLangObject | string;
|
|
119
135
|
/**
|
|
120
136
|
* Accessible label that is shown for screen reader users in the mobile
|
|
121
137
|
* navigation toggle. Not visible for normal users.
|
|
@@ -21,9 +21,9 @@ export declare class DuetHeading implements ThemeableComponent {
|
|
|
21
21
|
*/
|
|
22
22
|
visualLevel: DuetVisualHeadingLevel;
|
|
23
23
|
/**
|
|
24
|
-
* Enable or disable the border underneath the heading
|
|
24
|
+
* Enable or disable the border underneath the heading, solid will darken the border
|
|
25
25
|
*/
|
|
26
|
-
border: boolean;
|
|
26
|
+
border: boolean | "solid";
|
|
27
27
|
/**
|
|
28
28
|
* This property allows you to set semibold font weight for all sizes
|
|
29
29
|
* when needed.
|
|
@@ -103,10 +103,10 @@ export declare class DuetHero implements ThemeableComponent {
|
|
|
103
103
|
*/
|
|
104
104
|
language: DuetLanguage;
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
107
|
-
*
|
|
106
|
+
* Defaults for accessibleLabelExternal
|
|
107
|
+
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
108
108
|
*/
|
|
109
|
-
accessibleLabelExternalDefaults: DuetLangObject;
|
|
109
|
+
accessibleLabelExternalDefaults: DuetLangObject | string;
|
|
110
110
|
/**
|
|
111
111
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
112
112
|
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
@@ -17,11 +17,10 @@ export declare class DuetLink implements ThemeableComponent {
|
|
|
17
17
|
*/
|
|
18
18
|
language: DuetLanguage;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
* normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
|
|
20
|
+
* Defaults for accessibleLabelExternal
|
|
22
21
|
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
23
22
|
*/
|
|
24
|
-
accessibleLabelExternalDefaults: DuetLangObject;
|
|
23
|
+
accessibleLabelExternalDefaults: DuetLangObject | string;
|
|
25
24
|
/**
|
|
26
25
|
* Adds accessible label for tooltip that is shown in external link (url & external have both been set)
|
|
27
26
|
* @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
|
|
@@ -40,10 +40,10 @@ export declare class DuetModal implements ThemeableComponent {
|
|
|
40
40
|
*/
|
|
41
41
|
language: DuetLanguage;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
43
|
+
* Defaults for accessibleCloseLabel
|
|
44
|
+
* @default {fi: "Sulje ikkuna", sv: "Stäng fönstret", en: "Close the dialog", }
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
accessibleCloseLabelDefaults: DuetLangObject | string;
|
|
47
47
|
/**
|
|
48
48
|
* Adds accessible label for the close icon that is only shown for screen
|
|
49
49
|
* readers. This property is always required to create an accessibly interface!
|
|
@@ -33,10 +33,10 @@ export declare class DuetNotificationDrawer implements ThemeableComponent {
|
|
|
33
33
|
*/
|
|
34
34
|
language: DuetLanguage;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
36
|
+
* Defaults for accessibleLabelNotifications
|
|
37
|
+
* @default {en: "No notifications", fi: "Ei ilmoituksia", sv: "Inga notifikationer"}
|
|
38
38
|
*/
|
|
39
|
-
accessibleLabelNotificationsDefaults: DuetLangObject;
|
|
39
|
+
accessibleLabelNotificationsDefaults: DuetLangObject | string;
|
|
40
40
|
/**
|
|
41
41
|
* Adds accessible label for tooltip that is shown for notifications
|
|
42
42
|
* @default {en: "No notifications", fi: "Ei ilmoituksia", sv: "Inga notifikationer"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { DuetLanguage, DuetLocale, DuetMargin, DuetTheme } from "../../common-types";
|
|
3
3
|
import { DuetNumericInput } from "../../utils/form-components";
|
|
4
|
+
import { DuetLangObject } from "../../utils/language-utils";
|
|
4
5
|
import { ThemeableComponent } from "../../utils/themeable-component";
|
|
5
6
|
export declare type DuetNumberInputEvent = {
|
|
6
7
|
originalEvent?: Event;
|
|
@@ -55,6 +56,11 @@ export declare class DuetNumberInput implements ThemeableComponent, DuetNumericI
|
|
|
55
56
|
* Indicates the id of a component that describes the input.
|
|
56
57
|
*/
|
|
57
58
|
accessibleDescribedBy: string;
|
|
59
|
+
/**
|
|
60
|
+
* Defaults for accessibleLive
|
|
61
|
+
* @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
|
|
62
|
+
*/
|
|
63
|
+
accessibleLiveDefaults: DuetLangObject | string;
|
|
58
64
|
/**
|
|
59
65
|
* Format of message used to announce current amount when switching between amounts.
|
|
60
66
|
* The string {current} is replaced with the current amount.
|
|
@@ -65,11 +71,21 @@ export declare class DuetNumberInput implements ThemeableComponent, DuetNumericI
|
|
|
65
71
|
* Disables the aria-live messaging used internally in this component. This could be useful when you want to use custom aria-live messages instead.
|
|
66
72
|
*/
|
|
67
73
|
accessibleLiveEnabled: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Defaults for accessibleAdd
|
|
76
|
+
* @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
|
|
77
|
+
*/
|
|
78
|
+
accessibleAddDefaults: DuetLangObject | string;
|
|
68
79
|
/**
|
|
69
80
|
* Accessible label for the add button that is read for screen reader users.
|
|
70
81
|
* @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
|
|
71
82
|
*/
|
|
72
83
|
accessibleAdd: string;
|
|
84
|
+
/**
|
|
85
|
+
* Defaults for accessibleSubtract
|
|
86
|
+
* @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
|
|
87
|
+
*/
|
|
88
|
+
accessibleSubtractDefaults: DuetLangObject | string;
|
|
73
89
|
/**
|
|
74
90
|
* Accessible label for the subtract button that is read for screen reader users.
|
|
75
91
|
* @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
|
|
@@ -95,6 +111,11 @@ export declare class DuetNumberInput implements ThemeableComponent, DuetNumericI
|
|
|
95
111
|
* Minimum value.
|
|
96
112
|
*/
|
|
97
113
|
min: number;
|
|
114
|
+
/**
|
|
115
|
+
* Defaults for Label
|
|
116
|
+
* @default {fi: "Etiketti", en: "Label", sv: "Märka"}
|
|
117
|
+
*/
|
|
118
|
+
labelDefaults: DuetLangObject | string;
|
|
98
119
|
/**
|
|
99
120
|
* Label for the number input.
|
|
100
121
|
* @default {fi: "Etiketti", en: "Label", sv: "Märka"}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { DuetColor, DuetMargin, DuetTheme } from "../../common-types";
|
|
2
2
|
import { ThemeableComponent } from "../../utils/themeable-component";
|
|
3
3
|
export declare type DuetParagraphSize = "small" | "medium";
|
|
4
|
+
export declare type DuetParagraphWeight = "semi-bold" | "bold" | undefined;
|
|
4
5
|
export declare type DuetParagraphVariation = "default" | "intro";
|
|
6
|
+
/**
|
|
7
|
+
* @part duet-paragraph - piercing selector for styling the paragraph
|
|
8
|
+
*/
|
|
5
9
|
export declare class DuetParagraph implements ThemeableComponent {
|
|
6
10
|
/**
|
|
7
11
|
* Reference to host HTML element.
|
|
8
12
|
*/
|
|
9
13
|
element: HTMLElement;
|
|
10
14
|
/**
|
|
11
|
-
* Theme of the
|
|
15
|
+
* Theme of the paragraph.
|
|
12
16
|
*/
|
|
13
17
|
theme: DuetTheme;
|
|
14
18
|
/**
|
|
@@ -19,6 +23,10 @@ export declare class DuetParagraph implements ThemeableComponent {
|
|
|
19
23
|
* Controls the size of the paragraph.
|
|
20
24
|
*/
|
|
21
25
|
size: DuetParagraphSize;
|
|
26
|
+
/**
|
|
27
|
+
* Controls the Font-Weight of the paragraph.
|
|
28
|
+
*/
|
|
29
|
+
weight: DuetParagraphWeight;
|
|
22
30
|
/**
|
|
23
31
|
* Style variation of the paragraph.
|
|
24
32
|
*/
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { DuetTheme } from "../../common-types";
|
|
2
|
+
import { DuetLangObject } from "../../utils/language-utils";
|
|
3
|
+
import { ThemeableComponent } from "../../utils/themeable-component";
|
|
4
|
+
export declare type DuetUploadEvent = {
|
|
5
|
+
originalEvent?: Event;
|
|
6
|
+
data?: Record<string, any>;
|
|
7
|
+
component: "duet-progress";
|
|
8
|
+
scoped: true;
|
|
9
|
+
};
|
|
10
|
+
export declare class DuetProgress implements ThemeableComponent {
|
|
11
|
+
/**
|
|
12
|
+
* Own Properties
|
|
13
|
+
*/
|
|
14
|
+
private progressId;
|
|
15
|
+
private progressLabelId;
|
|
16
|
+
/**
|
|
17
|
+
* Reference to host HTML element.
|
|
18
|
+
*/
|
|
19
|
+
element: HTMLElement;
|
|
20
|
+
/**
|
|
21
|
+
* Indicates the id of a component that describes the upload component.
|
|
22
|
+
*/
|
|
23
|
+
accessibleDescribedBy: string;
|
|
24
|
+
/**
|
|
25
|
+
* Indicates the aria-label of the component -
|
|
26
|
+
* this will get combined with an label+uploading when uploading,
|
|
27
|
+
* and label+upload complete when upload is complete
|
|
28
|
+
*/
|
|
29
|
+
accessibleLabel: string;
|
|
30
|
+
/**
|
|
31
|
+
* Defaults for accessibleLabel
|
|
32
|
+
*/
|
|
33
|
+
accessibleLabelUploadDefaults: DuetLangObject | string;
|
|
34
|
+
/**
|
|
35
|
+
* Adds accessible label for upload in progress and upload complete states
|
|
36
|
+
* @default {fi: ["lähetys valmis", "lähetys käynnissä"],sv: ["Uppladdningen är klar", "Uppladdning pågår"], en: ["completed", "in progress"]}
|
|
37
|
+
*/
|
|
38
|
+
accessibleLabelUpload: string;
|
|
39
|
+
/**
|
|
40
|
+
* Progress of the bar, a value from 0-100
|
|
41
|
+
*/
|
|
42
|
+
progress: number;
|
|
43
|
+
/**
|
|
44
|
+
* Caption (underneath label) that can be set as a way of adding extra information
|
|
45
|
+
*/
|
|
46
|
+
caption: string;
|
|
47
|
+
/**
|
|
48
|
+
* Height of progressbar
|
|
49
|
+
*/
|
|
50
|
+
height: string;
|
|
51
|
+
/**
|
|
52
|
+
* Theme of the input.
|
|
53
|
+
*/
|
|
54
|
+
theme: DuetTheme;
|
|
55
|
+
/**
|
|
56
|
+
* Component lifecycle events.
|
|
57
|
+
*/
|
|
58
|
+
componentWillLoad(): void;
|
|
59
|
+
/**
|
|
60
|
+
* render() function
|
|
61
|
+
* Always the last one in the class.
|
|
62
|
+
*/
|
|
63
|
+
render(): any;
|
|
64
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { DuetLanguage, DuetMargin, DuetPadding, DuetTheme } from "../../common-types";
|
|
3
|
+
import { DuetLangObject } from "../../utils/language-utils";
|
|
3
4
|
import { ThemeableComponent } from "../../utils/themeable-component";
|
|
4
5
|
export declare type DuetTabGroupEvent = {
|
|
5
6
|
component: "duet-tab-group";
|
|
@@ -37,6 +38,11 @@ export declare class DuetTabGroup implements ThemeableComponent {
|
|
|
37
38
|
* @default "fi"
|
|
38
39
|
*/
|
|
39
40
|
language: DuetLanguage;
|
|
41
|
+
/**
|
|
42
|
+
* Defaults for Label
|
|
43
|
+
* @default {fi: "Valitse", en: "Choose", sv: "Välja"}
|
|
44
|
+
*/
|
|
45
|
+
labelDefaults: DuetLangObject | string;
|
|
40
46
|
/**
|
|
41
47
|
* Label for the select element which gets shown on mobile.
|
|
42
48
|
* @default {fi: "Valitse", en: "Choose", sv: "Välja"}
|