@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
|
@@ -16,7 +16,7 @@ export class DuetHeading {
|
|
|
16
16
|
*/
|
|
17
17
|
this.margin = "auto";
|
|
18
18
|
/**
|
|
19
|
-
* Enable or disable the border underneath the heading
|
|
19
|
+
* Enable or disable the border underneath the heading, solid will darken the border
|
|
20
20
|
*/
|
|
21
21
|
this.border = false;
|
|
22
22
|
/**
|
|
@@ -53,7 +53,8 @@ export class DuetHeading {
|
|
|
53
53
|
const color = getColorByName(this.color);
|
|
54
54
|
return (h(TagName, { class: {
|
|
55
55
|
"duet-heading": true,
|
|
56
|
-
"duet-heading-border": this.border,
|
|
56
|
+
"duet-heading-border": this.border !== false,
|
|
57
|
+
"duet-heading-border-solid": this.border === "solid",
|
|
57
58
|
"duet-semibold": this.weight === "semibold",
|
|
58
59
|
"duet-heading-hyphenate": this.hyphenate,
|
|
59
60
|
"duet-m-0": this.margin === "none",
|
|
@@ -140,18 +141,18 @@ export class DuetHeading {
|
|
|
140
141
|
"reflect": false
|
|
141
142
|
},
|
|
142
143
|
"border": {
|
|
143
|
-
"type": "
|
|
144
|
+
"type": "any",
|
|
144
145
|
"mutable": false,
|
|
145
146
|
"complexType": {
|
|
146
|
-
"original": "boolean",
|
|
147
|
-
"resolved": "boolean",
|
|
147
|
+
"original": "boolean | \"solid\"",
|
|
148
|
+
"resolved": "\"solid\" | boolean",
|
|
148
149
|
"references": {}
|
|
149
150
|
},
|
|
150
151
|
"required": false,
|
|
151
152
|
"optional": false,
|
|
152
153
|
"docs": {
|
|
153
154
|
"tags": [],
|
|
154
|
-
"text": "Enable or disable the border underneath the heading
|
|
155
|
+
"text": "Enable or disable the border underneath the heading, solid will darken the border"
|
|
155
156
|
},
|
|
156
157
|
"attribute": "border",
|
|
157
158
|
"reflect": false,
|
|
@@ -485,11 +485,11 @@ export class DuetHero {
|
|
|
485
485
|
"optional": false,
|
|
486
486
|
"docs": {
|
|
487
487
|
"tags": [{
|
|
488
|
-
"
|
|
489
|
-
"
|
|
488
|
+
"name": "deprecated",
|
|
489
|
+
"text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
|
|
490
490
|
}, {
|
|
491
|
-
"
|
|
492
|
-
"
|
|
491
|
+
"name": "default",
|
|
492
|
+
"text": "\"fi\""
|
|
493
493
|
}],
|
|
494
494
|
"text": "The currently active language. This setting changes the accessible labels to match the\nchosen language."
|
|
495
495
|
},
|
|
@@ -514,8 +514,8 @@ export class DuetHero {
|
|
|
514
514
|
"optional": false,
|
|
515
515
|
"docs": {
|
|
516
516
|
"tags": [{
|
|
517
|
-
"
|
|
518
|
-
"
|
|
517
|
+
"name": "default",
|
|
518
|
+
"text": "{fi: \"Avautuu uuteen ikkunaan\",sv: \"\u00D6ppnas i nytt f\u00F6nster\",en: \"Opens in a new window\"}"
|
|
519
519
|
}],
|
|
520
520
|
"text": "Defaults for accessibleLabelExternal"
|
|
521
521
|
},
|
|
@@ -535,8 +535,8 @@ export class DuetHero {
|
|
|
535
535
|
"optional": false,
|
|
536
536
|
"docs": {
|
|
537
537
|
"tags": [{
|
|
538
|
-
"
|
|
539
|
-
"
|
|
538
|
+
"name": "default",
|
|
539
|
+
"text": "{fi: \"Avautuu uuteen ikkunaan\",sv: \"\u00D6ppnas i nytt f\u00F6nster\",en: \"Opens in a new window\"}"
|
|
540
540
|
}],
|
|
541
541
|
"text": "Adds accessible label for tooltip that is shown in external link (url & external have both been set)"
|
|
542
542
|
},
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
+
import { Build, Env } from "@stencil/core";
|
|
4
5
|
const cleanupSvg = (svgContent) => {
|
|
5
6
|
if (typeof document === "undefined" || !svgContent) {
|
|
6
7
|
return;
|
|
@@ -37,16 +38,12 @@ const isValid = (elm) => {
|
|
|
37
38
|
};
|
|
38
39
|
export const buildIconUrl = (iconName) => {
|
|
39
40
|
// under normal operations the Icons should always be loaded from the CDN
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const host = window.location.hostname;
|
|
44
|
-
const re = /(localhost|loca\.lt|127\.0\.0\.1|0\.0\.0\.0)/i;
|
|
45
|
-
if (host.match(re)) {
|
|
46
|
-
return localURI;
|
|
41
|
+
if (Build.isDev || Build.isTesting) {
|
|
42
|
+
// however for vizdiffing and local development / testing we need to be able to access the raw images
|
|
43
|
+
return `${Env.cdnURILocal}/icons/lib/assets/${iconName}.svg`;
|
|
47
44
|
}
|
|
48
45
|
else {
|
|
49
|
-
return
|
|
46
|
+
return `${Env.cdnURIProd}/icons/${Env.duetIconVersion}/lib/assets/${iconName}.svg`;
|
|
50
47
|
}
|
|
51
48
|
};
|
|
52
49
|
const iconCache = {};
|
|
@@ -63,6 +63,21 @@ duet-caption:not(:last-of-type) {
|
|
|
63
63
|
margin-bottom: 0;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
.duet-input-placeholder {
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: -9px;
|
|
69
|
+
left: 9px;
|
|
70
|
+
z-index: 200;
|
|
71
|
+
display: block;
|
|
72
|
+
width: auto;
|
|
73
|
+
max-width: 60%;
|
|
74
|
+
padding: 0 0.25rem;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
text-overflow: ellipsis;
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
background: white;
|
|
79
|
+
}
|
|
80
|
+
|
|
66
81
|
.duet-input-icon {
|
|
67
82
|
position: absolute;
|
|
68
83
|
top: 50%;
|
|
@@ -140,7 +140,7 @@ export class DuetInput {
|
|
|
140
140
|
// (in webkit based browsers settings value trigger cursor position and will set it to EndOfText)
|
|
141
141
|
restoreCursor();
|
|
142
142
|
}
|
|
143
|
-
this.isCaptionVisible = !!
|
|
143
|
+
this.isCaptionVisible = !!this.caption;
|
|
144
144
|
const emitEvent = () => this.duetChange.emit({
|
|
145
145
|
value: this.value,
|
|
146
146
|
component: "duet-input",
|
|
@@ -159,7 +159,7 @@ export class DuetInput {
|
|
|
159
159
|
componentWillLoad() {
|
|
160
160
|
inheritGlobalTheme(this);
|
|
161
161
|
this.disallowedPatternChange();
|
|
162
|
-
this.isCaptionVisible = !!
|
|
162
|
+
this.isCaptionVisible = !!this.caption;
|
|
163
163
|
}
|
|
164
164
|
/**
|
|
165
165
|
* Sets focus on the specified `duet-input`. Use this method instead of the global
|
|
@@ -199,8 +199,8 @@ export class DuetInput {
|
|
|
199
199
|
h("duet-label", { theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, margin: this.isCaptionVisible ? "small" : "auto", id: this.labelId, for: identifier }, this.label),
|
|
200
200
|
this.tooltip && (h("duet-tooltip", { direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)),
|
|
201
201
|
this.caption && (h("duet-caption", { id: this.topCaptionId, size: "medium" }, this.caption)),
|
|
202
|
-
this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { id: this.topCaptionPlaceholderId, size: "small" }, this.placeholder)),
|
|
203
202
|
h("div", { class: "duet-input-relative" },
|
|
203
|
+
this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { id: this.topCaptionPlaceholderId, class: "duet-input-placeholder", margin: "none", size: "small" }, this.placeholder)),
|
|
204
204
|
h("input", Object.assign({ ref: input => (this.nativeInput = input), onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, type: this.type, class: {
|
|
205
205
|
"duet-input": true,
|
|
206
206
|
disabled: this.disabled,
|
|
@@ -212,7 +212,7 @@ export class DuetInput {
|
|
|
212
212
|
this.icon && (h("div", { class: "duet-input-icon" },
|
|
213
213
|
h("duet-icon", { margin: "none", size: "small", name: this.icon, color: "currentColor" }))),
|
|
214
214
|
h("slot", null)),
|
|
215
|
-
h("span", { class: "duet-input-help", id: this.errorId, "aria-live": "assertive", "aria-relevant": "additions removals" }, this.error && h("span",
|
|
215
|
+
h("span", { class: "duet-input-help", id: this.errorId, "aria-live": "assertive", "aria-relevant": "additions removals" }, this.error && h("span", { class: "duet-input-error" }, this.error)))));
|
|
216
216
|
}
|
|
217
217
|
static get is() { return "duet-input"; }
|
|
218
218
|
static get encapsulation() { return "scoped"; }
|
|
@@ -112,11 +112,11 @@ export class DuetLink {
|
|
|
112
112
|
"optional": false,
|
|
113
113
|
"docs": {
|
|
114
114
|
"tags": [{
|
|
115
|
-
"
|
|
116
|
-
"
|
|
115
|
+
"name": "deprecated",
|
|
116
|
+
"text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
|
|
117
117
|
}, {
|
|
118
|
-
"
|
|
119
|
-
"
|
|
118
|
+
"name": "default",
|
|
119
|
+
"text": "\"fi\""
|
|
120
120
|
}],
|
|
121
121
|
"text": "The currently active language. This setting changes the external link\naccessible label to match the chosen language."
|
|
122
122
|
},
|
|
@@ -141,8 +141,8 @@ export class DuetLink {
|
|
|
141
141
|
"optional": false,
|
|
142
142
|
"docs": {
|
|
143
143
|
"tags": [{
|
|
144
|
-
"
|
|
145
|
-
"
|
|
144
|
+
"name": "default",
|
|
145
|
+
"text": "{fi: \"Avautuu uuteen ikkunaan\",sv: \"\u00D6ppnas i nytt f\u00F6nster\",en: \"Opens in a new window\"}"
|
|
146
146
|
}],
|
|
147
147
|
"text": "Defaults for accessibleLabelExternal"
|
|
148
148
|
},
|
|
@@ -162,8 +162,8 @@ export class DuetLink {
|
|
|
162
162
|
"optional": false,
|
|
163
163
|
"docs": {
|
|
164
164
|
"tags": [{
|
|
165
|
-
"
|
|
166
|
-
"
|
|
165
|
+
"name": "default",
|
|
166
|
+
"text": "{fi: \"Avautuu uuteen ikkunaan\",sv: \"\u00D6ppnas i nytt f\u00F6nster\",en: \"Opens in a new window\"}"
|
|
167
167
|
}],
|
|
168
168
|
"text": "Adds accessible label for tooltip that is shown in external link (url & external have both been set)"
|
|
169
169
|
},
|
|
@@ -232,11 +232,11 @@ export class DuetLogo {
|
|
|
232
232
|
"optional": false,
|
|
233
233
|
"docs": {
|
|
234
234
|
"tags": [{
|
|
235
|
-
"
|
|
236
|
-
"
|
|
235
|
+
"name": "deprecated",
|
|
236
|
+
"text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
|
|
237
237
|
}, {
|
|
238
|
-
"
|
|
239
|
-
"
|
|
238
|
+
"name": "default",
|
|
239
|
+
"text": "\"fi\""
|
|
240
240
|
}],
|
|
241
241
|
"text": "The language of the logo."
|
|
242
242
|
},
|
|
@@ -263,11 +263,11 @@ export class DuetModal {
|
|
|
263
263
|
"optional": false,
|
|
264
264
|
"docs": {
|
|
265
265
|
"tags": [{
|
|
266
|
-
"
|
|
267
|
-
"
|
|
266
|
+
"name": "deprecated",
|
|
267
|
+
"text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
|
|
268
268
|
}, {
|
|
269
|
-
"
|
|
270
|
-
"
|
|
269
|
+
"name": "default",
|
|
270
|
+
"text": "\"fi\""
|
|
271
271
|
}],
|
|
272
272
|
"text": "The currently active language. This setting also changes the logo to match\nthe chosen language."
|
|
273
273
|
},
|
|
@@ -292,8 +292,8 @@ export class DuetModal {
|
|
|
292
292
|
"optional": false,
|
|
293
293
|
"docs": {
|
|
294
294
|
"tags": [{
|
|
295
|
-
"
|
|
296
|
-
"
|
|
295
|
+
"name": "default",
|
|
296
|
+
"text": "{fi: \"Sulje ikkuna\", sv: \"St\u00E4ng f\u00F6nstret\", en: \"Close the dialog\", }"
|
|
297
297
|
}],
|
|
298
298
|
"text": "Defaults for accessibleCloseLabel"
|
|
299
299
|
},
|
|
@@ -313,8 +313,8 @@ export class DuetModal {
|
|
|
313
313
|
"optional": false,
|
|
314
314
|
"docs": {
|
|
315
315
|
"tags": [{
|
|
316
|
-
"
|
|
317
|
-
"
|
|
316
|
+
"name": "default",
|
|
317
|
+
"text": "{fi: \"Sulje ikkuna\", sv: \"St\u00E4ng f\u00F6nstret\", en: \"Close the dialog\", }"
|
|
318
318
|
}],
|
|
319
319
|
"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!\nSwedish translation for this property is \u201CSt\u00E4ng f\u00F6nstret\u201D."
|
|
320
320
|
},
|
|
@@ -104,11 +104,11 @@ export class DuetNotification {
|
|
|
104
104
|
"optional": false,
|
|
105
105
|
"docs": {
|
|
106
106
|
"tags": [{
|
|
107
|
-
"
|
|
108
|
-
"
|
|
107
|
+
"name": "deprecated",
|
|
108
|
+
"text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
|
|
109
109
|
}, {
|
|
110
|
-
"
|
|
111
|
-
"
|
|
110
|
+
"name": "default",
|
|
111
|
+
"text": "\"fi\""
|
|
112
112
|
}],
|
|
113
113
|
"text": "The currently active language.\nUsed for announcing unread notifications to screen readers."
|
|
114
114
|
},
|
|
@@ -149,8 +149,8 @@ export class DuetNotification {
|
|
|
149
149
|
"optional": false,
|
|
150
150
|
"docs": {
|
|
151
151
|
"tags": [{
|
|
152
|
-
"
|
|
153
|
-
"
|
|
152
|
+
"name": "default",
|
|
153
|
+
"text": "{ en: \"Unread\", fi: \"Lukematon\", sv: \"Ol\u00E4st\" }"
|
|
154
154
|
}],
|
|
155
155
|
"text": "Adds accessible label for tooltip that is shown over unread counter"
|
|
156
156
|
},
|
|
@@ -260,8 +260,8 @@ export class DuetNotification {
|
|
|
260
260
|
"signature": "(options?: FocusOptions) => Promise<void>",
|
|
261
261
|
"parameters": [{
|
|
262
262
|
"tags": [{
|
|
263
|
-
"
|
|
264
|
-
"
|
|
263
|
+
"name": "param",
|
|
264
|
+
"text": "options"
|
|
265
265
|
}],
|
|
266
266
|
"text": ""
|
|
267
267
|
}],
|
|
@@ -233,8 +233,8 @@ export class DuetNotificationDrawer {
|
|
|
233
233
|
"optional": false,
|
|
234
234
|
"docs": {
|
|
235
235
|
"tags": [{
|
|
236
|
-
"
|
|
237
|
-
"
|
|
236
|
+
"name": "default",
|
|
237
|
+
"text": "{en: \"No notifications\", fi: \"Ei ilmoituksia\", sv: \"Inga notifikationer\"}"
|
|
238
238
|
}],
|
|
239
239
|
"text": "Defaults for accessibleLabelNotifications"
|
|
240
240
|
},
|
|
@@ -254,8 +254,8 @@ export class DuetNotificationDrawer {
|
|
|
254
254
|
"optional": false,
|
|
255
255
|
"docs": {
|
|
256
256
|
"tags": [{
|
|
257
|
-
"
|
|
258
|
-
"
|
|
257
|
+
"name": "default",
|
|
258
|
+
"text": "{en: \"No notifications\", fi: \"Ei ilmoituksia\", sv: \"Inga notifikationer\"}"
|
|
259
259
|
}],
|
|
260
260
|
"text": "Adds accessible label for tooltip that is shown for notifications"
|
|
261
261
|
},
|
|
@@ -337,8 +337,8 @@ export class DuetNotificationDrawer {
|
|
|
337
337
|
"signature": "(options?: FocusOptions) => Promise<void>",
|
|
338
338
|
"parameters": [{
|
|
339
339
|
"tags": [{
|
|
340
|
-
"
|
|
341
|
-
"
|
|
340
|
+
"name": "param",
|
|
341
|
+
"text": "options"
|
|
342
342
|
}],
|
|
343
343
|
"text": ""
|
|
344
344
|
}],
|
|
@@ -381,8 +381,8 @@ export class DuetNotificationDrawer {
|
|
|
381
381
|
"signature": "(moveFocusToButton?: boolean) => Promise<void>",
|
|
382
382
|
"parameters": [{
|
|
383
383
|
"tags": [{
|
|
384
|
-
"
|
|
385
|
-
"
|
|
384
|
+
"name": "param",
|
|
385
|
+
"text": "moveFocusToButton should focus be moved to the menu's button on close?"
|
|
386
386
|
}],
|
|
387
387
|
"text": "should focus be moved to the menu's button on close?"
|
|
388
388
|
}],
|
|
@@ -370,11 +370,11 @@ export class DuetNumberInput {
|
|
|
370
370
|
"optional": false,
|
|
371
371
|
"docs": {
|
|
372
372
|
"tags": [{
|
|
373
|
-
"
|
|
374
|
-
"
|
|
373
|
+
"name": "deprecated",
|
|
374
|
+
"text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
|
|
375
375
|
}, {
|
|
376
|
-
"
|
|
377
|
-
"
|
|
376
|
+
"name": "default",
|
|
377
|
+
"text": "\"fi\""
|
|
378
378
|
}],
|
|
379
379
|
"text": "The currently active language. This setting changes the accessible labels to match the\nchosen language."
|
|
380
380
|
},
|
|
@@ -508,8 +508,8 @@ export class DuetNumberInput {
|
|
|
508
508
|
"optional": false,
|
|
509
509
|
"docs": {
|
|
510
510
|
"tags": [{
|
|
511
|
-
"
|
|
512
|
-
"
|
|
511
|
+
"name": "default",
|
|
512
|
+
"text": "{fi: \"{current} euroa valittuna\", en: \"{current} euros selected\", sv: \"{current} valda euro\"}"
|
|
513
513
|
}],
|
|
514
514
|
"text": "Defaults for accessibleLive"
|
|
515
515
|
},
|
|
@@ -529,8 +529,8 @@ export class DuetNumberInput {
|
|
|
529
529
|
"optional": false,
|
|
530
530
|
"docs": {
|
|
531
531
|
"tags": [{
|
|
532
|
-
"
|
|
533
|
-
"
|
|
532
|
+
"name": "default",
|
|
533
|
+
"text": "{fi: \"{current} euroa valittuna\", en: \"{current} euros selected\", sv: \"{current} valda euro\"}"
|
|
534
534
|
}],
|
|
535
535
|
"text": "Format of message used to announce current amount when switching between amounts.\nThe string {current} is replaced with the current amount."
|
|
536
536
|
},
|
|
@@ -573,8 +573,8 @@ export class DuetNumberInput {
|
|
|
573
573
|
"optional": false,
|
|
574
574
|
"docs": {
|
|
575
575
|
"tags": [{
|
|
576
|
-
"
|
|
577
|
-
"
|
|
576
|
+
"name": "default",
|
|
577
|
+
"text": "{fi: \"Lis\u00E4\u00E4 summaan\", en: \"Add to the amount\", sv: \"L\u00E4gg till beloppet\"}"
|
|
578
578
|
}],
|
|
579
579
|
"text": "Defaults for accessibleAdd"
|
|
580
580
|
},
|
|
@@ -594,8 +594,8 @@ export class DuetNumberInput {
|
|
|
594
594
|
"optional": false,
|
|
595
595
|
"docs": {
|
|
596
596
|
"tags": [{
|
|
597
|
-
"
|
|
598
|
-
"
|
|
597
|
+
"name": "default",
|
|
598
|
+
"text": "{fi: \"Lis\u00E4\u00E4 summaan\", en: \"Add to the amount\", sv: \"L\u00E4gg till beloppet\"}"
|
|
599
599
|
}],
|
|
600
600
|
"text": "Accessible label for the add button that is read for screen reader users."
|
|
601
601
|
},
|
|
@@ -620,8 +620,8 @@ export class DuetNumberInput {
|
|
|
620
620
|
"optional": false,
|
|
621
621
|
"docs": {
|
|
622
622
|
"tags": [{
|
|
623
|
-
"
|
|
624
|
-
"
|
|
623
|
+
"name": "default",
|
|
624
|
+
"text": "{fi: \"V\u00E4henn\u00E4 summasta\", en: \"Subtract from the amount\", sv: \"Dra fr\u00E5n beloppet\"}"
|
|
625
625
|
}],
|
|
626
626
|
"text": "Defaults for accessibleSubtract"
|
|
627
627
|
},
|
|
@@ -641,8 +641,8 @@ export class DuetNumberInput {
|
|
|
641
641
|
"optional": false,
|
|
642
642
|
"docs": {
|
|
643
643
|
"tags": [{
|
|
644
|
-
"
|
|
645
|
-
"
|
|
644
|
+
"name": "default",
|
|
645
|
+
"text": "{fi: \"V\u00E4henn\u00E4 summasta\", en: \"Subtract from the amount\", sv: \"Dra fr\u00E5n beloppet\"}"
|
|
646
646
|
}],
|
|
647
647
|
"text": "Accessible label for the subtract button that is read for screen reader users."
|
|
648
648
|
},
|
|
@@ -766,8 +766,8 @@ export class DuetNumberInput {
|
|
|
766
766
|
"optional": false,
|
|
767
767
|
"docs": {
|
|
768
768
|
"tags": [{
|
|
769
|
-
"
|
|
770
|
-
"
|
|
769
|
+
"name": "default",
|
|
770
|
+
"text": "{fi: \"Etiketti\", en: \"Label\", sv: \"M\u00E4rka\"}"
|
|
771
771
|
}],
|
|
772
772
|
"text": "Defaults for Label"
|
|
773
773
|
},
|
|
@@ -787,8 +787,8 @@ export class DuetNumberInput {
|
|
|
787
787
|
"optional": false,
|
|
788
788
|
"docs": {
|
|
789
789
|
"tags": [{
|
|
790
|
-
"
|
|
791
|
-
"
|
|
790
|
+
"name": "default",
|
|
791
|
+
"text": "{fi: \"Etiketti\", en: \"Label\", sv: \"M\u00E4rka\"}"
|
|
792
792
|
}],
|
|
793
793
|
"text": "Label for the number input."
|
|
794
794
|
},
|
|
@@ -52,6 +52,12 @@
|
|
|
52
52
|
.duet-paragraph.duet-paragraph-small {
|
|
53
53
|
font-size: 0.875rem;
|
|
54
54
|
}
|
|
55
|
+
.duet-paragraph.duet-paragraph-semi-bold {
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
}
|
|
58
|
+
.duet-paragraph.duet-paragraph-bold {
|
|
59
|
+
font-weight: 700;
|
|
60
|
+
}
|
|
55
61
|
.duet-paragraph.duet-m-0 {
|
|
56
62
|
margin: 0 !important;
|
|
57
63
|
}
|
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
import { Component, Element, h, Prop } from "@stencil/core";
|
|
5
5
|
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
6
6
|
import { getColorByName } from "../../utils/token-utils";
|
|
7
|
+
/**
|
|
8
|
+
* @part duet-paragraph - piercing selector for styling the paragraph
|
|
9
|
+
*/
|
|
7
10
|
export class DuetParagraph {
|
|
8
11
|
constructor() {
|
|
9
12
|
/**
|
|
10
|
-
* Theme of the
|
|
13
|
+
* Theme of the paragraph.
|
|
11
14
|
*/
|
|
12
15
|
this.theme = "";
|
|
13
16
|
/**
|
|
@@ -18,6 +21,10 @@ export class DuetParagraph {
|
|
|
18
21
|
* Controls the size of the paragraph.
|
|
19
22
|
*/
|
|
20
23
|
this.size = "medium";
|
|
24
|
+
/**
|
|
25
|
+
* Controls the Font-Weight of the paragraph.
|
|
26
|
+
*/
|
|
27
|
+
this.weight = undefined;
|
|
21
28
|
/**
|
|
22
29
|
* Style variation of the paragraph.
|
|
23
30
|
*/
|
|
@@ -43,10 +50,12 @@ export class DuetParagraph {
|
|
|
43
50
|
return (h("p", { class: {
|
|
44
51
|
"duet-paragraph": true,
|
|
45
52
|
"duet-paragraph-small": this.size === "small",
|
|
53
|
+
"duet-paragraph-semi-bold": this.weight === "semi-bold",
|
|
54
|
+
"duet-paragraph-bold": this.weight === "bold",
|
|
46
55
|
"duet-m-0": this.margin === "none",
|
|
47
56
|
[this.variation]: true,
|
|
48
57
|
"duet-theme-turva": this.theme === "turva",
|
|
49
|
-
}, style: { color } },
|
|
58
|
+
}, style: { color }, part: "duet-paragraph" },
|
|
50
59
|
h("slot", null)));
|
|
51
60
|
}
|
|
52
61
|
static get is() { return "duet-paragraph"; }
|
|
@@ -75,7 +84,7 @@ export class DuetParagraph {
|
|
|
75
84
|
"optional": false,
|
|
76
85
|
"docs": {
|
|
77
86
|
"tags": [],
|
|
78
|
-
"text": "Theme of the
|
|
87
|
+
"text": "Theme of the paragraph."
|
|
79
88
|
},
|
|
80
89
|
"attribute": "theme",
|
|
81
90
|
"reflect": false,
|
|
@@ -126,6 +135,28 @@ export class DuetParagraph {
|
|
|
126
135
|
"reflect": false,
|
|
127
136
|
"defaultValue": "\"medium\""
|
|
128
137
|
},
|
|
138
|
+
"weight": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"mutable": false,
|
|
141
|
+
"complexType": {
|
|
142
|
+
"original": "DuetParagraphWeight",
|
|
143
|
+
"resolved": "\"bold\" | \"semi-bold\"",
|
|
144
|
+
"references": {
|
|
145
|
+
"DuetParagraphWeight": {
|
|
146
|
+
"location": "local"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"required": false,
|
|
151
|
+
"optional": false,
|
|
152
|
+
"docs": {
|
|
153
|
+
"tags": [],
|
|
154
|
+
"text": "Controls the Font-Weight of the paragraph."
|
|
155
|
+
},
|
|
156
|
+
"attribute": "weight",
|
|
157
|
+
"reflect": false,
|
|
158
|
+
"defaultValue": "undefined"
|
|
159
|
+
},
|
|
129
160
|
"variation": {
|
|
130
161
|
"type": "string",
|
|
131
162
|
"mutable": false,
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::after,
|
|
3
|
+
*::before {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
padding: 0;
|
|
6
|
+
margin: 0;
|
|
7
|
+
background: transparent;
|
|
8
|
+
border: 0;
|
|
9
|
+
-moz-appearance: none;
|
|
10
|
+
-webkit-appearance: none;
|
|
11
|
+
appearance: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
padding: 0;
|
|
17
|
+
margin: 0;
|
|
18
|
+
background: transparent;
|
|
19
|
+
border: 0;
|
|
20
|
+
-moz-appearance: none;
|
|
21
|
+
-webkit-appearance: none;
|
|
22
|
+
appearance: none;
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: inherit;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.duet-progress {
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
padding: 0;
|
|
30
|
+
margin: 0;
|
|
31
|
+
background: transparent;
|
|
32
|
+
border: 0;
|
|
33
|
+
-moz-appearance: none;
|
|
34
|
+
-webkit-appearance: none;
|
|
35
|
+
appearance: none;
|
|
36
|
+
display: block;
|
|
37
|
+
width: 100%;
|
|
38
|
+
min-height: 1px;
|
|
39
|
+
/* fallback design of the default appearance */
|
|
40
|
+
}
|
|
41
|
+
.duet-progress .progress-bar {
|
|
42
|
+
position: relative;
|
|
43
|
+
display: block;
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: inherit;
|
|
46
|
+
min-height: 1px;
|
|
47
|
+
background-color: #f3f9fc;
|
|
48
|
+
border-radius: 0;
|
|
49
|
+
box-shadow: none;
|
|
50
|
+
}
|
|
51
|
+
.duet-theme-turva .duet-progress .progress-bar {
|
|
52
|
+
background-color: #fcf3f4;
|
|
53
|
+
}
|
|
54
|
+
.duet-progress .progress-bar > span {
|
|
55
|
+
display: block;
|
|
56
|
+
height: inherit;
|
|
57
|
+
text-indent: -9999px;
|
|
58
|
+
background-color: #0077b3;
|
|
59
|
+
border-radius: 0;
|
|
60
|
+
}
|
|
61
|
+
.duet-theme-turva .duet-progress .progress-bar > span {
|
|
62
|
+
background-color: #c60c30;
|
|
63
|
+
}
|
|
64
|
+
.duet-progress progress[value] {
|
|
65
|
+
display: flex;
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: inherit;
|
|
68
|
+
min-height: 1px;
|
|
69
|
+
/* For IE10 */
|
|
70
|
+
color: #0077b3;
|
|
71
|
+
/* Get rid of default border in Firefox. */
|
|
72
|
+
border: 0 none;
|
|
73
|
+
/* Reset the default appearance */
|
|
74
|
+
-webkit-appearance: none;
|
|
75
|
+
-moz-appearance: none;
|
|
76
|
+
appearance: none;
|
|
77
|
+
}
|
|
78
|
+
.duet-theme-turva .duet-progress progress[value] {
|
|
79
|
+
color: #c60c30;
|
|
80
|
+
}
|
|
81
|
+
.duet-progress progress[value]::-webkit-progress-bar {
|
|
82
|
+
background-color: #f3f9fc;
|
|
83
|
+
border-radius: 0;
|
|
84
|
+
}
|
|
85
|
+
.duet-theme-turva .duet-progress progress[value]::-webkit-progress-bar {
|
|
86
|
+
background-color: #fcf3f4;
|
|
87
|
+
}
|
|
88
|
+
.duet-progress progress[value]::-webkit-progress-value {
|
|
89
|
+
background-color: #0077b3;
|
|
90
|
+
background-size: 35px 20px, 100% 100%, 100% 100%;
|
|
91
|
+
border-radius: 0;
|
|
92
|
+
-webkit-animation: animate-stripes 5s linear infinite;
|
|
93
|
+
animation: animate-stripes 5s linear infinite;
|
|
94
|
+
}
|
|
95
|
+
.duet-theme-turva .duet-progress progress[value]::-webkit-progress-value {
|
|
96
|
+
background-color: #c60c30;
|
|
97
|
+
}
|
|
98
|
+
.duet-progress progress[value] ::-moz-progress-bar {
|
|
99
|
+
background-color: #f3f9fc;
|
|
100
|
+
}
|
|
101
|
+
.duet-theme-turva .duet-progress progress[value] ::-moz-progress-bar {
|
|
102
|
+
background-color: #fcf3f4;
|
|
103
|
+
}
|