@dubai-design-system/components-js 5.2.0 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/MIGRATION.md +138 -18
  3. package/dist/cjs/dda-accordion.cjs.entry.js +3 -3
  4. package/dist/cjs/dda-alert.cjs.entry.js +5 -5
  5. package/dist/cjs/dda-attach-file.cjs.entry.js +3 -3
  6. package/dist/cjs/dda-avatar.cjs.entry.js +8 -8
  7. package/dist/{dda/dda-tooltip.entry.js → cjs/dda-banner-card.cjs.entry.js} +16 -36
  8. package/dist/cjs/dda-banner.cjs.entry.js +3 -3
  9. package/dist/cjs/dda-breadcrumb.cjs.entry.js +2 -2
  10. package/dist/cjs/dda-button.cjs.entry.js +3 -3
  11. package/dist/cjs/dda-checkbox.cjs.entry.js +3 -3
  12. package/dist/cjs/dda-chip.cjs.entry.js +3 -3
  13. package/dist/cjs/dda-credit-card.cjs.entry.js +3 -3
  14. package/dist/cjs/dda-creditcard-field.cjs.entry.js +4 -4
  15. package/dist/cjs/dda-dropdown.cjs.entry.js +4 -4
  16. package/dist/cjs/dda-footer.cjs.entry.js +3 -3
  17. package/dist/cjs/dda-header.cjs.entry.js +208 -23
  18. package/dist/cjs/dda-home-banner.cjs.entry.js +4 -4
  19. package/dist/{dda/dda-tabs.entry.js → cjs/dda-home-carousel.cjs.entry.js} +18 -49
  20. package/dist/cjs/dda-horizontal-stepper.cjs.entry.js +3 -3
  21. package/dist/cjs/dda-input.cjs.entry.js +3 -3
  22. package/dist/cjs/dda-link-button_2.cjs.entry.js +6 -6
  23. package/dist/cjs/dda-number-field.cjs.entry.js +3 -3
  24. package/dist/cjs/dda-pagination.cjs.entry.js +4 -4
  25. package/dist/cjs/dda-phonefield.cjs.entry.js +3 -3
  26. package/dist/cjs/dda-progressbar.cjs.entry.js +3 -3
  27. package/dist/cjs/dda-range-slider.cjs.entry.js +3 -3
  28. package/dist/cjs/dda-search-input.cjs.entry.js +3 -3
  29. package/dist/cjs/dda-segmented-tabs.cjs.entry.js +5 -5
  30. package/dist/cjs/dda-select.cjs.entry.js +4 -6
  31. package/dist/cjs/dda-sticky-footer.cjs.entry.js +41 -4
  32. package/dist/cjs/dda-tabs.cjs.entry.js +4 -4
  33. package/dist/cjs/dda-textarea.cjs.entry.js +1351 -16189
  34. package/dist/cjs/dda-toggle.cjs.entry.js +3 -3
  35. package/dist/cjs/dda-tooltip.cjs.entry.js +3 -3
  36. package/dist/cjs/dda-ui-card.cjs.entry.js +3 -3
  37. package/dist/cjs/dda-vertical-stepper.cjs.entry.js +2 -2
  38. package/dist/cjs/dda.cjs.js +3 -30
  39. package/dist/cjs/{index-Na_7EWDR.js → index-DD8fdSxb.js} +1 -1
  40. package/dist/cjs/index.cjs.js +0 -10
  41. package/dist/cjs/loader.cjs.js +2 -2
  42. package/dist/cjs/parse-json-prop-B0KWD8qe.js +38 -0
  43. package/dist/collection/collection-manifest.json +5 -3
  44. package/dist/collection/components/dda-accordion/dda-accordion.js +1 -1
  45. package/dist/collection/components/dda-alert/dda-alert.js +1 -1
  46. package/dist/collection/components/dda-attach-file/dda-attach-file.js +1 -1
  47. package/dist/collection/components/dda-avatar/dda-avatar.js +5 -5
  48. package/dist/collection/components/dda-banner/dda-banner.js +1 -1
  49. package/dist/collection/components/dda-banner-card/dda-banner-card.js +243 -0
  50. package/dist/collection/components/dda-button/dda-button.js +1 -1
  51. package/dist/collection/components/dda-checkbox/dda-checkbox.js +1 -1
  52. package/dist/collection/components/dda-chip/dda-chip.js +1 -1
  53. package/dist/collection/components/dda-credit-card/dda-credit-card.js +1 -1
  54. package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.js +1 -1
  55. package/dist/collection/components/dda-dropdown/dda-dropdown.js +1 -1
  56. package/dist/collection/components/dda-footer/dda-footer.js +1 -1
  57. package/dist/collection/components/dda-header/dda-header.js +838 -88
  58. package/dist/collection/components/dda-header/dda-header.stories.js +200 -35
  59. package/dist/collection/components/dda-header/nav-model.js +69 -0
  60. package/dist/collection/components/dda-home-banner/dda-home-banner.js +2 -2
  61. package/dist/collection/components/dda-home-carousel/dda-home-carousel.js +164 -0
  62. package/dist/collection/components/dda-home-carousel/dda-home-carousel.stories.js +24 -0
  63. package/dist/collection/components/dda-input/dda-input.js +1 -1
  64. package/dist/collection/components/dda-link-button/dda-link-button.js +2 -2
  65. package/dist/collection/components/dda-number-field/dda-number-field.js +1 -1
  66. package/dist/collection/components/dda-pagination/dda-pagination.js +1 -1
  67. package/dist/collection/components/dda-phonefield/dda-phonefield.js +1 -1
  68. package/dist/collection/components/dda-progressbar/dda-progressbar.js +1 -1
  69. package/dist/collection/components/dda-radiobutton/dda-radiobutton.css +228 -6
  70. package/dist/collection/components/dda-radiobutton/dda-radiobutton.js +1 -1
  71. package/dist/collection/components/dda-range-slider/dda-range-slider.js +2 -2
  72. package/dist/collection/components/dda-search-input/dda-search-input.js +1 -1
  73. package/dist/collection/components/dda-select/dda-select.js +1 -1
  74. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js +496 -5
  75. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.stories.js +12 -1
  76. package/dist/collection/components/dda-tabs/dda-tabs.js +1 -1
  77. package/dist/collection/components/dda-textarea/dda-textarea.js +2 -2
  78. package/dist/collection/components/dda-toggle/dda-toggle.js +1 -1
  79. package/dist/collection/components/dda-tooltip/dda-tooltip.js +1 -1
  80. package/dist/collection/components/dda-ui-card/dda-ui-card.js +1 -1
  81. package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.css +29 -9
  82. package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.js +1 -1
  83. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.js +1 -1
  84. package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.js +1 -1
  85. package/dist/collection/global/global.css +228 -6
  86. package/dist/collection/utils/parse-json-prop.js +34 -0
  87. package/dist/components/dda-accordion.js +1 -59
  88. package/dist/components/dda-alert.js +1 -94
  89. package/dist/components/dda-attach-file.js +1 -138
  90. package/dist/components/dda-avatar.js +1 -107
  91. package/dist/components/dda-banner-card.d.ts +11 -0
  92. package/dist/components/dda-banner-card.js +1 -0
  93. package/dist/components/dda-banner.js +1 -57
  94. package/dist/components/dda-breadcrumb.js +1 -66
  95. package/dist/components/dda-button.js +1 -6
  96. package/dist/components/dda-checkbox.js +1 -59
  97. package/dist/components/dda-chip.js +1 -55
  98. package/dist/components/dda-credit-card.js +1 -54
  99. package/dist/components/dda-creditcard-field.js +1 -133
  100. package/dist/components/dda-dropdown.js +1 -113
  101. package/dist/components/dda-footer.js +1 -72
  102. package/dist/components/dda-header.js +1 -367
  103. package/dist/components/dda-home-banner.js +1 -249
  104. package/dist/components/dda-home-carousel.d.ts +11 -0
  105. package/dist/components/dda-home-carousel.js +1 -0
  106. package/dist/components/dda-horizontal-stepper.js +1 -69
  107. package/dist/components/dda-input.js +1 -92
  108. package/dist/components/dda-link-button.js +1 -6
  109. package/dist/components/dda-number-field.js +1 -127
  110. package/dist/components/dda-pagination.js +1 -133
  111. package/dist/components/dda-phonefield.js +1 -316
  112. package/dist/components/dda-progressbar.js +1 -58
  113. package/dist/components/dda-radiobutton.js +1 -6
  114. package/dist/components/dda-range-slider.js +1 -93
  115. package/dist/components/dda-search-input.js +1 -102
  116. package/dist/components/dda-segmented-tabs.js +1 -133
  117. package/dist/components/dda-select.js +1 -219
  118. package/dist/components/dda-sticky-footer.js +1 -132
  119. package/dist/components/dda-tabs.js +1 -91
  120. package/dist/components/dda-textarea.js +1 -31277
  121. package/dist/components/dda-toggle.js +1 -55
  122. package/dist/components/dda-tooltip.js +1 -6
  123. package/dist/components/dda-ui-card.js +1 -71
  124. package/dist/components/dda-vertical-stepper.js +1 -72
  125. package/dist/components/index.js +1 -34
  126. package/dist/components/{p-D7sJgBDk.js → p-BCtBptNq.js} +1 -1
  127. package/dist/components/p-BP6BxgDV.js +1 -0
  128. package/dist/components/p-BZzFtOHg.js +1 -0
  129. package/dist/components/p-CvcFE821.js +1 -0
  130. package/dist/components/{p-_-I_65FG.js → p-D3e_hki9.js} +1 -1
  131. package/dist/components/{p-C2Cs3ruo.js → p-DCwxgkNU.js} +1 -1
  132. package/dist/components/{p-C520q-ka.js → p-R9p4F9Pi.js} +1 -1
  133. package/dist/dda/dda.css +2 -6393
  134. package/dist/dda/dda.esm.js +1 -47
  135. package/dist/dda/index.esm.js +1 -29
  136. package/dist/dda/{p-ee6d56fc.entry.js → p-0480f0a9.entry.js} +1 -1
  137. package/dist/dda/{p-0a86a74c.entry.js → p-06188c4c.entry.js} +1 -1
  138. package/dist/dda/p-08e1892a.entry.js +1 -0
  139. package/dist/dda/{p-0574c9df.entry.js → p-10c5a752.entry.js} +1 -1
  140. package/dist/dda/{p-2630152f.entry.js → p-169ba650.entry.js} +1 -1
  141. package/dist/dda/{p-9c86dc30.entry.js → p-25058697.entry.js} +1 -1
  142. package/dist/dda/{p-e8ca224f.entry.js → p-32a7c588.entry.js} +1 -1
  143. package/dist/dda/{p-95e1a389.entry.js → p-333205aa.entry.js} +1 -1
  144. package/dist/dda/{p-3835f3b7.entry.js → p-46df4933.entry.js} +1 -1
  145. package/dist/dda/{p-eecfe091.entry.js → p-47322b02.entry.js} +1 -1
  146. package/dist/dda/{p-489a3711.entry.js → p-4e717a2e.entry.js} +1 -1
  147. package/dist/dda/{p-271c5f91.entry.js → p-5840fad9.entry.js} +1 -1
  148. package/dist/dda/p-5bb62ef7.entry.js +1 -0
  149. package/dist/dda/p-5e757702.entry.js +1 -0
  150. package/dist/dda/{p-32746429.entry.js → p-6430c363.entry.js} +1 -1
  151. package/dist/dda/{p-8de4f35e.entry.js → p-6d4f5672.entry.js} +1 -1
  152. package/dist/dda/{p-9416d8ec.entry.js → p-6db5588a.entry.js} +1 -1
  153. package/dist/dda/{p-16f94322.entry.js → p-76859bf8.entry.js} +1 -1
  154. package/dist/dda/p-7c1abbd2.entry.js +1 -0
  155. package/dist/dda/{p-eed4a104.entry.js → p-7ffce954.entry.js} +1 -1
  156. package/dist/dda/{p-58de747b.entry.js → p-8108c4ed.entry.js} +1 -1
  157. package/dist/dda/{p-95b87c55.entry.js → p-8852dafb.entry.js} +1 -1
  158. package/dist/dda/{p-98c59aa8.entry.js → p-8dbbc0ca.entry.js} +1 -1
  159. package/dist/dda/{p-3d57e957.entry.js → p-95100f73.entry.js} +1 -1
  160. package/dist/dda/{p-b6190656.entry.js → p-9a4e34d1.entry.js} +1 -1
  161. package/dist/dda/p-9b234635.entry.js +1 -0
  162. package/dist/dda/{p-d06c5daf.entry.js → p-9d9834ff.entry.js} +1 -1
  163. package/dist/dda/{p-1acc0fda.entry.js → p-9f01cb56.entry.js} +1 -1
  164. package/dist/dda/{p-c39d196d.entry.js → p-9ff8dc84.entry.js} +1 -1
  165. package/dist/dda/p-BnrqwGTj.js +2 -0
  166. package/dist/dda/p-CvcFE821.js +1 -0
  167. package/dist/dda/{p-e660a594.entry.js → p-a8a1ee5d.entry.js} +1 -1
  168. package/dist/dda/{p-d8fd3f73.entry.js → p-b37f40a9.entry.js} +1 -1
  169. package/dist/dda/p-eaffd32d.entry.js +1 -0
  170. package/dist/dda/{p-63754a93.entry.js → p-f2efc121.entry.js} +1 -1
  171. package/dist/dda/{p-96741f45.entry.js → p-faed59dd.entry.js} +1 -1
  172. package/dist/dda/p-fb00dec4.entry.js +1 -0
  173. package/dist/esm/dda-accordion.entry.js +3 -3
  174. package/dist/esm/dda-alert.entry.js +5 -5
  175. package/dist/esm/dda-attach-file.entry.js +3 -3
  176. package/dist/esm/dda-avatar.entry.js +8 -8
  177. package/dist/{dda/dda-credit-card.entry.js → esm/dda-banner-card.entry.js} +14 -16
  178. package/dist/esm/dda-banner.entry.js +3 -3
  179. package/dist/esm/dda-breadcrumb.entry.js +2 -2
  180. package/dist/esm/dda-button.entry.js +3 -3
  181. package/dist/esm/dda-checkbox.entry.js +3 -3
  182. package/dist/esm/dda-chip.entry.js +3 -3
  183. package/dist/esm/dda-credit-card.entry.js +3 -3
  184. package/dist/esm/dda-creditcard-field.entry.js +4 -4
  185. package/dist/esm/dda-dropdown.entry.js +4 -4
  186. package/dist/esm/dda-footer.entry.js +3 -3
  187. package/dist/esm/dda-header.entry.js +208 -23
  188. package/dist/esm/dda-home-banner.entry.js +4 -4
  189. package/dist/{dda/dda-breadcrumb.entry.js → esm/dda-home-carousel.entry.js} +16 -30
  190. package/dist/esm/dda-horizontal-stepper.entry.js +3 -3
  191. package/dist/esm/dda-input.entry.js +3 -3
  192. package/dist/esm/dda-link-button_2.entry.js +6 -6
  193. package/dist/esm/dda-number-field.entry.js +3 -3
  194. package/dist/esm/dda-pagination.entry.js +4 -4
  195. package/dist/esm/dda-phonefield.entry.js +3 -3
  196. package/dist/esm/dda-progressbar.entry.js +3 -3
  197. package/dist/esm/dda-range-slider.entry.js +3 -3
  198. package/dist/esm/dda-search-input.entry.js +3 -3
  199. package/dist/esm/dda-segmented-tabs.entry.js +5 -5
  200. package/dist/esm/dda-select.entry.js +4 -6
  201. package/dist/esm/dda-sticky-footer.entry.js +41 -4
  202. package/dist/esm/dda-tabs.entry.js +4 -4
  203. package/dist/esm/dda-textarea.entry.js +1351 -16189
  204. package/dist/esm/dda-toggle.entry.js +3 -3
  205. package/dist/esm/dda-tooltip.entry.js +3 -3
  206. package/dist/esm/dda-ui-card.entry.js +3 -3
  207. package/dist/esm/dda-vertical-stepper.entry.js +2 -2
  208. package/dist/esm/dda.js +4 -31
  209. package/dist/esm/{index-CI_UcUy5.js → index-BnrqwGTj.js} +1 -1
  210. package/dist/esm/index.js +0 -10
  211. package/dist/esm/loader.js +3 -3
  212. package/dist/esm/parse-json-prop-CvcFE821.js +36 -0
  213. package/dist/types/components/dda-banner-card/dda-banner-card.d.ts +25 -0
  214. package/dist/types/components/dda-header/dda-header.d.ts +114 -4
  215. package/dist/types/components/dda-header/dda-header.stories.d.ts +187 -0
  216. package/dist/types/components/dda-header/nav-model.d.ts +19 -0
  217. package/dist/types/components/dda-home-carousel/dda-home-carousel.d.ts +29 -0
  218. package/dist/types/components/dda-home-carousel/dda-home-carousel.stories.d.ts +20 -0
  219. package/dist/types/components/dda-sticky-footer/dda-sticky-footer.d.ts +70 -1
  220. package/dist/types/components/dda-sticky-footer/dda-sticky-footer.stories.d.ts +4 -0
  221. package/dist/types/components.d.ts +726 -11
  222. package/dist/types/utils/parse-json-prop.d.ts +1 -0
  223. package/package.json +4 -2
  224. package/dist/cjs/dda-link-button.cjs.entry.js +0 -51
  225. package/dist/cjs/dda-radiobutton.cjs.entry.js +0 -27
  226. package/dist/cjs/index-DXyiIgGK.js +0 -4637
  227. package/dist/components/dda-button2.js +0 -80
  228. package/dist/components/dda-link-button2.js +0 -81
  229. package/dist/components/dda-radiobutton2.js +0 -54
  230. package/dist/components/dda-tooltip2.js +0 -70
  231. package/dist/components/index2.js +0 -4622
  232. package/dist/components/p-CZO9Eawo.js +0 -1
  233. package/dist/components/unique-id.js +0 -12
  234. package/dist/dda/dda-accordion.entry.js +0 -31
  235. package/dist/dda/dda-alert.entry.js +0 -57
  236. package/dist/dda/dda-attach-file.entry.js +0 -102
  237. package/dist/dda/dda-avatar.entry.js +0 -70
  238. package/dist/dda/dda-banner.entry.js +0 -30
  239. package/dist/dda/dda-button.entry.js +0 -47
  240. package/dist/dda/dda-checkbox.entry.js +0 -27
  241. package/dist/dda/dda-chip.entry.js +0 -25
  242. package/dist/dda/dda-creditcard-field.entry.js +0 -94
  243. package/dist/dda/dda-dropdown.entry.js +0 -75
  244. package/dist/dda/dda-footer.entry.js +0 -34
  245. package/dist/dda/dda-header.entry.js +0 -282
  246. package/dist/dda/dda-home-banner.entry.js +0 -208
  247. package/dist/dda/dda-horizontal-stepper.entry.js +0 -39
  248. package/dist/dda/dda-input.entry.js +0 -56
  249. package/dist/dda/dda-link-button.entry.js +0 -49
  250. package/dist/dda/dda-number-field.entry.js +0 -86
  251. package/dist/dda/dda-pagination.entry.js +0 -86
  252. package/dist/dda/dda-phonefield.entry.js +0 -271
  253. package/dist/dda/dda-progressbar.entry.js +0 -30
  254. package/dist/dda/dda-radiobutton.entry.js +0 -25
  255. package/dist/dda/dda-range-slider.entry.js +0 -55
  256. package/dist/dda/dda-search-input.entry.js +0 -63
  257. package/dist/dda/dda-segmented-tabs.entry.js +0 -96
  258. package/dist/dda/dda-select.entry.js +0 -183
  259. package/dist/dda/dda-sticky-footer.entry.js +0 -61
  260. package/dist/dda/dda-textarea.entry.js +0 -31241
  261. package/dist/dda/dda-toggle.entry.js +0 -25
  262. package/dist/dda/dda-ui-card.entry.js +0 -41
  263. package/dist/dda/dda-vertical-stepper.entry.js +0 -41
  264. package/dist/dda/index-CFIwfRqf.js +0 -4622
  265. package/dist/dda/p-87d647e7.entry.js +0 -1
  266. package/dist/dda/p-9541e108.entry.js +0 -1
  267. package/dist/dda/p-CI_UcUy5.js +0 -2
  268. package/dist/dda/p-c0da1e14.entry.js +0 -1
  269. package/dist/dda/p-c5ebf7df.entry.js +0 -1
  270. package/dist/dda/p-ea1720d2.entry.js +0 -1
  271. package/dist/dda/unique-id-B-I003EB.js +0 -12
  272. package/dist/esm/dda-link-button.entry.js +0 -49
  273. package/dist/esm/dda-radiobutton.entry.js +0 -25
  274. package/dist/esm/index-CFIwfRqf.js +0 -4622
