@duetds/components 4.36.0 → 5.0.1
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 +1143 -983
- 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 +4 -4
- package/lib/cjs/duet-collapsible.cjs.entry.js +3 -3
- 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 +7 -7
- 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 +2 -2
- 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-675b1aa3.js → focus-utils-1051dbe3.js} +1 -1
- package/lib/cjs/{index-58eb8f67.js → index-db0781a3.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-05bd23b4.js → token-utils-ac8432d1.js} +10 -7
- 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-choice/duet-choice.css +20 -15
- package/lib/collection/components/duet-choice/duet-choice.js +10 -8
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -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-header/duet-header.css +5 -1
- package/lib/collection/components/duet-header/duet-header.js +4 -3
- 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-tab-group/duet-tab-group.js +5 -1
- 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/collection/utils/token-utils.js +33 -6
- package/lib/custom-elements-bundle/index.d.ts +6 -12
- package/lib/custom-elements-bundle/index.js +1159 -1015
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/p-038f5a76.js +4 -0
- package/lib/duet/{p-aa5abb52.system.entry.js → p-077e9821.system.entry.js} +1 -1
- package/lib/duet/{p-9358e24b.entry.js → p-08f1713b.entry.js} +1 -1
- package/lib/duet/{p-6aa8d848.entry.js → p-0cf96c98.entry.js} +1 -1
- package/lib/duet/p-0ff56acb.system.entry.js +4 -0
- package/lib/duet/p-13302cc8.entry.js +4 -0
- package/lib/duet/{p-a0f979a4.entry.js → p-1630296b.entry.js} +1 -1
- package/lib/duet/{p-818cd527.entry.js → p-1acbc962.entry.js} +1 -1
- package/lib/duet/{p-1afe9641.system.entry.js → p-20dd2c3c.system.entry.js} +1 -1
- package/lib/duet/{p-85d9b1b0.system.js → p-21ab96c0.system.js} +1 -1
- package/lib/duet/{p-e67fc1ed.system.entry.js → p-222c74a9.system.entry.js} +1 -1
- package/lib/duet/{p-5e410fa9.system.entry.js → p-242ba82c.system.entry.js} +1 -1
- package/lib/duet/{p-40360b4a.system.entry.js → p-25fdd6d2.system.entry.js} +1 -1
- package/lib/duet/{p-ddb6344c.system.js → p-268c0abb.system.js} +0 -0
- package/lib/duet/{p-a2db8ff2.system.entry.js → p-26c5cc5a.system.entry.js} +1 -1
- package/lib/duet/{p-4b688aea.entry.js → p-2772bbb1.entry.js} +1 -1
- package/lib/duet/{p-bf25e52a.entry.js → p-28e4253c.entry.js} +1 -1
- package/lib/duet/{p-6df7b78c.entry.js → p-3018d431.entry.js} +1 -1
- package/lib/duet/{p-ad8a49a3.system.entry.js → p-347ffc22.system.entry.js} +1 -1
- package/lib/duet/{p-e9ca7e01.entry.js → p-3651b695.entry.js} +1 -1
- package/lib/duet/{p-4f32cc18.system.entry.js → p-3946058c.system.entry.js} +1 -1
- package/lib/duet/p-3d5a497d.system.entry.js +4 -0
- package/lib/duet/{p-8c0fd5de.js → p-3eed1432.js} +1 -1
- package/lib/duet/{p-44a3794d.system.entry.js → p-41246296.system.entry.js} +1 -1
- package/lib/duet/{p-314b64b4.system.entry.js → p-43204695.system.entry.js} +1 -1
- package/lib/duet/{p-daede773.entry.js → p-440a9c95.entry.js} +1 -1
- package/lib/duet/{p-8b8c2ef4.entry.js → p-44bb7ac8.entry.js} +1 -1
- package/lib/duet/{p-b42066e0.entry.js → p-489d1777.entry.js} +1 -1
- package/lib/duet/{p-2a9345a7.entry.js → p-48cdb48a.entry.js} +1 -1
- package/lib/duet/{p-e584ce1d.entry.js → p-4b72d87e.entry.js} +1 -1
- package/lib/duet/{p-99a112e4.entry.js → p-4be7b036.entry.js} +1 -1
- package/lib/duet/{p-ac44ab7a.entry.js → p-4d300ede.entry.js} +1 -1
- package/lib/duet/{p-8a768d0b.entry.js → p-569ee410.entry.js} +1 -1
- package/lib/duet/{p-84940fc4.system.entry.js → p-56f472b3.system.entry.js} +1 -1
- package/lib/duet/p-5746d88c.js +4 -0
- package/lib/duet/{p-90799d0a.entry.js → p-5a69aed5.entry.js} +1 -1
- package/lib/duet/{p-8db453bf.system.js → p-5cc4b13d.system.js} +1 -1
- package/lib/duet/{p-8706664b.system.entry.js → p-63b70e9d.system.entry.js} +1 -1
- package/lib/duet/p-63c8a2cd.system.entry.js +4 -0
- package/lib/duet/p-6abdc336.entry.js +4 -0
- package/lib/duet/p-6ba556ad.entry.js +4 -0
- package/lib/duet/{p-f993e4c3.system.entry.js → p-6c27e55c.system.entry.js} +1 -1
- package/lib/duet/{p-7730d2b8.entry.js → p-6d3485e0.entry.js} +1 -1
- package/lib/duet/{p-a75776f5.entry.js → p-6f2aec60.entry.js} +1 -1
- package/lib/duet/p-75640b15.entry.js +4 -0
- package/lib/duet/{p-21cd146b.system.entry.js → p-7769f3af.system.entry.js} +1 -1
- package/lib/duet/p-77acbfe4.system.js +4 -0
- package/lib/duet/{p-ad06c91d.system.entry.js → p-7a8cea36.system.entry.js} +1 -1
- package/lib/duet/{p-fa99eaa4.system.js → p-812b0905.system.js} +0 -0
- package/lib/duet/{p-ae82d8e7.entry.js → p-815e5588.entry.js} +1 -1
- package/lib/duet/p-823501e1.system.entry.js +4 -0
- package/lib/duet/p-8e83c0ea.system.entry.js +4 -0
- package/lib/duet/p-92639d0b.system.js +4 -0
- package/lib/duet/{p-22e6615d.system.entry.js → p-93302e3a.system.entry.js} +1 -1
- package/lib/duet/{p-6e6e1b77.system.entry.js → p-94bc746c.system.entry.js} +1 -1
- package/lib/duet/{p-09920da9.entry.js → p-9716f92a.entry.js} +1 -1
- package/lib/duet/{p-9ead1c59.entry.js → p-9a535dd9.entry.js} +1 -1
- package/lib/duet/{p-78779ba1.system.entry.js → p-9cf9c233.system.entry.js} +1 -1
- package/lib/duet/{p-c0a24b5e.system.entry.js → p-a853c03b.system.entry.js} +2 -2
- package/lib/duet/{p-ea124391.system.entry.js → p-ab651bab.system.entry.js} +1 -1
- package/lib/duet/{p-fb55e381.system.entry.js → p-b1d3ee06.system.entry.js} +1 -1
- package/lib/duet/p-b4a3ee75.entry.js +4 -0
- package/lib/duet/{p-b5aaf161.entry.js → p-b4eb216b.entry.js} +1 -1
- package/lib/duet/p-baf1b7ec.system.entry.js +4 -0
- package/lib/duet/{p-7f1cbb7d.entry.js → p-bfd81bd7.entry.js} +1 -1
- package/lib/duet/{p-80aa512a.system.entry.js → p-c0f57d75.system.entry.js} +1 -1
- package/lib/duet/{p-dda7f098.entry.js → p-c3342f8e.entry.js} +1 -1
- package/lib/duet/{p-aebf6700.entry.js → p-ca7fd033.entry.js} +1 -1
- package/lib/duet/{p-0769de2b.system.entry.js → p-cac113fe.system.entry.js} +1 -1
- package/lib/duet/p-cb701a9c.entry.js +4 -0
- package/lib/duet/{p-0349b691.system.entry.js → p-d214b9b2.system.entry.js} +1 -1
- package/lib/duet/{p-b11f2fcd.system.entry.js → p-d2b946cd.system.entry.js} +1 -1
- package/lib/duet/{p-5f4362b4.entry.js → p-d3169bff.entry.js} +1 -1
- package/lib/duet/{p-b6b58d31.entry.js → p-d57ac853.entry.js} +1 -1
- package/lib/duet/{p-59480299.system.entry.js → p-d7263055.system.entry.js} +1 -1
- package/lib/duet/{p-c167a5aa.system.entry.js → p-d7ad9b74.system.entry.js} +1 -1
- package/lib/duet/{p-8143f3de.js → p-d7bc0102.js} +0 -0
- package/lib/duet/{p-d444e178.system.entry.js → p-d81e9ca0.system.entry.js} +1 -1
- package/lib/duet/{p-878c1c83.system.entry.js → p-d8f83ac5.system.entry.js} +1 -1
- package/lib/duet/{p-84a9fbf4.system.entry.js → p-da76095f.system.entry.js} +1 -1
- package/lib/duet/p-dbb4a588.js +4 -0
- package/lib/duet/{p-a8f707d4.system.entry.js → p-e1920232.system.entry.js} +2 -2
- package/lib/duet/{p-1c1c9705.entry.js → p-e4c6b105.entry.js} +1 -1
- package/lib/duet/{p-663aec3a.entry.js → p-e5531f4f.entry.js} +1 -1
- package/lib/duet/p-ea293f60.entry.js +4 -0
- package/lib/duet/{p-95f71b43.system.entry.js → p-eb39b494.system.entry.js} +1 -1
- package/lib/duet/{p-ad07f399.js → p-ed75c8b3.js} +0 -0
- package/lib/duet/{p-fd561872.system.entry.js → p-f20b487a.system.entry.js} +1 -1
- package/lib/duet/{p-1aeb418c.entry.js → p-f7d7ec47.entry.js} +1 -1
- package/lib/duet/p-fa02e479.entry.js +4 -0
- package/lib/duet/p-faf60d2a.entry.js +4 -0
- package/lib/duet/{p-28a22555.system.entry.js → p-fb8ed18e.system.entry.js} +1 -1
- package/lib/duet/p-fea2cbc5.system.js +4 -0
- package/lib/duet/{p-c61ace58.system.entry.js → p-ff3d551a.system.entry.js} +1 -1
- package/lib/duet/{p-bd602c98.entry.js → p-ff7ab8cb.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 +4 -4
- package/lib/esm/duet-collapsible.entry.js +3 -3
- 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 +7 -7
- 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 +2 -2
- 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-bd3c1702.js → focus-utils-f49312fd.js} +1 -1
- package/lib/esm/{index-49b2d31a.js → index-9526901a.js} +1 -1
- package/lib/esm/js-utils-52e0944c.js +36 -0
- package/lib/esm/loader.js +2 -2
- package/lib/esm/{token-utils-75f78ca4.js → token-utils-e9a0cb88.js} +10 -7
- 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-bd3c1702.js → focus-utils-f49312fd.js} +1 -1
- package/lib/esm-es5/{index-49b2d31a.js → index-9526901a.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-e9a0cb88.js +4 -0
- 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 +5266 -0
- 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-collapsible/duet-collapsible.d.ts +1 -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-header/duet-header.d.ts +1 -0
- package/lib/types/components/duet-pagination/duet-pagination.d.ts +7 -2
- package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +4 -0
- 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/lib/types/utils/token-utils.d.ts +2 -0
- package/package.json +4 -5
- 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-1b56e483.system.entry.js +0 -4
- package/lib/duet/p-298a9ffc.system.js +0 -4
- package/lib/duet/p-363abf26.system.entry.js +0 -4
- package/lib/duet/p-3c13a041.entry.js +0 -4
- package/lib/duet/p-50b4fb2c.js +0 -4
- package/lib/duet/p-6da8743f.system.entry.js +0 -4
- package/lib/duet/p-72ce134a.entry.js +0 -4
- package/lib/duet/p-78aa974b.system.entry.js +0 -4
- package/lib/duet/p-7e2c06d0.js +0 -4
- package/lib/duet/p-81867417.system.js +0 -4
- package/lib/duet/p-8f56fd3f.entry.js +0 -4
- package/lib/duet/p-8fa952df.entry.js +0 -4
- package/lib/duet/p-9782946f.entry.js +0 -4
- package/lib/duet/p-995f20fc.entry.js +0 -4
- package/lib/duet/p-a154a0c0.entry.js +0 -4
- package/lib/duet/p-a16a58c1.system.js +0 -4
- package/lib/duet/p-abcbdef5.entry.js +0 -4
- package/lib/duet/p-b25d3769.js +0 -4
- package/lib/duet/p-c5db93a7.system.entry.js +0 -4
- package/lib/duet/p-d32b240d.system.entry.js +0 -4
- package/lib/duet/p-fc02d8e9.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/js-utils-b69f17df.js +0 -4
- package/lib/esm-es5/token-utils-75f78ca4.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
|
@@ -643,6 +643,11 @@ button {
|
|
|
643
643
|
.duet-header-contact.active:hover {
|
|
644
644
|
color: inherit;
|
|
645
645
|
}
|
|
646
|
+
.duet-theme-turva .duet-header-language.active, .duet-theme-turva .duet-header-language.active:hover,
|
|
647
|
+
.duet-theme-turva .duet-header-contact.active,
|
|
648
|
+
.duet-theme-turva .duet-header-contact.active:hover {
|
|
649
|
+
color: inherit;
|
|
650
|
+
}
|
|
646
651
|
.duet-header-dropdown .duet-header-language.duet-header-dropdown-toggle.active::after, .duet-header-dropdown .duet-header-language.duet-header-dropdown-toggle.active:hover::after,
|
|
647
652
|
.duet-header-dropdown .duet-header-contact.duet-header-dropdown-toggle.active::after,
|
|
648
653
|
.duet-header-dropdown .duet-header-contact.duet-header-dropdown-toggle.active:hover::after {
|
|
@@ -786,7 +791,6 @@ button {
|
|
|
786
791
|
background: #c60c30;
|
|
787
792
|
}
|
|
788
793
|
.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-toggle.active, .duet-theme-turva .duet-header-dropdown .duet-header-dropdown-toggle.active:hover {
|
|
789
|
-
color: #444445;
|
|
790
794
|
border-color: #f5f5f7;
|
|
791
795
|
}
|
|
792
796
|
@media (min-width: 62em) {
|
|
@@ -26,6 +26,7 @@ const createEvent = (ev, data) => ({
|
|
|
26
26
|
/**
|
|
27
27
|
* @slot utility - A slot for utilities, such as a notification drawer or shopping basket.
|
|
28
28
|
* @slot logo-utility - A slot to place elements alongside the logo. This takes precedence over the **region** prop. Note: not available in desktop multilevel header.
|
|
29
|
+
* @part header - piercing selector for styling the header element.
|
|
29
30
|
*/
|
|
30
31
|
export class DuetHeader {
|
|
31
32
|
constructor() {
|
|
@@ -490,7 +491,7 @@ export class DuetHeader {
|
|
|
490
491
|
"duet-theme-turva": this.theme === "turva",
|
|
491
492
|
"duet-header-back": true,
|
|
492
493
|
"duet-header-inactive": true,
|
|
493
|
-
} },
|
|
494
|
+
}, part: "header" },
|
|
494
495
|
h("div", { class: "duet-header-top" },
|
|
495
496
|
skipToLabel,
|
|
496
497
|
h("duet-button", { url: this.processedBack.href, id: this.processedBack.id, theme: this.theme, variation: "plain", color: this.theme === "turva" ? "secondary-turva" : "secondary", icon: "navigation-arrow-left", iconSize: "large", onClick: this.handleBackClick }, this.processedBack.label),
|
|
@@ -514,7 +515,7 @@ export class DuetHeader {
|
|
|
514
515
|
"duet-header": true,
|
|
515
516
|
"duet-theme-turva": this.theme === "turva",
|
|
516
517
|
"duet-header-inactive": !this.processedItems,
|
|
517
|
-
} },
|
|
518
|
+
}, part: "header" },
|
|
518
519
|
h("div", { class: "duet-header-top" },
|
|
519
520
|
skipToLabel,
|
|
520
521
|
h("div", { class: "logo-and-segment" },
|
|
@@ -561,7 +562,7 @@ export class DuetHeader {
|
|
|
561
562
|
"duet-header": true,
|
|
562
563
|
"duet-theme-turva": this.theme === "turva",
|
|
563
564
|
"duet-header-inactive": !this.processedItems,
|
|
564
|
-
} },
|
|
565
|
+
}, part: "header" },
|
|
565
566
|
h("div", { class: "duet-header-top" },
|
|
566
567
|
skipToLabel,
|
|
567
568
|
logo,
|
|
@@ -28,6 +28,9 @@
|
|
|
28
28
|
position: relative;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
.duet-pagination ::part(button) {
|
|
32
|
+
border: 0;
|
|
33
|
+
}
|
|
31
34
|
.duet-pagination, .duet-pagination li {
|
|
32
35
|
display: flex;
|
|
33
36
|
flex-wrap: wrap;
|
|
@@ -55,66 +58,4 @@
|
|
|
55
58
|
}
|
|
56
59
|
.duet-pagination.duet-pagination-is-dimmed {
|
|
57
60
|
opacity: 0.5;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.duet-pagination-page-button {
|
|
61
|
-
white-space: nowrap;
|
|
62
|
-
}
|
|
63
|
-
.duet-pagination-page-button button {
|
|
64
|
-
display: inline-flex;
|
|
65
|
-
align-items: center;
|
|
66
|
-
justify-content: center;
|
|
67
|
-
width: 32px;
|
|
68
|
-
height: 32px;
|
|
69
|
-
min-height: auto !important;
|
|
70
|
-
padding: 0 !important;
|
|
71
|
-
margin: 0 0 0 8px !important;
|
|
72
|
-
color: #00294d;
|
|
73
|
-
cursor: pointer;
|
|
74
|
-
background: #f5f8fa;
|
|
75
|
-
border-radius: 50%;
|
|
76
|
-
transition: background-color 300ms ease !important;
|
|
77
|
-
}
|
|
78
|
-
.duet-theme-turva .duet-pagination-page-button button {
|
|
79
|
-
color: #171c3a;
|
|
80
|
-
background: #f5f5f7;
|
|
81
|
-
}
|
|
82
|
-
.duet-pagination-page-button button duet-icon {
|
|
83
|
-
display: block;
|
|
84
|
-
}
|
|
85
|
-
@media (max-width: 35.9375em) {
|
|
86
|
-
.duet-pagination-page-button button {
|
|
87
|
-
width: 40px;
|
|
88
|
-
height: 40px;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
.duet-pagination-page-button button:not(:disabled):hover {
|
|
92
|
-
background: #e9ecee !important;
|
|
93
|
-
}
|
|
94
|
-
.duet-theme-turva .duet-pagination-page-button button:not(:disabled):hover {
|
|
95
|
-
background: #e9e9eb !important;
|
|
96
|
-
}
|
|
97
|
-
.duet-pagination-page-button button:focus {
|
|
98
|
-
outline: 0;
|
|
99
|
-
box-shadow: 0 0 0 2px #0077b3;
|
|
100
|
-
}
|
|
101
|
-
.duet-theme-turva .duet-pagination-page-button button:focus {
|
|
102
|
-
box-shadow: 0 0 0 2px #171c3a;
|
|
103
|
-
}
|
|
104
|
-
.duet-pagination-page-button button:active:focus {
|
|
105
|
-
background: #dddfe1;
|
|
106
|
-
box-shadow: none;
|
|
107
|
-
}
|
|
108
|
-
.duet-theme-turva .duet-pagination-page-button button:active:focus {
|
|
109
|
-
background: #ddddde;
|
|
110
|
-
}
|
|
111
|
-
.duet-pagination-page-button button:disabled {
|
|
112
|
-
color: #909599;
|
|
113
|
-
cursor: default;
|
|
114
|
-
background: #f5f8fa;
|
|
115
|
-
opacity: 0.75;
|
|
116
|
-
}
|
|
117
|
-
.duet-theme-turva .duet-pagination-page-button button:disabled {
|
|
118
|
-
color: #747475;
|
|
119
|
-
background: #f5f5f7;
|
|
120
61
|
}
|
|
@@ -30,10 +30,14 @@ export class DuetPagination {
|
|
|
30
30
|
* Characters to use for the jump buttons.
|
|
31
31
|
*/
|
|
32
32
|
this.jumpString = "...";
|
|
33
|
+
/**
|
|
34
|
+
* Variation of the paginator (compact and default supported)
|
|
35
|
+
*/
|
|
36
|
+
this.variation = "default";
|
|
33
37
|
/**
|
|
34
38
|
* Default pagination labels
|
|
35
39
|
*/
|
|
36
|
-
this.
|
|
40
|
+
this.accessibleLabelsDefaults = {
|
|
37
41
|
en: {
|
|
38
42
|
next_page: "Next page",
|
|
39
43
|
previous_page: "Previous page",
|
|
@@ -74,7 +78,7 @@ export class DuetPagination {
|
|
|
74
78
|
/**
|
|
75
79
|
* Default pagination labels
|
|
76
80
|
*/
|
|
77
|
-
this.
|
|
81
|
+
this.accessibleLabels = getLocaleString(this.accessibleLabelsDefaults);
|
|
78
82
|
/**
|
|
79
83
|
* The size of the take, when paginating.
|
|
80
84
|
*/
|
|
@@ -244,13 +248,16 @@ export class DuetPagination {
|
|
|
244
248
|
}, role: "menuitem" },
|
|
245
249
|
h("duet-button", { class: {
|
|
246
250
|
"duet-pagination-link": true,
|
|
247
|
-
}, color: i !== this.current ? "secondary" : "primary", "data-id": i, "center-text": true, variation: "plain", margin: "none", accessibleLabel: `${this.
|
|
251
|
+
}, color: i !== this.current ? "secondary" : "primary", "data-id": i, "center-text": true, variation: "plain", margin: "none", accessibleLabel: `${this.accessibleLabels.go_to} ${i}`, onClick: e => this.pageClickHandler(e) },
|
|
248
252
|
h("div", { class: "duet-pagination-page-number", "aria-hidden": true }, i))));
|
|
249
253
|
} while (i < this.visibleItems + this.internalSectionIndex * this.visibleItems);
|
|
250
254
|
return items;
|
|
251
255
|
}
|
|
252
256
|
shouldDisplayNavigation() {
|
|
253
|
-
|
|
257
|
+
if (this.variation !== "compact") {
|
|
258
|
+
return shouldDisplayNavigation(this.visibleItems, this.total, this.take);
|
|
259
|
+
}
|
|
260
|
+
return false;
|
|
254
261
|
}
|
|
255
262
|
/**
|
|
256
263
|
* render() function
|
|
@@ -258,43 +265,44 @@ export class DuetPagination {
|
|
|
258
265
|
*/
|
|
259
266
|
render() {
|
|
260
267
|
return (h(Host, { onKeyDown: e => this.onKeyboardDown(e) },
|
|
261
|
-
h("nav", { role: "navigation",
|
|
262
|
-
|
|
268
|
+
h("nav", { role: "navigation", "aria-labelledby": this.listId, "aria-describedby": this.listId, ref: el => (this.nativeNav = el), "aria-controls": this.ariaControls, class: {
|
|
269
|
+
"duet-pagination-nav": true,
|
|
270
|
+
[`duet-pagination-variation-${this.variation}`]: true,
|
|
271
|
+
} },
|
|
272
|
+
this.numbersStore !== "" && (h("div", { "aria-live": "assertive", "aria-relevant": "text", class: "duet-pagination-overlay", "aria-label": `${this.accessibleLabels.jump_to} ${this.numbersStore}`, part: "navigation-overlay" },
|
|
263
273
|
h("duet-badge", null,
|
|
264
274
|
"jump to page : ",
|
|
265
275
|
this.numbersStore))),
|
|
266
276
|
h("ol", { id: this.listId, class: {
|
|
267
277
|
"duet-pagination": true,
|
|
268
278
|
"duet-pagination-is-dimmed": this.numbersStore !== "",
|
|
269
|
-
}, role: "menubar", "aria-label": this.
|
|
279
|
+
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description },
|
|
270
280
|
h("li", { class: {
|
|
271
281
|
"duet-pagination-page-button": true,
|
|
272
282
|
"duet-pagination-button-first": true,
|
|
273
283
|
}, role: "menuitem", part: "navigation-arrow" },
|
|
274
|
-
h("button", { disabled: this.internalSectionIndex === 0 && this.current <= 1, "data-direction": "back",
|
|
275
|
-
h("duet-icon", { name: "action-arrow-left-small", color: "currentColor", margin: "none", size: "xx-small" }))),
|
|
284
|
+
h("duet-action-button", { disabled: this.internalSectionIndex === 0 && this.current <= 1, "data-direction": "back", onClick: e => this.onMouseHandler(e, -1), "aria-label": this.accessibleLabels.previous_page, "icon-name": "action-arrow-left-small" })),
|
|
276
285
|
this.internalSectionIndex !== 0 && this.shouldDisplayNavigation() && (h(Fragment, null,
|
|
277
286
|
h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" },
|
|
278
|
-
h("duet-button", { class: "duet-pagination-link", "center-text": "true", variation: "plain", color: "secondary", margin: "none", accessibleLabel: this.
|
|
287
|
+
h("duet-button", { class: "duet-pagination-link", "center-text": "true", variation: "plain", color: "secondary", margin: "none", accessibleLabel: this.accessibleLabels.first_page, onClick: e => this.jumpToStart(e) },
|
|
279
288
|
h("div", { class: "duet-pagination-page-number" }, "1"))),
|
|
280
289
|
h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-section" },
|
|
281
|
-
h("duet-button", { class: "duet-pagination-link", "center-text": "true", color: "secondary", variation: "plain", margin: "none", accessibleLabel: this.
|
|
290
|
+
h("duet-button", { class: "duet-pagination-link", "center-text": "true", color: "secondary", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.prev_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, -1) },
|
|
282
291
|
h("div", { class: "duet-pagination-page-number", "aria-hidden": "true" }, "..."))))),
|
|
283
292
|
this.renderPageNumbers(),
|
|
284
293
|
this.internalSectionIndex !== this.totalPages / this.visibleItems - 1 && this.shouldDisplayNavigation() && (h(Fragment, null,
|
|
285
294
|
h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-section" },
|
|
286
|
-
h("duet-button", { class: "duet-pagination-link", "center-text": "true", color: "secondary", variation: "plain", margin: "none", accessibleLabel: this.
|
|
295
|
+
h("duet-button", { class: "duet-pagination-link", "center-text": "true", color: "secondary", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.next_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, 1) },
|
|
287
296
|
h("div", { class: "duet-pagination-page-number", "aria-hidden": "true" }, "..."))),
|
|
288
297
|
h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" },
|
|
289
|
-
h("duet-button", { class: "duet-pagination-link", "center-text": "true", color: "secondary", variation: "plain", margin: "none", accessibleLabel: this.
|
|
298
|
+
h("duet-button", { class: "duet-pagination-link", "center-text": "true", color: "secondary", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.last_page, onClick: e => this.jumpToEnd(e) },
|
|
290
299
|
h("div", { class: "duet-pagination-page-number" }, this.totalPages))))),
|
|
291
300
|
h("li", { class: {
|
|
292
301
|
"duet-pagination-page-button": true,
|
|
293
302
|
"duet-pagination-button-last": true,
|
|
294
303
|
}, role: "menuitem", part: "navigation-arrow" },
|
|
295
|
-
h("button", { disabled: this.current === this.totalPages &&
|
|
296
|
-
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1, class: "duet-date-dialog-next",
|
|
297
|
-
h("duet-icon", { name: "action-arrow-right-small", color: "currentColor", margin: "none", size: "xx-small" })))))));
|
|
304
|
+
h("duet-action-button", { disabled: this.current === this.totalPages &&
|
|
305
|
+
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1, class: "duet-date-dialog-next", "aria-label": this.accessibleLabels.next_page, onClick: e => this.onMouseHandler(e, 1), "icon-name": "action-arrow-right-small" }))))));
|
|
298
306
|
}
|
|
299
307
|
static get is() { return "duet-pagination"; }
|
|
300
308
|
static get encapsulation() { return "shadow"; }
|
|
@@ -346,7 +354,29 @@ export class DuetPagination {
|
|
|
346
354
|
"reflect": false,
|
|
347
355
|
"defaultValue": "\"...\""
|
|
348
356
|
},
|
|
349
|
-
"
|
|
357
|
+
"variation": {
|
|
358
|
+
"type": "string",
|
|
359
|
+
"mutable": false,
|
|
360
|
+
"complexType": {
|
|
361
|
+
"original": "DuetPaginationVariation",
|
|
362
|
+
"resolved": "\"compact\" | \"default\"",
|
|
363
|
+
"references": {
|
|
364
|
+
"DuetPaginationVariation": {
|
|
365
|
+
"location": "local"
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"required": false,
|
|
370
|
+
"optional": false,
|
|
371
|
+
"docs": {
|
|
372
|
+
"tags": [],
|
|
373
|
+
"text": "Variation of the paginator (compact and default supported)"
|
|
374
|
+
},
|
|
375
|
+
"attribute": "variation",
|
|
376
|
+
"reflect": false,
|
|
377
|
+
"defaultValue": "\"default\""
|
|
378
|
+
},
|
|
379
|
+
"accessibleLabelsDefaults": {
|
|
350
380
|
"type": "unknown",
|
|
351
381
|
"mutable": false,
|
|
352
382
|
"complexType": {
|
|
@@ -367,7 +397,7 @@ export class DuetPagination {
|
|
|
367
397
|
},
|
|
368
398
|
"defaultValue": "{\n en: {\n next_page: \"Next page\",\n previous_page: \"Previous page\",\n first_page: \"First page\",\n last_page: \"Last page\",\n jump_to: \"Jump to page\",\n go_to: \"Go to page\",\n description:\n \"You may use arrow keys to select page number, or enter a page number when this element is in focus to jump to a page\",\n pagination_label: \"Pagination, choose a number to jump to a page\",\n prev_section: \"Show previous {0} page numbers, screen reader user should use arrowkeys to navigate\",\n next_section: \"Show next {0} page numbers, screen reader user should use arrowkeys to navigate\",\n },\n fi: {\n next_page: \"Seuraava sivu\",\n previous_page: \"Edellinen sivu\",\n first_page: \"Ensimm\u00E4inen sivu\",\n last_page: \"Viimeinen sivu\",\n jump_to: \"Siirry sivulle\",\n go_to: \"Siirry sivulle\",\n description:\n \"Voit k\u00E4ytt\u00E4\u00E4 nuolin\u00E4pp\u00E4imi\u00E4 sivunumeron valitsemiseen, tai kirjoittaa sivunumeron, jos t\u00E4m\u00E4 elementti on aktiivinen, siirtym\u00E4\u00E4n sivulle\",\n pagination_label: \"Sivutus, valitse sivunumero siirty\u00E4ksesi sivulle\",\n prev_section: \"N\u00E4yt\u00E4 edelliset {0} sivunumerot, k\u00E4ytt\u00E4j\u00E4n pit\u00E4\u00E4 k\u00E4ytt\u00E4\u00E4 nuolin\u00E4pp\u00E4imi\u00E4 navigoidaksesi\",\n next_section: \"N\u00E4yt\u00E4 seuraavat {0} sivunumerot, k\u00E4ytt\u00E4j\u00E4n pit\u00E4\u00E4 k\u00E4ytt\u00E4\u00E4 nuolin\u00E4pp\u00E4imi\u00E4 navigoidaksesi\",\n },\n sv: {\n next_page: \"N\u00E4sta sida\",\n previous_page: \"F\u00F6reg\u00E5ende sida\",\n first_page: \"F\u00F6rsta sidan\",\n last_page: \"Sista sidan\",\n jump_to: \"Hoppa till sida\",\n go_to: \"Hoppa till sida\",\n description:\n \"Du kan anv\u00E4nda piltangenterna f\u00F6r att v\u00E4lja sida, eller skriva in sida n\u00E4r elementet \u00E4r i fokus f\u00F6r att hoppa till en sida\",\n pagination_label: \"Sidutning, v\u00E4lj en siffra f\u00F6r att hoppa till en sida\",\n prev_section: \"Visa f\u00F6reg\u00E5ende {0} sidnummer, skrivbordsl\u00E4sare ska anv\u00E4nda piltangenterna f\u00F6r att navigera\",\n next_section: \"Visa n\u00E4sta {0} sidnummer, skrivbordsl\u00E4sare ska anv\u00E4nda piltangenterna f\u00F6r att navigera\",\n },\n }"
|
|
369
399
|
},
|
|
370
|
-
"
|
|
400
|
+
"accessibleLabels": {
|
|
371
401
|
"type": "unknown",
|
|
372
402
|
"mutable": false,
|
|
373
403
|
"complexType": {
|
|
@@ -385,7 +415,7 @@ export class DuetPagination {
|
|
|
385
415
|
"tags": [],
|
|
386
416
|
"text": "Default pagination labels"
|
|
387
417
|
},
|
|
388
|
-
"defaultValue": "getLocaleString(\n this.
|
|
418
|
+
"defaultValue": "getLocaleString(\n this.accessibleLabelsDefaults\n )"
|
|
389
419
|
},
|
|
390
420
|
"take": {
|
|
391
421
|
"type": "number",
|
|
@@ -40,61 +40,10 @@
|
|
|
40
40
|
.duet-range-stepper {
|
|
41
41
|
white-space: nowrap;
|
|
42
42
|
}
|
|
43
|
-
.duet-range-stepper
|
|
44
|
-
|
|
45
|
-
align-items: center;
|
|
46
|
-
justify-content: center;
|
|
47
|
-
width: 32px;
|
|
48
|
-
height: 32px;
|
|
49
|
-
min-height: auto !important;
|
|
50
|
-
padding: 0 !important;
|
|
51
|
-
margin: 0 0 0 8px !important;
|
|
43
|
+
.duet-range-stepper .duet-range-step-counter {
|
|
44
|
+
font-weight: 600;
|
|
52
45
|
color: #00294d;
|
|
53
|
-
cursor: pointer;
|
|
54
|
-
background: #f5f8fa;
|
|
55
|
-
border-radius: 50%;
|
|
56
|
-
transition: background-color 300ms ease !important;
|
|
57
|
-
}
|
|
58
|
-
.duet-theme-turva .duet-range-stepper button {
|
|
59
|
-
color: #171c3a;
|
|
60
|
-
background: #f5f5f7;
|
|
61
|
-
}
|
|
62
|
-
.duet-range-stepper button duet-icon {
|
|
63
|
-
display: block;
|
|
64
|
-
}
|
|
65
|
-
@media (max-width: 35.9375em) {
|
|
66
|
-
.duet-range-stepper button {
|
|
67
|
-
width: 40px;
|
|
68
|
-
height: 40px;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
.duet-range-stepper button:not(:disabled):hover {
|
|
72
|
-
background: #e9ecee !important;
|
|
73
|
-
}
|
|
74
|
-
.duet-theme-turva .duet-range-stepper button:not(:disabled):hover {
|
|
75
|
-
background: #e9e9eb !important;
|
|
76
46
|
}
|
|
77
|
-
.duet-range-stepper button
|
|
78
|
-
|
|
79
|
-
box-shadow: 0 0 0 2px #0077b3;
|
|
80
|
-
}
|
|
81
|
-
.duet-theme-turva .duet-range-stepper button:focus {
|
|
82
|
-
box-shadow: 0 0 0 2px #171c3a;
|
|
83
|
-
}
|
|
84
|
-
.duet-range-stepper button:active:focus {
|
|
85
|
-
background: #dddfe1;
|
|
86
|
-
box-shadow: none;
|
|
87
|
-
}
|
|
88
|
-
.duet-theme-turva .duet-range-stepper button:active:focus {
|
|
89
|
-
background: #ddddde;
|
|
90
|
-
}
|
|
91
|
-
.duet-range-stepper button:disabled {
|
|
92
|
-
color: #909599;
|
|
93
|
-
cursor: default;
|
|
94
|
-
background: #f5f8fa;
|
|
95
|
-
opacity: 0.75;
|
|
96
|
-
}
|
|
97
|
-
.duet-theme-turva .duet-range-stepper button:disabled {
|
|
98
|
-
color: #747475;
|
|
99
|
-
background: #f5f5f7;
|
|
47
|
+
.duet-range-stepper ::part(button) {
|
|
48
|
+
border: 0;
|
|
100
49
|
}
|
|
@@ -154,10 +154,8 @@ export class DuetRangeStepper {
|
|
|
154
154
|
"duet-theme-turva": this.theme === "turva",
|
|
155
155
|
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls },
|
|
156
156
|
h("span", { class: "duet-range-step-counter", part: "range-numbers" }, this.generateStepSize()),
|
|
157
|
-
h("button", { class: "duet-range-step-button duet-range-step-minus",
|
|
158
|
-
|
|
159
|
-
h("button", { class: "duet-range-step-button duet-range-step-plus", type: "button", onClick: e => this.handleClick(e, 1), "aria-label": this.ariaLabels.next_increment, id: this.rightBn, ref: el => (this.rightBnRef = el), part: "navigation-arrow" },
|
|
160
|
-
h("duet-icon", { name: "action-arrow-right-small", color: "currentColor", margin: "none", size: "xx-small" }))));
|
|
157
|
+
h("duet-action-button", { class: "duet-range-step-button duet-range-step-minus", onClick: e => this.handleClick(e, -1), id: this.leftBn, "aria-label": this.ariaLabels.previous_increment, ref: el => (this.leftBnRef = el), part: "navigation-arrow", iconName: "action-arrow-left-small" }),
|
|
158
|
+
h("duet-action-button", { class: "duet-range-step-button duet-range-step-plus", onClick: e => this.handleClick(e, 1), "aria-label": this.ariaLabels.next_increment, id: this.rightBn, ref: el => (this.rightBnRef = el), part: "navigation-arrow", iconName: "action-arrow-right-small" })));
|
|
161
159
|
}
|
|
162
160
|
static get is() { return "duet-range-stepper"; }
|
|
163
161
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,6 +6,10 @@ import { createID } from "../../utils/create-id";
|
|
|
6
6
|
import { isArrowDownKey, isArrowLeftKey, isArrowRightKey, isArrowUpKey } from "../../utils/keyboard-utils";
|
|
7
7
|
import { getLanguage, getLocaleString } from "../../utils/language-utils";
|
|
8
8
|
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
9
|
+
/**
|
|
10
|
+
* @part ${identifier}-button - piercing selector for styling tab buttons
|
|
11
|
+
* @part ${identifier}-button--selected - piercing selector for styling selected tab button
|
|
12
|
+
*/
|
|
9
13
|
export class DuetTabGroup {
|
|
10
14
|
constructor() {
|
|
11
15
|
this.id = createID("DuetTabGroup");
|
|
@@ -88,7 +92,7 @@ export class DuetTabGroup {
|
|
|
88
92
|
};
|
|
89
93
|
this.renderTab = () => {
|
|
90
94
|
const renderedTabs = this.tabs.map((element, index) => {
|
|
91
|
-
return (h("button", { role: "tab", id: this.getButtonId(index), "aria-controls": this.getTabId(index), "aria-selected": element.selected ? "true" : "false", "aria-description": this.getAccessibleDescription(index), part: `${this.identifier}-button`, type: "button", class: {
|
|
95
|
+
return (h("button", { role: "tab", id: this.getButtonId(index), "aria-controls": this.getTabId(index), "aria-selected": element.selected ? "true" : "false", "aria-description": this.getAccessibleDescription(index), part: `${this.identifier}-button ${element.selected ? `${this.identifier}-button--selected` : ""}`, type: "button", class: {
|
|
92
96
|
"duet-p-0": this.padding === "none",
|
|
93
97
|
"duet-tab-button": true,
|
|
94
98
|
selected: element.selected,
|
|
@@ -65,15 +65,21 @@ duet-table tbody th {
|
|
|
65
65
|
duet-table.duet-theme-turva tbody th {
|
|
66
66
|
color: #171c3a;
|
|
67
67
|
}
|
|
68
|
+
duet-table .duet-table-action-row td:last-child {
|
|
69
|
+
justify-self: end;
|
|
70
|
+
padding-right: 20px !important;
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
}
|
|
68
73
|
|
|
69
|
-
.duet-table-flattened
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
.duet-table-flattened tr {
|
|
76
|
-
|
|
74
|
+
.duet-table-flattened tbody tr {
|
|
75
|
+
display: grid;
|
|
76
|
+
grid-template-columns: repeat(2, 1fr);
|
|
77
|
+
grid-auto-rows: auto;
|
|
78
|
+
gap: 10px;
|
|
79
|
+
}
|
|
80
|
+
.duet-table-flattened tbody tr.duet-table-action-row td:last-child::before {
|
|
81
|
+
padding: 0;
|
|
82
|
+
content: "";
|
|
77
83
|
}
|
|
78
84
|
.duet-table-flattened thead tr {
|
|
79
85
|
position: absolute !important;
|
|
@@ -86,11 +92,20 @@ duet-table.duet-theme-turva tbody th {
|
|
|
86
92
|
border: 0 !important;
|
|
87
93
|
}
|
|
88
94
|
.duet-table-flattened td {
|
|
95
|
+
grid-column: 1/2;
|
|
89
96
|
line-height: 1.25;
|
|
90
97
|
}
|
|
91
98
|
.duet-table-flattened td:not(:last-child) {
|
|
92
99
|
margin-bottom: 16px !important;
|
|
93
100
|
}
|
|
101
|
+
.duet-table-flattened td:first-child {
|
|
102
|
+
grid-row: 1;
|
|
103
|
+
grid-column: 1;
|
|
104
|
+
}
|
|
105
|
+
.duet-table-flattened td:last-child {
|
|
106
|
+
grid-row: 1;
|
|
107
|
+
grid-column: 2;
|
|
108
|
+
}
|
|
94
109
|
.duet-table-flattened tbody td,
|
|
95
110
|
.duet-table-flattened tbody th,
|
|
96
111
|
.duet-table-flattened tfoot td {
|
|
@@ -303,4 +318,23 @@ duet-table.duet-theme-turva tbody th {
|
|
|
303
318
|
}
|
|
304
319
|
.duet-theme-turva .duet-table-selected-column {
|
|
305
320
|
background: rgba(68, 68, 69, 0.08);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.duet-table-sortable tbody tr td:first-child,
|
|
324
|
+
.duet-table-sortable thead tr th:first-child {
|
|
325
|
+
padding: 20px;
|
|
326
|
+
}
|
|
327
|
+
.duet-table-sortable:not(.duet-table-flattened) tfoot {
|
|
328
|
+
border-top: 1px solid #e1e3e6;
|
|
329
|
+
}
|
|
330
|
+
.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot {
|
|
331
|
+
border-top-color: #e4e4e6;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.duet-table-actions table {
|
|
335
|
+
table-layout: auto;
|
|
336
|
+
}
|
|
337
|
+
.duet-table-actions thead th:last-child {
|
|
338
|
+
width: 1px;
|
|
339
|
+
white-space: nowrap;
|
|
306
340
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { mediaQueryLarge, mediaQueryMedium, mediaQuerySmall, mediaQueryXLarge, mediaQueryXxLarge, mediaQueryXxxLarge, sizeHeader, sizeNavigation, } from "@duetds/tokens";
|
|
5
5
|
import { Build, Component, Element, h, Host, Prop, State } from "@stencil/core";
|
|
6
|
+
import { debounce } from "../../utils/js-utils";
|
|
6
7
|
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
7
8
|
// remove wrapping speech marks.
|
|
8
9
|
// media query tokens are wrapped in speech marks,
|
|
@@ -23,6 +24,11 @@ const stickyTopValues = {
|
|
|
23
24
|
"with-links": parseFloat(sizeNavigation) * 16,
|
|
24
25
|
"without-links": parseFloat(sizeHeader) * 16,
|
|
25
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* @slot dot-menu- If this slot is populated - the content will be displayed together with a ... type menu to the far right in the tsble header
|
|
29
|
+
* @slot header - Header slot for the table
|
|
30
|
+
* @slot footer - Footer slot for the table
|
|
31
|
+
*/
|
|
26
32
|
export class DuetTable {
|
|
27
33
|
constructor() {
|
|
28
34
|
/**
|
|
@@ -64,9 +70,9 @@ export class DuetTable {
|
|
|
64
70
|
return;
|
|
65
71
|
}
|
|
66
72
|
this.mq = matchMedia(breakpointToToken[this.breakpoint]);
|
|
67
|
-
this.mq.addEventListener("change", this.handleMediaQueryChange);
|
|
73
|
+
this.mq.addEventListener("change", debounce(this.handleMediaQueryChange, 50));
|
|
68
74
|
this.handleMediaQueryChange(this.mq);
|
|
69
|
-
this.observer = new MutationObserver(() => this.copyHeadingsToCells());
|
|
75
|
+
this.observer = new MutationObserver(() => debounce(this.copyHeadingsToCells(), 50));
|
|
70
76
|
this.observer.observe(this.element, {
|
|
71
77
|
childList: true,
|
|
72
78
|
subtree: true,
|
|
@@ -103,6 +109,9 @@ export class DuetTable {
|
|
|
103
109
|
this.mq = null;
|
|
104
110
|
this.matchesBreakpoint = true;
|
|
105
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Local methods.
|
|
114
|
+
*/
|
|
106
115
|
copyHeadingsToCells() {
|
|
107
116
|
const headingElements = this.element.querySelectorAll("thead th");
|
|
108
117
|
const rowElements = this.element.querySelectorAll("tbody tr");
|
|
@@ -61,4 +61,29 @@
|
|
|
61
61
|
font-size: 1rem;
|
|
62
62
|
font-weight: 400;
|
|
63
63
|
background-color: #f5f8fa;
|
|
64
|
+
}
|
|
65
|
+
.duet-upload-editable-table-header-hidden {
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.duet-upload-editable-table tbody .duet-upload-editable-table-data {
|
|
70
|
+
padding: 0 !important;
|
|
71
|
+
border: 0;
|
|
72
|
+
}
|
|
73
|
+
.duet-upload-editable-table duet-editable-table tfoot,
|
|
74
|
+
.duet-upload-editable-table duet-editable-table thead {
|
|
75
|
+
display: none;
|
|
76
|
+
}
|
|
77
|
+
.duet-upload-editable-table duet-editable-table .duet-editable-table-content {
|
|
78
|
+
padding-right: 0 !important;
|
|
79
|
+
padding-left: 0 !important;
|
|
80
|
+
}
|
|
81
|
+
.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td {
|
|
82
|
+
padding: 0.75rem 0 !important;
|
|
83
|
+
}
|
|
84
|
+
.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child {
|
|
85
|
+
padding-right: 0 !important;
|
|
86
|
+
}
|
|
87
|
+
.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button) {
|
|
88
|
+
border: 0;
|
|
64
89
|
}
|