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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (473) hide show
  1. package/build-task/bundles/index.umd.js +2489 -2963
  2. package/build-task/fesm2022/index.mjs +2307 -2786
  3. package/build-task/fesm2022/index.mjs.map +1 -1
  4. package/build-task/types/index.d.ts +401 -844
  5. package/components/advanced/carousel/bundles/index.umd.js +387 -344
  6. package/components/advanced/carousel/fesm2022/index.mjs +363 -325
  7. package/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
  8. package/components/advanced/carousel/types/index.d.ts +85 -86
  9. package/components/advanced/custom/bundles/index.umd.js +298 -249
  10. package/components/advanced/custom/fesm2022/index.mjs +280 -236
  11. package/components/advanced/custom/fesm2022/index.mjs.map +1 -1
  12. package/components/advanced/custom/types/index.d.ts +49 -49
  13. package/components/advanced/login/bundles/index.umd.js +177 -127
  14. package/components/advanced/login/fesm2022/index.mjs +162 -117
  15. package/components/advanced/login/fesm2022/index.mjs.map +1 -1
  16. package/components/advanced/login/types/index.d.ts +33 -34
  17. package/components/advanced/marquee/bundles/index.umd.js +93 -63
  18. package/components/advanced/marquee/fesm2022/index.mjs +73 -48
  19. package/components/advanced/marquee/fesm2022/index.mjs.map +1 -1
  20. package/components/advanced/marquee/types/index.d.ts +11 -12
  21. package/components/base/bundles/index.umd.js +5515 -6359
  22. package/components/base/fesm2022/index.mjs +5169 -6027
  23. package/components/base/fesm2022/index.mjs.map +1 -1
  24. package/components/base/types/index.d.ts +1198 -1154
  25. package/components/basic/anchor/bundles/index.umd.js +273 -195
  26. package/components/basic/anchor/fesm2022/index.mjs +251 -178
  27. package/components/basic/anchor/fesm2022/index.mjs.map +1 -1
  28. package/components/basic/anchor/types/index.d.ts +40 -41
  29. package/components/basic/audio/bundles/index.umd.js +124 -75
  30. package/components/basic/audio/fesm2022/index.mjs +104 -60
  31. package/components/basic/audio/fesm2022/index.mjs.map +1 -1
  32. package/components/basic/audio/types/index.d.ts +22 -23
  33. package/components/basic/html/bundles/index.umd.js +144 -113
  34. package/components/basic/html/fesm2022/index.mjs +125 -99
  35. package/components/basic/html/fesm2022/index.mjs.map +1 -1
  36. package/components/basic/html/types/index.d.ts +20 -17
  37. package/components/basic/icon/bundles/index.umd.js +144 -72
  38. package/components/basic/icon/fesm2022/index.mjs +124 -57
  39. package/components/basic/icon/fesm2022/index.mjs.map +1 -1
  40. package/components/basic/icon/types/index.d.ts +18 -19
  41. package/components/basic/iframe/bundles/index.umd.js +143 -93
  42. package/components/basic/iframe/fesm2022/index.mjs +124 -79
  43. package/components/basic/iframe/fesm2022/index.mjs.map +1 -1
  44. package/components/basic/iframe/types/index.d.ts +28 -29
  45. package/components/basic/label/bundles/index.umd.js +136 -120
  46. package/components/basic/label/fesm2022/index.mjs +118 -107
  47. package/components/basic/label/fesm2022/index.mjs.map +1 -1
  48. package/components/basic/label/types/index.d.ts +14 -15
  49. package/components/basic/picture/bundles/index.umd.js +171 -130
  50. package/components/basic/picture/fesm2022/index.mjs +152 -116
  51. package/components/basic/picture/fesm2022/index.mjs.map +1 -1
  52. package/components/basic/picture/types/index.d.ts +21 -22
  53. package/components/basic/progress/progress-bar/bundles/index.umd.js +211 -160
  54. package/components/basic/progress/progress-bar/fesm2022/index.mjs +193 -147
  55. package/components/basic/progress/progress-bar/fesm2022/index.mjs.map +1 -1
  56. package/components/basic/progress/progress-bar/types/index.d.ts +45 -41
  57. package/components/basic/progress/progress-circle/bundles/index.umd.js +294 -165
  58. package/components/basic/progress/progress-circle/fesm2022/index.mjs +274 -150
  59. package/components/basic/progress/progress-circle/fesm2022/index.mjs.map +1 -1
  60. package/components/basic/progress/progress-circle/types/index.d.ts +41 -42
  61. package/components/basic/progress/progress-utils/bundles/index.umd.js +27 -29
  62. package/components/basic/progress/progress-utils/fesm2022/index.mjs +18 -25
  63. package/components/basic/progress/progress-utils/fesm2022/index.mjs.map +1 -1
  64. package/components/basic/progress/progress-utils/types/index.d.ts +3 -5
  65. package/components/basic/rich-text-editor/bundles/index.umd.js +294 -228
  66. package/components/basic/rich-text-editor/fesm2022/index.mjs +275 -214
  67. package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
  68. package/components/basic/rich-text-editor/types/index.d.ts +55 -56
  69. package/components/basic/search/bundles/index.umd.js +1129 -1090
  70. package/components/basic/search/fesm2022/index.mjs +1117 -1083
  71. package/components/basic/search/fesm2022/index.mjs.map +1 -1
  72. package/components/basic/search/types/index.d.ts +132 -130
  73. package/components/basic/spinner/bundles/index.umd.js +216 -120
  74. package/components/basic/spinner/fesm2022/index.mjs +201 -110
  75. package/components/basic/spinner/fesm2022/index.mjs.map +1 -1
  76. package/components/basic/spinner/types/index.d.ts +30 -31
  77. package/components/basic/tree/bundles/index.umd.js +756 -756
  78. package/components/basic/tree/fesm2022/index.mjs +740 -745
  79. package/components/basic/tree/fesm2022/index.mjs.map +1 -1
  80. package/components/basic/tree/types/index.d.ts +106 -97
  81. package/components/basic/video/bundles/index.umd.js +164 -108
  82. package/components/basic/video/fesm2022/index.mjs +145 -94
  83. package/components/basic/video/fesm2022/index.mjs.map +1 -1
  84. package/components/basic/video/types/index.d.ts +29 -30
  85. package/components/chart/bundles/index.umd.js +1768 -1737
  86. package/components/chart/fesm2022/index.mjs +1713 -1728
  87. package/components/chart/fesm2022/index.mjs.map +1 -1
  88. package/components/chart/types/index.d.ts +102 -104
  89. package/components/containers/accordion/bundles/index.umd.js +522 -494
  90. package/components/containers/accordion/fesm2022/index.mjs +502 -479
  91. package/components/containers/accordion/fesm2022/index.mjs.map +1 -1
  92. package/components/containers/accordion/types/index.d.ts +116 -116
  93. package/components/containers/layout-grid/bundles/index.umd.js +260 -164
  94. package/components/containers/layout-grid/fesm2022/index.mjs +231 -140
  95. package/components/containers/layout-grid/fesm2022/index.mjs.map +1 -1
  96. package/components/containers/layout-grid/types/index.d.ts +30 -27
  97. package/components/containers/linear-layout/bundles/index.umd.js +220 -178
  98. package/components/containers/linear-layout/fesm2022/index.mjs +193 -156
  99. package/components/containers/linear-layout/fesm2022/index.mjs.map +1 -1
  100. package/components/containers/linear-layout/types/index.d.ts +26 -26
  101. package/components/containers/panel/bundles/index.umd.js +343 -215
  102. package/components/containers/panel/fesm2022/index.mjs +330 -207
  103. package/components/containers/panel/fesm2022/index.mjs.map +1 -1
  104. package/components/containers/panel/types/index.d.ts +48 -49
  105. package/components/containers/tabs/bundles/index.umd.js +832 -779
  106. package/components/containers/tabs/fesm2022/index.mjs +811 -763
  107. package/components/containers/tabs/fesm2022/index.mjs.map +1 -1
  108. package/components/containers/tabs/types/index.d.ts +134 -126
  109. package/components/containers/tile/bundles/index.umd.js +93 -60
  110. package/components/containers/tile/fesm2022/index.mjs +75 -47
  111. package/components/containers/tile/fesm2022/index.mjs.map +1 -1
  112. package/components/containers/tile/types/index.d.ts +11 -12
  113. package/components/containers/wizard/bundles/index.umd.js +1096 -1078
  114. package/components/containers/wizard/fesm2022/index.mjs +1069 -1056
  115. package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
  116. package/components/containers/wizard/types/index.d.ts +258 -252
  117. package/components/data/card/bundles/index.umd.js +439 -229
  118. package/components/data/card/fesm2022/index.mjs +408 -203
  119. package/components/data/card/fesm2022/index.mjs.map +1 -1
  120. package/components/data/card/types/index.d.ts +50 -48
  121. package/components/data/form/bundles/index.umd.js +3392 -3339
  122. package/components/data/form/fesm2022/index.mjs +3350 -3304
  123. package/components/data/form/fesm2022/index.mjs.map +1 -1
  124. package/components/data/form/types/index.d.ts +561 -482
  125. package/components/data/list/bundles/index.umd.js +1523 -1601
  126. package/components/data/list/fesm2022/index.mjs +1507 -1590
  127. package/components/data/list/fesm2022/index.mjs.map +1 -1
  128. package/components/data/list/types/index.d.ts +300 -283
  129. package/components/data/live-table/bundles/index.umd.js +299 -280
  130. package/components/data/live-table/fesm2022/index.mjs +284 -270
  131. package/components/data/live-table/fesm2022/index.mjs.map +1 -1
  132. package/components/data/live-table/types/index.d.ts +42 -39
  133. package/components/data/pagination/bundles/index.umd.js +848 -881
  134. package/components/data/pagination/fesm2022/index.mjs +835 -879
  135. package/components/data/pagination/fesm2022/index.mjs.map +1 -1
  136. package/components/data/pagination/types/index.d.ts +110 -106
  137. package/components/data/table/bundles/index.umd.js +4977 -5042
  138. package/components/data/table/fesm2022/index.mjs +4937 -5007
  139. package/components/data/table/fesm2022/index.mjs.map +1 -1
  140. package/components/data/table/types/index.d.ts +770 -736
  141. package/components/dialogs/alert-dialog/bundles/index.umd.js +259 -118
  142. package/components/dialogs/alert-dialog/fesm2022/index.mjs +243 -109
  143. package/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
  144. package/components/dialogs/alert-dialog/types/index.d.ts +31 -26
  145. package/components/dialogs/confirm-dialog/bundles/index.umd.js +250 -121
  146. package/components/dialogs/confirm-dialog/fesm2022/index.mjs +236 -114
  147. package/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
  148. package/components/dialogs/confirm-dialog/types/index.d.ts +34 -29
  149. package/components/dialogs/default/bundles/index.umd.js +509 -373
  150. package/components/dialogs/default/fesm2022/index.mjs +485 -354
  151. package/components/dialogs/default/fesm2022/index.mjs.map +1 -1
  152. package/components/dialogs/default/types/index.d.ts +129 -86
  153. package/components/dialogs/design-dialog/bundles/index.umd.js +320 -142
  154. package/components/dialogs/design-dialog/fesm2022/index.mjs +305 -132
  155. package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
  156. package/components/dialogs/design-dialog/types/index.d.ts +31 -20
  157. package/components/dialogs/iframe-dialog/bundles/index.umd.js +258 -111
  158. package/components/dialogs/iframe-dialog/fesm2022/index.mjs +245 -105
  159. package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
  160. package/components/dialogs/iframe-dialog/types/index.d.ts +27 -22
  161. package/components/dialogs/login-dialog/bundles/index.umd.js +139 -106
  162. package/components/dialogs/login-dialog/fesm2022/index.mjs +125 -97
  163. package/components/dialogs/login-dialog/fesm2022/index.mjs.map +1 -1
  164. package/components/dialogs/login-dialog/types/index.d.ts +27 -26
  165. package/components/dialogs/partial-dialog/bundles/index.umd.js +302 -149
  166. package/components/dialogs/partial-dialog/fesm2022/index.mjs +289 -143
  167. package/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
  168. package/components/dialogs/partial-dialog/types/index.d.ts +37 -32
  169. package/components/input/base-form/bundles/index.umd.js +143 -139
  170. package/components/input/base-form/fesm2022/index.mjs +129 -130
  171. package/components/input/base-form/fesm2022/index.mjs.map +1 -1
  172. package/components/input/base-form/types/index.d.ts +28 -29
  173. package/components/input/base-form-custom/bundles/index.umd.js +107 -121
  174. package/components/input/base-form-custom/fesm2022/index.mjs +88 -107
  175. package/components/input/base-form-custom/fesm2022/index.mjs.map +1 -1
  176. package/components/input/base-form-custom/types/index.d.ts +23 -26
  177. package/components/input/button/bundles/index.umd.js +177 -89
  178. package/components/input/button/fesm2022/index.mjs +158 -75
  179. package/components/input/button/fesm2022/index.mjs.map +1 -1
  180. package/components/input/button/types/index.d.ts +24 -25
  181. package/components/input/button-group/bundles/index.umd.js +110 -72
  182. package/components/input/button-group/fesm2022/index.mjs +90 -57
  183. package/components/input/button-group/fesm2022/index.mjs.map +1 -1
  184. package/components/input/button-group/types/index.d.ts +13 -14
  185. package/components/input/calendar/bundles/index.umd.js +615 -647
  186. package/components/input/calendar/fesm2022/index.mjs +596 -649
  187. package/components/input/calendar/fesm2022/index.mjs.map +1 -1
  188. package/components/input/calendar/types/index.d.ts +130 -131
  189. package/components/input/caption-position/bundles/index.umd.js +175 -188
  190. package/components/input/caption-position/fesm2022/index.mjs +159 -177
  191. package/components/input/caption-position/fesm2022/index.mjs.map +1 -1
  192. package/components/input/caption-position/types/index.d.ts +31 -34
  193. package/components/input/checkbox/bundles/index.umd.js +339 -200
  194. package/components/input/checkbox/fesm2022/index.mjs +319 -185
  195. package/components/input/checkbox/fesm2022/index.mjs.map +1 -1
  196. package/components/input/checkbox/types/index.d.ts +46 -41
  197. package/components/input/checkboxset/bundles/index.umd.js +256 -170
  198. package/components/input/checkboxset/fesm2022/index.mjs +242 -161
  199. package/components/input/checkboxset/fesm2022/index.mjs.map +1 -1
  200. package/components/input/checkboxset/types/index.d.ts +26 -27
  201. package/components/input/chips/bundles/index.umd.js +721 -733
  202. package/components/input/chips/fesm2022/index.mjs +706 -723
  203. package/components/input/chips/fesm2022/index.mjs.map +1 -1
  204. package/components/input/chips/types/index.d.ts +101 -90
  205. package/components/input/color-picker/bundles/index.umd.js +312 -137
  206. package/components/input/color-picker/fesm2022/index.mjs +296 -126
  207. package/components/input/color-picker/fesm2022/index.mjs.map +1 -1
  208. package/components/input/color-picker/types/index.d.ts +35 -36
  209. package/components/input/composite/bundles/index.umd.js +127 -112
  210. package/components/input/composite/fesm2022/index.mjs +106 -96
  211. package/components/input/composite/fesm2022/index.mjs.map +1 -1
  212. package/components/input/composite/types/index.d.ts +26 -27
  213. package/components/input/currency/bundles/index.umd.js +237 -104
  214. package/components/input/currency/fesm2022/index.mjs +219 -91
  215. package/components/input/currency/fesm2022/index.mjs.map +1 -1
  216. package/components/input/currency/types/index.d.ts +30 -31
  217. package/components/input/dataset-aware-form/bundles/index.umd.js +298 -346
  218. package/components/input/dataset-aware-form/fesm2022/index.mjs +286 -339
  219. package/components/input/dataset-aware-form/fesm2022/index.mjs.map +1 -1
  220. package/components/input/dataset-aware-form/types/index.d.ts +80 -80
  221. package/components/input/epoch/base-date-time/bundles/index.umd.js +809 -1081
  222. package/components/input/epoch/base-date-time/fesm2022/index.mjs +796 -1073
  223. package/components/input/epoch/base-date-time/fesm2022/index.mjs.map +1 -1
  224. package/components/input/epoch/base-date-time/types/index.d.ts +244 -247
  225. package/components/input/epoch/date/bundles/index.umd.js +619 -513
  226. package/components/input/epoch/date/fesm2022/index.mjs +604 -503
  227. package/components/input/epoch/date/fesm2022/index.mjs.map +1 -1
  228. package/components/input/epoch/date/types/index.d.ts +63 -64
  229. package/components/input/epoch/date-time/bundles/index.umd.js +682 -511
  230. package/components/input/epoch/date-time/fesm2022/index.mjs +672 -506
  231. package/components/input/epoch/date-time/fesm2022/index.mjs.map +1 -1
  232. package/components/input/epoch/date-time/types/index.d.ts +111 -112
  233. package/components/input/epoch/date-time-picker/bundles/index.umd.js +417 -321
  234. package/components/input/epoch/date-time-picker/fesm2022/index.mjs +405 -314
  235. package/components/input/epoch/date-time-picker/fesm2022/index.mjs.map +1 -1
  236. package/components/input/epoch/date-time-picker/types/index.d.ts +135 -80
  237. package/components/input/epoch/picker/bundles/index.umd.js +201 -148
  238. package/components/input/epoch/picker/fesm2022/index.mjs +183 -135
  239. package/components/input/epoch/picker/fesm2022/index.mjs.map +1 -1
  240. package/components/input/epoch/picker/types/index.d.ts +46 -38
  241. package/components/input/epoch/time/bundles/index.umd.js +534 -392
  242. package/components/input/epoch/time/fesm2022/index.mjs +523 -386
  243. package/components/input/epoch/time/fesm2022/index.mjs.map +1 -1
  244. package/components/input/epoch/time/types/index.d.ts +107 -108
  245. package/components/input/file-upload/bundles/index.umd.js +500 -477
  246. package/components/input/file-upload/fesm2022/index.mjs +484 -466
  247. package/components/input/file-upload/fesm2022/index.mjs.map +1 -1
  248. package/components/input/file-upload/types/index.d.ts +110 -109
  249. package/components/input/number/bundles/index.umd.js +241 -101
  250. package/components/input/number/fesm2022/index.mjs +224 -89
  251. package/components/input/number/fesm2022/index.mjs.map +1 -1
  252. package/components/input/number/types/index.d.ts +28 -29
  253. package/components/input/radioset/bundles/index.umd.js +240 -156
  254. package/components/input/radioset/fesm2022/index.mjs +226 -147
  255. package/components/input/radioset/fesm2022/index.mjs.map +1 -1
  256. package/components/input/radioset/types/index.d.ts +25 -26
  257. package/components/input/rating/bundles/index.umd.js +353 -266
  258. package/components/input/rating/fesm2022/index.mjs +337 -255
  259. package/components/input/rating/fesm2022/index.mjs.map +1 -1
  260. package/components/input/rating/types/index.d.ts +52 -53
  261. package/components/input/select/bundles/index.umd.js +295 -217
  262. package/components/input/select/fesm2022/index.mjs +280 -207
  263. package/components/input/select/fesm2022/index.mjs.map +1 -1
  264. package/components/input/select/types/index.d.ts +38 -39
  265. package/components/input/slider/bundles/index.umd.js +316 -197
  266. package/components/input/slider/fesm2022/index.mjs +297 -183
  267. package/components/input/slider/fesm2022/index.mjs.map +1 -1
  268. package/components/input/slider/types/index.d.ts +43 -44
  269. package/components/input/switch/bundles/index.umd.js +257 -219
  270. package/components/input/switch/fesm2022/index.mjs +243 -210
  271. package/components/input/switch/fesm2022/index.mjs.map +1 -1
  272. package/components/input/switch/types/index.d.ts +34 -35
  273. package/components/input/text/bundles/index.umd.js +1585 -1120
  274. package/components/input/text/fesm2022/index.mjs +1542 -1082
  275. package/components/input/text/fesm2022/index.mjs.map +1 -1
  276. package/components/input/text/types/index.d.ts +313 -310
  277. package/components/input/textarea/bundles/index.umd.js +224 -100
  278. package/components/input/textarea/fesm2022/index.mjs +207 -88
  279. package/components/input/textarea/fesm2022/index.mjs.map +1 -1
  280. package/components/input/textarea/types/index.d.ts +32 -33
  281. package/components/navigation/breadcrumb/bundles/index.umd.js +205 -131
  282. package/components/navigation/breadcrumb/fesm2022/index.mjs +188 -118
  283. package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
  284. package/components/navigation/breadcrumb/types/index.d.ts +29 -28
  285. package/components/navigation/menu/bundles/index.umd.js +1461 -950
  286. package/components/navigation/menu/fesm2022/index.mjs +1416 -910
  287. package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
  288. package/components/navigation/menu/types/index.d.ts +220 -193
  289. package/components/navigation/navbar/bundles/index.umd.js +172 -79
  290. package/components/navigation/navbar/fesm2022/index.mjs +155 -67
  291. package/components/navigation/navbar/fesm2022/index.mjs.map +1 -1
  292. package/components/navigation/navbar/types/index.d.ts +19 -20
  293. package/components/navigation/popover/bundles/index.umd.js +543 -519
  294. package/components/navigation/popover/fesm2022/index.mjs +524 -505
  295. package/components/navigation/popover/fesm2022/index.mjs.map +1 -1
  296. package/components/navigation/popover/types/index.d.ts +86 -86
  297. package/components/page/default/bundles/index.umd.js +634 -451
  298. package/components/page/default/fesm2022/index.mjs +600 -422
  299. package/components/page/default/fesm2022/index.mjs.map +1 -1
  300. package/components/page/default/types/index.d.ts +123 -119
  301. package/components/page/footer/bundles/index.umd.js +91 -63
  302. package/components/page/footer/fesm2022/index.mjs +71 -48
  303. package/components/page/footer/fesm2022/index.mjs.map +1 -1
  304. package/components/page/footer/types/index.d.ts +11 -12
  305. package/components/page/header/bundles/index.umd.js +96 -59
  306. package/components/page/header/fesm2022/index.mjs +76 -44
  307. package/components/page/header/fesm2022/index.mjs.map +1 -1
  308. package/components/page/header/types/index.d.ts +12 -13
  309. package/components/page/left-panel/bundles/index.umd.js +405 -407
  310. package/components/page/left-panel/fesm2022/index.mjs +386 -393
  311. package/components/page/left-panel/fesm2022/index.mjs.map +1 -1
  312. package/components/page/left-panel/types/index.d.ts +47 -40
  313. package/components/page/right-panel/bundles/index.umd.js +115 -78
  314. package/components/page/right-panel/fesm2022/index.mjs +96 -64
  315. package/components/page/right-panel/fesm2022/index.mjs.map +1 -1
  316. package/components/page/right-panel/types/index.d.ts +14 -13
  317. package/components/page/top-nav/bundles/index.umd.js +91 -60
  318. package/components/page/top-nav/fesm2022/index.mjs +73 -47
  319. package/components/page/top-nav/fesm2022/index.mjs.map +1 -1
  320. package/components/page/top-nav/types/index.d.ts +11 -12
  321. package/components/prefab/bundles/index.umd.js +253 -173
  322. package/components/prefab/fesm2022/index.mjs +233 -158
  323. package/components/prefab/fesm2022/index.mjs.map +1 -1
  324. package/components/prefab/types/index.d.ts +35 -33
  325. package/core/bundles/index.umd.js +4466 -5642
  326. package/core/fesm2022/index.mjs +3997 -5202
  327. package/core/fesm2022/index.mjs.map +1 -1
  328. package/core/types/index.d.ts +1785 -1808
  329. package/http/bundles/index.umd.js +339 -413
  330. package/http/fesm2022/index.mjs +323 -402
  331. package/http/fesm2022/index.mjs.map +1 -1
  332. package/http/types/index.d.ts +107 -112
  333. package/locales/moment/am-et.js +73 -0
  334. package/locales/moment/bm.js +2 -0
  335. package/locales/moment/ca.js +1 -1
  336. package/locales/moment/de-at.js +29 -1
  337. package/locales/moment/de-ch.js +29 -1
  338. package/locales/moment/de.js +29 -1
  339. package/locales/moment/hu.js +3 -3
  340. package/locales/moment/id.js +12 -1
  341. package/locales/moment/ka.js +1 -1
  342. package/locales/moment/mk.js +0 -1
  343. package/locales/moment/nl-be.js +1 -1
  344. package/locales/moment/pl.js +1 -1
  345. package/locales/moment/ps.js +188 -0
  346. package/locales/moment/pt-br.js +14 -6
  347. package/locales/moment/sv.js +1 -1
  348. package/locales/moment/sw.js +56 -14
  349. package/locales/moment/uk.js +5 -4
  350. package/locales/moment/uz-latn.js +1 -1
  351. package/locales/moment/uz.js +1 -1
  352. package/npm-shrinkwrap.json +2 -2
  353. package/oAuth/bundles/index.umd.js +326 -483
  354. package/oAuth/fesm2022/index.mjs +267 -429
  355. package/oAuth/fesm2022/index.mjs.map +1 -1
  356. package/oAuth/types/index.d.ts +22 -26
  357. package/package-lock.json +2 -2
  358. package/package.json +1 -1
  359. package/runtime/base/bundles/index.umd.js +6380 -6093
  360. package/runtime/base/fesm2022/index.mjs +6368 -6107
  361. package/runtime/base/fesm2022/index.mjs.map +1 -1
  362. package/runtime/base/types/index.d.ts +1336 -1359
  363. package/runtime/dynamic/bundles/index.umd.js +1215 -851
  364. package/runtime/dynamic/fesm2022/index.mjs +1253 -898
  365. package/runtime/dynamic/fesm2022/index.mjs.map +1 -1
  366. package/runtime/dynamic/types/index.d.ts +140 -128
  367. package/scripts/datatable/datatable.js +20 -30
  368. package/security/bundles/index.umd.js +297 -438
  369. package/security/fesm2022/index.mjs +282 -443
  370. package/security/fesm2022/index.mjs.map +1 -1
  371. package/security/types/index.d.ts +127 -130
  372. package/swipey/bundles/index.umd.js +57 -48
  373. package/swipey/fesm2022/index.mjs +55 -50
  374. package/swipey/fesm2022/index.mjs.map +1 -1
  375. package/swipey/types/index.d.ts +19 -21
  376. package/transpiler/bundles/index.umd.js +1174 -811
  377. package/transpiler/fesm2022/index.mjs +1109 -757
  378. package/transpiler/fesm2022/index.mjs.map +1 -1
  379. package/transpiler/types/index.d.ts +32 -36
  380. package/variables/bundles/index.umd.js +2226 -3245
  381. package/variables/fesm2022/index.mjs +2117 -3237
  382. package/variables/fesm2022/index.mjs.map +1 -1
  383. package/variables/types/index.d.ts +410 -393
  384. package/build-task/.npmignore +0 -2
  385. package/components/advanced/carousel/.npmignore +0 -2
  386. package/components/advanced/custom/.npmignore +0 -2
  387. package/components/advanced/login/.npmignore +0 -2
  388. package/components/advanced/marquee/.npmignore +0 -2
  389. package/components/base/.npmignore +0 -2
  390. package/components/basic/anchor/.npmignore +0 -2
  391. package/components/basic/audio/.npmignore +0 -2
  392. package/components/basic/html/.npmignore +0 -2
  393. package/components/basic/icon/.npmignore +0 -2
  394. package/components/basic/iframe/.npmignore +0 -2
  395. package/components/basic/label/.npmignore +0 -2
  396. package/components/basic/picture/.npmignore +0 -2
  397. package/components/basic/progress/progress-bar/.npmignore +0 -2
  398. package/components/basic/progress/progress-circle/.npmignore +0 -2
  399. package/components/basic/progress/progress-utils/.npmignore +0 -2
  400. package/components/basic/rich-text-editor/.npmignore +0 -2
  401. package/components/basic/search/.npmignore +0 -2
  402. package/components/basic/spinner/.npmignore +0 -2
  403. package/components/basic/tree/.npmignore +0 -2
  404. package/components/basic/video/.npmignore +0 -2
  405. package/components/chart/.npmignore +0 -2
  406. package/components/containers/accordion/.npmignore +0 -2
  407. package/components/containers/layout-grid/.npmignore +0 -2
  408. package/components/containers/linear-layout/.npmignore +0 -2
  409. package/components/containers/panel/.npmignore +0 -2
  410. package/components/containers/tabs/.npmignore +0 -2
  411. package/components/containers/tile/.npmignore +0 -2
  412. package/components/containers/wizard/.npmignore +0 -2
  413. package/components/data/card/.npmignore +0 -2
  414. package/components/data/form/.npmignore +0 -2
  415. package/components/data/list/.npmignore +0 -2
  416. package/components/data/live-table/.npmignore +0 -2
  417. package/components/data/pagination/.npmignore +0 -2
  418. package/components/data/table/.npmignore +0 -2
  419. package/components/dialogs/alert-dialog/.npmignore +0 -2
  420. package/components/dialogs/confirm-dialog/.npmignore +0 -2
  421. package/components/dialogs/default/.npmignore +0 -2
  422. package/components/dialogs/design-dialog/.npmignore +0 -2
  423. package/components/dialogs/iframe-dialog/.npmignore +0 -2
  424. package/components/dialogs/login-dialog/.npmignore +0 -2
  425. package/components/dialogs/partial-dialog/.npmignore +0 -2
  426. package/components/input/base-form/.npmignore +0 -2
  427. package/components/input/base-form-custom/.npmignore +0 -2
  428. package/components/input/button/.npmignore +0 -2
  429. package/components/input/button-group/.npmignore +0 -2
  430. package/components/input/calendar/.npmignore +0 -2
  431. package/components/input/caption-position/.npmignore +0 -2
  432. package/components/input/checkbox/.npmignore +0 -2
  433. package/components/input/checkboxset/.npmignore +0 -2
  434. package/components/input/chips/.npmignore +0 -2
  435. package/components/input/color-picker/.npmignore +0 -2
  436. package/components/input/composite/.npmignore +0 -2
  437. package/components/input/currency/.npmignore +0 -2
  438. package/components/input/dataset-aware-form/.npmignore +0 -2
  439. package/components/input/epoch/base-date-time/.npmignore +0 -2
  440. package/components/input/epoch/date/.npmignore +0 -2
  441. package/components/input/epoch/date-time/.npmignore +0 -2
  442. package/components/input/epoch/date-time-picker/.npmignore +0 -2
  443. package/components/input/epoch/picker/.npmignore +0 -2
  444. package/components/input/epoch/time/.npmignore +0 -2
  445. package/components/input/file-upload/.npmignore +0 -2
  446. package/components/input/number/.npmignore +0 -2
  447. package/components/input/radioset/.npmignore +0 -2
  448. package/components/input/rating/.npmignore +0 -2
  449. package/components/input/select/.npmignore +0 -2
  450. package/components/input/slider/.npmignore +0 -2
  451. package/components/input/switch/.npmignore +0 -2
  452. package/components/input/text/.npmignore +0 -2
  453. package/components/input/textarea/.npmignore +0 -2
  454. package/components/navigation/breadcrumb/.npmignore +0 -2
  455. package/components/navigation/menu/.npmignore +0 -2
  456. package/components/navigation/navbar/.npmignore +0 -2
  457. package/components/navigation/popover/.npmignore +0 -2
  458. package/components/page/default/.npmignore +0 -2
  459. package/components/page/footer/.npmignore +0 -2
  460. package/components/page/header/.npmignore +0 -2
  461. package/components/page/left-panel/.npmignore +0 -2
  462. package/components/page/right-panel/.npmignore +0 -2
  463. package/components/page/top-nav/.npmignore +0 -2
  464. package/components/prefab/.npmignore +0 -2
  465. package/core/.npmignore +0 -2
  466. package/http/.npmignore +0 -2
  467. package/oAuth/.npmignore +0 -2
  468. package/runtime/base/.npmignore +0 -2
  469. package/runtime/dynamic/.npmignore +0 -2
  470. package/security/.npmignore +0 -2
  471. package/swipey/.npmignore +0 -2
  472. package/transpiler/.npmignore +0 -2
  473. package/variables/.npmignore +0 -2
