@duetds/components 4.31.0 → 4.33.2
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 +1895 -77
- package/lib/cjs/{dom-e89ebf90.js → dom-c850c8d7.js} +1 -1
- package/lib/cjs/duet-alert.cjs.entry.js +2 -2
- package/lib/cjs/duet-badge.cjs.entry.js +1 -1
- package/lib/cjs/duet-button_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-caption_4.cjs.entry.js +17 -10
- package/lib/cjs/duet-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
- package/lib/cjs/duet-choice_2.cjs.entry.js +53 -24
- package/lib/cjs/duet-collapsible.cjs.entry.js +4 -449
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +7 -7
- package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-editable-table-button.cjs.entry.js +89 -0
- package/lib/cjs/duet-editable-table_4.cjs.entry.js +1445 -0
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +2 -2
- package/lib/cjs/duet-grid_2.cjs.entry.js +69 -4
- package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-hero.cjs.entry.js +2 -2
- package/lib/cjs/duet-icon.cjs.entry.js +5 -13
- package/lib/cjs/duet-input_2.cjs.entry.js +6 -6
- 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 +3 -3
- package/lib/cjs/duet-notification_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-number-input.cjs.entry.js +2 -2
- 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 +5 -5
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-tab_2.cjs.entry.js +3 -3
- 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 +2 -2
- package/lib/cjs/duet-tray.cjs.entry.js +3 -3
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +100 -0
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +4 -4
- package/lib/cjs/{focus-utils-bd331feb.js → focus-utils-27c696bb.js} +1 -1
- package/lib/cjs/{index-113c2add.js → index-18b0f43a.js} +91 -77
- package/lib/cjs/{language-utils-48b8860b.js → language-utils-aa282901.js} +6 -2
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{shadow-css-0c8c175b.js → shadow-css-e3edeed1.js} +9 -10
- package/lib/cjs/{token-utils-13e5d13e.js → token-utils-63a9c8dc.js} +1 -1
- package/lib/cjs/tokens-8596cece.js +459 -0
- 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 +17 -3
- package/lib/collection/components/duet-alert/duet-alert.js +4 -4
- package/lib/collection/components/duet-button/duet-button.js +10 -10
- package/lib/collection/components/duet-card/duet-card.css +20 -0
- package/lib/collection/components/duet-card/duet-card.js +4 -1
- 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 +117 -33
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +4 -4
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +16 -16
- 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 +10 -10
- package/lib/collection/components/duet-grid/duet-grid.js +74 -6
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +4 -4
- package/lib/collection/components/duet-header/duet-header.js +16 -16
- package/lib/collection/components/duet-heading/duet-heading.css +3 -0
- package/lib/collection/components/duet-heading/duet-heading.js +7 -6
- package/lib/collection/components/duet-hero/duet-hero.js +8 -8
- 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-link/duet-link.js +8 -8
- package/lib/collection/components/duet-logo/duet-logo.js +4 -4
- package/lib/collection/components/duet-modal/duet-modal.js +8 -8
- package/lib/collection/components/duet-notification/duet-notification.js +8 -8
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +8 -8
- package/lib/collection/components/duet-number-input/duet-number-input.js +20 -20
- 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 +10 -10
- 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 +14 -14
- package/lib/collection/components/duet-tray/duet-tray.js +12 -12
- package/lib/collection/components/duet-upload/duet-upload.css +64 -0
- package/lib/collection/components/duet-upload/duet-upload.js +1863 -0
- package/lib/collection/components/duet-upload/errorcodes.utils.js +32 -0
- package/lib/collection/components/duet-upload/mock.helpers.js +91 -0
- package/lib/collection/components/duet-upload/upload-editable-item-error.js +16 -0
- package/lib/collection/components/duet-upload/upload-editable-item-inprogres.js +8 -0
- package/lib/collection/components/duet-upload/upload-editable-item-success.js +30 -0
- package/lib/collection/components/duet-upload/upload-validators.js +93 -0
- package/lib/collection/components/duet-upload/upload.helpers.js +13 -0
- package/lib/collection/components/duet-upload/xhr.helpers.js +30 -0
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +217 -0
- package/lib/collection/utils/js-utils.js +12 -0
- package/lib/collection/utils/language-utils.js +6 -3
- package/lib/collection/utils/watch-options.js +35 -6
- package/lib/custom-elements-bundle/index.d.ts +36 -0
- package/lib/custom-elements-bundle/index.js +2014 -322
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-60ab57d4.entry.js → p-042ec8b1.entry.js} +1 -1
- package/lib/duet/{p-bcae23fc.system.entry.js → p-0435b54a.system.entry.js} +1 -1
- package/lib/duet/{p-dc85d2a4.entry.js → p-04b3e682.entry.js} +1 -1
- package/lib/duet/p-0ac2e60d.system.entry.js +4 -0
- package/lib/duet/p-0d22396e.system.js +16 -0
- package/lib/duet/p-1082d9f2.system.entry.js +4 -0
- package/lib/duet/p-12721178.js +4 -0
- package/lib/duet/{p-7d080785.system.entry.js → p-12fc4849.system.entry.js} +1 -1
- package/lib/duet/{p-c4737f88.entry.js → p-15fae689.entry.js} +1 -1
- package/lib/duet/p-1ad58142.entry.js +4 -0
- package/lib/duet/{p-c5f10483.system.entry.js → p-1c7d7cdd.system.entry.js} +1 -1
- package/lib/duet/p-1cf8dbc7.system.js +4 -0
- package/lib/duet/p-1dcbd837.system.entry.js +4 -0
- package/lib/duet/{p-fdecaf46.entry.js → p-1ecddc1d.entry.js} +1 -1
- package/lib/duet/p-2764f081.js +4 -0
- package/lib/duet/p-2b4bd1b2.system.entry.js +4 -0
- package/lib/duet/p-2d8e0faa.system.entry.js +4 -0
- package/lib/duet/{p-453955cc.system.entry.js → p-33538e90.system.entry.js} +1 -1
- package/lib/duet/{p-b1b8e510.entry.js → p-3364cfd2.entry.js} +1 -1
- package/lib/duet/p-350cea4e.system.entry.js +4 -0
- package/lib/duet/{p-bd9a7d8f.js → p-35a3794e.js} +0 -0
- package/lib/duet/p-39e9d638.entry.js +4 -0
- package/lib/duet/{p-1e7222c2.entry.js → p-3a7e519e.entry.js} +1 -1
- package/lib/duet/{p-9ce1baab.system.entry.js → p-3bcf2054.system.entry.js} +1 -1
- package/lib/duet/{p-322d1c38.js → p-3c1971d8.js} +1 -1
- package/lib/duet/{p-ef45cfe9.system.entry.js → p-3cad13af.system.entry.js} +1 -1
- package/lib/duet/p-408e8cdb.system.js +4 -0
- package/lib/duet/p-4a14da52.entry.js +4 -0
- package/lib/duet/{p-f96c4093.system.entry.js → p-4e17a6cb.system.entry.js} +1 -1
- package/lib/duet/{p-fbd83d67.entry.js → p-50b796eb.entry.js} +1 -1
- package/lib/duet/{p-22f56356.system.entry.js → p-5727cd82.system.entry.js} +1 -1
- package/lib/duet/{p-9c94be45.entry.js → p-582f3a2c.entry.js} +1 -1
- package/lib/duet/{p-e39471b6.entry.js → p-5b9621e2.entry.js} +1 -1
- package/lib/duet/{p-3e1ef509.system.entry.js → p-5f79eff8.system.entry.js} +1 -1
- package/lib/duet/{p-95626e7e.system.entry.js → p-60e721aa.system.entry.js} +1 -1
- package/lib/duet/{p-b03a46b6.entry.js → p-60ef3d05.entry.js} +1 -1
- package/lib/duet/{p-57ea2576.system.js → p-61fc3872.system.js} +1 -1
- package/lib/duet/{p-1cd7177f.entry.js → p-637df820.entry.js} +1 -1
- package/lib/duet/{p-07263910.system.entry.js → p-6402041d.system.entry.js} +1 -1
- package/lib/duet/p-64c0aa2a.entry.js +4 -0
- package/lib/duet/{p-28b67b94.entry.js → p-65451003.entry.js} +1 -1
- package/lib/duet/{p-1bfbc988.entry.js → p-659d6cb7.entry.js} +1 -1
- package/lib/duet/{p-91fa68a5.js → p-66fdebc5.js} +1 -1
- package/lib/duet/p-6708db8a.entry.js +4 -0
- package/lib/duet/{p-e08b8909.entry.js → p-68635a1c.entry.js} +1 -1
- package/lib/duet/p-6e363557.system.js +4 -0
- package/lib/duet/p-70fafc98.system.js +4 -0
- package/lib/duet/p-720a36f2.entry.js +4 -0
- package/lib/duet/{p-f53c8019.entry.js → p-72629304.entry.js} +1 -1
- package/lib/duet/p-75a104e3.entry.js +4 -0
- package/lib/duet/{p-02ad46a0.system.entry.js → p-75e5d4d1.system.entry.js} +1 -1
- package/lib/duet/{p-33cf6ed1.entry.js → p-7ab0bad8.entry.js} +1 -1
- package/lib/duet/{p-e834c8d5.system.entry.js → p-7ceaf4ef.system.entry.js} +1 -1
- package/lib/duet/{p-a1d12e94.system.entry.js → p-7f8cce41.system.entry.js} +1 -1
- package/lib/duet/{p-6d2da245.entry.js → p-7fed7f57.entry.js} +1 -1
- package/lib/duet/p-8143f3de.js +4 -0
- package/lib/duet/p-8c2f14d8.system.entry.js +4 -0
- package/lib/duet/{p-4670a654.entry.js → p-8c730326.entry.js} +1 -1
- package/lib/duet/{p-de093c16.entry.js → p-9125ed25.entry.js} +1 -1
- package/lib/duet/p-933c2774.system.entry.js +4 -0
- package/lib/duet/{p-b7e50cfa.entry.js → p-9584411c.entry.js} +1 -1
- package/lib/duet/p-987edcd0.js +15 -0
- package/lib/duet/p-9930e52e.entry.js +4 -0
- package/lib/duet/p-9a09ac2b.system.entry.js +4 -0
- package/lib/duet/{p-64109493.entry.js → p-a09ddd8f.entry.js} +1 -1
- package/lib/duet/{p-504dbf8f.system.entry.js → p-a2b2fa13.system.entry.js} +1 -1
- package/lib/duet/{p-2826f987.js → p-ad07f399.js} +1 -1
- package/lib/duet/{p-605bc214.system.entry.js → p-b1ad7a52.system.entry.js} +1 -1
- package/lib/duet/{p-f0b1850a.system.entry.js → p-b5dc29b8.system.entry.js} +1 -1
- package/lib/duet/p-ba6214be.entry.js +4 -0
- package/lib/duet/{p-92d38668.system.entry.js → p-be349a3d.system.entry.js} +1 -1
- package/lib/duet/{p-56e172f5.system.entry.js → p-c0f3f60f.system.entry.js} +1 -1
- package/lib/duet/{p-fd98468a.system.js → p-c18a599e.system.js} +0 -0
- package/lib/duet/p-c3c95a34.system.entry.js +4 -0
- package/lib/duet/{p-d4b4bfa6.entry.js → p-c506017d.entry.js} +1 -1
- package/lib/duet/p-c74cecf2.system.entry.js +4 -0
- package/lib/duet/p-c9a11360.entry.js +4 -0
- package/lib/duet/p-cd21755b.entry.js +4 -0
- package/lib/duet/p-cd597d62.system.entry.js +4 -0
- package/lib/duet/p-cff461b6.entry.js +4 -0
- package/lib/duet/{p-7b6db837.system.entry.js → p-d0fb19f7.system.entry.js} +1 -1
- package/lib/duet/{p-69a5dc6b.entry.js → p-d1dfa30e.entry.js} +1 -1
- package/lib/duet/{p-1cec5a70.system.entry.js → p-d4e706ac.system.entry.js} +1 -1
- package/lib/duet/{p-8cb47a70.system.entry.js → p-d5e2bb48.system.entry.js} +1 -1
- package/lib/duet/p-dd79932a.entry.js +4 -0
- package/lib/duet/p-dd9b8fcb.system.entry.js +4 -0
- package/lib/duet/p-ddb6344c.system.js +4 -0
- package/lib/duet/{p-47645ea8.system.entry.js → p-de43620d.system.entry.js} +1 -1
- package/lib/duet/p-e038da47.system.entry.js +4 -0
- package/lib/duet/p-eb55ccd2.system.js +4 -0
- package/lib/duet/p-ebc4e334.js +4 -0
- package/lib/duet/{p-5fc7e1f7.system.entry.js → p-f37ffb6f.system.entry.js} +1 -1
- package/lib/duet/p-f8744611.entry.js +4 -0
- package/lib/duet/p-fa99eaa4.system.js +4 -0
- package/lib/duet/{p-746655ba.entry.js → p-fd00b025.entry.js} +1 -1
- package/lib/esm/{dom-21034390.js → dom-58cd15f6.js} +1 -1
- package/lib/esm/duet-alert.entry.js +2 -2
- package/lib/esm/duet-badge.entry.js +1 -1
- package/lib/esm/duet-button_2.entry.js +4 -4
- package/lib/esm/duet-caption_4.entry.js +17 -10
- package/lib/esm/duet-card.entry.js +5 -5
- package/lib/esm/duet-checkbox.entry.js +2 -2
- package/lib/esm/duet-choice_2.entry.js +54 -25
- package/lib/esm/duet-collapsible.entry.js +3 -448
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +7 -7
- package/lib/esm/duet-divider_2.entry.js +1 -1
- package/lib/esm/duet-editable-table-button.entry.js +85 -0
- package/lib/esm/duet-editable-table_4.entry.js +1438 -0
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +2 -2
- package/lib/esm/duet-grid_2.entry.js +69 -4
- package/lib/esm/duet-header_2.entry.js +3 -3
- package/lib/esm/duet-hero.entry.js +2 -2
- package/lib/esm/duet-icon.entry.js +5 -13
- package/lib/esm/duet-input_2.entry.js +6 -6
- 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 +3 -3
- package/lib/esm/duet-notification_2.entry.js +2 -2
- package/lib/esm/duet-number-input.entry.js +2 -2
- 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 +5 -5
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-tab_2.entry.js +3 -3
- 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 +2 -2
- package/lib/esm/duet-tray.entry.js +3 -3
- package/lib/esm/duet-upload-aria-status.entry.js +96 -0
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{focus-utils-1995e5a9.js → focus-utils-c1fa24c4.js} +1 -1
- package/lib/esm/{index-6e246691.js → index-05e43a37.js} +91 -78
- package/lib/esm/{language-utils-d5c38f65.js → language-utils-344d894c.js} +6 -3
- package/lib/esm/loader.js +3 -3
- package/lib/esm/{shadow-css-31e2d504.js → shadow-css-7c726abb.js} +9 -10
- package/lib/esm/{token-utils-5a35377f.js → token-utils-590d9413.js} +1 -1
- package/lib/esm/tokens-e110dc89.js +453 -0
- 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 +1 -1
- package/lib/esm-es5/duet-collapsible.entry.js +2 -2
- 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.entry.js +4 -0
- package/lib/esm-es5/duet-editable-table_4.entry.js +4 -0
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.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 +1 -1
- 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-aria-status.entry.js +4 -0
- 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-1995e5a9.js → focus-utils-c1fa24c4.js} +1 -1
- package/lib/esm-es5/index-05e43a37.js +4 -0
- package/lib/esm-es5/{language-utils-d5c38f65.js → language-utils-344d894c.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/shadow-css-7c726abb.js +15 -0
- package/lib/esm-es5/{token-utils-5a35377f.js → token-utils-590d9413.js} +1 -1
- package/lib/esm-es5/tokens-e110dc89.js +4 -0
- package/lib/esm-es5/tokens.module-49cbf963.js +4 -0
- package/lib/esm-es5/watch-options-dd55bce8.js +4 -0
- package/lib/html.html-data.json +427 -10
- package/lib/types/components/duet-choice/duet-choice.d.ts +23 -4
- package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +5 -5
- 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-grid/duet-grid.d.ts +17 -2
- package/lib/types/components/duet-heading/duet-heading.d.ts +2 -2
- 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-upload/duet-upload.d.ts +404 -0
- package/lib/types/components/duet-upload/errorcodes.utils.d.ts +8 -0
- package/lib/types/components/duet-upload/mock.helpers.d.ts +2 -0
- package/lib/types/components/duet-upload/upload-editable-item-error.d.ts +7 -0
- package/lib/types/components/duet-upload/upload-editable-item-inprogres.d.ts +7 -0
- package/lib/types/components/duet-upload/upload-editable-item-success.d.ts +8 -0
- package/lib/types/components/duet-upload/upload-validators.d.ts +12 -0
- package/lib/types/components/duet-upload/upload.helpers.d.ts +1 -0
- package/lib/types/components/duet-upload/xhr.helpers.d.ts +18 -0
- package/lib/types/components/duet-upload-aria-status/duet-upload-aria-status.d.ts +49 -0
- package/lib/types/components.d.ts +791 -21
- package/lib/types/utils/js-utils.d.ts +1 -0
- package/lib/types/utils/language-utils.d.ts +5 -1
- package/lib/types/utils/watch-options.d.ts +2 -0
- package/package.json +6 -6
- package/lib/cjs/duet-table.cjs.entry.js +0 -132
- package/lib/duet/p-0058512b.js +0 -4
- package/lib/duet/p-0224db45.entry.js +0 -4
- package/lib/duet/p-15c15c6a.js +0 -15
- package/lib/duet/p-202bbd70.entry.js +0 -4
- package/lib/duet/p-33426ddc.entry.js +0 -4
- package/lib/duet/p-3d3f773d.system.entry.js +0 -4
- package/lib/duet/p-3f78a826.system.js +0 -4
- package/lib/duet/p-418b2ce7.system.js +0 -4
- package/lib/duet/p-43e39d98.system.js +0 -4
- package/lib/duet/p-44ffb960.entry.js +0 -4
- package/lib/duet/p-5230ee3c.system.entry.js +0 -4
- package/lib/duet/p-5aa0d34d.entry.js +0 -4
- package/lib/duet/p-6a230911.system.entry.js +0 -4
- package/lib/duet/p-6a356ab1.system.js +0 -4
- package/lib/duet/p-6a760b8a.entry.js +0 -4
- package/lib/duet/p-712e7dde.system.entry.js +0 -4
- package/lib/duet/p-82dc2e0b.entry.js +0 -4
- package/lib/duet/p-8c8e82aa.system.js +0 -4
- package/lib/duet/p-8c980350.system.entry.js +0 -4
- package/lib/duet/p-8f03c3eb.entry.js +0 -4
- package/lib/duet/p-96808a2e.system.entry.js +0 -4
- package/lib/duet/p-96c103b2.system.entry.js +0 -4
- package/lib/duet/p-9a89ec39.js +0 -4
- package/lib/duet/p-9ff25646.entry.js +0 -4
- package/lib/duet/p-b694cbf5.system.js +0 -4
- package/lib/duet/p-b82927b0.system.entry.js +0 -4
- package/lib/duet/p-ba205dca.entry.js +0 -4
- package/lib/duet/p-be19c57b.system.entry.js +0 -4
- package/lib/duet/p-c5beceed.js +0 -4
- package/lib/duet/p-d35fd913.system.entry.js +0 -4
- package/lib/duet/p-d7623eb8.system.entry.js +0 -4
- package/lib/duet/p-de842863.entry.js +0 -4
- package/lib/duet/p-e58ca7af.system.js +0 -16
- package/lib/esm/duet-table.entry.js +0 -128
- package/lib/esm/watch-options-de55ea78.js +0 -35
- package/lib/esm-es5/duet-table.entry.js +0 -4
- package/lib/esm-es5/index-6e246691.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
|
@@ -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
|
+
}
|
|
@@ -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,9 @@ export declare class DuetGrid implements ComponentInterface {
|
|
|
8
8
|
* Own Properties.
|
|
9
9
|
*/
|
|
10
10
|
private mutationO?;
|
|
11
|
+
private mutation1?;
|
|
12
|
+
private mql;
|
|
13
|
+
distributeFormElement: boolean;
|
|
11
14
|
/**
|
|
12
15
|
* Reference to host HTML element.
|
|
13
16
|
*/
|
|
@@ -28,7 +31,9 @@ export declare class DuetGrid implements ComponentInterface {
|
|
|
28
31
|
*/
|
|
29
32
|
direction: DuetDirection;
|
|
30
33
|
/**
|
|
31
|
-
* Adjusts the vertical alignment of the grid items
|
|
34
|
+
* Adjusts the vertical alignment of the grid items, if set to "form_distribute"
|
|
35
|
+
* the grid will try to calculate correct paddings for any duet-input fields inside duet-grid-items,
|
|
36
|
+
* so that they align even when displaying errors.
|
|
32
37
|
*/
|
|
33
38
|
alignment: DuetGridAlignment;
|
|
34
39
|
/**
|
|
@@ -39,6 +44,15 @@ export declare class DuetGrid implements ComponentInterface {
|
|
|
39
44
|
* Adjusts the horizontal alignment of the grid items on mobile (575px and under).
|
|
40
45
|
*/
|
|
41
46
|
mobile: DuetGridMobileAlignment;
|
|
47
|
+
/**
|
|
48
|
+
* Private functions
|
|
49
|
+
*/
|
|
50
|
+
/**
|
|
51
|
+
* Returns the element height including margins
|
|
52
|
+
* @param element - element
|
|
53
|
+
* @returns {number}
|
|
54
|
+
*/
|
|
55
|
+
private outerHeight;
|
|
42
56
|
/**
|
|
43
57
|
* Component lifecycle events.
|
|
44
58
|
*/
|
|
@@ -48,6 +62,7 @@ export declare class DuetGrid implements ComponentInterface {
|
|
|
48
62
|
* Local methods
|
|
49
63
|
*/
|
|
50
64
|
private updateGridItems;
|
|
65
|
+
private updateGridItemsWithInputFields;
|
|
51
66
|
/**
|
|
52
67
|
* render() function
|
|
53
68
|
* Always the last one in the class.
|
|
@@ -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.
|
|
@@ -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
|
+
}
|