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

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