@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,957 +1,1468 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@wm/components/input/button'), require('@angular/core'), require('@wm/core'), require('@wm/components/base'), require('@wm/components/basic/anchor'), require('@angular/router'), require('lodash-es'), require('ngx-bootstrap/dropdown')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@angular/common', '@wm/components/input/button', '@angular/core', '@wm/core', '@wm/components/base', '@wm/components/basic/anchor', '@angular/router', 'lodash-es', 'ngx-bootstrap/dropdown'], 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.menu = {}), global.ng.common, global.wm.components.input.button, global.ng.core, global.wm.core, global.wm.components.base, global.wm.components.basic.anchor, global.ng.router, global._, global.ngxBootstrap.dropdown));
5
- })(this, (function (exports, i3, button, i0, i2, base, anchor, i1, lodashEs, i3$1) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@wm/components/input/button'), require('@angular/core'), require('@wm/core'), require('@wm/components/base'), require('@wm/components/basic/anchor'), require('@angular/router'), require('lodash-es'), require('ngx-bootstrap/dropdown')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@angular/common', '@wm/components/input/button', '@angular/core', '@wm/core', '@wm/components/base', '@wm/components/basic/anchor', '@angular/router', 'lodash-es', 'ngx-bootstrap/dropdown'], 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.menu = {}), global.ng.common, global.wm.components.input.button, global.ng.core, global.wm.core, global.wm.components.base, global.wm.components.basic.anchor, global.ng.router, global._, global.ngxBootstrap.dropdown));
5
+ })(this, (function (exports, i3, button, i0, i2, base, anchor, i1, lodashEs, i4) { '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 i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
25
- var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
26
- var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
27
- var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
28
- var i3$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i3$1);
24
+ var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
25
+ var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
26
+ var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
27
+ var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
28
+ var i4__namespace = /*#__PURE__*/_interopNamespaceDefault(i4);
29
29
 
30
- const disableContextMenu = ($event) => {
31
- $event.preventDefault();
32
- };
33
- class NavigationControlDirective {
34
- set wmNavigationControl(val) {
35
- this._link = val;
36
- // MEMORY LEAK FIX: Remove existing listener before adding new one
37
- if (this.boundContextMenuHandler) {
38
- this.nativeElement.removeEventListener('contextmenu', this.boundContextMenuHandler);
39
- this.boundContextMenuHandler = null;
40
- }
41
- if (val && !this.disableMenuContext) {
42
- i2.setAttr(this.nativeElement, 'href', val);
43
- }
44
- else {
45
- i2.setAttr(this.nativeElement, 'href', 'javascript:void(0)');
46
- // MEMORY LEAK FIX: Store bound function reference for cleanup
47
- this.boundContextMenuHandler = disableContextMenu;
48
- this.nativeElement.addEventListener('contextmenu', this.boundContextMenuHandler);
49
- }
50
- }
51
- constructor(eleRef) {
52
- this.nativeElement = eleRef.nativeElement;
53
- }
54
- ngOnDestroy() {
55
- // MEMORY LEAK FIX: Remove event listener using stored bound function reference
56
- if (this.boundContextMenuHandler) {
57
- this.nativeElement.removeEventListener('contextmenu', this.boundContextMenuHandler);
58
- this.boundContextMenuHandler = null;
59
- }
60
- }
61
- static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: NavigationControlDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
62
- static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: NavigationControlDirective, isStandalone: true, selector: "[wmNavigationControl]", inputs: { disableMenuContext: "disableMenuContext", wmNavigationControl: "wmNavigationControl" }, ngImport: i0__namespace }); }
63
- }
64
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: NavigationControlDirective, decorators: [{
65
- type: i0.Directive,
66
- args: [{
67
- standalone: true,
68
- selector: '[wmNavigationControl]'
69
- }]
70
- }], ctorParameters: () => [{ type: i0__namespace.ElementRef }], propDecorators: { disableMenuContext: [{
71
- type: i0.Input
72
- }], wmNavigationControl: [{
73
- type: i0.Input
74
- }] } });
30
+ const disableContextMenu = ($event) => {
31
+ $event.preventDefault();
32
+ };
33
+ var NavigationControlDirective = class NavigationControlDirective {
34
+ set wmNavigationControl(val) {
35
+ this._link = val;
36
+ if (this.boundContextMenuHandler) {
37
+ this.nativeElement.removeEventListener("contextmenu", this.boundContextMenuHandler);
38
+ this.boundContextMenuHandler = null;
39
+ }
40
+ if (val && !this.disableMenuContext) i2.setAttr(this.nativeElement, "href", val);
41
+ else {
42
+ i2.setAttr(this.nativeElement, "href", "javascript:void(0)");
43
+ this.boundContextMenuHandler = disableContextMenu;
44
+ this.nativeElement.addEventListener("contextmenu", this.boundContextMenuHandler);
45
+ }
46
+ }
47
+ constructor(eleRef) {
48
+ this.nativeElement = eleRef.nativeElement;
49
+ }
50
+ ngOnDestroy() {
51
+ if (this.boundContextMenuHandler) {
52
+ this.nativeElement.removeEventListener("contextmenu", this.boundContextMenuHandler);
53
+ this.boundContextMenuHandler = null;
54
+ }
55
+ }
56
+ static {
57
+ this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
58
+ minVersion: "12.0.0",
59
+ version: "22.2.1",
60
+ ngImport: i0__namespace,
61
+ type: NavigationControlDirective,
62
+ deps: [{ token: i0__namespace.ElementRef }],
63
+ target: i0__namespace.ɵɵFactoryTarget.Directive
64
+ });
65
+ }
66
+ static {
67
+ this.ɵdir = i0__namespace.ɵɵngDeclareDirective({
68
+ minVersion: "14.0.0",
69
+ version: "22.2.1",
70
+ type: NavigationControlDirective,
71
+ isStandalone: true,
72
+ selector: "[wmNavigationControl]",
73
+ inputs: {
74
+ disableMenuContext: "disableMenuContext",
75
+ wmNavigationControl: "wmNavigationControl"
76
+ },
77
+ ngImport: i0__namespace
78
+ });
79
+ }
80
+ };
81
+ i0__namespace.ɵɵngDeclareClassMetadata({
82
+ minVersion: "12.0.0",
83
+ version: "22.2.1",
84
+ ngImport: i0__namespace,
85
+ type: NavigationControlDirective,
86
+ decorators: [{
87
+ type: i0.Directive,
88
+ args: [{
89
+ standalone: true,
90
+ selector: "[wmNavigationControl]"
91
+ }]
92
+ }],
93
+ ctorParameters: () => [{ type: i0__namespace.ElementRef }],
94
+ propDecorators: {
95
+ disableMenuContext: [{ type: i0.Input }],
96
+ wmNavigationControl: [{ type: i0.Input }]
97
+ }
98
+ });
99
+ const registerProps$2 = () => {
100
+ base.register("wm-nav-item", /* @__PURE__ */ new Map([
101
+ ["class", base.PROP_STRING],
102
+ ["name", base.PROP_STRING],
103
+ ["show", {
104
+ value: true,
105
+ ...base.PROP_BOOLEAN
106
+ }]
107
+ ]));
108
+ };
109
+ const WIDGET_CONFIG$2 = {
110
+ widgetType: "wm-nav-item",
111
+ hostClass: "app-nav-item"
112
+ };
113
+ var NavItemDirective = class NavItemDirective extends base.StylableComponent {
114
+ static {
115
+ this.initializeProps = registerProps$2();
116
+ }
117
+ makeActive() {
118
+ const parentNode = this.nativeElement.parentNode;
119
+ $(parentNode).find("> li.active").removeClass("active");
120
+ if (this.isAttached) i2.addClass(this.nativeElement, "active");
121
+ }
122
+ constructor(inj, explicitContext) {
123
+ super(inj, WIDGET_CONFIG$2, explicitContext);
124
+ base.styler(this.nativeElement, this, base.APPLY_STYLES_TYPE.CONTAINER);
125
+ }
126
+ ngAfterViewInit() {
127
+ if (this.innerLink) this.innerLink.onActive(() => this.makeActive());
128
+ }
129
+ ngOnDetach() {
130
+ i2.removeClass(this.nativeElement, "active", true);
131
+ super.ngOnDetach();
132
+ }
133
+ ngOnDestroy() {
134
+ this.innerLink = null;
135
+ super.ngOnDestroy();
136
+ }
137
+ static {
138
+ this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
139
+ minVersion: "12.0.0",
140
+ version: "22.2.1",
141
+ ngImport: i0__namespace,
142
+ type: NavItemDirective,
143
+ deps: [{ token: i0__namespace.Injector }, {
144
+ token: "EXPLICIT_CONTEXT",
145
+ optional: true
146
+ }],
147
+ target: i0__namespace.ɵɵFactoryTarget.Directive
148
+ });
149
+ }
150
+ static {
151
+ this.ɵdir = i0__namespace.ɵɵngDeclareDirective({
152
+ minVersion: "14.0.0",
153
+ version: "22.2.1",
154
+ type: NavItemDirective,
155
+ isStandalone: true,
156
+ selector: "[wmNavItem]",
157
+ host: { listeners: {
158
+ "click": "makeActive()",
159
+ "keydown.enter": "makeActive()"
160
+ } },
161
+ providers: [base.provideAsWidgetRef(NavItemDirective)],
162
+ queries: [{
163
+ propertyName: "innerLink",
164
+ first: true,
165
+ predicate: anchor.AnchorComponent,
166
+ descendants: true
167
+ }],
168
+ exportAs: ["navItemRef"],
169
+ usesInheritance: true,
170
+ ngImport: i0__namespace
171
+ });
172
+ }
173
+ };
174
+ i0__namespace.ɵɵngDeclareClassMetadata({
175
+ minVersion: "12.0.0",
176
+ version: "22.2.1",
177
+ ngImport: i0__namespace,
178
+ type: NavItemDirective,
179
+ decorators: [{
180
+ type: i0.Directive,
181
+ args: [{
182
+ standalone: true,
183
+ selector: "[wmNavItem]",
184
+ exportAs: "navItemRef",
185
+ providers: [base.provideAsWidgetRef(NavItemDirective)]
186
+ }]
187
+ }],
188
+ ctorParameters: () => [{ type: i0__namespace.Injector }, {
189
+ type: void 0,
190
+ decorators: [{
191
+ type: i0.Inject,
192
+ args: ["EXPLICIT_CONTEXT"]
193
+ }, { type: i0.Optional }]
194
+ }],
195
+ propDecorators: {
196
+ innerLink: [{
197
+ type: i0.ContentChild,
198
+ args: [anchor.AnchorComponent]
199
+ }],
200
+ makeActive: [{
201
+ type: i0.HostListener,
202
+ args: ["click"]
203
+ }, {
204
+ type: i0.HostListener,
205
+ args: ["keydown.enter"]
206
+ }]
207
+ }
208
+ });
209
+ const registerProps$1 = () => {
210
+ base.register("wm-nav", /* @__PURE__ */ new Map([
211
+ ["autoclose", {
212
+ value: "always",
213
+ ...base.PROP_STRING
214
+ }],
215
+ ["autoopen", {
216
+ value: "never",
217
+ ...base.PROP_STRING
218
+ }],
219
+ ["class", base.PROP_STRING],
220
+ ["dataset", base.PROP_ANY],
221
+ ["iconposition", {
222
+ value: "left",
223
+ ...base.PROP_STRING
224
+ }],
225
+ ["isactive", base.PROP_STRING],
226
+ ["itemlabel", base.PROP_STRING],
227
+ ["itemhint", base.PROP_STRING],
228
+ ["itemlink", base.PROP_STRING],
229
+ ["itemicon", base.PROP_STRING],
230
+ ["itemclass", base.PROP_STRING],
231
+ ["itemchildren", base.PROP_STRING],
232
+ ["itemaction", base.PROP_STRING],
233
+ ["itembadge", base.PROP_STRING],
234
+ ["itemtarget", base.PROP_STRING],
235
+ ["layout", base.PROP_STRING],
236
+ ["name", base.PROP_STRING],
237
+ ["orderby", base.PROP_STRING],
238
+ ["show", {
239
+ value: true,
240
+ ...base.PROP_BOOLEAN
241
+ }],
242
+ ["showonhover", {
243
+ value: false,
244
+ ...base.PROP_BOOLEAN
245
+ }],
246
+ ["type", base.PROP_STRING],
247
+ ["userrole", base.PROP_STRING]
248
+ ]));
249
+ };
250
+ const WIDGET_CONFIG$1 = {
251
+ widgetType: "wm-nav",
252
+ hostClass: "nav app-nav"
253
+ };
254
+ const NavClassMap = {
255
+ pills: "nav-pills",
256
+ tabs: "nav-tabs",
257
+ navbar: "navbar-nav"
258
+ };
259
+ var NavComponent = class NavComponent extends base.DatasetAwareNavComponent {
260
+ static {
261
+ this.initializeProps = registerProps$1();
262
+ }
263
+ get activePageName() {
264
+ return this.app.activePageName;
265
+ }
266
+ constructor(inj, cdRef, route, userDefinedExecutionContext, app, selectEventCB, explicitContext) {
267
+ super(inj, WIDGET_CONFIG$1, explicitContext);
268
+ this.cdRef = cdRef;
269
+ this.route = route;
270
+ this.userDefinedExecutionContext = userDefinedExecutionContext;
271
+ this.app = app;
272
+ base.styler(this.nativeElement, this, base.APPLY_STYLES_TYPE.CONTAINER);
273
+ this.disableMenuContext = !!selectEventCB;
274
+ this.pageScope = this.viewParent;
275
+ const datasetSubscription = this.nodes$.subscribe(() => {
276
+ if (!lodashEs.isEmpty(this.nodes)) {
277
+ let itemFound = false;
278
+ const getItem = (nodes, isMenuWidget) => {
279
+ lodashEs.forEach(nodes, (item) => {
280
+ if (itemFound) return;
281
+ if (item.isactive) {
282
+ itemFound = true;
283
+ this.selecteditem = isMenuWidget ? lodashEs.omit(item, ["children", "value"]) : item.value;
284
+ this.invokeEventCallback("select", {
285
+ $event: {},
286
+ $item: item.value
287
+ });
288
+ i2.triggerItemAction(this, item);
289
+ if (!isMenuWidget) item._selected = true;
290
+ return false;
291
+ }
292
+ if (!lodashEs.isEmpty(item.children)) getItem(item.children, "menu");
293
+ });
294
+ };
295
+ getItem(this.nodes);
296
+ }
297
+ });
298
+ this.registerDestroyListener(() => datasetSubscription.unsubscribe());
299
+ }
300
+ setNavType(type) {
301
+ i2.addClass(this.nativeElement, NavClassMap[type]);
302
+ }
303
+ setNavLayout(layout) {
304
+ i2.addClass(this.nativeElement, `nav-${layout}`);
305
+ }
306
+ onNavSelect($event, item) {
307
+ $event.preventDefault();
308
+ const selectedItem = lodashEs.find(this.nodes, "_selected");
309
+ if (selectedItem) delete selectedItem._selected;
310
+ this.selecteditem = item.value;
311
+ this.invokeEventCallback("select", {
312
+ $event,
313
+ $item: item.value
314
+ });
315
+ i2.triggerItemAction(this, item);
316
+ }
317
+ ngOnInit() {
318
+ super.ngOnInit();
319
+ this.setNavType(this.type);
320
+ this.setNavLayout(this.layout);
321
+ }
322
+ onMenuItemSelect($event, widget, $item) {
323
+ this.selecteditem = lodashEs.omit($item, ["children", "value"]);
324
+ this.invokeEventCallback("select", {
325
+ $event,
326
+ $item: this.selecteditem
327
+ });
328
+ }
329
+ ngOnDestroy() {
330
+ this.selecteditem = null;
331
+ this.pageScope = null;
332
+ this.itemActionFn = null;
333
+ super.ngOnDestroy();
334
+ }
335
+ static {
336
+ this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
337
+ minVersion: "12.0.0",
338
+ version: "22.2.1",
339
+ ngImport: i0__namespace,
340
+ type: NavComponent,
341
+ deps: [
342
+ { token: i0__namespace.Injector },
343
+ { token: i0__namespace.ChangeDetectorRef },
344
+ { token: i1__namespace.Router },
345
+ { token: i2__namespace.UserDefinedExecutionContext },
346
+ { token: i2__namespace.App },
347
+ {
348
+ token: "select.event",
349
+ attribute: true
350
+ },
351
+ {
352
+ token: "EXPLICIT_CONTEXT",
353
+ optional: true
354
+ }
355
+ ],
356
+ target: i0__namespace.ɵɵFactoryTarget.Component
357
+ });
358
+ }
359
+ static {
360
+ this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({
361
+ minVersion: "17.0.0",
362
+ version: "22.2.1",
363
+ type: NavComponent,
364
+ isStandalone: true,
365
+ selector: "[wmNav]",
366
+ providers: [base.provideAsWidgetRef(NavComponent)],
367
+ usesInheritance: true,
368
+ ngImport: i0__namespace,
369
+ template: "<ng-template #menuRef let-item=\"item\" let-index=\"index\">\n <div wmMenu dropdown\n type=\"anchor\"\n autoclose.bind=\"autoclose\"\n iconclass.bind=\"item.icon\"\n autoopen.bind=\"autoopen\"\n caption.bind=\"item.label\"\n hint.bind=\"item.hint\"\n dataset.bind=\"item.children\"\n badgevalue.bind=\"item.badge\"\n iconposition.bind=\"iconposition\"\n showonhover.bind=\"showonhover\"\n select.event=\"onMenuItemSelect($event, widget, $item)\"></div>\n</ng-template>\n\n<ng-template #anchorRef let-item=\"item\" let-index=\"index\" let-liRef=\"liRef\">\n <a wmAnchor\n [disableMenuContext]=\"disableMenuContext || !!item.action\"\n [wmNavigationControl]=\"item.link\"\n [attr.aria-current]=\"item._selected || (!isactive && item.link === '#/' + activePageName) ? 'page' : ''\"\n caption.bind=\"item.label\"\n hint.bind=\"item.hint\"\n iconclass.bind=\"item.icon\"\n badgevalue.bind=\"item.badge\"\n iconposition.bind=\"iconposition\"\n click.event=\"onNavSelect($event, item)\"></a>\n</ng-template>\n\n@for (item of nodes; track item; let index = $index) {\n <li #liRef=\"navItemRef\"\n [ngClass]=\"{active: item._selected || (!isactive && item.link === '#/' + activePageName)}\"\n class=\"app-nav-item {{item.class}}\"\n wmNavItem>\n @if (!item.children.length) {\n <ng-container [ngTemplateOutlet]=\"anchorRef\"\n [ngTemplateOutletContext]=\"{item: item, index:index, liRef: liRef}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('anchor_' + liRef.trackId, {item: item, index:index, liRef: liRef})\"\n ></ng-container>\n }\n @if (item.children.length) {\n <ng-container [ngTemplateOutlet]=\"menuRef\"\n [ngTemplateOutletContext]=\"{item: item, index:index}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('menu_' + liRef.trackId, {item: item, index:index})\"\n ></ng-container>\n }\n </li>\n}\n\n@if (!nodes.length) {\n <ng-content select=\"[wmNavItem]\"></ng-content>\n}\n",
370
+ dependencies: [
371
+ {
372
+ kind: "ngmodule",
373
+ type: i0__namespace.forwardRef(() => i3.CommonModule)
374
+ },
375
+ {
376
+ kind: "directive",
377
+ type: i0__namespace.forwardRef(() => i3__namespace.NgClass),
378
+ selector: "[ngClass]",
379
+ inputs: ["class", "ngClass"]
380
+ },
381
+ {
382
+ kind: "directive",
383
+ type: i0__namespace.forwardRef(() => i3__namespace.NgTemplateOutlet),
384
+ selector: "[ngTemplateOutlet]",
385
+ inputs: [
386
+ "ngTemplateOutletContext",
387
+ "ngTemplateOutlet",
388
+ "ngTemplateOutletInjector"
389
+ ]
390
+ },
391
+ {
392
+ kind: "ngmodule",
393
+ type: i0__namespace.forwardRef(() => i4.BsDropdownModule)
394
+ },
395
+ {
396
+ kind: "directive",
397
+ type: i0__namespace.forwardRef(() => i4__namespace.BsDropdownDirective),
398
+ selector: "[bsDropdown], [dropdown]",
399
+ inputs: [
400
+ "placement",
401
+ "triggers",
402
+ "container",
403
+ "dropup",
404
+ "autoClose",
405
+ "isAnimated",
406
+ "insideClick",
407
+ "isDisabled",
408
+ "isOpen"
409
+ ],
410
+ outputs: [
411
+ "isOpenChange",
412
+ "onShown",
413
+ "onHidden"
414
+ ],
415
+ exportAs: ["bs-dropdown"]
416
+ },
417
+ {
418
+ kind: "component",
419
+ type: i0__namespace.forwardRef(() => anchor.AnchorComponent),
420
+ selector: "a[wmAnchor]",
421
+ exportAs: ["wmAnchor"]
422
+ },
423
+ {
424
+ kind: "component",
425
+ type: i0__namespace.forwardRef(() => MenuComponent),
426
+ selector: "[wmMenu]"
427
+ },
428
+ {
429
+ kind: "directive",
430
+ type: i0__namespace.forwardRef(() => NavItemDirective),
431
+ selector: "[wmNavItem]",
432
+ exportAs: ["navItemRef"]
433
+ }
434
+ ],
435
+ changeDetection: i0__namespace.ChangeDetectionStrategy.Eager
436
+ });
437
+ }
438
+ };
439
+ i0__namespace.ɵɵngDeclareClassMetadata({
440
+ minVersion: "12.0.0",
441
+ version: "22.2.1",
442
+ ngImport: i0__namespace,
443
+ type: NavComponent,
444
+ decorators: [{
445
+ type: i0.Component,
446
+ args: [{
447
+ changeDetection: i0.ChangeDetectionStrategy.Eager,
448
+ standalone: true,
449
+ imports: [
450
+ i3.CommonModule,
451
+ i4.BsDropdownModule,
452
+ anchor.AnchorComponent,
453
+ i0.forwardRef(() => MenuComponent),
454
+ NavItemDirective
455
+ ],
456
+ selector: "[wmNav]",
457
+ providers: [base.provideAsWidgetRef(NavComponent)],
458
+ template: "<ng-template #menuRef let-item=\"item\" let-index=\"index\">\n <div wmMenu dropdown\n type=\"anchor\"\n autoclose.bind=\"autoclose\"\n iconclass.bind=\"item.icon\"\n autoopen.bind=\"autoopen\"\n caption.bind=\"item.label\"\n hint.bind=\"item.hint\"\n dataset.bind=\"item.children\"\n badgevalue.bind=\"item.badge\"\n iconposition.bind=\"iconposition\"\n showonhover.bind=\"showonhover\"\n select.event=\"onMenuItemSelect($event, widget, $item)\"></div>\n</ng-template>\n\n<ng-template #anchorRef let-item=\"item\" let-index=\"index\" let-liRef=\"liRef\">\n <a wmAnchor\n [disableMenuContext]=\"disableMenuContext || !!item.action\"\n [wmNavigationControl]=\"item.link\"\n [attr.aria-current]=\"item._selected || (!isactive && item.link === '#/' + activePageName) ? 'page' : ''\"\n caption.bind=\"item.label\"\n hint.bind=\"item.hint\"\n iconclass.bind=\"item.icon\"\n badgevalue.bind=\"item.badge\"\n iconposition.bind=\"iconposition\"\n click.event=\"onNavSelect($event, item)\"></a>\n</ng-template>\n\n@for (item of nodes; track item; let index = $index) {\n <li #liRef=\"navItemRef\"\n [ngClass]=\"{active: item._selected || (!isactive && item.link === '#/' + activePageName)}\"\n class=\"app-nav-item {{item.class}}\"\n wmNavItem>\n @if (!item.children.length) {\n <ng-container [ngTemplateOutlet]=\"anchorRef\"\n [ngTemplateOutletContext]=\"{item: item, index:index, liRef: liRef}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('anchor_' + liRef.trackId, {item: item, index:index, liRef: liRef})\"\n ></ng-container>\n }\n @if (item.children.length) {\n <ng-container [ngTemplateOutlet]=\"menuRef\"\n [ngTemplateOutletContext]=\"{item: item, index:index}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('menu_' + liRef.trackId, {item: item, index:index})\"\n ></ng-container>\n }\n </li>\n}\n\n@if (!nodes.length) {\n <ng-content select=\"[wmNavItem]\"></ng-content>\n}\n"
459
+ }]
460
+ }],
461
+ ctorParameters: () => [
462
+ { type: i0__namespace.Injector },
463
+ { type: i0__namespace.ChangeDetectorRef },
464
+ { type: i1__namespace.Router },
465
+ { type: i2__namespace.UserDefinedExecutionContext },
466
+ { type: i2__namespace.App },
467
+ {
468
+ type: void 0,
469
+ decorators: [{
470
+ type: i0.Attribute,
471
+ args: ["select.event"]
472
+ }]
473
+ },
474
+ {
475
+ type: void 0,
476
+ decorators: [{
477
+ type: i0.Inject,
478
+ args: ["EXPLICIT_CONTEXT"]
479
+ }, { type: i0.Optional }]
480
+ }
481
+ ]
482
+ });
483
+ const menuAlignClass = {
484
+ "pull-right": "fa-caret-left",
485
+ "dropinline-menu": "fa-caret-down",
486
+ "pull-left": "fa-caret-right"
487
+ };
488
+ const MENU_LAYOUT_TYPE = {
489
+ HORIZONTAL: "horizontal"};
490
+ var MenuDropdownItemComponent = class MenuDropdownItemComponent {
491
+ constructor(app, userDefinedExecutionContext, parentNav, elRef) {
492
+ this.app = app;
493
+ this.userDefinedExecutionContext = userDefinedExecutionContext;
494
+ this.parentNav = parentNav;
495
+ this.menuRef = i0.inject(MenuComponent);
496
+ this.onSelect = ($event, item) => {
497
+ if (this.nativeElement !== $($event.target).closest(".app-menu-item").get(0)) return;
498
+ if (this.menuRef.autoclose === "outsideClick") $event.stopPropagation();
499
+ $event.preventDefault();
500
+ const args = {
501
+ $event,
502
+ $item: item
503
+ };
504
+ this.menuRef.onMenuItemSelect(args);
505
+ const selectedItem = lodashEs.clone(item);
506
+ selectedItem.target = selectedItem.target || this.menuRef.linktarget;
507
+ i2.triggerItemAction(this, selectedItem);
508
+ };
509
+ this.nativeElement = elRef.nativeElement;
510
+ i2.addClass(this.nativeElement, "app-menu-item");
511
+ this.menualign = menuAlignClass[this.menuRef.menualign] || menuAlignClass["pull-left"];
512
+ }
513
+ ngOnInit() {
514
+ if (this.parentNav) {
515
+ if (base.hasLinkToCurrentPage([this.item], this.menuRef.route.url)) i2.addClass(this.nativeElement, "active");
516
+ this.highlightActiveLinkSubscription = this.app.subscribe("highlightActiveLink", (data) => {
517
+ i2.toggleClass(this.nativeElement, "active", base.hasLinkToCurrentPage([this.item], this.menuRef.route.url));
518
+ });
519
+ }
520
+ }
521
+ getInitialKeyMovements() {
522
+ const KEY_MOVEMENTS = lodashEs.clone(KEYBOARD_MOVEMENTS);
523
+ if (this.menuRef.menulayout === MENU_LAYOUT_TYPE.HORIZONTAL || this.menuRef.menuposition === "inline") {
524
+ KEY_MOVEMENTS.MOVE_UP = "LEFT-ARROW";
525
+ KEY_MOVEMENTS.MOVE_LEFT = "UP-ARROW";
526
+ KEY_MOVEMENTS.MOVE_RIGHT = "DOWN-ARROW";
527
+ KEY_MOVEMENTS.MOVE_DOWN = "RIGHT-ARROW";
528
+ } else if (this.menuRef.menuposition === MENU_POSITION.DOWN_LEFT || this.menuRef.menuposition === MENU_POSITION.UP_LEFT) {
529
+ KEY_MOVEMENTS.MOVE_LEFT = "RIGHT-ARROW";
530
+ KEY_MOVEMENTS.MOVE_RIGHT = "LEFT-ARROW";
531
+ }
532
+ return KEY_MOVEMENTS;
533
+ }
534
+ onKeyDownTab($event) {
535
+ this.onKeyDown($event, "TAB");
536
+ }
537
+ onKeyDownShiftTab($event) {
538
+ this.onKeyDown($event, "SHIFT-TAB");
539
+ }
540
+ onKeyDownEscape($event) {
541
+ this.onKeyDown($event, "ESC");
542
+ }
543
+ onKeyDownEnter($event) {
544
+ this.onKeyDown($event, "ENTER");
545
+ }
546
+ onKeyDownArrowUp($event) {
547
+ this.onKeyDown($event, "UP-ARROW");
548
+ }
549
+ onKeyDownArrowDown($event) {
550
+ this.onKeyDown($event, "DOWN-ARROW");
551
+ }
552
+ onKeyDownArrowRight($event) {
553
+ this.onKeyDown($event, "RIGHT-ARROW");
554
+ }
555
+ onKeyDownArrowLeft($event) {
556
+ this.onKeyDown($event, "LEFT-ARROW");
557
+ }
558
+ onKeyDown($event, eventAction) {
559
+ const $li = $(this.nativeElement);
560
+ const $ul = $(this.nativeElement).closest("ul.dropdown-menu");
561
+ const $parentUl = this.menuRef.$element.find("> ul.dropdown-menu");
562
+ const ARROW_KEYS = [
563
+ "LEFT-ARROW",
564
+ "RIGHT-ARROW",
565
+ "UP-ARROW",
566
+ "DOWN-ARROW"
567
+ ];
568
+ const KEY_MOVEMENTS = this.getInitialKeyMovements();
569
+ if (lodashEs.includes(ARROW_KEYS, eventAction)) $event.preventDefault();
570
+ if (eventAction === KEY_MOVEMENTS.ON_TAB && $parentUl.children().last()[0] === this.nativeElement || eventAction === KEY_MOVEMENTS.ON_SHIFT_TAB && $parentUl.children().first()[0] === this.nativeElement || eventAction === KEY_MOVEMENTS.ON_ESCAPE) {
571
+ $event.preventDefault();
572
+ this.menuRef.bsDropdown.hide();
573
+ } else if (eventAction === KEY_MOVEMENTS.ON_ENTER && !this.item.link || eventAction === KEY_MOVEMENTS.MOVE_RIGHT) {
574
+ $event.stopPropagation();
575
+ if (this.item.children.length) {
576
+ $li.toggleClass("open");
577
+ $li.find("li").first().find("> a").focus();
578
+ } else $li.find("> a").focus();
579
+ } else if (eventAction === KEY_MOVEMENTS.MOVE_LEFT || eventAction === KEY_MOVEMENTS.ON_TAB && $ul.children().last()[0] === this.nativeElement || eventAction === KEY_MOVEMENTS.ON_SHIFT_TAB && $ul.children().first()[0] === this.nativeElement) {
580
+ if ($parentUl[0] !== $ul[0]) {
581
+ const $parentItem = $ul.parent();
582
+ $parentItem.toggleClass("open").find("li.open").removeClass("open");
583
+ $parentItem.find("> a").focus();
584
+ $event.preventDefault();
585
+ $event.stopPropagation();
586
+ }
587
+ } else if (eventAction === KEY_MOVEMENTS.MOVE_UP) {
588
+ if ($parentUl[0] !== $ul[0] || $parentUl.find("> li").first()[0] !== this.nativeElement) {
589
+ $event.stopPropagation();
590
+ $li.prev().find("> a").focus();
591
+ }
592
+ } else if (eventAction === KEY_MOVEMENTS.MOVE_DOWN) {
593
+ $event.stopPropagation();
594
+ if ($parentUl.find("> li").last()[0] === this.nativeElement && (this.menuRef.menulayout !== MENU_LAYOUT_TYPE.HORIZONTAL && this.menuRef.menuposition === MENU_POSITION.UP_RIGHT || this.menuRef.menuposition === MENU_POSITION.UP_LEFT)) this.menuRef.bsDropdown.hide();
595
+ else $li.next().find("> a").focus();
596
+ } else if (eventAction === KEY_MOVEMENTS.ON_ENTER) this.onSelect($event, this.item);
597
+ else $event.stopPropagation();
598
+ }
599
+ ngOnDestroy() {
600
+ if (this.highlightActiveLinkSubscription) this.highlightActiveLinkSubscription();
601
+ }
602
+ static {
603
+ this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
604
+ minVersion: "12.0.0",
605
+ version: "22.2.1",
606
+ ngImport: i0__namespace,
607
+ type: MenuDropdownItemComponent,
608
+ deps: [
609
+ { token: i2__namespace.App },
610
+ { token: i2__namespace.UserDefinedExecutionContext },
611
+ {
612
+ token: NavComponent,
613
+ optional: true
614
+ },
615
+ { token: i0__namespace.ElementRef }
616
+ ],
617
+ target: i0__namespace.ɵɵFactoryTarget.Component
618
+ });
619
+ }
620
+ static {
621
+ this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({
622
+ minVersion: "17.0.0",
623
+ version: "22.2.1",
624
+ type: MenuDropdownItemComponent,
625
+ isStandalone: true,
626
+ selector: "li[wmMenuDropdownItem]",
627
+ inputs: { item: "item" },
628
+ host: { listeners: {
629
+ "keydown.tab": "onKeyDownTab($event)",
630
+ "keydown.shift.tab": "onKeyDownShiftTab($event)",
631
+ "keydown.escape": "onKeyDownEscape($event)",
632
+ "keydown.enter": "onKeyDownEnter($event)",
633
+ "keydown.arrowup": "onKeyDownArrowUp($event)",
634
+ "keydown.arrowdown": "onKeyDownArrowDown($event)",
635
+ "keydown.arrowright": "onKeyDownArrowRight($event)",
636
+ "keydown.arrowleft": "onKeyDownArrowLeft($event)",
637
+ "click": "onSelect($event,item)"
638
+ } },
639
+ ngImport: i0__namespace,
640
+ template: "<a href=\"javascript:void(0);\" [title]=\"item.label\" [wmNavigationControl]=\"item.link\" [disableMenuContext]=\"menuRef.disableMenuContext || !!item.action\">\n @if (item.children.length) {\n <span class=\"pull-right fa caret {{menualign}}\"></span>\n }\n <i class=\"app-icon {{item.icon}}\"></i>\n <span class=\"anchor-caption\">{{item.label}}</span>\n @if (item.badge) {\n <span class=\"badge pull-right\" [textContent]=\"item.badge\"></span>\n }\n</a>\n@if (item.children.length) {\n <ul wmMenuDropdown [items]=\"item.children\"></ul>\n}",
641
+ dependencies: [
642
+ {
643
+ kind: "directive",
644
+ type: i0__namespace.forwardRef(() => base.TextContentDirective),
645
+ selector: "[textContent]",
646
+ inputs: ["textContent"]
647
+ },
648
+ {
649
+ kind: "component",
650
+ type: i0__namespace.forwardRef(() => MenuDropdownComponent),
651
+ selector: "ul[wmMenuDropdown]",
652
+ inputs: ["items"]
653
+ },
654
+ {
655
+ kind: "directive",
656
+ type: i0__namespace.forwardRef(() => NavigationControlDirective),
657
+ selector: "[wmNavigationControl]",
658
+ inputs: ["disableMenuContext", "wmNavigationControl"]
659
+ }
660
+ ],
661
+ changeDetection: i0__namespace.ChangeDetectionStrategy.Eager
662
+ });
663
+ }
664
+ };
665
+ i0__namespace.ɵɵngDeclareClassMetadata({
666
+ minVersion: "12.0.0",
667
+ version: "22.2.1",
668
+ ngImport: i0__namespace,
669
+ type: MenuDropdownItemComponent,
670
+ decorators: [{
671
+ type: i0.Component,
672
+ args: [{
673
+ changeDetection: i0.ChangeDetectionStrategy.Eager,
674
+ standalone: true,
675
+ imports: [
676
+ base.TextContentDirective,
677
+ i0.forwardRef(() => MenuDropdownComponent),
678
+ NavigationControlDirective
679
+ ],
680
+ selector: "li[wmMenuDropdownItem]",
681
+ template: "<a href=\"javascript:void(0);\" [title]=\"item.label\" [wmNavigationControl]=\"item.link\" [disableMenuContext]=\"menuRef.disableMenuContext || !!item.action\">\n @if (item.children.length) {\n <span class=\"pull-right fa caret {{menualign}}\"></span>\n }\n <i class=\"app-icon {{item.icon}}\"></i>\n <span class=\"anchor-caption\">{{item.label}}</span>\n @if (item.badge) {\n <span class=\"badge pull-right\" [textContent]=\"item.badge\"></span>\n }\n</a>\n@if (item.children.length) {\n <ul wmMenuDropdown [items]=\"item.children\"></ul>\n}"
682
+ }]
683
+ }],
684
+ ctorParameters: () => [
685
+ { type: i2__namespace.App },
686
+ { type: i2__namespace.UserDefinedExecutionContext },
687
+ {
688
+ type: NavComponent,
689
+ decorators: [{ type: i0.Optional }]
690
+ },
691
+ { type: i0__namespace.ElementRef }
692
+ ],
693
+ propDecorators: {
694
+ item: [{ type: i0.Input }],
695
+ onKeyDownTab: [{
696
+ type: i0.HostListener,
697
+ args: ["keydown.tab", ["$event"]]
698
+ }],
699
+ onKeyDownShiftTab: [{
700
+ type: i0.HostListener,
701
+ args: ["keydown.shift.tab", ["$event"]]
702
+ }],
703
+ onKeyDownEscape: [{
704
+ type: i0.HostListener,
705
+ args: ["keydown.escape", ["$event"]]
706
+ }],
707
+ onKeyDownEnter: [{
708
+ type: i0.HostListener,
709
+ args: ["keydown.enter", ["$event"]]
710
+ }],
711
+ onKeyDownArrowUp: [{
712
+ type: i0.HostListener,
713
+ args: ["keydown.arrowup", ["$event"]]
714
+ }],
715
+ onKeyDownArrowDown: [{
716
+ type: i0.HostListener,
717
+ args: ["keydown.arrowdown", ["$event"]]
718
+ }],
719
+ onKeyDownArrowRight: [{
720
+ type: i0.HostListener,
721
+ args: ["keydown.arrowright", ["$event"]]
722
+ }],
723
+ onKeyDownArrowLeft: [{
724
+ type: i0.HostListener,
725
+ args: ["keydown.arrowleft", ["$event"]]
726
+ }],
727
+ onSelect: [{
728
+ type: i0.HostListener,
729
+ args: ["click", ["$event", "item"]]
730
+ }]
731
+ }
732
+ });
733
+ const animationClasses = {
734
+ scale: {
735
+ "name": "wmScaleInLeft",
736
+ "down,right": "wmScaleInLeft",
737
+ "down,left": "wmScaleInRight",
738
+ "up,right": "wmScaleInTopLeft",
739
+ "up,left": "wmScaleInTopRight"
740
+ },
741
+ fade: {
742
+ "name": "fadeIn",
743
+ "down,right": "fadeIn",
744
+ "down,left": "fadeIn",
745
+ "up,right": "fadeIn",
746
+ "up,left": "fadeIn"
747
+ },
748
+ slide: {
749
+ "name": "wmSlideInDown",
750
+ "down,right": "wmSlideInDown",
751
+ "down,left": "wmSlideInDown",
752
+ "up,right": "wmSlideInUp",
753
+ "up,left": "wmSlideInUp"
754
+ }
755
+ };
756
+ const DEFAULT_CLS = "dropdown-menu";
757
+ var MenuDropdownComponent = class MenuDropdownComponent {
758
+ constructor(elRef) {
759
+ this.menuRef = i0.inject(MenuComponent);
760
+ this.nativeElement = elRef.nativeElement;
761
+ this.hasExecutedCallback = false;
762
+ i2.addClass(this.nativeElement, DEFAULT_CLS);
763
+ }
764
+ ngAfterViewInit() {
765
+ const animateItems = this.menuRef.animateitems;
766
+ let animationClass = "";
767
+ if (animateItems) animationClass = `animated ${animationClasses[animateItems][this.menuRef.menuposition] || animationClasses[animateItems].name}`;
768
+ i2.addClass(this.nativeElement, `dropdown-menu ${this.menuRef.menualign} ${animationClass}`, true);
769
+ this.getParentWidget();
770
+ }
771
+ getParentWidget() {
772
+ const closestWidget = $(this.menuRef.nativeElement).closest("table, ul.list-group");
773
+ if (closestWidget && $(closestWidget).has(this.menuRef.nativeElement).length > 0) this.createObserver(this, this.callback);
774
+ }
775
+ callback(entries, observer) {
776
+ if (!this.hasExecutedCallback) {
777
+ const self = this;
778
+ const positions = this.menuRef.menuposition?.split(",") || [];
779
+ entries.forEach((entry) => {
780
+ if (entry.isIntersecting) {
781
+ positions[0] = "down";
782
+ self.menuRef.menuposition = positions.length > 1 ? positions.join() : "down,right";
783
+ self.nativeElement.parentElement?.classList.add("dropdown");
784
+ self.menuRef.setMenuPosition();
785
+ } else {
786
+ positions[0] = "up";
787
+ self.menuRef.menuposition = positions.length > 1 ? positions.join() : "up,right";
788
+ self.nativeElement.parentElement?.classList.add("dropup");
789
+ self.menuRef.setMenuPosition();
790
+ if ((self.nativeElement.parentElement?.parentElement).tagName.toUpperCase() === "BS-DROPDOWN-CONTAINER") self.nativeElement.parentElement?.parentElement?.classList.add("parent-position");
791
+ }
792
+ });
793
+ this.hasExecutedCallback = true;
794
+ }
795
+ }
796
+ createObserver(target, callback) {
797
+ new IntersectionObserver(callback.bind(this), {
798
+ root: null,
799
+ threshold: 1,
800
+ once: true
801
+ }).observe(target.nativeElement);
802
+ }
803
+ static {
804
+ this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
805
+ minVersion: "12.0.0",
806
+ version: "22.2.1",
807
+ ngImport: i0__namespace,
808
+ type: MenuDropdownComponent,
809
+ deps: [{ token: i0__namespace.ElementRef }],
810
+ target: i0__namespace.ɵɵFactoryTarget.Component
811
+ });
812
+ }
813
+ static {
814
+ this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({
815
+ minVersion: "17.0.0",
816
+ version: "22.2.1",
817
+ type: MenuDropdownComponent,
818
+ isStandalone: true,
819
+ selector: "ul[wmMenuDropdown]",
820
+ inputs: { items: "items" },
821
+ ngImport: i0__namespace,
822
+ template: "@for (item of items; track item) {\n <li wmMenuDropdownItem\n [item]=\"item\"\n [ngClass]=\"{disabled: item.disabled, 'dropdown-submenu': item.children.length > 0}\"\n class=\"{{item.class}}\"\n role=\"menuitem\">\n </li>\n}\n",
823
+ dependencies: [
824
+ {
825
+ kind: "ngmodule",
826
+ type: i3.CommonModule
827
+ },
828
+ {
829
+ kind: "directive",
830
+ type: i3__namespace.NgClass,
831
+ selector: "[ngClass]",
832
+ inputs: ["class", "ngClass"]
833
+ },
834
+ {
835
+ kind: "component",
836
+ type: MenuDropdownItemComponent,
837
+ selector: "li[wmMenuDropdownItem]",
838
+ inputs: ["item"]
839
+ }
840
+ ],
841
+ changeDetection: i0__namespace.ChangeDetectionStrategy.Eager
842
+ });
843
+ }
844
+ };
845
+ i0__namespace.ɵɵngDeclareClassMetadata({
846
+ minVersion: "12.0.0",
847
+ version: "22.2.1",
848
+ ngImport: i0__namespace,
849
+ type: MenuDropdownComponent,
850
+ decorators: [{
851
+ type: i0.Component,
852
+ args: [{
853
+ changeDetection: i0.ChangeDetectionStrategy.Eager,
854
+ standalone: true,
855
+ imports: [i3.CommonModule, MenuDropdownItemComponent],
856
+ selector: "ul[wmMenuDropdown]",
857
+ template: "@for (item of items; track item) {\n <li wmMenuDropdownItem\n [item]=\"item\"\n [ngClass]=\"{disabled: item.disabled, 'dropdown-submenu': item.children.length > 0}\"\n class=\"{{item.class}}\"\n role=\"menuitem\">\n </li>\n}\n"
858
+ }]
859
+ }],
860
+ ctorParameters: () => [{ type: i0__namespace.ElementRef }],
861
+ propDecorators: { items: [{ type: i0.Input }] }
862
+ });
863
+ const registerProps = () => {
864
+ base.register("wm-menu", /* @__PURE__ */ new Map([
865
+ ["accessroles", {
866
+ value: "Everyone",
867
+ ...base.PROP_STRING
868
+ }],
869
+ ["animateitems", base.PROP_STRING],
870
+ ["autoclose", {
871
+ value: "always",
872
+ ...base.PROP_STRING
873
+ }],
874
+ ["autoopen", {
875
+ value: "never",
876
+ ...base.PROP_STRING
877
+ }],
878
+ ["caption", base.PROP_STRING],
879
+ ["class", base.PROP_STRING],
880
+ ["dataset", {
881
+ value: "Menu Item 1, Menu Item 2, Menu Item 3",
882
+ ...base.PROP_ANY
883
+ }],
884
+ ["hint", {
885
+ value: "",
886
+ ...base.PROP_STRING
887
+ }],
888
+ ["arialabel", base.PROP_STRING],
889
+ ["isactive", base.PROP_STRING],
890
+ ["iconclass", base.PROP_STRING],
891
+ ["iconurl", base.PROP_STRING],
892
+ ["iconposition", {
893
+ value: "left",
894
+ ...base.PROP_STRING
895
+ }],
896
+ ["itemaction", base.PROP_STRING],
897
+ ["itemchildren", base.PROP_STRING],
898
+ ["itemclass", base.PROP_STRING],
899
+ ["itemicon", base.PROP_STRING],
900
+ ["itemlabel", base.PROP_STRING],
901
+ ["itemlink", base.PROP_STRING],
902
+ ["itemtarget", base.PROP_STRING],
903
+ ["linktarget", {
904
+ value: "_self",
905
+ ...base.PROP_STRING
906
+ }],
907
+ ["menuclass", base.PROP_STRING],
908
+ ["menulayout", base.PROP_STRING],
909
+ ["menuposition", base.PROP_STRING],
910
+ ["name", base.PROP_STRING],
911
+ ["orderby", base.PROP_STRING],
912
+ ["shortcutkey", base.PROP_STRING],
913
+ ["show", {
914
+ value: true,
915
+ ...base.PROP_BOOLEAN
916
+ }],
917
+ ["showonhover", {
918
+ value: false,
919
+ ...base.PROP_BOOLEAN
920
+ }],
921
+ ["tabindex", {
922
+ value: 0,
923
+ ...base.PROP_NUMBER
924
+ }],
925
+ ["type", {
926
+ value: "menu",
927
+ ...base.PROP_STRING
928
+ }],
929
+ ["userrole", base.PROP_STRING]
930
+ ]));
931
+ };
932
+ const KEYBOARD_MOVEMENTS = {
933
+ MOVE_UP: "UP-ARROW",
934
+ MOVE_LEFT: "LEFT-ARROW",
935
+ MOVE_RIGHT: "RIGHT-ARROW",
936
+ MOVE_DOWN: "DOWN-ARROW",
937
+ ON_ENTER: "ENTER",
938
+ ON_MOUSE_ENTER: "MOUSE-ENTER",
939
+ ON_MOUSE_LEAVE: "MOUSE-LEAVE",
940
+ ON_TAB: "TAB",
941
+ ON_SHIFT_TAB: "SHIFT-TAB",
942
+ ON_ESCAPE: "ESC"
943
+ };
944
+ const MENU_POSITION = {
945
+ UP_LEFT: "up,left",
946
+ UP_RIGHT: "up,right",
947
+ DOWN_LEFT: "down,left",
948
+ DOWN_RIGHT: "down,right",
949
+ INLINE: "inline"
950
+ };
951
+ const POSITION = {
952
+ DOWN_RIGHT: "down,right",
953
+ DOWN_LEFT: "down,left",
954
+ UP_RIGHT: "up,right",
955
+ UP_LEFT: "up,left",
956
+ INLINE: "inline"
957
+ };
958
+ const CARET_CLS = {
959
+ UP: "fa-caret-up",
960
+ DOWN: "fa-caret-down"
961
+ };
962
+ const PULL_CLS = {
963
+ LEFT: "pull-left",
964
+ RIGHT: "pull-right"
965
+ };
966
+ const AUTO_OPEN = {
967
+ ACTIVE_PAGE: "activepage",
968
+ ALWAYS: "always"
969
+ };
970
+ const WIDGET_CONFIG = {
971
+ widgetType: "wm-menu",
972
+ hostClass: "dropdown app-menu"
973
+ };
974
+ var MenuComponent = class MenuComponent extends base.DatasetAwareNavComponent {
975
+ static {
976
+ this.initializeProps = registerProps();
977
+ }
978
+ onShow() {
979
+ this._menuposition = this.menuposition;
980
+ if (this._selectFirstItem) setTimeout(() => {
981
+ this.$element.find("> ul[wmmenudropdown] li.app-menu-item").first().find("> a").focus();
982
+ });
983
+ i2.$appDigest();
984
+ }
985
+ onHide() {
986
+ this.$element.find("li").removeClass("open");
987
+ this._selectFirstItem = false;
988
+ this.menuposition = this._menuposition ? this._menuposition : MENU_POSITION.DOWN_RIGHT;
989
+ this.setMenuPosition();
990
+ i2.$appDigest();
991
+ }
992
+ onKeyDownArrowUp($event) {
993
+ this.onKeyDown($event, "UP-ARROW");
994
+ }
995
+ onMouseEnter($event) {
996
+ this.onKeyDown($event, "MOUSE-ENTER");
997
+ }
998
+ onMouseLeave($event) {
999
+ this.onKeyDown($event, "MOUSE-LEAVE");
1000
+ }
1001
+ onKeyDownArrowDown($event) {
1002
+ this.onKeyDown($event, "DOWN-ARROW");
1003
+ }
1004
+ onKeyDownArrowRight($event) {
1005
+ this.onKeyDown($event, "RIGHT-ARROW");
1006
+ }
1007
+ onKeyDownArrowLeft($event) {
1008
+ this.onKeyDown($event, "LEFT-ARROW");
1009
+ }
1010
+ onKeyDownEnter($event) {
1011
+ this.onKeyDown($event, "ENTER");
1012
+ }
1013
+ onKeyDown($event, eventAction) {
1014
+ const KEY_MOVEMENTS = lodashEs.clone(KEYBOARD_MOVEMENTS);
1015
+ if (this.menuposition === MENU_POSITION.UP_RIGHT) {
1016
+ KEY_MOVEMENTS.MOVE_UP = "DOWN-ARROW";
1017
+ KEY_MOVEMENTS.MOVE_DOWN = "UP-ARROW";
1018
+ } else if (this.menuposition === MENU_POSITION.UP_LEFT) {
1019
+ KEY_MOVEMENTS.MOVE_UP = "DOWN-ARROW";
1020
+ KEY_MOVEMENTS.MOVE_DOWN = "UP-ARROW";
1021
+ KEY_MOVEMENTS.MOVE_LEFT = "RIGHT-ARROW";
1022
+ KEY_MOVEMENTS.MOVE_RIGHT = "LEFT-ARROW";
1023
+ } else if (this.menuposition === MENU_POSITION.DOWN_LEFT) {
1024
+ KEY_MOVEMENTS.MOVE_LEFT = "RIGHT-ARROW";
1025
+ KEY_MOVEMENTS.MOVE_RIGHT = "LEFT-ARROW";
1026
+ }
1027
+ if (lodashEs.includes([KEY_MOVEMENTS.MOVE_DOWN, KEY_MOVEMENTS.MOVE_RIGHT], eventAction)) {
1028
+ if (!this.bsDropdown.isOpen) {
1029
+ this._selectFirstItem = true;
1030
+ this.bsDropdown.show();
1031
+ } else this.$element.find("> ul[wmmenudropdown] li.app-menu-item").first().find("> a").focus();
1032
+ } else if (eventAction === KEY_MOVEMENTS.ON_ENTER || eventAction === KEY_MOVEMENTS.ON_MOUSE_ENTER && this.showonhover) this.bsDropdown.toggle(true);
1033
+ else if (lodashEs.includes([KEY_MOVEMENTS.MOVE_UP, KEY_MOVEMENTS.MOVE_LEFT], eventAction) || eventAction == KEY_MOVEMENTS.ON_MOUSE_LEAVE && this.autoclose == base.AUTOCLOSE_TYPE.ALWAYS && this.showonhover) this.bsDropdown.hide();
1034
+ $event.preventDefault();
1035
+ }
1036
+ constructor(inj, route, userDefinedExecutionContext, app, bsDropdown, parentNav, selectEventCB, explicitContext) {
1037
+ super(inj, WIDGET_CONFIG, explicitContext);
1038
+ this.route = route;
1039
+ this.userDefinedExecutionContext = userDefinedExecutionContext;
1040
+ this.app = app;
1041
+ this.bsDropdown = bsDropdown;
1042
+ this.parentNav = parentNav;
1043
+ this.selectEventCB = selectEventCB;
1044
+ this.menuCaret = "fa-caret-down";
1045
+ this._selectFirstItem = false;
1046
+ if (parentNav) this.disableMenuContext = !!parentNav.disableMenuContext;
1047
+ else this.disableMenuContext = !!selectEventCB;
1048
+ const datasetSubscription = this.nodes$.subscribe(() => {
1049
+ if (!lodashEs.isEmpty(this.nodes)) {
1050
+ if (base.hasLinkToCurrentPage(this.nodes, this.route.url)) i2.addClass(this.nativeElement.querySelector(".dropdown-toggle"), "active");
1051
+ if (this.parentNav) return;
1052
+ let itemFound = false;
1053
+ const getItem = (nodes) => {
1054
+ lodashEs.forEach(nodes, (item) => {
1055
+ if (itemFound) return;
1056
+ if (item.isactive) {
1057
+ itemFound = true;
1058
+ this.onMenuItemSelect({
1059
+ $event: {},
1060
+ $item: item
1061
+ });
1062
+ i2.triggerItemAction(this, item);
1063
+ return false;
1064
+ }
1065
+ if (!lodashEs.isEmpty(item.children)) getItem(item.children);
1066
+ });
1067
+ };
1068
+ getItem(this.nodes);
1069
+ }
1070
+ });
1071
+ this.registerDestroyListener(() => datasetSubscription.unsubscribe());
1072
+ }
1073
+ resetNodes() {
1074
+ super.resetNodes();
1075
+ if (this.autoopen === AUTO_OPEN.ACTIVE_PAGE && base.hasLinkToCurrentPage(this.nodes, this.route.url) || this.autoopen === AUTO_OPEN.ALWAYS) this.bsDropdown.show();
1076
+ }
1077
+ ngOnInit() {
1078
+ super.ngOnInit();
1079
+ this.setMenuPosition();
1080
+ const cancelSubscription = this.app.subscribe("highlightActiveLink", (data) => {
1081
+ i2.toggleClass(this.nativeElement.querySelector(".dropdown-toggle"), "active", base.hasLinkToCurrentPage(this.nodes, this.route.url));
1082
+ });
1083
+ this.registerDestroyListener(() => cancelSubscription());
1084
+ }
1085
+ onPropertyChange(key, nv, ov) {
1086
+ if (key === "tabindex") {
1087
+ super.onPropertyChange(key, nv, ov);
1088
+ return;
1089
+ }
1090
+ if (key === "autoclose") {
1091
+ this.bsDropdown._state.autoClose = nv !== base.AUTOCLOSE_TYPE.DISABLED;
1092
+ this.autoclose = nv;
1093
+ } else super.onPropertyChange(key, nv, ov);
1094
+ }
1095
+ setMenuPosition() {
1096
+ switch (this.menuposition) {
1097
+ case POSITION.DOWN_RIGHT:
1098
+ i2.removeClass(this.nativeElement, "dropup");
1099
+ this.menualign = PULL_CLS.LEFT;
1100
+ this.menuCaret = CARET_CLS.DOWN;
1101
+ break;
1102
+ case POSITION.DOWN_LEFT:
1103
+ i2.removeClass(this.nativeElement, "dropup");
1104
+ this.menualign = PULL_CLS.RIGHT;
1105
+ this.menuCaret = CARET_CLS.DOWN;
1106
+ break;
1107
+ case POSITION.UP_LEFT:
1108
+ i2.addClass(this.nativeElement, "dropup");
1109
+ this.menualign = PULL_CLS.RIGHT;
1110
+ this.menuCaret = CARET_CLS.UP;
1111
+ break;
1112
+ case POSITION.UP_RIGHT:
1113
+ i2.addClass(this.nativeElement, "dropup");
1114
+ this.menualign = PULL_CLS.LEFT;
1115
+ this.menuCaret = CARET_CLS.UP;
1116
+ break;
1117
+ case POSITION.INLINE: this.menualign = "dropinline-menu";
1118
+ }
1119
+ }
1120
+ onMenuItemSelect(args) {
1121
+ const { $event } = args;
1122
+ const $item = args.$item.value;
1123
+ this.invokeEventCallback("select", {
1124
+ $event,
1125
+ $item
1126
+ });
1127
+ }
1128
+ ngAfterViewInit() {
1129
+ super.ngAfterViewInit();
1130
+ if (this.widget.tabindex !== void 0 && typeof this.widget.tabindex === "number" && isNaN(this.widget.tabindex)) {
1131
+ this.widget.tabindex = 0;
1132
+ this.tabindex = 0;
1133
+ }
1134
+ base.styler(this.nativeElement.querySelector(".dropdown-toggle"), this);
1135
+ }
1136
+ static {
1137
+ this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
1138
+ minVersion: "12.0.0",
1139
+ version: "22.2.1",
1140
+ ngImport: i0__namespace,
1141
+ type: MenuComponent,
1142
+ deps: [
1143
+ { token: i0__namespace.Injector },
1144
+ { token: i1__namespace.Router },
1145
+ { token: i2__namespace.UserDefinedExecutionContext },
1146
+ { token: i2__namespace.App },
1147
+ {
1148
+ token: i4__namespace.BsDropdownDirective,
1149
+ optional: true,
1150
+ self: true
1151
+ },
1152
+ {
1153
+ token: NavComponent,
1154
+ optional: true
1155
+ },
1156
+ {
1157
+ token: "select.event",
1158
+ attribute: true
1159
+ },
1160
+ {
1161
+ token: "EXPLICIT_CONTEXT",
1162
+ optional: true
1163
+ }
1164
+ ],
1165
+ target: i0__namespace.ɵɵFactoryTarget.Component
1166
+ });
1167
+ }
1168
+ static {
1169
+ this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({
1170
+ minVersion: "17.0.0",
1171
+ version: "22.2.1",
1172
+ type: MenuComponent,
1173
+ isStandalone: true,
1174
+ selector: "[wmMenu]",
1175
+ host: { listeners: {
1176
+ "onShown": "onShow()",
1177
+ "onHidden": "onHide()",
1178
+ "keydown.arrowup": "onKeyDownArrowUp($event)",
1179
+ "mouseenter": "onMouseEnter($event)",
1180
+ "mouseleave": "onMouseLeave($event)",
1181
+ "keydown.arrowdown": "onKeyDownArrowDown($event)",
1182
+ "keydown.arrowright": "onKeyDownArrowRight($event)",
1183
+ "keydown.arrowleft": "onKeyDownArrowLeft($event)",
1184
+ "keydown.enter": "onKeyDownEnter($event)"
1185
+ } },
1186
+ providers: [base.provideAsWidgetRef(MenuComponent)],
1187
+ usesInheritance: true,
1188
+ ngImport: i0__namespace,
1189
+ template: "\n\n<ng-template #innerTemplate>\n <wm-app-icon [iconclass]=\"iconclass\" [iconurl]=\"iconurl\" alt=\"Menu icon\"></wm-app-icon>\n <span class=\"caption\" [textContent]=\"caption\"></span>\n <span class=\"pull-right caret fa {{menuCaret}}\"></span>\n</ng-template>\n\n@if (type === 'anchor') {\n <a wmAnchor\n dropdownToggle\n [attr.aria-label]=\"arialabel || 'Menu'\"\n href=\"javascript:void(0);\"\n role=\"button\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n hint.bind=\"hint\"\n class=\"dropdown-toggle {{menuclass}}\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n caption.bind=\"caption\"\n iconclass.bind=\"iconclass\"\n iconurl.bind=\"iconurl\"\n iconposition.bind=\"iconposition\"\n badgevalue.bind=\"badgevalue\"\n >\n <span class=\"pull-right caret fa\" [ngClass]=\"[menuCaret]\"></span>\n </a>\n} @else {\n <button wmButton\n dropdownToggle\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n [attr.aria-label]=\"arialabel || 'Menu'\"\n class=\"btn app-button dropdown-toggle {{menuclass}}\"\n hint.bind=\"hint\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n caption.bind=\"caption\"\n iconclass.bind=\"iconclass\"\n iconurl.bind=\"iconurl\"\n iconposition.bind=\"iconposition\"\n type=\"button\">\n <span class=\"pull-right caret fa\" [ngClass]=\"[menuCaret]\"></span>\n </button>\n}\n\n<ul *dropdownMenu [items]=\"nodes\" [ngClass]=\"menulayout\" class=\"icon-position-{{iconposition}}\" role=\"menubar\"\nwmMenuDropdown></ul>\n",
1190
+ dependencies: [
1191
+ {
1192
+ kind: "ngmodule",
1193
+ type: i4.BsDropdownModule
1194
+ },
1195
+ {
1196
+ kind: "directive",
1197
+ type: i4__namespace.BsDropdownMenuDirective,
1198
+ selector: "[bsDropdownMenu],[dropdownMenu]",
1199
+ exportAs: ["bs-dropdown-menu"]
1200
+ },
1201
+ {
1202
+ kind: "directive",
1203
+ type: i4__namespace.BsDropdownToggleDirective,
1204
+ selector: "[bsDropdownToggle],[dropdownToggle]",
1205
+ exportAs: ["bs-dropdown-toggle"]
1206
+ },
1207
+ {
1208
+ kind: "ngmodule",
1209
+ type: i3.CommonModule
1210
+ },
1211
+ {
1212
+ kind: "directive",
1213
+ type: i3__namespace.NgClass,
1214
+ selector: "[ngClass]",
1215
+ inputs: ["class", "ngClass"]
1216
+ },
1217
+ {
1218
+ kind: "directive",
1219
+ type: base.TextContentDirective,
1220
+ selector: "[textContent]",
1221
+ inputs: ["textContent"]
1222
+ },
1223
+ {
1224
+ kind: "component",
1225
+ type: anchor.AnchorComponent,
1226
+ selector: "a[wmAnchor]",
1227
+ exportAs: ["wmAnchor"]
1228
+ },
1229
+ {
1230
+ kind: "component",
1231
+ type: button.ButtonComponent,
1232
+ selector: "button[wmButton]",
1233
+ exportAs: ["wmButton"]
1234
+ },
1235
+ {
1236
+ kind: "component",
1237
+ type: MenuDropdownComponent,
1238
+ selector: "ul[wmMenuDropdown]",
1239
+ inputs: ["items"]
1240
+ },
1241
+ {
1242
+ kind: "component",
1243
+ type: base.WmAppIconComponent,
1244
+ selector: "wm-app-icon",
1245
+ inputs: [
1246
+ "icon",
1247
+ "iconclass",
1248
+ "iconurl",
1249
+ "defaultIconClass",
1250
+ "defaultClasses",
1251
+ "iconStyle",
1252
+ "alt"
1253
+ ]
1254
+ }
1255
+ ],
1256
+ changeDetection: i0__namespace.ChangeDetectionStrategy.Eager
1257
+ });
1258
+ }
1259
+ };
1260
+ i0__namespace.ɵɵngDeclareClassMetadata({
1261
+ minVersion: "12.0.0",
1262
+ version: "22.2.1",
1263
+ ngImport: i0__namespace,
1264
+ type: MenuComponent,
1265
+ decorators: [{
1266
+ type: i0.Component,
1267
+ args: [{
1268
+ changeDetection: i0.ChangeDetectionStrategy.Eager,
1269
+ standalone: true,
1270
+ imports: [
1271
+ i4.BsDropdownModule,
1272
+ i3.CommonModule,
1273
+ base.TextContentDirective,
1274
+ anchor.AnchorComponent,
1275
+ button.ButtonComponent,
1276
+ MenuDropdownComponent,
1277
+ base.WmAppIconComponent
1278
+ ],
1279
+ selector: "[wmMenu]",
1280
+ providers: [base.provideAsWidgetRef(MenuComponent)],
1281
+ template: "\n\n<ng-template #innerTemplate>\n <wm-app-icon [iconclass]=\"iconclass\" [iconurl]=\"iconurl\" alt=\"Menu icon\"></wm-app-icon>\n <span class=\"caption\" [textContent]=\"caption\"></span>\n <span class=\"pull-right caret fa {{menuCaret}}\"></span>\n</ng-template>\n\n@if (type === 'anchor') {\n <a wmAnchor\n dropdownToggle\n [attr.aria-label]=\"arialabel || 'Menu'\"\n href=\"javascript:void(0);\"\n role=\"button\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n hint.bind=\"hint\"\n class=\"dropdown-toggle {{menuclass}}\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n caption.bind=\"caption\"\n iconclass.bind=\"iconclass\"\n iconurl.bind=\"iconurl\"\n iconposition.bind=\"iconposition\"\n badgevalue.bind=\"badgevalue\"\n >\n <span class=\"pull-right caret fa\" [ngClass]=\"[menuCaret]\"></span>\n </a>\n} @else {\n <button wmButton\n dropdownToggle\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n [attr.aria-label]=\"arialabel || 'Menu'\"\n class=\"btn app-button dropdown-toggle {{menuclass}}\"\n hint.bind=\"hint\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n caption.bind=\"caption\"\n iconclass.bind=\"iconclass\"\n iconurl.bind=\"iconurl\"\n iconposition.bind=\"iconposition\"\n type=\"button\">\n <span class=\"pull-right caret fa\" [ngClass]=\"[menuCaret]\"></span>\n </button>\n}\n\n<ul *dropdownMenu [items]=\"nodes\" [ngClass]=\"menulayout\" class=\"icon-position-{{iconposition}}\" role=\"menubar\"\nwmMenuDropdown></ul>\n"
1282
+ }]
1283
+ }],
1284
+ ctorParameters: () => [
1285
+ { type: i0__namespace.Injector },
1286
+ { type: i1__namespace.Router },
1287
+ { type: i2__namespace.UserDefinedExecutionContext },
1288
+ { type: i2__namespace.App },
1289
+ {
1290
+ type: i4__namespace.BsDropdownDirective,
1291
+ decorators: [{ type: i0.Self }, { type: i0.Optional }]
1292
+ },
1293
+ {
1294
+ type: NavComponent,
1295
+ decorators: [{ type: i0.Optional }]
1296
+ },
1297
+ {
1298
+ type: void 0,
1299
+ decorators: [{
1300
+ type: i0.Attribute,
1301
+ args: ["select.event"]
1302
+ }]
1303
+ },
1304
+ {
1305
+ type: void 0,
1306
+ decorators: [{
1307
+ type: i0.Inject,
1308
+ args: ["EXPLICIT_CONTEXT"]
1309
+ }, { type: i0.Optional }]
1310
+ }
1311
+ ],
1312
+ propDecorators: {
1313
+ onShow: [{
1314
+ type: i0.HostListener,
1315
+ args: ["onShown"]
1316
+ }],
1317
+ onHide: [{
1318
+ type: i0.HostListener,
1319
+ args: ["onHidden"]
1320
+ }],
1321
+ onKeyDownArrowUp: [{
1322
+ type: i0.HostListener,
1323
+ args: ["keydown.arrowup", ["$event"]]
1324
+ }],
1325
+ onMouseEnter: [{
1326
+ type: i0.HostListener,
1327
+ args: ["mouseenter", ["$event"]]
1328
+ }],
1329
+ onMouseLeave: [{
1330
+ type: i0.HostListener,
1331
+ args: ["mouseleave", ["$event"]]
1332
+ }],
1333
+ onKeyDownArrowDown: [{
1334
+ type: i0.HostListener,
1335
+ args: ["keydown.arrowdown", ["$event"]]
1336
+ }],
1337
+ onKeyDownArrowRight: [{
1338
+ type: i0.HostListener,
1339
+ args: ["keydown.arrowright", ["$event"]]
1340
+ }],
1341
+ onKeyDownArrowLeft: [{
1342
+ type: i0.HostListener,
1343
+ args: ["keydown.arrowleft", ["$event"]]
1344
+ }],
1345
+ onKeyDownEnter: [{
1346
+ type: i0.HostListener,
1347
+ args: ["keydown.enter", ["$event"]]
1348
+ }]
1349
+ }
1350
+ });
1351
+ const menuProps = [
1352
+ "itemlabel",
1353
+ "itemicon",
1354
+ "itemlink",
1355
+ "itemaction",
1356
+ "itemchildren",
1357
+ "userrole"
1358
+ ];
1359
+ var MenuAdapterComponent = class MenuAdapterComponent extends base.BaseContainerComponent {
1360
+ constructor(inj, WIDGET_CONFIG, explicitContext) {
1361
+ super(inj, WIDGET_CONFIG, explicitContext);
1362
+ this.pageScope = this.viewParent;
1363
+ this.binditemlabel = this.nativeElement.getAttribute("itemlabel.bind");
1364
+ this.binditemicon = this.nativeElement.getAttribute("itemicon.bind");
1365
+ this.binditemaction = this.nativeElement.getAttribute("itemaction.bind");
1366
+ this.binditemlink = this.nativeElement.getAttribute("itemlink.bind");
1367
+ this.binduserrole = this.nativeElement.getAttribute("userrole.bind");
1368
+ this.binditemchildren = this.nativeElement.getAttribute("itemchildren.bind");
1369
+ }
1370
+ onPropertyChange(key, nv, ov) {
1371
+ if (lodashEs.includes(menuProps, key) && this.menuRef) this.menuRef.itemlabel = nv;
1372
+ else super.onPropertyChange(key, nv, ov);
1373
+ }
1374
+ ngAfterViewInit() {
1375
+ super.ngAfterViewInit();
1376
+ if (this.menuRefQL["first"]) this.setMenuProperty();
1377
+ this.menuRefQLSubscription = this.menuRefQL.changes.subscribe((menuRefQL) => {
1378
+ if (menuRefQL.first) {
1379
+ this.setMenuProperty();
1380
+ if (this.menuRefQLSubscription) {
1381
+ this.menuRefQLSubscription.unsubscribe();
1382
+ this.menuRefQLSubscription = null;
1383
+ }
1384
+ }
1385
+ });
1386
+ }
1387
+ ngOnDestroy() {
1388
+ if (this.menuRefQLSubscription) {
1389
+ this.menuRefQLSubscription.unsubscribe();
1390
+ this.menuRefQLSubscription = null;
1391
+ }
1392
+ this.menuRefQL = null;
1393
+ this.menuRef = null;
1394
+ super.ngOnDestroy();
1395
+ }
1396
+ setMenuProperty() {
1397
+ if (this.menuRefQL["first"]) {
1398
+ if (this.menuRefQL.first) {
1399
+ this.menuRef = this.menuRefQL.first;
1400
+ menuProps.forEach((prop) => {
1401
+ const bindProp = `bind${prop}`;
1402
+ if (this[bindProp]) this.menuRef[bindProp] = this[bindProp];
1403
+ this.menuRef[prop] = this[prop];
1404
+ });
1405
+ }
1406
+ }
1407
+ }
1408
+ static {
1409
+ this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
1410
+ minVersion: "12.0.0",
1411
+ version: "22.2.1",
1412
+ ngImport: i0__namespace,
1413
+ type: MenuAdapterComponent,
1414
+ deps: "invalid",
1415
+ target: i0__namespace.ɵɵFactoryTarget.Directive
1416
+ });
1417
+ }
1418
+ static {
1419
+ this.ɵdir = i0__namespace.ɵɵngDeclareDirective({
1420
+ minVersion: "14.0.0",
1421
+ version: "22.2.1",
1422
+ type: MenuAdapterComponent,
1423
+ isStandalone: true,
1424
+ viewQueries: [{
1425
+ propertyName: "menuRefQL",
1426
+ predicate: MenuComponent,
1427
+ descendants: true
1428
+ }],
1429
+ usesInheritance: true,
1430
+ ngImport: i0__namespace
1431
+ });
1432
+ }
1433
+ };
1434
+ i0__namespace.ɵɵngDeclareClassMetadata({
1435
+ minVersion: "12.0.0",
1436
+ version: "22.2.1",
1437
+ ngImport: i0__namespace,
1438
+ type: MenuAdapterComponent,
1439
+ decorators: [{ type: i0.Directive }],
1440
+ ctorParameters: () => [
1441
+ { type: void 0 },
1442
+ { type: void 0 },
1443
+ {
1444
+ type: void 0,
1445
+ decorators: [{
1446
+ type: i0.Inject,
1447
+ args: ["EXPLICIT_CONTEXT"]
1448
+ }, { type: i0.Optional }]
1449
+ }
1450
+ ],
1451
+ propDecorators: { menuRefQL: [{
1452
+ type: i0.ViewChildren,
1453
+ args: [MenuComponent]
1454
+ }] }
1455
+ });
75
1456
 
