@wavemaker-ai/app-ng-runtime 12.0.2-rc.647771 → 12.1.0-rc.647821

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 (473) hide show
  1. package/build-task/bundles/index.umd.js +2489 -2963
  2. package/build-task/fesm2022/index.mjs +2307 -2786
  3. package/build-task/fesm2022/index.mjs.map +1 -1
  4. package/build-task/types/index.d.ts +401 -844
  5. package/components/advanced/carousel/bundles/index.umd.js +387 -344
  6. package/components/advanced/carousel/fesm2022/index.mjs +363 -325
  7. package/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
  8. package/components/advanced/carousel/types/index.d.ts +85 -86
  9. package/components/advanced/custom/bundles/index.umd.js +298 -249
  10. package/components/advanced/custom/fesm2022/index.mjs +280 -236
  11. package/components/advanced/custom/fesm2022/index.mjs.map +1 -1
  12. package/components/advanced/custom/types/index.d.ts +49 -49
  13. package/components/advanced/login/bundles/index.umd.js +177 -127
  14. package/components/advanced/login/fesm2022/index.mjs +162 -117
  15. package/components/advanced/login/fesm2022/index.mjs.map +1 -1
  16. package/components/advanced/login/types/index.d.ts +33 -34
  17. package/components/advanced/marquee/bundles/index.umd.js +93 -63
  18. package/components/advanced/marquee/fesm2022/index.mjs +73 -48
  19. package/components/advanced/marquee/fesm2022/index.mjs.map +1 -1
  20. package/components/advanced/marquee/types/index.d.ts +11 -12
  21. package/components/base/bundles/index.umd.js +5515 -6359
  22. package/components/base/fesm2022/index.mjs +5169 -6027
  23. package/components/base/fesm2022/index.mjs.map +1 -1
  24. package/components/base/types/index.d.ts +1198 -1154
  25. package/components/basic/anchor/bundles/index.umd.js +273 -195
  26. package/components/basic/anchor/fesm2022/index.mjs +251 -178
  27. package/components/basic/anchor/fesm2022/index.mjs.map +1 -1
  28. package/components/basic/anchor/types/index.d.ts +40 -41
  29. package/components/basic/audio/bundles/index.umd.js +124 -75
  30. package/components/basic/audio/fesm2022/index.mjs +104 -60
  31. package/components/basic/audio/fesm2022/index.mjs.map +1 -1
  32. package/components/basic/audio/types/index.d.ts +22 -23
  33. package/components/basic/html/bundles/index.umd.js +144 -113
  34. package/components/basic/html/fesm2022/index.mjs +125 -99
  35. package/components/basic/html/fesm2022/index.mjs.map +1 -1
  36. package/components/basic/html/types/index.d.ts +20 -17
  37. package/components/basic/icon/bundles/index.umd.js +144 -72
  38. package/components/basic/icon/fesm2022/index.mjs +124 -57
  39. package/components/basic/icon/fesm2022/index.mjs.map +1 -1
  40. package/components/basic/icon/types/index.d.ts +18 -19
  41. package/components/basic/iframe/bundles/index.umd.js +143 -93
  42. package/components/basic/iframe/fesm2022/index.mjs +124 -79
  43. package/components/basic/iframe/fesm2022/index.mjs.map +1 -1
  44. package/components/basic/iframe/types/index.d.ts +28 -29
  45. package/components/basic/label/bundles/index.umd.js +136 -120
  46. package/components/basic/label/fesm2022/index.mjs +118 -107
  47. package/components/basic/label/fesm2022/index.mjs.map +1 -1
  48. package/components/basic/label/types/index.d.ts +14 -15
  49. package/components/basic/picture/bundles/index.umd.js +171 -130
  50. package/components/basic/picture/fesm2022/index.mjs +152 -116
  51. package/components/basic/picture/fesm2022/index.mjs.map +1 -1
  52. package/components/basic/picture/types/index.d.ts +21 -22
  53. package/components/basic/progress/progress-bar/bundles/index.umd.js +211 -160
  54. package/components/basic/progress/progress-bar/fesm2022/index.mjs +193 -147
  55. package/components/basic/progress/progress-bar/fesm2022/index.mjs.map +1 -1
  56. package/components/basic/progress/progress-bar/types/index.d.ts +45 -41
  57. package/components/basic/progress/progress-circle/bundles/index.umd.js +294 -165
  58. package/components/basic/progress/progress-circle/fesm2022/index.mjs +274 -150
  59. package/components/basic/progress/progress-circle/fesm2022/index.mjs.map +1 -1
  60. package/components/basic/progress/progress-circle/types/index.d.ts +41 -42
  61. package/components/basic/progress/progress-utils/bundles/index.umd.js +27 -29
  62. package/components/basic/progress/progress-utils/fesm2022/index.mjs +18 -25
  63. package/components/basic/progress/progress-utils/fesm2022/index.mjs.map +1 -1
  64. package/components/basic/progress/progress-utils/types/index.d.ts +3 -5
  65. package/components/basic/rich-text-editor/bundles/index.umd.js +294 -228
  66. package/components/basic/rich-text-editor/fesm2022/index.mjs +275 -214
  67. package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
  68. package/components/basic/rich-text-editor/types/index.d.ts +55 -56
  69. package/components/basic/search/bundles/index.umd.js +1129 -1090
  70. package/components/basic/search/fesm2022/index.mjs +1117 -1083
  71. package/components/basic/search/fesm2022/index.mjs.map +1 -1
  72. package/components/basic/search/types/index.d.ts +132 -130
  73. package/components/basic/spinner/bundles/index.umd.js +216 -120
  74. package/components/basic/spinner/fesm2022/index.mjs +201 -110
  75. package/components/basic/spinner/fesm2022/index.mjs.map +1 -1
  76. package/components/basic/spinner/types/index.d.ts +30 -31
  77. package/components/basic/tree/bundles/index.umd.js +756 -756
  78. package/components/basic/tree/fesm2022/index.mjs +740 -745
  79. package/components/basic/tree/fesm2022/index.mjs.map +1 -1
  80. package/components/basic/tree/types/index.d.ts +106 -97
  81. package/components/basic/video/bundles/index.umd.js +164 -108
  82. package/components/basic/video/fesm2022/index.mjs +145 -94
  83. package/components/basic/video/fesm2022/index.mjs.map +1 -1
  84. package/components/basic/video/types/index.d.ts +29 -30
  85. package/components/chart/bundles/index.umd.js +1768 -1737
  86. package/components/chart/fesm2022/index.mjs +1713 -1728
  87. package/components/chart/fesm2022/index.mjs.map +1 -1
  88. package/components/chart/types/index.d.ts +102 -104
  89. package/components/containers/accordion/bundles/index.umd.js +522 -494
  90. package/components/containers/accordion/fesm2022/index.mjs +502 -479
  91. package/components/containers/accordion/fesm2022/index.mjs.map +1 -1
  92. package/components/containers/accordion/types/index.d.ts +116 -116
  93. package/components/containers/layout-grid/bundles/index.umd.js +260 -164
  94. package/components/containers/layout-grid/fesm2022/index.mjs +231 -140
  95. package/components/containers/layout-grid/fesm2022/index.mjs.map +1 -1
  96. package/components/containers/layout-grid/types/index.d.ts +30 -27
  97. package/components/containers/linear-layout/bundles/index.umd.js +220 -178
  98. package/components/containers/linear-layout/fesm2022/index.mjs +193 -156
  99. package/components/containers/linear-layout/fesm2022/index.mjs.map +1 -1
  100. package/components/containers/linear-layout/types/index.d.ts +26 -26
  101. package/components/containers/panel/bundles/index.umd.js +343 -215
  102. package/components/containers/panel/fesm2022/index.mjs +330 -207
  103. package/components/containers/panel/fesm2022/index.mjs.map +1 -1
  104. package/components/containers/panel/types/index.d.ts +48 -49
  105. package/components/containers/tabs/bundles/index.umd.js +832 -779
  106. package/components/containers/tabs/fesm2022/index.mjs +811 -763
  107. package/components/containers/tabs/fesm2022/index.mjs.map +1 -1
  108. package/components/containers/tabs/types/index.d.ts +134 -126
  109. package/components/containers/tile/bundles/index.umd.js +93 -60
  110. package/components/containers/tile/fesm2022/index.mjs +75 -47
  111. package/components/containers/tile/fesm2022/index.mjs.map +1 -1
  112. package/components/containers/tile/types/index.d.ts +11 -12
  113. package/components/containers/wizard/bundles/index.umd.js +1096 -1078
  114. package/components/containers/wizard/fesm2022/index.mjs +1069 -1056
  115. package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
  116. package/components/containers/wizard/types/index.d.ts +258 -252
  117. package/components/data/card/bundles/index.umd.js +439 -229
  118. package/components/data/card/fesm2022/index.mjs +408 -203
  119. package/components/data/card/fesm2022/index.mjs.map +1 -1
  120. package/components/data/card/types/index.d.ts +50 -48
  121. package/components/data/form/bundles/index.umd.js +3392 -3339
  122. package/components/data/form/fesm2022/index.mjs +3350 -3304
  123. package/components/data/form/fesm2022/index.mjs.map +1 -1
  124. package/components/data/form/types/index.d.ts +561 -482
  125. package/components/data/list/bundles/index.umd.js +1523 -1601
  126. package/components/data/list/fesm2022/index.mjs +1507 -1590
  127. package/components/data/list/fesm2022/index.mjs.map +1 -1
  128. package/components/data/list/types/index.d.ts +300 -283
  129. package/components/data/live-table/bundles/index.umd.js +299 -280
  130. package/components/data/live-table/fesm2022/index.mjs +284 -270
  131. package/components/data/live-table/fesm2022/index.mjs.map +1 -1
  132. package/components/data/live-table/types/index.d.ts +42 -39
  133. package/components/data/pagination/bundles/index.umd.js +848 -881
  134. package/components/data/pagination/fesm2022/index.mjs +835 -879
  135. package/components/data/pagination/fesm2022/index.mjs.map +1 -1
  136. package/components/data/pagination/types/index.d.ts +110 -106
  137. package/components/data/table/bundles/index.umd.js +4977 -5042
  138. package/components/data/table/fesm2022/index.mjs +4937 -5007
  139. package/components/data/table/fesm2022/index.mjs.map +1 -1
  140. package/components/data/table/types/index.d.ts +770 -736
  141. package/components/dialogs/alert-dialog/bundles/index.umd.js +259 -118
  142. package/components/dialogs/alert-dialog/fesm2022/index.mjs +243 -109
  143. package/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
  144. package/components/dialogs/alert-dialog/types/index.d.ts +31 -26
  145. package/components/dialogs/confirm-dialog/bundles/index.umd.js +250 -121
  146. package/components/dialogs/confirm-dialog/fesm2022/index.mjs +236 -114
  147. package/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
  148. package/components/dialogs/confirm-dialog/types/index.d.ts +34 -29
  149. package/components/dialogs/default/bundles/index.umd.js +509 -373
  150. package/components/dialogs/default/fesm2022/index.mjs +485 -354
  151. package/components/dialogs/default/fesm2022/index.mjs.map +1 -1
  152. package/components/dialogs/default/types/index.d.ts +129 -86
  153. package/components/dialogs/design-dialog/bundles/index.umd.js +320 -142
  154. package/components/dialogs/design-dialog/fesm2022/index.mjs +305 -132
  155. package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
  156. package/components/dialogs/design-dialog/types/index.d.ts +31 -20
  157. package/components/dialogs/iframe-dialog/bundles/index.umd.js +258 -111
  158. package/components/dialogs/iframe-dialog/fesm2022/index.mjs +245 -105
  159. package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
  160. package/components/dialogs/iframe-dialog/types/index.d.ts +27 -22
  161. package/components/dialogs/login-dialog/bundles/index.umd.js +139 -106
  162. package/components/dialogs/login-dialog/fesm2022/index.mjs +125 -97
  163. package/components/dialogs/login-dialog/fesm2022/index.mjs.map +1 -1
  164. package/components/dialogs/login-dialog/types/index.d.ts +27 -26
  165. package/components/dialogs/partial-dialog/bundles/index.umd.js +302 -149
  166. package/components/dialogs/partial-dialog/fesm2022/index.mjs +289 -143
  167. package/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
  168. package/components/dialogs/partial-dialog/types/index.d.ts +37 -32
  169. package/components/input/base-form/bundles/index.umd.js +143 -139
  170. package/components/input/base-form/fesm2022/index.mjs +129 -130
  171. package/components/input/base-form/fesm2022/index.mjs.map +1 -1
  172. package/components/input/base-form/types/index.d.ts +28 -29
  173. package/components/input/base-form-custom/bundles/index.umd.js +107 -121
  174. package/components/input/base-form-custom/fesm2022/index.mjs +88 -107
  175. package/components/input/base-form-custom/fesm2022/index.mjs.map +1 -1
  176. package/components/input/base-form-custom/types/index.d.ts +23 -26
  177. package/components/input/button/bundles/index.umd.js +177 -89
  178. package/components/input/button/fesm2022/index.mjs +158 -75
  179. package/components/input/button/fesm2022/index.mjs.map +1 -1
  180. package/components/input/button/types/index.d.ts +24 -25
  181. package/components/input/button-group/bundles/index.umd.js +110 -72
  182. package/components/input/button-group/fesm2022/index.mjs +90 -57
  183. package/components/input/button-group/fesm2022/index.mjs.map +1 -1
  184. package/components/input/button-group/types/index.d.ts +13 -14
  185. package/components/input/calendar/bundles/index.umd.js +615 -647
  186. package/components/input/calendar/fesm2022/index.mjs +596 -649
  187. package/components/input/calendar/fesm2022/index.mjs.map +1 -1
  188. package/components/input/calendar/types/index.d.ts +130 -131
  189. package/components/input/caption-position/bundles/index.umd.js +175 -188
  190. package/components/input/caption-position/fesm2022/index.mjs +159 -177
  191. package/components/input/caption-position/fesm2022/index.mjs.map +1 -1
  192. package/components/input/caption-position/types/index.d.ts +31 -34
  193. package/components/input/checkbox/bundles/index.umd.js +339 -200
  194. package/components/input/checkbox/fesm2022/index.mjs +319 -185
  195. package/components/input/checkbox/fesm2022/index.mjs.map +1 -1
  196. package/components/input/checkbox/types/index.d.ts +46 -41
  197. package/components/input/checkboxset/bundles/index.umd.js +256 -170
  198. package/components/input/checkboxset/fesm2022/index.mjs +242 -161
  199. package/components/input/checkboxset/fesm2022/index.mjs.map +1 -1
  200. package/components/input/checkboxset/types/index.d.ts +26 -27
  201. package/components/input/chips/bundles/index.umd.js +721 -733
  202. package/components/input/chips/fesm2022/index.mjs +706 -723
  203. package/components/input/chips/fesm2022/index.mjs.map +1 -1
  204. package/components/input/chips/types/index.d.ts +101 -90
  205. package/components/input/color-picker/bundles/index.umd.js +312 -137
  206. package/components/input/color-picker/fesm2022/index.mjs +296 -126
  207. package/components/input/color-picker/fesm2022/index.mjs.map +1 -1
  208. package/components/input/color-picker/types/index.d.ts +35 -36
  209. package/components/input/composite/bundles/index.umd.js +127 -112
  210. package/components/input/composite/fesm2022/index.mjs +106 -96
  211. package/components/input/composite/fesm2022/index.mjs.map +1 -1
  212. package/components/input/composite/types/index.d.ts +26 -27
  213. package/components/input/currency/bundles/index.umd.js +237 -104
  214. package/components/input/currency/fesm2022/index.mjs +219 -91
  215. package/components/input/currency/fesm2022/index.mjs.map +1 -1
  216. package/components/input/currency/types/index.d.ts +30 -31
  217. package/components/input/dataset-aware-form/bundles/index.umd.js +298 -346
  218. package/components/input/dataset-aware-form/fesm2022/index.mjs +286 -339
  219. package/components/input/dataset-aware-form/fesm2022/index.mjs.map +1 -1
  220. package/components/input/dataset-aware-form/types/index.d.ts +80 -80
  221. package/components/input/epoch/base-date-time/bundles/index.umd.js +809 -1081
  222. package/components/input/epoch/base-date-time/fesm2022/index.mjs +796 -1073
  223. package/components/input/epoch/base-date-time/fesm2022/index.mjs.map +1 -1
  224. package/components/input/epoch/base-date-time/types/index.d.ts +244 -247
  225. package/components/input/epoch/date/bundles/index.umd.js +619 -513
  226. package/components/input/epoch/date/fesm2022/index.mjs +604 -503
  227. package/components/input/epoch/date/fesm2022/index.mjs.map +1 -1
  228. package/components/input/epoch/date/types/index.d.ts +63 -64
  229. package/components/input/epoch/date-time/bundles/index.umd.js +682 -511
  230. package/components/input/epoch/date-time/fesm2022/index.mjs +672 -506
  231. package/components/input/epoch/date-time/fesm2022/index.mjs.map +1 -1
  232. package/components/input/epoch/date-time/types/index.d.ts +111 -112
  233. package/components/input/epoch/date-time-picker/bundles/index.umd.js +417 -321
  234. package/components/input/epoch/date-time-picker/fesm2022/index.mjs +405 -314
  235. package/components/input/epoch/date-time-picker/fesm2022/index.mjs.map +1 -1
  236. package/components/input/epoch/date-time-picker/types/index.d.ts +135 -80
  237. package/components/input/epoch/picker/bundles/index.umd.js +201 -148
  238. package/components/input/epoch/picker/fesm2022/index.mjs +183 -135
  239. package/components/input/epoch/picker/fesm2022/index.mjs.map +1 -1
  240. package/components/input/epoch/picker/types/index.d.ts +46 -38
  241. package/components/input/epoch/time/bundles/index.umd.js +534 -392
  242. package/components/input/epoch/time/fesm2022/index.mjs +523 -386
  243. package/components/input/epoch/time/fesm2022/index.mjs.map +1 -1
  244. package/components/input/epoch/time/types/index.d.ts +107 -108
  245. package/components/input/file-upload/bundles/index.umd.js +500 -477
  246. package/components/input/file-upload/fesm2022/index.mjs +484 -466
  247. package/components/input/file-upload/fesm2022/index.mjs.map +1 -1
  248. package/components/input/file-upload/types/index.d.ts +110 -109
  249. package/components/input/number/bundles/index.umd.js +241 -101
  250. package/components/input/number/fesm2022/index.mjs +224 -89
  251. package/components/input/number/fesm2022/index.mjs.map +1 -1
  252. package/components/input/number/types/index.d.ts +28 -29
  253. package/components/input/radioset/bundles/index.umd.js +240 -156
  254. package/components/input/radioset/fesm2022/index.mjs +226 -147
  255. package/components/input/radioset/fesm2022/index.mjs.map +1 -1
  256. package/components/input/radioset/types/index.d.ts +25 -26
  257. package/components/input/rating/bundles/index.umd.js +353 -266
  258. package/components/input/rating/fesm2022/index.mjs +337 -255
  259. package/components/input/rating/fesm2022/index.mjs.map +1 -1
  260. package/components/input/rating/types/index.d.ts +52 -53
  261. package/components/input/select/bundles/index.umd.js +295 -217
  262. package/components/input/select/fesm2022/index.mjs +280 -207
  263. package/components/input/select/fesm2022/index.mjs.map +1 -1
  264. package/components/input/select/types/index.d.ts +38 -39
  265. package/components/input/slider/bundles/index.umd.js +316 -197
  266. package/components/input/slider/fesm2022/index.mjs +297 -183
  267. package/components/input/slider/fesm2022/index.mjs.map +1 -1
  268. package/components/input/slider/types/index.d.ts +43 -44
  269. package/components/input/switch/bundles/index.umd.js +257 -219
  270. package/components/input/switch/fesm2022/index.mjs +243 -210
  271. package/components/input/switch/fesm2022/index.mjs.map +1 -1
  272. package/components/input/switch/types/index.d.ts +34 -35
  273. package/components/input/text/bundles/index.umd.js +1585 -1120
  274. package/components/input/text/fesm2022/index.mjs +1542 -1082
  275. package/components/input/text/fesm2022/index.mjs.map +1 -1
  276. package/components/input/text/types/index.d.ts +313 -310
  277. package/components/input/textarea/bundles/index.umd.js +224 -100
  278. package/components/input/textarea/fesm2022/index.mjs +207 -88
  279. package/components/input/textarea/fesm2022/index.mjs.map +1 -1
  280. package/components/input/textarea/types/index.d.ts +32 -33
  281. package/components/navigation/breadcrumb/bundles/index.umd.js +205 -131
  282. package/components/navigation/breadcrumb/fesm2022/index.mjs +188 -118
  283. package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
  284. package/components/navigation/breadcrumb/types/index.d.ts +29 -28
  285. package/components/navigation/menu/bundles/index.umd.js +1461 -950
  286. package/components/navigation/menu/fesm2022/index.mjs +1416 -910
  287. package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
  288. package/components/navigation/menu/types/index.d.ts +220 -193
  289. package/components/navigation/navbar/bundles/index.umd.js +172 -79
  290. package/components/navigation/navbar/fesm2022/index.mjs +155 -67
  291. package/components/navigation/navbar/fesm2022/index.mjs.map +1 -1
  292. package/components/navigation/navbar/types/index.d.ts +19 -20
  293. package/components/navigation/popover/bundles/index.umd.js +543 -519
  294. package/components/navigation/popover/fesm2022/index.mjs +524 -505
  295. package/components/navigation/popover/fesm2022/index.mjs.map +1 -1
  296. package/components/navigation/popover/types/index.d.ts +86 -86
  297. package/components/page/default/bundles/index.umd.js +634 -451
  298. package/components/page/default/fesm2022/index.mjs +600 -422
  299. package/components/page/default/fesm2022/index.mjs.map +1 -1
  300. package/components/page/default/types/index.d.ts +123 -119
  301. package/components/page/footer/bundles/index.umd.js +91 -63
  302. package/components/page/footer/fesm2022/index.mjs +71 -48
  303. package/components/page/footer/fesm2022/index.mjs.map +1 -1
  304. package/components/page/footer/types/index.d.ts +11 -12
  305. package/components/page/header/bundles/index.umd.js +96 -59
  306. package/components/page/header/fesm2022/index.mjs +76 -44
  307. package/components/page/header/fesm2022/index.mjs.map +1 -1
  308. package/components/page/header/types/index.d.ts +12 -13
  309. package/components/page/left-panel/bundles/index.umd.js +405 -407
  310. package/components/page/left-panel/fesm2022/index.mjs +386 -393
  311. package/components/page/left-panel/fesm2022/index.mjs.map +1 -1
  312. package/components/page/left-panel/types/index.d.ts +47 -40
  313. package/components/page/right-panel/bundles/index.umd.js +115 -78
  314. package/components/page/right-panel/fesm2022/index.mjs +96 -64
  315. package/components/page/right-panel/fesm2022/index.mjs.map +1 -1
  316. package/components/page/right-panel/types/index.d.ts +14 -13
  317. package/components/page/top-nav/bundles/index.umd.js +91 -60
  318. package/components/page/top-nav/fesm2022/index.mjs +73 -47
  319. package/components/page/top-nav/fesm2022/index.mjs.map +1 -1
  320. package/components/page/top-nav/types/index.d.ts +11 -12
  321. package/components/prefab/bundles/index.umd.js +253 -173
  322. package/components/prefab/fesm2022/index.mjs +233 -158
  323. package/components/prefab/fesm2022/index.mjs.map +1 -1
  324. package/components/prefab/types/index.d.ts +35 -33
  325. package/core/bundles/index.umd.js +4466 -5642
  326. package/core/fesm2022/index.mjs +3997 -5202
  327. package/core/fesm2022/index.mjs.map +1 -1
  328. package/core/types/index.d.ts +1785 -1808
  329. package/http/bundles/index.umd.js +339 -413
  330. package/http/fesm2022/index.mjs +323 -402
  331. package/http/fesm2022/index.mjs.map +1 -1
  332. package/http/types/index.d.ts +107 -112
  333. package/locales/moment/am-et.js +73 -0
  334. package/locales/moment/bm.js +2 -0
  335. package/locales/moment/ca.js +1 -1
  336. package/locales/moment/de-at.js +29 -1
  337. package/locales/moment/de-ch.js +29 -1
  338. package/locales/moment/de.js +29 -1
  339. package/locales/moment/hu.js +3 -3
  340. package/locales/moment/id.js +12 -1
  341. package/locales/moment/ka.js +1 -1
  342. package/locales/moment/mk.js +0 -1
  343. package/locales/moment/nl-be.js +1 -1
  344. package/locales/moment/pl.js +1 -1
  345. package/locales/moment/ps.js +188 -0
  346. package/locales/moment/pt-br.js +14 -6
  347. package/locales/moment/sv.js +1 -1
  348. package/locales/moment/sw.js +56 -14
  349. package/locales/moment/uk.js +5 -4
  350. package/locales/moment/uz-latn.js +1 -1
  351. package/locales/moment/uz.js +1 -1
  352. package/npm-shrinkwrap.json +2 -2
  353. package/oAuth/bundles/index.umd.js +326 -483
  354. package/oAuth/fesm2022/index.mjs +267 -429
  355. package/oAuth/fesm2022/index.mjs.map +1 -1
  356. package/oAuth/types/index.d.ts +22 -26
  357. package/package-lock.json +2 -2
  358. package/package.json +1 -1
  359. package/runtime/base/bundles/index.umd.js +6380 -6093
  360. package/runtime/base/fesm2022/index.mjs +6368 -6107
  361. package/runtime/base/fesm2022/index.mjs.map +1 -1
  362. package/runtime/base/types/index.d.ts +1336 -1359
  363. package/runtime/dynamic/bundles/index.umd.js +1215 -851
  364. package/runtime/dynamic/fesm2022/index.mjs +1253 -898
  365. package/runtime/dynamic/fesm2022/index.mjs.map +1 -1
  366. package/runtime/dynamic/types/index.d.ts +140 -128
  367. package/scripts/datatable/datatable.js +20 -30
  368. package/security/bundles/index.umd.js +297 -438
  369. package/security/fesm2022/index.mjs +282 -443
  370. package/security/fesm2022/index.mjs.map +1 -1
  371. package/security/types/index.d.ts +127 -130
  372. package/swipey/bundles/index.umd.js +57 -48
  373. package/swipey/fesm2022/index.mjs +55 -50
  374. package/swipey/fesm2022/index.mjs.map +1 -1
  375. package/swipey/types/index.d.ts +19 -21
  376. package/transpiler/bundles/index.umd.js +1174 -811
  377. package/transpiler/fesm2022/index.mjs +1109 -757
  378. package/transpiler/fesm2022/index.mjs.map +1 -1
  379. package/transpiler/types/index.d.ts +32 -36
  380. package/variables/bundles/index.umd.js +2226 -3245
  381. package/variables/fesm2022/index.mjs +2117 -3237
  382. package/variables/fesm2022/index.mjs.map +1 -1
  383. package/variables/types/index.d.ts +410 -393
  384. package/build-task/.npmignore +0 -2
  385. package/components/advanced/carousel/.npmignore +0 -2
  386. package/components/advanced/custom/.npmignore +0 -2
  387. package/components/advanced/login/.npmignore +0 -2
  388. package/components/advanced/marquee/.npmignore +0 -2
  389. package/components/base/.npmignore +0 -2
  390. package/components/basic/anchor/.npmignore +0 -2
  391. package/components/basic/audio/.npmignore +0 -2
  392. package/components/basic/html/.npmignore +0 -2
  393. package/components/basic/icon/.npmignore +0 -2
  394. package/components/basic/iframe/.npmignore +0 -2
  395. package/components/basic/label/.npmignore +0 -2
  396. package/components/basic/picture/.npmignore +0 -2
  397. package/components/basic/progress/progress-bar/.npmignore +0 -2
  398. package/components/basic/progress/progress-circle/.npmignore +0 -2
  399. package/components/basic/progress/progress-utils/.npmignore +0 -2
  400. package/components/basic/rich-text-editor/.npmignore +0 -2
  401. package/components/basic/search/.npmignore +0 -2
  402. package/components/basic/spinner/.npmignore +0 -2
  403. package/components/basic/tree/.npmignore +0 -2
  404. package/components/basic/video/.npmignore +0 -2
  405. package/components/chart/.npmignore +0 -2
  406. package/components/containers/accordion/.npmignore +0 -2
  407. package/components/containers/layout-grid/.npmignore +0 -2
  408. package/components/containers/linear-layout/.npmignore +0 -2
  409. package/components/containers/panel/.npmignore +0 -2
  410. package/components/containers/tabs/.npmignore +0 -2
  411. package/components/containers/tile/.npmignore +0 -2
  412. package/components/containers/wizard/.npmignore +0 -2
  413. package/components/data/card/.npmignore +0 -2
  414. package/components/data/form/.npmignore +0 -2
  415. package/components/data/list/.npmignore +0 -2
  416. package/components/data/live-table/.npmignore +0 -2
  417. package/components/data/pagination/.npmignore +0 -2
  418. package/components/data/table/.npmignore +0 -2
  419. package/components/dialogs/alert-dialog/.npmignore +0 -2
  420. package/components/dialogs/confirm-dialog/.npmignore +0 -2
  421. package/components/dialogs/default/.npmignore +0 -2
  422. package/components/dialogs/design-dialog/.npmignore +0 -2
  423. package/components/dialogs/iframe-dialog/.npmignore +0 -2
  424. package/components/dialogs/login-dialog/.npmignore +0 -2
  425. package/components/dialogs/partial-dialog/.npmignore +0 -2
  426. package/components/input/base-form/.npmignore +0 -2
  427. package/components/input/base-form-custom/.npmignore +0 -2
  428. package/components/input/button/.npmignore +0 -2
  429. package/components/input/button-group/.npmignore +0 -2
  430. package/components/input/calendar/.npmignore +0 -2
  431. package/components/input/caption-position/.npmignore +0 -2
  432. package/components/input/checkbox/.npmignore +0 -2
  433. package/components/input/checkboxset/.npmignore +0 -2
  434. package/components/input/chips/.npmignore +0 -2
  435. package/components/input/color-picker/.npmignore +0 -2
  436. package/components/input/composite/.npmignore +0 -2
  437. package/components/input/currency/.npmignore +0 -2
  438. package/components/input/dataset-aware-form/.npmignore +0 -2
  439. package/components/input/epoch/base-date-time/.npmignore +0 -2
  440. package/components/input/epoch/date/.npmignore +0 -2
  441. package/components/input/epoch/date-time/.npmignore +0 -2
  442. package/components/input/epoch/date-time-picker/.npmignore +0 -2
  443. package/components/input/epoch/picker/.npmignore +0 -2
  444. package/components/input/epoch/time/.npmignore +0 -2
  445. package/components/input/file-upload/.npmignore +0 -2
  446. package/components/input/number/.npmignore +0 -2
  447. package/components/input/radioset/.npmignore +0 -2
  448. package/components/input/rating/.npmignore +0 -2
  449. package/components/input/select/.npmignore +0 -2
  450. package/components/input/slider/.npmignore +0 -2
  451. package/components/input/switch/.npmignore +0 -2
  452. package/components/input/text/.npmignore +0 -2
  453. package/components/input/textarea/.npmignore +0 -2
  454. package/components/navigation/breadcrumb/.npmignore +0 -2
  455. package/components/navigation/menu/.npmignore +0 -2
  456. package/components/navigation/navbar/.npmignore +0 -2
  457. package/components/navigation/popover/.npmignore +0 -2
  458. package/components/page/default/.npmignore +0 -2
  459. package/components/page/footer/.npmignore +0 -2
  460. package/components/page/header/.npmignore +0 -2
  461. package/components/page/left-panel/.npmignore +0 -2
  462. package/components/page/right-panel/.npmignore +0 -2
  463. package/components/page/top-nav/.npmignore +0 -2
  464. package/components/prefab/.npmignore +0 -2
  465. package/core/.npmignore +0 -2
  466. package/http/.npmignore +0 -2
  467. package/oAuth/.npmignore +0 -2
  468. package/runtime/base/.npmignore +0 -2
  469. package/runtime/dynamic/.npmignore +0 -2
  470. package/security/.npmignore +0 -2
  471. package/swipey/.npmignore +0 -2
  472. package/transpiler/.npmignore +0 -2
  473. package/variables/.npmignore +0 -2
