@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,527 +1,551 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('ngx-bootstrap/popover'), require('@wm/core'), require('@wm/components/base'), require('@wm/components/basic/anchor')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@angular/common', '@angular/core', 'ngx-bootstrap/popover', '@wm/core', '@wm/components/base', '@wm/components/basic/anchor'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.navigation = global.wm.components.navigation || {}, global.wm.components.navigation.popover = {}), global.ng.common, global.ng.core, global.ngxBootstrap.popover, global.wm.core, global.wm.components.base, global.wm.components.basic.anchor));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('ngx-bootstrap/popover'), require('@wm/core'), require('@wm/components/base'), require('@wm/components/basic/anchor')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@angular/common', '@angular/core', 'ngx-bootstrap/popover', '@wm/core', '@wm/components/base', '@wm/components/basic/anchor'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.navigation = global.wm.components.navigation || {}, global.wm.components.navigation.popover = {}), global.ng.common, global.ng.core, global.ngxBootstrap.popover, global.wm.core, global.wm.components.base, global.wm.components.basic.anchor));
5
5
  })(this, (function (exports, i2, i0, i3, i1, base, anchor) { 'use strict';
6
6
 
7
- function _interopNamespaceDefault(e) {
8
- var n = Object.create(null);
9
- if (e) {
10
- Object.keys(e).forEach(function (k) {
11
- if (k !== 'default') {
12
- var d = Object.getOwnPropertyDescriptor(e, k);
13
- Object.defineProperty(n, k, d.get ? d : {
14
- enumerable: true,
15
- get: function () { return e[k]; }
16
- });
17
- }
18
- });
19
- }
20
- n.default = e;
21
- return Object.freeze(n);
22
- }
7
+ function _interopNamespaceDefault(e) {
8
+ var n = Object.create(null);
9
+ if (e) {
10
+ Object.keys(e).forEach(function (k) {
11
+ if (k !== 'default') {
12
+ var d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: function () { return e[k]; }
16
+ });
17
+ }
18
+ });
19
+ }
20
+ n.default = e;
21
+ return Object.freeze(n);
22
+ }
23
23
 
24
- var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
25
- var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
26
- var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
27
- var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
24
+ var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
25
+ var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
26
+ var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
27
+ var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
28
28
 
29
- const registerProps = () => {
30
- base.register('wm-popover', new Map([
31
- ['autoclose', { value: 'outsideClick', ...base.PROP_STRING }],
32
- ['badgevalue', base.PROP_STRING],
33
- ['caption', { value: 'Link', ...base.PROP_STRING }],
34
- ['class', base.PROP_STRING],
35
- ['conditionalclass', base.PROP_ANY],
36
- ['content', base.PROP_STRING],
37
- ['contentanimation', base.PROP_STRING],
38
- ['contentsource', { value: 'partial', ...base.PROP_STRING }],
39
- ['encodeurl', base.PROP_BOOLEAN],
40
- ['hint', base.PROP_STRING],
41
- ['arialabel', base.PROP_STRING],
42
- ['hyperlink', { value: 'javascript:void(0)', PROP_STRING: base.PROP_STRING }],
43
- ['iconclass', base.PROP_STRING],
44
- ['iconheight', base.PROP_STRING],
45
- ['iconmargin', base.PROP_STRING],
46
- ['iconposition', base.PROP_STRING],
47
- ['iconurl', base.PROP_STRING],
48
- ['iconwidth', base.PROP_STRING],
49
- ['interaction', { value: 'click', ...base.PROP_STRING }],
50
- ['name', base.PROP_STRING],
51
- ['popoverarrow', { value: true, ...base.PROP_BOOLEAN }],
52
- ['popoverheight', base.PROP_STRING],
53
- ['popoverplacement', { value: 'bottom', ...base.PROP_STRING }],
54
- ['popoverwidth', base.PROP_STRING],
55
- ['shortcutkey', base.PROP_STRING],
56
- ['show', { value: true, ...base.PROP_BOOLEAN }],
57
- ['tabindex', { value: 0, ...base.PROP_NUMBER }],
58
- ['title', base.PROP_STRING],
59
- ['adaptiveposition', { value: true, ...base.PROP_BOOLEAN }]
60
- ]));
61
- };
29
+ const registerProps = () => {
30
+ base.register("wm-popover", /* @__PURE__ */ new Map([
31
+ ["autoclose", {
32
+ value: "outsideClick",
33
+ ...base.PROP_STRING
34
+ }],
35
+ ["badgevalue", base.PROP_STRING],
36
+ ["caption", {
37
+ value: "Link",
38
+ ...base.PROP_STRING
39
+ }],
40
+ ["class", base.PROP_STRING],
41
+ ["conditionalclass", base.PROP_ANY],
42
+ ["content", base.PROP_STRING],
43
+ ["contentanimation", base.PROP_STRING],
44
+ ["contentsource", {
45
+ value: "partial",
46
+ ...base.PROP_STRING
47
+ }],
48
+ ["encodeurl", base.PROP_BOOLEAN],
49
+ ["hint", base.PROP_STRING],
50
+ ["arialabel", base.PROP_STRING],
51
+ ["hyperlink", {
52
+ value: "javascript:void(0)",
53
+ PROP_STRING: base.PROP_STRING
54
+ }],
55
+ ["iconclass", base.PROP_STRING],
56
+ ["iconheight", base.PROP_STRING],
57
+ ["iconmargin", base.PROP_STRING],
58
+ ["iconposition", base.PROP_STRING],
59
+ ["iconurl", base.PROP_STRING],
60
+ ["iconwidth", base.PROP_STRING],
61
+ ["interaction", {
62
+ value: "click",
63
+ ...base.PROP_STRING
64
+ }],
65
+ ["name", base.PROP_STRING],
66
+ ["popoverarrow", {
67
+ value: true,
68
+ ...base.PROP_BOOLEAN
69
+ }],
70
+ ["popoverheight", base.PROP_STRING],
71
+ ["popoverplacement", {
72
+ value: "bottom",
73
+ ...base.PROP_STRING
74
+ }],
75
+ ["popoverwidth", base.PROP_STRING],
76
+ ["shortcutkey", base.PROP_STRING],
77
+ ["show", {
78
+ value: true,
79
+ ...base.PROP_BOOLEAN
80
+ }],
81
+ ["tabindex", {
82
+ value: 0,
83
+ ...base.PROP_NUMBER
84
+ }],
85
+ ["title", base.PROP_STRING],
86
+ ["adaptiveposition", {
87
+ value: true,
88
+ ...base.PROP_BOOLEAN
89
+ }]
90
+ ]));
91
+ };
92
+ const WIDGET_CONFIG = {
93
+ widgetType: "wm-popover",
94
+ hostClass: "app-popover-wrapper"
95
+ };
96
+ const eventsMap = {
97
+ click: "click",
98
+ hover: "mouseenter:click",
99
+ default: "click mouseenter"
100
+ };
101
+ let activePopover;
102
+ var PopoverComponent = class PopoverComponent extends base.StylableComponent {
103
+ static {
104
+ this.initializeProps = registerProps();
105
+ }
106
+ static {
107
+ this.activePopovers = [];
108
+ }
109
+ constructor(inj, app, explicitContext, cdr, ngZone) {
110
+ super(inj, WIDGET_CONFIG, explicitContext);
111
+ this.app = app;
112
+ this.cdr = cdr;
113
+ this.ngZone = ngZone;
114
+ this.isOpen = false;
115
+ this.canPopoverOpen = true;
116
+ this.isClosingProgrammatically = false;
117
+ this.isHandlingClick = false;
118
+ this.preventFocusShift = false;
119
+ this.popoverContainerCls = `app-popover-${this.widgetId}`;
120
+ this.isPrism = this.app.isPrism;
121
+ }
122
+ setupDocumentClickHandler() {
123
+ if (this.documentClickHandler) document.removeEventListener("click", this.documentClickHandler, true);
124
+ this.documentClickHandler = (event) => {
125
+ if (!this.isOpen) return;
126
+ const target = event.target;
127
+ this.isHandlingClick = true;
128
+ try {
129
+ if (!!(target.closest("bs-datepicker-container") || target.closest(".bs-datepicker-container") || target.closest("bs-daterangepicker-container") || target.closest(".bs-daterangepicker-container") || target.closest("bs-timepicker") || target.closest(".bs-timepicker") || target.closest(".dropdown-menu"))) return;
130
+ const clickedPopoverIndex = PopoverComponent.activePopovers.findIndex((popover) => {
131
+ return document.querySelector(`.${popover.popoverContainerCls}`)?.contains(target);
132
+ });
133
+ if (this.anchorRef?.nativeElement?.contains(target)) {
134
+ event.preventDefault();
135
+ event.stopPropagation();
136
+ this.isOpen ? this.close() : this.open();
137
+ return;
138
+ }
139
+ if (clickedPopoverIndex === -1) {
140
+ if (this.outsideclick) this.closeAllPopovers();
141
+ } else this.closeInnerPopovers(clickedPopoverIndex);
142
+ } finally {
143
+ setTimeout(() => {
144
+ this.isHandlingClick = false;
145
+ }, 0);
146
+ }
147
+ };
148
+ document.addEventListener("click", this.documentClickHandler, true);
149
+ }
150
+ closeAllPopovers() {
151
+ PopoverComponent.activePopovers.forEach((popover) => {
152
+ if (popover.outsideclick) {
153
+ popover.isClosingProgrammatically = true;
154
+ popover.close();
155
+ }
156
+ });
157
+ }
158
+ closeInnerPopovers(clickedIndex) {
159
+ for (let i = clickedIndex + 1; i < PopoverComponent.activePopovers.length; i++) {
160
+ const popover = PopoverComponent.activePopovers[i];
161
+ if (popover.outsideclick) {
162
+ popover.isClosingProgrammatically = true;
163
+ popover.close();
164
+ }
165
+ }
166
+ }
167
+ isChildPopover() {
168
+ return !!$(this.nativeElement).closest(".popover").length;
169
+ }
170
+ open(preventFocusShift) {
171
+ this.preventFocusShift = preventFocusShift ?? false;
172
+ if (this.isHandlingClick) return;
173
+ this.showPopover();
174
+ if (!PopoverComponent.activePopovers.includes(this)) PopoverComponent.activePopovers.push(this);
175
+ this.cdr.detectChanges();
176
+ }
177
+ close() {
178
+ if (this.isOpen) {
179
+ this.isClosingProgrammatically = true;
180
+ this.isOpen = false;
181
+ if (this.bsPopoverDirective) this.bsPopoverDirective.hide();
182
+ const index = PopoverComponent.activePopovers.indexOf(this);
183
+ if (index > -1) PopoverComponent.activePopovers.splice(index, 1);
184
+ this.cdr.detectChanges();
185
+ }
186
+ }
187
+ onHidden() {
188
+ if (!this.isChildPopover() || this.isClosingProgrammatically) {
189
+ this.invokeEventCallback("hide", { $event: { type: "hide" } });
190
+ this.isOpen = false;
191
+ if (activePopover === this) activePopover = null;
192
+ }
193
+ this.isClosingProgrammatically = false;
194
+ }
195
+ setFocusToPopoverLink() {
196
+ setTimeout(() => this.anchorRef.nativeElement.focus(), 10);
197
+ }
198
+ adjustPopoverArrowPosition(popoverElem, popoverLeftShift) {
199
+ if (this.arrowPositionSubscription) {
200
+ this.arrowPositionSubscription.unsubscribe();
201
+ this.arrowPositionSubscription = null;
202
+ }
203
+ this.arrowPositionSubscription = this.ngZone.onStable.subscribe(() => {
204
+ popoverElem.find(".popover-arrow").css("left", popoverLeftShift + "px");
205
+ });
206
+ }
207
+ calculatePopoverPostion(element) {
208
+ const popoverElem = $(element);
209
+ let popoverLeft = popoverElem.offset().left;
210
+ const popoverWidth = popoverElem[0].offsetWidth;
211
+ const viewPortWidth = $(window).width();
212
+ const parentDimesion = this.anchorRef.nativeElement.getBoundingClientRect();
213
+ if (popoverLeft < 0) {
214
+ i1.adjustContainerPosition(popoverElem, this.nativeElement, this.bsPopoverDirective._popover);
215
+ const arrowLeftShift = parentDimesion.left + parentDimesion.width / 2 - 4;
216
+ this.adjustPopoverArrowPosition(popoverElem, arrowLeftShift);
217
+ }
218
+ if (popoverLeft + popoverWidth > viewPortWidth) {
219
+ i1.adjustContainerRightEdges(popoverElem, this.nativeElement, this.bsPopoverDirective._popover);
220
+ setTimeout(() => {
221
+ popoverLeft = popoverElem.offset().left;
222
+ const popoverLeftAdjust = popoverLeft + popoverWidth - viewPortWidth;
223
+ const popoverLeftShift = popoverLeft - popoverLeftAdjust;
224
+ let arrowLeftShift;
225
+ if (popoverLeft <= 100) arrowLeftShift = parentDimesion.left + parentDimesion.width / 2 - popoverLeft;
226
+ else arrowLeftShift = parentDimesion.left + parentDimesion.width / 2 - popoverLeftShift;
227
+ if (viewPortWidth > 500) arrowLeftShift += 30;
228
+ this.adjustPopoverArrowPosition(popoverElem, arrowLeftShift);
229
+ });
230
+ }
231
+ }
232
+ onShown() {
233
+ const root = i1.findRootContainer(this.$element);
234
+ if (root) $("body > popover-container").wrap("<" + root + "/>");
235
+ if (!this.isChildPopover()) {
236
+ if (activePopover && activePopover !== this && activePopover.autoclose !== base.AUTOCLOSE_TYPE.DISABLED) {
237
+ activePopover.isClosingProgrammatically = true;
238
+ activePopover.close();
239
+ }
240
+ activePopover = this;
241
+ }
242
+ this.isOpen = true;
243
+ if (!PopoverComponent.activePopovers.includes(this)) PopoverComponent.activePopovers.push(this);
244
+ const popoverContainer = document.querySelector(`.${this.popoverContainerCls}`);
245
+ if (popoverContainer) {
246
+ popoverContainer.setAttribute("data-popover-id", this.widgetId);
247
+ popoverContainer.addEventListener("click", (event) => {
248
+ event.stopPropagation();
249
+ });
250
+ if (this.isPrism) this.applyVariantClass(popoverContainer);
251
+ }
252
+ i1.setCSSFromObj(popoverContainer, {
253
+ height: this.popoverheight,
254
+ minWidth: this.popoverwidth,
255
+ width: this.popoverwidth
256
+ });
257
+ if (!this.popoverarrow) i1.addClass(popoverContainer.querySelector(".arrow"), "hidden");
258
+ if (this.interaction === "hover" || this.interaction === "default") {
259
+ popoverContainer.onmouseenter = () => clearTimeout(this.closePopoverTimeout);
260
+ popoverContainer.onmouseleave = () => this.hidePopover();
261
+ this.anchorRef.nativeElement.onmouseenter = () => clearTimeout(this.closePopoverTimeout);
262
+ this.anchorRef.nativeElement.onmouseleave = () => this.hidePopover();
263
+ }
264
+ if (this.outsideclick) this.setupDocumentClickHandler();
265
+ setTimeout(() => {
266
+ if (this.anchorRef?.nativeElement) this.anchorRef.nativeElement.removeAttribute("aria-describedby");
267
+ });
268
+ const deRegister = this.eventManager.addEventListener(popoverContainer, "keydown.esc", () => {
269
+ this.isOpen = false;
270
+ this.setFocusToPopoverLink();
271
+ deRegister();
272
+ });
273
+ const popoverStartBtn = popoverContainer.querySelector(".popover-start");
274
+ const popoverEndBtn = popoverContainer.querySelector(".popover-end");
275
+ popoverStartBtn.onkeydown = (event) => {
276
+ if (event.shiftKey && event.key === "Tab") {
277
+ this.bsPopoverDirective.hide();
278
+ event.preventDefault();
279
+ this.setFocusToPopoverLink();
280
+ this.isOpen = false;
281
+ }
282
+ };
283
+ popoverEndBtn.onkeydown = (event) => {
284
+ if (!event.shiftKey && event.key === "Tab") {
285
+ this.bsPopoverDirective.hide();
286
+ event.preventDefault();
287
+ this.setFocusToPopoverLink();
288
+ this.isOpen = false;
289
+ }
290
+ };
291
+ if (this.autoclose === base.AUTOCLOSE_TYPE.ALWAYS) popoverContainer.onclick = () => this.close();
292
+ if (this.preventFocusShift) {
293
+ const activeElement = document.activeElement;
294
+ setTimeout(() => activeElement?.focus(), 0);
295
+ } else setTimeout(() => popoverStartBtn.focus(), 50);
296
+ setTimeout(() => {
297
+ if (!this.adaptiveposition) this.calculatePopoverPostion(popoverContainer);
298
+ this.triggerPopoverEvents();
299
+ });
300
+ }
301
+ triggerPopoverEvents() {
302
+ if (this.contentsource === "partial") this.partialLoadedSubscription = this.app.subscribe("partialLoaded", () => {
303
+ if (this.partialLoadedSubscription) {
304
+ this.partialLoadedSubscription();
305
+ this.partialLoadedSubscription = null;
306
+ }
307
+ if (!this.partialRef?.nativeElement) return;
308
+ const partialScope = this.partialRef.nativeElement.widget;
309
+ this.Widgets = partialScope.Widgets;
310
+ this.Variables = partialScope.Variables;
311
+ this.Actions = partialScope.Actions;
312
+ this.invokeEventCallback("load");
313
+ this.invokeEventCallback("show", { $event: { type: "show" } });
314
+ });
315
+ else {
316
+ this.Widgets = this.viewParent.Widgets;
317
+ this.Variables = this.viewParent.Variables;
318
+ this.Actions = this.viewParent.Actions;
319
+ this.invokeEventCallback("show", { $event: { type: "show" } });
320
+ }
321
+ }
322
+ hidePopover() {
323
+ this.isClosingProgrammatically = true;
324
+ this.closePopoverTimeout = setTimeout(() => this.isOpen = false, 500);
325
+ }
326
+ showPopover() {
327
+ this.bsPopoverDirective.show();
328
+ }
329
+ onPopoverAnchorKeydown($event) {
330
+ if (!this.canPopoverOpen) return;
331
+ if ($event.key === "Enter") {
332
+ $event.stopPropagation();
333
+ $event.preventDefault();
334
+ this.showPopover();
335
+ }
336
+ }
337
+ onPropertyChange(key, nv, ov) {
338
+ if (key === "class" || key === "tabindex") return;
339
+ if (key === "contentsource") {
340
+ if (this.contentsource === "partial" && !this.content) this.canPopoverOpen = false;
341
+ }
342
+ if (key === "content" && nv) this.canPopoverOpen = true;
343
+ if (key === "autoclose") this.outsideclick = nv === base.AUTOCLOSE_TYPE.OUTSIDECLICK || nv === base.AUTOCLOSE_TYPE.ALWAYS ? true : false;
344
+ super.onPropertyChange(key, nv, ov);
345
+ }
346
+ ngOnInit() {
347
+ super.ngOnInit();
348
+ this.event = eventsMap[this.interaction];
349
+ }
350
+ ngAfterViewInit() {
351
+ super.ngAfterViewInit();
352
+ base.styler(this.anchorRef.nativeElement, this);
353
+ this.containerTarget = base.getContainerTargetClass(this.nativeElement);
354
+ }
355
+ ngOnDetach() {
356
+ this.bsPopoverDirective.hide();
357
+ }
358
+ ngOnDestroy() {
359
+ if (this.partialLoadedSubscription) {
360
+ this.partialLoadedSubscription();
361
+ this.partialLoadedSubscription = null;
362
+ }
363
+ if (this.arrowPositionSubscription) {
364
+ this.arrowPositionSubscription.unsubscribe();
365
+ this.arrowPositionSubscription = null;
366
+ }
367
+ if (this.isOpen && this.bsPopoverDirective) this.bsPopoverDirective.hide();
368
+ if (this.closePopoverTimeout) {
369
+ clearTimeout(this.closePopoverTimeout);
370
+ this.closePopoverTimeout = null;
371
+ }
372
+ if (this.documentClickHandler) {
373
+ document.removeEventListener("click", this.documentClickHandler, true);
374
+ this.documentClickHandler = null;
375
+ }
376
+ const index = PopoverComponent.activePopovers.indexOf(this);
377
+ if (index > -1) PopoverComponent.activePopovers.splice(index, 1);
378
+ if (this.anchorRef?.nativeElement) {
379
+ this.anchorRef.nativeElement.onmouseenter = null;
380
+ this.anchorRef.nativeElement.onmouseleave = null;
381
+ }
382
+ this.bsPopoverDirective = null;
383
+ this.anchorRef = null;
384
+ this.popoverTemplate = null;
385
+ this.partialRef = null;
386
+ super.ngOnDestroy();
387
+ }
388
+ applyVariantClass(popoverContainer) {
389
+ if (!popoverContainer) return;
390
+ (this.class || "").split(/\s+/).filter((c) => c.startsWith("popover-")).forEach((v) => popoverContainer.classList.add(v));
391
+ }
392
+ static {
393
+ this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
394
+ minVersion: "12.0.0",
395
+ version: "22.2.1",
396
+ ngImport: i0__namespace,
397
+ type: PopoverComponent,
398
+ deps: [
399
+ { token: i0__namespace.Injector },
400
+ { token: i1__namespace.App },
401
+ {
402
+ token: "EXPLICIT_CONTEXT",
403
+ optional: true
404
+ },
405
+ { token: i0__namespace.ChangeDetectorRef },
406
+ { token: i0__namespace.NgZone }
407
+ ],
408
+ target: i0__namespace.ɵɵFactoryTarget.Component
409
+ });
410
+ }
411
+ static {
412
+ this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({
413
+ minVersion: "14.0.0",
414
+ version: "22.2.1",
415
+ type: PopoverComponent,
416
+ isStandalone: true,
417
+ selector: "wm-popover",
418
+ providers: [base.provideAsWidgetRef(PopoverComponent)],
419
+ queries: [{
420
+ propertyName: "popoverTemplate",
421
+ first: true,
422
+ predicate: i0.TemplateRef,
423
+ descendants: true
424
+ }, {
425
+ propertyName: "partialRef",
426
+ first: true,
427
+ predicate: ["partial"],
428
+ descendants: true
429
+ }],
430
+ viewQueries: [{
431
+ propertyName: "bsPopoverDirective",
432
+ first: true,
433
+ predicate: i3.PopoverDirective,
434
+ descendants: true
435
+ }, {
436
+ propertyName: "anchorRef",
437
+ first: true,
438
+ predicate: ["anchor"],
439
+ descendants: true,
440
+ static: true
441
+ }],
442
+ usesInheritance: true,
443
+ ngImport: i0__namespace,
444
+ template: "<a [popover]=\"popoverTemplate\"\n [popoverContext]=\"context\"\n [popoverTitle]=\"title\"\n [placement]=\"popoverplacement\"\n [outsideClick]=\"false\"\n [triggers]=\"event\"\n (onShown)=\"onShown()\"\n (onHidden)=\"onHidden()\"\n containerClass=\"app-popover animated {{contentanimation}} {{popoverContainerCls}}\"\n [container]=\"containerTarget || '.wm-app'\"\n [isOpen]=\"isOpen\"\n [tabindex]=\"tabindex\"\n [name]=\"name\"\n [class]=\"class\"\n [ngClass]=\"{'disable-popover': !canPopoverOpen}\"\n [adaptivePosition]=\"adaptiveposition\"\n boundariesElement=\"window\"\n [attr.aria-label]=\"arialabel || (badgevalue ? caption + ' ' + badgevalue : caption) || 'Popover menu'\"\n [attr.aria-expanded]=\"isOpen\"\n role=\"button\"\n #anchor\n name.bind=\"name\"\n wmAnchor\n animation.bind=\"animation\"\n badgevalue.bind=\"badgevalue\"\n caption.bind=\"caption\"\n encodeurl.bind=\"encodeurl\"\n hint.bind=\"hint\"\n hyperlink.bind=\"hyperlink\"\n iconurl.bind=\"iconurl\"\n iconwidth.bind=\"iconwidth\"\n iconheight.bind=\"iconheight\"\n iconmargin.bind=\"iconmargin\"\n iconclass.bind=\"iconclass\"\n iconposition.bind=\"iconposition\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n (keydown)=\"onPopoverAnchorKeydown($event)\">\n</a>\n",
445
+ dependencies: [
446
+ {
447
+ kind: "ngmodule",
448
+ type: i2.CommonModule
449
+ },
450
+ {
451
+ kind: "directive",
452
+ type: i2__namespace.NgClass,
453
+ selector: "[ngClass]",
454
+ inputs: ["class", "ngClass"]
455
+ },
456
+ {
457
+ kind: "ngmodule",
458
+ type: i3.PopoverModule
459
+ },
460
+ {
461
+ kind: "directive",
462
+ type: i3__namespace.PopoverDirective,
463
+ selector: "[popover]",
464
+ inputs: [
465
+ "adaptivePosition",
466
+ "boundariesElement",
467
+ "popover",
468
+ "popoverContext",
469
+ "popoverTitle",
470
+ "placement",
471
+ "outsideClick",
472
+ "triggers",
473
+ "container",
474
+ "containerClass",
475
+ "isOpen",
476
+ "delay"
477
+ ],
478
+ outputs: [
479
+ "isOpenChange",
480
+ "onShown",
481
+ "onHidden"
482
+ ],
483
+ exportAs: ["bs-popover"]
484
+ },
485
+ {
486
+ kind: "component",
487
+ type: anchor.AnchorComponent,
488
+ selector: "a[wmAnchor]",
489
+ exportAs: ["wmAnchor"]
490
+ }
491
+ ],
492
+ changeDetection: i0__namespace.ChangeDetectionStrategy.Eager
493
+ });
494
+ }
495
+ };
496
+ i0__namespace.ɵɵngDeclareClassMetadata({
497
+ minVersion: "12.0.0",
498
+ version: "22.2.1",
499
+ ngImport: i0__namespace,
500
+ type: PopoverComponent,
501
+ decorators: [{
502
+ type: i0.Component,
503
+ args: [{
504
+ changeDetection: i0.ChangeDetectionStrategy.Eager,
505
+ standalone: true,
506
+ imports: [
507
+ i2.CommonModule,
508
+ i3.PopoverModule,
509
+ anchor.AnchorComponent
510
+ ],
511
+ selector: "wm-popover",
512
+ providers: [base.provideAsWidgetRef(PopoverComponent)],
513
+ template: "<a [popover]=\"popoverTemplate\"\n [popoverContext]=\"context\"\n [popoverTitle]=\"title\"\n [placement]=\"popoverplacement\"\n [outsideClick]=\"false\"\n [triggers]=\"event\"\n (onShown)=\"onShown()\"\n (onHidden)=\"onHidden()\"\n containerClass=\"app-popover animated {{contentanimation}} {{popoverContainerCls}}\"\n [container]=\"containerTarget || '.wm-app'\"\n [isOpen]=\"isOpen\"\n [tabindex]=\"tabindex\"\n [name]=\"name\"\n [class]=\"class\"\n [ngClass]=\"{'disable-popover': !canPopoverOpen}\"\n [adaptivePosition]=\"adaptiveposition\"\n boundariesElement=\"window\"\n [attr.aria-label]=\"arialabel || (badgevalue ? caption + ' ' + badgevalue : caption) || 'Popover menu'\"\n [attr.aria-expanded]=\"isOpen\"\n role=\"button\"\n #anchor\n name.bind=\"name\"\n wmAnchor\n animation.bind=\"animation\"\n badgevalue.bind=\"badgevalue\"\n caption.bind=\"caption\"\n encodeurl.bind=\"encodeurl\"\n hint.bind=\"hint\"\n hyperlink.bind=\"hyperlink\"\n iconurl.bind=\"iconurl\"\n iconwidth.bind=\"iconwidth\"\n iconheight.bind=\"iconheight\"\n iconmargin.bind=\"iconmargin\"\n iconclass.bind=\"iconclass\"\n iconposition.bind=\"iconposition\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n (keydown)=\"onPopoverAnchorKeydown($event)\">\n</a>\n"
514
+ }]
515
+ }],
516
+ ctorParameters: () => [
517
+ { type: i0__namespace.Injector },
518
+ { type: i1__namespace.App },
519
+ {
520
+ type: void 0,
521
+ decorators: [{
522
+ type: i0.Inject,
523
+ args: ["EXPLICIT_CONTEXT"]
524
+ }, { type: i0.Optional }]
525
+ },
526
+ { type: i0__namespace.ChangeDetectorRef },
527
+ { type: i0__namespace.NgZone }
528
+ ],
529
+ propDecorators: {
530
+ bsPopoverDirective: [{
531
+ type: i0.ViewChild,
532
+ args: [i3.PopoverDirective]
533
+ }],
534
+ anchorRef: [{
535
+ type: i0.ViewChild,
536
+ args: ["anchor", { static: true }]
537
+ }],
538
+ popoverTemplate: [{
539
+ type: i0.ContentChild,
540
+ args: [i0.TemplateRef]
541
+ }],
542
+ partialRef: [{
543
+ type: i0.ContentChild,
544
+ args: ["partial"]
545
+ }]
546
+ }
547
+ });
62
548
 