76
- const registerProps$2 = () => {
77
- base.register('wm-nav-item', new Map([
78
- ['class', base.PROP_STRING],
79
- ['name', base.PROP_STRING],
80
- ['show', { value: true, ...base.PROP_BOOLEAN }]
81
- ]));
82
- };
83
-
84
- const DEFAULT_CLS$2 = 'app-nav-item';
85
- const WIDGET_CONFIG$2 = { widgetType: 'wm-nav-item', hostClass: DEFAULT_CLS$2 };
86
- class NavItemDirective extends base.StylableComponent {
87
- static { this.initializeProps = registerProps$2(); }
88
- makeActive() {
89
- const parentNode = this.nativeElement.parentNode;
90
- $(parentNode).find('> li.active').removeClass('active');
91
- if (this.isAttached) {
92
- i2.addClass(this.nativeElement, 'active');
93
- }
94
- }
95
- constructor(inj, explicitContext) {
96
- super(inj, WIDGET_CONFIG$2, explicitContext);
97
- base.styler(this.nativeElement, this, base.APPLY_STYLES_TYPE.CONTAINER);
98
- }
99
- ngAfterViewInit() {
100
- if (this.innerLink) {
101
- this.innerLink.onActive(() => this.makeActive());
102
- }
103
- }
104
- ngOnDetach() {
105
- i2.removeClass(this.nativeElement, 'active', true);
106
- super.ngOnDetach();
107
- }
108
- ngOnDestroy() {
109
- // MEMORY LEAK FIX: Clear ContentChild reference
110
- this.innerLink = null;
111
- super.ngOnDestroy();
112
- }
113
- static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: NavItemDirective, deps: [{ token: i0__namespace.Injector }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
114
- static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: NavItemDirective, isStandalone: true, selector: "[wmNavItem]", host: { listeners: { "click": "makeActive()", "keydown.enter": "makeActive()" } }, providers: [
115
- base.provideAsWidgetRef(NavItemDirective)
116
- ], queries: [{ propertyName: "innerLink", first: true, predicate: anchor.AnchorComponent, descendants: true }], exportAs: ["navItemRef"], usesInheritance: true, ngImport: i0__namespace }); }
117
- }
118
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: NavItemDirective, decorators: [{
119
- type: i0.Directive,
120
- args: [{
121
- standalone: true,
122
- selector: '[wmNavItem]',
123
- exportAs: 'navItemRef',
124
- providers: [
125
- base.provideAsWidgetRef(NavItemDirective)
126
- ]
127
- }]
128
- }], ctorParameters: () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
129
- type: i0.Inject,
130
- args: ['EXPLICIT_CONTEXT']
131
- }, {
132
- type: i0.Optional
133
- }] }], propDecorators: { innerLink: [{
134
- type: i0.ContentChild,
135
- args: [anchor.AnchorComponent]
136
- }], makeActive: [{
137
- type: i0.HostListener,
138
- args: ['click']
139
- }, {
140
- type: i0.HostListener,
141
- args: ['keydown.enter']
142
- }] } });
143
-
144
- const registerProps$1 = () => {
145
- base.register('wm-nav', new Map([
146
- ['autoclose', { value: 'always', ...base.PROP_STRING }],
147
- ['autoopen', { value: 'never', ...base.PROP_STRING }],
148
- ['class', base.PROP_STRING],
149
- ['dataset', base.PROP_ANY],
150
- ['iconposition', { value: 'left', ...base.PROP_STRING }],
151
- ['isactive', base.PROP_STRING],
152
- ['itemlabel', base.PROP_STRING],
153
- ['itemhint', base.PROP_STRING],
154
- ['itemlink', base.PROP_STRING],
155
- ['itemicon', base.PROP_STRING],
156
- ['itemclass', base.PROP_STRING],
157
- ['itemchildren', base.PROP_STRING],
158
- ['itemaction', base.PROP_STRING],
159
- ['itembadge', base.PROP_STRING],
160
- ['itemtarget', base.PROP_STRING],
161
- ['layout', base.PROP_STRING],
162
- ['name', base.PROP_STRING],
163
- ['orderby', base.PROP_STRING],
164
- ['show', { value: true, ...base.PROP_BOOLEAN }],
165
- ['showonhover', { value: false, ...base.PROP_BOOLEAN }],
166
- ['type', base.PROP_STRING],
167
- ['userrole', base.PROP_STRING]
168
- ]));
169
- };
170
-
171
- const DEFAULT_CLS$1 = 'nav app-nav';
172
- const WIDGET_CONFIG$1 = { widgetType: 'wm-nav', hostClass: DEFAULT_CLS$1 };
173
- const NavClassMap = {
174
- pills: 'nav-pills',
175
- tabs: 'nav-tabs',
176
- navbar: 'navbar-nav'
177
- };
178
- class NavComponent extends base.DatasetAwareNavComponent {
179
- static { this.initializeProps = registerProps$1(); }
180
- get activePageName() {
181
- return this.app.activePageName;
182
- }
183
- constructor(inj, cdRef, route, userDefinedExecutionContext, app, selectEventCB, explicitContext) {
184
- super(inj, WIDGET_CONFIG$1, explicitContext);
185
- this.cdRef = cdRef;
186
- this.route = route;
187
- this.userDefinedExecutionContext = userDefinedExecutionContext;
188
- this.app = app;
189
- base.styler(this.nativeElement, this, base.APPLY_STYLES_TYPE.CONTAINER);
190
- this.disableMenuContext = !!selectEventCB;
191
- this.pageScope = this.viewParent;
192
- // For selecting the item on load
193
- const datasetSubscription = this.nodes$.subscribe(() => {
194
- if (!lodashEs.isEmpty(this.nodes)) {
195
- let itemFound = false;
196
- const getItem = (nodes, isMenuWidget) => {
197
- lodashEs.forEach(nodes, (item) => {
198
- if (itemFound) {
199
- return;
200
- }
201
- if (item.isactive) {
202
- itemFound = true;
203
- this.selecteditem = isMenuWidget ? lodashEs.omit(item, ['children', 'value']) : item.value;
204
- this.invokeEventCallback('select', { $event: {}, $item: item.value });
205
- // Trigger the action associated with active item
206
- i2.triggerItemAction(this, item);
207
- // _selected is used to add active class for nav item. If we have children inside nav widget then it is not required.
208
- if (!isMenuWidget) {
209
- item._selected = true;
210
- }
211
- return false;
212
- }
213
- if (!lodashEs.isEmpty(item.children)) {
214
- getItem(item.children, 'menu');
215
- }
216
- });
217
- };
218
- getItem(this.nodes);
219
- }
220
- });
221
- this.registerDestroyListener(() => datasetSubscription.unsubscribe());
222
- }
223
- setNavType(type) {
224
- i2.addClass(this.nativeElement, NavClassMap[type]);
225
- }
226
- setNavLayout(layout) {
227
- i2.addClass(this.nativeElement, `nav-${layout}`);
228
- }
229
- onNavSelect($event, item) {
230
- $event.preventDefault();
231
- const selectedItem = lodashEs.find(this.nodes, '_selected');
232
- if (selectedItem) {
233
- // @ts-ignore
234
- delete selectedItem._selected;
235
- }
236
- this.selecteditem = item.value;
237
- this.invokeEventCallback('select', { $event, $item: item.value });
238
- // Trigger the action associated with active item
239
- i2.triggerItemAction(this, item);
240
- }
241
- ngOnInit() {
242
- super.ngOnInit();
243
- this.setNavType(this.type);
244
- this.setNavLayout(this.layout);
245
- }
246
- /**
247
- * invoked from the menu widget when a menu item is selected.
248
- * @param $event
249
- * @param widget
250
- * @param $item
251
- */
252
- onMenuItemSelect($event, widget, $item) {
253
- this.selecteditem = lodashEs.omit($item, ['children', 'value']);
254
- this.invokeEventCallback('select', { $event, $item: this.selecteditem });
255
- }
256
- ngOnDestroy() {
257
- // MEMORY LEAK FIX: Cleanup
258
- // Note: Subscription is already cleaned up via registerDestroyListener in constructor
259
- // but adding explicit OnDestroy to ensure proper cleanup lifecycle
260
- // Clear references
261
- this.selecteditem = null;
262
- this.pageScope = null;
263
- this.itemActionFn = null;
264
- super.ngOnDestroy();
265
- }
266
- static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: NavComponent, deps: [{ token: i0__namespace.Injector }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace.Router }, { token: i2__namespace.UserDefinedExecutionContext }, { token: i2__namespace.App }, { token: 'select.event', attribute: true }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component }); }
267
- static { this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: NavComponent, isStandalone: true, selector: "[wmNav]", providers: [
268
- base.provideAsWidgetRef(NavComponent)
269
- ], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #menuRef let-item=\"item\" let-index=\"index\">\n <div wmMenu dropdown\n type=\"anchor\"\n autoclose.bind=\"autoclose\"\n iconclass.bind=\"item.icon\"\n autoopen.bind=\"autoopen\"\n caption.bind=\"item.label\"\n hint.bind=\"item.hint\"\n dataset.bind=\"item.children\"\n badgevalue.bind=\"item.badge\"\n iconposition.bind=\"iconposition\"\n showonhover.bind=\"showonhover\"\n select.event=\"onMenuItemSelect($event, widget, $item)\"></div>\n</ng-template>\n\n<ng-template #anchorRef let-item=\"item\" let-index=\"index\" let-liRef=\"liRef\">\n <a wmAnchor\n [disableMenuContext]=\"disableMenuContext || !!item.action\"\n [wmNavigationControl]=\"item.link\"\n [attr.aria-current]=\"item._selected || (!isactive && item.link === '#/' + activePageName) ? 'page' : ''\"\n caption.bind=\"item.label\"\n hint.bind=\"item.hint\"\n iconclass.bind=\"item.icon\"\n badgevalue.bind=\"item.badge\"\n iconposition.bind=\"iconposition\"\n click.event=\"onNavSelect($event, item)\"></a>\n</ng-template>\n\n@for (item of nodes; track item; let index = $index) {\n <li #liRef=\"navItemRef\"\n [ngClass]=\"{active: item._selected || (!isactive && item.link === '#/' + activePageName)}\"\n class=\"app-nav-item {{item.class}}\"\n wmNavItem>\n @if (!item.children.length) {\n <ng-container [ngTemplateOutlet]=\"anchorRef\"\n [ngTemplateOutletContext]=\"{item: item, index:index, liRef: liRef}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('anchor_' + liRef.trackId, {item: item, index:index, liRef: liRef})\"\n ></ng-container>\n }\n @if (item.children.length) {\n <ng-container [ngTemplateOutlet]=\"menuRef\"\n [ngTemplateOutletContext]=\"{item: item, index:index}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('menu_' + liRef.trackId, {item: item, index:index})\"\n ></ng-container>\n }\n </li>\n}\n\n@if (!nodes.length) {\n <ng-content select=\"[wmNavItem]\"></ng-content>\n}\n", dependencies: [{ kind: "ngmodule", type: i0__namespace.forwardRef(() => i3.CommonModule) }, { kind: "directive", type: i0__namespace.forwardRef(() => i3__namespace.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0__namespace.forwardRef(() => i3__namespace.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: i0__namespace.forwardRef(() => i3$1.BsDropdownModule) }, { kind: "directive", type: i0__namespace.forwardRef(() => i3$1__namespace.BsDropdownDirective), selector: "[bsDropdown], [dropdown]", inputs: ["placement", "triggers", "container", "dropup", "autoClose", "isAnimated", "insideClick", "isDisabled", "isOpen"], outputs: ["isOpenChange", "onShown", "onHidden"], exportAs: ["bs-dropdown"] }, { kind: "component", type: i0__namespace.forwardRef(() => anchor.AnchorComponent), selector: "a[wmAnchor]", exportAs: ["wmAnchor"] }, { kind: "component", type: i0__namespace.forwardRef(() => MenuComponent), selector: "[wmMenu]" }, { kind: "directive", type: i0__namespace.forwardRef(() => NavItemDirective), selector: "[wmNavItem]", exportAs: ["navItemRef"] }] }); }
270
- }
271
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: NavComponent, decorators: [{
272
- type: i0.Component,
273
- args: [{ standalone: true, imports: [i3.CommonModule, i3$1.BsDropdownModule, anchor.AnchorComponent, i0.forwardRef(() => MenuComponent), NavItemDirective,], selector: '[wmNav]', providers: [
274
- base.provideAsWidgetRef(NavComponent)
275
- ], template: "<ng-template #menuRef let-item=\"item\" let-index=\"index\">\n <div wmMenu dropdown\n type=\"anchor\"\n autoclose.bind=\"autoclose\"\n iconclass.bind=\"item.icon\"\n autoopen.bind=\"autoopen\"\n caption.bind=\"item.label\"\n hint.bind=\"item.hint\"\n dataset.bind=\"item.children\"\n badgevalue.bind=\"item.badge\"\n iconposition.bind=\"iconposition\"\n showonhover.bind=\"showonhover\"\n select.event=\"onMenuItemSelect($event, widget, $item)\"></div>\n</ng-template>\n\n<ng-template #anchorRef let-item=\"item\" let-index=\"index\" let-liRef=\"liRef\">\n <a wmAnchor\n [disableMenuContext]=\"disableMenuContext || !!item.action\"\n [wmNavigationControl]=\"item.link\"\n [attr.aria-current]=\"item._selected || (!isactive && item.link === '#/' + activePageName) ? 'page' : ''\"\n caption.bind=\"item.label\"\n hint.bind=\"item.hint\"\n iconclass.bind=\"item.icon\"\n badgevalue.bind=\"item.badge\"\n iconposition.bind=\"iconposition\"\n click.event=\"onNavSelect($event, item)\"></a>\n</ng-template>\n\n@for (item of nodes; track item; let index = $index) {\n <li #liRef=\"navItemRef\"\n [ngClass]=\"{active: item._selected || (!isactive && item.link === '#/' + activePageName)}\"\n class=\"app-nav-item {{item.class}}\"\n wmNavItem>\n @if (!item.children.length) {\n <ng-container [ngTemplateOutlet]=\"anchorRef\"\n [ngTemplateOutletContext]=\"{item: item, index:index, liRef: liRef}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('anchor_' + liRef.trackId, {item: item, index:index, liRef: liRef})\"\n ></ng-container>\n }\n @if (item.children.length) {\n <ng-container [ngTemplateOutlet]=\"menuRef\"\n [ngTemplateOutletContext]=\"{item: item, index:index}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('menu_' + liRef.trackId, {item: item, index:index})\"\n ></ng-container>\n }\n </li>\n}\n\n@if (!nodes.length) {\n <ng-content select=\"[wmNavItem]\"></ng-content>\n}\n" }]
276
- }], ctorParameters: () => [{ type: i0__namespace.Injector }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.Router }, { type: i2__namespace.UserDefinedExecutionContext }, { type: i2__namespace.App }, { type: undefined, decorators: [{
277
- type: i0.Attribute,
278
- args: ['select.event']
279
- }] }, { type: undefined, decorators: [{
280
- type: i0.Inject,
281
- args: ['EXPLICIT_CONTEXT']
282
- }, {
283
- type: i0.Optional
284
- }] }] });
285
-
286
- const menuAlignClass = {
287
- 'pull-right': 'fa-caret-left',
288
- 'dropinline-menu': 'fa-caret-down',
289
- 'pull-left': 'fa-caret-right'
290
- };
291
- const MENU_LAYOUT_TYPE = {
292
- HORIZONTAL: 'horizontal'};
293
- class MenuDropdownItemComponent {
294
- constructor(app, userDefinedExecutionContext, parentNav, elRef) {
295
- this.app = app;
296
- this.userDefinedExecutionContext = userDefinedExecutionContext;
297
- this.parentNav = parentNav;
298
- this.menuRef = i0.inject(MenuComponent);
299
- this.onSelect = ($event, item) => {
300
- if (this.nativeElement !== $($event.target).closest('.app-menu-item').get(0)) {
301
- return;
302
- }
303
- // prevent event event propagation if auto close is outside click.
304
- if (this.menuRef.autoclose === 'outsideClick') {
305
- $event.stopPropagation();
306
- }
307
- $event.preventDefault();
308
- const args = { $event, $item: item };
309
- this.menuRef.onMenuItemSelect(args);
310
- const selectedItem = lodashEs.clone(item);
311
- selectedItem.target = selectedItem.target || this.menuRef.linktarget;
312
- // Trigger the action associated with active item
313
- i2.triggerItemAction(this, selectedItem);
314
- };
315
- this.nativeElement = elRef.nativeElement;
316
- i2.addClass(this.nativeElement, 'app-menu-item');
317
- this.menualign = menuAlignClass[this.menuRef.menualign] || menuAlignClass['pull-left'];
318
- }
319
- ngOnInit() {
320
- // add active class to the item only if it is in nav component.
321
- if (this.parentNav) {
322
- if (base.hasLinkToCurrentPage([this.item], this.menuRef.route.url)) {
323
- // add active class to the li, if the menu item's link is same as the current page name.
324
- i2.addClass(this.nativeElement, 'active');
325
- }
326
- this.highlightActiveLinkSubscription = this.app.subscribe("highlightActiveLink", (data) => {
327
- i2.toggleClass(this.nativeElement, 'active', base.hasLinkToCurrentPage([this.item], this.menuRef.route.url));
328
- });
329
- }
330
- }
331
- getInitialKeyMovements() {
332
- const KEY_MOVEMENTS = lodashEs.clone(KEYBOARD_MOVEMENTS);
333
- if (this.menuRef.menulayout === MENU_LAYOUT_TYPE.HORIZONTAL || this.menuRef.menuposition === 'inline') {
334
- KEY_MOVEMENTS.MOVE_UP = 'LEFT-ARROW';
335
- KEY_MOVEMENTS.MOVE_LEFT = 'UP-ARROW';
336
- KEY_MOVEMENTS.MOVE_RIGHT = 'DOWN-ARROW';
337
- KEY_MOVEMENTS.MOVE_DOWN = 'RIGHT-ARROW';
338
- }
339
- else if (this.menuRef.menuposition === MENU_POSITION.DOWN_LEFT || this.menuRef.menuposition === MENU_POSITION.UP_LEFT) {
340
- KEY_MOVEMENTS.MOVE_LEFT = 'RIGHT-ARROW';
341
- KEY_MOVEMENTS.MOVE_RIGHT = 'LEFT-ARROW';
342
- }
343
- return KEY_MOVEMENTS;
344
- }
345
- onKeyDownTab($event) { this.onKeyDown($event, 'TAB'); }
346
- onKeyDownShiftTab($event) { this.onKeyDown($event, 'SHIFT-TAB'); }
347
- onKeyDownEscape($event) { this.onKeyDown($event, 'ESC'); }
348
- onKeyDownEnter($event) { this.onKeyDown($event, 'ENTER'); }
349
- onKeyDownArrowUp($event) { this.onKeyDown($event, 'UP-ARROW'); }
350
- onKeyDownArrowDown($event) { this.onKeyDown($event, 'DOWN-ARROW'); }
351
- onKeyDownArrowRight($event) { this.onKeyDown($event, 'RIGHT-ARROW'); }
352
- onKeyDownArrowLeft($event) { this.onKeyDown($event, 'LEFT-ARROW'); }
353
- onKeyDown($event, eventAction) {
354
- const $li = $(this.nativeElement);
355
- const $ul = $(this.nativeElement).closest('ul.dropdown-menu');
356
- const $parentUl = this.menuRef.$element.find('> ul.dropdown-menu');
357
- const ARROW_KEYS = ['LEFT-ARROW', 'RIGHT-ARROW', 'UP-ARROW', 'DOWN-ARROW'];
358
- const KEY_MOVEMENTS = this.getInitialKeyMovements();
359
- if (lodashEs.includes(ARROW_KEYS, eventAction)) {
360
- // preventing from page scroll when up/down arrow is pressed, in case of menu is opened.
361
- $event.preventDefault();
362
- }
363
- if ((eventAction === KEY_MOVEMENTS.ON_TAB && $parentUl.children().last()[0] === this.nativeElement)
364
- || (eventAction === KEY_MOVEMENTS.ON_SHIFT_TAB && $parentUl.children().first()[0] === this.nativeElement)
365
- || eventAction === KEY_MOVEMENTS.ON_ESCAPE) {
366
- /*closing all the children elements when
367
- * 1. Tab is clicked on the last $element
368
- * 2. Shift Tab is clicked on the first $element
369
- * 3. When Escape key is clicked*/
370
- $event.preventDefault();
371
- this.menuRef.bsDropdown.hide();
372
- }
373
- else if ((eventAction === KEY_MOVEMENTS.ON_ENTER && !this.item.link) || eventAction === KEY_MOVEMENTS.MOVE_RIGHT) {
374
- // when there is no link for the menu, on enter open the inner child elements and focus the first $element
375
- $event.stopPropagation();
376
- if (this.item.children.length) {
377
- $li.toggleClass('open');
378
- $li.find('li').first().find('> a').focus();
379
- }
380
- else {
381
- $li.find('> a').focus();
382
- }
383
- }
384
- else if (eventAction === KEY_MOVEMENTS.MOVE_LEFT
385
- || (eventAction === KEY_MOVEMENTS.ON_TAB && $ul.children().last()[0] === this.nativeElement)
386
- || (eventAction === KEY_MOVEMENTS.ON_SHIFT_TAB && $ul.children().first()[0] === this.nativeElement)) {
387
- if ($parentUl[0] !== $ul[0]) {
388
- const $parentItem = $ul.parent();
389
- $parentItem.toggleClass('open').find('li.open').removeClass('open');
390
- $parentItem.find('> a').focus();
391
- $event.preventDefault();
392
- $event.stopPropagation();
393
- }
394
- }
395
- else if (eventAction === KEY_MOVEMENTS.MOVE_UP) {
396
- if ($parentUl[0] !== $ul[0] || $parentUl.find('> li').first()[0] !== this.nativeElement) {
397
- $event.stopPropagation();
398
- $li.prev().find('> a').focus();
399
- }
400
- }
401
- else if (eventAction === KEY_MOVEMENTS.MOVE_DOWN) {
402
- $event.stopPropagation();
403
- if ($parentUl.find('> li').last()[0] === this.nativeElement
404
- && (this.menuRef.menulayout !== MENU_LAYOUT_TYPE.HORIZONTAL
405
- && this.menuRef.menuposition === MENU_POSITION.UP_RIGHT
406
- || this.menuRef.menuposition === MENU_POSITION.UP_LEFT)) {
407
- this.menuRef.bsDropdown.hide();
408
- }
409
- else {
410
- $li.next().find('> a').focus();
411
- }
412
- }
413
- else if (eventAction === KEY_MOVEMENTS.ON_ENTER) {
414
- this.onSelect($event, this.item);
415
- }
416
- else {
417
- $event.stopPropagation();
418
- }
419
- }
420
- ngOnDestroy() {
421
- if (this.highlightActiveLinkSubscription) {
422
- this.highlightActiveLinkSubscription();
423
- }
424
- }
425
- static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: MenuDropdownItemComponent, deps: [{ token: i2__namespace.App }, { token: i2__namespace.UserDefinedExecutionContext }, { token: NavComponent, optional: true }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component }); }
426
- static { this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: MenuDropdownItemComponent, isStandalone: true, selector: "li[wmMenuDropdownItem]", inputs: { item: "item" }, host: { listeners: { "keydown.tab": "onKeyDownTab($event)", "keydown.shift.tab": "onKeyDownShiftTab($event)", "keydown.escape": "onKeyDownEscape($event)", "keydown.enter": "onKeyDownEnter($event)", "keydown.arrowup": "onKeyDownArrowUp($event)", "keydown.arrowdown": "onKeyDownArrowDown($event)", "keydown.arrowright": "onKeyDownArrowRight($event)", "keydown.arrowleft": "onKeyDownArrowLeft($event)", "click": "onSelect($event,item)" } }, ngImport: i0__namespace, template: "<a href=\"javascript:void(0);\" [title]=\"item.label\" [wmNavigationControl]=\"item.link\" [disableMenuContext]=\"menuRef.disableMenuContext || !!item.action\">\n @if (item.children.length) {\n <span class=\"pull-right fa caret {{menualign}}\"></span>\n }\n <i class=\"app-icon {{item.icon}}\"></i>\n <span class=\"anchor-caption\">{{item.label}}</span>\n @if (item.badge) {\n <span class=\"badge pull-right\" [textContent]=\"item.badge\"></span>\n }\n</a>\n@if (item.children.length) {\n <ul wmMenuDropdown [items]=\"item.children\"></ul>\n}", dependencies: [{ kind: "directive", type: i0__namespace.forwardRef(() => base.TextContentDirective), selector: "[textContent]", inputs: ["textContent"] }, { kind: "component", type: i0__namespace.forwardRef(() => MenuDropdownComponent), selector: "ul[wmMenuDropdown]", inputs: ["items"] }, { kind: "directive", type: i0__namespace.forwardRef(() => NavigationControlDirective), selector: "[wmNavigationControl]", inputs: ["disableMenuContext", "wmNavigationControl"] }] }); }
427
- }
428
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: MenuDropdownItemComponent, decorators: [{
429
- type: i0.Component,
430
- args: [{ standalone: true, imports: [base.TextContentDirective, i0.forwardRef(() => MenuDropdownComponent), NavigationControlDirective], selector: 'li[wmMenuDropdownItem]', template: "<a href=\"javascript:void(0);\" [title]=\"item.label\" [wmNavigationControl]=\"item.link\" [disableMenuContext]=\"menuRef.disableMenuContext || !!item.action\">\n @if (item.children.length) {\n <span class=\"pull-right fa caret {{menualign}}\"></span>\n }\n <i class=\"app-icon {{item.icon}}\"></i>\n <span class=\"anchor-caption\">{{item.label}}</span>\n @if (item.badge) {\n <span class=\"badge pull-right\" [textContent]=\"item.badge\"></span>\n }\n</a>\n@if (item.children.length) {\n <ul wmMenuDropdown [items]=\"item.children\"></ul>\n}" }]
431
- }], ctorParameters: () => [{ type: i2__namespace.App }, { type: i2__namespace.UserDefinedExecutionContext }, { type: NavComponent, decorators: [{
432
- type: i0.Optional
433
- }] }, { type: i0__namespace.ElementRef }], propDecorators: { item: [{
434
- type: i0.Input
435
- }], onKeyDownTab: [{
436
- type: i0.HostListener,
437
- args: ['keydown.tab', ['$event']]
438
- }], onKeyDownShiftTab: [{
439
- type: i0.HostListener,
440
- args: ['keydown.shift.tab', ['$event']]
441
- }], onKeyDownEscape: [{
442
- type: i0.HostListener,
443
- args: ['keydown.escape', ['$event']]
444
- }], onKeyDownEnter: [{
445
- type: i0.HostListener,
446
- args: ['keydown.enter', ['$event']]
447
- }], onKeyDownArrowUp: [{
448
- type: i0.HostListener,
449
- args: ['keydown.arrowup', ['$event']]
450
- }], onKeyDownArrowDown: [{
451
- type: i0.HostListener,
452
- args: ['keydown.arrowdown', ['$event']]
453
- }], onKeyDownArrowRight: [{
454
- type: i0.HostListener,
455
- args: ['keydown.arrowright', ['$event']]
456
- }], onKeyDownArrowLeft: [{
457
- type: i0.HostListener,
458
- args: ['keydown.arrowleft', ['$event']]
459
- }], onSelect: [{
460
- type: i0.HostListener,
461
- args: ['click', ['$event', 'item']]
462
- }] } });
463
-
464
- const animationClasses = {
465
- scale: {
466
- 'name': 'wmScaleInLeft',
467
- 'down,right': 'wmScaleInLeft',
468
- 'down,left': 'wmScaleInRight',
469
- 'up,right': 'wmScaleInTopLeft',
470
- 'up,left': 'wmScaleInTopRight'
471
- },
472
- fade: {
473
- 'name': 'fadeIn',
474
- 'down,right': 'fadeIn',
475
- 'down,left': 'fadeIn',
476
- 'up,right': 'fadeIn',
477
- 'up,left': 'fadeIn'
478
- },
479
- slide: {
480
- 'name': 'wmSlideInDown',
481
- 'down,right': 'wmSlideInDown',
482
- 'down,left': 'wmSlideInDown',
483
- 'up,right': 'wmSlideInUp',
484
- 'up,left': 'wmSlideInUp'
485
- }
486
- };
487
- const DEFAULT_CLS = 'dropdown-menu';
488
- class MenuDropdownComponent {
489
- constructor(elRef) {
490
- this.menuRef = i0.inject(MenuComponent);
491
- this.nativeElement = elRef.nativeElement;
492
- this.hasExecutedCallback = false;
493
- i2.addClass(this.nativeElement, DEFAULT_CLS);
494
- }
495
- ngAfterViewInit() {
496
- const animateItems = this.menuRef.animateitems;
497
- let animationClass = '';
498
- if (animateItems) {
499
- animationClass = `animated ${(animationClasses[animateItems][this.menuRef.menuposition] || animationClasses[animateItems].name)}`;
500
- }
501
- i2.addClass(this.nativeElement, `dropdown-menu ${this.menuRef.menualign} ${animationClass}`, true);
502
- this.getParentWidget();
503
- }
504
- // Function to check if the menu widget is present inside other widgets like table, tabs, dialog, nav, list, tile, panel, accordion
505
- // if true then call createObserver() which internally calculates dropown height
506
- getParentWidget() {
507
- const closestWidget = $(this.menuRef.nativeElement).closest('table, ul.list-group');
508
- // Check if the closest table is the parent of the menu widget
509
- if (closestWidget && $(closestWidget).has(this.menuRef.nativeElement).length > 0) {
510
- this.createObserver(this, this.callback);
511
- }
512
- }
513
- // function which changes the position of the menu dropdown dynamically if it exceeds viewport height
514
- callback(entries, observer) {
515
- if (!this.hasExecutedCallback) {
516
- const self = this;
517
- const positions = this.menuRef.menuposition?.split(',') || [];
518
- entries.forEach(entry => {
519
- if (entry.isIntersecting) {
520
- positions[0] = 'down';
521
- self.menuRef.menuposition = positions.length > 1 ? positions.join() : 'down,right';
522
- self.nativeElement.parentElement?.classList.add('dropdown');
523
- self.menuRef.setMenuPosition();
524
- }
525
- else {
526
- positions[0] = 'up';
527
- self.menuRef.menuposition = positions.length > 1 ? positions.join() : 'up,right';
528
- self.nativeElement.parentElement?.classList.add('dropup');
529
- self.menuRef.setMenuPosition();
530
- // when container="body" is added to menu dropdown, the dropdown menu ul is attached directly to body.
531
- // so adding a class name inorder to adjust the styling of the dropdown
532
- const dropdownContainer = self.nativeElement.parentElement?.parentElement;
533
- if (dropdownContainer.tagName.toUpperCase() === "BS-DROPDOWN-CONTAINER") {
534
- // The parent element is <bs-dropdown-container>
535
- self.nativeElement.parentElement?.parentElement?.classList.add('parent-position');
536
- }
537
- }
538
- });
539
- this.hasExecutedCallback = true;
540
- }
541
- }
542
- // function which checks if the dropdown is within the viewport height or exceeds viewport height
543
- createObserver(target, callback) {
544
- const options = {
545
- root: null,
546
- threshold: 1,
547
- once: true
548
- };
549
- const observer = new IntersectionObserver(callback.bind(this), options);
550
- observer.observe(target.nativeElement);
551
- }
552
- static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: MenuDropdownComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component }); }
553
- static { this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: MenuDropdownComponent, isStandalone: true, selector: "ul[wmMenuDropdown]", inputs: { items: "items" }, ngImport: i0__namespace, template: "@for (item of items; track item) {\n <li wmMenuDropdownItem\n [item]=\"item\"\n [ngClass]=\"{disabled: item.disabled, 'dropdown-submenu': item.children.length > 0}\"\n class=\"{{item.class}}\"\n role=\"menuitem\">\n </li>\n}\n", dependencies: [{ kind: "ngmodule", type: i3.CommonModule }, { kind: "directive", type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MenuDropdownItemComponent, selector: "li[wmMenuDropdownItem]", inputs: ["item"] }] }); }
554
- }
555
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: MenuDropdownComponent, decorators: [{
556
- type: i0.Component,
557
- args: [{ standalone: true, imports: [i3.CommonModule, MenuDropdownItemComponent], selector: 'ul[wmMenuDropdown]', template: "@for (item of items; track item) {\n <li wmMenuDropdownItem\n [item]=\"item\"\n [ngClass]=\"{disabled: item.disabled, 'dropdown-submenu': item.children.length > 0}\"\n class=\"{{item.class}}\"\n role=\"menuitem\">\n </li>\n}\n" }]
558
- }], ctorParameters: () => [{ type: i0__namespace.ElementRef }], propDecorators: { items: [{
559
- type: i0.Input
560
- }] } });
561
-
562
- const registerProps = () => {
563
- base.register('wm-menu', new Map([
564
- ['accessroles', { value: 'Everyone', ...base.PROP_STRING }],
565
- ['animateitems', base.PROP_STRING],
566
- ['autoclose', { value: 'always', ...base.PROP_STRING }],
567
- ['autoopen', { value: 'never', ...base.PROP_STRING }],
568
- ['caption', base.PROP_STRING],
569
- ['class', base.PROP_STRING],
570
- ['dataset', { value: 'Menu Item 1, Menu Item 2, Menu Item 3', ...base.PROP_ANY }],
571
- ['hint', { value: '', ...base.PROP_STRING }],
572
- ['arialabel', base.PROP_STRING],
573
- ['isactive', base.PROP_STRING],
574
- ['iconclass', base.PROP_STRING],
575
- ['iconurl', base.PROP_STRING],
576
- ['iconposition', { value: 'left', ...base.PROP_STRING }],
577
- ['itemaction', base.PROP_STRING],
578
- ['itemchildren', base.PROP_STRING],
579
- ['itemclass', base.PROP_STRING],
580
- ['itemicon', base.PROP_STRING],
581
- ['itemlabel', base.PROP_STRING],
582
- ['itemlink', base.PROP_STRING],
583
- ['itemtarget', base.PROP_STRING],
584
- ['linktarget', { value: '_self', ...base.PROP_STRING }],
585
- ['menuclass', base.PROP_STRING],
586
- ['menulayout', base.PROP_STRING],
587
- ['menuposition', base.PROP_STRING],
588
- ['name', base.PROP_STRING],
589
- ['orderby', base.PROP_STRING],
590
- ['shortcutkey', base.PROP_STRING],
591
- ['show', { value: true, ...base.PROP_BOOLEAN }],
592
- ['showonhover', { value: false, ...base.PROP_BOOLEAN }],
593
- ['tabindex', { value: 0, ...base.PROP_NUMBER }],
594
- ['type', { value: 'menu', ...base.PROP_STRING }],
595
- ['userrole', base.PROP_STRING]
596
- ]));
597
- };
598
-
599
- const KEYBOARD_MOVEMENTS = {
600
- MOVE_UP: 'UP-ARROW',
601
- MOVE_LEFT: 'LEFT-ARROW',
602
- MOVE_RIGHT: 'RIGHT-ARROW',
603
- MOVE_DOWN: 'DOWN-ARROW',
604
- ON_ENTER: 'ENTER',
605
- ON_MOUSE_ENTER: 'MOUSE-ENTER',
606
- ON_MOUSE_LEAVE: 'MOUSE-LEAVE',
607
- ON_TAB: 'TAB',
608
- ON_SHIFT_TAB: 'SHIFT-TAB',
609
- ON_ESCAPE: 'ESC'
610
- };
611
- const MENU_POSITION = {
612
- UP_LEFT: 'up,left',
613
- UP_RIGHT: 'up,right',
614
- DOWN_LEFT: 'down,left',
615
- DOWN_RIGHT: 'down,right',
616
- INLINE: 'inline'
617
- };
618
- const POSITION = {
619
- DOWN_RIGHT: 'down,right',
620
- DOWN_LEFT: 'down,left',
621
- UP_RIGHT: 'up,right',
622
- UP_LEFT: 'up,left',
623
- INLINE: 'inline'
624
- };
625
- const CARET_CLS = {
626
- UP: 'fa-caret-up',
627
- DOWN: 'fa-caret-down'
628
- };
629
- const PULL_CLS = {
630
- LEFT: 'pull-left',
631
- RIGHT: 'pull-right'
632
- };
633
- const AUTO_OPEN = {
634
- ACTIVE_PAGE: 'activepage',
635
- ALWAYS: 'always'
636
- };
637
- const WIDGET_CONFIG = { widgetType: 'wm-menu', hostClass: 'dropdown app-menu' };
638
- class MenuComponent extends base.DatasetAwareNavComponent {
639
- static { this.initializeProps = registerProps(); }
640
- onShow() {
641
- this._menuposition = this.menuposition;
642
- if (this._selectFirstItem) {
643
- setTimeout(() => {
644
- this.$element.find('> ul[wmmenudropdown] li.app-menu-item').first().find('> a').focus();
645
- });
646
- }
647
- i2.$appDigest();
648
- }
649
- onHide() {
650
- this.$element.find('li').removeClass('open');
651
- this._selectFirstItem = false;
652
- // reset the menuposition when dropdown is closed
653
- this.menuposition = this._menuposition ? this._menuposition : MENU_POSITION.DOWN_RIGHT;
654
- this.setMenuPosition();
655
- i2.$appDigest();
656
- }
657
- onKeyDownArrowUp($event) { this.onKeyDown($event, 'UP-ARROW'); }
658
- onMouseEnter($event) { this.onKeyDown($event, 'MOUSE-ENTER'); }
659
- onMouseLeave($event) { this.onKeyDown($event, 'MOUSE-LEAVE'); }
660
- onKeyDownArrowDown($event) { this.onKeyDown($event, 'DOWN-ARROW'); }
661
- onKeyDownArrowRight($event) { this.onKeyDown($event, 'RIGHT-ARROW'); }
662
- onKeyDownArrowLeft($event) { this.onKeyDown($event, 'LEFT-ARROW'); }
663
- onKeyDownEnter($event) { this.onKeyDown($event, 'ENTER'); }
664
- onKeyDown($event, eventAction) {
665
- const KEY_MOVEMENTS = lodashEs.clone(KEYBOARD_MOVEMENTS);
666
- if (this.menuposition === MENU_POSITION.UP_RIGHT) {
667
- KEY_MOVEMENTS.MOVE_UP = 'DOWN-ARROW';
668
- KEY_MOVEMENTS.MOVE_DOWN = 'UP-ARROW';
669
- }
670
- else if (this.menuposition === MENU_POSITION.UP_LEFT) {
671
- KEY_MOVEMENTS.MOVE_UP = 'DOWN-ARROW';
672
- KEY_MOVEMENTS.MOVE_DOWN = 'UP-ARROW';
673
- KEY_MOVEMENTS.MOVE_LEFT = 'RIGHT-ARROW';
674
- KEY_MOVEMENTS.MOVE_RIGHT = 'LEFT-ARROW';
675
- }
676
- else if (this.menuposition === MENU_POSITION.DOWN_LEFT) {
677
- KEY_MOVEMENTS.MOVE_LEFT = 'RIGHT-ARROW';
678
- KEY_MOVEMENTS.MOVE_RIGHT = 'LEFT-ARROW';
679
- }
680
- if (lodashEs.includes([KEY_MOVEMENTS.MOVE_DOWN, KEY_MOVEMENTS.MOVE_RIGHT], eventAction)) {
681
- if (!this.bsDropdown.isOpen) {
682
- this._selectFirstItem = true;
683
- this.bsDropdown.show();
684
- }
685
- else {
686
- this.$element.find('> ul[wmmenudropdown] li.app-menu-item').first().find('> a').focus();
687
- }
688
- }
689
- else if (eventAction === KEY_MOVEMENTS.ON_ENTER || (eventAction === KEY_MOVEMENTS.ON_MOUSE_ENTER && this.showonhover)) {
690
- this.bsDropdown.toggle(true);
691
- }
692
- else if (lodashEs.includes([KEY_MOVEMENTS.MOVE_UP, KEY_MOVEMENTS.MOVE_LEFT], eventAction) || (eventAction == KEY_MOVEMENTS.ON_MOUSE_LEAVE && this.autoclose == base.AUTOCLOSE_TYPE.ALWAYS && this.showonhover)) {
693
- this.bsDropdown.hide();
694
- }
695
- $event.preventDefault();
696
- }
697
- constructor(inj, route, userDefinedExecutionContext, app, bsDropdown, parentNav, selectEventCB, explicitContext) {
698
- super(inj, WIDGET_CONFIG, explicitContext);
699
- this.route = route;
700
- this.userDefinedExecutionContext = userDefinedExecutionContext;
701
- this.app = app;
702
- this.bsDropdown = bsDropdown;
703
- this.parentNav = parentNav;
704
- this.selectEventCB = selectEventCB;
705
- this.menuCaret = 'fa-caret-down';
706
- this._selectFirstItem = false;
707
- if (parentNav) {
708
- this.disableMenuContext = !!parentNav.disableMenuContext;
709
- }
710
- else {
711
- this.disableMenuContext = !!selectEventCB;
712
- }
713
- // For selecting the item on load
714
- const datasetSubscription = this.nodes$.subscribe(() => {
715
- if (!lodashEs.isEmpty(this.nodes)) {
716
- if (base.hasLinkToCurrentPage(this.nodes, this.route.url)) {
717
- i2.addClass(this.nativeElement.querySelector('.dropdown-toggle'), 'active');
718
- }
719
- // If menu widget is inside nav widget then dont check for item isactive property because these will be handled form nav widget.
720
- if (this.parentNav) {
721
- return;
722
- }
723
- let itemFound = false;
724
- const getItem = (nodes) => {
725
- lodashEs.forEach(nodes, (item) => {
726
- if (itemFound) {
727
- return;
728
- }
729
- if (item.isactive) {
730
- itemFound = true;
731
- this.onMenuItemSelect({ $event: {}, $item: item });
732
- // Trigger the action associated with active item
733
- i2.triggerItemAction(this, item);
734
- return false;
735
- }
736
- if (!lodashEs.isEmpty(item.children)) {
737
- getItem(item.children);
738
- }
739
- });
740
- };
741
- getItem(this.nodes);
742
- }
743
- });
744
- this.registerDestroyListener(() => datasetSubscription.unsubscribe());
745
- }
746
- resetNodes() {
747
- super.resetNodes();
748
- // open the menu if any of its menu items has link to current page and if autoopen value is 'active page'
749
- if ((this.autoopen === AUTO_OPEN.ACTIVE_PAGE && base.hasLinkToCurrentPage(this.nodes, this.route.url)) || this.autoopen === AUTO_OPEN.ALWAYS) {
750
- this.bsDropdown.show();
751
- }
752
- }
753
- ngOnInit() {
754
- super.ngOnInit();
755
- this.setMenuPosition();
756
- const cancelSubscription = this.app.subscribe("highlightActiveLink", (data) => {
757
- i2.toggleClass(this.nativeElement.querySelector('.dropdown-toggle'), 'active', base.hasLinkToCurrentPage(this.nodes, this.route.url));
758
- });
759
- this.registerDestroyListener(() => cancelSubscription());
760
- }
761
- onPropertyChange(key, nv, ov) {
762
- if (key === 'tabindex') {
763
- // Let the base class handle tabindex setting via setAttr
764
- super.onPropertyChange(key, nv, ov);
765
- return;
766
- }
767
- if (key === 'autoclose') {
768
- // ngx-bootstrap 21: autoClose is an InputSignal; WaveMaker sets internal dropdown state at runtime.
769
- this.bsDropdown._state.autoClose =
770
- nv !== base.AUTOCLOSE_TYPE.DISABLED;
771
- this.autoclose = nv;
772
- }
773
- else {
774
- super.onPropertyChange(key, nv, ov);
775
- }
776
- }
777
- setMenuPosition() {
778
- switch (this.menuposition) {
779
- case POSITION.DOWN_RIGHT:
780
- i2.removeClass(this.nativeElement, 'dropup');
781
- this.menualign = PULL_CLS.LEFT;
782
- this.menuCaret = CARET_CLS.DOWN;
783
- break;
784
- case POSITION.DOWN_LEFT:
785
- i2.removeClass(this.nativeElement, 'dropup');
786
- this.menualign = PULL_CLS.RIGHT;
787
- this.menuCaret = CARET_CLS.DOWN;
788
- break;
789
- case POSITION.UP_LEFT:
790
- i2.addClass(this.nativeElement, 'dropup');
791
- this.menualign = PULL_CLS.RIGHT;
792
- this.menuCaret = CARET_CLS.UP;
793
- break;
794
- case POSITION.UP_RIGHT:
795
- i2.addClass(this.nativeElement, 'dropup');
796
- this.menualign = PULL_CLS.LEFT;
797
- this.menuCaret = CARET_CLS.UP;
798
- break;
799
- case POSITION.INLINE:
800
- this.menualign = 'dropinline-menu';
801
- break;
802
- }
803
- }
804
- onMenuItemSelect(args) {
805
- const { $event } = args;
806
- const $item = args.$item.value;
807
- this.invokeEventCallback('select', { $event, $item });
808
- }
809
- ngAfterViewInit() {
810
- super.ngAfterViewInit();
811
- // Fix tabindex if it's NaN (ensure it's fixed after view initialization)
812
- if (this.widget.tabindex !== undefined && (typeof this.widget.tabindex === 'number' && isNaN(this.widget.tabindex))) {
813
- this.widget.tabindex = 0;
814
- this.tabindex = 0;
815
- }
816
- base.styler(this.nativeElement.querySelector('.dropdown-toggle'), this);
817
- }
818
- static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: MenuComponent, deps: [{ token: i0__namespace.Injector }, { token: i1__namespace.Router }, { token: i2__namespace.UserDefinedExecutionContext }, { token: i2__namespace.App }, { token: i3$1__namespace.BsDropdownDirective, optional: true, self: true }, { token: NavComponent, optional: true }, { token: 'select.event', attribute: true }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component }); }
819
- static { this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: MenuComponent, isStandalone: true, selector: "[wmMenu]", host: { listeners: { "onShown": "onShow()", "onHidden": "onHide()", "keydown.arrowup": "onKeyDownArrowUp($event)", "mouseenter": "onMouseEnter($event)", "mouseleave": "onMouseLeave($event)", "keydown.arrowdown": "onKeyDownArrowDown($event)", "keydown.arrowright": "onKeyDownArrowRight($event)", "keydown.arrowleft": "onKeyDownArrowLeft($event)", "keydown.enter": "onKeyDownEnter($event)" } }, providers: [
820
- base.provideAsWidgetRef(MenuComponent),
821
- ], usesInheritance: true, ngImport: i0__namespace, template: "\n\n<ng-template #innerTemplate>\n <wm-app-icon [iconclass]=\"iconclass\" [iconurl]=\"iconurl\" alt=\"Menu icon\"></wm-app-icon>\n <span class=\"caption\" [textContent]=\"caption\"></span>\n <span class=\"pull-right caret fa {{menuCaret}}\"></span>\n</ng-template>\n\n@if (type === 'anchor') {\n <a wmAnchor\n dropdownToggle\n [attr.aria-label]=\"arialabel || 'Menu'\"\n href=\"javascript:void(0);\"\n role=\"button\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n hint.bind=\"hint\"\n class=\"dropdown-toggle {{menuclass}}\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n caption.bind=\"caption\"\n iconclass.bind=\"iconclass\"\n iconurl.bind=\"iconurl\"\n iconposition.bind=\"iconposition\"\n badgevalue.bind=\"badgevalue\"\n >\n <span class=\"pull-right caret fa\" [ngClass]=\"[menuCaret]\"></span>\n </a>\n} @else {\n <button wmButton\n dropdownToggle\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n [attr.aria-label]=\"arialabel || 'Menu'\"\n class=\"btn app-button dropdown-toggle {{menuclass}}\"\n hint.bind=\"hint\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n caption.bind=\"caption\"\n iconclass.bind=\"iconclass\"\n iconurl.bind=\"iconurl\"\n iconposition.bind=\"iconposition\"\n type=\"button\">\n <span class=\"pull-right caret fa\" [ngClass]=\"[menuCaret]\"></span>\n </button>\n}\n\n<ul *dropdownMenu [items]=\"nodes\" [ngClass]=\"menulayout\" class=\"icon-position-{{iconposition}}\" role=\"menubar\"\nwmMenuDropdown></ul>\n", dependencies: [{ kind: "ngmodule", type: i3$1.BsDropdownModule }, { kind: "directive", type: i3$1__namespace.BsDropdownMenuDirective, selector: "[bsDropdownMenu],[dropdownMenu]", exportAs: ["bs-dropdown-menu"] }, { kind: "directive", type: i3$1__namespace.BsDropdownToggleDirective, selector: "[bsDropdownToggle],[dropdownToggle]", exportAs: ["bs-dropdown-toggle"] }, { kind: "ngmodule", type: i3.CommonModule }, { kind: "directive", type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: base.TextContentDirective, selector: "[textContent]", inputs: ["textContent"] }, { kind: "component", type: anchor.AnchorComponent, selector: "a[wmAnchor]", exportAs: ["wmAnchor"] }, { kind: "component", type: button.ButtonComponent, selector: "button[wmButton]", exportAs: ["wmButton"] }, { kind: "component", type: MenuDropdownComponent, selector: "ul[wmMenuDropdown]", inputs: ["items"] }, { kind: "component", type: base.WmAppIconComponent, selector: "wm-app-icon", inputs: ["icon", "iconclass", "iconurl", "defaultIconClass", "defaultClasses", "iconStyle", "alt"] }] }); }
822
- }
823
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: MenuComponent, decorators: [{
824
- type: i0.Component,
825
- args: [{ standalone: true, imports: [i3$1.BsDropdownModule, i3.CommonModule, base.TextContentDirective, anchor.AnchorComponent, button.ButtonComponent, MenuDropdownComponent, base.WmAppIconComponent], selector: '[wmMenu]', providers: [
826
- base.provideAsWidgetRef(MenuComponent),
827
- ], template: "\n\n<ng-template #innerTemplate>\n <wm-app-icon [iconclass]=\"iconclass\" [iconurl]=\"iconurl\" alt=\"Menu icon\"></wm-app-icon>\n <span class=\"caption\" [textContent]=\"caption\"></span>\n <span class=\"pull-right caret fa {{menuCaret}}\"></span>\n</ng-template>\n\n@if (type === 'anchor') {\n <a wmAnchor\n dropdownToggle\n [attr.aria-label]=\"arialabel || 'Menu'\"\n href=\"javascript:void(0);\"\n role=\"button\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n hint.bind=\"hint\"\n class=\"dropdown-toggle {{menuclass}}\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n caption.bind=\"caption\"\n iconclass.bind=\"iconclass\"\n iconurl.bind=\"iconurl\"\n iconposition.bind=\"iconposition\"\n badgevalue.bind=\"badgevalue\"\n >\n <span class=\"pull-right caret fa\" [ngClass]=\"[menuCaret]\"></span>\n </a>\n} @else {\n <button wmButton\n dropdownToggle\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n [attr.aria-label]=\"arialabel || 'Menu'\"\n class=\"btn app-button dropdown-toggle {{menuclass}}\"\n hint.bind=\"hint\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n caption.bind=\"caption\"\n iconclass.bind=\"iconclass\"\n iconurl.bind=\"iconurl\"\n iconposition.bind=\"iconposition\"\n type=\"button\">\n <span class=\"pull-right caret fa\" [ngClass]=\"[menuCaret]\"></span>\n </button>\n}\n\n<ul *dropdownMenu [items]=\"nodes\" [ngClass]=\"menulayout\" class=\"icon-position-{{iconposition}}\" role=\"menubar\"\nwmMenuDropdown></ul>\n" }]
828
- }], ctorParameters: () => [{ type: i0__namespace.Injector }, { type: i1__namespace.Router }, { type: i2__namespace.UserDefinedExecutionContext }, { type: i2__namespace.App }, { type: i3$1__namespace.BsDropdownDirective, decorators: [{
829
- type: i0.Self
830
- }, {
831
- type: i0.Optional
832
- }] }, { type: NavComponent, decorators: [{
833
- type: i0.Optional
834
- }] }, { type: undefined, decorators: [{
835
- type: i0.Attribute,
836
- args: ['select.event']
837
- }] }, { type: undefined, decorators: [{
838
- type: i0.Inject,
839
- args: ['EXPLICIT_CONTEXT']
840
- }, {
841
- type: i0.Optional
842
- }] }], propDecorators: { onShow: [{
843
- type: i0.HostListener,
844
- args: ['onShown']
845
- }], onHide: [{
846
- type: i0.HostListener,
847
- args: ['onHidden']
848
- }], onKeyDownArrowUp: [{
849
- type: i0.HostListener,
850
- args: ['keydown.arrowup', ['$event']]
851
- }], onMouseEnter: [{
852
- type: i0.HostListener,
853
- args: ['mouseenter', ['$event']]
854
- }], onMouseLeave: [{
855
- type: i0.HostListener,
856
- args: ['mouseleave', ['$event']]
857
- }], onKeyDownArrowDown: [{
858
- type: i0.HostListener,
859
- args: ['keydown.arrowdown', ['$event']]
860
- }], onKeyDownArrowRight: [{
861
- type: i0.HostListener,
862
- args: ['keydown.arrowright', ['$event']]
863
- }], onKeyDownArrowLeft: [{
864
- type: i0.HostListener,
865
- args: ['keydown.arrowleft', ['$event']]
866
- }], onKeyDownEnter: [{
867
- type: i0.HostListener,
868
- args: ['keydown.enter', ['$event']]
869
- }] } });
870
-
871
- const menuProps = ['itemlabel', 'itemicon', 'itemlink', 'itemaction', 'itemchildren', 'userrole'];
872
- class MenuAdapterComponent extends base.BaseContainerComponent {
873
- constructor(inj, WIDGET_CONFIG, explicitContext) {
874
- super(inj, WIDGET_CONFIG, explicitContext);
875
- this.pageScope = this.viewParent;
876
- this.binditemlabel = this.nativeElement.getAttribute('itemlabel.bind');
877
- this.binditemicon = this.nativeElement.getAttribute('itemicon.bind');
878
- this.binditemaction = this.nativeElement.getAttribute('itemaction.bind');
879
- this.binditemlink = this.nativeElement.getAttribute('itemlink.bind');
880
- this.binduserrole = this.nativeElement.getAttribute('userrole.bind');
881
- this.binditemchildren = this.nativeElement.getAttribute('itemchildren.bind');
882
- }
883
- onPropertyChange(key, nv, ov) {
884
- if (lodashEs.includes(menuProps, key) && this.menuRef) {
885
- this.menuRef.itemlabel = nv;
886
- }
887
- else {
888
- super.onPropertyChange(key, nv, ov);
889
- }
890
- }
891
- ngAfterViewInit() {
892
- super.ngAfterViewInit();
893
- if (this.menuRefQL['first']) {
894
- this.setMenuProperty();
895
- }
896
- this.menuRefQLSubscription = this.menuRefQL.changes.subscribe((menuRefQL) => {
897
- if (menuRefQL.first) {
898
- this.setMenuProperty();
899
- if (this.menuRefQLSubscription) {
900
- this.menuRefQLSubscription.unsubscribe();
901
- this.menuRefQLSubscription = null;
902
- }
903
- }
904
- });
905
- }
906
- ngOnDestroy() {
907
- // MEMORY LEAK FIX: Unsubscribe from QueryList changes
908
- if (this.menuRefQLSubscription) {
909
- this.menuRefQLSubscription.unsubscribe();
910
- this.menuRefQLSubscription = null;
911
- }
912
- // MEMORY LEAK FIX: Clear QueryList reference
913
- this.menuRefQL = null;
914
- this.menuRef = null;
915
- super.ngOnDestroy();
916
- }
917
- setMenuProperty() {
918
- if (this.menuRefQL['first']) {
919
- if (this.menuRefQL.first) {
920
- this.menuRef = this.menuRefQL.first;
921
- menuProps.forEach((prop) => {
922
- const bindProp = `bind${prop}`;
923
- if (this[bindProp]) {
924
- this.menuRef[bindProp] = this[bindProp];
925
- }
926
- this.menuRef[prop] = this[prop];
927
- });
928
- }
929
- }
930
- }
931
- static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: MenuAdapterComponent, deps: "invalid", target: i0__namespace.ɵɵFactoryTarget.Directive }); }
932
- static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: MenuAdapterComponent, isStandalone: true, viewQueries: [{ propertyName: "menuRefQL", predicate: MenuComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace }); }
933
- }
934
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: MenuAdapterComponent, decorators: [{
935
- type: i0.Directive
936
- }], ctorParameters: () => [{ type: undefined }, { type: undefined }, { type: undefined, decorators: [{
937
- type: i0.Inject,
938
- args: ['EXPLICIT_CONTEXT']
939
- }, {
940
- type: i0.Optional
941
- }] }], propDecorators: { menuRefQL: [{
942
- type: i0.ViewChildren,
943
- args: [MenuComponent]
944
- }] } });
945
-
946
- exports.KEYBOARD_MOVEMENTS = KEYBOARD_MOVEMENTS;
947
- exports.MENU_POSITION = MENU_POSITION;
948
- exports.MenuAdapterComponent = MenuAdapterComponent;
949
- exports.MenuComponent = MenuComponent;
950
- exports.MenuDropdownComponent = MenuDropdownComponent;
951
- exports.MenuDropdownItemComponent = MenuDropdownItemComponent;
952
- exports.NavComponent = NavComponent;
953
- exports.NavItemDirective = NavItemDirective;
954
- exports.NavigationControlDirective = NavigationControlDirective;
955
- exports.disableContextMenu = disableContextMenu;
1457
+ exports.KEYBOARD_MOVEMENTS = KEYBOARD_MOVEMENTS;
1458
+ exports.MENU_POSITION = MENU_POSITION;
1459
+ exports.MenuAdapterComponent = MenuAdapterComponent;
1460
+ exports.MenuComponent = MenuComponent;
1461
+ exports.MenuDropdownComponent = MenuDropdownComponent;
1462
+ exports.MenuDropdownItemComponent = MenuDropdownItemComponent;
1463
+ exports.NavComponent = NavComponent;
1464
+ exports.NavItemDirective = NavItemDirective;
1465
+ exports.NavigationControlDirective = NavigationControlDirective;
1466
+ exports.disableContextMenu = disableContextMenu;
956
1467
 
957
1468
  }));