@@ -1,363 +1,494 @@
1
- import * as i0 from '@angular/core';
2
- import { HostBinding, Inject, Directive, Optional, Injectable, Input, Component } from '@angular/core';
3
- import * as i1 from 'ngx-bootstrap/modal';
4
- import { BsModalService } from 'ngx-bootstrap/modal';
5
- import * as i1$1 from '@wm/core';
6
- import { addClass, getSheetPositionClass, setCSS, setAttr, findRootContainer, generateGUId, AbstractDialogService, isMobile, toBoolean } from '@wm/core';
7
- import { DialogRef, register, PROP_STRING, PROP_BOOLEAN, BaseComponent, provideAsWidgetRef, WidgetConfig, TextContentDirective, WmAppIconComponent } from '@wm/components/base';
8
- import * as i2 from '@angular/common';
9
- import { CommonModule } from '@angular/common';
10
- import { Router, NavigationEnd } from '@angular/router';
11
-
12
- const DEFAULT_CLS$1 = 'app-dialog-body modal-body';
13
- class DialogBodyDirective {
14
- constructor(elRef, dialogRef, bsModal, renderer) {
15
- this.dialogRef = dialogRef;
16
- this.renderer = renderer;
17
- addClass(elRef.nativeElement, DEFAULT_CLS$1);
18
- this.bsModalShownSubscription = bsModal.onShown.subscribe(() => {
19
- const dialogRoot = $(elRef.nativeElement).closest('.app-dialog')[0];
20
- const dialogContent = $(elRef.nativeElement).closest('.modal-content')[0];
21
- let dialogRootContainer = $('body.wm-app')[0];
22
- // To identify the microfrontend, if body tag doesn't have wm-app class then app loading as micro-frontend
23
- if (!dialogRootContainer) {
24
- const dialogBackrop = $('body > .modal-backdrop')[0];
25
- const parentContainer = $('body > modal-container')[0];
26
- dialogRootContainer = $('.wm-app')[0];
27
- if (dialogRootContainer && parentContainer) {
28
- if (dialogBackrop) {
29
- this.renderer.appendChild(dialogRootContainer, dialogBackrop);
30
- }
31
- this.renderer.appendChild(dialogRootContainer, parentContainer);
32
- }
33
- }
34
- const isSheet = this.dialogRef.sheet;
35
- const sheetPosition = this.dialogRef.sheetPosition;
36
- if (isSheet) {
37
- $(dialogRoot).addClass('modal-sheet');
38
- $(dialogRoot).addClass(getSheetPositionClass(sheetPosition));
39
- }
40
- const animation = this.dialogRef.animation;
41
- if (animation) {
42
- $(dialogContent).addClass('animated');
43
- $(dialogContent).addClass(animation);
44
- }
45
- const width = this.dialogRef.width;
46
- const height = this.dialogRef.height;
47
- if (height) {
48
- setTimeout(e => {
49
- setCSS($(elRef.nativeElement)[0], 'height', height);
50
- });
51
- }
52
- if (dialogRoot) {
53
- if (width) {
54
- setCSS(dialogRoot, 'width', width);
55
- }
56
- setAttr(dialogRoot, 'tabindex', this.dialogRef.tabindex);
57
- setAttr(dialogRoot, 'name', this.dialogRef.name);
58
- }
59
- // Clean up subscription after first use
60
- if (this.bsModalShownSubscription) {
61
- this.bsModalShownSubscription.unsubscribe();
62
- this.bsModalShownSubscription = null;
63
- }
64
- });
65
- }
66
- ngOnDestroy() {
67
- // MEMORY LEAK FIX: Unsubscribe from bsModal.onShown if not already unsubscribed
68
- if (this.bsModalShownSubscription) {
69
- this.bsModalShownSubscription.unsubscribe();
70
- this.bsModalShownSubscription = null;
71
- }
72
- // MEMORY LEAK FIX: Clear dialogRef reference
73
- this.dialogRef = null;
74
- }
75
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: DialogBodyDirective, deps: [{ token: i0.ElementRef }, { token: DialogRef }, { token: i1.BsModalService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
76
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: DialogBodyDirective, isStandalone: true, selector: "div[wmDialogBody]", host: { properties: { "style.height": "this.height" } }, ngImport: i0 }); }
77
- }
78
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: DialogBodyDirective, decorators: [{
79
- type: Directive,
80
- args: [{
81
- standalone: true,
82
- selector: 'div[wmDialogBody]',
83
- }]
84
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: undefined, decorators: [{
85
- type: Inject,
86
- args: [DialogRef]
87
- }] }, { type: i1.BsModalService }, { type: i0.Renderer2 }], propDecorators: { height: [{
88
- type: HostBinding,
89
- args: ['style.height']
90
- }] } });
91
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Directive, HostBinding, Inject, Injectable, Input, Optional } from "@angular/core";
3
+ import * as i1$1 from "ngx-bootstrap/modal";
4
+ import { BsModalService } from "ngx-bootstrap/modal";
5
+ import * as i1 from "@wm/core";
6
+ import { AbstractDialogService, addClass, findRootContainer, generateGUId, getSheetPositionClass, isMobile, setAttr, setCSS, toBoolean } from "@wm/core";
7
+ import { BaseComponent, DialogRef, PROP_BOOLEAN, PROP_STRING, TextContentDirective, WidgetConfig, WmAppIconComponent, provideAsWidgetRef, register } from "@wm/components/base";
8
+ import * as i2 from "@angular/common";
9
+ import { CommonModule } from "@angular/common";
10
+ import { NavigationEnd, Router } from "@angular/router";
11
+ const DEFAULT_CLS$1 = "app-dialog-body modal-body";
12
+ var DialogBodyDirective = class DialogBodyDirective {
13
+ constructor(elRef, dialogRef, bsModal, renderer) {
14
+ this.dialogRef = dialogRef;
15
+ this.renderer = renderer;
16
+ addClass(elRef.nativeElement, DEFAULT_CLS$1);
17
+ this.bsModalShownSubscription = bsModal.onShown.subscribe(() => {
18
+ const dialogRoot = $(elRef.nativeElement).closest(".app-dialog")[0];
19
+ const dialogContent = $(elRef.nativeElement).closest(".modal-content")[0];
20
+ let dialogRootContainer = $("body.wm-app")[0];
21
+ if (!dialogRootContainer) {
22
+ const dialogBackrop = $("body > .modal-backdrop")[0];
23
+ const parentContainer = $("body > modal-container")[0];
24
+ dialogRootContainer = $(".wm-app")[0];
25
+ if (dialogRootContainer && parentContainer) {
26
+ if (dialogBackrop) this.renderer.appendChild(dialogRootContainer, dialogBackrop);
27
+ this.renderer.appendChild(dialogRootContainer, parentContainer);
28
+ }
29
+ }
30
+ const isSheet = this.dialogRef.sheet;
31
+ const sheetPosition = this.dialogRef.sheetPosition;
32
+ if (isSheet) {
33
+ $(dialogRoot).addClass("modal-sheet");
34
+ $(dialogRoot).addClass(getSheetPositionClass(sheetPosition));
35
+ }
36
+ const animation = this.dialogRef.animation;
37
+ if (animation) {
38
+ $(dialogContent).addClass("animated");
39
+ $(dialogContent).addClass(animation);
40
+ }
41
+ const width = this.dialogRef.width;
42
+ const height = this.dialogRef.height;
43
+ if (height) setTimeout((e) => {
44
+ setCSS($(elRef.nativeElement)[0], "height", height);
45
+ });
46
+ if (dialogRoot) {
47
+ if (width) setCSS(dialogRoot, "width", width);
48
+ setAttr(dialogRoot, "tabindex", this.dialogRef.tabindex);
49
+ setAttr(dialogRoot, "name", this.dialogRef.name);
50
+ }
51
+ if (this.bsModalShownSubscription) {
52
+ this.bsModalShownSubscription.unsubscribe();
53
+ this.bsModalShownSubscription = null;
54
+ }
55
+ });
56
+ }
57
+ ngOnDestroy() {
58
+ if (this.bsModalShownSubscription) {
59
+ this.bsModalShownSubscription.unsubscribe();
60
+ this.bsModalShownSubscription = null;
61
+ }
62
+ this.dialogRef = null;
63
+ }
64
+ static {
65
+ this.ɵfac = i0.ɵɵngDeclareFactory({
66
+ minVersion: "12.0.0",
67
+ version: "22.2.1",
68
+ ngImport: i0,
69
+ type: DialogBodyDirective,
70
+ deps: [
71
+ { token: i0.ElementRef },
72
+ { token: DialogRef },
73
+ { token: i1$1.BsModalService },
74
+ { token: i0.Renderer2 }
75
+ ],
76
+ target: i0.ɵɵFactoryTarget.Directive
77
+ });
78
+ }
79
+ static {
80
+ this.ɵdir = i0.ɵɵngDeclareDirective({
81
+ minVersion: "14.0.0",
82
+ version: "22.2.1",
83
+ type: DialogBodyDirective,
84
+ isStandalone: true,
85
+ selector: "div[wmDialogBody]",
86
+ host: { properties: { "style.height": "this.height" } },
87
+ ngImport: i0
88
+ });
89
+ }
90
+ };
91
+ i0.ɵɵngDeclareClassMetadata({
92
+ minVersion: "12.0.0",
93
+ version: "22.2.1",
94
+ ngImport: i0,
95
+ type: DialogBodyDirective,
96
+ decorators: [{
97
+ type: Directive,
98
+ args: [{
99
+ standalone: true,
100
+ selector: "div[wmDialogBody]"
101
+ }]
102
+ }],
103
+ ctorParameters: () => [
104
+ { type: i0.ElementRef },
105
+ {
106
+ type: void 0,
107
+ decorators: [{
108
+ type: Inject,
109
+ args: [DialogRef]
110
+ }]
111
+ },
112
+ { type: i1$1.BsModalService },
113
+ { type: i0.Renderer2 }
114
+ ],
115
+ propDecorators: { height: [{
116
+ type: HostBinding,
117
+ args: ["style.height"]
118
+ }] }
119
+ });
92
120
  const registerProps = () => {
93
- register('wm-dialogfooter', new Map([
94
- ['class', PROP_STRING],
95
- ['name', PROP_STRING],
96
- ['show', { value: true, ...PROP_BOOLEAN }]
97
- ]));
121
+ register("wm-dialogfooter", /* @__PURE__ */ new Map([
122
+ ["class", PROP_STRING],
123
+ ["name", PROP_STRING],
124
+ ["show", {
125
+ value: true,
126
+ ...PROP_BOOLEAN
127
+ }]
128
+ ]));
98
129
  };
