@duetds/components 5.1.2 → 5.1.5
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 +226 -37
- package/lib/cjs/action-arrow-right-small-a25eb475.js +8 -0
- package/lib/cjs/duet-action-button.cjs.entry.js +17 -6
- package/lib/cjs/duet-alert.cjs.entry.js +1 -1
- package/lib/cjs/duet-badge.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +3 -4
- package/lib/cjs/duet-button_2.cjs.entry.js +5 -4
- package/lib/cjs/duet-caption_4.cjs.entry.js +3 -3
- package/lib/cjs/duet-card.cjs.entry.js +3 -3
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
- package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
- package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +105 -27
- 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 +23 -4
- package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-header_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-hero.cjs.entry.js +1 -1
- package/lib/cjs/duet-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-input_2.cjs.entry.js +56 -4
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-modal.cjs.entry.js +2 -2
- package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
- package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-progress.cjs.entry.js +1 -1
- package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +1 -1
- package/lib/cjs/duet-step_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
- package/lib/cjs/duet-tray.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +2 -2
- package/lib/cjs/{focus-utils-b7b1bede.js → focus-utils-a84555de.js} +1 -1
- package/lib/cjs/{index-a521d11c.js → index-d5c2b63c.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/cjs/{token-utils-f402e205.js → token-utils-50a1f7e2.js} +16 -1
- package/lib/cjs/{tokens-8596cece.js → tokens-29450bcb.js} +3 -0
- package/lib/cjs/{tokens.module-6b2df1c2.js → tokens.module-ef598645.js} +2 -0
- package/lib/collection/components/duet-action-button/duet-action-button.css +2 -2
- package/lib/collection/components/duet-action-button/duet-action-button.js +14 -2
- package/lib/collection/components/duet-button/duet-button.css +48 -16
- package/lib/collection/components/duet-button/duet-button.js +2 -1
- package/lib/collection/components/duet-footer/duet-footer.css +154 -0
- package/lib/collection/components/duet-footer/duet-footer.js +135 -5
- package/lib/collection/components/duet-header/duet-header.js +1 -1
- package/lib/collection/components/duet-input/duet-input.css +49 -0
- package/lib/collection/components/duet-input/duet-input.js +132 -3
- package/lib/collection/components/duet-step/duet-step.js +1 -1
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- package/lib/collection/components/duet-table/duet-table.js +1 -1
- package/lib/collection/components/duet-upload/duet-upload.js +136 -27
- package/lib/collection/components/duet-upload/upload-editable-item-pending.js +7 -0
- package/lib/collection/utils/token-utils.js +14 -0
- package/lib/custom-elements-bundle/index.js +217 -42
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-00c21573.entry.js → p-032948e5.entry.js} +1 -1
- package/lib/duet/{p-c4c1c9e8.entry.js → p-04ac5c4e.entry.js} +1 -1
- package/lib/duet/{p-7e46cb73.entry.js → p-05092d95.entry.js} +1 -1
- package/lib/duet/{p-56834d68.system.entry.js → p-05ab59af.system.entry.js} +1 -1
- package/lib/duet/{p-388ccb59.system.entry.js → p-0dbd1f32.system.entry.js} +1 -1
- package/lib/duet/{p-a87a33f4.system.entry.js → p-0f1327c5.system.entry.js} +1 -1
- package/lib/duet/{p-11adc839.entry.js → p-0f428b46.entry.js} +1 -1
- package/lib/duet/{p-3762c001.system.entry.js → p-111e56ea.system.entry.js} +1 -1
- package/lib/duet/{p-b0bde198.system.entry.js → p-1271800f.system.entry.js} +1 -1
- package/lib/duet/{p-1bf42e5a.system.entry.js → p-18137a51.system.entry.js} +1 -1
- package/lib/duet/p-18cc5627.system.js +4 -0
- package/lib/duet/{p-3292f542.system.entry.js → p-199b8120.system.entry.js} +1 -1
- package/lib/duet/{p-5ea44650.system.entry.js → p-1eb573fd.system.entry.js} +1 -1
- package/lib/duet/{p-309e1d13.entry.js → p-1ef3c483.entry.js} +1 -1
- package/lib/duet/p-2271f8d5.system.js +4 -0
- package/lib/duet/{p-c76f0697.system.entry.js → p-258f3ccc.system.entry.js} +1 -1
- package/lib/duet/{p-14f2d627.entry.js → p-26294067.entry.js} +1 -1
- package/lib/duet/p-2879eb73.entry.js +4 -0
- package/lib/duet/{p-6bfd3066.system.entry.js → p-28ee491f.system.entry.js} +1 -1
- package/lib/duet/p-33e5acf3.entry.js +4 -0
- package/lib/duet/{p-ad07f399.js → p-398a79a0.js} +1 -1
- package/lib/duet/{p-f708dc6c.system.entry.js → p-3b316fee.system.entry.js} +1 -1
- package/lib/duet/{p-1d2717f7.system.entry.js → p-3e654074.system.entry.js} +1 -1
- package/lib/duet/{p-42042a04.entry.js → p-3f0c0460.entry.js} +1 -1
- package/lib/duet/{p-df4857f8.system.entry.js → p-4017ddb2.system.entry.js} +1 -1
- package/lib/duet/{p-0a4b7633.entry.js → p-41582a97.entry.js} +1 -1
- package/lib/duet/{p-4cb101e7.entry.js → p-45753e58.entry.js} +1 -1
- package/lib/duet/{p-6d85cb27.entry.js → p-45805cfc.entry.js} +1 -1
- package/lib/duet/{p-c512a307.system.entry.js → p-45aef220.system.entry.js} +1 -1
- package/lib/duet/{p-1f1eb2c6.entry.js → p-45e5f4f4.entry.js} +1 -1
- package/lib/duet/{p-a9e9112d.system.entry.js → p-46917bfa.system.entry.js} +1 -1
- package/lib/duet/{p-918ad15f.system.entry.js → p-4c080f56.system.entry.js} +1 -1
- package/lib/duet/{p-3128467f.entry.js → p-4d4ad632.entry.js} +1 -1
- package/lib/duet/{p-bac34cd4.system.entry.js → p-5265e0d0.system.entry.js} +1 -1
- package/lib/duet/{p-bef4f0ab.entry.js → p-5742b705.entry.js} +1 -1
- package/lib/duet/p-5ce17df4.system.entry.js +4 -0
- package/lib/duet/{p-63c4fa58.entry.js → p-5ecfc1ad.entry.js} +1 -1
- package/lib/duet/p-6190e2d6.system.js +4 -0
- package/lib/duet/{p-a6974134.system.entry.js → p-62e99b72.system.entry.js} +2 -2
- package/lib/duet/p-67c75f37.system.entry.js +4 -0
- package/lib/duet/{p-77151f3f.entry.js → p-696fb340.entry.js} +1 -1
- package/lib/duet/{p-5d223c1b.system.entry.js → p-6d480ff6.system.entry.js} +1 -1
- package/lib/duet/{p-6eb9415c.entry.js → p-740f3d97.entry.js} +1 -1
- package/lib/duet/p-746c8ba5.js +4 -0
- package/lib/duet/{p-b57856ea.system.entry.js → p-75d1f821.system.entry.js} +1 -1
- package/lib/duet/{p-d91eec1f.system.entry.js → p-76733981.system.entry.js} +1 -1
- package/lib/duet/p-7c1b3583.entry.js +4 -0
- package/lib/duet/p-7cbb6eba.js +4 -0
- package/lib/duet/{p-8a0299fb.entry.js → p-7dfb2869.entry.js} +1 -1
- package/lib/duet/{p-d74e231c.entry.js → p-817aaa83.entry.js} +1 -1
- package/lib/duet/{p-70d5c815.entry.js → p-820f1caa.entry.js} +1 -1
- package/lib/duet/p-83e6a536.system.entry.js +4 -0
- package/lib/duet/{p-39141813.entry.js → p-84603769.entry.js} +1 -1
- package/lib/duet/{p-411d8bf6.entry.js → p-85a02775.entry.js} +1 -1
- package/lib/duet/{p-82d3171d.system.js → p-88ad1951.system.js} +1 -1
- package/lib/duet/{p-971f8880.system.entry.js → p-9601701a.system.entry.js} +1 -1
- package/lib/duet/{p-ae1e63fc.system.entry.js → p-96bd1cbc.system.entry.js} +1 -1
- package/lib/duet/{p-5e46fd23.entry.js → p-987b7532.entry.js} +1 -1
- package/lib/duet/{p-2266dd2f.system.entry.js → p-9af6ba66.system.entry.js} +1 -1
- package/lib/duet/p-9bfffd81.system.entry.js +4 -0
- package/lib/duet/p-9cca0bb4.js +4 -0
- package/lib/duet/{p-5dc7ecff.system.entry.js → p-9ecaa83e.system.entry.js} +1 -1
- package/lib/duet/{p-be1bc370.system.entry.js → p-a08af4d9.system.entry.js} +1 -1
- package/lib/duet/{p-f233cbe6.js → p-a31268d6.js} +1 -1
- package/lib/duet/{p-4990454b.entry.js → p-a712a800.entry.js} +1 -1
- package/lib/duet/p-a93a04b9.system.js +4 -0
- package/lib/duet/p-aea39e5a.entry.js +4 -0
- package/lib/duet/p-b5a180e9.system.entry.js +4 -0
- package/lib/duet/{p-0d165a50.system.entry.js → p-bddd664d.system.entry.js} +1 -1
- package/lib/duet/{p-c5f6ab22.entry.js → p-c0086352.entry.js} +1 -1
- package/lib/duet/{p-1111a916.system.entry.js → p-c2ac1fab.system.entry.js} +1 -1
- package/lib/duet/{p-88a9fc7c.system.entry.js → p-c8ad170c.system.entry.js} +1 -1
- package/lib/duet/{p-89564214.system.entry.js → p-ca57d285.system.entry.js} +1 -1
- package/lib/duet/p-cc2204e6.entry.js +4 -0
- package/lib/duet/{p-18fc1046.entry.js → p-cc37da81.entry.js} +1 -1
- package/lib/duet/p-d1746325.js +4 -0
- package/lib/duet/p-d41db290.system.entry.js +4 -0
- package/lib/duet/{p-e3945d28.entry.js → p-dab4fba0.entry.js} +1 -1
- package/lib/duet/{p-32358ab8.entry.js → p-db79c34d.entry.js} +1 -1
- package/lib/duet/{p-fbfc5798.system.entry.js → p-dbb107d3.system.entry.js} +1 -1
- package/lib/duet/{p-1cb29dd2.system.js → p-e133d744.system.js} +1 -1
- package/lib/duet/{p-f8f31ff0.system.entry.js → p-e1a86fe6.system.entry.js} +1 -1
- package/lib/duet/{p-378615ba.entry.js → p-e3882375.entry.js} +1 -1
- package/lib/duet/{p-6440a77d.entry.js → p-ea9ebc20.entry.js} +1 -1
- package/lib/duet/{p-906611b7.entry.js → p-eb779add.entry.js} +1 -1
- package/lib/duet/{p-7a24425d.entry.js → p-ebf20912.entry.js} +1 -1
- package/lib/duet/{p-1028c3a0.system.entry.js → p-ec0d8fa3.system.entry.js} +1 -1
- package/lib/duet/{p-f9784014.system.entry.js → p-ed747a10.system.entry.js} +1 -1
- package/lib/duet/{p-b7906516.entry.js → p-ef5be208.entry.js} +1 -1
- package/lib/duet/p-f3f0db95.entry.js +4 -0
- package/lib/duet/{p-e073de9a.system.entry.js → p-f3f1d874.system.entry.js} +1 -1
- package/lib/duet/p-f476cb84.system.js +4 -0
- package/lib/duet/p-f4f18841.entry.js +4 -0
- package/lib/duet/{p-fc02305a.entry.js → p-fc0e878a.entry.js} +1 -1
- package/lib/duet/{p-02ebff5d.entry.js → p-fc29251a.entry.js} +1 -1
- package/lib/duet/p-fdb59ab3.entry.js +4 -0
- package/lib/duet/{p-33473844.system.entry.js → p-ff56790f.system.entry.js} +1 -1
- package/lib/esm/action-arrow-right-small-f9d2ba83.js +6 -0
- package/lib/esm/duet-action-button.entry.js +17 -6
- package/lib/esm/duet-alert.entry.js +1 -1
- package/lib/esm/duet-badge.entry.js +1 -1
- package/lib/esm/duet-breadcrumb.entry.js +1 -1
- package/lib/esm/duet-breadcrumbs.entry.js +2 -3
- package/lib/esm/duet-button_2.entry.js +5 -4
- package/lib/esm/duet-caption_4.entry.js +3 -3
- package/lib/esm/duet-card.entry.js +3 -3
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-choice_2.entry.js +2 -2
- package/lib/esm/duet-collapsible.entry.js +2 -2
- package/lib/esm/duet-combobox.entry.js +1 -1
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +2 -2
- package/lib/esm/duet-divider_2.entry.js +1 -1
- package/lib/esm/duet-editable-table_3.entry.js +105 -27
- 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 +23 -4
- package/lib/esm/duet-grid_2.entry.js +2 -2
- package/lib/esm/duet-header_2.entry.js +4 -4
- package/lib/esm/duet-hero.entry.js +1 -1
- package/lib/esm/duet-icon.entry.js +3 -3
- package/lib/esm/duet-input_2.entry.js +56 -4
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +1 -1
- package/lib/esm/duet-modal.entry.js +2 -2
- package/lib/esm/duet-notification_2.entry.js +1 -1
- package/lib/esm/duet-number-input.entry.js +1 -1
- package/lib/esm/duet-pagination_2.entry.js +1 -1
- package/lib/esm/duet-progress.entry.js +1 -1
- package/lib/esm/duet-radio_2.entry.js +1 -1
- package/lib/esm/duet-range-slider.entry.js +2 -2
- package/lib/esm/duet-scrollable_3.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +1 -1
- package/lib/esm/duet-step_2.entry.js +2 -2
- package/lib/esm/duet-textarea.entry.js +1 -1
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-tooltip.entry.js +1 -1
- package/lib/esm/duet-tray.entry.js +2 -2
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +2 -2
- package/lib/esm/{focus-utils-8681b5ae.js → focus-utils-b869910b.js} +1 -1
- package/lib/esm/{index-ff5be49a.js → index-1e15387b.js} +1 -1
- package/lib/esm/loader.js +2 -2
- package/lib/esm/{token-utils-e9a69acf.js → token-utils-1f9435bc.js} +16 -2
- package/lib/esm/{tokens-e110dc89.js → tokens-8ff8c570.js} +3 -0
- package/lib/esm/{tokens.module-49cbf963.js → tokens.module-f4572ed7.js} +2 -0
- package/lib/esm-es5/action-arrow-right-small-f9d2ba83.js +4 -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 +2 -2
- package/lib/esm-es5/duet-button_2.entry.js +2 -2
- 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 +2 -2
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.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_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 +2 -2
- package/lib/esm-es5/duet-grid_2.entry.js +1 -1
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +1 -1
- package/lib/esm-es5/duet-input_2.entry.js +2 -2
- 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 +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 +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-8681b5ae.js → focus-utils-b869910b.js} +1 -1
- package/lib/esm-es5/{index-ff5be49a.js → index-1e15387b.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/token-utils-1f9435bc.js +4 -0
- package/lib/esm-es5/tokens-8ff8c570.js +4 -0
- package/lib/esm-es5/{tokens.module-49cbf963.js → tokens.module-f4572ed7.js} +1 -1
- package/lib/html.html-data.json +49 -4
- package/lib/types/components/duet-button/duet-button.d.ts +1 -1
- package/lib/types/components/duet-footer/duet-footer.d.ts +30 -1
- package/lib/types/components/duet-input/duet-input.d.ts +23 -0
- package/lib/types/components/duet-upload/duet-upload.d.ts +18 -1
- package/lib/types/components/duet-upload/upload-editable-item-pending.d.ts +6 -0
- package/lib/types/components.d.ts +71 -3
- package/lib/types/utils/token-utils.d.ts +1 -0
- package/package.json +5 -5
- package/lib/duet/p-2227bd88.entry.js +0 -4
- package/lib/duet/p-28efbf26.entry.js +0 -4
- package/lib/duet/p-2ec15916.entry.js +0 -4
- package/lib/duet/p-33701731.system.entry.js +0 -4
- package/lib/duet/p-37ec8cc0.system.entry.js +0 -4
- package/lib/duet/p-4e2532c7.system.js +0 -4
- package/lib/duet/p-6a164c72.entry.js +0 -4
- package/lib/duet/p-6ee89e1c.entry.js +0 -4
- package/lib/duet/p-8143f3de.js +0 -4
- package/lib/duet/p-86565a1a.system.entry.js +0 -4
- package/lib/duet/p-87d500c2.system.entry.js +0 -4
- package/lib/duet/p-99457149.system.js +0 -4
- package/lib/duet/p-a54fb28f.entry.js +0 -4
- package/lib/duet/p-bb1a594c.entry.js +0 -4
- package/lib/duet/p-bc0356dd.system.entry.js +0 -4
- package/lib/duet/p-c8698d8a.js +0 -4
- package/lib/duet/p-cb445018.js +0 -4
- package/lib/duet/p-d281c96e.system.entry.js +0 -4
- package/lib/duet/p-ddb6344c.system.js +0 -4
- package/lib/duet/p-f7aa0500.entry.js +0 -4
- package/lib/duet/p-fa99eaa4.system.js +0 -4
- package/lib/esm-es5/token-utils-e9a69acf.js +0 -4
- package/lib/esm-es5/tokens-e110dc89.js +0 -4
|
@@ -39,6 +39,10 @@
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
:host(.input-button) {
|
|
43
|
+
z-index: 250;
|
|
44
|
+
}
|
|
45
|
+
|
|
42
46
|
:host(.duet-small) {
|
|
43
47
|
margin-right: 2px !important;
|
|
44
48
|
margin-bottom: 8px !important;
|
|
@@ -85,7 +89,6 @@
|
|
|
85
89
|
font-family: "localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
86
90
|
font-size: 1rem;
|
|
87
91
|
font-weight: 600;
|
|
88
|
-
font-variant-numeric: tabular-nums;
|
|
89
92
|
-webkit-hyphens: auto;
|
|
90
93
|
hyphens: auto;
|
|
91
94
|
line-height: 1.1;
|
|
@@ -105,6 +108,9 @@
|
|
|
105
108
|
.duet-button.duet-m-0 {
|
|
106
109
|
margin: 0 !important;
|
|
107
110
|
}
|
|
111
|
+
.duet-button:not(.input-button-primary, .input-button-secondary) {
|
|
112
|
+
font-variant-numeric: tabular-nums;
|
|
113
|
+
}
|
|
108
114
|
.duet-button.duet-button-text-center {
|
|
109
115
|
text-align: center !important;
|
|
110
116
|
}
|
|
@@ -243,61 +249,61 @@
|
|
|
243
249
|
color: #c60c30 !important;
|
|
244
250
|
border-color: #c60c30;
|
|
245
251
|
}
|
|
246
|
-
.duet-button.primary {
|
|
252
|
+
.duet-button.primary, .duet-button.input-button-primary {
|
|
247
253
|
color: white !important;
|
|
248
254
|
background: #0077b3;
|
|
249
255
|
border-color: #0077b3;
|
|
250
256
|
}
|
|
251
|
-
.duet-theme-turva .duet-button.primary {
|
|
257
|
+
.duet-theme-turva .duet-button.primary, .duet-theme-turva .duet-button.input-button-primary {
|
|
252
258
|
color: white !important;
|
|
253
259
|
background: #c60c30;
|
|
254
260
|
border-color: #c60c30;
|
|
255
261
|
}
|
|
256
|
-
.duet-button.primary:hover {
|
|
262
|
+
.duet-button.primary:hover, .duet-button.input-button-primary:hover {
|
|
257
263
|
background: #005f8f;
|
|
258
264
|
border-color: #005f8f;
|
|
259
265
|
box-shadow: 0 4px 20px rgba(34, 34, 34, 0.1);
|
|
260
266
|
}
|
|
261
|
-
.duet-theme-turva .duet-button.primary:hover {
|
|
267
|
+
.duet-theme-turva .duet-button.primary:hover, .duet-theme-turva .duet-button.input-button-primary:hover {
|
|
262
268
|
background: #940925;
|
|
263
269
|
border-color: #940925;
|
|
264
270
|
}
|
|
265
|
-
.duet-button.primary:focus {
|
|
271
|
+
.duet-button.primary:focus, .duet-button.input-button-primary:focus {
|
|
266
272
|
outline: 0;
|
|
267
273
|
box-shadow: 0 0 0 1px white, 0 0 0 4px rgba(0, 119, 179, 0.75);
|
|
268
274
|
}
|
|
269
|
-
.duet-theme-turva .duet-button.primary:focus {
|
|
275
|
+
.duet-theme-turva .duet-button.primary:focus, .duet-theme-turva .duet-button.input-button-primary:focus {
|
|
270
276
|
box-shadow: 0 0 0 1px white, 0 0 0 4px rgba(23, 28, 58, 0.7);
|
|
271
277
|
}
|
|
272
|
-
.duet-button.secondary {
|
|
278
|
+
.duet-button.secondary, .duet-button.input-button-secondary {
|
|
273
279
|
color: #00294d !important;
|
|
274
280
|
background: transparent;
|
|
275
281
|
border-color: #00294d;
|
|
276
282
|
}
|
|
277
|
-
.duet-theme-turva .duet-button.secondary {
|
|
283
|
+
.duet-theme-turva .duet-button.secondary, .duet-theme-turva .duet-button.input-button-secondary {
|
|
278
284
|
color: #171c3a !important;
|
|
279
285
|
border-color: #171c3a;
|
|
280
286
|
}
|
|
281
|
-
.duet-button.secondary:hover {
|
|
287
|
+
.duet-button.secondary:hover, .duet-button.input-button-secondary:hover {
|
|
282
288
|
color: #0077b3 !important;
|
|
283
289
|
border-color: #0077b3;
|
|
284
290
|
}
|
|
285
|
-
.duet-theme-turva .duet-button.secondary:hover {
|
|
291
|
+
.duet-theme-turva .duet-button.secondary:hover, .duet-theme-turva .duet-button.input-button-secondary:hover {
|
|
286
292
|
color: #c60c30 !important;
|
|
287
293
|
border-color: #c60c30;
|
|
288
294
|
}
|
|
289
|
-
.duet-button.secondary.duet-button-negative {
|
|
295
|
+
.duet-button.secondary.duet-button-negative, .duet-button.input-button-secondary.duet-button-negative {
|
|
290
296
|
color: #e1e3e6 !important;
|
|
291
297
|
border-color: white;
|
|
292
298
|
}
|
|
293
|
-
.duet-theme-turva .duet-button.secondary.duet-button-negative {
|
|
299
|
+
.duet-theme-turva .duet-button.secondary.duet-button-negative, .duet-theme-turva .duet-button.input-button-secondary.duet-button-negative {
|
|
294
300
|
color: #e4e4e6 !important;
|
|
295
301
|
}
|
|
296
|
-
.duet-button.secondary.duet-button-negative:hover {
|
|
302
|
+
.duet-button.secondary.duet-button-negative:hover, .duet-button.input-button-secondary.duet-button-negative:hover {
|
|
297
303
|
color: #0077b3 !important;
|
|
298
304
|
border-color: #0077b3;
|
|
299
305
|
}
|
|
300
|
-
.duet-theme-turva .duet-button.secondary.duet-button-negative:hover {
|
|
306
|
+
.duet-theme-turva .duet-button.secondary.duet-button-negative:hover, .duet-theme-turva .duet-button.input-button-secondary.duet-button-negative:hover {
|
|
301
307
|
color: #c60c30 !important;
|
|
302
308
|
border-color: #c60c30;
|
|
303
309
|
}
|
|
@@ -461,6 +467,32 @@
|
|
|
461
467
|
margin: 0;
|
|
462
468
|
transform: translateX(-50%) translateY(-50%);
|
|
463
469
|
}
|
|
470
|
+
.duet-button.duet-button.input-button-primary, .duet-button.duet-button.input-button-secondary {
|
|
471
|
+
box-sizing: content-box;
|
|
472
|
+
min-width: 48px;
|
|
473
|
+
min-height: 48px;
|
|
474
|
+
padding: 0 !important;
|
|
475
|
+
border-width: 1px;
|
|
476
|
+
border-top-left-radius: 0;
|
|
477
|
+
border-top-right-radius: 4px;
|
|
478
|
+
border-bottom-right-radius: 4px;
|
|
479
|
+
border-bottom-left-radius: 0;
|
|
480
|
+
}
|
|
481
|
+
.duet-button.duet-button.input-button-primary .duet-button-contents, .duet-button.duet-button.input-button-secondary .duet-button-contents {
|
|
482
|
+
position: static;
|
|
483
|
+
}
|
|
484
|
+
.duet-button.duet-button.input-button-primary .duet-button-icon.left.large,
|
|
485
|
+
.duet-button.duet-button.input-button-primary .duet-button-icon.left.medium,
|
|
486
|
+
.duet-button.duet-button.input-button-primary .duet-button-icon.left.small, .duet-button.duet-button.input-button-secondary .duet-button-icon.left.large,
|
|
487
|
+
.duet-button.duet-button.input-button-secondary .duet-button-icon.left.medium,
|
|
488
|
+
.duet-button.duet-button.input-button-secondary .duet-button-icon.left.small {
|
|
489
|
+
position: absolute;
|
|
490
|
+
top: 50% !important;
|
|
491
|
+
left: 50% !important;
|
|
492
|
+
padding: 0;
|
|
493
|
+
margin: 0;
|
|
494
|
+
transform: translateX(-50%) translateY(-50%);
|
|
495
|
+
}
|
|
464
496
|
.duet-button[disabled], .duet-button[disabled]:hover, .duet-button.duet-button-negative[disabled], .duet-button.duet-button-negative[disabled]:hover {
|
|
465
497
|
color: #657787 !important;
|
|
466
498
|
background: #e1e3e6 !important;
|
|
@@ -473,7 +505,7 @@
|
|
|
473
505
|
border-color: #e4e4e6 !important;
|
|
474
506
|
}
|
|
475
507
|
|
|
476
|
-
.duet-button-is-loading.primary {
|
|
508
|
+
.duet-button-is-loading.primary, .duet-button-is-loading.input-button-primary {
|
|
477
509
|
color: white;
|
|
478
510
|
}
|
|
479
511
|
.duet-button-is-loading.default {
|
|
@@ -229,6 +229,7 @@ export class DuetButton {
|
|
|
229
229
|
"duet-small": this.size === "small",
|
|
230
230
|
"duet-fixed": this.fixed,
|
|
231
231
|
"duet-expand": this.expand,
|
|
232
|
+
"input-button": this.variation === "input-button-primary" || this.variation === "input-button-secondary",
|
|
232
233
|
} },
|
|
233
234
|
h("div", { class: {
|
|
234
235
|
"duet-button-container": true,
|
|
@@ -413,7 +414,7 @@ export class DuetButton {
|
|
|
413
414
|
"mutable": false,
|
|
414
415
|
"complexType": {
|
|
415
416
|
"original": "DuetButtonVariation",
|
|
416
|
-
"resolved": "\"default\" | \"destructive\" | \"destructive-primary\" | \"destructive-secondary\" | \"negative\" | \"plain\" | \"primary\" | \"secondary\"",
|
|
417
|
+
"resolved": "\"default\" | \"destructive\" | \"destructive-primary\" | \"destructive-secondary\" | \"input-button-primary\" | \"input-button-secondary\" | \"negative\" | \"plain\" | \"primary\" | \"secondary\"",
|
|
417
418
|
"references": {
|
|
418
419
|
"DuetButtonVariation": {
|
|
419
420
|
"location": "local"
|
|
@@ -309,6 +309,160 @@ a:hover .duet-footer-arrow {
|
|
|
309
309
|
color: #171c3a;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
+
.duet-footer-multilevel duet-logo {
|
|
313
|
+
margin-left: 0.5rem !important;
|
|
314
|
+
}
|
|
315
|
+
@media (min-width: 62em) {
|
|
316
|
+
.duet-footer-multilevel duet-logo {
|
|
317
|
+
margin-left: -0.5rem !important;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
.duet-footer-multilevel .duet-footer-link {
|
|
321
|
+
padding: 0.5rem 1.25rem !important;
|
|
322
|
+
border: 0;
|
|
323
|
+
}
|
|
324
|
+
.duet-footer-multilevel .duet-footer-link:first-of-type {
|
|
325
|
+
margin: 0;
|
|
326
|
+
}
|
|
327
|
+
.duet-footer-multilevel .duet-footer-link .duet-footer-arrow {
|
|
328
|
+
margin-left: 0.5rem;
|
|
329
|
+
}
|
|
330
|
+
.duet-footer-multilevel .duet-footer-link .duet-footer-arrow duet-icon {
|
|
331
|
+
width: 0.75rem;
|
|
332
|
+
height: 0.75rem;
|
|
333
|
+
}
|
|
334
|
+
@media (min-width: 62em) {
|
|
335
|
+
.duet-footer-multilevel .duet-footer-link {
|
|
336
|
+
padding: 0.75rem 0 !important;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
.duet-footer-multilevel .duet-footer-top {
|
|
340
|
+
flex-direction: column;
|
|
341
|
+
gap: 1rem 0;
|
|
342
|
+
align-items: flex-start;
|
|
343
|
+
}
|
|
344
|
+
@media (min-width: 62em) {
|
|
345
|
+
.duet-footer-multilevel .multilevel {
|
|
346
|
+
display: flex;
|
|
347
|
+
justify-content: space-between;
|
|
348
|
+
width: 100%;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
.duet-footer-multilevel .multilevel-main-item {
|
|
352
|
+
margin-top: 1.25rem;
|
|
353
|
+
}
|
|
354
|
+
@media (min-width: 62em) {
|
|
355
|
+
.duet-footer-multilevel .multilevel-main-item {
|
|
356
|
+
margin-top: 0;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
.duet-footer-multilevel .multilevel-main-item .duet-footer-link {
|
|
360
|
+
padding: 0 0.5 1.25rem !important;
|
|
361
|
+
font-weight: 700;
|
|
362
|
+
}
|
|
363
|
+
@media (min-width: 62em) {
|
|
364
|
+
.duet-footer-multilevel .multilevel-main-item .duet-footer-link {
|
|
365
|
+
padding: 0 0 0.5rem !important;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
@media (min-width: 62em) {
|
|
369
|
+
.duet-footer-multilevel .multilevel-primary-items {
|
|
370
|
+
column-gap: 0;
|
|
371
|
+
width: 100%;
|
|
372
|
+
columns: 3;
|
|
373
|
+
}
|
|
374
|
+
.duet-footer-multilevel .multilevel-primary-items .duet-footer-link {
|
|
375
|
+
display: inline-flex;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
.duet-footer-multilevel .multilevel-secondary-items .duet-footer-link {
|
|
379
|
+
padding: 0.875rem 1.25rem !important;
|
|
380
|
+
font-weight: 700;
|
|
381
|
+
}
|
|
382
|
+
.duet-footer-multilevel .multilevel-secondary-items .duet-footer-link:first-child {
|
|
383
|
+
padding: 1.25rem 1.25rem 0.875rem !important;
|
|
384
|
+
}
|
|
385
|
+
@media (min-width: 62em) {
|
|
386
|
+
.duet-footer-multilevel .multilevel-secondary-items {
|
|
387
|
+
display: grid;
|
|
388
|
+
grid-template-columns: repeat(3, 1fr);
|
|
389
|
+
width: 100%;
|
|
390
|
+
}
|
|
391
|
+
.duet-footer-multilevel .multilevel-secondary-items .duet-footer-link,
|
|
392
|
+
.duet-footer-multilevel .multilevel-secondary-items .duet-footer-link:first-child {
|
|
393
|
+
display: inline-flex;
|
|
394
|
+
padding: 1rem 0 !important;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
.duet-footer-multilevel .multilevel-right .duet-footer-link:first-child {
|
|
398
|
+
padding-top: 0.875rem !important;
|
|
399
|
+
font-weight: 700;
|
|
400
|
+
}
|
|
401
|
+
@media (min-width: 62em) {
|
|
402
|
+
.duet-footer-multilevel .multilevel-right .duet-footer-link {
|
|
403
|
+
padding: 0.375rem 0 !important;
|
|
404
|
+
font-size: 0.875rem;
|
|
405
|
+
font-weight: 400;
|
|
406
|
+
}
|
|
407
|
+
.duet-footer-multilevel .multilevel-right .duet-footer-link:first-child {
|
|
408
|
+
padding-top: 0 !important;
|
|
409
|
+
font-size: 1rem;
|
|
410
|
+
font-weight: 600;
|
|
411
|
+
}
|
|
412
|
+
.duet-footer-multilevel .multilevel-right .tertiary-main-item .duet-footer-arrow {
|
|
413
|
+
display: none;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
.duet-footer-multilevel .duet-footer-menu {
|
|
417
|
+
padding: 1.25rem !important;
|
|
418
|
+
line-height: 2.5;
|
|
419
|
+
}
|
|
420
|
+
@media (min-width: 62em) {
|
|
421
|
+
.duet-footer-multilevel .duet-footer-menu {
|
|
422
|
+
padding-right: 0 !important;
|
|
423
|
+
padding-left: 0 !important;
|
|
424
|
+
text-align: right;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
.duet-footer-multilevel .duet-footer-copyright {
|
|
428
|
+
display: none;
|
|
429
|
+
font-size: 0.875rem;
|
|
430
|
+
}
|
|
431
|
+
@media (min-width: 62em) {
|
|
432
|
+
.duet-footer-multilevel .duet-footer-copyright {
|
|
433
|
+
position: absolute;
|
|
434
|
+
left: 48px;
|
|
435
|
+
display: inline;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
@media (min-width: 76.25em) {
|
|
439
|
+
.duet-footer-multilevel .duet-footer-copyright {
|
|
440
|
+
left: 0;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
.duet-footer-multilevel .duet-footer-copyright.duet-footer-copyright-mobile {
|
|
444
|
+
display: block;
|
|
445
|
+
padding-top: 0.5rem;
|
|
446
|
+
padding-bottom: 1.25rem;
|
|
447
|
+
text-align: center;
|
|
448
|
+
}
|
|
449
|
+
@media (min-width: 62em) {
|
|
450
|
+
.duet-footer-multilevel .duet-footer-copyright.duet-footer-copyright-mobile {
|
|
451
|
+
display: none;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
.duet-footer-multilevel.duet-theme-turva .duet-footer-copyright-mobile {
|
|
455
|
+
padding-left: 1.25rem;
|
|
456
|
+
text-align: left;
|
|
457
|
+
}
|
|
458
|
+
.duet-footer-multilevel.duet-theme-turva .duet-footer-icon {
|
|
459
|
+
color: #171c3a;
|
|
460
|
+
background: white;
|
|
461
|
+
}
|
|
462
|
+
.duet-footer-multilevel.duet-theme-turva a:hover .duet-footer-icon {
|
|
463
|
+
background: #e6e6e6;
|
|
464
|
+
}
|
|
465
|
+
|
|
312
466
|
.duet-footer-external {
|
|
313
467
|
display: inline-block;
|
|
314
468
|
margin-left: 4px;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
+
import arrowDownSmallIcon from "@duetds/icons/lib/assets/action-arrow-down-small";
|
|
4
5
|
import arrowRightIcon from "@duetds/icons/lib/assets/action-arrow-right";
|
|
6
|
+
import arrowRightSmallIcon from "@duetds/icons/lib/assets/action-arrow-right-small";
|
|
5
7
|
import newWindowIcon from "@duetds/icons/lib/assets/action-new-window";
|
|
6
8
|
import newWindowIconSmall from "@duetds/icons/lib/assets/action-new-window-small";
|
|
7
9
|
import { Component, Element, Event, Fragment, h, Prop, State, Watch } from "@stencil/core";
|
|
@@ -14,12 +16,18 @@ const i18n = {
|
|
|
14
16
|
sv: { lahi: "© LokalTapiola", turva: "© Turva" },
|
|
15
17
|
en: { lahi: "© LocalTapiola", turva: "© Turva" },
|
|
16
18
|
};
|
|
19
|
+
const i18nMultilevel = {
|
|
20
|
+
fi: { lahi: "© LähiTapiola", turva: "© Keskinäinen Vakuutusyhtiö Turva" },
|
|
21
|
+
sv: { lahi: "© LokalTapiola", turva: "© Keskinäinen Vakuutusyhtiö Turva" },
|
|
22
|
+
en: { lahi: "© LocalTapiola", turva: "© Keskinäinen Vakuutusyhtiö Turva" },
|
|
23
|
+
};
|
|
17
24
|
const createEvent = (ev, data) => ({
|
|
18
25
|
component: "duet-footer",
|
|
19
26
|
data,
|
|
20
27
|
originalEvent: ev,
|
|
21
28
|
});
|
|
22
29
|
/**
|
|
30
|
+
* @slot extra - A slot for extra links.
|
|
23
31
|
* @part top - piercing selector for styling the top part of the footer
|
|
24
32
|
* @part menu - piercing selector for styling the menu section of the footer
|
|
25
33
|
*/
|
|
@@ -29,7 +37,11 @@ export class DuetFooter {
|
|
|
29
37
|
* State() variables
|
|
30
38
|
* Inlined decorator, alphabetical order.
|
|
31
39
|
*/
|
|
40
|
+
this.processedMainItem = null;
|
|
32
41
|
this.processedItems = null;
|
|
42
|
+
this.processedSecondaryItems = null;
|
|
43
|
+
this.processedTertiaryMainItem = null;
|
|
44
|
+
this.processedTertiaryItems = null;
|
|
33
45
|
this.processedMenu = null;
|
|
34
46
|
/**
|
|
35
47
|
* Theme of the navigation.
|
|
@@ -104,7 +116,11 @@ export class DuetFooter {
|
|
|
104
116
|
* Local methods
|
|
105
117
|
*/
|
|
106
118
|
async refresh() {
|
|
119
|
+
this.processedMainItem = parsePossibleJSON(this.mainItem);
|
|
107
120
|
this.processedItems = parsePossibleJSON(this.items);
|
|
121
|
+
this.processedSecondaryItems = parsePossibleJSON(this.secondaryItems);
|
|
122
|
+
this.processedTertiaryMainItem = parsePossibleJSON(this.tertiaryMainItem);
|
|
123
|
+
this.processedTertiaryItems = parsePossibleJSON(this.tertiaryItems);
|
|
108
124
|
this.processedMenu = parsePossibleJSON(this.menu);
|
|
109
125
|
}
|
|
110
126
|
/**
|
|
@@ -112,19 +128,21 @@ export class DuetFooter {
|
|
|
112
128
|
* Always the last one in the class.
|
|
113
129
|
*/
|
|
114
130
|
render() {
|
|
115
|
-
const text = getLocaleString(i18n);
|
|
131
|
+
const text = this.variation === "multilevel" ? getLocaleString(i18nMultilevel) : getLocaleString(i18n);
|
|
116
132
|
const copyrightLabel = this.theme === "turva" ? text.turva : text.lahi;
|
|
117
133
|
return (h("footer", { class: {
|
|
118
134
|
"duet-footer": true,
|
|
119
135
|
"duet-m-0": this.margin === "none",
|
|
120
136
|
"duet-theme-turva": this.theme === "turva",
|
|
121
137
|
"duet-footer-simple": this.variation === "simple",
|
|
138
|
+
"duet-footer-multilevel": this.variation === "multilevel",
|
|
122
139
|
} },
|
|
123
140
|
h("div", { class: "duet-footer-wrapper" },
|
|
124
141
|
h("div", { class: "duet-footer-top", part: "top" },
|
|
125
142
|
this.variation !== "simple" && (h("duet-logo", { href: this.logoHref, onClick: this.handleLogoClick, size: "large", inverse: true, language: this.language, theme: this.theme })),
|
|
126
143
|
this.processedItems &&
|
|
127
144
|
this.variation !== "simple" &&
|
|
145
|
+
this.variation !== "multilevel" &&
|
|
128
146
|
this.processedItems.map(item => (h("a", { class: "duet-footer-link", href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleItemClick(event, item) },
|
|
129
147
|
h("div", { class: "duet-footer-icon" },
|
|
130
148
|
h("duet-icon", { size: "medium", margin: "none", name: item.icon, color: "currentColor" })),
|
|
@@ -132,11 +150,50 @@ export class DuetFooter {
|
|
|
132
150
|
item.external && h("duet-visually-hidden", null,
|
|
133
151
|
", ",
|
|
134
152
|
this.accessibleLabelExternal),
|
|
135
|
-
h("div", { class: "duet-footer-arrow" }, item.external ? (h("duet-icon", { icon: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })) : (h("duet-icon", { icon: arrowRightIcon.svg, size: "auto", margin: "none", color: "currentColor" }))))))
|
|
153
|
+
h("div", { class: "duet-footer-arrow" }, item.external ? (h("duet-icon", { icon: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })) : (h("duet-icon", { icon: arrowRightIcon.svg, size: "auto", margin: "none", color: "currentColor" })))))),
|
|
154
|
+
this.processedItems && this.variation === "multilevel" && (h("div", { class: "multilevel" },
|
|
155
|
+
h("div", { class: "multilevel-left" },
|
|
156
|
+
h("div", { class: "multilevel-main-item" }, this.processedMainItem && (h("a", { class: "duet-footer-link", href: this.processedMainItem.href, id: this.processedMainItem.id, target: this.processedMainItem.external ? "_blank" : "_self", onClick: event => this.handleItemClick(event, this.processedMainItem) },
|
|
157
|
+
h("span", null, this.processedMainItem.label),
|
|
158
|
+
this.processedMainItem.external && (h("duet-visually-hidden", null,
|
|
159
|
+
", ",
|
|
160
|
+
this.accessibleLabelExternal)),
|
|
161
|
+
h("div", { class: "duet-footer-arrow" }, this.processedMainItem.external && (h("duet-icon", { icon: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })))))),
|
|
162
|
+
h("div", { class: "multilevel-primary-items" }, this.processedItems.map(item => (h("a", { class: "duet-footer-link", href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleItemClick(event, item) },
|
|
163
|
+
h("div", { class: "duet-footer-icon" },
|
|
164
|
+
h("duet-icon", { size: "small", margin: "none", name: item.icon, color: "currentColor" })),
|
|
165
|
+
h("span", null, item.label),
|
|
166
|
+
item.external && h("duet-visually-hidden", null,
|
|
167
|
+
", ",
|
|
168
|
+
this.accessibleLabelExternal),
|
|
169
|
+
h("div", { class: "duet-footer-arrow" }, item.external && (h("duet-icon", { icon: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" }))))))),
|
|
170
|
+
h("div", { class: "multilevel-secondary-items" }, this.processedSecondaryItems &&
|
|
171
|
+
this.processedSecondaryItems.map(item => (h("a", { class: "duet-footer-link", href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleItemClick(event, item) },
|
|
172
|
+
h("span", null, item.label),
|
|
173
|
+
item.external && (h("duet-visually-hidden", null,
|
|
174
|
+
", ",
|
|
175
|
+
this.accessibleLabelExternal)),
|
|
176
|
+
h("div", { class: "duet-footer-arrow" }, item.external ? (h("duet-icon", { icon: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })) : (h("duet-icon", { icon: arrowRightSmallIcon.svg, size: "auto", margin: "none", color: "currentColor" })))))))),
|
|
177
|
+
h("div", { class: "multilevel-right" },
|
|
178
|
+
this.processedTertiaryMainItem && (h("span", { class: "duet-footer-link tertiary-main-item", id: this.processedTertiaryMainItem.id },
|
|
179
|
+
h("span", null, this.processedTertiaryMainItem.label),
|
|
180
|
+
this.processedTertiaryMainItem.external && (h("duet-visually-hidden", null,
|
|
181
|
+
", ",
|
|
182
|
+
this.accessibleLabelExternal)),
|
|
183
|
+
h("div", { class: "duet-footer-arrow" },
|
|
184
|
+
h("duet-icon", { icon: arrowDownSmallIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })))),
|
|
185
|
+
this.processedTertiaryItems &&
|
|
186
|
+
this.processedTertiaryItems.map(item => (h("a", { class: "duet-footer-link", href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleItemClick(event, item) },
|
|
187
|
+
h("span", null, item.label),
|
|
188
|
+
item.external && h("duet-visually-hidden", null,
|
|
189
|
+
", ",
|
|
190
|
+
this.accessibleLabelExternal),
|
|
191
|
+
h("div", { class: "duet-footer-arrow" }, item.external && (h("duet-icon", { icon: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })))))))))),
|
|
192
|
+
h("slot", { name: "extra" }),
|
|
136
193
|
h("p", { class: "duet-footer-menu", part: "menu" },
|
|
137
194
|
h("span", { class: "duet-footer-copyright" }, `${copyrightLabel} ${new Date().getFullYear()}`),
|
|
138
195
|
this.processedMenu && (h(Fragment, null,
|
|
139
|
-
h("span", { class: "duet-footer-divider", role: "presentation", "aria-hidden": "true" }, "/"),
|
|
196
|
+
this.variation !== "multilevel" && (h("span", { class: "duet-footer-divider", role: "presentation", "aria-hidden": "true" }, "/")),
|
|
140
197
|
this.processedMenu.map(item => (h("a", { href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleMenuClick(event, item) },
|
|
141
198
|
item.label,
|
|
142
199
|
item.external && (h(Fragment, null,
|
|
@@ -145,7 +202,8 @@ export class DuetFooter {
|
|
|
145
202
|
this.accessibleLabelExternal),
|
|
146
203
|
h("div", { class: "duet-footer-external" },
|
|
147
204
|
h("duet-icon", { icon: newWindowIconSmall.svg, size: "xx-small", margin: "none", color: "currentColor" })))),
|
|
148
|
-
h("span", { class: "duet-footer-divider", role: "presentation", "aria-hidden": "true" }, "/")))))))
|
|
205
|
+
h("span", { class: "duet-footer-divider", role: "presentation", "aria-hidden": "true" }, "/"))))))),
|
|
206
|
+
this.variation === "multilevel" && (h("p", { class: "duet-footer-copyright duet-footer-copyright-mobile" }, `${copyrightLabel} ${new Date().getFullYear()}`)))));
|
|
149
207
|
}
|
|
150
208
|
static get is() { return "duet-footer"; }
|
|
151
209
|
static get encapsulation() { return "shadow"; }
|
|
@@ -184,7 +242,7 @@ export class DuetFooter {
|
|
|
184
242
|
"mutable": false,
|
|
185
243
|
"complexType": {
|
|
186
244
|
"original": "DuetFooterVariation",
|
|
187
|
-
"resolved": "\"default\" | \"simple\"",
|
|
245
|
+
"resolved": "\"default\" | \"multilevel\" | \"simple\"",
|
|
188
246
|
"references": {
|
|
189
247
|
"DuetFooterVariation": {
|
|
190
248
|
"location": "local"
|
|
@@ -271,6 +329,23 @@ export class DuetFooter {
|
|
|
271
329
|
"reflect": false,
|
|
272
330
|
"defaultValue": "getLanguage()"
|
|
273
331
|
},
|
|
332
|
+
"mainItem": {
|
|
333
|
+
"type": "any",
|
|
334
|
+
"mutable": false,
|
|
335
|
+
"complexType": {
|
|
336
|
+
"original": "any",
|
|
337
|
+
"resolved": "any",
|
|
338
|
+
"references": {}
|
|
339
|
+
},
|
|
340
|
+
"required": false,
|
|
341
|
+
"optional": false,
|
|
342
|
+
"docs": {
|
|
343
|
+
"tags": [],
|
|
344
|
+
"text": "Main item of footer links. Item have to include mandatory\n\"label\" and \"href\". Additionally, you can pass an \"id\"\nthat is added as an HTML identifier for the anchor tag."
|
|
345
|
+
},
|
|
346
|
+
"attribute": "main-item",
|
|
347
|
+
"reflect": false
|
|
348
|
+
},
|
|
274
349
|
"items": {
|
|
275
350
|
"type": "any",
|
|
276
351
|
"mutable": false,
|
|
@@ -288,6 +363,57 @@ export class DuetFooter {
|
|
|
288
363
|
"attribute": "items",
|
|
289
364
|
"reflect": false
|
|
290
365
|
},
|
|
366
|
+
"secondaryItems": {
|
|
367
|
+
"type": "any",
|
|
368
|
+
"mutable": false,
|
|
369
|
+
"complexType": {
|
|
370
|
+
"original": "any",
|
|
371
|
+
"resolved": "any",
|
|
372
|
+
"references": {}
|
|
373
|
+
},
|
|
374
|
+
"required": false,
|
|
375
|
+
"optional": false,
|
|
376
|
+
"docs": {
|
|
377
|
+
"tags": [],
|
|
378
|
+
"text": "An array of items for the secondary footer links. Items have to include mandatory\n\"label\" and \"href\". Additionally, you can pass an \"id\"\nthat is added as an HTML identifier for the anchor tag."
|
|
379
|
+
},
|
|
380
|
+
"attribute": "secondary-items",
|
|
381
|
+
"reflect": false
|
|
382
|
+
},
|
|
383
|
+
"tertiaryMainItem": {
|
|
384
|
+
"type": "any",
|
|
385
|
+
"mutable": false,
|
|
386
|
+
"complexType": {
|
|
387
|
+
"original": "any",
|
|
388
|
+
"resolved": "any",
|
|
389
|
+
"references": {}
|
|
390
|
+
},
|
|
391
|
+
"required": false,
|
|
392
|
+
"optional": false,
|
|
393
|
+
"docs": {
|
|
394
|
+
"tags": [],
|
|
395
|
+
"text": "Main item of tertiary footer links. Item have to include mandatory\n\"label\" and \"href\". Additionally, you can pass an \"id\"\nthat is added as an HTML identifier for the anchor tag."
|
|
396
|
+
},
|
|
397
|
+
"attribute": "tertiary-main-item",
|
|
398
|
+
"reflect": false
|
|
399
|
+
},
|
|
400
|
+
"tertiaryItems": {
|
|
401
|
+
"type": "any",
|
|
402
|
+
"mutable": false,
|
|
403
|
+
"complexType": {
|
|
404
|
+
"original": "any",
|
|
405
|
+
"resolved": "any",
|
|
406
|
+
"references": {}
|
|
407
|
+
},
|
|
408
|
+
"required": false,
|
|
409
|
+
"optional": false,
|
|
410
|
+
"docs": {
|
|
411
|
+
"tags": [],
|
|
412
|
+
"text": "An array of items for the tertiary footer links. Items have to include mandatory\n\"label\" and \"href\". Additionally, you can pass an \"id\"\nthat is added as an HTML identifier for the anchor tag."
|
|
413
|
+
},
|
|
414
|
+
"attribute": "tertiary-items",
|
|
415
|
+
"reflect": false
|
|
416
|
+
},
|
|
291
417
|
"accessibleLabelExternalDefaults": {
|
|
292
418
|
"type": "string",
|
|
293
419
|
"mutable": false,
|
|
@@ -354,7 +480,11 @@ export class DuetFooter {
|
|
|
354
480
|
}
|
|
355
481
|
}; }
|
|
356
482
|
static get states() { return {
|
|
483
|
+
"processedMainItem": {},
|
|
357
484
|
"processedItems": {},
|
|
485
|
+
"processedSecondaryItems": {},
|
|
486
|
+
"processedTertiaryMainItem": {},
|
|
487
|
+
"processedTertiaryItems": {},
|
|
358
488
|
"processedMenu": {}
|
|
359
489
|
}; }
|
|
360
490
|
static get events() { return [{
|
|
@@ -653,7 +653,7 @@ export class DuetHeader {
|
|
|
653
653
|
secondLevelItem.items.map(thirdLevelItem => (h("a", { class: {
|
|
654
654
|
"duet-header-item": true,
|
|
655
655
|
active: thirdLevelItem.active === true,
|
|
656
|
-
}, role: "menuitem", href: thirdLevelItem.href || "#", id: thirdLevelItem.id, onClick: event => this.handleItemClick(event,
|
|
656
|
+
}, role: "menuitem", href: thirdLevelItem.href || "#", id: thirdLevelItem.id, onClick: event => this.handleItemClick(event, thirdLevelItem), onKeyDown: ev => this.handleArrowKeys(ev), target: thirdLevelItem.external ? "_blank" : "_self" },
|
|
657
657
|
thirdLevelItem.icon && (h("div", { class: "duet-header-icon" },
|
|
658
658
|
h("duet-icon", { margin: "none", size: "medium", name: thirdLevelItem.icon, color: "currentColor" }))),
|
|
659
659
|
h("span", null, thirdLevelItem.label),
|
|
@@ -100,6 +100,32 @@ duet-caption:not(:last-of-type) {
|
|
|
100
100
|
width: 100%;
|
|
101
101
|
height: 100%;
|
|
102
102
|
}
|
|
103
|
+
.duet-input-container.has-clear .duet-input-clear-icon {
|
|
104
|
+
position: relative;
|
|
105
|
+
z-index: 250;
|
|
106
|
+
}
|
|
107
|
+
.duet-input-container.has-clear .duet-input-clear-icon button {
|
|
108
|
+
position: absolute;
|
|
109
|
+
top: -24px;
|
|
110
|
+
right: 0;
|
|
111
|
+
min-width: 48px;
|
|
112
|
+
min-height: 48px;
|
|
113
|
+
}
|
|
114
|
+
.duet-input-container.has-clear .duet-input-clear-icon button:focus {
|
|
115
|
+
outline: 0;
|
|
116
|
+
box-shadow: 0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3;
|
|
117
|
+
}
|
|
118
|
+
.duet-theme-turva .duet-input-container.has-clear .duet-input-clear-icon button:focus {
|
|
119
|
+
box-shadow: 0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a;
|
|
120
|
+
}
|
|
121
|
+
.duet-input-container.has-clear .duet-input-clear-icon button:active {
|
|
122
|
+
opacity: 0.75;
|
|
123
|
+
transition: none;
|
|
124
|
+
}
|
|
125
|
+
.duet-input-container.has-clear.has-icon .duet-input-clear-icon {
|
|
126
|
+
top: -24px;
|
|
127
|
+
right: 24px;
|
|
128
|
+
}
|
|
103
129
|
|
|
104
130
|
.duet-input {
|
|
105
131
|
position: relative;
|
|
@@ -299,4 +325,27 @@ duet-caption:not(:last-of-type) {
|
|
|
299
325
|
.duet-input-relative {
|
|
300
326
|
position: relative;
|
|
301
327
|
width: 100%;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.duet-input-variation-button {
|
|
331
|
+
position: relative;
|
|
332
|
+
width: 100%;
|
|
333
|
+
}
|
|
334
|
+
.duet-input-variation-button .duet-input-relative {
|
|
335
|
+
display: flex;
|
|
336
|
+
flex-direction: row;
|
|
337
|
+
flex-wrap: nowrap;
|
|
338
|
+
align-content: center;
|
|
339
|
+
align-items: center;
|
|
340
|
+
justify-content: flex-start;
|
|
341
|
+
width: auto;
|
|
342
|
+
}
|
|
343
|
+
.duet-input-variation-button .duet-input-relative duet-button {
|
|
344
|
+
z-index: 250;
|
|
345
|
+
margin-bottom: 0;
|
|
346
|
+
}
|
|
347
|
+
.duet-input-variation-button .duet-input-relative .duet-input {
|
|
348
|
+
border-right-width: 0 !important;
|
|
349
|
+
border-top-right-radius: 0 !important;
|
|
350
|
+
border-bottom-right-radius: 0 !important;
|
|
302
351
|
}
|