@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,511 +1,612 @@
1
- import * as i2 from 'angular-imask';
2
- import { IMaskModule, IMaskDirective } from 'angular-imask';
3
- import * as i0 from '@angular/core';
4
- import { ViewChild, Inject, Optional, Component } from '@angular/core';
5
- import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
6
- import * as i3 from 'ngx-bootstrap/datepicker';
7
- import { BsDatepickerModule, BsDatepickerDirective } from 'ngx-bootstrap/datepicker';
8
- import * as i1 from '@wm/core';
9
- import { FormWidgetType, getFormattedDate, getMomentLocaleObject, getDateObj, getDisplayDateTimeFormat, adjustContainerPosition, adjustContainerRightEdges, addEventListenerOnElement } from '@wm/core';
10
- import { PROP_BOOLEAN, PROP_STRING, PROP_ANY, PROP_NUMBER, register, registerFormWidget, styler, setFocusTrap, provideAs, provideAsWidgetRef } from '@wm/components/base';
11
- import { BaseDateTimeComponent } from '@wm/components/input/epoch/base-date-time';
12
- import IMask from 'imask';
13
- import * as momentLib from 'moment';
14
- import { includes, isNaN, parseInt } from 'lodash-es';
15
- import { DateTimePickerComponent } from '@wm/components/input/epoch/date-time-picker';
16
-
17
- const dateProps = new Map([
18
- ['autofocus', PROP_BOOLEAN],
19
- ['class', PROP_STRING],
20
- ['dataentrymode', { value: 'default', ...PROP_STRING }],
21
- ['datavaluesource', PROP_ANY],
22
- ['datavalue', PROP_STRING],
23
- ['datepattern', PROP_STRING],
24
- ['disabled', PROP_BOOLEAN],
25
- ['excludedays', PROP_STRING],
26
- ['excludedates', PROP_STRING],
27
- ['hint', PROP_STRING],
28
- ['arialabel', PROP_STRING],
29
- ['maxdate', PROP_STRING],
30
- ['mindate', PROP_STRING],
31
- ['name', PROP_STRING],
32
- ['outputformat', { value: 'yyyy-MM-dd', ...PROP_STRING }],
33
- ['placeholder', { value: 'Select Date', ...PROP_STRING }],
34
- ['readonly', PROP_BOOLEAN],
35
- ['required', PROP_BOOLEAN],
36
- ['shortcutkey', PROP_STRING],
37
- ['show', { value: true, ...PROP_BOOLEAN }],
38
- ['showdropdownon', { value: 'default', ...PROP_STRING }],
39
- ['showbuttonbar', { value: true, ...PROP_BOOLEAN }], // TODO not addressed
40
- ['showcustompicker', { value: false, ...PROP_BOOLEAN }],
41
- ['showindevice', { displayType: 'inline-block', value: 'all', ...PROP_STRING }],
42
- ['showweeks', { value: false, ...PROP_BOOLEAN }],
43
- ['tabindex', { value: 0, ...PROP_NUMBER }],
44
- ['selectfromothermonth', { value: true, ...PROP_BOOLEAN }],
45
- ['todaybutton', { value: true, ...PROP_BOOLEAN }],
46
- ['clearbutton', { value: true, ...PROP_BOOLEAN }],
47
- ['adaptiveposition', { value: true, ...PROP_BOOLEAN }],
48
- ['todaybuttonlabel', { value: 'LABEL_TODAY_DATE', ...PROP_STRING }],
49
- ['clearbuttonlabel', { value: 'LABEL_CLEAR_DATE', ...PROP_STRING }],
50
- ['showdateformatasplaceholder', PROP_BOOLEAN],
51
- ['viewmode', { value: 'day', ...PROP_STRING }]
1
+ import * as i2 from "angular-imask";
2
+ import { IMaskDirective, IMaskModule } from "angular-imask";
3
+ import * as i0 from "@angular/core";
4
+ import { ChangeDetectionStrategy, Component, Inject, Optional, ViewChild } from "@angular/core";
5
+ import { NG_VALIDATORS, NG_VALUE_ACCESSOR } from "@angular/forms";
6
+ import * as i3 from "ngx-bootstrap/datepicker";
7
+ import { BsDatepickerDirective, BsDatepickerModule } from "ngx-bootstrap/datepicker";
8
+ import * as i1 from "@wm/core";
9
+ import { FormWidgetType, addEventListenerOnElement, adjustContainerPosition, adjustContainerRightEdges, getDateObj, getDisplayDateTimeFormat, getFormattedDate, getMomentLocaleObject } from "@wm/core";
10
+ import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, provideAs, provideAsWidgetRef, register, registerFormWidget, setFocusTrap, styler } from "@wm/components/base";
11
+ import { BaseDateTimeComponent } from "@wm/components/input/epoch/base-date-time";
12
+ import IMask from "imask";
13
+ import * as momentLib from "moment";
14
+ import { includes, isNaN, parseInt } from "lodash-es";
15
+ import { DateTimePickerComponent } from "@wm/components/input/epoch/date-time-picker";
16
+ const dateProps = /* @__PURE__ */ new Map([
17
+ ["autofocus", PROP_BOOLEAN],
18
+ ["class", PROP_STRING],
19
+ ["dataentrymode", {
20
+ value: "default",
21
+ ...PROP_STRING
22
+ }],
23
+ ["datavaluesource", PROP_ANY],
24
+ ["datavalue", PROP_STRING],
25
+ ["datepattern", PROP_STRING],
26
+ ["disabled", PROP_BOOLEAN],
27
+ ["excludedays", PROP_STRING],
28
+ ["excludedates", PROP_STRING],
29
+ ["hint", PROP_STRING],
30
+ ["arialabel", PROP_STRING],
31
+ ["maxdate", PROP_STRING],
32
+ ["mindate", PROP_STRING],
33
+ ["name", PROP_STRING],
34
+ ["outputformat", {
35
+ value: "yyyy-MM-dd",
36
+ ...PROP_STRING
37
+ }],
38
+ ["placeholder", {
39
+ value: "Select Date",
40
+ ...PROP_STRING
41
+ }],
42
+ ["readonly", PROP_BOOLEAN],
43
+ ["required", PROP_BOOLEAN],
44
+ ["shortcutkey", PROP_STRING],
45
+ ["show", {
46
+ value: true,
47
+ ...PROP_BOOLEAN
48
+ }],
49
+ ["showdropdownon", {
50
+ value: "default",
51
+ ...PROP_STRING
52
+ }],
53
+ ["showbuttonbar", {
54
+ value: true,
55
+ ...PROP_BOOLEAN
56
+ }],
57
+ ["showcustompicker", {
58
+ value: false,
59
+ ...PROP_BOOLEAN
60
+ }],
61
+ ["showindevice", {
62
+ displayType: "inline-block",
63
+ value: "all",
64
+ ...PROP_STRING
65
+ }],
66
+ ["showweeks", {
67
+ value: false,
68
+ ...PROP_BOOLEAN
69
+ }],
70
+ ["tabindex", {
71
+ value: 0,
72
+ ...PROP_NUMBER
73
+ }],
74
+ ["selectfromothermonth", {
75
+ value: true,
76
+ ...PROP_BOOLEAN
77
+ }],
78
+ ["todaybutton", {
79
+ value: true,
80
+ ...PROP_BOOLEAN
81
+ }],
82
+ ["clearbutton", {
83
+ value: true,
84
+ ...PROP_BOOLEAN
85
+ }],
86
+ ["adaptiveposition", {
87
+ value: true,
88
+ ...PROP_BOOLEAN
89
+ }],
90
+ ["todaybuttonlabel", {
91
+ value: "LABEL_TODAY_DATE",
92
+ ...PROP_STRING
93
+ }],
94
+ ["clearbuttonlabel", {
95
+ value: "LABEL_CLEAR_DATE",
96
+ ...PROP_STRING
97
+ }],
98
+ ["showdateformatasplaceholder", PROP_BOOLEAN],
99
+ ["viewmode", {
100
+ value: "day",
101
+ ...PROP_STRING
102
+ }]
52
103
  ]);
53
104
  const registerProps = () => {
54
- register('wm-date', dateProps);
55
- registerFormWidget(FormWidgetType.DATE, new Map(dateProps));
105
+ register("wm-date", dateProps);
106
+ registerFormWidget(FormWidgetType.DATE, new Map(dateProps));
56
107
  };
57
-
58
- const moment = momentLib.default || window['moment'];
108
+ const moment = momentLib.default || window["moment"];
59
109
  function validateTheMaskedDate(format, locale) {
60
- if (format == 'timestamp') {
61
- return false;
62
- }
63
- let modifiedFormat = format.toUpperCase().replace(/E/g, 'd');
64
- if ((modifiedFormat.split('D').length - 1) === 1) {
65
- modifiedFormat = modifiedFormat.replace('D', 'DD');
66
- }
67
- if ((modifiedFormat.split('M').length - 1) === 1) {
68
- modifiedFormat = modifiedFormat.replace('M', 'MM');
69
- }
70
- const parseFn = str => {
71
- return moment(str, modifiedFormat).toDate();
72
- };
73
- const formatFn = date => {
74
- return moment(date, modifiedFormat).format(modifiedFormat);
75
- };
76
- return {
77
- mask: Date,
78
- pattern: modifiedFormat,
79
- format: formatFn,
80
- parse: parseFn,
81
- blocks: {
82
- YYYY: {
83
- mask: IMask.MaskedRange,
84
- from: 1900,
85
- to: 9999,
86
- placeholderChar: 'Y',
87
- maxLength: 4,
88
- },
89
- YYY: {
90
- mask: IMask.MaskedRange,
91
- from: 900,
92
- to: 999,
93
- placeholderChar: 'Y',
94
- maxLength: 3,
95
- },
96
- YY: {
97
- mask: IMask.MaskedRange,
98
- from: 0,
99
- to: 99,
100
- placeholderChar: 'Y',
101
- maxLength: 2,
102
- },
103
- Y: {
104
- mask: IMask.MaskedRange,
105
- from: 1900,
106
- to: 9999,
107
- placeholderChar: 'Y',
108
- maxLength: 4,
109
- },
110
- M: {
111
- mask: IMask.MaskedRange,
112
- from: 1,
113
- to: 12,
114
- placeholderChar: 'M',
115
- maxLength: 2,
116
- },
117
- MM: {
118
- mask: IMask.MaskedRange,
119
- from: 1,
120
- to: 12,
121
- placeholderChar: 'M',
122
- maxLength: 2,
123
- },
124
- MMM: {
125
- mask: IMask.MaskedEnum,
126
- enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(locale, { month: 'short' })),
127
- placeholderChar: 'M',
128
- maxLength: 3,
129
- },
130
- MMMM: {
131
- mask: IMask.MaskedEnum,
132
- enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(locale, { month: 'long' })),
133
- placeholderChar: "M",
134
- maxLength: 4
135
- },
136
- DD: {
137
- mask: IMask.MaskedRange,
138
- from: 1,
139
- to: 31,
140
- placeholderChar: 'D',
141
- maxLength: 2,
142
- },
143
- D: {
144
- mask: IMask.MaskedRange,
145
- from: 1,
146
- to: 31,
147
- placeholderChar: 'D',
148
- maxLength: 2,
149
- },
150
- ddd: {
151
- mask: IMask.MaskedEnum,
152
- enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(locale, { weekday: 'short' })),
153
- placeholderChar: 'E',
154
- maxLength: 3,
155
- },
156
- dddd: {
157
- mask: IMask.MaskedEnum,
158
- enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(locale, { weekday: 'long' })),
159
- placeholderChar: 'E',
160
- minLength: 6,
161
- },
162
- },
163
- autofix: true,
164
- lazy: false,
165
- overwrite: true,
166
- skipInvalid: true
167
- };
110
+ if (format == "timestamp") return false;
111
+ let modifiedFormat = format.toUpperCase().replace(/E/g, "d");
112
+ if (modifiedFormat.split("D").length - 1 === 1) modifiedFormat = modifiedFormat.replace("D", "DD");
113
+ if (modifiedFormat.split("M").length - 1 === 1) modifiedFormat = modifiedFormat.replace("M", "MM");
114
+ const parseFn = (str) => {
115
+ return moment(str, modifiedFormat).toDate();
116
+ };
117
+ const formatFn = (date) => {
118
+ return moment(date, modifiedFormat).format(modifiedFormat);
119
+ };
120
+ return {
121
+ mask: Date,
122
+ pattern: modifiedFormat,
123
+ format: formatFn,
124
+ parse: parseFn,
125
+ blocks: {
126
+ YYYY: {
127
+ mask: IMask.MaskedRange,
128
+ from: 1900,
129
+ to: 9999,
130
+ placeholderChar: "Y",
131
+ maxLength: 4
132
+ },
133
+ YYY: {
134
+ mask: IMask.MaskedRange,
135
+ from: 900,
136
+ to: 999,
137
+ placeholderChar: "Y",
138
+ maxLength: 3
139
+ },
140
+ YY: {
141
+ mask: IMask.MaskedRange,
142
+ from: 0,
143
+ to: 99,
144
+ placeholderChar: "Y",
145
+ maxLength: 2
146
+ },
147
+ Y: {
148
+ mask: IMask.MaskedRange,
149
+ from: 1900,
150
+ to: 9999,
151
+ placeholderChar: "Y",
152
+ maxLength: 4
153
+ },
154
+ M: {
155
+ mask: IMask.MaskedRange,
156
+ from: 1,
157
+ to: 12,
158
+ placeholderChar: "M",
159
+ maxLength: 2
160
+ },
161
+ MM: {
162
+ mask: IMask.MaskedRange,
163
+ from: 1,
164
+ to: 12,
165
+ placeholderChar: "M",
166
+ maxLength: 2
167
+ },
168
+ MMM: {
169
+ mask: IMask.MaskedEnum,
170
+ enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(locale, { month: "short" })),
171
+ placeholderChar: "M",
172
+ maxLength: 3
173
+ },
174
+ MMMM: {
175
+ mask: IMask.MaskedEnum,
176
+ enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(locale, { month: "long" })),
177
+ placeholderChar: "M",
178
+ maxLength: 4
179
+ },
180
+ DD: {
181
+ mask: IMask.MaskedRange,
182
+ from: 1,
183
+ to: 31,
184
+ placeholderChar: "D",
185
+ maxLength: 2
186
+ },
187
+ D: {
188
+ mask: IMask.MaskedRange,
189
+ from: 1,
190
+ to: 31,
191
+ placeholderChar: "D",
192
+ maxLength: 2
193
+ },
194
+ ddd: {
195
+ mask: IMask.MaskedEnum,
196
+ enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(locale, { weekday: "short" })),
197
+ placeholderChar: "E",
198
+ maxLength: 3
199
+ },
200
+ dddd: {
201
+ mask: IMask.MaskedEnum,
202
+ enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(locale, { weekday: "long" })),
203
+ placeholderChar: "E",
204
+ minLength: 6
205
+ }
206
+ },
207
+ autofix: true,
208
+ lazy: false,
209
+ overwrite: true,
210
+ skipInvalid: true
211
+ };
168
212
  }
