@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.
Files changed (316) hide show
  1. package/CHANGELOG.md +233 -1
  2. package/MIGRATION.md +423 -0
  3. package/dist/cjs/dda-accordion.cjs.entry.js +12 -7
  4. package/dist/cjs/dda-alert.cjs.entry.js +20 -3
  5. package/dist/cjs/dda-attach-file.cjs.entry.js +24 -8
  6. package/dist/cjs/dda-avatar.cjs.entry.js +23 -12
  7. package/dist/cjs/dda-banner.cjs.entry.js +14 -5
  8. package/dist/cjs/dda-breadcrumb.cjs.entry.js +22 -10
  9. package/dist/cjs/dda-button.cjs.entry.js +16 -9
  10. package/dist/cjs/dda-checkbox.cjs.entry.js +5 -4
  11. package/dist/cjs/dda-chip.cjs.entry.js +8 -3
  12. package/dist/cjs/dda-credit-card.cjs.entry.js +5 -3
  13. package/dist/cjs/dda-creditcard-field.cjs.entry.js +26 -8
  14. package/dist/cjs/dda-dropdown.cjs.entry.js +31 -5
  15. package/dist/cjs/dda-footer.cjs.entry.js +9 -3
  16. package/dist/cjs/dda-header.cjs.entry.js +88 -8
  17. package/dist/cjs/dda-home-banner.cjs.entry.js +11 -5
  18. package/dist/cjs/dda-horizontal-stepper.cjs.entry.js +22 -5
  19. package/dist/cjs/dda-input.cjs.entry.js +17 -10
  20. package/dist/cjs/dda-link-button_2.cjs.entry.js +21 -13
  21. package/dist/cjs/dda-number-field.cjs.entry.js +20 -8
  22. package/dist/cjs/dda-pagination.cjs.entry.js +21 -11
  23. package/dist/cjs/dda-phonefield.cjs.entry.js +27 -9
  24. package/dist/cjs/dda-progressbar.cjs.entry.js +8 -3
  25. package/dist/cjs/dda-range-slider.cjs.entry.js +15 -3
  26. package/dist/cjs/dda-search-input.cjs.entry.js +27 -12
  27. package/dist/cjs/dda-segmented-tabs.cjs.entry.js +54 -6
  28. package/dist/cjs/dda-select.cjs.entry.js +40 -8
  29. package/dist/cjs/dda-sticky-footer.cjs.entry.js +20 -3
  30. package/dist/cjs/dda-tabs.cjs.entry.js +10 -4
  31. package/dist/cjs/dda-textarea.cjs.entry.js +22 -12
  32. package/dist/cjs/dda-toggle.cjs.entry.js +5 -4
  33. package/dist/cjs/dda-tooltip.cjs.entry.js +6 -4
  34. package/dist/cjs/dda-ui-card.cjs.entry.js +19 -2
  35. package/dist/cjs/dda-vertical-stepper.cjs.entry.js +23 -3
  36. package/dist/cjs/dda.cjs.js +2 -2
  37. package/dist/cjs/index-Bgd2iAET.js +2116 -0
  38. package/dist/cjs/loader.cjs.js +2 -2
  39. package/dist/cjs/unique-id-DahNGdQy.js +14 -0
  40. package/dist/collection/collection-manifest.json +1 -1
  41. package/dist/collection/components/dda-accordion/dda-accordion.js +16 -11
  42. package/dist/collection/components/dda-alert/dda-alert.js +74 -17
  43. package/dist/collection/components/dda-alert/dda-alert.stories.js +2 -8
  44. package/dist/collection/components/dda-attach-file/dda-attach-file.js +35 -19
  45. package/dist/collection/components/dda-attach-file/dda-attach-file.stories.js +0 -9
  46. package/dist/collection/components/dda-avatar/dda-avatar.js +53 -25
  47. package/dist/collection/components/dda-avatar/dda-avatar.stories.js +1 -1
  48. package/dist/collection/components/dda-banner/dda-banner.css +35 -0
  49. package/dist/collection/components/dda-banner/dda-banner.js +34 -5
  50. package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js +49 -12
  51. package/dist/collection/components/dda-button/dda-button.js +29 -22
  52. package/dist/collection/components/dda-checkbox/dda-checkbox.css +13 -0
  53. package/dist/collection/components/dda-checkbox/dda-checkbox.js +13 -12
  54. package/dist/collection/components/dda-checkbox/dda-checkbox.stories.js +0 -11
  55. package/dist/collection/components/dda-chip/dda-chip.js +34 -9
  56. package/dist/collection/components/dda-chip/dda-chip.stories.js +0 -11
  57. package/dist/collection/components/dda-credit-card/dda-credit-card.js +10 -8
  58. package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.js +58 -23
  59. package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.stories.js +1 -10
  60. package/dist/collection/components/dda-dropdown/dda-dropdown.js +90 -18
  61. package/dist/collection/components/dda-dropdown/dda-dropdown.stories.js +0 -4
  62. package/dist/collection/components/dda-footer/dda-footer.js +57 -10
  63. package/dist/collection/components/dda-footer/dda-footer.stories.js +5 -4
  64. package/dist/collection/components/dda-header/dda-header.css +11 -0
  65. package/dist/collection/components/dda-header/dda-header.js +232 -37
  66. package/dist/collection/components/dda-header/dda-header.stories.js +12 -21
  67. package/dist/collection/components/dda-home-banner/dda-home-banner.js +8 -2
  68. package/dist/collection/components/dda-home-banner/home-banner.css +23 -2
  69. package/dist/collection/components/dda-input/dda-input.js +47 -21
  70. package/dist/collection/components/dda-input/dda-input.stories.js +0 -13
  71. package/dist/collection/components/dda-link-button/dda-link-button.js +30 -23
  72. package/dist/collection/components/dda-number-field/dda-number-field.js +54 -22
  73. package/dist/collection/components/dda-number-field/dda-number-field.stories.js +0 -9
  74. package/dist/collection/components/dda-pagination/dda-pagination.js +95 -28
  75. package/dist/collection/components/dda-pagination/dda-pagination.stories.js +24 -24
  76. package/dist/collection/components/dda-phonefield/dda-phonefield.js +62 -24
  77. package/dist/collection/components/dda-phonefield/dda-phonefield.stories.js +0 -13
  78. package/dist/collection/components/dda-progressbar/dda-progressbar.js +13 -8
  79. package/dist/collection/components/dda-radiobutton/dda-radiobutton.css +156 -25
  80. package/dist/collection/components/dda-radiobutton/dda-radiobutton.js +13 -12
  81. package/dist/collection/components/dda-radiobutton/dda-radiobutton.stories.js +5 -16
  82. package/dist/collection/components/dda-range-slider/dda-range-slider.js +29 -17
  83. package/dist/collection/components/dda-search-input/dda-search-input.js +61 -26
  84. package/dist/collection/components/dda-search-input/dda-search-input.stories.js +0 -9
  85. package/dist/collection/components/dda-select/dda-select.js +78 -20
  86. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js +80 -43
  87. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.stories.js +1 -1
  88. package/dist/collection/components/dda-tabs/dda-tabs.js +21 -15
  89. package/dist/collection/components/dda-tabs/dda-tabs.stories.js +3 -10
  90. package/dist/collection/components/dda-textarea/dda-textarea.js +33 -23
  91. package/dist/collection/components/dda-textarea/dda-textarea.stories.js +0 -9
  92. package/dist/collection/components/dda-toggle/dda-toggle.css +9 -0
  93. package/dist/collection/components/dda-toggle/dda-toggle.js +47 -8
  94. package/dist/collection/components/dda-toggle/dda-toggle.stories.js +10 -22
  95. package/dist/collection/components/dda-tooltip/dda-tooltip.js +9 -7
  96. package/dist/collection/components/dda-ui-card/dda-ui-card.js +55 -13
  97. package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.js +79 -11
  98. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.css +4 -1
  99. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.js +24 -6
  100. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.stories.js +2 -2
  101. package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.js +49 -6
  102. package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.stories.js +2 -2
  103. package/dist/collection/global/global.css +152 -25
  104. package/dist/collection/global/input.css +56 -2
  105. package/dist/collection/storybook/component-api.js +15 -0
  106. package/dist/collection/utils/placeholder-color.js +89 -0
  107. package/dist/collection/utils/unique-id.js +10 -0
  108. package/dist/components/dda-accordion.js +1 -1
  109. package/dist/components/dda-alert.js +1 -1
  110. package/dist/components/dda-attach-file.js +1 -1
  111. package/dist/components/dda-avatar.js +1 -1
  112. package/dist/components/dda-banner.js +1 -1
  113. package/dist/components/dda-breadcrumb.js +1 -1
  114. package/dist/components/dda-button.js +1 -1
  115. package/dist/components/dda-checkbox.js +1 -1
  116. package/dist/components/dda-chip.js +1 -1
  117. package/dist/components/dda-credit-card.js +1 -1
  118. package/dist/components/dda-creditcard-field.js +1 -1
  119. package/dist/components/dda-dropdown.js +1 -1
  120. package/dist/components/dda-footer.js +1 -1
  121. package/dist/components/dda-header.js +1 -1
  122. package/dist/components/dda-home-banner.js +1 -1
  123. package/dist/components/dda-horizontal-stepper.js +1 -1
  124. package/dist/components/dda-input.js +1 -1
  125. package/dist/components/dda-link-button.js +1 -1
  126. package/dist/components/dda-number-field.js +1 -1
  127. package/dist/components/dda-pagination.js +1 -1
  128. package/dist/components/dda-phonefield.js +1 -1
  129. package/dist/components/dda-progressbar.js +1 -1
  130. package/dist/components/dda-radiobutton.js +1 -1
  131. package/dist/components/dda-range-slider.js +1 -1
  132. package/dist/components/dda-search-input.js +1 -1
  133. package/dist/components/dda-segmented-tabs.js +1 -1
  134. package/dist/components/dda-select.js +1 -1
  135. package/dist/components/dda-sticky-footer.js +1 -1
  136. package/dist/components/dda-tabs.js +1 -1
  137. package/dist/components/dda-textarea.js +1 -1
  138. package/dist/components/dda-toggle.js +1 -1
  139. package/dist/components/dda-tooltip.js +1 -1
  140. package/dist/components/dda-ui-card.js +1 -1
  141. package/dist/components/dda-vertical-stepper.js +1 -1
  142. package/dist/components/index.js +1 -1
  143. package/dist/components/p-B-I003EB.js +1 -0
  144. package/dist/components/p-Bc2V1U4_.js +1 -0
  145. package/dist/components/p-Bzqf-PpF.js +1 -0
  146. package/dist/components/p-D-CHT-as.js +1 -0
  147. package/dist/components/p-DJw8qV7U.js +1 -0
  148. package/dist/components/p-DpwQ9sGp.js +1 -0
  149. package/dist/dda/dda.css +2 -2
  150. package/dist/dda/dda.esm.js +1 -1
  151. package/dist/dda/p-03400387.entry.js +1 -0
  152. package/dist/dda/p-04bcda8a.entry.js +1 -0
  153. package/dist/dda/p-18a3d7b1.entry.js +1 -0
  154. package/dist/dda/p-1f7b8486.entry.js +1 -0
  155. package/dist/dda/p-3024288f.entry.js +1 -0
  156. package/dist/dda/p-41b8ed7d.entry.js +1 -0
  157. package/dist/dda/p-56f60336.entry.js +1 -0
  158. package/dist/dda/p-65776d80.entry.js +1 -0
  159. package/dist/dda/p-73611084.entry.js +1 -0
  160. package/dist/dda/p-7ad8cde9.entry.js +1 -0
  161. package/dist/dda/p-8134e59d.entry.js +1 -0
  162. package/dist/dda/p-8494fd9e.entry.js +1 -0
  163. package/dist/dda/p-876d55b2.entry.js +1 -0
  164. package/dist/dda/p-88d884a8.entry.js +1 -0
  165. package/dist/dda/p-8b25ae94.entry.js +1 -0
  166. package/dist/dda/p-8f376986.entry.js +1 -0
  167. package/dist/dda/p-90019b80.entry.js +1 -0
  168. package/dist/dda/p-92fa4777.entry.js +1 -0
  169. package/dist/dda/p-97431faf.entry.js +1 -0
  170. package/dist/dda/p-B-I003EB.js +1 -0
  171. package/dist/dda/p-D6L6zgH9.js +2 -0
  172. package/dist/dda/p-a5456de2.entry.js +1 -0
  173. package/dist/dda/p-aa7b4c13.entry.js +1 -0
  174. package/dist/dda/p-ad40eb27.entry.js +1 -0
  175. package/dist/dda/p-c055f0d2.entry.js +1 -0
  176. package/dist/dda/p-c42c8733.entry.js +1 -0
  177. package/dist/dda/p-c77282be.entry.js +1 -0
  178. package/dist/dda/p-ca64abe6.entry.js +1 -0
  179. package/dist/dda/p-ceca8088.entry.js +1 -0
  180. package/dist/dda/p-d6786b43.entry.js +1 -0
  181. package/dist/dda/p-e2113e42.entry.js +1 -0
  182. package/dist/dda/p-ee862207.entry.js +1 -0
  183. package/dist/dda/p-ef38e28b.entry.js +1 -0
  184. package/dist/dda/p-f43fb910.entry.js +1 -0
  185. package/dist/dda/p-fb4db977.entry.js +1 -0
  186. package/dist/esm/dda-accordion.entry.js +12 -7
  187. package/dist/esm/dda-alert.entry.js +20 -3
  188. package/dist/esm/dda-attach-file.entry.js +24 -8
  189. package/dist/esm/dda-avatar.entry.js +23 -12
  190. package/dist/esm/dda-banner.entry.js +14 -5
  191. package/dist/esm/dda-breadcrumb.entry.js +22 -10
  192. package/dist/esm/dda-button.entry.js +16 -9
  193. package/dist/esm/dda-checkbox.entry.js +5 -4
  194. package/dist/esm/dda-chip.entry.js +8 -3
  195. package/dist/esm/dda-credit-card.entry.js +5 -3
  196. package/dist/esm/dda-creditcard-field.entry.js +26 -8
  197. package/dist/esm/dda-dropdown.entry.js +31 -5
  198. package/dist/esm/dda-footer.entry.js +9 -3
  199. package/dist/esm/dda-header.entry.js +88 -8
  200. package/dist/esm/dda-home-banner.entry.js +11 -5
  201. package/dist/esm/dda-horizontal-stepper.entry.js +22 -5
  202. package/dist/esm/dda-input.entry.js +17 -10
  203. package/dist/esm/dda-link-button_2.entry.js +21 -13
  204. package/dist/esm/dda-number-field.entry.js +20 -8
  205. package/dist/esm/dda-pagination.entry.js +21 -11
  206. package/dist/esm/dda-phonefield.entry.js +27 -9
  207. package/dist/esm/dda-progressbar.entry.js +8 -3
  208. package/dist/esm/dda-range-slider.entry.js +15 -3
  209. package/dist/esm/dda-search-input.entry.js +27 -12
  210. package/dist/esm/dda-segmented-tabs.entry.js +54 -6
  211. package/dist/esm/dda-select.entry.js +40 -8
  212. package/dist/esm/dda-sticky-footer.entry.js +20 -3
  213. package/dist/esm/dda-tabs.entry.js +10 -4
  214. package/dist/esm/dda-textarea.entry.js +22 -12
  215. package/dist/esm/dda-toggle.entry.js +5 -4
  216. package/dist/esm/dda-tooltip.entry.js +6 -4
  217. package/dist/esm/dda-ui-card.entry.js +19 -2
  218. package/dist/esm/dda-vertical-stepper.entry.js +23 -3
  219. package/dist/esm/dda.js +3 -3
  220. package/dist/esm/index-D6L6zgH9.js +2106 -0
  221. package/dist/esm/loader.js +3 -3
  222. package/dist/esm/unique-id-B-I003EB.js +12 -0
  223. package/dist/types/components/dda-accordion/dda-accordion.d.ts +6 -0
  224. package/dist/types/components/dda-alert/dda-alert.d.ts +21 -0
  225. package/dist/types/components/dda-attach-file/dda-attach-file.d.ts +17 -0
  226. package/dist/types/components/dda-attach-file/dda-attach-file.stories.d.ts +0 -4
  227. package/dist/types/components/dda-avatar/dda-avatar.d.ts +20 -0
  228. package/dist/types/components/dda-banner/dda-banner.d.ts +5 -0
  229. package/dist/types/components/dda-breadcrumb/dda-breadcrumb.d.ts +12 -6
  230. package/dist/types/components/dda-button/dda-button.d.ts +15 -4
  231. package/dist/types/components/dda-checkbox/dda-checkbox.d.ts +11 -0
  232. package/dist/types/components/dda-checkbox/dda-checkbox.stories.d.ts +0 -10
  233. package/dist/types/components/dda-chip/dda-chip.d.ts +10 -0
  234. package/dist/types/components/dda-chip/dda-chip.stories.d.ts +0 -6
  235. package/dist/types/components/dda-credit-card/dda-credit-card.d.ts +7 -0
  236. package/dist/types/components/dda-creditcard-field/dda-creditcard-field.d.ts +24 -0
  237. package/dist/types/components/dda-creditcard-field/dda-creditcard-field.stories.d.ts +0 -6
  238. package/dist/types/components/dda-dropdown/dda-dropdown.d.ts +25 -0
  239. package/dist/types/components/dda-dropdown/dda-dropdown.stories.d.ts +0 -4
  240. package/dist/types/components/dda-footer/dda-footer.d.ts +13 -0
  241. package/dist/types/components/dda-header/dda-header.d.ts +62 -0
  242. package/dist/types/components/dda-header/dda-header.stories.d.ts +6 -0
  243. package/dist/types/components/dda-home-banner/dda-home-banner.d.ts +1 -0
  244. package/dist/types/components/dda-input/dda-input.d.ts +18 -0
  245. package/dist/types/components/dda-input/dda-input.stories.d.ts +0 -6
  246. package/dist/types/components/dda-link-button/dda-link-button.d.ts +14 -3
  247. package/dist/types/components/dda-number-field/dda-number-field.d.ts +21 -0
  248. package/dist/types/components/dda-number-field/dda-number-field.stories.d.ts +0 -6
  249. package/dist/types/components/dda-pagination/dda-pagination.d.ts +26 -0
  250. package/dist/types/components/dda-phonefield/dda-phonefield.d.ts +21 -0
  251. package/dist/types/components/dda-phonefield/dda-phonefield.stories.d.ts +0 -6
  252. package/dist/types/components/dda-progressbar/dda-progressbar.d.ts +7 -0
  253. package/dist/types/components/dda-radiobutton/dda-radiobutton.d.ts +11 -0
  254. package/dist/types/components/dda-radiobutton/dda-radiobutton.stories.d.ts +5 -15
  255. package/dist/types/components/dda-range-slider/dda-range-slider.d.ts +16 -0
  256. package/dist/types/components/dda-search-input/dda-search-input.d.ts +21 -0
  257. package/dist/types/components/dda-search-input/dda-search-input.stories.d.ts +0 -6
  258. package/dist/types/components/dda-select/dda-select.d.ts +23 -0
  259. package/dist/types/components/dda-sticky-footer/dda-sticky-footer.d.ts +46 -3
  260. package/dist/types/components/dda-tabs/dda-tabs.d.ts +12 -1
  261. package/dist/types/components/dda-tabs/dda-tabs.stories.d.ts +0 -4
  262. package/dist/types/components/dda-textarea/dda-textarea.d.ts +16 -0
  263. package/dist/types/components/dda-textarea/dda-textarea.stories.d.ts +0 -6
  264. package/dist/types/components/dda-toggle/dda-toggle.d.ts +11 -0
  265. package/dist/types/components/dda-toggle/dda-toggle.stories.d.ts +2 -12
  266. package/dist/types/components/dda-tooltip/dda-tooltip.d.ts +5 -0
  267. package/dist/types/components/dda-ui-card/dda-ui-card.d.ts +13 -1
  268. package/dist/types/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.d.ts +19 -2
  269. package/dist/types/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.d.ts +6 -0
  270. package/dist/types/components/stepper/dda-vertical-stepper/dda-vertical-stepper.d.ts +8 -0
  271. package/dist/types/components.d.ts +2373 -38
  272. package/dist/types/utils/placeholder-color.d.ts +10 -0
  273. package/dist/types/utils/unique-id.d.ts +6 -0
  274. package/package.json +4 -3
  275. package/readme.md +6 -0
  276. package/dist/cjs/index-CDUC0Pdj.js +0 -1986
  277. package/dist/components/p-9UeqjDnY.js +0 -1
  278. package/dist/components/p-CrTEb7xH.js +0 -1
  279. package/dist/components/p-DldlmGnP.js +0 -1
  280. package/dist/components/p-NvTw9Mx1.js +0 -1
  281. package/dist/components/p-i15-_er0.js +0 -1
  282. package/dist/dda/p-016e4090.entry.js +0 -1
  283. package/dist/dda/p-0229b303.entry.js +0 -1
  284. package/dist/dda/p-05a6f90d.entry.js +0 -1
  285. package/dist/dda/p-1c9a6035.entry.js +0 -1
  286. package/dist/dda/p-2c313105.entry.js +0 -1
  287. package/dist/dda/p-2cec7be6.entry.js +0 -1
  288. package/dist/dda/p-2f4ace4c.entry.js +0 -1
  289. package/dist/dda/p-360a0577.entry.js +0 -1
  290. package/dist/dda/p-3e49128d.entry.js +0 -1
  291. package/dist/dda/p-3fa27728.entry.js +0 -1
  292. package/dist/dda/p-43e1c12f.entry.js +0 -1
  293. package/dist/dda/p-4428417d.entry.js +0 -1
  294. package/dist/dda/p-44ce832e.entry.js +0 -1
  295. package/dist/dda/p-560a3f0c.entry.js +0 -1
  296. package/dist/dda/p-5712bbd9.entry.js +0 -1
  297. package/dist/dda/p-626d7e7b.entry.js +0 -1
  298. package/dist/dda/p-68008c64.entry.js +0 -1
  299. package/dist/dda/p-6f3d9f78.entry.js +0 -1
  300. package/dist/dda/p-79db1218.entry.js +0 -1
  301. package/dist/dda/p-84911fab.entry.js +0 -1
  302. package/dist/dda/p-90d9648b.entry.js +0 -1
  303. package/dist/dda/p-91040abe.entry.js +0 -1
  304. package/dist/dda/p-Cq6A4mXg.js +0 -2
  305. package/dist/dda/p-a1421a54.entry.js +0 -1
  306. package/dist/dda/p-a22b1c56.entry.js +0 -1
  307. package/dist/dda/p-aa0e9035.entry.js +0 -1
  308. package/dist/dda/p-b2981646.entry.js +0 -1
  309. package/dist/dda/p-c1f45887.entry.js +0 -1
  310. package/dist/dda/p-c50e1141.entry.js +0 -1
  311. package/dist/dda/p-d8a9cab1.entry.js +0 -1
  312. package/dist/dda/p-dd966009.entry.js +0 -1
  313. package/dist/dda/p-ed099201.entry.js +0 -1
  314. package/dist/dda/p-f4bd2b2e.entry.js +0 -1
  315. package/dist/dda/p-fc30c60e.entry.js +0 -1
  316. package/dist/esm/index-Cq6A4mXg.js +0 -1976
