@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,240 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Element, h, Host, Prop } from "@stencil/core";
|
|
5
|
+
import { createID } from "../../utils/create-id";
|
|
6
|
+
import { getLocaleString } from "../../utils/language-utils";
|
|
7
|
+
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
8
|
+
export class DuetProgress {
|
|
9
|
+
constructor() {
|
|
10
|
+
/**
|
|
11
|
+
* Own Properties
|
|
12
|
+
*/
|
|
13
|
+
this.progressId = createID("DuetProgress");
|
|
14
|
+
this.progressLabelId = createID("DuetProgressLabel");
|
|
15
|
+
/**
|
|
16
|
+
* Defaults for accessibleLabel
|
|
17
|
+
*/
|
|
18
|
+
this.accessibleLabelUploadDefaults = {
|
|
19
|
+
fi: ["lähetys valmis", "lähetys käynnissä"],
|
|
20
|
+
sv: ["Uppladdningen är klar", "Uppladdning pågår"],
|
|
21
|
+
en: ["upload completed", "upload in progress"],
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Adds accessible label for upload in progress and upload complete states
|
|
25
|
+
* @default {fi: ["lähetys valmis", "lähetys käynnissä"],sv: ["Uppladdningen är klar", "Uppladdning pågår"], en: ["completed", "in progress"]}
|
|
26
|
+
*/
|
|
27
|
+
this.accessibleLabelUpload = getLocaleString(this.accessibleLabelUploadDefaults);
|
|
28
|
+
/**
|
|
29
|
+
* Progress of the bar, a value from 0-100
|
|
30
|
+
*/
|
|
31
|
+
this.progress = 0;
|
|
32
|
+
/**
|
|
33
|
+
* Height of progressbar
|
|
34
|
+
*/
|
|
35
|
+
this.height = "10px";
|
|
36
|
+
/**
|
|
37
|
+
* Theme of the input.
|
|
38
|
+
*/
|
|
39
|
+
this.theme = "";
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Component lifecycle events.
|
|
43
|
+
*/
|
|
44
|
+
componentWillLoad() {
|
|
45
|
+
inheritGlobalTheme(this);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* render() function
|
|
49
|
+
* Always the last one in the class.
|
|
50
|
+
*/
|
|
51
|
+
render() {
|
|
52
|
+
return (h(Host, null,
|
|
53
|
+
h("div", { "aria-live": this.accessibleLabel ? "polite" : "off", "aria-hidden": this.accessibleLabel ? "false" : "true", "aria-atomic": "true", style: {
|
|
54
|
+
height: this.height,
|
|
55
|
+
}, id: this.progressId, class: {
|
|
56
|
+
"duet-progress": true,
|
|
57
|
+
"duet-progress-done": this.progress === 100,
|
|
58
|
+
"duet-progress-start": this.progress === 0,
|
|
59
|
+
"duet-progress-inprogress": this.progress < 99 && this.progress !== 0,
|
|
60
|
+
"duet-theme-turva": this.theme === "turva",
|
|
61
|
+
} },
|
|
62
|
+
h("duet-visually-hidden", null,
|
|
63
|
+
h("label", { htmlFor: this.progressLabelId }, this.progress !== 0 && (h("span", null,
|
|
64
|
+
this.accessibleLabel,
|
|
65
|
+
", ",
|
|
66
|
+
this.accessibleLabelUpload[this.progress < 99 ? 1 : 0])))),
|
|
67
|
+
this.caption && (h("div", { class: "duet-progress-caption" },
|
|
68
|
+
h("span", null, this.caption))),
|
|
69
|
+
h("progress", { id: this.progressLabelId, "aria-describedby": this.accessibleDescribedBy, role: "progressbar", value: this.progress, max: "100", "aria-valuemin": "0", "aria-valuemax": "100" },
|
|
70
|
+
h("div", { class: "progress-bar" },
|
|
71
|
+
h("span", { style: { width: `${this.progress}%;` } },
|
|
72
|
+
"Progress: ",
|
|
73
|
+
this.progress,
|
|
74
|
+
"%"))))));
|
|
75
|
+
}
|
|
76
|
+
static get is() { return "duet-progress"; }
|
|
77
|
+
static get originalStyleUrls() { return {
|
|
78
|
+
"$": ["duet-progress.scss"]
|
|
79
|
+
}; }
|
|
80
|
+
static get styleUrls() { return {
|
|
81
|
+
"$": ["duet-progress.css"]
|
|
82
|
+
}; }
|
|
83
|
+
static get properties() { return {
|
|
84
|
+
"accessibleDescribedBy": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"mutable": false,
|
|
87
|
+
"complexType": {
|
|
88
|
+
"original": "string",
|
|
89
|
+
"resolved": "string",
|
|
90
|
+
"references": {}
|
|
91
|
+
},
|
|
92
|
+
"required": false,
|
|
93
|
+
"optional": false,
|
|
94
|
+
"docs": {
|
|
95
|
+
"tags": [],
|
|
96
|
+
"text": "Indicates the id of a component that describes the upload component."
|
|
97
|
+
},
|
|
98
|
+
"attribute": "accessible-described-by",
|
|
99
|
+
"reflect": false
|
|
100
|
+
},
|
|
101
|
+
"accessibleLabel": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"mutable": false,
|
|
104
|
+
"complexType": {
|
|
105
|
+
"original": "string",
|
|
106
|
+
"resolved": "string",
|
|
107
|
+
"references": {}
|
|
108
|
+
},
|
|
109
|
+
"required": false,
|
|
110
|
+
"optional": false,
|
|
111
|
+
"docs": {
|
|
112
|
+
"tags": [],
|
|
113
|
+
"text": "Indicates the aria-label of the component -\nthis will get combined with an label+uploading when uploading,\nand label+upload complete when upload is complete"
|
|
114
|
+
},
|
|
115
|
+
"attribute": "accessible-label",
|
|
116
|
+
"reflect": false
|
|
117
|
+
},
|
|
118
|
+
"accessibleLabelUploadDefaults": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"mutable": false,
|
|
121
|
+
"complexType": {
|
|
122
|
+
"original": "DuetLangObject | string",
|
|
123
|
+
"resolved": "DuetLangObject | string",
|
|
124
|
+
"references": {
|
|
125
|
+
"DuetLangObject": {
|
|
126
|
+
"location": "import",
|
|
127
|
+
"path": "../../utils/language-utils"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"required": false,
|
|
132
|
+
"optional": false,
|
|
133
|
+
"docs": {
|
|
134
|
+
"tags": [],
|
|
135
|
+
"text": "Defaults for accessibleLabel"
|
|
136
|
+
},
|
|
137
|
+
"attribute": "accessible-label-upload-defaults",
|
|
138
|
+
"reflect": false,
|
|
139
|
+
"defaultValue": "{\n fi: [\"l\u00E4hetys valmis\", \"l\u00E4hetys k\u00E4ynniss\u00E4\"],\n sv: [\"Uppladdningen \u00E4r klar\", \"Uppladdning p\u00E5g\u00E5r\"],\n en: [\"upload completed\", \"upload in progress\"],\n }"
|
|
140
|
+
},
|
|
141
|
+
"accessibleLabelUpload": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"mutable": false,
|
|
144
|
+
"complexType": {
|
|
145
|
+
"original": "string",
|
|
146
|
+
"resolved": "string",
|
|
147
|
+
"references": {}
|
|
148
|
+
},
|
|
149
|
+
"required": false,
|
|
150
|
+
"optional": false,
|
|
151
|
+
"docs": {
|
|
152
|
+
"tags": [{
|
|
153
|
+
"name": "default",
|
|
154
|
+
"text": "{fi: [\"l\u00E4hetys valmis\", \"l\u00E4hetys k\u00E4ynniss\u00E4\"],sv: [\"Uppladdningen \u00E4r klar\", \"Uppladdning p\u00E5g\u00E5r\"], en: [\"completed\", \"in progress\"]}"
|
|
155
|
+
}],
|
|
156
|
+
"text": "Adds accessible label for upload in progress and upload complete states"
|
|
157
|
+
},
|
|
158
|
+
"attribute": "accessible-label-upload",
|
|
159
|
+
"reflect": false,
|
|
160
|
+
"defaultValue": "getLocaleString(this.accessibleLabelUploadDefaults)"
|
|
161
|
+
},
|
|
162
|
+
"progress": {
|
|
163
|
+
"type": "number",
|
|
164
|
+
"mutable": true,
|
|
165
|
+
"complexType": {
|
|
166
|
+
"original": "number",
|
|
167
|
+
"resolved": "number",
|
|
168
|
+
"references": {}
|
|
169
|
+
},
|
|
170
|
+
"required": false,
|
|
171
|
+
"optional": false,
|
|
172
|
+
"docs": {
|
|
173
|
+
"tags": [],
|
|
174
|
+
"text": "Progress of the bar, a value from 0-100"
|
|
175
|
+
},
|
|
176
|
+
"attribute": "progress",
|
|
177
|
+
"reflect": true,
|
|
178
|
+
"defaultValue": "0"
|
|
179
|
+
},
|
|
180
|
+
"caption": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"mutable": false,
|
|
183
|
+
"complexType": {
|
|
184
|
+
"original": "string",
|
|
185
|
+
"resolved": "string",
|
|
186
|
+
"references": {}
|
|
187
|
+
},
|
|
188
|
+
"required": false,
|
|
189
|
+
"optional": false,
|
|
190
|
+
"docs": {
|
|
191
|
+
"tags": [],
|
|
192
|
+
"text": "Caption (underneath label) that can be set as a way of adding extra information"
|
|
193
|
+
},
|
|
194
|
+
"attribute": "caption",
|
|
195
|
+
"reflect": false
|
|
196
|
+
},
|
|
197
|
+
"height": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"mutable": false,
|
|
200
|
+
"complexType": {
|
|
201
|
+
"original": "string",
|
|
202
|
+
"resolved": "string",
|
|
203
|
+
"references": {}
|
|
204
|
+
},
|
|
205
|
+
"required": false,
|
|
206
|
+
"optional": false,
|
|
207
|
+
"docs": {
|
|
208
|
+
"tags": [],
|
|
209
|
+
"text": "Height of progressbar"
|
|
210
|
+
},
|
|
211
|
+
"attribute": "height",
|
|
212
|
+
"reflect": false,
|
|
213
|
+
"defaultValue": "\"10px\""
|
|
214
|
+
},
|
|
215
|
+
"theme": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"mutable": true,
|
|
218
|
+
"complexType": {
|
|
219
|
+
"original": "DuetTheme",
|
|
220
|
+
"resolved": "\"\" | \"default\" | \"turva\"",
|
|
221
|
+
"references": {
|
|
222
|
+
"DuetTheme": {
|
|
223
|
+
"location": "import",
|
|
224
|
+
"path": "../../common-types"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"required": false,
|
|
229
|
+
"optional": false,
|
|
230
|
+
"docs": {
|
|
231
|
+
"tags": [],
|
|
232
|
+
"text": "Theme of the input."
|
|
233
|
+
},
|
|
234
|
+
"attribute": "theme",
|
|
235
|
+
"reflect": false,
|
|
236
|
+
"defaultValue": "\"\""
|
|
237
|
+
}
|
|
238
|
+
}; }
|
|
239
|
+
static get elementRef() { return "element"; }
|
|
240
|
+
}
|
|
@@ -379,8 +379,8 @@ export class DuetRadio {
|
|
|
379
379
|
"optional": false,
|
|
380
380
|
"docs": {
|
|
381
381
|
"tags": [{
|
|
382
|
-
"
|
|
383
|
-
"
|
|
382
|
+
"name": "internal",
|
|
383
|
+
"text": "Determines, whether the control is disabled from the parent group."
|
|
384
384
|
}],
|
|
385
385
|
"text": ""
|
|
386
386
|
},
|
|
@@ -404,8 +404,8 @@ export class DuetRadio {
|
|
|
404
404
|
"optional": false,
|
|
405
405
|
"docs": {
|
|
406
406
|
"tags": [{
|
|
407
|
-
"
|
|
408
|
-
"
|
|
407
|
+
"name": "internal",
|
|
408
|
+
"text": "Determines, whether the control is displayed horizontally or vertically within a group."
|
|
409
409
|
}],
|
|
410
410
|
"text": ""
|
|
411
411
|
},
|
|
@@ -424,8 +424,8 @@ export class DuetRadio {
|
|
|
424
424
|
"optional": false,
|
|
425
425
|
"docs": {
|
|
426
426
|
"tags": [{
|
|
427
|
-
"
|
|
428
|
-
"
|
|
427
|
+
"name": "internal",
|
|
428
|
+
"text": "Determines, whether the control is displayed responsively within a group."
|
|
429
429
|
}],
|
|
430
430
|
"text": ""
|
|
431
431
|
},
|
|
@@ -57,6 +57,21 @@ duet-tooltip {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
.duet-select-placeholder {
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: -9px;
|
|
63
|
+
left: 9px;
|
|
64
|
+
z-index: 200;
|
|
65
|
+
display: block;
|
|
66
|
+
width: auto;
|
|
67
|
+
max-width: 60%;
|
|
68
|
+
padding: 0 0.25rem;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
text-overflow: ellipsis;
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
background: white;
|
|
73
|
+
}
|
|
74
|
+
|
|
60
75
|
.duet-select-container {
|
|
61
76
|
position: relative;
|
|
62
77
|
width: 100%;
|
|
@@ -121,14 +121,14 @@ export class DuetSelect {
|
|
|
121
121
|
if (this.nativeSelect) {
|
|
122
122
|
this.nativeSelect.value = this.value;
|
|
123
123
|
}
|
|
124
|
-
this.isCaptionVisible = !!
|
|
124
|
+
this.isCaptionVisible = !!this.caption;
|
|
125
125
|
}
|
|
126
126
|
/**
|
|
127
127
|
* Component lifecycle events.
|
|
128
128
|
*/
|
|
129
129
|
componentWillLoad() {
|
|
130
130
|
inheritGlobalTheme(this);
|
|
131
|
-
this.isCaptionVisible = !!
|
|
131
|
+
this.isCaptionVisible = !!this.caption;
|
|
132
132
|
this.refresh();
|
|
133
133
|
}
|
|
134
134
|
/**
|
|
@@ -176,8 +176,8 @@ export class DuetSelect {
|
|
|
176
176
|
h("duet-label", { theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, id: this.labelId, for: identifier }, this.label),
|
|
177
177
|
this.tooltip && (h("duet-tooltip", { direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)),
|
|
178
178
|
this.caption && (h("duet-caption", { id: this.topCaptionId, size: "medium" }, this.caption)),
|
|
179
|
-
this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { id: this.topCaptionPlaceholderId, size: "small" }, this.placeholder)),
|
|
180
179
|
h("div", { class: "duet-select-wrapper" },
|
|
180
|
+
this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { id: this.topCaptionPlaceholderId, class: "duet-select-placeholder", size: "small" }, this.placeholder)),
|
|
181
181
|
h("select", { ref: select => (this.nativeSelect = select), disabled: this.disabled, name: this.name, id: identifier, role: this.role, "aria-labelledby": `${this.labelId} ${this.errorId}`, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, required: this.required, "aria-describedby": this.accessibleDescribedBy },
|
|
182
182
|
this.placeholder && (h("option", { disabled: true, selected: true, value: "" }, this.placeholder)),
|
|
183
183
|
!this.processedItems ? (h("option", null, "Virhe valintoja ladattaessa. P\u00E4ivit\u00E4 sivu ja kokeile uusiksi.")) : (this.processedItems.map(item => {
|
|
@@ -194,8 +194,8 @@ export class DuetStep {
|
|
|
194
194
|
"optional": false,
|
|
195
195
|
"docs": {
|
|
196
196
|
"tags": [{
|
|
197
|
-
"
|
|
198
|
-
"
|
|
197
|
+
"name": "internal",
|
|
198
|
+
"text": "The index of this step, derived from its position within stepper.\nThis property is used internally by stepper, and should not be set by the developer."
|
|
199
199
|
}],
|
|
200
200
|
"text": ""
|
|
201
201
|
},
|
|
@@ -218,8 +218,8 @@ export class DuetStep {
|
|
|
218
218
|
"optional": false,
|
|
219
219
|
"docs": {
|
|
220
220
|
"tags": [{
|
|
221
|
-
"
|
|
222
|
-
"
|
|
221
|
+
"name": "internal",
|
|
222
|
+
"text": "The state of the step.\nThis property is used internally by stepper, and should not be set by the developer."
|
|
223
223
|
}],
|
|
224
224
|
"text": ""
|
|
225
225
|
},
|
|
@@ -238,8 +238,8 @@ export class DuetStep {
|
|
|
238
238
|
"optional": false,
|
|
239
239
|
"docs": {
|
|
240
240
|
"tags": [{
|
|
241
|
-
"
|
|
242
|
-
"
|
|
241
|
+
"name": "internal",
|
|
242
|
+
"text": "Enable/disable rounded top corners (on mobile).\nThis property is used internally by stepper, and should not be set by the developer."
|
|
243
243
|
}],
|
|
244
244
|
"text": ""
|
|
245
245
|
},
|
|
@@ -259,8 +259,8 @@ export class DuetStep {
|
|
|
259
259
|
"optional": false,
|
|
260
260
|
"docs": {
|
|
261
261
|
"tags": [{
|
|
262
|
-
"
|
|
263
|
-
"
|
|
262
|
+
"name": "internal",
|
|
263
|
+
"text": "Enable/disable rounded bottom corners (on mobile).\nThis property is used internally by stepper, and should not be set by the developer."
|
|
264
264
|
}],
|
|
265
265
|
"text": ""
|
|
266
266
|
},
|
|
@@ -124,8 +124,8 @@
|
|
|
124
124
|
}
|
|
125
125
|
.duet-theme-turva .duet-tab-button.selected {
|
|
126
126
|
color: white !important;
|
|
127
|
-
background-color: #
|
|
128
|
-
border-color: #
|
|
127
|
+
background-color: #171c3a;
|
|
128
|
+
border-color: #171c3a !important;
|
|
129
129
|
}
|
|
130
130
|
.duet-tab-button:focus {
|
|
131
131
|
z-index: 200;
|
|
@@ -251,11 +251,11 @@ export class DuetTabGroup {
|
|
|
251
251
|
"optional": false,
|
|
252
252
|
"docs": {
|
|
253
253
|
"tags": [{
|
|
254
|
-
"
|
|
255
|
-
"
|
|
254
|
+
"name": "deprecated",
|
|
255
|
+
"text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
|
|
256
256
|
}, {
|
|
257
|
-
"
|
|
258
|
-
"
|
|
257
|
+
"name": "default",
|
|
258
|
+
"text": "\"fi\""
|
|
259
259
|
}],
|
|
260
260
|
"text": "The currently active language. This setting changes the accessible labels to match the\nchosen language."
|
|
261
261
|
},
|
|
@@ -280,8 +280,8 @@ export class DuetTabGroup {
|
|
|
280
280
|
"optional": false,
|
|
281
281
|
"docs": {
|
|
282
282
|
"tags": [{
|
|
283
|
-
"
|
|
284
|
-
"
|
|
283
|
+
"name": "default",
|
|
284
|
+
"text": "{fi: \"Valitse\", en: \"Choose\", sv: \"V\u00E4lja\"}"
|
|
285
285
|
}],
|
|
286
286
|
"text": "Defaults for Label"
|
|
287
287
|
},
|
|
@@ -301,8 +301,8 @@ export class DuetTabGroup {
|
|
|
301
301
|
"optional": false,
|
|
302
302
|
"docs": {
|
|
303
303
|
"tags": [{
|
|
304
|
-
"
|
|
305
|
-
"
|
|
304
|
+
"name": "default",
|
|
305
|
+
"text": "{fi: \"Valitse\", en: \"Choose\", sv: \"V\u00E4lja\"}"
|
|
306
306
|
}],
|
|
307
307
|
"text": "Label for the select element which gets shown on mobile."
|
|
308
308
|
},
|
|
@@ -387,8 +387,8 @@ export class DuetTabGroup {
|
|
|
387
387
|
"composed": true,
|
|
388
388
|
"docs": {
|
|
389
389
|
"tags": [{
|
|
390
|
-
"
|
|
391
|
-
"
|
|
390
|
+
"name": "deprecated",
|
|
391
|
+
"text": "in favour of more specific duetTabChange event.\nCallback for when the value changed."
|
|
392
392
|
}],
|
|
393
393
|
"text": ""
|
|
394
394
|
},
|
|
@@ -68,6 +68,25 @@ duet-tooltip {
|
|
|
68
68
|
display: flex !important;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
.duet-textarea-wrapper {
|
|
72
|
+
position: relative;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.duet-textarea-placeholder {
|
|
76
|
+
position: absolute;
|
|
77
|
+
top: -9px;
|
|
78
|
+
left: 9px;
|
|
79
|
+
z-index: 200;
|
|
80
|
+
display: block;
|
|
81
|
+
width: auto;
|
|
82
|
+
max-width: 60%;
|
|
83
|
+
padding: 0 0.25rem;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
text-overflow: ellipsis;
|
|
86
|
+
white-space: nowrap;
|
|
87
|
+
background: white;
|
|
88
|
+
}
|
|
89
|
+
|
|
71
90
|
.duet-textarea {
|
|
72
91
|
padding: 15px !important;
|
|
73
92
|
position: relative;
|
|
@@ -105,7 +105,7 @@ export class DuetTextarea {
|
|
|
105
105
|
cleanValue(this.nativeInput, this.disallowPatternRegex);
|
|
106
106
|
}
|
|
107
107
|
this.value = this.nativeInput.value;
|
|
108
|
-
this.isCaptionVisible = !!
|
|
108
|
+
this.isCaptionVisible = !!this.caption;
|
|
109
109
|
this.duetInput.emit({
|
|
110
110
|
originalEvent: ev,
|
|
111
111
|
value: this.value,
|
|
@@ -144,7 +144,7 @@ export class DuetTextarea {
|
|
|
144
144
|
componentWillLoad() {
|
|
145
145
|
inheritGlobalTheme(this);
|
|
146
146
|
this.disallowedPatternChange();
|
|
147
|
-
this.isCaptionVisible = !!
|
|
147
|
+
this.isCaptionVisible = !!this.caption;
|
|
148
148
|
if (this.counter && this.maxlength == null) {
|
|
149
149
|
console.warn("[DUET WARNING]: counter will only take effect if maxlength is set");
|
|
150
150
|
}
|
|
@@ -183,8 +183,9 @@ export class DuetTextarea {
|
|
|
183
183
|
h("duet-label", { theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, margin: this.isCaptionVisible ? "small" : "auto", id: this.labelId, for: identifier }, this.label),
|
|
184
184
|
this.tooltip && (h("duet-tooltip", { direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)),
|
|
185
185
|
this.caption && (h("duet-caption", { id: this.topCaptionId, size: "medium" }, this.caption)),
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
h("div", { class: "duet-textarea-wrapper" },
|
|
187
|
+
this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { id: this.topCaptionPlaceholderId, class: "duet-textarea-placeholder", size: "small" }, this.placeholder)),
|
|
188
|
+
h("textarea", { onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, ref: input => (this.nativeInput = input), class: { "duet-textarea": true, disabled: this.disabled }, value: this.value, disabled: this.disabled, "aria-labelledby": `${this.labelId} ${this.errorId}`, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": `${this.isCaptionVisible ? this.topCaptionId : ""} ${this.accessibleDescribedBy}`, placeholder: this.placeholder, spellcheck: "false", required: this.required, minlength: this.minlength, maxlength: this.maxlength, role: this.role, name: this.name, id: identifier })),
|
|
188
189
|
h("duet-grid", { alignment: "stretch" },
|
|
189
190
|
h("duet-grid-item", { margin: "none", fill: true },
|
|
190
191
|
h("div", { class: "duet-textarea-help", id: this.errorId, "aria-live": "assertive", "aria-relevant": "additions removals" }, this.error && h("span", null, this.error))),
|
|
@@ -280,11 +280,11 @@ export class DuetTooltip {
|
|
|
280
280
|
"optional": false,
|
|
281
281
|
"docs": {
|
|
282
282
|
"tags": [{
|
|
283
|
-
"
|
|
284
|
-
"
|
|
283
|
+
"name": "deprecated",
|
|
284
|
+
"text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
|
|
285
285
|
}, {
|
|
286
|
-
"
|
|
287
|
-
"
|
|
286
|
+
"name": "default",
|
|
287
|
+
"text": "\"fi\""
|
|
288
288
|
}],
|
|
289
289
|
"text": "The currently active language. This setting changes the accessible labels to match the\nchosen language."
|
|
290
290
|
},
|
|
@@ -309,8 +309,8 @@ export class DuetTooltip {
|
|
|
309
309
|
"optional": false,
|
|
310
310
|
"docs": {
|
|
311
311
|
"tags": [{
|
|
312
|
-
"
|
|
313
|
-
"
|
|
312
|
+
"name": "default",
|
|
313
|
+
"text": "{fi: \"N\u00E4yt\u00E4 lis\u00E4tietoja\", en: \"See more information\", sv: \"Se mer information\"}"
|
|
314
314
|
}],
|
|
315
315
|
"text": "Default language strings for the accessibleLabel"
|
|
316
316
|
},
|
|
@@ -330,8 +330,8 @@ export class DuetTooltip {
|
|
|
330
330
|
"optional": false,
|
|
331
331
|
"docs": {
|
|
332
332
|
"tags": [{
|
|
333
|
-
"
|
|
334
|
-
"
|
|
333
|
+
"name": "default",
|
|
334
|
+
"text": "{fi: \"N\u00E4yt\u00E4 lis\u00E4tietoja\", en: \"See more information\", sv: \"Se mer information\"}"
|
|
335
335
|
}],
|
|
336
336
|
"text": "Adds accessible label for the info icon that is only shown for screen\nreaders. This property is always required to create an accessible interface!"
|
|
337
337
|
},
|
|
@@ -351,8 +351,8 @@ export class DuetTooltip {
|
|
|
351
351
|
"optional": false,
|
|
352
352
|
"docs": {
|
|
353
353
|
"tags": [{
|
|
354
|
-
"
|
|
355
|
-
"
|
|
354
|
+
"name": "internal",
|
|
355
|
+
"text": "Adds a prefix to the accessible label.\nUsed internally by input components to add more context to the tooltip."
|
|
356
356
|
}],
|
|
357
357
|
"text": ""
|
|
358
358
|
},
|
|
@@ -376,8 +376,8 @@ export class DuetTooltip {
|
|
|
376
376
|
"optional": false,
|
|
377
377
|
"docs": {
|
|
378
378
|
"tags": [{
|
|
379
|
-
"
|
|
380
|
-
"
|
|
379
|
+
"name": "default",
|
|
380
|
+
"text": "{fi: \"Sulje lis\u00E4tiedot\", en: \"Close details\", sv: \"St\u00E4ng detaljer\"}"
|
|
381
381
|
}],
|
|
382
382
|
"text": "Default language strings for the accessibleCloseLabel"
|
|
383
383
|
},
|
|
@@ -397,8 +397,8 @@ export class DuetTooltip {
|
|
|
397
397
|
"optional": false,
|
|
398
398
|
"docs": {
|
|
399
399
|
"tags": [{
|
|
400
|
-
"
|
|
401
|
-
"
|
|
400
|
+
"name": "default",
|
|
401
|
+
"text": "{fi: \"Sulje lis\u00E4tiedot\", en: \"Close details\", sv: \"St\u00E4ng detaljer\"}"
|
|
402
402
|
}],
|
|
403
403
|
"text": "Adds accessible label for the close icon that is only shown for screen\nreaders. This property is always required to create an accessibly interface!"
|
|
404
404
|
},
|
|
@@ -161,11 +161,11 @@ export class DuetTray {
|
|
|
161
161
|
"optional": false,
|
|
162
162
|
"docs": {
|
|
163
163
|
"tags": [{
|
|
164
|
-
"
|
|
165
|
-
"
|
|
164
|
+
"name": "deprecated",
|
|
165
|
+
"text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
|
|
166
166
|
}, {
|
|
167
|
-
"
|
|
168
|
-
"
|
|
167
|
+
"name": "default",
|
|
168
|
+
"text": "\"fi\""
|
|
169
169
|
}],
|
|
170
170
|
"text": "The currently active language. This setting changes the accessible labels to match the\nchosen language."
|
|
171
171
|
},
|
|
@@ -190,8 +190,8 @@ export class DuetTray {
|
|
|
190
190
|
"optional": false,
|
|
191
191
|
"docs": {
|
|
192
192
|
"tags": [{
|
|
193
|
-
"
|
|
194
|
-
"
|
|
193
|
+
"name": "default",
|
|
194
|
+
"text": "{fi: \"Sulje\", en: \"Close\", sv: \"St\u00E4nga\"}"
|
|
195
195
|
}],
|
|
196
196
|
"text": "Defaults for accessibleCloseLabel"
|
|
197
197
|
},
|
|
@@ -211,8 +211,8 @@ export class DuetTray {
|
|
|
211
211
|
"optional": false,
|
|
212
212
|
"docs": {
|
|
213
213
|
"tags": [{
|
|
214
|
-
"
|
|
215
|
-
"
|
|
214
|
+
"name": "default",
|
|
215
|
+
"text": "{fi: \"Sulje\", en: \"Close\", sv: \"St\u00E4nga\"}"
|
|
216
216
|
}],
|
|
217
217
|
"text": "Accessible label that is shown for screen reader users in the expandable\nclose toggle. Not visible for normal users."
|
|
218
218
|
},
|
|
@@ -237,8 +237,8 @@ export class DuetTray {
|
|
|
237
237
|
"optional": false,
|
|
238
238
|
"docs": {
|
|
239
239
|
"tags": [{
|
|
240
|
-
"
|
|
241
|
-
"
|
|
240
|
+
"name": "default",
|
|
241
|
+
"text": "{fi: \"Avaa\", en: \"Open\", sv: \"\u00D6ppen\"}"
|
|
242
242
|
}],
|
|
243
243
|
"text": "Defaults for accessibleOpenLabel"
|
|
244
244
|
},
|
|
@@ -258,8 +258,8 @@ export class DuetTray {
|
|
|
258
258
|
"optional": false,
|
|
259
259
|
"docs": {
|
|
260
260
|
"tags": [{
|
|
261
|
-
"
|
|
262
|
-
"
|
|
261
|
+
"name": "default",
|
|
262
|
+
"text": "{fi: \"Avaa\", en: \"Open\", sv: \"\u00D6ppen\"}"
|
|
263
263
|
}],
|
|
264
264
|
"text": "Accessible label that is shown for screen reader users in the expandable\nopen toggle. Not visible for normal users."
|
|
265
265
|
},
|