169
-
170
- const CURRENT_DATE = 'CURRENT_DATE';
171
- const DEFAULT_CLS = 'app-date input-group';
213
+ const CURRENT_DATE = "CURRENT_DATE";
172
214
  const WIDGET_CONFIG = {
173
- widgetType: 'wm-date',
174
- hostClass: DEFAULT_CLS
215
+ widgetType: "wm-date",
216
+ hostClass: "app-date input-group"
175
217
  };
176
- class DateComponent extends BaseDateTimeComponent {
177
- static { this.initializeProps = registerProps(); }
178
- get timestamp() {
179
- return this.bsDataValue ? this.bsDataValue.valueOf() : undefined;
180
- }
181
- get dateInputFormat() {
182
- return this._dateOptions.dateInputFormat || 'yyyy-MM-dd';
183
- }
184
- get displayValue() {
185
- if (this.showdateformatasplaceholder && this.imask?.maskRef && this.maskDateInputFormat) {
186
- return getFormattedDate(this.datePipe, this.bsDataValue, this.maskDateInputFormat, this.timeZone, null, this.isCurrentDate, this) || '';
187
- }
188
- return getFormattedDate(this.datePipe, this.bsDataValue, this.dateInputFormat, this.timeZone, null, this.isCurrentDate, this) || '';
189
- }
190
- get nativeDisplayValue() {
191
- return getFormattedDate(this.datePipe, this.bsDataValue, 'yyyy-MM-dd', this.timeZone, null, this.isCurrentDate, this) || '';
192
- }
193
- // @ts-ignore
194
- get datavalue() {
195
- return getFormattedDate(this.datePipe, this.bsDataValue, this.outputformat, this.timeZone, null, this.isCurrentDate, this) || '';
196
- }
197
- // Todo[Shubham]: needs to be redefined
198
- // sets the dataValue and computes the display model values
199
- // @ts-ignore
200
- set datavalue(newVal) {
201
- if (newVal === CURRENT_DATE) {
202
- setTimeout(() => {
203
- this.bsDataValue = this.timeZone ? getMomentLocaleObject(this.timeZone) : new Date();
204
- }, 50);
205
- this.isCurrentDate = true;
206
- }
207
- else {
208
- this.bsDataValue = newVal ? getDateObj(newVal, { isNativePicker: this.loadNativeDateInput }, this.timeZone) : undefined;
209
- this.isCurrentDate = false;
210
- }
211
- // update the previous datavalue.
212
- this.invokeOnChange(this.datavalue, undefined, true);
213
- this.cdRef.detectChanges();
214
- }
215
- // TODO use BsLocaleService to set the current user's locale to see the localized labels
216
- constructor(inj, cdRef, appDefaults, explicitContext) {
217
- super(inj, WIDGET_CONFIG, explicitContext);
218
- this.cdRef = cdRef;
219
- this.appDefaults = appDefaults;
220
- this.isOpen = false;
221
- this.isEnterPressedOnDateInput = false;
222
- this.showdateformatasplaceholder = false;
223
- styler(this.nativeElement, this);
224
- this.dateContainerCls = `app-date-${this.widgetId}`;
225
- this._dateOptions.containerClass = `app-date ${this.dateContainerCls}`;
226
- this._dateOptions.showWeekNumbers = false;
227
- this._dateOptions.customTodayClass = 'current-date';
228
- this._bsDefaultLoadCheck = true;
229
- this.datepattern = this.appDefaults.dateFormat || getDisplayDateTimeFormat(FormWidgetType.DATE);
230
- this.updateFormat('datepattern');
231
- }
232
- /**
233
- * This is an internal method triggered when the date input changes
234
- */
235
- onDisplayDateChange($event, isNativePicker = false) {
236
- this.updateIMask();
237
- if (this.isEnterPressedOnDateInput) {
238
- this.isEnterPressedOnDateInput = false;
239
- return;
240
- }
241
- let inputVal = $event.target.value;
242
- // When the input is cleared, the input value becomes maskDateInputFormatPlaceholder. This causes a validation error.
243
- // When the input value is equal to maskDateInputFormatPlaceholder, it means that the input is in an empty state.
244
- if (this.showdateformatasplaceholder && inputVal === this.maskDateInputFormatPlaceholder) {
245
- inputVal = "";
246
- }
247
- const newVal = getDateObj(inputVal, { pattern: this.datepattern, isNativePicker: isNativePicker });
248
- // date pattern validation
249
- // if invalid pattern is entered, device is showing an error.
250
- if (!this.formatValidation(newVal, inputVal, isNativePicker)) {
251
- return;
252
- }
253
- // min date and max date validation in mobile view.
254
- // if invalid dates are entered, device is showing an alert.
255
- if (isNativePicker && this.minDateMaxDateValidationOnInput(newVal, $event, this.displayValue, isNativePicker)) {
256
- return;
257
- }
258
- this.setDataValue(newVal);
259
- }
260
- // sets the dataValue and computes the display model values
261
- setDataValue(newVal) {
262
- this.invalidDateTimeFormat = false;
263
- // min date and max date validation in web.
264
- // if invalid dates are entered, device is showing validation message.
265
- this.minDateMaxDateValidationOnInput(newVal);
266
- if (getFormattedDate(this.datePipe, newVal, this.dateInputFormat, this.timeZone, null, this.isCurrentDate, this) === this.displayValue) {
267
- $(this.nativeElement).find('.display-input').val(this.displayValue);
268
- }
269
- if (!this.dateNotInRange) {
270
- if (newVal) {
271
- this.bsDataValue = newVal;
272
- this.updateIMask();
273
- }
274
- else {
275
- this.bsDataValue = undefined;
276
- }
277
- if (this.datavalue === this.getPrevDataValue()) {
278
- const date = getFormattedDate(this.datePipe, this.datavalue, this.dateInputFormat, this.timeZone, null, this.isCurrentDate, this);
279
- $(this.nativeElement).find('.display-input').val(date);
280
- }
281
- }
282
- this.invokeOnChange(this.datavalue, {}, true);
283
- }
284
- onDatePickerOpen() {
285
- this.isOpen = true;
286
- this.activeDate = this.bsDataValue ? this.bsDataValue : (this.timeZone ? getMomentLocaleObject(this.timeZone) : new Date());
287
- // if (!this.bsDataValue) {
288
- // this.hightlightToday(this.activeDate);
289
- // }
290
- this.updateIMask();
291
- if (this.bsDatePickerDirective && (this.dateNotInRange || this.invalidDateTimeFormat)) {
292
- this.bsDatePickerDirective._bsValue = null;
293
- }
294
- // We are using the two input tags(To maintain the modal and proxy modal) for the date control.
295
- // So actual bootstrap input target width we made it to 0, so bootstrap calculating the calendar container top position improperly.
296
- // To fix the container top position set the width 1px;
297
- this.$element.find('.model-holder').width('1px');
298
- const dpContainerEl = $('bs-datepicker-container');
299
- dpContainerEl.attr('aria-label', 'Use Arrow keys to navigate dates, Choose Date from datepicker');
300
- $('.bs-calendar-container').removeAttr('role');
301
- const datePickerContainer = $('.bs-datepicker-container')[0];
302
- this.focusTrap = setFocusTrap(datePickerContainer, true);
303
- try {
304
- // focus-trap throws if the container has no tabbable node yet (e.g. calendar still rendering);
305
- // that shouldn't stop the picker from opening.
306
- this.focusTrap.activate();
307
- }
308
- catch (e) {
309
- }
310
- this.addDatepickerKeyboardEvents(this, false);
311
- adjustContainerPosition($('bs-datepicker-container'), this.nativeElement, this.bsDatePickerDirective._datepicker);
312
- adjustContainerRightEdges($('bs-datepicker-container'), this.nativeElement, this.bsDatePickerDirective._datepicker);
313
- if (this.timeZone) {
314
- const todayBtn = document.querySelector(`.${this.dateContainerCls} .bs-datepicker-buttons .btn-today-wrapper button`);
315
- const setTodayTZHandler = (event) => {
316
- const todayTZ = getMomentLocaleObject(this.timeZone);
317
- if (new Date(this.bsDataValue).toDateString() !== new Date(todayTZ).toDateString()) {
318
- this.bsDataValue = todayTZ;
319
- }
320
- todayBtn.removeEventListener('click', setTodayTZHandler);
321
- };
322
- todayBtn.addEventListener('click', setTodayTZHandler);
323
- }
324
- }
325
- onInputBlur($event) {
326
- this.updateIMask();
327
- if (!$($event.relatedTarget).hasClass('current-date')) {
328
- this.invokeOnTouched();
329
- this.invokeEventCallback('blur', { $event });
330
- }
331
- }
332
- updateIMask() {
333
- this.imask?.maskRef?.updateValue();
334
- }
335
- hideDatepickerDropdown() {
336
- this.invokeOnTouched();
337
- this.isOpen = false;
338
- this.focusTrap?.deactivate();
339
- this.isEnterPressedOnDateInput = false;
340
- if (this.deregisterEventListener) {
341
- this.deregisterEventListener();
342
- }
343
- this.blurDateInput(this.isOpen);
344
- }
345
- // change and blur events are added from the template
346
- handleEvent(node, eventName, callback, locals) {
347
- if (!includes(['blur', 'focus', 'change', 'click'], eventName)) {
348
- super.handleEvent(node, eventName, callback, locals);
349
- }
350
- }
351
- /**
352
- * This is an internal method used to toggle the dropdown of the date widget
353
- */
354
- toggleDpDropdown($event, skipFocus = false) {
355
- if (this.loadNativeDateInput) {
356
- // Fixes click event getting triggred twice in Mobile devices.
357
- if (!skipFocus) {
358
- this.onDateTimeInputFocus();
359
- }
360
- }
361
- if ($event.type === 'click') {
362
- this.invokeEventCallback('click', { $event: $event });
363
- // this.focusOnInputEl();
364
- }
365
- if ($event.target && $($event.target).is('input') && !(this.isDropDownDisplayEnabledOnInput(this.showdropdownon))) {
366
- $event.stopPropagation();
367
- return;
368
- }
369
- this.bsDatePickerDirective.toggle();
370
- this.addBodyClickListener(this.bsDatePickerDirective.isOpen);
371
- }
372
- addBodyClickListener(skipListener) {
373
- if (!skipListener) {
374
- return;
375
- }
376
- const bodyElement = document.querySelector('body');
377
- setTimeout(() => {
378
- const bsDateContainerElement = bodyElement.querySelector(`.${this.dateContainerCls}`);
379
- this.deregisterEventListener = addEventListenerOnElement(bodyElement, bsDateContainerElement, this.nativeElement, 'click', this.isDropDownDisplayEnabledOnInput(this.showdropdownon), () => {
380
- this.isOpen = false;
381
- }, 0 /* EVENT_LIFE.ONCE */, true);
382
- }, 350);
383
- }
384
- /**
385
- * This is an internal method triggered when pressing key on the date input
386
- */
387
- onDisplayKeydown(event) {
388
- if (this.isDropDownDisplayEnabledOnInput(this.showdropdownon)) {
389
- event.stopPropagation();
390
- if (event.key === 'Enter') {
391
- const newVal = getDateObj(event.target.value, { pattern: this.datepattern });
392
- event.preventDefault();
393
- const formattedDate = getFormattedDate(this.datePipe, newVal, this.dateInputFormat, this.timeZone, null, this.isCurrentDate, this);
394
- let inputVal = event.target.value.trim();
395
- if (this.showdateformatasplaceholder && inputVal === this.maskDateInputFormatPlaceholder) {
396
- inputVal = "";
397
- }
398
- if (inputVal && this.datepattern === 'timestamp') {
399
- if (!isNaN(inputVal) && parseInt(inputVal) !== formattedDate) {
400
- this.invalidDateTimeFormat = true;
401
- this.invokeOnChange(this.datavalue, event, false);
402
- }
403
- }
404
- else if (inputVal && inputVal !== formattedDate) {
405
- this.invalidDateTimeFormat = true;
406
- this.invokeOnChange(this.datavalue, event, false);
407
- }
408
- else {
409
- this.invalidDateTimeFormat = false;
410
- this.isEnterPressedOnDateInput = true;
411
- this.bsDatePickerDirective.bsValue = inputVal ? newVal : '';
412
- this.updateIMask();
413
- }
414
- this.toggleDpDropdown(event);
415
- }
416
- else {
417
- this.hideDatepickerDropdown();
418
- }
419
- }
420
- else {
421
- this.hideDatepickerDropdown();
422
- }
423
- }
424
- /**
425
- * This is an internal method triggered when the date selection changes
426
- */
427
- onDateChange(newVal) {
428
- /**
429
- * Ngx-bootstrap upgrade : To avoid the page load datechange event;
430
- * TODO:
431
- * https://github.com/valor-software/ngx-bootstrap/issues/6016
432
- * For above issue, once we get the solution from Ngx-Bootstrap team, remove the _bsDefaultLoadCheck check and update accordingly.
433
- * */
434
- if (this._bsDefaultLoadCheck) {
435
- this._bsDefaultLoadCheck = false;
436
- return;
437
- }
438
- this.setDataValue(newVal);
439
- }
440
- onPropertyChange(key, nv, ov) {
441
- if (key === 'showdateformatasplaceholder') {
442
- this.showdateformatasplaceholder = nv;
443
- this.imask?.destroyMask();
444
- if (this.showdateformatasplaceholder && this.datepattern !== 'timestamp') {
445
- this.mask = validateTheMaskedDate(this.datepattern, this.selectedLocale);
446
- this.maskDateInputFormat = this.dateInputFormat;
447
- this.maskDateInputFormat = (this.dateInputFormat.split('d').length - 1) === 1 ? this.maskDateInputFormat.replace('d', 'dd') : this.maskDateInputFormat;
448
- this.maskDateInputFormat = (this.dateInputFormat.split('M').length - 1) === 1 ? this.maskDateInputFormat.replace('M', 'MM') : this.maskDateInputFormat;
449
- this.maskDateInputFormatPlaceholder = this.maskDateInputFormat.toUpperCase().replace('EEEE', 'EEEEEE').replace('MMMM', 'MMM');
450
- this.updateIMask();
451
- }
452
- }
453
- else {
454
- super.onPropertyChange(key, nv, ov);
455
- }
456
- }
457
- ngOnDestroy() {
458
- // MEMORY LEAK FIX: Clean up event listener deregister function
459
- if (this.deregisterEventListener) {
460
- this.deregisterEventListener();
461
- this.deregisterEventListener = null;
462
- }
463
- // MEMORY LEAK FIX: Clear ViewChild references
464
- this.bsDatePickerDirective = null;
465
- this.imask = null;
466
- // MEMORY LEAK FIX: Deactivate focus trap if active
467
- if (this.focusTrap) {
468
- this.focusTrap.deactivate();
469
- this.focusTrap = null;
470
- }
471
- // MEMORY LEAK FIX: Clear removeKeyupListener if set
472
- if (this.removeKeyupListener) {
473
- this.removeKeyupListener();
474
- this.removeKeyupListener = null;
475
- }
476
- // Call parent ngOnDestroy (BaseDateTimeComponent has cleanup)
477
- super.ngOnDestroy();
478
- }
479
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: DateComponent, deps: [{ token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: i1.AppDefaults }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
480
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: DateComponent, isStandalone: true, selector: "[wmDate]", providers: [
481
- provideAs(DateComponent, NG_VALUE_ACCESSOR, true),
482
- provideAs(DateComponent, NG_VALIDATORS, true),
483
- provideAsWidgetRef(DateComponent)
484
- ], viewQueries: [{ propertyName: "bsDatePickerDirective", first: true, predicate: BsDatepickerDirective, descendants: true }, { propertyName: "imask", first: true, predicate: ["dateInput"], descendants: true, read: IMaskDirective }], usesInheritance: true, ngImport: i0, template: "<input class=\"form-control app-textbox app-dateinput display-input\"\n focus-target\n type=\"text\"\n [name]=\"name\"\n #dateInput\n [imask]=\"mask\"\n [unmask]=\"true\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [value]=\"displayValue\"\n (click)=\"toggleDpDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event); updateIMask()\"\n (blur)=\"onInputBlur($event)\"\n [disabled]=\"disabled || readonly\"\n [autofocus]=\"autofocus\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"arialabel\"\n (change)=\"onDisplayDateChange($event)\"\n (keydown)=\"_triggeredByUser = true; onDisplayKeydown($event);\">\n\n<span class=\"input-group-btn\">\n <button type=\"button\"\n class=\"btn btn-default btn-time\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [disabled]=\"disabled || readonly\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : 'Choose date by pressing enter'\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"isOpen\"\n (click)=\"toggleDpDropdown($event, false)\">\n <i aria-hidden=\"true\"\n class=\"app-icon wm-sl-l sl-calendar\"></i>\n </button>\n</span>\n<div style=\"width: 0;display: inline-block;\">\n <input class=\"model-holder\"\n aria-label=\"datepicker dropdownmenu\"\n aria-controls=\"date\"\n [tabindex]=\"-1\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [container]=\"containerTarget || '.wm-app'\"\n [bsConfig]=\"_dateOptions\"\n [isOpen]=\"isOpen\"\n #datepicker=\"bsDatepicker\"\n bsDatepicker\n [daysDisabled]=\"excludedDaysToDisable\"\n [datesDisabled]=\"excludedDatesToDisable\"\n placement=\"bottom right\"\n [isDisabled]=\"disabled || readonly\"\n [bsValue]=\"bsDataValue\"\n (onShown)=\"onDatePickerOpen()\"\n (onHidden)=\"hideDatepickerDropdown()\"\n (bsValueChange)=\"onDateChange($event)\">\n</div>\n\n@if (loadNativeDateInput) {\n <wm-datetimepicker\n dateTimePicker\n mode=\"DATE\"\n [config]=\"_dateOptions\"\n [placement]=\"modal\"\n [excludedDaysToDisable]=\"excludedDaysToDisable\"\n [excludedDatesToDisable]=\"excludedDatesToDisable\"\n [displayFormat]=\"dateInputFormat\"\n [value]=\"bsDataValue\"\n (change)=\"onDateChange($event)\">\n </wm-datetimepicker>\n <div class=\"mobile-input mobile-datepicker-container\"\n [tabindex]=\"tabindex || 0\"\n (click)=\"!(disabled || readonly) && showDatePickerModal(bsDataValue)\"\n (keydown.enter)=\"!(disabled || readonly) && showDatePickerModal(bsDataValue)\"\n (keydown.space)=\"$event.preventDefault(); !(disabled || readonly) && showDatePickerModal(bsDataValue)\"\n (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event);\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : arialabel || 'Choose Date'\"\n role=\"button\">\n </div>\n}\n", dependencies: [{ kind: "component", type: DateTimePickerComponent, selector: "wm-datetimepicker", inputs: ["mode", "placement", "config", "minTime", "maxTime", "_displayFormat", "excludedDatesToDisable", "value", "excludedDaysToDisable", "displayFormat"], outputs: ["change"] }, { kind: "ngmodule", type: IMaskModule }, { kind: "directive", type: i2.IMaskDirective, selector: "[imask]", inputs: ["imask", "unmask", "imaskElement"], outputs: ["accept", "complete"], exportAs: ["imask"] }, { kind: "ngmodule", type: BsDatepickerModule }, { kind: "directive", type: i3.BsDatepickerDirective, selector: "[bsDatepicker]", inputs: ["placement", "triggers", "outsideClick", "container", "outsideEsc", "isDisabled", "minDate", "maxDate", "ignoreMinMaxErrors", "minMode", "daysDisabled", "datesDisabled", "datesEnabled", "dateCustomClasses", "dateTooltipTexts", "isOpen", "bsValue", "bsConfig"], outputs: ["onShown", "onHidden", "bsValueChange"], exportAs: ["bsDatepicker"] }, { kind: "directive", type: i3.BsDatepickerInputDirective, selector: "input[bsDatepicker]" }] }); }
485
- }
486
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: DateComponent, decorators: [{
487
- type: Component,
488
- args: [{ standalone: true, imports: [DateTimePickerComponent, IMaskModule, BsDatepickerModule], selector: '[wmDate]', providers: [
489
- provideAs(DateComponent, NG_VALUE_ACCESSOR, true),
490
- provideAs(DateComponent, NG_VALIDATORS, true),
491
- provideAsWidgetRef(DateComponent)
492
- ], template: "<input class=\"form-control app-textbox app-dateinput display-input\"\n focus-target\n type=\"text\"\n [name]=\"name\"\n #dateInput\n [imask]=\"mask\"\n [unmask]=\"true\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [value]=\"displayValue\"\n (click)=\"toggleDpDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event); updateIMask()\"\n (blur)=\"onInputBlur($event)\"\n [disabled]=\"disabled || readonly\"\n [autofocus]=\"autofocus\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"arialabel\"\n (change)=\"onDisplayDateChange($event)\"\n (keydown)=\"_triggeredByUser = true; onDisplayKeydown($event);\">\n\n<span class=\"input-group-btn\">\n <button type=\"button\"\n class=\"btn btn-default btn-time\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [disabled]=\"disabled || readonly\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : 'Choose date by pressing enter'\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"isOpen\"\n (click)=\"toggleDpDropdown($event, false)\">\n <i aria-hidden=\"true\"\n class=\"app-icon wm-sl-l sl-calendar\"></i>\n </button>\n</span>\n<div style=\"width: 0;display: inline-block;\">\n <input class=\"model-holder\"\n aria-label=\"datepicker dropdownmenu\"\n aria-controls=\"date\"\n [tabindex]=\"-1\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [container]=\"containerTarget || '.wm-app'\"\n [bsConfig]=\"_dateOptions\"\n [isOpen]=\"isOpen\"\n #datepicker=\"bsDatepicker\"\n bsDatepicker\n [daysDisabled]=\"excludedDaysToDisable\"\n [datesDisabled]=\"excludedDatesToDisable\"\n placement=\"bottom right\"\n [isDisabled]=\"disabled || readonly\"\n [bsValue]=\"bsDataValue\"\n (onShown)=\"onDatePickerOpen()\"\n (onHidden)=\"hideDatepickerDropdown()\"\n (bsValueChange)=\"onDateChange($event)\">\n</div>\n\n@if (loadNativeDateInput) {\n <wm-datetimepicker\n dateTimePicker\n mode=\"DATE\"\n [config]=\"_dateOptions\"\n [placement]=\"modal\"\n [excludedDaysToDisable]=\"excludedDaysToDisable\"\n [excludedDatesToDisable]=\"excludedDatesToDisable\"\n [displayFormat]=\"dateInputFormat\"\n [value]=\"bsDataValue\"\n (change)=\"onDateChange($event)\">\n </wm-datetimepicker>\n <div class=\"mobile-input mobile-datepicker-container\"\n [tabindex]=\"tabindex || 0\"\n (click)=\"!(disabled || readonly) && showDatePickerModal(bsDataValue)\"\n (keydown.enter)=\"!(disabled || readonly) && showDatePickerModal(bsDataValue)\"\n (keydown.space)=\"$event.preventDefault(); !(disabled || readonly) && showDatePickerModal(bsDataValue)\"\n (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event);\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : arialabel || 'Choose Date'\"\n role=\"button\">\n </div>\n}\n" }]
493
- }], ctorParameters: () => [{ type: i0.Injector }, { type: i0.ChangeDetectorRef }, { type: i1.AppDefaults }, { type: undefined, decorators: [{
494
- type: Inject,
495
- args: ['EXPLICIT_CONTEXT']
496
- }, {
497
- type: Optional
498
- }] }], propDecorators: { bsDatePickerDirective: [{
499
- type: ViewChild,
500
- args: [BsDatepickerDirective]
501
- }], imask: [{
502
- type: ViewChild,
503
- args: ['dateInput', { read: IMaskDirective }]
504
- }] } });
505
-
506
- /**
507
- * Generated bundle index. Do not edit.
508
- */
509
-
218
+ var DateComponent = class DateComponent extends BaseDateTimeComponent {
219
+ static {
220
+ this.initializeProps = registerProps();
221
+ }
222
+ get timestamp() {
223
+ return this.bsDataValue ? this.bsDataValue.valueOf() : void 0;
224
+ }
225
+ get dateInputFormat() {
226
+ return this._dateOptions.dateInputFormat || "yyyy-MM-dd";
227
+ }
228
+ get displayValue() {
229
+ if (this.showdateformatasplaceholder && this.imask?.maskRef && this.maskDateInputFormat) return getFormattedDate(this.datePipe, this.bsDataValue, this.maskDateInputFormat, this.timeZone, null, this.isCurrentDate, this) || "";
230
+ return getFormattedDate(this.datePipe, this.bsDataValue, this.dateInputFormat, this.timeZone, null, this.isCurrentDate, this) || "";
231
+ }
232
+ get nativeDisplayValue() {
233
+ return getFormattedDate(this.datePipe, this.bsDataValue, "yyyy-MM-dd", this.timeZone, null, this.isCurrentDate, this) || "";
234
+ }
235
+ get datavalue() {
236
+ return getFormattedDate(this.datePipe, this.bsDataValue, this.outputformat, this.timeZone, null, this.isCurrentDate, this) || "";
237
+ }
238
+ set datavalue(newVal) {
239
+ if (newVal === CURRENT_DATE) {
240
+ setTimeout(() => {
241
+ this.bsDataValue = this.timeZone ? getMomentLocaleObject(this.timeZone) : /* @__PURE__ */ new Date();
242
+ }, 50);
243
+ this.isCurrentDate = true;
244
+ } else {
245
+ this.bsDataValue = newVal ? getDateObj(newVal, { isNativePicker: this.loadNativeDateInput }, this.timeZone) : void 0;
246
+ this.isCurrentDate = false;
247
+ }
248
+ this.invokeOnChange(this.datavalue, void 0, true);
249
+ this.cdRef.detectChanges();
250
+ }
251
+ constructor(inj, cdRef, appDefaults, explicitContext) {
252
+ super(inj, WIDGET_CONFIG, explicitContext);
253
+ this.cdRef = cdRef;
254
+ this.appDefaults = appDefaults;
255
+ this.isOpen = false;
256
+ this.isEnterPressedOnDateInput = false;
257
+ this.showdateformatasplaceholder = false;
258
+ styler(this.nativeElement, this);
259
+ this.dateContainerCls = `app-date-${this.widgetId}`;
260
+ this._dateOptions.containerClass = `app-date ${this.dateContainerCls}`;
261
+ this._dateOptions.showWeekNumbers = false;
262
+ this._dateOptions.customTodayClass = "current-date";
263
+ this._bsDefaultLoadCheck = true;
264
+ this.datepattern = this.appDefaults.dateFormat || getDisplayDateTimeFormat(FormWidgetType.DATE);
265
+ this.updateFormat("datepattern");
266
+ }
267
+ onDisplayDateChange($event, isNativePicker = false) {
268
+ this.updateIMask();
269
+ if (this.isEnterPressedOnDateInput) {
270
+ this.isEnterPressedOnDateInput = false;
271
+ return;
272
+ }
273
+ let inputVal = $event.target.value;
274
+ if (this.showdateformatasplaceholder && inputVal === this.maskDateInputFormatPlaceholder) inputVal = "";
275
+ const newVal = getDateObj(inputVal, {
276
+ pattern: this.datepattern,
277
+ isNativePicker
278
+ });
279
+ if (!this.formatValidation(newVal, inputVal, isNativePicker)) return;
280
+ if (isNativePicker && this.minDateMaxDateValidationOnInput(newVal, $event, this.displayValue, isNativePicker)) return;
281
+ this.setDataValue(newVal);
282
+ }
283
+ setDataValue(newVal) {
284
+ this.invalidDateTimeFormat = false;
285
+ this.minDateMaxDateValidationOnInput(newVal);
286
+ if (getFormattedDate(this.datePipe, newVal, this.dateInputFormat, this.timeZone, null, this.isCurrentDate, this) === this.displayValue) $(this.nativeElement).find(".display-input").val(this.displayValue);
287
+ if (!this.dateNotInRange) {
288
+ if (newVal) {
289
+ this.bsDataValue = newVal;
290
+ this.updateIMask();
291
+ } else this.bsDataValue = void 0;
292
+ if (this.datavalue === this.getPrevDataValue()) {
293
+ const date = getFormattedDate(this.datePipe, this.datavalue, this.dateInputFormat, this.timeZone, null, this.isCurrentDate, this);
294
+ $(this.nativeElement).find(".display-input").val(date);
295
+ }
296
+ }
297
+ this.invokeOnChange(this.datavalue, {}, true);
298
+ }
299
+ onDatePickerOpen() {
300
+ this.isOpen = true;
301
+ this.activeDate = this.bsDataValue ? this.bsDataValue : this.timeZone ? getMomentLocaleObject(this.timeZone) : /* @__PURE__ */ new Date();
302
+ this.updateIMask();
303
+ if (this.bsDatePickerDirective && (this.dateNotInRange || this.invalidDateTimeFormat)) this.bsDatePickerDirective._bsValue = null;
304
+ this.$element.find(".model-holder").width("1px");
305
+ $("bs-datepicker-container").attr("aria-label", "Use Arrow keys to navigate dates, Choose Date from datepicker");
306
+ $(".bs-calendar-container").removeAttr("role");
307
+ const datePickerContainer = $(".bs-datepicker-container")[0];
308
+ this.focusTrap = setFocusTrap(datePickerContainer, true);
309
+ try {
310
+ this.focusTrap.activate();
311
+ } catch (e) {}
312
+ this.addDatepickerKeyboardEvents(this, false);
313
+ adjustContainerPosition($("bs-datepicker-container"), this.nativeElement, this.bsDatePickerDirective._datepicker);
314
+ adjustContainerRightEdges($("bs-datepicker-container"), this.nativeElement, this.bsDatePickerDirective._datepicker);
315
+ if (this.timeZone) {
316
+ const todayBtn = document.querySelector(`.${this.dateContainerCls} .bs-datepicker-buttons .btn-today-wrapper button`);
317
+ const setTodayTZHandler = (event) => {
318
+ const todayTZ = getMomentLocaleObject(this.timeZone);
319
+ if (new Date(this.bsDataValue).toDateString() !== new Date(todayTZ).toDateString()) this.bsDataValue = todayTZ;
320
+ todayBtn.removeEventListener("click", setTodayTZHandler);
321
+ };
322
+ todayBtn.addEventListener("click", setTodayTZHandler);
323
+ }
324
+ }
325
+ onInputBlur($event) {
326
+ this.updateIMask();
327
+ if (!$($event.relatedTarget).hasClass("current-date")) {
328
+ this.invokeOnTouched();
329
+ this.invokeEventCallback("blur", { $event });
330
+ }
331
+ }
332
+ updateIMask() {
333
+ this.imask?.maskRef?.updateValue();
334
+ }
335
+ hideDatepickerDropdown() {
336
+ this.invokeOnTouched();
337
+ this.isOpen = false;
338
+ this.focusTrap?.deactivate();
339
+ this.isEnterPressedOnDateInput = false;
340
+ if (this.deregisterEventListener) this.deregisterEventListener();
341
+ this.blurDateInput(this.isOpen);
342
+ }
343
+ handleEvent(node, eventName, callback, locals) {
344
+ if (!includes([
345
+ "blur",
346
+ "focus",
347
+ "change",
348
+ "click"
349
+ ], eventName)) super.handleEvent(node, eventName, callback, locals);
350
+ }
351
+ toggleDpDropdown($event, skipFocus = false) {
352
+ if (this.loadNativeDateInput) {
353
+ if (!skipFocus) this.onDateTimeInputFocus();
354
+ }
355
+ if ($event.type === "click") this.invokeEventCallback("click", { $event });
356
+ if ($event.target && $($event.target).is("input") && !this.isDropDownDisplayEnabledOnInput(this.showdropdownon)) {
357
+ $event.stopPropagation();
358
+ return;
359
+ }
360
+ this.bsDatePickerDirective.toggle();
361
+ this.addBodyClickListener(this.bsDatePickerDirective.isOpen);
362
+ }
363
+ addBodyClickListener(skipListener) {
364
+ if (!skipListener) return;
365
+ const bodyElement = document.querySelector("body");
366
+ setTimeout(() => {
367
+ const bsDateContainerElement = bodyElement.querySelector(`.${this.dateContainerCls}`);
368
+ this.deregisterEventListener = addEventListenerOnElement(bodyElement, bsDateContainerElement, this.nativeElement, "click", this.isDropDownDisplayEnabledOnInput(this.showdropdownon), () => {
369
+ this.isOpen = false;
370
+ }, 0, true);
371
+ }, 350);
372
+ }
373
+ onDisplayKeydown(event) {
374
+ if (this.isDropDownDisplayEnabledOnInput(this.showdropdownon)) {
375
+ event.stopPropagation();
376
+ if (event.key === "Enter") {
377
+ const newVal = getDateObj(event.target.value, { pattern: this.datepattern });
378
+ event.preventDefault();
379
+ const formattedDate = getFormattedDate(this.datePipe, newVal, this.dateInputFormat, this.timeZone, null, this.isCurrentDate, this);
380
+ let inputVal = event.target.value.trim();
381
+ if (this.showdateformatasplaceholder && inputVal === this.maskDateInputFormatPlaceholder) inputVal = "";
382
+ if (inputVal && this.datepattern === "timestamp") {
383
+ if (!isNaN(inputVal) && parseInt(inputVal) !== formattedDate) {
384
+ this.invalidDateTimeFormat = true;
385
+ this.invokeOnChange(this.datavalue, event, false);
386
+ }
387
+ } else if (inputVal && inputVal !== formattedDate) {
388
+ this.invalidDateTimeFormat = true;
389
+ this.invokeOnChange(this.datavalue, event, false);
390
+ } else {
391
+ this.invalidDateTimeFormat = false;
392
+ this.isEnterPressedOnDateInput = true;
393
+ this.bsDatePickerDirective.bsValue = inputVal ? newVal : "";
394
+ this.updateIMask();
395
+ }
396
+ this.toggleDpDropdown(event);
397
+ } else this.hideDatepickerDropdown();
398
+ } else this.hideDatepickerDropdown();
399
+ }
400
+ onDateChange(newVal) {
401
+ if (this._bsDefaultLoadCheck) {
402
+ this._bsDefaultLoadCheck = false;
403
+ return;
404
+ }
405
+ this.setDataValue(newVal);
406
+ }
407
+ onPropertyChange(key, nv, ov) {
408
+ if (key === "showdateformatasplaceholder") {
409
+ this.showdateformatasplaceholder = nv;
410
+ this.imask?.destroyMask();
411
+ if (this.showdateformatasplaceholder && this.datepattern !== "timestamp") {
412
+ this.mask = validateTheMaskedDate(this.datepattern, this.selectedLocale);
413
+ this.maskDateInputFormat = this.dateInputFormat;
414
+ this.maskDateInputFormat = this.dateInputFormat.split("d").length - 1 === 1 ? this.maskDateInputFormat.replace("d", "dd") : this.maskDateInputFormat;
415
+ this.maskDateInputFormat = this.dateInputFormat.split("M").length - 1 === 1 ? this.maskDateInputFormat.replace("M", "MM") : this.maskDateInputFormat;
416
+ this.maskDateInputFormatPlaceholder = this.maskDateInputFormat.toUpperCase().replace("EEEE", "EEEEEE").replace("MMMM", "MMM");
417
+ this.updateIMask();
418
+ }
419
+ } else super.onPropertyChange(key, nv, ov);
420
+ }
421
+ ngOnDestroy() {
422
+ if (this.deregisterEventListener) {
423
+ this.deregisterEventListener();
424
+ this.deregisterEventListener = null;
425
+ }
426
+ this.bsDatePickerDirective = null;
427
+ this.imask = null;
428
+ if (this.focusTrap) {
429
+ this.focusTrap.deactivate();
430
+ this.focusTrap = null;
431
+ }
432
+ if (this.removeKeyupListener) {
433
+ this.removeKeyupListener();
434
+ this.removeKeyupListener = null;
435
+ }
436
+ super.ngOnDestroy();
437
+ }
438
+ static {
439
+ this.ɵfac = i0.ɵɵngDeclareFactory({
440
+ minVersion: "12.0.0",
441
+ version: "22.2.1",
442
+ ngImport: i0,
443
+ type: DateComponent,
444
+ deps: [
445
+ { token: i0.Injector },
446
+ { token: i0.ChangeDetectorRef },
447
+ { token: i1.AppDefaults },
448
+ {
449
+ token: "EXPLICIT_CONTEXT",
450
+ optional: true
451
+ }
452
+ ],
453
+ target: i0.ɵɵFactoryTarget.Component
454
+ });
455
+ }
456
+ static {
457
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
458
+ minVersion: "17.0.0",
459
+ version: "22.2.1",
460
+ type: DateComponent,
461
+ isStandalone: true,
462
+ selector: "[wmDate]",
463
+ providers: [
464
+ provideAs(DateComponent, NG_VALUE_ACCESSOR, true),
465
+ provideAs(DateComponent, NG_VALIDATORS, true),
466
+ provideAsWidgetRef(DateComponent)
467
+ ],
468
+ viewQueries: [{
469
+ propertyName: "bsDatePickerDirective",
470
+ first: true,
471
+ predicate: BsDatepickerDirective,
472
+ descendants: true
473
+ }, {
474
+ propertyName: "imask",
475
+ first: true,
476
+ predicate: ["dateInput"],
477
+ descendants: true,
478
+ read: IMaskDirective
479
+ }],
480
+ usesInheritance: true,
481
+ ngImport: i0,
482
+ template: "<input class=\"form-control app-textbox app-dateinput display-input\"\n focus-target\n type=\"text\"\n [name]=\"name\"\n #dateInput\n [imask]=\"mask\"\n [unmask]=\"true\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [value]=\"displayValue\"\n (click)=\"toggleDpDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event); updateIMask()\"\n (blur)=\"onInputBlur($event)\"\n [disabled]=\"disabled || readonly\"\n [autofocus]=\"autofocus\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"arialabel\"\n (change)=\"onDisplayDateChange($event)\"\n (keydown)=\"_triggeredByUser = true; onDisplayKeydown($event);\">\n\n<span class=\"input-group-btn\">\n <button type=\"button\"\n class=\"btn btn-default btn-time\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [disabled]=\"disabled || readonly\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : 'Choose date by pressing enter'\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"isOpen\"\n (click)=\"toggleDpDropdown($event, false)\">\n <i aria-hidden=\"true\"\n class=\"app-icon wm-sl-l sl-calendar\"></i>\n </button>\n</span>\n<div style=\"width: 0;display: inline-block;\">\n <input class=\"model-holder\"\n aria-label=\"datepicker dropdownmenu\"\n aria-controls=\"date\"\n [tabindex]=\"-1\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [container]=\"containerTarget || '.wm-app'\"\n [bsConfig]=\"_dateOptions\"\n [isOpen]=\"isOpen\"\n #datepicker=\"bsDatepicker\"\n bsDatepicker\n [daysDisabled]=\"excludedDaysToDisable\"\n [datesDisabled]=\"excludedDatesToDisable\"\n placement=\"bottom right\"\n [isDisabled]=\"disabled || readonly\"\n [bsValue]=\"bsDataValue\"\n (onShown)=\"onDatePickerOpen()\"\n (onHidden)=\"hideDatepickerDropdown()\"\n (bsValueChange)=\"onDateChange($event)\">\n</div>\n\n@if (loadNativeDateInput) {\n <wm-datetimepicker\n dateTimePicker\n mode=\"DATE\"\n [config]=\"_dateOptions\"\n [placement]=\"modal\"\n [excludedDaysToDisable]=\"excludedDaysToDisable\"\n [excludedDatesToDisable]=\"excludedDatesToDisable\"\n [displayFormat]=\"dateInputFormat\"\n [value]=\"bsDataValue\"\n (change)=\"onDateChange($event)\">\n </wm-datetimepicker>\n <div class=\"mobile-input mobile-datepicker-container\"\n [tabindex]=\"tabindex || 0\"\n (click)=\"!(disabled || readonly) && showDatePickerModal(bsDataValue)\"\n (keydown.enter)=\"!(disabled || readonly) && showDatePickerModal(bsDataValue)\"\n (keydown.space)=\"$event.preventDefault(); !(disabled || readonly) && showDatePickerModal(bsDataValue)\"\n (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event);\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : arialabel || 'Choose Date'\"\n role=\"button\">\n </div>\n}\n",
483
+ dependencies: [
484
+ {
485
+ kind: "component",
486
+ type: DateTimePickerComponent,
487
+ selector: "wm-datetimepicker",
488
+ inputs: [
489
+ "mode",
490
+ "placement",
491
+ "minTime",
492
+ "maxTime",
493
+ "_displayFormat",
494
+ "excludedDatesToDisable",
495
+ "value",
496
+ "config",
497
+ "excludedDaysToDisable",
498
+ "displayFormat"
499
+ ],
500
+ outputs: ["change"]
501
+ },
502
+ {
503
+ kind: "ngmodule",
504
+ type: IMaskModule
505
+ },
506
+ {
507
+ kind: "directive",
508
+ type: i2.IMaskDirective,
509
+ selector: "[imask]",
510
+ inputs: [
511
+ "imask",
512
+ "unmask",
513
+ "imaskElement"
514
+ ],
515
+ outputs: ["accept", "complete"],
516
+ exportAs: ["imask"]
517
+ },
518
+ {
519
+ kind: "ngmodule",
520
+ type: BsDatepickerModule
521
+ },
522
+ {
523
+ kind: "directive",
524
+ type: i3.BsDatepickerDirective,
525
+ selector: "[bsDatepicker]",
526
+ inputs: [
527
+ "placement",
528
+ "triggers",
529
+ "outsideClick",
530
+ "container",
531
+ "outsideEsc",
532
+ "isDisabled",
533
+ "minDate",
534
+ "maxDate",
535
+ "ignoreMinMaxErrors",
536
+ "minMode",
537
+ "daysDisabled",
538
+ "datesDisabled",
539
+ "datesEnabled",
540
+ "dateCustomClasses",
541
+ "dateTooltipTexts",
542
+ "isOpen",
543
+ "bsValue",
544
+ "bsConfig"
545
+ ],
546
+ outputs: [
547
+ "onShown",
548
+ "onHidden",
549
+ "bsValueChange"
550
+ ],
551
+ exportAs: ["bsDatepicker"]
552
+ },
553
+ {
554
+ kind: "directive",
555
+ type: i3.BsDatepickerInputDirective,
556
+ selector: "input[bsDatepicker]"
557
+ }
558
+ ],
559
+ changeDetection: i0.ChangeDetectionStrategy.Eager
560
+ });
561
+ }
562
+ };
563
+ i0.ɵɵngDeclareClassMetadata({
564
+ minVersion: "12.0.0",
565
+ version: "22.2.1",
566
+ ngImport: i0,
567
+ type: DateComponent,
568
+ decorators: [{
569
+ type: Component,
570
+ args: [{
571
+ changeDetection: ChangeDetectionStrategy.Eager,
572
+ standalone: true,
573
+ imports: [
574
+ DateTimePickerComponent,
575
+ IMaskModule,
576
+ BsDatepickerModule
577
+ ],
578
+ selector: "[wmDate]",
579
+ providers: [
580
+ provideAs(DateComponent, NG_VALUE_ACCESSOR, true),
581
+ provideAs(DateComponent, NG_VALIDATORS, true),
582
+ provideAsWidgetRef(DateComponent)
583
+ ],
584
+ template: "<input class=\"form-control app-textbox app-dateinput display-input\"\n focus-target\n type=\"text\"\n [name]=\"name\"\n #dateInput\n [imask]=\"mask\"\n [unmask]=\"true\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [value]=\"displayValue\"\n (click)=\"toggleDpDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event); updateIMask()\"\n (blur)=\"onInputBlur($event)\"\n [disabled]=\"disabled || readonly\"\n [autofocus]=\"autofocus\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"arialabel\"\n (change)=\"onDisplayDateChange($event)\"\n (keydown)=\"_triggeredByUser = true; onDisplayKeydown($event);\">\n\n<span class=\"input-group-btn\">\n <button type=\"button\"\n class=\"btn btn-default btn-time\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [disabled]=\"disabled || readonly\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : 'Choose date by pressing enter'\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"isOpen\"\n (click)=\"toggleDpDropdown($event, false)\">\n <i aria-hidden=\"true\"\n class=\"app-icon wm-sl-l sl-calendar\"></i>\n </button>\n</span>\n<div style=\"width: 0;display: inline-block;\">\n <input class=\"model-holder\"\n aria-label=\"datepicker dropdownmenu\"\n aria-controls=\"date\"\n [tabindex]=\"-1\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [container]=\"containerTarget || '.wm-app'\"\n [bsConfig]=\"_dateOptions\"\n [isOpen]=\"isOpen\"\n #datepicker=\"bsDatepicker\"\n bsDatepicker\n [daysDisabled]=\"excludedDaysToDisable\"\n [datesDisabled]=\"excludedDatesToDisable\"\n placement=\"bottom right\"\n [isDisabled]=\"disabled || readonly\"\n [bsValue]=\"bsDataValue\"\n (onShown)=\"onDatePickerOpen()\"\n (onHidden)=\"hideDatepickerDropdown()\"\n (bsValueChange)=\"onDateChange($event)\">\n</div>\n\n@if (loadNativeDateInput) {\n <wm-datetimepicker\n dateTimePicker\n mode=\"DATE\"\n [config]=\"_dateOptions\"\n [placement]=\"modal\"\n [excludedDaysToDisable]=\"excludedDaysToDisable\"\n [excludedDatesToDisable]=\"excludedDatesToDisable\"\n [displayFormat]=\"dateInputFormat\"\n [value]=\"bsDataValue\"\n (change)=\"onDateChange($event)\">\n </wm-datetimepicker>\n <div class=\"mobile-input mobile-datepicker-container\"\n [tabindex]=\"tabindex || 0\"\n (click)=\"!(disabled || readonly) && showDatePickerModal(bsDataValue)\"\n (keydown.enter)=\"!(disabled || readonly) && showDatePickerModal(bsDataValue)\"\n (keydown.space)=\"$event.preventDefault(); !(disabled || readonly) && showDatePickerModal(bsDataValue)\"\n (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event);\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : arialabel || 'Choose Date'\"\n role=\"button\">\n </div>\n}\n"
585
+ }]
586
+ }],
587
+ ctorParameters: () => [
588
+ { type: i0.Injector },
589
+ { type: i0.ChangeDetectorRef },
590
+ { type: i1.AppDefaults },
591
+ {
592
+ type: void 0,
593
+ decorators: [{
594
+ type: Inject,
595
+ args: ["EXPLICIT_CONTEXT"]
596
+ }, { type: Optional }]
597
+ }
598
+ ],
599
+ propDecorators: {
600
+ bsDatePickerDirective: [{
601
+ type: ViewChild,
602
+ args: [BsDatepickerDirective]
603
+ }],
604
+ imask: [{
605
+ type: ViewChild,
606
+ args: ["dateInput", { read: IMaskDirective }]
607
+ }]
608
+ }
609
+ });
510
610
  export { DateComponent };
511
- //# sourceMappingURL=index.mjs.map
611
+
612
+ //# sourceMappingURL=index.mjs.map