@dubai-design-system/components-js 5.0.3 → 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/CHANGELOG.md +198 -1
- package/MIGRATION.md +423 -0
- package/dist/cjs/dda-accordion.cjs.entry.js +12 -7
- package/dist/cjs/dda-alert.cjs.entry.js +20 -3
- package/dist/cjs/dda-attach-file.cjs.entry.js +24 -8
- package/dist/cjs/dda-avatar.cjs.entry.js +23 -12
- package/dist/cjs/dda-banner.cjs.entry.js +14 -5
- package/dist/cjs/dda-breadcrumb.cjs.entry.js +22 -10
- package/dist/cjs/dda-button.cjs.entry.js +16 -9
- package/dist/cjs/dda-checkbox.cjs.entry.js +5 -4
- package/dist/cjs/dda-chip.cjs.entry.js +8 -3
- package/dist/cjs/dda-credit-card.cjs.entry.js +5 -3
- package/dist/cjs/dda-creditcard-field.cjs.entry.js +26 -8
- package/dist/cjs/dda-dropdown.cjs.entry.js +31 -5
- package/dist/cjs/dda-footer.cjs.entry.js +9 -3
- package/dist/cjs/dda-header.cjs.entry.js +80 -8
- package/dist/cjs/dda-home-banner.cjs.entry.js +11 -5
- package/dist/cjs/dda-horizontal-stepper.cjs.entry.js +22 -5
- package/dist/cjs/dda-input.cjs.entry.js +17 -10
- package/dist/cjs/dda-link-button_2.cjs.entry.js +21 -13
- package/dist/cjs/dda-number-field.cjs.entry.js +20 -8
- package/dist/cjs/dda-pagination.cjs.entry.js +21 -11
- package/dist/cjs/dda-phonefield.cjs.entry.js +27 -9
- package/dist/cjs/dda-progressbar.cjs.entry.js +8 -3
- package/dist/cjs/dda-range-slider.cjs.entry.js +15 -3
- package/dist/cjs/dda-search-input.cjs.entry.js +27 -12
- package/dist/cjs/dda-segmented-tabs.cjs.entry.js +54 -6
- package/dist/cjs/dda-select.cjs.entry.js +40 -8
- package/dist/cjs/dda-sticky-footer.cjs.entry.js +20 -3
- package/dist/cjs/dda-tabs.cjs.entry.js +10 -4
- package/dist/cjs/dda-textarea.cjs.entry.js +22 -12
- package/dist/cjs/dda-toggle.cjs.entry.js +5 -4
- package/dist/cjs/dda-tooltip.cjs.entry.js +6 -4
- package/dist/cjs/dda-ui-card.cjs.entry.js +19 -2
- package/dist/cjs/dda-vertical-stepper.cjs.entry.js +23 -3
- package/dist/cjs/dda.cjs.js +2 -2
- package/dist/cjs/index-Dm7JbFAh.js +2116 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/unique-id-DahNGdQy.js +14 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/dda-accordion/dda-accordion.js +16 -11
- package/dist/collection/components/dda-alert/dda-alert.js +74 -17
- package/dist/collection/components/dda-alert/dda-alert.stories.js +2 -8
- package/dist/collection/components/dda-attach-file/dda-attach-file.js +35 -19
- package/dist/collection/components/dda-attach-file/dda-attach-file.stories.js +0 -9
- package/dist/collection/components/dda-avatar/dda-avatar.js +53 -25
- package/dist/collection/components/dda-avatar/dda-avatar.stories.js +1 -1
- package/dist/collection/components/dda-banner/dda-banner.css +35 -0
- package/dist/collection/components/dda-banner/dda-banner.js +34 -5
- package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js +49 -12
- package/dist/collection/components/dda-button/dda-button.js +29 -22
- package/dist/collection/components/dda-checkbox/dda-checkbox.css +13 -0
- package/dist/collection/components/dda-checkbox/dda-checkbox.js +13 -12
- package/dist/collection/components/dda-checkbox/dda-checkbox.stories.js +0 -11
- package/dist/collection/components/dda-chip/dda-chip.js +34 -9
- package/dist/collection/components/dda-chip/dda-chip.stories.js +0 -11
- package/dist/collection/components/dda-credit-card/dda-credit-card.js +10 -8
- package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.js +58 -23
- package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.stories.js +1 -10
- package/dist/collection/components/dda-dropdown/dda-dropdown.js +90 -18
- package/dist/collection/components/dda-dropdown/dda-dropdown.stories.js +0 -4
- package/dist/collection/components/dda-footer/dda-footer.js +57 -10
- package/dist/collection/components/dda-footer/dda-footer.stories.js +5 -4
- package/dist/collection/components/dda-header/dda-header.css +11 -0
- package/dist/collection/components/dda-header/dda-header.js +224 -37
- package/dist/collection/components/dda-header/dda-header.stories.js +12 -21
- package/dist/collection/components/dda-home-banner/dda-home-banner.js +8 -2
- package/dist/collection/components/dda-home-banner/home-banner.css +21 -1
- package/dist/collection/components/dda-input/dda-input.js +28 -21
- package/dist/collection/components/dda-input/dda-input.stories.js +0 -13
- package/dist/collection/components/dda-link-button/dda-link-button.js +30 -23
- package/dist/collection/components/dda-number-field/dda-number-field.js +54 -22
- package/dist/collection/components/dda-number-field/dda-number-field.stories.js +0 -9
- package/dist/collection/components/dda-pagination/dda-pagination.js +95 -28
- package/dist/collection/components/dda-pagination/dda-pagination.stories.js +24 -24
- package/dist/collection/components/dda-phonefield/dda-phonefield.js +62 -24
- package/dist/collection/components/dda-phonefield/dda-phonefield.stories.js +0 -13
- package/dist/collection/components/dda-progressbar/dda-progressbar.js +13 -8
- package/dist/collection/components/dda-radiobutton/dda-radiobutton.css +121 -4
- package/dist/collection/components/dda-radiobutton/dda-radiobutton.js +13 -12
- package/dist/collection/components/dda-radiobutton/dda-radiobutton.stories.js +5 -16
- package/dist/collection/components/dda-range-slider/dda-range-slider.js +29 -17
- package/dist/collection/components/dda-search-input/dda-search-input.js +61 -26
- package/dist/collection/components/dda-search-input/dda-search-input.stories.js +0 -9
- package/dist/collection/components/dda-select/dda-select.js +78 -20
- package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js +80 -43
- package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.stories.js +1 -1
- package/dist/collection/components/dda-tabs/dda-tabs.js +21 -15
- package/dist/collection/components/dda-tabs/dda-tabs.stories.js +3 -10
- package/dist/collection/components/dda-textarea/dda-textarea.js +33 -23
- package/dist/collection/components/dda-textarea/dda-textarea.stories.js +0 -9
- package/dist/collection/components/dda-toggle/dda-toggle.css +9 -0
- package/dist/collection/components/dda-toggle/dda-toggle.js +47 -8
- package/dist/collection/components/dda-toggle/dda-toggle.stories.js +10 -22
- package/dist/collection/components/dda-tooltip/dda-tooltip.js +9 -7
- package/dist/collection/components/dda-ui-card/dda-ui-card.js +55 -13
- package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.js +79 -11
- package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.css +4 -1
- package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.js +24 -6
- package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.stories.js +2 -2
- package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.js +49 -6
- package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.stories.js +2 -2
- package/dist/collection/global/global.css +117 -4
- package/dist/collection/global/input.css +56 -2
- package/dist/collection/storybook/component-api.js +15 -0
- package/dist/collection/utils/placeholder-color.js +89 -0
- package/dist/collection/utils/unique-id.js +10 -0
- package/dist/components/dda-accordion.js +1 -1
- package/dist/components/dda-alert.js +1 -1
- package/dist/components/dda-attach-file.js +1 -1
- package/dist/components/dda-avatar.js +1 -1
- package/dist/components/dda-banner.js +1 -1
- package/dist/components/dda-breadcrumb.js +1 -1
- package/dist/components/dda-button.js +1 -1
- package/dist/components/dda-checkbox.js +1 -1
- package/dist/components/dda-chip.js +1 -1
- package/dist/components/dda-credit-card.js +1 -1
- package/dist/components/dda-creditcard-field.js +1 -1
- package/dist/components/dda-dropdown.js +1 -1
- package/dist/components/dda-footer.js +1 -1
- package/dist/components/dda-header.js +1 -1
- package/dist/components/dda-home-banner.js +1 -1
- package/dist/components/dda-horizontal-stepper.js +1 -1
- package/dist/components/dda-input.js +1 -1
- package/dist/components/dda-link-button.js +1 -1
- package/dist/components/dda-number-field.js +1 -1
- package/dist/components/dda-pagination.js +1 -1
- package/dist/components/dda-phonefield.js +1 -1
- package/dist/components/dda-progressbar.js +1 -1
- package/dist/components/dda-radiobutton.js +1 -1
- package/dist/components/dda-range-slider.js +1 -1
- package/dist/components/dda-search-input.js +1 -1
- package/dist/components/dda-segmented-tabs.js +1 -1
- package/dist/components/dda-select.js +1 -1
- package/dist/components/dda-sticky-footer.js +1 -1
- package/dist/components/dda-tabs.js +1 -1
- package/dist/components/dda-textarea.js +1 -1
- package/dist/components/dda-toggle.js +1 -1
- package/dist/components/dda-tooltip.js +1 -1
- package/dist/components/dda-ui-card.js +1 -1
- package/dist/components/dda-vertical-stepper.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-B-I003EB.js +1 -0
- package/dist/components/p-B4nkZ15I.js +1 -0
- package/dist/components/p-Bk2uycTf.js +1 -0
- package/dist/components/p-C96R7OFb.js +1 -0
- package/dist/components/p-Ciz-pnTr.js +1 -0
- package/dist/components/p-CleacZFl.js +1 -0
- package/dist/dda/dda.css +2 -2
- package/dist/dda/dda.esm.js +1 -1
- package/dist/dda/p-0daa2a14.entry.js +1 -0
- package/dist/dda/p-1537b9dd.entry.js +1 -0
- package/dist/dda/p-175c52b8.entry.js +1 -0
- package/dist/dda/p-2b65a79a.entry.js +1 -0
- package/dist/dda/p-2d93b185.entry.js +1 -0
- package/dist/dda/p-30d3a014.entry.js +1 -0
- package/dist/dda/p-33b890a5.entry.js +1 -0
- package/dist/dda/p-64d90f29.entry.js +1 -0
- package/dist/dda/p-69bc04c1.entry.js +1 -0
- package/dist/dda/p-6daa282f.entry.js +1 -0
- package/dist/dda/p-72f22d1f.entry.js +1 -0
- package/dist/dda/p-7549868d.entry.js +1 -0
- package/dist/dda/p-7a51a946.entry.js +1 -0
- package/dist/dda/p-7b187e1f.entry.js +1 -0
- package/dist/dda/p-7b4d895e.entry.js +1 -0
- package/dist/dda/p-8f408141.entry.js +1 -0
- package/dist/dda/p-91341ca7.entry.js +1 -0
- package/dist/dda/p-9552def5.entry.js +1 -0
- package/dist/dda/p-9672af43.entry.js +1 -0
- package/dist/dda/p-98bba4dc.entry.js +1 -0
- package/dist/dda/p-B-I003EB.js +1 -0
- package/dist/dda/p-a0768b2f.entry.js +1 -0
- package/dist/dda/p-a5bd30ad.entry.js +1 -0
- package/dist/dda/p-a83f6267.entry.js +1 -0
- package/dist/dda/p-b17f79df.entry.js +1 -0
- package/dist/dda/p-b79505e1.entry.js +1 -0
- package/dist/dda/p-b8b98df2.entry.js +1 -0
- package/dist/dda/p-cc2cc09b.entry.js +1 -0
- package/dist/dda/p-ceee08fa.entry.js +1 -0
- package/dist/dda/p-d000e69d.entry.js +1 -0
- package/dist/dda/p-e3a65ceb.entry.js +1 -0
- package/dist/dda/p-e5b79469.entry.js +1 -0
- package/dist/dda/p-f2f3be5f.entry.js +1 -0
- package/dist/dda/p-f92e0a32.entry.js +1 -0
- package/dist/dda/p-o6021Dsk.js +2 -0
- package/dist/esm/dda-accordion.entry.js +12 -7
- package/dist/esm/dda-alert.entry.js +20 -3
- package/dist/esm/dda-attach-file.entry.js +24 -8
- package/dist/esm/dda-avatar.entry.js +23 -12
- package/dist/esm/dda-banner.entry.js +14 -5
- package/dist/esm/dda-breadcrumb.entry.js +22 -10
- package/dist/esm/dda-button.entry.js +16 -9
- package/dist/esm/dda-checkbox.entry.js +5 -4
- package/dist/esm/dda-chip.entry.js +8 -3
- package/dist/esm/dda-credit-card.entry.js +5 -3
- package/dist/esm/dda-creditcard-field.entry.js +26 -8
- package/dist/esm/dda-dropdown.entry.js +31 -5
- package/dist/esm/dda-footer.entry.js +9 -3
- package/dist/esm/dda-header.entry.js +80 -8
- package/dist/esm/dda-home-banner.entry.js +11 -5
- package/dist/esm/dda-horizontal-stepper.entry.js +22 -5
- package/dist/esm/dda-input.entry.js +17 -10
- package/dist/esm/dda-link-button_2.entry.js +21 -13
- package/dist/esm/dda-number-field.entry.js +20 -8
- package/dist/esm/dda-pagination.entry.js +21 -11
- package/dist/esm/dda-phonefield.entry.js +27 -9
- package/dist/esm/dda-progressbar.entry.js +8 -3
- package/dist/esm/dda-range-slider.entry.js +15 -3
- package/dist/esm/dda-search-input.entry.js +27 -12
- package/dist/esm/dda-segmented-tabs.entry.js +54 -6
- package/dist/esm/dda-select.entry.js +40 -8
- package/dist/esm/dda-sticky-footer.entry.js +20 -3
- package/dist/esm/dda-tabs.entry.js +10 -4
- package/dist/esm/dda-textarea.entry.js +22 -12
- package/dist/esm/dda-toggle.entry.js +5 -4
- package/dist/esm/dda-tooltip.entry.js +6 -4
- package/dist/esm/dda-ui-card.entry.js +19 -2
- package/dist/esm/dda-vertical-stepper.entry.js +23 -3
- package/dist/esm/dda.js +3 -3
- package/dist/esm/index-o6021Dsk.js +2106 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/unique-id-B-I003EB.js +12 -0
- package/dist/types/components/dda-accordion/dda-accordion.d.ts +6 -0
- package/dist/types/components/dda-alert/dda-alert.d.ts +21 -0
- package/dist/types/components/dda-attach-file/dda-attach-file.d.ts +17 -0
- package/dist/types/components/dda-attach-file/dda-attach-file.stories.d.ts +0 -4
- package/dist/types/components/dda-avatar/dda-avatar.d.ts +20 -0
- package/dist/types/components/dda-banner/dda-banner.d.ts +5 -0
- package/dist/types/components/dda-breadcrumb/dda-breadcrumb.d.ts +12 -6
- package/dist/types/components/dda-button/dda-button.d.ts +15 -4
- package/dist/types/components/dda-checkbox/dda-checkbox.d.ts +11 -0
- package/dist/types/components/dda-checkbox/dda-checkbox.stories.d.ts +0 -10
- package/dist/types/components/dda-chip/dda-chip.d.ts +10 -0
- package/dist/types/components/dda-chip/dda-chip.stories.d.ts +0 -6
- package/dist/types/components/dda-credit-card/dda-credit-card.d.ts +7 -0
- package/dist/types/components/dda-creditcard-field/dda-creditcard-field.d.ts +24 -0
- package/dist/types/components/dda-creditcard-field/dda-creditcard-field.stories.d.ts +0 -6
- package/dist/types/components/dda-dropdown/dda-dropdown.d.ts +25 -0
- package/dist/types/components/dda-dropdown/dda-dropdown.stories.d.ts +0 -4
- package/dist/types/components/dda-footer/dda-footer.d.ts +13 -0
- package/dist/types/components/dda-header/dda-header.d.ts +60 -0
- package/dist/types/components/dda-header/dda-header.stories.d.ts +6 -0
- package/dist/types/components/dda-home-banner/dda-home-banner.d.ts +1 -0
- package/dist/types/components/dda-input/dda-input.d.ts +16 -0
- package/dist/types/components/dda-input/dda-input.stories.d.ts +0 -6
- package/dist/types/components/dda-link-button/dda-link-button.d.ts +14 -3
- package/dist/types/components/dda-number-field/dda-number-field.d.ts +21 -0
- package/dist/types/components/dda-number-field/dda-number-field.stories.d.ts +0 -6
- package/dist/types/components/dda-pagination/dda-pagination.d.ts +26 -0
- package/dist/types/components/dda-phonefield/dda-phonefield.d.ts +21 -0
- package/dist/types/components/dda-phonefield/dda-phonefield.stories.d.ts +0 -6
- package/dist/types/components/dda-progressbar/dda-progressbar.d.ts +7 -0
- package/dist/types/components/dda-radiobutton/dda-radiobutton.d.ts +11 -0
- package/dist/types/components/dda-radiobutton/dda-radiobutton.stories.d.ts +5 -15
- package/dist/types/components/dda-range-slider/dda-range-slider.d.ts +16 -0
- package/dist/types/components/dda-search-input/dda-search-input.d.ts +21 -0
- package/dist/types/components/dda-search-input/dda-search-input.stories.d.ts +0 -6
- package/dist/types/components/dda-select/dda-select.d.ts +23 -0
- package/dist/types/components/dda-sticky-footer/dda-sticky-footer.d.ts +46 -3
- package/dist/types/components/dda-tabs/dda-tabs.d.ts +12 -1
- package/dist/types/components/dda-tabs/dda-tabs.stories.d.ts +0 -4
- package/dist/types/components/dda-textarea/dda-textarea.d.ts +16 -0
- package/dist/types/components/dda-textarea/dda-textarea.stories.d.ts +0 -6
- package/dist/types/components/dda-toggle/dda-toggle.d.ts +11 -0
- package/dist/types/components/dda-toggle/dda-toggle.stories.d.ts +2 -12
- package/dist/types/components/dda-tooltip/dda-tooltip.d.ts +5 -0
- package/dist/types/components/dda-ui-card/dda-ui-card.d.ts +13 -1
- package/dist/types/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.d.ts +19 -2
- package/dist/types/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.d.ts +6 -0
- package/dist/types/components/stepper/dda-vertical-stepper/dda-vertical-stepper.d.ts +8 -0
- package/dist/types/components.d.ts +2373 -47
- package/dist/types/utils/placeholder-color.d.ts +10 -0
- package/dist/types/utils/unique-id.d.ts +6 -0
- package/package.json +4 -3
- package/readme.md +6 -0
- package/dist/cjs/index-CDUC0Pdj.js +0 -1986
- package/dist/components/p-9UeqjDnY.js +0 -1
- package/dist/components/p-CrTEb7xH.js +0 -1
- package/dist/components/p-DldlmGnP.js +0 -1
- package/dist/components/p-NvTw9Mx1.js +0 -1
- package/dist/components/p-i15-_er0.js +0 -1
- package/dist/dda/p-016e4090.entry.js +0 -1
- package/dist/dda/p-0229b303.entry.js +0 -1
- package/dist/dda/p-05a6f90d.entry.js +0 -1
- package/dist/dda/p-1c9a6035.entry.js +0 -1
- package/dist/dda/p-2c313105.entry.js +0 -1
- package/dist/dda/p-2cec7be6.entry.js +0 -1
- package/dist/dda/p-2f4ace4c.entry.js +0 -1
- package/dist/dda/p-360a0577.entry.js +0 -1
- package/dist/dda/p-3e49128d.entry.js +0 -1
- package/dist/dda/p-3fa27728.entry.js +0 -1
- package/dist/dda/p-43e1c12f.entry.js +0 -1
- package/dist/dda/p-4428417d.entry.js +0 -1
- package/dist/dda/p-44ce832e.entry.js +0 -1
- package/dist/dda/p-560a3f0c.entry.js +0 -1
- package/dist/dda/p-5712bbd9.entry.js +0 -1
- package/dist/dda/p-626d7e7b.entry.js +0 -1
- package/dist/dda/p-68008c64.entry.js +0 -1
- package/dist/dda/p-6f3d9f78.entry.js +0 -1
- package/dist/dda/p-79db1218.entry.js +0 -1
- package/dist/dda/p-84911fab.entry.js +0 -1
- package/dist/dda/p-90d9648b.entry.js +0 -1
- package/dist/dda/p-91040abe.entry.js +0 -1
- package/dist/dda/p-Cq6A4mXg.js +0 -2
- package/dist/dda/p-a1421a54.entry.js +0 -1
- package/dist/dda/p-a22b1c56.entry.js +0 -1
- package/dist/dda/p-aa0e9035.entry.js +0 -1
- package/dist/dda/p-b2981646.entry.js +0 -1
- package/dist/dda/p-c1f45887.entry.js +0 -1
- package/dist/dda/p-c50e1141.entry.js +0 -1
- package/dist/dda/p-d8a9cab1.entry.js +0 -1
- package/dist/dda/p-dd966009.entry.js +0 -1
- package/dist/dda/p-ed099201.entry.js +0 -1
- package/dist/dda/p-f4bd2b2e.entry.js +0 -1
- package/dist/dda/p-fc30c60e.entry.js +0 -1
- package/dist/esm/index-Cq6A4mXg.js +0 -1976
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class DdaStickyFooter {
|
|
3
3
|
constructor() {
|
|
4
|
+
/** Accessible name of the bar's `<aside>` landmark. Default: `Quick actions`. */
|
|
5
|
+
this.aria_label = 'Quick actions';
|
|
4
6
|
this.isHidden = false;
|
|
5
7
|
this.lastScrollY = 0;
|
|
6
8
|
}
|
|
@@ -9,9 +11,21 @@ export class DdaStickyFooter {
|
|
|
9
11
|
}
|
|
10
12
|
componentDidLoad() {
|
|
11
13
|
window.addEventListener('scroll', this.handleScroll);
|
|
14
|
+
// Publish the bar's height so page layouts fixed above it (.quick-links-wrap) can clear it.
|
|
15
|
+
const bar = this.el.querySelector('.dda-footer');
|
|
16
|
+
if (bar && typeof ResizeObserver !== 'undefined') {
|
|
17
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
18
|
+
document.documentElement.style.setProperty('--dda-sticky-footer-height', `${bar.offsetHeight}px`);
|
|
19
|
+
});
|
|
20
|
+
this.resizeObserver.observe(bar);
|
|
21
|
+
}
|
|
12
22
|
}
|
|
13
23
|
disconnectedCallback() {
|
|
24
|
+
var _a;
|
|
14
25
|
window.removeEventListener('scroll', this.handleScroll);
|
|
26
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
27
|
+
this.resizeObserver = null;
|
|
28
|
+
document.documentElement.style.removeProperty('--dda-sticky-footer-height');
|
|
15
29
|
}
|
|
16
30
|
handleScroll() {
|
|
17
31
|
const currentScrollY = window.scrollY;
|
|
@@ -19,7 +33,9 @@ export class DdaStickyFooter {
|
|
|
19
33
|
this.lastScrollY = currentScrollY;
|
|
20
34
|
}
|
|
21
35
|
render() {
|
|
22
|
-
return (
|
|
36
|
+
return (
|
|
37
|
+
// An <aside>, not a <footer>: the page footer (dda-footer) is the only contentinfo landmark.
|
|
38
|
+
h("aside", { key: '8b7555a98880560dfd74702064d3b6f51e5fda62', class: { 'dda-footer': true, 'hidden': this.isHidden }, "aria-label": this.aria_label, "aria-hidden": this.isHidden ? 'true' : 'false', inert: this.isHidden }, h("div", { key: 'f095ce4be877b0eb1b3c80036751914170810d59', class: "footer-content" }, h("div", { key: 'a88f1a42de024b505e2de483009c3a181467a4a5', class: "dda-footer-item dda-footer-left" }, h("ul", { key: '7628fe339c13cc43b072e91bb9645efb218687c5' }, h("li", { key: '47e95fdff5f9a0a4fc37b50450086669627fd838', class: "foot-icon-btn" }, h("dda-tooltip", { key: '32060fc43b2d7523ed1adc523b2bc068ae12be54', title_text: this.happinessIconTooltip, description: "", position: "top" }, h("a", { key: 'fcd864c4fcb58dd5f3cf3ca93130bb2efdac6467', href: this.happinessIconHref }, h("img", { key: 'e291e4e8240b6d9c7714d0ddcd843f605ee2c38f', src: this.happinessIconSrc, alt: this.happinessIconAlt })))), h("li", { key: 'f95c812837027095cbde1d1abfdfe8ea12aa17cb', class: "foot-icon-btn" }, h("dda-tooltip", { key: '0f3fbc004c2eb30764b35525fa4ca3796590c27b', title_text: this.accessibilityIconTooltip, description: "", position: "top" }, h("a", { key: '5d1f11e1023b843ead46ccd5c0ce2d906a26bdc7', href: this.accessibilityIconHref }, h("img", { key: 'c17880d53cf0da80b2f88f3a40656e368931aa2f', src: this.accessibilityIconSrc, alt: this.accessibilityIconAlt })))), h("li", { key: '67b5d0f991e370a9027d653b5dcf2848419b4411', class: "foot-icon-btn" }, h("dda-tooltip", { key: '1e446a1ca6b52620a2a88b3ab3c4255652ac7ea4', title_text: this.servicesIconTooltip, description: "", position: "top" }, h("a", { key: '273197b8cdc6b67c589c3ca99881f314e9c7b160', href: this.servicesIconHref }, h("img", { key: '084e3447170d9f8d68f29d15483c744453e99f17', src: this.servicesIconSrc, alt: this.servicesIconText ? '' : this.servicesIconAlt }), this.servicesIconText && h("span", { key: 'c59c80ada5e3782c3a69d4a9dfe0ce80edfeebec' }, this.servicesIconText)))))), this.hideMiddleSection == false && (h("div", { key: 'e78274d2cbe470419fe0492652a5c99251cd3d35', class: "dda-footer-item dda-footer-middle" }, h("ul", { key: 'ec7f028fb6b68bf88946947ae0e80662ad4ec747', class: "foot-logo" }, h("li", { key: 'bc5dfda4aed09e2a24803a7ef7d68970b7aba4ea' }, h("dda-tooltip", { key: '8d0a3eaa935b67be17d30a0580c104493f635d96', title_text: this.firstLogoTooltip, description: "", position: "top" }, h("a", { key: 'a7ab2f09ccc3a7d4bb7b9fb9c417b046434fce45', href: this.firstLogoHref }, h("img", { key: '44de6f24ff6af36cfbc669c40bb5d14c22af41c9', src: this.firstLogoSrc, alt: this.firstLogoAlt })))), h("li", { key: '6b74fa28466a3177b67aa526c51e278ab10697b3' }, h("dda-tooltip", { key: 'b98f3a21a83e2b2ca6dd7f9924c5f64d1720b835', title_text: this.secondLogoTooltip, description: "", position: "top" }, h("a", { key: 'd5e01a799a20b66928ef2e523fff5ee39b61010c', href: this.secondLogoHref }, h("img", { key: 'abcfb1d9b8938365b162a48397854ffffb93b89c', src: this.secondLogoSrc, alt: this.secondLogoAlt })))), h("li", { key: '71ba867ee5095e2fb5cdae4bfafa2d19d33c0ece' }, h("dda-tooltip", { key: '9a83c73b7052de260214bf0fe21bb9f95725abe7', title_text: this.thirdLogoTooltip, description: "", position: "top" }, h("a", { key: '585dd0222686a53b5e393ac1f1c6d5c5818dc01c', href: this.thirdLogoHref }, h("img", { key: 'fb59f4b9ee8eb253f320a0b97f09716efaa346d8', src: this.thirdLogoSrc, alt: this.thirdLogoAlt }))))))), h("div", { key: '1eeaa381345f99ae4d2f9a76f9bd84e111d52ce0', class: "dda-footer-item dda-footer-right" }, h("ul", { key: '36446af149436ca1267f23c5f2ed6f22bf3c5e8b' }, h("li", { key: 'aa6e06a5a19663667ab9feb634c0ad548475e8e8', class: "foot-icon-btn" }, h("dda-tooltip", { key: 'f4d38372cf67c8ccd2d4353df0c19bcc8d9e823b', title_text: this.locationButtonText, description: "", position: "top" }, h("a", { key: '135a5585f0070950489d7ae8d70059f6ba622f07', href: this.locationButtonHref }, h("img", { key: '1b8d779b04d8ee01b52106422d1b41c25439ce50', src: this.locationLogoSrc, alt: this.locationButtonText })))), h("li", { key: '88b6ee69c27d6bea4be5fb6de76c4256959f596a', class: "foot-icon-btn" }, h("dda-tooltip", { key: '65625b7817b9ca848c18245c8c048906a1b6f001', title_text: this.newsButtonText, description: "", position: "top" }, h("a", { key: '6495efa83387315879c0c01976fde5945500b646', href: this.newsButtonHref }, h("img", { key: '4e6a3479521faf650564e34cf8ead331804c1cc1', src: this.newsButtonSrc, alt: this.newsButtonText })))), h("li", { key: '6cf00a0f8652ed203dd3bd8cbd9e11def0c6da19', class: "foot-icon-btn" }, h("dda-tooltip", { key: 'c003416a3509d4aefb9ff556794c99a47b7a3129', title_text: this.aiIconTooltip, description: "", position: "top" }, h("a", { key: 'cf708091045b7b0c3d219809476b8f733e79f3c3', href: this.aiIconHref }, h("img", { key: 'bdbec68b408cd6231020ff55690046e76d608e6e', src: this.aiIconSrc, alt: this.aiIconAlt })))), h("li", { key: '20faca8ed93e48c131d71cae5d5cf0a4c5e4d6ad', class: "foot-icon-btn" }, h("dda-tooltip", { key: 'f9bcbb3b6fdec9feaa18843c9ed447d11ac3ceaa', title_text: this.chatIconTooltip, description: "", position: "top" }, h("a", { key: '16449ed75e0d423c1f7cb00b727bef1664a0af03', href: this.chatIconHref }, h("img", { key: 'f90cab5d2d3f4f716565588a5423ffbdb9528330', src: this.chatIconSrc, alt: this.chatIconAlt })))))))));
|
|
23
39
|
}
|
|
24
40
|
static get is() { return "dda-sticky-footer"; }
|
|
25
41
|
static get originalStyleUrls() {
|
|
@@ -46,7 +62,7 @@ export class DdaStickyFooter {
|
|
|
46
62
|
"optional": false,
|
|
47
63
|
"docs": {
|
|
48
64
|
"tags": [],
|
|
49
|
-
"text": "
|
|
65
|
+
"text": "Link URL of the happiness icon (left section)."
|
|
50
66
|
},
|
|
51
67
|
"getter": false,
|
|
52
68
|
"setter": false,
|
|
@@ -65,7 +81,7 @@ export class DdaStickyFooter {
|
|
|
65
81
|
"optional": false,
|
|
66
82
|
"docs": {
|
|
67
83
|
"tags": [],
|
|
68
|
-
"text": ""
|
|
84
|
+
"text": "Image URL of the happiness icon."
|
|
69
85
|
},
|
|
70
86
|
"getter": false,
|
|
71
87
|
"setter": false,
|
|
@@ -84,7 +100,7 @@ export class DdaStickyFooter {
|
|
|
84
100
|
"optional": false,
|
|
85
101
|
"docs": {
|
|
86
102
|
"tags": [],
|
|
87
|
-
"text": ""
|
|
103
|
+
"text": "Alternative text for the happiness icon."
|
|
88
104
|
},
|
|
89
105
|
"getter": false,
|
|
90
106
|
"setter": false,
|
|
@@ -103,7 +119,7 @@ export class DdaStickyFooter {
|
|
|
103
119
|
"optional": false,
|
|
104
120
|
"docs": {
|
|
105
121
|
"tags": [],
|
|
106
|
-
"text": ""
|
|
122
|
+
"text": "Tooltip text of the happiness icon."
|
|
107
123
|
},
|
|
108
124
|
"getter": false,
|
|
109
125
|
"setter": false,
|
|
@@ -122,7 +138,7 @@ export class DdaStickyFooter {
|
|
|
122
138
|
"optional": false,
|
|
123
139
|
"docs": {
|
|
124
140
|
"tags": [],
|
|
125
|
-
"text": ""
|
|
141
|
+
"text": "Link URL of the accessibility icon, the second icon in the left section."
|
|
126
142
|
},
|
|
127
143
|
"getter": false,
|
|
128
144
|
"setter": false,
|
|
@@ -141,7 +157,7 @@ export class DdaStickyFooter {
|
|
|
141
157
|
"optional": false,
|
|
142
158
|
"docs": {
|
|
143
159
|
"tags": [],
|
|
144
|
-
"text": ""
|
|
160
|
+
"text": "Image URL of the accessibility icon."
|
|
145
161
|
},
|
|
146
162
|
"getter": false,
|
|
147
163
|
"setter": false,
|
|
@@ -160,7 +176,7 @@ export class DdaStickyFooter {
|
|
|
160
176
|
"optional": false,
|
|
161
177
|
"docs": {
|
|
162
178
|
"tags": [],
|
|
163
|
-
"text": ""
|
|
179
|
+
"text": "Alternative text for the accessibility icon."
|
|
164
180
|
},
|
|
165
181
|
"getter": false,
|
|
166
182
|
"setter": false,
|
|
@@ -179,7 +195,7 @@ export class DdaStickyFooter {
|
|
|
179
195
|
"optional": false,
|
|
180
196
|
"docs": {
|
|
181
197
|
"tags": [],
|
|
182
|
-
"text": ""
|
|
198
|
+
"text": "Tooltip text of the accessibility icon."
|
|
183
199
|
},
|
|
184
200
|
"getter": false,
|
|
185
201
|
"setter": false,
|
|
@@ -198,7 +214,7 @@ export class DdaStickyFooter {
|
|
|
198
214
|
"optional": false,
|
|
199
215
|
"docs": {
|
|
200
216
|
"tags": [],
|
|
201
|
-
"text": ""
|
|
217
|
+
"text": "Link URL of the services icon (left section)."
|
|
202
218
|
},
|
|
203
219
|
"getter": false,
|
|
204
220
|
"setter": false,
|
|
@@ -217,7 +233,7 @@ export class DdaStickyFooter {
|
|
|
217
233
|
"optional": false,
|
|
218
234
|
"docs": {
|
|
219
235
|
"tags": [],
|
|
220
|
-
"text": ""
|
|
236
|
+
"text": "Image URL of the services icon."
|
|
221
237
|
},
|
|
222
238
|
"getter": false,
|
|
223
239
|
"setter": false,
|
|
@@ -236,7 +252,7 @@ export class DdaStickyFooter {
|
|
|
236
252
|
"optional": false,
|
|
237
253
|
"docs": {
|
|
238
254
|
"tags": [],
|
|
239
|
-
"text": ""
|
|
255
|
+
"text": "Alternative text for the services icon."
|
|
240
256
|
},
|
|
241
257
|
"getter": false,
|
|
242
258
|
"setter": false,
|
|
@@ -255,7 +271,7 @@ export class DdaStickyFooter {
|
|
|
255
271
|
"optional": false,
|
|
256
272
|
"docs": {
|
|
257
273
|
"tags": [],
|
|
258
|
-
"text": ""
|
|
274
|
+
"text": "Tooltip text of the services icon."
|
|
259
275
|
},
|
|
260
276
|
"getter": false,
|
|
261
277
|
"setter": false,
|
|
@@ -274,7 +290,7 @@ export class DdaStickyFooter {
|
|
|
274
290
|
"optional": false,
|
|
275
291
|
"docs": {
|
|
276
292
|
"tags": [],
|
|
277
|
-
"text": ""
|
|
293
|
+
"text": "Text shown next to the services icon. Nothing is shown when it is not set."
|
|
278
294
|
},
|
|
279
295
|
"getter": false,
|
|
280
296
|
"setter": false,
|
|
@@ -293,7 +309,7 @@ export class DdaStickyFooter {
|
|
|
293
309
|
"optional": false,
|
|
294
310
|
"docs": {
|
|
295
311
|
"tags": [],
|
|
296
|
-
"text": "
|
|
312
|
+
"text": "Link URL of the first logo (middle section)."
|
|
297
313
|
},
|
|
298
314
|
"getter": false,
|
|
299
315
|
"setter": false,
|
|
@@ -312,7 +328,7 @@ export class DdaStickyFooter {
|
|
|
312
328
|
"optional": false,
|
|
313
329
|
"docs": {
|
|
314
330
|
"tags": [],
|
|
315
|
-
"text": ""
|
|
331
|
+
"text": "Image URL of the first logo."
|
|
316
332
|
},
|
|
317
333
|
"getter": false,
|
|
318
334
|
"setter": false,
|
|
@@ -331,7 +347,7 @@ export class DdaStickyFooter {
|
|
|
331
347
|
"optional": false,
|
|
332
348
|
"docs": {
|
|
333
349
|
"tags": [],
|
|
334
|
-
"text": ""
|
|
350
|
+
"text": "Alternative text for the first logo."
|
|
335
351
|
},
|
|
336
352
|
"getter": false,
|
|
337
353
|
"setter": false,
|
|
@@ -350,7 +366,7 @@ export class DdaStickyFooter {
|
|
|
350
366
|
"optional": false,
|
|
351
367
|
"docs": {
|
|
352
368
|
"tags": [],
|
|
353
|
-
"text": ""
|
|
369
|
+
"text": "Tooltip text of the first logo."
|
|
354
370
|
},
|
|
355
371
|
"getter": false,
|
|
356
372
|
"setter": false,
|
|
@@ -369,7 +385,7 @@ export class DdaStickyFooter {
|
|
|
369
385
|
"optional": false,
|
|
370
386
|
"docs": {
|
|
371
387
|
"tags": [],
|
|
372
|
-
"text": ""
|
|
388
|
+
"text": "Link URL of the second logo (middle section)."
|
|
373
389
|
},
|
|
374
390
|
"getter": false,
|
|
375
391
|
"setter": false,
|
|
@@ -388,7 +404,7 @@ export class DdaStickyFooter {
|
|
|
388
404
|
"optional": false,
|
|
389
405
|
"docs": {
|
|
390
406
|
"tags": [],
|
|
391
|
-
"text": ""
|
|
407
|
+
"text": "Image URL of the second logo."
|
|
392
408
|
},
|
|
393
409
|
"getter": false,
|
|
394
410
|
"setter": false,
|
|
@@ -407,7 +423,7 @@ export class DdaStickyFooter {
|
|
|
407
423
|
"optional": false,
|
|
408
424
|
"docs": {
|
|
409
425
|
"tags": [],
|
|
410
|
-
"text": ""
|
|
426
|
+
"text": "Alternative text for the second logo."
|
|
411
427
|
},
|
|
412
428
|
"getter": false,
|
|
413
429
|
"setter": false,
|
|
@@ -426,7 +442,7 @@ export class DdaStickyFooter {
|
|
|
426
442
|
"optional": false,
|
|
427
443
|
"docs": {
|
|
428
444
|
"tags": [],
|
|
429
|
-
"text": ""
|
|
445
|
+
"text": "Tooltip text of the second logo."
|
|
430
446
|
},
|
|
431
447
|
"getter": false,
|
|
432
448
|
"setter": false,
|
|
@@ -445,7 +461,7 @@ export class DdaStickyFooter {
|
|
|
445
461
|
"optional": false,
|
|
446
462
|
"docs": {
|
|
447
463
|
"tags": [],
|
|
448
|
-
"text": ""
|
|
464
|
+
"text": "Link URL of the third logo (middle section)."
|
|
449
465
|
},
|
|
450
466
|
"getter": false,
|
|
451
467
|
"setter": false,
|
|
@@ -464,7 +480,7 @@ export class DdaStickyFooter {
|
|
|
464
480
|
"optional": false,
|
|
465
481
|
"docs": {
|
|
466
482
|
"tags": [],
|
|
467
|
-
"text": ""
|
|
483
|
+
"text": "Image URL of the third logo."
|
|
468
484
|
},
|
|
469
485
|
"getter": false,
|
|
470
486
|
"setter": false,
|
|
@@ -483,7 +499,7 @@ export class DdaStickyFooter {
|
|
|
483
499
|
"optional": false,
|
|
484
500
|
"docs": {
|
|
485
501
|
"tags": [],
|
|
486
|
-
"text": ""
|
|
502
|
+
"text": "Alternative text for the third logo."
|
|
487
503
|
},
|
|
488
504
|
"getter": false,
|
|
489
505
|
"setter": false,
|
|
@@ -502,7 +518,7 @@ export class DdaStickyFooter {
|
|
|
502
518
|
"optional": false,
|
|
503
519
|
"docs": {
|
|
504
520
|
"tags": [],
|
|
505
|
-
"text": ""
|
|
521
|
+
"text": "Tooltip text of the third logo."
|
|
506
522
|
},
|
|
507
523
|
"getter": false,
|
|
508
524
|
"setter": false,
|
|
@@ -521,7 +537,7 @@ export class DdaStickyFooter {
|
|
|
521
537
|
"optional": false,
|
|
522
538
|
"docs": {
|
|
523
539
|
"tags": [],
|
|
524
|
-
"text": "
|
|
540
|
+
"text": "Link URL of the location icon (right section)."
|
|
525
541
|
},
|
|
526
542
|
"getter": false,
|
|
527
543
|
"setter": false,
|
|
@@ -540,7 +556,7 @@ export class DdaStickyFooter {
|
|
|
540
556
|
"optional": false,
|
|
541
557
|
"docs": {
|
|
542
558
|
"tags": [],
|
|
543
|
-
"text": ""
|
|
559
|
+
"text": "Image URL of the location icon."
|
|
544
560
|
},
|
|
545
561
|
"getter": false,
|
|
546
562
|
"setter": false,
|
|
@@ -559,7 +575,7 @@ export class DdaStickyFooter {
|
|
|
559
575
|
"optional": false,
|
|
560
576
|
"docs": {
|
|
561
577
|
"tags": [],
|
|
562
|
-
"text": ""
|
|
578
|
+
"text": "Tooltip text and alternative text of the location icon."
|
|
563
579
|
},
|
|
564
580
|
"getter": false,
|
|
565
581
|
"setter": false,
|
|
@@ -578,7 +594,7 @@ export class DdaStickyFooter {
|
|
|
578
594
|
"optional": false,
|
|
579
595
|
"docs": {
|
|
580
596
|
"tags": [],
|
|
581
|
-
"text": ""
|
|
597
|
+
"text": "Not used: the current markup does not render it."
|
|
582
598
|
},
|
|
583
599
|
"getter": false,
|
|
584
600
|
"setter": false,
|
|
@@ -597,7 +613,7 @@ export class DdaStickyFooter {
|
|
|
597
613
|
"optional": false,
|
|
598
614
|
"docs": {
|
|
599
615
|
"tags": [],
|
|
600
|
-
"text": ""
|
|
616
|
+
"text": "Link URL of the news icon (right section)."
|
|
601
617
|
},
|
|
602
618
|
"getter": false,
|
|
603
619
|
"setter": false,
|
|
@@ -616,7 +632,7 @@ export class DdaStickyFooter {
|
|
|
616
632
|
"optional": false,
|
|
617
633
|
"docs": {
|
|
618
634
|
"tags": [],
|
|
619
|
-
"text": ""
|
|
635
|
+
"text": "Image URL of the news icon."
|
|
620
636
|
},
|
|
621
637
|
"getter": false,
|
|
622
638
|
"setter": false,
|
|
@@ -635,7 +651,7 @@ export class DdaStickyFooter {
|
|
|
635
651
|
"optional": false,
|
|
636
652
|
"docs": {
|
|
637
653
|
"tags": [],
|
|
638
|
-
"text": ""
|
|
654
|
+
"text": "Tooltip text and alternative text of the news icon."
|
|
639
655
|
},
|
|
640
656
|
"getter": false,
|
|
641
657
|
"setter": false,
|
|
@@ -654,7 +670,7 @@ export class DdaStickyFooter {
|
|
|
654
670
|
"optional": false,
|
|
655
671
|
"docs": {
|
|
656
672
|
"tags": [],
|
|
657
|
-
"text": ""
|
|
673
|
+
"text": "Not used: the current markup does not render it."
|
|
658
674
|
},
|
|
659
675
|
"getter": false,
|
|
660
676
|
"setter": false,
|
|
@@ -673,7 +689,7 @@ export class DdaStickyFooter {
|
|
|
673
689
|
"optional": false,
|
|
674
690
|
"docs": {
|
|
675
691
|
"tags": [],
|
|
676
|
-
"text": ""
|
|
692
|
+
"text": "Link URL of the AI assistant icon (right section)."
|
|
677
693
|
},
|
|
678
694
|
"getter": false,
|
|
679
695
|
"setter": false,
|
|
@@ -692,7 +708,7 @@ export class DdaStickyFooter {
|
|
|
692
708
|
"optional": false,
|
|
693
709
|
"docs": {
|
|
694
710
|
"tags": [],
|
|
695
|
-
"text": ""
|
|
711
|
+
"text": "Image URL of the AI assistant icon."
|
|
696
712
|
},
|
|
697
713
|
"getter": false,
|
|
698
714
|
"setter": false,
|
|
@@ -711,7 +727,7 @@ export class DdaStickyFooter {
|
|
|
711
727
|
"optional": false,
|
|
712
728
|
"docs": {
|
|
713
729
|
"tags": [],
|
|
714
|
-
"text": ""
|
|
730
|
+
"text": "Alternative text for the AI assistant icon."
|
|
715
731
|
},
|
|
716
732
|
"getter": false,
|
|
717
733
|
"setter": false,
|
|
@@ -730,7 +746,7 @@ export class DdaStickyFooter {
|
|
|
730
746
|
"optional": false,
|
|
731
747
|
"docs": {
|
|
732
748
|
"tags": [],
|
|
733
|
-
"text": ""
|
|
749
|
+
"text": "Tooltip text of the AI assistant icon."
|
|
734
750
|
},
|
|
735
751
|
"getter": false,
|
|
736
752
|
"setter": false,
|
|
@@ -749,7 +765,7 @@ export class DdaStickyFooter {
|
|
|
749
765
|
"optional": false,
|
|
750
766
|
"docs": {
|
|
751
767
|
"tags": [],
|
|
752
|
-
"text": ""
|
|
768
|
+
"text": "Link URL of the chat icon (right section)."
|
|
753
769
|
},
|
|
754
770
|
"getter": false,
|
|
755
771
|
"setter": false,
|
|
@@ -768,7 +784,7 @@ export class DdaStickyFooter {
|
|
|
768
784
|
"optional": false,
|
|
769
785
|
"docs": {
|
|
770
786
|
"tags": [],
|
|
771
|
-
"text": ""
|
|
787
|
+
"text": "Image URL of the chat icon."
|
|
772
788
|
},
|
|
773
789
|
"getter": false,
|
|
774
790
|
"setter": false,
|
|
@@ -787,7 +803,7 @@ export class DdaStickyFooter {
|
|
|
787
803
|
"optional": false,
|
|
788
804
|
"docs": {
|
|
789
805
|
"tags": [],
|
|
790
|
-
"text": ""
|
|
806
|
+
"text": "Alternative text for the chat icon."
|
|
791
807
|
},
|
|
792
808
|
"getter": false,
|
|
793
809
|
"setter": false,
|
|
@@ -806,13 +822,33 @@ export class DdaStickyFooter {
|
|
|
806
822
|
"optional": false,
|
|
807
823
|
"docs": {
|
|
808
824
|
"tags": [],
|
|
809
|
-
"text": ""
|
|
825
|
+
"text": "Tooltip text of the chat icon."
|
|
810
826
|
},
|
|
811
827
|
"getter": false,
|
|
812
828
|
"setter": false,
|
|
813
829
|
"reflect": false,
|
|
814
830
|
"attribute": "chat-icon-tooltip"
|
|
815
831
|
},
|
|
832
|
+
"aria_label": {
|
|
833
|
+
"type": "string",
|
|
834
|
+
"mutable": false,
|
|
835
|
+
"complexType": {
|
|
836
|
+
"original": "string",
|
|
837
|
+
"resolved": "string",
|
|
838
|
+
"references": {}
|
|
839
|
+
},
|
|
840
|
+
"required": false,
|
|
841
|
+
"optional": false,
|
|
842
|
+
"docs": {
|
|
843
|
+
"tags": [],
|
|
844
|
+
"text": "Accessible name of the bar's `<aside>` landmark. Default: `Quick actions`."
|
|
845
|
+
},
|
|
846
|
+
"getter": false,
|
|
847
|
+
"setter": false,
|
|
848
|
+
"reflect": false,
|
|
849
|
+
"attribute": "aria_label",
|
|
850
|
+
"defaultValue": "'Quick actions'"
|
|
851
|
+
},
|
|
816
852
|
"hideMiddleSection": {
|
|
817
853
|
"type": "boolean",
|
|
818
854
|
"mutable": false,
|
|
@@ -825,7 +861,7 @@ export class DdaStickyFooter {
|
|
|
825
861
|
"optional": false,
|
|
826
862
|
"docs": {
|
|
827
863
|
"tags": [],
|
|
828
|
-
"text": ""
|
|
864
|
+
"text": "Hides the middle logo section. The section shows only when this is explicitly `false`."
|
|
829
865
|
},
|
|
830
866
|
"getter": false,
|
|
831
867
|
"setter": false,
|
|
@@ -839,4 +875,5 @@ export class DdaStickyFooter {
|
|
|
839
875
|
"isHidden": {}
|
|
840
876
|
};
|
|
841
877
|
}
|
|
878
|
+
static get elementRef() { return "el"; }
|
|
842
879
|
}
|
|
@@ -65,7 +65,7 @@ const Template = args => `
|
|
|
65
65
|
news-button-href="${args.newsButtonHref}"
|
|
66
66
|
news-button-text="${args.newsButtonText}"
|
|
67
67
|
news-button-icon="${args.newsButtonIcon}"
|
|
68
|
-
news-
|
|
68
|
+
news-button-src="${args.newsButtonSrc}"
|
|
69
69
|
|
|
70
70
|
ai-icon-href="${args.aiIconHref}"
|
|
71
71
|
ai-icon-src="${args.aiIconSrc}"
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class DdaTabs {
|
|
3
3
|
constructor() {
|
|
4
|
+
/** Tab content: `text` (label only) or `text-icon` (icon from `tab_icons` before the label). */
|
|
4
5
|
this.type = 'text';
|
|
6
|
+
/** Style of the active and hovered tab: `dda-tab-default`, `dda-tab-filed`, `dda-tab-underline` or `dda-tab-underline-filled`. */
|
|
5
7
|
this.hover_style = 'dda-tab-default';
|
|
8
|
+
/** Not used by the component; it has no effect. */
|
|
6
9
|
this.border_bottom = false;
|
|
10
|
+
/** Extra CSS classes added to the tab group. */
|
|
7
11
|
this.custom_class = '';
|
|
8
|
-
|
|
12
|
+
/** Tab labels, as a JSON string array, e.g. `'["Details", "Documents"]'`. */
|
|
13
|
+
this.tab_texts = '["Tab 1", "Tab 2", "Tab 3"]';
|
|
14
|
+
/** Material Icons names, one per tab in the same order, as a JSON string array. Shown when `type` is `text-icon`. */
|
|
9
15
|
this.tab_icons = '["sentiment_satisfied", "sentiment_satisfied", "sentiment_satisfied"]';
|
|
10
16
|
this.tabhandler = (index) => {
|
|
11
17
|
this.tabClick.emit(index);
|
|
@@ -38,7 +44,7 @@ export class DdaTabs {
|
|
|
38
44
|
}
|
|
39
45
|
}
|
|
40
46
|
render() {
|
|
41
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: '08043e9d39b5ad9a620384b4f917245ddff9924e' }, h("div", { key: '2ed3614f6f932a43c4601201c2bf02483e161a0e', role: "group", "aria-label": this.aria_label, class: `dda-tabs-container ${this.hover_style} ${this.custom_class} ${this.component_mode}` }, this.parsedTabs.map((title, index) => (h("button", { id: this.button_id, name: this.button_name, type: "button", "aria-pressed": this.active_tab === index ? 'true' : 'false', class: `dda-tab-item ${this.active_tab === index ? 'active' : ''}`, onClick: () => this.setActiveTab(index) }, this.type === 'text-icon' && h("i", { class: `material-icons`, "aria-hidden": "true" }, this.parsedIcons[index] || ""), h("span", null, title)))))));
|
|
42
48
|
}
|
|
43
49
|
static get is() { return "dda-tabs"; }
|
|
44
50
|
static get originalStyleUrls() {
|
|
@@ -65,7 +71,7 @@ export class DdaTabs {
|
|
|
65
71
|
"optional": false,
|
|
66
72
|
"docs": {
|
|
67
73
|
"tags": [],
|
|
68
|
-
"text": ""
|
|
74
|
+
"text": "Tab content: `text` (label only) or `text-icon` (icon from `tab_icons` before the label)."
|
|
69
75
|
},
|
|
70
76
|
"getter": false,
|
|
71
77
|
"setter": false,
|
|
@@ -85,7 +91,7 @@ export class DdaTabs {
|
|
|
85
91
|
"optional": false,
|
|
86
92
|
"docs": {
|
|
87
93
|
"tags": [],
|
|
88
|
-
"text": ""
|
|
94
|
+
"text": "Style of the active and hovered tab: `dda-tab-default`, `dda-tab-filed`, `dda-tab-underline` or `dda-tab-underline-filled`."
|
|
89
95
|
},
|
|
90
96
|
"getter": false,
|
|
91
97
|
"setter": false,
|
|
@@ -105,7 +111,7 @@ export class DdaTabs {
|
|
|
105
111
|
"optional": false,
|
|
106
112
|
"docs": {
|
|
107
113
|
"tags": [],
|
|
108
|
-
"text": ""
|
|
114
|
+
"text": "Not used by the component; it has no effect."
|
|
109
115
|
},
|
|
110
116
|
"getter": false,
|
|
111
117
|
"setter": false,
|
|
@@ -125,7 +131,7 @@ export class DdaTabs {
|
|
|
125
131
|
"optional": true,
|
|
126
132
|
"docs": {
|
|
127
133
|
"tags": [],
|
|
128
|
-
"text": ""
|
|
134
|
+
"text": "Extra CSS classes added to the tab group."
|
|
129
135
|
},
|
|
130
136
|
"getter": false,
|
|
131
137
|
"setter": false,
|
|
@@ -145,7 +151,7 @@ export class DdaTabs {
|
|
|
145
151
|
"optional": true,
|
|
146
152
|
"docs": {
|
|
147
153
|
"tags": [],
|
|
148
|
-
"text": ""
|
|
154
|
+
"text": "Theme override class on the tab group, e.g. `light-mode`."
|
|
149
155
|
},
|
|
150
156
|
"getter": false,
|
|
151
157
|
"setter": false,
|
|
@@ -164,7 +170,7 @@ export class DdaTabs {
|
|
|
164
170
|
"optional": true,
|
|
165
171
|
"docs": {
|
|
166
172
|
"tags": [],
|
|
167
|
-
"text": ""
|
|
173
|
+
"text": "`id` set on every tab button."
|
|
168
174
|
},
|
|
169
175
|
"getter": false,
|
|
170
176
|
"setter": false,
|
|
@@ -183,7 +189,7 @@ export class DdaTabs {
|
|
|
183
189
|
"optional": false,
|
|
184
190
|
"docs": {
|
|
185
191
|
"tags": [],
|
|
186
|
-
"text": ""
|
|
192
|
+
"text": "Accessible name for the tab group (`aria-label` on the `role=\"group\"` container)."
|
|
187
193
|
},
|
|
188
194
|
"getter": false,
|
|
189
195
|
"setter": false,
|
|
@@ -202,7 +208,7 @@ export class DdaTabs {
|
|
|
202
208
|
"optional": false,
|
|
203
209
|
"docs": {
|
|
204
210
|
"tags": [],
|
|
205
|
-
"text": ""
|
|
211
|
+
"text": "Tab labels, as a JSON string array, e.g. `'[\"Details\", \"Documents\"]'`."
|
|
206
212
|
},
|
|
207
213
|
"getter": false,
|
|
208
214
|
"setter": false,
|
|
@@ -222,7 +228,7 @@ export class DdaTabs {
|
|
|
222
228
|
"optional": false,
|
|
223
229
|
"docs": {
|
|
224
230
|
"tags": [],
|
|
225
|
-
"text": ""
|
|
231
|
+
"text": "Material Icons names, one per tab in the same order, as a JSON string array. Shown when `type` is `text-icon`."
|
|
226
232
|
},
|
|
227
233
|
"getter": false,
|
|
228
234
|
"setter": false,
|
|
@@ -242,7 +248,7 @@ export class DdaTabs {
|
|
|
242
248
|
"optional": false,
|
|
243
249
|
"docs": {
|
|
244
250
|
"tags": [],
|
|
245
|
-
"text": ""
|
|
251
|
+
"text": "`name` set on every tab button."
|
|
246
252
|
},
|
|
247
253
|
"getter": false,
|
|
248
254
|
"setter": false,
|
|
@@ -265,11 +271,11 @@ export class DdaTabs {
|
|
|
265
271
|
"composed": true,
|
|
266
272
|
"docs": {
|
|
267
273
|
"tags": [],
|
|
268
|
-
"text": ""
|
|
274
|
+
"text": "Fires when the user clicks a tab. `detail` is the tab index, a number from 0."
|
|
269
275
|
},
|
|
270
276
|
"complexType": {
|
|
271
|
-
"original": "
|
|
272
|
-
"resolved": "
|
|
277
|
+
"original": "number",
|
|
278
|
+
"resolved": "number",
|
|
273
279
|
"references": {}
|
|
274
280
|
}
|
|
275
281
|
}];
|
|
@@ -33,10 +33,6 @@ export default {
|
|
|
33
33
|
control: { type: 'array' },
|
|
34
34
|
description: 'Array of tab labels',
|
|
35
35
|
},
|
|
36
|
-
onTabClick: {
|
|
37
|
-
action: 'tab-clicked',
|
|
38
|
-
description: 'Callback function when a tab is clicked',
|
|
39
|
-
},
|
|
40
36
|
button_name: {
|
|
41
37
|
control: { type: 'text' },
|
|
42
38
|
description: 'Button name for the tabs',
|
|
@@ -57,14 +53,13 @@ export default {
|
|
|
57
53
|
button_id="button"
|
|
58
54
|
aria_label="tabs"
|
|
59
55
|
tab_texts='["Tab 1", "Tab 2", "Tab 3"]'
|
|
60
|
-
onTabClick="handleTabClick"
|
|
61
56
|
button_name="button"
|
|
62
57
|
></dda-tabs>
|
|
63
58
|
|
|
64
59
|
<script>
|
|
65
|
-
|
|
66
|
-
console.log('Clicked Tab:',
|
|
67
|
-
}
|
|
60
|
+
document.querySelector('dda-tabs').addEventListener('tabClick', e => {
|
|
61
|
+
console.log('Clicked Tab:', e.detail);
|
|
62
|
+
});
|
|
68
63
|
</script>
|
|
69
64
|
\`\`\`
|
|
70
65
|
`,
|
|
@@ -88,7 +83,6 @@ TextTabs.args = {
|
|
|
88
83
|
button_id: 'button',
|
|
89
84
|
aria_label: 'tabs',
|
|
90
85
|
tab_texts: ['Tab 1', 'Tab 2', 'Tab 3'],
|
|
91
|
-
onTabClick: (index) => alert(`Tab ${index + 1} clicked!`), // Example event
|
|
92
86
|
button_name: 'button',
|
|
93
87
|
};
|
|
94
88
|
export const TextIconTabs = Template.bind({});
|
|
@@ -100,6 +94,5 @@ TextIconTabs.args = {
|
|
|
100
94
|
button_id: 'button',
|
|
101
95
|
aria_label: 'tabs',
|
|
102
96
|
tab_texts: ['Tab 1', 'Tab 2', 'Tab 3'],
|
|
103
|
-
onTabClick: (index) => alert(`Tab ${index + 1} clicked!`), // Example event
|
|
104
97
|
button_name: 'button',
|
|
105
98
|
};
|