99
-
100
130
  const WIDGET_INFO = {
101
- widgetType: 'wm-dialogfooter',
102
- hostClass: 'app-dialog-footer modal-footer'
131
+ widgetType: "wm-dialogfooter",
132
+ hostClass: "app-dialog-footer modal-footer"
103
133
  };
104
- class DialogFooterDirective extends BaseComponent {
105
- static { this.initializeProps = registerProps(); }
106
- constructor(inj, explicitContext) {
107
- super(inj, WIDGET_INFO, explicitContext);
108
- }
109
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: DialogFooterDirective, deps: [{ token: i0.Injector }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
110
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: DialogFooterDirective, isStandalone: true, selector: "div[wmDialogFooter]", providers: [
111
- provideAsWidgetRef(DialogFooterDirective)
112
- ], usesInheritance: true, ngImport: i0 }); }
113
- }
114
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: DialogFooterDirective, decorators: [{
115
- type: Directive,
116
- args: [{
117
- standalone: true,
118
- selector: 'div[wmDialogFooter]',
119
- providers: [
120
- provideAsWidgetRef(DialogFooterDirective)
121
- ]
122
- }]
123
- }], ctorParameters: () => [{ type: i0.Injector }, { type: undefined, decorators: [{
124
- type: Inject,
125
- args: ['EXPLICIT_CONTEXT']
126
- }, {
127
- type: Optional
128
- }] }] });
129
-
134
+ var DialogFooterDirective = class DialogFooterDirective extends BaseComponent {
135
+ static {
136
+ this.initializeProps = registerProps();
137
+ }
138
+ constructor(inj, explicitContext) {
139
+ super(inj, WIDGET_INFO, explicitContext);
140
+ }
141
+ static {
142
+ this.ɵfac = i0.ɵɵngDeclareFactory({
143
+ minVersion: "12.0.0",
144
+ version: "22.2.1",
145
+ ngImport: i0,
146
+ type: DialogFooterDirective,
147
+ deps: [{ token: i0.Injector }, {
148
+ token: "EXPLICIT_CONTEXT",
149
+ optional: true
150
+ }],
151
+ target: i0.ɵɵFactoryTarget.Directive
152
+ });
153
+ }
154
+ static {
155
+ this.ɵdir = i0.ɵɵngDeclareDirective({
156
+ minVersion: "14.0.0",
157
+ version: "22.2.1",
158
+ type: DialogFooterDirective,
159
+ isStandalone: true,
160
+ selector: "div[wmDialogFooter]",
161
+ providers: [provideAsWidgetRef(DialogFooterDirective)],
162
+ usesInheritance: true,
163
+ ngImport: i0
164
+ });
165
+ }
166
+ };
167
+ i0.ɵɵngDeclareClassMetadata({
168
+ minVersion: "12.0.0",
169
+ version: "22.2.1",
170
+ ngImport: i0,
171
+ type: DialogFooterDirective,
172
+ decorators: [{
173
+ type: Directive,
174
+ args: [{
175
+ standalone: true,
176
+ selector: "div[wmDialogFooter]",
177
+ providers: [provideAsWidgetRef(DialogFooterDirective)]
178
+ }]
179
+ }],
180
+ ctorParameters: () => [{ type: i0.Injector }, {
181
+ type: void 0,
182
+ decorators: [{
183
+ type: Inject,
184
+ args: ["EXPLICIT_CONTEXT"]
185
+ }, { type: Optional }]
186
+ }]
187
+ });
130
188
  const invokeOpenedCallback = (ref) => {
131
- if (ref) {
132
- setTimeout(() => {
133
- const root = findRootContainer(ref.$element);
134
- // if page styles have to be applied to dialog then dialog has to be child of page element.
135
- if (root) {
136
- $('body > modal-container > div').wrap('<' + root + '/>');
137
- }
138
- ref.invokeEventCallback('opened', { $event: { type: 'opened' } });
139
- // Focusing the first focusable element when the dialog is opened
140
- const container = $('[aria-labelledby= ' + ref.titleId + ']')[0];
141
- const keyboardFocusableElements = [container.querySelectorAll('a, button, input, textarea, select, details, iframe, embed, object, summary dialog, audio[controls], video[controls], [contenteditable], [tabindex]:not([tabindex="-1"])')].filter(el => {
142
- return (!el[0].hasAttribute('disabled') && !el[0].hasAttribute('hidden'));
143
- })[0];
144
- $(keyboardFocusableElements[0]).focus();
145
- const openedDialogs = ref.dialogService.getOpenedDialogs();
146
- if (openedDialogs.length > 1) {
147
- const zIndex = Number($("[aria-labelledby= " + openedDialogs[openedDialogs.length - 2].titleId + "]").css('z-index'));
148
- $('[aria-labelledby= ' + ref.dialogService.getLastOpenedDialog().titleId + ']').css('z-index', zIndex + 2);
149
- $('bs-modal-backdrop').css('z-index', zIndex + 1);
150
- }
151
- });
152
- }
189
+ setTimeout(() => {
190
+ const root = findRootContainer(ref.$element);
191
+ if (root) $("body > modal-container > div").wrap("<" + root + "/>");
192
+ ref.invokeEventCallback("opened", { $event: { type: "opened" } });
193
+ const keyboardFocusableElements = [$("[aria-labelledby= " + ref.titleId + "]")[0].querySelectorAll("a, button, input, textarea, select, details, iframe, embed, object, summary dialog, audio[controls], video[controls], [contenteditable], [tabindex]:not([tabindex=\"-1\"])")].filter((el) => {
194
+ return !el[0].hasAttribute("disabled") && !el[0].hasAttribute("hidden");
195
+ })[0];
196
+ $(keyboardFocusableElements[0]).focus();
197
+ const openedDialogs = ref.dialogService.getOpenedDialogs();
198
+ if (openedDialogs.length > 1) {
199
+ const zIndex = Number($("[aria-labelledby= " + openedDialogs[openedDialogs.length - 2].titleId + "]").css("z-index"));
200
+ $("[aria-labelledby= " + ref.dialogService.getLastOpenedDialog().titleId + "]").css("z-index", zIndex + 2);
201
+ $("bs-modal-backdrop").css("z-index", zIndex + 1);
202
+ }
203
+ });
153
204
  };