@@ -1,40 +1,94 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  export declare class DdaHeader {
3
+ el: HTMLElement;
4
+ /** Image URL of the first (government) logo, on the left of the header and in the side menu. */
3
5
  firstLogoSrc: string;
6
+ /** Image URL of the white first logo, shown in dark theme and on a transparent header (`<body class="transparent">`). Falls back to `firstLogoSrc`. */
4
7
  firstLogoWhiteSrc: string;
8
+ /** Alternative text for the first logo. */
5
9
  firstLogoAlt: string;
10
+ /** Link URL of the first logo in the header and the side menu. Default: `/`. */
11
+ firstLogoHref: string;
12
+ /** Image URL of the second (entity) logo. */
6
13
  secondLogoSrc: string;
14
+ /** Image URL of the white second logo, shown in dark theme and on a transparent header. Falls back to `secondLogoSrc` on desktop. */
7
15
  secondLogoWhiteSrc: string;
16
+ /** Alternative text for the second logo. */
8
17
  secondLogoAlt: string;
18
+ /** Link URL of the second logo on desktop and mobile. Default: `/`. */
19
+ secondLogoHref: string;
20
+ /** URL of the Login link in the toolbar and the side menu. */
9
21
  loginLink: string;
22
+ /** Side menu items. JSON array of `{ label, href, subMenu }`; each `subMenu` item is `{ headerLabel, label, href, subMenu }` and can nest. */
10
23
  sideMenuItems: string;
24
+ /** Main navigation links. JSON array of `{ label, href, menuLabel, subMenu }`; `subMenu` items are `{ title, description, icon, href }` and open a mega menu. */
11
25
  quickLinks: string;
26
+ /** URL of the ReadSpeaker "listen" link in the accessibility panel. */
12
27
  readSpeakerLink: string;
28
+ /** Placeholder and accessible label of the search input. Default: `Search`. */
13
29
  searchText: string;
30
+ /** Material Symbols icon name of the Login link in the side menu. Default: `sentiment_satisfied`. */
14
31
  loginIcon: string;
32
+ /** Label of the Login link in the side menu. Default: `Login`. */
15
33
  loginText: string;
34
+ /** Label of the language buttons in the desktop toolbar and the side menu. Default: `العربية`. */
16
35
  language_text: string;
36
+ /** `lang` attribute of the language buttons, the language of `language_text`. Default: `ar`. */
37
+ language_lang: string;
38
+ /** Emitted when the user clicks the language button. */
17
39
  languageSwitch: EventEmitter<void>;
40
+ /** Emitted when the user clicks the `A-` (smaller text) button in the accessibility panel. */
18
41
  smTextSize: EventEmitter<void>;
42
+ /** Emitted when the user clicks the `A` (default text size) button in the accessibility panel. */
19
43
  baseTextSize: EventEmitter<void>;
44
+ /** Emitted when the user clicks the `A+` (larger text) button in the accessibility panel. */
20
45
  lgTextSize: EventEmitter<void>;
46
+ /** Emitted when the user selects the Normal contrast option. */
21
47
  normalContrast: EventEmitter<void>;
48
+ /** Emitted when the user selects the Colours Blind contrast option. */
22
49
  blindContrast: EventEmitter<void>;
50
+ /** Emitted when the user selects the Red Weakness contrast option. */
23
51
  redContrast: EventEmitter<void>;
52
+ /** Emitted when the user selects the Green Weakness contrast option. */
24
53
  greenContrast: EventEmitter<void>;
54
+ /**
55
+ * Emitted when a non-empty search is submitted. Call `preventDefault()` to stop the
56
+ * browser navigating to `search_action`, for example to route inside a single-page app.
57
+ */
58
+ searchSubmit: EventEmitter<{
59
+ query: string;
60
+ }>;
25
61
  isMenuOpen: boolean;
26
62
  isSubMenuOpen: boolean;
27
63
  isSideSubMenuOpen: boolean;
28
64
  isAccessibiltyOpen: boolean;
65
+ isSearchOpen: boolean;
66
+ private readonly searchId;
67
+ private mobileSearchButton;
68
+ private mobileSearchInput;
69
+ private focusSearchAfterRender;
29
70
  private lastScrollTop;
71
+ /** `name` attribute of the hamburger menu button. */
30
72
  hamburger_menu_button_name: string;
73
+ /** Accessible name of the hamburger menu button (visually hidden text). Default: `Menu`. */
74
+ menu_button_label: string;
75
+ /** `name` attribute of the accessibility button in the side menu. */
31
76
  accessibility_button_name: string;
77
+ /** `name` attribute of the mobile search button. */
32
78
  search_button_name: string;
79
+ /** `name` of the search input, which is the query parameter sent to `search_action`. Default: `q`. */
33
80
  search_input_name: string;
81
+ /** Results page URL. When set, a search does a GET to this URL with the query in `search_input_name` (default `q`). */
82
+ search_action: string;
83
+ /** `name` attribute of the language button in the side menu. */
34
84
  language_button_name: string;
85
+ /** `name` attribute of the button that closes the side menu. */
35
86
  close_menu_button_name: string;
87
+ /** `name` attribute of the buttons that close the accessibility panel. */
36
88
  close_accessibility_button_name: string;
89
+ /** Not used: the current markup does not render an element with this name. */
37
90
  close_sidebar_button_name: string;
91
+ /** `name` attribute of the accessibility button in the desktop toolbar. */
38
92
  toggle_accessibility_button_name: string;
39
93
  openMenus: {
40
94
  [index: string]: boolean;
@@ -44,9 +98,17 @@ export declare class DdaHeader {
44
98
  toggleEscapeKey: (event: KeyboardEvent) => void;
45
99
  componentDidLoad(): void;
46
100
  disconnectedCallback(): void;
101
+ onMenuOpenChange(isOpen: boolean): void;
102
+ private lockPageScroll;
103
+ private handleSearchSubmit;
104
+ private openMobileSearch;
105
+ private closeMobileSearch;
106
+ componentDidUpdate(): void;
107
+ private renderSearchInput;
47
108
  handleOutsideClick: (event: MouseEvent) => void;
48
109
  handleOutsideAccessibilityClick: (event: MouseEvent) => void;
49
110
  handleOutsideMegaMenuClick: (event: MouseEvent) => void;
111
+ private updateScrolled;
50
112
  handleScroll: () => void;
51
113
  private parseJsonArray;
52
114
  private toggleMenu;
@@ -27,6 +27,12 @@ declare const _default: {
27
27
  };
28
28
  description: string;
29
29
  };
30
+ search_action: {
31
+ control: {
32
+ type: string;
33
+ };
34
+ description: string;
35
+ };
30
36
  language_button_name: {
31
37
  control: {
32
38
  type: string;
@@ -29,6 +29,7 @@ export declare class DdaHomeBanner {
29
29
  private hasFocusWithin;
30
30
  private listening;
31
31
  connectedCallback(): void;
32
+ componentDidLoad(): void;
32
33
  disconnectedCallback(): void;
33
34
  componentDidRender(): void;
34
35
  autoplayChanged(): void;
@@ -1,19 +1,37 @@
1
1
  export declare class DdaInput {
2
+ /** Visible label text, linked to the input through `input_id` (or a generated id). */
2
3
  label: string;
4
+ /** Placeholder text of the inner `<input>`. */
3
5
  placeholder: string;
6
+ /** Value of the inner `<input>`. Updates as the user types. */
4
7
  value: string;
8
+ /** 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. */
5
9
  type: string;
10
+ /** Helper text shown below the input and linked with `aria-describedby`. */
6
11
  helper_text: string;
12
+ /** Error text shown below the input. When set, the input gets `aria-invalid="true"`. */
7
13
  error_message: string;
14
+ /** Validation style. `error` shows the error colors. */
8
15
  validation_type?: string;
16
+ /** Size. `small` shows a smaller field; omit for the default size. */
9
17
  size?: string;
18
+ /** Status style. `disabled` shows the disabled styling only; it does not set the native `disabled` attribute. */
10
19
  input_status?: string;
20
+ /** Extra CSS classes added to the field container. */
11
21
  custom_class?: string;
22
+ /** Theme override class for the field, e.g. `light-mode`. */
12
23
  component_mode?: string;
24
+ /** `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. */
13
25
  input_id: string;
26
+ /** Accessible name of the inner `<input>`. Use it when there is no visible label. */
14
27
  aria_label?: string;
28
+ /** `name` of the inner `<input>`, submitted with its form. */
15
29
  input_name?: string;
30
+ /** `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). */
31
+ autocomplete?: string;
16
32
  handleInput(event: any): void;
33
+ private readonly fallbackId;
34
+ private get inputId();
17
35
  private get helperId();
18
36
  private get errorId();
19
37
  private get describedBy();
@@ -75,12 +75,6 @@ declare const _default: {
75
75
  };
76
76
  description: string;
77
77
  };
78
- onchange: {
79
- control: {
80
- type: string;
81
- };
82
- description: string;
83
- };
84
78
  input_name: {
85
79
  control: {
86
80
  type: string;
@@ -1,20 +1,31 @@
1
1
  export declare class DdaLinkButton {
2
- /** Type of button, e.g., "button", "submit" */
2
+ /** Not used: the component renders an `<a>` link, which has no `type`. */
3
3
  type: string;
4
- /** Disable the button */
4
+ /** Not used: the link stays active. For a disabled look, set `button_color` to `disabled`. */
5
5
  disabled: boolean;
6
- /** Icon class for the starting icon */
6
+ /** Material Symbols icon name shown before the label, e.g. `arrow_back`. */
7
7
  start_icon: string;
8
+ /** Material Symbols icon name shown after the label, e.g. `arrow_forward`. */
8
9
  end_icon: string;
10
+ /** Accessible name of the link. Required when the link shows only an icon. */
9
11
  aria_label?: string;
12
+ /** Color variant, e.g. `default-primary`, `default-secondary`, `error-primary`, `onsurface-link` or `disabled`. */
10
13
  button_color: string;
14
+ /** Size: `sm`, `md`, `lg` or `xl`. */
11
15
  size?: string;
16
+ /** Shape: `default` or `circle`. */
12
17
  button_shape?: string;
18
+ /** Shape of an icon-only link: `default` or `circle`. */
13
19
  icon_button_shape?: string;
20
+ /** Gap between icon and label, as a spacing step: 1–6, 8, 10, 12 or 16. */
14
21
  gap?: number;
22
+ /** Extra CSS classes added to the inner `<a>`. */
15
23
  custom_class?: string;
24
+ /** URL the link opens. */
16
25
  href?: string;
26
+ /** Theme override class for the link, e.g. `light-mode`. */
17
27
  component_mode?: string;
28
+ /** `id` of the inner `<a>`. */
18
29
  button_id: string;
19
30
  render(): any;
20
31
  }
@@ -1,22 +1,41 @@
1
1
  export declare class DdaNumberField {
2
+ /** Placeholder text of the amount input. */
2
3
  placeholder: string;
4
+ /** Visible label text, linked to the amount input through `input_id` (or a generated id). */
3
5
  label: string;
6
+ /** Initial value of the amount input. Characters other than digits and `.` are removed as the user types. */
4
7
  value: string;
8
+ /** Helper text shown below the field and linked with `aria-describedby`. */
5
9
  helper_text: string;
10
+ /** Error text shown below the field. When set, the input gets `aria-invalid="true"`. */
6
11
  error_message: string;
12
+ /** Validation style. `error` shows the error colors. */
7
13
  validation_type?: string;
14
+ /** Size. `small` shows a smaller field; omit for the default size. */
8
15
  size?: string;
16
+ /** Status style. `disabled` shows the disabled styling only; it does not set the native `disabled` attribute. */
9
17
  input_status?: string;
18
+ /** Currency options for the dropdown, as a JSON array string, e.g. `'["AED","USD"]'`. */
10
19
  currencies: string;
20
+ /** Currency shown on the dropdown button. Updates when the user picks a currency. */
11
21
  selected_currency: string;
12
22
  is_focused: boolean;
23
+ /** Extra CSS classes added to the field container. */
13
24
  custom_class?: string;
25
+ /** Theme override class for the field, e.g. `light-mode`. */
14
26
  component_mode?: string;
27
+ /** `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. */
15
28
  input_id: string;
29
+ /** Accessible name of the amount input. Use it when there is no visible label. */
16
30
  aria_label?: string;
31
+ /** `name` of the amount input, submitted with its form. */
17
32
  input_name?: string;
33
+ /** `name` of the currency dropdown button. */
18
34
  toggle_button_name?: string;
35
+ /** `name` of each currency option button. */
19
36
  currency_button_name?: string;
37
+ /** Accessible name of the currency dropdown button; the selected currency is added after it. */
38
+ toggle_button_label?: string;
20
39
  isCurrencyDropdownOpen: boolean;
21
40
  handleInput(event: any): void;
22
41
  handleFocus(): void;
@@ -24,6 +43,8 @@ export declare class DdaNumberField {
24
43
  toggleCurrencyDropdown(): void;
25
44
  selectCurrency(currency: string): void;
26
45
  private get parsedCurrencies();
46
+ private readonly fallbackId;
47
+ private get inputId();
27
48
  private get helperId();
28
49
  private get errorId();
29
50
  private get describedBy();
@@ -76,12 +76,6 @@ declare const _default: {
76
76
  };
77
77
  description: string;
78
78
  };
79
- onchange: {
80
- control: {
81
- type: string;
82
- };
83
- description: string;
84
- };
85
79
  input_name: {
86
80
  control: {
87
81
  type: string;
@@ -1,21 +1,47 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
1
2
  export declare class DdaPagination {
3
+ /** Number of pages. Values below 1 become 1. Mutable: the component corrects out-of-range values. */
2
4
  total_pages: number;
5
+ /** Selected page, counted from 1. Kept between 1 and `total_pages`; updates when the user changes the page. Mutable: the component assigns it. */
3
6
  current_page: number;
7
+ /** Layout: `simple-slider`, `buttons`, `text`, `text-pages`, `button-text`, `buttons-pages` or `full`. */
4
8
  type: 'simple-slider' | 'buttons' | 'text' | 'text-pages' | 'button-text' | 'buttons-pages' | 'full';
9
+ /** Extra CSS classes added to the pagination element. */
5
10
  custom_class: string;
11
+ /** Theme override class on the pagination element, e.g. `light-mode`. */
6
12
  component_mode?: string;
13
+ /** `name` of the previous page button when `type` is `simple-slider`. */
7
14
  simple_slider_prev_button: string;
15
+ /** `name` of the next page button when `type` is `simple-slider`. */
8
16
  simple_slider_next_button: string;
17
+ /** `name` of the previous page button when `type` is `buttons`. */
9
18
  buttons_prev_button: string;
19
+ /** `name` of the next page button when `type` is `buttons`. */
10
20
  buttons_next_button: string;
21
+ /** `name` of the previous page button when `type` is `text`. */
11
22
  text_prev_button: string;
23
+ /** `name` of the next page button when `type` is `text`. */
12
24
  text_next_button: string;
25
+ /** `name` of the previous page button when `type` is `text-pages`. */
13
26
  text_pages_prev_button: string;
27
+ /** `name` of the next page button when `type` is `text-pages`. */
14
28
  text_pages_next_button: string;
29
+ /** `name` of the previous page button when `type` is `button-text`. */
15
30
  button_text_prev_button: string;
31
+ /** `name` of the next page button when `type` is `button-text`. */
16
32
  button_text_next_button: string;
33
+ /** `name` of the previous page button when `type` is `buttons-pages`. */
17
34
  buttons_pages_prev_button: string;
35
+ /** `name` of the next page button when `type` is `buttons-pages`. */
18
36
  buttons_pages_next_button: string;
37
+ /** Accessible name of the icon-only previous page button (`text`, `text-pages`, `button-text` and `buttons-pages` layouts). */
38
+ previous_button_label: string;
39
+ /** Accessible name of the icon-only next page button (`text`, `text-pages`, `button-text` and `buttons-pages` layouts). */
40
+ next_button_label: string;
41
+ /** Emitted when the user moves to a different page. `detail.page` is the new page, counted from 1. */
42
+ pageChange: EventEmitter<{
43
+ page: number;
44
+ }>;
19
45
  validateTotalPages(newValue: number): void;
20
46
  validateCurrentPage(newValue: number): void;
21
47
  componentWillLoad(): void;
@@ -1,10 +1,17 @@
1
1
  export declare class DdaPhoneField {
2
+ /** Visible label text, linked to the phone input through `input_id`. */
2
3
  label: string;
4
+ /** Placeholder text of the phone input. */
3
5
  placeholder: string;
6
+ /** Helper text shown below the field. Hidden when `validation_type` is set. */
4
7
  helper_text: string;
8
+ /** Validation style. `error` shows the error colors. Any value hides `helper_text`. */
5
9
  validation_type?: string;
10
+ /** Error text shown below the field. When set, the input gets `aria-invalid="true"`. */
6
11
  error_message: string;
12
+ /** Disables the phone input and shows the disabled styling. */
7
13
  disabled: boolean;
14
+ /** Size. `small` shows a smaller field; omit for the default size. */
8
15
  size?: string;
9
16
  country_code: string;
10
17
  country_flag: string;
@@ -15,16 +22,30 @@ export declare class DdaPhoneField {
15
22
  code: string;
16
23
  flag: string;
17
24
  }[];
25
+ /** Extra CSS classes added to the field container. */
18
26
  custom_class: string;
27
+ /** Theme override class for the field, e.g. `light-mode`. */
19
28
  component_mode?: string;
29
+ /** `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. */
20
30
  input_id?: string;
31
+ /** Accessible name of the phone input. Use it when there is no visible label. */
21
32
  aria_label: string;
33
+ /** 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. */
22
34
  button_id?: string;
35
+ /** Accessible name set on each country option button in the open list. */
23
36
  button_aria_label: string;
37
+ /** `name` of the country code dropdown button. */
24
38
  toggle_button_name: string;
39
+ /** `name` of each country option button. */
25
40
  country_select_button_name: string;
41
+ /** Accessible name of the country code dropdown button; the selected code is added after it. */
42
+ toggle_button_label: string;
43
+ /** `name` of the phone input, submitted with its form. */
26
44
  phone_input_name: string;
45
+ /** `autocomplete` token of the phone input. Defaults to `tel-national`, because the country code is chosen separately. */
27
46
  autocomplete: string;
47
+ private readonly fallbackId;
48
+ private get inputId();
28
49
  private get helperId();
29
50
  private get errorId();
30
51
  private get describedBy();
@@ -73,12 +73,6 @@ declare const _default: {
73
73
  };
74
74
  description: string;
75
75
  };
76
- onchange: {
77
- control: {
78
- type: string;
79
- };
80
- description: string;
81
- };
82
76
  toggle_button_name: {
83
77
  control: {
84
78
  type: string;
@@ -1,10 +1,17 @@
1
1
  export declare class DdaProgressBar {
2
+ /** Progress in percent, from 0 to 100. Sets the bar width and `aria-valuenow`. */
2
3
  progress: number;
4
+ /** Shows the percentage in a tooltip at the end of the filled bar. */
3
5
  tooltip: boolean;
6
+ /** Tooltip position: `top` or `bottom`. */
4
7
  tooltip_position: 'top' | 'bottom';
8
+ /** Shows the percentage as text after the bar. */
5
9
  show_percentage_text: boolean;
10
+ /** Extra CSS classes added to the progress bar container. */
6
11
  custom_class: string;
12
+ /** Theme override class for the progress bar, e.g. `light-mode`. */
7
13
  component_mode?: string;
14
+ /** Accessible name of the progress bar. */
8
15
  aria_label: string;
9
16
  render(): any;
10
17
  }
@@ -1,14 +1,25 @@
1
1
  export declare class DdaRadiobutton {
2
+ /** Label shown next to the radio button. */
2
3
  title_text: string;
4
+ /** Secondary text shown under the title. */
3
5
  supporting?: string;
6
+ /** `name` of the inner radio input. Give all radio buttons in one group the same value. */
4
7
  group_name?: string;
8
+ /** `id` of the inner radio input. The label points to it, so set a unique value to make the label clickable. */
5
9
  input_id?: string;
10
+ /** Checked state of the inner input. Read the current state from the input or its `change` event. */
6
11
  checked: boolean;
12
+ /** Status: `disabled` shows the disabled style and blocks pointer clicks. */
7
13
  radio_status?: string;
14
+ /** Size: `sm`, `md` or `lg`. */
8
15
  size?: string;
16
+ /** Style variant: `outlined` or `faded`. Leave empty (or `normal`) for the default style. */
9
17
  variants?: string;
18
+ /** Extra class suffix. The value is added as `dda-radio-<value>` on the container. */
10
19
  custom_class?: string;
20
+ /** Theme override class for the radio button, e.g. `light-mode`. */
11
21
  component_mode?: string;
22
+ /** Accessible name of the inner radio input. */
12
23
  aria_label?: string;
13
24
  render(): any;
14
25
  }
@@ -21,10 +21,6 @@ declare const _default: {
21
21
  control: string;
22
22
  description: string;
23
23
  };
24
- labelfor: {
25
- control: string;
26
- description: string;
27
- };
28
24
  input_id: {
29
25
  control: string;
30
26
  description: string;
@@ -62,18 +58,12 @@ declare const _default: {
62
58
  type: string;
63
59
  };
64
60
  description: string;
65
- radio_status: {
66
- control: {
67
- type: string;
68
- };
69
- options: string[];
70
- };
71
- onclick: {
72
- control: {
73
- type: string;
74
- };
75
- description: string;
61
+ };
62
+ radio_status: {
63
+ control: {
64
+ type: string;
76
65
  };
66
+ options: string[];
77
67
  };
78
68
  };
79
69
  };
@@ -1,21 +1,37 @@
1
1
  export declare class DdaRangeSlider {
2
+ /** Lowest value of the range. */
2
3
  min: number;
4
+ /** Highest value of the range. */
3
5
  max: number;
6
+ /** Step between selectable values. */
4
7
  step: number;
8
+ /** Start value of the lower (left) handle. Read only when the component loads. */
5
9
  initial_min: number;
10
+ /** Start value of the upper (right) handle. Read only when the component loads. */
6
11
  initial_max: number;
12
+ /** Not used by the current version; it has no effect. */
7
13
  size?: string;
14
+ /** Value labels shown as tooltips: `top` or `bottom`. Without it, plain labels show below the track. */
8
15
  tooltip_position?: string;
9
16
  min_value: number;
10
17
  max_value: number;
18
+ /** Extra CSS classes added to the slider container. */
11
19
  custom_class?: string;
20
+ /** Theme override class for the slider, e.g. `light-mode`. */
12
21
  component_mode?: string;
22
+ /** `id` of the lower (left) range input. When it is not set, the component generates a unique id. */
13
23
  left_input_id: string;
24
+ /** `id` of the upper (right) range input. When it is not set, the component generates a unique id. */
14
25
  right_input_id: string;
26
+ /** Accessible name of the lower (left) range input, e.g. `Minimum amount`. When it is empty, the name is `Minimum`. */
15
27
  left_aria_label?: string;
28
+ /** Accessible name of the upper (right) range input, e.g. `Maximum amount`. When it is empty, the name is `Maximum`. */
16
29
  right_aria_label?: string;
30
+ /** `name` of the lower (left) range input, submitted with its form. */
17
31
  left_input_name: string;
32
+ /** `name` of the upper (right) range input, submitted with its form. */
18
33
  right_input_name: string;
34
+ private readonly fallbackId;
19
35
  componentWillLoad(): void;
20
36
  handleMinChange(event: any): void;
21
37
  handleMaxChange(event: any): void;
@@ -1,22 +1,43 @@
1
1
  export declare class DdaSearchInput {
2
+ /** Placeholder text of the search input. */
2
3
  placeholder: string;
4
+ /** Visible label text, linked to the search input through `input_id` (or a generated id). */
3
5
  label: string;
6
+ /** Size. `small` shows a smaller field; other values show the default size. */
4
7
  size: string;
8
+ /** Error text shown below the field. When set, the input gets `aria-invalid="true"`. */
5
9
  error_message: string;
10
+ /** Shows a "Search" button after the clear button. */
6
11
  show_button: boolean;
12
+ /** Helper text shown below the field and linked with `aria-describedby`. */
7
13
  helper_text: string;
14
+ /** Status style. `disabled` shows the disabled styling only; it does not set the native `disabled` attribute. */
8
15
  input_status?: string;
16
+ /** Shows the error colors. */
9
17
  has_error: boolean;
18
+ /** Extra CSS classes added to the field container. */
10
19
  custom_class?: string;
20
+ /** Theme override class for the field, e.g. `light-mode`. */
11
21
  component_mode?: string;
22
+ /** `id` of the clear button. */
12
23
  button_id?: string;
24
+ /** `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. */
13
25
  input_id?: string;
26
+ /** Accessible name of the search input. Use it when there is no visible label. */
14
27
  aria_label?: string;
28
+ /** Accessible name of the clear button, e.g. `Clear search`. */
15
29
  button_aria_label?: string;
30
+ /** `name` of the search input, submitted with its form. */
16
31
  search_input_name: string;
32
+ /** `name` of the clear button. */
17
33
  close_button_name: string;
34
+ /** Accessible name of the clear button. `button_aria_label` wins when set. */
35
+ clear_button_label: string;
36
+ /** `name` of the "Search" button. */
18
37
  search_button_name: string;
19
38
  el: HTMLElement;
39
+ private readonly fallbackId;
40
+ private get inputId();
20
41
  private get helperId();
21
42
  private get errorId();
22
43
  private get describedBy();
@@ -77,12 +77,6 @@ declare const _default: {
77
77
  };
78
78
  describe: string;
79
79
  };
80
- onchange: {
81
- control: {
82
- type: string;
83
- };
84
- description: string;
85
- };
86
80
  search_input_name: {
87
81
  control: {
88
82
  type: string;
@@ -1,21 +1,43 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
1
2
  export declare class Ddaselect {
3
+ /** Label shown above the field. The trigger button is named by the label and its current text. */
2
4
  label: string;
5
+ /** Options as a JSON array string, e.g. `'["Dubai","Abu Dhabi","Sharjah"]'`. Invalid JSON shows "No options available". */
3
6
  options: string;
7
+ /** 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. */
4
8
  selected: string;
9
+ /** Disables the select: the list does not open and options cannot be picked. */
5
10
  disabled: boolean;
11
+ /** Validation state. `error` shows the error styling. */
6
12
  error?: string;
13
+ /** Error text shown under the field. Also sets `aria-invalid` on the trigger. */
7
14
  error_message: string;
15
+ /** Helper text shown under the field. */
8
16
  helper_text: string;
9
17
  is_open: boolean;
18
+ /** Field size. `small` gives the compact field; leave empty for the default size. */
10
19
  size?: string;
20
+ /** Extra CSS classes added to the field container. */
11
21
  custom_class?: string;
22
+ /** Theme override class for the field, e.g. `light-mode`. */
12
23
  component_mode?: string;
24
+ /** Accessible name of the trigger button and the option list. The list falls back to `label`. */
13
25
  aria_label?: string;
26
+ /** `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. */
14
27
  button_id: string;
28
+ /** `name` of the trigger button. */
15
29
  toggle_button_name: string;
30
+ /** `name` of each option button in the list. */
16
31
  option_select_button_name: string;
32
+ /** Emitted when the user picks an option other than the selected one, by mouse or keyboard. `detail.value` is the new option. */
33
+ selectionChange: EventEmitter<{
34
+ value: string;
35
+ }>;
17
36
  el: HTMLElement;
18
37
  private pendingFocusIndex;
38
+ private readonly fallbackId;
39
+ private get triggerId();
40
+ private get labelId();
19
41
  private get listboxId();
20
42
  private get helperId();
21
43
  private get errorId();
@@ -26,6 +48,7 @@ export declare class Ddaselect {
26
48
  private initialOptionIndex;
27
49
  toggleSelect(): void;
28
50
  private closeAndReturnFocus;
51
+ onHostClick(event: MouseEvent): void;
29
52
  selectOption(option: string): void;
30
53
  private onTriggerKeyDown;
31
54
  private onOptionKeyDown;