@@ -1,29 +1,28 @@
1
- import * as i0 from '@angular/core';
2
- import { AfterViewInit, OnDestroy, Injector } from '@angular/core';
3
- import { StylableComponent, IWidgetConfig } from '@wm/components/base';
4
-
5
- declare abstract class BaseFormComponent extends StylableComponent implements AfterViewInit, OnDestroy {
6
- protected inj: Injector;
7
- private dataval;
8
- private prevDatavalue;
9
- protected binddatavalue: string;
10
- private datavaluesource;
11
- protected constructor(inj: Injector, config: IWidgetConfig, explicitContext: any, initPromise?: Promise<any>);
12
- set datavalue(datavalue: any);
13
- get datavalue(): any;
14
- /**
15
- * Responsible for updating the variable bound to the widget's datavalue property.
16
- * @param value
17
- */
18
- updateBoundVariable(value: any): void;
19
- protected invokeOnChange(value: any, $event?: Event): void;
20
- protected updatePrevDatavalue(val: any): void;
21
- protected getPrevDataValue(): any;
22
- private boundKeydownHandler;
23
- ngAfterViewInit(): void;
24
- ngOnDestroy(): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormComponent, [null, null, { optional: true; }, null]>;
26
- static ɵprov: i0.ɵɵInjectableDeclaration<BaseFormComponent>;
27
- }
28
-
29
- export { BaseFormComponent };
1
+ import * as i0 from "@angular/core";
2
+ import { AfterViewInit, Injector, OnDestroy } from "@angular/core";
3
+ import { IWidgetConfig, StylableComponent } from "@wm/components/base";
4
+ export declare abstract class BaseFormComponent extends StylableComponent implements AfterViewInit, OnDestroy {
5
+ protected inj: Injector;
6
+ private dataval;
7
+ private prevDatavalue;
8
+ protected binddatavalue: string;
9
+ private datavaluesource;
10
+ protected constructor(inj: Injector, config: IWidgetConfig, explicitContext: any, initPromise?: Promise<any>);
11
+ set datavalue(datavalue: any);
12
+ get datavalue(): any;
13
+ /**
14
+ * Responsible for updating the variable bound to the widget's datavalue property.
15
+ * @param value
16
+ */
17
+ updateBoundVariable(value: any): void;
18
+ protected invokeOnChange(value: any, $event?: Event): void;
19
+ protected updatePrevDatavalue(val: any): void;
20
+ protected getPrevDataValue(): any;
21
+ private boundKeydownHandler;
22
+ ngAfterViewInit(): void;
23
+ ngOnDestroy(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormComponent, [null, null, {
25
+ optional: true;
26
+ }, null]>;
27
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
28
+ }
@@ -1,129 +1,115 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/forms'), require('@angular/core'), require('@wm/components/input/base-form')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@angular/forms', '@angular/core', '@wm/components/input/base-form'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.input = global.wm.components.input || {}, global.wm.components.input.baseFormCustom = {}), global.ng.forms, global.ng.core, global.wm.components.input.baseForm));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/forms'), require('@angular/core'), require('@wm/components/input/base-form')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@angular/forms', '@angular/core', '@wm/components/input/base-form'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.input = global.wm.components.input || {}, global.wm.components.input.baseFormCustom = {}), global.ng.forms, global.ng.core, global.wm.components.input.baseForm));
5
5
  })(this, (function (exports, forms, i0, baseForm) { 'use strict';
6
6
 
7
- function _interopNamespaceDefault(e) {
8
- var n = Object.create(null);
9
- if (e) {
10
- Object.keys(e).forEach(function (k) {
11
- if (k !== 'default') {
12
- var d = Object.getOwnPropertyDescriptor(e, k);
13
- Object.defineProperty(n, k, d.get ? d : {
14
- enumerable: true,
15
- get: function () { return e[k]; }
16
- });
17
- }
18
- });
19
- }
20
- n.default = e;
21
- return Object.freeze(n);
22
- }
7
+ function _interopNamespaceDefault(e) {
8
+ var n = Object.create(null);
9
+ if (e) {
10
+ Object.keys(e).forEach(function (k) {
11
+ if (k !== 'default') {
12
+ var d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: function () { return e[k]; }
16
+ });
17
+ }
18
+ });
19
+ }
20
+ n.default = e;
21
+ return Object.freeze(n);
22
+ }
23
23
 
24
- var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
24
+ var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
25
25
 
26
- /*
27
- * WMS-18269
28
- * custom 'required' validator for components,
29
- * as the bound values are resolved at runtime
30
- * Called on 'required' property change
31
- *
32
- * Note: Component needs NG_VALIDATOR provider for this to work
33
- */
34
- function isValidValue(val) {
35
- switch (typeof val) {
36
- case 'object': return (!!val && (!!val.length || !!Object.keys(val).length));
37
- case 'number': return (!!val || val === 0);
38
- default: return !(val === undefined || val === null || val === '');
39
- }
40
- }
41
- function validateRequiredBind(required) {
42
- return (control) => required
43
- ? (isValidValue(control.value)
44
- ? null
45
- : { required: true })
46
- : null;
47
- }
48
- class BaseFormCustomComponent extends baseForm.BaseFormComponent {
49
- constructor() {
50
- super(...arguments);
51
- this._onChange = () => { };
52
- this._onTouched = () => { };
53
- }
54
- ngOnInit() {
55
- super.ngOnInit();
56
- this._formControl = this.inj.get(forms.FormControlName, null);
57
- }
58
- registerOnChange(fn) {
59
- this._onChange = fn;
60
- }
61
- registerOnTouched(fn) {
62
- this._onTouched = fn;
63
- }
64
- writeValue(value) {
65
- if (this.isDestroyed) {
66
- return;
67
- }
68
- if (this._formControl) {
69
- if (this._formControl.valueAccessor["widgetSubType"].startsWith('wm-custom-'))
70
- return;
71
- this.datavalue = value;
72
- this.onPropertyChange('datavalue', value);
73
- this.updatePrevDatavalue(value);
74
- }
75
- /*
76
- * WMS:18246
77
- * Call onChange on default value, so that the Component Model is updated
78
- * Do only When the Model Value is different from datavalue
79
- */
80
- (value !== this.datavalue) && this._onChange(this.datavalue);
81
- }
82
- get formControl() {
83
- return this._formControl;
84
- }
85
- invokeOnChange(value, $event, valid) {
86
- // let the angular know about the change
87
- if (this._onChange) {
88
- this._onChange(value);
89
- }
90
- if ($event) {
91
- super.invokeOnChange(value, $event);
92
- }
93
- else if (valid) {
94
- // Fix for [WMS-24869]: updating PrevDatavalue when there is a default value for the widget.
95
- this.updatePrevDatavalue(value);
96
- }
97
- }
98
- invokeOnTouched($event) {
99
- if (this._onTouched) {
100
- this._onTouched();
101
- }
102
- if ($event) {
103
- this.invokeEventCallback('blur', { $event });
104
- }
105
- }
106
- invokeOnFocus($event) {
107
- this.invokeEventCallback('focus', { $event });
108
- }
109
- /* WMS-18269 */
110
- validate(control) {
111
- return this['show'] ? validateRequiredBind(this['required'])(control) : null;
112
- }
113
- ngOnDestroy() {
114
- // MEMORY LEAK FIX: Clear form control reference
115
- this._formControl = null;
116
- this._onChange = null;
117
- this._onTouched = null;
118
- super.ngOnDestroy();
119
- }
120
- static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: BaseFormCustomComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable }); }
121
- static { this.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: BaseFormCustomComponent }); }
122
- }
123
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: BaseFormCustomComponent, decorators: [{
124
- type: i0.Injectable
125
- }] });
26
+ function isValidValue(val) {
27
+ switch (typeof val) {
28
+ case "object": return !!val && (!!val.length || !!Object.keys(val).length);
29
+ case "number": return !!val || val === 0;
30
+ default: return !(val === void 0 || val === null || val === "");
31
+ }
32
+ }
33
+ function validateRequiredBind(required) {
34
+ return (control) => required ? isValidValue(control.value) ? null : { required: true } : null;
35
+ }
36
+ var BaseFormCustomComponent = class BaseFormCustomComponent extends baseForm.BaseFormComponent {
37
+ constructor() {
38
+ super(...arguments);
39
+ this._onChange = () => {};
40
+ this._onTouched = () => {};
41
+ }
42
+ ngOnInit() {
43
+ super.ngOnInit();
44
+ this._formControl = this.inj.get(forms.FormControlName, null);
45
+ }
46
+ registerOnChange(fn) {
47
+ this._onChange = fn;
48
+ }
49
+ registerOnTouched(fn) {
50
+ this._onTouched = fn;
51
+ }
52
+ writeValue(value) {
53
+ if (this.isDestroyed) return;
54
+ if (this._formControl) {
55
+ if (this._formControl.valueAccessor["widgetSubType"].startsWith("wm-custom-")) return;
56
+ this.datavalue = value;
57
+ this.onPropertyChange("datavalue", value);
58
+ this.updatePrevDatavalue(value);
59
+ }
60
+ value !== this.datavalue && this._onChange(this.datavalue);
61
+ }
62
+ get formControl() {
63
+ return this._formControl;
64
+ }
65
+ invokeOnChange(value, $event, valid) {
66
+ if (this._onChange) this._onChange(value);
67
+ if ($event) super.invokeOnChange(value, $event);
68
+ else if (valid) this.updatePrevDatavalue(value);
69
+ }
70
+ invokeOnTouched($event) {
71
+ if (this._onTouched) this._onTouched();
72
+ if ($event) this.invokeEventCallback("blur", { $event });
73
+ }
74
+ invokeOnFocus($event) {
75
+ this.invokeEventCallback("focus", { $event });
76
+ }
77
+ validate(control) {
78
+ return this["show"] ? validateRequiredBind(this["required"])(control) : null;
79
+ }
80
+ ngOnDestroy() {
81
+ this._formControl = null;
82
+ this._onChange = null;
83
+ this._onTouched = null;
84
+ super.ngOnDestroy();
85
+ }
86
+ static {
87
+ this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
88
+ minVersion: "12.0.0",
89
+ version: "22.2.1",
90
+ ngImport: i0__namespace,
91
+ type: BaseFormCustomComponent,
92
+ deps: null,
93
+ target: i0__namespace.ɵɵFactoryTarget.Injectable
94
+ });
95
+ }
96
+ static {
97
+ this.ɵprov = i0__namespace.ɵɵngDeclareInjectable({
98
+ minVersion: "12.0.0",
99
+ version: "22.2.1",
100
+ ngImport: i0__namespace,
101
+ type: BaseFormCustomComponent
102
+ });
103
+ }
104
+ };
105
+ i0__namespace.ɵɵngDeclareClassMetadata({
106
+ minVersion: "12.0.0",
107
+ version: "22.2.1",
108
+ ngImport: i0__namespace,
109
+ type: BaseFormCustomComponent,
110
+ decorators: [{ type: i0.Injectable }]
111
+ });
126
112
 