@@ -119,7 +119,7 @@ export class DdaTextarea {
119
119
  this.custom_class, this.component_mode, this.textarea_name,
120
120
  ].filter(Boolean).join(' ');
121
121
  const id = this.inputId;
122
- return (h(Host, { key: 'fbd0f779e531d6274898e847e23c888869d374b4' }, h("div", { key: '98e2a14d0d1bbbfd5e548513e57bfd629e9aba6d', class: textareaClass }, this.label && h("label", { key: '9036385745c7aac2d306ddbbabc347846d9fed0a', id: this.labelId, htmlFor: this.enable_rich_editor ? undefined : id, class: "dda-input-label" }, this.label), this.enable_rich_editor ? (
122
+ return (h(Host, { key: 'c5edab142a6817b728721f1a12e6582050d29410' }, h("div", { key: '67bf7f7bbef0f412b85f5040cce9c5cafcb8c890', class: textareaClass }, this.label && h("label", { key: 'e41f2bb1556278cd8bc733418eea6031ca66cc3d', id: this.labelId, htmlFor: this.enable_rich_editor ? undefined : id, class: "dda-input-label" }, this.label), this.enable_rich_editor ? (
123
123
  // F-015: previously a bare `<div id="editor">` — the visible
124
124
  // label's `for` cannot target a non-labelable <div>, and even
125
125
  // aria-labelledby here would be wrong: Quill turns this
@@ -127,7 +127,7 @@ export class DdaTextarea {
127
127
  // as a child `.ql-editor`, which is what AT and Tab actually
128
128
  // land on. The ARIA lives on quill.root (.ql-editor), applied
129
129
  // imperatively in syncRichEditorA11y() after mount.
130
- h("div", { id: id, class: "dda-richeditor-field" })) : (h("textarea", { id: id, name: this.textarea_name, "aria-label": this.aria_label, placeholder: this.placeholder, value: this.value, onInput: (event) => this.handleInput(event), class: "dda-input-field dda-input-textarea", maxLength: this.max_characters, "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined })), this.helper_text && (h("div", { key: '9eff76cb597be11db41f24acec2ba795bbaba07b', id: this.helperId, class: "dda-helper-text" }, h("span", { key: '968496c3e66d1587cd2893ea63b64dccf21731fc', class: "dda-flex dda-align-center dda-gap-2" }, h("i", { key: '6736864e6729e787f8de71fe12fec6a1a0bcb416', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "info"), " ", this.helper_text), h("span", { key: '44abdcccf9cd7bef214584a46476994d67a5dbe1', class: "dda-letter-count" }, this.characterCount, " / ", this.max_characters))), this.error_message && (h("div", { key: '76fa5f80421859c4539869c507d6af32a2466e23', id: this.errorId, class: "dda-error-message" }, h("span", { key: '89294947ebb7e2b06e9488a7b86f3fa86baac809', class: "dda-flex dda-align-center dda-gap-2" }, h("i", { key: '09a8960b8b08e84222ab35e79e45b4db662201d4', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "info"), " ", this.error_message), h("span", { key: '7e08b00e8620f1892c1c5481f8c9e50a9f342e5d', class: "dda-letter-count" }, this.characterCount, " / ", this.max_characters))))));
130
+ h("div", { id: id, class: "dda-richeditor-field" })) : (h("textarea", { id: id, name: this.textarea_name, "aria-label": this.aria_label, placeholder: this.placeholder, value: this.value, onInput: (event) => this.handleInput(event), class: "dda-input-field dda-input-textarea", maxLength: this.max_characters, "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined })), this.helper_text && (h("div", { key: 'f31f3c2467bcf9b65296f5c0117ebc5d27c4fdab', id: this.helperId, class: "dda-helper-text" }, h("span", { key: '6e419e51c55c6427a7f9ae33d93b7b7a1639ea54', class: "dda-flex dda-align-center dda-gap-2" }, h("i", { key: 'c9804b5734d99b02abf438119aa668b8facf8110', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "info"), " ", this.helper_text), h("span", { key: 'da29cc16cd25173e1834b61c5bfc1d11e878fa1d', class: "dda-letter-count" }, this.characterCount, " / ", this.max_characters))), this.error_message && (h("div", { key: 'a9e908888326a4bf968798fdc58df5706732ef12', id: this.errorId, class: "dda-error-message" }, h("span", { key: 'a03685c802486a01e2797740e459b636365778f8', class: "dda-flex dda-align-center dda-gap-2" }, h("i", { key: '845e5de4faceee90c1ce7f828eb298344f152418', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "info"), " ", this.error_message), h("span", { key: '044631e0c851953de8334d51087d5c7cb430a1e3', class: "dda-letter-count" }, this.characterCount, " / ", this.max_characters))))));
131
131
  }
132
132
  static get is() { return "dda-textarea"; }
133
133
  static get originalStyleUrls() {
@@ -11,7 +11,7 @@ export class DdaToggle {
11
11
  this.custom_class ? `${this.custom_class}` : '',
12
12
  this.component_mode,
13
13
  ].filter(Boolean).join(' ');
14
- return (h(Host, { key: 'e25bac987e66556b003d3b670af9b576d3731c65' }, h("label", { key: '2262c2a410e4758bb34eb2666e416e8286302769', class: toggleClass, htmlFor: this.input_id }, h("input", { key: 'ca009a89a6405dcd9f30dac79791c9a124ef8c69', "aria-label": this.aria_label, type: "checkbox", id: this.input_id, name: this.group_name, checked: this.checked }), h("span", { key: '1401b3e6730beff1ac6fbe4e3854755b21abdc5d', class: "toggle" }), (this.title_text || this.supporting) && (h("p", { key: '88a13db082dc429d130f732f7ebe3ecc867f2686' }, this.title_text && h("span", { key: 'ec018b2656d9e2ff697a0d6e88b7901940830216', class: "toggle-title" }, this.title_text), this.supporting && h("span", { key: '64372b8ae3369b1d844d7681bcefbad9a876f069', class: "toggle-supporting" }, this.supporting))))));
14
+ return (h(Host, { key: '594a044248a1ea4f445ed239d97c56a1976e167a' }, h("label", { key: '2d20d01b337379355004d902b60d9b499f9055fc', class: toggleClass, htmlFor: this.input_id }, h("input", { key: '081734cff68c6228fc7daa23ce821e7ac5bc817f', "aria-label": this.aria_label, type: "checkbox", id: this.input_id, name: this.group_name, checked: this.checked }), h("span", { key: '7c41a8ece7705f6fb3bb779dcdca7e09ca7df610', class: "toggle" }), (this.title_text || this.supporting) && (h("p", { key: 'cdf4855501fa3d62d2371179fdb7a28070b1f0ce' }, this.title_text && h("span", { key: '019febd23f5964bd936d3edca64e7d2010a7dfab', class: "toggle-title" }, this.title_text), this.supporting && h("span", { key: 'a5bdee7e1ccc27ab2279e5ae9e5cab37aa32f709', class: "toggle-supporting" }, this.supporting))))));
15
15
  }
16
16
  static get is() { return "dda-toggle"; }
17
17
  static get originalStyleUrls() {
@@ -31,7 +31,7 @@ export class DdaTooltip {
31
31
  this.el.removeEventListener('mouseleave', this.resetDismissed);
32
32
  }
33
33
  render() {
34
- return (h(Host, { key: '1a5eab371fff341d3398db57a3c5a283ad0edf50' }, h("div", { key: '0c72ac7e72eda7bc713b1e7b4ab58d93fef09b80', class: `dda-tooltip-container ${this.custom_class} ${this.component_mode} ${this.dismissed ? 'dismissed' : ''}` }, h("slot", { key: '91aa439ca4f29eb57af61620b1b99008d8799bea' }), h("div", { key: '7c2c180466082d69591138adbd6f80ef015f1265', class: `dda-tooltip-box ${this.position}` }, h("strong", { key: '784c70b9847e921e5b4f3f3533478966e5e33cd9' }, this.title_text), h("p", { key: '3932ff682897bade6d9298c4f0d7547e65f6408a' }, this.description)))));
34
+ return (h(Host, { key: '6f9ecc5f00431d9bcd4d94ac3ec2636901540a6c' }, h("div", { key: 'cd08883c43bf2b03965b0d3c96a13e78aa690f02', class: `dda-tooltip-container ${this.custom_class} ${this.component_mode} ${this.dismissed ? 'dismissed' : ''}` }, h("slot", { key: '21ee3779a3bdef7ac2f53089e2e43b57634a60e0' }), h("div", { key: 'cda784b2367e27f3b6856ec67ad2a68058a7aed2', class: `dda-tooltip-box ${this.position}` }, h("strong", { key: 'c8dc3672a03fc16589aadc1da1757bbb72f699c5' }, this.title_text), h("p", { key: 'a5082ddd48a0e60d07007bad1909ec7605d6ef95' }, this.description)))));
35
35
  }
36
36
  static get is() { return "dda-tooltip"; }
37
37
  static get originalStyleUrls() {
@@ -28,7 +28,7 @@ export class DdaUiCard {
28
28
  }
29
29
  render() {
30
30
  const HeadingTag = this.headingTag;
31
- return (h(Host, { key: '4657e8ea3f7a5782eff6d4d004afc15030a9d89d' }, h("div", { key: '929b59ee6a676e9ee95441907bea8d98a7f62bcb', class: 'dda-card' }, h("div", { key: 'c7a7a115aef102e726f3232bcc7c75cfac9b676c', class: 'dda-card-body' }, this.type !== 'custom' && (h("div", { key: '50e93eb07a7bf279af39d8af5536292b41fef9f8' }, !!this.icon && (h("span", { key: 'f449d9a299d8cb5a534277babe0e413c43b091af', class: 'dda-card-icon' }, h("i", { key: '5d51449ce164db38f3d6540e9fae2dbade609b10', class: 'material-icons', "aria-hidden": "true" }, this.icon))), !!this.image && (h("span", { key: '55d39ea5df2decaf84062e4149a8a690c34801f4', class: 'dda-card-icon' }, h("img", { key: '9cf6e418dbfd5a69f3b745abf57cd9e5ad3fcd54', src: this.image, alt: this.maintitle }))), !!this.maintitle && h(HeadingTag, { key: 'ba558f13bba45d63e1940fdf5bc3e8501ee3d2f0', class: 'dda-card-title' }, this.maintitle), !!this.subtitle && h("p", { key: 'a03f8484f9de87dd5de5df7d86ef16348f35544e', class: 'dda-card-text-muted' }, this.subtitle), !!this.link && (h("a", { key: 'f64d0dc6f8940ef81a789a056fdb280bedf2b95e', href: this.link, class: 'dda-card-link', onClick: (event) => this.linkClick.emit(event) }, this.linktext, ' ', this.linkicon && (h("span", { key: '743465002d7738b4d8aa0145689c14e814f99ffe' }, h("i", { key: '6812c7e5e69512ea16a2a6a61f47990c4f80900c', class: 'material-icons', "aria-hidden": "true" }, this.linkicon))))))), h("slot", { key: '684fe104483ca674eb0ce801a484ca7307a39f48' })))));
31
+ return (h(Host, { key: '1bbdb967a31df80eb8d5bc04764a1caf1fa198b3' }, h("div", { key: 'daf4a4e9096e7a2bbd17b90e890cd12b034fb0fa', class: 'dda-card' }, h("div", { key: '36a0c9f0f2744a761d951e245741fe427a17d0c1', class: 'dda-card-body' }, this.type !== 'custom' && (h("div", { key: '9062bafbd3168c130be10eb44d8154a8f66c68e8' }, !!this.icon && (h("span", { key: '2c0b9b94601f3a53dd9fe0480b8dbd95d427afea', class: 'dda-card-icon' }, h("i", { key: 'd1f692ab879ca203c0361ca96f1e92694417bf8d', class: 'material-icons', "aria-hidden": "true" }, this.icon))), !!this.image && (h("span", { key: '63b3fd072c5417695eba7b883be27b1f1d848841', class: 'dda-card-icon' }, h("img", { key: '7860e1a3df40a4fa4d35b06c1fb58f66f554563c', src: this.image, alt: this.maintitle }))), !!this.maintitle && h(HeadingTag, { key: '0202e3ef4cc6dbed859f11c63d76c9df5a2c2340', class: 'dda-card-title' }, this.maintitle), !!this.subtitle && h("p", { key: 'd376be8224e3f0c48bf56d0e067e3e875352df98', class: 'dda-card-text-muted' }, this.subtitle), !!this.link && (h("a", { key: '47be07e6756f019a12385aab8ee5063848fc2f56', href: this.link, class: 'dda-card-link', onClick: (event) => this.linkClick.emit(event) }, this.linktext, ' ', this.linkicon && (h("span", { key: '5ee32e96529e3d5badad707cb9c1293b113e3370' }, h("i", { key: 'd1eb863f78293d3af3ed4b1df56c18126538c4b0', class: 'material-icons', "aria-hidden": "true" }, this.linkicon))))))), h("slot", { key: 'd0c885254ad24cbfda489377950ae178bf0cb134' })))));
32
32
  }
33
33
  static get is() { return "dda-ui-card"; }
34
34
  static get originalStyleUrls() {
@@ -1,42 +1,51 @@
1
1
  .dda-segmented-group {
2
2
  display: inline-flex;
3
+ /* A group wider than its container scrolls inside itself, not the page. The scroll box
4
+ also clips the segments to the rounded corners. */
5
+ max-width: 100%;
6
+ overflow-x: auto;
7
+ scrollbar-width: thin;
3
8
  border: solid 1px var(--dda-surface-90);
4
9
  border-radius: 8px;
5
- overflow: hidden;
6
10
  }
7
- .light-mode.dda-segmented-group{
11
+ .light-mode.dda-segmented-group {
8
12
  border: solid 1px var(--dda-neutral-90);
9
13
  }
10
14
  .dda-segmented-item {
11
15
  display: flex;
12
- height: 40px;
16
+ /* Labels stay on one line; the group scrolls instead of the segments shrinking. */
17
+ flex: none;
18
+ white-space: nowrap;
19
+ min-height: 40px;
13
20
  padding: 5px 16px;
14
21
  border: transparent;
15
22
  border-inline-start: solid 1px var(--dda-surface-90);
16
23
  background-color: var(--dda-surface-100);
24
+ /* Browsers give a button the system font; take the page font (Dubai) instead. */
25
+ font-family: inherit;
17
26
  font-size: 16px;
18
27
  color: var(--dda-on-surface-variant-30);
19
28
  cursor: pointer;
20
29
  align-items: center;
21
30
  }
22
- .light-mode .dda-segmented-item{
31
+ .light-mode .dda-segmented-item {
23
32
  background-color: var(--dda-neutral-100);
24
33
  color: var(--dda-neutral-variant-30);
25
34
  border-inline-start: solid 1px var(--dda-neutral-90);
26
35
  }
27
- .dda-segmented-group .dda-segmented-item:first-child{
36
+ .dda-segmented-group .dda-segmented-item:first-child {
28
37
  border: transparent;
29
38
  }
30
- .dda-segmented-group.square{
39
+ .dda-segmented-group.square {
31
40
  border-radius: 8px;
32
41
  }
33
- .dda-segmented-group.rounded{
42
+ .dda-segmented-group.rounded {
34
43
  border-radius: 40px;
35
44
  }
36
45
  .dda-segmented-item:hover {
37
46
  color: var(--dda-color-primary-40);
38
47
  }
39
- .light-mode .dda-segmented-item:hover{
48
+ .light-mode .dda-segmented-item:hover {
40
49
  color: var(--dda-primary-40);
41
50
  }
42
51
  .dda-segmented-item.active {
@@ -49,4 +58,15 @@
49
58
  }
50
59
  .dda-segmented-item i {
51
60
  font-size: 18px;
52
- }
61
+ }
62
+ /* The ring is drawn inside the segment, because the group's scroll box clips anything
63
+ outside it. The inner light band keeps the ring visible on the selected (filled) segment. */
64
+ .dda-segmented-item:focus-visible {
65
+ outline: 3px solid var(--dda-on-surface-0);
66
+ outline-offset: -3px;
67
+ box-shadow: inset 0 0 0 5px var(--dda-surface-100);
68
+ }
69
+ .light-mode .dda-segmented-item:focus-visible {
70
+ outline-color: var(--dda-neutral-0);
71
+ box-shadow: inset 0 0 0 5px var(--dda-neutral-100);
72
+ }
@@ -69,7 +69,7 @@ export class DdaSegmentedTabs {
69
69
  this.segmentChange.emit(index);
70
70
  }
71
71
  render() {
72
- return (h("div", { key: '40c6831dac81e967a3c5d03294811bbc7a320a8a', role: "group", "aria-label": this.aria_label, class: `dda-segmented-group ${this.custom_class} ${this.radius_type} ${this.component_mode}` }, this.parsedItems.map((item, index) => {
72
+ return (h("div", { key: '53f6f24a1b70fed2a4b1bf12f01d04ea40a61cc6', role: "group", "aria-label": this.aria_label, class: `dda-segmented-group ${this.custom_class} ${this.radius_type} ${this.component_mode}` }, this.parsedItems.map((item, index) => {
73
73
  const isSelected = index === this.active_index;
74
74
  const className = `dda-segmented-item${isSelected ? ' active' : ''}`;
75
75
  return item.startsWith('fo') ? (h("button", { name: this.button_name, type: "button", class: className, "aria-pressed": isSelected ? 'true' : 'false', "aria-label": this.iconLabel(item, index), onClick: () => this.selectSegment(index) }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, item))) : (h("button", { name: this.button_name, type: "button", class: className, "aria-pressed": isSelected ? 'true' : 'false', onClick: () => this.selectSegment(index) }, item));
@@ -20,7 +20,7 @@ export class DdaHorizontalStepper {
20
20
  }
21
21
  }
22
22
  render() {
23
- return (h(Host, { key: '75261062c08c270dba9d852edb661a10ff4bb487' }, h("div", { key: 'f7eb40831a7b276848a4ef7bcaddafe05404aca8', class: `${this.custom_class} ${this.component_mode} h-stepper-container` }, this.parsedSteps.map((step, index) => (h("div", { class: `h-step ${index === this.current_step ? 'active' : ''} ${index < this.current_step ? 'completed' : ''}` }, h("div", { class: "h-step-indicator" }, h("div", { class: "circle" })), h("div", { class: "h-step-content" }, h("div", { class: "h-step-title" }, step.title), h("div", { class: "h-step-subtitle" }, step.subtitle), h("div", { class: "h-step-description" }, step.description))))))));
23
+ return (h(Host, { key: '10e1418182c1cf52a9415bf84fbceae00b011add' }, h("div", { key: 'dbbc4fb5892954834c15512f76c551a7827b81e1', class: `${this.custom_class} ${this.component_mode} h-stepper-container` }, this.parsedSteps.map((step, index) => (h("div", { class: `h-step ${index === this.current_step ? 'active' : ''} ${index < this.current_step ? 'completed' : ''}` }, h("div", { class: "h-step-indicator" }, h("div", { class: "circle" })), h("div", { class: "h-step-content" }, h("div", { class: "h-step-title" }, step.title), h("div", { class: "h-step-subtitle" }, step.subtitle), h("div", { class: "h-step-description" }, step.description))))))));
24
24
  }
25
25
  static get is() { return "dda-horizontal-stepper"; }
26
26
  static get originalStyleUrls() {
@@ -24,7 +24,7 @@ export class DdaVerticalStepper {
24
24
  render() {
25
25
  var _a;
26
26
  const current = (_a = this.current_step) !== null && _a !== void 0 ? _a : this.current_Step;
27
- return (h(Host, { key: '65de2bf7a859c1deb216c9042031cde73378e622' }, h("div", { key: '38cd1783a7f3b5ba036aebace4fd3ce86b34a978', class: `${this.custom_class} ${this.component_mode} v-stepper-container` }, this.parsedSteps.map((step, index) => (h("div", { class: `v-step ${index <= current ? 'active' : ''}` }, h("div", { class: "v-step-indicator" }, h("div", { class: "icon" }, h("i", { class: `material-icons` }, step.icon))), h("div", { class: "v-step-content" }, h("div", { class: "v-step-title" }, step.title), h("div", { class: "v-step-subtitle" }, step.subtitle), h("div", { class: "v-step-description" }, step.description)), h("div", { class: "v-step-arrow" }, h("i", { class: "material-icons material-symbols-outlined" }, "chevron_right"))))))));
27
+ return (h(Host, { key: '8d8d30895491f4053370c1fa392f81a8c8df91ac' }, h("div", { key: '558f122ea5c72cadb35efc70d31cd18ec1271ca1', class: `${this.custom_class} ${this.component_mode} v-stepper-container` }, this.parsedSteps.map((step, index) => (h("div", { class: `v-step ${index <= current ? 'active' : ''}` }, h("div", { class: "v-step-indicator" }, h("div", { class: "icon" }, h("i", { class: `material-icons` }, step.icon))), h("div", { class: "v-step-content" }, h("div", { class: "v-step-title" }, step.title), h("div", { class: "v-step-subtitle" }, step.subtitle), h("div", { class: "v-step-description" }, step.description)), h("div", { class: "v-step-arrow" }, h("i", { class: "material-icons material-symbols-outlined" }, "chevron_right"))))))));
28
28
  }
29
29
  static get is() { return "dda-vertical-stepper"; }
30
30
  static get originalStyleUrls() {
@@ -718,7 +718,7 @@
718
718
  --dda-quick-links-card-height-sm: 112px;
719
719
  }
720
720
 
721
- .quick-links-wrap {
721
+ :is(.quick-links-wrap, .dda-home-quick-links-wrap) {
722
722
  width: 100%;
723
723
  position: absolute;
724
724
  /* dda-sticky-footer sets --dda-sticky-footer-height; the cards sit above the fixed bar.
@@ -742,7 +742,7 @@
742
742
 
743
743
  /* One row of cards. When the cards do not fit, the row scrolls sideways. A card cut at the edge,
744
744
  a fade on each edge with more cards, and a thin scrollbar show that the row scrolls. */
745
- .quick-links-wrap,
745
+ :is(.quick-links-wrap, .dda-home-quick-links-wrap),
746
746
  .quick-links {
747
747
  /* Room inside the row for the hover lift (12px above) and the pointer (9px below);
748
748
  a scrolling box clips anything outside it. */
@@ -865,14 +865,14 @@
865
865
  .slide-content p {
866
866
  width: 100%;
867
867
  }
868
- .quick-links-wrap {
868
+ :is(.quick-links-wrap, .dda-home-quick-links-wrap) {
869
869
  position: relative;
870
870
  /* In normal flow the cards do not sit over the fixed bar, so keep the original offset. */
871
871
  bottom: 45px;
872
872
  }
873
873
  /* Below the banner, on the page background: the row spans the screen, and each card is
874
874
  narrower than the row so the next card shows at the edge. */
875
- .quick-links-wrap .quick-links {
875
+ :is(.quick-links-wrap, .dda-home-quick-links-wrap) .quick-links {
876
876
  width: 100%;
877
877
  box-sizing: border-box;
878
878
  padding: 20px 20px var(--dda-quick-links-pad-bottom);
@@ -957,12 +957,12 @@
957
957
  controls move above them (home-banner.css). On short landscape screens the banner cannot hold
958
958
  the text, the controls and the cards, so the cards stay under it (the rules above). */
959
959
  @media screen and (max-width: 992px) and (min-height: 601px) {
960
- .quick-links-wrap {
960
+ :is(.quick-links-wrap, .dda-home-quick-links-wrap) {
961
961
  position: absolute;
962
962
  /* The row's bottom padding is part of the gap above the bar. */
963
963
  bottom: calc(var(--dda-quick-links-gap-sm) - var(--dda-quick-links-pad-bottom) + var(--dda-sticky-footer-height, 0px));
964
964
  }
965
- .quick-links-wrap .quick-links {
965
+ :is(.quick-links-wrap, .dda-home-quick-links-wrap) .quick-links {
966
966
  padding-top: var(--dda-quick-links-pad-top);
967
967
  scrollbar-color: rgba(255, 255, 255, 0.7) transparent;
968
968
  }
@@ -990,6 +990,59 @@
990
990
  }
991
991
  }
992
992
 
993
+ /* dda-home-carousel: its list is a .quick-links row; each <li> holds one dda-banner-card. */
994
+ ul.quick-links {
995
+ margin-block: 0;
996
+ list-style: none;
997
+ }
998
+ .quick-links > .dda-home-carousel-item {
999
+ flex: 0 0 max(220px, calc((100% - (var(--dda-home-carousel-per-view, 5) - 1) * 8px) / var(--dda-home-carousel-per-view, 5)));
1000
+ display: flex;
1001
+ scroll-snap-align: start;
1002
+ list-style: none;
1003
+ }
1004
+ .dda-home-carousel-item dda-banner-card {
1005
+ display: flex;
1006
+ width: 100%;
1007
+ }
1008
+ .dda-home-carousel-item .link-item {
1009
+ width: 100%;
1010
+ flex: 1 1 auto;
1011
+ }
1012
+ /* A card without a URL is a <button>: remove the browser button look. */
1013
+ button.link-item {
1014
+ border: 0;
1015
+ font: inherit;
1016
+ text-align: start;
1017
+ cursor: pointer;
1018
+ }
1019
+ .quick-links .link-item img {
1020
+ display: block;
1021
+ height: 35px;
1022
+ width: auto;
1023
+ margin-bottom: 15px;
1024
+ }
1025
+ .quick-links .link-item:focus-visible {
1026
+ outline: 2px solid var(--dda-color-primary-40);
1027
+ outline-offset: 2px;
1028
+ margin-top: -12px;
1029
+ }
1030
+ @media screen and (max-width: 992px) and (min-height: 601px) {
1031
+ .quick-links > .dda-home-carousel-item {
1032
+ flex: 0 0 min(75%, 300px);
1033
+ }
1034
+ .quick-links .link-item img {
1035
+ height: 24px;
1036
+ margin-bottom: 8px;
1037
+ }
1038
+ }
1039
+ @media only screen and (orientation: landscape) and (max-width: 1600px) {
1040
+ .quick-links .link-item img {
1041
+ height: 20px;
1042
+ margin-bottom: 5px;
1043
+ }
1044
+ }
1045
+
993
1046
  .dda-card {
994
1047
  position: relative;
995
1048
  display: -ms-flexbox;
@@ -2346,6 +2399,77 @@ body {
2346
2399
  }
2347
2400
  }
2348
2401
 
2402
+ /* dubai.ae: a wordmark on desktop, a small icon at 992px and below. */
2403
+ .dda-footer .dubaiae-text-icon {
2404
+ height: 18px;
2405
+ }
2406
+ .dda-footer .dubaiae-small-icon {
2407
+ height: 24px;
2408
+ display: none;
2409
+ }
2410
+ /* The "more" button exists only with more-icon; it is shown at 992px and below. */
2411
+ .dda-footer-right {
2412
+ position: relative;
2413
+ }
2414
+ .dda-footer-right button.show-right-icon {
2415
+ display: none;
2416
+ }
2417
+ @media (max-width: 992px) {
2418
+ .dda-footer .dubaiae-text-icon {
2419
+ display: none;
2420
+ }
2421
+ .dda-footer .dubaiae-small-icon {
2422
+ display: block;
2423
+ }
2424
+ .dda-footer-right button.show-right-icon {
2425
+ display: flex;
2426
+ align-items: center;
2427
+ justify-content: center;
2428
+ width: 48px;
2429
+ height: 48px;
2430
+ background: #ffffff;
2431
+ border: 0;
2432
+ border-radius: 50px;
2433
+ box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
2434
+ color: var(--dda-on-surface-variant-30);
2435
+ cursor: pointer;
2436
+ }
2437
+ .dda-footer-right button.show-right-icon i {
2438
+ font-size: 34px;
2439
+ }
2440
+ .dda-footer-right button.show-right-icon:focus-visible {
2441
+ outline: none;
2442
+ box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(0, 0, 0, 0.65);
2443
+ }
2444
+ .dda-footer.has-more-button .dda-footer-right .foot-right_links {
2445
+ position: absolute;
2446
+ bottom: 59px;
2447
+ inset-inline-end: 0;
2448
+ display: flex;
2449
+ flex-direction: column;
2450
+ gap: 10px;
2451
+ height: 0;
2452
+ overflow: hidden;
2453
+ }
2454
+ .dda-footer.has-more-button .dda-footer-right .foot-right_links.show-dda-icon {
2455
+ height: auto;
2456
+ overflow: visible;
2457
+ }
2458
+ .dda-footer.has-more-button .foot-right_links li {
2459
+ opacity: 0;
2460
+ transform: translateY(20px);
2461
+ }
2462
+ .dda-footer.has-more-button .foot-right_links.show-dda-icon li {
2463
+ opacity: 1;
2464
+ transform: translateY(0);
2465
+ }
2466
+ }
2467
+ @media (max-width: 992px) and (prefers-reduced-motion: no-preference) {
2468
+ .dda-footer.has-more-button .foot-right_links li {
2469
+ transition: opacity 0.4s ease, transform 0.4s ease;
2470
+ }
2471
+ }
2472
+
2349
2473
  .dda-dashboard-sidebar {
2350
2474
  position: fixed;
2351
2475
  top: 0;
@@ -3686,6 +3810,104 @@ ul.main_side_menu .main_sub_menu .main_sub_menu .main_sub_menu {
3686
3810
  }
3687
3811
  }
3688
3812
 
3813
+ /* 3.x dropdown submenus (quick-links items with "type": "dda_default_submenu"). */
3814
+ .dda-mega-menu > li {
3815
+ position: relative;
3816
+ }
3817
+ /* The <ul> scrolls; the third-level panel is its sibling, so the scroll does not clip it.
3818
+ The fixed width puts the panel (inset-inline-start: 100%) against the edge of the <ul>. */
3819
+ .dda-default-submenu {
3820
+ display: none;
3821
+ width: 350px;
3822
+ position: absolute;
3823
+ top: 100%;
3824
+ inset-inline-start: 0;
3825
+ padding-top: 5px;
3826
+ z-index: 5;
3827
+ }
3828
+ .dda-default-submenu.is-visible {
3829
+ display: block;
3830
+ }
3831
+ .dda-default-submenu > ul {
3832
+ width: 100%;
3833
+ max-width: 350px;
3834
+ max-height: 325px;
3835
+ overflow-y: auto;
3836
+ margin: 0;
3837
+ padding: 10px;
3838
+ list-style: none;
3839
+ background-color: var(--dda-surface-100);
3840
+ border-radius: 5px;
3841
+ box-shadow: 0 6px 7px 0 rgba(0, 0, 0, 0.13);
3842
+ }
3843
+ .dda-default-submenu li {
3844
+ list-style: none;
3845
+ position: relative;
3846
+ margin-bottom: 1px;
3847
+ }
3848
+ .dda-default-submenu a {
3849
+ position: relative;
3850
+ display: block;
3851
+ padding: 10px 7px;
3852
+ padding-inline-end: 24px;
3853
+ border-radius: 8px;
3854
+ font-size: var(--dda-fs-body-lg);
3855
+ font-weight: var(--dda-fw-400);
3856
+ color: var(--dda-on-surface-0);
3857
+ }
3858
+ .dda-default-submenu li:hover > a,
3859
+ .dda-default-submenu a.active {
3860
+ background-color: var(--dda-on-primary-98);
3861
+ color: var(--dda-on-primary-variant-40);
3862
+ }
3863
+ .dda-default-submenu a:focus-visible {
3864
+ outline: 2px solid var(--dda-color-primary-40);
3865
+ outline-offset: 0;
3866
+ }
3867
+ .dda-default-submenu a.has-submenu::after {
3868
+ content: '';
3869
+ width: 6px;
3870
+ height: 6px;
3871
+ border-right: solid 1px var(--dda-color-primary-40);
3872
+ border-bottom: solid 1px var(--dda-color-primary-40);
3873
+ position: absolute;
3874
+ top: 50%;
3875
+ inset-inline-end: 9px;
3876
+ margin-top: -4.5px;
3877
+ transform: rotate(-45deg);
3878
+ }
3879
+ [dir='rtl'] .dda-default-submenu a.has-submenu::after {
3880
+ transform: rotate(135deg);
3881
+ }
3882
+ .dda-default-subsubmenu {
3883
+ display: none;
3884
+ width: 300px;
3885
+ position: absolute;
3886
+ top: 0;
3887
+ inset-inline-start: 100%;
3888
+ padding-inline-start: 15px;
3889
+ }
3890
+ .dda-default-subsubmenu.is-visible {
3891
+ display: block;
3892
+ }
3893
+ .dda-default-subsubmenu-content {
3894
+ padding: 10px;
3895
+ background-color: var(--dda-surface-100);
3896
+ border-radius: 5px;
3897
+ box-shadow: 0 6px 7px 0 rgba(0, 0, 0, 0.13);
3898
+ }
3899
+ .dda-default-subsubmenu-content ul {
3900
+ margin: 0;
3901
+ padding: 0;
3902
+ }
3903
+ .dda-submenu-title {
3904
+ display: block;
3905
+ padding: 5px 8px 10px;
3906
+ margin-bottom: 5px;
3907
+ border-bottom: solid 1px var(--dda-surface-variant-80);
3908
+ font-weight: var(--dda-fw-700);
3909
+ }
3910
+
3689
3911
 
3690
3912
  :root{
3691
3913
  --font-family-main: 'Dubai', sans-serif;
@@ -0,0 +1,34 @@
1
+ // Reads a prop that takes a list: a JSON string from an HTML attribute, or an array that a
2
+ // framework wrapper sets as a property. A bad value must never stop the component rendering,
3
+ // so it gives an empty list and one warning that names the attribute. Entries that are not plain
4
+ // objects (null, a number, a string, an array) are dropped, also with one warning, so that the
5
+ // component never reads a field of a non-object.
6
+ export function parseJsonProp(value, propName) {
7
+ if (value === undefined || value === null || value === '')
8
+ return [];
9
+ if (Array.isArray(value))
10
+ return objectsOnly(value, propName);
11
+ if (typeof value === 'string') {
12
+ try {
13
+ const parsed = JSON.parse(value);
14
+ if (Array.isArray(parsed))
15
+ return objectsOnly(parsed, propName);
16
+ console.warn(`${propName}: expected a JSON array; the value is ignored.`);
17
+ return [];
18
+ }
19
+ catch (_a) {
20
+ console.warn(`${propName}: the value is not valid JSON; it is ignored.`);
21
+ return [];
22
+ }
23
+ }
24
+ console.warn(`${propName}: expected a JSON array; the value is ignored.`);
25
+ return [];
26
+ }
27
+ const isPlainObject = (entry) => entry !== null && typeof entry === 'object' && !Array.isArray(entry);
28
+ // Returns the same array when every entry is an object, so an array property stays unchanged.
29
+ function objectsOnly(list, propName) {
30
+ if (list.every(isPlainObject))
31
+ return list;
32
+ console.warn(`${propName}: an item is not an object; it is ignored.`);
33
+ return list.filter(isPlainObject);
34
+ }