@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,390 +1,527 @@
1
- import * as i2 from '@angular/forms';
2
- import { FormsModule, NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
3
- import { DateTimePickerComponent } from '@wm/components/input/epoch/date-time-picker';
4
- import * as i5 from '@angular/common';
5
- import { CommonModule } from '@angular/common';
6
- import * as i0 from '@angular/core';
7
- import { Inject, Optional, Component } from '@angular/core';
8
- import * as i4 from 'ngx-bootstrap/timepicker';
9
- import { TimepickerModule, TimepickerConfig } from 'ngx-bootstrap/timepicker';
10
- import * as i1 from '@wm/core';
11
- import { FormWidgetType, getFormattedDate, getNativeDateObject, $appDigest, getDisplayDateTimeFormat, addEventListenerOnElement, getMomentLocaleObject, addClass, adjustContainerPosition, AbstractI18nService } from '@wm/core';
12
- import { PROP_BOOLEAN, PROP_STRING, PROP_ANY, PROP_NUMBER, register, registerFormWidget, styler, provideAs, provideAsWidgetRef } from '@wm/components/base';
13
- import { BaseDateTimeComponent, getTimepickerConfig } from '@wm/components/input/epoch/base-date-time';
14
- import { includes, forEach, get } from 'lodash-es';
15
- import * as i3 from 'ngx-bootstrap/dropdown';
16
- import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
17
- import * as momentLib from 'moment';
18
-
19
- const timeProps = new Map([
20
- ['autofocus', PROP_BOOLEAN],
21
- ['class', PROP_STRING],
22
- ['dataentrymode', { value: 'default', ...PROP_STRING }],
23
- ['datavaluesource', PROP_ANY],
24
- ['datavalue', PROP_STRING],
25
- ['disabled', PROP_BOOLEAN],
26
- ['hint', PROP_STRING],
27
- ['arialabel', PROP_STRING],
28
- ['hourstep', { value: 1, ...PROP_NUMBER }],
29
- ['maxtime', PROP_STRING],
30
- ['mintime', PROP_STRING],
31
- ['minutestep', { value: 15, ...PROP_NUMBER }],
32
- ['name', PROP_STRING],
33
- ['outputformat', { value: 'HH:mm:ss', ...PROP_STRING }],
34
- ['placeholder', { value: 'Select time', ...PROP_STRING }],
35
- ['readonly', PROP_BOOLEAN],
36
- ['required', PROP_BOOLEAN],
37
- ['shortcutkey', PROP_STRING],
38
- ['show', { value: true, ...PROP_BOOLEAN }],
39
- ['showdropdownon', { value: 'default', ...PROP_STRING }],
40
- ['showcustompicker', { value: false, ...PROP_BOOLEAN }],
41
- ['secondsstep', { value: 1, ...PROP_NUMBER }],
42
- ['tabindex', { value: 0, ...PROP_NUMBER }],
43
- ['timepattern', PROP_STRING],
44
- ['timestamp', PROP_STRING],
45
- ['showampmbuttons', { value: false, ...PROP_BOOLEAN }]
1
+ import * as i2 from "@angular/forms";
2
+ import { FormsModule, NG_VALIDATORS, NG_VALUE_ACCESSOR } from "@angular/forms";
3
+ import { DateTimePickerComponent } from "@wm/components/input/epoch/date-time-picker";
4
+ import * as i5 from "@angular/common";
5
+ import { CommonModule } from "@angular/common";
6
+ import * as i0 from "@angular/core";
7
+ import { ChangeDetectionStrategy, Component, Inject, Optional } from "@angular/core";
8
+ import * as i4 from "ngx-bootstrap/timepicker";
9
+ import { TimepickerConfig, TimepickerModule } from "ngx-bootstrap/timepicker";
10
+ import * as i1 from "@wm/core";
11
+ import { $appDigest, AbstractI18nService, FormWidgetType, addClass, addEventListenerOnElement, adjustContainerPosition, getDisplayDateTimeFormat, getFormattedDate, getMomentLocaleObject, getNativeDateObject } from "@wm/core";
12
+ import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, provideAs, provideAsWidgetRef, register, registerFormWidget, styler } from "@wm/components/base";
13
+ import { BaseDateTimeComponent, getTimepickerConfig } from "@wm/components/input/epoch/base-date-time";
14
+ import { forEach, get, includes } from "lodash-es";
15
+ import * as i3 from "ngx-bootstrap/dropdown";
16
+ import { BsDropdownModule } from "ngx-bootstrap/dropdown";
17
+ import * as momentLib from "moment";
18
+ const timeProps = /* @__PURE__ */ new Map([
19
+ ["autofocus", PROP_BOOLEAN],
20
+ ["class", PROP_STRING],
21
+ ["dataentrymode", {
22
+ value: "default",
23
+ ...PROP_STRING
24
+ }],
25
+ ["datavaluesource", PROP_ANY],
26
+ ["datavalue", PROP_STRING],
27
+ ["disabled", PROP_BOOLEAN],
28
+ ["hint", PROP_STRING],
29
+ ["arialabel", PROP_STRING],
30
+ ["hourstep", {
31
+ value: 1,
32
+ ...PROP_NUMBER
33
+ }],
34
+ ["maxtime", PROP_STRING],
35
+ ["mintime", PROP_STRING],
36
+ ["minutestep", {
37
+ value: 15,
38
+ ...PROP_NUMBER
39
+ }],
40
+ ["name", PROP_STRING],
41
+ ["outputformat", {
42
+ value: "HH:mm:ss",
43
+ ...PROP_STRING
44
+ }],
45
+ ["placeholder", {
46
+ value: "Select time",
47
+ ...PROP_STRING
48
+ }],
49
+ ["readonly", PROP_BOOLEAN],
50
+ ["required", PROP_BOOLEAN],
51
+ ["shortcutkey", PROP_STRING],
52
+ ["show", {
53
+ value: true,
54
+ ...PROP_BOOLEAN
55
+ }],
56
+ ["showdropdownon", {
57
+ value: "default",
58
+ ...PROP_STRING
59
+ }],
60
+ ["showcustompicker", {
61
+ value: false,
62
+ ...PROP_BOOLEAN
63
+ }],
64
+ ["secondsstep", {
65
+ value: 1,
66
+ ...PROP_NUMBER
67
+ }],
68
+ ["tabindex", {
69
+ value: 0,
70
+ ...PROP_NUMBER
71
+ }],
72
+ ["timepattern", PROP_STRING],
73
+ ["timestamp", PROP_STRING],
74
+ ["showampmbuttons", {
75
+ value: false,
76
+ ...PROP_BOOLEAN
77
+ }]
46
78
  ]);
47
79
  const registerProps = () => {
48
- register('wm-time', timeProps);
49
- registerFormWidget(FormWidgetType.TIME, new Map(timeProps));
80
+ register("wm-time", timeProps);
81
+ registerFormWidget(FormWidgetType.TIME, new Map(timeProps));
50
82
  };
51
-
52
- const moment = momentLib.default || window['moment'];
53
- const CURRENT_TIME = 'CURRENT_TIME';
54
- const DEFAULT_CLS = 'input-group app-timeinput';
55
- const WIDGET_CONFIG = { widgetType: 'wm-time', hostClass: DEFAULT_CLS };
56
- class TimeComponent extends BaseDateTimeComponent {
57
- static { this.initializeProps = registerProps(); }
58
- get timestamp() {
59
- return this.bsTimeValue ? this.bsTimeValue.valueOf() : undefined;
60
- }
61
- // @ts-ignore
62
- get datavalue() {
63
- if (this.isCurrentTime && !this.bsTimeValue) {
64
- return CURRENT_TIME;
65
- }
66
- return getFormattedDate(this.datePipe, this.bsTimeValue, this.outputformat, this.timeZone, null, null, this) || '';
67
- }
68
- /**Todo[Shubham]: needs to be redefined
69
- * This property sets the default value for the time selection
70
- */
71
- // @ts-ignore
72
- set datavalue(newVal) {
73
- if (newVal) {
74
- if (newVal === CURRENT_TIME) {
75
- this.isCurrentTime = true;
76
- this.setTimeInterval();
77
- }
78
- else {
79
- this.clearTimeInterval();
80
- this.bsTimeValue = getNativeDateObject(newVal, { pattern: this.loadNativeDateInput ? this.outputformat : undefined, isNativePicker: this.loadNativeDateInput });
81
- this.isCurrentTime = false;
82
- this.mintimeMaxtimeValidation();
83
- }
84
- }
85
- else {
86
- this.bsTimeValue = undefined;
87
- this.clearTimeInterval();
88
- this.isCurrentTime = false;
89
- }
90
- this.invokeOnChange(this.datavalue);
91
- $appDigest();
92
- }
93
- get displayValue() {
94
- const display = getFormattedDate(this.datePipe, this.bsTimeValue, this.timepattern, this.timeZone, null, null, this) || '';
95
- return this.safeReplaceMeridians(display);
96
- }
97
- get nativeDisplayValue() {
98
- return getFormattedDate(this.datePipe, this.bsTimeValue, 'HH:mm:ss', this.timeZone, null, null, this) || '';
99
- }
100
- constructor(inj, ngZone, appDefaults, app, explicitContext) {
101
- super(inj, WIDGET_CONFIG, explicitContext);
102
- this.ngZone = ngZone;
103
- this.appDefaults = appDefaults;
104
- /**
105
- * This is an internal property used to toggle the timepicker dropdown
106
- */
107
- this.status = { isopen: false };
108
- styler(this.nativeElement, this);
109
- /**
110
- * Destroy the timer once the date widget is gone
111
- */
112
- this.registerDestroyListener(() => this.clearTimeInterval());
113
- this.timepattern = this.appDefaults.timeFormat || getDisplayDateTimeFormat(FormWidgetType.TIME);
114
- this.updateFormat('timepattern');
115
- this.app = app;
116
- }
117
- onPropertyChange(key, nv, ov) {
118
- const isPristine = this.formControl?.pristine;
119
- if (key === 'tabindex') {
120
- return;
121
- }
122
- if (key === 'timepattern') {
123
- this.updateFormat('timepattern');
124
- }
125
- if (key === 'mintime') {
126
- this.minTime = getNativeDateObject(nv, { pattern: this.loadNativeDateInput ? this.outputformat : undefined, isNativePicker: this.loadNativeDateInput }); // TODO it is supposed to be time conversion, not to the day
127
- this.mintimeMaxtimeValidation();
128
- }
129
- else if (key === 'maxtime') {
130
- this.maxTime = getNativeDateObject(nv, { pattern: this.loadNativeDateInput ? this.outputformat : undefined, isNativePicker: this.loadNativeDateInput });
131
- this.mintimeMaxtimeValidation();
132
- }
133
- else {
134
- super.onPropertyChange(key, nv, ov);
135
- }
136
- if ((key === 'mintime' || key === 'maxtime') && isPristine) {
137
- this.formControl?.control?.markAsPristine();
138
- }
139
- }
140
- setValidateType(min, max, val) {
141
- if (this.timeNotInRange) {
142
- if (val < min) {
143
- this.validateType = 'mintime';
144
- }
145
- else if (val > max) {
146
- this.validateType = 'maxtime';
147
- }
148
- }
149
- }
150
- /**
151
- * This is an internal method used to validate mintime and maxtime
152
- */
153
- mintimeMaxtimeValidation() {
154
- this.timeNotInRange = this.minTime && this.maxTime && (this.bsTimeValue < this.minTime || this.bsTimeValue > this.maxTime);
155
- this.setValidateType(this.minTime, this.maxTime, this.bsTimeValue);
156
- this.invokeOnChange(this.datavalue, undefined, false);
157
- }
158
- /**
159
- * This is an internal method used to toggle the dropdown of the time widget
160
- */
161
- toggleDropdown($event, skipFocus = false) {
162
- if (this.loadNativeDateInput) {
163
- //Fixes click event getting triggred twice in Mobile devices.
164
- if (!skipFocus) {
165
- this.onDateTimeInputFocus();
166
- }
167
- return;
168
- }
169
- if ($event.type === 'click') {
170
- this.invokeEventCallback('click', { $event: $event });
171
- //this.focusOnInputEl();
172
- }
173
- if ($event.target && $($event.target).is('input') && !(this.isDropDownDisplayEnabledOnInput(this.showdropdownon))) {
174
- return;
175
- }
176
- this.ngZone.run(() => {
177
- this.status.isopen = !this.status.isopen;
178
- });
179
- this.addBodyClickListener(this.status.isopen);
180
- }
181
- /**
182
- * This is an internal method used to Prevent time picker close while changing time value
183
- */
184
- preventTpClose($event) {
185
- $event.stopImmediatePropagation();
186
- const parentEl = $(this.nativeElement).closest('.app-composite-widget.caption-floating');
187
- if (parentEl.length > 0) {
188
- this.app.notify('captionPositionAnimate', { displayVal: this.displayValue, nativeEl: parentEl });
189
- }
190
- }
191
- addBodyClickListener(skipListener) {
192
- if (!skipListener) {
193
- return;
194
- }
195
- const bodyElement = document.querySelector('body');
196
- setTimeout(() => {
197
- const dropdownElement = $(bodyElement).find('>bs-dropdown-container .dropdown-menu').get(0);
198
- this.deregisterEventListener = addEventListenerOnElement(bodyElement, dropdownElement, this.nativeElement, 'click', this.isDropDownDisplayEnabledOnInput(this.showdropdownon), () => {
199
- this.status.isopen = false;
200
- }, 0 /* EVENT_LIFE.ONCE */, true);
201
- }, 350);
202
- }
203
- /**
204
- * This is an internal method triggered when pressing key on the time input
205
- */
206
- onDisplayKeydown(event) {
207
- if (this.isDropDownDisplayEnabledOnInput(this.showdropdownon)) {
208
- event.stopPropagation();
209
- if (event.key === 'Enter' || event.key === 'ArrowDown') {
210
- event.preventDefault();
211
- this.toggleDropdown(event);
212
- }
213
- else {
214
- this.hideTimepickerDropdown();
215
- }
216
- }
217
- else {
218
- this.hideTimepickerDropdown();
219
- }
220
- }
221
- /**
222
- * This is an internal method triggered when the time input changes
223
- */
224
- onDisplayTimeChange($event) {
225
- const newVal = getNativeDateObject($event.target.value?.replace(this.am, this.meridians[0])?.replace(this.pm, this.meridians[1]), { meridians: this.meridians, pattern: this.loadNativeDateInput ? this.outputformat : undefined, isNativePicker: this.loadNativeDateInput });
226
- // time pattern validation
227
- // if invalid pattern is entered, device is showing an error.
228
- if (!this.formatValidation(newVal, $event.target.value)) {
229
- return;
230
- }
231
- this.invalidDateTimeFormat = false;
232
- this.onTimeChange(newVal);
233
- }
234
- onInputBlur($event) {
235
- if (!$($event.relatedTarget).hasClass('bs-timepicker-field')) {
236
- this.invokeOnTouched();
237
- this.invokeEventCallback('blur', { $event });
238
- }
239
- }
240
- /**
241
- * This is an internal method used to execute the on time change functionality
242
- */
243
- onTimeChange(newVal, isNativePicker) {
244
- let timeValue, timeInputValue, minTimeMeridian;
245
- // For nativePicker, newVal is event, get the dateobject from the event.
246
- if (isNativePicker) {
247
- newVal = getNativeDateObject(newVal.target.value, { pattern: this.loadNativeDateInput ? this.outputformat : undefined, isNativePicker: this.loadNativeDateInput });
248
- }
249
- if (newVal) {
250
- // if the newVal is valid but not in the given range then highlight the input field
251
- this.timeNotInRange = this.minTime && this.maxTime && (newVal < this.minTime || newVal > this.maxTime);
252
- this.setValidateType(this.minTime, this.maxTime, newVal);
253
- if (!this.timeNotInRange) {
254
- this.bsTimeValue = newVal;
255
- }
256
- } // sometimes library is not returning the correct value when the min and max time are given, displaying the datavalue based on the value given by the user
257
- else if (this.bsTimePicker?.min && this.bsTimePicker.max) {
258
- minTimeMeridian = moment(new Date(this.bsTimePicker.min)).format('A');
259
- timeValue = this.bsTimePicker.hours + ':' + (this.bsTimePicker.minutes || 0) + ':' + (this.bsTimePicker.seconds || 0) + (this.bsTimePicker.showMeridian ? (' ' + minTimeMeridian) : '');
260
- timeInputValue = getNativeDateObject(timeValue, { pattern: this.loadNativeDateInput ? this.outputformat : undefined, isNativePicker: this.loadNativeDateInput });
261
- this.bsTimePicker.meridian = minTimeMeridian?.replace(this.meridians[0], this.am)?.replace(this.meridians[1], this.pm);
262
- this.timeNotInRange = this.bsTimePicker.min > timeInputValue || this.bsTimePicker.max < timeInputValue;
263
- if (this.timeNotInRange || this.invalidDateTimeFormat) {
264
- this.bsTimeValue = this.getPrevDataValue();
265
- setTimeout(() => {
266
- const timeStr = getFormattedDate(this.datePipe, timeValue, this.timepattern, this.timeZone, null, null, this) || '';
267
- $(this.nativeElement).find('.display-input').val(this.safeReplaceMeridians(timeStr));
268
- });
269
- }
270
- this.setValidateType(this.bsTimePicker.min, this.bsTimePicker.max, timeInputValue);
271
- if (!this.timeNotInRange) {
272
- this.bsTimeValue = timeInputValue;
273
- }
274
- }
275
- // Update UI display if value hasn't changed
276
- if (!this.timeNotInRange && this.datavalue === this.getPrevDataValue()) {
277
- const displayTime = getFormattedDate(this.datePipe, this.datavalue, this.timepattern, this.timeZone, null, null, this) || '';
278
- $(this.nativeElement).find('.display-input').val(this.safeReplaceMeridians(displayTime));
279
- }
280
- this.invokeOnTouched();
281
- this.invokeOnChange(this.datavalue, {}, true);
282
- }
283
- /**
284
- * This is an internal method used to maintain a time interval to update the time model when the data value is set to CURRENT_TIME
285
- */
286
- setTimeInterval() {
287
- if (this.timeinterval) {
288
- return;
289
- }
290
- this.timeinterval = setInterval(() => {
291
- const now = this.timeZone ? getMomentLocaleObject(this.timeZone) : new Date();
292
- now.setSeconds(now.getSeconds() + 1);
293
- this.datavalue = CURRENT_TIME;
294
- this.onTimeChange(now);
295
- }, 1000);
296
- }
297
- /**
298
- * This is an internal method used to clear the time interval created
299
- */
300
- clearTimeInterval() {
301
- if (this.timeinterval) {
302
- clearInterval(this.timeinterval);
303
- this.timeinterval = null;
304
- }
305
- }
306
- /**
307
- * This function sets the value isOpen/isTimeOpen (i.e when datepicker popup is closed) based on widget type(i.e DateTime, Time)
308
- * @param val - isOpen/isTimeOpen is set based on the timepicker popup is open/closed
309
- */
310
- setIsTimeOpen(val) {
311
- this.status.isopen = val;
312
- }
313
- // Change event is registered from the template, Prevent the framework from registering one more event
314
- handleEvent(node, eventName, eventCallback, locals) {
315
- if (!includes(['blur', 'focus', 'change', 'click'], eventName)) {
316
- super.handleEvent(node, eventName, eventCallback, locals);
317
- }
318
- }
319
- hideTimepickerDropdown() {
320
- this.invokeOnTouched();
321
- this.status.isopen = false;
322
- if (this.deregisterEventListener) {
323
- this.deregisterEventListener();
324
- }
325
- this.removeKeyupListener();
326
- const parentEl = $(this.nativeElement).closest('.app-composite-widget.caption-floating');
327
- if (parentEl.length > 0) {
328
- this.app.notify('captionPositionAnimate', { displayVal: this.displayValue, nativeEl: parentEl });
329
- }
330
- this.blurDateInput(true);
331
- }
332
- isValid(event) {
333
- if (!event) {
334
- const enteredDate = $(this.nativeElement).find('input').val()?.replace(this.am, this.meridians[0])?.replace(this.pm, this.meridians[1]);
335
- const newVal = getNativeDateObject(enteredDate, { meridians: this.meridians, pattern: this.loadNativeDateInput ? this.outputformat : undefined, isNativePicker: this.loadNativeDateInput });
336
- if (!this.formatValidation(newVal, enteredDate)) {
337
- return;
338
- }
339
- }
340
- }
341
- /**
342
- * This is an internal method to add css class for dropdown while opening the time dropdown
343
- */
344
- onShown() {
345
- const tpElements = document.querySelectorAll('timepicker');
346
- forEach(tpElements, element => {
347
- addClass(element.parentElement, 'app-datetime', true);
348
- });
349
- if (this.bsDropdown && (this.timeNotInRange || this.invalidDateTimeFormat)) {
350
- this.bsTimeValue = null;
351
- }
352
- this.focusTimePickerPopover(this);
353
- this.bindTimePickerKeyboardEvents();
354
- adjustContainerPosition($('bs-dropdown-container'), this.nativeElement, this.bsDropdown._dropdown, $('bs-dropdown-container .dropdown-menu'));
355
- }
356
- assignModel() {
357
- if (!this.displayInputElem) {
358
- this.displayInputElem = this.getMobileInput();
359
- }
360
- this.displayInputElem.value = get(this, 'nativeDisplayValue');
361
- }
362
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: TimeComponent, deps: [{ token: i0.Injector }, { token: i0.NgZone }, { token: i1.AppDefaults }, { token: i1.App }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
363
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: TimeComponent, isStandalone: true, selector: "[wmTime]", providers: [
364
- provideAs(TimeComponent, NG_VALUE_ACCESSOR, true),
365
- provideAs(TimeComponent, NG_VALIDATORS, true),
366
- provideAsWidgetRef(TimeComponent),
367
- { provide: TimepickerConfig, deps: [AbstractI18nService], useFactory: getTimepickerConfig }
368
- ], usesInheritance: true, ngImport: i0, template: "<div dropdown [isOpen]=\"status.isopen\" (onShown)=\"onShown()\" (onHidden)=\"hideTimepickerDropdown()\" [container]=\"'body'\" style=\"display: inherit\">\n <input [attr.aria-label]=\"arialabel\" class=\"form-control app-textbox display-input\"\n focus-target\n [tabindex]=\"tabindex\"\n [name]=\"name\"\n type=\"text\"\n role=\"timer\"\n [value]=\"displayValue\"\n [disabled]=\"disabled || readonly || isCurrentTime\"\n [autofocus]=\"autofocus\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-atomic]=\"isCurrentTime ? 'true' : 'false'\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n (click)=\"toggleDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event);\"\n (blur)=\"onInputBlur($event)\"\n (change)=\"onDisplayTimeChange($event)\"\n (keydown)=\"_triggeredByUser = true; onDisplayKeydown($event)\">\n <span class=\"input-group-btn dropdown-toggle\">\n <button type=\"button\" class=\"btn btn-default btn-date\" [tabindex]=\"tabindex\" [disabled]=\"disabled || readonly || isCurrentTime\" aria-label=\"Select time\" aria-haspopup=\"true\" aria-expanded=\"false\" (click)=\"toggleDropdown($event, false)\"><i aria-hidden=\"true\" class=\"app-icon wm-sl-l sl-time\"></i></button>\n </span>\n <div *dropdownMenu class=\"dropdown-menu\" (click)=\"preventTpClose($event)\">\n <timepicker class=\"model-holder\"\n [showMeridian]=\"ismeridian\"\n [readonlyInput]=\"isDisabled\"\n [(ngModel)]=\"bsTimeValue\"\n [ngModelOptions]=\"{standalone: true}\"\n [disabled]=\"disabled || readonly || isCurrentTime\"\n [min]=\"minTime\"\n [max]=\"maxTime\"\n [hourStep]=\"hourstep\"\n [minuteStep]=\"minutestep\"\n [secondsStep]=\"secondsstep\"\n [mousewheel]=\"true\"\n [arrowkeys]=\"true\"\n (isValid)=\"isValid($event)\"\n [showSeconds]=\"showseconds\" (ngModelChange)=\"onTimeChange($event)\"\n [ngClass]=\"{ 'showbuttons': showampmbuttons }\"></timepicker>\n @if (ismeridian && showampmbuttons) {\n <div class=\"ampm-toggle text-center\">\n <button class=\"meridian-btn mb-1\" [ngClass]=\"{ 'active btn-secondary': getPeriod() === 'AM' }\" (click)=\"setPeriod('AM')\">{{appLocale.LABEL_AM ||\"AM\"}}</button><br>\n <button class=\"meridian-btn\" [ngClass]=\"{ 'active btn-secondary': getPeriod() === 'PM' }\" (click)=\"setPeriod('PM')\">{{appLocale.LABEL_PM ||\"PM\"}}</button>\n </div>\n }\n </div>\n</div>\n@if (loadNativeDateInput) {\n <wm-datetimepicker\n dateTimePicker\n mode=\"TIME\"\n [minTime]=\"minTime\"\n [maxTime]=\"maxTime\"\n [placement]=\"modal\"\n [displayFormat]=\"timepattern\"\n [value]=\"bsTimeValue\"\n (change)=\"onTimeChange($event)\">\n </wm-datetimepicker>\n <div class=\"mobile-input mobile-datepicker-container\"\n tabindex=\"1000000\"\n (click)=\"!(disabled || readonly) && showDatePickerModal(bsTimeValue)\"\n [attr.aria-label]=\"displayValue ? 'Change time ' + displayValue : arialabel || 'Select time'\"\n (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event); assignModel()\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n role=\"button\">\n </div>\n}\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { 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: DateTimePickerComponent, selector: "wm-datetimepicker", inputs: ["mode", "placement", "config", "minTime", "maxTime", "_displayFormat", "excludedDatesToDisable", "value", "excludedDaysToDisable", "displayFormat"], outputs: ["change"] }, { kind: "ngmodule", type: BsDropdownModule }, { kind: "directive", type: i3.BsDropdownMenuDirective, selector: "[bsDropdownMenu],[dropdownMenu]", exportAs: ["bs-dropdown-menu"] }, { kind: "directive", type: i3.BsDropdownDirective, selector: "[bsDropdown], [dropdown]", inputs: ["placement", "triggers", "container", "dropup", "autoClose", "isAnimated", "insideClick", "isDisabled", "isOpen"], outputs: ["isOpenChange", "onShown", "onHidden"], exportAs: ["bs-dropdown"] }, { kind: "ngmodule", type: TimepickerModule }, { kind: "component", type: i4.TimepickerComponent, selector: "timepicker", inputs: ["hourStep", "minuteStep", "secondsStep", "readonlyInput", "disabled", "mousewheel", "arrowkeys", "showSpinners", "showMeridian", "showMinutes", "showSeconds", "meridians", "min", "max", "hoursPlaceholder", "minutesPlaceholder", "secondsPlaceholder"], outputs: ["isValid", "meridianChange"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
369
- }
370
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: TimeComponent, decorators: [{
371
- type: Component,
372
- args: [{ standalone: true, imports: [FormsModule, DateTimePickerComponent, BsDropdownModule, TimepickerModule, CommonModule], selector: '[wmTime]', providers: [
373
- provideAs(TimeComponent, NG_VALUE_ACCESSOR, true),
374
- provideAs(TimeComponent, NG_VALIDATORS, true),
375
- provideAsWidgetRef(TimeComponent),
376
- { provide: TimepickerConfig, deps: [AbstractI18nService], useFactory: getTimepickerConfig }
377
- ], template: "<div dropdown [isOpen]=\"status.isopen\" (onShown)=\"onShown()\" (onHidden)=\"hideTimepickerDropdown()\" [container]=\"'body'\" style=\"display: inherit\">\n <input [attr.aria-label]=\"arialabel\" class=\"form-control app-textbox display-input\"\n focus-target\n [tabindex]=\"tabindex\"\n [name]=\"name\"\n type=\"text\"\n role=\"timer\"\n [value]=\"displayValue\"\n [disabled]=\"disabled || readonly || isCurrentTime\"\n [autofocus]=\"autofocus\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-atomic]=\"isCurrentTime ? 'true' : 'false'\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n (click)=\"toggleDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event);\"\n (blur)=\"onInputBlur($event)\"\n (change)=\"onDisplayTimeChange($event)\"\n (keydown)=\"_triggeredByUser = true; onDisplayKeydown($event)\">\n <span class=\"input-group-btn dropdown-toggle\">\n <button type=\"button\" class=\"btn btn-default btn-date\" [tabindex]=\"tabindex\" [disabled]=\"disabled || readonly || isCurrentTime\" aria-label=\"Select time\" aria-haspopup=\"true\" aria-expanded=\"false\" (click)=\"toggleDropdown($event, false)\"><i aria-hidden=\"true\" class=\"app-icon wm-sl-l sl-time\"></i></button>\n </span>\n <div *dropdownMenu class=\"dropdown-menu\" (click)=\"preventTpClose($event)\">\n <timepicker class=\"model-holder\"\n [showMeridian]=\"ismeridian\"\n [readonlyInput]=\"isDisabled\"\n [(ngModel)]=\"bsTimeValue\"\n [ngModelOptions]=\"{standalone: true}\"\n [disabled]=\"disabled || readonly || isCurrentTime\"\n [min]=\"minTime\"\n [max]=\"maxTime\"\n [hourStep]=\"hourstep\"\n [minuteStep]=\"minutestep\"\n [secondsStep]=\"secondsstep\"\n [mousewheel]=\"true\"\n [arrowkeys]=\"true\"\n (isValid)=\"isValid($event)\"\n [showSeconds]=\"showseconds\" (ngModelChange)=\"onTimeChange($event)\"\n [ngClass]=\"{ 'showbuttons': showampmbuttons }\"></timepicker>\n @if (ismeridian && showampmbuttons) {\n <div class=\"ampm-toggle text-center\">\n <button class=\"meridian-btn mb-1\" [ngClass]=\"{ 'active btn-secondary': getPeriod() === 'AM' }\" (click)=\"setPeriod('AM')\">{{appLocale.LABEL_AM ||\"AM\"}}</button><br>\n <button class=\"meridian-btn\" [ngClass]=\"{ 'active btn-secondary': getPeriod() === 'PM' }\" (click)=\"setPeriod('PM')\">{{appLocale.LABEL_PM ||\"PM\"}}</button>\n </div>\n }\n </div>\n</div>\n@if (loadNativeDateInput) {\n <wm-datetimepicker\n dateTimePicker\n mode=\"TIME\"\n [minTime]=\"minTime\"\n [maxTime]=\"maxTime\"\n [placement]=\"modal\"\n [displayFormat]=\"timepattern\"\n [value]=\"bsTimeValue\"\n (change)=\"onTimeChange($event)\">\n </wm-datetimepicker>\n <div class=\"mobile-input mobile-datepicker-container\"\n tabindex=\"1000000\"\n (click)=\"!(disabled || readonly) && showDatePickerModal(bsTimeValue)\"\n [attr.aria-label]=\"displayValue ? 'Change time ' + displayValue : arialabel || 'Select time'\"\n (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event); assignModel()\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n role=\"button\">\n </div>\n}\n" }]
378
- }], ctorParameters: () => [{ type: i0.Injector }, { type: i0.NgZone }, { type: i1.AppDefaults }, { type: i1.App }, { type: undefined, decorators: [{
379
- type: Inject,
380
- args: ['EXPLICIT_CONTEXT']
381
- }, {
382
- type: Optional
383
- }] }] });
384
-
385
- /**
386
- * Generated bundle index. Do not edit.
387
- */
388
-
83
+ const moment = momentLib.default || window["moment"];
84
+ const CURRENT_TIME = "CURRENT_TIME";
85
+ const WIDGET_CONFIG = {
86
+ widgetType: "wm-time",
87
+ hostClass: "input-group app-timeinput"
88
+ };
89
+ var TimeComponent = class TimeComponent extends BaseDateTimeComponent {
90
+ static {
91
+ this.initializeProps = registerProps();
92
+ }
93
+ get timestamp() {
94
+ return this.bsTimeValue ? this.bsTimeValue.valueOf() : void 0;
95
+ }
96
+ get datavalue() {
97
+ if (this.isCurrentTime && !this.bsTimeValue) return CURRENT_TIME;
98
+ return getFormattedDate(this.datePipe, this.bsTimeValue, this.outputformat, this.timeZone, null, null, this) || "";
99
+ }
100
+ set datavalue(newVal) {
101
+ if (newVal) {
102
+ if (newVal === CURRENT_TIME) {
103
+ this.isCurrentTime = true;
104
+ this.setTimeInterval();
105
+ } else {
106
+ this.clearTimeInterval();
107
+ this.bsTimeValue = getNativeDateObject(newVal, {
108
+ pattern: this.loadNativeDateInput ? this.outputformat : void 0,
109
+ isNativePicker: this.loadNativeDateInput
110
+ });
111
+ this.isCurrentTime = false;
112
+ this.mintimeMaxtimeValidation();
113
+ }
114
+ } else {
115
+ this.bsTimeValue = void 0;
116
+ this.clearTimeInterval();
117
+ this.isCurrentTime = false;
118
+ }
119
+ this.invokeOnChange(this.datavalue);
120
+ $appDigest();
121
+ }
122
+ get displayValue() {
123
+ const display = getFormattedDate(this.datePipe, this.bsTimeValue, this.timepattern, this.timeZone, null, null, this) || "";
124
+ return this.safeReplaceMeridians(display);
125
+ }
126
+ get nativeDisplayValue() {
127
+ return getFormattedDate(this.datePipe, this.bsTimeValue, "HH:mm:ss", this.timeZone, null, null, this) || "";
128
+ }
129
+ constructor(inj, ngZone, appDefaults, app, explicitContext) {
130
+ super(inj, WIDGET_CONFIG, explicitContext);
131
+ this.ngZone = ngZone;
132
+ this.appDefaults = appDefaults;
133
+ this.status = { isopen: false };
134
+ styler(this.nativeElement, this);
135
+ this.registerDestroyListener(() => this.clearTimeInterval());
136
+ this.timepattern = this.appDefaults.timeFormat || getDisplayDateTimeFormat(FormWidgetType.TIME);
137
+ this.updateFormat("timepattern");
138
+ this.app = app;
139
+ }
140
+ onPropertyChange(key, nv, ov) {
141
+ const isPristine = this.formControl?.pristine;
142
+ if (key === "tabindex") return;
143
+ if (key === "timepattern") this.updateFormat("timepattern");
144
+ if (key === "mintime") {
145
+ this.minTime = getNativeDateObject(nv, {
146
+ pattern: this.loadNativeDateInput ? this.outputformat : void 0,
147
+ isNativePicker: this.loadNativeDateInput
148
+ });
149
+ this.mintimeMaxtimeValidation();
150
+ } else if (key === "maxtime") {
151
+ this.maxTime = getNativeDateObject(nv, {
152
+ pattern: this.loadNativeDateInput ? this.outputformat : void 0,
153
+ isNativePicker: this.loadNativeDateInput
154
+ });
155
+ this.mintimeMaxtimeValidation();
156
+ } else super.onPropertyChange(key, nv, ov);
157
+ if ((key === "mintime" || key === "maxtime") && isPristine) this.formControl?.control?.markAsPristine();
158
+ }
159
+ setValidateType(min, max, val) {
160
+ if (this.timeNotInRange) {
161
+ if (val < min) this.validateType = "mintime";
162
+ else if (val > max) this.validateType = "maxtime";
163
+ }
164
+ }
165
+ mintimeMaxtimeValidation() {
166
+ this.timeNotInRange = this.minTime && this.maxTime && (this.bsTimeValue < this.minTime || this.bsTimeValue > this.maxTime);
167
+ this.setValidateType(this.minTime, this.maxTime, this.bsTimeValue);
168
+ this.invokeOnChange(this.datavalue, void 0, false);
169
+ }
170
+ toggleDropdown($event, skipFocus = false) {
171
+ if (this.loadNativeDateInput) {
172
+ if (!skipFocus) this.onDateTimeInputFocus();
173
+ return;
174
+ }
175
+ if ($event.type === "click") this.invokeEventCallback("click", { $event });
176
+ if ($event.target && $($event.target).is("input") && !this.isDropDownDisplayEnabledOnInput(this.showdropdownon)) return;
177
+ this.ngZone.run(() => {
178
+ this.status.isopen = !this.status.isopen;
179
+ });
180
+ this.addBodyClickListener(this.status.isopen);
181
+ }
182
+ preventTpClose($event) {
183
+ $event.stopImmediatePropagation();
184
+ const parentEl = $(this.nativeElement).closest(".app-composite-widget.caption-floating");
185
+ if (parentEl.length > 0) this.app.notify("captionPositionAnimate", {
186
+ displayVal: this.displayValue,
187
+ nativeEl: parentEl
188
+ });
189
+ }
190
+ addBodyClickListener(skipListener) {
191
+ if (!skipListener) return;
192
+ const bodyElement = document.querySelector("body");
193
+ setTimeout(() => {
194
+ const dropdownElement = $(bodyElement).find(">bs-dropdown-container .dropdown-menu").get(0);
195
+ this.deregisterEventListener = addEventListenerOnElement(bodyElement, dropdownElement, this.nativeElement, "click", this.isDropDownDisplayEnabledOnInput(this.showdropdownon), () => {
196
+ this.status.isopen = false;
197
+ }, 0, true);
198
+ }, 350);
199
+ }
200
+ onDisplayKeydown(event) {
201
+ if (this.isDropDownDisplayEnabledOnInput(this.showdropdownon)) {
202
+ event.stopPropagation();
203
+ if (event.key === "Enter" || event.key === "ArrowDown") {
204
+ event.preventDefault();
205
+ this.toggleDropdown(event);
206
+ } else this.hideTimepickerDropdown();
207
+ } else this.hideTimepickerDropdown();
208
+ }
209
+ onDisplayTimeChange($event) {
210
+ const newVal = getNativeDateObject($event.target.value?.replace(this.am, this.meridians[0])?.replace(this.pm, this.meridians[1]), {
211
+ meridians: this.meridians,
212
+ pattern: this.loadNativeDateInput ? this.outputformat : void 0,
213
+ isNativePicker: this.loadNativeDateInput
214
+ });
215
+ if (!this.formatValidation(newVal, $event.target.value)) return;
216
+ this.invalidDateTimeFormat = false;
217
+ this.onTimeChange(newVal);
218
+ }
219
+ onInputBlur($event) {
220
+ if (!$($event.relatedTarget).hasClass("bs-timepicker-field")) {
221
+ this.invokeOnTouched();
222
+ this.invokeEventCallback("blur", { $event });
223
+ }
224
+ }
225
+ onTimeChange(newVal, isNativePicker) {
226
+ let timeValue, timeInputValue, minTimeMeridian;
227
+ if (isNativePicker) newVal = getNativeDateObject(newVal.target.value, {
228
+ pattern: this.loadNativeDateInput ? this.outputformat : void 0,
229
+ isNativePicker: this.loadNativeDateInput
230
+ });
231
+ if (newVal) {
232
+ this.timeNotInRange = this.minTime && this.maxTime && (newVal < this.minTime || newVal > this.maxTime);
233
+ this.setValidateType(this.minTime, this.maxTime, newVal);
234
+ if (!this.timeNotInRange) this.bsTimeValue = newVal;
235
+ } else if (this.bsTimePicker?.min() && this.bsTimePicker.max()) {
236
+ minTimeMeridian = moment(new Date(this.bsTimePicker.min())).format("A");
237
+ timeValue = this.bsTimePicker.hours + ":" + (this.bsTimePicker.minutes || 0) + ":" + (this.bsTimePicker.seconds || 0) + (this.bsTimePicker.showMeridian() ? " " + minTimeMeridian : "");
238
+ timeInputValue = getNativeDateObject(timeValue, {
239
+ pattern: this.loadNativeDateInput ? this.outputformat : void 0,
240
+ isNativePicker: this.loadNativeDateInput
241
+ });
242
+ this.bsTimePicker.meridian = minTimeMeridian?.replace(this.meridians[0], this.am)?.replace(this.meridians[1], this.pm);
243
+ this.timeNotInRange = this.bsTimePicker.min() > timeInputValue || this.bsTimePicker.max() < timeInputValue;
244
+ if (this.timeNotInRange || this.invalidDateTimeFormat) {
245
+ this.bsTimeValue = this.getPrevDataValue();
246
+ setTimeout(() => {
247
+ const timeStr = getFormattedDate(this.datePipe, timeValue, this.timepattern, this.timeZone, null, null, this) || "";
248
+ $(this.nativeElement).find(".display-input").val(this.safeReplaceMeridians(timeStr));
249
+ });
250
+ }
251
+ this.setValidateType(this.bsTimePicker.min(), this.bsTimePicker.max(), timeInputValue);
252
+ if (!this.timeNotInRange) this.bsTimeValue = timeInputValue;
253
+ }
254
+ if (!this.timeNotInRange && this.datavalue === this.getPrevDataValue()) {
255
+ const displayTime = getFormattedDate(this.datePipe, this.datavalue, this.timepattern, this.timeZone, null, null, this) || "";
256
+ $(this.nativeElement).find(".display-input").val(this.safeReplaceMeridians(displayTime));
257
+ }
258
+ this.invokeOnTouched();
259
+ this.invokeOnChange(this.datavalue, {}, true);
260
+ }
261
+ setTimeInterval() {
262
+ if (this.timeinterval) return;
263
+ this.timeinterval = setInterval(() => {
264
+ const now = this.timeZone ? getMomentLocaleObject(this.timeZone) : /* @__PURE__ */ new Date();
265
+ now.setSeconds(now.getSeconds() + 1);
266
+ this.datavalue = CURRENT_TIME;
267
+ this.onTimeChange(now);
268
+ }, 1e3);
269
+ }
270
+ clearTimeInterval() {
271
+ if (this.timeinterval) {
272
+ clearInterval(this.timeinterval);
273
+ this.timeinterval = null;
274
+ }
275
+ }
276
+ setIsTimeOpen(val) {
277
+ this.status.isopen = val;
278
+ }
279
+ handleEvent(node, eventName, eventCallback, locals) {
280
+ if (!includes([
281
+ "blur",
282
+ "focus",
283
+ "change",
284
+ "click"
285
+ ], eventName)) super.handleEvent(node, eventName, eventCallback, locals);
286
+ }
287
+ hideTimepickerDropdown() {
288
+ this.invokeOnTouched();
289
+ this.status.isopen = false;
290
+ if (this.deregisterEventListener) this.deregisterEventListener();
291
+ if (this.removeKeyupListener) this.removeKeyupListener();
292
+ const parentEl = $(this.nativeElement).closest(".app-composite-widget.caption-floating");
293
+ if (parentEl.length > 0) this.app.notify("captionPositionAnimate", {
294
+ displayVal: this.displayValue,
295
+ nativeEl: parentEl
296
+ });
297
+ this.blurDateInput(true);
298
+ }
299
+ isValid(event) {
300
+ if (!event) {
301
+ const enteredDate = $(this.nativeElement).find("input").val()?.replace(this.am, this.meridians[0])?.replace(this.pm, this.meridians[1]);
302
+ const newVal = getNativeDateObject(enteredDate, {
303
+ meridians: this.meridians,
304
+ pattern: this.loadNativeDateInput ? this.outputformat : void 0,
305
+ isNativePicker: this.loadNativeDateInput
306
+ });
307
+ if (!this.formatValidation(newVal, enteredDate)) return;
308
+ }
309
+ }
310
+ onShown() {
311
+ const tpElements = document.querySelectorAll("timepicker");
312
+ forEach(tpElements, (element) => {
313
+ addClass(element.parentElement, "app-datetime", true);
314
+ });
315
+ if (this.bsDropdown && (this.timeNotInRange || this.invalidDateTimeFormat)) this.bsTimeValue = null;
316
+ this.focusTimePickerPopover(this);
317
+ this.bindTimePickerKeyboardEvents();
318
+ adjustContainerPosition($("bs-dropdown-container"), this.nativeElement, this.bsDropdown._dropdown, $("bs-dropdown-container .dropdown-menu"));
319
+ }
320
+ assignModel() {
321
+ if (!this.displayInputElem) this.displayInputElem = this.getMobileInput();
322
+ this.displayInputElem.value = get(this, "nativeDisplayValue");
323
+ }
324
+ static {
325
+ this.ɵfac = i0.ɵɵngDeclareFactory({
326
+ minVersion: "12.0.0",
327
+ version: "22.2.1",
328
+ ngImport: i0,
329
+ type: TimeComponent,
330
+ deps: [
331
+ { token: i0.Injector },
332
+ { token: i0.NgZone },
333
+ { token: i1.AppDefaults },
334
+ { token: i1.App },
335
+ {
336
+ token: "EXPLICIT_CONTEXT",
337
+ optional: true
338
+ }
339
+ ],
340
+ target: i0.ɵɵFactoryTarget.Component
341
+ });
342
+ }
343
+ static {
344
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
345
+ minVersion: "17.0.0",
346
+ version: "22.2.1",
347
+ type: TimeComponent,
348
+ isStandalone: true,
349
+ selector: "[wmTime]",
350
+ providers: [
351
+ provideAs(TimeComponent, NG_VALUE_ACCESSOR, true),
352
+ provideAs(TimeComponent, NG_VALIDATORS, true),
353
+ provideAsWidgetRef(TimeComponent),
354
+ {
355
+ provide: TimepickerConfig,
356
+ deps: [AbstractI18nService],
357
+ useFactory: getTimepickerConfig
358
+ }
359
+ ],
360
+ usesInheritance: true,
361
+ ngImport: i0,
362
+ template: "<div dropdown [isOpen]=\"status.isopen\" (onShown)=\"onShown()\" (onHidden)=\"hideTimepickerDropdown()\" [container]=\"'body'\" style=\"display: inherit\">\n <input [attr.aria-label]=\"arialabel\" class=\"form-control app-textbox display-input\"\n focus-target\n [tabindex]=\"tabindex\"\n [name]=\"name\"\n type=\"text\"\n role=\"timer\"\n [value]=\"displayValue\"\n [disabled]=\"disabled || readonly || isCurrentTime\"\n [autofocus]=\"autofocus\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-atomic]=\"isCurrentTime ? 'true' : 'false'\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n (click)=\"toggleDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event);\"\n (blur)=\"onInputBlur($event)\"\n (change)=\"onDisplayTimeChange($event)\"\n (keydown)=\"_triggeredByUser = true; onDisplayKeydown($event)\">\n <span class=\"input-group-btn dropdown-toggle\">\n <button type=\"button\" class=\"btn btn-default btn-date\" [tabindex]=\"tabindex\" [disabled]=\"disabled || readonly || isCurrentTime\" aria-label=\"Select time\" aria-haspopup=\"true\" aria-expanded=\"false\" (click)=\"toggleDropdown($event, false)\"><i aria-hidden=\"true\" class=\"app-icon wm-sl-l sl-time\"></i></button>\n </span>\n <div *dropdownMenu class=\"dropdown-menu\" (click)=\"preventTpClose($event)\">\n <timepicker class=\"model-holder\"\n [showMeridian]=\"ismeridian\"\n [readonlyInput]=\"isDisabled\"\n [(ngModel)]=\"bsTimeValue\"\n [ngModelOptions]=\"{standalone: true}\"\n [disabled]=\"disabled || readonly || isCurrentTime\"\n [min]=\"minTime\"\n [max]=\"maxTime\"\n [hourStep]=\"hourstep\"\n [minuteStep]=\"minutestep\"\n [secondsStep]=\"secondsstep\"\n [mousewheel]=\"true\"\n [arrowkeys]=\"true\"\n (isValid)=\"isValid($event)\"\n [showSeconds]=\"showseconds\" (ngModelChange)=\"onTimeChange($event)\"\n [ngClass]=\"{ 'showbuttons': showampmbuttons }\"></timepicker>\n @if (ismeridian && showampmbuttons) {\n <div class=\"ampm-toggle text-center\">\n <button class=\"meridian-btn mb-1\" [ngClass]=\"{ 'active btn-secondary': getPeriod() === 'AM' }\" (click)=\"setPeriod('AM')\">{{appLocale.LABEL_AM ||\"AM\"}}</button><br>\n <button class=\"meridian-btn\" [ngClass]=\"{ 'active btn-secondary': getPeriod() === 'PM' }\" (click)=\"setPeriod('PM')\">{{appLocale.LABEL_PM ||\"PM\"}}</button>\n </div>\n }\n </div>\n</div>\n@if (loadNativeDateInput) {\n <wm-datetimepicker\n dateTimePicker\n mode=\"TIME\"\n [minTime]=\"minTime\"\n [maxTime]=\"maxTime\"\n [placement]=\"modal\"\n [displayFormat]=\"timepattern\"\n [value]=\"bsTimeValue\"\n (change)=\"onTimeChange($event)\">\n </wm-datetimepicker>\n <div class=\"mobile-input mobile-datepicker-container\"\n tabindex=\"1000000\"\n (click)=\"!(disabled || readonly) && showDatePickerModal(bsTimeValue)\"\n [attr.aria-label]=\"displayValue ? 'Change time ' + displayValue : arialabel || 'Select time'\"\n (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event); assignModel()\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n role=\"button\">\n </div>\n}\n",
363
+ dependencies: [
364
+ {
365
+ kind: "ngmodule",
366
+ type: FormsModule
367
+ },
368
+ {
369
+ kind: "directive",
370
+ type: i2.NgControlStatus,
371
+ selector: "[formControlName],[ngModel],[formControl]"
372
+ },
373
+ {
374
+ kind: "directive",
375
+ type: i2.NgModel,
376
+ selector: "[ngModel]:not([formControlName]):not([formControl])",
377
+ inputs: [
378
+ "name",
379
+ "disabled",
380
+ "ngModel",
381
+ "ngModelOptions"
382
+ ],
383
+ outputs: ["ngModelChange"],
384
+ exportAs: ["ngModel"]
385
+ },
386
+ {
387
+ kind: "component",
388
+ type: DateTimePickerComponent,
389
+ selector: "wm-datetimepicker",
390
+ inputs: [
391
+ "mode",
392
+ "placement",
393
+ "minTime",
394
+ "maxTime",
395
+ "_displayFormat",
396
+ "excludedDatesToDisable",
397
+ "value",
398
+ "config",
399
+ "excludedDaysToDisable",
400
+ "displayFormat"
401
+ ],
402
+ outputs: ["change"]
403
+ },
404
+ {
405
+ kind: "ngmodule",
406
+ type: BsDropdownModule
407
+ },
408
+ {
409
+ kind: "directive",
410
+ type: i3.BsDropdownMenuDirective,
411
+ selector: "[bsDropdownMenu],[dropdownMenu]",
412
+ exportAs: ["bs-dropdown-menu"]
413
+ },
414
+ {
415
+ kind: "directive",
416
+ type: i3.BsDropdownDirective,
417
+ selector: "[bsDropdown], [dropdown]",
418
+ inputs: [
419
+ "placement",
420
+ "triggers",
421
+ "container",
422
+ "dropup",
423
+ "autoClose",
424
+ "isAnimated",
425
+ "insideClick",
426
+ "isDisabled",
427
+ "isOpen"
428
+ ],
429
+ outputs: [
430
+ "isOpenChange",
431
+ "onShown",
432
+ "onHidden"
433
+ ],
434
+ exportAs: ["bs-dropdown"]
435
+ },
436
+ {
437
+ kind: "ngmodule",
438
+ type: TimepickerModule
439
+ },
440
+ {
441
+ kind: "component",
442
+ type: i4.TimepickerComponent,
443
+ selector: "timepicker",
444
+ inputs: [
445
+ "hourStep",
446
+ "minuteStep",
447
+ "secondsStep",
448
+ "readonlyInput",
449
+ "disabled",
450
+ "mousewheel",
451
+ "arrowkeys",
452
+ "showSpinners",
453
+ "showMeridian",
454
+ "showMinutes",
455
+ "showSeconds",
456
+ "meridians",
457
+ "min",
458
+ "max",
459
+ "hoursPlaceholder",
460
+ "minutesPlaceholder",
461
+ "secondsPlaceholder"
462
+ ],
463
+ outputs: ["isValid", "meridianChange"]
464
+ },
465
+ {
466
+ kind: "ngmodule",
467
+ type: CommonModule
468
+ },
469
+ {
470
+ kind: "directive",
471
+ type: i5.NgClass,
472
+ selector: "[ngClass]",
473
+ inputs: ["class", "ngClass"]
474
+ }
475
+ ],
476
+ changeDetection: i0.ChangeDetectionStrategy.Eager
477
+ });
478
+ }
479
+ };
480
+ i0.ɵɵngDeclareClassMetadata({
481
+ minVersion: "12.0.0",
482
+ version: "22.2.1",
483
+ ngImport: i0,
484
+ type: TimeComponent,
485
+ decorators: [{
486
+ type: Component,
487
+ args: [{
488
+ changeDetection: ChangeDetectionStrategy.Eager,
489
+ standalone: true,
490
+ imports: [
491
+ FormsModule,
492
+ DateTimePickerComponent,
493
+ BsDropdownModule,
494
+ TimepickerModule,
495
+ CommonModule
496
+ ],
497
+ selector: "[wmTime]",
498
+ providers: [
499
+ provideAs(TimeComponent, NG_VALUE_ACCESSOR, true),
500
+ provideAs(TimeComponent, NG_VALIDATORS, true),
501
+ provideAsWidgetRef(TimeComponent),
502
+ {
503
+ provide: TimepickerConfig,
504
+ deps: [AbstractI18nService],
505
+ useFactory: getTimepickerConfig
506
+ }
507
+ ],
508
+ template: "<div dropdown [isOpen]=\"status.isopen\" (onShown)=\"onShown()\" (onHidden)=\"hideTimepickerDropdown()\" [container]=\"'body'\" style=\"display: inherit\">\n <input [attr.aria-label]=\"arialabel\" class=\"form-control app-textbox display-input\"\n focus-target\n [tabindex]=\"tabindex\"\n [name]=\"name\"\n type=\"text\"\n role=\"timer\"\n [value]=\"displayValue\"\n [disabled]=\"disabled || readonly || isCurrentTime\"\n [autofocus]=\"autofocus\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-atomic]=\"isCurrentTime ? 'true' : 'false'\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n (click)=\"toggleDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event);\"\n (blur)=\"onInputBlur($event)\"\n (change)=\"onDisplayTimeChange($event)\"\n (keydown)=\"_triggeredByUser = true; onDisplayKeydown($event)\">\n <span class=\"input-group-btn dropdown-toggle\">\n <button type=\"button\" class=\"btn btn-default btn-date\" [tabindex]=\"tabindex\" [disabled]=\"disabled || readonly || isCurrentTime\" aria-label=\"Select time\" aria-haspopup=\"true\" aria-expanded=\"false\" (click)=\"toggleDropdown($event, false)\"><i aria-hidden=\"true\" class=\"app-icon wm-sl-l sl-time\"></i></button>\n </span>\n <div *dropdownMenu class=\"dropdown-menu\" (click)=\"preventTpClose($event)\">\n <timepicker class=\"model-holder\"\n [showMeridian]=\"ismeridian\"\n [readonlyInput]=\"isDisabled\"\n [(ngModel)]=\"bsTimeValue\"\n [ngModelOptions]=\"{standalone: true}\"\n [disabled]=\"disabled || readonly || isCurrentTime\"\n [min]=\"minTime\"\n [max]=\"maxTime\"\n [hourStep]=\"hourstep\"\n [minuteStep]=\"minutestep\"\n [secondsStep]=\"secondsstep\"\n [mousewheel]=\"true\"\n [arrowkeys]=\"true\"\n (isValid)=\"isValid($event)\"\n [showSeconds]=\"showseconds\" (ngModelChange)=\"onTimeChange($event)\"\n [ngClass]=\"{ 'showbuttons': showampmbuttons }\"></timepicker>\n @if (ismeridian && showampmbuttons) {\n <div class=\"ampm-toggle text-center\">\n <button class=\"meridian-btn mb-1\" [ngClass]=\"{ 'active btn-secondary': getPeriod() === 'AM' }\" (click)=\"setPeriod('AM')\">{{appLocale.LABEL_AM ||\"AM\"}}</button><br>\n <button class=\"meridian-btn\" [ngClass]=\"{ 'active btn-secondary': getPeriod() === 'PM' }\" (click)=\"setPeriod('PM')\">{{appLocale.LABEL_PM ||\"PM\"}}</button>\n </div>\n }\n </div>\n</div>\n@if (loadNativeDateInput) {\n <wm-datetimepicker\n dateTimePicker\n mode=\"TIME\"\n [minTime]=\"minTime\"\n [maxTime]=\"maxTime\"\n [placement]=\"modal\"\n [displayFormat]=\"timepattern\"\n [value]=\"bsTimeValue\"\n (change)=\"onTimeChange($event)\">\n </wm-datetimepicker>\n <div class=\"mobile-input mobile-datepicker-container\"\n tabindex=\"1000000\"\n (click)=\"!(disabled || readonly) && showDatePickerModal(bsTimeValue)\"\n [attr.aria-label]=\"displayValue ? 'Change time ' + displayValue : arialabel || 'Select time'\"\n (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event); assignModel()\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n role=\"button\">\n </div>\n}\n"
509
+ }]
510
+ }],
511
+ ctorParameters: () => [
512
+ { type: i0.Injector },
513
+ { type: i0.NgZone },
514
+ { type: i1.AppDefaults },
515
+ { type: i1.App },
516
+ {
517
+ type: void 0,
518
+ decorators: [{
519
+ type: Inject,
520
+ args: ["EXPLICIT_CONTEXT"]
521
+ }, { type: Optional }]
522
+ }
523
+ ]
524
+ });
389
525
  export { TimeComponent };
390
- //# sourceMappingURL=index.mjs.map
526
+
527
+ //# sourceMappingURL=index.mjs.map