@duetds/components 5.0.5 → 5.1.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 +460 -14
- package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
- package/lib/cjs/duet-alert.cjs.entry.js +2 -2
- package/lib/cjs/duet-badge.cjs.entry.js +2 -2
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +2 -2
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +2 -2
- package/lib/cjs/duet-button_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-caption_4.cjs.entry.js +2 -2
- 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 +4 -4
- package/lib/cjs/duet-collapsible.cjs.entry.js +3 -3
- package/lib/cjs/duet-combobox.cjs.entry.js +390 -0
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
- package/lib/cjs/duet-date-picker.cjs.entry.js +3 -3
- package/lib/cjs/duet-divider_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +8 -6
- package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
- package/lib/cjs/duet-fieldset.cjs.entry.js +2 -2
- package/lib/cjs/duet-footer.cjs.entry.js +4 -4
- package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-header_2.cjs.entry.js +38 -7
- package/lib/cjs/duet-hero.cjs.entry.js +2 -2
- package/lib/cjs/duet-icon.cjs.entry.js +2 -2
- package/lib/cjs/duet-input_2.cjs.entry.js +19 -4
- 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 +4 -4
- package/lib/cjs/duet-notification_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-number-input.cjs.entry.js +3 -3
- package/lib/cjs/duet-pagination_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-progress.cjs.entry.js +2 -2
- 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-scrollable_3.cjs.entry.js +3 -3
- package/lib/cjs/duet-select.cjs.entry.js +2 -2
- package/lib/cjs/duet-step_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-textarea.cjs.entry.js +3 -3
- package/lib/cjs/duet-toggle.cjs.entry.js +2 -2
- package/lib/cjs/duet-tooltip.cjs.entry.js +2 -2
- package/lib/cjs/duet-tray.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +2 -2
- package/lib/cjs/{focus-utils-88e98997.js → focus-utils-be2df924.js} +1 -1
- package/lib/cjs/{index-ef094178.js → index-608ca44d.js} +1 -1
- package/lib/cjs/{input-utils-f3e3854c.js → input-utils-b5e8f524.js} +1 -1
- package/lib/cjs/{keyboard-utils-898cfe14.js → keyboard-utils-bb32119b.js} +3 -0
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/cjs/themeable-component-940d3b50.js +15 -0
- package/lib/collection/collection-manifest.json +1 -0
- package/lib/collection/components/duet-combobox/duet-combobox-select-single.js +12 -0
- package/lib/collection/components/duet-combobox/duet-combobox-select.js +19 -0
- package/lib/collection/components/duet-combobox/duet-combobox.css +78 -0
- package/lib/collection/components/duet-combobox/duet-combobox.js +592 -0
- package/lib/collection/components/duet-footer/duet-footer.js +6 -2
- package/lib/collection/components/duet-header/duet-header.css +15 -0
- package/lib/collection/components/duet-header/duet-header.js +41 -3
- package/lib/collection/components/duet-input/duet-input.js +67 -1
- package/lib/collection/components/duet-upload/duet-upload.css +12 -0
- package/lib/collection/components/duet-upload/duet-upload.js +4 -1
- package/lib/collection/components/duet-upload/upload-editable-item-success.js +1 -1
- package/lib/collection/utils/input-utils.js +1 -1
- package/lib/collection/utils/themeable-component.js +5 -2
- package/lib/custom-elements-bundle/index.d.ts +6 -0
- package/lib/custom-elements-bundle/index.js +456 -25
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-086325ff.system.entry.js → p-026083dd.system.entry.js} +1 -1
- package/lib/duet/{p-84eb2808.entry.js → p-068a3522.entry.js} +1 -1
- package/lib/duet/{p-1144c927.entry.js → p-06b01be8.entry.js} +1 -1
- package/lib/duet/{p-a52c08c6.entry.js → p-08c949c2.entry.js} +1 -1
- package/lib/duet/{p-ea5a73c3.system.entry.js → p-0cfe2b11.system.entry.js} +1 -1
- package/lib/duet/{p-195f73d6.entry.js → p-143182be.entry.js} +1 -1
- package/lib/duet/p-156538ea.system.entry.js +4 -0
- package/lib/duet/{p-71cdfd93.system.entry.js → p-1dd368a3.system.entry.js} +1 -1
- package/lib/duet/{p-e1d56708.entry.js → p-1feabba1.entry.js} +1 -1
- package/lib/duet/{p-689fe862.entry.js → p-206f46ba.entry.js} +1 -1
- package/lib/duet/{p-b47892c9.entry.js → p-2287449d.entry.js} +1 -1
- package/lib/duet/{p-128983f7.system.entry.js → p-23a19b83.system.entry.js} +1 -1
- package/lib/duet/{p-298aff96.system.entry.js → p-2866ccc1.system.entry.js} +1 -1
- package/lib/duet/{p-17a8d23c.system.entry.js → p-29e73d8c.system.entry.js} +1 -1
- package/lib/duet/{p-e0b5e649.entry.js → p-2f409514.entry.js} +1 -1
- package/lib/duet/{p-a37de615.system.entry.js → p-3048d8ef.system.entry.js} +1 -1
- package/lib/duet/{p-04145769.system.js → p-31bc24a2.system.js} +1 -1
- package/lib/duet/{p-d98ed960.entry.js → p-383c7df0.entry.js} +1 -1
- package/lib/duet/{p-68fecc14.system.entry.js → p-388535da.system.entry.js} +1 -1
- package/lib/duet/p-3dfcf826.entry.js +4 -0
- package/lib/duet/{p-f4c60fd8.system.entry.js → p-41ff8913.system.entry.js} +1 -1
- package/lib/duet/{p-f056be12.entry.js → p-48ea1da4.entry.js} +1 -1
- package/lib/duet/{p-d688612f.entry.js → p-4c57fe8a.entry.js} +1 -1
- package/lib/duet/{p-217b9e24.entry.js → p-4e4cce23.entry.js} +1 -1
- package/lib/duet/p-546444b0.system.entry.js +4 -0
- package/lib/duet/{p-b985a189.entry.js → p-54724f73.entry.js} +1 -1
- package/lib/duet/p-54f35a79.js +4 -0
- package/lib/duet/p-56118313.js +4 -0
- package/lib/duet/{p-30a28555.system.entry.js → p-58c20a42.system.entry.js} +1 -1
- package/lib/duet/{p-a96ead6c.entry.js → p-60e2436b.entry.js} +1 -1
- package/lib/duet/{p-b5bc8221.entry.js → p-63ac8866.entry.js} +1 -1
- package/lib/duet/{p-98228d0a.system.js → p-64ebe689.system.js} +1 -1
- package/lib/duet/{p-1ccd57c6.entry.js → p-65a79da5.entry.js} +1 -1
- package/lib/duet/{p-42d3a162.system.entry.js → p-69c0a7f6.system.entry.js} +1 -1
- package/lib/duet/p-6b03322b.system.js +4 -0
- package/lib/duet/{p-16df6ccc.system.entry.js → p-6b1abf52.system.entry.js} +1 -1
- package/lib/duet/p-6b6176f4.js +4 -0
- package/lib/duet/{p-eb7c1a1d.system.entry.js → p-6ba20e72.system.entry.js} +2 -2
- package/lib/duet/{p-d2b5efc0.system.entry.js → p-6f4863db.system.entry.js} +1 -1
- package/lib/duet/{p-104c3fa5.system.entry.js → p-6f603653.system.entry.js} +1 -1
- package/lib/duet/{p-123c8434.system.entry.js → p-7339eb94.system.entry.js} +1 -1
- package/lib/duet/{p-fdf8fba5.entry.js → p-74728a74.entry.js} +1 -1
- package/lib/duet/{p-97bdc2bf.entry.js → p-7666b058.entry.js} +1 -1
- package/lib/duet/{p-d9ac5f05.entry.js → p-7729af53.entry.js} +1 -1
- package/lib/duet/p-7754c44f.entry.js +4 -0
- package/lib/duet/{p-90223d57.entry.js → p-7a906647.entry.js} +1 -1
- package/lib/duet/{p-aa16ca33.system.entry.js → p-7aa17a19.system.entry.js} +1 -1
- package/lib/duet/{p-e81f1326.entry.js → p-7f857142.entry.js} +1 -1
- package/lib/duet/{p-b06d63cb.entry.js → p-81c4e0b8.entry.js} +1 -1
- package/lib/duet/{p-f414ff23.system.entry.js → p-84afb642.system.entry.js} +1 -1
- package/lib/duet/{p-ef99ea4d.entry.js → p-85fe86ef.entry.js} +1 -1
- package/lib/duet/{p-5d997107.entry.js → p-887d51ae.entry.js} +1 -1
- package/lib/duet/{p-b110c837.entry.js → p-8cc38bb7.entry.js} +1 -1
- package/lib/duet/{p-adaede01.entry.js → p-8f2b3690.entry.js} +1 -1
- package/lib/duet/{p-1cfeab55.system.entry.js → p-93c1b85e.system.entry.js} +1 -1
- package/lib/duet/{p-c0071398.system.entry.js → p-9592fa1f.system.entry.js} +1 -1
- package/lib/duet/{p-a7a1ece1.system.entry.js → p-99dc86ab.system.entry.js} +1 -1
- package/lib/duet/{p-db63fb3a.system.entry.js → p-9a47fd17.system.entry.js} +1 -1
- package/lib/duet/{p-c5037594.entry.js → p-9b0489b4.entry.js} +1 -1
- package/lib/duet/{p-285e2473.system.entry.js → p-9b282421.system.entry.js} +2 -2
- package/lib/duet/{p-ea4674fd.system.entry.js → p-9e06a7c7.system.entry.js} +1 -1
- package/lib/duet/p-a63f753e.system.js +4 -0
- package/lib/duet/{p-2b1b8246.entry.js → p-a682a6a5.entry.js} +1 -1
- package/lib/duet/{p-d70b3f27.entry.js → p-aa9d165e.entry.js} +1 -1
- package/lib/duet/{p-36e7114b.system.entry.js → p-ab3a0d39.system.entry.js} +1 -1
- package/lib/duet/{p-f125dfff.system.js → p-ab8e590d.system.js} +1 -1
- package/lib/duet/p-abf8eaf7.js +4 -0
- package/lib/duet/{p-ad77f9e2.entry.js → p-b77d4386.entry.js} +1 -1
- package/lib/duet/{p-7dbf8797.system.entry.js → p-b7a86acf.system.entry.js} +1 -1
- package/lib/duet/p-badc3ac3.entry.js +4 -0
- package/lib/duet/{p-27eac9a4.entry.js → p-bc84c679.entry.js} +1 -1
- package/lib/duet/{p-901ddd73.system.entry.js → p-bdc61811.system.entry.js} +1 -1
- package/lib/duet/{p-1bb6c66f.system.entry.js → p-c3019850.system.entry.js} +1 -1
- package/lib/duet/{p-9a8d5b11.system.js → p-c466bad9.system.js} +1 -1
- package/lib/duet/{p-a3bd8a71.entry.js → p-c5429708.entry.js} +1 -1
- package/lib/duet/{p-912eed2f.entry.js → p-ca55e1f8.entry.js} +1 -1
- package/lib/duet/{p-1a2ab8e8.system.entry.js → p-cd2e4ea8.system.entry.js} +1 -1
- package/lib/duet/{p-b631407a.system.entry.js → p-d4734090.system.entry.js} +1 -1
- package/lib/duet/{p-85b2213b.system.entry.js → p-d8ebb48c.system.entry.js} +1 -1
- package/lib/duet/{p-ee6d9bc6.entry.js → p-dca9237d.entry.js} +1 -1
- package/lib/duet/p-df6b0878.system.entry.js +4 -0
- package/lib/duet/{p-2495cec7.system.entry.js → p-e4f8e874.system.entry.js} +1 -1
- package/lib/duet/{p-87bedb24.system.entry.js → p-e50c8c08.system.entry.js} +1 -1
- package/lib/duet/{p-cbd12107.system.entry.js → p-e5f9c7b8.system.entry.js} +1 -1
- package/lib/duet/{p-8bca2ae9.system.entry.js → p-e8a5580c.system.entry.js} +1 -1
- package/lib/duet/{p-9fccab71.entry.js → p-e8da9596.entry.js} +1 -1
- package/lib/duet/{p-5d6f8c04.entry.js → p-ea131807.entry.js} +1 -1
- package/lib/duet/{p-2c65e170.entry.js → p-ec340319.entry.js} +1 -1
- package/lib/duet/{p-d494f1a3.system.entry.js → p-ed1ea287.system.entry.js} +1 -1
- package/lib/duet/{p-f1b62aca.entry.js → p-f37a0b50.entry.js} +1 -1
- package/lib/duet/{p-00db0857.system.entry.js → p-f3ed1115.system.entry.js} +1 -1
- package/lib/duet/p-f42b06ec.entry.js +4 -0
- package/lib/duet/{p-7e2e9a28.js → p-f5ced40a.js} +1 -1
- package/lib/duet/{p-92722c37.system.entry.js → p-f7e5404c.system.entry.js} +1 -1
- package/lib/duet/{p-4c8d801e.system.entry.js → p-f9ddfbd3.system.entry.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +3 -3
- package/lib/esm/duet-alert.entry.js +2 -2
- package/lib/esm/duet-badge.entry.js +2 -2
- package/lib/esm/duet-breadcrumb.entry.js +2 -2
- package/lib/esm/duet-breadcrumbs.entry.js +2 -2
- package/lib/esm/duet-button_2.entry.js +2 -2
- package/lib/esm/duet-caption_4.entry.js +2 -2
- 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 +4 -4
- package/lib/esm/duet-collapsible.entry.js +3 -3
- package/lib/esm/duet-combobox.entry.js +386 -0
- package/lib/esm/duet-cookie-consent.entry.js +2 -2
- package/lib/esm/duet-date-picker.entry.js +3 -3
- package/lib/esm/duet-divider_2.entry.js +2 -2
- package/lib/esm/duet-editable-table_3.entry.js +8 -6
- package/lib/esm/duet-empty-state.entry.js +2 -2
- package/lib/esm/duet-fieldset.entry.js +2 -2
- package/lib/esm/duet-footer.entry.js +4 -4
- package/lib/esm/duet-grid_2.entry.js +2 -2
- package/lib/esm/duet-header_2.entry.js +38 -7
- package/lib/esm/duet-hero.entry.js +2 -2
- package/lib/esm/duet-icon.entry.js +2 -2
- package/lib/esm/duet-input_2.entry.js +19 -4
- 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 +4 -4
- package/lib/esm/duet-notification_2.entry.js +2 -2
- package/lib/esm/duet-number-input.entry.js +3 -3
- package/lib/esm/duet-pagination_2.entry.js +3 -3
- package/lib/esm/duet-progress.entry.js +2 -2
- package/lib/esm/duet-radio_2.entry.js +2 -2
- package/lib/esm/duet-range-slider.entry.js +2 -2
- package/lib/esm/duet-scrollable_3.entry.js +3 -3
- package/lib/esm/duet-select.entry.js +2 -2
- package/lib/esm/duet-step_2.entry.js +3 -3
- package/lib/esm/duet-textarea.entry.js +3 -3
- package/lib/esm/duet-toggle.entry.js +2 -2
- package/lib/esm/duet-tooltip.entry.js +2 -2
- package/lib/esm/duet-tray.entry.js +2 -2
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +2 -2
- package/lib/esm/{focus-utils-d02ee9d2.js → focus-utils-b6b1e60d.js} +1 -1
- package/lib/esm/{index-3cfa1b7e.js → index-0b088451.js} +1 -1
- package/lib/esm/{input-utils-f4cafee1.js → input-utils-de45e099.js} +1 -1
- package/lib/esm/{keyboard-utils-6eb55cd5.js → keyboard-utils-88ea1007.js} +2 -1
- package/lib/esm/loader.js +2 -2
- package/lib/esm/themeable-component-e8fc98bf.js +13 -0
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +1 -1
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +1 -1
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +4 -0
- 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_3.entry.js +1 -1
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +1 -1
- package/lib/esm-es5/duet-header_2.entry.js +2 -2
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +1 -1
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-radio_2.entry.js +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +1 -1
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/focus-utils-b6b1e60d.js +4 -0
- package/lib/esm-es5/{index-3cfa1b7e.js → index-0b088451.js} +1 -1
- package/lib/esm-es5/input-utils-de45e099.js +4 -0
- package/lib/esm-es5/keyboard-utils-88ea1007.js +4 -0
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/themeable-component-e8fc98bf.js +4 -0
- package/lib/html.html-data.json +5321 -0
- package/lib/types/components/duet-combobox/duet-combobox-select-single.d.ts +8 -0
- package/lib/types/components/duet-combobox/duet-combobox-select.d.ts +14 -0
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +131 -0
- package/lib/types/components/duet-footer/duet-footer.d.ts +4 -0
- package/lib/types/components/duet-header/duet-header.d.ts +8 -0
- package/lib/types/components/duet-input/duet-input.d.ts +13 -0
- package/lib/types/components.d.ts +107 -0
- package/package.json +5 -5
- package/lib/cjs/themeable-component-0c1be552.js +0 -12
- package/lib/duet/p-6733b42f.js +0 -4
- package/lib/duet/p-74780bca.system.js +0 -4
- package/lib/duet/p-898f30a5.js +0 -4
- package/lib/duet/p-9dfcd29a.js +0 -4
- package/lib/duet/p-a0b09d95.system.entry.js +0 -4
- package/lib/duet/p-a28cf57b.js +0 -4
- package/lib/duet/p-a8ff3a13.entry.js +0 -4
- package/lib/duet/p-b769b313.entry.js +0 -4
- package/lib/duet/p-c9097a6c.system.entry.js +0 -4
- package/lib/duet/p-d8c526b4.entry.js +0 -4
- package/lib/duet/p-efaa0c04.system.js +0 -4
- package/lib/esm/themeable-component-572685dd.js +0 -10
- package/lib/esm-es5/focus-utils-d02ee9d2.js +0 -4
- package/lib/esm-es5/input-utils-f4cafee1.js +0 -4
- package/lib/esm-es5/keyboard-utils-6eb55cd5.js +0 -4
- package/lib/esm-es5/themeable-component-572685dd.js +0 -4
|
@@ -45,6 +45,7 @@ export class DuetHeader {
|
|
|
45
45
|
*/
|
|
46
46
|
this.isContactOpen = false;
|
|
47
47
|
this.isLanguageOpen = false;
|
|
48
|
+
this.isSessionOpen = false;
|
|
48
49
|
this.isSlideOutOpen = false;
|
|
49
50
|
this.isSegmentOpen = false;
|
|
50
51
|
this.openMenu = null;
|
|
@@ -196,6 +197,11 @@ export class DuetHeader {
|
|
|
196
197
|
this.handleClick(e);
|
|
197
198
|
this.duetSessionClick.emit(e);
|
|
198
199
|
};
|
|
200
|
+
this.handleSessionItemClick = (ev, item) => {
|
|
201
|
+
const e = createEvent(ev, item);
|
|
202
|
+
this.handleClick(e);
|
|
203
|
+
this.duetSessionClick.emit(e);
|
|
204
|
+
};
|
|
199
205
|
this.handleSearchClick = (ev) => {
|
|
200
206
|
const e = createEvent(ev, this.processedSearch);
|
|
201
207
|
this.handleClick(e);
|
|
@@ -258,13 +264,23 @@ export class DuetHeader {
|
|
|
258
264
|
this.isContactOpen = false;
|
|
259
265
|
this.isLanguageOpen = !this.isLanguageOpen;
|
|
260
266
|
this.isSegmentOpen = false;
|
|
267
|
+
this.isSessionOpen = false;
|
|
261
268
|
el = this.languageItemsEl;
|
|
262
269
|
}
|
|
270
|
+
// For session menu
|
|
271
|
+
if (type === "session") {
|
|
272
|
+
this.isContactOpen = false;
|
|
273
|
+
this.isLanguageOpen = false;
|
|
274
|
+
this.isSegmentOpen = false;
|
|
275
|
+
this.isSessionOpen = !this.isSessionOpen;
|
|
276
|
+
el = this.sessionItemsEl;
|
|
277
|
+
}
|
|
263
278
|
// For contact menu
|
|
264
279
|
else if (type === "contact") {
|
|
265
280
|
this.isLanguageOpen = false;
|
|
266
281
|
this.isContactOpen = !this.isContactOpen;
|
|
267
282
|
this.isSegmentOpen = false;
|
|
283
|
+
this.isSessionOpen = false;
|
|
268
284
|
el = this.contactItemsEl;
|
|
269
285
|
}
|
|
270
286
|
// For mobile menu
|
|
@@ -272,6 +288,7 @@ export class DuetHeader {
|
|
|
272
288
|
this.isContactOpen = false;
|
|
273
289
|
this.isLanguageOpen = false;
|
|
274
290
|
this.isSegmentOpen = false;
|
|
291
|
+
this.isSessionOpen = false;
|
|
275
292
|
el = this.navigationEl;
|
|
276
293
|
this.isSlideOutOpen = !this.isSlideOutOpen;
|
|
277
294
|
if (this.isSlideOutOpen) {
|
|
@@ -285,15 +302,22 @@ export class DuetHeader {
|
|
|
285
302
|
this.isContactOpen = false;
|
|
286
303
|
this.isLanguageOpen = false;
|
|
287
304
|
this.isSegmentOpen = false;
|
|
305
|
+
this.isSessionOpen = false;
|
|
288
306
|
el = this.subMenuItemRefs[id];
|
|
289
307
|
}
|
|
290
308
|
else if (type === "segment") {
|
|
291
309
|
this.isContactOpen = false;
|
|
292
310
|
this.isLanguageOpen = false;
|
|
311
|
+
this.isSessionOpen = false;
|
|
293
312
|
this.isSegmentOpen = !this.isSegmentOpen;
|
|
294
313
|
el = this.segmentItemsEl;
|
|
295
314
|
}
|
|
296
|
-
if (this.isSlideOutOpen ||
|
|
315
|
+
if (this.isSlideOutOpen ||
|
|
316
|
+
this.isLanguageOpen ||
|
|
317
|
+
this.isContactOpen ||
|
|
318
|
+
this.isSegmentOpen ||
|
|
319
|
+
this.isSessionOpen ||
|
|
320
|
+
this.openMenu) {
|
|
297
321
|
const drawer = this.element.querySelector("duet-notification-drawer");
|
|
298
322
|
if (drawer) {
|
|
299
323
|
drawer.close(false);
|
|
@@ -417,7 +441,7 @@ export class DuetHeader {
|
|
|
417
441
|
* Closes all dropdown menus in header when called.
|
|
418
442
|
*/
|
|
419
443
|
async closeMenus(moveFocusToButton = false) {
|
|
420
|
-
if (this.isContactOpen || this.isLanguageOpen || this.isSegmentOpen || this.openMenu) {
|
|
444
|
+
if (this.isContactOpen || this.isLanguageOpen || this.isSegmentOpen || this.isSessionOpen || this.openMenu) {
|
|
421
445
|
if (this.isContactOpen && moveFocusToButton) {
|
|
422
446
|
this.contactItemsButtonEl.focus({
|
|
423
447
|
preventScroll: true,
|
|
@@ -433,6 +457,11 @@ export class DuetHeader {
|
|
|
433
457
|
preventScroll: true,
|
|
434
458
|
});
|
|
435
459
|
}
|
|
460
|
+
if (this.isSessionOpen && moveFocusToButton) {
|
|
461
|
+
this.sessionItemsButtonEl.focus({
|
|
462
|
+
preventScroll: true,
|
|
463
|
+
});
|
|
464
|
+
}
|
|
436
465
|
if (this.openMenu && moveFocusToButton) {
|
|
437
466
|
this.subMenuButtonRefs[this.openMenu].focus({
|
|
438
467
|
preventScroll: true,
|
|
@@ -441,6 +470,7 @@ export class DuetHeader {
|
|
|
441
470
|
this.isContactOpen = false;
|
|
442
471
|
this.isLanguageOpen = false;
|
|
443
472
|
this.isSegmentOpen = false;
|
|
473
|
+
this.isSessionOpen = false;
|
|
444
474
|
this.openMenu = null;
|
|
445
475
|
}
|
|
446
476
|
}
|
|
@@ -479,6 +509,13 @@ export class DuetHeader {
|
|
|
479
509
|
const processedSession = this.processedSession ? (h("a", { href: this.processedSession.href || "#", id: this.processedSession.id, class: "duet-header-logout duet-header-button", onClick: this.handleSessionClick },
|
|
480
510
|
h(DuetHeaderIcon, { icon: this.processedSession.type === "logout" ? logoutIcon.svg : loginIcon.svg, iconSize: processedSessionIconSize }),
|
|
481
511
|
h("span", { class: "duet-header-button-label" }, this.processedSession.label))) : null;
|
|
512
|
+
const processedSessionDropdown = this.processedSession && this.processedSession.sessionItems ? (h(DuetHeaderDropdown, { className: "duet-header-session", id: "duet-header-session", label: this.processedSession.label, icon: this.processedSession.type === "logout" ? logoutIcon.svg : loginIcon.svg, active: this.isSessionOpen, isOpen: this.isSessionOpen, badge: false, toggleRef: el => (this.sessionItemsButtonEl = el), itemsRef: el => (this.sessionItemsEl = el), onToggle: event => this.toggleMenu(event, "session") }, this.processedSession.sessionItems.map((sessionItem, index) => (h(Fragment, null,
|
|
513
|
+
sessionItem.label && h("span", { class: "duet-header-session-label" }, sessionItem.label),
|
|
514
|
+
h("duet-spacer", { size: "small", "aria-hidden": "true" }),
|
|
515
|
+
sessionItem.items.map(item => (h("a", { role: "menuitem", "aria-label": sessionItem.label ? `${sessionItem.label} ${item.label}` : item.label, id: item.id, href: item.href || "#", onClick: event => this.handleSessionItemClick(event, item), onKeyDown: this.handleArrowKeys }, item.label))),
|
|
516
|
+
index !== this.processedSession.sessionItems.length - 1 && (h(Fragment, null,
|
|
517
|
+
h("duet-spacer", { size: "x-small", "aria-hidden": "true" }),
|
|
518
|
+
h("duet-divider", { margin: "none", "aria-hidden": "true" })))))))) : null;
|
|
482
519
|
const processedSearch = this.processedSearch ? (h("a", { href: this.processedSearch.href || "#", id: this.processedSearch.id, class: "duet-header-search duet-header-button", onClick: this.handleSearchClick },
|
|
483
520
|
h(DuetHeaderIcon, { icon: searchIcon.svg }),
|
|
484
521
|
h("span", { class: "duet-header-button-label" }, this.processedSearch.label))) : null;
|
|
@@ -540,7 +577,7 @@ export class DuetHeader {
|
|
|
540
577
|
h("div", { class: "duet-header-multi-level-desktop-utils" },
|
|
541
578
|
processedSearch,
|
|
542
579
|
languageDropdown,
|
|
543
|
-
processedSession),
|
|
580
|
+
processedSessionDropdown != null ? processedSessionDropdown : processedSession),
|
|
544
581
|
h("slot", { name: "utility" }))))));
|
|
545
582
|
}
|
|
546
583
|
// Default variation
|
|
@@ -1048,6 +1085,7 @@ export class DuetHeader {
|
|
|
1048
1085
|
static get states() { return {
|
|
1049
1086
|
"isContactOpen": {},
|
|
1050
1087
|
"isLanguageOpen": {},
|
|
1088
|
+
"isSessionOpen": {},
|
|
1051
1089
|
"isSlideOutOpen": {},
|
|
1052
1090
|
"isSegmentOpen": {},
|
|
1053
1091
|
"openMenu": {},
|
|
@@ -26,6 +26,10 @@ export class DuetInput {
|
|
|
26
26
|
* Indicates the id of a component that describes the input.
|
|
27
27
|
*/
|
|
28
28
|
this.accessibleDescribedBy = "";
|
|
29
|
+
/**
|
|
30
|
+
* Indicates value of any popup element associated with the input.
|
|
31
|
+
*/
|
|
32
|
+
this.accessibleHasPopup = undefined;
|
|
29
33
|
/**
|
|
30
34
|
* Set the amount of time, in milliseconds, to wait to trigger the duetChange
|
|
31
35
|
* event after each keystroke.
|
|
@@ -193,6 +197,17 @@ export class DuetInput {
|
|
|
193
197
|
this.nativeInput.focus(options);
|
|
194
198
|
}
|
|
195
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* Reset the cursor position on the native element
|
|
202
|
+
* `input.resetCursor()`.
|
|
203
|
+
*/
|
|
204
|
+
async resetCursor() {
|
|
205
|
+
if (this.nativeInput) {
|
|
206
|
+
const restoreCursor = resetCursor(this.nativeInput);
|
|
207
|
+
this.nativeInput.value = this.value;
|
|
208
|
+
restoreCursor();
|
|
209
|
+
}
|
|
210
|
+
}
|
|
196
211
|
/**
|
|
197
212
|
* render() function
|
|
198
213
|
* Always the last one in the class.
|
|
@@ -229,7 +244,7 @@ export class DuetInput {
|
|
|
229
244
|
disabled: this.disabled,
|
|
230
245
|
"is-number": this.component === "number",
|
|
231
246
|
"is-date": this.component === "date",
|
|
232
|
-
}, value: this.value, disabled: this.disabled, "aria-invalid": this.error ? "true" : "false", "aria-labelledby": `${this.labelId} ${this.errorId}`, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.getDescribedBy(), placeholder: this.placeholder, spellcheck: "false", minlength: this.minlength, maxlength: this.maxlength, autocomplete: this.autoComplete, required: this.required, role: this.role, name: this.name, id: identifier }, inputProps)),
|
|
247
|
+
}, value: this.value, disabled: this.disabled, "aria-invalid": this.error ? "true" : "false", "aria-labelledby": `${this.labelId} ${this.errorId}`, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-expanded": this.accessibleExpanded, "aria-haspopup": this.accessibleHasPopup, "aria-owns": this.accessibleOwns, "aria-describedby": this.getDescribedBy(), placeholder: this.placeholder, spellcheck: "false", minlength: this.minlength, maxlength: this.maxlength, autocomplete: this.autoComplete, required: this.required, role: this.role, name: this.name, id: identifier }, inputProps)),
|
|
233
248
|
!this.icon && this.type !== "text" && this.type !== "tel" && this.type !== "password" && (h("div", { class: "duet-input-icon" },
|
|
234
249
|
h("duet-icon", { margin: "none", size: "small", icon: icons[this.type].svg, color: "currentColor" }))),
|
|
235
250
|
this.icon && (h("div", { class: "duet-input-icon" },
|
|
@@ -314,6 +329,23 @@ export class DuetInput {
|
|
|
314
329
|
"attribute": "accessible-owns",
|
|
315
330
|
"reflect": false
|
|
316
331
|
},
|
|
332
|
+
"accessibleExpanded": {
|
|
333
|
+
"type": "string",
|
|
334
|
+
"mutable": false,
|
|
335
|
+
"complexType": {
|
|
336
|
+
"original": "string",
|
|
337
|
+
"resolved": "string",
|
|
338
|
+
"references": {}
|
|
339
|
+
},
|
|
340
|
+
"required": false,
|
|
341
|
+
"optional": false,
|
|
342
|
+
"docs": {
|
|
343
|
+
"tags": [],
|
|
344
|
+
"text": "Expanded state of the element, if needed"
|
|
345
|
+
},
|
|
346
|
+
"attribute": "accessible-expanded",
|
|
347
|
+
"reflect": false
|
|
348
|
+
},
|
|
317
349
|
"accessibleDescribedBy": {
|
|
318
350
|
"type": "string",
|
|
319
351
|
"mutable": false,
|
|
@@ -332,6 +364,24 @@ export class DuetInput {
|
|
|
332
364
|
"reflect": false,
|
|
333
365
|
"defaultValue": "\"\""
|
|
334
366
|
},
|
|
367
|
+
"accessibleHasPopup": {
|
|
368
|
+
"type": "string",
|
|
369
|
+
"mutable": false,
|
|
370
|
+
"complexType": {
|
|
371
|
+
"original": "string",
|
|
372
|
+
"resolved": "string",
|
|
373
|
+
"references": {}
|
|
374
|
+
},
|
|
375
|
+
"required": false,
|
|
376
|
+
"optional": false,
|
|
377
|
+
"docs": {
|
|
378
|
+
"tags": [],
|
|
379
|
+
"text": "Indicates value of any popup element associated with the input."
|
|
380
|
+
},
|
|
381
|
+
"attribute": "accessible-has-popup",
|
|
382
|
+
"reflect": false,
|
|
383
|
+
"defaultValue": "undefined"
|
|
384
|
+
},
|
|
335
385
|
"debounce": {
|
|
336
386
|
"type": "number",
|
|
337
387
|
"mutable": false,
|
|
@@ -936,6 +986,22 @@ export class DuetInput {
|
|
|
936
986
|
"text": "Sets focus on the specified `duet-input`. Use this method instead of the global\n`input.focus()`.",
|
|
937
987
|
"tags": []
|
|
938
988
|
}
|
|
989
|
+
},
|
|
990
|
+
"resetCursor": {
|
|
991
|
+
"complexType": {
|
|
992
|
+
"signature": "() => Promise<void>",
|
|
993
|
+
"parameters": [],
|
|
994
|
+
"references": {
|
|
995
|
+
"Promise": {
|
|
996
|
+
"location": "global"
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
"return": "Promise<void>"
|
|
1000
|
+
},
|
|
1001
|
+
"docs": {
|
|
1002
|
+
"text": "Reset the cursor position on the native element\n`input.resetCursor()`.",
|
|
1003
|
+
"tags": []
|
|
1004
|
+
}
|
|
939
1005
|
}
|
|
940
1006
|
}; }
|
|
941
1007
|
static get elementRef() { return "element"; }
|
|
@@ -62,6 +62,10 @@
|
|
|
62
62
|
font-weight: 400;
|
|
63
63
|
background-color: #f5f8fa;
|
|
64
64
|
}
|
|
65
|
+
.duet-upload-filelist-empty-label {
|
|
66
|
+
font-size: 1rem;
|
|
67
|
+
font-weight: 400;
|
|
68
|
+
}
|
|
65
69
|
.duet-upload-editable-table-header-hidden {
|
|
66
70
|
display: none;
|
|
67
71
|
}
|
|
@@ -86,4 +90,12 @@
|
|
|
86
90
|
}
|
|
87
91
|
.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button) {
|
|
88
92
|
border: 0;
|
|
93
|
+
}
|
|
94
|
+
.duet-upload-editable-table .duet-upload-item-name duet-icon {
|
|
95
|
+
position: relative;
|
|
96
|
+
top: 2px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
duet-paragraph::part(duet-paragraph) {
|
|
100
|
+
word-break: break-word;
|
|
89
101
|
}
|
|
@@ -769,7 +769,10 @@ export class DuetUpload {
|
|
|
769
769
|
"duet-upload-filelist-empty": !this.files.size,
|
|
770
770
|
"duet-upload-filelist": true,
|
|
771
771
|
"duet-upload-filelist-filled": this.files.size,
|
|
772
|
-
}, id: this.labelId, for: identifier },
|
|
772
|
+
}, id: this.labelId, for: identifier },
|
|
773
|
+
h("span", { class: {
|
|
774
|
+
"duet-upload-filelist-empty-label": !this.files.size,
|
|
775
|
+
} }, this.fileListEmpty))),
|
|
773
776
|
!!this.files.size && h("slot", { name: "fileheader" }),
|
|
774
777
|
!!this.files.size && (h("duet-upload-aria-status", { invalid: this.getFilesAsArray().invalid.length, valid: this.getFilesAsArray().valid.length, inprogress: this.filesInProgress.size, total: this.files.size, statusMessageLabel: this.internalStatusMessageLabel })),
|
|
775
778
|
!!this.files.size && this.renderEditableTableGroups(),
|
|
@@ -7,7 +7,7 @@ export const SuccessItem = ({ data, showLinks }) => {
|
|
|
7
7
|
const { item, size, uploaded, url, meta } = data;
|
|
8
8
|
const { name } = item;
|
|
9
9
|
const ContentName = (h("span", { class: "duet-upload-item-name" },
|
|
10
|
-
h("duet-icon", { margin: "none", size: "
|
|
10
|
+
h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
11
11
|
h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
12
12
|
name));
|
|
13
13
|
const SizeText = (h("span", { class: "duet-upload-item-size", style: { fontSize: "14px", fontWeight: "400" } },
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
export const inheritGlobalTheme = (component) => {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
// this minor change enables duet-theme-XXXXX instead of just duet-theme-turva
|
|
6
|
+
const classList = Array.from(document.documentElement.classList).join(" ") || "";
|
|
7
|
+
const theme = /(duet-theme-)([a-z]*)/gis.exec(classList);
|
|
8
|
+
if (theme && theme[1] === "duet-theme-") {
|
|
9
|
+
component.theme = theme[2] === "default" ? "" : theme[2];
|
|
7
10
|
}
|
|
8
11
|
};
|
|
@@ -74,6 +74,12 @@ export const DuetCollapsible: {
|
|
|
74
74
|
new (): DuetCollapsible;
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
+
interface DuetCombobox extends Components.DuetCombobox, HTMLElement {}
|
|
78
|
+
export const DuetCombobox: {
|
|
79
|
+
prototype: DuetCombobox;
|
|
80
|
+
new (): DuetCombobox;
|
|
81
|
+
};
|
|
82
|
+
|
|
77
83
|
interface DuetCookieConsent extends Components.DuetCookieConsent, HTMLElement {}
|
|
78
84
|
export const DuetCookieConsent: {
|
|
79
85
|
prototype: DuetCookieConsent;
|