@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
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Element, Event, h, Host, Prop, State, Watch } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
6
|
+
import { TableData } from "./duet-editable-table-tabledata";
|
|
7
|
+
export class DuetEditableTableItem {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.isHovering = false;
|
|
10
|
+
/**
|
|
11
|
+
* Theme of the empty state component.
|
|
12
|
+
*/
|
|
13
|
+
this.theme = "";
|
|
14
|
+
/**
|
|
15
|
+
* Actions that can be performed on the element
|
|
16
|
+
*/
|
|
17
|
+
this.actions = undefined;
|
|
18
|
+
/**
|
|
19
|
+
* GroupId used to pierce the shadowdom - gets concatenated with "content & actions" and used as part="groupIDcontent/actions" to pierce the content/Action item
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
this.groupId = "";
|
|
23
|
+
/**
|
|
24
|
+
* Key used to identify item, when running actions
|
|
25
|
+
*/
|
|
26
|
+
this.keyName = "";
|
|
27
|
+
/**
|
|
28
|
+
* Object of data itemsused to render the entire row
|
|
29
|
+
*/
|
|
30
|
+
this.data = undefined;
|
|
31
|
+
}
|
|
32
|
+
watchPropHandler(_newValue, _oldValue) {
|
|
33
|
+
// console.log("The new value of activated is: ", _newValue)
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
/**
|
|
37
|
+
* Component lifecycle events.
|
|
38
|
+
*/
|
|
39
|
+
componentWillLoad() {
|
|
40
|
+
inheritGlobalTheme(this);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
/**
|
|
44
|
+
* private functions
|
|
45
|
+
*/
|
|
46
|
+
/**
|
|
47
|
+
* render() function
|
|
48
|
+
* Always the last one in the class.
|
|
49
|
+
*/
|
|
50
|
+
render() {
|
|
51
|
+
return (h(Host, { role: "row" },
|
|
52
|
+
h(TableData, { data: this.data.item, groupId: this.groupId }),
|
|
53
|
+
h("td", { class: "duet-editable-table-actions" },
|
|
54
|
+
h("div", { class: "duet-editable-table-actions-items", part: `${this.groupId}actions` }, this.actions.map(result => {
|
|
55
|
+
const { map = undefined } = result;
|
|
56
|
+
// if map has been specified, only show the current action if groupID matches the map array
|
|
57
|
+
if (map && !map.includes(this.groupId)) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
return (h("duet-editable-table-button", { keyName: this.keyName, group: this.data.group, uid: this.data.uid, actions: result, theme: this.theme }));
|
|
61
|
+
})))));
|
|
62
|
+
}
|
|
63
|
+
static get is() { return "duet-editable-table-item"; }
|
|
64
|
+
static get encapsulation() { return "shadow"; }
|
|
65
|
+
static get originalStyleUrls() { return {
|
|
66
|
+
"$": ["duet-editable-table-item.scss"]
|
|
67
|
+
}; }
|
|
68
|
+
static get styleUrls() { return {
|
|
69
|
+
"$": ["duet-editable-table-item.css"]
|
|
70
|
+
}; }
|
|
71
|
+
static get properties() { return {
|
|
72
|
+
"theme": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"mutable": true,
|
|
75
|
+
"complexType": {
|
|
76
|
+
"original": "DuetTheme",
|
|
77
|
+
"resolved": "\"\" | \"default\" | \"turva\"",
|
|
78
|
+
"references": {
|
|
79
|
+
"DuetTheme": {
|
|
80
|
+
"location": "import",
|
|
81
|
+
"path": "../../common-types"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"required": false,
|
|
86
|
+
"optional": false,
|
|
87
|
+
"docs": {
|
|
88
|
+
"tags": [],
|
|
89
|
+
"text": "Theme of the empty state component."
|
|
90
|
+
},
|
|
91
|
+
"attribute": "theme",
|
|
92
|
+
"reflect": false,
|
|
93
|
+
"defaultValue": "\"\""
|
|
94
|
+
},
|
|
95
|
+
"actions": {
|
|
96
|
+
"type": "unknown",
|
|
97
|
+
"mutable": false,
|
|
98
|
+
"complexType": {
|
|
99
|
+
"original": "DuetEditableTableActions",
|
|
100
|
+
"resolved": "{ icon: string; color: string; color_hover: string; id: string; map?: string[]; label?: DuetLangObject; }[]",
|
|
101
|
+
"references": {
|
|
102
|
+
"DuetEditableTableActions": {
|
|
103
|
+
"location": "local"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"required": false,
|
|
108
|
+
"optional": false,
|
|
109
|
+
"docs": {
|
|
110
|
+
"tags": [],
|
|
111
|
+
"text": "Actions that can be performed on the element"
|
|
112
|
+
},
|
|
113
|
+
"defaultValue": "undefined"
|
|
114
|
+
},
|
|
115
|
+
"groupId": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"mutable": false,
|
|
118
|
+
"complexType": {
|
|
119
|
+
"original": "string",
|
|
120
|
+
"resolved": "string",
|
|
121
|
+
"references": {}
|
|
122
|
+
},
|
|
123
|
+
"required": false,
|
|
124
|
+
"optional": false,
|
|
125
|
+
"docs": {
|
|
126
|
+
"tags": [{
|
|
127
|
+
"name": "internal",
|
|
128
|
+
"text": undefined
|
|
129
|
+
}],
|
|
130
|
+
"text": "GroupId used to pierce the shadowdom - gets concatenated with \"content & actions\" and used as part=\"groupIDcontent/actions\" to pierce the content/Action item"
|
|
131
|
+
},
|
|
132
|
+
"attribute": "group-id",
|
|
133
|
+
"reflect": false,
|
|
134
|
+
"defaultValue": "\"\""
|
|
135
|
+
},
|
|
136
|
+
"keyName": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"mutable": false,
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "string",
|
|
141
|
+
"resolved": "string",
|
|
142
|
+
"references": {}
|
|
143
|
+
},
|
|
144
|
+
"required": false,
|
|
145
|
+
"optional": false,
|
|
146
|
+
"docs": {
|
|
147
|
+
"tags": [],
|
|
148
|
+
"text": "Key used to identify item, when running actions"
|
|
149
|
+
},
|
|
150
|
+
"attribute": "key-name",
|
|
151
|
+
"reflect": false,
|
|
152
|
+
"defaultValue": "\"\""
|
|
153
|
+
},
|
|
154
|
+
"data": {
|
|
155
|
+
"type": "unknown",
|
|
156
|
+
"mutable": true,
|
|
157
|
+
"complexType": {
|
|
158
|
+
"original": "DuetEditableTableItemData",
|
|
159
|
+
"resolved": "{ uid: string; item: string | HTMLElement; group: string; }",
|
|
160
|
+
"references": {
|
|
161
|
+
"DuetEditableTableItemData": {
|
|
162
|
+
"location": "local"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"required": false,
|
|
167
|
+
"optional": false,
|
|
168
|
+
"docs": {
|
|
169
|
+
"tags": [],
|
|
170
|
+
"text": "Object of data itemsused to render the entire row"
|
|
171
|
+
},
|
|
172
|
+
"defaultValue": "undefined"
|
|
173
|
+
}
|
|
174
|
+
}; }
|
|
175
|
+
static get states() { return {
|
|
176
|
+
"isHovering": {}
|
|
177
|
+
}; }
|
|
178
|
+
static get events() { return [{
|
|
179
|
+
"method": "duetEditableItemAction",
|
|
180
|
+
"name": "duetEditableItemAction",
|
|
181
|
+
"bubbles": true,
|
|
182
|
+
"cancelable": true,
|
|
183
|
+
"composed": true,
|
|
184
|
+
"docs": {
|
|
185
|
+
"tags": [],
|
|
186
|
+
"text": "Emitted when any action is clicked"
|
|
187
|
+
},
|
|
188
|
+
"complexType": {
|
|
189
|
+
"original": "DuetEditableTableItemEvent",
|
|
190
|
+
"resolved": "{ originalEvent?: Event; uid: string; keyName: string; action: string; group: string; component: \"duet-editable-table-item\"; }",
|
|
191
|
+
"references": {
|
|
192
|
+
"DuetEditableTableItemEvent": {
|
|
193
|
+
"location": "local"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}]; }
|
|
198
|
+
static get elementRef() { return "el"; }
|
|
199
|
+
static get watchers() { return [{
|
|
200
|
+
"propName": "data",
|
|
201
|
+
"methodName": "watchPropHandler"
|
|
202
|
+
}]; }
|
|
203
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { h } from "@stencil/core";
|
|
5
|
+
//simple functional component that renders the data in the table
|
|
6
|
+
export const TableData = ({ data, groupId }, _children) => {
|
|
7
|
+
if (typeof data === "string") {
|
|
8
|
+
return h("td", { innerHTML: data, class: "duet-editable-table-content", part: `${groupId}content` });
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
return (h("td", { class: "duet-editable-table-content", part: `${groupId}content` }, data));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
duet-editable-table {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
padding: 0;
|
|
4
|
+
margin: 0;
|
|
5
|
+
background: transparent;
|
|
6
|
+
border: 0;
|
|
7
|
+
-moz-appearance: none;
|
|
8
|
+
-webkit-appearance: none;
|
|
9
|
+
appearance: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.duet-editable-table-header tr .duet-editable-table-header-hidden {
|
|
13
|
+
padding: 0 !important;
|
|
14
|
+
font-size: 0;
|
|
15
|
+
border-bottom: 0;
|
|
16
|
+
}
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Element, h, Host, Method, Prop, State } from "@stencil/core";
|
|
5
|
+
import { debounce } from "../../utils/js-utils";
|
|
6
|
+
import { getLocaleString, sanitizeString } from "../../utils/language-utils";
|
|
7
|
+
import { inheritGlobalTheme } from "../../utils/themeable-component";
|
|
8
|
+
export class DuetEditableTable {
|
|
9
|
+
constructor() {
|
|
10
|
+
/**
|
|
11
|
+
* State() variables
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
this.tick = Date.now();
|
|
15
|
+
/**
|
|
16
|
+
* Map of items that contain list of things.
|
|
17
|
+
*/
|
|
18
|
+
this.items = new Map();
|
|
19
|
+
/**
|
|
20
|
+
* Array of internationalized defaults for the default groups labels.
|
|
21
|
+
*/
|
|
22
|
+
this.groupsLabelDefaults = {
|
|
23
|
+
fi: "Kaikki",
|
|
24
|
+
en: "All items",
|
|
25
|
+
sv: "Alla objekt",
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Array of internationalized defaults for the default action labels.
|
|
29
|
+
*/
|
|
30
|
+
this.actionLabelDefaults = {
|
|
31
|
+
fi: "Toiminnot",
|
|
32
|
+
en: "Actions",
|
|
33
|
+
sv: "Handlingar",
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Array of group names that you want the editable table to display (can be used to hide or show groups depending on conditions).
|
|
37
|
+
* @default { id: "all", label: this.groupsLabelDefaults, actionLabel: this.actionLabelDefaults }.
|
|
38
|
+
* @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}].
|
|
39
|
+
*/
|
|
40
|
+
this.groups = [
|
|
41
|
+
{ id: "all", label: this.groupsLabelDefaults, actionLabel: this.actionLabelDefaults },
|
|
42
|
+
];
|
|
43
|
+
/**
|
|
44
|
+
* Array of actions that are mapped via the map variable to the various groups defined in group.
|
|
45
|
+
* @default undefined
|
|
46
|
+
* @example [{
|
|
47
|
+
variation: "default",
|
|
48
|
+
icon: "action-edit-2",
|
|
49
|
+
id: "edit",
|
|
50
|
+
map: ["success"],
|
|
51
|
+
label: {
|
|
52
|
+
fi: " Label",
|
|
53
|
+
en: " Label",
|
|
54
|
+
sv: " Label",
|
|
55
|
+
}
|
|
56
|
+
}]
|
|
57
|
+
*/
|
|
58
|
+
this.actions = undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Shows or hides the table labels.
|
|
61
|
+
*/
|
|
62
|
+
this.hideGroups = false;
|
|
63
|
+
/**
|
|
64
|
+
* Exposes the aria role for optimizing accessibility.
|
|
65
|
+
*/
|
|
66
|
+
this.accessibleRole = undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Private methods.
|
|
69
|
+
*/
|
|
70
|
+
this.kick = debounce(() => {
|
|
71
|
+
this.tick = Date.now();
|
|
72
|
+
}, 100); // will trigger re-render
|
|
73
|
+
this.filterMap = needle => {
|
|
74
|
+
if (needle === "all") {
|
|
75
|
+
return Array.from(this.items);
|
|
76
|
+
}
|
|
77
|
+
return Array.from(this.items).filter(item => needle === item[1].group);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Component lifecycle events.
|
|
82
|
+
*/
|
|
83
|
+
componentWillLoad() {
|
|
84
|
+
if (typeof this.groups === "string") {
|
|
85
|
+
this.internalGroupArray = sanitizeString(this.groups);
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
this.internalGroupArray = this.groups;
|
|
89
|
+
}
|
|
90
|
+
if (typeof this.actions === "string") {
|
|
91
|
+
this.internalActionsArray = sanitizeString(this.actions);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
this.internalActionsArray = this.actions;
|
|
95
|
+
}
|
|
96
|
+
inheritGlobalTheme(this);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Method to force an update of a tabular data array.
|
|
100
|
+
* when called the method will rerender the entire tabular structure.
|
|
101
|
+
*/
|
|
102
|
+
async updateTable(passedItems = undefined) {
|
|
103
|
+
this.items = new Map(passedItems || this.items);
|
|
104
|
+
this.kick();
|
|
105
|
+
}
|
|
106
|
+
render() {
|
|
107
|
+
return (h(Host, { class: {
|
|
108
|
+
"duet-theme-turva": this.theme === "turva",
|
|
109
|
+
} }, this.internalGroupArray.map(group => {
|
|
110
|
+
const currentGroup = this.filterMap(group.id);
|
|
111
|
+
if (!currentGroup.length) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
return (h("duet-table", { variation: "plain", breakpoint: "none", role: "", margin: this.hideGroups ? "none" : "auto" },
|
|
115
|
+
h("table", { class: "duet-editable-table", "aria-role": this.accessibleRole },
|
|
116
|
+
h("thead", { class: "duet-editable-table-header" },
|
|
117
|
+
h("tr", null,
|
|
118
|
+
h("th", { class: {
|
|
119
|
+
"duet-editable-table-header-hidden": this.hideGroups,
|
|
120
|
+
} }, !this.hideGroups ? (getLocaleString(group.label)) : (h("duet-visually-hidden", null, getLocaleString(group.label)))),
|
|
121
|
+
h("th", { class: {
|
|
122
|
+
"duet-editable-table-header-hidden": this.hideGroups,
|
|
123
|
+
} },
|
|
124
|
+
h("duet-visually-hidden", null, group.actionLabel
|
|
125
|
+
? getLocaleString(group.actionLabel)
|
|
126
|
+
: getLocaleString(this.actionLabelDefaults))))),
|
|
127
|
+
h("tbody", null, currentGroup.map(dataAsArray => {
|
|
128
|
+
const [key, value] = dataAsArray;
|
|
129
|
+
return (h("duet-editable-table-item", { keyName: key, data: Object.assign({}, value), groupId: group.id, part: group.id, actions: this.internalActionsArray }));
|
|
130
|
+
})))));
|
|
131
|
+
})));
|
|
132
|
+
}
|
|
133
|
+
static get is() { return "duet-editable-table"; }
|
|
134
|
+
static get encapsulation() { return "shadow"; }
|
|
135
|
+
static get originalStyleUrls() { return {
|
|
136
|
+
"$": ["duet-editable-table.scss"]
|
|
137
|
+
}; }
|
|
138
|
+
static get styleUrls() { return {
|
|
139
|
+
"$": ["duet-editable-table.css"]
|
|
140
|
+
}; }
|
|
141
|
+
static get properties() { return {
|
|
142
|
+
"items": {
|
|
143
|
+
"type": "unknown",
|
|
144
|
+
"mutable": true,
|
|
145
|
+
"complexType": {
|
|
146
|
+
"original": "DuetEditableTableItems",
|
|
147
|
+
"resolved": "Map<any, DuetEditableTableItemData>",
|
|
148
|
+
"references": {
|
|
149
|
+
"DuetEditableTableItems": {
|
|
150
|
+
"location": "local"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"required": false,
|
|
155
|
+
"optional": false,
|
|
156
|
+
"docs": {
|
|
157
|
+
"tags": [],
|
|
158
|
+
"text": "Map of items that contain list of things."
|
|
159
|
+
},
|
|
160
|
+
"defaultValue": "new Map()"
|
|
161
|
+
},
|
|
162
|
+
"groupsLabelDefaults": {
|
|
163
|
+
"type": "unknown",
|
|
164
|
+
"mutable": false,
|
|
165
|
+
"complexType": {
|
|
166
|
+
"original": "DuetLangObject",
|
|
167
|
+
"resolved": "DuetLangObject",
|
|
168
|
+
"references": {
|
|
169
|
+
"DuetLangObject": {
|
|
170
|
+
"location": "import",
|
|
171
|
+
"path": "../../utils/language-utils"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"required": false,
|
|
176
|
+
"optional": false,
|
|
177
|
+
"docs": {
|
|
178
|
+
"tags": [],
|
|
179
|
+
"text": "Array of internationalized defaults for the default groups labels."
|
|
180
|
+
},
|
|
181
|
+
"defaultValue": "{\n fi: \"Kaikki\",\n en: \"All items\",\n sv: \"Alla objekt\",\n }"
|
|
182
|
+
},
|
|
183
|
+
"actionLabelDefaults": {
|
|
184
|
+
"type": "unknown",
|
|
185
|
+
"mutable": false,
|
|
186
|
+
"complexType": {
|
|
187
|
+
"original": "DuetLangObject",
|
|
188
|
+
"resolved": "DuetLangObject",
|
|
189
|
+
"references": {
|
|
190
|
+
"DuetLangObject": {
|
|
191
|
+
"location": "import",
|
|
192
|
+
"path": "../../utils/language-utils"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"required": false,
|
|
197
|
+
"optional": false,
|
|
198
|
+
"docs": {
|
|
199
|
+
"tags": [],
|
|
200
|
+
"text": "Array of internationalized defaults for the default action labels."
|
|
201
|
+
},
|
|
202
|
+
"defaultValue": "{\n fi: \"Toiminnot\",\n en: \"Actions\",\n sv: \"Handlingar\",\n }"
|
|
203
|
+
},
|
|
204
|
+
"groups": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"mutable": false,
|
|
207
|
+
"complexType": {
|
|
208
|
+
"original": "DuetEditableTableGroupNames | string",
|
|
209
|
+
"resolved": "string | { id: string; label: DuetLangObject; actionLabel?: DuetLangObject; }[]",
|
|
210
|
+
"references": {
|
|
211
|
+
"DuetEditableTableGroupNames": {
|
|
212
|
+
"location": "local"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"required": false,
|
|
217
|
+
"optional": false,
|
|
218
|
+
"docs": {
|
|
219
|
+
"tags": [{
|
|
220
|
+
"name": "default",
|
|
221
|
+
"text": "{ id: \"all\", label: this.groupsLabelDefaults, actionLabel: this.actionLabelDefaults }."
|
|
222
|
+
}, {
|
|
223
|
+
"name": "example",
|
|
224
|
+
"text": "[{ id: \"success\", label: {fi: \"Onnistunut\", en: \"Success\", sv: \"Alt klart\", }}]."
|
|
225
|
+
}],
|
|
226
|
+
"text": "Array of group names that you want the editable table to display (can be used to hide or show groups depending on conditions)."
|
|
227
|
+
},
|
|
228
|
+
"attribute": "groups",
|
|
229
|
+
"reflect": false,
|
|
230
|
+
"defaultValue": "[\n { id: \"all\", label: this.groupsLabelDefaults, actionLabel: this.actionLabelDefaults },\n ]"
|
|
231
|
+
},
|
|
232
|
+
"actions": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"mutable": false,
|
|
235
|
+
"complexType": {
|
|
236
|
+
"original": "DuetEditableTableActions | string",
|
|
237
|
+
"resolved": "string | { icon: string; color: string; color_hover: string; id: string; map?: string[]; label?: DuetLangObject; }[]",
|
|
238
|
+
"references": {
|
|
239
|
+
"DuetEditableTableActions": {
|
|
240
|
+
"location": "import",
|
|
241
|
+
"path": "./duet-editable-table-item"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"required": false,
|
|
246
|
+
"optional": false,
|
|
247
|
+
"docs": {
|
|
248
|
+
"tags": [{
|
|
249
|
+
"name": "default",
|
|
250
|
+
"text": "undefined"
|
|
251
|
+
}, {
|
|
252
|
+
"name": "example",
|
|
253
|
+
"text": "[{\nvariation: \"default\",\nicon: \"action-edit-2\",\nid: \"edit\",\nmap: [\"success\"],\nlabel: {\n fi: \" Label\",\n en: \" Label\",\n sv: \" Label\",\n}\n}]"
|
|
254
|
+
}],
|
|
255
|
+
"text": "Array of actions that are mapped via the map variable to the various groups defined in group."
|
|
256
|
+
},
|
|
257
|
+
"attribute": "actions",
|
|
258
|
+
"reflect": false,
|
|
259
|
+
"defaultValue": "undefined"
|
|
260
|
+
},
|
|
261
|
+
"hideGroups": {
|
|
262
|
+
"type": "boolean",
|
|
263
|
+
"mutable": false,
|
|
264
|
+
"complexType": {
|
|
265
|
+
"original": "boolean",
|
|
266
|
+
"resolved": "boolean",
|
|
267
|
+
"references": {}
|
|
268
|
+
},
|
|
269
|
+
"required": false,
|
|
270
|
+
"optional": false,
|
|
271
|
+
"docs": {
|
|
272
|
+
"tags": [],
|
|
273
|
+
"text": "Shows or hides the table labels."
|
|
274
|
+
},
|
|
275
|
+
"attribute": "hide-table-labels",
|
|
276
|
+
"reflect": false,
|
|
277
|
+
"defaultValue": "false"
|
|
278
|
+
},
|
|
279
|
+
"accessibleRole": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"mutable": false,
|
|
282
|
+
"complexType": {
|
|
283
|
+
"original": "string",
|
|
284
|
+
"resolved": "string",
|
|
285
|
+
"references": {}
|
|
286
|
+
},
|
|
287
|
+
"required": false,
|
|
288
|
+
"optional": false,
|
|
289
|
+
"docs": {
|
|
290
|
+
"tags": [],
|
|
291
|
+
"text": "Exposes the aria role for optimizing accessibility."
|
|
292
|
+
},
|
|
293
|
+
"attribute": "accessible-role",
|
|
294
|
+
"reflect": false,
|
|
295
|
+
"defaultValue": "undefined"
|
|
296
|
+
},
|
|
297
|
+
"theme": {
|
|
298
|
+
"type": "string",
|
|
299
|
+
"mutable": true,
|
|
300
|
+
"complexType": {
|
|
301
|
+
"original": "DuetTheme",
|
|
302
|
+
"resolved": "\"\" | \"default\" | \"turva\"",
|
|
303
|
+
"references": {
|
|
304
|
+
"DuetTheme": {
|
|
305
|
+
"location": "import",
|
|
306
|
+
"path": "../../common-types"
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"required": false,
|
|
311
|
+
"optional": false,
|
|
312
|
+
"docs": {
|
|
313
|
+
"tags": [],
|
|
314
|
+
"text": "Theme of the table."
|
|
315
|
+
},
|
|
316
|
+
"attribute": "theme",
|
|
317
|
+
"reflect": false
|
|
318
|
+
}
|
|
319
|
+
}; }
|
|
320
|
+
static get states() { return {
|
|
321
|
+
"tick": {}
|
|
322
|
+
}; }
|
|
323
|
+
static get methods() { return {
|
|
324
|
+
"updateTable": {
|
|
325
|
+
"complexType": {
|
|
326
|
+
"signature": "(passedItems?: DuetEditableTableItems) => Promise<void>",
|
|
327
|
+
"parameters": [{
|
|
328
|
+
"tags": [],
|
|
329
|
+
"text": ""
|
|
330
|
+
}],
|
|
331
|
+
"references": {
|
|
332
|
+
"Promise": {
|
|
333
|
+
"location": "global"
|
|
334
|
+
},
|
|
335
|
+
"DuetEditableTableItems": {
|
|
336
|
+
"location": "local"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"return": "Promise<void>"
|
|
340
|
+
},
|
|
341
|
+
"docs": {
|
|
342
|
+
"text": "Method to force an update of a tabular data array.\nwhen called the method will rerender the entire tabular structure.",
|
|
343
|
+
"tags": []
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}; }
|
|
347
|
+
static get elementRef() { return "element"; }
|
|
348
|
+
}
|