127
- exports.BaseFormCustomComponent = BaseFormCustomComponent;
113
+ exports.BaseFormCustomComponent = BaseFormCustomComponent;
128
114
 
129
115
  }));
@@ -1,112 +1,93 @@
1
- import { FormControlName } from '@angular/forms';
2
- import * as i0 from '@angular/core';
3
- import { Injectable } from '@angular/core';
4
- import { BaseFormComponent } from '@wm/components/input/base-form';
5
-
6
- /*
7
- * WMS-18269
8
- * custom 'required' validator for components,
9
- * as the bound values are resolved at runtime
10
- * Called on 'required' property change
11
- *
12
- * Note: Component needs NG_VALIDATOR provider for this to work
13
- */
1
+ import { FormControlName } from "@angular/forms";
2
+ import * as i0 from "@angular/core";
3
+ import { Injectable } from "@angular/core";
4
+ import { BaseFormComponent } from "@wm/components/input/base-form";
14
5
  function isValidValue(val) {
15
- switch (typeof val) {
16
- case 'object': return (!!val && (!!val.length || !!Object.keys(val).length));
17
- case 'number': return (!!val || val === 0);
18
- default: return !(val === undefined || val === null || val === '');
19
- }
6
+ switch (typeof val) {
7
+ case "object": return !!val && (!!val.length || !!Object.keys(val).length);
8
+ case "number": return !!val || val === 0;
9
+ default: return !(val === void 0 || val === null || val === "");
10
+ }
20
11
  }
