@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,817 +1,1180 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/compiler'), require('lodash-es')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@angular/compiler', 'lodash-es'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.transpiler = {}), global.ng.compiler, global._));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/compiler'), require('lodash-es')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@angular/compiler', 'lodash-es'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.transpiler = {}), global.ng.compiler, global._));
5
5
  })(this, (function (exports, compiler, lodashEs) { 'use strict';
6
6
 
7
- // Angular Core Modules
8
- const NG_FORM_MODULE = [{ from: '@angular/forms', name: 'FormsModule', as: 'ngFormsModule' }];
9
- const NG_REACTIVE_FORM_MODULE = [{ from: '@angular/forms', name: 'ReactiveFormsModule', as: 'ngReactiveFormsModule' }];
10
- // NGX Bootstrap Modules
11
- const NGX_BS_DATE_PICKER = [{ from: 'ngx-bootstrap/datepicker', name: 'BsDatepickerModule', as: 'ngx_BsDatepickerModule' }];
12
- const NGX_CAROUSEL_MODULE = [{ from: 'ngx-bootstrap/carousel', name: 'CarouselModule', as: 'ngxCarouselModule' }];
13
- const NGX_COLOR_PICKER_DIRECTIVE = [{ from: 'ngx-color-picker', name: 'ColorPickerDirective', as: 'ngx_ColorPickerDirective' }];
14
- const NGX_DROP_DOWN_MODULE = [{ from: 'ngx-bootstrap/dropdown', name: 'BsDropdownModule', as: 'ngxBsDropdownModule' }];
15
- //const NGX_MODAL_MODULE: ImportDef[] = [{ from: 'ngx-bootstrap/modal', name: 'ModalModule', as: 'ngx_ModalModule' }];
16
- const NGX_PAGINATION_MODULE = [{ from: 'ngx-bootstrap/pagination', name: 'PaginationModule', as: 'ngxPaginationModule' }];
17
- const NGX_POPOVER_MODULE = [{ from: 'ngx-bootstrap/popover', name: 'PopoverModule', as: 'ngxPopoverModule' }];
18
- const NGX_TIME_PICKER = [{ from: 'ngx-bootstrap/timepicker', name: 'TimepickerModule', as: 'ngx_TimepickerModule' }];
19
- const NGX_TOOL_TIP_MODULE = [{ from: 'ngx-bootstrap/tooltip', name: 'TooltipModule', as: 'ngxTooltipModule' }];
20
- const NGX_TYPE_HEAD_MODULE = [{ from: 'ngx-bootstrap/typeahead', name: 'TypeaheadModule', as: 'ngxTypeaheadModule' }];
21
- // Progess Modules
22
- const PROGRESS_BAR_COMPONENT = [{ from: '@wm/components/basic/progress/progress-bar', name: 'ProgressBarComponent' }];
23
- const PROGRESS_CIRCLE_COMPONENT = [{ from: '@wm/components/basic/progress/progress-circle', name: 'ProgressCircleComponent' }];
24
- const PAGE_COMPONENT = [{ from: '@wm/components/page', name: 'PageDirective' }];
25
- const PAGINATION_COMPONENT = [...NG_FORM_MODULE, ...NGX_PAGINATION_MODULE, { from: '@wm/components/data/pagination', name: 'PaginationComponent' }];
26
- // Basic Components
27
- const ANCHOR_COMPONENT = [{ from: '@wm/components/basic/anchor', name: 'AnchorComponent' }];
28
- const AUDIO_COMPONENT = [{ from: '@wm/components/basic/audio', name: 'AudioComponent' }];
29
- const HTML_COMPONENT = [{ from: '@wm/components/basic/html', name: 'HtmlDirective' }];
30
- const ICON_COMPONENT = [{ from: '@wm/components/basic/icon', name: 'IconComponent' }];
31
- const IFRAME_COMPONENT = [{ from: '@wm/components/basic/iframe', name: 'IframeComponent' }];
32
- const LABEL_COMPONENT = [{ from: '@wm/components/basic/label', name: 'LabelDirective' }];
33
- const PICTURE_COMPONENT = [{ from: '@wm/components/basic/picture', name: 'PictureDirective' }];
34
- const SEARCH_COMPONENT = [
35
- ...NG_FORM_MODULE,
36
- ...NGX_TYPE_HEAD_MODULE,
37
- { from: '@wm/components/basic/search', name: 'ScrollableDirective' },
38
- { from: '@wm/components/basic/search', name: 'SearchComponent' }
39
- ];
40
- const SPINNER_COMPONENT = [{ from: '@wm/components/basic/spinner', name: 'SpinnerComponent' }];
41
- const VIDEO_COMPONENT = [{ from: '@wm/components/basic/video', name: 'VideoComponent' }];
42
- // Container Components
43
- const PARTIAL_DIRECTIVE = [{ from: '@wm/components/base', name: 'PartialDirective' }];
44
- const PARTIAL_CONTAINER = [{ from: '@wm/components/base', name: 'PartialParamHandlerDirective' }, { from: '@wm/components/base', name: 'PartialContainerDirective' }];
45
- const ACCORDION_PANE_COMPONENT = [...PARTIAL_CONTAINER, { from: '@wm/components/containers/accordion', name: 'AccordionPaneComponent' }];
46
- const ACCORDION_DIRECTIVE = [{ from: '@wm/components/containers/accordion', name: 'AccordionDirective' }];
47
- const CONTAINER_DIRECTIVE = [...PARTIAL_CONTAINER, { from: '@wm/components/base', name: 'ContainerDirective' }];
48
- const PARTIAL_PARAM_DIRECTIVE = [{ from: '@wm/components/base', name: 'PartialParamDirective' }];
49
- const LINEAR_LAYOUT_ITEM_DIRECTIVE = [{ from: '@wm/components/containers/linear-layout', name: 'LinearLayoutItemDirective' }];
50
- const LINEAR_LAYOUT_DIRECTIVE = [...LINEAR_LAYOUT_ITEM_DIRECTIVE, { from: '@wm/components/containers/linear-layout', name: 'LinearLayoutDirective' }];
51
- const TAB_PANE_COMPONENT = [...PARTIAL_CONTAINER, { from: '@wm/components/containers/tabs', name: 'TabPaneComponent' }];
52
- const TABS_COMPONENT = [...TAB_PANE_COMPONENT, { from: '@wm/components/containers/tabs', name: 'TabsComponent' }];
53
- const WIZARD_ACTION_DIRECTIVE = [{ from: '@wm/components/containers/wizard', name: 'WizardActionDirective' }];
54
- const WIZARD_STEP_DIRECTIVE = [...PARTIAL_CONTAINER, { from: '@wm/components/containers/wizard', name: 'WizardStepComponent' }];
55
- const WIZARD_COMPONENT = [...NG_FORM_MODULE, ...WIZARD_ACTION_DIRECTIVE, ...WIZARD_STEP_DIRECTIVE, { from: '@wm/components/containers/wizard', name: 'WizardComponent' }];
56
- const LAYOUT_GRID_COLUMN_DIRECTIVE = [{ from: '@wm/components/containers/layout-grid', name: 'LayoutGridColumnDirective' }];
57
- const LAYOUT_GRID_ROW_DIRECTIVE = [{ from: '@wm/components/containers/layout-grid', name: 'LayoutGridRowDirective' }];
58
- const LAYOUT_GRID_DIRECTIVE = [...LAYOUT_GRID_ROW_DIRECTIVE, ...LAYOUT_GRID_COLUMN_DIRECTIVE, { from: '@wm/components/containers/layout-grid', name: 'LayoutgridDirective' }];
59
- const PANEL_COMPONENT = [...PARTIAL_CONTAINER, { from: '@wm/components/containers/panel', name: 'PanelComponent' }];
60
- const TILE_DIRECTIVE = [{ from: '@wm/components/containers/tile', name: 'TileDirective' }];
61
- const REPEAT_TEMPLATE_DIRECTIVE = [{ from: '@wm/components/base', name: 'RepeatTemplateDirective' }];
62
- // Dialog Modules
63
- const ALERT_DIALOG_COMPONENT = [{ from: '@wm/components/dialogs/alert-dialog', name: 'AlertDialogComponent' }];
64
- const CONFIRM_DIALOG_COMPONENT = [{ from: '@wm/components/dialogs/confirm-dialog', name: 'ConfirmDialogComponent' }];
65
- const DESIGN_DIALOG_COMPONENT = [{ from: '@wm/components/dialogs/design-dialog', name: 'DialogComponent' }];
66
- const IFRAME_DIALOG_COMPONENT = [{ from: '@wm/components/dialogs/iframe-dialog', name: 'IframeDialogComponent' }];
67
- const LOGIN_DIALOG_DIRECTIVE = [{ from: '@wm/components/dialogs/login-dialog', name: 'LoginDialogDirective' }, ...DESIGN_DIALOG_COMPONENT];
68
- const PARTIAL_DIALOG_COMPONENT = [{ from: '@wm/components/dialogs/partial-dialog', name: 'PartialDialogComponent' }, ...CONTAINER_DIRECTIVE];
69
- const DIALOGACTIONS_DIRECTIVE = [{ from: '@wm/components/dialogs', name: 'DialogFooterDirective' }];
70
- // Navigation Modules
71
- const NAV_ITEM_DIRECTIVE = [{ from: '@wm/components/navigation/menu', name: 'NavItemDirective' }];
72
- const NAV_COMPONENT = [{ from: '@wm/components/navigation/menu', name: 'NavComponent' }];
73
- const NAVIGATION_CONTROL_DIRECTIVE = [{ from: '@wm/components/navigation/menu', name: 'NavigationControlDirective' }];
74
- const MENU_DROPDOWN_ITEM_COMPONENT = [{ from: '@wm/components/navigation/menu', name: 'MenuDropdownComponent' }];
75
- const MENU_DROPDOWN_COMPONENT = [{ from: '@wm/components/navigation/menu', name: 'MenuDropdownComponent' }]; // Duplicate, consider removing one
76
- const MENU_COMPONENT = [...NGX_DROP_DOWN_MODULE, ...MENU_DROPDOWN_COMPONENT, ...MENU_DROPDOWN_ITEM_COMPONENT, ...NAVIGATION_CONTROL_DIRECTIVE, ...NAV_COMPONENT, ...NAV_ITEM_DIRECTIVE, { from: '@wm/components/navigation/menu', name: 'MenuComponent' }];
77
- const MESSAGE_COMPONENT = [{ from: '@wm/components/base', name: 'MessageComponent' }];
78
- const BREAD_CRUMB_COMPONENT = [...MENU_COMPONENT, { from: '@wm/components/navigation/breadcrumb', name: 'BreadcrumbComponent' }];
79
- const NAVBAR_COMPONENT = [{ from: '@wm/components/navigation/navbar', name: 'NavbarComponent' }];
80
- const POPOVER_COMPONENT = [...NGX_POPOVER_MODULE, { from: '@wm/components/navigation/popover', name: 'PopoverComponent' }, ...CONTAINER_DIRECTIVE];
81
- const TOP_NAV_DIRECTIVE = [...PARTIAL_CONTAINER, { from: '@wm/components/page/top-nav', name: 'TopNavDirective' }];
82
- // Input Components
83
- const CALENDAR_COMPONENT = [...NG_FORM_MODULE, ...NGX_BS_DATE_PICKER, { from: '@wm/components/input/calendar', name: 'CalendarComponent' }];
84
- const CHIPS_COMPONENT = [...SEARCH_COMPONENT, { from: '@wm/components/input/chips', name: 'ChipsComponent' }];
85
- const COLOR_PICKER_COMPONENT = [...NG_FORM_MODULE, ...NGX_COLOR_PICKER_DIRECTIVE, { from: '@wm/components/input/color-picker', name: 'ColorPickerComponent' }];
86
- const CURRENCY_COMPONENT = [{ from: '@wm/components/input/currency', name: 'CurrencyComponent' }];
87
- const DATE_COMPONENT = [
88
- ...NG_FORM_MODULE, ...NGX_BS_DATE_PICKER, ...NGX_DROP_DOWN_MODULE,
89
- { from: '@wm/components/input/epoch/date', name: 'DateComponent' }
90
- ];
91
- const DATE_TIME_COMPONENT = [
92
- ...NG_FORM_MODULE, ...NGX_BS_DATE_PICKER, ...NGX_TIME_PICKER, ...NGX_DROP_DOWN_MODULE,
93
- { from: '@wm/components/input/epoch/date-time', name: 'DatetimeComponent' }
94
- ];
95
- const TIME_COMPONENT = [
96
- ...NG_FORM_MODULE, ...NGX_BS_DATE_PICKER, ...NGX_TIME_PICKER, ...NGX_DROP_DOWN_MODULE,
97
- { from: '@wm/components/input/epoch/time', name: 'TimeComponent' }
98
- ];
99
- const FILE_UPLOAD_COMPONENT = [{ from: '@wm/components/input/file-upload', name: 'FileUploadComponent' }];
100
- const RATING_COMPONENT = [{ from: '@wm/components/input/rating', name: 'RatingComponent' }];
101
- const SLIDER_COMPONENT = [...NG_FORM_MODULE, { from: '@wm/components/input/slider', name: 'SliderComponent' }];
102
- const BUTTON_COMPONENT = [...NG_FORM_MODULE, { from: '@wm/components/input/button', name: 'ButtonComponent' }];
103
- const BUTTON_GROUP_DIRECTIVE = [...NG_FORM_MODULE, { from: '@wm/components/input/button-group', name: 'ButtonGroupDirective' }];
104
- // const CAPTION_POSITION_DIRECTIVE: ImportDef[] = [...NG_FORM_MODULE, { from: '@wm/components/input', name: 'CaptionPositionDirective' }];
105
- const CHECKBOX_COMPONENT = [...NG_FORM_MODULE, { from: '@wm/components/input/checkbox', name: 'CheckboxComponent' }];
106
- const CHECKBOXSET_COMPONENT = [...NG_FORM_MODULE, { from: '@wm/components/input/checkboxset', name: 'CheckboxsetComponent' }];
107
- // const COMPOSITE_DIRECTIVE: ImportDef[] = [...NG_FORM_MODULE, { from: '@wm/components/input', name: 'CompositeDirective' }];
108
- const NUMBER_COMPONENT = [...NG_FORM_MODULE, { from: '@wm/components/input/number', name: 'NumberComponent' }];
109
- const RADIOSET_COMPONENT = [...NG_FORM_MODULE, { from: '@wm/components/input/radioset', name: 'RadiosetComponent' }];
110
- const SELECT_COMPONENT = [...NG_FORM_MODULE, { from: '@wm/components/input/select', name: 'SelectComponent' }];
111
- const SWITCH_COMPONENT = [...NG_FORM_MODULE, { from: '@wm/components/input/switch', name: 'SwitchComponent' }];
112
- const INPUT_CALENDER_COMPONENT = [...NG_FORM_MODULE, { from: '@wm/components/input/text', name: 'InputCalendarComponent' }];
113
- const INPUT_COLOR_COMPONENT = [...NG_FORM_MODULE, { from: '@wm/components/input/text', name: 'InputColorComponent' }];
114
- const INPUT_EMAIL_COMPONENT = [...NG_FORM_MODULE, { from: '@wm/components/input/text', name: 'InputEmailComponent' }];
115
- const INPUT_NUMBER_COMPONENT = [...NG_FORM_MODULE, { from: '@wm/components/input/text', name: 'InputNumberComponent' }];
116
- const INPUT_TEXT_COMPONENT = [...NG_FORM_MODULE, { from: '@wm/components/input/text', name: 'InputTextComponent' }];
117
- const TEXTAREA_COMPONENT = [...NG_FORM_MODULE, { from: '@wm/components/input/textarea', name: 'TextareaComponent' }];
118
- // Data Components
119
- const CARD_ACTIONS_DIRECTIVE = [{ from: '@wm/components/data/card', name: 'CardActionsDirective' }];
120
- const CARD_CONTENT_COMPONENT = [...PARTIAL_CONTAINER, { from: '@wm/components/data/card', name: 'CardContentComponent' }];
121
- const CARD_FOOTER_DIRECTIVE = [{ from: '@wm/components/data/card', name: 'CardFooterDirective' }];
122
- const CARD_COMPONENT = [
123
- ...NGX_DROP_DOWN_MODULE,
124
- ...MENU_COMPONENT,
125
- ...CARD_ACTIONS_DIRECTIVE,
126
- ...CARD_CONTENT_COMPONENT,
127
- ...CARD_FOOTER_DIRECTIVE,
128
- { from: '@wm/components/data/card', name: 'CardComponent' }
129
- ];
130
- const LIST_ITEM_DIRECTIVE = [...PAGINATION_COMPONENT, { from: '@wm/components/data/list', name: 'ListItemDirective' }];
131
- const LIST_COMPONENT = [...PAGINATION_COMPONENT, ...LIST_ITEM_DIRECTIVE, { from: '@wm/components/data/list', name: 'ListComponent' }];
132
- const TABLE_CUD_DIRECTIVE = [{ from: '@wm/components/data/table', name: 'TableCUDDirective' }];
133
- const TABLE_FILTER_SORT_DIRECTIVE = [{ from: '@wm/components/data/table', name: 'TableFilterSortDirective' }];
134
- const TABLE_ACTION_DIRECTIVE = [{ from: '@wm/components/data/table', name: 'TableActionDirective' }];
135
- const TABLE_COLUMN_DIRECTIVE = [{ from: '@wm/components/data/table', name: 'TableColumnDirective' }];
136
- const TABLE_COLUMN_GROUP_DIRECTIVE = [{ from: '@wm/components/data/table', name: 'TableColumnGroupDirective' }];
137
- const TABLE_ROW_DIRECTIVE = [{ from: '@wm/components/data/table', name: 'TableRowDirective' }, ...CONTAINER_DIRECTIVE, ...PARTIAL_CONTAINER];
138
- const TABLE_ROW_ACTION_DIRECTIVE = [{ from: '@wm/components/data/table', name: 'TableRowActionDirective' }, ...BUTTON_COMPONENT, ...ANCHOR_COMPONENT];
139
- const TABLE_COMPONENT = [
140
- ...NG_FORM_MODULE,
141
- ...NG_REACTIVE_FORM_MODULE,
142
- ...PAGINATION_COMPONENT,
143
- ...MENU_COMPONENT,
144
- ...NGX_TOOL_TIP_MODULE,
145
- ...LIST_COMPONENT,
146
- ...TABLE_ACTION_DIRECTIVE,
147
- ...TABLE_CUD_DIRECTIVE,
148
- ...TABLE_FILTER_SORT_DIRECTIVE,
149
- ...TABLE_COLUMN_DIRECTIVE,
150
- ...TABLE_COLUMN_GROUP_DIRECTIVE,
151
- ...TABLE_ROW_DIRECTIVE,
152
- ...TABLE_ROW_ACTION_DIRECTIVE,
153
- { from: '@wm/components/data/table', name: 'TableComponent' }
154
- ];
155
- const LIVE_TABLE_COMPONENT = [{ from: '@wm/components/data/live-table', name: 'LiveTableComponent' }];
156
- // Form Components and Directives
157
- const FORM_WIDGET_DIRECTIVE = [{ from: '@wm/components/data/form', name: 'FormWidgetDirective' }];
158
- const FORM_ACTION_DIRECTIVE = [{ from: '@wm/components/data/form', name: 'FormActionDirective' }];
159
- const FORM_FIELD_DIRECTIVE = [{ from: '@wm/components/data/form', name: 'FormFieldDirective' }];
160
- const LIVE_ACTION_DIRECTIVE = [{ from: '@wm/components/data/form', name: 'LiveActionsDirective' }];
161
- const DEPENDS_ON_DIRECTIVE = [{ from: '@wm/components/data/form', name: 'DependsonDirective' }];
162
- const LIVE_FILTER_DIRECTIVE = [{ from: '@wm/components/data/form', name: 'LiveFilterDirective' }];
163
- const LIVE_FORM_DIRECTIVE = [{ from: '@wm/components/data/form', name: 'LiveFormDirective' }];
164
- const CAPTION_POSITION_DIRECTIVE = [{ from: '@wm/components/input/caption-position', name: 'CaptionPositionDirective' }];
165
- const FORM_COMPONENT = [
166
- ...NG_FORM_MODULE,
167
- ...NG_REACTIVE_FORM_MODULE,
168
- ...FORM_ACTION_DIRECTIVE,
169
- ...FORM_WIDGET_DIRECTIVE,
170
- ...FORM_FIELD_DIRECTIVE,
171
- ...LIVE_ACTION_DIRECTIVE,
172
- ...DEPENDS_ON_DIRECTIVE,
173
- ...LIVE_FILTER_DIRECTIVE,
174
- ...LIVE_FORM_DIRECTIVE,
175
- ...CAPTION_POSITION_DIRECTIVE,
176
- { from: '@wm/components/data/form', name: 'FormComponent' }
177
- ];
178
- const COMPOSITE_DIRECTIVE = [{ from: '@wm/components/input/composite', name: 'CompositeDirective' }, { from: '@wm/components/input/caption-position', name: 'CaptionPositionDirective' }];
179
- // Page Structure Components // TODO: PARTIAL_CONTAINER these needed ? appComponent has imports at root
180
- const FOOTER_DIRECTIVE = [...PARTIAL_CONTAINER, { from: '@wm/components/page/footer', name: 'FooterDirective' }];
181
- const HEADER_COMPONENT = [...PARTIAL_CONTAINER, { from: '@wm/components/page/header', name: 'HeaderComponent' }];
182
- const LEFT_PANEL_DIRECTIVE = [...PARTIAL_CONTAINER, { from: '@wm/components/page/left-panel', name: 'LeftPanelDirective' }];
183
- const RIGHT_PANEL_DIRECTIVE = [...PARTIAL_CONTAINER, { from: '@wm/components/page/right-panel', name: 'RightPanelDirective' }];
184
- const PAGE_CONTENT_COMPONENT = [{ from: '@wm/components/page', name: 'PageContentComponent' }];
185
- const SPA_PAGE_DIRECTIVE = [{ from: '@wm/components/page', name: 'SpaPageDirective' }];
186
- const LAYOUT_DIRECTIVE = [{ from: '@wm/components/page', name: 'LayoutDirective' }];
187
- const CONTENT_COMPONENT = [{ from: '@wm/components/page', name: 'ContentComponent' }];
188
- // Advanced Components
189
- const CAROUSEL_TEMPLATE_DIRECTIVE = [...NGX_CAROUSEL_MODULE, { from: '@wm/components/advanced/carousel', name: 'CarouselTemplateDirective' }];
190
- const CAROUSEL_COMPONENT = [...NGX_CAROUSEL_MODULE, ...CAROUSEL_TEMPLATE_DIRECTIVE, { from: '@wm/components/advanced/carousel', name: 'CarouselDirective' }];
191
- const CHART_COMPONENT = [{ from: '@wm/components/chart', name: 'ChartComponent' }, { from: '@wm/components/base', name: 'RedrawableDirective' }];
192
- const CUSTOM_WIDGET_CONTAINER_DIRECTIVE = [{ from: '@wm/components/advanced/custom', name: 'CustomWidgetContainerDirective' }];
193
- const CUSTOM_WIDGET_DIRECTIVE = [...CUSTOM_WIDGET_CONTAINER_DIRECTIVE, { from: '@wm/components/advanced/custom', name: 'CustomWidgetDirective' }];
194
- const LOGIN_COMPONENT = [{ from: '@wm/components/advanced/login', name: 'LoginComponent' }];
195
- const MARQUEE_DIRECTIVE = [{ from: '@wm/components/advanced/marquee', name: 'MarqueeDirective' }];
196
- const PREFAB_CONTAINER_DIRECTIVE = [{ from: '@wm/components/prefab', name: 'PrefabContainerDirective' }];
197
- const PREFAB_DIRECTIVE = [{ from: '@wm/components/prefab', name: 'PrefabDirective' }];
198
- const RICH_TEXT_EDITOR_COMPONENT = [{ from: '@wm/components/basic/rich-text-editor', name: 'RichTextEditorComponent' }];
199
- const TREE_COMPONENT = [{ from: '@wm/components/basic/tree', name: 'TreeComponent' }];
200
- const ACCESSROLES_DIRECTIVE = [{ from: '@wm/runtime/base', name: 'AccessrolesDirective' }];
201
- const SHOW_IN_DEVICE_DIRECTIVE = [{ from: '@wm/components/base', name: 'ShowInDeviceDirective' }];
202
- const LAZY_LOAD_DIRECTIVE = [{ from: '@wm/components/base', name: 'LazyLoadDirective' }];
203
- const SVG_ICON_DIRECTIVE = [{ from: '@wm/components/base', name: 'SvgIconDirective' }];
204
- // Pipes
205
- const TO_DATE_PIPE = [{ from: '@wm/components/base', name: 'ToDatePipe' }];
206
- const TO_CURRENCY_PIPE = [{ from: '@wm/components/base', name: 'ToCurrencyPipe' }];
207
- const NUMBER_TO_STRING_PIPE = [{ from: '@wm/components/base', name: 'NumberToStringPipe' }];
208
- const STRING_TO_NUMBER_PIPE = [{ from: '@wm/components/base', name: 'StringToNumberPipe' }];
209
- const TIME_FROM_NOW_PIPE = [{ from: '@wm/components/base', name: 'TimeFromNowPipe' }];
210
- const PREFIX_PIPE = [{ from: '@wm/components/base', name: 'PrefixPipe' }];
211
- const SUFFIX_PIPE = [{ from: '@wm/components/base', name: 'SuffixPipe' }];
212
- const CUSTOM_PIPE = [{ from: '@wm/components/base', name: 'CustomPipe' }];
213
- const WIDGET_IMPORTS = new Map([
214
- ['wm-accordion', ACCORDION_DIRECTIVE],
215
- ['wm-accordionpane', ACCORDION_PANE_COMPONENT],
216
- ['wm-anchor', ANCHOR_COMPONENT],
217
- ['wm-alertdialog', ALERT_DIALOG_COMPONENT],
218
- ['wm-audio', AUDIO_COMPONENT],
219
- ['wm-button', BUTTON_COMPONENT],
220
- ['wm-buttongroup', BUTTON_GROUP_DIRECTIVE],
221
- ['wm-breadcrumb', BREAD_CRUMB_COMPONENT],
222
- ['wm-calendar', CALENDAR_COMPONENT],
223
- ['wm-card', CARD_COMPONENT],
224
- ['wm-card-actions', CARD_ACTIONS_DIRECTIVE],
225
- ['wm-card-content', CARD_CONTENT_COMPONENT],
226
- ['wm-card-footer', CARD_FOOTER_DIRECTIVE],
227
- ['wm-carousel', CAROUSEL_COMPONENT],
228
- ['wm-carousel-content', CAROUSEL_TEMPLATE_DIRECTIVE],
229
- ['wm-carousel-template', CAROUSEL_TEMPLATE_DIRECTIVE],
230
- ['wm-chart', CHART_COMPONENT],
231
- ['wm-checkbox', CHECKBOX_COMPONENT],
232
- ['wm-checkboxset', CHECKBOXSET_COMPONENT],
233
- ['wm-chips', CHIPS_COMPONENT],
234
- ['wm-colorpicker', COLOR_PICKER_COMPONENT],
235
- ['wm-confirmdialog', CONFIRM_DIALOG_COMPONENT],
236
- ['wm-container', CONTAINER_DIRECTIVE],
237
- ['wm-param', PARTIAL_PARAM_DIRECTIVE],
238
- ['wm-content', CONTENT_COMPONENT],
239
- ['wm-currency', CURRENCY_COMPONENT],
240
- ['wm-date', DATE_COMPONENT],
241
- ['wm-datetime', DATE_TIME_COMPONENT],
242
- ['wm-dialog', DESIGN_DIALOG_COMPONENT],
243
- ['wm-dialogactions', DIALOGACTIONS_DIRECTIVE],
244
- ['wm-footer', FOOTER_DIRECTIVE],
245
- ['wm-form', FORM_COMPONENT],
246
- ['wm-form-action', FORM_ACTION_DIRECTIVE],
247
- ['wm-form-field', FORM_FIELD_DIRECTIVE],
248
- ['wm-filter-field', LIVE_FILTER_DIRECTIVE],
249
- ['wm-fileupload', FILE_UPLOAD_COMPONENT],
250
- ['wm-gridrow', LAYOUT_GRID_ROW_DIRECTIVE],
251
- ['wm-gridcolumn', LAYOUT_GRID_COLUMN_DIRECTIVE],
252
- ['wm-header', HEADER_COMPONENT],
253
- ['wm-html', HTML_COMPONENT],
254
- ['wm-icon', ICON_COMPONENT],
255
- ['wm-iframe', IFRAME_COMPONENT],
256
- ['wm-iframedialog', IFRAME_DIALOG_COMPONENT],
257
- ['wm-label', LABEL_COMPONENT],
258
- ['wm-layout', LAYOUT_DIRECTIVE],
259
- ['wm-layoutgrid', LAYOUT_GRID_DIRECTIVE],
260
- ['wm-left-panel', LEFT_PANEL_DIRECTIVE],
261
- ['wm-linearlayout', LINEAR_LAYOUT_DIRECTIVE],
262
- ['wm-linearlayoutitem', LINEAR_LAYOUT_ITEM_DIRECTIVE],
263
- ['wm-list', LIST_COMPONENT],
264
- ['wm-livetable', LIVE_TABLE_COMPONENT],
265
- ['wm-login', LOGIN_COMPONENT],
266
- ['wm-custom', CUSTOM_WIDGET_DIRECTIVE],
267
- ['wm-custom-widget', CUSTOM_WIDGET_DIRECTIVE],
268
- ['wm-logindialog', LOGIN_DIALOG_DIRECTIVE],
269
- ['wm-marquee', MARQUEE_DIRECTIVE],
270
- ['wm-menu', MENU_COMPONENT],
271
- ['wm-message', MESSAGE_COMPONENT],
272
- ['wm-nav', NAV_COMPONENT],
273
- ['wm-navbar', NAVBAR_COMPONENT],
274
- ['wm-nav-item', NAV_ITEM_DIRECTIVE],
275
- ['wm-number', NUMBER_COMPONENT],
276
- ['wm-partial', PARTIAL_DIRECTIVE],
277
- ['wm-page', PAGE_COMPONENT],
278
- ['wm-page-content', PAGE_CONTENT_COMPONENT],
279
- ['spa-page-content', SPA_PAGE_DIRECTIVE],
280
- ['wm-pagedialog', PARTIAL_DIALOG_COMPONENT],
281
- ['wm-pagination', PAGINATION_COMPONENT],
282
- ['wm-panel', PANEL_COMPONENT],
283
- ['wm-panel-footer', PANEL_COMPONENT],
284
- ['wm-picture', PICTURE_COMPONENT],
285
- ['wm-popover', POPOVER_COMPONENT],
286
- ['wm-progress-bar', PROGRESS_BAR_COMPONENT],
287
- ['wm-prefab', PREFAB_DIRECTIVE],
288
- ['wm-prefab-container', PREFAB_CONTAINER_DIRECTIVE],
289
- ['wm-progress-circle', PROGRESS_CIRCLE_COMPONENT],
290
- ['wm-radioset', RADIOSET_COMPONENT],
291
- ['wm-rating', RATING_COMPONENT],
292
- ['wm-richtexteditor', RICH_TEXT_EDITOR_COMPONENT],
293
- ['wm-right-panel', RIGHT_PANEL_DIRECTIVE],
294
- ['wm-select', SELECT_COMPONENT],
295
- ['wm-search', SEARCH_COMPONENT],
296
- ['wm-slider', SLIDER_COMPONENT],
297
- ['wm-spinner', SPINNER_COMPONENT],
298
- ['wm-switch', SWITCH_COMPONENT],
299
- ['wm-table', TABLE_COMPONENT],
300
- ['wm-tabs', TABS_COMPONENT],
301
- ['wm-tabpane', TAB_PANE_COMPONENT],
302
- ['wm-text', [...INPUT_TEXT_COMPONENT, ...INPUT_CALENDER_COMPONENT, ...INPUT_COLOR_COMPONENT, ...INPUT_EMAIL_COMPONENT, ...INPUT_NUMBER_COMPONENT]],
303
- ['wm-textarea', TEXTAREA_COMPONENT],
304
- ['wm-time', TIME_COMPONENT],
305
- ['wm-tile', TILE_DIRECTIVE],
306
- ['wm-top-nav', TOP_NAV_DIRECTIVE],
307
- ['wm-tree', TREE_COMPONENT],
308
- ['wm-video', VIDEO_COMPONENT],
309
- ['wm-wizard', WIZARD_COMPONENT],
310
- ['wm-wizardstep', WIZARD_COMPONENT],
311
- ['wm-repeat-template', REPEAT_TEMPLATE_DIRECTIVE],
312
- ['wm-composite', COMPOSITE_DIRECTIVE],
313
- ['accessroles', ACCESSROLES_DIRECTIVE],
314
- ['showindevice', SHOW_IN_DEVICE_DIRECTIVE],
315
- ['lazyload', LAZY_LOAD_DIRECTIVE],
316
- ['svg-icon', SVG_ICON_DIRECTIVE],
317
- ['toDate', TO_DATE_PIPE],
318
- ['toCurrency', TO_CURRENCY_PIPE],
319
- ['numberToString', NUMBER_TO_STRING_PIPE],
320
- ['stringToNumber', STRING_TO_NUMBER_PIPE],
321
- ['timeFromNow', TIME_FROM_NOW_PIPE],
322
- ['prefix', PREFIX_PIPE],
323
- ['suffix', SUFFIX_PIPE],
324
- ['custom', CUSTOM_PIPE],
325
- ]);
7
+ const NG_FORM_MODULE = [{
8
+ from: "@angular/forms",
9
+ name: "FormsModule",
10
+ as: "ngFormsModule"
11
+ }];
12
+ const NG_REACTIVE_FORM_MODULE = [{
13
+ from: "@angular/forms",
14
+ name: "ReactiveFormsModule",
15
+ as: "ngReactiveFormsModule"
16
+ }];
17
+ const NGX_BS_DATE_PICKER = [{
18
+ from: "ngx-bootstrap/datepicker",
19
+ name: "BsDatepickerModule",
20
+ as: "ngx_BsDatepickerModule"
21
+ }];
22
+ const NGX_CAROUSEL_MODULE = [{
23
+ from: "ngx-bootstrap/carousel",
24
+ name: "CarouselModule",
25
+ as: "ngxCarouselModule"
26
+ }];
27
+ const NGX_COLOR_PICKER_DIRECTIVE = [{
28
+ from: "ngx-color-picker",
29
+ name: "ColorPickerDirective",
30
+ as: "ngx_ColorPickerDirective"
31
+ }];
32
+ const NGX_DROP_DOWN_MODULE = [{
33
+ from: "ngx-bootstrap/dropdown",
34
+ name: "BsDropdownModule",
35
+ as: "ngxBsDropdownModule"
36
+ }];
37
+ const NGX_PAGINATION_MODULE = [{
38
+ from: "ngx-bootstrap/pagination",
39
+ name: "PaginationModule",
40
+ as: "ngxPaginationModule"
41
+ }];
42
+ const NGX_POPOVER_MODULE = [{
43
+ from: "ngx-bootstrap/popover",
44
+ name: "PopoverModule",
45
+ as: "ngxPopoverModule"
46
+ }];
47
+ const NGX_TIME_PICKER = [{
48
+ from: "ngx-bootstrap/timepicker",
49
+ name: "TimepickerModule",
50
+ as: "ngx_TimepickerModule"
51
+ }];
52
+ const NGX_TOOL_TIP_MODULE = [{
53
+ from: "ngx-bootstrap/tooltip",
54
+ name: "TooltipModule",
55
+ as: "ngxTooltipModule"
56
+ }];
57
+ const NGX_TYPE_HEAD_MODULE = [{
58
+ from: "ngx-bootstrap/typeahead",
59
+ name: "TypeaheadModule",
60
+ as: "ngxTypeaheadModule"
61
+ }];
62
+ const PROGRESS_BAR_COMPONENT = [{
63
+ from: "@wm/components/basic/progress/progress-bar",
64
+ name: "ProgressBarComponent"
65
+ }];
66
+ const PROGRESS_CIRCLE_COMPONENT = [{
67
+ from: "@wm/components/basic/progress/progress-circle",
68
+ name: "ProgressCircleComponent"
69
+ }];
70
+ const PAGE_COMPONENT = [{
71
+ from: "@wm/components/page",
72
+ name: "PageDirective"
73
+ }];
74
+ const PAGINATION_COMPONENT = [
75
+ ...NG_FORM_MODULE,
76
+ ...NGX_PAGINATION_MODULE,
77
+ {
78
+ from: "@wm/components/data/pagination",
79
+ name: "PaginationComponent"
80
+ }
81
+ ];
82
+ const ANCHOR_COMPONENT = [{
83
+ from: "@wm/components/basic/anchor",
84
+ name: "AnchorComponent"
85
+ }];
86
+ const AUDIO_COMPONENT = [{
87
+ from: "@wm/components/basic/audio",
88
+ name: "AudioComponent"
89
+ }];
90
+ const HTML_COMPONENT = [{
91
+ from: "@wm/components/basic/html",
92
+ name: "HtmlDirective"
93
+ }];
94
+ const ICON_COMPONENT = [{
95
+ from: "@wm/components/basic/icon",
96
+ name: "IconComponent"
97
+ }];
98
+ const IFRAME_COMPONENT = [{
99
+ from: "@wm/components/basic/iframe",
100
+ name: "IframeComponent"
101
+ }];
102
+ const LABEL_COMPONENT = [{
103
+ from: "@wm/components/basic/label",
104
+ name: "LabelDirective"
105
+ }];
106
+ const PICTURE_COMPONENT = [{
107
+ from: "@wm/components/basic/picture",
108
+ name: "PictureDirective"
109
+ }];
110
+ const SEARCH_COMPONENT = [
111
+ ...NG_FORM_MODULE,
112
+ ...NGX_TYPE_HEAD_MODULE,
113
+ {
114
+ from: "@wm/components/basic/search",
115
+ name: "ScrollableDirective"
116
+ },
117
+ {
118
+ from: "@wm/components/basic/search",
119
+ name: "SearchComponent"
120
+ }
121
+ ];
122
+ const SPINNER_COMPONENT = [{
123
+ from: "@wm/components/basic/spinner",
124
+ name: "SpinnerComponent"
125
+ }];
126
+ const VIDEO_COMPONENT = [{
127
+ from: "@wm/components/basic/video",
128
+ name: "VideoComponent"
129
+ }];
130
+ const PARTIAL_DIRECTIVE = [{
131
+ from: "@wm/components/base",
132
+ name: "PartialDirective"
133
+ }];
134
+ const PARTIAL_CONTAINER = [{
135
+ from: "@wm/components/base",
136
+ name: "PartialParamHandlerDirective"
137
+ }, {
138
+ from: "@wm/components/base",
139
+ name: "PartialContainerDirective"
140
+ }];
141
+ const ACCORDION_PANE_COMPONENT = [...PARTIAL_CONTAINER, {
142
+ from: "@wm/components/containers/accordion",
143
+ name: "AccordionPaneComponent"
144
+ }];
145
+ const ACCORDION_DIRECTIVE = [{
146
+ from: "@wm/components/containers/accordion",
147
+ name: "AccordionDirective"
148
+ }];
149
+ const CONTAINER_DIRECTIVE = [...PARTIAL_CONTAINER, {
150
+ from: "@wm/components/base",
151
+ name: "ContainerDirective"
152
+ }];
153
+ const PARTIAL_PARAM_DIRECTIVE = [{
154
+ from: "@wm/components/base",
155
+ name: "PartialParamDirective"
156
+ }];
157
+ const LINEAR_LAYOUT_ITEM_DIRECTIVE = [{
158
+ from: "@wm/components/containers/linear-layout",
159
+ name: "LinearLayoutItemDirective"
160
+ }];
161
+ const LINEAR_LAYOUT_DIRECTIVE = [...LINEAR_LAYOUT_ITEM_DIRECTIVE, {
162
+ from: "@wm/components/containers/linear-layout",
163
+ name: "LinearLayoutDirective"
164
+ }];
165
+ const TAB_PANE_COMPONENT = [...PARTIAL_CONTAINER, {
166
+ from: "@wm/components/containers/tabs",
167
+ name: "TabPaneComponent"
168
+ }];
169
+ const TABS_COMPONENT = [...TAB_PANE_COMPONENT, {
170
+ from: "@wm/components/containers/tabs",
171
+ name: "TabsComponent"
172
+ }];
173
+ const WIZARD_ACTION_DIRECTIVE = [{
174
+ from: "@wm/components/containers/wizard",
175
+ name: "WizardActionDirective"
176
+ }];
177
+ const WIZARD_STEP_DIRECTIVE = [...PARTIAL_CONTAINER, {
178
+ from: "@wm/components/containers/wizard",
179
+ name: "WizardStepComponent"
180
+ }];
181
+ const WIZARD_COMPONENT = [
182
+ ...NG_FORM_MODULE,
183
+ ...WIZARD_ACTION_DIRECTIVE,
184
+ ...WIZARD_STEP_DIRECTIVE,
185
+ {
186
+ from: "@wm/components/containers/wizard",
187
+ name: "WizardComponent"
188
+ }
189
+ ];
190
+ const LAYOUT_GRID_COLUMN_DIRECTIVE = [{
191
+ from: "@wm/components/containers/layout-grid",
192
+ name: "LayoutGridColumnDirective"
193
+ }];
194
+ const LAYOUT_GRID_ROW_DIRECTIVE = [{
195
+ from: "@wm/components/containers/layout-grid",
196
+ name: "LayoutGridRowDirective"
197
+ }];
198
+ const LAYOUT_GRID_DIRECTIVE = [
199
+ ...LAYOUT_GRID_ROW_DIRECTIVE,
200
+ ...LAYOUT_GRID_COLUMN_DIRECTIVE,
201
+ {
202
+ from: "@wm/components/containers/layout-grid",
203
+ name: "LayoutgridDirective"
204
+ }
205
+ ];
206
+ const PANEL_COMPONENT = [...PARTIAL_CONTAINER, {
207
+ from: "@wm/components/containers/panel",
208
+ name: "PanelComponent"
209
+ }];
210
+ const TILE_DIRECTIVE = [{
211
+ from: "@wm/components/containers/tile",
212
+ name: "TileDirective"
213
+ }];
214
+ const REPEAT_TEMPLATE_DIRECTIVE = [{
215
+ from: "@wm/components/base",
216
+ name: "RepeatTemplateDirective"
217
+ }];
218
+ const ALERT_DIALOG_COMPONENT = [{
219
+ from: "@wm/components/dialogs/alert-dialog",
220
+ name: "AlertDialogComponent"
221
+ }];
222
+ const CONFIRM_DIALOG_COMPONENT = [{
223
+ from: "@wm/components/dialogs/confirm-dialog",
224
+ name: "ConfirmDialogComponent"
225
+ }];
226
+ const DESIGN_DIALOG_COMPONENT = [{
227
+ from: "@wm/components/dialogs/design-dialog",
228
+ name: "DialogComponent"
229
+ }];
230
+ const IFRAME_DIALOG_COMPONENT = [{
231
+ from: "@wm/components/dialogs/iframe-dialog",
232
+ name: "IframeDialogComponent"
233
+ }];
234
+ const LOGIN_DIALOG_DIRECTIVE = [{
235
+ from: "@wm/components/dialogs/login-dialog",
236
+ name: "LoginDialogDirective"
237
+ }, ...DESIGN_DIALOG_COMPONENT];
238
+ const PARTIAL_DIALOG_COMPONENT = [{
239
+ from: "@wm/components/dialogs/partial-dialog",
240
+ name: "PartialDialogComponent"
241
+ }, ...CONTAINER_DIRECTIVE];
242
+ const DIALOGACTIONS_DIRECTIVE = [{
243
+ from: "@wm/components/dialogs",
244
+ name: "DialogFooterDirective"
245
+ }];
246
+ const NAV_ITEM_DIRECTIVE = [{
247
+ from: "@wm/components/navigation/menu",
248
+ name: "NavItemDirective"
249
+ }];
250
+ const NAV_COMPONENT = [{
251
+ from: "@wm/components/navigation/menu",
252
+ name: "NavComponent"
253
+ }];
254
+ const NAVIGATION_CONTROL_DIRECTIVE = [{
255
+ from: "@wm/components/navigation/menu",
256
+ name: "NavigationControlDirective"
257
+ }];
258
+ const MENU_DROPDOWN_ITEM_COMPONENT = [{
259
+ from: "@wm/components/navigation/menu",
260
+ name: "MenuDropdownComponent"
261
+ }];
262
+ const MENU_DROPDOWN_COMPONENT = [{
263
+ from: "@wm/components/navigation/menu",
264
+ name: "MenuDropdownComponent"
265
+ }];
266
+ const MENU_COMPONENT = [
267
+ ...NGX_DROP_DOWN_MODULE,
268
+ ...MENU_DROPDOWN_COMPONENT,
269
+ ...MENU_DROPDOWN_ITEM_COMPONENT,
270
+ ...NAVIGATION_CONTROL_DIRECTIVE,
271
+ ...NAV_COMPONENT,
272
+ ...NAV_ITEM_DIRECTIVE,
273
+ {
274
+ from: "@wm/components/navigation/menu",
275
+ name: "MenuComponent"
276
+ }
277
+ ];
278
+ const MESSAGE_COMPONENT = [{
279
+ from: "@wm/components/base",
280
+ name: "MessageComponent"
281
+ }];
282
+ const BREAD_CRUMB_COMPONENT = [...MENU_COMPONENT, {
283
+ from: "@wm/components/navigation/breadcrumb",
284
+ name: "BreadcrumbComponent"
285
+ }];
286
+ const NAVBAR_COMPONENT = [{
287
+ from: "@wm/components/navigation/navbar",
288
+ name: "NavbarComponent"
289
+ }];
290
+ const POPOVER_COMPONENT = [
291
+ ...NGX_POPOVER_MODULE,
292
+ {
293
+ from: "@wm/components/navigation/popover",
294
+ name: "PopoverComponent"
295
+ },
296
+ ...CONTAINER_DIRECTIVE
297
+ ];
298
+ const TOP_NAV_DIRECTIVE = [...PARTIAL_CONTAINER, {
299
+ from: "@wm/components/page/top-nav",
300
+ name: "TopNavDirective"
301
+ }];
302
+ const CALENDAR_COMPONENT = [
303
+ ...NG_FORM_MODULE,
304
+ ...NGX_BS_DATE_PICKER,
305
+ {
306
+ from: "@wm/components/input/calendar",
307
+ name: "CalendarComponent"
308
+ }
309
+ ];
310
+ const CHIPS_COMPONENT = [...SEARCH_COMPONENT, {
311
+ from: "@wm/components/input/chips",
312
+ name: "ChipsComponent"
313
+ }];
314
+ const COLOR_PICKER_COMPONENT = [
315
+ ...NG_FORM_MODULE,
316
+ ...NGX_COLOR_PICKER_DIRECTIVE,
317
+ {
318
+ from: "@wm/components/input/color-picker",
319
+ name: "ColorPickerComponent"
320
+ }
321
+ ];
322
+ const CURRENCY_COMPONENT = [{
323
+ from: "@wm/components/input/currency",
324
+ name: "CurrencyComponent"
325
+ }];
326
+ const DATE_COMPONENT = [
327
+ ...NG_FORM_MODULE,
328
+ ...NGX_BS_DATE_PICKER,
329
+ ...NGX_DROP_DOWN_MODULE,
330
+ {
331
+ from: "@wm/components/input/epoch/date",
332
+ name: "DateComponent"
333
+ }
334
+ ];
335
+ const DATE_TIME_COMPONENT = [
336
+ ...NG_FORM_MODULE,
337
+ ...NGX_BS_DATE_PICKER,
338
+ ...NGX_TIME_PICKER,
339
+ ...NGX_DROP_DOWN_MODULE,
340
+ {
341
+ from: "@wm/components/input/epoch/date-time",
342
+ name: "DatetimeComponent"
343
+ }
344
+ ];
345
+ const TIME_COMPONENT = [
346
+ ...NG_FORM_MODULE,
347
+ ...NGX_BS_DATE_PICKER,
348
+ ...NGX_TIME_PICKER,
349
+ ...NGX_DROP_DOWN_MODULE,
350
+ {
351
+ from: "@wm/components/input/epoch/time",
352
+ name: "TimeComponent"
353
+ }
354
+ ];
355
+ const FILE_UPLOAD_COMPONENT = [{
356
+ from: "@wm/components/input/file-upload",
357
+ name: "FileUploadComponent"
358
+ }];
359
+ const RATING_COMPONENT = [{
360
+ from: "@wm/components/input/rating",
361
+ name: "RatingComponent"
362
+ }];
363
+ const SLIDER_COMPONENT = [...NG_FORM_MODULE, {
364
+ from: "@wm/components/input/slider",
365
+ name: "SliderComponent"
366
+ }];
367
+ const BUTTON_COMPONENT = [...NG_FORM_MODULE, {
368
+ from: "@wm/components/input/button",
369
+ name: "ButtonComponent"
370
+ }];
371
+ const BUTTON_GROUP_DIRECTIVE = [...NG_FORM_MODULE, {
372
+ from: "@wm/components/input/button-group",
373
+ name: "ButtonGroupDirective"
374
+ }];
375
+ const CHECKBOX_COMPONENT = [...NG_FORM_MODULE, {
376
+ from: "@wm/components/input/checkbox",
377
+ name: "CheckboxComponent"
378
+ }];
379
+ const CHECKBOXSET_COMPONENT = [...NG_FORM_MODULE, {
380
+ from: "@wm/components/input/checkboxset",
381
+ name: "CheckboxsetComponent"
382
+ }];
383
+ const NUMBER_COMPONENT = [...NG_FORM_MODULE, {
384
+ from: "@wm/components/input/number",
385
+ name: "NumberComponent"
386
+ }];
387
+ const RADIOSET_COMPONENT = [...NG_FORM_MODULE, {
388
+ from: "@wm/components/input/radioset",
389
+ name: "RadiosetComponent"
390
+ }];
391
+ const SELECT_COMPONENT = [...NG_FORM_MODULE, {
392
+ from: "@wm/components/input/select",
393
+ name: "SelectComponent"
394
+ }];
395
+ const SWITCH_COMPONENT = [...NG_FORM_MODULE, {
396
+ from: "@wm/components/input/switch",
397
+ name: "SwitchComponent"
398
+ }];
399
+ const INPUT_CALENDER_COMPONENT = [...NG_FORM_MODULE, {
400
+ from: "@wm/components/input/text",
401
+ name: "InputCalendarComponent"
402
+ }];
403
+ const INPUT_COLOR_COMPONENT = [...NG_FORM_MODULE, {
404
+ from: "@wm/components/input/text",
405
+ name: "InputColorComponent"
406
+ }];
407
+ const INPUT_EMAIL_COMPONENT = [...NG_FORM_MODULE, {
408
+ from: "@wm/components/input/text",
409
+ name: "InputEmailComponent"
410
+ }];
411
+ const INPUT_NUMBER_COMPONENT = [...NG_FORM_MODULE, {
412
+ from: "@wm/components/input/text",
413
+ name: "InputNumberComponent"
414
+ }];
415
+ const INPUT_TEXT_COMPONENT = [...NG_FORM_MODULE, {
416
+ from: "@wm/components/input/text",
417
+ name: "InputTextComponent"
418
+ }];
419
+ const TEXTAREA_COMPONENT = [...NG_FORM_MODULE, {
420
+ from: "@wm/components/input/textarea",
421
+ name: "TextareaComponent"
422
+ }];
423
+ const CARD_ACTIONS_DIRECTIVE = [{
424
+ from: "@wm/components/data/card",
425
+ name: "CardActionsDirective"
426
+ }];
427
+ const CARD_CONTENT_COMPONENT = [...PARTIAL_CONTAINER, {
428
+ from: "@wm/components/data/card",
429
+ name: "CardContentComponent"
430
+ }];
431
+ const CARD_FOOTER_DIRECTIVE = [{
432
+ from: "@wm/components/data/card",
433
+ name: "CardFooterDirective"
434
+ }];
435
+ const CARD_COMPONENT = [
436
+ ...NGX_DROP_DOWN_MODULE,
437
+ ...MENU_COMPONENT,
438
+ ...CARD_ACTIONS_DIRECTIVE,
439
+ ...CARD_CONTENT_COMPONENT,
440
+ ...CARD_FOOTER_DIRECTIVE,
441
+ {
442
+ from: "@wm/components/data/card",
443
+ name: "CardComponent"
444
+ }
445
+ ];
446
+ const LIST_ITEM_DIRECTIVE = [...PAGINATION_COMPONENT, {
447
+ from: "@wm/components/data/list",
448
+ name: "ListItemDirective"
449
+ }];
450
+ const LIST_COMPONENT = [
451
+ ...PAGINATION_COMPONENT,
452
+ ...LIST_ITEM_DIRECTIVE,
453
+ {
454
+ from: "@wm/components/data/list",
455
+ name: "ListComponent"
456
+ }
457
+ ];
458
+ const TABLE_CUD_DIRECTIVE = [{
459
+ from: "@wm/components/data/table",
460
+ name: "TableCUDDirective"
461
+ }];
462
+ const TABLE_FILTER_SORT_DIRECTIVE = [{
463
+ from: "@wm/components/data/table",
464
+ name: "TableFilterSortDirective"
465
+ }];
466
+ const TABLE_ACTION_DIRECTIVE = [{
467
+ from: "@wm/components/data/table",
468
+ name: "TableActionDirective"
469
+ }];
470
+ const TABLE_COLUMN_DIRECTIVE = [{
471
+ from: "@wm/components/data/table",
472
+ name: "TableColumnDirective"
473
+ }];
474
+ const TABLE_COLUMN_GROUP_DIRECTIVE = [{
475
+ from: "@wm/components/data/table",
476
+ name: "TableColumnGroupDirective"
477
+ }];
478
+ const TABLE_ROW_DIRECTIVE = [
479
+ {
480
+ from: "@wm/components/data/table",
481
+ name: "TableRowDirective"
482
+ },
483
+ ...CONTAINER_DIRECTIVE,
484
+ ...PARTIAL_CONTAINER
485
+ ];
486
+ const TABLE_ROW_ACTION_DIRECTIVE = [
487
+ {
488
+ from: "@wm/components/data/table",
489
+ name: "TableRowActionDirective"
490
+ },
491
+ ...BUTTON_COMPONENT,
492
+ ...ANCHOR_COMPONENT
493
+ ];
494
+ const TABLE_COMPONENT = [
495
+ ...NG_FORM_MODULE,
496
+ ...NG_REACTIVE_FORM_MODULE,
497
+ ...PAGINATION_COMPONENT,
498
+ ...MENU_COMPONENT,
499
+ ...NGX_TOOL_TIP_MODULE,
500
+ ...LIST_COMPONENT,
501
+ ...TABLE_ACTION_DIRECTIVE,
502
+ ...TABLE_CUD_DIRECTIVE,
503
+ ...TABLE_FILTER_SORT_DIRECTIVE,
504
+ ...TABLE_COLUMN_DIRECTIVE,
505
+ ...TABLE_COLUMN_GROUP_DIRECTIVE,
506
+ ...TABLE_ROW_DIRECTIVE,
507
+ ...TABLE_ROW_ACTION_DIRECTIVE,
508
+ {
509
+ from: "@wm/components/data/table",
510
+ name: "TableComponent"
511
+ }
512
+ ];
513
+ const LIVE_TABLE_COMPONENT = [{
514
+ from: "@wm/components/data/live-table",
515
+ name: "LiveTableComponent"
516
+ }];
517
+ const FORM_WIDGET_DIRECTIVE = [{
518
+ from: "@wm/components/data/form",
519
+ name: "FormWidgetDirective"
520
+ }];
521
+ const FORM_ACTION_DIRECTIVE = [{
522
+ from: "@wm/components/data/form",
523
+ name: "FormActionDirective"
524
+ }];
525
+ const FORM_FIELD_DIRECTIVE = [{
526
+ from: "@wm/components/data/form",
527
+ name: "FormFieldDirective"
528
+ }];
529
+ const LIVE_ACTION_DIRECTIVE = [{
530
+ from: "@wm/components/data/form",
531
+ name: "LiveActionsDirective"
532
+ }];
533
+ const DEPENDS_ON_DIRECTIVE = [{
534
+ from: "@wm/components/data/form",
535
+ name: "DependsonDirective"
536
+ }];
537
+ const LIVE_FILTER_DIRECTIVE = [{
538
+ from: "@wm/components/data/form",
539
+ name: "LiveFilterDirective"
540
+ }];
541
+ const LIVE_FORM_DIRECTIVE = [{
542
+ from: "@wm/components/data/form",
543
+ name: "LiveFormDirective"
544
+ }];
545
+ const CAPTION_POSITION_DIRECTIVE = [{
546
+ from: "@wm/components/input/caption-position",
547
+ name: "CaptionPositionDirective"
548
+ }];
549
+ const FORM_COMPONENT = [
550
+ ...NG_FORM_MODULE,
551
+ ...NG_REACTIVE_FORM_MODULE,
552
+ ...FORM_ACTION_DIRECTIVE,
553
+ ...FORM_WIDGET_DIRECTIVE,
554
+ ...FORM_FIELD_DIRECTIVE,
555
+ ...LIVE_ACTION_DIRECTIVE,
556
+ ...DEPENDS_ON_DIRECTIVE,
557
+ ...LIVE_FILTER_DIRECTIVE,
558
+ ...LIVE_FORM_DIRECTIVE,
559
+ ...CAPTION_POSITION_DIRECTIVE,
560
+ {
561
+ from: "@wm/components/data/form",
562
+ name: "FormComponent"
563
+ }
564
+ ];
565
+ const COMPOSITE_DIRECTIVE = [{
566
+ from: "@wm/components/input/composite",
567
+ name: "CompositeDirective"
568
+ }, {
569
+ from: "@wm/components/input/caption-position",
570
+ name: "CaptionPositionDirective"
571
+ }];
572
+ const FOOTER_DIRECTIVE = [...PARTIAL_CONTAINER, {
573
+ from: "@wm/components/page/footer",
574
+ name: "FooterDirective"
575
+ }];
576
+ const HEADER_COMPONENT = [...PARTIAL_CONTAINER, {
577
+ from: "@wm/components/page/header",
578
+ name: "HeaderComponent"
579
+ }];
580
+ const LEFT_PANEL_DIRECTIVE = [...PARTIAL_CONTAINER, {
581
+ from: "@wm/components/page/left-panel",
582
+ name: "LeftPanelDirective"
583
+ }];
584
+ const RIGHT_PANEL_DIRECTIVE = [...PARTIAL_CONTAINER, {
585
+ from: "@wm/components/page/right-panel",
586
+ name: "RightPanelDirective"
587
+ }];
588
+ const PAGE_CONTENT_COMPONENT = [{
589
+ from: "@wm/components/page",
590
+ name: "PageContentComponent"
591
+ }];
592
+ const SPA_PAGE_DIRECTIVE = [{
593
+ from: "@wm/components/page",
594
+ name: "SpaPageDirective"
595
+ }];
596
+ const LAYOUT_DIRECTIVE = [{
597
+ from: "@wm/components/page",
598
+ name: "LayoutDirective"
599
+ }];
600
+ const CONTENT_COMPONENT = [{
601
+ from: "@wm/components/page",
602
+ name: "ContentComponent"
603
+ }];
604
+ const CAROUSEL_TEMPLATE_DIRECTIVE = [...NGX_CAROUSEL_MODULE, {
605
+ from: "@wm/components/advanced/carousel",
606
+ name: "CarouselTemplateDirective"
607
+ }];
608
+ const CAROUSEL_COMPONENT = [
609
+ ...NGX_CAROUSEL_MODULE,
610
+ ...CAROUSEL_TEMPLATE_DIRECTIVE,
611
+ {
612
+ from: "@wm/components/advanced/carousel",
613
+ name: "CarouselDirective"
614
+ }
615
+ ];
616
+ const CHART_COMPONENT = [{
617
+ from: "@wm/components/chart",
618
+ name: "ChartComponent"
619
+ }, {
620
+ from: "@wm/components/base",
621
+ name: "RedrawableDirective"
622
+ }];
623
+ const CUSTOM_WIDGET_DIRECTIVE = [...[{
624
+ from: "@wm/components/advanced/custom",
625
+ name: "CustomWidgetContainerDirective"
626
+ }], {
627
+ from: "@wm/components/advanced/custom",
628
+ name: "CustomWidgetDirective"
629
+ }];
630
+ const LOGIN_COMPONENT = [{
631
+ from: "@wm/components/advanced/login",
632
+ name: "LoginComponent"
633
+ }];
634
+ const MARQUEE_DIRECTIVE = [{
635
+ from: "@wm/components/advanced/marquee",
636
+ name: "MarqueeDirective"
637
+ }];
638
+ const PREFAB_CONTAINER_DIRECTIVE = [{
639
+ from: "@wm/components/prefab",
640
+ name: "PrefabContainerDirective"
641
+ }];
642
+ const PREFAB_DIRECTIVE = [{
643
+ from: "@wm/components/prefab",
644
+ name: "PrefabDirective"
645
+ }];
646
+ const RICH_TEXT_EDITOR_COMPONENT = [{
647
+ from: "@wm/components/basic/rich-text-editor",
648
+ name: "RichTextEditorComponent"
649
+ }];
650
+ const TREE_COMPONENT = [{
651
+ from: "@wm/components/basic/tree",
652
+ name: "TreeComponent"
653
+ }];
654
+ const ACCESSROLES_DIRECTIVE = [{
655
+ from: "@wm/runtime/base",
656
+ name: "AccessrolesDirective"
657
+ }];
658
+ const SHOW_IN_DEVICE_DIRECTIVE = [{
659
+ from: "@wm/components/base",
660
+ name: "ShowInDeviceDirective"
661
+ }];
662
+ const LAZY_LOAD_DIRECTIVE = [{
663
+ from: "@wm/components/base",
664
+ name: "LazyLoadDirective"
665
+ }];
666
+ const SVG_ICON_DIRECTIVE = [{
667
+ from: "@wm/components/base",
668
+ name: "SvgIconDirective"
669
+ }];
670
+ const TO_DATE_PIPE = [{
671
+ from: "@wm/components/base",
672
+ name: "ToDatePipe"
673
+ }];
674
+ const TO_CURRENCY_PIPE = [{
675
+ from: "@wm/components/base",
676
+ name: "ToCurrencyPipe"
677
+ }];
678
+ const NUMBER_TO_STRING_PIPE = [{
679
+ from: "@wm/components/base",
680
+ name: "NumberToStringPipe"
681
+ }];
682
+ const STRING_TO_NUMBER_PIPE = [{
683
+ from: "@wm/components/base",
684
+ name: "StringToNumberPipe"
685
+ }];
686
+ const TIME_FROM_NOW_PIPE = [{
687
+ from: "@wm/components/base",
688
+ name: "TimeFromNowPipe"
689
+ }];
690
+ const PREFIX_PIPE = [{
691
+ from: "@wm/components/base",
692
+ name: "PrefixPipe"
693
+ }];
694
+ const SUFFIX_PIPE = [{
695
+ from: "@wm/components/base",
696
+ name: "SuffixPipe"
697
+ }];
698
+ const CUSTOM_PIPE = [{
699
+ from: "@wm/components/base",
700
+ name: "CustomPipe"
701
+ }];
702
+ const WIDGET_IMPORTS = /* @__PURE__ */ new Map([
703
+ ["wm-accordion", ACCORDION_DIRECTIVE],
704
+ ["wm-accordionpane", ACCORDION_PANE_COMPONENT],
705
+ ["wm-anchor", ANCHOR_COMPONENT],
706
+ ["wm-alertdialog", ALERT_DIALOG_COMPONENT],
707
+ ["wm-audio", AUDIO_COMPONENT],
708
+ ["wm-button", BUTTON_COMPONENT],
709
+ ["wm-buttongroup", BUTTON_GROUP_DIRECTIVE],
710
+ ["wm-breadcrumb", BREAD_CRUMB_COMPONENT],
711
+ ["wm-calendar", CALENDAR_COMPONENT],
712
+ ["wm-card", CARD_COMPONENT],
713
+ ["wm-card-actions", CARD_ACTIONS_DIRECTIVE],
714
+ ["wm-card-content", CARD_CONTENT_COMPONENT],
715
+ ["wm-card-footer", CARD_FOOTER_DIRECTIVE],
716
+ ["wm-carousel", CAROUSEL_COMPONENT],
717
+ ["wm-carousel-content", CAROUSEL_TEMPLATE_DIRECTIVE],
718
+ ["wm-carousel-template", CAROUSEL_TEMPLATE_DIRECTIVE],
719
+ ["wm-chart", CHART_COMPONENT],
720
+ ["wm-checkbox", CHECKBOX_COMPONENT],
721
+ ["wm-checkboxset", CHECKBOXSET_COMPONENT],
722
+ ["wm-chips", CHIPS_COMPONENT],
723
+ ["wm-colorpicker", COLOR_PICKER_COMPONENT],
724
+ ["wm-confirmdialog", CONFIRM_DIALOG_COMPONENT],
725
+ ["wm-container", CONTAINER_DIRECTIVE],
726
+ ["wm-param", PARTIAL_PARAM_DIRECTIVE],
727
+ ["wm-content", CONTENT_COMPONENT],
728
+ ["wm-currency", CURRENCY_COMPONENT],
729
+ ["wm-date", DATE_COMPONENT],
730
+ ["wm-datetime", DATE_TIME_COMPONENT],
731
+ ["wm-dialog", DESIGN_DIALOG_COMPONENT],
732
+ ["wm-dialogactions", DIALOGACTIONS_DIRECTIVE],
733
+ ["wm-footer", FOOTER_DIRECTIVE],
734
+ ["wm-form", FORM_COMPONENT],
735
+ ["wm-form-action", FORM_ACTION_DIRECTIVE],
736
+ ["wm-form-field", FORM_FIELD_DIRECTIVE],
737
+ ["wm-filter-field", LIVE_FILTER_DIRECTIVE],
738
+ ["wm-fileupload", FILE_UPLOAD_COMPONENT],
739
+ ["wm-gridrow", LAYOUT_GRID_ROW_DIRECTIVE],
740
+ ["wm-gridcolumn", LAYOUT_GRID_COLUMN_DIRECTIVE],
741
+ ["wm-header", HEADER_COMPONENT],
742
+ ["wm-html", HTML_COMPONENT],
743
+ ["wm-icon", ICON_COMPONENT],
744
+ ["wm-iframe", IFRAME_COMPONENT],
745
+ ["wm-iframedialog", IFRAME_DIALOG_COMPONENT],
746
+ ["wm-label", LABEL_COMPONENT],
747
+ ["wm-layout", LAYOUT_DIRECTIVE],
748
+ ["wm-layoutgrid", LAYOUT_GRID_DIRECTIVE],
749
+ ["wm-left-panel", LEFT_PANEL_DIRECTIVE],
750
+ ["wm-linearlayout", LINEAR_LAYOUT_DIRECTIVE],
751
+ ["wm-linearlayoutitem", LINEAR_LAYOUT_ITEM_DIRECTIVE],
752
+ ["wm-list", LIST_COMPONENT],
753
+ ["wm-livetable", LIVE_TABLE_COMPONENT],
754
+ ["wm-login", LOGIN_COMPONENT],
755
+ ["wm-custom", CUSTOM_WIDGET_DIRECTIVE],
756
+ ["wm-custom-widget", CUSTOM_WIDGET_DIRECTIVE],
757
+ ["wm-logindialog", LOGIN_DIALOG_DIRECTIVE],
758
+ ["wm-marquee", MARQUEE_DIRECTIVE],
759
+ ["wm-menu", MENU_COMPONENT],
760
+ ["wm-message", MESSAGE_COMPONENT],
761
+ ["wm-nav", NAV_COMPONENT],
762
+ ["wm-navbar", NAVBAR_COMPONENT],
763
+ ["wm-nav-item", NAV_ITEM_DIRECTIVE],
764
+ ["wm-number", NUMBER_COMPONENT],
765
+ ["wm-partial", PARTIAL_DIRECTIVE],
766
+ ["wm-page", PAGE_COMPONENT],
767
+ ["wm-page-content", PAGE_CONTENT_COMPONENT],
768
+ ["spa-page-content", SPA_PAGE_DIRECTIVE],
769
+ ["wm-pagedialog", PARTIAL_DIALOG_COMPONENT],
770
+ ["wm-pagination", PAGINATION_COMPONENT],
771
+ ["wm-panel", PANEL_COMPONENT],
772
+ ["wm-panel-footer", PANEL_COMPONENT],
773
+ ["wm-picture", PICTURE_COMPONENT],
774
+ ["wm-popover", POPOVER_COMPONENT],
775
+ ["wm-progress-bar", PROGRESS_BAR_COMPONENT],
776
+ ["wm-prefab", PREFAB_DIRECTIVE],
777
+ ["wm-prefab-container", PREFAB_CONTAINER_DIRECTIVE],
778
+ ["wm-progress-circle", PROGRESS_CIRCLE_COMPONENT],
779
+ ["wm-radioset", RADIOSET_COMPONENT],
780
+ ["wm-rating", RATING_COMPONENT],
781
+ ["wm-richtexteditor", RICH_TEXT_EDITOR_COMPONENT],
782
+ ["wm-right-panel", RIGHT_PANEL_DIRECTIVE],
783
+ ["wm-select", SELECT_COMPONENT],
784
+ ["wm-search", SEARCH_COMPONENT],
785
+ ["wm-slider", SLIDER_COMPONENT],
786
+ ["wm-spinner", SPINNER_COMPONENT],
787
+ ["wm-switch", SWITCH_COMPONENT],
788
+ ["wm-table", TABLE_COMPONENT],
789
+ ["wm-tabs", TABS_COMPONENT],
790
+ ["wm-tabpane", TAB_PANE_COMPONENT],
791
+ ["wm-text", [
792
+ ...INPUT_TEXT_COMPONENT,
793
+ ...INPUT_CALENDER_COMPONENT,
794
+ ...INPUT_COLOR_COMPONENT,
795
+ ...INPUT_EMAIL_COMPONENT,
796
+ ...INPUT_NUMBER_COMPONENT
797
+ ]],
798
+ ["wm-textarea", TEXTAREA_COMPONENT],
799
+ ["wm-time", TIME_COMPONENT],
800
+ ["wm-tile", TILE_DIRECTIVE],
801
+ ["wm-top-nav", TOP_NAV_DIRECTIVE],
802
+ ["wm-tree", TREE_COMPONENT],
803
+ ["wm-video", VIDEO_COMPONENT],
804
+ ["wm-wizard", WIZARD_COMPONENT],
805
+ ["wm-wizardstep", WIZARD_COMPONENT],
806
+ ["wm-repeat-template", REPEAT_TEMPLATE_DIRECTIVE],
807
+ ["wm-composite", COMPOSITE_DIRECTIVE],
808
+ ["accessroles", ACCESSROLES_DIRECTIVE],
809
+ ["showindevice", SHOW_IN_DEVICE_DIRECTIVE],
810
+ ["lazyload", LAZY_LOAD_DIRECTIVE],
811
+ ["svg-icon", SVG_ICON_DIRECTIVE],
812
+ ["toDate", TO_DATE_PIPE],
813
+ ["toCurrency", TO_CURRENCY_PIPE],
814
+ ["numberToString", NUMBER_TO_STRING_PIPE],
815
+ ["stringToNumber", STRING_TO_NUMBER_PIPE],
816
+ ["timeFromNow", TIME_FROM_NOW_PIPE],
817
+ ["prefix", PREFIX_PIPE],
818
+ ["suffix", SUFFIX_PIPE],
819
+ ["custom", CUSTOM_PIPE]
820
+ ]);
821
+ const CSS_REGEX = {
822
+ COMMENTS_FORMAT: /\/\*((?!\*\/).|\n)+\*\//g,
823
+ SELECTOR_FORMAT: /[^\{\}]*\{/gi,
824
+ SELECTOR_EXCLUDE_FORMAT: /(@keyframes|@media|@font-face|@comment[0-9]+|from|to|[0-9]+%)\b/i
825
+ };
826
+ const isString = (v) => typeof v === "string";
827
+ const OVERRIDES = {
828
+ "accessroles": "*accessroles",
829
+ "ng-if": "*ngIf",
830
+ "showindevice": "*wmShowInDevice",
831
+ "ng-class": "[ngClass]",
832
+ "data-ng-class": "[ngClass]",
833
+ "data-ng-src": "src",
834
+ "ng-src": "src",
835
+ "data-ng-href": "href",
836
+ "ng-href": "href",
837
+ "ng-disabled": "disabled",
838
+ "data-ng-disabled": "disabled",
839
+ "ng-model": "[ngModelOptions]=\"{standalone: true}\" [(ngModel)]"
840
+ };
841
+ const getBoundToExpr = (value) => {
842
+ if (!value) return null;
843
+ value = value.trim();
844
+ if (value.startsWith("bind:")) return value.substr(5);
845
+ };
846
+ const quoteAttr = (v) => {
847
+ return ("" + v).replace(/&/g, "&amp;").replace(/'/g, "&apos;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
848
+ };
849
+ const registry = /* @__PURE__ */ new Map();
850
+ const htmlParser = new compiler.HtmlParser();
851
+ const empty = () => "";
852
+ const noSpan = {};
853
+ const createCompilerElement = (name) => {
854
+ return new compiler.Element(name, [], [], [], false, noSpan, noSpan, noSpan, false);
855
+ };
856
+ const isEvent = (name) => name[0] === "o" && name[1] === "n" && name[2] === "-";
857
+ const getEventName = (key) => key.substr(3);
858
+ const processBinding = (attr, expr) => [`${attr.name}.bind`, quoteAttr(expr)];
859
+ const processEvent = (attr) => {
860
+ return [`${getEventName(attr.name)}.event`, attr.value];
861
+ };
862
+ const wrapWithApos = (val) => {
863
+ return `&apos;${val.replace(/&apos/g, "&quot").replace(/&quot/g, "\\&quot")}&apos;`;
864
+ };
865
+ const ELE_PREFIX = ".wm-app";
866
+ const processAttr = (attr) => {
867
+ let overridden = OVERRIDES[attr.name];
868
+ const value = attr.valueSpan ? attr.value : void 0;
869
+ if (overridden) {
870
+ if (attr.name === "accessroles" || attr.name === "showindevice") return [overridden, `'${value}'`];
871
+ return [overridden, quoteAttr(value)];
872
+ }
873
+ if (isEvent(attr.name)) return processEvent(attr);
874
+ const boundExpr = getBoundToExpr(attr.value);
875
+ if (boundExpr) return processBinding(attr, boundExpr);
876
+ return [attr.name, quoteAttr(value)];
877
+ };
878
+ const getDataSource = (dataSetExpr) => {
879
+ const parts = dataSetExpr.split(".");
880
+ if (parts[0] === "Variables" || parts[0] === "Widgets") return `${parts[0]}.${parts[1]}`;
881
+ if (parts[0] === "App" && parts[1] === "activePage" && parts[2]?.includes("Variables") && parts[3]) return `App.activePage.${parts[2]}.${parts[3]}`;
882
+ };
883
+ const widgetChildAttrs = (() => {
884
+ const childAttrs = /* @__PURE__ */ new Map();
885
+ const validChildAttrs = [`required`];
886
+ return {
887
+ set: (attrs) => {
888
+ attrs.forEach((val, key) => {
889
+ validChildAttrs.includes(key) && childAttrs.set(key, val);
890
+ });
891
+ },
892
+ get: (attrs) => {
893
+ const fltrAttrs = /* @__PURE__ */ new Map();
894
+ childAttrs.forEach((val, key) => {
895
+ !attrs.get(key) && fltrAttrs.set(key, val);
896
+ });
897
+ return fltrAttrs;
898
+ },
899
+ clear: () => {
900
+ childAttrs.clear();
901
+ }
902
+ };
903
+ })();
904
+ const setChildAttrs = (attrs) => {
905
+ widgetChildAttrs.set(attrs);
906
+ return "";
907
+ };
908
+ const getChildAttrs = (attrs) => {
909
+ return getAttrMarkup(widgetChildAttrs.get(attrs));
910
+ };
911
+ const clearChildAttrs = () => {
912
+ widgetChildAttrs.clear();
913
+ return "";
914
+ };
915
+ const getFormMarkupAttr = (attrs) => {
916
+ if (attrs.get("datavalue.bind")) {
917
+ const onDataValueBinding = getDataSource(attrs.get("datavalue.bind"));
918
+ attrs.set("datavaluesource.bind", onDataValueBinding);
919
+ }
920
+ return getAttrMarkup(attrs);
921
+ };
922
+ const getAttrMap = (attrs) => {
923
+ const attrMap = /* @__PURE__ */ new Map();
924
+ attrs.forEach((attr) => {
925
+ let [attrName, attrValue] = processAttr(attr);
926
+ attrMap.set(attrName, attrValue);
927
+ });
928
+ if (attrMap.get("dataset.bind")) {
929
+ const dataSource = getDataSource(attrMap.get("dataset.bind"));
930
+ if (dataSource) attrMap.set("datasource.bind", dataSource);
931
+ }
932
+ return attrMap;
933
+ };
934
+ const getAttrMarkup = (attrs) => {
935
+ let attrMarkup = "";
936
+ attrs.forEach((v, k) => {
937
+ attrMarkup += ` ${k}`;
938
+ if (v) {
939
+ v = v.trim();
940
+ if (k === "[ngClass]" && v.startsWith("{")) v = v.replace(/"/g, `'`);
941
+ if (k === "show.bind" && attrs.get("deferload") === "true") v = v + `" *lazyLoad="${wrapWithApos(v)}`;
942
+ attrMarkup += `="${v}"`;
943
+ }
944
+ });
945
+ return attrMarkup;
946
+ };
947
+ const getRequiredProviders = (nodeDef, providers, nodeAttrs) => {
948
+ if (!nodeDef.requires) return [];
949
+ let requires = nodeDef.requires;
950
+ if (isString(requires)) requires = [requires];
951
+ if (!Array.isArray(requires)) return [];
952
+ return requires.map((require) => {
953
+ for (let i = nodeAttrs.length - 1; i >= 0; i--) if (nodeAttrs[i].name === "tableName") return nodeDef[nodeAttrs[i].value];
954
+ for (let i = providers.length - 1; i >= 0; i--) if (providers[i].nodeName === require) return providers[i].provide;
955
+ });
956
+ };
957
+ const DIMENSION_PROPS = [
958
+ "padding",
959
+ "borderwidth",
960
+ "margin"
961
+ ];
962
+ const SEPARATOR = " ";
963
+ const UNSET = "unset";
964
+ const setDimensionProp = (cssObj, key, nv) => {
965
+ let cssKey = key, val, top, right, bottom, left, suffix = "";
966
+ function setVal(prop, value) {
967
+ if (value === UNSET) value = "";
968
+ cssObj[cssKey + prop + suffix] = value;
969
+ }
970
+ if (key === "borderwidth") {
971
+ suffix = "width";
972
+ cssKey = "border";
973
+ }
974
+ val = nv;
975
+ if (val.indexOf(UNSET) !== -1) {
976
+ val = val.split(SEPARATOR);
977
+ top = val[0];
978
+ right = val[1] || val[0];
979
+ bottom = val[2] || val[0];
980
+ left = val[3] || val[1] || val[0];
981
+ setVal("top", top);
982
+ setVal("right", right);
983
+ setVal("bottom", bottom);
984
+ setVal("left", left);
985
+ } else {
986
+ if (key === "borderwidth") cssKey = "borderwidth";
987
+ cssObj[cssKey] = nv;
988
+ }
989
+ };
990
+ const processDimensionAttributes = (attrMap) => {
991
+ Array.from(attrMap.keys()).forEach((attrKey) => {
992
+ if (DIMENSION_PROPS.includes(attrKey)) {
993
+ const cssObj = {}, attrValue = attrMap.get(attrKey);
994
+ attrMap.delete(attrKey);
995
+ setDimensionProp(cssObj, attrKey, attrValue);
996
+ Object.keys(cssObj).forEach((key) => {
997
+ if (cssObj[key]) attrMap.set(key, cssObj[key]);
998
+ });
999
+ }
1000
+ });
1001
+ };
1002
+ const getNodeName = (name) => name.replace(":svg:svg", "svg").replace(":svg:", "svg:");
1003
+ const processNode = (node, importCollector, providers) => {
1004
+ const nodeDef = registry.get(node.name);
1005
+ let pre, post, template;
1006
+ if (nodeDef) {
1007
+ pre = nodeDef.pre || empty;
1008
+ post = nodeDef.post || empty;
1009
+ template = nodeDef.template || empty;
1010
+ }
1011
+ let markup = "";
1012
+ let attrMap;
1013
+ let requiredProviders;
1014
+ let shared;
1015
+ if (!providers) providers = [];
1016
+ if (node instanceof compiler.Element) {
1017
+ let provideInfo;
1018
+ if (nodeDef) {
1019
+ requiredProviders = getRequiredProviders(nodeDef, providers, node.attrs);
1020
+ shared = /* @__PURE__ */ new Map();
1021
+ template(node, shared, ...requiredProviders);
1022
+ }
1023
+ attrMap = getAttrMap(node.attrs);
1024
+ processDimensionAttributes(attrMap);
1025
+ const nodeName = getNodeName(node.name);
1026
+ if (nodeDef) {
1027
+ markup = pre(attrMap, shared, ...requiredProviders);
1028
+ if (nodeDef.provide) {
1029
+ provideInfo = {
1030
+ nodeName: node.name,
1031
+ provide: lodashEs.isFunction(nodeDef.provide) ? nodeDef.provide(attrMap, shared, ...requiredProviders) : nodeDef.provide
1032
+ };
1033
+ if (node.name === "wm-table") {
1034
+ const tableColNodeDefn = registry.get("wm-table-column");
1035
+ tableColNodeDefn[lodashEs.find(node.attrs, (el) => el.name === "name").value + provideInfo.provide.get("table_reference")] = provideInfo.provide;
1036
+ registry.set("wm-table-column", tableColNodeDefn);
1037
+ }
1038
+ providers.push(provideInfo);
1039
+ }
1040
+ } else markup = `<${nodeName} ${getAttrMarkup(attrMap)}>`;
1041
+ node.children.forEach((child) => {
1042
+ if (child.attrs) {
1043
+ let showInDeviceAttr, accessRolesAttr, deferLoadAttr, showAttr;
1044
+ child.attrs.forEach(function(attr) {
1045
+ if (attr.name === "showindevice") {
1046
+ showInDeviceAttr = attr;
1047
+ importCollector(WIDGET_IMPORTS.get("showindevice"));
1048
+ } else if (attr.name === "accessroles") {
1049
+ accessRolesAttr = attr;
1050
+ importCollector(WIDGET_IMPORTS.get("accessroles"));
1051
+ } else if (attr.name === "deferload") {
1052
+ deferLoadAttr = attr;
1053
+ importCollector(WIDGET_IMPORTS.get("lazyload"));
1054
+ } else if (attr.name === "show") showAttr = attr;
1055
+ });
1056
+ if (showInDeviceAttr && accessRolesAttr || showInDeviceAttr && deferLoadAttr || accessRolesAttr && deferLoadAttr) {
1057
+ const showInDeviceContainer = showInDeviceAttr ? createCompilerElement("ng-container") : "";
1058
+ const accessRolesContainer = accessRolesAttr ? createCompilerElement("ng-container") : "";
1059
+ const deferLoadContainer = deferLoadAttr ? createCompilerElement("ng-container") : "";
1060
+ if (showInDeviceContainer) showInDeviceContainer.attrs.push(showInDeviceAttr);
1061
+ if (accessRolesContainer) accessRolesContainer.attrs.push(accessRolesAttr);
1062
+ if (deferLoadContainer) {
1063
+ deferLoadContainer.attrs.push(deferLoadAttr);
1064
+ if (showAttr) deferLoadContainer.attrs.push(showAttr);
1065
+ }
1066
+ lodashEs.remove(child.attrs, function(attr) {
1067
+ return attr.name === "showindevice" || attr.name === "accessroles" || attr.name === "deferload";
1068
+ });
1069
+ let childContainer, parentContainer;
1070
+ if (showInDeviceAttr && accessRolesAttr) {
1071
+ childContainer = showInDeviceContainer;
1072
+ parentContainer = accessRolesContainer;
1073
+ } else if (showInDeviceAttr && deferLoadAttr) {
1074
+ childContainer = showInDeviceContainer;
1075
+ parentContainer = deferLoadContainer;
1076
+ } else {
1077
+ childContainer = deferLoadContainer;
1078
+ parentContainer = accessRolesContainer;
1079
+ }
1080
+ childContainer.children = [child];
1081
+ parentContainer.children = [childContainer];
1082
+ if (showInDeviceAttr && accessRolesAttr && deferLoadAttr) {
1083
+ const grandParentContainer = deferLoadContainer;
1084
+ grandParentContainer.children = [parentContainer];
1085
+ child = grandParentContainer;
1086
+ } else child = parentContainer;
1087
+ }
1088
+ }
1089
+ return markup += processNode(child, importCollector, providers);
1090
+ });
1091
+ if (nodeDef) {
1092
+ if (provideInfo) providers.splice(providers.indexOf(provideInfo), 1);
1093
+ markup += post(attrMap, shared, ...requiredProviders);
1094
+ } else if (node.endSourceSpan && !compiler.getHtmlTagDefinition(node.name).isVoid) markup += `</${nodeName}>`;
1095
+ } else if (node instanceof compiler.Text) markup += node.value;
1096
+ importCollector(WIDGET_IMPORTS.get(node.name));
1097
+ if (nodeDef?.imports) {
1098
+ let imports = [];
1099
+ if (typeof nodeDef.imports === "function") imports = nodeDef.imports(attrMap);
1100
+ else imports = nodeDef.imports;
1101
+ imports.forEach((i) => {
1102
+ importCollector(WIDGET_IMPORTS.get(i));
1103
+ });
1104
+ }
1105
+ return markup;
1106
+ };
1107
+ const transpile = (markup = "") => {
1108
+ if (!markup.length) return;
1109
+ let requiredWMComponents = [];
1110
+ const nodes = htmlParser.parse(markup, "");
1111
+ if (nodes.errors.length) return;
1112
+ let output = "";
1113
+ for (const node of nodes.rootNodes) output += processNode(node, (imports) => {
1114
+ if (imports) requiredWMComponents = requiredWMComponents.concat(imports);
1115
+ });
1116
+ requiredWMComponents = lodashEs.uniqWith(requiredWMComponents, lodashEs.isEqual);
1117
+ requiredWMComponents = lodashEs.sortBy(requiredWMComponents, ["from", "name"]);
1118
+ return {
1119
+ markup: output,
1120
+ requiredWMComponents
1121
+ };
1122
+ };
1123
+ const register = (nodeName, nodeDefFn) => registry.set(nodeName, nodeDefFn());
1124
+ const scopeComponentStyles = (componentName, componentType, styles = "") => {
1125
+ componentName = componentName.toLowerCase();
1126
+ const comments = {};
1127
+ let commentCount = 0;
1128
+ if (styles.startsWith("/*DISABLE_SCOPING*/")) return styles;
1129
+ styles = styles.replace(CSS_REGEX.COMMENTS_FORMAT, (comment) => {
1130
+ const key = `@comment${commentCount++}{`;
1131
+ comments[key] = comment;
1132
+ return key;
1133
+ });
1134
+ styles = styles.replace(CSS_REGEX.SELECTOR_FORMAT, (selector) => {
1135
+ if (!CSS_REGEX.SELECTOR_EXCLUDE_FORMAT.test(selector)) {
1136
+ const firstNonSpaceCharIndex = selector.match(/\S/).index;
1137
+ let prefixSpaceCharSeq = "";
1138
+ if (firstNonSpaceCharIndex > 0) {
1139
+ prefixSpaceCharSeq = selector.substring(0, firstNonSpaceCharIndex);
1140
+ selector = selector.substring(firstNonSpaceCharIndex);
1141
+ }
1142
+ if (!selector.startsWith("/*") && selector.trim().length > 0) selector = selector.split(",").map((s) => {
1143
+ let prefix = ELE_PREFIX;
1144
+ s = s.trim();
1145
+ const spaceIndex = s.indexOf(" ");
1146
+ if (s.startsWith(ELE_PREFIX)) {
1147
+ if (spaceIndex > 0) {
1148
+ prefix = s.substring(0, spaceIndex);
1149
+ s = s.substring(spaceIndex + 1);
1150
+ } else return s;
1151
+ }
1152
+ if (componentType === 0 || componentType === "PAGE") s = `${prefix} app-page-${componentName} ${s}`;
1153
+ else if (componentType === 1 || componentType === "PREFAB") s = `${prefix} app-prefab-${componentName} ${s}`;
1154
+ else if (componentType === 2 || componentType === "PARTIAL") s = `${prefix} app-partial-${componentName} ${s}`;
1155
+ else if (componentType === 3 || componentType === "WIDGET") s = `${prefix} app-custom-${componentName} ${s}`;
1156
+ return s;
1157
+ }).join(",");
1158
+ selector = prefixSpaceCharSeq + selector;
1159
+ }
1160
+ return selector;
1161
+ });
1162
+ for (const key in comments) styles = styles.replace(key, comments[key]);
1163
+ return styles;
1164
+ };
326
1165
 
327
- const CSS_REGEX = {
328
- COMMENTS_FORMAT: /\/\*((?!\*\/).|\n)+\*\//g,
329
- SELECTOR_FORMAT: /[^\{\}]*\{/gi,
330
- SELECTOR_EXCLUDE_FORMAT: /(@keyframes|@media|@font-face|@comment[0-9]+|from|to|[0-9]+%)\b/i
331
- };
332
- const isString = v => typeof v === 'string';
333
- const OVERRIDES = {
334
- 'accessroles': '*accessroles',
335
- 'ng-if': '*ngIf',
336
- 'showindevice': '*wmShowInDevice',
337
- 'ng-class': '[ngClass]',
338
- 'data-ng-class': '[ngClass]',
339
- 'data-ng-src': 'src',
340
- 'ng-src': 'src',
341
- 'data-ng-href': 'href',
342
- 'ng-href': 'href',
343
- 'ng-disabled': 'disabled',
344
- 'data-ng-disabled': 'disabled',
345
- 'ng-model': '[ngModelOptions]="{standalone: true}" [(ngModel)]'
346
- };
347
- const getBoundToExpr = (value) => {
348
- if (!value) {
349
- return null;
350
- }
351
- value = value.trim();
352
- if (value.startsWith('bind:')) {
353
- return value.substr(5);
354
- }
355
- };
356
- const quoteAttr = v => {
357
- return ('' + v) /* Forces the conversion to string. */
358
- .replace(/&/g, '&amp;') /* This MUST be the 1st replacement. */
359
- .replace(/'/g, '&apos;') /* The 4 other predefined entities, required. */
360
- .replace(/"/g, '&quot;')
361
- .replace(/</g, '&lt;')
362
- .replace(/>/g, '&gt;');
363
- };
364
- const registry = new Map();
365
- const htmlParser = new compiler.HtmlParser();
366
- const empty = () => '';
367
- const noSpan = {};
368
- /**
369
- * Creates an Angular Compiler Element for template transpilation.
370
- * Angular 20: Element constructor requires 9 arguments including proper endSourceSpan for closing tag generation.
371
- * @param name - The element/tag name
372
- * @returns Element instance with proper source spans for Angular 20 compatibility
373
- */
374
- const createCompilerElement = (name) => {
375
- return new compiler.Element(name, [], [], [], false, noSpan, noSpan, noSpan, false);
376
- };
377
- const isEvent = name => name[0] === 'o' && name[1] === 'n' && name[2] === '-';
378
- const getEventName = key => key.substr(3);
379
- const processBinding = (attr, expr) => [`${attr.name}.bind`, quoteAttr(expr)];
380
- const processEvent = attr => {
381
- const evtName = getEventName(attr.name);
382
- return [`${evtName}.event`, attr.value];
383
- };
384
- /**
385
- * Wraps the string with single quotes.
386
- * @param val
387
- */
388
- const wrapWithApos = (val) => {
389
- return `&apos;${val.replace(/&apos/g, '&quot').replace(/&quot/g, '\\&quot')}&apos;`;
390
- };
391
- const ELE_PREFIX = '.wm-app';
392
- const processAttr = attr => {
393
- let overridden = OVERRIDES[attr.name];
394
- const value = attr.valueSpan ? attr.value : undefined;
395
- if (overridden) {
396
- /**
397
- * wrap value for accessroles with ''.
398
- * since accessroles is a structural directive, it will be transpiled to [accessroles]
399
- * hence, the value against it should be a computed string
400
- */
401
- if (attr.name === 'accessroles' || attr.name === 'showindevice') {
402
- return [overridden, `'${value}'`];
403
- }
404
- return [overridden, quoteAttr(value)];
405
- }
406
- if (isEvent(attr.name)) {
407
- return processEvent(attr);
408
- }
409
- const boundExpr = getBoundToExpr(attr.value);
410
- if (boundExpr) {
411
- return processBinding(attr, boundExpr);
412
- }
413
- return [attr.name, quoteAttr(value)];
414
- };
415
- const getDataSource = (dataSetExpr) => {
416
- const parts = dataSetExpr.split('.');
417
- if (parts[0] === 'Variables' || parts[0] === 'Widgets') {
418
- return `${parts[0]}.${parts[1]}`;
419
- }
420
- if (parts[0] === 'App' && parts[1] === 'activePage' && parts[2]?.includes('Variables') && parts[3]) {
421
- return `App.activePage.${parts[2]}.${parts[3]}`;
422
- }
423
- };
424
- const widgetChildAttrs = (() => {
425
- const childAttrs = new Map();
426
- const validChildAttrs = [
427
- `required`
428
- ];
429
- return {
430
- set: attrs => {
431
- attrs.forEach((val, key) => {
432
- validChildAttrs.includes(key) && (childAttrs.set(key, val));
433
- });
434
- },
435
- get: attrs => {
436
- const fltrAttrs = new Map();
437
- childAttrs.forEach((val, key) => {
438
- !attrs.get(key) && fltrAttrs.set(key, val);
439
- });
440
- return fltrAttrs;
441
- },
442
- clear: () => {
443
- childAttrs.clear();
444
- }
445
- };
446
- })();
447
- const setChildAttrs = attrs => {
448
- widgetChildAttrs.set(attrs);
449
- return '';
450
- };
451
- const getChildAttrs = attrs => {
452
- return getAttrMarkup(widgetChildAttrs.get(attrs));
453
- };
454
- const clearChildAttrs = () => {
455
- widgetChildAttrs.clear();
456
- return '';
457
- };
458
- const getFormMarkupAttr = attrs => {
459
- if (attrs.get('datavalue.bind')) {
460
- const onDataValueBinding = getDataSource(attrs.get('datavalue.bind'));
461
- attrs.set('datavaluesource.bind', onDataValueBinding);
462
- }
463
- return getAttrMarkup(attrs);
464
- };
465
- const getAttrMap = attrs => {
466
- const attrMap = new Map();
467
- attrs.forEach(attr => {
468
- let [attrName, attrValue] = processAttr(attr);
469
- attrMap.set(attrName, attrValue);
470
- });
471
- if (attrMap.get('dataset.bind')) {
472
- const dataSource = getDataSource(attrMap.get('dataset.bind'));
473
- if (dataSource) {
474
- attrMap.set('datasource.bind', dataSource);
475
- }
476
- }
477
- return attrMap;
478
- };
479
- const getAttrMarkup = (attrs) => {
480
- let attrMarkup = '';
481
- attrs.forEach((v, k) => {
482
- attrMarkup += ` ${k}`;
483
- if (v) {
484
- v = v.trim();
485
- if (k === '[ngClass]' && v.startsWith('{')) {
486
- v = v.replace(/"/g, `'`);
487
- }
488
- if (k === 'show.bind' && attrs.get('deferload') === 'true') {
489
- v = v + `" *lazyLoad="${wrapWithApos(v)}`;
490
- }
491
- attrMarkup += `="${v}"`;
492
- }
493
- });
494
- return attrMarkup;
495
- };
496
- const getRequiredProviders = (nodeDef, providers, nodeAttrs) => {
497
- if (!nodeDef.requires) {
498
- return [];
499
- }
500
- let requires = nodeDef.requires;
501
- if (isString(requires)) {
502
- requires = [requires];
503
- }
504
- if (!Array.isArray(requires)) {
505
- return [];
506
- }
507
- return requires.map(require => {
508
- // for dynamic table assigning parent provide map to the child,
509
- for (let i = nodeAttrs.length - 1; i >= 0; i--) {
510
- if (nodeAttrs[i].name === 'tableName') {
511
- return nodeDef[nodeAttrs[i].value];
512
- }
513
- }
514
- for (let i = providers.length - 1; i >= 0; i--) {
515
- if (providers[i].nodeName === require) {
516
- return providers[i].provide;
517
- }
518
- }
519
- });
520
- };
521
- const DIMENSION_PROPS = ['padding', 'borderwidth', 'margin'];
522
- const SEPARATOR = ' ', UNSET = 'unset';
523
- const setDimensionProp = (cssObj, key, nv) => {
524
- let cssKey = key, val, top, right, bottom, left, suffix = '';
525
- function setVal(prop, value) {
526
- // if the value is UNSET, reset the existing value
527
- if (value === UNSET) {
528
- value = '';
529
- }
530
- cssObj[cssKey + prop + suffix] = value;
531
- }
532
- if (key === 'borderwidth') {
533
- suffix = 'width';
534
- cssKey = 'border';
535
- }
536
- val = nv;
537
- if (val.indexOf(UNSET) !== -1) {
538
- val = val.split(SEPARATOR);
539
- top = val[0];
540
- right = val[1] || val[0];
541
- bottom = val[2] || val[0];
542
- left = val[3] || val[1] || val[0];
543
- setVal('top', top);
544
- setVal('right', right);
545
- setVal('bottom', bottom);
546
- setVal('left', left);
547
- }
548
- else {
549
- if (key === 'borderwidth') {
550
- cssKey = 'borderwidth';
551
- }
552
- cssObj[cssKey] = nv;
553
- }
554
- };
555
- const processDimensionAttributes = attrMap => {
556
- const attrKeys = Array.from(attrMap.keys());
557
- attrKeys.forEach((attrKey) => {
558
- if (DIMENSION_PROPS.includes(attrKey)) {
559
- const cssObj = {}, attrValue = attrMap.get(attrKey);
560
- attrMap.delete(attrKey);
561
- setDimensionProp(cssObj, attrKey, attrValue);
562
- Object.keys(cssObj).forEach(key => {
563
- if (cssObj[key]) {
564
- attrMap.set(key, cssObj[key]);
565
- }
566
- });
567
- }
568
- });
569
- };
570
- // replace <:svg:svg> -> <svg>, <:svg:*> -> <svg:*>
571
- const getNodeName = name => name.replace(':svg:svg', 'svg').replace(':svg:', 'svg:');
572
- const processNode = (node, importCollector, providers) => {
573
- const nodeDef = registry.get(node.name);
574
- let pre, post, template;
575
- if (nodeDef) {
576
- pre = nodeDef.pre || empty;
577
- post = nodeDef.post || empty;
578
- template = nodeDef.template || empty;
579
- }
580
- let markup = '';
581
- let attrMap;
582
- let requiredProviders;
583
- let shared;
584
- if (!providers) {
585
- providers = [];
586
- }
587
- const isElementType = node instanceof compiler.Element;
588
- if (isElementType) {
589
- let provideInfo;
590
- if (nodeDef) {
591
- requiredProviders = getRequiredProviders(nodeDef, providers, node.attrs);
592
- shared = new Map();
593
- template(node, shared, ...requiredProviders);
594
- }
595
- attrMap = getAttrMap(node.attrs);
596
- processDimensionAttributes(attrMap);
597
- const nodeName = getNodeName(node.name);
598
- if (nodeDef) {
599
- markup = pre(attrMap, shared, ...requiredProviders);
600
- if (nodeDef.provide) {
601
- provideInfo = {
602
- nodeName: node.name,
603
- provide: lodashEs.isFunction(nodeDef.provide) ? nodeDef.provide(attrMap, shared, ...requiredProviders) : nodeDef.provide
604
- };
605
- // For table node, assigning parent provide map to the child, as child requires some parent provide attrs.
606
- if (node.name === 'wm-table') {
607
- const tableColNodeDefn = registry.get('wm-table-column');
608
- tableColNodeDefn[lodashEs.find(node.attrs, (el) => el.name === 'name').value + provideInfo.provide.get('table_reference')] = provideInfo.provide;
609
- registry.set('wm-table-column', tableColNodeDefn);
610
- }
611
- providers.push(provideInfo);
612
- }
613
- }
614
- else {
615
- markup = `<${nodeName} ${getAttrMarkup(attrMap)}>`;
616
- }
617
- node.children.forEach((child) => {
618
- if (child.attrs) {
619
- let showInDeviceAttr, accessRolesAttr, deferLoadAttr, showAttr;
620
- child.attrs.forEach(function (attr) {
621
- if (attr.name === 'showindevice') {
622
- showInDeviceAttr = attr;
623
- importCollector(WIDGET_IMPORTS.get("showindevice"));
624
- }
625
- else if (attr.name === 'accessroles') {
626
- accessRolesAttr = attr;
627
- importCollector(WIDGET_IMPORTS.get('accessroles'));
628
- }
629
- else if (attr.name === 'deferload') {
630
- deferLoadAttr = attr;
631
- importCollector(WIDGET_IMPORTS.get('lazyload'));
632
- }
633
- else if (attr.name === 'show') {
634
- showAttr = attr;
635
- }
636
- });
637
- if ((showInDeviceAttr && accessRolesAttr) || (showInDeviceAttr && deferLoadAttr) || (accessRolesAttr && deferLoadAttr)) {
638
- /* If more than one out of showindevice, accessroles and deferload exist for a widget, add ng-container wrappers to fix angular limitation
639
- of applying only one structural directive to an element.
640
- * */
641
- const showInDeviceContainer = showInDeviceAttr ? createCompilerElement('ng-container') : '';
642
- const accessRolesContainer = accessRolesAttr ? createCompilerElement('ng-container') : '';
643
- const deferLoadContainer = deferLoadAttr ? createCompilerElement('ng-container') : '';
644
- if (showInDeviceContainer) {
645
- showInDeviceContainer.attrs.push(showInDeviceAttr);
646
- }
647
- if (accessRolesContainer) {
648
- accessRolesContainer.attrs.push(accessRolesAttr);
649
- }
650
- if (deferLoadContainer) {
651
- deferLoadContainer.attrs.push(deferLoadAttr);
652
- if (showAttr) {
653
- deferLoadContainer.attrs.push(showAttr);
654
- }
655
- }
656
- lodashEs.remove(child.attrs, function (attr) {
657
- // @ts-ignore
658
- return attr.name === 'showindevice' || attr.name === 'accessroles' || attr.name === 'deferload';
659
- });
660
- let childContainer, parentContainer;
661
- if (showInDeviceAttr && accessRolesAttr) {
662
- childContainer = showInDeviceContainer;
663
- parentContainer = accessRolesContainer;
664
- }
665
- else if (showInDeviceAttr && deferLoadAttr) {
666
- childContainer = showInDeviceContainer;
667
- parentContainer = deferLoadContainer;
668
- }
669
- else if (accessRolesAttr && deferLoadAttr) {
670
- childContainer = deferLoadContainer;
671
- parentContainer = accessRolesContainer;
672
- }
673
- // wrap current node elements inside first ng-container(childContainer) and that container's elements inside another ng-container(parentContainer)
674
- childContainer.children = [child];
675
- parentContainer.children = [childContainer];
676
- // if all three directives exist, create another wrapper for third ng-container(grandParentContainer)
677
- if (showInDeviceAttr && accessRolesAttr && deferLoadAttr) {
678
- const grandParentContainer = deferLoadContainer;
679
- grandParentContainer.children = [parentContainer];
680
- child = grandParentContainer;
681
- }
682
- else {
683
- child = parentContainer;
684
- }
685
- }
686
- }
687
- return markup += processNode(child, importCollector, providers);
688
- });
689
- if (nodeDef) {
690
- if (provideInfo) {
691
- providers.splice(providers.indexOf(provideInfo), 1);
692
- }
693
- markup += post(attrMap, shared, ...requiredProviders);
694
- }
695
- else if (node.endSourceSpan && !compiler.getHtmlTagDefinition(node.name).isVoid) {
696
- markup += `</${nodeName}>`;
697
- }
698
- }
699
- else if (node instanceof compiler.Text) {
700
- markup += node.value;
701
- }
702
- else ;
703
- importCollector(WIDGET_IMPORTS.get(node.name));
704
- if (nodeDef?.imports) {
705
- let imports = [];
706
- if (typeof nodeDef.imports === 'function') {
707
- imports = nodeDef.imports(attrMap);
708
- }
709
- else {
710
- imports = nodeDef.imports;
711
- }
712
- imports.forEach(i => {
713
- importCollector(WIDGET_IMPORTS.get(i));
714
- });
715
- }
716
- return markup;
717
- };
718
- const transpile = (markup = '') => {
719
- if (!markup.length) {
720
- return;
721
- }
722
- let requiredWMComponents = [];
723
- const nodes = htmlParser.parse(markup, '');
724
- if (nodes.errors.length) {
725
- return;
726
- }
727
- let output = '';
728
- for (const node of nodes.rootNodes) {
729
- output += processNode(node, (imports) => {
730
- if (imports) {
731
- requiredWMComponents = requiredWMComponents.concat(imports);
732
- }
733
- });
734
- }
735
- requiredWMComponents = lodashEs.uniqWith(requiredWMComponents, lodashEs.isEqual);
736
- requiredWMComponents = lodashEs.sortBy(requiredWMComponents, ['from', 'name']);
737
- return {
738
- markup: output,
739
- requiredWMComponents: requiredWMComponents
740
- };
741
- };
742
- const register = (nodeName, nodeDefFn) => registry.set(nodeName, nodeDefFn());
743
- const scopeComponentStyles = (componentName, componentType, styles = '') => {
744
- componentName = componentName.toLowerCase();
745
- const comments = {};
746
- let commentCount = 0;
747
- if (styles.startsWith('/*DISABLE_SCOPING*/')) {
748
- return styles;
749
- }
750
- styles = styles.replace(CSS_REGEX.COMMENTS_FORMAT, comment => {
751
- const key = `@comment${commentCount++}{`;
752
- comments[key] = comment;
753
- return key;
754
- });
755
- styles = styles.replace(CSS_REGEX.SELECTOR_FORMAT, (selector) => {
756
- if (!CSS_REGEX.SELECTOR_EXCLUDE_FORMAT.test(selector)) {
757
- const firstNonSpaceCharIndex = selector.match(/\S/).index;
758
- let prefixSpaceCharSeq = '';
759
- if (firstNonSpaceCharIndex > 0) {
760
- prefixSpaceCharSeq = selector.substring(0, firstNonSpaceCharIndex);
761
- selector = selector.substring(firstNonSpaceCharIndex);
762
- }
763
- if (!selector.startsWith('/*') && selector.trim().length > 0) {
764
- // splits the selector by commas and we iterate over the array and add page level scoping and join it.
765
- selector = selector.split(',').map(s => {
766
- let prefix = ELE_PREFIX;
767
- s = s.trim();
768
- const spaceIndex = s.indexOf(' ');
769
- if (s.startsWith(ELE_PREFIX)) {
770
- if (spaceIndex > 0) {
771
- prefix = s.substring(0, spaceIndex);
772
- s = s.substring(spaceIndex + 1);
773
- }
774
- else {
775
- return s;
776
- }
777
- }
778
- if (componentType === 0 || componentType === 'PAGE') {
779
- s = `${prefix} app-page-${componentName} ${s}`;
780
- }
781
- else if (componentType === 1 || componentType === 'PREFAB') {
782
- s = `${prefix} app-prefab-${componentName} ${s}`;
783
- }
784
- else if (componentType === 2 || componentType === 'PARTIAL') {
785
- s = `${prefix} app-partial-${componentName} ${s}`;
786
- }
787
- else if (componentType === 3 || componentType === 'WIDGET') {
788
- s = `${prefix} app-custom-${componentName} ${s}`;
789
- }
790
- return s;
791
- }).join(',');
792
- }
793
- selector = prefixSpaceCharSeq + selector;
794
- }
795
- return selector;
796
- });
797
- for (const key in comments) {
798
- styles = styles.replace(key, comments[key]);
799
- }
800
- return styles;
801
- };
802
-
803
- exports.WIDGET_IMPORTS = WIDGET_IMPORTS;
804
- exports.clearChildAttrs = clearChildAttrs;
805
- exports.createCompilerElement = createCompilerElement;
806
- exports.getAttrMarkup = getAttrMarkup;
807
- exports.getBoundToExpr = getBoundToExpr;
808
- exports.getChildAttrs = getChildAttrs;
809
- exports.getDataSource = getDataSource;
810
- exports.getFormMarkupAttr = getFormMarkupAttr;
811
- exports.processNode = processNode;
812
- exports.register = register;
813
- exports.scopeComponentStyles = scopeComponentStyles;
814
- exports.setChildAttrs = setChildAttrs;
815
- exports.transpile = transpile;
1166
+ exports.WIDGET_IMPORTS = WIDGET_IMPORTS;
1167
+ exports.clearChildAttrs = clearChildAttrs;
1168
+ exports.createCompilerElement = createCompilerElement;
1169
+ exports.getAttrMarkup = getAttrMarkup;
1170
+ exports.getBoundToExpr = getBoundToExpr;
1171
+ exports.getChildAttrs = getChildAttrs;
1172
+ exports.getDataSource = getDataSource;
1173
+ exports.getFormMarkupAttr = getFormMarkupAttr;
1174
+ exports.processNode = processNode;
1175
+ exports.register = register;
1176
+ exports.scopeComponentStyles = scopeComponentStyles;
1177
+ exports.setChildAttrs = setChildAttrs;
1178
+ exports.transpile = transpile;
816
1179
 
817
1180
  }));