154
205
  const invokeClosedCallback = (ref) => {
155
- if (ref) {
156
- ref.invokeEventCallback('close');
157
- ref.dialogRef = undefined;
158
- const openedDialogs = ref.dialogService.getOpenedDialogs();
159
- if (openedDialogs.length >= 1) {
160
- const zIndex = Number($("[aria-labelledby= " + openedDialogs[openedDialogs.length - 1].titleId + "]").css('z-index'));
161
- $('bs-modal-backdrop').css('z-index', zIndex - 1);
162
- }
163
- }
206
+ ref.invokeEventCallback("close");
207
+ ref.dialogRef = void 0;
208
+ const openedDialogs = ref.dialogService.getOpenedDialogs();
209
+ if (openedDialogs.length >= 1) {
210
+ const zIndex = Number($("[aria-labelledby= " + openedDialogs[openedDialogs.length - 1].titleId + "]").css("z-index"));
211
+ $("bs-modal-backdrop").css("z-index", zIndex - 1);
212
+ }
164
213
  };
165
- class BaseDialog extends BaseComponent {
166
- constructor(inj, config, modalOptions, explicitContext) {
167
- super(inj, config, explicitContext);
168
- this.modalOptions = modalOptions;
169
- this.titleId = 'wmdialog-' + generateGUId();
170
- this.dialogOriginFocusStack = [];
171
- this.dialogService = inj.get(AbstractDialogService);
172
- this.bsModal = inj.get(BsModalService);
173
- const router = inj.get(Router);
174
- const subscriptions = [
175
- this.bsModal.onShown.subscribe(({ id }) => {
176
- const ref = this.dialogService.getLastOpenedDialog();
177
- if (ref === this && !this.dialogId) {
178
- // Always get the reference of last pushed dialog in the array for calling onOpen callback
179
- invokeOpenedCallback(ref);
180
- this.dialogId = id;
181
- }
182
- }),
183
- this.bsModal.onShow.subscribe(() => { }),
184
- this.bsModal.onHidden.subscribe((closeReason) => {
185
- let ref = this.dialogService.getDialogRefFromClosedDialogs();
186
- if (this.dialogId && closeReason?.id === this.dialogId) {
187
- ref = this;
188
- }
189
- else if (closeReason === 'esc' || closeReason === 'backdrop-click') {
190
- ref = this.dialogService.getLastOpenedDialog();
191
- }
192
- if (ref === this) {
193
- this.dialogId = null;
194
- // remove the dialog reference from opened dialogs and closed dialogs
195
- this.dialogService.removeFromOpenedDialogs(ref);
196
- this.dialogService.removeFromClosedDialogs(ref);
197
- invokeClosedCallback(ref);
198
- if (ref.closeCallBackFn) {
199
- ref.closeCallBackFn();
200
- }
201
- }
202
- }),
203
- this.bsModal.onHide.subscribe(() => { }),
204
- router.events.subscribe(e => {
205
- if (e instanceof NavigationEnd) {
206
- this.close();
207
- }
208
- })
209
- ];
210
- this.registerDestroyListener(() => {
211
- this.dialogService.removeFromOpenedDialogs(this);
212
- this.dialogService.removeFromClosedDialogs(this);
213
- subscriptions.forEach(s => s.unsubscribe());
214
- });
215
- }
216
- /**
217
- * Opens the dialog
218
- * Subscribe to the onShown event emitter of bsModal and trigger on-opened event callback
219
- */
220
- open(initState) {
221
- // remove the popovers in the page to avoid the overlap with dialog
222
- // closePopover(this.$element); Commenting this line because it is causing regression(if we have dialog inside popover as partail content, then the dialog close is not working because on closing the popover the partial get destroyed.)
223
- // do not open the dialog again if it is already opened
224
- const duplicateDialogCheck = (openedDialog) => {
225
- return openedDialog === this;
226
- };
227
- if (this.dialogService.getOpenedDialogs().some(duplicateDialogCheck)) {
228
- return;
229
- }
230
- this.dialogService.addToOpenedDialogs(this);
231
- // extend the context with the initState
232
- Object.assign(this.context, initState);
233
- this.modalOptions.ariaLabelledBy = this.titleId;
234
- this.dialogOriginFocusStack.push(document.activeElement);
235
- this.dialogRef = this.bsModal.show(this.getTemplateRef(), this.modalOptions);
236
- // Fix for [WMS-23948]: Focus moving out of active Dialog widget
237
- if (this.dialogService.getOpenedDialogs().length === 1 && (isMobile())) {
238
- const parentSelector = $('body > app-root')[0];
239
- parentSelector.setAttribute('aria-hidden', 'true');
240
- }
241
- $('.cdk-focus-trap-anchor').removeAttr('aria-hidden');
242
- }
243
- /**
244
- * closes the dialog
245
- * invokes the on-close event callback
246
- */
247
- close() {
248
- // remove the popovers in the page to avoid the overlap with dialog
249
- // closePopover(this.$element); Commenting this line because it is causing regression(if we have dialog inside popover as partail content, then the dialog close is not working because on closing the popover the partial get destroyed.)
250
- if (this.dialogRef) {
251
- const lastDialogOrigin = this.dialogOriginFocusStack.pop();
252
- this.dialogService.addToClosedDialogs(this);
253
- this.dialogRef.hide();
254
- // Return focus to the originating element upon dialog closure
255
- lastDialogOrigin?.focus();
256
- }
257
- }
258
- /**
259
- * Register the dialog with the dialog service for programmatic access
260
- */
261
- register(scope) {
262
- // add scope along with name in the dialogRefsCollection Map while registering dialog
263
- // So that 2 dialogs having same name on different pages won't be overridden.
264
- this.dialogService.register(this.name, this, scope);
265
- }
266
- /**
267
- * De Register the dialog with the dialog service after dialog destruction
268
- */
269
- deRegister(scope) {
270
- this.dialogService.deRegister(this.name, scope);
271
- }
272
- onPropertyChange(key, nv, ov) {
273
- // ignore the class attribute.
274
- // Prevent the framework from setting the class on the host element.
275
- if (key === 'class' || key === 'name' || key === 'tabindex') {
276
- return;
277
- }
278
- else if (key === 'animation') {
279
- this.modalOptions.class = this.modalOptions.class.replace(' animated ' + ov, '');
280
- if (nv) {
281
- this.modalOptions.class = this.modalOptions.class + ' animated ' + nv;
282
- }
283
- }
284
- super.onPropertyChange(key, nv, ov);
285
- }
286
- ngOnDestroy() {
287
- this.close();
288
- this.deRegister(this.viewParent);
289
- super.ngOnDestroy();
290
- }
291
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BaseDialog, deps: [{ token: i0.Injector }, { token: WidgetConfig }, { token: i1.ModalOptions }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
292
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BaseDialog }); }
293
- }
294
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BaseDialog, decorators: [{
295
- type: Injectable
296
- }], ctorParameters: () => [{ type: i0.Injector }, { type: undefined, decorators: [{
297
- type: Inject,
298
- args: [WidgetConfig]
299
- }] }, { type: i1.ModalOptions }, { type: undefined, decorators: [{
300
- type: Inject,
301
- args: ['EXPLICIT_CONTEXT']
302
- }, {
303
- type: Optional
304
- }] }] });
305
-
306
- const DEFAULT_CLS = 'app-dialog-header modal-header';
307
- const DEFAULT_ICON_DIMENSIONS = '21px';
308
- class DialogHeaderComponent {
309
- get isClosable() {
310
- return toBoolean(this.closable);
311
- }
312
- constructor(elRef, dialogRef, app) {
313
- this.dialogRef = dialogRef;
314
- this.app = app;
315
- this.iconwidth = DEFAULT_ICON_DIMENSIONS;
316
- this.iconheight = DEFAULT_ICON_DIMENSIONS;
317
- this.closable = true;
318
- this.headinglevel = 'h4';
319
- addClass(elRef.nativeElement, DEFAULT_CLS);
320
- this.isPrism = this.app.isPrism;
321
- }
322
- closeDialog() {
323
- this.dialogRef.close();
324
- }
325
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: DialogHeaderComponent, deps: [{ token: i0.ElementRef }, { token: DialogRef }, { token: i1$1.App }], target: i0.ɵɵFactoryTarget.Component }); }
326
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: DialogHeaderComponent, isStandalone: true, selector: "div[wmDialogHeader]", inputs: { iconwidth: "iconwidth", iconheight: "iconheight", iconmargin: "iconmargin", iconclass: "iconclass", iconurl: "iconurl", closable: "closable", heading: "heading", headinglevel: "headinglevel", subheading: "subheading", titleid: "titleid", title: "title" }, ngImport: i0, template: "@if (isClosable) {\n <button (click)=\"closeDialog();\"\n [attr.aria-label]=\"'Close ' + (title ? title : '') + ' dialog'\" class=\"app-dialog-close close\" [ngClass]=\"{'btn-text': isPrism}\" [attr.title]=\"title ? 'Close ' + title + ' dialog' : dialogRef.appLocale.LABEL_CLOSE\" >\n <span class=\"app-icon wi wi-clear\" aria-hidden=\"true\"></span>\n </button>\n}\n\n@switch (headinglevel) {\n @case ('h1') {\n <h1 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h1>\n }\n @case ('h2') {\n <h2 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h2>\n }\n @case ('h3') {\n <h3 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h3>\n }\n @case ('h4') {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n @case ('h5') {\n <h5 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h5>\n }\n @case ('h6') {\n <h6 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h6>\n }\n @default {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n}\n\n<ng-template #headerTemplate>\n @if (iconclass || iconurl) {\n <wm-app-icon [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconStyle]=\"{width: iconwidth, height: iconheight, margin: iconmargin, fontSize: iconwidth}\"></wm-app-icon>\n }\n <span class=\"dialog-heading\" [textContent]=\"heading\" [id]=\"titleid\"></span>\n @if (subheading) {\n <span class=\"dialog-sub-heading\" [title]=\"subheading\" [textContent]=\"subheading\"></span>\n }\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TextContentDirective, selector: "[textContent]", inputs: ["textContent"] }, { kind: "component", type: WmAppIconComponent, selector: "wm-app-icon", inputs: ["icon", "iconclass", "iconurl", "defaultIconClass", "defaultClasses", "iconStyle", "alt"] }] }); }
327
- }
328
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: DialogHeaderComponent, decorators: [{
329
- type: Component,
330
- args: [{ standalone: true, imports: [CommonModule, TextContentDirective, WmAppIconComponent], selector: 'div[wmDialogHeader]', template: "@if (isClosable) {\n <button (click)=\"closeDialog();\"\n [attr.aria-label]=\"'Close ' + (title ? title : '') + ' dialog'\" class=\"app-dialog-close close\" [ngClass]=\"{'btn-text': isPrism}\" [attr.title]=\"title ? 'Close ' + title + ' dialog' : dialogRef.appLocale.LABEL_CLOSE\" >\n <span class=\"app-icon wi wi-clear\" aria-hidden=\"true\"></span>\n </button>\n}\n\n@switch (headinglevel) {\n @case ('h1') {\n <h1 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h1>\n }\n @case ('h2') {\n <h2 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h2>\n }\n @case ('h3') {\n <h3 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h3>\n }\n @case ('h4') {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n @case ('h5') {\n <h5 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h5>\n }\n @case ('h6') {\n <h6 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h6>\n }\n @default {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n}\n\n<ng-template #headerTemplate>\n @if (iconclass || iconurl) {\n <wm-app-icon [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconStyle]=\"{width: iconwidth, height: iconheight, margin: iconmargin, fontSize: iconwidth}\"></wm-app-icon>\n }\n <span class=\"dialog-heading\" [textContent]=\"heading\" [id]=\"titleid\"></span>\n @if (subheading) {\n <span class=\"dialog-sub-heading\" [title]=\"subheading\" [textContent]=\"subheading\"></span>\n }\n</ng-template>\n" }]
331
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: BaseDialog, decorators: [{
332
- type: Inject,
333
- args: [DialogRef]
334
- }] }, { type: i1$1.App }], propDecorators: { iconwidth: [{
335
- type: Input
336
- }], iconheight: [{
337
- type: Input
338
- }], iconmargin: [{
339
- type: Input
340
- }], iconclass: [{
341
- type: Input
342
- }], iconurl: [{
343
- type: Input
344
- }], closable: [{
345
- type: Input
346
- }], heading: [{
347
- type: Input
348
- }], headinglevel: [{
349
- type: Input
350
- }], subheading: [{
351
- type: Input
352
- }], titleid: [{
353
- type: Input
354
- }], title: [{
355
- type: Input
356
- }] } });
357
-
358
- /**
359
- * Generated bundle index. Do not edit.
360
- */
361
-
214
+ var BaseDialog = class BaseDialog extends BaseComponent {
215
+ constructor(inj, config, modalOptions, explicitContext) {
216
+ super(inj, config, explicitContext);
217
+ this.modalOptions = modalOptions;
218
+ this.titleId = "wmdialog-" + generateGUId();
219
+ this.dialogOriginFocusStack = [];
220
+ this.dialogService = inj.get(AbstractDialogService);
221
+ this.bsModal = inj.get(BsModalService);
222
+ const router = inj.get(Router);
223
+ const subscriptions = [
224
+ this.bsModal.onShown.subscribe(({ id }) => {
225
+ const ref = this.dialogService.getLastOpenedDialog();
226
+ if (ref === this && !this.dialogId) {
227
+ invokeOpenedCallback(ref);
228
+ this.dialogId = id;
229
+ }
230
+ }),
231
+ this.bsModal.onShow.subscribe(() => {}),
232
+ this.bsModal.onHidden.subscribe((closeReason) => {
233
+ let ref = this.dialogService.getDialogRefFromClosedDialogs();
234
+ if (this.dialogId && closeReason?.id === this.dialogId) ref = this;
235
+ else if (closeReason === "esc" || closeReason === "backdrop-click") ref = this.dialogService.getLastOpenedDialog();
236
+ if (ref === this) {
237
+ this.dialogId = null;
238
+ this.dialogService.removeFromOpenedDialogs(ref);
239
+ this.dialogService.removeFromClosedDialogs(ref);
240
+ invokeClosedCallback(ref);
241
+ if (ref.closeCallBackFn) ref.closeCallBackFn();
242
+ }
243
+ }),
244
+ this.bsModal.onHide.subscribe(() => {}),
245
+ router.events.subscribe((e) => {
246
+ if (e instanceof NavigationEnd) this.close();
247
+ })
248
+ ];
249
+ this.registerDestroyListener(() => {
250
+ this.dialogService.removeFromOpenedDialogs(this);
251
+ this.dialogService.removeFromClosedDialogs(this);
252
+ subscriptions.forEach((s) => s.unsubscribe());
253
+ });
254
+ }
255
+ open(initState) {
256
+ const duplicateDialogCheck = (openedDialog) => {
257
+ return openedDialog === this;
258
+ };
259
+ if (this.dialogService.getOpenedDialogs().some(duplicateDialogCheck)) return;
260
+ this.dialogService.addToOpenedDialogs(this);
261
+ Object.assign(this.context, initState);
262
+ this.modalOptions.ariaLabelledBy = this.titleId;
263
+ this.dialogOriginFocusStack.push(document.activeElement);
264
+ this.dialogRef = this.bsModal.show(this.getTemplateRef(), this.modalOptions);
265
+ if (this.dialogService.getOpenedDialogs().length === 1 && isMobile()) $("body > app-root")[0].setAttribute("aria-hidden", "true");
266
+ $(".cdk-focus-trap-anchor").removeAttr("aria-hidden");
267
+ }
268
+ close() {
269
+ if (this.dialogRef) {
270
+ const lastDialogOrigin = this.dialogOriginFocusStack.pop();
271
+ this.dialogService.addToClosedDialogs(this);
272
+ this.dialogRef.hide();
273
+ lastDialogOrigin?.focus();
274
+ }
275
+ }
276
+ register(scope) {
277
+ this.dialogService.register(this.name, this, scope);
278
+ }
279
+ deRegister(scope) {
280
+ this.dialogService.deRegister(this.name, scope);
281
+ }
282
+ onPropertyChange(key, nv, ov) {
283
+ if (key === "class" || key === "name" || key === "tabindex") return;
284
+ else if (key === "animation") {
285
+ this.modalOptions.class = this.modalOptions.class.replace(" animated " + ov, "");
286
+ if (nv) this.modalOptions.class = this.modalOptions.class + " animated " + nv;
287
+ }
288
+ super.onPropertyChange(key, nv, ov);
289
+ }
290
+ ngOnDestroy() {
291
+ this.close();
292
+ this.deRegister(this.viewParent);
293
+ super.ngOnDestroy();
294
+ }
295
+ static {
296
+ this.ɵfac = i0.ɵɵngDeclareFactory({
297
+ minVersion: "12.0.0",
298
+ version: "22.2.1",
299
+ ngImport: i0,
300
+ type: BaseDialog,
301
+ deps: [
302
+ { token: i0.Injector },
303
+ { token: WidgetConfig },
304
+ { token: i1$1.ModalOptions },
305
+ {
306
+ token: "EXPLICIT_CONTEXT",
307
+ optional: true
308
+ }
309
+ ],
310
+ target: i0.ɵɵFactoryTarget.Injectable
311
+ });
312
+ }
313
+ static {
314
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
315
+ minVersion: "12.0.0",
316
+ version: "22.2.1",
317
+ ngImport: i0,
318
+ type: BaseDialog
319
+ });
320
+ }
321
+ };
322
+ i0.ɵɵngDeclareClassMetadata({
323
+ minVersion: "12.0.0",
324
+ version: "22.2.1",
325
+ ngImport: i0,
326
+ type: BaseDialog,
327
+ decorators: [{ type: Injectable }],
328
+ ctorParameters: () => [
329
+ { type: i0.Injector },
330
+ {
331
+ type: void 0,
332
+ decorators: [{
333
+ type: Inject,
334
+ args: [WidgetConfig]
335
+ }]
336
+ },
337
+ { type: i1$1.ModalOptions },
338
+ {
339
+ type: void 0,
340
+ decorators: [{
341
+ type: Inject,
342
+ args: ["EXPLICIT_CONTEXT"]
343
+ }, { type: Optional }]
344
+ }
345
+ ]
346
+ });
347
+ const DEFAULT_CLS = "app-dialog-header modal-header";
348
+ const DEFAULT_ICON_DIMENSIONS = "21px";
349
+ var DialogHeaderComponent = class DialogHeaderComponent {
350
+ get isClosable() {
351
+ return toBoolean(this.closable);
352
+ }
353
+ constructor(elRef, dialogRef, app) {
354
+ this.dialogRef = dialogRef;
355
+ this.app = app;
356
+ this.iconwidth = DEFAULT_ICON_DIMENSIONS;
357
+ this.iconheight = DEFAULT_ICON_DIMENSIONS;
358
+ this.closable = true;
359
+ this.headinglevel = "h4";
360
+ addClass(elRef.nativeElement, DEFAULT_CLS);
361
+ this.isPrism = this.app.isPrism;
362
+ }
363
+ closeDialog() {
364
+ this.dialogRef.close();
365
+ }
366
+ static {
367
+ this.ɵfac = i0.ɵɵngDeclareFactory({
368
+ minVersion: "12.0.0",
369
+ version: "22.2.1",
370
+ ngImport: i0,
371
+ type: DialogHeaderComponent,
372
+ deps: [
373
+ { token: i0.ElementRef },
374
+ { token: DialogRef },
375
+ { token: i1.App }
376
+ ],
377
+ target: i0.ɵɵFactoryTarget.Component
378
+ });
379
+ }
380
+ static {
381
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
382
+ minVersion: "17.0.0",
383
+ version: "22.2.1",
384
+ type: DialogHeaderComponent,
385
+ isStandalone: true,
386
+ selector: "div[wmDialogHeader]",
387
+ inputs: {
388
+ iconwidth: "iconwidth",
389
+ iconheight: "iconheight",
390
+ iconmargin: "iconmargin",
391
+ iconclass: "iconclass",
392
+ iconurl: "iconurl",
393
+ closable: "closable",
394
+ heading: "heading",
395
+ headinglevel: "headinglevel",
396
+ subheading: "subheading",
397
+ titleid: "titleid",
398
+ title: "title"
399
+ },
400
+ ngImport: i0,
401
+ template: "@if (isClosable) {\n <button (click)=\"closeDialog();\"\n [attr.aria-label]=\"'Close ' + (title ? title : '') + ' dialog'\" class=\"app-dialog-close close\" [ngClass]=\"{'btn-text': isPrism}\" [attr.title]=\"title ? 'Close ' + title + ' dialog' : dialogRef.appLocale.LABEL_CLOSE\" >\n <span class=\"app-icon wi wi-clear\" aria-hidden=\"true\"></span>\n </button>\n}\n\n@switch (headinglevel) {\n @case ('h1') {\n <h1 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h1>\n }\n @case ('h2') {\n <h2 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h2>\n }\n @case ('h3') {\n <h3 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h3>\n }\n @case ('h4') {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n @case ('h5') {\n <h5 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h5>\n }\n @case ('h6') {\n <h6 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h6>\n }\n @default {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n}\n\n<ng-template #headerTemplate>\n @if (iconclass || iconurl) {\n <wm-app-icon [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconStyle]=\"{width: iconwidth, height: iconheight, margin: iconmargin, fontSize: iconwidth}\"></wm-app-icon>\n }\n <span class=\"dialog-heading\" [textContent]=\"heading\" [id]=\"titleid\"></span>\n @if (subheading) {\n <span class=\"dialog-sub-heading\" [title]=\"subheading\" [textContent]=\"subheading\"></span>\n }\n</ng-template>\n",
402
+ dependencies: [
403
+ {
404
+ kind: "ngmodule",
405
+ type: CommonModule
406
+ },
407
+ {
408
+ kind: "directive",
409
+ type: i2.NgClass,
410
+ selector: "[ngClass]",
411
+ inputs: ["class", "ngClass"]
412
+ },
413
+ {
414
+ kind: "directive",
415
+ type: i2.NgTemplateOutlet,
416
+ selector: "[ngTemplateOutlet]",
417
+ inputs: [
418
+ "ngTemplateOutletContext",
419
+ "ngTemplateOutlet",
420
+ "ngTemplateOutletInjector"
421
+ ]
422
+ },
423
+ {
424
+ kind: "directive",
425
+ type: TextContentDirective,
426
+ selector: "[textContent]",
427
+ inputs: ["textContent"]
428
+ },
429
+ {
430
+ kind: "component",
431
+ type: WmAppIconComponent,
432
+ selector: "wm-app-icon",
433
+ inputs: [
434
+ "icon",
435
+ "iconclass",
436
+ "iconurl",
437
+ "defaultIconClass",
438
+ "defaultClasses",
439
+ "iconStyle",
440
+ "alt"
441
+ ]
442
+ }
443
+ ],
444
+ changeDetection: i0.ChangeDetectionStrategy.Eager
445
+ });
446
+ }
447
+ };
448
+ i0.ɵɵngDeclareClassMetadata({
449
+ minVersion: "12.0.0",
450
+ version: "22.2.1",
451
+ ngImport: i0,
452
+ type: DialogHeaderComponent,
453
+ decorators: [{
454
+ type: Component,
455
+ args: [{
456
+ changeDetection: ChangeDetectionStrategy.Eager,
457
+ standalone: true,
458
+ imports: [
459
+ CommonModule,
460
+ TextContentDirective,
461
+ WmAppIconComponent
462
+ ],
463
+ selector: "div[wmDialogHeader]",
464
+ template: "@if (isClosable) {\n <button (click)=\"closeDialog();\"\n [attr.aria-label]=\"'Close ' + (title ? title : '') + ' dialog'\" class=\"app-dialog-close close\" [ngClass]=\"{'btn-text': isPrism}\" [attr.title]=\"title ? 'Close ' + title + ' dialog' : dialogRef.appLocale.LABEL_CLOSE\" >\n <span class=\"app-icon wi wi-clear\" aria-hidden=\"true\"></span>\n </button>\n}\n\n@switch (headinglevel) {\n @case ('h1') {\n <h1 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h1>\n }\n @case ('h2') {\n <h2 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h2>\n }\n @case ('h3') {\n <h3 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h3>\n }\n @case ('h4') {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n @case ('h5') {\n <h5 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h5>\n }\n @case ('h6') {\n <h6 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h6>\n }\n @default {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n}\n\n<ng-template #headerTemplate>\n @if (iconclass || iconurl) {\n <wm-app-icon [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconStyle]=\"{width: iconwidth, height: iconheight, margin: iconmargin, fontSize: iconwidth}\"></wm-app-icon>\n }\n <span class=\"dialog-heading\" [textContent]=\"heading\" [id]=\"titleid\"></span>\n @if (subheading) {\n <span class=\"dialog-sub-heading\" [title]=\"subheading\" [textContent]=\"subheading\"></span>\n }\n</ng-template>\n"
465
+ }]
466
+ }],
467
+ ctorParameters: () => [
468
+ { type: i0.ElementRef },
469
+ {
470
+ type: BaseDialog,
471
+ decorators: [{
472
+ type: Inject,
473
+ args: [DialogRef]
474
+ }]
475
+ },
476
+ { type: i1.App }
477
+ ],
478
+ propDecorators: {
479
+ iconwidth: [{ type: Input }],
480
+ iconheight: [{ type: Input }],
481
+ iconmargin: [{ type: Input }],
482
+ iconclass: [{ type: Input }],
483
+ iconurl: [{ type: Input }],
484
+ closable: [{ type: Input }],
485
+ heading: [{ type: Input }],
486
+ headinglevel: [{ type: Input }],
487
+ subheading: [{ type: Input }],
488
+ titleid: [{ type: Input }],
489
+ title: [{ type: Input }]
490
+ }
491
+ });
362
492
  export { BaseDialog, DialogBodyDirective, DialogFooterDirective, DialogHeaderComponent };
363
- //# sourceMappingURL=index.mjs.map
493
+
494
+ //# sourceMappingURL=index.mjs.map