21
12
  function validateRequiredBind(required) {
22
- return (control) => required
23
- ? (isValidValue(control.value)
24
- ? null
25
- : { required: true })
26
- : null;
27
- }
28
- class BaseFormCustomComponent extends BaseFormComponent {
29
- constructor() {
30
- super(...arguments);
31
- this._onChange = () => { };
32
- this._onTouched = () => { };
33
- }
34
- ngOnInit() {
35
- super.ngOnInit();
36
- this._formControl = this.inj.get(FormControlName, null);
37
- }
38
- registerOnChange(fn) {
39
- this._onChange = fn;
40
- }
41
- registerOnTouched(fn) {
42
- this._onTouched = fn;
43
- }
44
- writeValue(value) {
45
- if (this.isDestroyed) {
46
- return;
47
- }
48
- if (this._formControl) {
49
- if (this._formControl.valueAccessor["widgetSubType"].startsWith('wm-custom-'))
50
- return;
51
- this.datavalue = value;
52
- this.onPropertyChange('datavalue', value);
53
- this.updatePrevDatavalue(value);
54
- }
55
- /*
56
- * WMS:18246
57
- * Call onChange on default value, so that the Component Model is updated
58
- * Do only When the Model Value is different from datavalue
59
- */
60
- (value !== this.datavalue) && this._onChange(this.datavalue);
61
- }
62
- get formControl() {
63
- return this._formControl;
64
- }
65
- invokeOnChange(value, $event, valid) {
66
- // let the angular know about the change
67
- if (this._onChange) {
68
- this._onChange(value);
69
- }
70
- if ($event) {
71
- super.invokeOnChange(value, $event);
72
- }
73
- else if (valid) {
74
- // Fix for [WMS-24869]: updating PrevDatavalue when there is a default value for the widget.
75
- this.updatePrevDatavalue(value);
76
- }
77
- }
78
- invokeOnTouched($event) {
79
- if (this._onTouched) {
80
- this._onTouched();
81
- }
82
- if ($event) {
83
- this.invokeEventCallback('blur', { $event });
84
- }
85
- }
86
- invokeOnFocus($event) {
87
- this.invokeEventCallback('focus', { $event });
88
- }
89
- /* WMS-18269 */
90
- validate(control) {
91
- return this['show'] ? validateRequiredBind(this['required'])(control) : null;
92
- }
93
- ngOnDestroy() {
94
- // MEMORY LEAK FIX: Clear form control reference
95
- this._formControl = null;
96
- this._onChange = null;
97
- this._onTouched = null;
98
- super.ngOnDestroy();
99
- }
100
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BaseFormCustomComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
101
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BaseFormCustomComponent }); }
13
+ return (control) => required ? isValidValue(control.value) ? null : { required: true } : null;
102
14
  }
