@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,261 +1,343 @@
1
- import * as i1 from '@angular/common';
2
- import { CommonModule } from '@angular/common';
3
- import * as i2 from '@angular/forms';
4
- import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
5
- import * as i0 from '@angular/core';
6
- import { ElementRef, ViewChild, Inject, Optional, Component } from '@angular/core';
7
- import { FormWidgetType, generateGUId, noop } from '@wm/core';
8
- import { PROP_STRING, PROP_ANY, PROP_NUMBER, PROP_BOOLEAN, register, registerFormWidget, styler, getOrderedDataset, WmAppIconComponent, provideAs, provideAsWidgetRef } from '@wm/components/base';
9
- import { DatasetAwareFormComponent } from '@wm/components/input/dataset-aware-form';
10
- import { slice, isEmpty, find, isUndefined, toString } from 'lodash-es';
11
-
12
- const ratingProps = new Map([
13
- ['caption', PROP_STRING],
14
- ['class', PROP_STRING],
15
- ['datafield', PROP_STRING],
16
- ['dataset', PROP_ANY],
17
- ['datavaluesource', PROP_ANY],
18
- ['datavalue', PROP_STRING],
19
- ['displayexpression', PROP_STRING],
20
- ['displayfield', PROP_STRING],
21
- ['iconcolor', PROP_STRING],
22
- ['activeiconclass', { value: 'wi wi-star', ...PROP_STRING }],
23
- ['inactiveiconclass', { value: 'wi wi-star-border', ...PROP_STRING }],
24
- ['activeiconurl', PROP_STRING],
25
- ['inactiveiconurl', PROP_STRING],
26
- ['iconsize', PROP_STRING],
27
- ['maxvalue', { value: 5, ...PROP_NUMBER }],
28
- ['name', PROP_STRING],
29
- ['orderby', PROP_STRING],
30
- ['readonly', PROP_BOOLEAN],
31
- ['show', { value: true, ...PROP_BOOLEAN }],
32
- ['showcaptions', { value: true, ...PROP_BOOLEAN }],
33
- ['tabindex', { value: 0, ...PROP_NUMBER }],
34
- ['usekeys', PROP_BOOLEAN]
1
+ import * as i1 from "@angular/common";
2
+ import { CommonModule } from "@angular/common";
3
+ import * as i2 from "@angular/forms";
4
+ import { FormsModule, NG_VALUE_ACCESSOR } from "@angular/forms";
5
+ import * as i0 from "@angular/core";
6
+ import { ChangeDetectionStrategy, Component, ElementRef, Inject, Optional, ViewChild } from "@angular/core";
7
+ import { FormWidgetType, generateGUId, noop } from "@wm/core";
8
+ import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, WmAppIconComponent, getOrderedDataset, provideAs, provideAsWidgetRef, register, registerFormWidget, styler } from "@wm/components/base";
9
+ import { DatasetAwareFormComponent } from "@wm/components/input/dataset-aware-form";
10
+ import { find, isEmpty, isUndefined, slice, toString } from "lodash-es";
11
+ const ratingProps = /* @__PURE__ */ new Map([
12
+ ["caption", PROP_STRING],
13
+ ["class", PROP_STRING],
14
+ ["datafield", PROP_STRING],
15
+ ["dataset", PROP_ANY],
16
+ ["datavaluesource", PROP_ANY],
17
+ ["datavalue", PROP_STRING],
18
+ ["displayexpression", PROP_STRING],
19
+ ["displayfield", PROP_STRING],
20
+ ["iconcolor", PROP_STRING],
21
+ ["activeiconclass", {
22
+ value: "wi wi-star",
23
+ ...PROP_STRING
24
+ }],
25
+ ["inactiveiconclass", {
26
+ value: "wi wi-star-border",
27
+ ...PROP_STRING
28
+ }],
29
+ ["activeiconurl", PROP_STRING],
30
+ ["inactiveiconurl", PROP_STRING],
31
+ ["iconsize", PROP_STRING],
32
+ ["maxvalue", {
33
+ value: 5,
34
+ ...PROP_NUMBER
35
+ }],
36
+ ["name", PROP_STRING],
37
+ ["orderby", PROP_STRING],
38
+ ["readonly", PROP_BOOLEAN],
39
+ ["show", {
40
+ value: true,
41
+ ...PROP_BOOLEAN
42
+ }],
43
+ ["showcaptions", {
44
+ value: true,
45
+ ...PROP_BOOLEAN
46
+ }],
47
+ ["tabindex", {
48
+ value: 0,
49
+ ...PROP_NUMBER
50
+ }],
51
+ ["usekeys", PROP_BOOLEAN]
35
52
  ]);
36
53
  const registerProps = () => {
37
- register('wm-rating', ratingProps);
38
- registerFormWidget(FormWidgetType.RATING, new Map(ratingProps));
54
+ register("wm-rating", ratingProps);
55
+ registerFormWidget(FormWidgetType.RATING, new Map(ratingProps));
56
+ };
57
+ const WIDGET_CONFIG = {
58
+ widgetType: "wm-rating",
59
+ hostClass: "app-ratings"
39
60
  };
40
-
41
- const DEFAULT_CLS = 'app-ratings';
42
- const WIDGET_CONFIG = { widgetType: 'wm-rating', hostClass: DEFAULT_CLS };
43
61
  const MAX_RATING = 10;
44
62
  const DEFAULT_RATING = 5;
45
- class RatingComponent extends DatasetAwareFormComponent {
46
- static { this.initializeProps = registerProps(); }
47
- static { this.DEFAULT_ACTIVE_ICON_CLASS = 'wi wi-star'; }
48
- static { this.DEFAULT_INACTIVE_ICON_CLASS = 'wi wi-star-border'; }
49
- get selectedRatingValue() {
50
- return this._selectedRatingValue;
51
- }
52
- set selectedRatingValue(val) {
53
- this._selectedRatingValue = val;
54
- this.calculateRatingsWidth();
55
- }
56
- constructor(inj, explicitContext) {
57
- super(inj, WIDGET_CONFIG, explicitContext);
58
- this.isDecimal = false;
59
- this.activeiconclass = '';
60
- this.inactiveiconclass = '';
61
- this.defaultActiveIconClass = RatingComponent.DEFAULT_ACTIVE_ICON_CLASS;
62
- this.defaultInactiveIconClass = RatingComponent.DEFAULT_INACTIVE_ICON_CLASS;
63
- this._id = generateGUId();
64
- styler(this.nativeElement, this);
65
- // prepare the rating options on dataset ready.
66
- const datasetSubscription = this.dataset$.subscribe(() => {
67
- this.prepareRatingDataset();
68
- });
69
- this.registerDestroyListener(() => datasetSubscription.unsubscribe());
70
- // listen to changes in datavalue.
71
- const datavalueSubscription = this.datavalue$.subscribe(() => this.onDatavalueChange(this.datavalue));
72
- this.registerDestroyListener(() => datavalueSubscription.unsubscribe());
73
- }
74
- // Change event is registered from the template, Prevent the framework from registering one more event
75
- handleEvent(node, eventName, eventCallback, locals) {
76
- if (eventName !== 'change' && eventName !== 'blur') {
77
- super.handleEvent(this.ratingEl.nativeElement, eventName, eventCallback, locals);
78
- }
79
- }
80
- // This function returns the rating widget dataset containing the index, value and label
81
- prepareRatingDataset() {
82
- if (!this.datasetItems.length) {
83
- this.ratingItems = [];
84
- this.caption = '';
85
- }
86
- let ratingItems = [];
87
- let data = this.datasetItems;
88
- const maxvalue = parseInt(this.maxvalue || this.datasetItems.length, 10);
89
- const maxValue = (maxvalue > MAX_RATING ? MAX_RATING : maxvalue) || DEFAULT_RATING;
90
- /**
91
- * 1. If datasetItems.length is more than maxValue (i.e. 10 ratings) then just extract maxValue of items from datasetItems.
92
- * 2. If datasetItems are not available then prepare ratings value depending on maxvalue. eg: 1,2,3 .. upto maxvalue
93
- * 3. If maxvalue / i value is more than datasetItems length, prepare default rating items for i values more than datasetItems.length
94
- */
95
- if (data.length && data.length > maxValue) {
96
- data = slice(data, 0, maxValue);
97
- }
98
- for (let i = maxValue; i > 0; i--) {
99
- if (!data.length) {
100
- ratingItems.push({ key: i, value: i, index: i, label: i });
101
- }
102
- else if (i > data.length) {
103
- ratingItems.push({ key: i, value: i, index: i, label: i });
104
- }
105
- else {
106
- data = getOrderedDataset(data, 'index:desc');
107
- ratingItems = ratingItems.concat(data);
108
- break;
109
- }
110
- }
111
- this.ratingItems = ratingItems;
112
- if (!data.length) { // constructs default datasetItems when there is no dataset binding.
113
- this.datasetItems = ratingItems;
114
- }
115
- this.onDatavalueChange(this.datavalue);
116
- }
117
- onRatingClick($event, rate) {
118
- this.modelByKey = rate.key;
119
- this.selectedRatingValue = rate.index;
120
- // support if the caption is binded in the old projects for backward compatibility
121
- if (!this.showcaptions) {
122
- this.caption = rate.label;
123
- }
124
- this.invokeOnTouched();
125
- // invoke on datavalue change.
126
- this.invokeOnChange(this.datavalue, $event || {}, true);
127
- }
128
- // Update the selected flag on datasetItems and assign the ratingValue.
129
- /**
130
- * On datavalue change, update the caption, selectedRatingValue.
131
- * 1. if datasetItems contain the selected item (check the selected flag on item), find the index of selected item.
132
- * 2. if not, just check if the datavalue is provided as the index on the item.
133
- *
134
- * @param dataVal datavalue
135
- */
136
- onDatavalueChange(dataVal) {
137
- if (!isEmpty(this.datasetItems)) {
138
- let selectedItem = find(this.datasetItems, { 'selected': true });
139
- if (!selectedItem && !isUndefined(dataVal)) {
140
- selectedItem = find(this.datasetItems, function (item) {
141
- return toString(item.index) === dataVal;
142
- });
143
- if (selectedItem) {
144
- selectedItem.selected = true;
145
- }
146
- }
147
- if (!selectedItem) {
148
- // reset the model if there is no item found.
149
- this.modelByKey = undefined;
150
- this.caption = '';
151
- }
152
- this.selectedRatingValue = selectedItem ? selectedItem.index : 0;
153
- if (selectedItem) {
154
- this.caption = selectedItem.label;
155
- }
156
- }
157
- else {
158
- this.selectedRatingValue = 0;
159
- }
160
- if (this.readonly) {
161
- // when dataset is not given but datavalue is provided which is integer
162
- if (!this.selectedRatingValue && !isNaN(dataVal)) {
163
- this.selectedRatingValue = (parseFloat(dataVal) <= this.maxvalue) ? dataVal : this.maxvalue;
164
- }
165
- this.ratingsWidth = this.calculateRatingsWidth(dataVal);
166
- }
167
- if (this.readonly && !isNaN(dataVal) && !Number.isInteger(parseFloat(dataVal))) {
168
- this._modelByKey = dataVal;
169
- this._modelByValue = dataVal;
170
- this.isDecimal = true;
171
- this.ratingsWidth = this.calculateRatingsWidth(this.getPrevDataValue());
172
- this.caption = this.selectedRatingValue;
173
- }
174
- }
175
- calculateRatingsWidth(dataVal) {
176
- const selectedRating = parseFloat(this.selectedRatingValue), maxValue = parseInt(this.maxvalue || this.datasetItems.length, 10) || DEFAULT_RATING;
177
- dataVal = dataVal || this.datavalue;
178
- if ((dataVal === undefined || dataVal === '' || dataVal === null) || selectedRating <= 0) {
179
- this.caption = '';
180
- return '0%';
181
- }
182
- const safeRating = Math.min(selectedRating, maxValue);
183
- return ((safeRating / maxValue) * 100) + '%';
184
- }
185
- onPropertyChange(key, nv, ov) {
186
- if (key === 'readonly') {
187
- this.isDecimal = false;
188
- if (nv) {
189
- this.ratingsWidth = this.calculateRatingsWidth();
190
- this.onDatavalueChange(this.getPrevDataValue());
191
- }
192
- }
193
- else if (key === 'maxvalue') {
194
- /** Storing the datavalue in temp variable and assiging back to datavalue
195
- * after default datalist is prepared to trigger Dataset Aware class select cycle
196
- * as the datavalue property change is triggering first rather than maxvalue
197
- * in the rating widget is used inside a datatable
198
- */
199
- this.starsArray = Array(this.maxvalue);
200
- let tempDataValue = this.datavalue;
201
- this.prepareRatingDataset();
202
- // reset all the items.
203
- this.resetDatasetItems();
204
- if (!isUndefined(tempDataValue)) {
205
- this.datavalue = tempDataValue;
206
- }
207
- }
208
- else {
209
- super.onPropertyChange(key, nv, ov);
210
- }
211
- }
212
- /* Detect touch enabled devices & update hover styles*/
213
- onTouchStart($event) {
214
- this.touchEnabled = true;
215
- this.onTouchStart = noop;
216
- }
217
- onMouseleave() {
218
- this.caption = this.displayValue;
219
- }
220
- onMouseOver($event, rate) {
221
- this.caption = rate.label;
222
- !this.touchEnabled && !$event.target.classList.contains('rating-label-hover') && $event.target.classList.add('rating-label-hover');
223
- }
224
- ngOnDestroy() {
225
- // MEMORY LEAK FIX: Clear ViewChild reference
226
- this.ratingEl = null;
227
- // MEMORY LEAK FIX: Clear rating items array
228
- if (this.ratingItems) {
229
- this.ratingItems = [];
230
- }
231
- // Call parent ngOnDestroy (DatasetAwareFormComponent has cleanup)
232
- super.ngOnDestroy();
233
- }
234
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: RatingComponent, deps: [{ token: i0.Injector }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
235
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: RatingComponent, isStandalone: true, selector: "[wmRating]", providers: [
236
- provideAs(RatingComponent, NG_VALUE_ACCESSOR, true),
237
- provideAsWidgetRef(RatingComponent)
238
- ], viewQueries: [{ propertyName: "ratingEl", first: true, predicate: ["ratingInput"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<div (focus)=\"onFocus($event)\" [(ngModel)]=\"modelByKey\" [ngModelOptions]=\"{standalone: true}\"\n class=\"ratings-wrapper\" ngDefaultControl>\n <div [class.hidden]=\"readonly && isDecimal\" [class.disabled]=\"readonly\" class=\"rating-style\">\n @for (rate of ratingItems; track rate) {\n <label\n [ngClass]=\"{active : rate.index <= selectedRatingValue}\"\n [ngStyle]=\"{'font-size' :iconsize, color: rate.index <= selectedRatingValue && iconcolor}\"\n [title]=\"rate.label || rate.index\"\n (touchstart)=\"onTouchStart($event)\"\n (mouseleave)=\"onMouseleave($event, rate)\"\n (mouseover)=\"onMouseOver($event, rate)\"\n [for]=\"_id + '-' + rate.index\">\n @if (rate.index <= selectedRatingValue) {\n <wm-app-icon [iconclass]=\"activeiconclass\"\n [iconurl]=\"activeiconurl\"\n [defaultIconClass]=\"defaultActiveIconClass\"\n alt=\"Rating\"></wm-app-icon>\n } @else {\n <wm-app-icon [iconclass]=\"inactiveiconclass\"\n [iconurl]=\"inactiveiconurl\"\n [defaultIconClass]=\"defaultInactiveIconClass\"\n alt=\"Rating\"></wm-app-icon>\n }\n <input #ratingInput type=\"radio\" role=\"radio\" [attr.aria-label]=\"(rate.label || rate.index) + ' out of ' + ratingItems.length + ' ratings'\" [attr.aria-checked]=\"rate.label === datavalue ? 'true' : 'false'\"\n [id]=\"_id + '-' + rate.index\" (click)=\"onRatingClick($event, rate)\" name=\"ratings-id\" [value]=\"rate.key || rate.index\"/>\n </label>\n }\n </div>\n <div class=\"ratings-container readonly\" [class.hidden]=\"!isDecimal\" [ngStyle]=\"{ 'font-size': iconsize }\">\n <div class=\"ratings-base\">\n <wm-app-icon *ngFor=\"let s of starsArray\"\n [iconclass]=\"inactiveiconclass\"\n [iconurl]=\"inactiveiconurl\"\n [defaultIconClass]=\"defaultInactiveIconClass\"\n alt=\"Rating\"></wm-app-icon>\n </div>\n <div class=\"ratings active\" [ngStyle]=\"{ width: ratingsWidth, color: iconcolor }\">\n <wm-app-icon *ngFor=\"let s of starsArray\"\n [iconclass]=\"activeiconclass\"\n [iconurl]=\"activeiconurl\"\n [defaultIconClass]=\"defaultActiveIconClass\"\n alt=\"Rating\"></wm-app-icon>\n </div>\n </div>\n @if (showcaptions) {\n <label class=\"caption\" [textContent]=\"caption\"></label>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: WmAppIconComponent, selector: "wm-app-icon", inputs: ["icon", "iconclass", "iconurl", "defaultIconClass", "defaultClasses", "iconStyle", "alt"] }] }); }
239
- }
240
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: RatingComponent, decorators: [{
241
- type: Component,
242
- args: [{ standalone: true, imports: [CommonModule, FormsModule, WmAppIconComponent], selector: '[wmRating]', providers: [
243
- provideAs(RatingComponent, NG_VALUE_ACCESSOR, true),
244
- provideAsWidgetRef(RatingComponent)
245
- ], template: "<div (focus)=\"onFocus($event)\" [(ngModel)]=\"modelByKey\" [ngModelOptions]=\"{standalone: true}\"\n class=\"ratings-wrapper\" ngDefaultControl>\n <div [class.hidden]=\"readonly && isDecimal\" [class.disabled]=\"readonly\" class=\"rating-style\">\n @for (rate of ratingItems; track rate) {\n <label\n [ngClass]=\"{active : rate.index <= selectedRatingValue}\"\n [ngStyle]=\"{'font-size' :iconsize, color: rate.index <= selectedRatingValue && iconcolor}\"\n [title]=\"rate.label || rate.index\"\n (touchstart)=\"onTouchStart($event)\"\n (mouseleave)=\"onMouseleave($event, rate)\"\n (mouseover)=\"onMouseOver($event, rate)\"\n [for]=\"_id + '-' + rate.index\">\n @if (rate.index <= selectedRatingValue) {\n <wm-app-icon [iconclass]=\"activeiconclass\"\n [iconurl]=\"activeiconurl\"\n [defaultIconClass]=\"defaultActiveIconClass\"\n alt=\"Rating\"></wm-app-icon>\n } @else {\n <wm-app-icon [iconclass]=\"inactiveiconclass\"\n [iconurl]=\"inactiveiconurl\"\n [defaultIconClass]=\"defaultInactiveIconClass\"\n alt=\"Rating\"></wm-app-icon>\n }\n <input #ratingInput type=\"radio\" role=\"radio\" [attr.aria-label]=\"(rate.label || rate.index) + ' out of ' + ratingItems.length + ' ratings'\" [attr.aria-checked]=\"rate.label === datavalue ? 'true' : 'false'\"\n [id]=\"_id + '-' + rate.index\" (click)=\"onRatingClick($event, rate)\" name=\"ratings-id\" [value]=\"rate.key || rate.index\"/>\n </label>\n }\n </div>\n <div class=\"ratings-container readonly\" [class.hidden]=\"!isDecimal\" [ngStyle]=\"{ 'font-size': iconsize }\">\n <div class=\"ratings-base\">\n <wm-app-icon *ngFor=\"let s of starsArray\"\n [iconclass]=\"inactiveiconclass\"\n [iconurl]=\"inactiveiconurl\"\n [defaultIconClass]=\"defaultInactiveIconClass\"\n alt=\"Rating\"></wm-app-icon>\n </div>\n <div class=\"ratings active\" [ngStyle]=\"{ width: ratingsWidth, color: iconcolor }\">\n <wm-app-icon *ngFor=\"let s of starsArray\"\n [iconclass]=\"activeiconclass\"\n [iconurl]=\"activeiconurl\"\n [defaultIconClass]=\"defaultActiveIconClass\"\n alt=\"Rating\"></wm-app-icon>\n </div>\n </div>\n @if (showcaptions) {\n <label class=\"caption\" [textContent]=\"caption\"></label>\n }\n</div>\n" }]
246
- }], ctorParameters: () => [{ type: i0.Injector }, { type: undefined, decorators: [{
247
- type: Inject,
248
- args: ['EXPLICIT_CONTEXT']
249
- }, {
250
- type: Optional
251
- }] }], propDecorators: { ratingEl: [{
252
- type: ViewChild,
253
- args: ['ratingInput', /* TODO: add static flag */ { read: ElementRef }]
254
- }] } });
255
-
256
- /**
257
- * Generated bundle index. Do not edit.
258
- */
259
-
63
+ var RatingComponent = class RatingComponent extends DatasetAwareFormComponent {
64
+ static {
65
+ this.initializeProps = registerProps();
66
+ }
67
+ static {
68
+ this.DEFAULT_ACTIVE_ICON_CLASS = "wi wi-star";
69
+ }
70
+ static {
71
+ this.DEFAULT_INACTIVE_ICON_CLASS = "wi wi-star-border";
72
+ }
73
+ get selectedRatingValue() {
74
+ return this._selectedRatingValue;
75
+ }
76
+ set selectedRatingValue(val) {
77
+ this._selectedRatingValue = val;
78
+ this.calculateRatingsWidth();
79
+ }
80
+ constructor(inj, explicitContext) {
81
+ super(inj, WIDGET_CONFIG, explicitContext);
82
+ this.isDecimal = false;
83
+ this.activeiconclass = "";
84
+ this.inactiveiconclass = "";
85
+ this.defaultActiveIconClass = RatingComponent.DEFAULT_ACTIVE_ICON_CLASS;
86
+ this.defaultInactiveIconClass = RatingComponent.DEFAULT_INACTIVE_ICON_CLASS;
87
+ this._id = generateGUId();
88
+ styler(this.nativeElement, this);
89
+ const datasetSubscription = this.dataset$.subscribe(() => {
90
+ this.prepareRatingDataset();
91
+ });
92
+ this.registerDestroyListener(() => datasetSubscription.unsubscribe());
93
+ const datavalueSubscription = this.datavalue$.subscribe(() => this.onDatavalueChange(this.datavalue));
94
+ this.registerDestroyListener(() => datavalueSubscription.unsubscribe());
95
+ }
96
+ handleEvent(node, eventName, eventCallback, locals) {
97
+ if (eventName !== "change" && eventName !== "blur") super.handleEvent(this.ratingEl.nativeElement, eventName, eventCallback, locals);
98
+ }
99
+ prepareRatingDataset() {
100
+ if (!this.datasetItems.length) {
101
+ this.ratingItems = [];
102
+ this.caption = "";
103
+ }
104
+ let ratingItems = [];
105
+ let data = this.datasetItems;
106
+ const maxvalue = parseInt(this.maxvalue || this.datasetItems.length, 10);
107
+ const maxValue = (maxvalue > MAX_RATING ? MAX_RATING : maxvalue) || DEFAULT_RATING;
108
+ if (data.length && data.length > maxValue) data = slice(data, 0, maxValue);
109
+ for (let i = maxValue; i > 0; i--) if (!data.length) ratingItems.push({
110
+ key: i,
111
+ value: i,
112
+ index: i,
113
+ label: i
114
+ });
115
+ else if (i > data.length) ratingItems.push({
116
+ key: i,
117
+ value: i,
118
+ index: i,
119
+ label: i
120
+ });
121
+ else {
122
+ data = getOrderedDataset(data, "index:desc");
123
+ ratingItems = ratingItems.concat(data);
124
+ break;
125
+ }
126
+ this.ratingItems = ratingItems;
127
+ if (!data.length) this.datasetItems = ratingItems;
128
+ this.onDatavalueChange(this.datavalue);
129
+ }
130
+ onRatingClick($event, rate) {
131
+ this.modelByKey = rate.key;
132
+ this.selectedRatingValue = rate.index;
133
+ if (!this.showcaptions) this.caption = rate.label;
134
+ this.invokeOnTouched();
135
+ this.invokeOnChange(this.datavalue, $event || {}, true);
136
+ }
137
+ onDatavalueChange(dataVal) {
138
+ if (!isEmpty(this.datasetItems)) {
139
+ let selectedItem = find(this.datasetItems, { "selected": true });
140
+ if (!selectedItem && !isUndefined(dataVal)) {
141
+ selectedItem = find(this.datasetItems, function(item) {
142
+ return toString(item.index) === dataVal;
143
+ });
144
+ if (selectedItem) selectedItem.selected = true;
145
+ }
146
+ if (!selectedItem) {
147
+ this.modelByKey = void 0;
148
+ this.caption = "";
149
+ }
150
+ this.selectedRatingValue = selectedItem ? selectedItem.index : 0;
151
+ if (selectedItem) this.caption = selectedItem.label;
152
+ } else this.selectedRatingValue = 0;
153
+ if (this.readonly) {
154
+ if (!this.selectedRatingValue && !isNaN(dataVal)) this.selectedRatingValue = parseFloat(dataVal) <= this.maxvalue ? dataVal : this.maxvalue;
155
+ this.ratingsWidth = this.calculateRatingsWidth(dataVal);
156
+ }
157
+ if (this.readonly && !isNaN(dataVal) && !Number.isInteger(parseFloat(dataVal))) {
158
+ this._modelByKey = dataVal;
159
+ this._modelByValue = dataVal;
160
+ this.isDecimal = true;
161
+ this.ratingsWidth = this.calculateRatingsWidth(this.getPrevDataValue());
162
+ this.caption = this.selectedRatingValue;
163
+ }
164
+ }
165
+ calculateRatingsWidth(dataVal) {
166
+ const selectedRating = parseFloat(this.selectedRatingValue), maxValue = parseInt(this.maxvalue || this.datasetItems.length, 10) || DEFAULT_RATING;
167
+ dataVal = dataVal || this.datavalue;
168
+ if (dataVal === void 0 || dataVal === "" || dataVal === null || selectedRating <= 0) {
169
+ this.caption = "";
170
+ return "0%";
171
+ }
172
+ return Math.min(selectedRating, maxValue) / maxValue * 100 + "%";
173
+ }
174
+ onPropertyChange(key, nv, ov) {
175
+ if (key === "readonly") {
176
+ this.isDecimal = false;
177
+ if (nv) {
178
+ this.ratingsWidth = this.calculateRatingsWidth();
179
+ this.onDatavalueChange(this.getPrevDataValue());
180
+ }
181
+ } else if (key === "maxvalue") {
182
+ this.starsArray = Array(this.maxvalue);
183
+ let tempDataValue = this.datavalue;
184
+ this.prepareRatingDataset();
185
+ this.resetDatasetItems();
186
+ if (!isUndefined(tempDataValue)) this.datavalue = tempDataValue;
187
+ } else super.onPropertyChange(key, nv, ov);
188
+ }
189
+ onTouchStart($event) {
190
+ this.touchEnabled = true;
191
+ this.onTouchStart = noop;
192
+ }
193
+ onMouseleave() {
194
+ this.caption = this.displayValue;
195
+ }
196
+ onMouseOver($event, rate) {
197
+ this.caption = rate.label;
198
+ !this.touchEnabled && !$event.target.classList.contains("rating-label-hover") && $event.target.classList.add("rating-label-hover");
199
+ }
200
+ ngOnDestroy() {
201
+ this.ratingEl = null;
202
+ if (this.ratingItems) this.ratingItems = [];
203
+ super.ngOnDestroy();
204
+ }
205
+ static {
206
+ this.ɵfac = i0.ɵɵngDeclareFactory({
207
+ minVersion: "12.0.0",
208
+ version: "22.2.1",
209
+ ngImport: i0,
210
+ type: RatingComponent,
211
+ deps: [{ token: i0.Injector }, {
212
+ token: "EXPLICIT_CONTEXT",
213
+ optional: true
214
+ }],
215
+ target: i0.ɵɵFactoryTarget.Component
216
+ });
217
+ }
218
+ static {
219
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
220
+ minVersion: "17.0.0",
221
+ version: "22.2.1",
222
+ type: RatingComponent,
223
+ isStandalone: true,
224
+ selector: "[wmRating]",
225
+ providers: [provideAs(RatingComponent, NG_VALUE_ACCESSOR, true), provideAsWidgetRef(RatingComponent)],
226
+ viewQueries: [{
227
+ propertyName: "ratingEl",
228
+ first: true,
229
+ predicate: ["ratingInput"],
230
+ descendants: true,
231
+ read: ElementRef
232
+ }],
233
+ usesInheritance: true,
234
+ ngImport: i0,
235
+ template: "<div (focus)=\"onFocus($event)\" [(ngModel)]=\"modelByKey\" [ngModelOptions]=\"{standalone: true}\"\n class=\"ratings-wrapper\" ngDefaultControl>\n <div [class.hidden]=\"readonly && isDecimal\" [class.disabled]=\"readonly\" class=\"rating-style\">\n @for (rate of ratingItems; track rate) {\n <label\n [ngClass]=\"{active : rate.index <= selectedRatingValue}\"\n [ngStyle]=\"{'font-size' :iconsize, color: rate.index <= selectedRatingValue && iconcolor}\"\n [title]=\"rate.label || rate.index\"\n (touchstart)=\"onTouchStart($event)\"\n (mouseleave)=\"onMouseleave($event, rate)\"\n (mouseover)=\"onMouseOver($event, rate)\"\n [for]=\"_id + '-' + rate.index\">\n @if (rate.index <= selectedRatingValue) {\n <wm-app-icon [iconclass]=\"activeiconclass\"\n [iconurl]=\"activeiconurl\"\n [defaultIconClass]=\"defaultActiveIconClass\"\n alt=\"Rating\"></wm-app-icon>\n } @else {\n <wm-app-icon [iconclass]=\"inactiveiconclass\"\n [iconurl]=\"inactiveiconurl\"\n [defaultIconClass]=\"defaultInactiveIconClass\"\n alt=\"Rating\"></wm-app-icon>\n }\n <input #ratingInput type=\"radio\" role=\"radio\" [attr.aria-label]=\"(rate.label || rate.index) + ' out of ' + ratingItems.length + ' ratings'\" [attr.aria-checked]=\"rate.label === datavalue ? 'true' : 'false'\"\n [id]=\"_id + '-' + rate.index\" (click)=\"onRatingClick($event, rate)\" name=\"ratings-id\" [value]=\"rate.key || rate.index\"/>\n </label>\n }\n </div>\n <div class=\"ratings-container readonly\" [class.hidden]=\"!isDecimal\" [ngStyle]=\"{ 'font-size': iconsize }\">\n <div class=\"ratings-base\">\n <wm-app-icon *ngFor=\"let s of starsArray\"\n [iconclass]=\"inactiveiconclass\"\n [iconurl]=\"inactiveiconurl\"\n [defaultIconClass]=\"defaultInactiveIconClass\"\n alt=\"Rating\"></wm-app-icon>\n </div>\n <div class=\"ratings active\" [ngStyle]=\"{ width: ratingsWidth, color: iconcolor }\">\n <wm-app-icon *ngFor=\"let s of starsArray\"\n [iconclass]=\"activeiconclass\"\n [iconurl]=\"activeiconurl\"\n [defaultIconClass]=\"defaultActiveIconClass\"\n alt=\"Rating\"></wm-app-icon>\n </div>\n </div>\n @if (showcaptions) {\n <label class=\"caption\" [textContent]=\"caption\"></label>\n }\n</div>\n",
236
+ dependencies: [
237
+ {
238
+ kind: "ngmodule",
239
+ type: CommonModule
240
+ },
241
+ {
242
+ kind: "directive",
243
+ type: i1.NgClass,
244
+ selector: "[ngClass]",
245
+ inputs: ["class", "ngClass"]
246
+ },
247
+ {
248
+ kind: "directive",
249
+ type: i1.NgForOf,
250
+ selector: "[ngFor][ngForOf]",
251
+ inputs: [
252
+ "ngForOf",
253
+ "ngForTrackBy",
254
+ "ngForTemplate"
255
+ ]
256
+ },
257
+ {
258
+ kind: "directive",
259
+ type: i1.NgStyle,
260
+ selector: "[ngStyle]",
261
+ inputs: ["ngStyle"]
262
+ },
263
+ {
264
+ kind: "ngmodule",
265
+ type: FormsModule
266
+ },
267
+ {
268
+ kind: "directive",
269
+ type: i2.DefaultValueAccessor,
270
+ selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
271
+ },
272
+ {
273
+ kind: "directive",
274
+ type: i2.NgControlStatus,
275
+ selector: "[formControlName],[ngModel],[formControl]"
276
+ },
277
+ {
278
+ kind: "directive",
279
+ type: i2.NgModel,
280
+ selector: "[ngModel]:not([formControlName]):not([formControl])",
281
+ inputs: [
282
+ "name",
283
+ "disabled",
284
+ "ngModel",
285
+ "ngModelOptions"
286
+ ],
287
+ outputs: ["ngModelChange"],
288
+ exportAs: ["ngModel"]
289
+ },
290
+ {
291
+ kind: "component",
292
+ type: WmAppIconComponent,
293
+ selector: "wm-app-icon",
294
+ inputs: [
295
+ "icon",
296
+ "iconclass",
297
+ "iconurl",
298
+ "defaultIconClass",
299
+ "defaultClasses",
300
+ "iconStyle",
301
+ "alt"
302
+ ]
303
+ }
304
+ ],
305
+ changeDetection: i0.ChangeDetectionStrategy.Eager
306
+ });
307
+ }
308
+ };
309
+ i0.ɵɵngDeclareClassMetadata({
310
+ minVersion: "12.0.0",
311
+ version: "22.2.1",
312
+ ngImport: i0,
313
+ type: RatingComponent,
314
+ decorators: [{
315
+ type: Component,
316
+ args: [{
317
+ changeDetection: ChangeDetectionStrategy.Eager,
318
+ standalone: true,
319
+ imports: [
320
+ CommonModule,
321
+ FormsModule,
322
+ WmAppIconComponent
323
+ ],
324
+ selector: "[wmRating]",
325
+ providers: [provideAs(RatingComponent, NG_VALUE_ACCESSOR, true), provideAsWidgetRef(RatingComponent)],
326
+ template: "<div (focus)=\"onFocus($event)\" [(ngModel)]=\"modelByKey\" [ngModelOptions]=\"{standalone: true}\"\n class=\"ratings-wrapper\" ngDefaultControl>\n <div [class.hidden]=\"readonly && isDecimal\" [class.disabled]=\"readonly\" class=\"rating-style\">\n @for (rate of ratingItems; track rate) {\n <label\n [ngClass]=\"{active : rate.index <= selectedRatingValue}\"\n [ngStyle]=\"{'font-size' :iconsize, color: rate.index <= selectedRatingValue && iconcolor}\"\n [title]=\"rate.label || rate.index\"\n (touchstart)=\"onTouchStart($event)\"\n (mouseleave)=\"onMouseleave($event, rate)\"\n (mouseover)=\"onMouseOver($event, rate)\"\n [for]=\"_id + '-' + rate.index\">\n @if (rate.index <= selectedRatingValue) {\n <wm-app-icon [iconclass]=\"activeiconclass\"\n [iconurl]=\"activeiconurl\"\n [defaultIconClass]=\"defaultActiveIconClass\"\n alt=\"Rating\"></wm-app-icon>\n } @else {\n <wm-app-icon [iconclass]=\"inactiveiconclass\"\n [iconurl]=\"inactiveiconurl\"\n [defaultIconClass]=\"defaultInactiveIconClass\"\n alt=\"Rating\"></wm-app-icon>\n }\n <input #ratingInput type=\"radio\" role=\"radio\" [attr.aria-label]=\"(rate.label || rate.index) + ' out of ' + ratingItems.length + ' ratings'\" [attr.aria-checked]=\"rate.label === datavalue ? 'true' : 'false'\"\n [id]=\"_id + '-' + rate.index\" (click)=\"onRatingClick($event, rate)\" name=\"ratings-id\" [value]=\"rate.key || rate.index\"/>\n </label>\n }\n </div>\n <div class=\"ratings-container readonly\" [class.hidden]=\"!isDecimal\" [ngStyle]=\"{ 'font-size': iconsize }\">\n <div class=\"ratings-base\">\n <wm-app-icon *ngFor=\"let s of starsArray\"\n [iconclass]=\"inactiveiconclass\"\n [iconurl]=\"inactiveiconurl\"\n [defaultIconClass]=\"defaultInactiveIconClass\"\n alt=\"Rating\"></wm-app-icon>\n </div>\n <div class=\"ratings active\" [ngStyle]=\"{ width: ratingsWidth, color: iconcolor }\">\n <wm-app-icon *ngFor=\"let s of starsArray\"\n [iconclass]=\"activeiconclass\"\n [iconurl]=\"activeiconurl\"\n [defaultIconClass]=\"defaultActiveIconClass\"\n alt=\"Rating\"></wm-app-icon>\n </div>\n </div>\n @if (showcaptions) {\n <label class=\"caption\" [textContent]=\"caption\"></label>\n }\n</div>\n"
327
+ }]
328
+ }],
329
+ ctorParameters: () => [{ type: i0.Injector }, {
330
+ type: void 0,
331
+ decorators: [{
332
+ type: Inject,
333
+ args: ["EXPLICIT_CONTEXT"]
334
+ }, { type: Optional }]
335
+ }],
336
+ propDecorators: { ratingEl: [{
337
+ type: ViewChild,
338
+ args: ["ratingInput", { read: ElementRef }]
339
+ }] }
340
+ });
260
341
  export { RatingComponent };
261
- //# sourceMappingURL=index.mjs.map
342
+
343
+ //# sourceMappingURL=index.mjs.map