@dubai-design-system/components-js 5.0.3 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +233 -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 +88 -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-Bgd2iAET.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 +232 -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 +23 -2
- package/dist/collection/components/dda-input/dda-input.js +47 -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 +156 -25
- 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 +152 -25
- 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-Bc2V1U4_.js +1 -0
- package/dist/components/p-Bzqf-PpF.js +1 -0
- package/dist/components/p-D-CHT-as.js +1 -0
- package/dist/components/p-DJw8qV7U.js +1 -0
- package/dist/components/p-DpwQ9sGp.js +1 -0
- package/dist/dda/dda.css +2 -2
- package/dist/dda/dda.esm.js +1 -1
- package/dist/dda/p-03400387.entry.js +1 -0
- package/dist/dda/p-04bcda8a.entry.js +1 -0
- package/dist/dda/p-18a3d7b1.entry.js +1 -0
- package/dist/dda/p-1f7b8486.entry.js +1 -0
- package/dist/dda/p-3024288f.entry.js +1 -0
- package/dist/dda/p-41b8ed7d.entry.js +1 -0
- package/dist/dda/p-56f60336.entry.js +1 -0
- package/dist/dda/p-65776d80.entry.js +1 -0
- package/dist/dda/p-73611084.entry.js +1 -0
- package/dist/dda/p-7ad8cde9.entry.js +1 -0
- package/dist/dda/p-8134e59d.entry.js +1 -0
- package/dist/dda/p-8494fd9e.entry.js +1 -0
- package/dist/dda/p-876d55b2.entry.js +1 -0
- package/dist/dda/p-88d884a8.entry.js +1 -0
- package/dist/dda/p-8b25ae94.entry.js +1 -0
- package/dist/dda/p-8f376986.entry.js +1 -0
- package/dist/dda/p-90019b80.entry.js +1 -0
- package/dist/dda/p-92fa4777.entry.js +1 -0
- package/dist/dda/p-97431faf.entry.js +1 -0
- package/dist/dda/p-B-I003EB.js +1 -0
- package/dist/dda/p-D6L6zgH9.js +2 -0
- package/dist/dda/p-a5456de2.entry.js +1 -0
- package/dist/dda/p-aa7b4c13.entry.js +1 -0
- package/dist/dda/p-ad40eb27.entry.js +1 -0
- package/dist/dda/p-c055f0d2.entry.js +1 -0
- package/dist/dda/p-c42c8733.entry.js +1 -0
- package/dist/dda/p-c77282be.entry.js +1 -0
- package/dist/dda/p-ca64abe6.entry.js +1 -0
- package/dist/dda/p-ceca8088.entry.js +1 -0
- package/dist/dda/p-d6786b43.entry.js +1 -0
- package/dist/dda/p-e2113e42.entry.js +1 -0
- package/dist/dda/p-ee862207.entry.js +1 -0
- package/dist/dda/p-ef38e28b.entry.js +1 -0
- package/dist/dda/p-f43fb910.entry.js +1 -0
- package/dist/dda/p-fb4db977.entry.js +1 -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 +88 -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-D6L6zgH9.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 +62 -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 +18 -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 -38
- 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
|
@@ -5,353 +5,792 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { BreadcrumbItem } from "./components/dda-breadcrumb/dda-breadcrumb";
|
|
9
|
+
export { BreadcrumbItem } from "./components/dda-breadcrumb/dda-breadcrumb";
|
|
8
10
|
export namespace Components {
|
|
9
11
|
interface DdaAccordion {
|
|
10
12
|
/**
|
|
13
|
+
* Material Symbols icon name shown before the header text, e.g. `info`.
|
|
11
14
|
* @default 'info'
|
|
12
15
|
*/
|
|
13
16
|
"accordion_icon": string;
|
|
14
17
|
/**
|
|
18
|
+
* Paragraph text shown in the panel when it is open. Slotted content follows it.
|
|
15
19
|
* @default ''
|
|
16
20
|
*/
|
|
17
21
|
"body_description": string;
|
|
22
|
+
/**
|
|
23
|
+
* Theme override class for the container, e.g. `light-mode`.
|
|
24
|
+
*/
|
|
18
25
|
"component_mode"?: string;
|
|
19
26
|
/**
|
|
27
|
+
* Extra CSS classes added to the accordion container.
|
|
20
28
|
* @default ''
|
|
21
29
|
*/
|
|
22
30
|
"custom_class"?: string;
|
|
23
31
|
/**
|
|
32
|
+
* Container style: `bg-border` (filled background with border) or `no-border` (no background or border).
|
|
24
33
|
* @default 'bg-border'
|
|
25
34
|
*/
|
|
26
35
|
"design": 'bg-border' | 'no-border';
|
|
27
36
|
/**
|
|
37
|
+
* Text shown in the header button that opens and closes the panel.
|
|
28
38
|
* @default 'Accordion Header'
|
|
29
39
|
*/
|
|
30
40
|
"header_text": string;
|
|
31
41
|
}
|
|
32
42
|
interface DdaAlert {
|
|
43
|
+
/**
|
|
44
|
+
* `name` of the close button.
|
|
45
|
+
*/
|
|
33
46
|
"button_name"?: string;
|
|
34
47
|
/**
|
|
48
|
+
* Not used by the component; nothing is rendered from this value.
|
|
35
49
|
* @default ''
|
|
36
50
|
*/
|
|
37
51
|
"button_text": string;
|
|
52
|
+
/**
|
|
53
|
+
* Click handler for the close button, set as a JavaScript property. The alert does not hide itself.
|
|
54
|
+
*/
|
|
38
55
|
"clickHandler"?: (event: MouseEvent) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Accessible name of the close button, read by screen readers instead of the icon ligature.
|
|
58
|
+
* @default 'Close'
|
|
59
|
+
*/
|
|
60
|
+
"close_button_label": string;
|
|
61
|
+
/**
|
|
62
|
+
* Not used by the component; it is not applied to any element.
|
|
63
|
+
*/
|
|
39
64
|
"component_id"?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Theme override class for the alert, e.g. `light-mode`.
|
|
67
|
+
*/
|
|
40
68
|
"component_mode"?: string;
|
|
41
69
|
/**
|
|
70
|
+
* Extra CSS classes added to the alert container.
|
|
42
71
|
* @default ''
|
|
43
72
|
*/
|
|
44
73
|
"custom_class"?: string;
|
|
45
74
|
/**
|
|
75
|
+
* Body text shown below the heading.
|
|
46
76
|
* @default ''
|
|
47
77
|
*/
|
|
48
78
|
"description": string;
|
|
79
|
+
/**
|
|
80
|
+
* Label of the first action link. The link shows only when this is set.
|
|
81
|
+
*/
|
|
49
82
|
"first_button"?: string;
|
|
83
|
+
/**
|
|
84
|
+
* `href` of the first action link.
|
|
85
|
+
*/
|
|
50
86
|
"first_link"?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Heading level (1–6) of the title; pick the level that fits the page outline.
|
|
89
|
+
* @default 4
|
|
90
|
+
*/
|
|
91
|
+
"heading_level": number;
|
|
92
|
+
/**
|
|
93
|
+
* Label of the second action link. The link shows only when this is set.
|
|
94
|
+
*/
|
|
51
95
|
"second_button"?: string;
|
|
96
|
+
/**
|
|
97
|
+
* `href` of the second action link.
|
|
98
|
+
*/
|
|
52
99
|
"second_link"?: string;
|
|
53
100
|
/**
|
|
101
|
+
* Heading text of the alert.
|
|
54
102
|
* @default ''
|
|
55
103
|
*/
|
|
56
104
|
"title_text": string;
|
|
57
105
|
/**
|
|
106
|
+
* Style: `primary` uses a tinted background and border in the variation color; `secondary` uses a neutral surface and border.
|
|
58
107
|
* @default 'primary'
|
|
59
108
|
*/
|
|
60
109
|
"type": 'primary' | 'secondary';
|
|
61
110
|
/**
|
|
111
|
+
* Color and screen reader urgency: `info`, `warning`, `error` or `success`. `error` uses `role="alert"`; the others use `role="status"`.
|
|
62
112
|
* @default 'info'
|
|
63
113
|
*/
|
|
64
114
|
"variation": 'info' | 'warning' | 'error' | 'success';
|
|
65
115
|
}
|
|
66
116
|
interface DdaAttachFile {
|
|
67
117
|
/**
|
|
118
|
+
* Accessible name of the file input. Not rendered when empty.
|
|
68
119
|
* @default ''
|
|
69
120
|
*/
|
|
70
121
|
"aria_label"?: string;
|
|
71
122
|
/**
|
|
123
|
+
* Accessible name of the remove button shown after a file is chosen, e.g. `Remove file`.
|
|
72
124
|
* @default ''
|
|
73
125
|
*/
|
|
74
126
|
"button_aria_label"?: string;
|
|
127
|
+
/**
|
|
128
|
+
* `id` of the remove button shown after a file is chosen.
|
|
129
|
+
*/
|
|
75
130
|
"button_id": string;
|
|
131
|
+
/**
|
|
132
|
+
* `name` of the remove button shown after a file is chosen.
|
|
133
|
+
*/
|
|
76
134
|
"button_name"?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Theme override class for the field, e.g. `light-mode`.
|
|
137
|
+
*/
|
|
77
138
|
"component_mode"?: string;
|
|
78
139
|
/**
|
|
140
|
+
* Extra CSS classes added to the field container.
|
|
79
141
|
* @default ''
|
|
80
142
|
*/
|
|
81
143
|
"custom_class"?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Error text shown below the field. Also sets `aria-invalid="true"` on the file input.
|
|
146
|
+
*/
|
|
82
147
|
"error_message": string;
|
|
148
|
+
/**
|
|
149
|
+
* Helper text shown below the field. Linked by `aria-describedby`.
|
|
150
|
+
*/
|
|
83
151
|
"helper_text": string;
|
|
152
|
+
/**
|
|
153
|
+
* `id` of the file input. Also used to link the label, helper text and error message. Optional: an id is generated when it is not set.
|
|
154
|
+
*/
|
|
84
155
|
"input_id": string;
|
|
156
|
+
/**
|
|
157
|
+
* `name` of the file input.
|
|
158
|
+
*/
|
|
85
159
|
"input_name"?: string;
|
|
160
|
+
/**
|
|
161
|
+
* Adds the class `dda-input-<value>`. `disabled` gives the disabled look only; it does not disable the file input.
|
|
162
|
+
*/
|
|
86
163
|
"input_type"?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Label text shown above the field. Linked to the file input through `input_id` (or a generated id).
|
|
166
|
+
*/
|
|
87
167
|
"label": string;
|
|
168
|
+
/**
|
|
169
|
+
* Size: `default` or `small`.
|
|
170
|
+
*/
|
|
88
171
|
"size"?: string;
|
|
172
|
+
/**
|
|
173
|
+
* Validation state: `error` applies the error colors.
|
|
174
|
+
*/
|
|
89
175
|
"validation_type"?: string;
|
|
90
176
|
}
|
|
91
177
|
interface DdaAvatar {
|
|
178
|
+
/**
|
|
179
|
+
* Accessible name of the avatar button and of each option button. The avatar button falls back to `Avatar options`.
|
|
180
|
+
*/
|
|
92
181
|
"aria_label": string;
|
|
182
|
+
/**
|
|
183
|
+
* `id` applied to each option button in the dropdown.
|
|
184
|
+
*/
|
|
93
185
|
"button_id"?: string;
|
|
186
|
+
/**
|
|
187
|
+
* `name` of each option button in the dropdown. Also added as a CSS class on the avatar container.
|
|
188
|
+
*/
|
|
94
189
|
"button_name"?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Theme override class for the avatar, e.g. `light-mode`.
|
|
192
|
+
*/
|
|
95
193
|
"component_mode"?: string;
|
|
96
194
|
/**
|
|
195
|
+
* Extra CSS classes added to the avatar container.
|
|
97
196
|
* @default ''
|
|
98
197
|
*/
|
|
99
198
|
"custom_class"?: string;
|
|
100
199
|
/**
|
|
200
|
+
* Badge: `default` (none), `status` (green dot), `verified` (check badge), `notification` (count from `notification_number`). `story` has no style yet.
|
|
101
201
|
* @default 'default'
|
|
102
202
|
*/
|
|
103
203
|
"design": 'default' | 'status' | 'verified' | 'story' | 'notification';
|
|
104
204
|
/**
|
|
205
|
+
* CSS class of the icon font used when `type` is `icon`, e.g. `material-icons`. The icon glyph is always `sentiment_satisfied`.
|
|
105
206
|
* @default 'material-icons'
|
|
106
207
|
*/
|
|
107
208
|
"icon": string;
|
|
108
209
|
/**
|
|
210
|
+
* Count shown in the badge when `design` is `notification`. Hidden at sizes `xs` and `sm`.
|
|
109
211
|
* @default 0
|
|
110
212
|
*/
|
|
111
213
|
"notification_number": number;
|
|
214
|
+
/**
|
|
215
|
+
* Dropdown options as a JSON array of strings, e.g. `["Profile","Sign out"]`. When set, the avatar becomes a button that opens the list.
|
|
216
|
+
*/
|
|
112
217
|
"options": string;
|
|
113
218
|
/**
|
|
219
|
+
* Shape: `circle` or `square` (rounded corners).
|
|
114
220
|
* @default 'circle'
|
|
115
221
|
*/
|
|
116
222
|
"rounded": 'square' | 'circle';
|
|
223
|
+
/**
|
|
224
|
+
* The selected option. Matches one entry of `options`; updated when the user picks an option. Mutable: the component assigns it.
|
|
225
|
+
*/
|
|
117
226
|
"selected": string;
|
|
118
227
|
/**
|
|
228
|
+
* Size: `xs` (24px), `sm` (32px), `md` (40px), `lg` (48px), `xl` (56px) or `xxl` (64px).
|
|
119
229
|
* @default 'md'
|
|
120
230
|
*/
|
|
121
231
|
"size": 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
122
232
|
/**
|
|
233
|
+
* Image URL shown when `type` is `photo`.
|
|
123
234
|
* @default ''
|
|
124
235
|
*/
|
|
125
236
|
"src": string;
|
|
126
237
|
/**
|
|
238
|
+
* Initials shown when `type` is `text`.
|
|
127
239
|
* @default 'AB'
|
|
128
240
|
*/
|
|
129
241
|
"text": string;
|
|
130
242
|
/**
|
|
243
|
+
* Content: `photo` shows the `src` image, `icon` shows a smiley icon, `text` shows `text` as initials.
|
|
131
244
|
* @default 'photo'
|
|
132
245
|
*/
|
|
133
246
|
"type": 'photo' | 'icon' | 'text';
|
|
134
247
|
}
|
|
135
248
|
interface DdaBanner {
|
|
249
|
+
/**
|
|
250
|
+
* Accessible name of the scrollable slide region that keyboard users focus to scroll.
|
|
251
|
+
* @default 'Slides'
|
|
252
|
+
*/
|
|
253
|
+
"aria_label": string;
|
|
254
|
+
/**
|
|
255
|
+
* CSS height of each slide image, e.g. `220px`.
|
|
256
|
+
*/
|
|
136
257
|
"slider_height": string;
|
|
258
|
+
/**
|
|
259
|
+
* CSS width of each slide image, e.g. `360px`.
|
|
260
|
+
*/
|
|
137
261
|
"slider_width": string;
|
|
262
|
+
/**
|
|
263
|
+
* Slide images. JSON array of `{ image, title }`; `image` is the image URL and `title` its alternative text. Read once, when the component loads.
|
|
264
|
+
*/
|
|
138
265
|
"slides": string;
|
|
139
266
|
}
|
|
140
267
|
interface DdaBreadcrumb {
|
|
268
|
+
/**
|
|
269
|
+
* The items, as an array or a JSON string of `{ text, icon?, url? }` objects. The last item is the current page. The `data-breadcrumbs` attribute is still read when this is not set.
|
|
270
|
+
*/
|
|
271
|
+
"breadcrumbs"?: string | BreadcrumbItem[];
|
|
272
|
+
/**
|
|
273
|
+
* Theme override class on the wrapper, e.g. `light-mode`.
|
|
274
|
+
*/
|
|
141
275
|
"component_mode"?: string;
|
|
142
276
|
/**
|
|
277
|
+
* Extra CSS classes added to the inner `<nav>`.
|
|
143
278
|
* @default ''
|
|
144
279
|
*/
|
|
145
280
|
"custom_class"?: string;
|
|
146
281
|
/**
|
|
282
|
+
* What each item shows: `text` (label only), `icon-text` (icon and label) or `icon` (icon only).
|
|
147
283
|
* @default 'text'
|
|
148
284
|
*/
|
|
149
285
|
"design": 'text' | 'icon-text' | 'icon';
|
|
150
286
|
/**
|
|
287
|
+
* Material Symbols icon shown between items: `chevron_right` or `pen_size_2` (a slash).
|
|
151
288
|
* @default 'chevron_right'
|
|
152
289
|
*/
|
|
153
290
|
"separator": 'chevron_right' | 'pen_size_2';
|
|
154
291
|
}
|
|
155
292
|
interface DdaButton {
|
|
156
293
|
/**
|
|
294
|
+
* Accessible name. Required when the button shows only an icon.
|
|
157
295
|
* @default ''
|
|
158
296
|
*/
|
|
159
297
|
"aria_label"?: string;
|
|
160
298
|
/**
|
|
299
|
+
* Color variant, e.g. `default-primary`, `default-secondary`, `error-primary`, `onsurface-link`.
|
|
161
300
|
* @default 'primary'
|
|
162
301
|
*/
|
|
163
302
|
"button_color": string;
|
|
303
|
+
/**
|
|
304
|
+
* `id` of the inner `<button>`.
|
|
305
|
+
*/
|
|
164
306
|
"button_id": string;
|
|
165
307
|
/**
|
|
308
|
+
* `name` of the inner `<button>`, submitted with its form.
|
|
166
309
|
* @default ''
|
|
167
310
|
*/
|
|
168
311
|
"button_name"?: string;
|
|
169
312
|
/**
|
|
313
|
+
* Shape: `default` or `circle`.
|
|
170
314
|
* @default ''
|
|
171
315
|
*/
|
|
172
316
|
"button_shape"?: string;
|
|
173
317
|
/**
|
|
174
|
-
*
|
|
318
|
+
* Click handler, set as a JavaScript property. You can also listen for the native `click` event.
|
|
175
319
|
*/
|
|
176
320
|
"clickHandler"?: (event: MouseEvent) => void;
|
|
321
|
+
/**
|
|
322
|
+
* Theme override class for the button, e.g. `light-mode`.
|
|
323
|
+
*/
|
|
177
324
|
"component_mode"?: string;
|
|
178
325
|
/**
|
|
326
|
+
* Extra CSS classes added to the inner `<button>`.
|
|
179
327
|
* @default ''
|
|
180
328
|
*/
|
|
181
329
|
"custom_class"?: string;
|
|
182
330
|
/**
|
|
183
|
-
*
|
|
331
|
+
* Disables the button.
|
|
184
332
|
* @default false
|
|
185
333
|
*/
|
|
186
334
|
"disabled": boolean;
|
|
187
335
|
/**
|
|
336
|
+
* Material Symbols icon name shown after the label, e.g. `arrow_forward`.
|
|
188
337
|
* @default ''
|
|
189
338
|
*/
|
|
190
339
|
"end_icon": string;
|
|
340
|
+
/**
|
|
341
|
+
* Gap between icon and label, as a spacing step: 1–6, 8, 10, 12 or 16.
|
|
342
|
+
*/
|
|
191
343
|
"gap"?: number;
|
|
192
344
|
/**
|
|
345
|
+
* Shape of an icon-only button: `default` or `circle`.
|
|
193
346
|
* @default ''
|
|
194
347
|
*/
|
|
195
348
|
"icon_button_shape"?: string;
|
|
349
|
+
/**
|
|
350
|
+
* Size: `sm`, `md`, `lg` or `xl`.
|
|
351
|
+
*/
|
|
196
352
|
"size"?: string;
|
|
197
353
|
/**
|
|
198
|
-
*
|
|
354
|
+
* Material Symbols icon name shown before the label, e.g. `arrow_back`.
|
|
199
355
|
* @default ''
|
|
200
356
|
*/
|
|
201
357
|
"start_icon": string;
|
|
202
358
|
/**
|
|
203
|
-
*
|
|
359
|
+
* Native button type: `button`, `submit` or `reset`.
|
|
204
360
|
* @default 'button'
|
|
205
361
|
*/
|
|
206
362
|
"type": string;
|
|
207
363
|
}
|
|
208
364
|
interface DdaCheckbox {
|
|
365
|
+
/**
|
|
366
|
+
* Accessible name of the inner checkbox input.
|
|
367
|
+
*/
|
|
209
368
|
"aria_label"?: string;
|
|
369
|
+
/**
|
|
370
|
+
* Status: `disabled` shows the disabled style and blocks pointer clicks.
|
|
371
|
+
*/
|
|
210
372
|
"checkbox_status"?: string;
|
|
373
|
+
/**
|
|
374
|
+
* Checked state of the inner input. Read the current state from the input or its `change` event.
|
|
375
|
+
*/
|
|
211
376
|
"checked": boolean;
|
|
377
|
+
/**
|
|
378
|
+
* Theme override class for the checkbox, e.g. `light-mode`.
|
|
379
|
+
*/
|
|
212
380
|
"component_mode"?: string;
|
|
213
381
|
/**
|
|
382
|
+
* Extra CSS classes added to the checkbox container.
|
|
214
383
|
* @default ''
|
|
215
384
|
*/
|
|
216
385
|
"custom_class"?: string;
|
|
386
|
+
/**
|
|
387
|
+
* `name` of the inner checkbox input.
|
|
388
|
+
*/
|
|
217
389
|
"group_name"?: string;
|
|
390
|
+
/**
|
|
391
|
+
* `id` of the inner checkbox input. The label points to it, so set a unique value to make the label clickable.
|
|
392
|
+
*/
|
|
218
393
|
"input_id"?: string;
|
|
394
|
+
/**
|
|
395
|
+
* Size: `sm`, `md` or `lg`.
|
|
396
|
+
*/
|
|
219
397
|
"size"?: string;
|
|
398
|
+
/**
|
|
399
|
+
* Box shape: `square` or `rounded`.
|
|
400
|
+
*/
|
|
220
401
|
"style_type"?: string;
|
|
402
|
+
/**
|
|
403
|
+
* Secondary text shown under the title.
|
|
404
|
+
*/
|
|
221
405
|
"supporting"?: string;
|
|
406
|
+
/**
|
|
407
|
+
* Label shown next to the checkbox.
|
|
408
|
+
*/
|
|
222
409
|
"title_text": string;
|
|
223
410
|
}
|
|
224
411
|
interface DdaChip {
|
|
225
412
|
/**
|
|
413
|
+
* Color: `grey`, `primary`, `green`, `yellow`, `red` or `purple`. Other values, including the default, use the base primary style.
|
|
226
414
|
* @default 'success'
|
|
227
415
|
*/
|
|
228
416
|
"bg_color": string;
|
|
417
|
+
/**
|
|
418
|
+
* Click handler for the close button, set as a JavaScript property. The chip does not remove itself.
|
|
419
|
+
*/
|
|
229
420
|
"clickHandler"?: (event: MouseEvent) => void;
|
|
421
|
+
/**
|
|
422
|
+
* Accessible name of the icon-only close button.
|
|
423
|
+
* @default 'Remove'
|
|
424
|
+
*/
|
|
425
|
+
"close_button_label": string;
|
|
426
|
+
/**
|
|
427
|
+
* Theme override class for the chip, e.g. `light-mode`.
|
|
428
|
+
*/
|
|
230
429
|
"component_mode"?: string;
|
|
430
|
+
/**
|
|
431
|
+
* Extra CSS classes added to the chip container.
|
|
432
|
+
*/
|
|
231
433
|
"custom_class"?: string;
|
|
434
|
+
/**
|
|
435
|
+
* Material Symbols icon name shown before the label, e.g. `check_circle`.
|
|
436
|
+
*/
|
|
232
437
|
"icon": string;
|
|
233
438
|
/**
|
|
439
|
+
* Corner radius: `sm`, `md`, `lg` or `circle`.
|
|
234
440
|
* @default ''
|
|
235
441
|
*/
|
|
236
442
|
"rounded"?: string;
|
|
237
443
|
/**
|
|
444
|
+
* Shows a close button after the label. Its accessible name comes from `close_button_label`.
|
|
238
445
|
* @default false
|
|
239
446
|
*/
|
|
240
447
|
"show_close_icon": boolean;
|
|
448
|
+
/**
|
|
449
|
+
* Height: `sm` (24px), `md` (26px) or `lg` (32px).
|
|
450
|
+
*/
|
|
241
451
|
"size"?: string;
|
|
242
452
|
}
|
|
243
453
|
interface DdaCreditCard {
|
|
454
|
+
/**
|
|
455
|
+
* Balance text shown under the fixed "Current Balance" label, e.g. `AED 5,750.20`.
|
|
456
|
+
*/
|
|
244
457
|
"balance": string;
|
|
458
|
+
/**
|
|
459
|
+
* Card number. Only the last four characters are shown, after `****`. When not set, only `****` is shown.
|
|
460
|
+
*/
|
|
245
461
|
"card_number": string;
|
|
462
|
+
/**
|
|
463
|
+
* URL of the card type image (e.g. a card brand logo) shown at the bottom end of the card. When not set, no image is rendered.
|
|
464
|
+
*/
|
|
246
465
|
"card_type": string;
|
|
466
|
+
/**
|
|
467
|
+
* Theme override class for the card, e.g. `light-mode`.
|
|
468
|
+
*/
|
|
247
469
|
"component_mode"?: string;
|
|
248
470
|
/**
|
|
471
|
+
* Extra CSS classes added to the card container.
|
|
249
472
|
* @default ''
|
|
250
473
|
*/
|
|
251
474
|
"custom_class"?: string;
|
|
475
|
+
/**
|
|
476
|
+
* Background design: `default`, `green` or `dark`.
|
|
477
|
+
*/
|
|
252
478
|
"design": string;
|
|
479
|
+
/**
|
|
480
|
+
* Card holder name.
|
|
481
|
+
*/
|
|
253
482
|
"name": string;
|
|
254
483
|
}
|
|
255
484
|
interface DdaCreditcardField {
|
|
485
|
+
/**
|
|
486
|
+
* Accessible name of the input. Use it when there is no visible `label`.
|
|
487
|
+
*/
|
|
256
488
|
"aria_label"?: string;
|
|
257
489
|
/**
|
|
490
|
+
* `autocomplete` token of the input. Defaults to `cc-number`.
|
|
258
491
|
* @default 'cc-number'
|
|
259
492
|
*/
|
|
260
493
|
"autocomplete": string;
|
|
494
|
+
/**
|
|
495
|
+
* URL of an image shown at the start of the input, e.g. a card brand logo.
|
|
496
|
+
*/
|
|
261
497
|
"card_icon": string;
|
|
498
|
+
/**
|
|
499
|
+
* Theme override class for the field, e.g. `light-mode`.
|
|
500
|
+
*/
|
|
262
501
|
"component_mode"?: string;
|
|
263
502
|
/**
|
|
503
|
+
* Extra CSS classes added to the field container.
|
|
264
504
|
* @default ''
|
|
265
505
|
*/
|
|
266
506
|
"custom_class"?: string;
|
|
267
507
|
/**
|
|
508
|
+
* Disables the input and applies the disabled look.
|
|
268
509
|
* @default false
|
|
269
510
|
*/
|
|
270
511
|
"disabled": boolean;
|
|
512
|
+
/**
|
|
513
|
+
* Error text shown below the input. Also sets `aria-invalid="true"` on the input.
|
|
514
|
+
*/
|
|
271
515
|
"error_message": string;
|
|
516
|
+
/**
|
|
517
|
+
* Helper text shown below the input. Linked by `aria-describedby`.
|
|
518
|
+
*/
|
|
272
519
|
"helper_text": string;
|
|
520
|
+
/**
|
|
521
|
+
* `id` of the inner `<input>`. Also used to link the label, helper text and error message. Optional: an id is generated when it is not set.
|
|
522
|
+
*/
|
|
273
523
|
"input_id": string;
|
|
524
|
+
/**
|
|
525
|
+
* `name` of the inner `<input>`, submitted with its form.
|
|
526
|
+
*/
|
|
274
527
|
"input_name"?: string;
|
|
528
|
+
/**
|
|
529
|
+
* Adds the class `dda-input-<value>`. `disabled` gives only the disabled look; use `disabled` to disable the input.
|
|
530
|
+
*/
|
|
275
531
|
"input_type"?: string;
|
|
532
|
+
/**
|
|
533
|
+
* Label text shown above the input. Linked to the input through `input_id` (or a generated id).
|
|
534
|
+
*/
|
|
276
535
|
"label": string;
|
|
536
|
+
/**
|
|
537
|
+
* Placeholder text of the input, e.g. `0000 - 0000 - 0000 - 0000`.
|
|
538
|
+
*/
|
|
277
539
|
"placeholder": string;
|
|
278
540
|
/**
|
|
541
|
+
* Sets the input `maxlength`: 25 characters when `false` (16 digits with separators), 100 when `true`.
|
|
279
542
|
* @default false
|
|
280
543
|
*/
|
|
281
544
|
"restrict_input": boolean;
|
|
545
|
+
/**
|
|
546
|
+
* Size: `default` or `small`.
|
|
547
|
+
*/
|
|
282
548
|
"size"?: string;
|
|
549
|
+
/**
|
|
550
|
+
* Validation state: `error` applies the error colors.
|
|
551
|
+
*/
|
|
283
552
|
"validation_type"?: string;
|
|
284
553
|
/**
|
|
554
|
+
* Card number. Shown as groups of four digits separated by ` - `; the component updates it as the user types. Mutable: the component assigns it.
|
|
285
555
|
* @default ''
|
|
286
556
|
*/
|
|
287
557
|
"value": string;
|
|
288
558
|
}
|
|
289
559
|
interface DdaDropdown {
|
|
560
|
+
/**
|
|
561
|
+
* Accessible name of the dropdown button. Set it when `icon_mode` is on.
|
|
562
|
+
*/
|
|
290
563
|
"aria_label"?: string;
|
|
564
|
+
/**
|
|
565
|
+
* `name` of the dropdown button that opens the list.
|
|
566
|
+
*/
|
|
291
567
|
"arrow_button_name"?: string;
|
|
568
|
+
/**
|
|
569
|
+
* `id` of the dropdown button. The label id is built from it. When it is not set, the component generates a unique id.
|
|
570
|
+
*/
|
|
292
571
|
"button_id": string;
|
|
572
|
+
/**
|
|
573
|
+
* Theme override class for the dropdown, e.g. `light-mode`.
|
|
574
|
+
*/
|
|
293
575
|
"component_mode"?: string;
|
|
294
576
|
/**
|
|
577
|
+
* Extra CSS classes added to the dropdown container.
|
|
295
578
|
* @default ''
|
|
296
579
|
*/
|
|
297
580
|
"custom_class"?: string;
|
|
298
581
|
/**
|
|
582
|
+
* Disables the dropdown: the list does not open and options cannot be picked.
|
|
299
583
|
* @default false
|
|
300
584
|
*/
|
|
301
585
|
"disabled": boolean;
|
|
586
|
+
/**
|
|
587
|
+
* `name` of each option button in the list.
|
|
588
|
+
*/
|
|
302
589
|
"dropdown_button_name"?: string;
|
|
590
|
+
/**
|
|
591
|
+
* Error text shown under the dropdown.
|
|
592
|
+
*/
|
|
303
593
|
"error": string;
|
|
594
|
+
/**
|
|
595
|
+
* Helper text shown under the dropdown.
|
|
596
|
+
*/
|
|
304
597
|
"helper_text": string;
|
|
305
598
|
/**
|
|
599
|
+
* Shows only the three-dots icon, without the selected text and arrow.
|
|
306
600
|
* @default false
|
|
307
601
|
*/
|
|
308
602
|
"icon_mode": boolean;
|
|
603
|
+
/**
|
|
604
|
+
* Label shown above the dropdown. The dropdown button is named by the label and its current text.
|
|
605
|
+
*/
|
|
309
606
|
"label": string;
|
|
607
|
+
/**
|
|
608
|
+
* Options as a JSON array string, e.g. `'["Edit","Download","Delete"]'`. Invalid JSON shows "No options available".
|
|
609
|
+
*/
|
|
310
610
|
"options": string;
|
|
611
|
+
/**
|
|
612
|
+
* The selected option. Must match an entry in `options`. The button shows "Select an option" when it is empty. Updated when the user picks an option. Mutable: the component assigns it.
|
|
613
|
+
*/
|
|
311
614
|
"selected": string;
|
|
312
615
|
/**
|
|
616
|
+
* Size: `medium` or `small`.
|
|
313
617
|
* @default 'medium'
|
|
314
618
|
*/
|
|
315
619
|
"size": 'small' | 'medium';
|
|
316
620
|
/**
|
|
621
|
+
* Accessible name of the dropdown button in `icon_mode` when `aria_label` and `label` are not set.
|
|
622
|
+
* @default 'Show options'
|
|
623
|
+
*/
|
|
624
|
+
"toggle_button_label"?: string;
|
|
625
|
+
/**
|
|
626
|
+
* Button background: `bg-white` (field style) or `bg-transparent` (no border, background or padding).
|
|
317
627
|
* @default 'bg-white'
|
|
318
628
|
*/
|
|
319
629
|
"type": 'bg-transparent' | 'bg-white';
|
|
320
630
|
}
|
|
321
631
|
interface DdaFooter {
|
|
632
|
+
/**
|
|
633
|
+
* Copyright text in the bottom row.
|
|
634
|
+
*/
|
|
322
635
|
"copyrightText": string;
|
|
636
|
+
/**
|
|
637
|
+
* Paragraph under `footerTitle`.
|
|
638
|
+
*/
|
|
323
639
|
"description": string;
|
|
640
|
+
/**
|
|
641
|
+
* Link columns. JSON array of `{ title, links: [{ label, href }] }`.
|
|
642
|
+
*/
|
|
324
643
|
"footerSections": string;
|
|
644
|
+
/**
|
|
645
|
+
* Heading of the call-to-action area at the top of the footer.
|
|
646
|
+
*/
|
|
325
647
|
"footerTitle": string;
|
|
648
|
+
/**
|
|
649
|
+
* Heading level (1 to 6) of `footerTitle`, to fit the page's heading order. Default: `4`.
|
|
650
|
+
* @default 4
|
|
651
|
+
*/
|
|
652
|
+
"heading_level": number;
|
|
653
|
+
/**
|
|
654
|
+
* Label of the tertiary (Login) button. The button has no link or action.
|
|
655
|
+
*/
|
|
326
656
|
"loginButtonText": string;
|
|
657
|
+
/**
|
|
658
|
+
* Alternative text for the footer logo.
|
|
659
|
+
*/
|
|
327
660
|
"logoAlt": string;
|
|
661
|
+
/**
|
|
662
|
+
* Short text shown under the footer logo. Nothing is shown when it is not set.
|
|
663
|
+
*/
|
|
664
|
+
"logoDescription": string;
|
|
665
|
+
/**
|
|
666
|
+
* Image URL of the footer logo.
|
|
667
|
+
*/
|
|
328
668
|
"logoSrc": string;
|
|
669
|
+
/**
|
|
670
|
+
* Label of the primary (Sign up) button. The button has no link or action.
|
|
671
|
+
*/
|
|
329
672
|
"signUpButtonText": string;
|
|
673
|
+
/**
|
|
674
|
+
* Social links in the bottom row. JSON array of `{ href, src, alt }`, where `src` is an image URL.
|
|
675
|
+
*/
|
|
330
676
|
"socialIcons": string;
|
|
331
677
|
}
|
|
332
678
|
interface DdaHeader {
|
|
679
|
+
/**
|
|
680
|
+
* `name` attribute of the accessibility button in the side menu.
|
|
681
|
+
*/
|
|
333
682
|
"accessibility_button_name": string;
|
|
683
|
+
/**
|
|
684
|
+
* `name` attribute of the buttons that close the accessibility panel.
|
|
685
|
+
*/
|
|
334
686
|
"close_accessibility_button_name": string;
|
|
687
|
+
/**
|
|
688
|
+
* `name` attribute of the button that closes the side menu.
|
|
689
|
+
*/
|
|
335
690
|
"close_menu_button_name": string;
|
|
691
|
+
/**
|
|
692
|
+
* Not used: the current markup does not render an element with this name.
|
|
693
|
+
*/
|
|
336
694
|
"close_sidebar_button_name": string;
|
|
695
|
+
/**
|
|
696
|
+
* Alternative text for the first logo.
|
|
697
|
+
*/
|
|
337
698
|
"firstLogoAlt": string;
|
|
699
|
+
/**
|
|
700
|
+
* Link URL of the first logo in the header and the side menu. Default: `/`.
|
|
701
|
+
* @default '/'
|
|
702
|
+
*/
|
|
703
|
+
"firstLogoHref": string;
|
|
704
|
+
/**
|
|
705
|
+
* Image URL of the first (government) logo, on the left of the header and in the side menu.
|
|
706
|
+
*/
|
|
338
707
|
"firstLogoSrc": string;
|
|
708
|
+
/**
|
|
709
|
+
* Image URL of the white first logo, shown in dark theme and on a transparent header (`<body class="transparent">`). Falls back to `firstLogoSrc`.
|
|
710
|
+
*/
|
|
339
711
|
"firstLogoWhiteSrc": string;
|
|
712
|
+
/**
|
|
713
|
+
* `name` attribute of the hamburger menu button.
|
|
714
|
+
*/
|
|
340
715
|
"hamburger_menu_button_name": string;
|
|
716
|
+
/**
|
|
717
|
+
* `name` attribute of the language button in the side menu.
|
|
718
|
+
*/
|
|
341
719
|
"language_button_name": string;
|
|
720
|
+
/**
|
|
721
|
+
* `lang` attribute of the language buttons, the language of `language_text`. Default: `ar`.
|
|
722
|
+
* @default 'ar'
|
|
723
|
+
*/
|
|
724
|
+
"language_lang": string;
|
|
725
|
+
/**
|
|
726
|
+
* Label of the language buttons in the desktop toolbar and the side menu. Default: `العربية`.
|
|
727
|
+
*/
|
|
342
728
|
"language_text": string;
|
|
729
|
+
/**
|
|
730
|
+
* Material Symbols icon name of the Login link in the side menu. Default: `sentiment_satisfied`.
|
|
731
|
+
*/
|
|
343
732
|
"loginIcon": string;
|
|
733
|
+
/**
|
|
734
|
+
* URL of the Login link in the toolbar and the side menu.
|
|
735
|
+
*/
|
|
344
736
|
"loginLink": string;
|
|
737
|
+
/**
|
|
738
|
+
* Label of the Login link in the side menu. Default: `Login`.
|
|
739
|
+
*/
|
|
345
740
|
"loginText": string;
|
|
741
|
+
/**
|
|
742
|
+
* Accessible name of the hamburger menu button (visually hidden text). Default: `Menu`.
|
|
743
|
+
* @default 'Menu'
|
|
744
|
+
*/
|
|
745
|
+
"menu_button_label": string;
|
|
746
|
+
/**
|
|
747
|
+
* Main navigation links. JSON array of `{ label, href, menuLabel, subMenu }`; `subMenu` items are `{ title, description, icon, href }` and open a mega menu.
|
|
748
|
+
*/
|
|
346
749
|
"quickLinks": string;
|
|
750
|
+
/**
|
|
751
|
+
* URL of the ReadSpeaker "listen" link in the accessibility panel.
|
|
752
|
+
*/
|
|
347
753
|
"readSpeakerLink": string;
|
|
754
|
+
/**
|
|
755
|
+
* Placeholder and accessible label of the search input. Default: `Search`.
|
|
756
|
+
*/
|
|
348
757
|
"searchText": string;
|
|
758
|
+
/**
|
|
759
|
+
* Results page URL. When set, a search does a GET to this URL with the query in `search_input_name` (default `q`).
|
|
760
|
+
*/
|
|
761
|
+
"search_action": string;
|
|
762
|
+
/**
|
|
763
|
+
* `name` attribute of the mobile search button.
|
|
764
|
+
*/
|
|
349
765
|
"search_button_name": string;
|
|
766
|
+
/**
|
|
767
|
+
* `name` of the search input, which is the query parameter sent to `search_action`. Default: `q`.
|
|
768
|
+
*/
|
|
350
769
|
"search_input_name": string;
|
|
770
|
+
/**
|
|
771
|
+
* Alternative text for the second logo.
|
|
772
|
+
*/
|
|
351
773
|
"secondLogoAlt": string;
|
|
774
|
+
/**
|
|
775
|
+
* Link URL of the second logo on desktop and mobile. Default: `/`.
|
|
776
|
+
* @default '/'
|
|
777
|
+
*/
|
|
778
|
+
"secondLogoHref": string;
|
|
779
|
+
/**
|
|
780
|
+
* Image URL of the second (entity) logo.
|
|
781
|
+
*/
|
|
352
782
|
"secondLogoSrc": string;
|
|
783
|
+
/**
|
|
784
|
+
* Image URL of the white second logo, shown in dark theme and on a transparent header. Falls back to `secondLogoSrc` on desktop.
|
|
785
|
+
*/
|
|
353
786
|
"secondLogoWhiteSrc": string;
|
|
787
|
+
/**
|
|
788
|
+
* Side menu items. JSON array of `{ label, href, subMenu }`; each `subMenu` item is `{ headerLabel, label, href, subMenu }` and can nest.
|
|
789
|
+
*/
|
|
354
790
|
"sideMenuItems": string;
|
|
791
|
+
/**
|
|
792
|
+
* `name` attribute of the accessibility button in the desktop toolbar.
|
|
793
|
+
*/
|
|
355
794
|
"toggle_accessibility_button_name": string;
|
|
356
795
|
}
|
|
357
796
|
interface DdaHomeBanner {
|
|
@@ -402,271 +841,620 @@ export namespace Components {
|
|
|
402
841
|
"slide_status_label": string;
|
|
403
842
|
}
|
|
404
843
|
interface DdaHorizontalStepper {
|
|
844
|
+
/**
|
|
845
|
+
* Theme override class on the stepper container, e.g. `light-mode`.
|
|
846
|
+
*/
|
|
405
847
|
"component_mode"?: string;
|
|
406
848
|
/**
|
|
849
|
+
* Index of the active step, from 0. Steps before it show as completed.
|
|
407
850
|
* @default 1
|
|
408
851
|
*/
|
|
409
852
|
"current_step": number;
|
|
853
|
+
/**
|
|
854
|
+
* Extra CSS classes added to the stepper container.
|
|
855
|
+
*/
|
|
410
856
|
"custom_class"?: string;
|
|
857
|
+
/**
|
|
858
|
+
* Steps, as a JSON string array of `{ title, subtitle, description }` objects.
|
|
859
|
+
*/
|
|
411
860
|
"steps": string;
|
|
412
861
|
}
|
|
413
862
|
interface DdaInput {
|
|
863
|
+
/**
|
|
864
|
+
* Accessible name of the inner `<input>`. Use it when there is no visible label.
|
|
865
|
+
*/
|
|
414
866
|
"aria_label"?: string;
|
|
415
|
-
|
|
867
|
+
/**
|
|
868
|
+
* `autocomplete` token of the inner `<input>`, e.g. `name`, `email` or `tel`. Set it on fields that ask about the user (WCAG 1.3.5).
|
|
869
|
+
*/
|
|
870
|
+
"autocomplete"?: string;
|
|
871
|
+
/**
|
|
872
|
+
* Theme override class for the field, e.g. `light-mode`.
|
|
873
|
+
*/
|
|
874
|
+
"component_mode"?: string;
|
|
875
|
+
/**
|
|
876
|
+
* Extra CSS classes added to the field container.
|
|
877
|
+
*/
|
|
416
878
|
"custom_class"?: string;
|
|
879
|
+
/**
|
|
880
|
+
* Error text shown below the input. When set, the input gets `aria-invalid="true"`.
|
|
881
|
+
*/
|
|
417
882
|
"error_message": string;
|
|
883
|
+
/**
|
|
884
|
+
* Helper text shown below the input and linked with `aria-describedby`.
|
|
885
|
+
*/
|
|
418
886
|
"helper_text": string;
|
|
887
|
+
/**
|
|
888
|
+
* `id` of the inner `<input>`. Also used for the label `for` and the helper and error text ids. Optional: an id is generated when it is not set.
|
|
889
|
+
*/
|
|
419
890
|
"input_id": string;
|
|
891
|
+
/**
|
|
892
|
+
* `name` of the inner `<input>`, submitted with its form.
|
|
893
|
+
*/
|
|
420
894
|
"input_name"?: string;
|
|
895
|
+
/**
|
|
896
|
+
* Status style. `disabled` shows the disabled styling only; it does not set the native `disabled` attribute.
|
|
897
|
+
*/
|
|
421
898
|
"input_status"?: string;
|
|
899
|
+
/**
|
|
900
|
+
* Visible label text, linked to the input through `input_id` (or a generated id).
|
|
901
|
+
*/
|
|
422
902
|
"label": string;
|
|
903
|
+
/**
|
|
904
|
+
* Placeholder text of the inner `<input>`.
|
|
905
|
+
*/
|
|
423
906
|
"placeholder": string;
|
|
907
|
+
/**
|
|
908
|
+
* Size. `small` shows a smaller field; omit for the default size.
|
|
909
|
+
*/
|
|
424
910
|
"size"?: string;
|
|
425
911
|
/**
|
|
912
|
+
* Native input type, e.g. `text`, `password`, `email`, `number`, `date` or `time`. The legacy values `Witherror` and `disabled` only apply the error or disabled styling.
|
|
426
913
|
* @default 'text'
|
|
427
914
|
*/
|
|
428
915
|
"type": string;
|
|
916
|
+
/**
|
|
917
|
+
* Validation style. `error` shows the error colors.
|
|
918
|
+
*/
|
|
429
919
|
"validation_type"?: string;
|
|
920
|
+
/**
|
|
921
|
+
* Value of the inner `<input>`. Updates as the user types.
|
|
922
|
+
*/
|
|
430
923
|
"value": string;
|
|
431
924
|
}
|
|
432
925
|
interface DdaLinkButton {
|
|
433
926
|
/**
|
|
927
|
+
* Accessible name of the link. Required when the link shows only an icon.
|
|
434
928
|
* @default ''
|
|
435
929
|
*/
|
|
436
930
|
"aria_label"?: string;
|
|
437
931
|
/**
|
|
932
|
+
* Color variant, e.g. `default-primary`, `default-secondary`, `error-primary`, `onsurface-link` or `disabled`.
|
|
438
933
|
* @default 'primary'
|
|
439
934
|
*/
|
|
440
935
|
"button_color": string;
|
|
936
|
+
/**
|
|
937
|
+
* `id` of the inner `<a>`.
|
|
938
|
+
*/
|
|
441
939
|
"button_id": string;
|
|
442
940
|
/**
|
|
941
|
+
* Shape: `default` or `circle`.
|
|
443
942
|
* @default ''
|
|
444
943
|
*/
|
|
445
944
|
"button_shape"?: string;
|
|
945
|
+
/**
|
|
946
|
+
* Theme override class for the link, e.g. `light-mode`.
|
|
947
|
+
*/
|
|
446
948
|
"component_mode"?: string;
|
|
447
949
|
/**
|
|
950
|
+
* Extra CSS classes added to the inner `<a>`.
|
|
448
951
|
* @default ''
|
|
449
952
|
*/
|
|
450
953
|
"custom_class"?: string;
|
|
451
954
|
/**
|
|
452
|
-
*
|
|
955
|
+
* Not used: the link stays active. For a disabled look, set `button_color` to `disabled`.
|
|
453
956
|
* @default false
|
|
454
957
|
*/
|
|
455
958
|
"disabled": boolean;
|
|
456
959
|
/**
|
|
960
|
+
* Material Symbols icon name shown after the label, e.g. `arrow_forward`.
|
|
457
961
|
* @default ''
|
|
458
962
|
*/
|
|
459
963
|
"end_icon": string;
|
|
964
|
+
/**
|
|
965
|
+
* Gap between icon and label, as a spacing step: 1–6, 8, 10, 12 or 16.
|
|
966
|
+
*/
|
|
460
967
|
"gap"?: number;
|
|
461
968
|
/**
|
|
969
|
+
* URL the link opens.
|
|
462
970
|
* @default '#'
|
|
463
971
|
*/
|
|
464
972
|
"href"?: string;
|
|
465
973
|
/**
|
|
974
|
+
* Shape of an icon-only link: `default` or `circle`.
|
|
466
975
|
* @default ''
|
|
467
976
|
*/
|
|
468
977
|
"icon_button_shape"?: string;
|
|
978
|
+
/**
|
|
979
|
+
* Size: `sm`, `md`, `lg` or `xl`.
|
|
980
|
+
*/
|
|
469
981
|
"size"?: string;
|
|
470
982
|
/**
|
|
471
|
-
*
|
|
983
|
+
* Material Symbols icon name shown before the label, e.g. `arrow_back`.
|
|
472
984
|
* @default ''
|
|
473
985
|
*/
|
|
474
986
|
"start_icon": string;
|
|
475
987
|
/**
|
|
476
|
-
*
|
|
988
|
+
* Not used: the component renders an `<a>` link, which has no `type`.
|
|
477
989
|
* @default 'button'
|
|
478
990
|
*/
|
|
479
991
|
"type": string;
|
|
480
992
|
}
|
|
481
993
|
interface DdaNumberField {
|
|
994
|
+
/**
|
|
995
|
+
* Accessible name of the amount input. Use it when there is no visible label.
|
|
996
|
+
*/
|
|
482
997
|
"aria_label"?: string;
|
|
998
|
+
/**
|
|
999
|
+
* Theme override class for the field, e.g. `light-mode`.
|
|
1000
|
+
*/
|
|
483
1001
|
"component_mode"?: string;
|
|
1002
|
+
/**
|
|
1003
|
+
* Currency options for the dropdown, as a JSON array string, e.g. `'["AED","USD"]'`.
|
|
1004
|
+
*/
|
|
484
1005
|
"currencies": string;
|
|
1006
|
+
/**
|
|
1007
|
+
* `name` of each currency option button.
|
|
1008
|
+
*/
|
|
485
1009
|
"currency_button_name"?: string;
|
|
486
1010
|
/**
|
|
1011
|
+
* Extra CSS classes added to the field container.
|
|
487
1012
|
* @default ''
|
|
488
1013
|
*/
|
|
489
1014
|
"custom_class"?: string;
|
|
1015
|
+
/**
|
|
1016
|
+
* Error text shown below the field. When set, the input gets `aria-invalid="true"`.
|
|
1017
|
+
*/
|
|
490
1018
|
"error_message": string;
|
|
1019
|
+
/**
|
|
1020
|
+
* Helper text shown below the field and linked with `aria-describedby`.
|
|
1021
|
+
*/
|
|
491
1022
|
"helper_text": string;
|
|
1023
|
+
/**
|
|
1024
|
+
* `id` of the amount input. Also used for the label `for` and the helper and error text ids. Optional: an id is generated when it is not set.
|
|
1025
|
+
*/
|
|
492
1026
|
"input_id": string;
|
|
1027
|
+
/**
|
|
1028
|
+
* `name` of the amount input, submitted with its form.
|
|
1029
|
+
*/
|
|
493
1030
|
"input_name"?: string;
|
|
1031
|
+
/**
|
|
1032
|
+
* Status style. `disabled` shows the disabled styling only; it does not set the native `disabled` attribute.
|
|
1033
|
+
*/
|
|
494
1034
|
"input_status"?: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* Visible label text, linked to the amount input through `input_id` (or a generated id).
|
|
1037
|
+
*/
|
|
495
1038
|
"label": string;
|
|
1039
|
+
/**
|
|
1040
|
+
* Placeholder text of the amount input.
|
|
1041
|
+
*/
|
|
496
1042
|
"placeholder": string;
|
|
497
1043
|
/**
|
|
1044
|
+
* Currency shown on the dropdown button. Updates when the user picks a currency.
|
|
498
1045
|
* @default 'USD'
|
|
499
1046
|
*/
|
|
500
1047
|
"selected_currency": string;
|
|
1048
|
+
/**
|
|
1049
|
+
* Size. `small` shows a smaller field; omit for the default size.
|
|
1050
|
+
*/
|
|
501
1051
|
"size"?: string;
|
|
1052
|
+
/**
|
|
1053
|
+
* Accessible name of the currency dropdown button; the selected currency is added after it.
|
|
1054
|
+
* @default 'Choose currency'
|
|
1055
|
+
*/
|
|
1056
|
+
"toggle_button_label"?: string;
|
|
1057
|
+
/**
|
|
1058
|
+
* `name` of the currency dropdown button.
|
|
1059
|
+
*/
|
|
502
1060
|
"toggle_button_name"?: string;
|
|
1061
|
+
/**
|
|
1062
|
+
* Validation style. `error` shows the error colors.
|
|
1063
|
+
*/
|
|
503
1064
|
"validation_type"?: string;
|
|
1065
|
+
/**
|
|
1066
|
+
* Initial value of the amount input. Characters other than digits and `.` are removed as the user types.
|
|
1067
|
+
*/
|
|
504
1068
|
"value": string;
|
|
505
1069
|
}
|
|
506
1070
|
interface DdaPagination {
|
|
1071
|
+
/**
|
|
1072
|
+
* `name` of the next page button when `type` is `button-text`.
|
|
1073
|
+
*/
|
|
507
1074
|
"button_text_next_button": string;
|
|
1075
|
+
/**
|
|
1076
|
+
* `name` of the previous page button when `type` is `button-text`.
|
|
1077
|
+
*/
|
|
508
1078
|
"button_text_prev_button": string;
|
|
1079
|
+
/**
|
|
1080
|
+
* `name` of the next page button when `type` is `buttons`.
|
|
1081
|
+
*/
|
|
509
1082
|
"buttons_next_button": string;
|
|
1083
|
+
/**
|
|
1084
|
+
* `name` of the next page button when `type` is `buttons-pages`.
|
|
1085
|
+
*/
|
|
510
1086
|
"buttons_pages_next_button": string;
|
|
1087
|
+
/**
|
|
1088
|
+
* `name` of the previous page button when `type` is `buttons-pages`.
|
|
1089
|
+
*/
|
|
511
1090
|
"buttons_pages_prev_button": string;
|
|
1091
|
+
/**
|
|
1092
|
+
* `name` of the previous page button when `type` is `buttons`.
|
|
1093
|
+
*/
|
|
512
1094
|
"buttons_prev_button": string;
|
|
1095
|
+
/**
|
|
1096
|
+
* Theme override class on the pagination element, e.g. `light-mode`.
|
|
1097
|
+
*/
|
|
513
1098
|
"component_mode"?: string;
|
|
514
1099
|
/**
|
|
1100
|
+
* Selected page, counted from 1. Kept between 1 and `total_pages`; updates when the user changes the page. Mutable: the component assigns it.
|
|
515
1101
|
* @default 1
|
|
516
1102
|
*/
|
|
517
1103
|
"current_page": number;
|
|
518
1104
|
/**
|
|
1105
|
+
* Extra CSS classes added to the pagination element.
|
|
519
1106
|
* @default ''
|
|
520
1107
|
*/
|
|
521
1108
|
"custom_class": string;
|
|
1109
|
+
/**
|
|
1110
|
+
* Accessible name of the icon-only next page button (`text`, `text-pages`, `button-text` and `buttons-pages` layouts).
|
|
1111
|
+
* @default 'Next page'
|
|
1112
|
+
*/
|
|
1113
|
+
"next_button_label": string;
|
|
1114
|
+
/**
|
|
1115
|
+
* Accessible name of the icon-only previous page button (`text`, `text-pages`, `button-text` and `buttons-pages` layouts).
|
|
1116
|
+
* @default 'Previous page'
|
|
1117
|
+
*/
|
|
1118
|
+
"previous_button_label": string;
|
|
1119
|
+
/**
|
|
1120
|
+
* `name` of the next page button when `type` is `simple-slider`.
|
|
1121
|
+
*/
|
|
522
1122
|
"simple_slider_next_button": string;
|
|
1123
|
+
/**
|
|
1124
|
+
* `name` of the previous page button when `type` is `simple-slider`.
|
|
1125
|
+
*/
|
|
523
1126
|
"simple_slider_prev_button": string;
|
|
1127
|
+
/**
|
|
1128
|
+
* `name` of the next page button when `type` is `text`.
|
|
1129
|
+
*/
|
|
524
1130
|
"text_next_button": string;
|
|
1131
|
+
/**
|
|
1132
|
+
* `name` of the next page button when `type` is `text-pages`.
|
|
1133
|
+
*/
|
|
525
1134
|
"text_pages_next_button": string;
|
|
1135
|
+
/**
|
|
1136
|
+
* `name` of the previous page button when `type` is `text-pages`.
|
|
1137
|
+
*/
|
|
526
1138
|
"text_pages_prev_button": string;
|
|
1139
|
+
/**
|
|
1140
|
+
* `name` of the previous page button when `type` is `text`.
|
|
1141
|
+
*/
|
|
527
1142
|
"text_prev_button": string;
|
|
528
1143
|
/**
|
|
1144
|
+
* Number of pages. Values below 1 become 1. Mutable: the component corrects out-of-range values.
|
|
529
1145
|
* @default 8
|
|
530
1146
|
*/
|
|
531
1147
|
"total_pages": number;
|
|
532
1148
|
/**
|
|
1149
|
+
* Layout: `simple-slider`, `buttons`, `text`, `text-pages`, `button-text`, `buttons-pages` or `full`.
|
|
533
1150
|
* @default 'simple-slider'
|
|
534
1151
|
*/
|
|
535
1152
|
"type": 'simple-slider' | 'buttons' | 'text' | 'text-pages' | 'button-text' | 'buttons-pages' | 'full';
|
|
536
1153
|
}
|
|
537
1154
|
interface DdaPhonefield {
|
|
1155
|
+
/**
|
|
1156
|
+
* Accessible name of the phone input. Use it when there is no visible label.
|
|
1157
|
+
*/
|
|
538
1158
|
"aria_label": string;
|
|
539
1159
|
/**
|
|
540
|
-
*
|
|
1160
|
+
* `autocomplete` token of the phone input. Defaults to `tel-national`, because the country code is chosen separately.
|
|
1161
|
+
* @default 'tel-national'
|
|
541
1162
|
*/
|
|
542
1163
|
"autocomplete": string;
|
|
1164
|
+
/**
|
|
1165
|
+
* Accessible name set on each country option button in the open list.
|
|
1166
|
+
*/
|
|
543
1167
|
"button_aria_label": string;
|
|
1168
|
+
/**
|
|
1169
|
+
* Prefix of the country option button ids in the open list. Each option gets `<button_id>-<index>`. When it is not set, the prefix comes from the input id.
|
|
1170
|
+
*/
|
|
544
1171
|
"button_id"?: string;
|
|
1172
|
+
/**
|
|
1173
|
+
* Theme override class for the field, e.g. `light-mode`.
|
|
1174
|
+
*/
|
|
545
1175
|
"component_mode"?: string;
|
|
1176
|
+
/**
|
|
1177
|
+
* `name` of each country option button.
|
|
1178
|
+
*/
|
|
546
1179
|
"country_select_button_name": string;
|
|
1180
|
+
/**
|
|
1181
|
+
* Extra CSS classes added to the field container.
|
|
1182
|
+
*/
|
|
547
1183
|
"custom_class": string;
|
|
548
1184
|
/**
|
|
1185
|
+
* Disables the phone input and shows the disabled styling.
|
|
549
1186
|
* @default false
|
|
550
1187
|
*/
|
|
551
1188
|
"disabled": boolean;
|
|
1189
|
+
/**
|
|
1190
|
+
* Error text shown below the field. When set, the input gets `aria-invalid="true"`.
|
|
1191
|
+
*/
|
|
552
1192
|
"error_message": string;
|
|
1193
|
+
/**
|
|
1194
|
+
* Helper text shown below the field. Hidden when `validation_type` is set.
|
|
1195
|
+
*/
|
|
553
1196
|
"helper_text": string;
|
|
1197
|
+
/**
|
|
1198
|
+
* `id` of the phone input. Also used for the label `for` and the helper and error text ids. When it is not set, the component generates a unique id.
|
|
1199
|
+
*/
|
|
554
1200
|
"input_id"?: string;
|
|
1201
|
+
/**
|
|
1202
|
+
* Visible label text, linked to the phone input through `input_id`.
|
|
1203
|
+
*/
|
|
555
1204
|
"label": string;
|
|
1205
|
+
/**
|
|
1206
|
+
* `name` of the phone input, submitted with its form.
|
|
1207
|
+
*/
|
|
556
1208
|
"phone_input_name": string;
|
|
557
1209
|
/**
|
|
1210
|
+
* Placeholder text of the phone input.
|
|
558
1211
|
* @default 'Enter phone number'
|
|
559
1212
|
*/
|
|
560
1213
|
"placeholder": string;
|
|
1214
|
+
/**
|
|
1215
|
+
* Size. `small` shows a smaller field; omit for the default size.
|
|
1216
|
+
*/
|
|
561
1217
|
"size"?: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* Accessible name of the country code dropdown button; the selected code is added after it.
|
|
1220
|
+
* @default 'Choose country code'
|
|
1221
|
+
*/
|
|
1222
|
+
"toggle_button_label": string;
|
|
1223
|
+
/**
|
|
1224
|
+
* `name` of the country code dropdown button.
|
|
1225
|
+
*/
|
|
562
1226
|
"toggle_button_name": string;
|
|
1227
|
+
/**
|
|
1228
|
+
* Validation style. `error` shows the error colors. Any value hides `helper_text`.
|
|
1229
|
+
*/
|
|
563
1230
|
"validation_type"?: string;
|
|
564
1231
|
}
|
|
565
1232
|
interface DdaProgressbar {
|
|
566
1233
|
/**
|
|
1234
|
+
* Accessible name of the progress bar.
|
|
567
1235
|
* @default 'Progress'
|
|
568
1236
|
*/
|
|
569
1237
|
"aria_label": string;
|
|
1238
|
+
/**
|
|
1239
|
+
* Theme override class for the progress bar, e.g. `light-mode`.
|
|
1240
|
+
*/
|
|
570
1241
|
"component_mode"?: string;
|
|
1242
|
+
/**
|
|
1243
|
+
* Extra CSS classes added to the progress bar container.
|
|
1244
|
+
*/
|
|
571
1245
|
"custom_class": string;
|
|
572
1246
|
/**
|
|
1247
|
+
* Progress in percent, from 0 to 100. Sets the bar width and `aria-valuenow`.
|
|
573
1248
|
* @default 0
|
|
574
1249
|
*/
|
|
575
1250
|
"progress": number;
|
|
576
1251
|
/**
|
|
1252
|
+
* Shows the percentage as text after the bar.
|
|
577
1253
|
* @default false
|
|
578
1254
|
*/
|
|
579
1255
|
"show_percentage_text": boolean;
|
|
580
1256
|
/**
|
|
1257
|
+
* Shows the percentage in a tooltip at the end of the filled bar.
|
|
581
1258
|
* @default false
|
|
582
1259
|
*/
|
|
583
1260
|
"tooltip": boolean;
|
|
584
1261
|
/**
|
|
1262
|
+
* Tooltip position: `top` or `bottom`.
|
|
585
1263
|
* @default 'top'
|
|
586
1264
|
*/
|
|
587
1265
|
"tooltip_position": 'top' | 'bottom';
|
|
588
1266
|
}
|
|
589
1267
|
interface DdaRadiobutton {
|
|
1268
|
+
/**
|
|
1269
|
+
* Accessible name of the inner radio input.
|
|
1270
|
+
*/
|
|
590
1271
|
"aria_label"?: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* Checked state of the inner input. Read the current state from the input or its `change` event.
|
|
1274
|
+
*/
|
|
591
1275
|
"checked": boolean;
|
|
1276
|
+
/**
|
|
1277
|
+
* Theme override class for the radio button, e.g. `light-mode`.
|
|
1278
|
+
*/
|
|
592
1279
|
"component_mode"?: string;
|
|
593
1280
|
/**
|
|
1281
|
+
* Extra class suffix. The value is added as `dda-radio-<value>` on the container.
|
|
594
1282
|
* @default ''
|
|
595
1283
|
*/
|
|
596
1284
|
"custom_class"?: string;
|
|
1285
|
+
/**
|
|
1286
|
+
* `name` of the inner radio input. Give all radio buttons in one group the same value.
|
|
1287
|
+
*/
|
|
597
1288
|
"group_name"?: string;
|
|
1289
|
+
/**
|
|
1290
|
+
* `id` of the inner radio input. The label points to it, so set a unique value to make the label clickable.
|
|
1291
|
+
*/
|
|
598
1292
|
"input_id"?: string;
|
|
1293
|
+
/**
|
|
1294
|
+
* Status: `disabled` shows the disabled style and blocks pointer clicks.
|
|
1295
|
+
*/
|
|
599
1296
|
"radio_status"?: string;
|
|
1297
|
+
/**
|
|
1298
|
+
* Size: `sm`, `md` or `lg`.
|
|
1299
|
+
*/
|
|
600
1300
|
"size"?: string;
|
|
1301
|
+
/**
|
|
1302
|
+
* Secondary text shown under the title.
|
|
1303
|
+
*/
|
|
601
1304
|
"supporting"?: string;
|
|
1305
|
+
/**
|
|
1306
|
+
* Label shown next to the radio button.
|
|
1307
|
+
*/
|
|
602
1308
|
"title_text": string;
|
|
1309
|
+
/**
|
|
1310
|
+
* Style variant: `outlined` or `faded`. Leave empty (or `normal`) for the default style.
|
|
1311
|
+
*/
|
|
603
1312
|
"variants"?: string;
|
|
604
1313
|
}
|
|
605
1314
|
interface DdaRangeSlider {
|
|
1315
|
+
/**
|
|
1316
|
+
* Theme override class for the slider, e.g. `light-mode`.
|
|
1317
|
+
*/
|
|
606
1318
|
"component_mode"?: string;
|
|
607
1319
|
/**
|
|
1320
|
+
* Extra CSS classes added to the slider container.
|
|
608
1321
|
* @default ''
|
|
609
1322
|
*/
|
|
610
1323
|
"custom_class"?: string;
|
|
611
1324
|
/**
|
|
1325
|
+
* Start value of the upper (right) handle. Read only when the component loads.
|
|
612
1326
|
* @default 100
|
|
613
1327
|
*/
|
|
614
1328
|
"initial_max": number;
|
|
615
1329
|
/**
|
|
1330
|
+
* Start value of the lower (left) handle. Read only when the component loads.
|
|
616
1331
|
* @default 0
|
|
617
1332
|
*/
|
|
618
1333
|
"initial_min": number;
|
|
1334
|
+
/**
|
|
1335
|
+
* Accessible name of the lower (left) range input, e.g. `Minimum amount`. When it is empty, the name is `Minimum`.
|
|
1336
|
+
*/
|
|
619
1337
|
"left_aria_label"?: string;
|
|
1338
|
+
/**
|
|
1339
|
+
* `id` of the lower (left) range input. When it is not set, the component generates a unique id.
|
|
1340
|
+
*/
|
|
620
1341
|
"left_input_id": string;
|
|
1342
|
+
/**
|
|
1343
|
+
* `name` of the lower (left) range input, submitted with its form.
|
|
1344
|
+
*/
|
|
621
1345
|
"left_input_name": string;
|
|
622
1346
|
/**
|
|
1347
|
+
* Highest value of the range.
|
|
623
1348
|
* @default 100
|
|
624
1349
|
*/
|
|
625
1350
|
"max": number;
|
|
626
1351
|
/**
|
|
1352
|
+
* Lowest value of the range.
|
|
627
1353
|
* @default 0
|
|
628
1354
|
*/
|
|
629
1355
|
"min": number;
|
|
1356
|
+
/**
|
|
1357
|
+
* Accessible name of the upper (right) range input, e.g. `Maximum amount`. When it is empty, the name is `Maximum`.
|
|
1358
|
+
*/
|
|
630
1359
|
"right_aria_label"?: string;
|
|
1360
|
+
/**
|
|
1361
|
+
* `id` of the upper (right) range input. When it is not set, the component generates a unique id.
|
|
1362
|
+
*/
|
|
631
1363
|
"right_input_id": string;
|
|
1364
|
+
/**
|
|
1365
|
+
* `name` of the upper (right) range input, submitted with its form.
|
|
1366
|
+
*/
|
|
632
1367
|
"right_input_name": string;
|
|
1368
|
+
/**
|
|
1369
|
+
* Not used by the current version; it has no effect.
|
|
1370
|
+
*/
|
|
633
1371
|
"size"?: string;
|
|
634
1372
|
/**
|
|
1373
|
+
* Step between selectable values.
|
|
635
1374
|
* @default 1
|
|
636
1375
|
*/
|
|
637
1376
|
"step": number;
|
|
1377
|
+
/**
|
|
1378
|
+
* Value labels shown as tooltips: `top` or `bottom`. Without it, plain labels show below the track.
|
|
1379
|
+
*/
|
|
638
1380
|
"tooltip_position"?: string;
|
|
639
1381
|
}
|
|
640
1382
|
interface DdaSearchInput {
|
|
1383
|
+
/**
|
|
1384
|
+
* Accessible name of the search input. Use it when there is no visible label.
|
|
1385
|
+
*/
|
|
641
1386
|
"aria_label"?: string;
|
|
1387
|
+
/**
|
|
1388
|
+
* Accessible name of the clear button, e.g. `Clear search`.
|
|
1389
|
+
*/
|
|
642
1390
|
"button_aria_label"?: string;
|
|
1391
|
+
/**
|
|
1392
|
+
* `id` of the clear button.
|
|
1393
|
+
*/
|
|
643
1394
|
"button_id"?: string;
|
|
1395
|
+
/**
|
|
1396
|
+
* Accessible name of the clear button. `button_aria_label` wins when set.
|
|
1397
|
+
* @default 'Clear search'
|
|
1398
|
+
*/
|
|
1399
|
+
"clear_button_label": string;
|
|
1400
|
+
/**
|
|
1401
|
+
* `name` of the clear button.
|
|
1402
|
+
*/
|
|
644
1403
|
"close_button_name": string;
|
|
1404
|
+
/**
|
|
1405
|
+
* Theme override class for the field, e.g. `light-mode`.
|
|
1406
|
+
*/
|
|
645
1407
|
"component_mode"?: string;
|
|
646
1408
|
/**
|
|
1409
|
+
* Extra CSS classes added to the field container.
|
|
647
1410
|
* @default ''
|
|
648
1411
|
*/
|
|
649
1412
|
"custom_class"?: string;
|
|
1413
|
+
/**
|
|
1414
|
+
* Error text shown below the field. When set, the input gets `aria-invalid="true"`.
|
|
1415
|
+
*/
|
|
650
1416
|
"error_message": string;
|
|
651
1417
|
/**
|
|
1418
|
+
* Shows the error colors.
|
|
652
1419
|
* @default false
|
|
653
1420
|
*/
|
|
654
1421
|
"has_error": boolean;
|
|
1422
|
+
/**
|
|
1423
|
+
* Helper text shown below the field and linked with `aria-describedby`.
|
|
1424
|
+
*/
|
|
655
1425
|
"helper_text": string;
|
|
1426
|
+
/**
|
|
1427
|
+
* `id` of the search input. Also used for the label `for` and the helper and error text ids. Optional: an id is generated when it is not set.
|
|
1428
|
+
*/
|
|
656
1429
|
"input_id"?: string;
|
|
1430
|
+
/**
|
|
1431
|
+
* Status style. `disabled` shows the disabled styling only; it does not set the native `disabled` attribute.
|
|
1432
|
+
*/
|
|
657
1433
|
"input_status"?: string;
|
|
1434
|
+
/**
|
|
1435
|
+
* Visible label text, linked to the search input through `input_id` (or a generated id).
|
|
1436
|
+
*/
|
|
658
1437
|
"label": string;
|
|
659
1438
|
/**
|
|
1439
|
+
* Placeholder text of the search input.
|
|
660
1440
|
* @default 'Search'
|
|
661
1441
|
*/
|
|
662
1442
|
"placeholder": string;
|
|
1443
|
+
/**
|
|
1444
|
+
* `name` of the "Search" button.
|
|
1445
|
+
*/
|
|
663
1446
|
"search_button_name": string;
|
|
1447
|
+
/**
|
|
1448
|
+
* `name` of the search input, submitted with its form.
|
|
1449
|
+
*/
|
|
664
1450
|
"search_input_name": string;
|
|
665
1451
|
/**
|
|
1452
|
+
* Shows a "Search" button after the clear button.
|
|
666
1453
|
* @default false
|
|
667
1454
|
*/
|
|
668
1455
|
"show_button": boolean;
|
|
669
1456
|
/**
|
|
1457
|
+
* Size. `small` shows a smaller field; other values show the default size.
|
|
670
1458
|
* @default 'sm'
|
|
671
1459
|
*/
|
|
672
1460
|
"size": string;
|
|
@@ -676,210 +1464,510 @@ export namespace Components {
|
|
|
676
1464
|
* Accessible name for the group (applied as aria-label on the group container).
|
|
677
1465
|
*/
|
|
678
1466
|
"aria_label": string;
|
|
1467
|
+
/**
|
|
1468
|
+
* `name` set on every segment button.
|
|
1469
|
+
*/
|
|
679
1470
|
"button_name": string;
|
|
1471
|
+
/**
|
|
1472
|
+
* Theme override class on the group, e.g. `light-mode`.
|
|
1473
|
+
*/
|
|
680
1474
|
"component_mode"?: string;
|
|
1475
|
+
/**
|
|
1476
|
+
* Extra CSS classes added to the group.
|
|
1477
|
+
*/
|
|
681
1478
|
"custom_class": string;
|
|
1479
|
+
/**
|
|
1480
|
+
* Accessible names for icon-only segments, as a JSON string array in the same order as `items`, e.g. `'["Align left", "Align center"]'`.
|
|
1481
|
+
*/
|
|
1482
|
+
"icon_labels"?: string;
|
|
1483
|
+
/**
|
|
1484
|
+
* Segments, as a JSON string array, e.g. `'["All", "Pending", "Approved"]'`. A missing or invalid value renders no segments. An item that starts with `fo` renders as a Material Symbols icon name (e.g. `format_align_left`).
|
|
1485
|
+
*/
|
|
682
1486
|
"items": string;
|
|
1487
|
+
/**
|
|
1488
|
+
* Corner shape of the group: `square` or `rounded`.
|
|
1489
|
+
*/
|
|
683
1490
|
"radius_type": string;
|
|
684
1491
|
/**
|
|
685
|
-
* Index of the segment
|
|
1492
|
+
* Index of the selected segment, from 0. Changing it after load moves the selection. An out-of-range value selects the first segment.
|
|
686
1493
|
* @default 0
|
|
687
1494
|
*/
|
|
688
1495
|
"selected_index": number;
|
|
689
1496
|
}
|
|
690
1497
|
interface DdaSelect {
|
|
1498
|
+
/**
|
|
1499
|
+
* Accessible name of the trigger button and the option list. The list falls back to `label`.
|
|
1500
|
+
*/
|
|
691
1501
|
"aria_label"?: string;
|
|
1502
|
+
/**
|
|
1503
|
+
* `id` of the trigger button. Also used to build the ids of the label, list, helper text and error message, so keep it unique. When it is not set, the component generates a unique id.
|
|
1504
|
+
*/
|
|
692
1505
|
"button_id": string;
|
|
1506
|
+
/**
|
|
1507
|
+
* Theme override class for the field, e.g. `light-mode`.
|
|
1508
|
+
*/
|
|
693
1509
|
"component_mode"?: string;
|
|
694
1510
|
/**
|
|
1511
|
+
* Extra CSS classes added to the field container.
|
|
695
1512
|
* @default ''
|
|
696
1513
|
*/
|
|
697
1514
|
"custom_class"?: string;
|
|
698
1515
|
/**
|
|
1516
|
+
* Disables the select: the list does not open and options cannot be picked.
|
|
699
1517
|
* @default false
|
|
700
1518
|
*/
|
|
701
1519
|
"disabled": boolean;
|
|
1520
|
+
/**
|
|
1521
|
+
* Validation state. `error` shows the error styling.
|
|
1522
|
+
*/
|
|
702
1523
|
"error"?: string;
|
|
1524
|
+
/**
|
|
1525
|
+
* Error text shown under the field. Also sets `aria-invalid` on the trigger.
|
|
1526
|
+
*/
|
|
703
1527
|
"error_message": string;
|
|
1528
|
+
/**
|
|
1529
|
+
* Helper text shown under the field.
|
|
1530
|
+
*/
|
|
704
1531
|
"helper_text": string;
|
|
1532
|
+
/**
|
|
1533
|
+
* Label shown above the field. The trigger button is named by the label and its current text.
|
|
1534
|
+
*/
|
|
705
1535
|
"label": string;
|
|
1536
|
+
/**
|
|
1537
|
+
* `name` of each option button in the list.
|
|
1538
|
+
*/
|
|
706
1539
|
"option_select_button_name": string;
|
|
1540
|
+
/**
|
|
1541
|
+
* Options as a JSON array string, e.g. `'["Dubai","Abu Dhabi","Sharjah"]'`. Invalid JSON shows "No options available".
|
|
1542
|
+
*/
|
|
707
1543
|
"options": string;
|
|
1544
|
+
/**
|
|
1545
|
+
* The selected option. Must match an entry in `options`. The trigger shows "Select an option" when it is empty. Updated when the user picks an option. Mutable: the component assigns it.
|
|
1546
|
+
*/
|
|
708
1547
|
"selected": string;
|
|
1548
|
+
/**
|
|
1549
|
+
* Field size. `small` gives the compact field; leave empty for the default size.
|
|
1550
|
+
*/
|
|
709
1551
|
"size"?: string;
|
|
1552
|
+
/**
|
|
1553
|
+
* `name` of the trigger button.
|
|
1554
|
+
*/
|
|
710
1555
|
"toggle_button_name": string;
|
|
711
1556
|
}
|
|
712
1557
|
interface DdaStickyFooter {
|
|
1558
|
+
/**
|
|
1559
|
+
* Alternative text for the accessibility icon.
|
|
1560
|
+
*/
|
|
713
1561
|
"accessibilityIconAlt": string;
|
|
1562
|
+
/**
|
|
1563
|
+
* Link URL of the accessibility icon, the second icon in the left section.
|
|
1564
|
+
*/
|
|
714
1565
|
"accessibilityIconHref": string;
|
|
1566
|
+
/**
|
|
1567
|
+
* Image URL of the accessibility icon.
|
|
1568
|
+
*/
|
|
715
1569
|
"accessibilityIconSrc": string;
|
|
1570
|
+
/**
|
|
1571
|
+
* Tooltip text of the accessibility icon.
|
|
1572
|
+
*/
|
|
716
1573
|
"accessibilityIconTooltip": string;
|
|
1574
|
+
/**
|
|
1575
|
+
* Alternative text for the AI assistant icon.
|
|
1576
|
+
*/
|
|
717
1577
|
"aiIconAlt": string;
|
|
1578
|
+
/**
|
|
1579
|
+
* Link URL of the AI assistant icon (right section).
|
|
1580
|
+
*/
|
|
718
1581
|
"aiIconHref": string;
|
|
1582
|
+
/**
|
|
1583
|
+
* Image URL of the AI assistant icon.
|
|
1584
|
+
*/
|
|
719
1585
|
"aiIconSrc": string;
|
|
1586
|
+
/**
|
|
1587
|
+
* Tooltip text of the AI assistant icon.
|
|
1588
|
+
*/
|
|
720
1589
|
"aiIconTooltip": string;
|
|
721
|
-
"chatIconAlt": string;
|
|
722
|
-
"chatIconHref": string;
|
|
723
|
-
"chatIconSrc": string;
|
|
724
|
-
"chatIconTooltip": string;
|
|
725
|
-
"firstLogoAlt": string;
|
|
726
1590
|
/**
|
|
727
|
-
*
|
|
1591
|
+
* Accessible name of the bar's `<aside>` landmark. Default: `Quick actions`.
|
|
1592
|
+
* @default 'Quick actions'
|
|
1593
|
+
*/
|
|
1594
|
+
"aria_label": string;
|
|
1595
|
+
/**
|
|
1596
|
+
* Alternative text for the chat icon.
|
|
1597
|
+
*/
|
|
1598
|
+
"chatIconAlt": string;
|
|
1599
|
+
/**
|
|
1600
|
+
* Link URL of the chat icon (right section).
|
|
1601
|
+
*/
|
|
1602
|
+
"chatIconHref": string;
|
|
1603
|
+
/**
|
|
1604
|
+
* Image URL of the chat icon.
|
|
1605
|
+
*/
|
|
1606
|
+
"chatIconSrc": string;
|
|
1607
|
+
/**
|
|
1608
|
+
* Tooltip text of the chat icon.
|
|
1609
|
+
*/
|
|
1610
|
+
"chatIconTooltip": string;
|
|
1611
|
+
/**
|
|
1612
|
+
* Alternative text for the first logo.
|
|
1613
|
+
*/
|
|
1614
|
+
"firstLogoAlt": string;
|
|
1615
|
+
/**
|
|
1616
|
+
* Link URL of the first logo (middle section).
|
|
1617
|
+
*/
|
|
1618
|
+
"firstLogoHref": string;
|
|
1619
|
+
/**
|
|
1620
|
+
* Image URL of the first logo.
|
|
728
1621
|
*/
|
|
729
|
-
"firstLogoHref": string;
|
|
730
1622
|
"firstLogoSrc": string;
|
|
1623
|
+
/**
|
|
1624
|
+
* Tooltip text of the first logo.
|
|
1625
|
+
*/
|
|
731
1626
|
"firstLogoTooltip": string;
|
|
1627
|
+
/**
|
|
1628
|
+
* Alternative text for the happiness icon.
|
|
1629
|
+
*/
|
|
732
1630
|
"happinessIconAlt": string;
|
|
733
1631
|
/**
|
|
734
|
-
*
|
|
1632
|
+
* Link URL of the happiness icon (left section).
|
|
735
1633
|
*/
|
|
736
1634
|
"happinessIconHref": string;
|
|
1635
|
+
/**
|
|
1636
|
+
* Image URL of the happiness icon.
|
|
1637
|
+
*/
|
|
737
1638
|
"happinessIconSrc": string;
|
|
1639
|
+
/**
|
|
1640
|
+
* Tooltip text of the happiness icon.
|
|
1641
|
+
*/
|
|
738
1642
|
"happinessIconTooltip": string;
|
|
1643
|
+
/**
|
|
1644
|
+
* Hides the middle logo section. The section shows only when this is explicitly `false`.
|
|
1645
|
+
*/
|
|
739
1646
|
"hideMiddleSection": boolean;
|
|
740
1647
|
/**
|
|
741
|
-
*
|
|
1648
|
+
* Link URL of the location icon (right section).
|
|
742
1649
|
*/
|
|
743
1650
|
"locationButtonHref": string;
|
|
1651
|
+
/**
|
|
1652
|
+
* Not used: the current markup does not render it.
|
|
1653
|
+
*/
|
|
744
1654
|
"locationButtonIcon": string;
|
|
1655
|
+
/**
|
|
1656
|
+
* Tooltip text and alternative text of the location icon.
|
|
1657
|
+
*/
|
|
745
1658
|
"locationButtonText": string;
|
|
1659
|
+
/**
|
|
1660
|
+
* Image URL of the location icon.
|
|
1661
|
+
*/
|
|
746
1662
|
"locationLogoSrc": string;
|
|
1663
|
+
/**
|
|
1664
|
+
* Link URL of the news icon (right section).
|
|
1665
|
+
*/
|
|
747
1666
|
"newsButtonHref": string;
|
|
1667
|
+
/**
|
|
1668
|
+
* Not used: the current markup does not render it.
|
|
1669
|
+
*/
|
|
748
1670
|
"newsButtonIcon": string;
|
|
1671
|
+
/**
|
|
1672
|
+
* Image URL of the news icon.
|
|
1673
|
+
*/
|
|
749
1674
|
"newsButtonSrc": string;
|
|
1675
|
+
/**
|
|
1676
|
+
* Tooltip text and alternative text of the news icon.
|
|
1677
|
+
*/
|
|
750
1678
|
"newsButtonText": string;
|
|
1679
|
+
/**
|
|
1680
|
+
* Alternative text for the second logo.
|
|
1681
|
+
*/
|
|
751
1682
|
"secondLogoAlt": string;
|
|
1683
|
+
/**
|
|
1684
|
+
* Link URL of the second logo (middle section).
|
|
1685
|
+
*/
|
|
752
1686
|
"secondLogoHref": string;
|
|
1687
|
+
/**
|
|
1688
|
+
* Image URL of the second logo.
|
|
1689
|
+
*/
|
|
753
1690
|
"secondLogoSrc": string;
|
|
1691
|
+
/**
|
|
1692
|
+
* Tooltip text of the second logo.
|
|
1693
|
+
*/
|
|
754
1694
|
"secondLogoTooltip": string;
|
|
1695
|
+
/**
|
|
1696
|
+
* Alternative text for the services icon.
|
|
1697
|
+
*/
|
|
755
1698
|
"servicesIconAlt": string;
|
|
1699
|
+
/**
|
|
1700
|
+
* Link URL of the services icon (left section).
|
|
1701
|
+
*/
|
|
756
1702
|
"servicesIconHref": string;
|
|
1703
|
+
/**
|
|
1704
|
+
* Image URL of the services icon.
|
|
1705
|
+
*/
|
|
757
1706
|
"servicesIconSrc": string;
|
|
1707
|
+
/**
|
|
1708
|
+
* Text shown next to the services icon. Nothing is shown when it is not set.
|
|
1709
|
+
*/
|
|
758
1710
|
"servicesIconText": string;
|
|
1711
|
+
/**
|
|
1712
|
+
* Tooltip text of the services icon.
|
|
1713
|
+
*/
|
|
759
1714
|
"servicesIconTooltip": string;
|
|
1715
|
+
/**
|
|
1716
|
+
* Alternative text for the third logo.
|
|
1717
|
+
*/
|
|
760
1718
|
"thirdLogoAlt": string;
|
|
1719
|
+
/**
|
|
1720
|
+
* Link URL of the third logo (middle section).
|
|
1721
|
+
*/
|
|
761
1722
|
"thirdLogoHref": string;
|
|
1723
|
+
/**
|
|
1724
|
+
* Image URL of the third logo.
|
|
1725
|
+
*/
|
|
762
1726
|
"thirdLogoSrc": string;
|
|
1727
|
+
/**
|
|
1728
|
+
* Tooltip text of the third logo.
|
|
1729
|
+
*/
|
|
763
1730
|
"thirdLogoTooltip": string;
|
|
764
1731
|
}
|
|
765
1732
|
interface DdaTabs {
|
|
1733
|
+
/**
|
|
1734
|
+
* Accessible name for the tab group (`aria-label` on the `role="group"` container).
|
|
1735
|
+
*/
|
|
766
1736
|
"aria_label": string;
|
|
767
1737
|
/**
|
|
1738
|
+
* Not used by the component; it has no effect.
|
|
768
1739
|
* @default false
|
|
769
1740
|
*/
|
|
770
1741
|
"border_bottom": boolean;
|
|
1742
|
+
/**
|
|
1743
|
+
* `id` set on every tab button.
|
|
1744
|
+
*/
|
|
771
1745
|
"button_id"?: string;
|
|
1746
|
+
/**
|
|
1747
|
+
* `name` set on every tab button.
|
|
1748
|
+
*/
|
|
772
1749
|
"button_name": string;
|
|
1750
|
+
/**
|
|
1751
|
+
* Theme override class on the tab group, e.g. `light-mode`.
|
|
1752
|
+
*/
|
|
773
1753
|
"component_mode"?: string;
|
|
774
1754
|
/**
|
|
1755
|
+
* Extra CSS classes added to the tab group.
|
|
775
1756
|
* @default ''
|
|
776
1757
|
*/
|
|
777
1758
|
"custom_class"?: string;
|
|
778
1759
|
/**
|
|
1760
|
+
* Style of the active and hovered tab: `dda-tab-default`, `dda-tab-filed`, `dda-tab-underline` or `dda-tab-underline-filled`.
|
|
779
1761
|
* @default 'dda-tab-default'
|
|
780
1762
|
*/
|
|
781
1763
|
"hover_style": 'dda-tab-default' | 'dda-tab-filed' | 'dda-tab-underline' | 'dda-tab-underline-filled';
|
|
782
1764
|
/**
|
|
1765
|
+
* Material Icons names, one per tab in the same order, as a JSON string array. Shown when `type` is `text-icon`.
|
|
783
1766
|
* @default '["sentiment_satisfied", "sentiment_satisfied", "sentiment_satisfied"]'
|
|
784
1767
|
*/
|
|
785
1768
|
"tab_icons": string;
|
|
786
1769
|
/**
|
|
1770
|
+
* Tab labels, as a JSON string array, e.g. `'["Details", "Documents"]'`.
|
|
787
1771
|
* @default '["Tab 1", "Tab 2", "Tab 3"]'
|
|
788
1772
|
*/
|
|
789
1773
|
"tab_texts": string;
|
|
790
1774
|
/**
|
|
1775
|
+
* Tab content: `text` (label only) or `text-icon` (icon from `tab_icons` before the label).
|
|
791
1776
|
* @default 'text'
|
|
792
1777
|
*/
|
|
793
1778
|
"type": 'text' | 'text-icon';
|
|
794
1779
|
}
|
|
795
1780
|
interface DdaTextarea {
|
|
1781
|
+
/**
|
|
1782
|
+
* Accessible name of the textarea. Use it when there is no visible label.
|
|
1783
|
+
*/
|
|
796
1784
|
"aria_label"?: string;
|
|
1785
|
+
/**
|
|
1786
|
+
* Theme override class for the field, e.g. `light-mode`.
|
|
1787
|
+
*/
|
|
797
1788
|
"component_mode"?: string;
|
|
1789
|
+
/**
|
|
1790
|
+
* Extra CSS classes added to the field container.
|
|
1791
|
+
*/
|
|
798
1792
|
"custom_class"?: string;
|
|
1793
|
+
/**
|
|
1794
|
+
* Replaces the textarea with a Quill rich text editor and toolbar.
|
|
1795
|
+
*/
|
|
799
1796
|
"enable_rich_editor"?: boolean;
|
|
1797
|
+
/**
|
|
1798
|
+
* Error text shown below the field with the character count. When set, the field gets `aria-invalid="true"`.
|
|
1799
|
+
*/
|
|
800
1800
|
"error_message": string;
|
|
1801
|
+
/**
|
|
1802
|
+
* Helper text shown below the field with the character count, linked with `aria-describedby`.
|
|
1803
|
+
*/
|
|
801
1804
|
"helper_text"?: string;
|
|
1805
|
+
/**
|
|
1806
|
+
* `id` of the textarea or editor. Also used for the label and the helper and error text ids. Optional: an id is generated when it is not set.
|
|
1807
|
+
*/
|
|
802
1808
|
"input_id": string;
|
|
1809
|
+
/**
|
|
1810
|
+
* Status style. `disabled` shows the disabled styling only; it does not set the native `disabled` attribute.
|
|
1811
|
+
*/
|
|
803
1812
|
"input_status"?: string;
|
|
1813
|
+
/**
|
|
1814
|
+
* Visible label text, linked to the field through `input_id` (or a generated id).
|
|
1815
|
+
*/
|
|
804
1816
|
"label": string;
|
|
1817
|
+
/**
|
|
1818
|
+
* Maximum number of characters (`maxlength` of the textarea), shown in the character count.
|
|
1819
|
+
*/
|
|
805
1820
|
"max_characters": number;
|
|
1821
|
+
/**
|
|
1822
|
+
* Placeholder text of the textarea or the rich text editor.
|
|
1823
|
+
*/
|
|
806
1824
|
"placeholder": string;
|
|
1825
|
+
/**
|
|
1826
|
+
* `name` of the textarea, submitted with its form.
|
|
1827
|
+
*/
|
|
807
1828
|
"textarea_name": string;
|
|
1829
|
+
/**
|
|
1830
|
+
* Validation style. `error` shows the error colors.
|
|
1831
|
+
*/
|
|
808
1832
|
"validation_type"?: string;
|
|
809
1833
|
/**
|
|
1834
|
+
* Value of the textarea. Updates as the user types; in rich text mode it holds the editor HTML.
|
|
810
1835
|
* @default ''
|
|
811
1836
|
*/
|
|
812
1837
|
"value": string;
|
|
813
1838
|
}
|
|
814
1839
|
interface DdaToggle {
|
|
1840
|
+
/**
|
|
1841
|
+
* Accessible name of the inner checkbox input. Set it when there is no `title_text`.
|
|
1842
|
+
*/
|
|
815
1843
|
"aria_label": string;
|
|
1844
|
+
/**
|
|
1845
|
+
* Checked (on) state of the inner input. Read the current state from the input or its `change` event.
|
|
1846
|
+
*/
|
|
816
1847
|
"checked": boolean;
|
|
1848
|
+
/**
|
|
1849
|
+
* Theme override class for the toggle, e.g. `light-mode`.
|
|
1850
|
+
*/
|
|
817
1851
|
"component_mode"?: string;
|
|
818
1852
|
/**
|
|
1853
|
+
* Extra CSS classes added to the toggle label.
|
|
819
1854
|
* @default ''
|
|
820
1855
|
*/
|
|
821
1856
|
"custom_class"?: string;
|
|
1857
|
+
/**
|
|
1858
|
+
* `name` of the inner checkbox input.
|
|
1859
|
+
*/
|
|
822
1860
|
"group_name"?: string;
|
|
1861
|
+
/**
|
|
1862
|
+
* `id` of the inner checkbox input.
|
|
1863
|
+
*/
|
|
823
1864
|
"input_id"?: string;
|
|
1865
|
+
/**
|
|
1866
|
+
* Size: `sm`, `md` or `lg`.
|
|
1867
|
+
*/
|
|
824
1868
|
"size"?: string;
|
|
1869
|
+
/**
|
|
1870
|
+
* Secondary text shown under the title.
|
|
1871
|
+
*/
|
|
1872
|
+
"supporting"?: string;
|
|
1873
|
+
/**
|
|
1874
|
+
* Label shown next to the switch. Nothing is shown when it is not set.
|
|
1875
|
+
*/
|
|
1876
|
+
"title_text"?: string;
|
|
825
1877
|
}
|
|
826
1878
|
interface DdaTooltip {
|
|
1879
|
+
/**
|
|
1880
|
+
* Theme class added to the tooltip container, e.g. `light-mode`. The tooltip styles do not change with it.
|
|
1881
|
+
*/
|
|
827
1882
|
"component_mode"?: string;
|
|
828
1883
|
/**
|
|
1884
|
+
* Extra CSS classes added to the tooltip container.
|
|
829
1885
|
* @default ''
|
|
830
1886
|
*/
|
|
831
1887
|
"custom_class"?: string;
|
|
1888
|
+
/**
|
|
1889
|
+
* Text shown below the heading in the tooltip box.
|
|
1890
|
+
*/
|
|
832
1891
|
"description": string;
|
|
833
1892
|
/**
|
|
1893
|
+
* Side of the trigger where the box appears: `top`, `bottom`, `left` or `right`.
|
|
834
1894
|
* @default 'top'
|
|
835
1895
|
*/
|
|
836
1896
|
"position": 'top' | 'bottom' | 'left' | 'right';
|
|
1897
|
+
/**
|
|
1898
|
+
* Bold heading shown in the tooltip box.
|
|
1899
|
+
*/
|
|
837
1900
|
"title_text": string;
|
|
838
1901
|
}
|
|
839
1902
|
interface DdaUiCard {
|
|
840
1903
|
/**
|
|
1904
|
+
* Heading level (1–6) of the title; pick the level that fits the page outline.
|
|
1905
|
+
* @default 3
|
|
1906
|
+
*/
|
|
1907
|
+
"heading_level": number;
|
|
1908
|
+
/**
|
|
1909
|
+
* Material Icons name shown at the top of the card, e.g. `description`.
|
|
841
1910
|
* @default ''
|
|
842
1911
|
*/
|
|
843
1912
|
"icon": string;
|
|
844
1913
|
/**
|
|
1914
|
+
* URL of an image shown at the top of the card. Its alt text is `maintitle`.
|
|
845
1915
|
* @default ''
|
|
846
1916
|
*/
|
|
847
1917
|
"image": string;
|
|
848
1918
|
/**
|
|
1919
|
+
* URL of the card link. The link shows only when this is set.
|
|
849
1920
|
* @default ''
|
|
850
1921
|
*/
|
|
851
1922
|
"link": string;
|
|
852
1923
|
/**
|
|
1924
|
+
* Material Icons name shown after the link text. Set it to an empty string to hide the icon.
|
|
853
1925
|
* @default 'arrow_forward'
|
|
854
1926
|
*/
|
|
855
1927
|
"linkicon": string;
|
|
856
1928
|
/**
|
|
1929
|
+
* Text of the card link.
|
|
857
1930
|
* @default ''
|
|
858
1931
|
*/
|
|
859
1932
|
"linktext": string;
|
|
860
1933
|
/**
|
|
1934
|
+
* Card title, rendered as a heading at `heading_level`.
|
|
861
1935
|
* @default ''
|
|
862
1936
|
*/
|
|
863
1937
|
"maintitle": string;
|
|
864
1938
|
/**
|
|
1939
|
+
* Muted text shown below the title.
|
|
865
1940
|
* @default ''
|
|
866
1941
|
*/
|
|
867
1942
|
"subtitle": string;
|
|
868
1943
|
/**
|
|
1944
|
+
* `default` renders the icon, image, title, subtitle and link from props before the slot; `custom` renders only the slot.
|
|
869
1945
|
* @default 'default'
|
|
870
1946
|
*/
|
|
871
1947
|
"type": 'default' | 'custom';
|
|
872
1948
|
}
|
|
873
1949
|
interface DdaVerticalStepper {
|
|
1950
|
+
/**
|
|
1951
|
+
* Class added to the stepper container, e.g. `light-mode`.
|
|
1952
|
+
*/
|
|
874
1953
|
"component_mode"?: string;
|
|
875
1954
|
/**
|
|
1955
|
+
* @deprecated Use `current_step`. Its attribute is `current_-step`, so it never worked in HTML.
|
|
876
1956
|
* @default 0
|
|
877
1957
|
*/
|
|
878
1958
|
"current_Step": number;
|
|
879
1959
|
/**
|
|
1960
|
+
* Index of the current step, from 0. Steps up to and including it are active.
|
|
1961
|
+
*/
|
|
1962
|
+
"current_step"?: number;
|
|
1963
|
+
/**
|
|
1964
|
+
* Extra CSS classes added to the stepper container.
|
|
880
1965
|
* @default ''
|
|
881
1966
|
*/
|
|
882
1967
|
"custom_class"?: string;
|
|
1968
|
+
/**
|
|
1969
|
+
* Steps, as a JSON string array of `{ icon, title, subtitle, description }` objects. `icon` is a Material Icons name.
|
|
1970
|
+
*/
|
|
883
1971
|
"steps": string;
|
|
884
1972
|
}
|
|
885
1973
|
}
|
|
@@ -887,14 +1975,34 @@ export interface DdaAlertCustomEvent<T> extends CustomEvent<T> {
|
|
|
887
1975
|
detail: T;
|
|
888
1976
|
target: HTMLDdaAlertElement;
|
|
889
1977
|
}
|
|
1978
|
+
export interface DdaAvatarCustomEvent<T> extends CustomEvent<T> {
|
|
1979
|
+
detail: T;
|
|
1980
|
+
target: HTMLDdaAvatarElement;
|
|
1981
|
+
}
|
|
1982
|
+
export interface DdaCreditcardFieldCustomEvent<T> extends CustomEvent<T> {
|
|
1983
|
+
detail: T;
|
|
1984
|
+
target: HTMLDdaCreditcardFieldElement;
|
|
1985
|
+
}
|
|
1986
|
+
export interface DdaDropdownCustomEvent<T> extends CustomEvent<T> {
|
|
1987
|
+
detail: T;
|
|
1988
|
+
target: HTMLDdaDropdownElement;
|
|
1989
|
+
}
|
|
890
1990
|
export interface DdaHeaderCustomEvent<T> extends CustomEvent<T> {
|
|
891
1991
|
detail: T;
|
|
892
1992
|
target: HTMLDdaHeaderElement;
|
|
893
1993
|
}
|
|
1994
|
+
export interface DdaPaginationCustomEvent<T> extends CustomEvent<T> {
|
|
1995
|
+
detail: T;
|
|
1996
|
+
target: HTMLDdaPaginationElement;
|
|
1997
|
+
}
|
|
894
1998
|
export interface DdaSegmentedTabsCustomEvent<T> extends CustomEvent<T> {
|
|
895
1999
|
detail: T;
|
|
896
2000
|
target: HTMLDdaSegmentedTabsElement;
|
|
897
2001
|
}
|
|
2002
|
+
export interface DdaSelectCustomEvent<T> extends CustomEvent<T> {
|
|
2003
|
+
detail: T;
|
|
2004
|
+
target: HTMLDdaSelectElement;
|
|
2005
|
+
}
|
|
898
2006
|
export interface DdaTabsCustomEvent<T> extends CustomEvent<T> {
|
|
899
2007
|
detail: T;
|
|
900
2008
|
target: HTMLDdaTabsElement;
|
|
@@ -934,7 +2042,18 @@ declare global {
|
|
|
934
2042
|
prototype: HTMLDdaAttachFileElement;
|
|
935
2043
|
new (): HTMLDdaAttachFileElement;
|
|
936
2044
|
};
|
|
2045
|
+
interface HTMLDdaAvatarElementEventMap {
|
|
2046
|
+
"optionSelect": { value: string };
|
|
2047
|
+
}
|
|
937
2048
|
interface HTMLDdaAvatarElement extends Components.DdaAvatar, HTMLStencilElement {
|
|
2049
|
+
addEventListener<K extends keyof HTMLDdaAvatarElementEventMap>(type: K, listener: (this: HTMLDdaAvatarElement, ev: DdaAvatarCustomEvent<HTMLDdaAvatarElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2050
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2051
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2052
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2053
|
+
removeEventListener<K extends keyof HTMLDdaAvatarElementEventMap>(type: K, listener: (this: HTMLDdaAvatarElement, ev: DdaAvatarCustomEvent<HTMLDdaAvatarElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2054
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2055
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2056
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
938
2057
|
}
|
|
939
2058
|
var HTMLDdaAvatarElement: {
|
|
940
2059
|
prototype: HTMLDdaAvatarElement;
|
|
@@ -976,13 +2095,35 @@ declare global {
|
|
|
976
2095
|
prototype: HTMLDdaCreditCardElement;
|
|
977
2096
|
new (): HTMLDdaCreditCardElement;
|
|
978
2097
|
};
|
|
2098
|
+
interface HTMLDdaCreditcardFieldElementEventMap {
|
|
2099
|
+
"valueChange": { value: string };
|
|
2100
|
+
}
|
|
979
2101
|
interface HTMLDdaCreditcardFieldElement extends Components.DdaCreditcardField, HTMLStencilElement {
|
|
2102
|
+
addEventListener<K extends keyof HTMLDdaCreditcardFieldElementEventMap>(type: K, listener: (this: HTMLDdaCreditcardFieldElement, ev: DdaCreditcardFieldCustomEvent<HTMLDdaCreditcardFieldElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2103
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2104
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2105
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2106
|
+
removeEventListener<K extends keyof HTMLDdaCreditcardFieldElementEventMap>(type: K, listener: (this: HTMLDdaCreditcardFieldElement, ev: DdaCreditcardFieldCustomEvent<HTMLDdaCreditcardFieldElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2107
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2108
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2109
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
980
2110
|
}
|
|
981
2111
|
var HTMLDdaCreditcardFieldElement: {
|
|
982
2112
|
prototype: HTMLDdaCreditcardFieldElement;
|
|
983
2113
|
new (): HTMLDdaCreditcardFieldElement;
|
|
984
2114
|
};
|
|
2115
|
+
interface HTMLDdaDropdownElementEventMap {
|
|
2116
|
+
"optionSelect": { value: string };
|
|
2117
|
+
}
|
|
985
2118
|
interface HTMLDdaDropdownElement extends Components.DdaDropdown, HTMLStencilElement {
|
|
2119
|
+
addEventListener<K extends keyof HTMLDdaDropdownElementEventMap>(type: K, listener: (this: HTMLDdaDropdownElement, ev: DdaDropdownCustomEvent<HTMLDdaDropdownElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2120
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2121
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2122
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2123
|
+
removeEventListener<K extends keyof HTMLDdaDropdownElementEventMap>(type: K, listener: (this: HTMLDdaDropdownElement, ev: DdaDropdownCustomEvent<HTMLDdaDropdownElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2124
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2125
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2126
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
986
2127
|
}
|
|
987
2128
|
var HTMLDdaDropdownElement: {
|
|
988
2129
|
prototype: HTMLDdaDropdownElement;
|
|
@@ -1003,6 +2144,7 @@ declare global {
|
|
|
1003
2144
|
"blindContrast": void;
|
|
1004
2145
|
"redContrast": void;
|
|
1005
2146
|
"greenContrast": void;
|
|
2147
|
+
"searchSubmit": { query: string };
|
|
1006
2148
|
}
|
|
1007
2149
|
interface HTMLDdaHeaderElement extends Components.DdaHeader, HTMLStencilElement {
|
|
1008
2150
|
addEventListener<K extends keyof HTMLDdaHeaderElementEventMap>(type: K, listener: (this: HTMLDdaHeaderElement, ev: DdaHeaderCustomEvent<HTMLDdaHeaderElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1048,7 +2190,18 @@ declare global {
|
|
|
1048
2190
|
prototype: HTMLDdaNumberFieldElement;
|
|
1049
2191
|
new (): HTMLDdaNumberFieldElement;
|
|
1050
2192
|
};
|
|
2193
|
+
interface HTMLDdaPaginationElementEventMap {
|
|
2194
|
+
"pageChange": { page: number };
|
|
2195
|
+
}
|
|
1051
2196
|
interface HTMLDdaPaginationElement extends Components.DdaPagination, HTMLStencilElement {
|
|
2197
|
+
addEventListener<K extends keyof HTMLDdaPaginationElementEventMap>(type: K, listener: (this: HTMLDdaPaginationElement, ev: DdaPaginationCustomEvent<HTMLDdaPaginationElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2198
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2199
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2200
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2201
|
+
removeEventListener<K extends keyof HTMLDdaPaginationElementEventMap>(type: K, listener: (this: HTMLDdaPaginationElement, ev: DdaPaginationCustomEvent<HTMLDdaPaginationElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2202
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2203
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2204
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1052
2205
|
}
|
|
1053
2206
|
var HTMLDdaPaginationElement: {
|
|
1054
2207
|
prototype: HTMLDdaPaginationElement;
|
|
@@ -1101,7 +2254,18 @@ declare global {
|
|
|
1101
2254
|
prototype: HTMLDdaSegmentedTabsElement;
|
|
1102
2255
|
new (): HTMLDdaSegmentedTabsElement;
|
|
1103
2256
|
};
|
|
2257
|
+
interface HTMLDdaSelectElementEventMap {
|
|
2258
|
+
"selectionChange": { value: string };
|
|
2259
|
+
}
|
|
1104
2260
|
interface HTMLDdaSelectElement extends Components.DdaSelect, HTMLStencilElement {
|
|
2261
|
+
addEventListener<K extends keyof HTMLDdaSelectElementEventMap>(type: K, listener: (this: HTMLDdaSelectElement, ev: DdaSelectCustomEvent<HTMLDdaSelectElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2262
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2263
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2264
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2265
|
+
removeEventListener<K extends keyof HTMLDdaSelectElementEventMap>(type: K, listener: (this: HTMLDdaSelectElement, ev: DdaSelectCustomEvent<HTMLDdaSelectElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2266
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2267
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2268
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1105
2269
|
}
|
|
1106
2270
|
var HTMLDdaSelectElement: {
|
|
1107
2271
|
prototype: HTMLDdaSelectElement;
|
|
@@ -1114,7 +2278,7 @@ declare global {
|
|
|
1114
2278
|
new (): HTMLDdaStickyFooterElement;
|
|
1115
2279
|
};
|
|
1116
2280
|
interface HTMLDdaTabsElementEventMap {
|
|
1117
|
-
"tabClick":
|
|
2281
|
+
"tabClick": number;
|
|
1118
2282
|
}
|
|
1119
2283
|
interface HTMLDdaTabsElement extends Components.DdaTabs, HTMLStencilElement {
|
|
1120
2284
|
addEventListener<K extends keyof HTMLDdaTabsElementEventMap>(type: K, listener: (this: HTMLDdaTabsElement, ev: DdaTabsCustomEvent<HTMLDdaTabsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1149,7 +2313,7 @@ declare global {
|
|
|
1149
2313
|
new (): HTMLDdaTooltipElement;
|
|
1150
2314
|
};
|
|
1151
2315
|
interface HTMLDdaUiCardElementEventMap {
|
|
1152
|
-
"linkClick":
|
|
2316
|
+
"linkClick": MouseEvent;
|
|
1153
2317
|
}
|
|
1154
2318
|
interface HTMLDdaUiCardElement extends Components.DdaUiCard, HTMLStencilElement {
|
|
1155
2319
|
addEventListener<K extends keyof HTMLDdaUiCardElementEventMap>(type: K, listener: (this: HTMLDdaUiCardElement, ev: DdaUiCardCustomEvent<HTMLDdaUiCardElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1211,360 +2375,843 @@ declare global {
|
|
|
1211
2375
|
declare namespace LocalJSX {
|
|
1212
2376
|
interface DdaAccordion {
|
|
1213
2377
|
/**
|
|
2378
|
+
* Material Symbols icon name shown before the header text, e.g. `info`.
|
|
1214
2379
|
* @default 'info'
|
|
1215
2380
|
*/
|
|
1216
2381
|
"accordion_icon"?: string;
|
|
1217
2382
|
/**
|
|
2383
|
+
* Paragraph text shown in the panel when it is open. Slotted content follows it.
|
|
1218
2384
|
* @default ''
|
|
1219
2385
|
*/
|
|
1220
2386
|
"body_description"?: string;
|
|
2387
|
+
/**
|
|
2388
|
+
* Theme override class for the container, e.g. `light-mode`.
|
|
2389
|
+
*/
|
|
1221
2390
|
"component_mode"?: string;
|
|
1222
2391
|
/**
|
|
2392
|
+
* Extra CSS classes added to the accordion container.
|
|
1223
2393
|
* @default ''
|
|
1224
2394
|
*/
|
|
1225
2395
|
"custom_class"?: string;
|
|
1226
2396
|
/**
|
|
2397
|
+
* Container style: `bg-border` (filled background with border) or `no-border` (no background or border).
|
|
1227
2398
|
* @default 'bg-border'
|
|
1228
2399
|
*/
|
|
1229
2400
|
"design"?: 'bg-border' | 'no-border';
|
|
1230
2401
|
/**
|
|
2402
|
+
* Text shown in the header button that opens and closes the panel.
|
|
1231
2403
|
* @default 'Accordion Header'
|
|
1232
2404
|
*/
|
|
1233
2405
|
"header_text"?: string;
|
|
1234
2406
|
}
|
|
1235
2407
|
interface DdaAlert {
|
|
2408
|
+
/**
|
|
2409
|
+
* `name` of the close button.
|
|
2410
|
+
*/
|
|
1236
2411
|
"button_name"?: string;
|
|
1237
2412
|
/**
|
|
2413
|
+
* Not used by the component; nothing is rendered from this value.
|
|
1238
2414
|
* @default ''
|
|
1239
2415
|
*/
|
|
1240
2416
|
"button_text"?: string;
|
|
2417
|
+
/**
|
|
2418
|
+
* Click handler for the close button, set as a JavaScript property. The alert does not hide itself.
|
|
2419
|
+
*/
|
|
1241
2420
|
"clickHandler"?: (event: MouseEvent) => void;
|
|
2421
|
+
/**
|
|
2422
|
+
* Accessible name of the close button, read by screen readers instead of the icon ligature.
|
|
2423
|
+
* @default 'Close'
|
|
2424
|
+
*/
|
|
2425
|
+
"close_button_label"?: string;
|
|
2426
|
+
/**
|
|
2427
|
+
* Not used by the component; it is not applied to any element.
|
|
2428
|
+
*/
|
|
1242
2429
|
"component_id"?: string;
|
|
2430
|
+
/**
|
|
2431
|
+
* Theme override class for the alert, e.g. `light-mode`.
|
|
2432
|
+
*/
|
|
1243
2433
|
"component_mode"?: string;
|
|
1244
2434
|
/**
|
|
2435
|
+
* Extra CSS classes added to the alert container.
|
|
1245
2436
|
* @default ''
|
|
1246
2437
|
*/
|
|
1247
2438
|
"custom_class"?: string;
|
|
1248
2439
|
/**
|
|
2440
|
+
* Body text shown below the heading.
|
|
1249
2441
|
* @default ''
|
|
1250
2442
|
*/
|
|
1251
2443
|
"description"?: string;
|
|
2444
|
+
/**
|
|
2445
|
+
* Label of the first action link. The link shows only when this is set.
|
|
2446
|
+
*/
|
|
1252
2447
|
"first_button"?: string;
|
|
2448
|
+
/**
|
|
2449
|
+
* `href` of the first action link.
|
|
2450
|
+
*/
|
|
1253
2451
|
"first_link"?: string;
|
|
2452
|
+
/**
|
|
2453
|
+
* Heading level (1–6) of the title; pick the level that fits the page outline.
|
|
2454
|
+
* @default 4
|
|
2455
|
+
*/
|
|
2456
|
+
"heading_level"?: number;
|
|
2457
|
+
/**
|
|
2458
|
+
* Fires when the first action link is clicked. No detail.
|
|
2459
|
+
*/
|
|
1254
2460
|
"onFirstClick"?: (event: DdaAlertCustomEvent<void>) => void;
|
|
2461
|
+
/**
|
|
2462
|
+
* Fires when the second action link is clicked. No detail.
|
|
2463
|
+
*/
|
|
1255
2464
|
"onSecondClick"?: (event: DdaAlertCustomEvent<void>) => void;
|
|
2465
|
+
/**
|
|
2466
|
+
* Label of the second action link. The link shows only when this is set.
|
|
2467
|
+
*/
|
|
1256
2468
|
"second_button"?: string;
|
|
2469
|
+
/**
|
|
2470
|
+
* `href` of the second action link.
|
|
2471
|
+
*/
|
|
1257
2472
|
"second_link"?: string;
|
|
1258
2473
|
/**
|
|
2474
|
+
* Heading text of the alert.
|
|
1259
2475
|
* @default ''
|
|
1260
2476
|
*/
|
|
1261
2477
|
"title_text"?: string;
|
|
1262
2478
|
/**
|
|
2479
|
+
* Style: `primary` uses a tinted background and border in the variation color; `secondary` uses a neutral surface and border.
|
|
1263
2480
|
* @default 'primary'
|
|
1264
2481
|
*/
|
|
1265
2482
|
"type"?: 'primary' | 'secondary';
|
|
1266
2483
|
/**
|
|
2484
|
+
* Color and screen reader urgency: `info`, `warning`, `error` or `success`. `error` uses `role="alert"`; the others use `role="status"`.
|
|
1267
2485
|
* @default 'info'
|
|
1268
2486
|
*/
|
|
1269
2487
|
"variation"?: 'info' | 'warning' | 'error' | 'success';
|
|
1270
2488
|
}
|
|
1271
2489
|
interface DdaAttachFile {
|
|
1272
2490
|
/**
|
|
2491
|
+
* Accessible name of the file input. Not rendered when empty.
|
|
1273
2492
|
* @default ''
|
|
1274
2493
|
*/
|
|
1275
2494
|
"aria_label"?: string;
|
|
1276
2495
|
/**
|
|
2496
|
+
* Accessible name of the remove button shown after a file is chosen, e.g. `Remove file`.
|
|
1277
2497
|
* @default ''
|
|
1278
2498
|
*/
|
|
1279
2499
|
"button_aria_label"?: string;
|
|
2500
|
+
/**
|
|
2501
|
+
* `id` of the remove button shown after a file is chosen.
|
|
2502
|
+
*/
|
|
1280
2503
|
"button_id"?: string;
|
|
2504
|
+
/**
|
|
2505
|
+
* `name` of the remove button shown after a file is chosen.
|
|
2506
|
+
*/
|
|
1281
2507
|
"button_name"?: string;
|
|
2508
|
+
/**
|
|
2509
|
+
* Theme override class for the field, e.g. `light-mode`.
|
|
2510
|
+
*/
|
|
1282
2511
|
"component_mode"?: string;
|
|
1283
2512
|
/**
|
|
2513
|
+
* Extra CSS classes added to the field container.
|
|
1284
2514
|
* @default ''
|
|
1285
2515
|
*/
|
|
1286
2516
|
"custom_class"?: string;
|
|
2517
|
+
/**
|
|
2518
|
+
* Error text shown below the field. Also sets `aria-invalid="true"` on the file input.
|
|
2519
|
+
*/
|
|
1287
2520
|
"error_message"?: string;
|
|
2521
|
+
/**
|
|
2522
|
+
* Helper text shown below the field. Linked by `aria-describedby`.
|
|
2523
|
+
*/
|
|
1288
2524
|
"helper_text"?: string;
|
|
2525
|
+
/**
|
|
2526
|
+
* `id` of the file input. Also used to link the label, helper text and error message. Optional: an id is generated when it is not set.
|
|
2527
|
+
*/
|
|
1289
2528
|
"input_id"?: string;
|
|
2529
|
+
/**
|
|
2530
|
+
* `name` of the file input.
|
|
2531
|
+
*/
|
|
1290
2532
|
"input_name"?: string;
|
|
2533
|
+
/**
|
|
2534
|
+
* Adds the class `dda-input-<value>`. `disabled` gives the disabled look only; it does not disable the file input.
|
|
2535
|
+
*/
|
|
1291
2536
|
"input_type"?: string;
|
|
2537
|
+
/**
|
|
2538
|
+
* Label text shown above the field. Linked to the file input through `input_id` (or a generated id).
|
|
2539
|
+
*/
|
|
1292
2540
|
"label"?: string;
|
|
2541
|
+
/**
|
|
2542
|
+
* Size: `default` or `small`.
|
|
2543
|
+
*/
|
|
1293
2544
|
"size"?: string;
|
|
2545
|
+
/**
|
|
2546
|
+
* Validation state: `error` applies the error colors.
|
|
2547
|
+
*/
|
|
1294
2548
|
"validation_type"?: string;
|
|
1295
2549
|
}
|
|
1296
2550
|
interface DdaAvatar {
|
|
2551
|
+
/**
|
|
2552
|
+
* Accessible name of the avatar button and of each option button. The avatar button falls back to `Avatar options`.
|
|
2553
|
+
*/
|
|
1297
2554
|
"aria_label"?: string;
|
|
2555
|
+
/**
|
|
2556
|
+
* `id` applied to each option button in the dropdown.
|
|
2557
|
+
*/
|
|
1298
2558
|
"button_id"?: string;
|
|
2559
|
+
/**
|
|
2560
|
+
* `name` of each option button in the dropdown. Also added as a CSS class on the avatar container.
|
|
2561
|
+
*/
|
|
1299
2562
|
"button_name"?: string;
|
|
2563
|
+
/**
|
|
2564
|
+
* Theme override class for the avatar, e.g. `light-mode`.
|
|
2565
|
+
*/
|
|
1300
2566
|
"component_mode"?: string;
|
|
1301
2567
|
/**
|
|
2568
|
+
* Extra CSS classes added to the avatar container.
|
|
1302
2569
|
* @default ''
|
|
1303
2570
|
*/
|
|
1304
2571
|
"custom_class"?: string;
|
|
1305
2572
|
/**
|
|
2573
|
+
* Badge: `default` (none), `status` (green dot), `verified` (check badge), `notification` (count from `notification_number`). `story` has no style yet.
|
|
1306
2574
|
* @default 'default'
|
|
1307
2575
|
*/
|
|
1308
2576
|
"design"?: 'default' | 'status' | 'verified' | 'story' | 'notification';
|
|
1309
2577
|
/**
|
|
2578
|
+
* CSS class of the icon font used when `type` is `icon`, e.g. `material-icons`. The icon glyph is always `sentiment_satisfied`.
|
|
1310
2579
|
* @default 'material-icons'
|
|
1311
2580
|
*/
|
|
1312
2581
|
"icon"?: string;
|
|
1313
2582
|
/**
|
|
2583
|
+
* Count shown in the badge when `design` is `notification`. Hidden at sizes `xs` and `sm`.
|
|
1314
2584
|
* @default 0
|
|
1315
2585
|
*/
|
|
1316
2586
|
"notification_number"?: number;
|
|
2587
|
+
/**
|
|
2588
|
+
* Emitted every time the user picks an option from the dropdown, also when it is already selected. `detail.value` is the option.
|
|
2589
|
+
*/
|
|
2590
|
+
"onOptionSelect"?: (event: DdaAvatarCustomEvent<{ value: string }>) => void;
|
|
2591
|
+
/**
|
|
2592
|
+
* Dropdown options as a JSON array of strings, e.g. `["Profile","Sign out"]`. When set, the avatar becomes a button that opens the list.
|
|
2593
|
+
*/
|
|
1317
2594
|
"options"?: string;
|
|
1318
2595
|
/**
|
|
2596
|
+
* Shape: `circle` or `square` (rounded corners).
|
|
1319
2597
|
* @default 'circle'
|
|
1320
2598
|
*/
|
|
1321
2599
|
"rounded"?: 'square' | 'circle';
|
|
2600
|
+
/**
|
|
2601
|
+
* The selected option. Matches one entry of `options`; updated when the user picks an option. Mutable: the component assigns it.
|
|
2602
|
+
*/
|
|
1322
2603
|
"selected"?: string;
|
|
1323
2604
|
/**
|
|
2605
|
+
* Size: `xs` (24px), `sm` (32px), `md` (40px), `lg` (48px), `xl` (56px) or `xxl` (64px).
|
|
1324
2606
|
* @default 'md'
|
|
1325
2607
|
*/
|
|
1326
2608
|
"size"?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
1327
2609
|
/**
|
|
2610
|
+
* Image URL shown when `type` is `photo`.
|
|
1328
2611
|
* @default ''
|
|
1329
2612
|
*/
|
|
1330
2613
|
"src"?: string;
|
|
1331
2614
|
/**
|
|
2615
|
+
* Initials shown when `type` is `text`.
|
|
1332
2616
|
* @default 'AB'
|
|
1333
2617
|
*/
|
|
1334
2618
|
"text"?: string;
|
|
1335
2619
|
/**
|
|
2620
|
+
* Content: `photo` shows the `src` image, `icon` shows a smiley icon, `text` shows `text` as initials.
|
|
1336
2621
|
* @default 'photo'
|
|
1337
2622
|
*/
|
|
1338
2623
|
"type"?: 'photo' | 'icon' | 'text';
|
|
1339
2624
|
}
|
|
1340
2625
|
interface DdaBanner {
|
|
2626
|
+
/**
|
|
2627
|
+
* Accessible name of the scrollable slide region that keyboard users focus to scroll.
|
|
2628
|
+
* @default 'Slides'
|
|
2629
|
+
*/
|
|
2630
|
+
"aria_label"?: string;
|
|
2631
|
+
/**
|
|
2632
|
+
* CSS height of each slide image, e.g. `220px`.
|
|
2633
|
+
*/
|
|
1341
2634
|
"slider_height"?: string;
|
|
2635
|
+
/**
|
|
2636
|
+
* CSS width of each slide image, e.g. `360px`.
|
|
2637
|
+
*/
|
|
1342
2638
|
"slider_width"?: string;
|
|
2639
|
+
/**
|
|
2640
|
+
* Slide images. JSON array of `{ image, title }`; `image` is the image URL and `title` its alternative text. Read once, when the component loads.
|
|
2641
|
+
*/
|
|
1343
2642
|
"slides"?: string;
|
|
1344
2643
|
}
|
|
1345
2644
|
interface DdaBreadcrumb {
|
|
1346
|
-
"component_mode"?: string;
|
|
1347
2645
|
/**
|
|
1348
|
-
*
|
|
2646
|
+
* The items, as an array or a JSON string of `{ text, icon?, url? }` objects. The last item is the current page. The `data-breadcrumbs` attribute is still read when this is not set.
|
|
2647
|
+
*/
|
|
2648
|
+
"breadcrumbs"?: string | BreadcrumbItem[];
|
|
2649
|
+
/**
|
|
2650
|
+
* Theme override class on the wrapper, e.g. `light-mode`.
|
|
2651
|
+
*/
|
|
2652
|
+
"component_mode"?: string;
|
|
2653
|
+
/**
|
|
2654
|
+
* Extra CSS classes added to the inner `<nav>`.
|
|
2655
|
+
* @default ''
|
|
1349
2656
|
*/
|
|
1350
2657
|
"custom_class"?: string;
|
|
1351
2658
|
/**
|
|
2659
|
+
* What each item shows: `text` (label only), `icon-text` (icon and label) or `icon` (icon only).
|
|
1352
2660
|
* @default 'text'
|
|
1353
2661
|
*/
|
|
1354
2662
|
"design"?: 'text' | 'icon-text' | 'icon';
|
|
1355
2663
|
/**
|
|
2664
|
+
* Material Symbols icon shown between items: `chevron_right` or `pen_size_2` (a slash).
|
|
1356
2665
|
* @default 'chevron_right'
|
|
1357
2666
|
*/
|
|
1358
2667
|
"separator"?: 'chevron_right' | 'pen_size_2';
|
|
1359
2668
|
}
|
|
1360
2669
|
interface DdaButton {
|
|
1361
2670
|
/**
|
|
2671
|
+
* Accessible name. Required when the button shows only an icon.
|
|
1362
2672
|
* @default ''
|
|
1363
2673
|
*/
|
|
1364
2674
|
"aria_label"?: string;
|
|
1365
2675
|
/**
|
|
2676
|
+
* Color variant, e.g. `default-primary`, `default-secondary`, `error-primary`, `onsurface-link`.
|
|
1366
2677
|
* @default 'primary'
|
|
1367
2678
|
*/
|
|
1368
2679
|
"button_color"?: string;
|
|
2680
|
+
/**
|
|
2681
|
+
* `id` of the inner `<button>`.
|
|
2682
|
+
*/
|
|
1369
2683
|
"button_id"?: string;
|
|
1370
2684
|
/**
|
|
2685
|
+
* `name` of the inner `<button>`, submitted with its form.
|
|
1371
2686
|
* @default ''
|
|
1372
2687
|
*/
|
|
1373
2688
|
"button_name"?: string;
|
|
1374
2689
|
/**
|
|
2690
|
+
* Shape: `default` or `circle`.
|
|
1375
2691
|
* @default ''
|
|
1376
2692
|
*/
|
|
1377
2693
|
"button_shape"?: string;
|
|
1378
2694
|
/**
|
|
1379
|
-
*
|
|
2695
|
+
* Click handler, set as a JavaScript property. You can also listen for the native `click` event.
|
|
1380
2696
|
*/
|
|
1381
2697
|
"clickHandler"?: (event: MouseEvent) => void;
|
|
2698
|
+
/**
|
|
2699
|
+
* Theme override class for the button, e.g. `light-mode`.
|
|
2700
|
+
*/
|
|
1382
2701
|
"component_mode"?: string;
|
|
1383
2702
|
/**
|
|
2703
|
+
* Extra CSS classes added to the inner `<button>`.
|
|
1384
2704
|
* @default ''
|
|
1385
2705
|
*/
|
|
1386
2706
|
"custom_class"?: string;
|
|
1387
2707
|
/**
|
|
1388
|
-
*
|
|
2708
|
+
* Disables the button.
|
|
1389
2709
|
* @default false
|
|
1390
2710
|
*/
|
|
1391
2711
|
"disabled"?: boolean;
|
|
1392
2712
|
/**
|
|
2713
|
+
* Material Symbols icon name shown after the label, e.g. `arrow_forward`.
|
|
1393
2714
|
* @default ''
|
|
1394
2715
|
*/
|
|
1395
2716
|
"end_icon"?: string;
|
|
2717
|
+
/**
|
|
2718
|
+
* Gap between icon and label, as a spacing step: 1–6, 8, 10, 12 or 16.
|
|
2719
|
+
*/
|
|
1396
2720
|
"gap"?: number;
|
|
1397
2721
|
/**
|
|
2722
|
+
* Shape of an icon-only button: `default` or `circle`.
|
|
1398
2723
|
* @default ''
|
|
1399
2724
|
*/
|
|
1400
2725
|
"icon_button_shape"?: string;
|
|
2726
|
+
/**
|
|
2727
|
+
* Size: `sm`, `md`, `lg` or `xl`.
|
|
2728
|
+
*/
|
|
1401
2729
|
"size"?: string;
|
|
1402
2730
|
/**
|
|
1403
|
-
*
|
|
2731
|
+
* Material Symbols icon name shown before the label, e.g. `arrow_back`.
|
|
1404
2732
|
* @default ''
|
|
1405
2733
|
*/
|
|
1406
2734
|
"start_icon"?: string;
|
|
1407
2735
|
/**
|
|
1408
|
-
*
|
|
2736
|
+
* Native button type: `button`, `submit` or `reset`.
|
|
1409
2737
|
* @default 'button'
|
|
1410
2738
|
*/
|
|
1411
2739
|
"type"?: string;
|
|
1412
2740
|
}
|
|
1413
2741
|
interface DdaCheckbox {
|
|
2742
|
+
/**
|
|
2743
|
+
* Accessible name of the inner checkbox input.
|
|
2744
|
+
*/
|
|
1414
2745
|
"aria_label"?: string;
|
|
2746
|
+
/**
|
|
2747
|
+
* Status: `disabled` shows the disabled style and blocks pointer clicks.
|
|
2748
|
+
*/
|
|
1415
2749
|
"checkbox_status"?: string;
|
|
2750
|
+
/**
|
|
2751
|
+
* Checked state of the inner input. Read the current state from the input or its `change` event.
|
|
2752
|
+
*/
|
|
1416
2753
|
"checked"?: boolean;
|
|
2754
|
+
/**
|
|
2755
|
+
* Theme override class for the checkbox, e.g. `light-mode`.
|
|
2756
|
+
*/
|
|
1417
2757
|
"component_mode"?: string;
|
|
1418
2758
|
/**
|
|
2759
|
+
* Extra CSS classes added to the checkbox container.
|
|
1419
2760
|
* @default ''
|
|
1420
2761
|
*/
|
|
1421
2762
|
"custom_class"?: string;
|
|
2763
|
+
/**
|
|
2764
|
+
* `name` of the inner checkbox input.
|
|
2765
|
+
*/
|
|
1422
2766
|
"group_name"?: string;
|
|
2767
|
+
/**
|
|
2768
|
+
* `id` of the inner checkbox input. The label points to it, so set a unique value to make the label clickable.
|
|
2769
|
+
*/
|
|
1423
2770
|
"input_id"?: string;
|
|
2771
|
+
/**
|
|
2772
|
+
* Size: `sm`, `md` or `lg`.
|
|
2773
|
+
*/
|
|
1424
2774
|
"size"?: string;
|
|
2775
|
+
/**
|
|
2776
|
+
* Box shape: `square` or `rounded`.
|
|
2777
|
+
*/
|
|
1425
2778
|
"style_type"?: string;
|
|
2779
|
+
/**
|
|
2780
|
+
* Secondary text shown under the title.
|
|
2781
|
+
*/
|
|
1426
2782
|
"supporting"?: string;
|
|
2783
|
+
/**
|
|
2784
|
+
* Label shown next to the checkbox.
|
|
2785
|
+
*/
|
|
1427
2786
|
"title_text"?: string;
|
|
1428
2787
|
}
|
|
1429
2788
|
interface DdaChip {
|
|
1430
2789
|
/**
|
|
2790
|
+
* Color: `grey`, `primary`, `green`, `yellow`, `red` or `purple`. Other values, including the default, use the base primary style.
|
|
1431
2791
|
* @default 'success'
|
|
1432
2792
|
*/
|
|
1433
2793
|
"bg_color"?: string;
|
|
2794
|
+
/**
|
|
2795
|
+
* Click handler for the close button, set as a JavaScript property. The chip does not remove itself.
|
|
2796
|
+
*/
|
|
1434
2797
|
"clickHandler"?: (event: MouseEvent) => void;
|
|
2798
|
+
/**
|
|
2799
|
+
* Accessible name of the icon-only close button.
|
|
2800
|
+
* @default 'Remove'
|
|
2801
|
+
*/
|
|
2802
|
+
"close_button_label"?: string;
|
|
2803
|
+
/**
|
|
2804
|
+
* Theme override class for the chip, e.g. `light-mode`.
|
|
2805
|
+
*/
|
|
1435
2806
|
"component_mode"?: string;
|
|
2807
|
+
/**
|
|
2808
|
+
* Extra CSS classes added to the chip container.
|
|
2809
|
+
*/
|
|
1436
2810
|
"custom_class"?: string;
|
|
2811
|
+
/**
|
|
2812
|
+
* Material Symbols icon name shown before the label, e.g. `check_circle`.
|
|
2813
|
+
*/
|
|
1437
2814
|
"icon"?: string;
|
|
1438
2815
|
/**
|
|
2816
|
+
* Corner radius: `sm`, `md`, `lg` or `circle`.
|
|
1439
2817
|
* @default ''
|
|
1440
2818
|
*/
|
|
1441
2819
|
"rounded"?: string;
|
|
1442
2820
|
/**
|
|
2821
|
+
* Shows a close button after the label. Its accessible name comes from `close_button_label`.
|
|
1443
2822
|
* @default false
|
|
1444
2823
|
*/
|
|
1445
2824
|
"show_close_icon"?: boolean;
|
|
2825
|
+
/**
|
|
2826
|
+
* Height: `sm` (24px), `md` (26px) or `lg` (32px).
|
|
2827
|
+
*/
|
|
1446
2828
|
"size"?: string;
|
|
1447
2829
|
}
|
|
1448
2830
|
interface DdaCreditCard {
|
|
2831
|
+
/**
|
|
2832
|
+
* Balance text shown under the fixed "Current Balance" label, e.g. `AED 5,750.20`.
|
|
2833
|
+
*/
|
|
1449
2834
|
"balance"?: string;
|
|
2835
|
+
/**
|
|
2836
|
+
* Card number. Only the last four characters are shown, after `****`. When not set, only `****` is shown.
|
|
2837
|
+
*/
|
|
1450
2838
|
"card_number"?: string;
|
|
2839
|
+
/**
|
|
2840
|
+
* URL of the card type image (e.g. a card brand logo) shown at the bottom end of the card. When not set, no image is rendered.
|
|
2841
|
+
*/
|
|
1451
2842
|
"card_type"?: string;
|
|
2843
|
+
/**
|
|
2844
|
+
* Theme override class for the card, e.g. `light-mode`.
|
|
2845
|
+
*/
|
|
1452
2846
|
"component_mode"?: string;
|
|
1453
2847
|
/**
|
|
2848
|
+
* Extra CSS classes added to the card container.
|
|
1454
2849
|
* @default ''
|
|
1455
2850
|
*/
|
|
1456
2851
|
"custom_class"?: string;
|
|
2852
|
+
/**
|
|
2853
|
+
* Background design: `default`, `green` or `dark`.
|
|
2854
|
+
*/
|
|
1457
2855
|
"design"?: string;
|
|
2856
|
+
/**
|
|
2857
|
+
* Card holder name.
|
|
2858
|
+
*/
|
|
1458
2859
|
"name"?: string;
|
|
1459
2860
|
}
|
|
1460
2861
|
interface DdaCreditcardField {
|
|
2862
|
+
/**
|
|
2863
|
+
* Accessible name of the input. Use it when there is no visible `label`.
|
|
2864
|
+
*/
|
|
1461
2865
|
"aria_label"?: string;
|
|
1462
2866
|
/**
|
|
2867
|
+
* `autocomplete` token of the input. Defaults to `cc-number`.
|
|
1463
2868
|
* @default 'cc-number'
|
|
1464
2869
|
*/
|
|
1465
2870
|
"autocomplete"?: string;
|
|
2871
|
+
/**
|
|
2872
|
+
* URL of an image shown at the start of the input, e.g. a card brand logo.
|
|
2873
|
+
*/
|
|
1466
2874
|
"card_icon"?: string;
|
|
2875
|
+
/**
|
|
2876
|
+
* Theme override class for the field, e.g. `light-mode`.
|
|
2877
|
+
*/
|
|
1467
2878
|
"component_mode"?: string;
|
|
1468
2879
|
/**
|
|
2880
|
+
* Extra CSS classes added to the field container.
|
|
1469
2881
|
* @default ''
|
|
1470
2882
|
*/
|
|
1471
2883
|
"custom_class"?: string;
|
|
1472
2884
|
/**
|
|
2885
|
+
* Disables the input and applies the disabled look.
|
|
1473
2886
|
* @default false
|
|
1474
2887
|
*/
|
|
1475
2888
|
"disabled"?: boolean;
|
|
2889
|
+
/**
|
|
2890
|
+
* Error text shown below the input. Also sets `aria-invalid="true"` on the input.
|
|
2891
|
+
*/
|
|
1476
2892
|
"error_message"?: string;
|
|
2893
|
+
/**
|
|
2894
|
+
* Helper text shown below the input. Linked by `aria-describedby`.
|
|
2895
|
+
*/
|
|
1477
2896
|
"helper_text"?: string;
|
|
2897
|
+
/**
|
|
2898
|
+
* `id` of the inner `<input>`. Also used to link the label, helper text and error message. Optional: an id is generated when it is not set.
|
|
2899
|
+
*/
|
|
1478
2900
|
"input_id"?: string;
|
|
2901
|
+
/**
|
|
2902
|
+
* `name` of the inner `<input>`, submitted with its form.
|
|
2903
|
+
*/
|
|
1479
2904
|
"input_name"?: string;
|
|
2905
|
+
/**
|
|
2906
|
+
* Adds the class `dda-input-<value>`. `disabled` gives only the disabled look; use `disabled` to disable the input.
|
|
2907
|
+
*/
|
|
1480
2908
|
"input_type"?: string;
|
|
2909
|
+
/**
|
|
2910
|
+
* Label text shown above the input. Linked to the input through `input_id` (or a generated id).
|
|
2911
|
+
*/
|
|
1481
2912
|
"label"?: string;
|
|
2913
|
+
/**
|
|
2914
|
+
* Emitted when user input changes `value`, after the component removes characters other than digits and `-`. `detail.value` is the new `value`.
|
|
2915
|
+
*/
|
|
2916
|
+
"onValueChange"?: (event: DdaCreditcardFieldCustomEvent<{ value: string }>) => void;
|
|
2917
|
+
/**
|
|
2918
|
+
* Placeholder text of the input, e.g. `0000 - 0000 - 0000 - 0000`.
|
|
2919
|
+
*/
|
|
1482
2920
|
"placeholder"?: string;
|
|
1483
2921
|
/**
|
|
2922
|
+
* Sets the input `maxlength`: 25 characters when `false` (16 digits with separators), 100 when `true`.
|
|
1484
2923
|
* @default false
|
|
1485
2924
|
*/
|
|
1486
2925
|
"restrict_input"?: boolean;
|
|
2926
|
+
/**
|
|
2927
|
+
* Size: `default` or `small`.
|
|
2928
|
+
*/
|
|
1487
2929
|
"size"?: string;
|
|
2930
|
+
/**
|
|
2931
|
+
* Validation state: `error` applies the error colors.
|
|
2932
|
+
*/
|
|
1488
2933
|
"validation_type"?: string;
|
|
1489
2934
|
/**
|
|
2935
|
+
* Card number. Shown as groups of four digits separated by ` - `; the component updates it as the user types. Mutable: the component assigns it.
|
|
1490
2936
|
* @default ''
|
|
1491
2937
|
*/
|
|
1492
2938
|
"value"?: string;
|
|
1493
2939
|
}
|
|
1494
2940
|
interface DdaDropdown {
|
|
2941
|
+
/**
|
|
2942
|
+
* Accessible name of the dropdown button. Set it when `icon_mode` is on.
|
|
2943
|
+
*/
|
|
1495
2944
|
"aria_label"?: string;
|
|
2945
|
+
/**
|
|
2946
|
+
* `name` of the dropdown button that opens the list.
|
|
2947
|
+
*/
|
|
1496
2948
|
"arrow_button_name"?: string;
|
|
2949
|
+
/**
|
|
2950
|
+
* `id` of the dropdown button. The label id is built from it. When it is not set, the component generates a unique id.
|
|
2951
|
+
*/
|
|
1497
2952
|
"button_id"?: string;
|
|
2953
|
+
/**
|
|
2954
|
+
* Theme override class for the dropdown, e.g. `light-mode`.
|
|
2955
|
+
*/
|
|
1498
2956
|
"component_mode"?: string;
|
|
1499
2957
|
/**
|
|
2958
|
+
* Extra CSS classes added to the dropdown container.
|
|
1500
2959
|
* @default ''
|
|
1501
2960
|
*/
|
|
1502
2961
|
"custom_class"?: string;
|
|
1503
2962
|
/**
|
|
2963
|
+
* Disables the dropdown: the list does not open and options cannot be picked.
|
|
1504
2964
|
* @default false
|
|
1505
2965
|
*/
|
|
1506
2966
|
"disabled"?: boolean;
|
|
2967
|
+
/**
|
|
2968
|
+
* `name` of each option button in the list.
|
|
2969
|
+
*/
|
|
1507
2970
|
"dropdown_button_name"?: string;
|
|
2971
|
+
/**
|
|
2972
|
+
* Error text shown under the dropdown.
|
|
2973
|
+
*/
|
|
1508
2974
|
"error"?: string;
|
|
2975
|
+
/**
|
|
2976
|
+
* Helper text shown under the dropdown.
|
|
2977
|
+
*/
|
|
1509
2978
|
"helper_text"?: string;
|
|
1510
2979
|
/**
|
|
2980
|
+
* Shows only the three-dots icon, without the selected text and arrow.
|
|
1511
2981
|
* @default false
|
|
1512
2982
|
*/
|
|
1513
2983
|
"icon_mode"?: boolean;
|
|
2984
|
+
/**
|
|
2985
|
+
* Label shown above the dropdown. The dropdown button is named by the label and its current text.
|
|
2986
|
+
*/
|
|
1514
2987
|
"label"?: string;
|
|
2988
|
+
/**
|
|
2989
|
+
* Emitted every time the user picks an option, also when it is already selected, so the dropdown works as an action menu. `detail.value` is the option.
|
|
2990
|
+
*/
|
|
2991
|
+
"onOptionSelect"?: (event: DdaDropdownCustomEvent<{ value: string }>) => void;
|
|
2992
|
+
/**
|
|
2993
|
+
* Options as a JSON array string, e.g. `'["Edit","Download","Delete"]'`. Invalid JSON shows "No options available".
|
|
2994
|
+
*/
|
|
1515
2995
|
"options"?: string;
|
|
2996
|
+
/**
|
|
2997
|
+
* The selected option. Must match an entry in `options`. The button shows "Select an option" when it is empty. Updated when the user picks an option. Mutable: the component assigns it.
|
|
2998
|
+
*/
|
|
1516
2999
|
"selected"?: string;
|
|
1517
3000
|
/**
|
|
3001
|
+
* Size: `medium` or `small`.
|
|
1518
3002
|
* @default 'medium'
|
|
1519
3003
|
*/
|
|
1520
3004
|
"size"?: 'small' | 'medium';
|
|
1521
3005
|
/**
|
|
3006
|
+
* Accessible name of the dropdown button in `icon_mode` when `aria_label` and `label` are not set.
|
|
3007
|
+
* @default 'Show options'
|
|
3008
|
+
*/
|
|
3009
|
+
"toggle_button_label"?: string;
|
|
3010
|
+
/**
|
|
3011
|
+
* Button background: `bg-white` (field style) or `bg-transparent` (no border, background or padding).
|
|
1522
3012
|
* @default 'bg-white'
|
|
1523
3013
|
*/
|
|
1524
3014
|
"type"?: 'bg-transparent' | 'bg-white';
|
|
1525
3015
|
}
|
|
1526
3016
|
interface DdaFooter {
|
|
3017
|
+
/**
|
|
3018
|
+
* Copyright text in the bottom row.
|
|
3019
|
+
*/
|
|
1527
3020
|
"copyrightText"?: string;
|
|
3021
|
+
/**
|
|
3022
|
+
* Paragraph under `footerTitle`.
|
|
3023
|
+
*/
|
|
1528
3024
|
"description"?: string;
|
|
3025
|
+
/**
|
|
3026
|
+
* Link columns. JSON array of `{ title, links: [{ label, href }] }`.
|
|
3027
|
+
*/
|
|
1529
3028
|
"footerSections"?: string;
|
|
3029
|
+
/**
|
|
3030
|
+
* Heading of the call-to-action area at the top of the footer.
|
|
3031
|
+
*/
|
|
1530
3032
|
"footerTitle"?: string;
|
|
3033
|
+
/**
|
|
3034
|
+
* Heading level (1 to 6) of `footerTitle`, to fit the page's heading order. Default: `4`.
|
|
3035
|
+
* @default 4
|
|
3036
|
+
*/
|
|
3037
|
+
"heading_level"?: number;
|
|
3038
|
+
/**
|
|
3039
|
+
* Label of the tertiary (Login) button. The button has no link or action.
|
|
3040
|
+
*/
|
|
1531
3041
|
"loginButtonText"?: string;
|
|
3042
|
+
/**
|
|
3043
|
+
* Alternative text for the footer logo.
|
|
3044
|
+
*/
|
|
1532
3045
|
"logoAlt"?: string;
|
|
3046
|
+
/**
|
|
3047
|
+
* Short text shown under the footer logo. Nothing is shown when it is not set.
|
|
3048
|
+
*/
|
|
3049
|
+
"logoDescription"?: string;
|
|
3050
|
+
/**
|
|
3051
|
+
* Image URL of the footer logo.
|
|
3052
|
+
*/
|
|
1533
3053
|
"logoSrc"?: string;
|
|
3054
|
+
/**
|
|
3055
|
+
* Label of the primary (Sign up) button. The button has no link or action.
|
|
3056
|
+
*/
|
|
1534
3057
|
"signUpButtonText"?: string;
|
|
3058
|
+
/**
|
|
3059
|
+
* Social links in the bottom row. JSON array of `{ href, src, alt }`, where `src` is an image URL.
|
|
3060
|
+
*/
|
|
1535
3061
|
"socialIcons"?: string;
|
|
1536
3062
|
}
|
|
1537
3063
|
interface DdaHeader {
|
|
3064
|
+
/**
|
|
3065
|
+
* `name` attribute of the accessibility button in the side menu.
|
|
3066
|
+
*/
|
|
1538
3067
|
"accessibility_button_name"?: string;
|
|
3068
|
+
/**
|
|
3069
|
+
* `name` attribute of the buttons that close the accessibility panel.
|
|
3070
|
+
*/
|
|
1539
3071
|
"close_accessibility_button_name"?: string;
|
|
3072
|
+
/**
|
|
3073
|
+
* `name` attribute of the button that closes the side menu.
|
|
3074
|
+
*/
|
|
1540
3075
|
"close_menu_button_name"?: string;
|
|
3076
|
+
/**
|
|
3077
|
+
* Not used: the current markup does not render an element with this name.
|
|
3078
|
+
*/
|
|
1541
3079
|
"close_sidebar_button_name"?: string;
|
|
3080
|
+
/**
|
|
3081
|
+
* Alternative text for the first logo.
|
|
3082
|
+
*/
|
|
1542
3083
|
"firstLogoAlt"?: string;
|
|
3084
|
+
/**
|
|
3085
|
+
* Link URL of the first logo in the header and the side menu. Default: `/`.
|
|
3086
|
+
* @default '/'
|
|
3087
|
+
*/
|
|
3088
|
+
"firstLogoHref"?: string;
|
|
3089
|
+
/**
|
|
3090
|
+
* Image URL of the first (government) logo, on the left of the header and in the side menu.
|
|
3091
|
+
*/
|
|
1543
3092
|
"firstLogoSrc"?: string;
|
|
3093
|
+
/**
|
|
3094
|
+
* Image URL of the white first logo, shown in dark theme and on a transparent header (`<body class="transparent">`). Falls back to `firstLogoSrc`.
|
|
3095
|
+
*/
|
|
1544
3096
|
"firstLogoWhiteSrc"?: string;
|
|
3097
|
+
/**
|
|
3098
|
+
* `name` attribute of the hamburger menu button.
|
|
3099
|
+
*/
|
|
1545
3100
|
"hamburger_menu_button_name"?: string;
|
|
3101
|
+
/**
|
|
3102
|
+
* `name` attribute of the language button in the side menu.
|
|
3103
|
+
*/
|
|
1546
3104
|
"language_button_name"?: string;
|
|
3105
|
+
/**
|
|
3106
|
+
* `lang` attribute of the language buttons, the language of `language_text`. Default: `ar`.
|
|
3107
|
+
* @default 'ar'
|
|
3108
|
+
*/
|
|
3109
|
+
"language_lang"?: string;
|
|
3110
|
+
/**
|
|
3111
|
+
* Label of the language buttons in the desktop toolbar and the side menu. Default: `العربية`.
|
|
3112
|
+
*/
|
|
1547
3113
|
"language_text"?: string;
|
|
3114
|
+
/**
|
|
3115
|
+
* Material Symbols icon name of the Login link in the side menu. Default: `sentiment_satisfied`.
|
|
3116
|
+
*/
|
|
1548
3117
|
"loginIcon"?: string;
|
|
3118
|
+
/**
|
|
3119
|
+
* URL of the Login link in the toolbar and the side menu.
|
|
3120
|
+
*/
|
|
1549
3121
|
"loginLink"?: string;
|
|
3122
|
+
/**
|
|
3123
|
+
* Label of the Login link in the side menu. Default: `Login`.
|
|
3124
|
+
*/
|
|
1550
3125
|
"loginText"?: string;
|
|
3126
|
+
/**
|
|
3127
|
+
* Accessible name of the hamburger menu button (visually hidden text). Default: `Menu`.
|
|
3128
|
+
* @default 'Menu'
|
|
3129
|
+
*/
|
|
3130
|
+
"menu_button_label"?: string;
|
|
3131
|
+
/**
|
|
3132
|
+
* Emitted when the user clicks the `A` (default text size) button in the accessibility panel.
|
|
3133
|
+
*/
|
|
1551
3134
|
"onBaseTextSize"?: (event: DdaHeaderCustomEvent<void>) => void;
|
|
3135
|
+
/**
|
|
3136
|
+
* Emitted when the user selects the Colours Blind contrast option.
|
|
3137
|
+
*/
|
|
1552
3138
|
"onBlindContrast"?: (event: DdaHeaderCustomEvent<void>) => void;
|
|
3139
|
+
/**
|
|
3140
|
+
* Emitted when the user selects the Green Weakness contrast option.
|
|
3141
|
+
*/
|
|
1553
3142
|
"onGreenContrast"?: (event: DdaHeaderCustomEvent<void>) => void;
|
|
3143
|
+
/**
|
|
3144
|
+
* Emitted when the user clicks the language button.
|
|
3145
|
+
*/
|
|
1554
3146
|
"onLanguageSwitch"?: (event: DdaHeaderCustomEvent<void>) => void;
|
|
3147
|
+
/**
|
|
3148
|
+
* Emitted when the user clicks the `A+` (larger text) button in the accessibility panel.
|
|
3149
|
+
*/
|
|
1555
3150
|
"onLgTextSize"?: (event: DdaHeaderCustomEvent<void>) => void;
|
|
3151
|
+
/**
|
|
3152
|
+
* Emitted when the user selects the Normal contrast option.
|
|
3153
|
+
*/
|
|
1556
3154
|
"onNormalContrast"?: (event: DdaHeaderCustomEvent<void>) => void;
|
|
3155
|
+
/**
|
|
3156
|
+
* Emitted when the user selects the Red Weakness contrast option.
|
|
3157
|
+
*/
|
|
1557
3158
|
"onRedContrast"?: (event: DdaHeaderCustomEvent<void>) => void;
|
|
3159
|
+
/**
|
|
3160
|
+
* Emitted when a non-empty search is submitted. Call `preventDefault()` to stop the browser navigating to `search_action`, for example to route inside a single-page app.
|
|
3161
|
+
*/
|
|
3162
|
+
"onSearchSubmit"?: (event: DdaHeaderCustomEvent<{ query: string }>) => void;
|
|
3163
|
+
/**
|
|
3164
|
+
* Emitted when the user clicks the `A-` (smaller text) button in the accessibility panel.
|
|
3165
|
+
*/
|
|
1558
3166
|
"onSmTextSize"?: (event: DdaHeaderCustomEvent<void>) => void;
|
|
3167
|
+
/**
|
|
3168
|
+
* Main navigation links. JSON array of `{ label, href, menuLabel, subMenu }`; `subMenu` items are `{ title, description, icon, href }` and open a mega menu.
|
|
3169
|
+
*/
|
|
1559
3170
|
"quickLinks"?: string;
|
|
3171
|
+
/**
|
|
3172
|
+
* URL of the ReadSpeaker "listen" link in the accessibility panel.
|
|
3173
|
+
*/
|
|
1560
3174
|
"readSpeakerLink"?: string;
|
|
3175
|
+
/**
|
|
3176
|
+
* Placeholder and accessible label of the search input. Default: `Search`.
|
|
3177
|
+
*/
|
|
1561
3178
|
"searchText"?: string;
|
|
3179
|
+
/**
|
|
3180
|
+
* Results page URL. When set, a search does a GET to this URL with the query in `search_input_name` (default `q`).
|
|
3181
|
+
*/
|
|
3182
|
+
"search_action"?: string;
|
|
3183
|
+
/**
|
|
3184
|
+
* `name` attribute of the mobile search button.
|
|
3185
|
+
*/
|
|
1562
3186
|
"search_button_name"?: string;
|
|
3187
|
+
/**
|
|
3188
|
+
* `name` of the search input, which is the query parameter sent to `search_action`. Default: `q`.
|
|
3189
|
+
*/
|
|
1563
3190
|
"search_input_name"?: string;
|
|
3191
|
+
/**
|
|
3192
|
+
* Alternative text for the second logo.
|
|
3193
|
+
*/
|
|
1564
3194
|
"secondLogoAlt"?: string;
|
|
3195
|
+
/**
|
|
3196
|
+
* Link URL of the second logo on desktop and mobile. Default: `/`.
|
|
3197
|
+
* @default '/'
|
|
3198
|
+
*/
|
|
3199
|
+
"secondLogoHref"?: string;
|
|
3200
|
+
/**
|
|
3201
|
+
* Image URL of the second (entity) logo.
|
|
3202
|
+
*/
|
|
1565
3203
|
"secondLogoSrc"?: string;
|
|
3204
|
+
/**
|
|
3205
|
+
* Image URL of the white second logo, shown in dark theme and on a transparent header. Falls back to `secondLogoSrc` on desktop.
|
|
3206
|
+
*/
|
|
1566
3207
|
"secondLogoWhiteSrc"?: string;
|
|
3208
|
+
/**
|
|
3209
|
+
* Side menu items. JSON array of `{ label, href, subMenu }`; each `subMenu` item is `{ headerLabel, label, href, subMenu }` and can nest.
|
|
3210
|
+
*/
|
|
1567
3211
|
"sideMenuItems"?: string;
|
|
3212
|
+
/**
|
|
3213
|
+
* `name` attribute of the accessibility button in the desktop toolbar.
|
|
3214
|
+
*/
|
|
1568
3215
|
"toggle_accessibility_button_name"?: string;
|
|
1569
3216
|
}
|
|
1570
3217
|
interface DdaHomeBanner {
|
|
@@ -1615,271 +3262,624 @@ declare namespace LocalJSX {
|
|
|
1615
3262
|
"slide_status_label"?: string;
|
|
1616
3263
|
}
|
|
1617
3264
|
interface DdaHorizontalStepper {
|
|
3265
|
+
/**
|
|
3266
|
+
* Theme override class on the stepper container, e.g. `light-mode`.
|
|
3267
|
+
*/
|
|
1618
3268
|
"component_mode"?: string;
|
|
1619
3269
|
/**
|
|
3270
|
+
* Index of the active step, from 0. Steps before it show as completed.
|
|
1620
3271
|
* @default 1
|
|
1621
3272
|
*/
|
|
1622
3273
|
"current_step"?: number;
|
|
3274
|
+
/**
|
|
3275
|
+
* Extra CSS classes added to the stepper container.
|
|
3276
|
+
*/
|
|
1623
3277
|
"custom_class"?: string;
|
|
3278
|
+
/**
|
|
3279
|
+
* Steps, as a JSON string array of `{ title, subtitle, description }` objects.
|
|
3280
|
+
*/
|
|
1624
3281
|
"steps"?: string;
|
|
1625
3282
|
}
|
|
1626
3283
|
interface DdaInput {
|
|
3284
|
+
/**
|
|
3285
|
+
* Accessible name of the inner `<input>`. Use it when there is no visible label.
|
|
3286
|
+
*/
|
|
1627
3287
|
"aria_label"?: string;
|
|
3288
|
+
/**
|
|
3289
|
+
* `autocomplete` token of the inner `<input>`, e.g. `name`, `email` or `tel`. Set it on fields that ask about the user (WCAG 1.3.5).
|
|
3290
|
+
*/
|
|
3291
|
+
"autocomplete"?: string;
|
|
3292
|
+
/**
|
|
3293
|
+
* Theme override class for the field, e.g. `light-mode`.
|
|
3294
|
+
*/
|
|
1628
3295
|
"component_mode"?: string;
|
|
3296
|
+
/**
|
|
3297
|
+
* Extra CSS classes added to the field container.
|
|
3298
|
+
*/
|
|
1629
3299
|
"custom_class"?: string;
|
|
3300
|
+
/**
|
|
3301
|
+
* Error text shown below the input. When set, the input gets `aria-invalid="true"`.
|
|
3302
|
+
*/
|
|
1630
3303
|
"error_message"?: string;
|
|
3304
|
+
/**
|
|
3305
|
+
* Helper text shown below the input and linked with `aria-describedby`.
|
|
3306
|
+
*/
|
|
1631
3307
|
"helper_text"?: string;
|
|
3308
|
+
/**
|
|
3309
|
+
* `id` of the inner `<input>`. Also used for the label `for` and the helper and error text ids. Optional: an id is generated when it is not set.
|
|
3310
|
+
*/
|
|
1632
3311
|
"input_id"?: string;
|
|
3312
|
+
/**
|
|
3313
|
+
* `name` of the inner `<input>`, submitted with its form.
|
|
3314
|
+
*/
|
|
1633
3315
|
"input_name"?: string;
|
|
3316
|
+
/**
|
|
3317
|
+
* Status style. `disabled` shows the disabled styling only; it does not set the native `disabled` attribute.
|
|
3318
|
+
*/
|
|
1634
3319
|
"input_status"?: string;
|
|
3320
|
+
/**
|
|
3321
|
+
* Visible label text, linked to the input through `input_id` (or a generated id).
|
|
3322
|
+
*/
|
|
1635
3323
|
"label"?: string;
|
|
3324
|
+
/**
|
|
3325
|
+
* Placeholder text of the inner `<input>`.
|
|
3326
|
+
*/
|
|
1636
3327
|
"placeholder"?: string;
|
|
3328
|
+
/**
|
|
3329
|
+
* Size. `small` shows a smaller field; omit for the default size.
|
|
3330
|
+
*/
|
|
1637
3331
|
"size"?: string;
|
|
1638
3332
|
/**
|
|
3333
|
+
* Native input type, e.g. `text`, `password`, `email`, `number`, `date` or `time`. The legacy values `Witherror` and `disabled` only apply the error or disabled styling.
|
|
1639
3334
|
* @default 'text'
|
|
1640
3335
|
*/
|
|
1641
3336
|
"type"?: string;
|
|
3337
|
+
/**
|
|
3338
|
+
* Validation style. `error` shows the error colors.
|
|
3339
|
+
*/
|
|
1642
3340
|
"validation_type"?: string;
|
|
3341
|
+
/**
|
|
3342
|
+
* Value of the inner `<input>`. Updates as the user types.
|
|
3343
|
+
*/
|
|
1643
3344
|
"value"?: string;
|
|
1644
3345
|
}
|
|
1645
3346
|
interface DdaLinkButton {
|
|
1646
3347
|
/**
|
|
3348
|
+
* Accessible name of the link. Required when the link shows only an icon.
|
|
1647
3349
|
* @default ''
|
|
1648
3350
|
*/
|
|
1649
3351
|
"aria_label"?: string;
|
|
1650
3352
|
/**
|
|
3353
|
+
* Color variant, e.g. `default-primary`, `default-secondary`, `error-primary`, `onsurface-link` or `disabled`.
|
|
1651
3354
|
* @default 'primary'
|
|
1652
3355
|
*/
|
|
1653
3356
|
"button_color"?: string;
|
|
3357
|
+
/**
|
|
3358
|
+
* `id` of the inner `<a>`.
|
|
3359
|
+
*/
|
|
1654
3360
|
"button_id"?: string;
|
|
1655
3361
|
/**
|
|
3362
|
+
* Shape: `default` or `circle`.
|
|
1656
3363
|
* @default ''
|
|
1657
3364
|
*/
|
|
1658
3365
|
"button_shape"?: string;
|
|
3366
|
+
/**
|
|
3367
|
+
* Theme override class for the link, e.g. `light-mode`.
|
|
3368
|
+
*/
|
|
1659
3369
|
"component_mode"?: string;
|
|
1660
3370
|
/**
|
|
3371
|
+
* Extra CSS classes added to the inner `<a>`.
|
|
1661
3372
|
* @default ''
|
|
1662
3373
|
*/
|
|
1663
3374
|
"custom_class"?: string;
|
|
1664
3375
|
/**
|
|
1665
|
-
*
|
|
3376
|
+
* Not used: the link stays active. For a disabled look, set `button_color` to `disabled`.
|
|
1666
3377
|
* @default false
|
|
1667
3378
|
*/
|
|
1668
3379
|
"disabled"?: boolean;
|
|
1669
3380
|
/**
|
|
3381
|
+
* Material Symbols icon name shown after the label, e.g. `arrow_forward`.
|
|
1670
3382
|
* @default ''
|
|
1671
3383
|
*/
|
|
1672
3384
|
"end_icon"?: string;
|
|
3385
|
+
/**
|
|
3386
|
+
* Gap between icon and label, as a spacing step: 1–6, 8, 10, 12 or 16.
|
|
3387
|
+
*/
|
|
1673
3388
|
"gap"?: number;
|
|
1674
3389
|
/**
|
|
3390
|
+
* URL the link opens.
|
|
1675
3391
|
* @default '#'
|
|
1676
3392
|
*/
|
|
1677
3393
|
"href"?: string;
|
|
1678
3394
|
/**
|
|
3395
|
+
* Shape of an icon-only link: `default` or `circle`.
|
|
1679
3396
|
* @default ''
|
|
1680
3397
|
*/
|
|
1681
3398
|
"icon_button_shape"?: string;
|
|
3399
|
+
/**
|
|
3400
|
+
* Size: `sm`, `md`, `lg` or `xl`.
|
|
3401
|
+
*/
|
|
1682
3402
|
"size"?: string;
|
|
1683
3403
|
/**
|
|
1684
|
-
*
|
|
3404
|
+
* Material Symbols icon name shown before the label, e.g. `arrow_back`.
|
|
1685
3405
|
* @default ''
|
|
1686
3406
|
*/
|
|
1687
3407
|
"start_icon"?: string;
|
|
1688
3408
|
/**
|
|
1689
|
-
*
|
|
3409
|
+
* Not used: the component renders an `<a>` link, which has no `type`.
|
|
1690
3410
|
* @default 'button'
|
|
1691
3411
|
*/
|
|
1692
3412
|
"type"?: string;
|
|
1693
3413
|
}
|
|
1694
3414
|
interface DdaNumberField {
|
|
3415
|
+
/**
|
|
3416
|
+
* Accessible name of the amount input. Use it when there is no visible label.
|
|
3417
|
+
*/
|
|
1695
3418
|
"aria_label"?: string;
|
|
3419
|
+
/**
|
|
3420
|
+
* Theme override class for the field, e.g. `light-mode`.
|
|
3421
|
+
*/
|
|
1696
3422
|
"component_mode"?: string;
|
|
3423
|
+
/**
|
|
3424
|
+
* Currency options for the dropdown, as a JSON array string, e.g. `'["AED","USD"]'`.
|
|
3425
|
+
*/
|
|
1697
3426
|
"currencies"?: string;
|
|
3427
|
+
/**
|
|
3428
|
+
* `name` of each currency option button.
|
|
3429
|
+
*/
|
|
1698
3430
|
"currency_button_name"?: string;
|
|
1699
3431
|
/**
|
|
3432
|
+
* Extra CSS classes added to the field container.
|
|
1700
3433
|
* @default ''
|
|
1701
3434
|
*/
|
|
1702
3435
|
"custom_class"?: string;
|
|
3436
|
+
/**
|
|
3437
|
+
* Error text shown below the field. When set, the input gets `aria-invalid="true"`.
|
|
3438
|
+
*/
|
|
1703
3439
|
"error_message"?: string;
|
|
3440
|
+
/**
|
|
3441
|
+
* Helper text shown below the field and linked with `aria-describedby`.
|
|
3442
|
+
*/
|
|
1704
3443
|
"helper_text"?: string;
|
|
3444
|
+
/**
|
|
3445
|
+
* `id` of the amount input. Also used for the label `for` and the helper and error text ids. Optional: an id is generated when it is not set.
|
|
3446
|
+
*/
|
|
1705
3447
|
"input_id"?: string;
|
|
3448
|
+
/**
|
|
3449
|
+
* `name` of the amount input, submitted with its form.
|
|
3450
|
+
*/
|
|
1706
3451
|
"input_name"?: string;
|
|
3452
|
+
/**
|
|
3453
|
+
* Status style. `disabled` shows the disabled styling only; it does not set the native `disabled` attribute.
|
|
3454
|
+
*/
|
|
1707
3455
|
"input_status"?: string;
|
|
3456
|
+
/**
|
|
3457
|
+
* Visible label text, linked to the amount input through `input_id` (or a generated id).
|
|
3458
|
+
*/
|
|
1708
3459
|
"label"?: string;
|
|
3460
|
+
/**
|
|
3461
|
+
* Placeholder text of the amount input.
|
|
3462
|
+
*/
|
|
1709
3463
|
"placeholder"?: string;
|
|
1710
3464
|
/**
|
|
3465
|
+
* Currency shown on the dropdown button. Updates when the user picks a currency.
|
|
1711
3466
|
* @default 'USD'
|
|
1712
3467
|
*/
|
|
1713
3468
|
"selected_currency"?: string;
|
|
3469
|
+
/**
|
|
3470
|
+
* Size. `small` shows a smaller field; omit for the default size.
|
|
3471
|
+
*/
|
|
1714
3472
|
"size"?: string;
|
|
3473
|
+
/**
|
|
3474
|
+
* Accessible name of the currency dropdown button; the selected currency is added after it.
|
|
3475
|
+
* @default 'Choose currency'
|
|
3476
|
+
*/
|
|
3477
|
+
"toggle_button_label"?: string;
|
|
3478
|
+
/**
|
|
3479
|
+
* `name` of the currency dropdown button.
|
|
3480
|
+
*/
|
|
1715
3481
|
"toggle_button_name"?: string;
|
|
3482
|
+
/**
|
|
3483
|
+
* Validation style. `error` shows the error colors.
|
|
3484
|
+
*/
|
|
1716
3485
|
"validation_type"?: string;
|
|
3486
|
+
/**
|
|
3487
|
+
* Initial value of the amount input. Characters other than digits and `.` are removed as the user types.
|
|
3488
|
+
*/
|
|
1717
3489
|
"value"?: string;
|
|
1718
3490
|
}
|
|
1719
3491
|
interface DdaPagination {
|
|
3492
|
+
/**
|
|
3493
|
+
* `name` of the next page button when `type` is `button-text`.
|
|
3494
|
+
*/
|
|
1720
3495
|
"button_text_next_button"?: string;
|
|
3496
|
+
/**
|
|
3497
|
+
* `name` of the previous page button when `type` is `button-text`.
|
|
3498
|
+
*/
|
|
1721
3499
|
"button_text_prev_button"?: string;
|
|
3500
|
+
/**
|
|
3501
|
+
* `name` of the next page button when `type` is `buttons`.
|
|
3502
|
+
*/
|
|
1722
3503
|
"buttons_next_button"?: string;
|
|
3504
|
+
/**
|
|
3505
|
+
* `name` of the next page button when `type` is `buttons-pages`.
|
|
3506
|
+
*/
|
|
1723
3507
|
"buttons_pages_next_button"?: string;
|
|
3508
|
+
/**
|
|
3509
|
+
* `name` of the previous page button when `type` is `buttons-pages`.
|
|
3510
|
+
*/
|
|
1724
3511
|
"buttons_pages_prev_button"?: string;
|
|
3512
|
+
/**
|
|
3513
|
+
* `name` of the previous page button when `type` is `buttons`.
|
|
3514
|
+
*/
|
|
1725
3515
|
"buttons_prev_button"?: string;
|
|
3516
|
+
/**
|
|
3517
|
+
* Theme override class on the pagination element, e.g. `light-mode`.
|
|
3518
|
+
*/
|
|
1726
3519
|
"component_mode"?: string;
|
|
1727
3520
|
/**
|
|
3521
|
+
* Selected page, counted from 1. Kept between 1 and `total_pages`; updates when the user changes the page. Mutable: the component assigns it.
|
|
1728
3522
|
* @default 1
|
|
1729
3523
|
*/
|
|
1730
3524
|
"current_page"?: number;
|
|
1731
3525
|
/**
|
|
3526
|
+
* Extra CSS classes added to the pagination element.
|
|
1732
3527
|
* @default ''
|
|
1733
3528
|
*/
|
|
1734
3529
|
"custom_class"?: string;
|
|
3530
|
+
/**
|
|
3531
|
+
* Accessible name of the icon-only next page button (`text`, `text-pages`, `button-text` and `buttons-pages` layouts).
|
|
3532
|
+
* @default 'Next page'
|
|
3533
|
+
*/
|
|
3534
|
+
"next_button_label"?: string;
|
|
3535
|
+
/**
|
|
3536
|
+
* Emitted when the user moves to a different page. `detail.page` is the new page, counted from 1.
|
|
3537
|
+
*/
|
|
3538
|
+
"onPageChange"?: (event: DdaPaginationCustomEvent<{ page: number }>) => void;
|
|
3539
|
+
/**
|
|
3540
|
+
* Accessible name of the icon-only previous page button (`text`, `text-pages`, `button-text` and `buttons-pages` layouts).
|
|
3541
|
+
* @default 'Previous page'
|
|
3542
|
+
*/
|
|
3543
|
+
"previous_button_label"?: string;
|
|
3544
|
+
/**
|
|
3545
|
+
* `name` of the next page button when `type` is `simple-slider`.
|
|
3546
|
+
*/
|
|
1735
3547
|
"simple_slider_next_button"?: string;
|
|
3548
|
+
/**
|
|
3549
|
+
* `name` of the previous page button when `type` is `simple-slider`.
|
|
3550
|
+
*/
|
|
1736
3551
|
"simple_slider_prev_button"?: string;
|
|
3552
|
+
/**
|
|
3553
|
+
* `name` of the next page button when `type` is `text`.
|
|
3554
|
+
*/
|
|
1737
3555
|
"text_next_button"?: string;
|
|
3556
|
+
/**
|
|
3557
|
+
* `name` of the next page button when `type` is `text-pages`.
|
|
3558
|
+
*/
|
|
1738
3559
|
"text_pages_next_button"?: string;
|
|
3560
|
+
/**
|
|
3561
|
+
* `name` of the previous page button when `type` is `text-pages`.
|
|
3562
|
+
*/
|
|
1739
3563
|
"text_pages_prev_button"?: string;
|
|
3564
|
+
/**
|
|
3565
|
+
* `name` of the previous page button when `type` is `text`.
|
|
3566
|
+
*/
|
|
1740
3567
|
"text_prev_button"?: string;
|
|
1741
3568
|
/**
|
|
3569
|
+
* Number of pages. Values below 1 become 1. Mutable: the component corrects out-of-range values.
|
|
1742
3570
|
* @default 8
|
|
1743
3571
|
*/
|
|
1744
3572
|
"total_pages"?: number;
|
|
1745
3573
|
/**
|
|
3574
|
+
* Layout: `simple-slider`, `buttons`, `text`, `text-pages`, `button-text`, `buttons-pages` or `full`.
|
|
1746
3575
|
* @default 'simple-slider'
|
|
1747
3576
|
*/
|
|
1748
3577
|
"type"?: 'simple-slider' | 'buttons' | 'text' | 'text-pages' | 'button-text' | 'buttons-pages' | 'full';
|
|
1749
3578
|
}
|
|
1750
3579
|
interface DdaPhonefield {
|
|
3580
|
+
/**
|
|
3581
|
+
* Accessible name of the phone input. Use it when there is no visible label.
|
|
3582
|
+
*/
|
|
1751
3583
|
"aria_label"?: string;
|
|
1752
3584
|
/**
|
|
1753
|
-
*
|
|
3585
|
+
* `autocomplete` token of the phone input. Defaults to `tel-national`, because the country code is chosen separately.
|
|
3586
|
+
* @default 'tel-national'
|
|
1754
3587
|
*/
|
|
1755
3588
|
"autocomplete"?: string;
|
|
3589
|
+
/**
|
|
3590
|
+
* Accessible name set on each country option button in the open list.
|
|
3591
|
+
*/
|
|
1756
3592
|
"button_aria_label"?: string;
|
|
3593
|
+
/**
|
|
3594
|
+
* Prefix of the country option button ids in the open list. Each option gets `<button_id>-<index>`. When it is not set, the prefix comes from the input id.
|
|
3595
|
+
*/
|
|
1757
3596
|
"button_id"?: string;
|
|
3597
|
+
/**
|
|
3598
|
+
* Theme override class for the field, e.g. `light-mode`.
|
|
3599
|
+
*/
|
|
1758
3600
|
"component_mode"?: string;
|
|
3601
|
+
/**
|
|
3602
|
+
* `name` of each country option button.
|
|
3603
|
+
*/
|
|
1759
3604
|
"country_select_button_name"?: string;
|
|
3605
|
+
/**
|
|
3606
|
+
* Extra CSS classes added to the field container.
|
|
3607
|
+
*/
|
|
1760
3608
|
"custom_class"?: string;
|
|
1761
3609
|
/**
|
|
3610
|
+
* Disables the phone input and shows the disabled styling.
|
|
1762
3611
|
* @default false
|
|
1763
3612
|
*/
|
|
1764
3613
|
"disabled"?: boolean;
|
|
3614
|
+
/**
|
|
3615
|
+
* Error text shown below the field. When set, the input gets `aria-invalid="true"`.
|
|
3616
|
+
*/
|
|
1765
3617
|
"error_message"?: string;
|
|
3618
|
+
/**
|
|
3619
|
+
* Helper text shown below the field. Hidden when `validation_type` is set.
|
|
3620
|
+
*/
|
|
1766
3621
|
"helper_text"?: string;
|
|
3622
|
+
/**
|
|
3623
|
+
* `id` of the phone input. Also used for the label `for` and the helper and error text ids. When it is not set, the component generates a unique id.
|
|
3624
|
+
*/
|
|
1767
3625
|
"input_id"?: string;
|
|
3626
|
+
/**
|
|
3627
|
+
* Visible label text, linked to the phone input through `input_id`.
|
|
3628
|
+
*/
|
|
1768
3629
|
"label"?: string;
|
|
3630
|
+
/**
|
|
3631
|
+
* `name` of the phone input, submitted with its form.
|
|
3632
|
+
*/
|
|
1769
3633
|
"phone_input_name"?: string;
|
|
1770
3634
|
/**
|
|
3635
|
+
* Placeholder text of the phone input.
|
|
1771
3636
|
* @default 'Enter phone number'
|
|
1772
3637
|
*/
|
|
1773
3638
|
"placeholder"?: string;
|
|
3639
|
+
/**
|
|
3640
|
+
* Size. `small` shows a smaller field; omit for the default size.
|
|
3641
|
+
*/
|
|
1774
3642
|
"size"?: string;
|
|
3643
|
+
/**
|
|
3644
|
+
* Accessible name of the country code dropdown button; the selected code is added after it.
|
|
3645
|
+
* @default 'Choose country code'
|
|
3646
|
+
*/
|
|
3647
|
+
"toggle_button_label"?: string;
|
|
3648
|
+
/**
|
|
3649
|
+
* `name` of the country code dropdown button.
|
|
3650
|
+
*/
|
|
1775
3651
|
"toggle_button_name"?: string;
|
|
3652
|
+
/**
|
|
3653
|
+
* Validation style. `error` shows the error colors. Any value hides `helper_text`.
|
|
3654
|
+
*/
|
|
1776
3655
|
"validation_type"?: string;
|
|
1777
3656
|
}
|
|
1778
3657
|
interface DdaProgressbar {
|
|
1779
3658
|
/**
|
|
3659
|
+
* Accessible name of the progress bar.
|
|
1780
3660
|
* @default 'Progress'
|
|
1781
3661
|
*/
|
|
1782
3662
|
"aria_label"?: string;
|
|
3663
|
+
/**
|
|
3664
|
+
* Theme override class for the progress bar, e.g. `light-mode`.
|
|
3665
|
+
*/
|
|
1783
3666
|
"component_mode"?: string;
|
|
3667
|
+
/**
|
|
3668
|
+
* Extra CSS classes added to the progress bar container.
|
|
3669
|
+
*/
|
|
1784
3670
|
"custom_class"?: string;
|
|
1785
3671
|
/**
|
|
3672
|
+
* Progress in percent, from 0 to 100. Sets the bar width and `aria-valuenow`.
|
|
1786
3673
|
* @default 0
|
|
1787
3674
|
*/
|
|
1788
3675
|
"progress"?: number;
|
|
1789
3676
|
/**
|
|
3677
|
+
* Shows the percentage as text after the bar.
|
|
1790
3678
|
* @default false
|
|
1791
3679
|
*/
|
|
1792
3680
|
"show_percentage_text"?: boolean;
|
|
1793
3681
|
/**
|
|
3682
|
+
* Shows the percentage in a tooltip at the end of the filled bar.
|
|
1794
3683
|
* @default false
|
|
1795
3684
|
*/
|
|
1796
3685
|
"tooltip"?: boolean;
|
|
1797
3686
|
/**
|
|
3687
|
+
* Tooltip position: `top` or `bottom`.
|
|
1798
3688
|
* @default 'top'
|
|
1799
3689
|
*/
|
|
1800
3690
|
"tooltip_position"?: 'top' | 'bottom';
|
|
1801
3691
|
}
|
|
1802
3692
|
interface DdaRadiobutton {
|
|
3693
|
+
/**
|
|
3694
|
+
* Accessible name of the inner radio input.
|
|
3695
|
+
*/
|
|
1803
3696
|
"aria_label"?: string;
|
|
3697
|
+
/**
|
|
3698
|
+
* Checked state of the inner input. Read the current state from the input or its `change` event.
|
|
3699
|
+
*/
|
|
1804
3700
|
"checked"?: boolean;
|
|
3701
|
+
/**
|
|
3702
|
+
* Theme override class for the radio button, e.g. `light-mode`.
|
|
3703
|
+
*/
|
|
1805
3704
|
"component_mode"?: string;
|
|
1806
3705
|
/**
|
|
3706
|
+
* Extra class suffix. The value is added as `dda-radio-<value>` on the container.
|
|
1807
3707
|
* @default ''
|
|
1808
3708
|
*/
|
|
1809
3709
|
"custom_class"?: string;
|
|
3710
|
+
/**
|
|
3711
|
+
* `name` of the inner radio input. Give all radio buttons in one group the same value.
|
|
3712
|
+
*/
|
|
1810
3713
|
"group_name"?: string;
|
|
3714
|
+
/**
|
|
3715
|
+
* `id` of the inner radio input. The label points to it, so set a unique value to make the label clickable.
|
|
3716
|
+
*/
|
|
1811
3717
|
"input_id"?: string;
|
|
3718
|
+
/**
|
|
3719
|
+
* Status: `disabled` shows the disabled style and blocks pointer clicks.
|
|
3720
|
+
*/
|
|
1812
3721
|
"radio_status"?: string;
|
|
3722
|
+
/**
|
|
3723
|
+
* Size: `sm`, `md` or `lg`.
|
|
3724
|
+
*/
|
|
1813
3725
|
"size"?: string;
|
|
3726
|
+
/**
|
|
3727
|
+
* Secondary text shown under the title.
|
|
3728
|
+
*/
|
|
1814
3729
|
"supporting"?: string;
|
|
3730
|
+
/**
|
|
3731
|
+
* Label shown next to the radio button.
|
|
3732
|
+
*/
|
|
1815
3733
|
"title_text"?: string;
|
|
3734
|
+
/**
|
|
3735
|
+
* Style variant: `outlined` or `faded`. Leave empty (or `normal`) for the default style.
|
|
3736
|
+
*/
|
|
1816
3737
|
"variants"?: string;
|
|
1817
3738
|
}
|
|
1818
3739
|
interface DdaRangeSlider {
|
|
3740
|
+
/**
|
|
3741
|
+
* Theme override class for the slider, e.g. `light-mode`.
|
|
3742
|
+
*/
|
|
1819
3743
|
"component_mode"?: string;
|
|
1820
3744
|
/**
|
|
3745
|
+
* Extra CSS classes added to the slider container.
|
|
1821
3746
|
* @default ''
|
|
1822
3747
|
*/
|
|
1823
3748
|
"custom_class"?: string;
|
|
1824
3749
|
/**
|
|
3750
|
+
* Start value of the upper (right) handle. Read only when the component loads.
|
|
1825
3751
|
* @default 100
|
|
1826
3752
|
*/
|
|
1827
3753
|
"initial_max"?: number;
|
|
1828
3754
|
/**
|
|
3755
|
+
* Start value of the lower (left) handle. Read only when the component loads.
|
|
1829
3756
|
* @default 0
|
|
1830
3757
|
*/
|
|
1831
3758
|
"initial_min"?: number;
|
|
3759
|
+
/**
|
|
3760
|
+
* Accessible name of the lower (left) range input, e.g. `Minimum amount`. When it is empty, the name is `Minimum`.
|
|
3761
|
+
*/
|
|
1832
3762
|
"left_aria_label"?: string;
|
|
3763
|
+
/**
|
|
3764
|
+
* `id` of the lower (left) range input. When it is not set, the component generates a unique id.
|
|
3765
|
+
*/
|
|
1833
3766
|
"left_input_id"?: string;
|
|
3767
|
+
/**
|
|
3768
|
+
* `name` of the lower (left) range input, submitted with its form.
|
|
3769
|
+
*/
|
|
1834
3770
|
"left_input_name"?: string;
|
|
1835
3771
|
/**
|
|
3772
|
+
* Highest value of the range.
|
|
1836
3773
|
* @default 100
|
|
1837
3774
|
*/
|
|
1838
3775
|
"max"?: number;
|
|
1839
3776
|
/**
|
|
3777
|
+
* Lowest value of the range.
|
|
1840
3778
|
* @default 0
|
|
1841
3779
|
*/
|
|
1842
3780
|
"min"?: number;
|
|
3781
|
+
/**
|
|
3782
|
+
* Accessible name of the upper (right) range input, e.g. `Maximum amount`. When it is empty, the name is `Maximum`.
|
|
3783
|
+
*/
|
|
1843
3784
|
"right_aria_label"?: string;
|
|
3785
|
+
/**
|
|
3786
|
+
* `id` of the upper (right) range input. When it is not set, the component generates a unique id.
|
|
3787
|
+
*/
|
|
1844
3788
|
"right_input_id"?: string;
|
|
3789
|
+
/**
|
|
3790
|
+
* `name` of the upper (right) range input, submitted with its form.
|
|
3791
|
+
*/
|
|
1845
3792
|
"right_input_name"?: string;
|
|
3793
|
+
/**
|
|
3794
|
+
* Not used by the current version; it has no effect.
|
|
3795
|
+
*/
|
|
1846
3796
|
"size"?: string;
|
|
1847
3797
|
/**
|
|
3798
|
+
* Step between selectable values.
|
|
1848
3799
|
* @default 1
|
|
1849
3800
|
*/
|
|
1850
3801
|
"step"?: number;
|
|
3802
|
+
/**
|
|
3803
|
+
* Value labels shown as tooltips: `top` or `bottom`. Without it, plain labels show below the track.
|
|
3804
|
+
*/
|
|
1851
3805
|
"tooltip_position"?: string;
|
|
1852
3806
|
}
|
|
1853
3807
|
interface DdaSearchInput {
|
|
3808
|
+
/**
|
|
3809
|
+
* Accessible name of the search input. Use it when there is no visible label.
|
|
3810
|
+
*/
|
|
1854
3811
|
"aria_label"?: string;
|
|
3812
|
+
/**
|
|
3813
|
+
* Accessible name of the clear button, e.g. `Clear search`.
|
|
3814
|
+
*/
|
|
1855
3815
|
"button_aria_label"?: string;
|
|
3816
|
+
/**
|
|
3817
|
+
* `id` of the clear button.
|
|
3818
|
+
*/
|
|
1856
3819
|
"button_id"?: string;
|
|
3820
|
+
/**
|
|
3821
|
+
* Accessible name of the clear button. `button_aria_label` wins when set.
|
|
3822
|
+
* @default 'Clear search'
|
|
3823
|
+
*/
|
|
3824
|
+
"clear_button_label"?: string;
|
|
3825
|
+
/**
|
|
3826
|
+
* `name` of the clear button.
|
|
3827
|
+
*/
|
|
1857
3828
|
"close_button_name"?: string;
|
|
3829
|
+
/**
|
|
3830
|
+
* Theme override class for the field, e.g. `light-mode`.
|
|
3831
|
+
*/
|
|
1858
3832
|
"component_mode"?: string;
|
|
1859
3833
|
/**
|
|
3834
|
+
* Extra CSS classes added to the field container.
|
|
1860
3835
|
* @default ''
|
|
1861
3836
|
*/
|
|
1862
3837
|
"custom_class"?: string;
|
|
3838
|
+
/**
|
|
3839
|
+
* Error text shown below the field. When set, the input gets `aria-invalid="true"`.
|
|
3840
|
+
*/
|
|
1863
3841
|
"error_message"?: string;
|
|
1864
3842
|
/**
|
|
3843
|
+
* Shows the error colors.
|
|
1865
3844
|
* @default false
|
|
1866
3845
|
*/
|
|
1867
3846
|
"has_error"?: boolean;
|
|
3847
|
+
/**
|
|
3848
|
+
* Helper text shown below the field and linked with `aria-describedby`.
|
|
3849
|
+
*/
|
|
1868
3850
|
"helper_text"?: string;
|
|
3851
|
+
/**
|
|
3852
|
+
* `id` of the search input. Also used for the label `for` and the helper and error text ids. Optional: an id is generated when it is not set.
|
|
3853
|
+
*/
|
|
1869
3854
|
"input_id"?: string;
|
|
3855
|
+
/**
|
|
3856
|
+
* Status style. `disabled` shows the disabled styling only; it does not set the native `disabled` attribute.
|
|
3857
|
+
*/
|
|
1870
3858
|
"input_status"?: string;
|
|
3859
|
+
/**
|
|
3860
|
+
* Visible label text, linked to the search input through `input_id` (or a generated id).
|
|
3861
|
+
*/
|
|
1871
3862
|
"label"?: string;
|
|
1872
3863
|
/**
|
|
3864
|
+
* Placeholder text of the search input.
|
|
1873
3865
|
* @default 'Search'
|
|
1874
3866
|
*/
|
|
1875
3867
|
"placeholder"?: string;
|
|
3868
|
+
/**
|
|
3869
|
+
* `name` of the "Search" button.
|
|
3870
|
+
*/
|
|
1876
3871
|
"search_button_name"?: string;
|
|
3872
|
+
/**
|
|
3873
|
+
* `name` of the search input, submitted with its form.
|
|
3874
|
+
*/
|
|
1877
3875
|
"search_input_name"?: string;
|
|
1878
3876
|
/**
|
|
3877
|
+
* Shows a "Search" button after the clear button.
|
|
1879
3878
|
* @default false
|
|
1880
3879
|
*/
|
|
1881
3880
|
"show_button"?: boolean;
|
|
1882
3881
|
/**
|
|
3882
|
+
* Size. `small` shows a smaller field; other values show the default size.
|
|
1883
3883
|
* @default 'sm'
|
|
1884
3884
|
*/
|
|
1885
3885
|
"size"?: string;
|
|
@@ -1889,216 +3889,526 @@ declare namespace LocalJSX {
|
|
|
1889
3889
|
* Accessible name for the group (applied as aria-label on the group container).
|
|
1890
3890
|
*/
|
|
1891
3891
|
"aria_label"?: string;
|
|
3892
|
+
/**
|
|
3893
|
+
* `name` set on every segment button.
|
|
3894
|
+
*/
|
|
1892
3895
|
"button_name"?: string;
|
|
3896
|
+
/**
|
|
3897
|
+
* Theme override class on the group, e.g. `light-mode`.
|
|
3898
|
+
*/
|
|
1893
3899
|
"component_mode"?: string;
|
|
3900
|
+
/**
|
|
3901
|
+
* Extra CSS classes added to the group.
|
|
3902
|
+
*/
|
|
1894
3903
|
"custom_class"?: string;
|
|
3904
|
+
/**
|
|
3905
|
+
* Accessible names for icon-only segments, as a JSON string array in the same order as `items`, e.g. `'["Align left", "Align center"]'`.
|
|
3906
|
+
*/
|
|
3907
|
+
"icon_labels"?: string;
|
|
3908
|
+
/**
|
|
3909
|
+
* Segments, as a JSON string array, e.g. `'["All", "Pending", "Approved"]'`. A missing or invalid value renders no segments. An item that starts with `fo` renders as a Material Symbols icon name (e.g. `format_align_left`).
|
|
3910
|
+
*/
|
|
1895
3911
|
"items"?: string;
|
|
1896
3912
|
/**
|
|
1897
|
-
*
|
|
3913
|
+
* Fires when the user selects a different segment. `detail` is the new index, from 0.
|
|
1898
3914
|
*/
|
|
1899
3915
|
"onSegmentChange"?: (event: DdaSegmentedTabsCustomEvent<number>) => void;
|
|
3916
|
+
/**
|
|
3917
|
+
* Corner shape of the group: `square` or `rounded`.
|
|
3918
|
+
*/
|
|
1900
3919
|
"radius_type"?: string;
|
|
1901
3920
|
/**
|
|
1902
|
-
* Index of the segment
|
|
3921
|
+
* Index of the selected segment, from 0. Changing it after load moves the selection. An out-of-range value selects the first segment.
|
|
1903
3922
|
* @default 0
|
|
1904
3923
|
*/
|
|
1905
3924
|
"selected_index"?: number;
|
|
1906
3925
|
}
|
|
1907
3926
|
interface DdaSelect {
|
|
3927
|
+
/**
|
|
3928
|
+
* Accessible name of the trigger button and the option list. The list falls back to `label`.
|
|
3929
|
+
*/
|
|
1908
3930
|
"aria_label"?: string;
|
|
3931
|
+
/**
|
|
3932
|
+
* `id` of the trigger button. Also used to build the ids of the label, list, helper text and error message, so keep it unique. When it is not set, the component generates a unique id.
|
|
3933
|
+
*/
|
|
1909
3934
|
"button_id"?: string;
|
|
3935
|
+
/**
|
|
3936
|
+
* Theme override class for the field, e.g. `light-mode`.
|
|
3937
|
+
*/
|
|
1910
3938
|
"component_mode"?: string;
|
|
1911
3939
|
/**
|
|
3940
|
+
* Extra CSS classes added to the field container.
|
|
1912
3941
|
* @default ''
|
|
1913
3942
|
*/
|
|
1914
3943
|
"custom_class"?: string;
|
|
1915
3944
|
/**
|
|
3945
|
+
* Disables the select: the list does not open and options cannot be picked.
|
|
1916
3946
|
* @default false
|
|
1917
3947
|
*/
|
|
1918
3948
|
"disabled"?: boolean;
|
|
3949
|
+
/**
|
|
3950
|
+
* Validation state. `error` shows the error styling.
|
|
3951
|
+
*/
|
|
1919
3952
|
"error"?: string;
|
|
3953
|
+
/**
|
|
3954
|
+
* Error text shown under the field. Also sets `aria-invalid` on the trigger.
|
|
3955
|
+
*/
|
|
1920
3956
|
"error_message"?: string;
|
|
3957
|
+
/**
|
|
3958
|
+
* Helper text shown under the field.
|
|
3959
|
+
*/
|
|
1921
3960
|
"helper_text"?: string;
|
|
3961
|
+
/**
|
|
3962
|
+
* Label shown above the field. The trigger button is named by the label and its current text.
|
|
3963
|
+
*/
|
|
1922
3964
|
"label"?: string;
|
|
3965
|
+
/**
|
|
3966
|
+
* Emitted when the user picks an option other than the selected one, by mouse or keyboard. `detail.value` is the new option.
|
|
3967
|
+
*/
|
|
3968
|
+
"onSelectionChange"?: (event: DdaSelectCustomEvent<{ value: string }>) => void;
|
|
3969
|
+
/**
|
|
3970
|
+
* `name` of each option button in the list.
|
|
3971
|
+
*/
|
|
1923
3972
|
"option_select_button_name"?: string;
|
|
3973
|
+
/**
|
|
3974
|
+
* Options as a JSON array string, e.g. `'["Dubai","Abu Dhabi","Sharjah"]'`. Invalid JSON shows "No options available".
|
|
3975
|
+
*/
|
|
1924
3976
|
"options"?: string;
|
|
3977
|
+
/**
|
|
3978
|
+
* The selected option. Must match an entry in `options`. The trigger shows "Select an option" when it is empty. Updated when the user picks an option. Mutable: the component assigns it.
|
|
3979
|
+
*/
|
|
1925
3980
|
"selected"?: string;
|
|
3981
|
+
/**
|
|
3982
|
+
* Field size. `small` gives the compact field; leave empty for the default size.
|
|
3983
|
+
*/
|
|
1926
3984
|
"size"?: string;
|
|
3985
|
+
/**
|
|
3986
|
+
* `name` of the trigger button.
|
|
3987
|
+
*/
|
|
1927
3988
|
"toggle_button_name"?: string;
|
|
1928
3989
|
}
|
|
1929
3990
|
interface DdaStickyFooter {
|
|
3991
|
+
/**
|
|
3992
|
+
* Alternative text for the accessibility icon.
|
|
3993
|
+
*/
|
|
1930
3994
|
"accessibilityIconAlt"?: string;
|
|
3995
|
+
/**
|
|
3996
|
+
* Link URL of the accessibility icon, the second icon in the left section.
|
|
3997
|
+
*/
|
|
1931
3998
|
"accessibilityIconHref"?: string;
|
|
3999
|
+
/**
|
|
4000
|
+
* Image URL of the accessibility icon.
|
|
4001
|
+
*/
|
|
1932
4002
|
"accessibilityIconSrc"?: string;
|
|
4003
|
+
/**
|
|
4004
|
+
* Tooltip text of the accessibility icon.
|
|
4005
|
+
*/
|
|
1933
4006
|
"accessibilityIconTooltip"?: string;
|
|
4007
|
+
/**
|
|
4008
|
+
* Alternative text for the AI assistant icon.
|
|
4009
|
+
*/
|
|
1934
4010
|
"aiIconAlt"?: string;
|
|
4011
|
+
/**
|
|
4012
|
+
* Link URL of the AI assistant icon (right section).
|
|
4013
|
+
*/
|
|
1935
4014
|
"aiIconHref"?: string;
|
|
4015
|
+
/**
|
|
4016
|
+
* Image URL of the AI assistant icon.
|
|
4017
|
+
*/
|
|
1936
4018
|
"aiIconSrc"?: string;
|
|
4019
|
+
/**
|
|
4020
|
+
* Tooltip text of the AI assistant icon.
|
|
4021
|
+
*/
|
|
1937
4022
|
"aiIconTooltip"?: string;
|
|
4023
|
+
/**
|
|
4024
|
+
* Accessible name of the bar's `<aside>` landmark. Default: `Quick actions`.
|
|
4025
|
+
* @default 'Quick actions'
|
|
4026
|
+
*/
|
|
4027
|
+
"aria_label"?: string;
|
|
4028
|
+
/**
|
|
4029
|
+
* Alternative text for the chat icon.
|
|
4030
|
+
*/
|
|
1938
4031
|
"chatIconAlt"?: string;
|
|
4032
|
+
/**
|
|
4033
|
+
* Link URL of the chat icon (right section).
|
|
4034
|
+
*/
|
|
1939
4035
|
"chatIconHref"?: string;
|
|
4036
|
+
/**
|
|
4037
|
+
* Image URL of the chat icon.
|
|
4038
|
+
*/
|
|
1940
4039
|
"chatIconSrc"?: string;
|
|
4040
|
+
/**
|
|
4041
|
+
* Tooltip text of the chat icon.
|
|
4042
|
+
*/
|
|
1941
4043
|
"chatIconTooltip"?: string;
|
|
4044
|
+
/**
|
|
4045
|
+
* Alternative text for the first logo.
|
|
4046
|
+
*/
|
|
1942
4047
|
"firstLogoAlt"?: string;
|
|
1943
4048
|
/**
|
|
1944
|
-
*
|
|
4049
|
+
* Link URL of the first logo (middle section).
|
|
1945
4050
|
*/
|
|
1946
4051
|
"firstLogoHref"?: string;
|
|
4052
|
+
/**
|
|
4053
|
+
* Image URL of the first logo.
|
|
4054
|
+
*/
|
|
1947
4055
|
"firstLogoSrc"?: string;
|
|
4056
|
+
/**
|
|
4057
|
+
* Tooltip text of the first logo.
|
|
4058
|
+
*/
|
|
1948
4059
|
"firstLogoTooltip"?: string;
|
|
4060
|
+
/**
|
|
4061
|
+
* Alternative text for the happiness icon.
|
|
4062
|
+
*/
|
|
1949
4063
|
"happinessIconAlt"?: string;
|
|
1950
4064
|
/**
|
|
1951
|
-
*
|
|
4065
|
+
* Link URL of the happiness icon (left section).
|
|
1952
4066
|
*/
|
|
1953
4067
|
"happinessIconHref"?: string;
|
|
4068
|
+
/**
|
|
4069
|
+
* Image URL of the happiness icon.
|
|
4070
|
+
*/
|
|
1954
4071
|
"happinessIconSrc"?: string;
|
|
4072
|
+
/**
|
|
4073
|
+
* Tooltip text of the happiness icon.
|
|
4074
|
+
*/
|
|
1955
4075
|
"happinessIconTooltip"?: string;
|
|
4076
|
+
/**
|
|
4077
|
+
* Hides the middle logo section. The section shows only when this is explicitly `false`.
|
|
4078
|
+
*/
|
|
1956
4079
|
"hideMiddleSection"?: boolean;
|
|
1957
4080
|
/**
|
|
1958
|
-
*
|
|
4081
|
+
* Link URL of the location icon (right section).
|
|
1959
4082
|
*/
|
|
1960
4083
|
"locationButtonHref"?: string;
|
|
4084
|
+
/**
|
|
4085
|
+
* Not used: the current markup does not render it.
|
|
4086
|
+
*/
|
|
1961
4087
|
"locationButtonIcon"?: string;
|
|
4088
|
+
/**
|
|
4089
|
+
* Tooltip text and alternative text of the location icon.
|
|
4090
|
+
*/
|
|
1962
4091
|
"locationButtonText"?: string;
|
|
4092
|
+
/**
|
|
4093
|
+
* Image URL of the location icon.
|
|
4094
|
+
*/
|
|
1963
4095
|
"locationLogoSrc"?: string;
|
|
4096
|
+
/**
|
|
4097
|
+
* Link URL of the news icon (right section).
|
|
4098
|
+
*/
|
|
1964
4099
|
"newsButtonHref"?: string;
|
|
4100
|
+
/**
|
|
4101
|
+
* Not used: the current markup does not render it.
|
|
4102
|
+
*/
|
|
1965
4103
|
"newsButtonIcon"?: string;
|
|
4104
|
+
/**
|
|
4105
|
+
* Image URL of the news icon.
|
|
4106
|
+
*/
|
|
1966
4107
|
"newsButtonSrc"?: string;
|
|
4108
|
+
/**
|
|
4109
|
+
* Tooltip text and alternative text of the news icon.
|
|
4110
|
+
*/
|
|
1967
4111
|
"newsButtonText"?: string;
|
|
4112
|
+
/**
|
|
4113
|
+
* Alternative text for the second logo.
|
|
4114
|
+
*/
|
|
1968
4115
|
"secondLogoAlt"?: string;
|
|
4116
|
+
/**
|
|
4117
|
+
* Link URL of the second logo (middle section).
|
|
4118
|
+
*/
|
|
1969
4119
|
"secondLogoHref"?: string;
|
|
4120
|
+
/**
|
|
4121
|
+
* Image URL of the second logo.
|
|
4122
|
+
*/
|
|
1970
4123
|
"secondLogoSrc"?: string;
|
|
4124
|
+
/**
|
|
4125
|
+
* Tooltip text of the second logo.
|
|
4126
|
+
*/
|
|
1971
4127
|
"secondLogoTooltip"?: string;
|
|
4128
|
+
/**
|
|
4129
|
+
* Alternative text for the services icon.
|
|
4130
|
+
*/
|
|
1972
4131
|
"servicesIconAlt"?: string;
|
|
4132
|
+
/**
|
|
4133
|
+
* Link URL of the services icon (left section).
|
|
4134
|
+
*/
|
|
1973
4135
|
"servicesIconHref"?: string;
|
|
4136
|
+
/**
|
|
4137
|
+
* Image URL of the services icon.
|
|
4138
|
+
*/
|
|
1974
4139
|
"servicesIconSrc"?: string;
|
|
4140
|
+
/**
|
|
4141
|
+
* Text shown next to the services icon. Nothing is shown when it is not set.
|
|
4142
|
+
*/
|
|
1975
4143
|
"servicesIconText"?: string;
|
|
4144
|
+
/**
|
|
4145
|
+
* Tooltip text of the services icon.
|
|
4146
|
+
*/
|
|
1976
4147
|
"servicesIconTooltip"?: string;
|
|
4148
|
+
/**
|
|
4149
|
+
* Alternative text for the third logo.
|
|
4150
|
+
*/
|
|
1977
4151
|
"thirdLogoAlt"?: string;
|
|
4152
|
+
/**
|
|
4153
|
+
* Link URL of the third logo (middle section).
|
|
4154
|
+
*/
|
|
1978
4155
|
"thirdLogoHref"?: string;
|
|
4156
|
+
/**
|
|
4157
|
+
* Image URL of the third logo.
|
|
4158
|
+
*/
|
|
1979
4159
|
"thirdLogoSrc"?: string;
|
|
4160
|
+
/**
|
|
4161
|
+
* Tooltip text of the third logo.
|
|
4162
|
+
*/
|
|
1980
4163
|
"thirdLogoTooltip"?: string;
|
|
1981
4164
|
}
|
|
1982
4165
|
interface DdaTabs {
|
|
4166
|
+
/**
|
|
4167
|
+
* Accessible name for the tab group (`aria-label` on the `role="group"` container).
|
|
4168
|
+
*/
|
|
1983
4169
|
"aria_label"?: string;
|
|
1984
4170
|
/**
|
|
4171
|
+
* Not used by the component; it has no effect.
|
|
1985
4172
|
* @default false
|
|
1986
4173
|
*/
|
|
1987
4174
|
"border_bottom"?: boolean;
|
|
4175
|
+
/**
|
|
4176
|
+
* `id` set on every tab button.
|
|
4177
|
+
*/
|
|
1988
4178
|
"button_id"?: string;
|
|
4179
|
+
/**
|
|
4180
|
+
* `name` set on every tab button.
|
|
4181
|
+
*/
|
|
1989
4182
|
"button_name"?: string;
|
|
4183
|
+
/**
|
|
4184
|
+
* Theme override class on the tab group, e.g. `light-mode`.
|
|
4185
|
+
*/
|
|
1990
4186
|
"component_mode"?: string;
|
|
1991
4187
|
/**
|
|
4188
|
+
* Extra CSS classes added to the tab group.
|
|
1992
4189
|
* @default ''
|
|
1993
4190
|
*/
|
|
1994
4191
|
"custom_class"?: string;
|
|
1995
4192
|
/**
|
|
4193
|
+
* Style of the active and hovered tab: `dda-tab-default`, `dda-tab-filed`, `dda-tab-underline` or `dda-tab-underline-filled`.
|
|
1996
4194
|
* @default 'dda-tab-default'
|
|
1997
4195
|
*/
|
|
1998
4196
|
"hover_style"?: 'dda-tab-default' | 'dda-tab-filed' | 'dda-tab-underline' | 'dda-tab-underline-filled';
|
|
1999
|
-
"onTabClick"?: (event: DdaTabsCustomEvent<void>) => void;
|
|
2000
4197
|
/**
|
|
4198
|
+
* Fires when the user clicks a tab. `detail` is the tab index, a number from 0.
|
|
4199
|
+
*/
|
|
4200
|
+
"onTabClick"?: (event: DdaTabsCustomEvent<number>) => void;
|
|
4201
|
+
/**
|
|
4202
|
+
* Material Icons names, one per tab in the same order, as a JSON string array. Shown when `type` is `text-icon`.
|
|
2001
4203
|
* @default '["sentiment_satisfied", "sentiment_satisfied", "sentiment_satisfied"]'
|
|
2002
4204
|
*/
|
|
2003
4205
|
"tab_icons"?: string;
|
|
2004
4206
|
/**
|
|
4207
|
+
* Tab labels, as a JSON string array, e.g. `'["Details", "Documents"]'`.
|
|
2005
4208
|
* @default '["Tab 1", "Tab 2", "Tab 3"]'
|
|
2006
4209
|
*/
|
|
2007
4210
|
"tab_texts"?: string;
|
|
2008
4211
|
/**
|
|
4212
|
+
* Tab content: `text` (label only) or `text-icon` (icon from `tab_icons` before the label).
|
|
2009
4213
|
* @default 'text'
|
|
2010
4214
|
*/
|
|
2011
4215
|
"type"?: 'text' | 'text-icon';
|
|
2012
4216
|
}
|
|
2013
4217
|
interface DdaTextarea {
|
|
4218
|
+
/**
|
|
4219
|
+
* Accessible name of the textarea. Use it when there is no visible label.
|
|
4220
|
+
*/
|
|
2014
4221
|
"aria_label"?: string;
|
|
4222
|
+
/**
|
|
4223
|
+
* Theme override class for the field, e.g. `light-mode`.
|
|
4224
|
+
*/
|
|
2015
4225
|
"component_mode"?: string;
|
|
4226
|
+
/**
|
|
4227
|
+
* Extra CSS classes added to the field container.
|
|
4228
|
+
*/
|
|
2016
4229
|
"custom_class"?: string;
|
|
4230
|
+
/**
|
|
4231
|
+
* Replaces the textarea with a Quill rich text editor and toolbar.
|
|
4232
|
+
*/
|
|
2017
4233
|
"enable_rich_editor"?: boolean;
|
|
4234
|
+
/**
|
|
4235
|
+
* Error text shown below the field with the character count. When set, the field gets `aria-invalid="true"`.
|
|
4236
|
+
*/
|
|
2018
4237
|
"error_message"?: string;
|
|
4238
|
+
/**
|
|
4239
|
+
* Helper text shown below the field with the character count, linked with `aria-describedby`.
|
|
4240
|
+
*/
|
|
2019
4241
|
"helper_text"?: string;
|
|
4242
|
+
/**
|
|
4243
|
+
* `id` of the textarea or editor. Also used for the label and the helper and error text ids. Optional: an id is generated when it is not set.
|
|
4244
|
+
*/
|
|
2020
4245
|
"input_id"?: string;
|
|
4246
|
+
/**
|
|
4247
|
+
* Status style. `disabled` shows the disabled styling only; it does not set the native `disabled` attribute.
|
|
4248
|
+
*/
|
|
2021
4249
|
"input_status"?: string;
|
|
4250
|
+
/**
|
|
4251
|
+
* Visible label text, linked to the field through `input_id` (or a generated id).
|
|
4252
|
+
*/
|
|
2022
4253
|
"label"?: string;
|
|
4254
|
+
/**
|
|
4255
|
+
* Maximum number of characters (`maxlength` of the textarea), shown in the character count.
|
|
4256
|
+
*/
|
|
2023
4257
|
"max_characters"?: number;
|
|
4258
|
+
/**
|
|
4259
|
+
* Placeholder text of the textarea or the rich text editor.
|
|
4260
|
+
*/
|
|
2024
4261
|
"placeholder"?: string;
|
|
4262
|
+
/**
|
|
4263
|
+
* `name` of the textarea, submitted with its form.
|
|
4264
|
+
*/
|
|
2025
4265
|
"textarea_name"?: string;
|
|
4266
|
+
/**
|
|
4267
|
+
* Validation style. `error` shows the error colors.
|
|
4268
|
+
*/
|
|
2026
4269
|
"validation_type"?: string;
|
|
2027
4270
|
/**
|
|
4271
|
+
* Value of the textarea. Updates as the user types; in rich text mode it holds the editor HTML.
|
|
2028
4272
|
* @default ''
|
|
2029
4273
|
*/
|
|
2030
4274
|
"value"?: string;
|
|
2031
4275
|
}
|
|
2032
4276
|
interface DdaToggle {
|
|
4277
|
+
/**
|
|
4278
|
+
* Accessible name of the inner checkbox input. Set it when there is no `title_text`.
|
|
4279
|
+
*/
|
|
2033
4280
|
"aria_label"?: string;
|
|
4281
|
+
/**
|
|
4282
|
+
* Checked (on) state of the inner input. Read the current state from the input or its `change` event.
|
|
4283
|
+
*/
|
|
2034
4284
|
"checked"?: boolean;
|
|
4285
|
+
/**
|
|
4286
|
+
* Theme override class for the toggle, e.g. `light-mode`.
|
|
4287
|
+
*/
|
|
2035
4288
|
"component_mode"?: string;
|
|
2036
4289
|
/**
|
|
4290
|
+
* Extra CSS classes added to the toggle label.
|
|
2037
4291
|
* @default ''
|
|
2038
4292
|
*/
|
|
2039
4293
|
"custom_class"?: string;
|
|
4294
|
+
/**
|
|
4295
|
+
* `name` of the inner checkbox input.
|
|
4296
|
+
*/
|
|
2040
4297
|
"group_name"?: string;
|
|
4298
|
+
/**
|
|
4299
|
+
* `id` of the inner checkbox input.
|
|
4300
|
+
*/
|
|
2041
4301
|
"input_id"?: string;
|
|
4302
|
+
/**
|
|
4303
|
+
* Size: `sm`, `md` or `lg`.
|
|
4304
|
+
*/
|
|
2042
4305
|
"size"?: string;
|
|
4306
|
+
/**
|
|
4307
|
+
* Secondary text shown under the title.
|
|
4308
|
+
*/
|
|
4309
|
+
"supporting"?: string;
|
|
4310
|
+
/**
|
|
4311
|
+
* Label shown next to the switch. Nothing is shown when it is not set.
|
|
4312
|
+
*/
|
|
4313
|
+
"title_text"?: string;
|
|
2043
4314
|
}
|
|
2044
4315
|
interface DdaTooltip {
|
|
4316
|
+
/**
|
|
4317
|
+
* Theme class added to the tooltip container, e.g. `light-mode`. The tooltip styles do not change with it.
|
|
4318
|
+
*/
|
|
2045
4319
|
"component_mode"?: string;
|
|
2046
4320
|
/**
|
|
4321
|
+
* Extra CSS classes added to the tooltip container.
|
|
2047
4322
|
* @default ''
|
|
2048
4323
|
*/
|
|
2049
4324
|
"custom_class"?: string;
|
|
4325
|
+
/**
|
|
4326
|
+
* Text shown below the heading in the tooltip box.
|
|
4327
|
+
*/
|
|
2050
4328
|
"description"?: string;
|
|
2051
4329
|
/**
|
|
4330
|
+
* Side of the trigger where the box appears: `top`, `bottom`, `left` or `right`.
|
|
2052
4331
|
* @default 'top'
|
|
2053
4332
|
*/
|
|
2054
4333
|
"position"?: 'top' | 'bottom' | 'left' | 'right';
|
|
4334
|
+
/**
|
|
4335
|
+
* Bold heading shown in the tooltip box.
|
|
4336
|
+
*/
|
|
2055
4337
|
"title_text"?: string;
|
|
2056
4338
|
}
|
|
2057
4339
|
interface DdaUiCard {
|
|
2058
4340
|
/**
|
|
4341
|
+
* Heading level (1–6) of the title; pick the level that fits the page outline.
|
|
4342
|
+
* @default 3
|
|
4343
|
+
*/
|
|
4344
|
+
"heading_level"?: number;
|
|
4345
|
+
/**
|
|
4346
|
+
* Material Icons name shown at the top of the card, e.g. `description`.
|
|
2059
4347
|
* @default ''
|
|
2060
4348
|
*/
|
|
2061
4349
|
"icon"?: string;
|
|
2062
4350
|
/**
|
|
4351
|
+
* URL of an image shown at the top of the card. Its alt text is `maintitle`.
|
|
2063
4352
|
* @default ''
|
|
2064
4353
|
*/
|
|
2065
4354
|
"image"?: string;
|
|
2066
4355
|
/**
|
|
4356
|
+
* URL of the card link. The link shows only when this is set.
|
|
2067
4357
|
* @default ''
|
|
2068
4358
|
*/
|
|
2069
4359
|
"link"?: string;
|
|
2070
4360
|
/**
|
|
4361
|
+
* Material Icons name shown after the link text. Set it to an empty string to hide the icon.
|
|
2071
4362
|
* @default 'arrow_forward'
|
|
2072
4363
|
*/
|
|
2073
4364
|
"linkicon"?: string;
|
|
2074
4365
|
/**
|
|
4366
|
+
* Text of the card link.
|
|
2075
4367
|
* @default ''
|
|
2076
4368
|
*/
|
|
2077
4369
|
"linktext"?: string;
|
|
2078
4370
|
/**
|
|
4371
|
+
* Card title, rendered as a heading at `heading_level`.
|
|
2079
4372
|
* @default ''
|
|
2080
4373
|
*/
|
|
2081
4374
|
"maintitle"?: string;
|
|
2082
|
-
"onLinkClick"?: (event: DdaUiCardCustomEvent<void>) => void;
|
|
2083
4375
|
/**
|
|
4376
|
+
* Emitted when the user clicks the card link. `detail` is the original click `MouseEvent`; call `detail.preventDefault()` to stop the navigation.
|
|
4377
|
+
*/
|
|
4378
|
+
"onLinkClick"?: (event: DdaUiCardCustomEvent<MouseEvent>) => void;
|
|
4379
|
+
/**
|
|
4380
|
+
* Muted text shown below the title.
|
|
2084
4381
|
* @default ''
|
|
2085
4382
|
*/
|
|
2086
4383
|
"subtitle"?: string;
|
|
2087
4384
|
/**
|
|
4385
|
+
* `default` renders the icon, image, title, subtitle and link from props before the slot; `custom` renders only the slot.
|
|
2088
4386
|
* @default 'default'
|
|
2089
4387
|
*/
|
|
2090
4388
|
"type"?: 'default' | 'custom';
|
|
2091
4389
|
}
|
|
2092
4390
|
interface DdaVerticalStepper {
|
|
4391
|
+
/**
|
|
4392
|
+
* Class added to the stepper container, e.g. `light-mode`.
|
|
4393
|
+
*/
|
|
2093
4394
|
"component_mode"?: string;
|
|
2094
4395
|
/**
|
|
4396
|
+
* @deprecated Use `current_step`. Its attribute is `current_-step`, so it never worked in HTML.
|
|
2095
4397
|
* @default 0
|
|
2096
4398
|
*/
|
|
2097
4399
|
"current_Step"?: number;
|
|
2098
4400
|
/**
|
|
4401
|
+
* Index of the current step, from 0. Steps up to and including it are active.
|
|
4402
|
+
*/
|
|
4403
|
+
"current_step"?: number;
|
|
4404
|
+
/**
|
|
4405
|
+
* Extra CSS classes added to the stepper container.
|
|
2099
4406
|
* @default ''
|
|
2100
4407
|
*/
|
|
2101
4408
|
"custom_class"?: string;
|
|
4409
|
+
/**
|
|
4410
|
+
* Steps, as a JSON string array of `{ icon, title, subtitle, description }` objects. `icon` is a Material Icons name.
|
|
4411
|
+
*/
|
|
2102
4412
|
"steps"?: string;
|
|
2103
4413
|
}
|
|
2104
4414
|
|
|
@@ -2124,6 +4434,8 @@ declare namespace LocalJSX {
|
|
|
2124
4434
|
"first_button": string;
|
|
2125
4435
|
"second_button": string;
|
|
2126
4436
|
"button_name": string;
|
|
4437
|
+
"close_button_label": string;
|
|
4438
|
+
"heading_level": number;
|
|
2127
4439
|
}
|
|
2128
4440
|
interface DdaAttachFileAttributes {
|
|
2129
4441
|
"label": string;
|
|
@@ -2162,12 +4474,14 @@ declare namespace LocalJSX {
|
|
|
2162
4474
|
"slides": string;
|
|
2163
4475
|
"slider_width": string;
|
|
2164
4476
|
"slider_height": string;
|
|
4477
|
+
"aria_label": string;
|
|
2165
4478
|
}
|
|
2166
4479
|
interface DdaBreadcrumbAttributes {
|
|
2167
4480
|
"design": 'text' | 'icon-text' | 'icon';
|
|
2168
4481
|
"separator": 'chevron_right' | 'pen_size_2';
|
|
2169
4482
|
"custom_class": string;
|
|
2170
4483
|
"component_mode": string;
|
|
4484
|
+
"breadcrumbs": string | BreadcrumbItem[];
|
|
2171
4485
|
}
|
|
2172
4486
|
interface DdaButtonAttributes {
|
|
2173
4487
|
"type": string;
|
|
@@ -2203,6 +4517,7 @@ declare namespace LocalJSX {
|
|
|
2203
4517
|
"rounded": string;
|
|
2204
4518
|
"icon": string;
|
|
2205
4519
|
"show_close_icon": boolean;
|
|
4520
|
+
"close_button_label": string;
|
|
2206
4521
|
"size": string;
|
|
2207
4522
|
"custom_class": string;
|
|
2208
4523
|
"component_mode": string;
|
|
@@ -2251,15 +4566,18 @@ declare namespace LocalJSX {
|
|
|
2251
4566
|
"aria_label": string;
|
|
2252
4567
|
"arrow_button_name": string;
|
|
2253
4568
|
"dropdown_button_name": string;
|
|
4569
|
+
"toggle_button_label": string;
|
|
2254
4570
|
}
|
|
2255
4571
|
interface DdaFooterAttributes {
|
|
2256
4572
|
"footerTitle": string;
|
|
4573
|
+
"heading_level": number;
|
|
2257
4574
|
"description": string;
|
|
2258
4575
|
"signUpButtonText": string;
|
|
2259
4576
|
"loginButtonText": string;
|
|
2260
4577
|
"logoSrc": string;
|
|
2261
4578
|
"logoAlt": string;
|
|
2262
4579
|
"copyrightText": string;
|
|
4580
|
+
"logoDescription": string;
|
|
2263
4581
|
"footerSections": string;
|
|
2264
4582
|
"socialIcons": string;
|
|
2265
4583
|
}
|
|
@@ -2267,9 +4585,11 @@ declare namespace LocalJSX {
|
|
|
2267
4585
|
"firstLogoSrc": string;
|
|
2268
4586
|
"firstLogoWhiteSrc": string;
|
|
2269
4587
|
"firstLogoAlt": string;
|
|
4588
|
+
"firstLogoHref": string;
|
|
2270
4589
|
"secondLogoSrc": string;
|
|
2271
4590
|
"secondLogoWhiteSrc": string;
|
|
2272
4591
|
"secondLogoAlt": string;
|
|
4592
|
+
"secondLogoHref": string;
|
|
2273
4593
|
"loginLink": string;
|
|
2274
4594
|
"sideMenuItems": string;
|
|
2275
4595
|
"quickLinks": string;
|
|
@@ -2278,10 +4598,13 @@ declare namespace LocalJSX {
|
|
|
2278
4598
|
"loginIcon": string;
|
|
2279
4599
|
"loginText": string;
|
|
2280
4600
|
"language_text": string;
|
|
4601
|
+
"language_lang": string;
|
|
2281
4602
|
"hamburger_menu_button_name": string;
|
|
4603
|
+
"menu_button_label": string;
|
|
2282
4604
|
"accessibility_button_name": string;
|
|
2283
4605
|
"search_button_name": string;
|
|
2284
4606
|
"search_input_name": string;
|
|
4607
|
+
"search_action": string;
|
|
2285
4608
|
"language_button_name": string;
|
|
2286
4609
|
"close_menu_button_name": string;
|
|
2287
4610
|
"close_accessibility_button_name": string;
|
|
@@ -2320,6 +4643,7 @@ declare namespace LocalJSX {
|
|
|
2320
4643
|
"input_id": string;
|
|
2321
4644
|
"aria_label": string;
|
|
2322
4645
|
"input_name": string;
|
|
4646
|
+
"autocomplete": string;
|
|
2323
4647
|
}
|
|
2324
4648
|
interface DdaLinkButtonAttributes {
|
|
2325
4649
|
"type": string;
|
|
@@ -2355,6 +4679,7 @@ declare namespace LocalJSX {
|
|
|
2355
4679
|
"input_name": string;
|
|
2356
4680
|
"toggle_button_name": string;
|
|
2357
4681
|
"currency_button_name": string;
|
|
4682
|
+
"toggle_button_label": string;
|
|
2358
4683
|
}
|
|
2359
4684
|
interface DdaPaginationAttributes {
|
|
2360
4685
|
"total_pages": number;
|
|
@@ -2374,6 +4699,8 @@ declare namespace LocalJSX {
|
|
|
2374
4699
|
"button_text_next_button": string;
|
|
2375
4700
|
"buttons_pages_prev_button": string;
|
|
2376
4701
|
"buttons_pages_next_button": string;
|
|
4702
|
+
"previous_button_label": string;
|
|
4703
|
+
"next_button_label": string;
|
|
2377
4704
|
}
|
|
2378
4705
|
interface DdaPhonefieldAttributes {
|
|
2379
4706
|
"label": string;
|
|
@@ -2391,6 +4718,7 @@ declare namespace LocalJSX {
|
|
|
2391
4718
|
"button_aria_label": string;
|
|
2392
4719
|
"toggle_button_name": string;
|
|
2393
4720
|
"country_select_button_name": string;
|
|
4721
|
+
"toggle_button_label": string;
|
|
2394
4722
|
"phone_input_name": string;
|
|
2395
4723
|
"autocomplete": string;
|
|
2396
4724
|
}
|
|
@@ -2450,6 +4778,7 @@ declare namespace LocalJSX {
|
|
|
2450
4778
|
"button_aria_label": string;
|
|
2451
4779
|
"search_input_name": string;
|
|
2452
4780
|
"close_button_name": string;
|
|
4781
|
+
"clear_button_label": string;
|
|
2453
4782
|
"search_button_name": string;
|
|
2454
4783
|
}
|
|
2455
4784
|
interface DdaSegmentedTabsAttributes {
|
|
@@ -2460,6 +4789,7 @@ declare namespace LocalJSX {
|
|
|
2460
4789
|
"button_name": string;
|
|
2461
4790
|
"aria_label": string;
|
|
2462
4791
|
"selected_index": number;
|
|
4792
|
+
"icon_labels": string;
|
|
2463
4793
|
}
|
|
2464
4794
|
interface DdaSelectAttributes {
|
|
2465
4795
|
"label": string;
|
|
@@ -2519,6 +4849,7 @@ declare namespace LocalJSX {
|
|
|
2519
4849
|
"chatIconSrc": string;
|
|
2520
4850
|
"chatIconAlt": string;
|
|
2521
4851
|
"chatIconTooltip": string;
|
|
4852
|
+
"aria_label": string;
|
|
2522
4853
|
"hideMiddleSection": boolean;
|
|
2523
4854
|
}
|
|
2524
4855
|
interface DdaTabsAttributes {
|
|
@@ -2557,6 +4888,8 @@ declare namespace LocalJSX {
|
|
|
2557
4888
|
"input_id": string;
|
|
2558
4889
|
"component_mode": string;
|
|
2559
4890
|
"aria_label": string;
|
|
4891
|
+
"title_text": string;
|
|
4892
|
+
"supporting": string;
|
|
2560
4893
|
}
|
|
2561
4894
|
interface DdaTooltipAttributes {
|
|
2562
4895
|
"title_text": string;
|
|
@@ -2574,9 +4907,11 @@ declare namespace LocalJSX {
|
|
|
2574
4907
|
"link": string;
|
|
2575
4908
|
"linktext": string;
|
|
2576
4909
|
"linkicon": string;
|
|
4910
|
+
"heading_level": number;
|
|
2577
4911
|
}
|
|
2578
4912
|
interface DdaVerticalStepperAttributes {
|
|
2579
4913
|
"steps": string;
|
|
4914
|
+
"current_step": number;
|
|
2580
4915
|
"current_Step": number;
|
|
2581
4916
|
"custom_class": string;
|
|
2582
4917
|
"component_mode": string;
|