@duetds/components 4.36.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hydrate/index.js +1128 -977
- package/lib/cjs/duet-action-button.cjs.entry.js +163 -0
- package/lib/cjs/duet-alert.cjs.entry.js +1 -1
- package/lib/cjs/duet-badge.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
- package/lib/cjs/duet-button_2.cjs.entry.js +8 -4
- package/lib/cjs/duet-caption_4.cjs.entry.js +3 -3
- package/lib/cjs/duet-card.cjs.entry.js +3 -3
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +4 -4
- package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
- package/lib/cjs/{duet-editable-table_4.cjs.entry.js → duet-editable-table_3.cjs.entry.js} +382 -337
- 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 +1 -1
- package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-hero.cjs.entry.js +1 -1
- package/lib/cjs/duet-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-modal.cjs.entry.js +2 -2
- package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
- package/lib/cjs/duet-pagination_2.cjs.entry.js +24 -14
- package/lib/cjs/duet-progress.cjs.entry.js +1 -1
- package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +1 -1
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
- package/lib/cjs/duet-tray.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +2 -2
- package/lib/cjs/{focus-utils-dfd718e8.js → focus-utils-7a11c463.js} +1 -1
- package/lib/cjs/{index-4f342f1c.js → index-da5d5aaf.js} +1 -1
- package/lib/cjs/js-utils-be1d29ae.js +39 -0
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/cjs/{token-utils-f402e205.js → token-utils-ac8432d1.js} +1 -1
- package/lib/cjs/{tokens-8596cece.js → tokens-72efc7fd.js} +0 -0
- package/lib/cjs/{tokens.module-6b2df1c2.js → tokens.module-6afcc9c1.js} +0 -0
- package/lib/collection/collection-manifest.json +14 -11
- package/lib/collection/components/duet-action-button/duet-action-button.css +87 -0
- package/lib/collection/components/duet-action-button/duet-action-button.js +489 -0
- package/lib/collection/components/duet-button/duet-button.js +23 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.css +2 -57
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +2 -6
- package/lib/collection/components/duet-editable-table/duet-editable-table-tabledata.js +3 -2
- package/lib/collection/components/duet-editable-table/duet-editable-table.css +20 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +331 -205
- package/lib/collection/components/duet-pagination/duet-pagination.css +3 -62
- package/lib/collection/components/duet-pagination/duet-pagination.js +49 -19
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +4 -55
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -4
- package/lib/collection/components/duet-table/duet-table.css +42 -8
- package/lib/collection/components/duet-table/duet-table.js +11 -2
- package/lib/collection/components/duet-upload/duet-upload.css +25 -0
- package/lib/collection/components/duet-upload/duet-upload.js +270 -166
- package/lib/collection/components/duet-upload/upload-validators.js +1 -1
- package/lib/collection/utils/fixture-utils.js +3 -1
- package/lib/collection/utils/js-utils.js +36 -1
- package/lib/custom-elements-bundle/index.d.ts +6 -12
- package/lib/custom-elements-bundle/index.js +1142 -1001
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-c18080ad.entry.js → p-00209700.entry.js} +1 -1
- package/lib/duet/{p-1a95aeb6.entry.js → p-01144f93.entry.js} +1 -1
- package/lib/duet/{p-c6df2ea8.system.entry.js → p-021bf3a2.system.entry.js} +1 -1
- package/lib/duet/{p-20cdb787.entry.js → p-04c6e557.entry.js} +1 -1
- package/lib/duet/{p-d945a4b0.system.entry.js → p-06fd151e.system.entry.js} +1 -1
- package/lib/duet/p-0988f548.entry.js +4 -0
- package/lib/duet/{p-05e2c680.system.entry.js → p-0e1130a0.system.entry.js} +1 -1
- package/lib/duet/{p-ebc56043.entry.js → p-0fedc1c6.entry.js} +1 -1
- package/lib/duet/{p-e8303364.system.entry.js → p-111b70c5.system.entry.js} +1 -1
- package/lib/duet/p-12825e2c.entry.js +4 -0
- package/lib/duet/p-166c09ce.system.entry.js +4 -0
- package/lib/duet/{p-24b9e806.entry.js → p-1be45fc6.entry.js} +1 -1
- package/lib/duet/{p-286d2ad2.system.entry.js → p-1da57e19.system.entry.js} +1 -1
- package/lib/duet/{p-7a32ceb3.system.entry.js → p-21c9efa8.system.entry.js} +1 -1
- package/lib/duet/p-2245c56b.entry.js +4 -0
- package/lib/duet/{p-e6a69eb8.js → p-2273fc88.js} +1 -1
- package/lib/duet/{p-79b9e7ef.system.entry.js → p-232762b3.system.entry.js} +1 -1
- package/lib/duet/{p-d21f19cc.system.js → p-251dc733.system.js} +1 -1
- package/lib/duet/{p-ddb6344c.system.js → p-268c0abb.system.js} +0 -0
- package/lib/duet/{p-ca0ee655.system.entry.js → p-2b6dac5c.system.entry.js} +1 -1
- package/lib/duet/{p-e8e35258.entry.js → p-35cdec32.entry.js} +1 -1
- package/lib/duet/{p-2361986e.entry.js → p-37bdfcc6.entry.js} +1 -1
- package/lib/duet/{p-740b5609.entry.js → p-3c7d81b0.entry.js} +1 -1
- package/lib/duet/{p-3900577d.system.entry.js → p-3f77090f.system.entry.js} +1 -1
- package/lib/duet/{p-ad3dad04.system.js → p-3fafe82f.system.js} +1 -1
- package/lib/duet/{p-164a7037.system.entry.js → p-4b221aa3.system.entry.js} +1 -1
- package/lib/duet/{p-210d739c.system.entry.js → p-4b7b1d2a.system.entry.js} +1 -1
- package/lib/duet/{p-3547d108.entry.js → p-4c282c1a.entry.js} +1 -1
- package/lib/duet/p-51a7c020.entry.js +4 -0
- package/lib/duet/{p-c8ec3b99.entry.js → p-5298f6fb.entry.js} +1 -1
- package/lib/duet/{p-cb445018.js → p-5746d88c.js} +1 -1
- package/lib/duet/{p-f6da56c8.entry.js → p-589c2f28.entry.js} +1 -1
- package/lib/duet/{p-d9716aec.system.entry.js → p-592315ca.system.entry.js} +1 -1
- package/lib/duet/{p-615bfc61.system.entry.js → p-59a0ec33.system.entry.js} +1 -1
- package/lib/duet/p-5e1f64cb.entry.js +4 -0
- package/lib/duet/{p-29255af8.entry.js → p-608645ed.entry.js} +1 -1
- package/lib/duet/{p-3d1b0105.entry.js → p-683f1962.entry.js} +1 -1
- package/lib/duet/{p-9ce0e625.entry.js → p-6932c6d8.entry.js} +1 -1
- package/lib/duet/{p-e35d8543.entry.js → p-6934cb1b.entry.js} +1 -1
- package/lib/duet/{p-211b4485.system.entry.js → p-6d209c01.system.entry.js} +1 -1
- package/lib/duet/{p-e47daca7.system.entry.js → p-70e5c803.system.entry.js} +1 -1
- package/lib/duet/p-74d267d3.system.entry.js +4 -0
- package/lib/duet/{p-c7fa7dcc.system.entry.js → p-766daacb.system.entry.js} +1 -1
- package/lib/duet/{p-4e2532c7.system.js → p-77acbfe4.system.js} +1 -1
- package/lib/duet/p-7953cff9.system.entry.js +4 -0
- package/lib/duet/{p-635dacce.system.entry.js → p-7e939e57.system.entry.js} +1 -1
- package/lib/duet/{p-fa99eaa4.system.js → p-812b0905.system.js} +0 -0
- package/lib/duet/{p-1db7a35b.entry.js → p-814ed07c.entry.js} +1 -1
- package/lib/duet/{p-5d9affcd.entry.js → p-82a0e535.entry.js} +1 -1
- package/lib/duet/{p-3bb702e3.system.entry.js → p-8338702d.system.entry.js} +2 -2
- package/lib/duet/{p-65c418f7.system.entry.js → p-85b4b5c0.system.entry.js} +1 -1
- package/lib/duet/{p-5376a9db.entry.js → p-86538787.entry.js} +1 -1
- package/lib/duet/{p-562ae946.entry.js → p-8f01f647.entry.js} +1 -1
- package/lib/duet/{p-85100e09.entry.js → p-8f6def3f.entry.js} +1 -1
- package/lib/duet/{p-03cf3ebf.entry.js → p-90464434.entry.js} +1 -1
- package/lib/duet/p-92639d0b.system.js +4 -0
- package/lib/duet/{p-12941aef.system.entry.js → p-97f95c02.system.entry.js} +1 -1
- package/lib/duet/{p-ffb5fb75.system.entry.js → p-982deb44.system.entry.js} +1 -1
- package/lib/duet/{p-fd2211ab.entry.js → p-9dc88c43.entry.js} +1 -1
- package/lib/duet/{p-fae71c1f.entry.js → p-a37e57d8.entry.js} +1 -1
- package/lib/duet/{p-c52f4de0.system.entry.js → p-a71510b8.system.entry.js} +1 -1
- package/lib/duet/p-a8eec12e.system.entry.js +4 -0
- package/lib/duet/{p-4fdbc6ff.system.entry.js → p-abcfbb23.system.entry.js} +1 -1
- package/lib/duet/{p-3c3536be.entry.js → p-ac2b38e6.entry.js} +1 -1
- package/lib/duet/{p-9df321b3.system.entry.js → p-ace2cd17.system.entry.js} +1 -1
- package/lib/duet/{p-946f34b4.system.entry.js → p-ad278903.system.entry.js} +1 -1
- package/lib/duet/{p-1c4721a1.entry.js → p-aea907ad.entry.js} +1 -1
- package/lib/duet/{p-e7dd8a15.system.entry.js → p-b432d318.system.entry.js} +1 -1
- package/lib/duet/{p-0366552b.system.entry.js → p-b4e75f80.system.entry.js} +1 -1
- package/lib/duet/{p-061835f3.system.entry.js → p-b8c8105c.system.entry.js} +1 -1
- package/lib/duet/{p-c2d32103.entry.js → p-ba7480e9.entry.js} +1 -1
- package/lib/duet/{p-83452e8f.entry.js → p-bc7dba26.entry.js} +1 -1
- package/lib/duet/{p-ff21f3c2.entry.js → p-bf06f635.entry.js} +1 -1
- package/lib/duet/{p-c514010b.system.entry.js → p-c6ccf366.system.entry.js} +1 -1
- package/lib/duet/{p-46ae601a.entry.js → p-cd1a767f.entry.js} +1 -1
- package/lib/duet/{p-89e42127.system.entry.js → p-d6d9b0c6.system.entry.js} +1 -1
- package/lib/duet/{p-8143f3de.js → p-d7bc0102.js} +0 -0
- package/lib/duet/{p-d24c6bc1.entry.js → p-d9e329c0.entry.js} +1 -1
- package/lib/duet/p-dbb4a588.js +4 -0
- package/lib/duet/{p-ae14591e.entry.js → p-dc67d989.entry.js} +1 -1
- package/lib/duet/{p-7f0e360d.entry.js → p-de9ff67c.entry.js} +1 -1
- package/lib/duet/{p-ded33218.system.entry.js → p-deb8ac4d.system.entry.js} +1 -1
- package/lib/duet/p-e2e0bc49.system.js +4 -0
- package/lib/duet/{p-8c53bc24.system.entry.js → p-e624799f.system.entry.js} +1 -1
- package/lib/duet/{p-eb892975.system.entry.js → p-e887d6db.system.entry.js} +1 -1
- package/lib/duet/{p-dcaecb5e.js → p-e9c3053b.js} +1 -1
- package/lib/duet/{p-493c6d2f.system.entry.js → p-ebed7c5e.system.entry.js} +1 -1
- package/lib/duet/{p-ad07f399.js → p-ed75c8b3.js} +0 -0
- package/lib/duet/{p-e5ce7aad.system.entry.js → p-f020852e.system.entry.js} +1 -1
- package/lib/duet/p-f2abd301.entry.js +4 -0
- package/lib/duet/{p-e7b53f4f.system.entry.js → p-f54d1487.system.entry.js} +1 -1
- package/lib/duet/{p-b6dd0933.entry.js → p-fc44a819.entry.js} +1 -1
- package/lib/duet/{p-22baf1f8.system.entry.js → p-fcdd24f8.system.entry.js} +1 -1
- package/lib/duet/{p-5b546064.entry.js → p-fed35d92.entry.js} +1 -1
- package/lib/duet/{p-ef275410.entry.js → p-ff308f4c.entry.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +159 -0
- package/lib/esm/duet-alert.entry.js +1 -1
- package/lib/esm/duet-badge.entry.js +1 -1
- package/lib/esm/duet-breadcrumb.entry.js +1 -1
- package/lib/esm/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm/duet-button_2.entry.js +8 -4
- package/lib/esm/duet-caption_4.entry.js +3 -3
- package/lib/esm/duet-card.entry.js +3 -3
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-choice_2.entry.js +2 -2
- package/lib/esm/duet-collapsible.entry.js +2 -2
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +4 -4
- package/lib/esm/duet-divider_2.entry.js +1 -1
- package/lib/esm/{duet-editable-table_4.entry.js → duet-editable-table_3.entry.js} +384 -338
- 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 +1 -1
- package/lib/esm/duet-grid_2.entry.js +2 -2
- package/lib/esm/duet-header_2.entry.js +3 -3
- package/lib/esm/duet-hero.entry.js +1 -1
- package/lib/esm/duet-icon.entry.js +3 -3
- package/lib/esm/duet-input_2.entry.js +1 -1
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +1 -1
- package/lib/esm/duet-modal.entry.js +2 -2
- package/lib/esm/duet-notification_2.entry.js +1 -1
- package/lib/esm/duet-number-input.entry.js +1 -1
- package/lib/esm/duet-pagination_2.entry.js +24 -14
- package/lib/esm/duet-progress.entry.js +1 -1
- package/lib/esm/duet-radio_2.entry.js +1 -1
- package/lib/esm/duet-range-slider.entry.js +2 -2
- package/lib/esm/duet-scrollable_3.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +1 -1
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-textarea.entry.js +1 -1
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-tooltip.entry.js +1 -1
- package/lib/esm/duet-tray.entry.js +2 -2
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +2 -2
- package/lib/esm/{focus-utils-d4e80e1e.js → focus-utils-b0b3361f.js} +1 -1
- package/lib/esm/{index-4a5e7664.js → index-16f4da7f.js} +1 -1
- package/lib/esm/js-utils-52e0944c.js +36 -0
- package/lib/esm/loader.js +2 -2
- package/lib/esm/{token-utils-e9a69acf.js → token-utils-e9a0cb88.js} +1 -1
- package/lib/esm/{tokens-e110dc89.js → tokens-57d98824.js} +0 -0
- package/lib/esm/{tokens.module-49cbf963.js → tokens.module-a13e9683.js} +0 -0
- package/lib/esm-es5/duet-action-button.entry.js +4 -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-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +1 -1
- 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 +1 -1
- package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
- package/lib/esm-es5/duet-date-picker.entry.js +2 -2
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_3.entry.js +4 -0
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +1 -1
- 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 +1 -1
- 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-pagination_2.entry.js +2 -2
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- 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-scrollable_3.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-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 +1 -1
- 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-b0b3361f.js +4 -0
- package/lib/esm-es5/{index-4a5e7664.js → index-16f4da7f.js} +1 -1
- package/lib/esm-es5/js-utils-52e0944c.js +4 -0
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{token-utils-e9a69acf.js → token-utils-e9a0cb88.js} +1 -1
- package/lib/esm-es5/{tokens-e110dc89.js → tokens-57d98824.js} +0 -0
- package/lib/esm-es5/{tokens.module-49cbf963.js → tokens.module-a13e9683.js} +0 -0
- package/lib/html.html-data.json +168 -68
- package/lib/types/components/duet-action-button/duet-action-button.d.ts +112 -0
- package/lib/types/components/duet-button/duet-button.d.ts +4 -0
- package/lib/types/components/duet-editable-table/duet-editable-table-tabledata.d.ts +2 -2
- package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +106 -48
- package/lib/types/components/duet-pagination/duet-pagination.d.ts +7 -2
- package/lib/types/components/duet-table/duet-table.d.ts +16 -0
- package/lib/types/components/duet-upload/duet-upload.d.ts +68 -58
- package/lib/types/components.d.ts +225 -149
- package/lib/types/utils/js-utils.d.ts +2 -0
- package/package.json +5 -6
- package/lib/cjs/duet-editable-table-button.cjs.entry.js +0 -96
- package/lib/cjs/js-utils-33a9dbe3.js +0 -16
- package/lib/collection/components/duet-editable-table/duet-editable-table-button.css +0 -32
- package/lib/collection/components/duet-editable-table/duet-editable-table-button.js +0 -225
- package/lib/collection/components/duet-editable-table/duet-editable-table-item.css +0 -36
- package/lib/collection/components/duet-editable-table/duet-editable-table-item.js +0 -225
- package/lib/duet/p-063fe96d.entry.js +0 -4
- package/lib/duet/p-2eeacf1a.entry.js +0 -4
- package/lib/duet/p-396f1bdc.entry.js +0 -4
- package/lib/duet/p-7b55f33e.entry.js +0 -4
- package/lib/duet/p-7e0e2209.system.entry.js +0 -4
- package/lib/duet/p-81867417.system.js +0 -4
- package/lib/duet/p-a3d7951c.system.entry.js +0 -4
- package/lib/duet/p-a619dff3.system.js +0 -4
- package/lib/duet/p-b25d3769.js +0 -4
- package/lib/duet/p-bf192d9f.entry.js +0 -4
- package/lib/duet/p-c76a68aa.system.entry.js +0 -4
- package/lib/duet/p-d12b3d21.system.entry.js +0 -4
- package/lib/duet/p-ef4962e8.entry.js +0 -4
- package/lib/esm/duet-editable-table-button.entry.js +0 -92
- package/lib/esm/js-utils-b69f17df.js +0 -14
- package/lib/esm-es5/duet-editable-table-button.entry.js +0 -4
- package/lib/esm-es5/duet-editable-table_4.entry.js +0 -4
- package/lib/esm-es5/focus-utils-d4e80e1e.js +0 -4
- package/lib/esm-es5/js-utils-b69f17df.js +0 -4
- package/lib/types/components/duet-editable-table/duet-editable-table-button.d.ts +0 -73
- package/lib/types/components/duet-editable-table/duet-editable-table-item.d.ts +0 -76
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { DuetColor, DuetDirection, DuetGridBreakpoint, DuetHeadingLevel, DuetIconName, DuetLanguage, DuetLocale, DuetMargin, DuetPadding, DuetStatus, DuetTheme, DuetTooltipDirection, DuetVisualHeadingLevel } from "./common-types";
|
|
9
|
+
import { DuetActionButtonEvent, DuetActionButtonIconSize } from "./components/duet-action-button/duet-action-button";
|
|
9
10
|
import { DuetLangObject } from "./utils/language-utils";
|
|
10
11
|
import { DuetAlertEvent } from "./components/duet-alert/duet-alert";
|
|
11
12
|
import { DuetButtonIconSize, DuetButtonSize, DuetButtonTextCentering, DuetButtonVariation, DuetButtonWrapping } from "./components/duet-button/duet-button";
|
|
@@ -17,10 +18,8 @@ import { DuetCollapsibleHeadingFontSize, DuetCollapsibleToggleEvent, DuetCollaps
|
|
|
17
18
|
import { DuetCookieConsentEvent } from "./components/duet-cookie-consent/duet-cookie-consent";
|
|
18
19
|
import { DuetDatePickerChangeEvent, DuetDatePickerDirection, DuetDatePickerFocusEvent } from "./components/duet-date-picker/duet-date-picker";
|
|
19
20
|
import { DuetDividerMargin } from "./components/duet-divider/duet-divider";
|
|
20
|
-
import {
|
|
21
|
-
import { DuetEditableTableActions } from "./components/duet-editable-table/duet-editable-table
|
|
22
|
-
import { DuetEditableTableActionButtonItems, DuetEditableTableItemEvent } from "./components/duet-editable-table/duet-editable-table-button";
|
|
23
|
-
import { DuetEditableTableActions as DuetEditableTableActions1, DuetEditableTableItemData, DuetEditableTableItemEvent as DuetEditableTableItemEvent1 } from "./components/duet-editable-table/duet-editable-table-item";
|
|
21
|
+
import { DuetTableBreakpoint, DuetTableStickyDistance, DuetTableVariant } from "./components/duet-table/duet-table";
|
|
22
|
+
import { DuetEditableTableActions, DuetEditableTableColumns, DuetEditableTableRows, DuetTableMenuEvent, DuetTableToggleEvent } from "./components/duet-editable-table/duet-editable-table";
|
|
24
23
|
import { DuetEmptyStateSize } from "./components/duet-empty-state/duet-empty-state";
|
|
25
24
|
import { DuetFooterAnalyticsEvent, DuetFooterChangeEvent, DuetFooterVariation } from "./components/duet-footer/duet-footer";
|
|
26
25
|
import { DuetGridAlignment, DuetGridDistribution, DuetGridMobileAlignment } from "./components/duet-grid/duet-grid";
|
|
@@ -36,7 +35,7 @@ import { DuetLogoSize } from "./components/duet-logo/duet-logo";
|
|
|
36
35
|
import { DuetModalCloseEvent, DuetModalSize } from "./components/duet-modal/duet-modal";
|
|
37
36
|
import { DuetNotificationDrawerDirection } from "./components/duet-notification-drawer/duet-notification-drawer";
|
|
38
37
|
import { DuetNumberInputEvent } from "./components/duet-number-input/duet-number-input";
|
|
39
|
-
import { DuetPaginationPageEvent } from "./components/duet-pagination/duet-pagination";
|
|
38
|
+
import { DuetPaginationPageEvent, DuetPaginationVariation } from "./components/duet-pagination/duet-pagination";
|
|
40
39
|
import { DuetParagraphSize, DuetParagraphVariation, DuetParagraphWeight } from "./components/duet-paragraph/duet-paragraph";
|
|
41
40
|
import { DuetRadioEvent } from "./components/duet-radio/duet-radio";
|
|
42
41
|
import { DuetRangeChangeEvent } from "./components/duet-range-slider/duet-range-slider";
|
|
@@ -47,15 +46,77 @@ import { DuetSpinnerSize } from "./components/duet-spinner/duet-spinner";
|
|
|
47
46
|
import { DuetStepClickEvent, DuetStepState } from "./components/duet-step/duet-step";
|
|
48
47
|
import { DuetStepChangeEvent } from "./components/duet-stepper/duet-stepper";
|
|
49
48
|
import { DuetTabGroupEvent, DuetTabVariation } from "./components/duet-tab-group/duet-tab-group";
|
|
50
|
-
import { DuetTableBreakpoint, DuetTableStickyDistance, DuetTableVariant } from "./components/duet-table/duet-table";
|
|
49
|
+
import { DuetTableBreakpoint as DuetTableBreakpoint1, DuetTableStickyDistance as DuetTableStickyDistance1, DuetTableVariant as DuetTableVariant1 } from "./components/duet-table/duet-table";
|
|
51
50
|
import { DuetTextareaEvent } from "./components/duet-textarea/duet-textarea";
|
|
52
51
|
import { DuetToggleChangeEvent } from "./components/duet-toggle/duet-toggle";
|
|
53
52
|
import { DuetTooltipBreakpoint } from "./components/duet-tooltip/duet-tooltip";
|
|
53
|
+
import { DuetEditableTableActions as DuetEditableTableActions1 } from "./components/duet-editable-table/duet-editable-table";
|
|
54
54
|
import { StatusMessage } from "./components/duet-upload-aria-status/duet-upload-aria-status";
|
|
55
|
-
import {
|
|
56
|
-
import { DuetUploadEvent, StringMap } from "./components/duet-upload/duet-upload";
|
|
55
|
+
import { DuetUploadEvent, DuetUploadTableGroupName, StringMap } from "./components/duet-upload/duet-upload";
|
|
57
56
|
import { StatusMessage as StatusMessage1 } from "./components/duet-upload-aria-status/duet-upload-aria-status";
|
|
58
57
|
export namespace Components {
|
|
58
|
+
interface DuetActionButton {
|
|
59
|
+
/**
|
|
60
|
+
* Name of id of action that was called being called
|
|
61
|
+
*/
|
|
62
|
+
"actionId": string;
|
|
63
|
+
/**
|
|
64
|
+
* Name of id of action that was called being called
|
|
65
|
+
*/
|
|
66
|
+
"actionMeta": Record<any, any> | string;
|
|
67
|
+
/**
|
|
68
|
+
* Name of action being called
|
|
69
|
+
*/
|
|
70
|
+
"actionName": string;
|
|
71
|
+
/**
|
|
72
|
+
* Used to indicate which dom element with ID this element controls
|
|
73
|
+
*/
|
|
74
|
+
"ariaControls": string;
|
|
75
|
+
/**
|
|
76
|
+
* Described By id
|
|
77
|
+
*/
|
|
78
|
+
"ariaDescribedBy": string;
|
|
79
|
+
/**
|
|
80
|
+
* Aria description the button
|
|
81
|
+
*/
|
|
82
|
+
"ariaDescription": string;
|
|
83
|
+
/**
|
|
84
|
+
* Default pagination labels
|
|
85
|
+
*/
|
|
86
|
+
"ariaLabels": Record<string, string>;
|
|
87
|
+
/**
|
|
88
|
+
* Default pagination labels
|
|
89
|
+
*/
|
|
90
|
+
"ariaLabelsDefaults": DuetLangObject;
|
|
91
|
+
/**
|
|
92
|
+
* Custom color to be used for a background, as a design token entered in camelCase or kebab-case. Using this option the icon will always be resized to $size-icon-medium on mobile viewports. Example: "color-primary".
|
|
93
|
+
*/
|
|
94
|
+
"background": DuetColor;
|
|
95
|
+
/**
|
|
96
|
+
* Custom color to be used for the icon, as a design token entered in camelCase or kebab-case. Example: "color-primary". This property can also be set to "currentColor" which forces the icon to use the CSS text color of parent element instead. Useful when you want to control the color in stylesheet instead.
|
|
97
|
+
*/
|
|
98
|
+
"color": DuetColor;
|
|
99
|
+
/**
|
|
100
|
+
* Disables the button
|
|
101
|
+
*/
|
|
102
|
+
"disabled": boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Color of the icon to display
|
|
105
|
+
*/
|
|
106
|
+
"iconColor": string;
|
|
107
|
+
/**
|
|
108
|
+
* Name of the icon to display
|
|
109
|
+
*/
|
|
110
|
+
"iconName": string;
|
|
111
|
+
/**
|
|
112
|
+
* Size of the icon
|
|
113
|
+
*/
|
|
114
|
+
"iconSize": DuetActionButtonIconSize;
|
|
115
|
+
/**
|
|
116
|
+
* Theme of the pagination.
|
|
117
|
+
*/
|
|
118
|
+
"theme": DuetTheme;
|
|
119
|
+
}
|
|
59
120
|
interface DuetAlert {
|
|
60
121
|
/**
|
|
61
122
|
* Adds accessible label for the dismissible alert close button.
|
|
@@ -173,6 +234,10 @@ export namespace Components {
|
|
|
173
234
|
* Indicates the id of a component owned by the button.
|
|
174
235
|
*/
|
|
175
236
|
"accessibleOwns": string;
|
|
237
|
+
/**
|
|
238
|
+
* Use this property to add an aria-haspopup attribute to a button, if you are using it as a menu button.
|
|
239
|
+
*/
|
|
240
|
+
"accessiblePopup": string;
|
|
176
241
|
/**
|
|
177
242
|
* Tells screen reader the element is pressed.
|
|
178
243
|
*/
|
|
@@ -775,93 +840,52 @@ export namespace Components {
|
|
|
775
840
|
*/
|
|
776
841
|
"accessibleRole": string;
|
|
777
842
|
/**
|
|
778
|
-
*
|
|
779
|
-
*/
|
|
780
|
-
"actionLabelDefaults": DuetLangObject;
|
|
781
|
-
/**
|
|
782
|
-
* Array of actions that are mapped via the map variable to the various groups defined in group.
|
|
843
|
+
* Define actions for all items in a table An alternative to inline HTML table. required for Sortable tables
|
|
783
844
|
* @default undefined
|
|
784
|
-
* @example [{ variation: "default", icon: "action-edit-2", id: "edit", map: ["success"], label: { fi: " Label", en: " Label", sv: " Label", } }]
|
|
785
845
|
*/
|
|
786
|
-
"actions": DuetEditableTableActions
|
|
787
|
-
/**
|
|
788
|
-
* Key used to set vertical alignment of action buttons
|
|
789
|
-
*/
|
|
790
|
-
"alignment": string;
|
|
791
|
-
/**
|
|
792
|
-
* Array of group names that you want the editable table to display (can be used to hide or show groups depending on conditions).
|
|
793
|
-
* @default { id: "all", label: this.groupsLabelDefaults, actionLabel: this.actionLabelDefaults }.
|
|
794
|
-
* @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}].
|
|
795
|
-
*/
|
|
796
|
-
"groups": DuetEditableTableGroupNames | string;
|
|
846
|
+
"actions": DuetEditableTableActions;
|
|
797
847
|
/**
|
|
798
|
-
*
|
|
848
|
+
* Duet-table: By default the table is responsive - it will be flattened at narrow viewport widths. This prop controls the breakpoint at which the table should be rendered as a _regular_ table. Set to "none" to disable the responsive functionality. Set to "none-scrollable" to disable responsive functionality _and_ allow horizontal scrolling - this is useful for comparison tables where it's important to maintain column and row layout.
|
|
799
849
|
*/
|
|
800
|
-
"
|
|
850
|
+
"breakpoint": DuetTableBreakpoint;
|
|
801
851
|
/**
|
|
802
|
-
*
|
|
852
|
+
* Define columns for a table An alternative to inline HTML table. required for Sortable tables
|
|
853
|
+
* @default undefined
|
|
803
854
|
*/
|
|
804
|
-
"
|
|
855
|
+
"columns": DuetEditableTableColumns;
|
|
805
856
|
/**
|
|
806
|
-
*
|
|
857
|
+
* Optional id that get passed to the table and used to setup ::parts
|
|
807
858
|
*/
|
|
808
|
-
"
|
|
859
|
+
"groupId": string;
|
|
809
860
|
/**
|
|
810
|
-
*
|
|
861
|
+
* Duet-table: margin of the component.
|
|
811
862
|
*/
|
|
812
|
-
"
|
|
863
|
+
"margin": DuetMargin;
|
|
813
864
|
/**
|
|
814
|
-
*
|
|
865
|
+
* Define rows for a table An alternative to inline HTML table. required for Sortable tables
|
|
866
|
+
* @default undefined
|
|
815
867
|
*/
|
|
816
|
-
"
|
|
817
|
-
}
|
|
818
|
-
interface DuetEditableTableButton {
|
|
868
|
+
"rows": DuetEditableTableRows;
|
|
819
869
|
/**
|
|
820
|
-
*
|
|
870
|
+
* Controls whether the table is sortable by headers
|
|
821
871
|
*/
|
|
822
|
-
"
|
|
872
|
+
"sortable": boolean;
|
|
823
873
|
/**
|
|
824
|
-
*
|
|
874
|
+
* Duet-table: Controls whether the table has a sticky header. Sticky headers are not compatible with breakpoint="none-scrollable".
|
|
825
875
|
*/
|
|
826
|
-
"
|
|
876
|
+
"sticky": boolean;
|
|
827
877
|
/**
|
|
828
|
-
*
|
|
878
|
+
* Duet-table: Adjust the distance from top of the viewport (in pixels) when the table header becomes sticky.
|
|
829
879
|
*/
|
|
830
|
-
"
|
|
880
|
+
"stickyDistance": DuetTableStickyDistance;
|
|
831
881
|
/**
|
|
832
|
-
* Theme of the
|
|
882
|
+
* Theme of the table.
|
|
833
883
|
*/
|
|
834
884
|
"theme": DuetTheme;
|
|
835
885
|
/**
|
|
836
|
-
*
|
|
837
|
-
*/
|
|
838
|
-
"uid": string;
|
|
839
|
-
}
|
|
840
|
-
interface DuetEditableTableItem {
|
|
841
|
-
/**
|
|
842
|
-
* Actions that can be performed on the element
|
|
886
|
+
* Duet-table: Style variation of the table.
|
|
843
887
|
*/
|
|
844
|
-
"
|
|
845
|
-
/**
|
|
846
|
-
* Key used to set vertical alignment of action buttons
|
|
847
|
-
*/
|
|
848
|
-
"alignment": string;
|
|
849
|
-
/**
|
|
850
|
-
* Object of data itemsused to render the entire row
|
|
851
|
-
*/
|
|
852
|
-
"data": DuetEditableTableItemData;
|
|
853
|
-
/**
|
|
854
|
-
* GroupId used to pierce the shadowdom - gets concatenated with "content & actions" and used as part="groupIDcontent/actions" to pierce the content/Action item
|
|
855
|
-
*/
|
|
856
|
-
"groupId": string;
|
|
857
|
-
/**
|
|
858
|
-
* Key used to identify item, when running actions
|
|
859
|
-
*/
|
|
860
|
-
"keyName": string;
|
|
861
|
-
/**
|
|
862
|
-
* Theme of the empty state component.
|
|
863
|
-
*/
|
|
864
|
-
"theme": DuetTheme;
|
|
888
|
+
"variation": DuetTableVariant;
|
|
865
889
|
}
|
|
866
890
|
interface DuetEmptyState {
|
|
867
891
|
/**
|
|
@@ -1856,17 +1880,17 @@ export namespace Components {
|
|
|
1856
1880
|
}
|
|
1857
1881
|
interface DuetPagination {
|
|
1858
1882
|
/**
|
|
1859
|
-
*
|
|
1883
|
+
* Default pagination labels
|
|
1860
1884
|
*/
|
|
1861
|
-
"
|
|
1885
|
+
"accessibleLabels": Record<string, string>;
|
|
1862
1886
|
/**
|
|
1863
1887
|
* Default pagination labels
|
|
1864
1888
|
*/
|
|
1865
|
-
"
|
|
1889
|
+
"accessibleLabelsDefaults": DuetLangObject;
|
|
1866
1890
|
/**
|
|
1867
|
-
*
|
|
1891
|
+
* Used to indicate which dom element with ID this element controls
|
|
1868
1892
|
*/
|
|
1869
|
-
"
|
|
1893
|
+
"ariaControls": string;
|
|
1870
1894
|
/**
|
|
1871
1895
|
* The current page
|
|
1872
1896
|
*/
|
|
@@ -1887,6 +1911,10 @@ export namespace Components {
|
|
|
1887
1911
|
* The total size of the paginating data
|
|
1888
1912
|
*/
|
|
1889
1913
|
"total": number;
|
|
1914
|
+
/**
|
|
1915
|
+
* Variation of the paginator (compact and default supported)
|
|
1916
|
+
*/
|
|
1917
|
+
"variation": DuetPaginationVariation;
|
|
1890
1918
|
/**
|
|
1891
1919
|
* Amount of visible page numbers to show
|
|
1892
1920
|
*/
|
|
@@ -2793,7 +2821,7 @@ export namespace Components {
|
|
|
2793
2821
|
/**
|
|
2794
2822
|
* Default actions added to the internally used duet-editable-table
|
|
2795
2823
|
*/
|
|
2796
|
-
"actions": DuetEditableTableActions
|
|
2824
|
+
"actions": DuetEditableTableActions;
|
|
2797
2825
|
/**
|
|
2798
2826
|
* Key used to set vertical alignment of action buttons
|
|
2799
2827
|
*/
|
|
@@ -2867,7 +2895,7 @@ export namespace Components {
|
|
|
2867
2895
|
* @required
|
|
2868
2896
|
* @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}]
|
|
2869
2897
|
*/
|
|
2870
|
-
"groups":
|
|
2898
|
+
"groups": DuetUploadTableGroupName[];
|
|
2871
2899
|
/**
|
|
2872
2900
|
* If set the upload component will not display an upload button, you will have to create one yourself and call the exposed method startUpload
|
|
2873
2901
|
*/
|
|
@@ -2998,6 +3026,12 @@ export namespace Components {
|
|
|
2998
3026
|
}
|
|
2999
3027
|
}
|
|
3000
3028
|
declare global {
|
|
3029
|
+
interface HTMLDuetActionButtonElement extends Components.DuetActionButton, HTMLStencilElement {
|
|
3030
|
+
}
|
|
3031
|
+
var HTMLDuetActionButtonElement: {
|
|
3032
|
+
prototype: HTMLDuetActionButtonElement;
|
|
3033
|
+
new (): HTMLDuetActionButtonElement;
|
|
3034
|
+
};
|
|
3001
3035
|
interface HTMLDuetAlertElement extends Components.DuetAlert, HTMLStencilElement {
|
|
3002
3036
|
}
|
|
3003
3037
|
var HTMLDuetAlertElement: {
|
|
@@ -3088,18 +3122,6 @@ declare global {
|
|
|
3088
3122
|
prototype: HTMLDuetEditableTableElement;
|
|
3089
3123
|
new (): HTMLDuetEditableTableElement;
|
|
3090
3124
|
};
|
|
3091
|
-
interface HTMLDuetEditableTableButtonElement extends Components.DuetEditableTableButton, HTMLStencilElement {
|
|
3092
|
-
}
|
|
3093
|
-
var HTMLDuetEditableTableButtonElement: {
|
|
3094
|
-
prototype: HTMLDuetEditableTableButtonElement;
|
|
3095
|
-
new (): HTMLDuetEditableTableButtonElement;
|
|
3096
|
-
};
|
|
3097
|
-
interface HTMLDuetEditableTableItemElement extends Components.DuetEditableTableItem, HTMLStencilElement {
|
|
3098
|
-
}
|
|
3099
|
-
var HTMLDuetEditableTableItemElement: {
|
|
3100
|
-
prototype: HTMLDuetEditableTableItemElement;
|
|
3101
|
-
new (): HTMLDuetEditableTableItemElement;
|
|
3102
|
-
};
|
|
3103
3125
|
interface HTMLDuetEmptyStateElement extends Components.DuetEmptyState, HTMLStencilElement {
|
|
3104
3126
|
}
|
|
3105
3127
|
var HTMLDuetEmptyStateElement: {
|
|
@@ -3359,6 +3381,7 @@ declare global {
|
|
|
3359
3381
|
new (): HTMLDuetVisuallyHiddenElement;
|
|
3360
3382
|
};
|
|
3361
3383
|
interface HTMLElementTagNameMap {
|
|
3384
|
+
"duet-action-button": HTMLDuetActionButtonElement;
|
|
3362
3385
|
"duet-alert": HTMLDuetAlertElement;
|
|
3363
3386
|
"duet-badge": HTMLDuetBadgeElement;
|
|
3364
3387
|
"duet-breadcrumb": HTMLDuetBreadcrumbElement;
|
|
@@ -3374,8 +3397,6 @@ declare global {
|
|
|
3374
3397
|
"duet-date-picker": HTMLDuetDatePickerElement;
|
|
3375
3398
|
"duet-divider": HTMLDuetDividerElement;
|
|
3376
3399
|
"duet-editable-table": HTMLDuetEditableTableElement;
|
|
3377
|
-
"duet-editable-table-button": HTMLDuetEditableTableButtonElement;
|
|
3378
|
-
"duet-editable-table-item": HTMLDuetEditableTableItemElement;
|
|
3379
3400
|
"duet-empty-state": HTMLDuetEmptyStateElement;
|
|
3380
3401
|
"duet-fieldset": HTMLDuetFieldsetElement;
|
|
3381
3402
|
"duet-footer": HTMLDuetFooterElement;
|
|
@@ -3422,6 +3443,72 @@ declare global {
|
|
|
3422
3443
|
}
|
|
3423
3444
|
}
|
|
3424
3445
|
declare namespace LocalJSX {
|
|
3446
|
+
interface DuetActionButton {
|
|
3447
|
+
/**
|
|
3448
|
+
* Name of id of action that was called being called
|
|
3449
|
+
*/
|
|
3450
|
+
"actionId"?: string;
|
|
3451
|
+
/**
|
|
3452
|
+
* Name of id of action that was called being called
|
|
3453
|
+
*/
|
|
3454
|
+
"actionMeta"?: Record<any, any> | string;
|
|
3455
|
+
/**
|
|
3456
|
+
* Name of action being called
|
|
3457
|
+
*/
|
|
3458
|
+
"actionName"?: string;
|
|
3459
|
+
/**
|
|
3460
|
+
* Used to indicate which dom element with ID this element controls
|
|
3461
|
+
*/
|
|
3462
|
+
"ariaControls"?: string;
|
|
3463
|
+
/**
|
|
3464
|
+
* Described By id
|
|
3465
|
+
*/
|
|
3466
|
+
"ariaDescribedBy"?: string;
|
|
3467
|
+
/**
|
|
3468
|
+
* Aria description the button
|
|
3469
|
+
*/
|
|
3470
|
+
"ariaDescription"?: string;
|
|
3471
|
+
/**
|
|
3472
|
+
* Default pagination labels
|
|
3473
|
+
*/
|
|
3474
|
+
"ariaLabels"?: Record<string, string>;
|
|
3475
|
+
/**
|
|
3476
|
+
* Default pagination labels
|
|
3477
|
+
*/
|
|
3478
|
+
"ariaLabelsDefaults"?: DuetLangObject;
|
|
3479
|
+
/**
|
|
3480
|
+
* Custom color to be used for a background, as a design token entered in camelCase or kebab-case. Using this option the icon will always be resized to $size-icon-medium on mobile viewports. Example: "color-primary".
|
|
3481
|
+
*/
|
|
3482
|
+
"background"?: DuetColor;
|
|
3483
|
+
/**
|
|
3484
|
+
* Custom color to be used for the icon, as a design token entered in camelCase or kebab-case. Example: "color-primary". This property can also be set to "currentColor" which forces the icon to use the CSS text color of parent element instead. Useful when you want to control the color in stylesheet instead.
|
|
3485
|
+
*/
|
|
3486
|
+
"color"?: DuetColor;
|
|
3487
|
+
/**
|
|
3488
|
+
* Disables the button
|
|
3489
|
+
*/
|
|
3490
|
+
"disabled"?: boolean;
|
|
3491
|
+
/**
|
|
3492
|
+
* Color of the icon to display
|
|
3493
|
+
*/
|
|
3494
|
+
"iconColor"?: string;
|
|
3495
|
+
/**
|
|
3496
|
+
* Name of the icon to display
|
|
3497
|
+
*/
|
|
3498
|
+
"iconName"?: string;
|
|
3499
|
+
/**
|
|
3500
|
+
* Size of the icon
|
|
3501
|
+
*/
|
|
3502
|
+
"iconSize"?: DuetActionButtonIconSize;
|
|
3503
|
+
/**
|
|
3504
|
+
* Emitted a page selection has been made
|
|
3505
|
+
*/
|
|
3506
|
+
"onDuetActionEvent"?: (event: CustomEvent<DuetActionButtonEvent>) => void;
|
|
3507
|
+
/**
|
|
3508
|
+
* Theme of the pagination.
|
|
3509
|
+
*/
|
|
3510
|
+
"theme"?: DuetTheme;
|
|
3511
|
+
}
|
|
3425
3512
|
interface DuetAlert {
|
|
3426
3513
|
/**
|
|
3427
3514
|
* Adds accessible label for the dismissible alert close button.
|
|
@@ -3543,6 +3630,10 @@ declare namespace LocalJSX {
|
|
|
3543
3630
|
* Indicates the id of a component owned by the button.
|
|
3544
3631
|
*/
|
|
3545
3632
|
"accessibleOwns"?: string;
|
|
3633
|
+
/**
|
|
3634
|
+
* Use this property to add an aria-haspopup attribute to a button, if you are using it as a menu button.
|
|
3635
|
+
*/
|
|
3636
|
+
"accessiblePopup"?: string;
|
|
3546
3637
|
/**
|
|
3547
3638
|
* Tells screen reader the element is pressed.
|
|
3548
3639
|
*/
|
|
@@ -4166,77 +4257,60 @@ declare namespace LocalJSX {
|
|
|
4166
4257
|
*/
|
|
4167
4258
|
"accessibleRole"?: string;
|
|
4168
4259
|
/**
|
|
4169
|
-
*
|
|
4170
|
-
*/
|
|
4171
|
-
"actionLabelDefaults"?: DuetLangObject;
|
|
4172
|
-
/**
|
|
4173
|
-
* Array of actions that are mapped via the map variable to the various groups defined in group.
|
|
4260
|
+
* Define actions for all items in a table An alternative to inline HTML table. required for Sortable tables
|
|
4174
4261
|
* @default undefined
|
|
4175
|
-
* @example [{ variation: "default", icon: "action-edit-2", id: "edit", map: ["success"], label: { fi: " Label", en: " Label", sv: " Label", } }]
|
|
4176
|
-
*/
|
|
4177
|
-
"actions"?: DuetEditableTableActions | string;
|
|
4178
|
-
/**
|
|
4179
|
-
* Key used to set vertical alignment of action buttons
|
|
4180
4262
|
*/
|
|
4181
|
-
"
|
|
4182
|
-
/**
|
|
4183
|
-
* Array of group names that you want the editable table to display (can be used to hide or show groups depending on conditions).
|
|
4184
|
-
* @default { id: "all", label: this.groupsLabelDefaults, actionLabel: this.actionLabelDefaults }.
|
|
4185
|
-
* @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}].
|
|
4186
|
-
*/
|
|
4187
|
-
"groups"?: DuetEditableTableGroupNames | string;
|
|
4263
|
+
"actions"?: DuetEditableTableActions;
|
|
4188
4264
|
/**
|
|
4189
|
-
*
|
|
4265
|
+
* Duet-table: By default the table is responsive - it will be flattened at narrow viewport widths. This prop controls the breakpoint at which the table should be rendered as a _regular_ table. Set to "none" to disable the responsive functionality. Set to "none-scrollable" to disable responsive functionality _and_ allow horizontal scrolling - this is useful for comparison tables where it's important to maintain column and row layout.
|
|
4190
4266
|
*/
|
|
4191
|
-
"
|
|
4267
|
+
"breakpoint"?: DuetTableBreakpoint;
|
|
4192
4268
|
/**
|
|
4193
|
-
*
|
|
4269
|
+
* Define columns for a table An alternative to inline HTML table. required for Sortable tables
|
|
4270
|
+
* @default undefined
|
|
4194
4271
|
*/
|
|
4195
|
-
"
|
|
4272
|
+
"columns"?: DuetEditableTableColumns;
|
|
4196
4273
|
/**
|
|
4197
|
-
*
|
|
4274
|
+
* Optional id that get passed to the table and used to setup ::parts
|
|
4198
4275
|
*/
|
|
4199
|
-
"
|
|
4276
|
+
"groupId"?: string;
|
|
4200
4277
|
/**
|
|
4201
|
-
*
|
|
4278
|
+
* Duet-table: margin of the component.
|
|
4202
4279
|
*/
|
|
4203
|
-
"
|
|
4204
|
-
}
|
|
4205
|
-
interface DuetEditableTableButton {
|
|
4280
|
+
"margin"?: DuetMargin;
|
|
4206
4281
|
/**
|
|
4207
|
-
*
|
|
4282
|
+
* Event emitted when table is sortable and a header item is clicked/enter is pressed
|
|
4208
4283
|
*/
|
|
4209
|
-
"
|
|
4284
|
+
"onDuetMenuClick"?: (event: CustomEvent<DuetTableMenuEvent>) => void;
|
|
4210
4285
|
/**
|
|
4211
|
-
*
|
|
4286
|
+
* Event emitted when table is sortable and a header item is clicked/enter is pressed
|
|
4212
4287
|
*/
|
|
4213
|
-
"
|
|
4214
|
-
}
|
|
4215
|
-
interface DuetEditableTableItem {
|
|
4288
|
+
"onDuetTableToggle"?: (event: CustomEvent<DuetTableToggleEvent>) => void;
|
|
4216
4289
|
/**
|
|
4217
|
-
*
|
|
4290
|
+
* Define rows for a table An alternative to inline HTML table. required for Sortable tables
|
|
4291
|
+
* @default undefined
|
|
4218
4292
|
*/
|
|
4219
|
-
"
|
|
4293
|
+
"rows"?: DuetEditableTableRows;
|
|
4220
4294
|
/**
|
|
4221
|
-
*
|
|
4295
|
+
* Controls whether the table is sortable by headers
|
|
4222
4296
|
*/
|
|
4223
|
-
"
|
|
4297
|
+
"sortable"?: boolean;
|
|
4224
4298
|
/**
|
|
4225
|
-
*
|
|
4299
|
+
* Duet-table: Controls whether the table has a sticky header. Sticky headers are not compatible with breakpoint="none-scrollable".
|
|
4226
4300
|
*/
|
|
4227
|
-
"
|
|
4301
|
+
"sticky"?: boolean;
|
|
4228
4302
|
/**
|
|
4229
|
-
*
|
|
4303
|
+
* Duet-table: Adjust the distance from top of the viewport (in pixels) when the table header becomes sticky.
|
|
4230
4304
|
*/
|
|
4231
|
-
"
|
|
4305
|
+
"stickyDistance"?: DuetTableStickyDistance;
|
|
4232
4306
|
/**
|
|
4233
|
-
*
|
|
4307
|
+
* Theme of the table.
|
|
4234
4308
|
*/
|
|
4235
|
-
"
|
|
4309
|
+
"theme"?: DuetTheme;
|
|
4236
4310
|
/**
|
|
4237
|
-
*
|
|
4311
|
+
* Duet-table: Style variation of the table.
|
|
4238
4312
|
*/
|
|
4239
|
-
"
|
|
4313
|
+
"variation"?: DuetTableVariant;
|
|
4240
4314
|
}
|
|
4241
4315
|
interface DuetEmptyState {
|
|
4242
4316
|
/**
|
|
@@ -5294,17 +5368,17 @@ declare namespace LocalJSX {
|
|
|
5294
5368
|
}
|
|
5295
5369
|
interface DuetPagination {
|
|
5296
5370
|
/**
|
|
5297
|
-
*
|
|
5371
|
+
* Default pagination labels
|
|
5298
5372
|
*/
|
|
5299
|
-
"
|
|
5373
|
+
"accessibleLabels"?: Record<string, string>;
|
|
5300
5374
|
/**
|
|
5301
5375
|
* Default pagination labels
|
|
5302
5376
|
*/
|
|
5303
|
-
"
|
|
5377
|
+
"accessibleLabelsDefaults"?: DuetLangObject;
|
|
5304
5378
|
/**
|
|
5305
|
-
*
|
|
5379
|
+
* Used to indicate which dom element with ID this element controls
|
|
5306
5380
|
*/
|
|
5307
|
-
"
|
|
5381
|
+
"ariaControls"?: string;
|
|
5308
5382
|
/**
|
|
5309
5383
|
* The current page
|
|
5310
5384
|
*/
|
|
@@ -5329,6 +5403,10 @@ declare namespace LocalJSX {
|
|
|
5329
5403
|
* The total size of the paginating data
|
|
5330
5404
|
*/
|
|
5331
5405
|
"total"?: number;
|
|
5406
|
+
/**
|
|
5407
|
+
* Variation of the paginator (compact and default supported)
|
|
5408
|
+
*/
|
|
5409
|
+
"variation"?: DuetPaginationVariation;
|
|
5332
5410
|
/**
|
|
5333
5411
|
* Amount of visible page numbers to show
|
|
5334
5412
|
*/
|
|
@@ -6266,7 +6344,7 @@ declare namespace LocalJSX {
|
|
|
6266
6344
|
/**
|
|
6267
6345
|
* Default actions added to the internally used duet-editable-table
|
|
6268
6346
|
*/
|
|
6269
|
-
"actions"?: DuetEditableTableActions
|
|
6347
|
+
"actions"?: DuetEditableTableActions;
|
|
6270
6348
|
/**
|
|
6271
6349
|
* Key used to set vertical alignment of action buttons
|
|
6272
6350
|
*/
|
|
@@ -6336,7 +6414,7 @@ declare namespace LocalJSX {
|
|
|
6336
6414
|
* @required
|
|
6337
6415
|
* @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}]
|
|
6338
6416
|
*/
|
|
6339
|
-
"groups"?:
|
|
6417
|
+
"groups"?: DuetUploadTableGroupName[];
|
|
6340
6418
|
/**
|
|
6341
6419
|
* If set the upload component will not display an upload button, you will have to create one yourself and call the exposed method startUpload
|
|
6342
6420
|
*/
|
|
@@ -6486,6 +6564,7 @@ declare namespace LocalJSX {
|
|
|
6486
6564
|
interface DuetVisuallyHidden {
|
|
6487
6565
|
}
|
|
6488
6566
|
interface IntrinsicElements {
|
|
6567
|
+
"duet-action-button": DuetActionButton;
|
|
6489
6568
|
"duet-alert": DuetAlert;
|
|
6490
6569
|
"duet-badge": DuetBadge;
|
|
6491
6570
|
"duet-breadcrumb": DuetBreadcrumb;
|
|
@@ -6501,8 +6580,6 @@ declare namespace LocalJSX {
|
|
|
6501
6580
|
"duet-date-picker": DuetDatePicker;
|
|
6502
6581
|
"duet-divider": DuetDivider;
|
|
6503
6582
|
"duet-editable-table": DuetEditableTable;
|
|
6504
|
-
"duet-editable-table-button": DuetEditableTableButton;
|
|
6505
|
-
"duet-editable-table-item": DuetEditableTableItem;
|
|
6506
6583
|
"duet-empty-state": DuetEmptyState;
|
|
6507
6584
|
"duet-fieldset": DuetFieldset;
|
|
6508
6585
|
"duet-footer": DuetFooter;
|
|
@@ -6552,6 +6629,7 @@ export { LocalJSX as JSX };
|
|
|
6552
6629
|
declare module "@stencil/core" {
|
|
6553
6630
|
export namespace JSX {
|
|
6554
6631
|
interface IntrinsicElements {
|
|
6632
|
+
"duet-action-button": LocalJSX.DuetActionButton & JSXBase.HTMLAttributes<HTMLDuetActionButtonElement>;
|
|
6555
6633
|
"duet-alert": LocalJSX.DuetAlert & JSXBase.HTMLAttributes<HTMLDuetAlertElement>;
|
|
6556
6634
|
"duet-badge": LocalJSX.DuetBadge & JSXBase.HTMLAttributes<HTMLDuetBadgeElement>;
|
|
6557
6635
|
"duet-breadcrumb": LocalJSX.DuetBreadcrumb & JSXBase.HTMLAttributes<HTMLDuetBreadcrumbElement>;
|
|
@@ -6567,8 +6645,6 @@ declare module "@stencil/core" {
|
|
|
6567
6645
|
"duet-date-picker": LocalJSX.DuetDatePicker & JSXBase.HTMLAttributes<HTMLDuetDatePickerElement>;
|
|
6568
6646
|
"duet-divider": LocalJSX.DuetDivider & JSXBase.HTMLAttributes<HTMLDuetDividerElement>;
|
|
6569
6647
|
"duet-editable-table": LocalJSX.DuetEditableTable & JSXBase.HTMLAttributes<HTMLDuetEditableTableElement>;
|
|
6570
|
-
"duet-editable-table-button": LocalJSX.DuetEditableTableButton & JSXBase.HTMLAttributes<HTMLDuetEditableTableButtonElement>;
|
|
6571
|
-
"duet-editable-table-item": LocalJSX.DuetEditableTableItem & JSXBase.HTMLAttributes<HTMLDuetEditableTableItemElement>;
|
|
6572
6648
|
"duet-empty-state": LocalJSX.DuetEmptyState & JSXBase.HTMLAttributes<HTMLDuetEmptyStateElement>;
|
|
6573
6649
|
"duet-fieldset": LocalJSX.DuetFieldset & JSXBase.HTMLAttributes<HTMLDuetFieldsetElement>;
|
|
6574
6650
|
"duet-footer": LocalJSX.DuetFooter & JSXBase.HTMLAttributes<HTMLDuetFooterElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duetds/components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "This package includes Duet Design System Web Components and related utilities.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "duetdesignsystem@lahitapiola.fi"
|
|
@@ -53,16 +53,15 @@
|
|
|
53
53
|
"koa-colorful-logger": "0.0.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@duetds/fonts": "1.4.
|
|
57
|
-
"@duetds/icons": "2.2.
|
|
56
|
+
"@duetds/fonts": "1.4.18",
|
|
57
|
+
"@duetds/icons": "2.2.18",
|
|
58
58
|
"@duetds/stencil-angular-output-target": "0.0.2",
|
|
59
59
|
"@duetds/stencil-react-output-target": "0.0.10",
|
|
60
|
-
"@duetds/tokens": "2.
|
|
60
|
+
"@duetds/tokens": "2.4.16",
|
|
61
61
|
"@koa/cors": "3.1.0",
|
|
62
62
|
"@rollup/plugin-replace": "3.0.1",
|
|
63
63
|
"@stencil/core": "2.12.1",
|
|
64
64
|
"@stencil/sass": "1.5.2",
|
|
65
|
-
"@stencil/utils": "0.0.5",
|
|
66
65
|
"@types/jest": "26.0.24",
|
|
67
66
|
"@types/jest-image-snapshot": "4.3.1",
|
|
68
67
|
"chalk": "4.1.2",
|
|
@@ -96,5 +95,5 @@
|
|
|
96
95
|
"collection": "lib/collection/collection-manifest.json",
|
|
97
96
|
"es2015": "lib/esm/index.js",
|
|
98
97
|
"es2017": "lib/esm/index.js",
|
|
99
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "a41bea547aadc3e00adbcf5c02593a57249da9bb"
|
|
100
99
|
}
|