@duetds/components 4.30.1 → 4.33.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 +1531 -442
- package/lib/cjs/{dom-e89ebf90.js → dom-c850c8d7.js} +1 -1
- package/lib/cjs/duet-alert.cjs.entry.js +4 -2
- package/lib/cjs/duet-badge.cjs.entry.js +2 -2
- package/lib/cjs/duet-button_2.cjs.entry.js +6 -5
- package/lib/cjs/duet-caption_4.cjs.entry.js +21 -15
- package/lib/cjs/duet-card.cjs.entry.js +6 -6
- package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
- package/lib/cjs/duet-choice_2.cjs.entry.js +55 -25
- package/lib/cjs/duet-collapsible.cjs.entry.js +5 -2
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +23 -13
- package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-editable-table-button.cjs.entry.js +89 -0
- package/lib/cjs/duet-editable-table_4.cjs.entry.js +1445 -0
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +4 -4
- package/lib/cjs/duet-grid_2.cjs.entry.js +52 -4
- package/lib/cjs/duet-header_2.cjs.entry.js +26 -10
- package/lib/cjs/duet-hero.cjs.entry.js +6 -6
- package/lib/cjs/duet-icon.cjs.entry.js +21 -19
- package/lib/cjs/duet-input_2.cjs.entry.js +7 -7
- 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 +8 -7
- package/lib/cjs/duet-notification_2.cjs.entry.js +6 -5
- package/lib/cjs/duet-number-input.cjs.entry.js +36 -15
- 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 +6 -6
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-tab_2.cjs.entry.js +12 -6
- 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 +21 -10
- package/lib/cjs/duet-tray.cjs.entry.js +21 -10
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +100 -0
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +4 -4
- package/lib/cjs/{focus-utils-7605778f.js → focus-utils-b609a7a5.js} +1 -1
- package/lib/cjs/{index-0c949193.js → index-9a57d969.js} +95 -77
- package/lib/cjs/{language-utils-70d6a9a4.js → language-utils-aa282901.js} +28 -9
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{shadow-css-0c8c175b.js → shadow-css-e3edeed1.js} +9 -10
- package/lib/cjs/{string-utils-a6de43d8.js → string-utils-267e3dbb.js} +7 -0
- 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 +16 -8
- package/lib/collection/components/duet-alert/duet-alert.js +12 -6
- package/lib/collection/components/duet-badge/duet-badge.css +1 -0
- package/lib/collection/components/duet-button/duet-button.js +17 -15
- package/lib/collection/components/duet-card/duet-card.css +30 -7
- package/lib/collection/components/duet-card/duet-card.js +4 -3
- package/lib/collection/components/duet-checkbox/duet-checkbox.css +1 -1
- package/lib/collection/components/duet-choice/duet-choice.css +16 -3
- package/lib/collection/components/duet-choice/duet-choice.js +122 -36
- package/lib/collection/components/duet-choice-group/duet-choice-group.css +1 -0
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +4 -4
- package/lib/collection/components/duet-date-picker/duet-date-picker.css +1 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +78 -43
- package/lib/collection/components/duet-editable-table/duet-editable-table-button.css +32 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table-button.js +218 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table-item.css +36 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table-item.js +203 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table-tabledata.js +13 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table.css +16 -0
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +348 -0
- package/lib/collection/components/duet-footer/duet-footer.js +17 -15
- package/lib/collection/components/duet-grid/duet-grid.js +57 -6
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +4 -4
- package/lib/collection/components/duet-header/duet-header.js +60 -35
- package/lib/collection/components/duet-heading/duet-heading.css +4 -0
- package/lib/collection/components/duet-heading/duet-heading.js +7 -6
- package/lib/collection/components/duet-hero/duet-hero.js +20 -15
- package/lib/collection/components/duet-icon/duet-icon.js +2 -6
- package/lib/collection/components/duet-icon/icon-utils.js +20 -13
- 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-label/duet-label.css +2 -0
- package/lib/collection/components/duet-link/duet-link.js +18 -19
- package/lib/collection/components/duet-logo/duet-logo.js +4 -4
- package/lib/collection/components/duet-modal/duet-modal.js +22 -17
- package/lib/collection/components/duet-notification/duet-notification.js +8 -8
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +20 -15
- package/lib/collection/components/duet-number-input/duet-number-input.js +153 -29
- package/lib/collection/components/duet-paragraph/duet-paragraph.css +6 -0
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +34 -3
- package/lib/collection/components/duet-progress/duet-progress.css +103 -0
- package/lib/collection/components/duet-progress/duet-progress.js +240 -0
- package/lib/collection/components/duet-radio/duet-radio.js +6 -6
- package/lib/collection/components/duet-select/duet-select.css +15 -0
- package/lib/collection/components/duet-select/duet-select.js +3 -3
- package/lib/collection/components/duet-step/duet-step.js +8 -8
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +2 -2
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +43 -12
- package/lib/collection/components/duet-textarea/duet-textarea.css +19 -0
- package/lib/collection/components/duet-textarea/duet-textarea.js +5 -4
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +82 -20
- package/lib/collection/components/duet-tray/duet-tray.js +79 -17
- package/lib/collection/components/duet-upload/duet-upload.css +17 -86
- package/lib/collection/components/duet-upload/duet-upload.js +587 -164
- package/lib/collection/components/duet-upload/errorcodes.utils.js +16 -4
- package/lib/collection/components/duet-upload/upload-editable-item-error.js +16 -0
- package/lib/collection/components/duet-upload/upload-editable-item-inprogres.js +8 -0
- package/lib/collection/components/duet-upload/upload-editable-item-success.js +30 -0
- package/lib/collection/components/duet-upload/{duet-upload-validators.js → upload-validators.js} +0 -0
- package/lib/collection/components/duet-upload/xhr.helpers.js +2 -6
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +217 -0
- package/lib/collection/utils/fixture-utils.js +7 -5
- package/lib/collection/utils/js-utils.js +12 -0
- package/lib/collection/utils/language-utils.js +26 -9
- package/lib/collection/utils/string-utils.js +6 -0
- package/lib/collection/utils/watch-options.js +35 -6
- package/lib/custom-elements-bundle/index.d.ts +30 -0
- package/lib/custom-elements-bundle/index.js +1651 -730
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/p-00210a63.entry.js +4 -0
- package/lib/duet/{p-66dde4d2.entry.js → p-0205162d.entry.js} +1 -1
- package/lib/duet/{p-3dc9d15d.system.entry.js → p-020a2c42.system.entry.js} +1 -1
- package/lib/duet/{p-59a07cf9.entry.js → p-079795e5.entry.js} +1 -1
- package/lib/duet/p-09013a48.system.entry.js +4 -0
- package/lib/duet/p-0a89315d.entry.js +4 -0
- package/lib/duet/p-0d22396e.system.js +16 -0
- package/lib/duet/p-0e90f075.system.entry.js +4 -0
- package/lib/duet/p-12721178.js +4 -0
- package/lib/duet/p-19d7d9d5.system.entry.js +4 -0
- package/lib/duet/p-1cbc6269.entry.js +4 -0
- package/lib/duet/p-2297d13f.system.entry.js +4 -0
- package/lib/duet/p-2764f081.js +4 -0
- package/lib/duet/p-2a822e91.system.entry.js +4 -0
- package/lib/duet/{p-f81d8534.entry.js → p-2fdcff82.entry.js} +1 -1
- package/lib/duet/p-3013c9bb.system.entry.js +4 -0
- package/lib/duet/p-3212a556.entry.js +4 -0
- package/lib/duet/{p-dee41056.system.entry.js → p-323643af.system.entry.js} +1 -1
- package/lib/duet/p-32b7397d.entry.js +4 -0
- package/lib/duet/{p-bd9a7d8f.js → p-35a3794e.js} +0 -0
- package/lib/duet/p-360086f8.entry.js +4 -0
- package/lib/duet/{p-f71f12ed.entry.js → p-37cda933.entry.js} +1 -1
- package/lib/duet/{p-62806bb6.system.entry.js → p-3ba62cf1.system.entry.js} +1 -1
- package/lib/duet/{p-322d1c38.js → p-3c1971d8.js} +1 -1
- package/lib/duet/p-3fd9190b.system.entry.js +4 -0
- package/lib/duet/p-43847557.entry.js +4 -0
- package/lib/duet/{p-bbc229d8.system.entry.js → p-4b6e8558.system.entry.js} +1 -1
- package/lib/duet/p-4c5eedf8.entry.js +4 -0
- package/lib/duet/p-4c827f0d.entry.js +4 -0
- package/lib/duet/{p-de2be65b.system.js → p-51955fc0.system.js} +1 -1
- package/lib/duet/p-5cfc53f9.entry.js +4 -0
- package/lib/duet/p-5decc259.system.entry.js +4 -0
- package/lib/duet/p-5e0071d6.js +4 -0
- package/lib/duet/p-5e77432e.system.entry.js +4 -0
- package/lib/duet/{p-ce1374a4.system.entry.js → p-6024e484.system.entry.js} +1 -1
- package/lib/duet/p-68008644.entry.js +4 -0
- package/lib/duet/p-69385972.system.entry.js +4 -0
- package/lib/duet/p-6a4d85ed.system.entry.js +4 -0
- package/lib/duet/{p-f82709ba.entry.js → p-6a5ab3eb.entry.js} +1 -1
- package/lib/duet/p-6e363557.system.js +4 -0
- package/lib/duet/p-6e4b1c0d.entry.js +4 -0
- package/lib/duet/p-6f36f647.system.entry.js +4 -0
- package/lib/duet/p-6fa6c4fb.system.entry.js +4 -0
- package/lib/duet/p-70fafc98.system.js +4 -0
- package/lib/duet/p-71a77368.system.entry.js +4 -0
- package/lib/duet/p-73f9db25.system.entry.js +4 -0
- package/lib/duet/p-74f4a0d8.system.entry.js +4 -0
- package/lib/duet/p-7530be48.system.entry.js +4 -0
- package/lib/duet/{p-36007600.entry.js → p-75edcaed.entry.js} +1 -1
- package/lib/duet/{p-d1817efe.system.entry.js → p-7a8597c2.system.entry.js} +1 -1
- package/lib/duet/{p-1cfe38b1.system.entry.js → p-85ad012a.system.entry.js} +1 -1
- package/lib/duet/{p-a321a98c.entry.js → p-85e52be8.entry.js} +1 -1
- package/lib/duet/p-8aaf3383.entry.js +4 -0
- package/lib/duet/p-986779fb.js +4 -0
- package/lib/duet/p-987edcd0.js +15 -0
- package/lib/duet/{p-35e45c19.system.js → p-9a945278.system.js} +1 -1
- package/lib/duet/p-9e79e033.entry.js +4 -0
- package/lib/duet/{p-7e108b7e.entry.js → p-9f35d682.entry.js} +1 -1
- package/lib/duet/{p-f71e337e.system.entry.js → p-a2a00146.system.entry.js} +1 -1
- package/lib/duet/p-a545398c.entry.js +4 -0
- package/lib/duet/{p-2826f987.js → p-ad07f399.js} +1 -1
- package/lib/duet/{p-4a7911fd.entry.js → p-af49d4f9.entry.js} +1 -1
- package/lib/duet/{p-1c41525a.entry.js → p-b25edbbe.entry.js} +1 -1
- package/lib/duet/p-b314348c.system.js +4 -0
- package/lib/duet/p-b4111e88.system.entry.js +4 -0
- package/lib/duet/p-b5c7d304.system.entry.js +4 -0
- package/lib/duet/p-b6e9860a.entry.js +4 -0
- package/lib/duet/p-ba18b56e.entry.js +4 -0
- package/lib/duet/p-bf4596bd.system.entry.js +4 -0
- package/lib/duet/{p-4265de16.system.entry.js → p-bf9f6d80.system.entry.js} +1 -1
- package/lib/duet/{p-fd98468a.system.js → p-c18a599e.system.js} +0 -0
- package/lib/duet/p-c1a1ea1b.js +4 -0
- package/lib/duet/p-c742856b.system.entry.js +4 -0
- package/lib/duet/p-cbdb9e98.system.entry.js +4 -0
- package/lib/duet/{p-27d538f7.system.entry.js → p-cf319832.system.entry.js} +1 -1
- package/lib/duet/p-d67fff56.entry.js +4 -0
- package/lib/duet/{p-031c2cd8.system.entry.js → p-dd76db9b.system.entry.js} +1 -1
- package/lib/duet/p-ddb6344c.system.js +4 -0
- package/lib/duet/{p-345ea4f2.system.entry.js → p-de5ec54e.system.entry.js} +1 -1
- package/lib/duet/p-df6f39a3.entry.js +4 -0
- package/lib/duet/p-e1dc86b5.system.js +4 -0
- package/lib/duet/p-e2596ea0.entry.js +4 -0
- package/lib/duet/p-e370c18b.entry.js +4 -0
- package/lib/duet/{p-e26116e0.system.entry.js → p-e48f3a32.system.entry.js} +1 -1
- package/lib/duet/p-e5031543.entry.js +4 -0
- package/lib/duet/p-e60ee8b0.entry.js +4 -0
- package/lib/duet/p-e70088d5.entry.js +4 -0
- package/lib/duet/p-e7b90769.system.entry.js +4 -0
- package/lib/duet/{p-a88df408.entry.js → p-e8123a53.entry.js} +1 -1
- package/lib/duet/p-eb55ccd2.system.js +4 -0
- package/lib/duet/{p-2d2c45f9.entry.js → p-ef7251bf.entry.js} +1 -1
- package/lib/duet/p-f0cfe033.system.entry.js +4 -0
- package/lib/duet/p-f2a087a8.system.entry.js +4 -0
- package/lib/duet/p-f5a55b3c.entry.js +4 -0
- package/lib/duet/p-fd613733.entry.js +4 -0
- package/lib/esm/{dom-21034390.js → dom-58cd15f6.js} +1 -1
- package/lib/esm/duet-alert.entry.js +4 -2
- package/lib/esm/duet-badge.entry.js +2 -2
- package/lib/esm/duet-button_2.entry.js +6 -5
- package/lib/esm/duet-caption_4.entry.js +21 -15
- package/lib/esm/duet-card.entry.js +6 -6
- package/lib/esm/duet-checkbox.entry.js +2 -2
- package/lib/esm/duet-choice_2.entry.js +56 -26
- package/lib/esm/duet-collapsible.entry.js +5 -2
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +23 -13
- package/lib/esm/duet-divider_2.entry.js +1 -1
- package/lib/esm/duet-editable-table-button.entry.js +85 -0
- package/lib/esm/duet-editable-table_4.entry.js +1438 -0
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +4 -4
- package/lib/esm/duet-grid_2.entry.js +52 -4
- package/lib/esm/duet-header_2.entry.js +26 -10
- package/lib/esm/duet-hero.entry.js +6 -6
- package/lib/esm/duet-icon.entry.js +21 -19
- package/lib/esm/duet-input_2.entry.js +7 -7
- 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 +8 -7
- package/lib/esm/duet-notification_2.entry.js +6 -5
- package/lib/esm/duet-number-input.entry.js +36 -15
- 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 +6 -6
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-tab_2.entry.js +12 -6
- 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 +21 -10
- package/lib/esm/duet-tray.entry.js +21 -10
- package/lib/esm/duet-upload-aria-status.entry.js +96 -0
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{focus-utils-0b12f0df.js → focus-utils-aeb6ca93.js} +1 -1
- package/lib/esm/{index-f70ddc7f.js → index-e8c7d36f.js} +94 -78
- package/lib/esm/{language-utils-ab9c3afc.js → language-utils-344d894c.js} +28 -10
- package/lib/esm/loader.js +3 -3
- package/lib/esm/{shadow-css-31e2d504.js → shadow-css-7c726abb.js} +9 -10
- package/lib/esm/{string-utils-69cf0d09.js → string-utils-2f1793b8.js} +7 -1
- 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-21034390.js → dom-58cd15f6.js} +0 -0
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +2 -2
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +1 -1
- package/lib/esm-es5/duet-collapsible.entry.js +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.entry.js +4 -0
- package/lib/esm-es5/duet-editable-table_4.entry.js +4 -0
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +2 -2
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +2 -2
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.entry.js +2 -2
- package/lib/esm-es5/duet-progress.entry.js +4 -0
- package/lib/esm-es5/duet-radio_2.entry.js +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-tab_2.entry.js +2 -2
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +1 -1
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload-aria-status.entry.js +4 -0
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/focus-utils-aeb6ca93.js +4 -0
- package/lib/esm-es5/index-e8c7d36f.js +4 -0
- package/lib/esm-es5/language-utils-344d894c.js +4 -0
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/shadow-css-7c726abb.js +15 -0
- package/lib/esm-es5/{string-utils-69cf0d09.js → string-utils-2f1793b8.js} +1 -1
- 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/html.html-data.json +4906 -0
- package/lib/types/components/duet-alert/duet-alert.d.ts +2 -1
- package/lib/types/components/duet-button/duet-button.d.ts +1 -1
- package/lib/types/components/duet-choice/duet-choice.d.ts +24 -5
- package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +15 -9
- 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-footer/duet-footer.d.ts +1 -1
- package/lib/types/components/duet-grid/duet-grid.d.ts +16 -2
- package/lib/types/components/duet-header/duet-header.d.ts +21 -5
- package/lib/types/components/duet-heading/duet-heading.d.ts +2 -2
- package/lib/types/components/duet-hero/duet-hero.d.ts +3 -3
- package/lib/types/components/duet-icon/duet-icon.d.ts +1 -1
- package/lib/types/components/duet-icon/icon-utils.d.ts +1 -1
- package/lib/types/components/duet-link/duet-link.d.ts +2 -3
- package/lib/types/components/duet-modal/duet-modal.d.ts +3 -3
- package/lib/types/components/duet-notification-drawer/duet-notification-drawer.d.ts +3 -3
- package/lib/types/components/duet-number-input/duet-number-input.d.ts +21 -0
- 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-tab-group/duet-tab-group.d.ts +6 -0
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +11 -0
- package/lib/types/components/duet-tray/duet-tray.d.ts +11 -0
- package/lib/types/components/duet-upload/duet-upload.d.ts +124 -31
- package/lib/types/components/duet-upload/errorcodes.utils.d.ts +1 -0
- package/lib/types/components/duet-upload/upload-editable-item-error.d.ts +7 -0
- package/lib/types/components/duet-upload/upload-editable-item-inprogres.d.ts +7 -0
- package/lib/types/components/duet-upload/upload-editable-item-success.d.ts +8 -0
- package/lib/types/components/duet-upload/{duet-upload-validators.d.ts → upload-validators.d.ts} +0 -0
- package/lib/types/components/duet-upload/xhr.helpers.d.ts +7 -1
- package/lib/types/components/duet-upload-aria-status/duet-upload-aria-status.d.ts +49 -0
- package/lib/types/components.d.ts +619 -87
- package/lib/types/utils/js-utils.d.ts +1 -0
- package/lib/types/utils/language-utils.d.ts +8 -3
- package/lib/types/utils/string-utils.d.ts +1 -0
- package/lib/types/utils/watch-options.d.ts +2 -0
- package/package.json +20 -15
- package/lib/cjs/duet-table.cjs.entry.js +0 -132
- package/lib/cjs/duet-upload.cjs.entry.js +0 -866
- package/lib/collection/components/duet-upload/duet-upload-file-list.js +0 -49
- package/lib/duet/p-0733c303.system.entry.js +0 -4
- package/lib/duet/p-095060cc.js +0 -4
- package/lib/duet/p-156864a1.system.entry.js +0 -4
- package/lib/duet/p-15c15c6a.js +0 -15
- package/lib/duet/p-1911dfe7.system.entry.js +0 -4
- package/lib/duet/p-2834a302.entry.js +0 -4
- package/lib/duet/p-28a3d38f.system.entry.js +0 -4
- package/lib/duet/p-2a1a9f9f.entry.js +0 -4
- package/lib/duet/p-2a4d7c5b.system.entry.js +0 -4
- package/lib/duet/p-4095dba5.entry.js +0 -4
- package/lib/duet/p-418b2ce7.system.js +0 -4
- package/lib/duet/p-4289b543.entry.js +0 -4
- package/lib/duet/p-43e39d98.system.js +0 -4
- package/lib/duet/p-46a3ae43.system.js +0 -4
- package/lib/duet/p-4a38cf9d.entry.js +0 -4
- package/lib/duet/p-4be8e814.entry.js +0 -4
- package/lib/duet/p-591b2137.entry.js +0 -4
- package/lib/duet/p-5c5bdb06.system.entry.js +0 -4
- package/lib/duet/p-5f70e318.entry.js +0 -4
- package/lib/duet/p-62c294d6.system.entry.js +0 -4
- package/lib/duet/p-6a356ab1.system.js +0 -4
- package/lib/duet/p-6c2729da.js +0 -4
- package/lib/duet/p-6f107847.system.entry.js +0 -4
- package/lib/duet/p-77a5fe4c.system.js +0 -4
- package/lib/duet/p-7809e78b.system.entry.js +0 -4
- package/lib/duet/p-7a36d76f.system.entry.js +0 -4
- package/lib/duet/p-7ee52f58.entry.js +0 -4
- package/lib/duet/p-884693f1.entry.js +0 -4
- package/lib/duet/p-8977b722.entry.js +0 -4
- package/lib/duet/p-89db3b94.entry.js +0 -4
- package/lib/duet/p-8cfce39e.system.entry.js +0 -4
- package/lib/duet/p-8ffe1461.system.entry.js +0 -4
- package/lib/duet/p-9381c2d4.entry.js +0 -4
- package/lib/duet/p-9a450c9a.entry.js +0 -4
- package/lib/duet/p-9a89ec39.js +0 -4
- package/lib/duet/p-9bbfe606.system.entry.js +0 -4
- package/lib/duet/p-a0a066cb.system.entry.js +0 -4
- package/lib/duet/p-a6096b05.system.entry.js +0 -4
- package/lib/duet/p-a89d5d7c.entry.js +0 -4
- package/lib/duet/p-b07055fd.system.entry.js +0 -4
- package/lib/duet/p-b4374f0e.entry.js +0 -4
- package/lib/duet/p-b456d684.system.entry.js +0 -4
- package/lib/duet/p-bd18c93f.js +0 -4
- package/lib/duet/p-bddb1c15.system.entry.js +0 -4
- package/lib/duet/p-c0b95b58.entry.js +0 -4
- package/lib/duet/p-c3688975.entry.js +0 -4
- package/lib/duet/p-c4d183e6.entry.js +0 -4
- package/lib/duet/p-c9303f9a.entry.js +0 -4
- package/lib/duet/p-cd4e8ccf.js +0 -4
- package/lib/duet/p-ceb75b35.system.entry.js +0 -4
- package/lib/duet/p-cf243bcb.system.entry.js +0 -4
- package/lib/duet/p-d37c8a05.system.js +0 -4
- package/lib/duet/p-d989af11.entry.js +0 -4
- package/lib/duet/p-e58ca7af.system.js +0 -16
- package/lib/duet/p-e6128d82.system.entry.js +0 -4
- package/lib/duet/p-e86cdc17.entry.js +0 -4
- package/lib/duet/p-eadb29c7.entry.js +0 -4
- package/lib/duet/p-f30b14d6.system.entry.js +0 -4
- package/lib/duet/p-f79f8da1.entry.js +0 -4
- package/lib/duet/p-fc397e03.system.entry.js +0 -4
- package/lib/esm/duet-table.entry.js +0 -128
- package/lib/esm/duet-upload.entry.js +0 -862
- package/lib/esm/watch-options-de55ea78.js +0 -35
- package/lib/esm-es5/duet-table.entry.js +0 -4
- package/lib/esm-es5/duet-upload.entry.js +0 -4
- package/lib/esm-es5/focus-utils-0b12f0df.js +0 -4
- package/lib/esm-es5/index-f70ddc7f.js +0 -4
- package/lib/esm-es5/language-utils-ab9c3afc.js +0 -4
- package/lib/esm-es5/shadow-css-31e2d504.js +0 -15
- package/lib/esm-es5/tokens.module-edb66c04.js +0 -4
- package/lib/esm-es5/watch-options-de55ea78.js +0 -4
- package/lib/types/components/duet-upload/duet-upload-file-list.d.ts +0 -9
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
|
+
|
|
8
|
+
const index = require('./index-9a57d969.js');
|
|
9
|
+
|
|
10
|
+
let DuetUploadAriaStatus = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
/**
|
|
14
|
+
* State() variables
|
|
15
|
+
*/
|
|
16
|
+
this.statusMessage = null;
|
|
17
|
+
/**
|
|
18
|
+
* Status labels used in the component
|
|
19
|
+
*/
|
|
20
|
+
this.statusMessageLabel = null;
|
|
21
|
+
/**
|
|
22
|
+
* Adds accessible label that is read aloud
|
|
23
|
+
*/
|
|
24
|
+
this.accessibleAriaLive = "polite";
|
|
25
|
+
/**
|
|
26
|
+
* valid file amount
|
|
27
|
+
*/
|
|
28
|
+
this.valid = undefined;
|
|
29
|
+
/**
|
|
30
|
+
* total files
|
|
31
|
+
*/
|
|
32
|
+
this.total = undefined;
|
|
33
|
+
/**
|
|
34
|
+
* invalid file amount
|
|
35
|
+
*/
|
|
36
|
+
this.invalid = undefined;
|
|
37
|
+
/**
|
|
38
|
+
* valid file amount
|
|
39
|
+
*/
|
|
40
|
+
this.inprogress = undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Private functions
|
|
43
|
+
*/
|
|
44
|
+
this.replacePlaceHolders = (statusString) => {
|
|
45
|
+
const addFiles = (amount) => {
|
|
46
|
+
return amount > 1 ? `${amount} ${this.statusMessageLabel.files}` : `${amount} ${this.statusMessageLabel.file}`;
|
|
47
|
+
};
|
|
48
|
+
return statusString
|
|
49
|
+
.replace("{filesUploaded}", addFiles(this.valid))
|
|
50
|
+
.replace("{filesInProgress}", addFiles(this.inprogress))
|
|
51
|
+
.replace("{filesTotal}", addFiles(this.total))
|
|
52
|
+
.replace("{filesWithErrors}", addFiles(this.invalid));
|
|
53
|
+
};
|
|
54
|
+
this.getStatusMessage = () => {
|
|
55
|
+
const { done, inProgress, doneWithErrors, inProgressWithErrors } = this.statusMessageLabel;
|
|
56
|
+
const hasErrors = this.invalid > 0;
|
|
57
|
+
const isInProgress = this.inprogress > 0;
|
|
58
|
+
const isInProgressWithErrors = this.inprogress > 0 && hasErrors;
|
|
59
|
+
const isDone = this.valid === this.total && !isInProgress && !hasErrors;
|
|
60
|
+
const isDoneWithErrors = this.valid + this.invalid === this.total && !isInProgress;
|
|
61
|
+
if (isDone) {
|
|
62
|
+
this.statusMessage = this.replacePlaceHolders(done);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
else if (isInProgressWithErrors) {
|
|
66
|
+
this.statusMessage = this.replacePlaceHolders(inProgressWithErrors);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
else if (isInProgress) {
|
|
70
|
+
this.statusMessage = this.replacePlaceHolders(inProgress);
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
else if (isDoneWithErrors) {
|
|
74
|
+
this.statusMessage = this.replacePlaceHolders(doneWithErrors);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
return;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
watchHandler(newValue, oldValue) {
|
|
81
|
+
if (newValue !== oldValue) {
|
|
82
|
+
this.getStatusMessage();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* render() function
|
|
87
|
+
* Always the last one in the class.
|
|
88
|
+
*/
|
|
89
|
+
render() {
|
|
90
|
+
return (index.h(index.Host, { role: "status", "aria-live": "assertive", "aria-atomic": "true", "aria-relevant": "all" }, index.h("duet-visually-hidden", null, this.statusMessage)));
|
|
91
|
+
}
|
|
92
|
+
static get watchers() { return {
|
|
93
|
+
"valid": ["watchHandler"],
|
|
94
|
+
"invalid": ["watchHandler"],
|
|
95
|
+
"inprogress": ["watchHandler"],
|
|
96
|
+
"total": ["watchHandler"]
|
|
97
|
+
}; }
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
exports.duet_upload_aria_status = DuetUploadAriaStatus;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-9a57d969.js');
|
|
9
9
|
|
|
10
10
|
const duetVisuallyHiddenCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}";
|
|
11
11
|
|
package/lib/cjs/duet.cjs.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const index = require('./index-
|
|
6
|
+
const index = require('./index-9a57d969.js');
|
|
7
7
|
const appGlobals = require('./app-globals-a032b236.js');
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
|
-
Stencil Client Patch Browser v2.
|
|
10
|
+
Stencil Client Patch Browser v2.11.0 | MIT Licensed | https://stenciljs.com
|
|
11
11
|
*/
|
|
12
12
|
const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
|
|
13
13
|
const patchBrowser = () => {
|
|
@@ -38,7 +38,7 @@ const patchBrowser = () => {
|
|
|
38
38
|
if (!index.win.customElements) {
|
|
39
39
|
// module support, but no custom elements support (Old Edge)
|
|
40
40
|
// @ts-ignore
|
|
41
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "polyfills-dom" */ './dom-
|
|
41
|
+
return Promise.resolve().then(function () { return require(/* webpackChunkName: "polyfills-dom" */ './dom-c850c8d7.js'); }).then(() => opts);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
return index.promiseResolve(opts);
|
|
@@ -83,5 +83,5 @@ const patchDynamicImport = (base, orgScriptElm) => {
|
|
|
83
83
|
|
|
84
84
|
patchBrowser().then(options => {
|
|
85
85
|
appGlobals.globalScripts();
|
|
86
|
-
return index.bootstrapLazy(JSON.parse("[[\"duet-choice_2.cjs\",[[6,\"duet-choice-group\",{\"direction\":[1],\"margin\":[1],\"theme\":[1025],\"error\":[1],\"name\":[1],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"caption\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"responsive\":[4],\"value\":[1537],\"disabled\":[4]}],[6,\"duet-choice\",{\"theme\":[1025],\"label\":[1],\"accessibleLabelInfoButtonDefaults\":[16],\"accessibleLabelInfoButton\":[1,\"accessible-label-info-button\"],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"caption\":[1],\"value\":[1537],\"type\":[513],\"name\":[1],\"checked\":[1540],\"collapsible\":[4],\"margin\":[1],\"icon\":[1],\"expand\":[4],\"padding\":[1],\"identifier\":[1],\"groupDirection\":[1,\"group-direction\"],\"groupDisabled\":[4,\"group-disabled\"],\"groupResponsive\":[4,\"group-responsive\"],\"disabled\":[516],\"required\":[4],\"isHovering\":[32],\"isInfoOpen\":[32],\"isBlurred\":[32],\"setFocus\":[64]},[[2,\"blur\",\"handleHostBlur\"],[2,\"keydown\",\"handleHostKeyDown\"],[2,\"keyup\",\"handleHostKeyUp\"]]]]],[\"duet-upload.cjs\",[[1,\"duet-upload\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"external\":[4],\"uri\":[1],\"caption\":[1],\"buttonLabelDefaults\":[16],\"buttonLabel\":[1,\"button-label\"],\"accessibleButtonLabel\":[1,\"accessible-button-label\"],\"theme\":[1025],\"disabled\":[516],\"identifier\":[1],\"margin\":[1],\"required\":[4],\"files\":[1040],\"valid\":[1540],\"labelDefaults\":[16],\"label\":[1],\"descriptionDefaults\":[16],\"description\":[1],\"fileListEmptyDefaults\":[16],\"fileListEmpty\":[1,\"file-list-empty\"],\"error\":[1],\"labelHidden\":[4,\"label-hidden\"],\"name\":[1],\"capture\":[8],\"maxBytes\":[2,\"max-bytes\"],\"maxBytesTotal\":[2,\"max-bytes-total\"],\"maxFiles\":[2,\"max-files\"],\"allowedExtensions\":[1,\"allowed-extensions\"],\"allowedMimetypes\":[1,\"allowed-mimetypes\"],\"multiple\":[4],\"limitSelection\":[4,\"limit-selection\"],\"value\":[1025],\"tick\":[32],\"setFocus\":[64],\"getFiles\":[64]}]]],[\"duet-hero.cjs\",[[1,\"duet-hero\",{\"theme\":[1025],\"heading\":[1],\"preHeading\":[1,\"pre-heading\"],\"level\":[1],\"description\":[1],\"icon\":[1],\"iconSize\":[1,\"icon-size\"],\"iconRight\":[4,\"icon-right\"],\"categoryIcon\":[1,\"category-icon\"],\"categoryIconColor\":[1,\"category-icon-color\"],\"buttonLabel\":[1,\"button-label\"],\"language\":[1025],\"accessibleLabelExternalDefaults\":[16],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"buttonUrl\":[1,\"button-url\"],\"buttonId\":[1,\"button-id\"],\"buttonData\":[16],\"textCenter\":[4,\"text-center\"],\"leftAlign\":[4,\"left-align\"],\"image\":[1],\"variation\":[1],\"back\":[8],\"listItems\":[8,\"list-items\"],\"actions\":[8],\"processedListItems\":[32],\"processedActions\":[32],\"processedBack\":[32]}]]],[\"duet-textarea.cjs\",[[2,\"duet-textarea\",{\"margin\":[1],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleAutocomplete\":[1,\"accessible-autocomplete\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"theme\":[1025],\"expand\":[4],\"disabled\":[516],\"identifier\":[1],\"required\":[4],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"name\":[1],\"placeholder\":[1],\"caption\":[1],\"echoPlaceholder\":[4,\"echo-placeholder\"],\"maxlength\":[2],\"minlength\":[2],\"error\":[1],\"role\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"value\":[1025],\"disallowPattern\":[1,\"disallow-pattern\"],\"counter\":[4],\"counterLabel\":[1,\"counter-label\"],\"setFocus\":[64]}]]],[\"duet-tab_2.cjs\",[[6,\"duet-tab-group\",{\"theme\":[1025],\"variation\":[1],\"language\":[1025],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"margin\":[1],\"padding\":[1],\"tabs\":[32],\"selected\":[32],\"openTab\":[64],\"refresh\":[64]}],[6,\"duet-tab\",{\"label\":[513],\"selected\":[516]}]]],[\"duet-date-picker.cjs\",[[2,\"duet-date-picker\",{\"theme\":[1025],\"expand\":[4],\"name\":[1],\"identifier\":[1],\"label\":[1],\"caption\":[1],\"margin\":[1],\"placeholder\":[1],\"echoPlaceholder\":[1540,\"echo-placeholder\"],\"disabled\":[516],\"language\":[1],\"error\":[1],\"labelHidden\":[4,\"label-hidden\"],\"role\":[1],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"required\":[4],\"direction\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"value\":[1537],\"min\":[1],\"max\":[1],\"validity\":[1040],\"open\":[32],\"focusedDay\":[32],\"inputValue\":[32],\"setFocus\":[64],\"show\":[64],\"hide\":[64]},[[4,\"click\",\"handleDocumentClick\"]]]]],[\"duet-modal.cjs\",[[1,\"duet-modal\",{\"language\":[1025],\"accessibleCloseLabelDefault\":[16],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"size\":[1],\"gutterSize\":[1,\"gutter-size\"],\"theme\":[1025],\"heading\":[1],\"headingLevel\":[1,\"heading-level\"],\"icon\":[1],\"color\":[1],\"active\":[1540],\"open\":[32],\"show\":[64],\"hide\":[64]},[[8,\"keyup\",\"handleKeyUp\"]]]]],[\"duet-number-input.cjs\",[[2,\"duet-number-input\",{\"language\":[1025],\"locale\":[1],\"unit\":[1],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleLive\":[1,\"accessible-live\"],\"accessibleLiveEnabled\":[4,\"accessible-live-enabled\"],\"accessibleAdd\":[1,\"accessible-add\"],\"accessibleSubtract\":[1,\"accessible-subtract\"],\"theme\":[1025],\"margin\":[1],\"expand\":[4],\"identifier\":[1],\"min\":[2],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"max\":[2],\"name\":[1],\"error\":[1],\"tooltip\":[1],\"step\":[2],\"rounding\":[4],\"role\":[1],\"disabled\":[516],\"required\":[4],\"value\":[1025],\"focusedValue\":[32],\"setFocus\":[64]}]]],[\"duet-radio_2.cjs\",[[6,\"duet-radio-group\",{\"direction\":[1],\"margin\":[1],\"theme\":[1025],\"error\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"name\":[1],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"caption\":[1],\"responsive\":[4],\"value\":[1537],\"disabled\":[4]}],[2,\"duet-radio\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleIndex\":[1,\"accessible-index\"],\"margin\":[1],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"theme\":[1025],\"disabled\":[516],\"required\":[4],\"blockEvents\":[4,\"block-events\"],\"identifier\":[1],\"label\":[1],\"name\":[1],\"role\":[1],\"groupDisabled\":[4,\"group-disabled\"],\"groupDirection\":[1,\"group-direction\"],\"groupResponsive\":[4,\"group-responsive\"],\"checked\":[1540],\"value\":[1537],\"setFocus\":[64]}]]],[\"duet-cookie-consent.cjs\",[[1,\"duet-cookie-consent\",{\"accessibleLabel\":[1,\"accessible-label\"],\"theme\":[1025]}]]],[\"duet-notification_2.cjs\",[[1,\"duet-notification-drawer\",{\"icon\":[1],\"label\":[1],\"language\":[1],\"accessibleLabelNotificationsDefaults\":[16],\"accessibleLabelNotifications\":[1,\"accessible-label-notifications\"],\"badge\":[4],\"theme\":[1025],\"direction\":[1],\"isOpen\":[32],\"hasNotifications\":[32],\"setFocus\":[64],\"open\":[64],\"close\":[64]},[[6,\"focus\",\"handleClickFocusOutside\"],[6,\"click\",\"handleClickFocusOutside\"]]],[1,\"duet-notification\",{\"language\":[1],\"accessibleLabelUnreadDefaults\":[16],\"accessibleLabelUnread\":[1,\"accessible-label-unread\"],\"url\":[1],\"date\":[1],\"highlight\":[4],\"external\":[4],\"theme\":[1025],\"setFocus\":[64]}]]],[\"duet-step_2.cjs\",[[6,\"duet-step\",{\"theme\":[1025],\"heading\":[1],\"headingLevel\":[1,\"heading-level\"],\"stepIndex\":[2,\"step-index\"],\"state\":[1],\"roundedTop\":[4,\"rounded-top\"],\"roundedBottom\":[4,\"rounded-bottom\"],\"setFocus\":[64]}],[1,\"duet-stepper\",{\"theme\":[1025],\"accessibleLive\":[1,\"accessible-live\"],\"margin\":[1],\"backDisabled\":[4,\"back-disabled\"],\"selected\":[514]},[[0,\"duetStepClick\",\"onDuetStepClick\"]]]]],[\"duet-footer.cjs\",[[1,\"duet-footer\",{\"theme\":[1025],\"variation\":[1],\"margin\":[1],\"logoHref\":[1,\"logo-href\"],\"language\":[1025],\"items\":[8],\"accessibleLabelExternalDefaults\":[16],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"menu\":[8],\"processedItems\":[32],\"processedMenu\":[32]}]]],[\"duet-card.cjs\",[[1,\"duet-card\",{\"accessibleLabel\":[1,\"accessible-label\"],\"heading\":[1],\"secondaryHeading\":[1,\"secondary-heading\"],\"variation\":[1],\"collapsible\":[4],\"open\":[1540],\"headingLevel\":[1,\"heading-level\"],\"icon\":[1],\"image\":[1],\"background\":[1],\"padding\":[1],\"margin\":[1],\"theme\":[1025],\"url\":[1],\"setFocus\":[64]}]]],[\"duet-tray.cjs\",[[1,\"duet-tray\",{\"language\":[1025],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"accessibleOpenLabel\":[1,\"accessible-open-label\"],\"theme\":[1025],\"active\":[516],\"autoHide\":[4,\"auto-hide\"],\"responsive\":[4],\"expanded\":[32],\"hiddenState\":[32]},[[9,\"scroll\",\"getFrame\"],[16,\"click\",\"handleBodyClick\"]]]]],[\"duet-collapsible.cjs\",[[1,\"duet-collapsible\",{\"theme\":[1025],\"heading\":[1],\"headingWeight\":[1,\"heading-weight\"],\"headingSize\":[1,\"heading-size\"],\"headingLevel\":[1,\"heading-level\"],\"margin\":[1],\"open\":[1540],\"setFocus\":[64]}]]],[\"duet-range-slider.cjs\",[[2,\"duet-range-slider\",{\"theme\":[1025],\"margin\":[1],\"expand\":[4],\"identifier\":[1],\"name\":[1],\"required\":[4],\"disabled\":[516],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"min\":[2],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"unit\":[1],\"max\":[2],\"step\":[2],\"locale\":[1],\"value\":[1026],\"debounce\":[2],\"setFocus\":[64]}]]],[\"duet-toggle.cjs\",[[2,\"duet-toggle\",{\"theme\":[1025],\"margin\":[1],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"label\":[1],\"required\":[4],\"disabled\":[516],\"checked\":[1540],\"value\":[1537],\"identifier\":[1],\"name\":[1],\"role\":[1],\"setFocus\":[64]}]]],[\"duet-badge.cjs\",[[1,\"duet-badge\",{\"theme\":[1025],\"variation\":[1],\"margin\":[1]}]]],[\"duet-checkbox.cjs\",[[2,\"duet-checkbox\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"margin\":[1],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleIndex\":[1,\"accessible-index\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"required\":[4],\"theme\":[1025],\"disabled\":[516],\"identifier\":[1],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"name\":[1],\"role\":[1],\"checked\":[1540],\"value\":[1537],\"setFocus\":[64]}]]],[\"duet-layout.cjs\",[[1,\"duet-layout\",{\"sticky\":[4],\"margin\":[1],\"stickyDistance\":[1,\"sticky-distance\"],\"center\":[4],\"tabs\":[4],\"middle\":[4]}]]],[\"duet-table.cjs\",[[4,\"duet-table\",{\"theme\":[1025],\"margin\":[1],\"variation\":[1],\"sticky\":[4],\"stickyDistance\":[1,\"sticky-distance\"],\"breakpoint\":[1],\"matchesBreakpoint\":[32]}]]],[\"duet-grid_2.cjs\",[[2,\"duet-grid\",{\"responsive\":[4],\"breakpoint\":[1],\"direction\":[1],\"alignment\":[1],\"distribution\":[1],\"mobile\":[1]}],[2,\"duet-grid-item\",{\"fill\":[4],\"maxWidth\":[1,\"max-width\"],\"minWidth\":[1,\"min-width\"],\"theme\":[1025],\"margin\":[1],\"responsive\":[4],\"breakpoint\":[1]}]]],[\"duet-list_2.cjs\",[[1,\"duet-list\",{\"theme\":[1025],\"margin\":[1],\"padding\":[1],\"mobile\":[1],\"breakpoint\":[1],\"variation\":[1],\"labelWidth\":[1,\"label-width\"]}],[1,\"duet-list-item\"]]],[\"duet-fieldset.cjs\",[[1,\"duet-fieldset\",{\"theme\":[1025],\"margin\":[1],\"caption\":[1],\"label\":[1],\"error\":[1],\"labelHidden\":[4,\"label-hidden\"],\"hasTooltip\":[32]}]]],[\"duet-divider_2.cjs\",[[1,\"duet-divider\",{\"theme\":[1025],\"margin\":[1]}],[1,\"duet-spacer\",{\"size\":[1],\"direction\":[1],\"breakpoint\":[1]}]]],[\"duet-visually-hidden.cjs\",[[1,\"duet-visually-hidden\"]]],[\"duet-icon.cjs\",[[1,\"duet-icon\",{\"theme\":[1025],\"icon\":[1],\"src\":[1],\"name\":[1],\"margin\":[1],\"responsive\":[4],\"color\":[513],\"background\":[1],\"size\":[1],\"outline\":[1],\"svgContent\":[32]}]]],[\"duet-tooltip.cjs\",[[1,\"duet-tooltip\",{\"theme\":[1025],\"language\":[1025],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleInputLabel\":[1,\"accessible-input-label\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"label\":[1],\"breakpoint\":[1],\"direction\":[1],\"positionVertical\":[513,\"position-vertical\"],\"positionHorizontal\":[513,\"position-horizontal\"],\"active\":[1540],\"openDown\":[32]},[[9,\"scroll\",\"onScroll\"],[4,\"click\",\"handleDocumentClick\"]]]]],[\"duet-select.cjs\",[[2,\"duet-select\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"margin\":[1],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"error\":[1],\"expand\":[4],\"value\":[1537],\"theme\":[1025],\"labelHidden\":[4,\"label-hidden\"],\"identifier\":[1],\"name\":[1],\"placeholder\":[1],\"caption\":[1],\"echoPlaceholder\":[4,\"echo-placeholder\"],\"items\":[1],\"disabled\":[516],\"required\":[4],\"label\":[1],\"role\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"processedItems\":[32],\"setFocus\":[64]}]]],[\"duet-button_2.cjs\",[[1,\"duet-button\",{\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleExpanded\":[4,\"accessible-expanded\"],\"accessiblePressed\":[4,\"accessible-pressed\"],\"loading\":[4],\"variation\":[1],\"negative\":[4],\"theme\":[1025],\"margin\":[1],\"padding\":[1],\"wrapping\":[1],\"expand\":[4],\"fixed\":[4],\"disabled\":[516],\"name\":[1],\"value\":[1],\"identifier\":[1],\"submit\":[516],\"external\":[4],\"language\":[1],\"accessibleLabelExternalDefaults\":[16],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"icon\":[1],\"color\":[1],\"iconRight\":[4,\"icon-right\"],\"iconSize\":[1,\"icon-size\"],\"size\":[1],\"iconOnly\":[4,\"icon-only\"],\"url\":[513],\"setFocus\":[64]}],[1,\"duet-spinner\",{\"accessibleLabel\":[1,\"accessible-label\"],\"color\":[1],\"size\":[1],\"theme\":[1025]}]]],[\"duet-alert.cjs\",[[1,\"duet-alert\",{\"theme\":[1025],\"accessibleLabelDefaults\":[16],\"accessibleLabel\":[1,\"accessible-label\"],\"announcements\":[4],\"icon\":[1],\"autoDismiss\":[2,\"auto-dismiss\"],\"margin\":[1],\"padding\":[1],\"variation\":[1],\"dismissible\":[4],\"isDismissed\":[32],\"timeoutID\":[32]}]]],[\"duet-empty-state.cjs\",[[1,\"duet-empty-state\",{\"theme\":[1025],\"icon\":[1],\"size\":[1]}]]],[\"duet-header_2.cjs\",[[1,\"duet-header\",{\"theme\":[1025],\"language\":[1025],\"accessibleI18nLabelsDefault\":[16],\"accessibleI18nLabels\":[16],\"accessibleLabelExternalDefaults\":[16],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"accessibleLabelDefault\":[16],\"accessibleLabel\":[1,\"accessible-label\"],\"user\":[8],\"logoHref\":[1,\"logo-href\"],\"currentHref\":[1025,\"current-href\"],\"skipToId\":[1,\"skip-to-id\"],\"items\":[8],\"region\":[1],\"session\":[8],\"back\":[8],\"contact\":[1],\"contactItems\":[8,\"contact-items\"],\"languageItems\":[8,\"language-items\"],\"isContactOpen\":[32],\"isLanguageOpen\":[32],\"isSlideOutOpen\":[32],\"processedItems\":[32],\"processedLanguageItems\":[32],\"processedContactItems\":[32],\"processedSession\":[32],\"processedUser\":[32],\"processedBack\":[32],\"closeMenus\":[64],\"setFocus\":[64]},[[8,\"keyup\",\"handleKeyUp\"],[8,\"keydown\",\"handleKeyDown\"],[4,\"focus\",\"handleDocumentClick\"],[4,\"click\",\"handleDocumentClick\"]]],[1,\"duet-logo\",{\"theme\":[1025],\"margin\":[1],\"inverse\":[4],\"size\":[1],\"href\":[1537],\"language\":[1537],\"setFocus\":[64]}]]],[\"duet-caption_4.cjs\",[[17,\"duet-link\",{\"accessibleLabel\":[1,\"accessible-label\"],\"language\":[1025],\"accessibleLabelExternalDefaults\":[16],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"identifier\":[1],\"theme\":[1025],\"url\":[513],\"external\":[4],\"setFocus\":[64]}],[1,\"duet-paragraph\",{\"theme\":[1025],\"margin\":[1],\"size\":[1],\"variation\":[1],\"color\":[1]}],[1,\"duet-heading\",{\"level\":[513],\"margin\":[1],\"visualLevel\":[1,\"visual-level\"],\"border\":[4],\"weight\":[1],\"color\":[1],\"theme\":[1025],\"hyphenate\":[4]}],[1,\"duet-caption\",{\"theme\":[1025],\"margin\":[1],\"selected\":[4],\"size\":[1]}]]],[\"duet-input_2.cjs\",[[6,\"duet-input\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleAutocomplete\":[1,\"accessible-autocomplete\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"debounce\":[2],\"caption\":[1],\"echoPlaceholder\":[4,\"echo-placeholder\"],\"theme\":[1025],\"expand\":[4],\"disabled\":[516],\"identifier\":[1],\"margin\":[1],\"required\":[4],\"type\":[1],\"label\":[1],\"error\":[1],\"labelHidden\":[4,\"label-hidden\"],\"numericKeyboard\":[4,\"numeric-keyboard\"],\"name\":[1],\"pattern\":[1],\"maxlength\":[2],\"minlength\":[2],\"placeholder\":[1],\"component\":[1],\"role\":[1],\"icon\":[1],\"autoComplete\":[1,\"auto-complete\"],\"disallowPattern\":[1,\"disallow-pattern\"],\"value\":[1025],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"setFocus\":[64]}],[6,\"duet-label\",{\"theme\":[1025],\"for\":[1],\"margin\":[1],\"size\":[1]}]]]]"), options);
|
|
86
|
+
return index.bootstrapLazy(JSON.parse("[[\"duet-choice_2.cjs\",[[6,\"duet-choice-group\",{\"direction\":[1],\"margin\":[1],\"theme\":[1025],\"error\":[1],\"name\":[1],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"caption\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"responsive\":[4],\"value\":[1537],\"disabled\":[4]}],[6,\"duet-choice\",{\"theme\":[1025],\"label\":[1],\"accessibleLabelInfoButtonDefaults\":[1,\"accessible-label-info-default\"],\"accessibleLabelInfoButton\":[1,\"accessible-label-info-button\"],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"caption\":[1],\"value\":[1537],\"type\":[513],\"name\":[1],\"checked\":[1540],\"collapsible\":[4],\"margin\":[1],\"icon\":[1],\"expand\":[4],\"padding\":[1],\"identifier\":[1],\"groupDirection\":[1,\"group-direction\"],\"groupDisabled\":[4,\"group-disabled\"],\"groupResponsive\":[4,\"group-responsive\"],\"disabled\":[516],\"required\":[4],\"infoLabelDefaults\":[1,\"accessible-label-info-default\"],\"infoLabel\":[1,\"info-label\"],\"isHovering\":[32],\"isInfoOpen\":[32],\"isBlurred\":[32],\"setFocus\":[64]},[[2,\"blur\",\"handleHostBlur\"],[2,\"keydown\",\"handleHostKeyDown\"],[2,\"keyup\",\"handleHostKeyUp\"]]]]],[\"duet-hero.cjs\",[[1,\"duet-hero\",{\"theme\":[1025],\"heading\":[1],\"preHeading\":[1,\"pre-heading\"],\"level\":[1],\"description\":[1],\"icon\":[1],\"iconSize\":[1,\"icon-size\"],\"iconRight\":[4,\"icon-right\"],\"categoryIcon\":[1,\"category-icon\"],\"categoryIconColor\":[1,\"category-icon-color\"],\"buttonLabel\":[1,\"button-label\"],\"language\":[1025],\"accessibleLabelExternalDefaults\":[1,\"accessible-label-external-default\"],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"buttonUrl\":[1,\"button-url\"],\"buttonId\":[1,\"button-id\"],\"buttonData\":[16],\"textCenter\":[4,\"text-center\"],\"leftAlign\":[4,\"left-align\"],\"image\":[1],\"variation\":[1],\"back\":[8],\"listItems\":[8,\"list-items\"],\"actions\":[8],\"processedListItems\":[32],\"processedActions\":[32],\"processedBack\":[32]}]]],[\"duet-tab_2.cjs\",[[6,\"duet-tab-group\",{\"theme\":[1025],\"variation\":[1],\"language\":[1025],\"labelDefaults\":[1,\"label-default\"],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"margin\":[1],\"padding\":[1],\"tabs\":[32],\"selected\":[32],\"openTab\":[64],\"refresh\":[64]}],[6,\"duet-tab\",{\"label\":[513],\"selected\":[516]}]]],[\"duet-date-picker.cjs\",[[2,\"duet-date-picker\",{\"theme\":[1025],\"expand\":[4],\"name\":[1],\"identifier\":[1],\"label\":[1],\"caption\":[1],\"margin\":[1],\"language\":[1],\"placeholderDefaults\":[1,\"placeholder-default\"],\"placeholder\":[1],\"echoPlaceholder\":[1540,\"echo-placeholder\"],\"disabled\":[516],\"error\":[1],\"labelHidden\":[4,\"label-hidden\"],\"role\":[1],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"required\":[4],\"direction\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"value\":[1537],\"min\":[1],\"max\":[1],\"validity\":[1040],\"open\":[32],\"focusedDay\":[32],\"inputValue\":[32],\"setFocus\":[64],\"show\":[64],\"hide\":[64]},[[4,\"click\",\"handleDocumentClick\"]]]]],[\"duet-number-input.cjs\",[[2,\"duet-number-input\",{\"language\":[1025],\"locale\":[1],\"unit\":[1],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleLiveDefaults\":[1,\"accessible-live-default\"],\"accessibleLive\":[1,\"accessible-live\"],\"accessibleLiveEnabled\":[4,\"accessible-live-enabled\"],\"accessibleAddDefaults\":[1,\"accessible-add-default\"],\"accessibleAdd\":[1,\"accessible-add\"],\"accessibleSubtractDefaults\":[1,\"accessible-subtract-defaults\"],\"accessibleSubtract\":[1,\"accessible-subtract\"],\"theme\":[1025],\"margin\":[1],\"expand\":[4],\"identifier\":[1],\"min\":[2],\"labelDefaults\":[1,\"label-default\"],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"max\":[2],\"name\":[1],\"error\":[1],\"tooltip\":[1],\"step\":[2],\"rounding\":[4],\"role\":[1],\"disabled\":[516],\"required\":[4],\"value\":[1025],\"focusedValue\":[32],\"setFocus\":[64]}]]],[\"duet-radio_2.cjs\",[[6,\"duet-radio-group\",{\"direction\":[1],\"margin\":[1],\"theme\":[1025],\"error\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"name\":[1],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"caption\":[1],\"responsive\":[4],\"value\":[1537],\"disabled\":[4]}],[2,\"duet-radio\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleIndex\":[1,\"accessible-index\"],\"margin\":[1],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"theme\":[1025],\"disabled\":[516],\"required\":[4],\"blockEvents\":[4,\"block-events\"],\"identifier\":[1],\"label\":[1],\"name\":[1],\"role\":[1],\"groupDisabled\":[4,\"group-disabled\"],\"groupDirection\":[1,\"group-direction\"],\"groupResponsive\":[4,\"group-responsive\"],\"checked\":[1540],\"value\":[1537],\"setFocus\":[64]}]]],[\"duet-card.cjs\",[[1,\"duet-card\",{\"accessibleLabel\":[1,\"accessible-label\"],\"heading\":[1],\"secondaryHeading\":[1,\"secondary-heading\"],\"variation\":[1],\"collapsible\":[4],\"open\":[1540],\"headingLevel\":[1,\"heading-level\"],\"icon\":[1],\"image\":[1],\"background\":[1],\"padding\":[1],\"margin\":[1],\"theme\":[1025],\"url\":[1],\"setFocus\":[64]}]]],[\"duet-range-slider.cjs\",[[2,\"duet-range-slider\",{\"theme\":[1025],\"margin\":[1],\"expand\":[4],\"identifier\":[1],\"name\":[1],\"required\":[4],\"disabled\":[516],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"min\":[2],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"unit\":[1],\"max\":[2],\"step\":[2],\"locale\":[1],\"value\":[1026],\"debounce\":[2],\"setFocus\":[64]}]]],[\"duet-toggle.cjs\",[[2,\"duet-toggle\",{\"theme\":[1025],\"margin\":[1],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"label\":[1],\"required\":[4],\"disabled\":[516],\"checked\":[1540],\"value\":[1537],\"identifier\":[1],\"name\":[1],\"role\":[1],\"setFocus\":[64]}]]],[\"duet-checkbox.cjs\",[[2,\"duet-checkbox\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"margin\":[1],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleIndex\":[1,\"accessible-index\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"required\":[4],\"theme\":[1025],\"disabled\":[516],\"identifier\":[1],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"name\":[1],\"role\":[1],\"checked\":[1540],\"value\":[1537],\"setFocus\":[64]}]]],[\"duet-layout.cjs\",[[1,\"duet-layout\",{\"sticky\":[4],\"margin\":[1],\"stickyDistance\":[1,\"sticky-distance\"],\"center\":[4],\"tabs\":[4],\"middle\":[4]}]]],[\"duet-divider_2.cjs\",[[1,\"duet-divider\",{\"theme\":[1025],\"margin\":[1]}],[1,\"duet-spacer\",{\"size\":[1],\"direction\":[1],\"breakpoint\":[1]}]]],[\"duet-visually-hidden.cjs\",[[1,\"duet-visually-hidden\"]]],[\"duet-icon.cjs\",[[1,\"duet-icon\",{\"theme\":[1025],\"icon\":[1],\"src\":[1],\"name\":[1],\"margin\":[1],\"responsive\":[4],\"color\":[513],\"background\":[1],\"size\":[1],\"outline\":[1],\"svgContent\":[32]}]]],[\"duet-textarea.cjs\",[[2,\"duet-textarea\",{\"margin\":[1],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleAutocomplete\":[1,\"accessible-autocomplete\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"theme\":[1025],\"expand\":[4],\"disabled\":[516],\"identifier\":[1],\"required\":[4],\"label\":[1],\"labelHidden\":[4,\"label-hidden\"],\"name\":[1],\"placeholder\":[1],\"caption\":[1],\"echoPlaceholder\":[4,\"echo-placeholder\"],\"maxlength\":[2],\"minlength\":[2],\"error\":[1],\"role\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"value\":[1025],\"disallowPattern\":[1,\"disallow-pattern\"],\"counter\":[4],\"counterLabel\":[1,\"counter-label\"],\"setFocus\":[64]}]]],[\"duet-modal.cjs\",[[1,\"duet-modal\",{\"language\":[1025],\"accessibleCloseLabelDefaults\":[1,\"accessible-close-label-default\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"size\":[1],\"gutterSize\":[1,\"gutter-size\"],\"theme\":[1025],\"heading\":[1],\"headingLevel\":[1,\"heading-level\"],\"icon\":[1],\"color\":[1],\"active\":[1540],\"open\":[32],\"show\":[64],\"hide\":[64]},[[8,\"keyup\",\"handleKeyUp\"]]]]],[\"duet-cookie-consent.cjs\",[[1,\"duet-cookie-consent\",{\"accessibleLabel\":[1,\"accessible-label\"],\"theme\":[1025]}]]],[\"duet-step_2.cjs\",[[6,\"duet-step\",{\"theme\":[1025],\"heading\":[1],\"headingLevel\":[1,\"heading-level\"],\"stepIndex\":[2,\"step-index\"],\"state\":[1],\"roundedTop\":[4,\"rounded-top\"],\"roundedBottom\":[4,\"rounded-bottom\"],\"setFocus\":[64]}],[1,\"duet-stepper\",{\"theme\":[1025],\"accessibleLive\":[1,\"accessible-live\"],\"margin\":[1],\"backDisabled\":[4,\"back-disabled\"],\"selected\":[514]},[[0,\"duetStepClick\",\"onDuetStepClick\"]]]]],[\"duet-footer.cjs\",[[1,\"duet-footer\",{\"theme\":[1025],\"variation\":[1],\"margin\":[1],\"logoHref\":[1,\"logo-href\"],\"language\":[1025],\"items\":[8],\"accessibleLabelExternalDefaults\":[1,\"accessible-label-external-default\"],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"menu\":[8],\"processedItems\":[32],\"processedMenu\":[32]}]]],[\"duet-tray.cjs\",[[1,\"duet-tray\",{\"language\":[1025],\"accessibleCloseLabelDefaults\":[1,\"accessible-close-label-default\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"accessibleOpenLabelDefaults\":[1,\"accessible-open-label-default\"],\"accessibleOpenLabel\":[1,\"accessible-open-label\"],\"theme\":[1025],\"active\":[516],\"autoHide\":[4,\"auto-hide\"],\"responsive\":[4],\"expanded\":[32],\"hiddenState\":[32]},[[9,\"scroll\",\"getFrame\"],[16,\"click\",\"handleBodyClick\"]]]]],[\"duet-collapsible.cjs\",[[1,\"duet-collapsible\",{\"theme\":[1025],\"heading\":[1],\"headingWeight\":[1,\"heading-weight\"],\"headingSize\":[1,\"heading-size\"],\"headingLevel\":[1,\"heading-level\"],\"margin\":[1],\"open\":[1540],\"setFocus\":[64]}]]],[\"duet-caption_4.cjs\",[[17,\"duet-link\",{\"accessibleLabel\":[1,\"accessible-label\"],\"language\":[1025],\"accessibleLabelExternalDefaults\":[1,\"accessible-label-external-default\"],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"identifier\":[1],\"theme\":[1025],\"url\":[513],\"external\":[4],\"setFocus\":[64]}],[1,\"duet-heading\",{\"level\":[513],\"margin\":[1],\"visualLevel\":[1,\"visual-level\"],\"border\":[8],\"weight\":[1],\"color\":[1],\"theme\":[1025],\"hyphenate\":[4]}],[1,\"duet-paragraph\",{\"theme\":[1025],\"margin\":[1],\"size\":[1],\"weight\":[1],\"variation\":[1],\"color\":[1]}],[1,\"duet-caption\",{\"theme\":[1025],\"margin\":[1],\"selected\":[4],\"size\":[1]}]]],[\"duet-select.cjs\",[[2,\"duet-select\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"margin\":[1],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"error\":[1],\"expand\":[4],\"value\":[1537],\"theme\":[1025],\"labelHidden\":[4,\"label-hidden\"],\"identifier\":[1],\"name\":[1],\"placeholder\":[1],\"caption\":[1],\"echoPlaceholder\":[4,\"echo-placeholder\"],\"items\":[1],\"disabled\":[516],\"required\":[4],\"label\":[1],\"role\":[1],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"processedItems\":[32],\"setFocus\":[64]}]]],[\"duet-button_2.cjs\",[[1,\"duet-button\",{\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleExpanded\":[4,\"accessible-expanded\"],\"accessiblePressed\":[4,\"accessible-pressed\"],\"loading\":[4],\"variation\":[1],\"negative\":[4],\"theme\":[1025],\"margin\":[1],\"padding\":[1],\"wrapping\":[1],\"expand\":[4],\"fixed\":[4],\"disabled\":[516],\"name\":[1],\"value\":[1],\"identifier\":[1],\"submit\":[516],\"external\":[4],\"language\":[1],\"accessibleLabelExternalDefaults\":[1,\"accessible-label-external-default\"],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"icon\":[1],\"color\":[1],\"iconRight\":[4,\"icon-right\"],\"iconSize\":[1,\"icon-size\"],\"size\":[1],\"iconOnly\":[4,\"icon-only\"],\"url\":[513],\"setFocus\":[64]}],[1,\"duet-spinner\",{\"accessibleLabel\":[1,\"accessible-label\"],\"color\":[1],\"size\":[1],\"theme\":[1025]}]]],[\"duet-alert.cjs\",[[1,\"duet-alert\",{\"theme\":[1025],\"accessibleLabelDefaults\":[1,\"accessible-label-default\"],\"accessibleLabel\":[1,\"accessible-label\"],\"announcements\":[4],\"icon\":[1],\"autoDismiss\":[2,\"auto-dismiss\"],\"margin\":[1],\"padding\":[1],\"variation\":[1],\"dismissible\":[4],\"isDismissed\":[32],\"timeoutID\":[32]}]]],[\"duet-empty-state.cjs\",[[1,\"duet-empty-state\",{\"theme\":[1025],\"icon\":[1],\"size\":[1]}]]],[\"duet-notification_2.cjs\",[[1,\"duet-notification-drawer\",{\"icon\":[1],\"label\":[1],\"language\":[1],\"accessibleLabelNotificationsDefaults\":[1,\"accessible-label-notification-default\"],\"accessibleLabelNotifications\":[1,\"accessible-label-notifications\"],\"badge\":[4],\"theme\":[1025],\"direction\":[1],\"isOpen\":[32],\"hasNotifications\":[32],\"setFocus\":[64],\"open\":[64],\"close\":[64]},[[6,\"focus\",\"handleClickFocusOutside\"],[6,\"click\",\"handleClickFocusOutside\"]]],[1,\"duet-notification\",{\"language\":[1],\"accessibleLabelUnreadDefaults\":[16],\"accessibleLabelUnread\":[1,\"accessible-label-unread\"],\"url\":[1],\"date\":[1],\"highlight\":[4],\"external\":[4],\"theme\":[1025],\"setFocus\":[64]}]]],[\"duet-progress.cjs\",[[0,\"duet-progress\",{\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleLabelUploadDefaults\":[1,\"accessible-label-upload-defaults\"],\"accessibleLabelUpload\":[1,\"accessible-label-upload\"],\"progress\":[1538],\"caption\":[1],\"height\":[1],\"theme\":[1025]}]]],[\"duet-upload-aria-status.cjs\",[[1,\"duet-upload-aria-status\",{\"statusMessageLabel\":[16],\"accessibleAriaLive\":[1,\"accessible-aria-live\"],\"valid\":[2],\"total\":[2],\"invalid\":[2],\"inprogress\":[2],\"statusMessage\":[32]}]]],[\"duet-badge.cjs\",[[1,\"duet-badge\",{\"theme\":[1025],\"variation\":[1],\"margin\":[1]}]]],[\"duet-header_2.cjs\",[[1,\"duet-header\",{\"theme\":[1025],\"language\":[1025],\"accessibleI18nLabelsDefaults\":[1,\"accessible-labels-default\"],\"accessibleI18nLabels\":[16],\"accessibleLabelExternalDefaults\":[1,\"accessible-label-external-default\"],\"accessibleLabelExternal\":[1,\"accessible-label-external\"],\"accessibleLabelDefaults\":[1,\"accessible-label-default\"],\"accessibleLabel\":[1,\"accessible-label\"],\"user\":[8],\"logoHref\":[1,\"logo-href\"],\"currentHref\":[1025,\"current-href\"],\"skipToId\":[1,\"skip-to-id\"],\"items\":[8],\"region\":[1],\"session\":[8],\"back\":[8],\"contact\":[1],\"contactItems\":[8,\"contact-items\"],\"languageItems\":[8,\"language-items\"],\"isContactOpen\":[32],\"isLanguageOpen\":[32],\"isSlideOutOpen\":[32],\"processedItems\":[32],\"processedLanguageItems\":[32],\"processedContactItems\":[32],\"processedSession\":[32],\"processedUser\":[32],\"processedBack\":[32],\"closeMenus\":[64],\"setFocus\":[64]},[[8,\"keyup\",\"handleKeyUp\"],[8,\"keydown\",\"handleKeyDown\"],[4,\"focus\",\"handleDocumentClick\"],[4,\"click\",\"handleDocumentClick\"]]],[1,\"duet-logo\",{\"theme\":[1025],\"margin\":[1],\"inverse\":[4],\"size\":[1],\"href\":[1537],\"language\":[1537],\"setFocus\":[64]}]]],[\"duet-grid_2.cjs\",[[2,\"duet-grid\",{\"responsive\":[4],\"breakpoint\":[1],\"direction\":[1],\"alignment\":[1],\"distribution\":[1],\"mobile\":[1],\"distributeFormElement\":[32]}],[2,\"duet-grid-item\",{\"fill\":[4],\"maxWidth\":[1,\"max-width\"],\"minWidth\":[1,\"min-width\"],\"theme\":[1025],\"margin\":[1],\"responsive\":[4],\"breakpoint\":[1]}]]],[\"duet-list_2.cjs\",[[1,\"duet-list\",{\"theme\":[1025],\"margin\":[1],\"padding\":[1],\"mobile\":[1],\"breakpoint\":[1],\"variation\":[1],\"labelWidth\":[1,\"label-width\"]}],[1,\"duet-list-item\"]]],[\"duet-editable-table-button.cjs\",[[2,\"duet-editable-table-button\",{\"theme\":[1025],\"actions\":[16],\"uid\":[1],\"group\":[1],\"keyName\":[1,\"key-name\"],\"isHovering\":[32]}]]],[\"duet-fieldset.cjs\",[[1,\"duet-fieldset\",{\"theme\":[1025],\"margin\":[1],\"caption\":[1],\"label\":[1],\"error\":[1],\"labelHidden\":[4,\"label-hidden\"],\"hasTooltip\":[32]}]]],[\"duet-editable-table_4.cjs\",[[1,\"duet-upload\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"external\":[4],\"hideButton\":[4,\"hide-upload-button\"],\"actions\":[1],\"uri\":[1],\"showLinks\":[4,\"show-links\"],\"caption\":[1],\"statusLabelDefaults\":[1,\"status-label-default\"],\"statusMessageLabel\":[1,\"status-message-label\"],\"buttonLabelDefaults\":[1,\"button-label-default\"],\"buttonLabel\":[1,\"button-label\"],\"accessibleButtonLabel\":[1,\"accessible-button-label\"],\"theme\":[1025],\"disabled\":[516],\"identifier\":[1],\"margin\":[1],\"required\":[4],\"groups\":[1],\"hideGroups\":[4,\"hide-table-labels\"],\"files\":[1040],\"valid\":[1540],\"labelDefaults\":[1,\"label-default\"],\"label\":[1],\"descriptionDefaults\":[1,\"description-default\"],\"description\":[1],\"fileListEmptyDefaults\":[1,\"list-empty-default\"],\"fileListEmpty\":[1,\"file-list-empty\"],\"error\":[1],\"name\":[1],\"maxBytes\":[2,\"max-bytes\"],\"maxBytesTotal\":[2,\"max-bytes-total\"],\"maxFiles\":[2,\"max-files\"],\"allowedExtensions\":[1,\"allowed-extensions\"],\"allowedMimetypes\":[1,\"allowed-mimetypes\"],\"multiple\":[4],\"limitSelection\":[4,\"limit-selection\"],\"value\":[1025],\"tick\":[32],\"setFocus\":[64],\"upload\":[64],\"getFiles\":[64],\"updateValue\":[64]}],[1,\"duet-editable-table\",{\"items\":[1040],\"groupsLabelDefaults\":[16],\"actionLabelDefaults\":[16],\"groups\":[1],\"actions\":[1],\"hideGroups\":[4,\"hide-table-labels\"],\"accessibleRole\":[1,\"accessible-role\"],\"theme\":[1025],\"tick\":[32],\"updateTable\":[64]}],[1,\"duet-editable-table-item\",{\"theme\":[1025],\"actions\":[16],\"groupId\":[1,\"group-id\"],\"keyName\":[1,\"key-name\"],\"data\":[1040],\"isHovering\":[32]}],[4,\"duet-table\",{\"theme\":[1025],\"margin\":[1],\"variation\":[1],\"sticky\":[4],\"stickyDistance\":[1,\"sticky-distance\"],\"breakpoint\":[1],\"matchesBreakpoint\":[32]}]]],[\"duet-tooltip.cjs\",[[1,\"duet-tooltip\",{\"theme\":[1025],\"language\":[1025],\"accessibleLabelDefault\":[1,\"accessible-label-default\"],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleInputLabel\":[1,\"accessible-input-label\"],\"accessibleCloseLabelDefault\":[1,\"accessible-close-label-default\"],\"accessibleCloseLabel\":[1,\"accessible-close-label\"],\"label\":[1],\"breakpoint\":[1],\"direction\":[1],\"positionVertical\":[513,\"position-vertical\"],\"positionHorizontal\":[513,\"position-horizontal\"],\"active\":[1540],\"openDown\":[32]},[[9,\"scroll\",\"onScroll\"],[4,\"click\",\"handleDocumentClick\"]]]]],[\"duet-input_2.cjs\",[[6,\"duet-input\",{\"accessibleActiveDescendant\":[1,\"accessible-active-descendant\"],\"accessibleAutocomplete\":[1,\"accessible-autocomplete\"],\"accessibleControls\":[1,\"accessible-controls\"],\"accessibleOwns\":[1,\"accessible-owns\"],\"accessibleDescribedBy\":[1,\"accessible-described-by\"],\"debounce\":[2],\"caption\":[1],\"echoPlaceholder\":[4,\"echo-placeholder\"],\"theme\":[1025],\"expand\":[4],\"disabled\":[516],\"identifier\":[1],\"margin\":[1],\"required\":[4],\"type\":[1],\"label\":[1],\"error\":[1],\"labelHidden\":[4,\"label-hidden\"],\"numericKeyboard\":[4,\"numeric-keyboard\"],\"name\":[1],\"pattern\":[1],\"maxlength\":[2],\"minlength\":[2],\"placeholder\":[1],\"component\":[1],\"role\":[1],\"icon\":[1],\"autoComplete\":[1,\"auto-complete\"],\"disallowPattern\":[1,\"disallow-pattern\"],\"value\":[1025],\"tooltip\":[1],\"tooltipDirection\":[1,\"tooltip-direction\"],\"setFocus\":[64]}],[6,\"duet-label\",{\"theme\":[1025],\"for\":[1],\"margin\":[1],\"size\":[1]}]]]]"), options);
|
|
87
87
|
});
|
|
@@ -24,6 +24,7 @@ function _interopNamespace(e) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
const NAMESPACE = 'duet';
|
|
27
|
+
const Env = /* duet */ {"cdnURILocal":"http://0.0.0.0:3334","cdnURIProd":"https://cdn.duetds.com/api","duetIconVersion":"2.2.4"};
|
|
27
28
|
|
|
28
29
|
let scopeId;
|
|
29
30
|
let contentRef;
|
|
@@ -440,7 +441,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
440
441
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
441
442
|
if (memberName === 'list') {
|
|
442
443
|
isProp = false;
|
|
443
|
-
// tslint:disable-next-line: triple-equals
|
|
444
444
|
}
|
|
445
445
|
else if (oldValue == null || elm[memberName] != n) {
|
|
446
446
|
elm[memberName] = n;
|
|
@@ -1594,14 +1594,14 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1594
1594
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1595
1595
|
plt.jmp(() => {
|
|
1596
1596
|
const propName = attrNameToPropName.get(attrName);
|
|
1597
|
-
// In a
|
|
1597
|
+
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
1598
1598
|
// in the case where an attribute was set inline.
|
|
1599
1599
|
// ```html
|
|
1600
1600
|
// <my-component some-attribute="some-value"></my-component>
|
|
1601
1601
|
// ```
|
|
1602
1602
|
//
|
|
1603
|
-
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1604
|
-
// changes it before it has been upgraded as shown below:
|
|
1603
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1604
|
+
// programmatically changes it before it has been upgraded as shown below:
|
|
1605
1605
|
//
|
|
1606
1606
|
// ```html
|
|
1607
1607
|
// <!-- this component has _not_ been upgraded yet -->
|
|
@@ -1611,13 +1611,13 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1611
1611
|
// el = document.querySelector("#test");
|
|
1612
1612
|
// el.someAttribute = "another-value";
|
|
1613
1613
|
// // upgrade component
|
|
1614
|
-
//
|
|
1614
|
+
// customElements.define('my-component', MyComponent);
|
|
1615
1615
|
// </script>
|
|
1616
1616
|
// ```
|
|
1617
1617
|
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1618
1618
|
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1619
1619
|
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1620
|
-
// the connectedCallback attempts to unshadow it will use "some-value" as the
|
|
1620
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
|
|
1621
1621
|
//
|
|
1622
1622
|
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1623
1623
|
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
@@ -1631,6 +1631,14 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1631
1631
|
newValue = this[propName];
|
|
1632
1632
|
delete this[propName];
|
|
1633
1633
|
}
|
|
1634
|
+
else if (prototype.hasOwnProperty(propName) &&
|
|
1635
|
+
typeof this[propName] === 'number' &&
|
|
1636
|
+
this[propName] == newValue) {
|
|
1637
|
+
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
|
1638
|
+
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
|
1639
|
+
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1640
|
+
return;
|
|
1641
|
+
}
|
|
1634
1642
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1635
1643
|
});
|
|
1636
1644
|
};
|
|
@@ -1709,7 +1717,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1709
1717
|
if (!styles.has(scopeId)) {
|
|
1710
1718
|
const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
|
|
1711
1719
|
if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
|
|
1712
|
-
style = await Promise.resolve().then(function () { return require('./shadow-css-
|
|
1720
|
+
style = await Promise.resolve().then(function () { return require('./shadow-css-e3edeed1.js'); }).then((m) => m.scopeCss(style, scopeId, false));
|
|
1713
1721
|
}
|
|
1714
1722
|
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1715
1723
|
endRegisterStyles();
|
|
@@ -1720,7 +1728,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1720
1728
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1721
1729
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1722
1730
|
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1723
|
-
// this is the
|
|
1731
|
+
// this is the initial load and this component it has an ancestor component
|
|
1724
1732
|
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1725
1733
|
// so let's just cool our jets and wait for the ancestor to continue first
|
|
1726
1734
|
// this will get fired off when the ancestor component
|
|
@@ -1901,83 +1909,85 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1901
1909
|
registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
|
|
1902
1910
|
}
|
|
1903
1911
|
}
|
|
1904
|
-
lazyBundles.map((lazyBundle) =>
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
cmpMeta.$flags$
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
{
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1912
|
+
lazyBundles.map((lazyBundle) => {
|
|
1913
|
+
lazyBundle[1].map((compactMeta) => {
|
|
1914
|
+
const cmpMeta = {
|
|
1915
|
+
$flags$: compactMeta[0],
|
|
1916
|
+
$tagName$: compactMeta[1],
|
|
1917
|
+
$members$: compactMeta[2],
|
|
1918
|
+
$listeners$: compactMeta[3],
|
|
1919
|
+
};
|
|
1920
|
+
{
|
|
1921
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1922
|
+
}
|
|
1923
|
+
{
|
|
1924
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
1925
|
+
}
|
|
1926
|
+
{
|
|
1927
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1928
|
+
}
|
|
1929
|
+
{
|
|
1930
|
+
cmpMeta.$watchers$ = {};
|
|
1931
|
+
}
|
|
1932
|
+
if (!supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1933
|
+
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
1934
|
+
}
|
|
1935
|
+
const tagName = cmpMeta.$tagName$;
|
|
1936
|
+
const HostElement = class extends HTMLElement {
|
|
1937
|
+
// StencilLazyHost
|
|
1938
|
+
constructor(self) {
|
|
1939
|
+
// @ts-ignore
|
|
1940
|
+
super(self);
|
|
1941
|
+
self = this;
|
|
1942
|
+
registerHost(self, cmpMeta);
|
|
1943
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1944
|
+
// this component is using shadow dom
|
|
1945
|
+
// and this browser supports shadow dom
|
|
1946
|
+
// add the read-only property "shadowRoot" to the host element
|
|
1947
|
+
// adding the shadow root build conditionals to minimize runtime
|
|
1948
|
+
if (supportsShadow) {
|
|
1949
|
+
{
|
|
1950
|
+
self.attachShadow({
|
|
1951
|
+
mode: 'open',
|
|
1952
|
+
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */),
|
|
1953
|
+
});
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
else if (!('shadowRoot' in self)) {
|
|
1957
|
+
self.shadowRoot = self;
|
|
1945
1958
|
}
|
|
1946
1959
|
}
|
|
1947
|
-
|
|
1948
|
-
self
|
|
1960
|
+
{
|
|
1961
|
+
patchChildSlotNodes(self, cmpMeta);
|
|
1949
1962
|
}
|
|
1950
1963
|
}
|
|
1951
|
-
{
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1964
|
+
connectedCallback() {
|
|
1965
|
+
if (appLoadFallback) {
|
|
1966
|
+
clearTimeout(appLoadFallback);
|
|
1967
|
+
appLoadFallback = null;
|
|
1968
|
+
}
|
|
1969
|
+
if (isBootstrapping) {
|
|
1970
|
+
// connectedCallback will be processed once all components have been registered
|
|
1971
|
+
deferredConnectedCallbacks.push(this);
|
|
1972
|
+
}
|
|
1973
|
+
else {
|
|
1974
|
+
plt.jmp(() => connectedCallback(this));
|
|
1975
|
+
}
|
|
1959
1976
|
}
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
deferredConnectedCallbacks.push(this);
|
|
1977
|
+
disconnectedCallback() {
|
|
1978
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
1963
1979
|
}
|
|
1964
|
-
|
|
1965
|
-
|
|
1980
|
+
componentOnReady() {
|
|
1981
|
+
return getHostRef(this).$onReadyPromise$;
|
|
1966
1982
|
}
|
|
1983
|
+
};
|
|
1984
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1985
|
+
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1986
|
+
cmpTags.push(tagName);
|
|
1987
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1967
1988
|
}
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
}
|
|
1971
|
-
componentOnReady() {
|
|
1972
|
-
return getHostRef(this).$onReadyPromise$;
|
|
1973
|
-
}
|
|
1974
|
-
};
|
|
1975
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1976
|
-
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1977
|
-
cmpTags.push(tagName);
|
|
1978
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1979
|
-
}
|
|
1980
|
-
}));
|
|
1989
|
+
});
|
|
1990
|
+
});
|
|
1981
1991
|
{
|
|
1982
1992
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1983
1993
|
visibilityStyle.setAttribute('data-styles', '');
|
|
@@ -2083,7 +2093,15 @@ const flush = () => {
|
|
|
2083
2093
|
};
|
|
2084
2094
|
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
2085
2095
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
2096
|
+
const Build = {
|
|
2097
|
+
isDev: false,
|
|
2098
|
+
isBrowser: true,
|
|
2099
|
+
isServer: false,
|
|
2100
|
+
isTesting: false,
|
|
2101
|
+
};
|
|
2086
2102
|
|
|
2103
|
+
exports.Build = Build;
|
|
2104
|
+
exports.Env = Env;
|
|
2087
2105
|
exports.Fragment = Fragment;
|
|
2088
2106
|
exports.Host = Host;
|
|
2089
2107
|
exports.NAMESPACE = NAMESPACE;
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
+
const stringUtils = require('./string-utils-267e3dbb.js');
|
|
7
|
+
|
|
6
8
|
const localeLookUpTable = {
|
|
7
9
|
fi: "fi-FI",
|
|
8
10
|
en: "en-GB",
|
|
@@ -17,13 +19,13 @@ const localeMonetarySignifierLookUpTable = {
|
|
|
17
19
|
};
|
|
18
20
|
const defLanguageArray = ["fi", "en", "sv"];
|
|
19
21
|
const defaultLanguage = "fi";
|
|
20
|
-
const
|
|
21
|
-
? document.documentElement.lang.toLowerCase()
|
|
22
|
-
|
|
22
|
+
const getCurrentLanguage = () => {
|
|
23
|
+
return document.documentElement.lang ? document.documentElement.lang.toLowerCase() : defaultLanguage;
|
|
24
|
+
};
|
|
23
25
|
const isOfTypeLanguage = (keyInput) => {
|
|
24
26
|
return defLanguageArray.includes(keyInput);
|
|
25
27
|
};
|
|
26
|
-
const checkForLanguage = (languageString =
|
|
28
|
+
const checkForLanguage = (languageString = getCurrentLanguage()) => {
|
|
27
29
|
if (isOfTypeLanguage(languageString)) {
|
|
28
30
|
return languageString;
|
|
29
31
|
}
|
|
@@ -37,7 +39,7 @@ const checkForLanguage = (languageString = currentLanguage) => {
|
|
|
37
39
|
* @param {string} lang=fi - "fi" | "sv" | "en"
|
|
38
40
|
* @default {string} "fi"
|
|
39
41
|
*/
|
|
40
|
-
const getLanguage = (languageString =
|
|
42
|
+
const getLanguage = (languageString = getCurrentLanguage()) => checkForLanguage(languageString);
|
|
41
43
|
/**
|
|
42
44
|
* Returns the current language and locale
|
|
43
45
|
* If language is not fi|sv|en it will default to "fi"
|
|
@@ -55,24 +57,41 @@ const getLocale = (lang) => {
|
|
|
55
57
|
}
|
|
56
58
|
throw new Error(`Locale for "${lang}" not found`);
|
|
57
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
* Takes any json object that is passed and/or htmlencoded and converts it to proper json
|
|
62
|
+
*/
|
|
63
|
+
const sanitizeString = (string) => {
|
|
64
|
+
const argIsString = typeof string === "string";
|
|
65
|
+
if (argIsString) {
|
|
66
|
+
try {
|
|
67
|
+
return JSON.parse(stringUtils.convertHtmlQuotes(string));
|
|
68
|
+
}
|
|
69
|
+
catch (e) {
|
|
70
|
+
console.log("sanitizeString received a string, that didnt parse to json object", string, e);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return string;
|
|
74
|
+
};
|
|
58
75
|
/**
|
|
59
76
|
* Returns the current string / object from a given translation object
|
|
60
77
|
* If language is not fi|sv|en it will default to "fi"
|
|
61
78
|
* special case where lang can be ALSO be "us" in addition to other types - if user decides to override local language
|
|
62
|
-
* @param {object} langObject - {fi: "finnish", sv: "swedish", en: "english"}
|
|
79
|
+
* @param {object} langObject - {fi: "finnish", sv: "swedish", en: "english"} | string will get JSON.parsed
|
|
63
80
|
* @param {boolean} languageOverride = false - in case you want to override the actual language set in html tag
|
|
64
81
|
* @default {object} {locale: "fi-FI", money: "€"}
|
|
65
|
-
* @returns {(string|Object)} given example contains {fi:"something"} and
|
|
82
|
+
* @returns {(string|Object)} given example contains {fi:"something"} and language===fi this will return "something"
|
|
66
83
|
*/
|
|
67
84
|
const getLocaleString = (langObject, languageOverride) => {
|
|
85
|
+
const obj = sanitizeString(langObject);
|
|
68
86
|
if (languageOverride) {
|
|
69
|
-
return
|
|
87
|
+
return obj[checkForLanguage(languageOverride)];
|
|
70
88
|
}
|
|
71
89
|
else {
|
|
72
|
-
return
|
|
90
|
+
return obj[getLanguage()];
|
|
73
91
|
}
|
|
74
92
|
};
|
|
75
93
|
|
|
76
94
|
exports.getLanguage = getLanguage;
|
|
77
95
|
exports.getLocale = getLocale;
|
|
78
96
|
exports.getLocaleString = getLocaleString;
|
|
97
|
+
exports.sanitizeString = sanitizeString;
|