63
- const DEFAULT_CLS = 'app-popover-wrapper';
64
- const WIDGET_CONFIG = {
65
- widgetType: 'wm-popover',
66
- hostClass: DEFAULT_CLS
67
- };
68
- const eventsMap = {
69
- click: 'click',
70
- hover: 'mouseenter:click',
71
- default: 'click mouseenter'
72
- };
73
- let activePopover;
74
- class PopoverComponent extends base.StylableComponent {
75
- static { this.initializeProps = registerProps(); }
76
- static { this.activePopovers = []; }
77
- constructor(inj, app, explicitContext, cdr) {
78
- super(inj, WIDGET_CONFIG, explicitContext);
79
- this.app = app;
80
- this.cdr = cdr;
81
- this.isOpen = false;
82
- this.canPopoverOpen = true;
83
- this.isClosingProgrammatically = false;
84
- this.isHandlingClick = false;
85
- this.preventFocusShift = false;
86
- this.popoverContainerCls = `app-popover-${this.widgetId}`;
87
- this.isPrism = this.app.isPrism;
88
- }
89
- setupDocumentClickHandler() {
90
- if (this.documentClickHandler) {
91
- document.removeEventListener('click', this.documentClickHandler, true);
92
- }
93
- this.documentClickHandler = (event) => {
94
- if (!this.isOpen)
95
- return;
96
- const target = event.target;
97
- // Set flag to prevent open() from running during click handling
98
- this.isHandlingClick = true;
99
- try {
100
- // Check for special containers as before
101
- const isInsideSpecialContainer = !!(
102
- // ngx-bootstrap renders date/time pickers in custom elements like
103
- // <bs-datepicker-container> (not always with a CSS class), so check
104
- // both tag and class selectors.
105
- target.closest('bs-datepicker-container') ||
106
- target.closest('.bs-datepicker-container') ||
107
- target.closest('bs-daterangepicker-container') ||
108
- target.closest('.bs-daterangepicker-container') ||
109
- target.closest('bs-timepicker') ||
110
- target.closest('.bs-timepicker') ||
111
- target.closest(".dropdown-menu"));
112
- if (isInsideSpecialContainer) {
113
- return;
114
- }
115
- const clickedPopoverIndex = PopoverComponent.activePopovers.findIndex(popover => {
116
- const popoverContainer = document.querySelector(`.${popover.popoverContainerCls}`);
117
- return popoverContainer?.contains(target);
118
- });
119
- // For anchor clicks, just close and prevent further handling
120
- if (this.anchorRef?.nativeElement?.contains(target)) {
121
- event.preventDefault();
122
- event.stopPropagation();
123
- this.isOpen ? this.close() : this.open();
124
- return;
125
- }
126
- if (clickedPopoverIndex === -1) {
127
- if (this.outsideclick) {
128
- this.closeAllPopovers();
129
- }
130
- }
131
- else {
132
- this.closeInnerPopovers(clickedPopoverIndex);
133
- }
134
- }
135
- finally {
136
- // Always reset the flag when click handling is done
137
- setTimeout(() => {
138
- this.isHandlingClick = false;
139
- }, 0);
140
- }
141
- };
142
- document.addEventListener('click', this.documentClickHandler, true);
143
- }
144
- closeAllPopovers() {
145
- PopoverComponent.activePopovers.forEach(popover => {
146
- if (popover.outsideclick) {
147
- popover.isClosingProgrammatically = true;
148
- popover.close();
149
- }
150
- });
151
- }
152
- closeInnerPopovers(clickedIndex) {
153
- for (let i = clickedIndex + 1; i < PopoverComponent.activePopovers.length; i++) {
154
- const popover = PopoverComponent.activePopovers[i];
155
- if (popover.outsideclick) {
156
- popover.isClosingProgrammatically = true;
157
- popover.close();
158
- }
159
- }
160
- }
161
- isChildPopover() {
162
- return !!$(this.nativeElement).closest('.popover').length;
163
- }
164
- /**
165
- * Opens the popover, similar to the showPopover method.
166
- * @param preventFocusShift Optional parameter (default: false). When false, focus shifts to the popover upon opening. If set to true, focus remains on the triggering element.
167
- */
168
- open(preventFocusShift) {
169
- this.preventFocusShift = preventFocusShift ?? false;
170
- if (this.isHandlingClick)
171
- return;
172
- this.showPopover();
173
- if (!PopoverComponent.activePopovers.includes(this)) {
174
- PopoverComponent.activePopovers.push(this);
175
- }
176
- this.cdr.detectChanges();
177
- }
178
- // This mehtod is used to hide/close the popover.
179
- close() {
180
- if (this.isOpen) {
181
- this.isClosingProgrammatically = true;
182
- this.isOpen = false;
183
- if (this.bsPopoverDirective) {
184
- this.bsPopoverDirective.hide();
185
- }
186
- const index = PopoverComponent.activePopovers.indexOf(this);
187
- if (index > -1) {
188
- PopoverComponent.activePopovers.splice(index, 1);
189
- }
190
- this.cdr.detectChanges();
191
- }
192
- }
193
- // Trigger on hiding popover
194
- onHidden() {
195
- if (!this.isChildPopover() || this.isClosingProgrammatically) {
196
- this.invokeEventCallback('hide', { $event: { type: 'hide' } });
197
- this.isOpen = false;
198
- if (activePopover === this) {
199
- activePopover = null;
200
- }
201
- }
202
- this.isClosingProgrammatically = false;
203
- }
204
- setFocusToPopoverLink() {
205
- setTimeout(() => this.anchorRef.nativeElement.focus(), 10);
206
- }
207
- adjustPopoverArrowPosition(popoverElem, popoverLeftShift) {
208
- // Clean up any existing subscription before creating a new one
209
- if (this.arrowPositionSubscription) {
210
- this.arrowPositionSubscription.unsubscribe();
211
- this.arrowPositionSubscription = null;
212
- }
213
- this.arrowPositionSubscription = this.bsPopoverDirective._popover._ngZone.onStable.subscribe(() => {
214
- popoverElem.find('.popover-arrow').css('left', popoverLeftShift + 'px');
215
- });
216
- }
217
- calculatePopoverPostion(element) {
218
- const popoverElem = $(element);
219
- let popoverLeft = popoverElem.offset().left;
220
- const popoverWidth = popoverElem[0].offsetWidth;
221
- const viewPortWidth = $(window).width();
222
- const parentDimesion = this.anchorRef.nativeElement.getBoundingClientRect();
223
- // Adjusting popover position, if it is not visible at left side
224
- if (popoverLeft < 0) {
225
- i1.adjustContainerPosition(popoverElem, this.nativeElement, this.bsPopoverDirective._popover);
226
- const popoverLeftShift = 4;
227
- const arrowLeftShift = (parentDimesion.left + (parentDimesion.width / 2)) - popoverLeftShift;
228
- this.adjustPopoverArrowPosition(popoverElem, arrowLeftShift);
229
- }
230
- // Adjusting popover position, if it is not visible at right side
231
- if (popoverLeft + popoverWidth > viewPortWidth) {
232
- i1.adjustContainerRightEdges(popoverElem, this.nativeElement, this.bsPopoverDirective._popover);
233
- setTimeout(() => {
234
- popoverLeft = popoverElem.offset().left;
235
- const popoverLeftAdjust = (popoverLeft + popoverWidth) - viewPortWidth;
236
- const popoverLeftShift = popoverLeft - popoverLeftAdjust;
237
- let arrowLeftShift;
238
- if (popoverLeft <= 100) {
239
- arrowLeftShift = (parentDimesion.left + (parentDimesion.width / 2)) - popoverLeft;
240
- }
241
- else {
242
- arrowLeftShift = (parentDimesion.left + (parentDimesion.width / 2)) - popoverLeftShift;
243
- }
244
- if (viewPortWidth > 500) {
245
- arrowLeftShift += 30;
246
- }
247
- this.adjustPopoverArrowPosition(popoverElem, arrowLeftShift);
248
- });
249
- }
250
- }
251
- // Trigger on showing popover
252
- onShown() {
253
- const root = i1.findRootContainer(this.$element);
254
- // if page styles have to be applied to popover then popover has to be child of page element.
255
- if (root) {
256
- $('body > popover-container').wrap('<' + root + '/>');
257
- }
258
- // Fix for [WMS-25125]: Not closing the existing opened popovers when the autoclose property is DISABLED
259
- if (!this.isChildPopover()) {
260
- if (activePopover && activePopover !== this &&
261
- activePopover.autoclose !== base.AUTOCLOSE_TYPE.DISABLED) {
262
- activePopover.isClosingProgrammatically = true;
263
- activePopover.close();
264
- }
265
- activePopover = this;
266
- }
267
- this.isOpen = true;
268
- if (!PopoverComponent.activePopovers.includes(this)) {
269
- PopoverComponent.activePopovers.push(this);
270
- }
271
- const popoverContainer = document.querySelector(`.${this.popoverContainerCls}`);
272
- if (popoverContainer) {
273
- popoverContainer.setAttribute('data-popover-id', this.widgetId);
274
- // Add click event listener to stop propagation
275
- popoverContainer.addEventListener('click', (event) => {
276
- event.stopPropagation();
277
- });
278
- if (this.isPrism)
279
- this.applyVariantClass(popoverContainer);
280
- }
281
- i1.setCSSFromObj(popoverContainer, {
282
- height: this.popoverheight,
283
- minWidth: this.popoverwidth,
284
- width: this.popoverwidth
285
- });
286
- if (!this.popoverarrow) {
287
- i1.addClass(popoverContainer.querySelector('.arrow'), 'hidden');
288
- }
289
- if (this.interaction === 'hover' || this.interaction === 'default') {
290
- // do not use addEventListener here
291
- // attaching the event this way will override the existing event handlers
292
- popoverContainer.onmouseenter = () => clearTimeout(this.closePopoverTimeout);
293
- popoverContainer.onmouseleave = () => this.hidePopover();
294
- this.anchorRef.nativeElement.onmouseenter = () => clearTimeout(this.closePopoverTimeout);
295
- this.anchorRef.nativeElement.onmouseleave = () => this.hidePopover();
296
- }
297
- if (this.outsideclick) {
298
- this.setupDocumentClickHandler();
299
- }
300
- setTimeout(() => {
301
- if (this.anchorRef?.nativeElement) {
302
- this.anchorRef.nativeElement.removeAttribute('aria-describedby');
303
- }
304
- });
305
- const deRegister = this.eventManager.addEventListener(popoverContainer, 'keydown.esc', () => {
306
- this.isOpen = false;
307
- this.setFocusToPopoverLink();
308
- deRegister();
309
- });
310
- const popoverStartBtn = popoverContainer.querySelector('.popover-start');
311
- const popoverEndBtn = popoverContainer.querySelector('.popover-end');
312
- popoverStartBtn.onkeydown = (event) => {
313
- // Check for Shift+Tab key
314
- if (event.shiftKey && event.key === 'Tab') {
315
- this.bsPopoverDirective.hide();
316
- event.preventDefault();
317
- this.setFocusToPopoverLink();
318
- this.isOpen = false;
319
- }
320
- };
321
- popoverEndBtn.onkeydown = (event) => {
322
- // Check for Tab key
323
- if (!event.shiftKey && event.key === 'Tab') {
324
- this.bsPopoverDirective.hide();
325
- event.preventDefault();
326
- this.setFocusToPopoverLink();
327
- this.isOpen = false;
328
- }
329
- };
330
- //Whenever autoclose property is set to 'always', adding the onclick listener to the popover container to close the popover.
331
- if (this.autoclose === base.AUTOCLOSE_TYPE.ALWAYS) {
332
- popoverContainer.onclick = () => this.close();
333
- }
334
- // Fix for [WMS-27656]: Added 'preventFocusShift' parameter (default: false).
335
- // By default, focus moves to the popover when it appears.
336
- // If 'preventFocusShift' is set to true, focus remains on the triggering element.
337
- if (this.preventFocusShift) {
338
- const activeElement = document.activeElement; // Capture current focused element
339
- setTimeout(() => activeElement?.focus(), 0);
340
- }
341
- else {
342
- setTimeout(() => popoverStartBtn.focus(), 50);
343
- }
344
- // Adjusting popover position if the popover placement is top or bottom
345
- setTimeout(() => {
346
- if (!this.adaptiveposition) {
347
- this.calculatePopoverPostion(popoverContainer);
348
- }
349
- // triggering onload and onshow events after popover content has rendered
350
- this.triggerPopoverEvents();
351
- });
352
- }
353
- triggerPopoverEvents() {
354
- if (this.contentsource === 'partial') {
355
- this.partialLoadedSubscription = this.app.subscribe('partialLoaded', () => {
356
- // Always clean up subscription first
357
- if (this.partialLoadedSubscription) {
358
- this.partialLoadedSubscription();
359
- this.partialLoadedSubscription = null;
360
- }
361
- // Check if component is still alive and partialRef exists
362
- if (!this.partialRef?.nativeElement) {
363
- return;
364
- }
365
- const parEle = this.partialRef.nativeElement;
366
- let partialScope;
367
- if (parEle) {
368
- partialScope = parEle.widget;
369
- this.Widgets = partialScope.Widgets;
370
- this.Variables = partialScope.Variables;
371
- this.Actions = partialScope.Actions;
372
- this.invokeEventCallback('load');
373
- this.invokeEventCallback('show', { $event: { type: 'show' } });
374
- }
375
- });
376
- }
377
- else {
378
- this.Widgets = this.viewParent.Widgets;
379
- this.Variables = this.viewParent.Variables;
380
- this.Actions = this.viewParent.Actions;
381
- this.invokeEventCallback('show', { $event: { type: 'show' } });
382
- }
383
- }
384
- hidePopover() {
385
- this.isClosingProgrammatically = true;
386
- this.closePopoverTimeout = setTimeout(() => this.isOpen = false, 500);
387
- }
388
- showPopover() {
389
- this.bsPopoverDirective.show();
390
- }
391
- onPopoverAnchorKeydown($event) {
392
- // if there is no content available, the popover should not open through enter key. So checking whether the canPopoverOpen flag is true or not.
393
- if (!this.canPopoverOpen) {
394
- return;
395
- }
396
- if ($event.key === 'Enter') {
397
- $event.stopPropagation();
398
- $event.preventDefault();
399
- this.showPopover();
400
- }
401
- }
402
- onPropertyChange(key, nv, ov) {
403
- if (key === 'class' || key === 'tabindex') {
404
- return;
405
- }
406
- if (key === 'contentsource') {
407
- // if there is no partial content available, the popover should not open
408
- if (this.contentsource === 'partial' && !this.content) {
409
- this.canPopoverOpen = false;
410
- }
411
- }
412
- if (key === 'content' && nv) {
413
- this.canPopoverOpen = true;
414
- }
415
- if (key === 'autoclose') {
416
- this.outsideclick = (nv === base.AUTOCLOSE_TYPE.OUTSIDECLICK || nv === base.AUTOCLOSE_TYPE.ALWAYS) ? true : false;
417
- }
418
- super.onPropertyChange(key, nv, ov);
419
- }
420
- ngOnInit() {
421
- super.ngOnInit();
422
- this.event = eventsMap[this.interaction];
423
- }
424
- ngAfterViewInit() {
425
- super.ngAfterViewInit();
426
- base.styler(this.anchorRef.nativeElement, this);
427
- this.containerTarget = base.getContainerTargetClass(this.nativeElement);
428
- // let parentElemPopover = $(this.nativeElement).parents();
429
- // if (parentElemPopover.closest('[wmTable]').length ||
430
- // parentElemPopover.closest('[wmtabs]').length ||
431
- // parentElemPopover.closest('modal-container').length) {
432
- // this.adaptiveposition = false;
433
- // }
434
- }
435
- ngOnDetach() {
436
- // Hide the popover container while attaching the next component as part of page reuse strategy.
437
- this.bsPopoverDirective.hide();
438
- }
439
- ngOnDestroy() {
440
- // Unsubscribe from partialLoaded event
441
- if (this.partialLoadedSubscription) {
442
- this.partialLoadedSubscription();
443
- this.partialLoadedSubscription = null;
444
- }
445
- // Unsubscribe from arrow position adjustment
446
- if (this.arrowPositionSubscription) {
447
- this.arrowPositionSubscription.unsubscribe();
448
- this.arrowPositionSubscription = null;
449
- }
450
- // Close popover if open
451
- if (this.isOpen && this.bsPopoverDirective) {
452
- this.bsPopoverDirective.hide();
453
- }
454
- // Clear timeout
455
- if (this.closePopoverTimeout) {
456
- clearTimeout(this.closePopoverTimeout);
457
- this.closePopoverTimeout = null;
458
- }
459
- // Remove document click handler
460
- if (this.documentClickHandler) {
461
- document.removeEventListener('click', this.documentClickHandler, true);
462
- this.documentClickHandler = null;
463
- }
464
- // Remove from active popovers array
465
- const index = PopoverComponent.activePopovers.indexOf(this);
466
- if (index > -1) {
467
- PopoverComponent.activePopovers.splice(index, 1);
468
- }
469
- // Clear timeout to prevent memory leak
470
- if (this.closePopoverTimeout) {
471
- clearTimeout(this.closePopoverTimeout);
472
- }
473
- // Clear anchor event handlers
474
- if (this.anchorRef?.nativeElement) {
475
- this.anchorRef.nativeElement.onmouseenter = null;
476
- this.anchorRef.nativeElement.onmouseleave = null;
477
- }
478
- // MEMORY LEAK FIX: Clear all ViewChild and ContentChild references
479
- // These retain the entire component tree including parent contexts (colDef, etc.)
480
- this.bsPopoverDirective = null;
481
- this.anchorRef = null;
482
- this.popoverTemplate = null;
483
- this.partialRef = null;
484
- // Call parent cleanup
485
- super.ngOnDestroy();
486
- }
487
- // Applying all variant classes that start with "popover-" from the popover.
488
- // Ensures the popover container also receives the variant styling.
489
- applyVariantClass(popoverContainer) {
490
- if (!popoverContainer)
491
- return;
492
- const classes = (this.class || '').split(/\s+/);
493
- const popoverVariants = classes.filter(c => c.startsWith('popover-'));
494
- popoverVariants.forEach(v => popoverContainer.classList.add(v));
495
- }
496
- static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: PopoverComponent, deps: [{ token: i0__namespace.Injector }, { token: i1__namespace.App }, { token: 'EXPLICIT_CONTEXT', optional: true }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component }); }
497
- static { this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.21", type: PopoverComponent, isStandalone: true, selector: "wm-popover", providers: [
498
- base.provideAsWidgetRef(PopoverComponent)
499
- ], queries: [{ propertyName: "popoverTemplate", first: true, predicate: i0.TemplateRef, descendants: true }, { propertyName: "partialRef", first: true, predicate: ["partial"], descendants: true }], viewQueries: [{ propertyName: "bsPopoverDirective", first: true, predicate: i3.PopoverDirective, descendants: true }, { propertyName: "anchorRef", first: true, predicate: ["anchor"], descendants: true, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<a [popover]=\"popoverTemplate\"\n [popoverContext]=\"context\"\n [popoverTitle]=\"title\"\n [placement]=\"popoverplacement\"\n [outsideClick]=\"false\"\n [triggers]=\"event\"\n (onShown)=\"onShown()\"\n (onHidden)=\"onHidden()\"\n containerClass=\"app-popover animated {{contentanimation}} {{popoverContainerCls}}\"\n [container]=\"containerTarget || '.wm-app'\"\n [isOpen]=\"isOpen\"\n [tabindex]=\"tabindex\"\n [name]=\"name\"\n [class]=\"class\"\n [ngClass]=\"{'disable-popover': !canPopoverOpen}\"\n [adaptivePosition]=\"adaptiveposition\"\n boundariesElement=\"window\"\n [attr.aria-label]=\"arialabel || (badgevalue ? caption + ' ' + badgevalue : caption) || 'Popover menu'\"\n [attr.aria-expanded]=\"isOpen\"\n role=\"button\"\n #anchor\n name.bind=\"name\"\n wmAnchor\n animation.bind=\"animation\"\n badgevalue.bind=\"badgevalue\"\n caption.bind=\"caption\"\n encodeurl.bind=\"encodeurl\"\n hint.bind=\"hint\"\n hyperlink.bind=\"hyperlink\"\n iconurl.bind=\"iconurl\"\n iconwidth.bind=\"iconwidth\"\n iconheight.bind=\"iconheight\"\n iconmargin.bind=\"iconmargin\"\n iconclass.bind=\"iconclass\"\n iconposition.bind=\"iconposition\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n (keydown)=\"onPopoverAnchorKeydown($event)\">\n</a>\n", dependencies: [{ kind: "ngmodule", type: i2.CommonModule }, { kind: "directive", type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: i3.PopoverModule }, { kind: "directive", type: i3__namespace.PopoverDirective, selector: "[popover]", inputs: ["adaptivePosition", "boundariesElement", "popover", "popoverContext", "popoverTitle", "placement", "outsideClick", "triggers", "container", "containerClass", "isOpen", "delay"], outputs: ["isOpenChange", "onShown", "onHidden"], exportAs: ["bs-popover"] }, { kind: "component", type: anchor.AnchorComponent, selector: "a[wmAnchor]", exportAs: ["wmAnchor"] }] }); }
500
- }
501
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: PopoverComponent, decorators: [{
502
- type: i0.Component,
503
- args: [{ standalone: true, imports: [i2.CommonModule, i3.PopoverModule, anchor.AnchorComponent], selector: 'wm-popover', providers: [
504
- base.provideAsWidgetRef(PopoverComponent)
505
- ], template: "<a [popover]=\"popoverTemplate\"\n [popoverContext]=\"context\"\n [popoverTitle]=\"title\"\n [placement]=\"popoverplacement\"\n [outsideClick]=\"false\"\n [triggers]=\"event\"\n (onShown)=\"onShown()\"\n (onHidden)=\"onHidden()\"\n containerClass=\"app-popover animated {{contentanimation}} {{popoverContainerCls}}\"\n [container]=\"containerTarget || '.wm-app'\"\n [isOpen]=\"isOpen\"\n [tabindex]=\"tabindex\"\n [name]=\"name\"\n [class]=\"class\"\n [ngClass]=\"{'disable-popover': !canPopoverOpen}\"\n [adaptivePosition]=\"adaptiveposition\"\n boundariesElement=\"window\"\n [attr.aria-label]=\"arialabel || (badgevalue ? caption + ' ' + badgevalue : caption) || 'Popover menu'\"\n [attr.aria-expanded]=\"isOpen\"\n role=\"button\"\n #anchor\n name.bind=\"name\"\n wmAnchor\n animation.bind=\"animation\"\n badgevalue.bind=\"badgevalue\"\n caption.bind=\"caption\"\n encodeurl.bind=\"encodeurl\"\n hint.bind=\"hint\"\n hyperlink.bind=\"hyperlink\"\n iconurl.bind=\"iconurl\"\n iconwidth.bind=\"iconwidth\"\n iconheight.bind=\"iconheight\"\n iconmargin.bind=\"iconmargin\"\n iconclass.bind=\"iconclass\"\n iconposition.bind=\"iconposition\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n (keydown)=\"onPopoverAnchorKeydown($event)\">\n</a>\n" }]
506
- }], ctorParameters: () => [{ type: i0__namespace.Injector }, { type: i1__namespace.App }, { type: undefined, decorators: [{
507
- type: i0.Inject,
508
- args: ['EXPLICIT_CONTEXT']
509
- }, {
510
- type: i0.Optional
511
- }] }, { type: i0__namespace.ChangeDetectorRef }], propDecorators: { bsPopoverDirective: [{
512
- type: i0.ViewChild,
513
- args: [i3.PopoverDirective]
514
- }], anchorRef: [{
515
- type: i0.ViewChild,
516
- args: ['anchor', { static: true }]
517
- }], popoverTemplate: [{
518
- type: i0.ContentChild,
519
- args: [i0.TemplateRef]
520
- }], partialRef: [{
521
- type: i0.ContentChild,
522
- args: ['partial']
523
- }] } });
524
-
525
- exports.PopoverComponent = PopoverComponent;
549
+ exports.PopoverComponent = PopoverComponent;
526
550
 
527
551
  }));