@duetds/components 4.32.0 → 4.33.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 +1933 -87
- package/lib/cjs/{dom-a28e5c5f.js → dom-c850c8d7.js} +1 -1
- package/lib/cjs/duet-alert.cjs.entry.js +2 -2
- package/lib/cjs/duet-badge.cjs.entry.js +1 -1
- package/lib/cjs/duet-button_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-caption_4.cjs.entry.js +17 -10
- package/lib/cjs/duet-card.cjs.entry.js +3 -3
- package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
- package/lib/cjs/duet-choice_2.cjs.entry.js +40 -18
- package/lib/cjs/duet-collapsible.cjs.entry.js +4 -1
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +7 -7
- package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-editable-table-button_3.cjs.entry.js +232 -0
- package/lib/cjs/{duet-table.cjs.entry.js → duet-editable-table_3.cjs.entry.js} +206 -2
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +2 -2
- package/lib/cjs/duet-grid_2.cjs.entry.js +52 -4
- package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-hero.cjs.entry.js +2 -2
- package/lib/cjs/duet-icon.cjs.entry.js +4 -4
- package/lib/cjs/duet-input_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-modal.cjs.entry.js +3 -3
- package/lib/cjs/duet-notification_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-number-input.cjs.entry.js +2 -2
- package/lib/cjs/duet-progress.cjs.entry.js +75 -0
- package/lib/cjs/duet-radio_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
- package/lib/cjs/duet-select.cjs.entry.js +5 -5
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-tab_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-textarea.cjs.entry.js +5 -5
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-tooltip.cjs.entry.js +2 -2
- package/lib/cjs/duet-tray.cjs.entry.js +3 -3
- package/lib/cjs/duet-upload.cjs.entry.js +1089 -0
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +4 -4
- package/lib/cjs/{focus-utils-55b5a616.js → focus-utils-a7a1fb8b.js} +1 -1
- package/lib/cjs/{index-03ed1f55.js → index-b724d698.js} +5 -2
- package/lib/cjs/js-utils-33a9dbe3.js +16 -0
- package/lib/cjs/{language-utils-48b8860b.js → language-utils-aa282901.js} +6 -2
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{shadow-css-6560c90c.js → shadow-css-e3edeed1.js} +9 -10
- package/lib/cjs/{token-utils-13e5d13e.js → token-utils-63a9c8dc.js} +1 -1
- package/lib/cjs/{tokens.module-53b3bd92.js → tokens.module-6b2df1c2.js} +2 -0
- package/lib/cjs/{watch-options-3877c082.js → watch-options-d88afac0.js} +29 -6
- package/lib/collection/collection-manifest.json +15 -2
- package/lib/collection/components/duet-checkbox/duet-checkbox.css +1 -1
- package/lib/collection/components/duet-choice/duet-choice.js +95 -21
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +9 -9
- package/lib/collection/components/duet-editable-table/duet-editable-table-button.css +32 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table-button.js +218 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table-item.css +36 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table-item.js +203 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table-tabledata.js +13 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table.css +16 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +348 -0
- package/lib/collection/components/duet-grid/duet-grid.js +57 -6
- package/lib/collection/components/duet-heading/duet-heading.css +3 -0
- package/lib/collection/components/duet-heading/duet-heading.js +7 -6
- package/lib/collection/components/duet-icon/duet-icon.js +2 -6
- package/lib/collection/components/duet-input/duet-input.css +15 -0
- package/lib/collection/components/duet-input/duet-input.js +4 -4
- package/lib/collection/components/duet-paragraph/duet-paragraph.css +6 -0
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +34 -3
- package/lib/collection/components/duet-progress/duet-progress.css +103 -0
- package/lib/collection/components/duet-progress/duet-progress.js +240 -0
- package/lib/collection/components/duet-select/duet-select.css +15 -0
- package/lib/collection/components/duet-select/duet-select.js +3 -3
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.css +19 -0
- package/lib/collection/components/duet-textarea/duet-textarea.js +5 -4
- package/lib/collection/components/duet-upload/duet-upload-aria-status.js +217 -0
- package/lib/collection/components/duet-upload/duet-upload-editable-item-error.js +16 -0
- package/lib/collection/components/duet-upload/duet-upload-editable-item-inprogres.js +8 -0
- package/lib/collection/components/duet-upload/duet-upload-editable-item-success.js +30 -0
- package/lib/collection/components/duet-upload/duet-upload-validators.js +93 -0
- package/lib/collection/components/duet-upload/duet-upload.css +64 -0
- package/lib/collection/components/duet-upload/duet-upload.js +1838 -0
- package/lib/collection/components/duet-upload/errorcodes.utils.js +32 -0
- package/lib/collection/components/duet-upload/mock.helpers.js +91 -0
- package/lib/collection/components/duet-upload/upload.helpers.js +13 -0
- package/lib/collection/components/duet-upload/xhr.helpers.js +30 -0
- package/lib/collection/utils/js-utils.js +12 -0
- package/lib/collection/utils/language-utils.js +6 -3
- package/lib/collection/utils/watch-options.js +35 -6
- package/lib/custom-elements-bundle/index.d.ts +36 -0
- package/lib/custom-elements-bundle/index.js +1917 -277
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-1391ec53.entry.js → p-00735436.entry.js} +1 -1
- package/lib/duet/p-060d79be.entry.js +4 -0
- package/lib/duet/p-0d22396e.system.js +16 -0
- package/lib/duet/p-10deead0.system.js +4 -0
- package/lib/duet/{p-72fd384a.entry.js → p-1208c84f.entry.js} +1 -1
- package/lib/duet/p-12721178.js +4 -0
- package/lib/duet/p-155ef581.system.entry.js +4 -0
- package/lib/duet/{p-08729381.entry.js → p-16c48c5d.entry.js} +1 -1
- package/lib/duet/p-1797df7b.system.entry.js +4 -0
- package/lib/duet/p-1a08fc22.system.entry.js +4 -0
- package/lib/duet/{p-b6a0caf8.system.entry.js → p-237e47b4.system.entry.js} +1 -1
- package/lib/duet/{p-4fcbcecd.system.entry.js → p-2443bdca.system.entry.js} +1 -1
- package/lib/duet/{p-432ba72e.system.entry.js → p-263bc9cd.system.entry.js} +1 -1
- package/lib/duet/p-2764f081.js +4 -0
- package/lib/duet/{p-b0bbbdba.system.entry.js → p-27d80cef.system.entry.js} +1 -1
- package/lib/duet/p-28e02c08.entry.js +4 -0
- package/lib/duet/{p-8740fa38.entry.js → p-2bb1460c.entry.js} +1 -1
- package/lib/duet/p-33c58756.entry.js +4 -0
- package/lib/duet/{p-9cdd361e.js → p-35a3794e.js} +0 -0
- package/lib/duet/{p-8c511832.system.entry.js → p-374fb7e6.system.entry.js} +1 -1
- package/lib/duet/{p-5a817929.system.entry.js → p-387823af.system.entry.js} +1 -1
- package/lib/duet/{p-a678da8c.entry.js → p-3af5d66f.entry.js} +1 -1
- package/lib/duet/{p-322d1c38.js → p-3c1971d8.js} +1 -1
- package/lib/duet/{p-d13874cb.entry.js → p-4607af59.entry.js} +1 -1
- package/lib/duet/{p-2c0dd9ba.system.entry.js → p-48d1eb1f.system.entry.js} +1 -1
- package/lib/duet/p-4a87e9ab.system.entry.js +4 -0
- package/lib/duet/{p-92103298.system.entry.js → p-4b6ebe40.system.entry.js} +1 -1
- package/lib/duet/{p-6cf41bfe.system.entry.js → p-4e28da18.system.entry.js} +1 -1
- package/lib/duet/p-548d484e.js +4 -0
- package/lib/duet/{p-2c679963.entry.js → p-5826523b.entry.js} +1 -1
- package/lib/duet/{p-7331f2fe.system.entry.js → p-58750bae.system.entry.js} +1 -1
- package/lib/duet/{p-7a868085.entry.js → p-597d99c7.entry.js} +1 -1
- package/lib/duet/p-5ea0cd19.entry.js +4 -0
- package/lib/duet/p-63d5bf73.system.entry.js +4 -0
- package/lib/duet/{p-68d09837.system.entry.js → p-67d9a9a9.system.entry.js} +1 -1
- package/lib/duet/{p-9542c540.entry.js → p-6a19b5ec.entry.js} +1 -1
- package/lib/duet/p-6cc3be76.system.entry.js +4 -0
- package/lib/duet/p-6e363557.system.js +4 -0
- package/lib/duet/{p-3b3bac3f.system.entry.js → p-6e6e76db.system.entry.js} +1 -1
- package/lib/duet/p-70fafc98.system.js +4 -0
- package/lib/duet/{p-2d1e2b23.system.entry.js → p-7368b14e.system.entry.js} +1 -1
- package/lib/duet/{p-2a3411b5.system.entry.js → p-751542a0.system.entry.js} +1 -1
- package/lib/duet/{p-b75c5f13.entry.js → p-794659ac.entry.js} +1 -1
- package/lib/duet/{p-b04d738f.system.entry.js → p-7e8d5bb9.system.entry.js} +1 -1
- package/lib/duet/p-7fee0d23.system.entry.js +4 -0
- package/lib/duet/p-81867417.system.js +4 -0
- package/lib/duet/{p-84ece735.entry.js → p-86daec1c.entry.js} +1 -1
- package/lib/duet/{p-94a5fd74.system.entry.js → p-8b5ca0e7.system.entry.js} +1 -1
- package/lib/duet/{p-ffc2ffff.entry.js → p-8cb7416d.entry.js} +1 -1
- package/lib/duet/p-8f826843.system.entry.js +4 -0
- package/lib/duet/p-94169303.entry.js +4 -0
- package/lib/duet/{p-807b2087.entry.js → p-9481e312.entry.js} +1 -1
- package/lib/duet/{p-977f2826.entry.js → p-984576c9.entry.js} +1 -1
- package/lib/duet/p-987edcd0.js +15 -0
- package/lib/duet/p-9d73343a.entry.js +4 -0
- package/lib/duet/{p-8652a7ab.system.entry.js → p-9dca5c22.system.entry.js} +1 -1
- package/lib/duet/p-a207b008.entry.js +4 -0
- package/lib/duet/p-a5b9c192.system.entry.js +4 -0
- package/lib/duet/p-a6a84ec6.entry.js +4 -0
- package/lib/duet/{p-9f0f5674.entry.js → p-a890da72.entry.js} +1 -1
- package/lib/duet/{p-0f2a478e.entry.js → p-a9859a82.entry.js} +1 -1
- package/lib/duet/{p-3040debf.entry.js → p-aba68b7b.entry.js} +1 -1
- package/lib/duet/p-acc57c77.entry.js +4 -0
- package/lib/duet/{p-2826f987.js → p-ad07f399.js} +1 -1
- package/lib/duet/{p-fb898d94.system.entry.js → p-aee24388.system.entry.js} +1 -1
- package/lib/duet/p-aef1b720.system.entry.js +4 -0
- package/lib/duet/{p-00eac879.system.entry.js → p-af41d894.system.entry.js} +1 -1
- package/lib/duet/p-b25d3769.js +4 -0
- package/lib/duet/{p-43dde575.system.entry.js → p-b32224fe.system.entry.js} +1 -1
- package/lib/duet/{p-f13a0883.entry.js → p-b3744481.entry.js} +1 -1
- package/lib/duet/{p-b374d7c2.system.js → p-b42d81c3.system.js} +1 -1
- package/lib/duet/{p-ed479d09.system.entry.js → p-b4e87f02.system.entry.js} +1 -1
- package/lib/duet/{p-b9683731.entry.js → p-bf93a991.entry.js} +1 -1
- package/lib/duet/{p-a962c8c1.system.js → p-c18a599e.system.js} +0 -0
- package/lib/duet/p-c2e77278.entry.js +4 -0
- package/lib/duet/p-c34329f3.entry.js +4 -0
- package/lib/duet/{p-c19094dd.entry.js → p-c36b4da0.entry.js} +1 -1
- package/lib/duet/{p-8002a095.entry.js → p-cdd70b93.entry.js} +1 -1
- package/lib/duet/p-d1c19f04.system.entry.js +4 -0
- package/lib/duet/{p-cc0bd28f.system.entry.js → p-d3a3c3c7.system.entry.js} +1 -1
- package/lib/duet/{p-19c28d99.system.entry.js → p-d4118b6e.system.entry.js} +1 -1
- package/lib/duet/{p-abd3bfb4.system.entry.js → p-d744d188.system.entry.js} +1 -1
- package/lib/duet/p-ddb6344c.system.js +4 -0
- package/lib/duet/p-de07c7d7.entry.js +4 -0
- package/lib/duet/{p-57cb58d4.system.entry.js → p-dfe79666.system.entry.js} +1 -1
- package/lib/duet/{p-c723d36e.system.js → p-e12f2b8b.system.js} +1 -1
- package/lib/duet/p-e2a44156.js +4 -0
- package/lib/duet/p-e76b722f.entry.js +4 -0
- package/lib/duet/{p-0b9b6393.entry.js → p-e964d062.entry.js} +1 -1
- package/lib/duet/p-eb55ccd2.system.js +4 -0
- package/lib/duet/p-f0a4b68d.system.entry.js +4 -0
- package/lib/duet/p-f364eb96.entry.js +4 -0
- package/lib/duet/{p-fbb7d194.entry.js → p-f8ce39fb.entry.js} +1 -1
- package/lib/esm/{dom-8516b24e.js → dom-58cd15f6.js} +1 -1
- package/lib/esm/duet-alert.entry.js +2 -2
- package/lib/esm/duet-badge.entry.js +1 -1
- package/lib/esm/duet-button_2.entry.js +4 -4
- package/lib/esm/duet-caption_4.entry.js +17 -10
- package/lib/esm/duet-card.entry.js +3 -3
- package/lib/esm/duet-checkbox.entry.js +2 -2
- package/lib/esm/duet-choice_2.entry.js +41 -19
- package/lib/esm/duet-collapsible.entry.js +4 -1
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +7 -7
- package/lib/esm/duet-divider_2.entry.js +1 -1
- package/lib/esm/duet-editable-table-button_3.entry.js +226 -0
- package/lib/esm/{duet-table.entry.js → duet-editable-table_3.entry.js} +205 -3
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +2 -2
- package/lib/esm/duet-grid_2.entry.js +52 -4
- package/lib/esm/duet-header_2.entry.js +3 -3
- package/lib/esm/duet-hero.entry.js +2 -2
- package/lib/esm/duet-icon.entry.js +4 -4
- package/lib/esm/duet-input_2.entry.js +6 -6
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +2 -2
- package/lib/esm/duet-modal.entry.js +3 -3
- package/lib/esm/duet-notification_2.entry.js +2 -2
- package/lib/esm/duet-number-input.entry.js +2 -2
- package/lib/esm/duet-progress.entry.js +71 -0
- package/lib/esm/duet-radio_2.entry.js +2 -2
- package/lib/esm/duet-range-slider.entry.js +2 -2
- package/lib/esm/duet-select.entry.js +5 -5
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-tab_2.entry.js +3 -3
- package/lib/esm/duet-textarea.entry.js +5 -5
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-tooltip.entry.js +2 -2
- package/lib/esm/duet-tray.entry.js +3 -3
- package/lib/esm/duet-upload.entry.js +1085 -0
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{focus-utils-6a282066.js → focus-utils-1fe0dcd0.js} +1 -1
- package/lib/esm/{index-3a265449.js → index-84d97bd1.js} +5 -2
- package/lib/esm/js-utils-b69f17df.js +14 -0
- package/lib/esm/{language-utils-d5c38f65.js → language-utils-344d894c.js} +6 -3
- package/lib/esm/loader.js +3 -3
- package/lib/esm/{shadow-css-9178c864.js → shadow-css-7c726abb.js} +9 -10
- package/lib/esm/{token-utils-5a35377f.js → token-utils-590d9413.js} +1 -1
- package/lib/esm/{tokens.module-edb66c04.js → tokens.module-49cbf963.js} +3 -1
- package/lib/esm/watch-options-dd55bce8.js +57 -0
- package/lib/esm-es5/{dom-8516b24e.js → dom-58cd15f6.js} +0 -0
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +2 -2
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +2 -2
- 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 +1 -1
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table-button_3.entry.js +4 -0
- 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-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +2 -2
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +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-progress.entry.js +4 -0
- package/lib/esm-es5/duet-radio_2.entry.js +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-tab_2.entry.js +2 -2
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +1 -1
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload.entry.js +4 -0
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/{focus-utils-6a282066.js → focus-utils-1fe0dcd0.js} +1 -1
- package/lib/esm-es5/index-84d97bd1.js +4 -0
- package/lib/esm-es5/js-utils-b69f17df.js +4 -0
- package/lib/esm-es5/{language-utils-d5c38f65.js → language-utils-344d894c.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/shadow-css-7c726abb.js +15 -0
- package/lib/esm-es5/{token-utils-5a35377f.js → token-utils-590d9413.js} +1 -1
- package/lib/esm-es5/tokens.module-49cbf963.js +4 -0
- package/lib/esm-es5/watch-options-dd55bce8.js +4 -0
- package/lib/types/components/duet-choice/duet-choice.d.ts +20 -1
- package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +5 -5
- package/lib/types/components/duet-editable-table/duet-editable-table-button.d.ts +72 -0
- package/lib/types/components/duet-editable-table/duet-editable-table-item.d.ts +72 -0
- package/lib/types/components/duet-editable-table/duet-editable-table-tabledata.d.ts +7 -0
- package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +84 -0
- package/lib/types/components/duet-grid/duet-grid.d.ts +16 -2
- package/lib/types/components/duet-heading/duet-heading.d.ts +2 -2
- package/lib/types/components/duet-icon/duet-icon.d.ts +1 -1
- package/lib/types/components/duet-paragraph/duet-paragraph.d.ts +9 -1
- package/lib/types/components/duet-progress/duet-progress.d.ts +64 -0
- package/lib/types/components/duet-upload/duet-upload-aria-status.d.ts +49 -0
- package/lib/types/components/duet-upload/duet-upload-editable-item-error.d.ts +7 -0
- package/lib/types/components/duet-upload/duet-upload-editable-item-inprogres.d.ts +7 -0
- package/lib/types/components/duet-upload/duet-upload-editable-item-success.d.ts +8 -0
- package/lib/types/components/duet-upload/duet-upload-validators.d.ts +12 -0
- package/lib/types/components/duet-upload/duet-upload.d.ts +380 -0
- package/lib/types/components/duet-upload/errorcodes.utils.d.ts +8 -0
- package/lib/types/components/duet-upload/mock.helpers.d.ts +2 -0
- package/lib/types/components/duet-upload/upload.helpers.d.ts +1 -0
- package/lib/types/components/duet-upload/xhr.helpers.d.ts +18 -0
- package/lib/types/components.d.ts +789 -19
- package/lib/types/utils/js-utils.d.ts +1 -0
- package/lib/types/utils/language-utils.d.ts +5 -1
- package/lib/types/utils/watch-options.d.ts +2 -0
- package/package.json +6 -6
- package/lib/cjs/duet-fieldset.cjs.entry.js +0 -62
- package/lib/duet/p-0058512b.js +0 -4
- package/lib/duet/p-0b00e8d6.system.js +0 -16
- package/lib/duet/p-15922601.system.js +0 -4
- package/lib/duet/p-194e25ce.system.entry.js +0 -4
- package/lib/duet/p-1d87ea02.system.entry.js +0 -4
- package/lib/duet/p-3618aaee.entry.js +0 -4
- package/lib/duet/p-40d68321.entry.js +0 -4
- package/lib/duet/p-418b2ce7.system.js +0 -4
- package/lib/duet/p-43e39d98.system.js +0 -4
- package/lib/duet/p-4603830b.entry.js +0 -4
- package/lib/duet/p-52d7fbec.entry.js +0 -4
- package/lib/duet/p-60478325.system.entry.js +0 -4
- package/lib/duet/p-64ed7add.entry.js +0 -4
- package/lib/duet/p-6a356ab1.system.js +0 -4
- package/lib/duet/p-753b406c.entry.js +0 -4
- package/lib/duet/p-76c00d0c.entry.js +0 -4
- package/lib/duet/p-85fe1132.js +0 -4
- package/lib/duet/p-8c8e82aa.system.js +0 -4
- package/lib/duet/p-9a89ec39.js +0 -4
- package/lib/duet/p-a11df1b6.js +0 -15
- package/lib/duet/p-a1eccee1.system.entry.js +0 -4
- package/lib/duet/p-a89e88a3.js +0 -4
- package/lib/duet/p-ade33230.entry.js +0 -4
- package/lib/duet/p-cb827bb7.entry.js +0 -4
- package/lib/duet/p-d85fba2c.system.entry.js +0 -4
- package/lib/duet/p-dfa90f8a.system.entry.js +0 -4
- package/lib/duet/p-e6b9bd1d.entry.js +0 -4
- package/lib/duet/p-ec3eef3a.entry.js +0 -4
- package/lib/duet/p-ee64d6be.system.entry.js +0 -4
- package/lib/duet/p-f113671b.system.entry.js +0 -4
- package/lib/duet/p-f2f04396.entry.js +0 -4
- package/lib/duet/p-f364ce8b.system.entry.js +0 -4
- package/lib/duet/p-fc6624fe.system.entry.js +0 -4
- package/lib/esm/duet-fieldset.entry.js +0 -58
- package/lib/esm/watch-options-de55ea78.js +0 -35
- package/lib/esm-es5/duet-fieldset.entry.js +0 -4
- package/lib/esm-es5/duet-table.entry.js +0 -4
- package/lib/esm-es5/index-3a265449.js +0 -4
- package/lib/esm-es5/shadow-css-9178c864.js +0 -15
- package/lib/esm-es5/tokens.module-edb66c04.js +0 -4
- package/lib/esm-es5/watch-options-de55ea78.js +0 -4
|
@@ -5,18 +5,23 @@ import infoIcon from "@duetds/icons/lib/assets/messaging-info";
|
|
|
5
5
|
import { Component, Element, Event, h, Host, Listen, Method, Prop, State } from "@stencil/core";
|
|
6
6
|
import { DuetStringsExternalDefaults } from "../../common-strings";
|
|
7
7
|
import { createID } from "../../utils/create-id";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { FocusGuard } from "../../utils/focus-utils";
|
|
9
|
+
import { isEscapeKey, isKeyboardClick, isQuestionKey } from "../../utils/keyboard-utils";
|
|
10
|
+
import { getLanguage, getLocaleString } from "../../utils/language-utils";
|
|
10
11
|
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
11
12
|
/**
|
|
12
13
|
* @slot unnamed default slot - The component’s primary content. All child nodes that do not have a slot attribute defined are inserted into this primary slot.
|
|
13
14
|
* @slot info - Info content. Anything inserted into this slot is displayed in a collapsible info box.
|
|
15
|
+
* @slot collapsible_header - header that is only added to collapsible element, this header should be used when the components collapsible area contains additional interactive elements (such as form items) and should be user for a short description of the content below it, it is mandatory for good accessibility to use this - and aria-decribe-by will point to it. If you use the collapsible area with simple text - describe-by will point to this area
|
|
14
16
|
* @slot additional - Additional content. Anything inserted into this slot is displayed as additional content under the label and caption
|
|
15
17
|
*/
|
|
16
18
|
export class DuetChoice {
|
|
17
19
|
constructor() {
|
|
20
|
+
this.hasHeader = false;
|
|
18
21
|
this.choiceId = createID("DuetChoice");
|
|
19
22
|
this.expandId = createID("DuetChoiceExpand");
|
|
23
|
+
this.headerId = createID("DuetChoiceHeader");
|
|
24
|
+
this.infoButtonId = createID("DuetChoiceInfoButton");
|
|
20
25
|
/**
|
|
21
26
|
* State() variables
|
|
22
27
|
* Inlined decorator, alphabetical order.
|
|
@@ -94,6 +99,24 @@ export class DuetChoice {
|
|
|
94
99
|
* browser from displaying its own validation errors.
|
|
95
100
|
*/
|
|
96
101
|
this.required = false;
|
|
102
|
+
/**
|
|
103
|
+
* Placeholder defaults
|
|
104
|
+
* @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
|
|
105
|
+
*/
|
|
106
|
+
this.infoLabelDefaults = {
|
|
107
|
+
fi: "Lisätietoja",
|
|
108
|
+
en: "More information about",
|
|
109
|
+
sv: "Mera information om",
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Hint text to display before the user types into the date picker input.
|
|
113
|
+
* @default {
|
|
114
|
+
* fi: "Lisätietoja",
|
|
115
|
+
* en: "More information about",
|
|
116
|
+
* sv: "Mera information om",
|
|
117
|
+
* }
|
|
118
|
+
*/
|
|
119
|
+
this.infoLabel = getLocaleString(this.infoLabelDefaults, getLanguage());
|
|
97
120
|
this.onMouseEnter = () => {
|
|
98
121
|
this.isHovering = true;
|
|
99
122
|
};
|
|
@@ -168,6 +191,7 @@ export class DuetChoice {
|
|
|
168
191
|
componentWillLoad() {
|
|
169
192
|
inheritGlobalTheme(this);
|
|
170
193
|
this.hasInfo = !!this.element.querySelector("[slot='info']");
|
|
194
|
+
this.hasHeader = !!this.element.querySelector('[slot="header"]');
|
|
171
195
|
this.hasAdditional = !!this.element.querySelector("[slot='additional']");
|
|
172
196
|
}
|
|
173
197
|
/**
|
|
@@ -188,8 +212,11 @@ export class DuetChoice {
|
|
|
188
212
|
handleHostKeyDown() {
|
|
189
213
|
this.isKeyDown = true;
|
|
190
214
|
}
|
|
191
|
-
handleHostKeyUp() {
|
|
215
|
+
handleHostKeyUp(ev) {
|
|
192
216
|
this.isKeyDown = false;
|
|
217
|
+
if (isEscapeKey(ev) && this.isInfoOpen) {
|
|
218
|
+
this.toggleInfo();
|
|
219
|
+
}
|
|
193
220
|
}
|
|
194
221
|
/**
|
|
195
222
|
* Sets focus on the specified `duet-choice`. Use this method instead of the global
|
|
@@ -203,7 +230,12 @@ export class DuetChoice {
|
|
|
203
230
|
return this.accessibleDescribedBy;
|
|
204
231
|
}
|
|
205
232
|
if (this.collapsible || this.hasInfo) {
|
|
206
|
-
|
|
233
|
+
if (this.hasHeader) {
|
|
234
|
+
return this.headerId;
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
return this.expandId;
|
|
238
|
+
}
|
|
207
239
|
}
|
|
208
240
|
return null;
|
|
209
241
|
}
|
|
@@ -235,6 +267,7 @@ export class DuetChoice {
|
|
|
235
267
|
*/
|
|
236
268
|
render() {
|
|
237
269
|
const identifier = this.identifier || this.choiceId;
|
|
270
|
+
console.log(this.element);
|
|
238
271
|
return (h(Host, { class: {
|
|
239
272
|
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
240
273
|
"horizontal-responsive": this.groupDirection === "horizontal" && this.groupResponsive,
|
|
@@ -260,17 +293,6 @@ export class DuetChoice {
|
|
|
260
293
|
this.icon && (h("div", { class: "duet-choice-card-icon" },
|
|
261
294
|
h("duet-icon", { margin: "none", size: "small", name: this.icon, color: "currentColor" }))),
|
|
262
295
|
this.label,
|
|
263
|
-
this.hasInfo ||
|
|
264
|
-
// this is an incredibly dirty way of both hiding the expanded / collapsed state text
|
|
265
|
-
// and an extremely bad way of notifying any screenreaders about state - unfortunately
|
|
266
|
-
// this is extremely difficult to do consistently across browsers so this hack is the best way todo it
|
|
267
|
-
(this.collapsible && (h("span", { lang: "en", style: { opacity: "0", pointerEvents: "none", fontSize: "0", lineHeight: "0" } }, this.collapsible
|
|
268
|
-
? this.checked
|
|
269
|
-
? ", Expanded"
|
|
270
|
-
: ", Collapsed"
|
|
271
|
-
: this.isInfoOpen
|
|
272
|
-
? ", Expanded"
|
|
273
|
-
: ", Collapsed"))),
|
|
274
296
|
this.caption && (h("div", null,
|
|
275
297
|
h("duet-spacer", { size: "xx-small" }),
|
|
276
298
|
h("duet-caption", { margin: "none", selected: this.checked }, this.caption))),
|
|
@@ -278,10 +300,10 @@ export class DuetChoice {
|
|
|
278
300
|
h("duet-spacer", { size: "xx-small" }),
|
|
279
301
|
h("slot", { name: "additional" }))),
|
|
280
302
|
h("div", { class: { "duet-checkmark-container": true, "duet-checkmark-radio": this.type === "radio" } }, this.checked && h("div", { class: "duet-checkmark" })))),
|
|
281
|
-
this.hasInfo && !this.collapsible && (h("button", { class: {
|
|
303
|
+
this.hasInfo && !this.collapsible && (h("button", { ref: button => (this.infoButtonEl = button), id: this.infoButtonId, class: {
|
|
282
304
|
"duet-choice-info-toggle": true,
|
|
283
305
|
"duet-theme-turva": this.theme === "turva",
|
|
284
|
-
}, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onClick: this.toggleInfo, disabled: this.disabled || this.groupDisabled, "aria-expanded": this.isInfoOpen ? "true" : "false", "aria-controls": this.expandId, "aria-flowto": this.expandId, tabindex: this.type === "radio" && !this.checked ? "-1" : "0", type: "button" },
|
|
306
|
+
}, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onClick: this.toggleInfo, disabled: this.disabled || this.groupDisabled, "aria-expanded": this.isInfoOpen ? "true" : "false", "aria-label": `${this.infoLabel} ${this.label}`, "aria-controls": this.expandId, "aria-flowto": this.expandId, tabindex: this.type === "radio" && !this.checked ? "-1" : "0", type: "button" },
|
|
285
307
|
h("duet-visually-hidden", { "aria-hidden": !this.isBlurred ? "true" : "false" }, this.accessibleLabelInfoButton),
|
|
286
308
|
h("div", { class: "duet-choice-info-icon" },
|
|
287
309
|
h("duet-icon", { icon: infoIcon.svg, margin: "none", size: "small", color: "currentColor" }))))),
|
|
@@ -289,10 +311,15 @@ export class DuetChoice {
|
|
|
289
311
|
h("span", { class: {
|
|
290
312
|
"duet-choice-section-visible": this.collapsible ? this.checked : this.isInfoOpen,
|
|
291
313
|
"duet-choice-section-hidden": this.collapsible ? !this.checked : !this.isInfoOpen,
|
|
292
|
-
} },
|
|
293
|
-
h("
|
|
294
|
-
|
|
295
|
-
h("
|
|
314
|
+
} },
|
|
315
|
+
h("span", { id: this.headerId },
|
|
316
|
+
h("slot", { name: "header" })),
|
|
317
|
+
this.hasInfo ? (h("span", null,
|
|
318
|
+
h("span", { "aria-relevant": "all", "aria-atomic": "true", "aria-live": this.isInfoOpen ? "polite" : "off" },
|
|
319
|
+
h("slot", { name: "info" })),
|
|
320
|
+
h("slot", null))) : (h("span", null,
|
|
321
|
+
h("slot", null)))),
|
|
322
|
+
this.isInfoOpen && h(FocusGuard, { moveFocusTo: this.infoButtonEl }))) : null));
|
|
296
323
|
}
|
|
297
324
|
static get is() { return "duet-choice"; }
|
|
298
325
|
static get encapsulation() { return "scoped"; }
|
|
@@ -765,6 +792,53 @@ export class DuetChoice {
|
|
|
765
792
|
"attribute": "required",
|
|
766
793
|
"reflect": false,
|
|
767
794
|
"defaultValue": "false"
|
|
795
|
+
},
|
|
796
|
+
"infoLabelDefaults": {
|
|
797
|
+
"type": "string",
|
|
798
|
+
"mutable": false,
|
|
799
|
+
"complexType": {
|
|
800
|
+
"original": "DuetLangObject | string",
|
|
801
|
+
"resolved": "DuetLangObject | string",
|
|
802
|
+
"references": {
|
|
803
|
+
"DuetLangObject": {
|
|
804
|
+
"location": "import",
|
|
805
|
+
"path": "../../utils/language-utils"
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
"required": false,
|
|
810
|
+
"optional": false,
|
|
811
|
+
"docs": {
|
|
812
|
+
"tags": [{
|
|
813
|
+
"name": "default",
|
|
814
|
+
"text": "{ fi: \"pp.kk.vvvv\", en: \"dd.mm.yyyy\", sv: \"dd.mm.\u00E5\u00E5\u00E5\u00E5\" }"
|
|
815
|
+
}],
|
|
816
|
+
"text": "Placeholder defaults"
|
|
817
|
+
},
|
|
818
|
+
"attribute": "accessible-label-info-default",
|
|
819
|
+
"reflect": false,
|
|
820
|
+
"defaultValue": "{\n fi: \"Lis\u00E4tietoja\",\n en: \"More information about\",\n sv: \"Mera information om\",\n }"
|
|
821
|
+
},
|
|
822
|
+
"infoLabel": {
|
|
823
|
+
"type": "string",
|
|
824
|
+
"mutable": false,
|
|
825
|
+
"complexType": {
|
|
826
|
+
"original": "string",
|
|
827
|
+
"resolved": "string",
|
|
828
|
+
"references": {}
|
|
829
|
+
},
|
|
830
|
+
"required": false,
|
|
831
|
+
"optional": false,
|
|
832
|
+
"docs": {
|
|
833
|
+
"tags": [{
|
|
834
|
+
"name": "default",
|
|
835
|
+
"text": "{\nfi: \"Lis\u00E4tietoja\",\nen: \"More information about\",\nsv: \"Mera information om\",\n}"
|
|
836
|
+
}],
|
|
837
|
+
"text": "Hint text to display before the user types into the date picker input."
|
|
838
|
+
},
|
|
839
|
+
"attribute": "info-label",
|
|
840
|
+
"reflect": false,
|
|
841
|
+
"defaultValue": "getLocaleString(this.infoLabelDefaults, getLanguage())"
|
|
768
842
|
}
|
|
769
843
|
}; }
|
|
770
844
|
static get states() { return {
|
|
@@ -47,14 +47,14 @@ export class DuetDatePicker {
|
|
|
47
47
|
*/
|
|
48
48
|
this.margin = "auto";
|
|
49
49
|
/**
|
|
50
|
-
* The currently active language. This setting changes the month/year/day
|
|
50
|
+
* The currently active language. This setting changes the month/year/day.
|
|
51
51
|
* names and button labels as well as all screen reader labels.
|
|
52
|
-
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
52
|
+
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing.
|
|
53
53
|
* @default "fi"
|
|
54
54
|
*/
|
|
55
55
|
this.language = getLanguage();
|
|
56
56
|
/**
|
|
57
|
-
* Placeholder defaults
|
|
57
|
+
* Placeholder defaults.
|
|
58
58
|
* @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
|
|
59
59
|
*/
|
|
60
60
|
this.placeholderDefaults = {
|
|
@@ -117,7 +117,7 @@ export class DuetDatePicker {
|
|
|
117
117
|
*/
|
|
118
118
|
this.min = "";
|
|
119
119
|
/**
|
|
120
|
-
* Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD
|
|
120
|
+
* Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.
|
|
121
121
|
* This setting can be used alone or together with the min property.
|
|
122
122
|
*/
|
|
123
123
|
this.max = "";
|
|
@@ -559,7 +559,7 @@ export class DuetDatePicker {
|
|
|
559
559
|
"optional": false,
|
|
560
560
|
"docs": {
|
|
561
561
|
"tags": [],
|
|
562
|
-
"text": "Caption (underneath label) that can be set as a way of adding extra information"
|
|
562
|
+
"text": "Caption (underneath label) that can be set as a way of adding extra information."
|
|
563
563
|
},
|
|
564
564
|
"attribute": "caption",
|
|
565
565
|
"reflect": false
|
|
@@ -605,12 +605,12 @@ export class DuetDatePicker {
|
|
|
605
605
|
"docs": {
|
|
606
606
|
"tags": [{
|
|
607
607
|
"name": "deprecated",
|
|
608
|
-
"text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
|
|
608
|
+
"text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing."
|
|
609
609
|
}, {
|
|
610
610
|
"name": "default",
|
|
611
611
|
"text": "\"fi\""
|
|
612
612
|
}],
|
|
613
|
-
"text": "The currently active language. This setting changes the month/year/day
|
|
613
|
+
"text": "The currently active language. This setting changes the month/year/day.\nnames and button labels as well as all screen reader labels."
|
|
614
614
|
},
|
|
615
615
|
"attribute": "language",
|
|
616
616
|
"reflect": false,
|
|
@@ -636,7 +636,7 @@ export class DuetDatePicker {
|
|
|
636
636
|
"name": "default",
|
|
637
637
|
"text": "{ fi: \"pp.kk.vvvv\", en: \"dd.mm.yyyy\", sv: \"dd.mm.\u00E5\u00E5\u00E5\u00E5\" }"
|
|
638
638
|
}],
|
|
639
|
-
"text": "Placeholder defaults"
|
|
639
|
+
"text": "Placeholder defaults."
|
|
640
640
|
},
|
|
641
641
|
"attribute": "placeholder-default",
|
|
642
642
|
"reflect": false,
|
|
@@ -949,7 +949,7 @@ export class DuetDatePicker {
|
|
|
949
949
|
"optional": false,
|
|
950
950
|
"docs": {
|
|
951
951
|
"tags": [],
|
|
952
|
-
"text": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD
|
|
952
|
+
"text": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the min property."
|
|
953
953
|
},
|
|
954
954
|
"attribute": "max",
|
|
955
955
|
"reflect": false,
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::after,
|
|
3
|
+
*::before {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
padding: 0;
|
|
6
|
+
margin: 0;
|
|
7
|
+
background: transparent;
|
|
8
|
+
border: 0;
|
|
9
|
+
-moz-appearance: none;
|
|
10
|
+
-webkit-appearance: none;
|
|
11
|
+
appearance: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host button {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-content: space-between;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
min-width: 32px;
|
|
19
|
+
max-width: 32px;
|
|
20
|
+
height: 100%;
|
|
21
|
+
min-height: 32px;
|
|
22
|
+
max-height: 32px;
|
|
23
|
+
padding: 0;
|
|
24
|
+
margin: 0;
|
|
25
|
+
cursor: pointer !important;
|
|
26
|
+
background-color: transparent;
|
|
27
|
+
border: 1px solid;
|
|
28
|
+
border-radius: 50%;
|
|
29
|
+
}
|
|
30
|
+
:host button duet-icon {
|
|
31
|
+
align-self: center;
|
|
32
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Element, Event, h, Prop, State } from "@stencil/core";
|
|
5
|
+
import { getLocaleString } from "../../utils/language-utils";
|
|
6
|
+
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
7
|
+
import { getColorByName } from "../../utils/token-utils";
|
|
8
|
+
export class DuetEditableTableButton {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.isHovering = false;
|
|
11
|
+
/**
|
|
12
|
+
* Theme of the empty state component.
|
|
13
|
+
*/
|
|
14
|
+
this.theme = "";
|
|
15
|
+
/**
|
|
16
|
+
* action items passed from host component
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
this.actions = undefined;
|
|
20
|
+
/**
|
|
21
|
+
* uid that gets passed along when the action is emitted
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
this.uid = "";
|
|
25
|
+
/**
|
|
26
|
+
* group associated with action
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
this.group = "";
|
|
30
|
+
/**
|
|
31
|
+
* key of the item in the map
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
this.keyName = "";
|
|
35
|
+
this.onMouseEnter = () => {
|
|
36
|
+
this.isHovering = true;
|
|
37
|
+
};
|
|
38
|
+
this.onMouseLeave = () => {
|
|
39
|
+
this.isHovering = false;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
/**
|
|
44
|
+
* Component lifecycle events.
|
|
45
|
+
*/
|
|
46
|
+
componentWillLoad() {
|
|
47
|
+
inheritGlobalTheme(this);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
/**
|
|
51
|
+
* private functions
|
|
52
|
+
*/
|
|
53
|
+
emitActionEvent(ev) {
|
|
54
|
+
this.duetEditableItemAction.emit({
|
|
55
|
+
originalEvent: ev,
|
|
56
|
+
uid: this.uid,
|
|
57
|
+
group: this.group,
|
|
58
|
+
action: this.actions.id,
|
|
59
|
+
keyName: this.keyName,
|
|
60
|
+
component: "duet-editable-table-item",
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* render() function
|
|
65
|
+
* Always the last one in the class.
|
|
66
|
+
*/
|
|
67
|
+
render() {
|
|
68
|
+
return (h("button", { style: {
|
|
69
|
+
"border-color": this.isHovering
|
|
70
|
+
? getColorByName(this.actions.color_hover)
|
|
71
|
+
: getColorByName(this.actions.color),
|
|
72
|
+
}, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, role: "menuitem", class: "duet-editable-table-actions-items-button", "aria-label": this.actions.label ? getLocaleString(this.actions.label) : undefined, onClick: ev => this.emitActionEvent(ev) },
|
|
73
|
+
h("duet-icon", { class: "duet-editable-table-actions-items-icon", size: "x-small", name: this.actions.icon, color: this.isHovering ? this.actions.color_hover : this.actions.color, margin: "none" })));
|
|
74
|
+
}
|
|
75
|
+
static get is() { return "duet-editable-table-button"; }
|
|
76
|
+
static get encapsulation() { return "scoped"; }
|
|
77
|
+
static get originalStyleUrls() { return {
|
|
78
|
+
"$": ["duet-editable-table-button.scss"]
|
|
79
|
+
}; }
|
|
80
|
+
static get styleUrls() { return {
|
|
81
|
+
"$": ["duet-editable-table-button.css"]
|
|
82
|
+
}; }
|
|
83
|
+
static get properties() { return {
|
|
84
|
+
"theme": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"mutable": true,
|
|
87
|
+
"complexType": {
|
|
88
|
+
"original": "DuetTheme",
|
|
89
|
+
"resolved": "\"\" | \"default\" | \"turva\"",
|
|
90
|
+
"references": {
|
|
91
|
+
"DuetTheme": {
|
|
92
|
+
"location": "import",
|
|
93
|
+
"path": "../../common-types"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": false,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": "Theme of the empty state component."
|
|
102
|
+
},
|
|
103
|
+
"attribute": "theme",
|
|
104
|
+
"reflect": false,
|
|
105
|
+
"defaultValue": "\"\""
|
|
106
|
+
},
|
|
107
|
+
"actions": {
|
|
108
|
+
"type": "unknown",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "DuetEditableTableActionButtonItems",
|
|
112
|
+
"resolved": "{ icon: string; color: string; color_hover: string; id: string; map?: string[]; label?: DuetLangObject; }",
|
|
113
|
+
"references": {
|
|
114
|
+
"DuetEditableTableActionButtonItems": {
|
|
115
|
+
"location": "local"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"required": false,
|
|
120
|
+
"optional": false,
|
|
121
|
+
"docs": {
|
|
122
|
+
"tags": [{
|
|
123
|
+
"name": "internal",
|
|
124
|
+
"text": undefined
|
|
125
|
+
}],
|
|
126
|
+
"text": "action items passed from host component"
|
|
127
|
+
},
|
|
128
|
+
"defaultValue": "undefined"
|
|
129
|
+
},
|
|
130
|
+
"uid": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"mutable": false,
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "string",
|
|
135
|
+
"resolved": "string",
|
|
136
|
+
"references": {}
|
|
137
|
+
},
|
|
138
|
+
"required": false,
|
|
139
|
+
"optional": false,
|
|
140
|
+
"docs": {
|
|
141
|
+
"tags": [{
|
|
142
|
+
"name": "internal",
|
|
143
|
+
"text": undefined
|
|
144
|
+
}],
|
|
145
|
+
"text": "uid that gets passed along when the action is emitted"
|
|
146
|
+
},
|
|
147
|
+
"attribute": "uid",
|
|
148
|
+
"reflect": false,
|
|
149
|
+
"defaultValue": "\"\""
|
|
150
|
+
},
|
|
151
|
+
"group": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"mutable": false,
|
|
154
|
+
"complexType": {
|
|
155
|
+
"original": "string",
|
|
156
|
+
"resolved": "string",
|
|
157
|
+
"references": {}
|
|
158
|
+
},
|
|
159
|
+
"required": false,
|
|
160
|
+
"optional": false,
|
|
161
|
+
"docs": {
|
|
162
|
+
"tags": [{
|
|
163
|
+
"name": "internal",
|
|
164
|
+
"text": undefined
|
|
165
|
+
}],
|
|
166
|
+
"text": "group associated with action"
|
|
167
|
+
},
|
|
168
|
+
"attribute": "group",
|
|
169
|
+
"reflect": false,
|
|
170
|
+
"defaultValue": "\"\""
|
|
171
|
+
},
|
|
172
|
+
"keyName": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"mutable": false,
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "string",
|
|
177
|
+
"resolved": "string",
|
|
178
|
+
"references": {}
|
|
179
|
+
},
|
|
180
|
+
"required": false,
|
|
181
|
+
"optional": false,
|
|
182
|
+
"docs": {
|
|
183
|
+
"tags": [{
|
|
184
|
+
"name": "internal",
|
|
185
|
+
"text": undefined
|
|
186
|
+
}],
|
|
187
|
+
"text": "key of the item in the map"
|
|
188
|
+
},
|
|
189
|
+
"attribute": "key-name",
|
|
190
|
+
"reflect": false,
|
|
191
|
+
"defaultValue": "\"\""
|
|
192
|
+
}
|
|
193
|
+
}; }
|
|
194
|
+
static get states() { return {
|
|
195
|
+
"isHovering": {}
|
|
196
|
+
}; }
|
|
197
|
+
static get events() { return [{
|
|
198
|
+
"method": "duetEditableItemAction",
|
|
199
|
+
"name": "duetEditableItemAction",
|
|
200
|
+
"bubbles": true,
|
|
201
|
+
"cancelable": true,
|
|
202
|
+
"composed": true,
|
|
203
|
+
"docs": {
|
|
204
|
+
"tags": [],
|
|
205
|
+
"text": "Emitted when any action is clicked"
|
|
206
|
+
},
|
|
207
|
+
"complexType": {
|
|
208
|
+
"original": "DuetEditableTableItemEvent",
|
|
209
|
+
"resolved": "{ originalEvent?: Event; uid: string | number | bigint; keyName: string | number | bigint; action: string; group: string; component: \"duet-editable-table-item\"; }",
|
|
210
|
+
"references": {
|
|
211
|
+
"DuetEditableTableItemEvent": {
|
|
212
|
+
"location": "local"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}]; }
|
|
217
|
+
static get elementRef() { return "el"; }
|
|
218
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::after,
|
|
3
|
+
*::before {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
padding: 0;
|
|
6
|
+
margin: 0;
|
|
7
|
+
background: transparent;
|
|
8
|
+
border: 0;
|
|
9
|
+
-moz-appearance: none;
|
|
10
|
+
-webkit-appearance: none;
|
|
11
|
+
appearance: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
display: table-row;
|
|
16
|
+
height: 32px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.duet-editable-table-content, .duet-editable-table-actions {
|
|
20
|
+
height: 32px;
|
|
21
|
+
padding: 12px 0;
|
|
22
|
+
vertical-align: middle;
|
|
23
|
+
break-word: break-all;
|
|
24
|
+
border-bottom: 1px solid #e1e3e6;
|
|
25
|
+
}
|
|
26
|
+
.duet-editable-table-actions-items {
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: flex-end;
|
|
29
|
+
}
|
|
30
|
+
.duet-editable-table-actions-items duet-editable-table-button {
|
|
31
|
+
padding-left: 8px;
|
|
32
|
+
}
|
|
33
|
+
.duet-editable-table .editable-item-small {
|
|
34
|
+
font-size: 0.75rem;
|
|
35
|
+
font-weight: 400;
|
|
36
|
+
}
|