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

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