103
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BaseFormCustomComponent, decorators: [{
104
- type: Injectable
105
- }] });
106
-
107
- /**
108
- * Generated bundle index. Do not edit.
109
- */
110
-
15
+ var BaseFormCustomComponent = class BaseFormCustomComponent extends BaseFormComponent {
16
+ constructor() {
17
+ super(...arguments);
18
+ this._onChange = () => {};
19
+ this._onTouched = () => {};
20
+ }
21
+ ngOnInit() {
22
+ super.ngOnInit();
23
+ this._formControl = this.inj.get(FormControlName, null);
24
+ }
25
+ registerOnChange(fn) {
26
+ this._onChange = fn;
27
+ }
28
+ registerOnTouched(fn) {
29
+ this._onTouched = fn;
30
+ }
31
+ writeValue(value) {
32
+ if (this.isDestroyed) return;
33
+ if (this._formControl) {
34
+ if (this._formControl.valueAccessor["widgetSubType"].startsWith("wm-custom-")) return;
35
+ this.datavalue = value;
36
+ this.onPropertyChange("datavalue", value);
37
+ this.updatePrevDatavalue(value);
38
+ }
39
+ value !== this.datavalue && this._onChange(this.datavalue);
40
+ }
41
+ get formControl() {
42
+ return this._formControl;
43
+ }
44
+ invokeOnChange(value, $event, valid) {
45
+ if (this._onChange) this._onChange(value);
46
+ if ($event) super.invokeOnChange(value, $event);
47
+ else if (valid) this.updatePrevDatavalue(value);
48
+ }
49
+ invokeOnTouched($event) {
50
+ if (this._onTouched) this._onTouched();
51
+ if ($event) this.invokeEventCallback("blur", { $event });
52
+ }
53
+ invokeOnFocus($event) {
54
+ this.invokeEventCallback("focus", { $event });
55
+ }
56
+ validate(control) {
57
+ return this["show"] ? validateRequiredBind(this["required"])(control) : null;
58
+ }
59
+ ngOnDestroy() {
60
+ this._formControl = null;
61
+ this._onChange = null;
62
+ this._onTouched = null;
63
+ super.ngOnDestroy();
64
+ }
65
+ static {
66
+ this.ɵfac = i0.ɵɵngDeclareFactory({
67
+ minVersion: "12.0.0",
68
+ version: "22.2.1",
69
+ ngImport: i0,
70
+ type: BaseFormCustomComponent,
71
+ deps: null,
72
+ target: i0.ɵɵFactoryTarget.Injectable
73
+ });
74
+ }
75
+ static {
76
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
77
+ minVersion: "12.0.0",
78
+ version: "22.2.1",
79
+ ngImport: i0,
80
+ type: BaseFormCustomComponent
81
+ });
82
+ }
83
+ };
84
+ i0.ɵɵngDeclareClassMetadata({
85
+ minVersion: "12.0.0",
86
+ version: "22.2.1",
87
+ ngImport: i0,
88
+ type: BaseFormCustomComponent,
89
+ decorators: [{ type: Injectable }]
90
+ });
111
91
  export { BaseFormCustomComponent };
