@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,4 +1,5 @@
|
|
|
1
1
|
import { DuetLanguage, DuetTheme, DuetTooltipDirection } from "../../common-types";
|
|
2
|
+
import { DuetLangObject } from "../../utils/language-utils";
|
|
2
3
|
import { ThemeableComponent } from "../../utils/themeable-component";
|
|
3
4
|
export declare type DuetTooltipBreakpoint = "medium" | "large";
|
|
4
5
|
export declare class DuetTooltip implements ThemeableComponent {
|
|
@@ -32,6 +33,11 @@ export declare class DuetTooltip implements ThemeableComponent {
|
|
|
32
33
|
* @default "fi"
|
|
33
34
|
*/
|
|
34
35
|
language: DuetLanguage;
|
|
36
|
+
/**
|
|
37
|
+
* Default language strings for the accessibleLabel
|
|
38
|
+
* @default {fi: "Näytä lisätietoja", en: "See more information", sv: "Se mer information"}
|
|
39
|
+
*/
|
|
40
|
+
accessibleLabelDefault: DuetLangObject | string;
|
|
35
41
|
/**
|
|
36
42
|
* Adds accessible label for the info icon that is only shown for screen
|
|
37
43
|
* readers. This property is always required to create an accessible interface!
|
|
@@ -44,6 +50,11 @@ export declare class DuetTooltip implements ThemeableComponent {
|
|
|
44
50
|
* Used internally by input components to add more context to the tooltip.
|
|
45
51
|
*/
|
|
46
52
|
accessibleInputLabel: string;
|
|
53
|
+
/**
|
|
54
|
+
* Default language strings for the accessibleCloseLabel
|
|
55
|
+
* @default {fi: "Sulje lisätiedot", en: "Close details", sv: "Stäng detaljer"}
|
|
56
|
+
*/
|
|
57
|
+
accessibleCloseLabelDefault: DuetLangObject | string;
|
|
47
58
|
/**
|
|
48
59
|
* Adds accessible label for the close icon that is only shown for screen
|
|
49
60
|
* readers. This property is always required to create an accessibly interface!
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DuetLanguage, DuetTheme } from "../../common-types";
|
|
2
|
+
import { DuetLangObject } from "../../utils/language-utils";
|
|
2
3
|
import { ThemeableComponent } from "../../utils/themeable-component";
|
|
3
4
|
/**
|
|
4
5
|
* @slot unnamed default slot - The component’s primary content. All child nodes that do not have a slot attribute defined are inserted into this primary slot.
|
|
@@ -27,12 +28,22 @@ export declare class DuetTray implements ThemeableComponent {
|
|
|
27
28
|
* @default "fi"
|
|
28
29
|
*/
|
|
29
30
|
language: DuetLanguage;
|
|
31
|
+
/**
|
|
32
|
+
* Defaults for accessibleCloseLabel
|
|
33
|
+
* @default {fi: "Sulje", en: "Close", sv: "Stänga"}
|
|
34
|
+
*/
|
|
35
|
+
accessibleCloseLabelDefaults: DuetLangObject | string;
|
|
30
36
|
/**
|
|
31
37
|
* Accessible label that is shown for screen reader users in the expandable
|
|
32
38
|
* close toggle. Not visible for normal users.
|
|
33
39
|
* @default {fi: "Sulje", en: "Close", sv: "Stänga"}
|
|
34
40
|
*/
|
|
35
41
|
accessibleCloseLabel: string;
|
|
42
|
+
/**
|
|
43
|
+
* Defaults for accessibleOpenLabel
|
|
44
|
+
* @default {fi: "Avaa", en: "Open", sv: "Öppen"}
|
|
45
|
+
*/
|
|
46
|
+
accessibleOpenLabelDefaults: DuetLangObject | string;
|
|
36
47
|
/**
|
|
37
48
|
* Accessible label that is shown for screen reader users in the expandable
|
|
38
49
|
* open toggle. Not visible for normal users.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export declare type StatusMessage = {
|
|
2
|
+
inProgress: string;
|
|
3
|
+
inProgressWithErrors: string;
|
|
4
|
+
done: string;
|
|
5
|
+
doneWithErrors: string;
|
|
6
|
+
file: string;
|
|
7
|
+
files: string;
|
|
8
|
+
};
|
|
9
|
+
export declare class DuetUploadAriaStatus {
|
|
10
|
+
/**
|
|
11
|
+
* State() variables
|
|
12
|
+
*/
|
|
13
|
+
statusMessage: string;
|
|
14
|
+
/**
|
|
15
|
+
* State() variables
|
|
16
|
+
*/
|
|
17
|
+
statusMessageLabel: StatusMessage;
|
|
18
|
+
/**
|
|
19
|
+
* Adds accessible label that is read aloud
|
|
20
|
+
*/
|
|
21
|
+
accessibleAriaLive: "off" | "polite" | "assertive";
|
|
22
|
+
/**
|
|
23
|
+
* valid file amount
|
|
24
|
+
*/
|
|
25
|
+
valid: number;
|
|
26
|
+
/**
|
|
27
|
+
* total files
|
|
28
|
+
*/
|
|
29
|
+
total: number;
|
|
30
|
+
/**
|
|
31
|
+
* invalid file amount
|
|
32
|
+
*/
|
|
33
|
+
invalid: number;
|
|
34
|
+
/**
|
|
35
|
+
* valid file amount
|
|
36
|
+
*/
|
|
37
|
+
inprogress: number;
|
|
38
|
+
watchHandler(newValue: boolean, oldValue: boolean): void;
|
|
39
|
+
/**
|
|
40
|
+
* Component lifecycle events.
|
|
41
|
+
*/
|
|
42
|
+
private replacePlaceHolders;
|
|
43
|
+
private getStatusMessage;
|
|
44
|
+
/**
|
|
45
|
+
* render() function
|
|
46
|
+
* Always the last one in the class.
|
|
47
|
+
*/
|
|
48
|
+
render(): any;
|
|
49
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FunctionalComponent } from "../../stencil-public-runtime";
|
|
2
|
+
import { DuetFileListItem } from "./duet-upload";
|
|
3
|
+
interface SuccessProps {
|
|
4
|
+
data: DuetFileListItem;
|
|
5
|
+
showLinks: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const SuccessItem: FunctionalComponent<SuccessProps>;
|
|
8
|
+
export {};
|
|
@@ -3,31 +3,41 @@ import { DuetMargin, DuetTheme } from "../../common-types";
|
|
|
3
3
|
import { FormComponent } from "../../utils/form-components";
|
|
4
4
|
import { DuetLangObject } from "../../utils/language-utils";
|
|
5
5
|
import { ThemeableComponent } from "../../utils/themeable-component";
|
|
6
|
+
import { DuetEditableTableGroupNames } from "../duet-editable-table/duet-editable-table";
|
|
7
|
+
import { DuetEditableTableActions } from "../duet-editable-table/duet-editable-table-item";
|
|
8
|
+
import { StatusMessage } from "./duet-upload-aria-status";
|
|
6
9
|
import { DuetUploadErrorCode } from "./errorcodes.utils";
|
|
7
10
|
import { DuetXhrRequest } from "./xhr.helpers";
|
|
8
11
|
export declare type DuetUploadEvent = {
|
|
9
12
|
originalEvent?: Event;
|
|
10
13
|
data?: Record<string, any>;
|
|
14
|
+
metaData?: Record<string, any>;
|
|
11
15
|
component: "duet-upload";
|
|
12
16
|
};
|
|
13
17
|
export declare type DuetFileListItem = {
|
|
14
18
|
uid: string;
|
|
15
19
|
item: File | null;
|
|
16
20
|
size: number;
|
|
21
|
+
meta?: Record<string, any>;
|
|
22
|
+
uploaded: boolean;
|
|
17
23
|
error: DuetUploadErrorCode;
|
|
18
24
|
progress: number;
|
|
19
25
|
deleted: boolean;
|
|
20
26
|
valid: boolean;
|
|
21
27
|
xhr: DuetXhrRequest | false;
|
|
22
28
|
url: string | false;
|
|
29
|
+
group?: string;
|
|
30
|
+
html?: string;
|
|
31
|
+
status?: number;
|
|
23
32
|
};
|
|
24
33
|
export interface StringMap {
|
|
25
34
|
[key: string]: any;
|
|
26
35
|
}
|
|
27
36
|
/**
|
|
28
37
|
* @slot header - named slot - to place content after description / caption
|
|
29
|
-
* @slot fileheader - named slot - to place content above filelist (only displayed when filelist contains items)
|
|
30
|
-
* @slot
|
|
38
|
+
* @slot fileheader - named slot - to place content above "filelist" (only displayed when "filelist" contains items)
|
|
39
|
+
* @slot filelist - named slot - should always contain a configurable duet-editable-table or a component that exposes the same functionality
|
|
40
|
+
* @slot filefooter - named slot - to place content below "filelist" (only displayed when "filelist" contains items)
|
|
31
41
|
*/
|
|
32
42
|
export declare class DuetUpload implements ThemeableComponent, FormComponent {
|
|
33
43
|
/**
|
|
@@ -36,10 +46,16 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
|
|
|
36
46
|
private buttonId;
|
|
37
47
|
private labelId;
|
|
38
48
|
private uploadId;
|
|
49
|
+
private editableTableId;
|
|
39
50
|
private filesInProgress;
|
|
40
51
|
private fileMaxReached;
|
|
41
52
|
private bytesMaxReached;
|
|
53
|
+
private metaData;
|
|
42
54
|
private nativeInput?;
|
|
55
|
+
/**
|
|
56
|
+
* Properties
|
|
57
|
+
*/
|
|
58
|
+
private DefaultGroups;
|
|
43
59
|
/**
|
|
44
60
|
* Reference to host HTML element.
|
|
45
61
|
*/
|
|
@@ -70,19 +86,51 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
|
|
|
70
86
|
* it will be up to you to handle the upload and return progress information to the upload-component
|
|
71
87
|
*/
|
|
72
88
|
external: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* If set the upload component will not display an upload button, you will have to create on yourself
|
|
91
|
+
* and call the exposed methods startUpload
|
|
92
|
+
*/
|
|
93
|
+
hideButton: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Default actions added to all files
|
|
96
|
+
*/
|
|
97
|
+
actions: DuetEditableTableActions | string;
|
|
73
98
|
/**
|
|
74
99
|
* Endpoint URI that is capable of receiving the files
|
|
75
100
|
*/
|
|
76
101
|
uri: string;
|
|
102
|
+
/**
|
|
103
|
+
* If enabled the filelist will create links on successfully uploaded items,
|
|
104
|
+
* this requires the server can respond with link URIs in the correct format
|
|
105
|
+
*/
|
|
106
|
+
showLinks: boolean;
|
|
77
107
|
/**
|
|
78
108
|
* Caption (underneath label) that can be set as a way of adding extra information
|
|
79
109
|
*/
|
|
80
110
|
caption: string;
|
|
111
|
+
/**
|
|
112
|
+
* Property to change the aria upload progress text read aloud by screenreaders
|
|
113
|
+
* @default {
|
|
114
|
+
fi: "Lisää liite",
|
|
115
|
+
sv: "Lägg till en bilaga",
|
|
116
|
+
en: "Choose files",
|
|
117
|
+
}
|
|
118
|
+
*/
|
|
119
|
+
statusLabelDefaults: DuetLangObject | string;
|
|
120
|
+
/**
|
|
121
|
+
* Strings used for the status aria-label
|
|
122
|
+
*/
|
|
123
|
+
statusMessageLabel: StatusMessage;
|
|
81
124
|
/**
|
|
82
125
|
* Property to change descriptionDefaults defaults on the component.
|
|
83
126
|
* normally you would handle these strings on an application level and override @label when needed
|
|
127
|
+
* @default {
|
|
128
|
+
fi: "Lisää liite",
|
|
129
|
+
sv: "Lägg till en bilaga",
|
|
130
|
+
en: "Add an attachment",
|
|
131
|
+
}
|
|
84
132
|
*/
|
|
85
|
-
buttonLabelDefaults: DuetLangObject;
|
|
133
|
+
buttonLabelDefaults: DuetLangObject | string;
|
|
86
134
|
/**
|
|
87
135
|
* Label of button
|
|
88
136
|
* @default { fi: "Lisää liite", sv: "Lägg till en bilaga", en: "Add an attachment" }
|
|
@@ -116,6 +164,16 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
|
|
|
116
164
|
* browser from displaying its own validation errors.
|
|
117
165
|
*/
|
|
118
166
|
required: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Array of group names that you want the editable table used to display files to display
|
|
169
|
+
* @required
|
|
170
|
+
* @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}]
|
|
171
|
+
*/
|
|
172
|
+
groups: DuetEditableTableGroupNames | string;
|
|
173
|
+
/**
|
|
174
|
+
* Visually hides the groups labels in the editable table list used to display the list of files
|
|
175
|
+
*/
|
|
176
|
+
hideGroups: boolean;
|
|
119
177
|
/**
|
|
120
178
|
* Map of string that contain list of uploaded files.
|
|
121
179
|
*/
|
|
@@ -128,8 +186,9 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
|
|
|
128
186
|
/**
|
|
129
187
|
* Property to change labelDefaults defaults on the component.
|
|
130
188
|
* normally you would handle these strings on an application level and override @label when needed
|
|
189
|
+
* @default { fi: "Lisää liite",sv: "Lägg till en bilaga",en: "Add attachments"}
|
|
131
190
|
*/
|
|
132
|
-
labelDefaults: DuetLangObject;
|
|
191
|
+
labelDefaults: DuetLangObject | string;
|
|
133
192
|
/**
|
|
134
193
|
* Label for the input.
|
|
135
194
|
* @default { fi: "Lisää liite",sv: "Lägg till en bilaga",en: "Add attachments"}
|
|
@@ -138,18 +197,31 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
|
|
|
138
197
|
/**
|
|
139
198
|
* Property to change descriptionDefaults defaults on the component.
|
|
140
199
|
* normally you would handle these strings on an application level and override @label when needed
|
|
200
|
+
* @default {
|
|
201
|
+
fi: "Voit liittää {filetypes}-muotoisia tiedostoja sekä yleisimpiä videotiedostoja. Voit lähettää {maxbytes} verran tiedostoja yhdellä kertaa, ja lisätä enintään {maxfiles} liitettä kerrallaan.",
|
|
202
|
+
sv: "Du kan bifoga filer i flg. formater {filetypes} samt de vanligaste videofilerna. Du kan ladda upp {maxbytes} filer åt gången och lägga till upp till {maxfiles} bilagor åt gången.",
|
|
203
|
+
en: "You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytes} of files at a time, and add up to {maxfiles} attachments at a time.",
|
|
204
|
+
}
|
|
141
205
|
*/
|
|
142
|
-
descriptionDefaults: DuetLangObject;
|
|
206
|
+
descriptionDefaults: DuetLangObject | string;
|
|
143
207
|
/**
|
|
144
208
|
* Description for the upload component.
|
|
145
|
-
* @default
|
|
209
|
+
* @default {
|
|
210
|
+
fi: "Voit liittää {filetypes}-muotoisia tiedostoja sekä yleisimpiä videotiedostoja. Voit lähettää {maxbytes} verran tiedostoja yhdellä kertaa, ja lisätä enintään {maxfiles} liitettä kerrallaan.",
|
|
211
|
+
sv: "Du kan bifoga filer i flg. formater {filetypes} samt de vanligaste videofilerna. Du kan ladda upp {maxbytes} filer åt gången och lägga till upp till {maxfiles} bilagor åt gången.",
|
|
212
|
+
en: "You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytes} of files at a time, and add up to {maxfiles} attachments at a time.",
|
|
213
|
+
}
|
|
146
214
|
*/
|
|
147
215
|
description: string;
|
|
148
216
|
/**
|
|
149
217
|
* Defaults for the filelist's empty state.
|
|
150
|
-
* @default {
|
|
218
|
+
* @default {
|
|
219
|
+
fi: "Ei vielä lisättyjä tiedostoja.",
|
|
220
|
+
sv: "Inga filer har lagts till ännu.",
|
|
221
|
+
en: "No files added yet.",
|
|
222
|
+
}
|
|
151
223
|
*/
|
|
152
|
-
fileListEmptyDefaults: DuetLangObject;
|
|
224
|
+
fileListEmptyDefaults: DuetLangObject | string;
|
|
153
225
|
/**
|
|
154
226
|
* Label for the filelist's empty state.
|
|
155
227
|
* @default { fi: "Ei vielä lisättyjä tiedostoja.",sv: "Inga filer har lagts till ännu.",en: "No files added yet."}
|
|
@@ -159,25 +231,10 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
|
|
|
159
231
|
* Display the input in error state along with an error message.
|
|
160
232
|
*/
|
|
161
233
|
error: string;
|
|
162
|
-
/**
|
|
163
|
-
* Visually hide the label, but still show it to screen readers.
|
|
164
|
-
*/
|
|
165
|
-
labelHidden: boolean;
|
|
166
234
|
/**
|
|
167
235
|
* Name of the upload component.
|
|
168
236
|
*/
|
|
169
237
|
name: string;
|
|
170
|
-
/**
|
|
171
|
-
* if set, allows capture of media from user camera / microphone
|
|
172
|
-
* The capture attribute value is a string that specifies which camera to use for capture
|
|
173
|
-
* of image or video data, if the accept attribute indicates that the input should be of
|
|
174
|
-
* one of those types. A value of user indicates that the user-facing camera and/or
|
|
175
|
-
* microphone should be used. A value of environment specifies that the outward-facing
|
|
176
|
-
* camera and/or microphone should be used. If this attribute is missing, the user agent
|
|
177
|
-
* is free to decide on its own what to do. If the requested facing mode isn't available,
|
|
178
|
-
* the user agent may fall back to its preferred default mode.
|
|
179
|
-
*/
|
|
180
|
-
capture: string | boolean;
|
|
181
238
|
/**
|
|
182
239
|
* Use maxBytes to specify the maximum size in Bytes of a file that can be uploaded.
|
|
183
240
|
*/
|
|
@@ -257,6 +314,11 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
|
|
|
257
314
|
/**
|
|
258
315
|
* Private functions
|
|
259
316
|
*/
|
|
317
|
+
private listenForActionEvents;
|
|
318
|
+
private verifyValidity;
|
|
319
|
+
private getGroupFromItemData;
|
|
320
|
+
private getItemHTMLFromItemData;
|
|
321
|
+
private convertToDuetEditableTableItems;
|
|
260
322
|
private kick;
|
|
261
323
|
private genHashName;
|
|
262
324
|
private updateValueInMap;
|
|
@@ -264,7 +326,7 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
|
|
|
264
326
|
private trackProgress;
|
|
265
327
|
private getFilesAsArray;
|
|
266
328
|
private resetFormFields;
|
|
267
|
-
private
|
|
329
|
+
private startUpload;
|
|
268
330
|
/**
|
|
269
331
|
* Eventlisteners for the XHR requests
|
|
270
332
|
*/
|
|
@@ -290,12 +352,15 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
|
|
|
290
352
|
private onProgress;
|
|
291
353
|
private onFocus;
|
|
292
354
|
private onDone;
|
|
293
|
-
private startUpload;
|
|
294
355
|
/**
|
|
295
356
|
* Sets focus on the specified `duet-input`. Use this method instead of the global
|
|
296
357
|
* `input.focus()`.
|
|
297
358
|
*/
|
|
298
359
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
360
|
+
/**
|
|
361
|
+
* Method for invoking the upload sequence
|
|
362
|
+
*/
|
|
363
|
+
upload(metaData?: any | undefined): Promise<void>;
|
|
299
364
|
/**
|
|
300
365
|
* Get list of files, divided in errors and valid sections
|
|
301
366
|
*/
|
|
@@ -303,6 +368,10 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
|
|
|
303
368
|
valid: any[];
|
|
304
369
|
invalid: any[];
|
|
305
370
|
}>;
|
|
371
|
+
/**
|
|
372
|
+
* Convenience method for updating a of an item in the files attribute
|
|
373
|
+
*/
|
|
374
|
+
updateValue(item: string, key: string, value: any): Promise<void>;
|
|
306
375
|
/**
|
|
307
376
|
* render() function
|
|
308
377
|
* Always the last one in the class.
|
|
@@ -9,4 +9,10 @@ export declare type failureHandler = (xhr: XMLHttpRequest, name: string, status:
|
|
|
9
9
|
export declare type successHandler = (xhr: XMLHttpRequest, name: string, status: XMLHttpRequest["status"]) => void;
|
|
10
10
|
export declare type progressTracker = (name: string) => void;
|
|
11
11
|
export declare type DuetXhrRequest = (payload: Record<string, any>, options: Partial<DuetXhrRequestOptions>, onFailure: failureHandler, onSuccess: successHandler, onProgress: progressTracker) => XMLHttpRequest;
|
|
12
|
-
export declare const makeXhrRequest: (payload
|
|
12
|
+
export declare const makeXhrRequest: ({ payload, options, onFailure, onSuccess, onProgress }: {
|
|
13
|
+
payload: any;
|
|
14
|
+
options: any;
|
|
15
|
+
onFailure: any;
|
|
16
|
+
onSuccess: any;
|
|
17
|
+
onProgress: any;
|
|
18
|
+
}) => DuetXhrRequest;
|