112
- //# sourceMappingURL=index.mjs.map
92
+
93
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/input/base-form-custom/src/base-form-custom.component.ts","../../../../../projects/components/widgets/input/base-form-custom/src/index.ts"],"sourcesContent":["import { ControlValueAccessor, FormControlName, Validator, ValidatorFn, AbstractControl } from '@angular/forms';\nimport { Injectable, OnDestroy, OnInit } from '@angular/core';\n\nimport { BaseFormComponent } from '@wm/components/input/base-form';\n\n/*\n * WMS-18269\n * custom 'required' validator for components,\n * as the bound values are resolved at runtime\n * Called on 'required' property change\n *\n * Note: Component needs NG_VALIDATOR provider for this to work\n */\nfunction isValidValue(val): Boolean {\n switch(typeof val) {\n case 'object': return (!!val && (!!val.length || !!Object.keys(val).length));\n case 'number': return (!!val || val === 0);\n default: return !(val === undefined || val === null || val === '');\n }\n}\nfunction validateRequiredBind(required: boolean): ValidatorFn {\n return (control: AbstractControl) =>\n required\n ? (isValidValue(control.value)\n ? null\n : { required: true })\n : null;\n}\n\n@Injectable()\nexport abstract class BaseFormCustomComponent extends BaseFormComponent implements ControlValueAccessor, OnInit, OnDestroy, Validator {\n\n private _formControl: FormControlName;\n protected _onChange: any = () => {};\n private _onTouched: any = () => {};\n\n ngOnInit() {\n super.ngOnInit();\n this._formControl = this.inj.get(FormControlName, null);\n }\n\n public registerOnChange(fn) {\n this._onChange = fn;\n }\n\n public registerOnTouched(fn) {\n this._onTouched = fn;\n }\n\n public writeValue(value) {\n if (this.isDestroyed) {\n return;\n }\n if (this._formControl) {\n\n if(this._formControl.valueAccessor[\"widgetSubType\"].startsWith('wm-custom-'))\n return;\n\n this.datavalue = value;\n this.onPropertyChange('datavalue', value);\n this.updatePrevDatavalue(value);\n }\n /*\n * WMS:18246\n * Call onChange on default value, so that the Component Model is updated\n * Do only When the Model Value is different from datavalue\n */\n (value!==this.datavalue) && this._onChange(this.datavalue);\n }\n\n public get formControl() {\n return this._formControl;\n }\n\n public invokeOnChange(value, $event?: Event | any, valid?: boolean) {\n // let the angular know about the change\n if (this._onChange) {\n this._onChange(value);\n }\n if ($event) {\n super.invokeOnChange(value, $event);\n } else if (valid) {\n // Fix for [WMS-24869]: updating PrevDatavalue when there is a default value for the widget.\n this.updatePrevDatavalue(value);\n }\n }\n\n public invokeOnTouched($event?: Event) {\n if (this._onTouched) {\n this._onTouched();\n }\n\n if ($event) {\n this.invokeEventCallback('blur', {$event});\n }\n }\n\n public invokeOnFocus($event: Event) {\n this.invokeEventCallback('focus', {$event});\n }\n /* WMS-18269 */\n validate(control: AbstractControl):{[key: string]:any} {\n return this['show'] ? validateRequiredBind(this['required'])(control) : null;\n }\n\n ngOnDestroy() {\n // MEMORY LEAK FIX: Clear form control reference\n this._formControl = null;\n this._onChange = null;\n this._onTouched = null;\n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,EAAC,MAAM,EAAC,CAAC;IAC/C;;AAEA,IAAA,QAAQ,CAAC,OAAwB,EAAA;QAC7B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,oBAAoB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,IAAI;IAChF;IAEA,WAAW,GAAA;;AAEP,QAAA,IAAI,CAAC,YAAY,GAAG,IAAI;AACxB,QAAA,IAAI,CAAC,SAAS,GAAG,IAAI;AACrB,QAAA,IAAI,CAAC,UAAU,GAAG,IAAI;QAEtB,KAAK,CAAC,WAAW,EAAE;IACvB;+GAlFkB,uBAAuB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;mHAAvB,uBAAuB,EAAA,CAAA,CAAA;;4FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAD5C;;;AC7BD;;AAEG;;;;"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../projects/components/widgets/input/base-form-custom/src/base-form-custom.component.ts"],"sourcesContent":["import { ControlValueAccessor, FormControlName, Validator, ValidatorFn, AbstractControl } from '@angular/forms';\nimport { Injectable, OnDestroy, OnInit } from '@angular/core';\n\nimport { BaseFormComponent } from '@wm/components/input/base-form';\n\n/*\n * WMS-18269\n * custom 'required' validator for components,\n * as the bound values are resolved at runtime\n * Called on 'required' property change\n *\n * Note: Component needs NG_VALIDATOR provider for this to work\n */\nfunction isValidValue(val): Boolean {\n switch(typeof val) {\n case 'object': return (!!val && (!!val.length || !!Object.keys(val).length));\n case 'number': return (!!val || val === 0);\n default: return !(val === undefined || val === null || val === '');\n }\n}\nfunction validateRequiredBind(required: boolean): ValidatorFn {\n return (control: AbstractControl) =>\n required\n ? (isValidValue(control.value)\n ? null\n : { required: true })\n : null;\n}\n\n@Injectable()\nexport abstract class BaseFormCustomComponent extends BaseFormComponent implements ControlValueAccessor, OnInit, OnDestroy, Validator {\n\n private _formControl: FormControlName;\n protected _onChange: any = () => {};\n private _onTouched: any = () => {};\n\n ngOnInit() {\n super.ngOnInit();\n this._formControl = this.inj.get(FormControlName, null);\n }\n\n public registerOnChange(fn) {\n this._onChange = fn;\n }\n\n public registerOnTouched(fn) {\n this._onTouched = fn;\n }\n\n public writeValue(value) {\n if (this.isDestroyed) {\n return;\n }\n if (this._formControl) {\n\n if(this._formControl.valueAccessor[\"widgetSubType\"].startsWith('wm-custom-'))\n return;\n\n this.datavalue = value;\n this.onPropertyChange('datavalue', value);\n this.updatePrevDatavalue(value);\n }\n /*\n * WMS:18246\n * Call onChange on default value, so that the Component Model is updated\n * Do only When the Model Value is different from datavalue\n */\n (value!==this.datavalue) && this._onChange(this.datavalue);\n }\n\n public get formControl() {\n return this._formControl;\n }\n\n public invokeOnChange(value, $event?: Event | any, valid?: boolean) {\n // let the angular know about the change\n if (this._onChange) {\n this._onChange(value);\n }\n if ($event) {\n super.invokeOnChange(value, $event);\n } else if (valid) {\n // Fix for [WMS-24869]: updating PrevDatavalue when there is a default value for the widget.\n this.updatePrevDatavalue(value);\n }\n }\n\n public invokeOnTouched($event?: Event) {\n if (this._onTouched) {\n this._onTouched();\n }\n\n if ($event) {\n this.invokeEventCallback('blur', {$event});\n }\n }\n\n public invokeOnFocus($event: Event) {\n this.invokeEventCallback('focus', {$event});\n }\n /* WMS-18269 */\n validate(control: AbstractControl):{[key: string]:any} {\n return this['show'] ? validateRequiredBind(this['required'])(control) : null;\n }\n\n ngOnDestroy() {\n // MEMORY LEAK FIX: Clear form control reference\n this._formControl = null;\n this._onChange = null;\n this._onTouched = null;\n\n super.ngOnDestroy();\n }\n}\n"],"mappings":";;;;AAaA,SAAS,aAAa,KAAG;CACrB,QAAO,OAAO,KAAd;EACI,KAAK,UAAU,OAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,OAAO,KAAK,GAAG,CAAC,CAAC;EACpE,KAAK,UAAU,OAAQ,CAAC,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AAC,CAAC,OAAO,IAAI;CAC5E;CAEA,cAAW;EAEP,KAAK,eAAe;EACpB,KAAK,YAAY;EACjB,KAAK,aAAa;EAElB,MAAM,YAAW;CACrB;CAlFkB;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAuB,MAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAvB;EAAA,KAAA,QAAA,GAAA,sBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;EAAuB,CAAA;CAAA;;AAAvB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAuB,YAAA,CAAA,EAD5C,MAAA,WAAA,CAAA"}
@@ -1,26 +1,23 @@
1
- import { ControlValueAccessor, Validator, FormControlName, AbstractControl } from '@angular/forms';
2
- import * as i0 from '@angular/core';
3
- import { OnInit, OnDestroy } from '@angular/core';
4
- import { BaseFormComponent } from '@wm/components/input/base-form';
5
-
6
- declare abstract class BaseFormCustomComponent extends BaseFormComponent implements ControlValueAccessor, OnInit, OnDestroy, Validator {
7
- private _formControl;
8
- protected _onChange: any;
9
- private _onTouched;
10
- ngOnInit(): void;
11
- registerOnChange(fn: any): void;
12
- registerOnTouched(fn: any): void;
13
- writeValue(value: any): void;
14
- get formControl(): FormControlName;
15
- invokeOnChange(value: any, $event?: Event | any, valid?: boolean): void;
16
- invokeOnTouched($event?: Event): void;
17
- invokeOnFocus($event: Event): void;
18
- validate(control: AbstractControl): {
19
- [key: string]: any;
20
- };
21
- ngOnDestroy(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormCustomComponent, never>;
23
- static ɵprov: i0.ɵɵInjectableDeclaration<BaseFormCustomComponent>;
24
- }
25
-
26
- export { BaseFormCustomComponent };
1
+ import { AbstractControl, ControlValueAccessor, FormControlName, Validator } from "@angular/forms";
2
+ import * as i0 from "@angular/core";
3
+ import { OnDestroy, OnInit } from "@angular/core";
4
+ import { BaseFormComponent } from "@wm/components/input/base-form";
5
+ export declare abstract class BaseFormCustomComponent extends BaseFormComponent implements ControlValueAccessor, OnInit, OnDestroy, Validator {
6
+ private _formControl;
7
+ protected _onChange: any;
8
+ private _onTouched;
9
+ ngOnInit(): void;
10
+ registerOnChange(fn: any): void;
11
+ registerOnTouched(fn: any): void;
12
+ writeValue(value: any): void;
13
+ get formControl(): FormControlName;
14
+ invokeOnChange(value: any, $event?: Event | any, valid?: boolean): void;
15
+ invokeOnTouched($event?: Event): void;
16
+ invokeOnFocus($event: Event): void;
17
+ validate(control: AbstractControl): {
18
+ [key: string]: any;
19
+ };
20
+ ngOnDestroy(): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormCustomComponent, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
23
+ }