@ng-nest/ui 12.0.6 → 12.0.11

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 (787) hide show
  1. package/auto-complete/auto-complete-portal.component.d.ts +3 -3
  2. package/auto-complete/auto-complete.component.d.ts +5 -1
  3. package/auto-complete/auto-complete.property.d.ts +6 -1
  4. package/back-top/back-top.component.d.ts +1 -2
  5. package/base-form/base-form.component.d.ts +1 -1
  6. package/base-form/base-form.property.d.ts +22 -2
  7. package/bundles/ng-nest-ui-affix.umd.js +25 -21
  8. package/bundles/ng-nest-ui-affix.umd.js.map +1 -1
  9. package/bundles/ng-nest-ui-alert.umd.js +25 -21
  10. package/bundles/ng-nest-ui-alert.umd.js.map +1 -1
  11. package/bundles/ng-nest-ui-anchor.umd.js +26 -22
  12. package/bundles/ng-nest-ui-anchor.umd.js.map +1 -1
  13. package/bundles/ng-nest-ui-api.umd.js +12 -14
  14. package/bundles/ng-nest-ui-api.umd.js.map +1 -1
  15. package/bundles/ng-nest-ui-auto-complete.umd.js +52 -29
  16. package/bundles/ng-nest-ui-auto-complete.umd.js.map +1 -1
  17. package/bundles/ng-nest-ui-avatar.umd.js +25 -21
  18. package/bundles/ng-nest-ui-avatar.umd.js.map +1 -1
  19. package/bundles/ng-nest-ui-back-top.umd.js +27 -23
  20. package/bundles/ng-nest-ui-back-top.umd.js.map +1 -1
  21. package/bundles/ng-nest-ui-badge.umd.js +27 -22
  22. package/bundles/ng-nest-ui-badge.umd.js.map +1 -1
  23. package/bundles/ng-nest-ui-base-form.umd.js +50 -22
  24. package/bundles/ng-nest-ui-base-form.umd.js.map +1 -1
  25. package/bundles/ng-nest-ui-border.umd.js +12 -14
  26. package/bundles/ng-nest-ui-border.umd.js.map +1 -1
  27. package/bundles/ng-nest-ui-button.umd.js +36 -29
  28. package/bundles/ng-nest-ui-button.umd.js.map +1 -1
  29. package/bundles/ng-nest-ui-calendar.umd.js +29 -24
  30. package/bundles/ng-nest-ui-calendar.umd.js.map +1 -1
  31. package/bundles/ng-nest-ui-card.umd.js +25 -21
  32. package/bundles/ng-nest-ui-card.umd.js.map +1 -1
  33. package/bundles/ng-nest-ui-carousel.umd.js +44 -39
  34. package/bundles/ng-nest-ui-carousel.umd.js.map +1 -1
  35. package/bundles/ng-nest-ui-cascade.umd.js +94 -36
  36. package/bundles/ng-nest-ui-cascade.umd.js.map +1 -1
  37. package/bundles/ng-nest-ui-checkbox.umd.js +28 -23
  38. package/bundles/ng-nest-ui-checkbox.umd.js.map +1 -1
  39. package/bundles/ng-nest-ui-collapse.umd.js +31 -27
  40. package/bundles/ng-nest-ui-collapse.umd.js.map +1 -1
  41. package/bundles/ng-nest-ui-color-picker.umd.js +79 -44
  42. package/bundles/ng-nest-ui-color-picker.umd.js.map +1 -1
  43. package/bundles/ng-nest-ui-color.umd.js +26 -22
  44. package/bundles/ng-nest-ui-color.umd.js.map +1 -1
  45. package/bundles/ng-nest-ui-comment.umd.js +34 -29
  46. package/bundles/ng-nest-ui-comment.umd.js.map +1 -1
  47. package/bundles/ng-nest-ui-container.umd.js +46 -42
  48. package/bundles/ng-nest-ui-container.umd.js.map +1 -1
  49. package/bundles/ng-nest-ui-core.umd.js +136 -35
  50. package/bundles/ng-nest-ui-core.umd.js.map +1 -1
  51. package/bundles/ng-nest-ui-crumb.umd.js +28 -23
  52. package/bundles/ng-nest-ui-crumb.umd.js.map +1 -1
  53. package/bundles/ng-nest-ui-date-picker.umd.js +387 -246
  54. package/bundles/ng-nest-ui-date-picker.umd.js.map +1 -1
  55. package/bundles/ng-nest-ui-description.umd.js +35 -32
  56. package/bundles/ng-nest-ui-description.umd.js.map +1 -1
  57. package/bundles/ng-nest-ui-dialog.umd.js +27 -22
  58. package/bundles/ng-nest-ui-dialog.umd.js.map +1 -1
  59. package/bundles/ng-nest-ui-doc.umd.js +12 -14
  60. package/bundles/ng-nest-ui-doc.umd.js.map +1 -1
  61. package/bundles/ng-nest-ui-drawer.umd.js +27 -22
  62. package/bundles/ng-nest-ui-drawer.umd.js.map +1 -1
  63. package/bundles/ng-nest-ui-dropdown.umd.js +32 -27
  64. package/bundles/ng-nest-ui-dropdown.umd.js.map +1 -1
  65. package/bundles/ng-nest-ui-empty.umd.js +25 -21
  66. package/bundles/ng-nest-ui-empty.umd.js.map +1 -1
  67. package/bundles/ng-nest-ui-examples.umd.js +12 -14
  68. package/bundles/ng-nest-ui-examples.umd.js.map +1 -1
  69. package/bundles/ng-nest-ui-find.umd.js +45 -27
  70. package/bundles/ng-nest-ui-find.umd.js.map +1 -1
  71. package/bundles/ng-nest-ui-form.umd.js +36 -36
  72. package/bundles/ng-nest-ui-form.umd.js.map +1 -1
  73. package/bundles/ng-nest-ui-highlight.umd.js +27 -22
  74. package/bundles/ng-nest-ui-highlight.umd.js.map +1 -1
  75. package/bundles/ng-nest-ui-i18n.umd.js +537 -138
  76. package/bundles/ng-nest-ui-i18n.umd.js.map +1 -1
  77. package/bundles/ng-nest-ui-icon.umd.js +34 -29
  78. package/bundles/ng-nest-ui-icon.umd.js.map +1 -1
  79. package/bundles/ng-nest-ui-inner.umd.js +26 -22
  80. package/bundles/ng-nest-ui-inner.umd.js.map +1 -1
  81. package/bundles/ng-nest-ui-input-number.umd.js +44 -24
  82. package/bundles/ng-nest-ui-input-number.umd.js.map +1 -1
  83. package/bundles/ng-nest-ui-input.umd.js +65 -32
  84. package/bundles/ng-nest-ui-input.umd.js.map +1 -1
  85. package/bundles/ng-nest-ui-layout.umd.js +31 -27
  86. package/bundles/ng-nest-ui-layout.umd.js.map +1 -1
  87. package/bundles/ng-nest-ui-link.umd.js +25 -21
  88. package/bundles/ng-nest-ui-link.umd.js.map +1 -1
  89. package/bundles/ng-nest-ui-list.umd.js +35 -30
  90. package/bundles/ng-nest-ui-list.umd.js.map +1 -1
  91. package/bundles/ng-nest-ui-loading.umd.js +27 -22
  92. package/bundles/ng-nest-ui-loading.umd.js.map +1 -1
  93. package/bundles/ng-nest-ui-menu.umd.js +37 -33
  94. package/bundles/ng-nest-ui-menu.umd.js.map +1 -1
  95. package/bundles/ng-nest-ui-message-box.umd.js +53 -47
  96. package/bundles/ng-nest-ui-message-box.umd.js.map +1 -1
  97. package/bundles/ng-nest-ui-message.umd.js +26 -22
  98. package/bundles/ng-nest-ui-message.umd.js.map +1 -1
  99. package/bundles/ng-nest-ui-notification.umd.js +26 -22
  100. package/bundles/ng-nest-ui-notification.umd.js.map +1 -1
  101. package/bundles/ng-nest-ui-outlet.umd.js +22 -18
  102. package/bundles/ng-nest-ui-outlet.umd.js.map +1 -1
  103. package/bundles/ng-nest-ui-page-header.umd.js +25 -21
  104. package/bundles/ng-nest-ui-page-header.umd.js.map +1 -1
  105. package/bundles/ng-nest-ui-pagination.umd.js +115 -26
  106. package/bundles/ng-nest-ui-pagination.umd.js.map +1 -1
  107. package/bundles/ng-nest-ui-pattern.umd.js +12 -14
  108. package/bundles/ng-nest-ui-pattern.umd.js.map +1 -1
  109. package/bundles/ng-nest-ui-popconfirm.umd.js +25 -21
  110. package/bundles/ng-nest-ui-popconfirm.umd.js.map +1 -1
  111. package/bundles/ng-nest-ui-popover.umd.js +31 -26
  112. package/bundles/ng-nest-ui-popover.umd.js.map +1 -1
  113. package/bundles/ng-nest-ui-portal.umd.js +22 -18
  114. package/bundles/ng-nest-ui-portal.umd.js.map +1 -1
  115. package/bundles/ng-nest-ui-progress.umd.js +28 -23
  116. package/bundles/ng-nest-ui-progress.umd.js.map +1 -1
  117. package/bundles/ng-nest-ui-radio.umd.js +28 -23
  118. package/bundles/ng-nest-ui-radio.umd.js.map +1 -1
  119. package/bundles/ng-nest-ui-rate.umd.js +30 -26
  120. package/bundles/ng-nest-ui-rate.umd.js.map +1 -1
  121. package/bundles/ng-nest-ui-result.umd.js +25 -21
  122. package/bundles/ng-nest-ui-result.umd.js.map +1 -1
  123. package/bundles/ng-nest-ui-ripple.umd.js +25 -21
  124. package/bundles/ng-nest-ui-ripple.umd.js.map +1 -1
  125. package/bundles/ng-nest-ui-select.umd.js +53 -34
  126. package/bundles/ng-nest-ui-select.umd.js.map +1 -1
  127. package/bundles/ng-nest-ui-skeleton.umd.js +27 -22
  128. package/bundles/ng-nest-ui-skeleton.umd.js.map +1 -1
  129. package/bundles/ng-nest-ui-slider-select.umd.js +25 -21
  130. package/bundles/ng-nest-ui-slider-select.umd.js.map +1 -1
  131. package/bundles/ng-nest-ui-slider.umd.js +32 -29
  132. package/bundles/ng-nest-ui-slider.umd.js.map +1 -1
  133. package/bundles/ng-nest-ui-statistic.umd.js +37 -31
  134. package/bundles/ng-nest-ui-statistic.umd.js.map +1 -1
  135. package/bundles/ng-nest-ui-steps.umd.js +35 -27
  136. package/bundles/ng-nest-ui-steps.umd.js.map +1 -1
  137. package/bundles/ng-nest-ui-switch.umd.js +25 -21
  138. package/bundles/ng-nest-ui-switch.umd.js.map +1 -1
  139. package/bundles/ng-nest-ui-table.umd.js +58 -51
  140. package/bundles/ng-nest-ui-table.umd.js.map +1 -1
  141. package/bundles/ng-nest-ui-tabs.umd.js +39 -34
  142. package/bundles/ng-nest-ui-tabs.umd.js.map +1 -1
  143. package/bundles/ng-nest-ui-tag.umd.js +36 -21
  144. package/bundles/ng-nest-ui-tag.umd.js.map +1 -1
  145. package/bundles/ng-nest-ui-text-retract.umd.js +27 -22
  146. package/bundles/ng-nest-ui-text-retract.umd.js.map +1 -1
  147. package/bundles/ng-nest-ui-textarea.umd.js +27 -32
  148. package/bundles/ng-nest-ui-textarea.umd.js.map +1 -1
  149. package/bundles/ng-nest-ui-theme.umd.js +26 -22
  150. package/bundles/ng-nest-ui-theme.umd.js.map +1 -1
  151. package/bundles/ng-nest-ui-time-ago.umd.js +12 -14
  152. package/bundles/ng-nest-ui-time-ago.umd.js.map +1 -1
  153. package/bundles/ng-nest-ui-time-picker.umd.js +87 -46
  154. package/bundles/ng-nest-ui-time-picker.umd.js.map +1 -1
  155. package/bundles/ng-nest-ui-time-range.umd.js +22 -18
  156. package/bundles/ng-nest-ui-time-range.umd.js.map +1 -1
  157. package/bundles/ng-nest-ui-timeline.umd.js +28 -23
  158. package/bundles/ng-nest-ui-timeline.umd.js.map +1 -1
  159. package/bundles/ng-nest-ui-tooltip.umd.js +31 -26
  160. package/bundles/ng-nest-ui-tooltip.umd.js.map +1 -1
  161. package/bundles/ng-nest-ui-transfer.umd.js +28 -23
  162. package/bundles/ng-nest-ui-transfer.umd.js.map +1 -1
  163. package/bundles/ng-nest-ui-tree-file.umd.js +25 -21
  164. package/bundles/ng-nest-ui-tree-file.umd.js.map +1 -1
  165. package/bundles/ng-nest-ui-tree.umd.js +39 -34
  166. package/bundles/ng-nest-ui-tree.umd.js.map +1 -1
  167. package/bundles/ng-nest-ui-typography.umd.js +25 -21
  168. package/bundles/ng-nest-ui-typography.umd.js.map +1 -1
  169. package/bundles/ng-nest-ui-upload.umd.js +32 -27
  170. package/bundles/ng-nest-ui-upload.umd.js.map +1 -1
  171. package/bundles/ng-nest-ui.umd.js +83 -243
  172. package/bundles/ng-nest-ui.umd.js.map +1 -1
  173. package/button/buttons.component.d.ts +1 -1
  174. package/calendar/calendar.component.d.ts +2 -2
  175. package/carousel/carousel-panel.component.d.ts +2 -3
  176. package/carousel/carousel.component.d.ts +1 -1
  177. package/cascade/cascade-portal.component.d.ts +13 -7
  178. package/cascade/cascade.component.d.ts +7 -1
  179. package/cascade/cascade.property.d.ts +33 -3
  180. package/checkbox/checkbox.component.d.ts +1 -1
  181. package/color/color.component.d.ts +2 -2
  182. package/color-picker/color-picker-portal.component.d.ts +3 -3
  183. package/color-picker/color-picker.component.d.ts +10 -4
  184. package/color-picker/color-picker.property.d.ts +12 -2
  185. package/comment/comment.component.d.ts +1 -1
  186. package/core/config/config.d.ts +25 -0
  187. package/core/functions/clone-deep.d.ts +1 -0
  188. package/core/functions/drop.d.ts +1 -0
  189. package/core/functions/flex.d.ts +1 -1
  190. package/core/functions/has-in.d.ts +1 -0
  191. package/core/functions/order-by.d.ts +1 -0
  192. package/core/functions/public-api.d.ts +5 -0
  193. package/core/functions/remove.d.ts +1 -0
  194. package/core/services/reuse-strategy.service.d.ts +1 -1
  195. package/crumb/crumb.component.d.ts +1 -1
  196. package/date-picker/date-picker-portal.component.d.ts +4 -11
  197. package/date-picker/date-picker.component.d.ts +3 -4
  198. package/date-picker/date-picker.property.d.ts +55 -30
  199. package/date-picker/date-range-portal.component.d.ts +10 -6
  200. package/date-picker/date-range.component.d.ts +15 -11
  201. package/date-picker/picker-date.component.d.ts +13 -4
  202. package/date-picker/picker-month.component.d.ts +6 -3
  203. package/date-picker/picker-year.component.d.ts +4 -2
  204. package/description/description.component.d.ts +2 -4
  205. package/dropdown/dropdown-portal.component.d.ts +1 -3
  206. package/dropdown/dropdown.component.d.ts +2 -2
  207. package/esm2015/affix/affix.component.js +3 -3
  208. package/esm2015/affix/affix.module.js +4 -4
  209. package/esm2015/affix/affix.property.js +3 -3
  210. package/esm2015/alert/alert.component.js +4 -4
  211. package/esm2015/alert/alert.module.js +4 -4
  212. package/esm2015/alert/alert.property.js +3 -3
  213. package/esm2015/anchor/anchor.component.js +5 -5
  214. package/esm2015/anchor/anchor.module.js +4 -4
  215. package/esm2015/anchor/anchor.property.js +4 -4
  216. package/esm2015/api/api.component.js +3 -3
  217. package/esm2015/api/api.module.js +4 -4
  218. package/esm2015/auto-complete/auto-complete-portal.component.js +6 -6
  219. package/esm2015/auto-complete/auto-complete.component.js +20 -7
  220. package/esm2015/auto-complete/auto-complete.module.js +4 -4
  221. package/esm2015/auto-complete/auto-complete.property.js +10 -4
  222. package/esm2015/avatar/avatar.component.js +3 -3
  223. package/esm2015/avatar/avatar.module.js +4 -4
  224. package/esm2015/avatar/avatar.property.js +3 -3
  225. package/esm2015/back-top/back-top.component.js +6 -6
  226. package/esm2015/back-top/back-top.module.js +4 -4
  227. package/esm2015/back-top/back-top.property.js +3 -3
  228. package/esm2015/badge/badge.component.js +6 -5
  229. package/esm2015/badge/badge.module.js +4 -4
  230. package/esm2015/badge/badge.property.js +3 -3
  231. package/esm2015/base-form/base-form.component.js +5 -5
  232. package/esm2015/base-form/base-form.module.js +4 -4
  233. package/esm2015/base-form/base-form.property.js +29 -5
  234. package/esm2015/border/border.component.js +3 -3
  235. package/esm2015/border/border.module.js +4 -4
  236. package/esm2015/button/button.component.js +10 -7
  237. package/esm2015/button/button.module.js +4 -4
  238. package/esm2015/button/button.property.js +6 -6
  239. package/esm2015/button/buttons.component.js +4 -4
  240. package/esm2015/calendar/calendar.component.js +8 -7
  241. package/esm2015/calendar/calendar.module.js +4 -4
  242. package/esm2015/calendar/calendar.property.js +3 -3
  243. package/esm2015/card/card.component.js +3 -3
  244. package/esm2015/card/card.module.js +4 -4
  245. package/esm2015/card/card.property.js +3 -3
  246. package/esm2015/carousel/carousel-panel.component.js +15 -14
  247. package/esm2015/carousel/carousel.component.js +7 -6
  248. package/esm2015/carousel/carousel.module.js +4 -4
  249. package/esm2015/carousel/carousel.property.js +6 -6
  250. package/esm2015/cascade/cascade-portal.component.js +23 -11
  251. package/esm2015/cascade/cascade.component.js +25 -9
  252. package/esm2015/cascade/cascade.module.js +4 -4
  253. package/esm2015/cascade/cascade.property.js +28 -5
  254. package/esm2015/checkbox/checkbox.component.js +7 -6
  255. package/esm2015/checkbox/checkbox.module.js +4 -4
  256. package/esm2015/checkbox/checkbox.property.js +4 -4
  257. package/esm2015/collapse/collapse-panel.component.js +4 -4
  258. package/esm2015/collapse/collapse.component.js +3 -3
  259. package/esm2015/collapse/collapse.module.js +4 -4
  260. package/esm2015/collapse/collapse.property.js +6 -6
  261. package/esm2015/color/color.component.js +5 -5
  262. package/esm2015/color/color.module.js +4 -4
  263. package/esm2015/color/color.property.js +3 -3
  264. package/esm2015/color-picker/color-picker-portal.component.js +5 -5
  265. package/esm2015/color-picker/color-picker.component.js +33 -14
  266. package/esm2015/color-picker/color-picker.module.js +4 -4
  267. package/esm2015/color-picker/color-picker.property.js +16 -5
  268. package/esm2015/comment/comment-reply.component.js +3 -3
  269. package/esm2015/comment/comment.component.js +7 -6
  270. package/esm2015/comment/comment.module.js +4 -4
  271. package/esm2015/comment/comment.property.js +6 -6
  272. package/esm2015/container/aside.component.js +3 -3
  273. package/esm2015/container/container.component.js +5 -5
  274. package/esm2015/container/container.module.js +4 -4
  275. package/esm2015/container/container.property.js +12 -12
  276. package/esm2015/container/footer.component.js +3 -3
  277. package/esm2015/container/header.component.js +3 -3
  278. package/esm2015/container/main.component.js +3 -3
  279. package/esm2015/core/animation/fade.js +1 -1
  280. package/esm2015/core/config/config.js +1 -1
  281. package/esm2015/core/config/config.service.js +3 -3
  282. package/esm2015/core/functions/clone-deep.js +12 -0
  283. package/esm2015/core/functions/drop.js +8 -0
  284. package/esm2015/core/functions/flex.js +18 -7
  285. package/esm2015/core/functions/has-in.js +4 -0
  286. package/esm2015/core/functions/order-by.js +31 -0
  287. package/esm2015/core/functions/public-api.js +6 -1
  288. package/esm2015/core/functions/remove.js +15 -0
  289. package/esm2015/core/services/http.service.js +5 -5
  290. package/esm2015/core/services/preloading-strategy.service.js +5 -5
  291. package/esm2015/core/services/reuse-strategy.service.js +2 -2
  292. package/esm2015/core/services/storage.service.js +3 -3
  293. package/esm2015/core/theme/theme.service.js +3 -3
  294. package/esm2015/crumb/crumb.component.js +7 -6
  295. package/esm2015/crumb/crumb.module.js +4 -4
  296. package/esm2015/crumb/crumb.property.js +3 -3
  297. package/esm2015/date-picker/date-picker-portal.component.js +11 -43
  298. package/esm2015/date-picker/date-picker.component.js +13 -14
  299. package/esm2015/date-picker/date-picker.module.js +4 -4
  300. package/esm2015/date-picker/date-picker.property.js +102 -38
  301. package/esm2015/date-picker/date-range-portal.component.js +41 -20
  302. package/esm2015/date-picker/date-range.component.js +66 -47
  303. package/esm2015/date-picker/picker-date.component.js +50 -15
  304. package/esm2015/date-picker/picker-month.component.js +25 -9
  305. package/esm2015/date-picker/picker-year.component.js +21 -9
  306. package/esm2015/description/description-item.component.js +4 -4
  307. package/esm2015/description/description.component.js +8 -9
  308. package/esm2015/description/description.module.js +4 -4
  309. package/esm2015/description/description.property.js +6 -6
  310. package/esm2015/dialog/dialog.component.js +6 -5
  311. package/esm2015/dialog/dialog.module.js +4 -4
  312. package/esm2015/dialog/dialog.property.js +4 -4
  313. package/esm2015/doc/doc.component.js +3 -3
  314. package/esm2015/doc/doc.module.js +4 -4
  315. package/esm2015/drawer/drawer.component.js +6 -5
  316. package/esm2015/drawer/drawer.module.js +4 -4
  317. package/esm2015/drawer/drawer.property.js +3 -3
  318. package/esm2015/dropdown/dropdown-portal.component.js +5 -5
  319. package/esm2015/dropdown/dropdown.component.js +7 -6
  320. package/esm2015/dropdown/dropdown.module.js +4 -4
  321. package/esm2015/dropdown/dropdown.property.js +3 -3
  322. package/esm2015/empty/empty.component.js +3 -3
  323. package/esm2015/empty/empty.module.js +4 -4
  324. package/esm2015/empty/empty.property.js +3 -3
  325. package/esm2015/examples/examples.component.js +3 -3
  326. package/esm2015/examples/examples.module.js +4 -4
  327. package/esm2015/find/find.component.js +13 -10
  328. package/esm2015/find/find.module.js +4 -4
  329. package/esm2015/find/find.property.js +16 -5
  330. package/esm2015/form/control.component.js +4 -4
  331. package/esm2015/form/form.component.js +9 -8
  332. package/esm2015/form/form.module.js +4 -4
  333. package/esm2015/form/form.property.js +8 -13
  334. package/esm2015/highlight/highlight.component.js +6 -5
  335. package/esm2015/highlight/highlight.module.js +4 -4
  336. package/esm2015/highlight/highlight.property.js +4 -4
  337. package/esm2015/i18n/i18n.directive.js +6 -5
  338. package/esm2015/i18n/i18n.module.js +4 -4
  339. package/esm2015/i18n/i18n.pipe.js +3 -3
  340. package/esm2015/i18n/i18n.service.js +3 -3
  341. package/esm2015/i18n/languages/ar_EG.js +11 -3
  342. package/esm2015/i18n/languages/bg_BG.js +11 -3
  343. package/esm2015/i18n/languages/ca_ES.js +11 -3
  344. package/esm2015/i18n/languages/cs_CZ.js +11 -3
  345. package/esm2015/i18n/languages/da_DK.js +11 -3
  346. package/esm2015/i18n/languages/de_DE.js +11 -3
  347. package/esm2015/i18n/languages/el_GR.js +11 -3
  348. package/esm2015/i18n/languages/en_GB.js +11 -3
  349. package/esm2015/i18n/languages/en_US.js +7 -2
  350. package/esm2015/i18n/languages/es_ES.js +11 -3
  351. package/esm2015/i18n/languages/et_EE.js +11 -3
  352. package/esm2015/i18n/languages/fa_IR.js +11 -3
  353. package/esm2015/i18n/languages/fi_FI.js +11 -3
  354. package/esm2015/i18n/languages/fr_BE.js +10 -2
  355. package/esm2015/i18n/languages/fr_FR.js +11 -3
  356. package/esm2015/i18n/languages/he_IL.js +11 -3
  357. package/esm2015/i18n/languages/hi_IN.js +11 -3
  358. package/esm2015/i18n/languages/hr_HR.js +11 -3
  359. package/esm2015/i18n/languages/hu_HU.js +11 -3
  360. package/esm2015/i18n/languages/hy_AM.js +11 -3
  361. package/esm2015/i18n/languages/id_ID.js +11 -3
  362. package/esm2015/i18n/languages/is_IS.js +11 -3
  363. package/esm2015/i18n/languages/it_IT.js +11 -3
  364. package/esm2015/i18n/languages/ja_JP.js +11 -3
  365. package/esm2015/i18n/languages/ka_GE.js +11 -3
  366. package/esm2015/i18n/languages/kn_IN.js +11 -3
  367. package/esm2015/i18n/languages/ko_KR.js +11 -3
  368. package/esm2015/i18n/languages/ku_IQ.js +11 -3
  369. package/esm2015/i18n/languages/lv_LV.js +11 -3
  370. package/esm2015/i18n/languages/mn_MN.js +11 -3
  371. package/esm2015/i18n/languages/ms_MY.js +11 -3
  372. package/esm2015/i18n/languages/nb_NO.js +11 -3
  373. package/esm2015/i18n/languages/ne_NP.js +11 -3
  374. package/esm2015/i18n/languages/nl_BE.js +11 -3
  375. package/esm2015/i18n/languages/nl_NL.js +11 -3
  376. package/esm2015/i18n/languages/pl_PL.js +11 -3
  377. package/esm2015/i18n/languages/pt_BR.js +11 -3
  378. package/esm2015/i18n/languages/pt_PT.js +11 -3
  379. package/esm2015/i18n/languages/ro_RO.js +11 -3
  380. package/esm2015/i18n/languages/ru_RU.js +11 -3
  381. package/esm2015/i18n/languages/sk_SK.js +11 -3
  382. package/esm2015/i18n/languages/sl_SI.js +11 -3
  383. package/esm2015/i18n/languages/sr_RS.js +11 -3
  384. package/esm2015/i18n/languages/sv_SE.js +11 -3
  385. package/esm2015/i18n/languages/ta_IN.js +11 -3
  386. package/esm2015/i18n/languages/th_TH.js +29 -21
  387. package/esm2015/i18n/languages/tr_TR.js +11 -3
  388. package/esm2015/i18n/languages/uk_UA.js +11 -3
  389. package/esm2015/i18n/languages/vi_VN.js +11 -3
  390. package/esm2015/i18n/languages/zh_CN.js +6 -2
  391. package/esm2015/i18n/languages/zh_TW.js +10 -3
  392. package/esm2015/icon/icon.component.js +7 -6
  393. package/esm2015/icon/icon.module.js +4 -4
  394. package/esm2015/icon/icon.property.js +3 -3
  395. package/esm2015/icon/icon.service.js +6 -6
  396. package/esm2015/inner/inner.component.js +5 -5
  397. package/esm2015/inner/inner.module.js +4 -4
  398. package/esm2015/inner/inner.property.js +3 -3
  399. package/esm2015/input/input-group.component.js +4 -6
  400. package/esm2015/input/input.component.js +20 -7
  401. package/esm2015/input/input.module.js +4 -4
  402. package/esm2015/input/input.property.js +14 -7
  403. package/esm2015/input-number/input-number.component.js +9 -5
  404. package/esm2015/input-number/input-number.module.js +7 -6
  405. package/esm2015/input-number/input-number.property.js +17 -5
  406. package/esm2015/layout/col.component.js +3 -3
  407. package/esm2015/layout/layout.module.js +4 -4
  408. package/esm2015/layout/layout.property.js +6 -6
  409. package/esm2015/layout/row.component.js +3 -3
  410. package/esm2015/link/link.component.js +3 -3
  411. package/esm2015/link/link.module.js +4 -4
  412. package/esm2015/link/link.property.js +3 -3
  413. package/esm2015/list/list-option.component.js +3 -3
  414. package/esm2015/list/list.component.js +8 -7
  415. package/esm2015/list/list.module.js +4 -4
  416. package/esm2015/list/list.property.js +7 -7
  417. package/esm2015/loading/loading.component.js +6 -5
  418. package/esm2015/loading/loading.module.js +4 -4
  419. package/esm2015/loading/loading.property.js +3 -3
  420. package/esm2015/menu/menu-node.component.js +4 -4
  421. package/esm2015/menu/menu.component.js +10 -10
  422. package/esm2015/menu/menu.module.js +4 -4
  423. package/esm2015/menu/menu.property.js +6 -6
  424. package/esm2015/message/message.component.js +5 -5
  425. package/esm2015/message/message.module.js +4 -4
  426. package/esm2015/message/message.service.js +3 -3
  427. package/esm2015/message-box/message-box.component.js +20 -24
  428. package/esm2015/message-box/message-box.module.js +4 -4
  429. package/esm2015/message-box/message-box.service.js +10 -8
  430. package/esm2015/notification/notification.component.js +5 -5
  431. package/esm2015/notification/notification.module.js +4 -4
  432. package/esm2015/notification/notification.property.js +1 -1
  433. package/esm2015/notification/notification.service.js +3 -3
  434. package/esm2015/outlet/outlet.directive.js +3 -3
  435. package/esm2015/outlet/outlet.module.js +4 -4
  436. package/esm2015/page-header/page-header.component.js +3 -3
  437. package/esm2015/page-header/page-header.module.js +4 -4
  438. package/esm2015/page-header/page-header.property.js +3 -3
  439. package/esm2015/pagination/pagination.component.js +45 -7
  440. package/esm2015/pagination/pagination.module.js +10 -6
  441. package/esm2015/pagination/pagination.property.js +52 -4
  442. package/esm2015/pattern/pattern.component.js +3 -3
  443. package/esm2015/pattern/pattern.module.js +4 -4
  444. package/esm2015/popconfirm/popconfirm.component.js +3 -3
  445. package/esm2015/popconfirm/popconfirm.module.js +4 -4
  446. package/esm2015/popconfirm/popconfirm.property.js +3 -3
  447. package/esm2015/popover/popover-portal.component.js +4 -4
  448. package/esm2015/popover/popover.directive.js +7 -6
  449. package/esm2015/popover/popover.module.js +4 -4
  450. package/esm2015/popover/popover.property.js +3 -3
  451. package/esm2015/portal/portal.module.js +4 -4
  452. package/esm2015/portal/portal.service.js +3 -3
  453. package/esm2015/progress/progress.component.js +7 -6
  454. package/esm2015/progress/progress.module.js +4 -4
  455. package/esm2015/progress/progress.property.js +3 -3
  456. package/esm2015/radio/radio.component.js +7 -6
  457. package/esm2015/radio/radio.module.js +4 -4
  458. package/esm2015/radio/radio.property.js +4 -4
  459. package/esm2015/rate/rate.component.js +9 -9
  460. package/esm2015/rate/rate.module.js +4 -4
  461. package/esm2015/rate/rate.property.js +3 -3
  462. package/esm2015/result/result.component.js +3 -3
  463. package/esm2015/result/result.module.js +4 -4
  464. package/esm2015/result/result.property.js +3 -3
  465. package/esm2015/ripple/ripple.directive.js +4 -4
  466. package/esm2015/ripple/ripple.module.js +4 -4
  467. package/esm2015/ripple/ripple.property.js +4 -4
  468. package/esm2015/select/select-portal.component.js +6 -6
  469. package/esm2015/select/select.component.js +15 -11
  470. package/esm2015/select/select.module.js +4 -4
  471. package/esm2015/select/select.property.js +15 -4
  472. package/esm2015/skeleton/skeleton.component.js +6 -5
  473. package/esm2015/skeleton/skeleton.module.js +4 -4
  474. package/esm2015/skeleton/skeleton.property.js +3 -3
  475. package/esm2015/slider/slider.component.js +11 -12
  476. package/esm2015/slider/slider.module.js +4 -4
  477. package/esm2015/slider/slider.property.js +3 -3
  478. package/esm2015/slider-select/slider-select.component.js +3 -3
  479. package/esm2015/slider-select/slider-select.module.js +4 -4
  480. package/esm2015/slider-select/slider-select.property.js +3 -3
  481. package/esm2015/statistic/countdown.component.js +8 -7
  482. package/esm2015/statistic/statistic.component.js +6 -5
  483. package/esm2015/statistic/statistic.module.js +4 -4
  484. package/esm2015/statistic/statistic.property.js +6 -6
  485. package/esm2015/steps/steps.component.js +9 -7
  486. package/esm2015/steps/steps.module.js +7 -6
  487. package/esm2015/steps/steps.property.js +6 -4
  488. package/esm2015/switch/switch.component.js +3 -3
  489. package/esm2015/switch/switch.module.js +4 -4
  490. package/esm2015/switch/switch.property.js +3 -3
  491. package/esm2015/table/drag.directive.js +5 -5
  492. package/esm2015/table/table-body.component.js +7 -6
  493. package/esm2015/table/table-foot.component.js +4 -4
  494. package/esm2015/table/table-head.component.js +7 -6
  495. package/esm2015/table/table.component.js +9 -8
  496. package/esm2015/table/table.module.js +4 -4
  497. package/esm2015/table/table.property.js +13 -13
  498. package/esm2015/tabs/tab-content.component.js +3 -3
  499. package/esm2015/tabs/tab.component.js +4 -4
  500. package/esm2015/tabs/tabs.component.js +9 -8
  501. package/esm2015/tabs/tabs.module.js +4 -4
  502. package/esm2015/tabs/tabs.property.js +6 -6
  503. package/esm2015/tag/tag.component.js +10 -5
  504. package/esm2015/tag/tag.module.js +4 -4
  505. package/esm2015/tag/tag.property.js +10 -4
  506. package/esm2015/text-retract/text-retract.component.js +6 -5
  507. package/esm2015/text-retract/text-retract.module.js +4 -4
  508. package/esm2015/text-retract/text-retract.property.js +3 -3
  509. package/esm2015/textarea/textarea.component.js +6 -5
  510. package/esm2015/textarea/textarea.module.js +4 -4
  511. package/esm2015/textarea/textarea.property.js +4 -14
  512. package/esm2015/theme/theme.component.js +5 -5
  513. package/esm2015/theme/theme.module.js +4 -4
  514. package/esm2015/theme/theme.property.js +4 -4
  515. package/esm2015/time-ago/time-ago.module.js +4 -4
  516. package/esm2015/time-ago/time-ago.pipe.js +3 -3
  517. package/esm2015/time-picker/time-picker-frame.component.js +22 -12
  518. package/esm2015/time-picker/time-picker-portal.component.js +5 -5
  519. package/esm2015/time-picker/time-picker.component.js +31 -15
  520. package/esm2015/time-picker/time-picker.module.js +4 -4
  521. package/esm2015/time-picker/time-picker.property.js +16 -5
  522. package/esm2015/time-range/time-range.module.js +4 -4
  523. package/esm2015/time-range/time-range.pipe.js +3 -3
  524. package/esm2015/timeline/timeline.component.js +7 -6
  525. package/esm2015/timeline/timeline.module.js +4 -4
  526. package/esm2015/timeline/timeline.property.js +3 -3
  527. package/esm2015/tooltip/tooltip-portal.component.js +4 -4
  528. package/esm2015/tooltip/tooltip.directive.js +7 -6
  529. package/esm2015/tooltip/tooltip.module.js +4 -4
  530. package/esm2015/tooltip/tooltip.property.js +4 -4
  531. package/esm2015/transfer/transfer.component.js +7 -6
  532. package/esm2015/transfer/transfer.module.js +4 -4
  533. package/esm2015/transfer/transfer.property.js +3 -3
  534. package/esm2015/tree/tree-node.component.js +5 -5
  535. package/esm2015/tree/tree.component.js +11 -10
  536. package/esm2015/tree/tree.module.js +4 -4
  537. package/esm2015/tree/tree.property.js +7 -7
  538. package/esm2015/tree-file/tree-file.component.js +3 -3
  539. package/esm2015/tree-file/tree-file.module.js +4 -4
  540. package/esm2015/tree-file/tree-file.property.js +3 -3
  541. package/esm2015/typography/typography.component.js +3 -3
  542. package/esm2015/typography/typography.module.js +4 -4
  543. package/esm2015/typography/typography.property.js +3 -3
  544. package/esm2015/upload/upload-portal.component.js +5 -5
  545. package/esm2015/upload/upload.component.js +7 -6
  546. package/esm2015/upload/upload.module.js +4 -4
  547. package/esm2015/upload/upload.property.js +3 -3
  548. package/fesm2015/ng-nest-ui-affix.js +10 -10
  549. package/fesm2015/ng-nest-ui-alert.js +10 -10
  550. package/fesm2015/ng-nest-ui-alert.js.map +1 -1
  551. package/fesm2015/ng-nest-ui-anchor.js +11 -11
  552. package/fesm2015/ng-nest-ui-anchor.js.map +1 -1
  553. package/fesm2015/ng-nest-ui-api.js +7 -7
  554. package/fesm2015/ng-nest-ui-auto-complete.js +37 -18
  555. package/fesm2015/ng-nest-ui-auto-complete.js.map +1 -1
  556. package/fesm2015/ng-nest-ui-avatar.js +10 -10
  557. package/fesm2015/ng-nest-ui-back-top.js +12 -12
  558. package/fesm2015/ng-nest-ui-back-top.js.map +1 -1
  559. package/fesm2015/ng-nest-ui-badge.js +12 -11
  560. package/fesm2015/ng-nest-ui-badge.js.map +1 -1
  561. package/fesm2015/ng-nest-ui-base-form.js +36 -12
  562. package/fesm2015/ng-nest-ui-base-form.js.map +1 -1
  563. package/fesm2015/ng-nest-ui-border.js +7 -7
  564. package/fesm2015/ng-nest-ui-button.js +22 -19
  565. package/fesm2015/ng-nest-ui-button.js.map +1 -1
  566. package/fesm2015/ng-nest-ui-calendar.js +14 -13
  567. package/fesm2015/ng-nest-ui-calendar.js.map +1 -1
  568. package/fesm2015/ng-nest-ui-card.js +10 -10
  569. package/fesm2015/ng-nest-ui-carousel.js +28 -27
  570. package/fesm2015/ng-nest-ui-carousel.js.map +1 -1
  571. package/fesm2015/ng-nest-ui-cascade.js +80 -28
  572. package/fesm2015/ng-nest-ui-cascade.js.map +1 -1
  573. package/fesm2015/ng-nest-ui-checkbox.js +13 -12
  574. package/fesm2015/ng-nest-ui-checkbox.js.map +1 -1
  575. package/fesm2015/ng-nest-ui-collapse.js +16 -16
  576. package/fesm2015/ng-nest-ui-collapse.js.map +1 -1
  577. package/fesm2015/ng-nest-ui-color-picker.js +55 -24
  578. package/fesm2015/ng-nest-ui-color-picker.js.map +1 -1
  579. package/fesm2015/ng-nest-ui-color.js +11 -11
  580. package/fesm2015/ng-nest-ui-color.js.map +1 -1
  581. package/fesm2015/ng-nest-ui-comment.js +19 -18
  582. package/fesm2015/ng-nest-ui-comment.js.map +1 -1
  583. package/fesm2015/ng-nest-ui-container.js +32 -32
  584. package/fesm2015/ng-nest-ui-container.js.map +1 -1
  585. package/fesm2015/ng-nest-ui-core.js +106 -25
  586. package/fesm2015/ng-nest-ui-core.js.map +1 -1
  587. package/fesm2015/ng-nest-ui-crumb.js +13 -12
  588. package/fesm2015/ng-nest-ui-crumb.js.map +1 -1
  589. package/fesm2015/ng-nest-ui-date-picker.js +325 -190
  590. package/fesm2015/ng-nest-ui-date-picker.js.map +1 -1
  591. package/fesm2015/ng-nest-ui-description.js +21 -22
  592. package/fesm2015/ng-nest-ui-description.js.map +1 -1
  593. package/fesm2015/ng-nest-ui-dialog.js +12 -11
  594. package/fesm2015/ng-nest-ui-dialog.js.map +1 -1
  595. package/fesm2015/ng-nest-ui-doc.js +7 -7
  596. package/fesm2015/ng-nest-ui-drawer.js +12 -11
  597. package/fesm2015/ng-nest-ui-drawer.js.map +1 -1
  598. package/fesm2015/ng-nest-ui-dropdown.js +17 -16
  599. package/fesm2015/ng-nest-ui-dropdown.js.map +1 -1
  600. package/fesm2015/ng-nest-ui-empty.js +10 -10
  601. package/fesm2015/ng-nest-ui-examples.js +7 -7
  602. package/fesm2015/ng-nest-ui-find.js +31 -17
  603. package/fesm2015/ng-nest-ui-find.js.map +1 -1
  604. package/fesm2015/ng-nest-ui-form.js +22 -26
  605. package/fesm2015/ng-nest-ui-form.js.map +1 -1
  606. package/fesm2015/ng-nest-ui-highlight.js +12 -11
  607. package/fesm2015/ng-nest-ui-highlight.js.map +1 -1
  608. package/fesm2015/ng-nest-ui-i18n.js +532 -131
  609. package/fesm2015/ng-nest-ui-i18n.js.map +1 -1
  610. package/fesm2015/ng-nest-ui-icon.js +18 -18
  611. package/fesm2015/ng-nest-ui-icon.js.map +1 -1
  612. package/fesm2015/ng-nest-ui-inner.js +11 -11
  613. package/fesm2015/ng-nest-ui-inner.js.map +1 -1
  614. package/fesm2015/ng-nest-ui-input-number.js +31 -14
  615. package/fesm2015/ng-nest-ui-input-number.js.map +1 -1
  616. package/fesm2015/ng-nest-ui-input.js +39 -21
  617. package/fesm2015/ng-nest-ui-input.js.map +1 -1
  618. package/fesm2015/ng-nest-ui-layout.js +16 -16
  619. package/fesm2015/ng-nest-ui-link.js +10 -10
  620. package/fesm2015/ng-nest-ui-list.js +20 -19
  621. package/fesm2015/ng-nest-ui-list.js.map +1 -1
  622. package/fesm2015/ng-nest-ui-loading.js +12 -11
  623. package/fesm2015/ng-nest-ui-loading.js.map +1 -1
  624. package/fesm2015/ng-nest-ui-menu.js +22 -22
  625. package/fesm2015/ng-nest-ui-menu.js.map +1 -1
  626. package/fesm2015/ng-nest-ui-message-box.js +32 -34
  627. package/fesm2015/ng-nest-ui-message-box.js.map +1 -1
  628. package/fesm2015/ng-nest-ui-message.js +11 -11
  629. package/fesm2015/ng-nest-ui-message.js.map +1 -1
  630. package/fesm2015/ng-nest-ui-notification.js +11 -11
  631. package/fesm2015/ng-nest-ui-notification.js.map +1 -1
  632. package/fesm2015/ng-nest-ui-outlet.js +7 -7
  633. package/fesm2015/ng-nest-ui-page-header.js +10 -10
  634. package/fesm2015/ng-nest-ui-pagination.js +104 -14
  635. package/fesm2015/ng-nest-ui-pagination.js.map +1 -1
  636. package/fesm2015/ng-nest-ui-pattern.js +7 -7
  637. package/fesm2015/ng-nest-ui-popconfirm.js +10 -10
  638. package/fesm2015/ng-nest-ui-popover.js +16 -15
  639. package/fesm2015/ng-nest-ui-popover.js.map +1 -1
  640. package/fesm2015/ng-nest-ui-portal.js +7 -7
  641. package/fesm2015/ng-nest-ui-progress.js +13 -12
  642. package/fesm2015/ng-nest-ui-progress.js.map +1 -1
  643. package/fesm2015/ng-nest-ui-radio.js +13 -12
  644. package/fesm2015/ng-nest-ui-radio.js.map +1 -1
  645. package/fesm2015/ng-nest-ui-rate.js +15 -15
  646. package/fesm2015/ng-nest-ui-rate.js.map +1 -1
  647. package/fesm2015/ng-nest-ui-result.js +10 -10
  648. package/fesm2015/ng-nest-ui-ripple.js +10 -10
  649. package/fesm2015/ng-nest-ui-ripple.js.map +1 -1
  650. package/fesm2015/ng-nest-ui-select.js +37 -22
  651. package/fesm2015/ng-nest-ui-select.js.map +1 -1
  652. package/fesm2015/ng-nest-ui-skeleton.js +12 -11
  653. package/fesm2015/ng-nest-ui-skeleton.js.map +1 -1
  654. package/fesm2015/ng-nest-ui-slider-select.js +10 -10
  655. package/fesm2015/ng-nest-ui-slider.js +17 -18
  656. package/fesm2015/ng-nest-ui-slider.js.map +1 -1
  657. package/fesm2015/ng-nest-ui-statistic.js +22 -20
  658. package/fesm2015/ng-nest-ui-statistic.js.map +1 -1
  659. package/fesm2015/ng-nest-ui-steps.js +19 -14
  660. package/fesm2015/ng-nest-ui-steps.js.map +1 -1
  661. package/fesm2015/ng-nest-ui-switch.js +10 -10
  662. package/fesm2015/ng-nest-ui-table.js +43 -40
  663. package/fesm2015/ng-nest-ui-table.js.map +1 -1
  664. package/fesm2015/ng-nest-ui-tabs.js +24 -23
  665. package/fesm2015/ng-nest-ui-tabs.js.map +1 -1
  666. package/fesm2015/ng-nest-ui-tag.js +22 -11
  667. package/fesm2015/ng-nest-ui-tag.js.map +1 -1
  668. package/fesm2015/ng-nest-ui-text-retract.js +12 -11
  669. package/fesm2015/ng-nest-ui-text-retract.js.map +1 -1
  670. package/fesm2015/ng-nest-ui-textarea.js +12 -21
  671. package/fesm2015/ng-nest-ui-textarea.js.map +1 -1
  672. package/fesm2015/ng-nest-ui-theme.js +11 -11
  673. package/fesm2015/ng-nest-ui-theme.js.map +1 -1
  674. package/fesm2015/ng-nest-ui-time-ago.js +7 -7
  675. package/fesm2015/ng-nest-ui-time-picker.js +73 -36
  676. package/fesm2015/ng-nest-ui-time-picker.js.map +1 -1
  677. package/fesm2015/ng-nest-ui-time-range.js +7 -7
  678. package/fesm2015/ng-nest-ui-timeline.js +13 -12
  679. package/fesm2015/ng-nest-ui-timeline.js.map +1 -1
  680. package/fesm2015/ng-nest-ui-tooltip.js +16 -15
  681. package/fesm2015/ng-nest-ui-tooltip.js.map +1 -1
  682. package/fesm2015/ng-nest-ui-transfer.js +13 -12
  683. package/fesm2015/ng-nest-ui-transfer.js.map +1 -1
  684. package/fesm2015/ng-nest-ui-tree-file.js +10 -10
  685. package/fesm2015/ng-nest-ui-tree.js +24 -23
  686. package/fesm2015/ng-nest-ui-tree.js.map +1 -1
  687. package/fesm2015/ng-nest-ui-typography.js +10 -10
  688. package/fesm2015/ng-nest-ui-upload.js +17 -16
  689. package/fesm2015/ng-nest-ui-upload.js.map +1 -1
  690. package/find/find.component.d.ts +1 -1
  691. package/find/find.property.d.ts +22 -2
  692. package/form/control.component.d.ts +1 -1
  693. package/form/form.component.d.ts +1 -1
  694. package/form/form.property.d.ts +6 -6
  695. package/i18n/languages/ar_EG.d.ts +8 -0
  696. package/i18n/languages/bg_BG.d.ts +8 -0
  697. package/i18n/languages/ca_ES.d.ts +8 -0
  698. package/i18n/languages/cs_CZ.d.ts +8 -0
  699. package/i18n/languages/da_DK.d.ts +8 -0
  700. package/i18n/languages/de_DE.d.ts +8 -0
  701. package/i18n/languages/el_GR.d.ts +8 -0
  702. package/i18n/languages/en_GB.d.ts +8 -0
  703. package/i18n/languages/en_US.d.ts +5 -0
  704. package/i18n/languages/es_ES.d.ts +8 -0
  705. package/i18n/languages/et_EE.d.ts +8 -0
  706. package/i18n/languages/fa_IR.d.ts +8 -0
  707. package/i18n/languages/fi_FI.d.ts +8 -0
  708. package/i18n/languages/fr_BE.d.ts +8 -0
  709. package/i18n/languages/fr_FR.d.ts +8 -0
  710. package/i18n/languages/he_IL.d.ts +8 -0
  711. package/i18n/languages/hi_IN.d.ts +8 -0
  712. package/i18n/languages/hr_HR.d.ts +8 -0
  713. package/i18n/languages/hu_HU.d.ts +8 -0
  714. package/i18n/languages/hy_AM.d.ts +8 -0
  715. package/i18n/languages/id_ID.d.ts +8 -0
  716. package/i18n/languages/is_IS.d.ts +8 -0
  717. package/i18n/languages/it_IT.d.ts +8 -0
  718. package/i18n/languages/ja_JP.d.ts +8 -0
  719. package/i18n/languages/ka_GE.d.ts +8 -0
  720. package/i18n/languages/kn_IN.d.ts +8 -0
  721. package/i18n/languages/ko_KR.d.ts +8 -0
  722. package/i18n/languages/ku_IQ.d.ts +8 -0
  723. package/i18n/languages/lv_LV.d.ts +8 -0
  724. package/i18n/languages/mn_MN.d.ts +8 -0
  725. package/i18n/languages/ms_MY.d.ts +8 -0
  726. package/i18n/languages/nb_NO.d.ts +8 -0
  727. package/i18n/languages/ne_NP.d.ts +8 -0
  728. package/i18n/languages/nl_BE.d.ts +8 -0
  729. package/i18n/languages/nl_NL.d.ts +8 -0
  730. package/i18n/languages/pl_PL.d.ts +8 -0
  731. package/i18n/languages/pt_BR.d.ts +8 -0
  732. package/i18n/languages/pt_PT.d.ts +8 -0
  733. package/i18n/languages/ro_RO.d.ts +8 -0
  734. package/i18n/languages/ru_RU.d.ts +8 -0
  735. package/i18n/languages/sk_SK.d.ts +8 -0
  736. package/i18n/languages/sl_SI.d.ts +8 -0
  737. package/i18n/languages/sr_RS.d.ts +8 -0
  738. package/i18n/languages/sv_SE.d.ts +8 -0
  739. package/i18n/languages/ta_IN.d.ts +8 -0
  740. package/i18n/languages/th_TH.d.ts +8 -0
  741. package/i18n/languages/tr_TR.d.ts +8 -0
  742. package/i18n/languages/uk_UA.d.ts +8 -0
  743. package/i18n/languages/vi_VN.d.ts +8 -0
  744. package/i18n/languages/zh_CN.d.ts +4 -0
  745. package/i18n/languages/zh_TW.d.ts +7 -0
  746. package/inner/inner.component.d.ts +1 -1
  747. package/input/input-group.component.d.ts +2 -4
  748. package/input/input.component.d.ts +3 -1
  749. package/input/input.property.d.ts +13 -1
  750. package/input-number/input-number.component.d.ts +3 -0
  751. package/input-number/input-number.module.d.ts +4 -3
  752. package/input-number/input-number.property.d.ts +12 -2
  753. package/list/list.component.d.ts +2 -2
  754. package/menu/menu.component.d.ts +1 -1
  755. package/message/message.component.d.ts +1 -1
  756. package/message-box/message-box.component.d.ts +2 -1
  757. package/notification/notification.component.d.ts +1 -1
  758. package/package.json +1 -1
  759. package/pagination/pagination.component.d.ts +5 -1
  760. package/pagination/pagination.module.d.ts +7 -3
  761. package/pagination/pagination.property.d.ts +49 -3
  762. package/radio/radio.component.d.ts +1 -1
  763. package/rate/rate.component.d.ts +5 -5
  764. package/select/select-portal.component.d.ts +3 -3
  765. package/select/select.component.d.ts +1 -1
  766. package/select/select.property.d.ts +12 -2
  767. package/slider/slider.component.d.ts +1 -1
  768. package/steps/steps.component.d.ts +1 -1
  769. package/steps/steps.module.d.ts +2 -1
  770. package/steps/steps.property.d.ts +7 -2
  771. package/table/table-body.component.d.ts +1 -1
  772. package/table/table-head.component.d.ts +1 -1
  773. package/table/table.component.d.ts +1 -1
  774. package/table/table.property.d.ts +10 -0
  775. package/tag/tag.component.d.ts +2 -1
  776. package/tag/tag.property.d.ts +6 -1
  777. package/textarea/textarea.property.d.ts +1 -6
  778. package/theme/theme.component.d.ts +1 -1
  779. package/time-picker/time-picker-frame.component.d.ts +4 -0
  780. package/time-picker/time-picker-portal.component.d.ts +3 -3
  781. package/time-picker/time-picker.component.d.ts +5 -3
  782. package/time-picker/time-picker.property.d.ts +12 -2
  783. package/timeline/timeline.component.d.ts +1 -1
  784. package/transfer/transfer.component.d.ts +1 -1
  785. package/tree/tree-node.component.d.ts +1 -1
  786. package/tree/tree.component.d.ts +1 -1
  787. package/upload/upload.component.d.ts +3 -3
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ng-nest/ui/core'), require('@ng-nest/ui/base-form'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@ng-nest/ui/i18n'), require('@ng-nest/ui/button'), require('@ng-nest/ui/time-picker'), require('@ng-nest/ui/portal'), require('@angular/cdk/overlay'), require('@ng-nest/ui/input'), require('@angular/forms'), require('@ng-nest/ui/icon')) :
3
3
  typeof define === 'function' && define.amd ? define('@ng-nest/ui/date-picker', ['exports', '@angular/core', '@ng-nest/ui/core', '@ng-nest/ui/base-form', 'rxjs', 'rxjs/operators', '@angular/common', '@ng-nest/ui/i18n', '@ng-nest/ui/button', '@ng-nest/ui/time-picker', '@ng-nest/ui/portal', '@angular/cdk/overlay', '@ng-nest/ui/input', '@angular/forms', '@ng-nest/ui/icon'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['ng-nest'] = global['ng-nest'] || {}, global['ng-nest'].ui = global['ng-nest'].ui || {}, global['ng-nest'].ui['date-picker'] = {}), global.ng.core, global['ng-nest'].ui.core, global['ng-nest'].ui['base-form'], global.rxjs, global.rxjs.operators, global.ng.common, global['ng-nest'].ui.i18n, global['ng-nest'].ui.button, global['ng-nest'].ui['time-picker'], global['ng-nest'].ui.portal, global.ng.cdk.overlay, global['ng-nest'].ui.input, global.ng.forms, global['ng-nest'].ui.icon));
5
- }(this, (function (exports, i0, i1, baseForm, rxjs, operators, i1$1, i2, i4, i7, i2$1, i4$1, i5, i6, i6$1) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["ng-nest"] = global["ng-nest"] || {}, global["ng-nest"].ui = global["ng-nest"].ui || {}, global["ng-nest"].ui["date-picker"] = {}), global.ng.core, global["ng-nest"].ui.core, global["ng-nest"].ui["base-form"], global.rxjs, global.rxjs.operators, global.ng.common, global["ng-nest"].ui.i18n, global["ng-nest"].ui.button, global["ng-nest"].ui["time-picker"], global["ng-nest"].ui.portal, global.ng.cdk.overlay, global["ng-nest"].ui.input, global.ng.forms, global["ng-nest"].ui.icon));
5
+ })(this, (function (exports, i0, i2, baseForm, rxjs, operators, i1, i3, i4, i7, i2$1, i4$1, i5, i6, i6$1) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -13,21 +13,19 @@
13
13
  var d = Object.getOwnPropertyDescriptor(e, k);
14
14
  Object.defineProperty(n, k, d.get ? d : {
15
15
  enumerable: true,
16
- get: function () {
17
- return e[k];
18
- }
16
+ get: function () { return e[k]; }
19
17
  });
20
18
  }
21
19
  });
22
20
  }
23
- n['default'] = e;
21
+ n["default"] = e;
24
22
  return Object.freeze(n);
25
23
  }
26
24
 
27
25
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
30
26
  var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
27
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
28
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
31
29
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
32
30
  var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
33
31
  var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
@@ -262,10 +260,16 @@
262
260
  r[k] = a[j];
263
261
  return r;
264
262
  }
265
- function __spreadArray(to, from) {
266
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
267
- to[j] = from[i];
268
- return to;
263
+ function __spreadArray(to, from, pack) {
264
+ if (pack || arguments.length === 2)
265
+ for (var i = 0, l = from.length, ar; i < l; i++) {
266
+ if (ar || !(i in from)) {
267
+ if (!ar)
268
+ ar = Array.prototype.slice.call(from, 0, i);
269
+ ar[i] = from[i];
270
+ }
271
+ }
272
+ return to.concat(ar || Array.prototype.slice.call(from));
269
273
  }
270
274
  function __await(v) {
271
275
  return this instanceof __await ? (this.v = v, this) : new __await(v);
@@ -381,32 +385,29 @@
381
385
  }
382
386
  return XDatePickerProperty;
383
387
  }(baseForm.XControlValueAccessor));
384
- /** @nocollapse */ XDatePickerProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XDatePickerProperty, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
385
- /** @nocollapse */ XDatePickerProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.3", type: XDatePickerProperty, selector: "ng-component", inputs: { type: "type", format: "format", clearable: "clearable", placement: "placement", readonly: "readonly", valueTpl: "valueTpl", valueTplContext: "valueTplContext", size: "size", bordered: "bordered", before: "before", after: "after", preset: "preset" }, outputs: { nodeEmit: "nodeEmit" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
388
+ /** @nocollapse */ XDatePickerProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerProperty, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
389
+ /** @nocollapse */ XDatePickerProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XDatePickerProperty, selector: "ng-component", inputs: { type: "type", format: "format", clearable: "clearable", placement: "placement", size: "size", bordered: "bordered", preset: "preset" }, outputs: { nodeEmit: "nodeEmit" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
386
390
  __decorate([
387
- i1.XWithConfig(X_CONFIG_NAME, 'yyyy-MM-dd')
391
+ i2.XWithConfig(X_CONFIG_NAME, 'yyyy-MM-dd')
388
392
  ], XDatePickerProperty.prototype, "format", void 0);
389
393
  __decorate([
390
- i1.XWithConfig(X_CONFIG_NAME, true),
391
- i1.XInputBoolean()
394
+ i2.XWithConfig(X_CONFIG_NAME, true),
395
+ i2.XInputBoolean()
392
396
  ], XDatePickerProperty.prototype, "clearable", void 0);
393
397
  __decorate([
394
- i1.XWithConfig(X_CONFIG_NAME, 'bottom-start')
398
+ i2.XWithConfig(X_CONFIG_NAME, 'bottom-start')
395
399
  ], XDatePickerProperty.prototype, "placement", void 0);
396
400
  __decorate([
397
- i1.XInputBoolean()
398
- ], XDatePickerProperty.prototype, "readonly", void 0);
399
- __decorate([
400
- i1.XWithConfig(X_CONFIG_NAME, 'medium')
401
+ i2.XWithConfig(X_CONFIG_NAME, 'medium')
401
402
  ], XDatePickerProperty.prototype, "size", void 0);
402
403
  __decorate([
403
- i1.XInputBoolean(),
404
- i1.XWithConfig(X_CONFIG_NAME, true)
404
+ i2.XInputBoolean(),
405
+ i2.XWithConfig(X_CONFIG_NAME, true)
405
406
  ], XDatePickerProperty.prototype, "bordered", void 0);
406
407
  __decorate([
407
- i1.XDataConvert()
408
+ i2.XDataConvert()
408
409
  ], XDatePickerProperty.prototype, "preset", void 0);
409
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XDatePickerProperty, decorators: [{
410
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerProperty, decorators: [{
410
411
  type: i0.Component,
411
412
  args: [{ template: '' }]
412
413
  }], propDecorators: { type: [{
@@ -417,20 +418,10 @@
417
418
  type: i0.Input
418
419
  }], placement: [{
419
420
  type: i0.Input
420
- }], readonly: [{
421
- type: i0.Input
422
- }], valueTpl: [{
423
- type: i0.Input
424
- }], valueTplContext: [{
425
- type: i0.Input
426
421
  }], size: [{
427
422
  type: i0.Input
428
423
  }], bordered: [{
429
424
  type: i0.Input
430
- }], before: [{
431
- type: i0.Input
432
- }], after: [{
433
- type: i0.Input
434
425
  }], preset: [{
435
426
  type: i0.Input
436
427
  }], nodeEmit: [{
@@ -442,7 +433,7 @@
442
433
  * @decorator component
443
434
  */
444
435
  var XDateRangePrefix = 'x-date-range';
445
- var X_CONFIG_Range_NAME = 'dateRange';
436
+ var X_CONFIG_RANGE_NAME = 'dateRange';
446
437
  /**
447
438
  * DateRange Property
448
439
  */
@@ -469,29 +460,29 @@
469
460
  }
470
461
  return XDateRangeProperty;
471
462
  }(baseForm.XControlValueAccessor));
472
- /** @nocollapse */ XDateRangeProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XDateRangeProperty, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
473
- /** @nocollapse */ XDateRangeProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.3", type: XDateRangeProperty, selector: "ng-component", inputs: { type: "type", format: "format", clearable: "clearable", placement: "placement", size: "size", bordered: "bordered", preset: "preset" }, outputs: { nodeEmit: "nodeEmit" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
463
+ /** @nocollapse */ XDateRangeProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDateRangeProperty, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
464
+ /** @nocollapse */ XDateRangeProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XDateRangeProperty, selector: "ng-component", inputs: { type: "type", format: "format", clearable: "clearable", placement: "placement", size: "size", bordered: "bordered", preset: "preset" }, outputs: { nodeEmit: "nodeEmit" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
474
465
  __decorate([
475
- i1.XWithConfig(X_CONFIG_NAME, 'yyyy-MM-dd')
466
+ i2.XWithConfig(X_CONFIG_RANGE_NAME, 'yyyy-MM-dd')
476
467
  ], XDateRangeProperty.prototype, "format", void 0);
477
468
  __decorate([
478
- i1.XWithConfig(X_CONFIG_NAME, true),
479
- i1.XInputBoolean()
469
+ i2.XWithConfig(X_CONFIG_RANGE_NAME, true),
470
+ i2.XInputBoolean()
480
471
  ], XDateRangeProperty.prototype, "clearable", void 0);
481
472
  __decorate([
482
- i1.XWithConfig(X_CONFIG_NAME, 'bottom-start')
473
+ i2.XWithConfig(X_CONFIG_RANGE_NAME, 'bottom-start')
483
474
  ], XDateRangeProperty.prototype, "placement", void 0);
484
475
  __decorate([
485
- i1.XWithConfig(X_CONFIG_NAME, 'medium')
476
+ i2.XWithConfig(X_CONFIG_RANGE_NAME, 'medium')
486
477
  ], XDateRangeProperty.prototype, "size", void 0);
487
478
  __decorate([
488
- i1.XInputBoolean(),
489
- i1.XWithConfig(X_CONFIG_NAME, true)
479
+ i2.XInputBoolean(),
480
+ i2.XWithConfig(X_CONFIG_RANGE_NAME, true)
490
481
  ], XDateRangeProperty.prototype, "bordered", void 0);
491
482
  __decorate([
492
- i1.XDataConvert()
483
+ i2.XDataConvert()
493
484
  ], XDateRangeProperty.prototype, "preset", void 0);
494
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XDateRangeProperty, decorators: [{
485
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDateRangeProperty, decorators: [{
495
486
  type: i0.Component,
496
487
  args: [{ template: '' }]
497
488
  }], propDecorators: { type: [{
@@ -536,11 +527,26 @@
536
527
  __extends(XPickerDateProperty, _super);
537
528
  function XPickerDateProperty() {
538
529
  var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
530
+ /**
531
+ * @zh_CN 选择类型
532
+ * @en_US Select type
533
+ */
534
+ _this.type = 'date';
539
535
  /**
540
536
  * @zh_CN 显示的日期
541
537
  * @en_US Date displayed
542
538
  */
543
539
  _this.display = new Date();
540
+ /**
541
+ * @zh_CN 显示切换按钮
542
+ * @en_US Display switch button
543
+ */
544
+ _this.showHeader = true;
545
+ /**
546
+ * @zh_CN 选择类型
547
+ * @en_US Select type
548
+ */
549
+ _this.typeChange = new i0.EventEmitter();
544
550
  /**
545
551
  * @zh_CN 选中的事件
546
552
  * @en_US Selected event
@@ -554,18 +560,32 @@
554
560
  return _this;
555
561
  }
556
562
  return XPickerDateProperty;
557
- }(i1.XProperty));
558
- /** @nocollapse */ XPickerDateProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XPickerDateProperty, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
559
- /** @nocollapse */ XPickerDateProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.3", type: XPickerDateProperty, selector: "ng-component", inputs: { display: "display", model: "model", dateTemp: "dateTemp" }, outputs: { modelChange: "modelChange", rangeChange: "rangeChange" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
560
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XPickerDateProperty, decorators: [{
563
+ }(i2.XProperty));
564
+ /** @nocollapse */ XPickerDateProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerDateProperty, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
565
+ /** @nocollapse */ XPickerDateProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XPickerDateProperty, selector: "ng-component", inputs: { type: "type", display: "display", model: "model", dateTemp: "dateTemp", showHeader: "showHeader", rangePicker: "rangePicker" }, outputs: { typeChange: "typeChange", modelChange: "modelChange", rangeChange: "rangeChange" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
566
+ __decorate([
567
+ i2.XInputBoolean()
568
+ ], XPickerDateProperty.prototype, "showHeader", void 0);
569
+ __decorate([
570
+ i2.XInputBoolean()
571
+ ], XPickerDateProperty.prototype, "rangePicker", void 0);
572
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerDateProperty, decorators: [{
561
573
  type: i0.Component,
562
574
  args: [{ template: '' }]
563
- }], propDecorators: { display: [{
575
+ }], propDecorators: { type: [{
576
+ type: i0.Input
577
+ }], display: [{
564
578
  type: i0.Input
565
579
  }], model: [{
566
580
  type: i0.Input
567
581
  }], dateTemp: [{
568
582
  type: i0.Input
583
+ }], showHeader: [{
584
+ type: i0.Input
585
+ }], rangePicker: [{
586
+ type: i0.Input
587
+ }], typeChange: [{
588
+ type: i0.Output
569
589
  }], modelChange: [{
570
590
  type: i0.Output
571
591
  }], rangeChange: [{
@@ -584,16 +604,31 @@
584
604
  __extends(XPickerMonthProperty, _super);
585
605
  function XPickerMonthProperty() {
586
606
  var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
607
+ /**
608
+ * @zh_CN 选择类型
609
+ * @en_US Select type
610
+ */
611
+ _this.type = 'date';
587
612
  /**
588
613
  * @zh_CN 显示的日期
589
614
  * @en_US Date displayed
590
615
  */
591
616
  _this.display = new Date();
617
+ /**
618
+ * @zh_CN 显示切换按钮
619
+ * @en_US Display switch button
620
+ */
621
+ _this.showHeader = true;
592
622
  /**
593
623
  * @zh_CN 选中的事件
594
624
  * @en_US Selected event
595
625
  */
596
626
  _this.modelChange = new i0.EventEmitter();
627
+ /**
628
+ * @zh_CN 选择类型
629
+ * @en_US Select type
630
+ */
631
+ _this.typeChange = new i0.EventEmitter();
597
632
  /**
598
633
  * @zh_CN 范围变化的事件
599
634
  * @en_US Scope change event
@@ -602,20 +637,29 @@
602
637
  return _this;
603
638
  }
604
639
  return XPickerMonthProperty;
605
- }(i1.XProperty));
606
- /** @nocollapse */ XPickerMonthProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XPickerMonthProperty, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
607
- /** @nocollapse */ XPickerMonthProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.3", type: XPickerMonthProperty, selector: "ng-component", inputs: { display: "display", model: "model", monthTemp: "monthTemp" }, outputs: { modelChange: "modelChange", rangeChange: "rangeChange" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
608
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XPickerMonthProperty, decorators: [{
640
+ }(i2.XProperty));
641
+ /** @nocollapse */ XPickerMonthProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerMonthProperty, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
642
+ /** @nocollapse */ XPickerMonthProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XPickerMonthProperty, selector: "ng-component", inputs: { type: "type", display: "display", model: "model", monthTemp: "monthTemp", showHeader: "showHeader" }, outputs: { modelChange: "modelChange", typeChange: "typeChange", rangeChange: "rangeChange" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
643
+ __decorate([
644
+ i2.XInputBoolean()
645
+ ], XPickerMonthProperty.prototype, "showHeader", void 0);
646
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerMonthProperty, decorators: [{
609
647
  type: i0.Component,
610
648
  args: [{ template: '' }]
611
- }], propDecorators: { display: [{
649
+ }], propDecorators: { type: [{
650
+ type: i0.Input
651
+ }], display: [{
612
652
  type: i0.Input
613
653
  }], model: [{
614
654
  type: i0.Input
615
655
  }], monthTemp: [{
616
656
  type: i0.Input
657
+ }], showHeader: [{
658
+ type: i0.Input
617
659
  }], modelChange: [{
618
660
  type: i0.Output
661
+ }], typeChange: [{
662
+ type: i0.Output
619
663
  }], rangeChange: [{
620
664
  type: i0.Output
621
665
  }] } });
@@ -632,16 +676,31 @@
632
676
  __extends(XPickerYearProperty, _super);
633
677
  function XPickerYearProperty() {
634
678
  var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
679
+ /**
680
+ * @zh_CN 选择类型
681
+ * @en_US Select type
682
+ */
683
+ _this.type = 'date';
635
684
  /**
636
685
  * @zh_CN 显示的日期
637
686
  * @en_US Date displayed
638
687
  */
639
688
  _this.display = new Date();
689
+ /**
690
+ * @zh_CN 显示切换按钮
691
+ * @en_US Display switch button
692
+ */
693
+ _this.showHeader = true;
640
694
  /**
641
695
  * @zh_CN 选中的事件
642
696
  * @en_US Selected event
643
697
  */
644
698
  _this.modelChange = new i0.EventEmitter();
699
+ /**
700
+ * @zh_CN 选择类型
701
+ * @en_US Select type
702
+ */
703
+ _this.typeChange = new i0.EventEmitter();
645
704
  /**
646
705
  * @zh_CN 开始年份变化的事件
647
706
  * @en_US Start year change event
@@ -650,27 +709,38 @@
650
709
  return _this;
651
710
  }
652
711
  return XPickerYearProperty;
653
- }(i1.XProperty));
654
- /** @nocollapse */ XPickerYearProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XPickerYearProperty, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
655
- /** @nocollapse */ XPickerYearProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.3", type: XPickerYearProperty, selector: "ng-component", inputs: { display: "display", model: "model" }, outputs: { modelChange: "modelChange", startChange: "startChange" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
656
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XPickerYearProperty, decorators: [{
712
+ }(i2.XProperty));
713
+ /** @nocollapse */ XPickerYearProperty.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerYearProperty, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
714
+ /** @nocollapse */ XPickerYearProperty.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XPickerYearProperty, selector: "ng-component", inputs: { type: "type", display: "display", model: "model", showHeader: "showHeader" }, outputs: { modelChange: "modelChange", typeChange: "typeChange", startChange: "startChange" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
715
+ __decorate([
716
+ i2.XInputBoolean()
717
+ ], XPickerYearProperty.prototype, "showHeader", void 0);
718
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerYearProperty, decorators: [{
657
719
  type: i0.Component,
658
720
  args: [{ template: '' }]
659
- }], propDecorators: { display: [{
721
+ }], propDecorators: { type: [{
722
+ type: i0.Input
723
+ }], display: [{
660
724
  type: i0.Input
661
725
  }], model: [{
662
726
  type: i0.Input
727
+ }], showHeader: [{
728
+ type: i0.Input
663
729
  }], modelChange: [{
664
730
  type: i0.Output
731
+ }], typeChange: [{
732
+ type: i0.Output
665
733
  }], startChange: [{
666
734
  type: i0.Output
667
735
  }] } });
668
736
 
669
737
  var XPickerDateComponent = /** @class */ (function (_super) {
670
738
  __extends(XPickerDateComponent, _super);
671
- function XPickerDateComponent(renderer, cdr, configService, i18n) {
739
+ function XPickerDateComponent(renderer, datePipe, lowerCasePipe, cdr, configService, i18n) {
672
740
  var _this = _super.call(this) || this;
673
741
  _this.renderer = renderer;
742
+ _this.datePipe = datePipe;
743
+ _this.lowerCasePipe = lowerCasePipe;
674
744
  _this.cdr = cdr;
675
745
  _this.configService = configService;
676
746
  _this.i18n = i18n;
@@ -685,15 +755,22 @@
685
755
  ];
686
756
  _this.now = new Date();
687
757
  _this.dates = [];
758
+ _this.locale = {};
688
759
  _this._unSubject = new rxjs.Subject();
689
760
  return _this;
690
761
  }
691
762
  XPickerDateComponent.prototype.ngOnInit = function () {
692
763
  var _this = this;
693
- this.i18n.localeChange.pipe(operators.takeUntil(this._unSubject)).subscribe(function () { return _this.cdr.markForCheck(); });
764
+ this.i18n.localeChange
765
+ .pipe(operators.map(function (x) { return x.datePicker; }), operators.takeUntil(this._unSubject))
766
+ .subscribe(function (x) {
767
+ _this.locale = x;
768
+ _this.cdr.markForCheck();
769
+ });
694
770
  };
695
771
  XPickerDateComponent.prototype.ngOnChanges = function (simples) {
696
- i1.XIsChange(simples.display) && this.init();
772
+ var display = simples.display;
773
+ i2.XIsChange(display) && this.init();
697
774
  };
698
775
  XPickerDateComponent.prototype.ngOnDestory = function () {
699
776
  this._unSubject.next();
@@ -732,7 +809,7 @@
732
809
  dates = __spreadArray(__spreadArray([], __read(dates)), [date_2]);
733
810
  day = date_2.getDay();
734
811
  }
735
- this.dates = i1.chunk(dates, 7);
812
+ this.dates = i2.chunk(dates, 7);
736
813
  if (this.dates.length > 0) {
737
814
  this.rangeChange.emit([dates[0], dates[dates.length - 1]]);
738
815
  }
@@ -743,23 +820,48 @@
743
820
  this.modelChange.emit(date);
744
821
  this.cdr.markForCheck();
745
822
  };
746
- XPickerDateComponent.prototype.trackByNode = function (index, item) {
823
+ XPickerDateComponent.prototype.getLocaleMonth = function (date) {
824
+ return this.locale[this.lowerCasePipe.transform(this.datePipe.transform(date, 'LLLL'))];
825
+ };
826
+ XPickerDateComponent.prototype.setDisplay = function (date) {
827
+ this.display = new Date(date.getFullYear(), date.getMonth(), 1);
828
+ this.setDays(this.display);
829
+ };
830
+ XPickerDateComponent.prototype.nextMonth = function (num) {
831
+ var date = new Date(this.display);
832
+ date.setMonth(date.getMonth() + num);
833
+ this.setDisplay(date);
834
+ this.cdr.detectChanges();
835
+ };
836
+ XPickerDateComponent.prototype.nextYear = function (num) {
837
+ var date = new Date(this.display);
838
+ date.setFullYear(date.getFullYear() + num);
839
+ this.setDisplay(date);
840
+ this.cdr.detectChanges();
841
+ };
842
+ XPickerDateComponent.prototype.typeOnChange = function (type) {
843
+ this.type = type;
844
+ this.typeChange.emit(type);
845
+ this.cdr.detectChanges();
846
+ };
847
+ XPickerDateComponent.prototype.trackByNode = function (_index, item) {
747
848
  return item;
748
849
  };
749
850
  return XPickerDateComponent;
750
851
  }(XPickerDateProperty));
751
- /** @nocollapse */ XPickerDateComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XPickerDateComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace.XConfigService }, { token: i2__namespace.XI18nService }], target: i0__namespace.ɵɵFactoryTarget.Component });
752
- /** @nocollapse */ XPickerDateComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.3", type: XPickerDateComponent, selector: "x-picker-date", usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"x-picker-date\" [class.x-date-picker-datetemp]=\"dateTemp\">\r\n <table class=\"x-picker-date-table\" cellspacing=\"0\" cellpadding=\"0\">\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let title of titles; trackBy: trackByNode\">{{ title | xI18n }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let weeks of dates\">\r\n <ng-container *ngFor=\"let week of weeks; trackBy: trackByNode\">\r\n <td\r\n [class.x-date-last-or-next]=\"(week | date: 'yyyyMM') !== (display | date: 'yyyyMM')\"\r\n [class.x-date-now]=\"(week | date: 'yyyyMMdd') === (now | date: 'yyyyMMdd')\"\r\n (click)=\"dateTemp && dateClick(week)\"\r\n >\r\n <x-button\r\n *ngIf=\"!dateTemp\"\r\n type=\"text\"\r\n size=\"mini\"\r\n title=\"{{ week | date: 'yyyy-MM-dd' }}\"\r\n [activated]=\"(week | date: 'yyyyMMdd') === (model | date: 'yyyyMMdd')\"\r\n (click)=\"dateClick(week)\"\r\n >{{ week | date: 'd' }}</x-button\r\n >\r\n <ng-container *ngIf=\"dateTemp\">\r\n <ng-container *ngTemplateOutlet=\"dateTemp; context: { date$: week }\"></ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </tr>\r\n </tbody>\r\n </table>\r\n</div>\r\n", styles: [".x-picker-date{margin:0;padding:0}.x-picker-date-table{width:100%;border-collapse:collapse;border-spacing:0}.x-picker-date-table th{font-weight:400;height:2rem}.x-picker-date-table td{height:2rem;padding:.125rem 0;text-align:center}.x-picker-date-table td x-button .x-button{width:1.625rem;height:1.5rem;margin:0 auto;border:.0625rem solid #0000}.x-picker-date-table td x-button .x-button:hover{background-color:var(--x-primary-900)}.x-picker-date-table td x-button .x-button-activated,.x-picker-date-table td x-button .x-button-activated:hover{color:var(--x-background-100);background-color:var(--x-primary)}.x-picker-date-table td.x-date-last-or-next x-button .x-button{color:var(--x-text-400)}.x-picker-date-table td.x-date-now x-button .x-button{color:var(--x-primary);background-color:initial;border-color:var(--x-primary)}"], components: [{ type: i4__namespace.XButtonComponent, selector: "x-button" }], directives: [{ type: i1__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "xI18n": i2__namespace.XI18nPipe, "date": i1__namespace$1.DatePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
753
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XPickerDateComponent, decorators: [{
852
+ /** @nocollapse */ XPickerDateComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerDateComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i1__namespace.DatePipe }, { token: i1__namespace.LowerCasePipe }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.XConfigService }, { token: i3__namespace.XI18nService }], target: i0__namespace.ɵɵFactoryTarget.Component });
853
+ /** @nocollapse */ XPickerDateComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XPickerDateComponent, selector: "x-picker-date", providers: [i1.DatePipe, i1.LowerCasePipe], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"x-picker-date\" [class.x-date-picker-datetemp]=\"dateTemp\">\r\n <div class=\"x-picker-date-header\" *ngIf=\"showHeader\">\r\n <x-button icon=\"fto-chevrons-left\" size=\"small\" onlyIcon (click)=\"nextYear(-1)\"></x-button>\r\n <x-button icon=\"fto-chevron-left\" size=\"small\" onlyIcon (click)=\"nextMonth(-1)\"></x-button>\r\n <div class=\"x-picker-date-year-month\">\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeOnChange('year')\">{{ display | date: 'yyyy' }}{{ locale.year }}</x-button>\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeOnChange('month')\">{{ getLocaleMonth(display) }}</x-button>\r\n </div>\r\n <x-button icon=\"fto-chevron-right\" size=\"small\" onlyIcon (click)=\"nextMonth(1)\"></x-button>\r\n <x-button icon=\"fto-chevrons-right\" size=\"small\" onlyIcon (click)=\"nextYear(1)\"></x-button>\r\n </div>\r\n <div class=\"x-picker-date-body\">\r\n <table cellspacing=\"0\" cellpadding=\"0\">\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let title of titles; trackBy: trackByNode\">{{ title | xI18n }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let weeks of dates\">\r\n <ng-container *ngFor=\"let week of weeks; trackBy: trackByNode\">\r\n <td\r\n [class.x-date-last-or-next]=\"(week | date: 'yyyyMM') !== (display | date: 'yyyyMM')\"\r\n [class.x-date-now]=\"(week | date: 'yyyyMMdd') === (now | date: 'yyyyMMdd')\"\r\n (click)=\"dateTemp && dateClick(week)\"\r\n >\r\n <x-button\r\n *ngIf=\"!dateTemp\"\r\n type=\"text\"\r\n size=\"mini\"\r\n title=\"{{ week | date: 'yyyy-MM-dd' }}\"\r\n [activated]=\"!rangePicker && (week | date: 'yyyyMMdd') === (model | date: 'yyyyMMdd')\"\r\n (click)=\"dateClick(week)\"\r\n >{{ week | date: 'd' }}</x-button\r\n >\r\n <ng-container *ngIf=\"dateTemp\">\r\n <ng-container *ngTemplateOutlet=\"dateTemp; context: { date$: week }\"></ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-picker-date{margin:0;padding:0}.x-picker-date-header{display:flex;align-items:center;justify-content:space-between;padding:.5rem;border-bottom:var(--x-border-width) solid var(--x-border)}.x-picker-date-year-month{flex:1;text-align:center}.x-picker-date-body{padding:.5rem}.x-picker-date-body>table{width:100%;border-collapse:collapse;border-spacing:0}.x-picker-date-body>table th{font-weight:400;height:2rem;color:var(--x-text-400)}.x-picker-date-body>table td{padding:.25rem 0;text-align:center}.x-picker-date-body>table td x-button .x-button{width:1.625rem;height:1.5rem;margin:0 auto;border:.0625rem solid transparent}.x-picker-date-body>table td x-button .x-button:hover{background-color:var(--x-primary-900)}.x-picker-date-body>table td x-button .x-button-activated{color:var(--x-background-100);background-color:var(--x-primary)}.x-picker-date-body>table td x-button .x-button-activated:hover{color:var(--x-background-100);background-color:var(--x-primary)}.x-picker-date-body>table td.x-date-last-or-next x-button .x-button{color:var(--x-text-700)}.x-picker-date-body>table td.x-date-now x-button .x-button:not(.x-button-activated){color:var(--x-primary);background-color:transparent;border-color:var(--x-primary)}\n"], components: [{ type: i4__namespace.XButtonComponent, selector: "x-button" }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "date": i1__namespace.DatePipe, "xI18n": i3__namespace.XI18nPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
854
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerDateComponent, decorators: [{
754
855
  type: i0.Component,
755
856
  args: [{
756
857
  selector: "" + XPickerDatePrefix,
757
858
  templateUrl: './picker-date.component.html',
758
859
  styleUrls: ['./picker-date.component.scss'],
759
860
  encapsulation: i0.ViewEncapsulation.None,
760
- changeDetection: i0.ChangeDetectionStrategy.OnPush
861
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
862
+ providers: [i1.DatePipe, i1.LowerCasePipe]
761
863
  }]
762
- }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.XConfigService }, { type: i2__namespace.XI18nService }]; } });
864
+ }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i1__namespace.DatePipe }, { type: i1__namespace.LowerCasePipe }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.XConfigService }, { type: i3__namespace.XI18nService }]; } });
763
865
 
764
866
  var XPickerMonthComponent = /** @class */ (function (_super) {
765
867
  __extends(XPickerMonthComponent, _super);
@@ -787,18 +889,19 @@
787
889
  });
788
890
  };
789
891
  XPickerMonthComponent.prototype.ngOnChanges = function (simples) {
790
- i1.XIsChange(simples.display) && this.init();
892
+ var display = simples.display;
893
+ i2.XIsChange(display) && this.init();
791
894
  };
792
895
  XPickerMonthComponent.prototype.init = function () {
793
- this.setMonths();
896
+ this.setMonths(this.display);
794
897
  };
795
- XPickerMonthComponent.prototype.setMonths = function () {
796
- var year = this.display.getFullYear();
898
+ XPickerMonthComponent.prototype.setMonths = function (date) {
899
+ var year = date.getFullYear();
797
900
  var dates = [];
798
901
  for (var i = 0; i < 16; i++) {
799
902
  dates = __spreadArray(__spreadArray([], __read(dates)), [new Date(year, i, 1)]);
800
903
  }
801
- this.dates = i1.chunk(dates, 4);
904
+ this.dates = i2.chunk(dates, 4);
802
905
  if (this.dates.length > 0) {
803
906
  this.rangeChange.emit([dates[0], dates[dates.length - 1]]);
804
907
  }
@@ -811,14 +914,29 @@
811
914
  XPickerMonthComponent.prototype.getLocaleMonth = function (date) {
812
915
  return this.locale[this.lowerCasePipe.transform(this.datePipe.transform(date, 'LLLL'))];
813
916
  };
814
- XPickerMonthComponent.prototype.trackByMonth = function (index, item) {
917
+ XPickerMonthComponent.prototype.setDisplay = function (date) {
918
+ this.display = new Date(date.getFullYear(), date.getMonth(), 1);
919
+ this.setMonths(this.display);
920
+ };
921
+ XPickerMonthComponent.prototype.nextYear = function (num) {
922
+ var date = new Date(this.display);
923
+ date.setFullYear(date.getFullYear() + num);
924
+ this.setDisplay(date);
925
+ this.cdr.detectChanges();
926
+ };
927
+ XPickerMonthComponent.prototype.typeOnChange = function (type) {
928
+ this.type = type;
929
+ this.typeChange.emit(type);
930
+ this.cdr.detectChanges();
931
+ };
932
+ XPickerMonthComponent.prototype.trackByMonth = function (_index, item) {
815
933
  return item;
816
934
  };
817
935
  return XPickerMonthComponent;
818
936
  }(XPickerMonthProperty));
819
- /** @nocollapse */ XPickerMonthComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XPickerMonthComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i1__namespace$1.DatePipe }, { token: i1__namespace$1.LowerCasePipe }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace.XConfigService }, { token: i2__namespace.XI18nService }], target: i0__namespace.ɵɵFactoryTarget.Component });
820
- /** @nocollapse */ XPickerMonthComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.3", type: XPickerMonthComponent, selector: "x-picker-month", providers: [i1$1.DatePipe, i1$1.LowerCasePipe], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"x-picker-month\" [class.x-date-picker-monthtemp]=\"monthTemp\">\r\n <table class=\"x-picker-month-table\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr *ngFor=\"let months of dates\">\r\n <ng-container *ngFor=\"let month of months; trackBy: trackByMonth\">\r\n <td\r\n [class.x-date-last-or-next]=\"(month | date: 'yyyy') !== (display | date: 'yyyy')\"\r\n [class.x-date-now]=\"(month | date: 'yyyyMM') === (now | date: 'yyyyMM')\"\r\n (click)=\"monthTemp && monthClick(month)\"\r\n >\r\n <x-button\r\n *ngIf=\"!monthTemp\"\r\n type=\"text\"\r\n title=\"{{ month | date: 'yyyy-MM' }}\"\r\n [activated]=\"(month | date: 'yyyyMM') === (model | date: 'yyyyMM')\"\r\n (click)=\"monthClick(month)\"\r\n >{{ getLocaleMonth(month) }}</x-button\r\n >\r\n <ng-container *ngIf=\"monthTemp\">\r\n <ng-container *ngTemplateOutlet=\"monthTemp; context: { date$: month }\"></ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </tr>\r\n </table>\r\n</div>\r\n", styles: [".x-picker-month{margin:0;padding:0}.x-picker-month-table{width:100%;border-collapse:collapse;border-spacing:0}.x-picker-month-table td{height:1.875rem;padding:.125rem 0;text-align:center}.x-picker-month-table td x-button .x-button{width:2.6rem;height:1.6rem;margin:0 auto;border:.0625rem solid #0000}.x-picker-month-table td x-button .x-button:hover{background-color:var(--x-primary-900)}.x-picker-month-table td x-button .x-button-activated,.x-picker-month-table td x-button .x-button-activated:hover{color:var(--x-background-100);background-color:var(--x-primary)}.x-picker-month-table td.x-date-last-or-next x-button .x-button{color:var(--x-text-400)}.x-picker-month-table td.x-date-now x-button .x-button{color:var(--x-primary);background-color:initial;border-color:var(--x-primary)}"], components: [{ type: i4__namespace.XButtonComponent, selector: "x-button" }], directives: [{ type: i1__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "date": i1__namespace$1.DatePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
821
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XPickerMonthComponent, decorators: [{
937
+ /** @nocollapse */ XPickerMonthComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerMonthComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i1__namespace.DatePipe }, { token: i1__namespace.LowerCasePipe }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.XConfigService }, { token: i3__namespace.XI18nService }], target: i0__namespace.ɵɵFactoryTarget.Component });
938
+ /** @nocollapse */ XPickerMonthComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XPickerMonthComponent, selector: "x-picker-month", providers: [i1.DatePipe, i1.LowerCasePipe], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"x-picker-month\" [class.x-date-picker-monthtemp]=\"monthTemp\">\r\n <div class=\"x-picker-month-header\" *ngIf=\"showHeader\">\r\n <x-button icon=\"fto-chevron-left\" size=\"small\" onlyIcon (click)=\"nextYear(-1)\"></x-button>\r\n <div class=\"x-picker-month-year-month\">\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeOnChange('year')\">{{ display | date: 'yyyy' }}{{ locale.year }}</x-button>\r\n </div>\r\n <x-button icon=\"fto-chevron-right\" size=\"small\" onlyIcon (click)=\"nextYear(1)\"></x-button>\r\n </div>\r\n <div class=\"x-picker-month-body\">\r\n <table cellspacing=\"0\" cellpadding=\"0\">\r\n <tr *ngFor=\"let months of dates\">\r\n <ng-container *ngFor=\"let month of months; trackBy: trackByMonth\">\r\n <td\r\n [class.x-date-last-or-next]=\"(month | date: 'yyyy') !== (display | date: 'yyyy')\"\r\n [class.x-date-now]=\"(month | date: 'yyyyMM') === (now | date: 'yyyyMM')\"\r\n (click)=\"monthTemp && monthClick(month)\"\r\n >\r\n <x-button\r\n *ngIf=\"!monthTemp\"\r\n type=\"text\"\r\n title=\"{{ month | date: 'yyyy-MM' }}\"\r\n [activated]=\"(month | date: 'yyyyMM') === (model | date: 'yyyyMM')\"\r\n (click)=\"monthClick(month)\"\r\n >{{ getLocaleMonth(month) }}</x-button\r\n >\r\n <ng-container *ngIf=\"monthTemp\">\r\n <ng-container *ngTemplateOutlet=\"monthTemp; context: { date$: month }\"></ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </tr>\r\n </table>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-picker-month{margin:0;padding:0}.x-picker-month-header{display:flex;align-items:center;justify-content:space-between;padding:.5rem;border-bottom:var(--x-border-width) solid var(--x-border)}.x-picker-month-year-month{flex:1;text-align:center}.x-picker-month-body{padding:.5rem}.x-picker-month-body>table{width:100%;border-collapse:collapse;border-spacing:0}.x-picker-month-body>table td{padding:.125rem 0;text-align:center}.x-picker-month-body>table td x-button .x-button{width:3.5rem;height:3.25rem;margin:0 auto;border:.0625rem solid transparent}.x-picker-month-body>table td x-button .x-button:hover{background-color:var(--x-primary-900)}.x-picker-month-body>table td x-button .x-button-activated{color:var(--x-background-100);background-color:var(--x-primary)}.x-picker-month-body>table td x-button .x-button-activated:hover{color:var(--x-background-100);background-color:var(--x-primary)}.x-picker-month-body>table td.x-date-last-or-next x-button .x-button{color:var(--x-text-700)}.x-picker-month-body>table td.x-date-now x-button .x-button:not(.x-button-activated){color:var(--x-primary);background-color:transparent;border-color:var(--x-primary)}\n"], components: [{ type: i4__namespace.XButtonComponent, selector: "x-button" }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "date": i1__namespace.DatePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
939
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerMonthComponent, decorators: [{
822
940
  type: i0.Component,
823
941
  args: [{
824
942
  selector: 'x-picker-month',
@@ -826,9 +944,9 @@
826
944
  styleUrls: ['./picker-month.component.scss'],
827
945
  encapsulation: i0.ViewEncapsulation.None,
828
946
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
829
- providers: [i1$1.DatePipe, i1$1.LowerCasePipe]
947
+ providers: [i1.DatePipe, i1.LowerCasePipe]
830
948
  }]
831
- }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i1__namespace$1.DatePipe }, { type: i1__namespace$1.LowerCasePipe }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.XConfigService }, { type: i2__namespace.XI18nService }]; } });
949
+ }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i1__namespace.DatePipe }, { type: i1__namespace.LowerCasePipe }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.XConfigService }, { type: i3__namespace.XI18nService }]; } });
832
950
 
833
951
  var XPickerYearComponent = /** @class */ (function (_super) {
834
952
  __extends(XPickerYearComponent, _super);
@@ -843,20 +961,21 @@
843
961
  return _this;
844
962
  }
845
963
  XPickerYearComponent.prototype.ngOnChanges = function (simples) {
846
- i1.XIsChange(simples.display) && this.init();
964
+ var display = simples.display;
965
+ i2.XIsChange(display) && this.init();
847
966
  };
848
967
  XPickerYearComponent.prototype.init = function () {
849
- this.setYears();
968
+ this.setYears(this.display);
850
969
  };
851
- XPickerYearComponent.prototype.setYears = function () {
852
- var year = this.display.getFullYear();
970
+ XPickerYearComponent.prototype.setYears = function (date) {
971
+ var year = date.getFullYear();
853
972
  this.start = Math.floor(year / 10) * 10;
854
973
  this.end = this.start + 9;
855
974
  var dates = [];
856
975
  for (var i = -3; i < 13; i++) {
857
976
  dates = __spreadArray(__spreadArray([], __read(dates)), [new Date(this.start + i, 1, 1)]);
858
977
  }
859
- this.dates = i1.chunk(dates, 4);
978
+ this.dates = i2.chunk(dates, 4);
860
979
  this.startChange.emit(this.start);
861
980
  };
862
981
  XPickerYearComponent.prototype.yearClick = function (date) {
@@ -868,17 +987,28 @@
868
987
  var yearStr = this.datePipe.transform(year, 'yyyy');
869
988
  return yearStr < "" + this.start || yearStr > "" + this.end;
870
989
  };
990
+ XPickerYearComponent.prototype.setDisplay = function (date) {
991
+ this.display = new Date(date.getFullYear(), date.getMonth(), 1);
992
+ this.setYears(this.display);
993
+ };
994
+ XPickerYearComponent.prototype.nextYears = function (num) {
995
+ this.start += num;
996
+ var date = new Date(this.display);
997
+ date.setFullYear(this.start);
998
+ this.setDisplay(date);
999
+ this.cdr.detectChanges();
1000
+ };
871
1001
  XPickerYearComponent.prototype.equalYear = function (one, two) {
872
1002
  return this.datePipe.transform(one, 'yyyy') === this.datePipe.transform(two, 'yyyy');
873
1003
  };
874
- XPickerYearComponent.prototype.trackByYear = function (index, item) {
1004
+ XPickerYearComponent.prototype.trackByYear = function (_index, item) {
875
1005
  return item;
876
1006
  };
877
1007
  return XPickerYearComponent;
878
1008
  }(XPickerYearProperty));
879
- /** @nocollapse */ XPickerYearComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XPickerYearComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$1.DatePipe }, { token: i1__namespace.XConfigService }], target: i0__namespace.ɵɵFactoryTarget.Component });
880
- /** @nocollapse */ XPickerYearComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.3", type: XPickerYearComponent, selector: "x-picker-year", providers: [i1$1.DatePipe], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"x-picker-year\">\r\n <table class=\"x-picker-year-table\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr *ngFor=\"let years of dates\">\r\n <ng-container *ngFor=\"let year of years; trackBy: trackByYear\">\r\n <td [class.x-date-last-or-next]=\"lastOrNext(year)\" [class.x-date-now]=\"equalYear(year, now)\">\r\n <x-button type=\"text\" [activated]=\"equalYear(year, now)\" (click)=\"yearClick(year)\">{{ year | date: 'yyyy' }}</x-button>\r\n </td>\r\n </ng-container>\r\n </tr>\r\n </table>\r\n</div>\r\n", styles: [".x-picker-year{margin:0;padding:0}.x-picker-year-table{width:100%;border-collapse:collapse;border-spacing:0}.x-picker-year-table td{height:1.875rem;padding:.125rem 0;text-align:center}.x-picker-year-table td x-button .x-button{width:2.6rem;height:1.6rem;margin:0 auto;border:.0625rem solid #0000}.x-picker-year-table td x-button .x-button:hover{background-color:var(--x-primary-900)}.x-picker-year-table td x-button .x-button-activated,.x-picker-year-table td x-button .x-button-activated:hover{color:var(--x-background-100);background-color:var(--x-primary)}.x-picker-year-table td.x-date-last-or-next x-button .x-button{color:var(--x-text-400)}.x-picker-year-table td.x-date-now x-button .x-button{color:var(--x-primary);background-color:initial;border-color:var(--x-primary)}"], components: [{ type: i4__namespace.XButtonComponent, selector: "x-button" }], directives: [{ type: i1__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "date": i1__namespace$1.DatePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
881
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XPickerYearComponent, decorators: [{
1009
+ /** @nocollapse */ XPickerYearComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerYearComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace.DatePipe }, { token: i2__namespace.XConfigService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1010
+ /** @nocollapse */ XPickerYearComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XPickerYearComponent, selector: "x-picker-year", providers: [i1.DatePipe], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"x-picker-year\">\r\n <div class=\"x-picker-year-header\" *ngIf=\"showHeader\">\r\n <x-button icon=\"fto-chevron-left\" size=\"small\" onlyIcon (click)=\"nextYears(-10)\"></x-button>\r\n <div class=\"x-date-picker-portal-year-month\">\r\n <x-button type=\"text\" size=\"small\">{{ start }}</x-button> -\r\n <x-button type=\"text\" size=\"small\">{{ end }}</x-button>\r\n </div>\r\n <x-button icon=\"fto-chevron-right\" size=\"small\" onlyIcon (click)=\"nextYears(10)\"></x-button>\r\n </div>\r\n <div class=\"x-picker-year-body\">\r\n <table cellspacing=\"0\" cellpadding=\"0\">\r\n <tr *ngFor=\"let years of dates\">\r\n <ng-container *ngFor=\"let year of years; trackBy: trackByYear\">\r\n <td [class.x-date-last-or-next]=\"lastOrNext(year)\" [class.x-date-now]=\"equalYear(year, now)\">\r\n <x-button type=\"text\" [activated]=\"equalYear(year, now)\" (click)=\"yearClick(year)\">{{ year | date: 'yyyy' }}</x-button>\r\n </td>\r\n </ng-container>\r\n </tr>\r\n </table>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.x-picker-year{margin:0;padding:0}.x-picker-year-header{display:flex;align-items:center;justify-content:space-between;padding:.5rem;border-bottom:var(--x-border-width) solid var(--x-border)}.x-picker-year-year-month{flex:1;text-align:center}.x-picker-year-body{padding:.5rem}.x-picker-year-body>table{width:100%;border-collapse:collapse;border-spacing:0}.x-picker-year-body>table td{padding:.125rem 0;text-align:center}.x-picker-year-body>table td x-button .x-button{width:3.5rem;height:3.25rem;margin:0 auto;border:.0625rem solid transparent}.x-picker-year-body>table td x-button .x-button:hover{background-color:var(--x-primary-900)}.x-picker-year-body>table td x-button .x-button-activated{color:var(--x-background-100);background-color:var(--x-primary)}.x-picker-year-body>table td x-button .x-button-activated:hover{color:var(--x-background-100);background-color:var(--x-primary)}.x-picker-year-body>table td.x-date-last-or-next x-button .x-button{color:var(--x-text-700)}.x-picker-year-body>table td.x-date-now x-button .x-button:not(.x-button-activated){color:var(--x-primary);background-color:transparent;border-color:var(--x-primary)}\n"], components: [{ type: i4__namespace.XButtonComponent, selector: "x-button" }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "date": i1__namespace.DatePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
1011
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XPickerYearComponent, decorators: [{
882
1012
  type: i0.Component,
883
1013
  args: [{
884
1014
  selector: 'x-picker-year',
@@ -886,9 +1016,9 @@
886
1016
  styleUrls: ['./picker-year.component.scss'],
887
1017
  encapsulation: i0.ViewEncapsulation.None,
888
1018
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
889
- providers: [i1$1.DatePipe]
1019
+ providers: [i1.DatePipe]
890
1020
  }]
891
- }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$1.DatePipe }, { type: i1__namespace.XConfigService }]; } });
1021
+ }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.DatePipe }, { type: i2__namespace.XConfigService }]; } });
892
1022
 
893
1023
  var XDatePickerPortalComponent = /** @class */ (function () {
894
1024
  function XDatePickerPortalComponent(datePipe, lowerCasePipe, cdr, i18n) {
@@ -899,6 +1029,7 @@
899
1029
  this.type = 'date';
900
1030
  this.display = new Date();
901
1031
  this.locale = {};
1032
+ this.time = new Date().getTime();
902
1033
  this.preset = [];
903
1034
  this._unSubject = new rxjs.Subject();
904
1035
  }
@@ -906,7 +1037,7 @@
906
1037
  this.animating(false);
907
1038
  event.toState === 'void' && this.destroyPortal();
908
1039
  };
909
- XDatePickerPortalComponent.prototype.start = function (event) {
1040
+ XDatePickerPortalComponent.prototype.start = function () {
910
1041
  this.animating(true);
911
1042
  };
912
1043
  XDatePickerPortalComponent.prototype.ngOnInit = function () {
@@ -934,15 +1065,10 @@
934
1065
  this._unSubject.unsubscribe();
935
1066
  };
936
1067
  XDatePickerPortalComponent.prototype.init = function () {
937
- if (!i1.XIsEmpty(this.value)) {
1068
+ if (!i2.XIsEmpty(this.value)) {
938
1069
  this.setDefault();
939
1070
  }
940
- else {
941
- this.model = this.display;
942
- }
943
- this.time = this.model.getTime();
944
1071
  this._type = this.type;
945
- this.setDisplay(this.model);
946
1072
  this.cdr.detectChanges();
947
1073
  };
948
1074
  XDatePickerPortalComponent.prototype.stopPropagation = function (event) {
@@ -951,6 +1077,8 @@
951
1077
  XDatePickerPortalComponent.prototype.setDefault = function () {
952
1078
  var date = new Date(this.value);
953
1079
  this.model = date;
1080
+ this.time = this.model.getTime();
1081
+ this.setDisplay(this.model);
954
1082
  };
955
1083
  XDatePickerPortalComponent.prototype.setDisplay = function (date) {
956
1084
  this.display = new Date(date.getFullYear(), date.getMonth(), 1);
@@ -958,18 +1086,14 @@
958
1086
  XDatePickerPortalComponent.prototype.dateChange = function (date) {
959
1087
  this.setDisplay(date);
960
1088
  this.model = date;
961
- this.setModel(this.model, new Date(this.time));
962
1089
  if (['date-time', 'date-hour', 'date-minute'].includes(this._type)) {
1090
+ this.setModelTime(this.model, new Date(this.time));
963
1091
  this.nodeEmit(this.model, false);
964
1092
  }
965
1093
  else {
966
1094
  this.nodeEmit(this.model);
967
1095
  }
968
1096
  };
969
- XDatePickerPortalComponent.prototype.typeChange = function (type) {
970
- this.type = type;
971
- this.cdr.detectChanges();
972
- };
973
1097
  XDatePickerPortalComponent.prototype.monthChange = function (date) {
974
1098
  this.setDisplay(date);
975
1099
  if (this._type === 'month') {
@@ -992,58 +1116,32 @@
992
1116
  }
993
1117
  this.cdr.detectChanges();
994
1118
  };
995
- XDatePickerPortalComponent.prototype.yearStartChange = function (number) {
996
- this.startYear = number;
997
- this.cdr.detectChanges();
998
- };
999
- XDatePickerPortalComponent.prototype.nextMonth = function (num) {
1000
- var date = new Date(this.display);
1001
- date.setMonth(date.getMonth() + num);
1002
- this.setDisplay(date);
1003
- this.cdr.detectChanges();
1004
- };
1005
- XDatePickerPortalComponent.prototype.nextYear = function (num) {
1006
- var date = new Date(this.display);
1007
- date.setFullYear(date.getFullYear() + num);
1008
- this.setDisplay(date);
1009
- this.cdr.detectChanges();
1010
- };
1011
- XDatePickerPortalComponent.prototype.nextYears = function (num) {
1012
- this.startYear += num;
1013
- var date = new Date(this.display);
1014
- date.setFullYear(this.startYear);
1015
- this.setDisplay(date);
1016
- this.cdr.detectChanges();
1017
- };
1018
- XDatePickerPortalComponent.prototype.getLocaleMonth = function (date) {
1019
- return this.locale[this.lowerCasePipe.transform(this.datePipe.transform(date, 'LLLL'))];
1020
- };
1021
1119
  XDatePickerPortalComponent.prototype.onToday = function () {
1022
1120
  this.dateChange(new Date());
1023
1121
  };
1024
1122
  XDatePickerPortalComponent.prototype.onYesterday = function () {
1025
- this.dateChange(i1.XAddDays(new Date(), -1));
1123
+ this.dateChange(i2.XAddDays(new Date(), -1));
1026
1124
  };
1027
1125
  XDatePickerPortalComponent.prototype.onTomorrow = function () {
1028
- this.dateChange(i1.XAddDays(new Date(), 1));
1126
+ this.dateChange(i2.XAddDays(new Date(), 1));
1029
1127
  };
1030
1128
  XDatePickerPortalComponent.prototype.onPresetFunc = function (item) {
1031
1129
  this.dateChange(item.func());
1032
1130
  };
1033
1131
  XDatePickerPortalComponent.prototype.selectTime = function (time) {
1034
1132
  this.time = time.getTime();
1035
- this.nodeEmit(this.setModel(this.model, time), false);
1133
+ this.nodeEmit(this.setModelTime(this.model, time), false);
1036
1134
  this.cdr.detectChanges();
1037
1135
  };
1038
- XDatePickerPortalComponent.prototype.setModel = function (date, time) {
1136
+ XDatePickerPortalComponent.prototype.setModelTime = function (date, time) {
1039
1137
  this.model = new Date(date.getFullYear(), date.getMonth(), date.getDate(), time.getHours(), time.getMinutes(), time.getSeconds());
1040
1138
  return this.model;
1041
1139
  };
1042
1140
  return XDatePickerPortalComponent;
1043
1141
  }());
1044
- /** @nocollapse */ XDatePickerPortalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XDatePickerPortalComponent, deps: [{ token: i1__namespace$1.DatePipe }, { token: i1__namespace$1.LowerCasePipe }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.XI18nService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1045
- /** @nocollapse */ XDatePickerPortalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.3", type: XDatePickerPortalComponent, selector: "x-date-picker-portal", host: { listeners: { "@x-connect-base-animation.done": "done($event)", "@x-connect-base-animation.start": "start($event)" }, properties: { "@x-connect-base-animation": "this.placement" } }, providers: [i1$1.DatePipe, i1$1.LowerCasePipe], ngImport: i0__namespace, template: "<div class=\"x-date-picker-portal {{ type }}\" [ngSwitch]=\"type\">\r\n <ng-container *ngSwitchCase=\"'date'\">\r\n <div class=\"x-date-picker-portal-header\">\r\n <ng-container *ngTemplateOutlet=\"dateHeaderTpl\"></ng-container>\r\n </div>\r\n <div class=\"x-date-picker-portal-body\">\r\n <x-picker-date [display]=\"display\" [model]=\"model\" (modelChange)=\"dateChange($event)\"></x-picker-date>\r\n </div>\r\n <div *ngIf=\"preset\" class=\"x-date-picker-portal-preset\">\r\n <ng-container *ngFor=\"let item of preset\">\r\n <x-button type=\"text\" *ngIf=\"item.id === 'yesterday'\" (click)=\"onYesterday()\">{{ locale.yesterday }}</x-button>\r\n <x-button type=\"text\" *ngIf=\"item.id === 'today'\" (click)=\"onToday()\">{{ locale.today }}</x-button>\r\n <x-button type=\"text\" *ngIf=\"item.id === 'tomorrow'\" (click)=\"onTomorrow()\">{{ locale.tomorrow }}</x-button>\r\n <x-button type=\"text\" *ngIf=\"item.func\" (click)=\"onPresetFunc(item)\">{{ item.label }}</x-button>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'month'\">\r\n <div class=\"x-date-picker-portal-header\">\r\n <ng-container *ngTemplateOutlet=\"monthHeaderTpl\"></ng-container>\r\n </div>\r\n <div class=\"x-date-picker-portal-body\">\r\n <x-picker-month [display]=\"display\" [model]=\"model\" (modelChange)=\"monthChange($event)\"></x-picker-month>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'year'\">\r\n <div class=\"x-date-picker-portal-header\">\r\n <ng-container *ngTemplateOutlet=\"yearHeaderTpl\"></ng-container>\r\n </div>\r\n <div class=\"x-date-picker-portal-body\">\r\n <x-picker-year\r\n [display]=\"display\"\r\n [model]=\"model\"\r\n (modelChange)=\"yearChange($event)\"\r\n (startChange)=\"yearStartChange($event)\"\r\n ></x-picker-year>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-time'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH:mm:ss', timeType: 'time' }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-hour'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH', timeType: 'hour' }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-minute'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH:mm', timeType: 'minute' }\"></ng-container>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #dateHeaderTpl>\r\n <x-button icon=\"fto-chevrons-left\" size=\"small\" onlyIcon (click)=\"nextYear(-1)\"></x-button>\r\n <x-button icon=\"fto-chevron-left\" size=\"small\" onlyIcon (click)=\"nextMonth(-1)\"></x-button>\r\n <div class=\"x-date-picker-portal-year-month\">\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeChange('year')\">{{ display | date: 'yyyy' }}{{ locale.year }}</x-button>\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeChange('month')\">{{ getLocaleMonth(display) }}</x-button>\r\n </div>\r\n <x-button icon=\"fto-chevron-right\" size=\"small\" onlyIcon (click)=\"nextMonth(1)\"></x-button>\r\n <x-button icon=\"fto-chevrons-right\" size=\"small\" onlyIcon (click)=\"nextYear(1)\"></x-button>\r\n</ng-template>\r\n\r\n<ng-template #monthHeaderTpl>\r\n <x-button icon=\"fto-chevron-left\" size=\"small\" onlyIcon (click)=\"nextYear(-1)\"></x-button>\r\n <div class=\"x-date-picker-portal-year-month\">\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeChange('year')\">{{ display | date: 'yyyy' }}{{ locale.year }}</x-button>\r\n </div>\r\n <x-button icon=\"fto-chevron-right\" size=\"small\" onlyIcon (click)=\"nextYear(1)\"></x-button>\r\n</ng-template>\r\n\r\n<ng-template #yearHeaderTpl>\r\n <x-button icon=\"fto-chevron-left\" size=\"small\" onlyIcon (click)=\"nextYears(-10)\"></x-button>\r\n <div class=\"x-date-picker-portal-year-month\">\r\n <x-button type=\"text\" size=\"small\">{{ startYear }}</x-button> -\r\n <x-button type=\"text\" size=\"small\">{{ startYear + 9 }}</x-button>\r\n </div>\r\n <x-button icon=\"fto-chevron-right\" size=\"small\" onlyIcon (click)=\"nextYears(10)\"></x-button>\r\n</ng-template>\r\n\r\n<ng-template #dateTimeHourMinuteTpl let-timeFormat=\"timeFormat\" let-timeType=\"timeType\">\r\n <div class=\"x-date-picker-portal-content\">\r\n <div class=\"x-date-picker-portal-date\">\r\n <div class=\"x-date-picker-portal-header\">\r\n <ng-container *ngTemplateOutlet=\"dateHeaderTpl\"></ng-container>\r\n </div>\r\n <div class=\"x-date-picker-portal-body\">\r\n <x-picker-date [display]=\"display\" [model]=\"model\" (modelChange)=\"dateChange($event)\"></x-picker-date>\r\n </div>\r\n </div>\r\n <div class=\"x-date-picker-portal-time\">\r\n <div class=\"x-date-picker-portal-time-label\">\r\n <x-button type=\"text\" size=\"small\">{{ time | date: timeFormat }}</x-button>\r\n </div>\r\n <x-time-picker-frame [type]=\"timeType\" [value]=\"time\" (nodeEmit)=\"selectTime($event)\"></x-time-picker-frame>\r\n </div>\r\n </div>\r\n <div class=\"x-date-picker-portal-footer\">\r\n <x-button type=\"primary\" size=\"small\" (click)=\"nodeEmit(model)\">{{ locale.sure }}</x-button>\r\n </div>\r\n</ng-template>\r\n", styles: [".x-date-picker-portal{margin:.0625rem 0;font-size:var(--x-font-size);color:var(--x-text);border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color);background-color:var(--x-background);width:16rem;display:flex;flex-direction:column;font-size:var(--x-font-size-small)}.x-date-picker-portal.date-time{width:27rem}.x-date-picker-portal.date-hour{width:19.75rem}.x-date-picker-portal.date-minute{width:23.375rem}.x-date-picker-portal-content{display:flex}.x-date-picker-portal-header{display:flex;align-items:center;justify-content:space-between;padding:.4rem;border-bottom:var(--x-border-width) solid var(--x-border)}.x-date-picker-portal-preset{display:flex;align-items:center;justify-content:center;border-top:var(--x-border-width) solid var(--x-border)}.x-date-picker-portal-preset>x-button{flex:1}.x-date-picker-portal-year-month{flex:1;text-align:center}.x-date-picker-portal-body{padding:.4rem}.x-date-picker-portal-footer{display:flex;justify-content:flex-end;border-top:var(--x-border-width) var(--x-border-style) var(--x-border);padding:.5rem}.x-date-picker-portal-date{flex:1}.x-date-picker-portal-time{display:flex;flex-direction:column}.x-date-picker-portal-time-label{padding:.4rem;text-align:center;border-left:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-date-picker-portal-time .x-time-picker-frame{border-left-width:var(--x-border-width);border-bottom-width:0;border-right-width:0;border-top-width:var(--x-border-width);box-shadow:none}"], components: [{ type: XPickerDateComponent, selector: "x-picker-date" }, { type: i4__namespace.XButtonComponent, selector: "x-button" }, { type: XPickerMonthComponent, selector: "x-picker-month" }, { type: XPickerYearComponent, selector: "x-picker-year" }, { type: i7__namespace.XTimePickerFrameComponent, selector: "x-time-picker-frame", inputs: ["type", "value"], outputs: ["nodeEmit"] }], directives: [{ type: i1__namespace$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "date": i1__namespace$1.DatePipe }, animations: [i1.XConnectBaseAnimation], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
1046
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XDatePickerPortalComponent, decorators: [{
1142
+ /** @nocollapse */ XDatePickerPortalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerPortalComponent, deps: [{ token: i1__namespace.DatePipe }, { token: i1__namespace.LowerCasePipe }, { token: i0__namespace.ChangeDetectorRef }, { token: i3__namespace.XI18nService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1143
+ /** @nocollapse */ XDatePickerPortalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XDatePickerPortalComponent, selector: "x-date-picker-portal", host: { listeners: { "@x-connect-base-animation.done": "done($event)", "@x-connect-base-animation.start": "start($event)" }, properties: { "@x-connect-base-animation": "this.placement" } }, providers: [i1.DatePipe, i1.LowerCasePipe], ngImport: i0__namespace, template: "<div class=\"x-date-picker-portal {{ type }}\" [ngSwitch]=\"type\" (click)=\"inputCom.inputFocus()\">\r\n <ng-container *ngSwitchCase=\"'date'\">\r\n <x-picker-date [display]=\"display\" [model]=\"model\" [(type)]=\"type\" (modelChange)=\"dateChange($event)\"></x-picker-date>\r\n <div *ngIf=\"preset\" class=\"x-date-picker-portal-preset\">\r\n <ng-container *ngFor=\"let item of preset\">\r\n <x-button type=\"text\" *ngIf=\"item.id === 'yesterday'\" (click)=\"onYesterday()\">{{ locale.yesterday }}</x-button>\r\n <x-button type=\"text\" *ngIf=\"item.id === 'today'\" (click)=\"onToday()\">{{ locale.today }}</x-button>\r\n <x-button type=\"text\" *ngIf=\"item.id === 'tomorrow'\" (click)=\"onTomorrow()\">{{ locale.tomorrow }}</x-button>\r\n <x-button type=\"text\" *ngIf=\"item.func\" (click)=\"onPresetFunc(item)\">{{ item.label }}</x-button>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'month'\">\r\n <x-picker-month [display]=\"display\" [model]=\"model\" [(type)]=\"type\" (modelChange)=\"monthChange($event)\"></x-picker-month>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'year'\">\r\n <x-picker-year [display]=\"display\" [model]=\"model\" [(type)]=\"type\" (modelChange)=\"yearChange($event)\"></x-picker-year>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-time'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH:mm:ss', timeType: 'time' }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-hour'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH', timeType: 'hour' }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-minute'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH:mm', timeType: 'minute' }\"></ng-container>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #dateTimeHourMinuteTpl let-timeFormat=\"timeFormat\" let-timeType=\"timeType\">\r\n <div class=\"x-date-picker-portal-content\">\r\n <div class=\"x-date-picker-portal-date\">\r\n <x-picker-date [display]=\"display\" [(type)]=\"type\" [model]=\"model\" (modelChange)=\"dateChange($event)\"></x-picker-date>\r\n </div>\r\n <div class=\"x-date-picker-portal-time\">\r\n <div class=\"x-date-picker-portal-time-label\">\r\n <x-button type=\"text\" size=\"small\">{{ time | date: timeFormat }}</x-button>\r\n </div>\r\n <x-time-picker-frame [type]=\"timeType\" [value]=\"time\" (nodeEmit)=\"selectTime($event)\"></x-time-picker-frame>\r\n </div>\r\n </div>\r\n <div class=\"x-date-picker-portal-footer\">\r\n <x-button type=\"primary\" size=\"small\" (click)=\"nodeEmit(model)\">{{ locale.sure }}</x-button>\r\n </div>\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";.x-date-picker-portal{margin:.0625rem 0;font-size:var(--x-font-size);color:var(--x-text);border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color);background-color:var(--x-background);width:16rem;display:flex;flex-direction:column;font-size:var(--x-font-size-small)}.x-date-picker-portal.date-time{width:27rem}.x-date-picker-portal.date-hour{width:19.75rem}.x-date-picker-portal.date-minute{width:23.375rem}.x-date-picker-portal-content{display:flex}.x-date-picker-portal-preset{display:flex;align-items:center;justify-content:center;border-top:var(--x-border-width) solid var(--x-border)}.x-date-picker-portal-preset>x-button{flex:1}.x-date-picker-portal-body{padding:.4rem}.x-date-picker-portal-footer{display:flex;justify-content:flex-end;border-top:var(--x-border-width) var(--x-border-style) var(--x-border);padding:.5rem}.x-date-picker-portal-date{flex:1}.x-date-picker-portal-time{display:flex;flex-direction:column;border-left:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-date-picker-portal-time-label{padding:.5rem;text-align:center;border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-date-picker-portal-time .x-time-picker-frame{border-width:0;box-shadow:none;margin:0}\n"], components: [{ type: XPickerDateComponent, selector: "x-picker-date" }, { type: i4__namespace.XButtonComponent, selector: "x-button" }, { type: XPickerMonthComponent, selector: "x-picker-month" }, { type: XPickerYearComponent, selector: "x-picker-year" }, { type: i7__namespace.XTimePickerFrameComponent, selector: "x-time-picker-frame", inputs: ["type", "value"], outputs: ["nodeEmit"] }], directives: [{ type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "date": i1__namespace.DatePipe }, animations: [i2.XConnectBaseAnimation], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
1144
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerPortalComponent, decorators: [{
1047
1145
  type: i0.Component,
1048
1146
  args: [{
1049
1147
  selector: "" + XDatePickerPortalPrefix,
@@ -1051,10 +1149,10 @@
1051
1149
  styleUrls: ['./date-picker-portal.component.scss'],
1052
1150
  encapsulation: i0.ViewEncapsulation.None,
1053
1151
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
1054
- animations: [i1.XConnectBaseAnimation],
1055
- providers: [i1$1.DatePipe, i1$1.LowerCasePipe]
1152
+ animations: [i2.XConnectBaseAnimation],
1153
+ providers: [i1.DatePipe, i1.LowerCasePipe]
1056
1154
  }]
1057
- }], ctorParameters: function () { return [{ type: i1__namespace$1.DatePipe }, { type: i1__namespace$1.LowerCasePipe }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.XI18nService }]; }, propDecorators: { placement: [{
1155
+ }], ctorParameters: function () { return [{ type: i1__namespace.DatePipe }, { type: i1__namespace.LowerCasePipe }, { type: i0__namespace.ChangeDetectorRef }, { type: i3__namespace.XI18nService }]; }, propDecorators: { placement: [{
1058
1156
  type: i0.HostBinding,
1059
1157
  args: ['@x-connect-base-animation']
1060
1158
  }], done: [{
@@ -1067,11 +1165,10 @@
1067
1165
 
1068
1166
  var XDatePickerComponent = /** @class */ (function (_super) {
1069
1167
  __extends(XDatePickerComponent, _super);
1070
- function XDatePickerComponent(renderer, configService, elementRef, cdr, portalService, viewContainerRef, datePipe, overlay) {
1168
+ function XDatePickerComponent(renderer, configService, cdr, portalService, viewContainerRef, datePipe, overlay) {
1071
1169
  var _this = _super.call(this) || this;
1072
1170
  _this.renderer = renderer;
1073
1171
  _this.configService = configService;
1074
- _this.elementRef = elementRef;
1075
1172
  _this.cdr = cdr;
1076
1173
  _this.portalService = portalService;
1077
1174
  _this.viewContainerRef = viewContainerRef;
@@ -1094,20 +1191,20 @@
1094
1191
  return _this;
1095
1192
  }
1096
1193
  XDatePickerComponent.prototype.writeValue = function (value) {
1097
- if (i1.XIsDate(value)) {
1194
+ if (i2.XIsDate(value)) {
1098
1195
  this.modelType = 'date';
1099
1196
  this.numberValue = value.getTime();
1100
1197
  }
1101
- else if (i1.XIsNumber(value)) {
1198
+ else if (i2.XIsNumber(value)) {
1102
1199
  this.modelType = 'number';
1103
1200
  this.numberValue = value;
1104
1201
  }
1105
- else if (i1.XIsString(value)) {
1202
+ else if (i2.XIsString(value)) {
1106
1203
  this.modelType = 'string';
1107
1204
  var valueTime = new Date(value).getTime();
1108
1205
  this.numberValue = !isNaN(valueTime) ? valueTime : '';
1109
1206
  }
1110
- else if (i1.XIsEmpty(value)) {
1207
+ else if (i2.XIsEmpty(value)) {
1111
1208
  this.numberValue = '';
1112
1209
  }
1113
1210
  this.value = value;
@@ -1125,7 +1222,8 @@
1125
1222
  this.setPortal();
1126
1223
  };
1127
1224
  XDatePickerComponent.prototype.ngOnChanges = function (changes) {
1128
- if (i1.XIsChange(changes.type)) {
1225
+ var type = changes.type;
1226
+ if (i2.XIsChange(type)) {
1129
1227
  this.setFormat();
1130
1228
  this.setDisplayValue(this.numberValue);
1131
1229
  }
@@ -1136,7 +1234,7 @@
1136
1234
  };
1137
1235
  XDatePickerComponent.prototype.setSubject = function () {
1138
1236
  var _this = this;
1139
- this.closeSubject.pipe(operators.takeUntil(this._unSubject)).subscribe(function (x) {
1237
+ this.closeSubject.pipe(operators.takeUntil(this._unSubject)).subscribe(function () {
1140
1238
  _this.closePortal();
1141
1239
  });
1142
1240
  };
@@ -1166,7 +1264,7 @@
1166
1264
  if (this.disabled)
1167
1265
  return;
1168
1266
  this.enter = true;
1169
- if (!i1.XIsEmpty(this.numberValue)) {
1267
+ if (!i2.XIsEmpty(this.numberValue)) {
1170
1268
  this.icon = '';
1171
1269
  this.inputClearable = true;
1172
1270
  this.cdr.detectChanges();
@@ -1196,11 +1294,7 @@
1196
1294
  }
1197
1295
  };
1198
1296
  XDatePickerComponent.prototype.getValue = function () {
1199
- return this.modelType === 'date'
1200
- ? new Date(this.numberValue)
1201
- : this.modelType === 'string'
1202
- ? this.datePipe.transform(this.numberValue, this.format)
1203
- : this.numberValue;
1297
+ return ['date', 'string'].includes(this.modelType) ? new Date(this.numberValue) : this.numberValue;
1204
1298
  };
1205
1299
  XDatePickerComponent.prototype.portalAttached = function () {
1206
1300
  var _a, _b;
@@ -1210,6 +1304,7 @@
1210
1304
  var _a, _b;
1211
1305
  if (this.portalAttached()) {
1212
1306
  (_b = (_a = this.portal) === null || _a === void 0 ? void 0 : _a.overlayRef) === null || _b === void 0 ? void 0 : _b.detach();
1307
+ this.active = false;
1213
1308
  this.cdr.detectChanges();
1214
1309
  return true;
1215
1310
  }
@@ -1224,6 +1319,7 @@
1224
1319
  var _a;
1225
1320
  if (this.disabled || this.animating)
1226
1321
  return;
1322
+ this.active = true;
1227
1323
  var config = {
1228
1324
  backdropClass: '',
1229
1325
  positionStrategy: this.setPlacement(),
@@ -1262,6 +1358,7 @@
1262
1358
  preset: this.preset,
1263
1359
  valueChange: this.valueChange,
1264
1360
  positionChange: this.positionChange,
1361
+ inputCom: this.inputCom,
1265
1362
  closePortal: function () { return _this.closeSubject.next(); },
1266
1363
  destroyPortal: function () { return _this.destroyPortal(); },
1267
1364
  nodeEmit: function (node, sure) {
@@ -1315,7 +1412,7 @@
1315
1412
  this.portalAttached() && ((_b = (_a = this.portal) === null || _a === void 0 ? void 0 : _a.overlayRef) === null || _b === void 0 ? void 0 : _b.updatePositionStrategy(this.setPlacement()));
1316
1413
  };
1317
1414
  XDatePickerComponent.prototype.setClassMap = function () {
1318
- i1.XClearClass(this.labelMap);
1415
+ i2.XClearClass(this.labelMap);
1319
1416
  this.labelMap["x-text-align-" + this.labelAlign] = this.labelAlign ? true : false;
1320
1417
  };
1321
1418
  XDatePickerComponent.prototype.formControlChanges = function () {
@@ -1324,9 +1421,9 @@
1324
1421
  };
1325
1422
  return XDatePickerComponent;
1326
1423
  }(XDatePickerProperty));
1327
- /** @nocollapse */ XDatePickerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XDatePickerComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i1__namespace.XConfigService }, { token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace$1.XPortalService }, { token: i0__namespace.ViewContainerRef }, { token: i1__namespace$1.DatePipe }, { token: i4__namespace$1.Overlay }], target: i0__namespace.ɵɵFactoryTarget.Component });
1328
- /** @nocollapse */ XDatePickerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.3", type: XDatePickerComponent, selector: "x-date-picker", providers: [baseForm.XValueAccessor(XDatePickerComponent), i1$1.DatePipe], viewQueries: [{ propertyName: "datePicker", first: true, predicate: ["datePicker"], descendants: true, static: true }, { propertyName: "inputCom", first: true, predicate: ["inputCom"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div #datePicker class=\"x-date-picker\">\r\n <div class=\"x-date-picker-row\">\r\n <x-input\r\n #inputCom\r\n type=\"text\"\r\n [label]=\"label\"\r\n [labelWidth]=\"labelWidth\"\r\n [labelAlign]=\"labelAlign\"\r\n [justify]=\"justify\"\r\n [align]=\"align\"\r\n [direction]=\"direction\"\r\n [disabled]=\"disabled\"\r\n [required]=\"required\"\r\n [icon]=\"icon\"\r\n [placeholder]=\"placeholder\"\r\n [readonly]=\"readonly\"\r\n [clearable]=\"clearable && inputClearable\"\r\n [(ngModel)]=\"displayValue\"\r\n [valueTpl]=\"valueTpl\"\r\n [valueTplContext]=\"valueTplContext\"\r\n [size]=\"size\"\r\n [bordered]=\"bordered\"\r\n [before]=\"before\"\r\n [after]=\"after\"\r\n [pattern]=\"pattern\"\r\n [message]=\"message\"\r\n (clearEmit)=\"clearEmit()\"\r\n (xInput)=\"onInput()\"\r\n (xClick)=\"showPortal()\"\r\n (xMouseenter)=\"menter()\"\r\n (xMouseleave)=\"mleave()\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n", styles: ["x-date-picker{display:inline-block}.x-date-picker{margin:0;padding:0;width:100%}"], components: [{ type: i5__namespace.XInputComponent, selector: "x-input" }], directives: [{ type: i6__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i6__namespace.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
1329
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XDatePickerComponent, decorators: [{
1424
+ /** @nocollapse */ XDatePickerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i2__namespace.XConfigService }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace$1.XPortalService }, { token: i0__namespace.ViewContainerRef }, { token: i1__namespace.DatePipe }, { token: i4__namespace$1.Overlay }], target: i0__namespace.ɵɵFactoryTarget.Component });
1425
+ /** @nocollapse */ XDatePickerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XDatePickerComponent, selector: "x-date-picker", providers: [baseForm.XValueAccessor(XDatePickerComponent), i1.DatePipe], viewQueries: [{ propertyName: "datePicker", first: true, predicate: ["datePicker"], descendants: true, static: true }, { propertyName: "inputCom", first: true, predicate: ["inputCom"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div #datePicker class=\"x-date-picker\">\r\n <div class=\"x-date-picker-row\">\r\n <x-input\r\n #inputCom\r\n type=\"text\"\r\n [label]=\"label\"\r\n [labelWidth]=\"labelWidth\"\r\n [labelAlign]=\"labelAlign\"\r\n [justify]=\"justify\"\r\n [align]=\"align\"\r\n [direction]=\"direction\"\r\n [disabled]=\"disabled\"\r\n [required]=\"required\"\r\n [icon]=\"icon\"\r\n [placeholder]=\"placeholder\"\r\n [readonly]=\"readonly\"\r\n [clearable]=\"clearable && inputClearable\"\r\n [(ngModel)]=\"displayValue\"\r\n [valueTpl]=\"valueTpl\"\r\n [valueTplContext]=\"valueTplContext\"\r\n [size]=\"size\"\r\n [bordered]=\"bordered\"\r\n [before]=\"before\"\r\n [after]=\"after\"\r\n [pattern]=\"pattern\"\r\n [message]=\"message\"\r\n [pointer]=\"pointer\"\r\n [(active)]=\"active\"\r\n (clearEmit)=\"clearEmit()\"\r\n (xInput)=\"onInput()\"\r\n (xClick)=\"showPortal()\"\r\n (xMouseenter)=\"menter()\"\r\n (xMouseleave)=\"mleave()\"\r\n ></x-input>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-date-picker{display:inline-block}.x-date-picker{margin:0;padding:0;width:100%}.x-date-picker x-input{width:100%}\n"], components: [{ type: i5__namespace.XInputComponent, selector: "x-input" }], directives: [{ type: i6__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i6__namespace.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
1426
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerComponent, decorators: [{
1330
1427
  type: i0.Component,
1331
1428
  args: [{
1332
1429
  selector: "" + XDatePickerPrefix,
@@ -1334,9 +1431,9 @@
1334
1431
  styleUrls: ['./date-picker.component.scss'],
1335
1432
  encapsulation: i0.ViewEncapsulation.None,
1336
1433
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
1337
- providers: [baseForm.XValueAccessor(XDatePickerComponent), i1$1.DatePipe]
1434
+ providers: [baseForm.XValueAccessor(XDatePickerComponent), i1.DatePipe]
1338
1435
  }]
1339
- }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i1__namespace.XConfigService }, { type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace$1.XPortalService }, { type: i0__namespace.ViewContainerRef }, { type: i1__namespace$1.DatePipe }, { type: i4__namespace$1.Overlay }]; }, propDecorators: { datePicker: [{
1436
+ }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i2__namespace.XConfigService }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace$1.XPortalService }, { type: i0__namespace.ViewContainerRef }, { type: i1__namespace.DatePipe }, { type: i4__namespace$1.Overlay }]; }, propDecorators: { datePicker: [{
1340
1437
  type: i0.ViewChild,
1341
1438
  args: ['datePicker', { static: true }]
1342
1439
  }], inputCom: [{
@@ -1352,6 +1449,9 @@
1352
1449
  this.i18n = i18n;
1353
1450
  this.type = 'date';
1354
1451
  this.display = new Date();
1452
+ this.startDisplay = new Date();
1453
+ this.endDisplay = i2.XAddMonths(this.startDisplay, 1);
1454
+ this.value = [];
1355
1455
  this.locale = {};
1356
1456
  this.preset = [];
1357
1457
  this._unSubject = new rxjs.Subject();
@@ -1360,7 +1460,7 @@
1360
1460
  this.animating(false);
1361
1461
  event.toState === 'void' && this.destroyPortal();
1362
1462
  };
1363
- XDateRangePortalComponent.prototype.start = function (event) {
1463
+ XDateRangePortalComponent.prototype.start = function () {
1364
1464
  this.animating(true);
1365
1465
  };
1366
1466
  XDateRangePortalComponent.prototype.ngOnInit = function () {
@@ -1388,11 +1488,14 @@
1388
1488
  this._unSubject.unsubscribe();
1389
1489
  };
1390
1490
  XDateRangePortalComponent.prototype.init = function () {
1391
- if (!i1.XIsEmpty(this.value)) {
1491
+ if (!i2.XIsEmpty(this.value)) {
1392
1492
  this.setDefault();
1393
1493
  }
1394
1494
  else {
1495
+ this.value = [];
1395
1496
  this.model = this.display;
1497
+ this.startModel = this.model;
1498
+ this.endModel = i2.XAddMonths(this.model, 1);
1396
1499
  }
1397
1500
  this.time = this.model.getTime();
1398
1501
  this._type = this.type;
@@ -1403,21 +1506,39 @@
1403
1506
  event.stopPropagation();
1404
1507
  };
1405
1508
  XDateRangePortalComponent.prototype.setDefault = function () {
1406
- var date = new Date(this.value);
1509
+ var date = new Date();
1407
1510
  this.model = date;
1511
+ if (this.value.length > 0) {
1512
+ this.startModel = new Date(this.value[0]);
1513
+ this.startDisplay = this.startModel;
1514
+ }
1515
+ if (this.value.length > 1) {
1516
+ this.endModel = new Date(this.value[1]);
1517
+ this.endDisplay = this.endModel;
1518
+ }
1408
1519
  };
1409
1520
  XDateRangePortalComponent.prototype.setDisplay = function (date) {
1410
1521
  this.display = new Date(date.getFullYear(), date.getMonth(), 1);
1522
+ this.startDisplay = this.display;
1523
+ this.endDisplay = i2.XAddMonths(this.display, 1);
1411
1524
  };
1412
1525
  XDateRangePortalComponent.prototype.dateChange = function (date) {
1413
- this.setDisplay(date);
1414
- this.model = date;
1415
- this.setModel(this.model, new Date(this.time));
1416
- if (['date-time', 'date-hour', 'date-minute'].includes(this._type)) {
1417
- this.nodeEmit(this.model, false);
1418
- }
1419
- else {
1420
- this.nodeEmit(this.model);
1526
+ var time = date.getTime();
1527
+ if (this.value.length === 0) {
1528
+ this.value.push(time);
1529
+ this.startNodeEmit(date);
1530
+ }
1531
+ else if (this.value.length === 1) {
1532
+ if (time > this.value[0]) {
1533
+ this.value.push(time);
1534
+ this.endNodeEmit(date);
1535
+ }
1536
+ else {
1537
+ this.value.unshift(time);
1538
+ this.startNodeEmit(date);
1539
+ this.endNodeEmit(new Date(this.value[1]));
1540
+ }
1541
+ this.nodeEmit(this.value.map(function (x) { return new Date(x); }));
1421
1542
  }
1422
1543
  };
1423
1544
  XDateRangePortalComponent.prototype.typeChange = function (type) {
@@ -1428,7 +1549,7 @@
1428
1549
  this.setDisplay(date);
1429
1550
  if (this._type === 'month') {
1430
1551
  this.model = date;
1431
- this.nodeEmit(date);
1552
+ // this.nodeEmit(date);
1432
1553
  }
1433
1554
  else {
1434
1555
  this.type = this._type;
@@ -1439,7 +1560,7 @@
1439
1560
  this.setDisplay(date);
1440
1561
  if (this._type === 'year') {
1441
1562
  this.model = date;
1442
- this.nodeEmit(date);
1563
+ // this.nodeEmit(date);
1443
1564
  }
1444
1565
  else {
1445
1566
  this.type = 'month';
@@ -1476,17 +1597,17 @@
1476
1597
  this.dateChange(new Date());
1477
1598
  };
1478
1599
  XDateRangePortalComponent.prototype.onYesterday = function () {
1479
- this.dateChange(i1.XAddDays(new Date(), -1));
1600
+ this.dateChange(i2.XAddDays(new Date(), -1));
1480
1601
  };
1481
1602
  XDateRangePortalComponent.prototype.onTomorrow = function () {
1482
- this.dateChange(i1.XAddDays(new Date(), 1));
1603
+ this.dateChange(i2.XAddDays(new Date(), 1));
1483
1604
  };
1484
1605
  XDateRangePortalComponent.prototype.onPresetFunc = function (item) {
1485
1606
  this.dateChange(item.func());
1486
1607
  };
1487
1608
  XDateRangePortalComponent.prototype.selectTime = function (time) {
1488
1609
  this.time = time.getTime();
1489
- this.nodeEmit(this.setModel(this.model, time), false);
1610
+ // this.nodeEmit(this.setModel(this.model, time), false);
1490
1611
  this.cdr.detectChanges();
1491
1612
  };
1492
1613
  XDateRangePortalComponent.prototype.setModel = function (date, time) {
@@ -1495,9 +1616,9 @@
1495
1616
  };
1496
1617
  return XDateRangePortalComponent;
1497
1618
  }());
1498
- /** @nocollapse */ XDateRangePortalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XDateRangePortalComponent, deps: [{ token: i1__namespace$1.DatePipe }, { token: i1__namespace$1.LowerCasePipe }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.XI18nService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1499
- /** @nocollapse */ XDateRangePortalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.3", type: XDateRangePortalComponent, selector: "x-date-range-portal", host: { listeners: { "@x-connect-base-animation.done": "done($event)", "@x-connect-base-animation.start": "start($event)" }, properties: { "@x-connect-base-animation": "this.placement" } }, providers: [i1$1.DatePipe, i1$1.LowerCasePipe], ngImport: i0__namespace, template: "<div class=\"x-date-picker-portal {{ type }}\" [ngSwitch]=\"type\">\r\n <ng-container *ngSwitchCase=\"'date'\">\r\n <div class=\"x-date-picker-portal-header\">\r\n <ng-container *ngTemplateOutlet=\"dateHeaderTpl\"></ng-container>\r\n </div>\r\n <div class=\"x-date-picker-portal-body\">\r\n <x-picker-date [display]=\"display\" [model]=\"model\" (modelChange)=\"dateChange($event)\"></x-picker-date>\r\n </div>\r\n <div *ngIf=\"preset\" class=\"x-date-picker-portal-preset\">\r\n <ng-container *ngFor=\"let item of preset\">\r\n <x-button type=\"text\" *ngIf=\"item.id === 'yesterday'\" (click)=\"onYesterday()\">{{ locale.yesterday }}</x-button>\r\n <x-button type=\"text\" *ngIf=\"item.id === 'today'\" (click)=\"onToday()\">{{ locale.today }}</x-button>\r\n <x-button type=\"text\" *ngIf=\"item.id === 'tomorrow'\" (click)=\"onTomorrow()\">{{ locale.tomorrow }}</x-button>\r\n <x-button type=\"text\" *ngIf=\"item.func\" (click)=\"onPresetFunc(item)\">{{ item.label }}</x-button>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'month'\">\r\n <div class=\"x-date-picker-portal-header\">\r\n <ng-container *ngTemplateOutlet=\"monthHeaderTpl\"></ng-container>\r\n </div>\r\n <div class=\"x-date-picker-portal-body\">\r\n <x-picker-month [display]=\"display\" [model]=\"model\" (modelChange)=\"monthChange($event)\"></x-picker-month>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'year'\">\r\n <div class=\"x-date-picker-portal-header\">\r\n <ng-container *ngTemplateOutlet=\"yearHeaderTpl\"></ng-container>\r\n </div>\r\n <div class=\"x-date-picker-portal-body\">\r\n <x-picker-year\r\n [display]=\"display\"\r\n [model]=\"model\"\r\n (modelChange)=\"yearChange($event)\"\r\n (startChange)=\"yearStartChange($event)\"\r\n ></x-picker-year>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-time'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH:mm:ss', timeType: 'time' }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-hour'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH', timeType: 'hour' }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date-minute'\">\r\n <ng-container *ngTemplateOutlet=\"dateTimeHourMinuteTpl; context: { timeFormat: 'HH:mm', timeType: 'minute' }\"></ng-container>\r\n </ng-container>\r\n </div>\r\n \r\n <ng-template #dateHeaderTpl>\r\n <x-button icon=\"fto-chevrons-left\" size=\"small\" onlyIcon (click)=\"nextYear(-1)\"></x-button>\r\n <x-button icon=\"fto-chevron-left\" size=\"small\" onlyIcon (click)=\"nextMonth(-1)\"></x-button>\r\n <div class=\"x-date-picker-portal-year-month\">\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeChange('year')\">{{ display | date: 'yyyy' }}{{ locale.year }}</x-button>\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeChange('month')\">{{ getLocaleMonth(display) }}</x-button>\r\n </div>\r\n <x-button icon=\"fto-chevron-right\" size=\"small\" onlyIcon (click)=\"nextMonth(1)\"></x-button>\r\n <x-button icon=\"fto-chevrons-right\" size=\"small\" onlyIcon (click)=\"nextYear(1)\"></x-button>\r\n </ng-template>\r\n \r\n <ng-template #monthHeaderTpl>\r\n <x-button icon=\"fto-chevron-left\" size=\"small\" onlyIcon (click)=\"nextYear(-1)\"></x-button>\r\n <div class=\"x-date-picker-portal-year-month\">\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeChange('year')\">{{ display | date: 'yyyy' }}{{ locale.year }}</x-button>\r\n </div>\r\n <x-button icon=\"fto-chevron-right\" size=\"small\" onlyIcon (click)=\"nextYear(1)\"></x-button>\r\n </ng-template>\r\n \r\n <ng-template #yearHeaderTpl>\r\n <x-button icon=\"fto-chevron-left\" size=\"small\" onlyIcon (click)=\"nextYears(-10)\"></x-button>\r\n <div class=\"x-date-picker-portal-year-month\">\r\n <x-button type=\"text\" size=\"small\">{{ startYear }}</x-button> -\r\n <x-button type=\"text\" size=\"small\">{{ startYear + 9 }}</x-button>\r\n </div>\r\n <x-button icon=\"fto-chevron-right\" size=\"small\" onlyIcon (click)=\"nextYears(10)\"></x-button>\r\n </ng-template>\r\n \r\n <ng-template #dateTimeHourMinuteTpl let-timeFormat=\"timeFormat\" let-timeType=\"timeType\">\r\n <div class=\"x-date-picker-portal-content\">\r\n <div class=\"x-date-picker-portal-date\">\r\n <div class=\"x-date-picker-portal-header\">\r\n <ng-container *ngTemplateOutlet=\"dateHeaderTpl\"></ng-container>\r\n </div>\r\n <div class=\"x-date-picker-portal-body\">\r\n <x-picker-date [display]=\"display\" [model]=\"model\" (modelChange)=\"dateChange($event)\"></x-picker-date>\r\n </div>\r\n </div>\r\n <div class=\"x-date-picker-portal-time\">\r\n <div class=\"x-date-picker-portal-time-label\">\r\n <x-button type=\"text\" size=\"small\">{{ time | date: timeFormat }}</x-button>\r\n </div>\r\n <x-time-picker-frame [type]=\"timeType\" [value]=\"time\" (nodeEmit)=\"selectTime($event)\"></x-time-picker-frame>\r\n </div>\r\n </div>\r\n <div class=\"x-date-picker-portal-footer\">\r\n <x-button type=\"primary\" size=\"small\" (click)=\"nodeEmit(model)\">{{ locale.sure }}</x-button>\r\n </div>\r\n </ng-template>\r\n ", styles: [".x-date-range-portal{margin:.0625rem 0;font-size:var(--x-font-size);color:var(--x-text);border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color);background-color:var(--x-background);width:16rem;display:flex;flex-direction:column;font-size:var(--x-font-size-small)}.x-date-range-portal.date-time{width:27rem}.x-date-range-portal.date-hour{width:19.75rem}.x-date-range-portal.date-minute{width:23.375rem}.x-date-range-portal-content{display:flex}.x-date-range-portal-header{display:flex;align-items:center;justify-content:space-between;padding:.4rem;border-bottom:var(--x-border-width) solid var(--x-border)}.x-date-range-portal-preset{display:flex;align-items:center;justify-content:center;border-top:var(--x-border-width) solid var(--x-border)}.x-date-range-portal-preset>x-button{flex:1}.x-date-range-portal-year-month{flex:1;text-align:center}.x-date-range-portal-body{padding:.4rem}.x-date-range-portal-footer{display:flex;justify-content:flex-end;border-top:var(--x-border-width) var(--x-border-style) var(--x-border);padding:.5rem}.x-date-range-portal-date{flex:1}.x-date-range-portal-time{display:flex;flex-direction:column}.x-date-range-portal-time-label{padding:.4rem;text-align:center;border-left:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-date-range-portal-time .x-time-picker-frame{border-left-width:var(--x-border-width);border-bottom-width:0;border-right-width:0;border-top-width:var(--x-border-width);box-shadow:none}"], components: [{ type: XPickerDateComponent, selector: "x-picker-date" }, { type: i4__namespace.XButtonComponent, selector: "x-button" }, { type: XPickerMonthComponent, selector: "x-picker-month" }, { type: XPickerYearComponent, selector: "x-picker-year" }, { type: i7__namespace.XTimePickerFrameComponent, selector: "x-time-picker-frame", inputs: ["type", "value"], outputs: ["nodeEmit"] }], directives: [{ type: i1__namespace$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "date": i1__namespace$1.DatePipe }, animations: [i1.XConnectBaseAnimation], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
1500
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XDateRangePortalComponent, decorators: [{
1619
+ /** @nocollapse */ XDateRangePortalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDateRangePortalComponent, deps: [{ token: i1__namespace.DatePipe }, { token: i1__namespace.LowerCasePipe }, { token: i0__namespace.ChangeDetectorRef }, { token: i3__namespace.XI18nService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1620
+ /** @nocollapse */ XDateRangePortalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XDateRangePortalComponent, selector: "x-date-range-portal", host: { listeners: { "@x-connect-base-animation.done": "done($event)", "@x-connect-base-animation.start": "start($event)" }, properties: { "@x-connect-base-animation": "this.placement" } }, providers: [i1.DatePipe, i1.LowerCasePipe], ngImport: i0__namespace, template: "<div class=\"x-date-range-portal {{ type }}\" [ngSwitch]=\"type\">\r\n <ng-container *ngSwitchCase=\"'date'\">\r\n <div class=\"x-date-range-portal-header\">\r\n <ng-container *ngTemplateOutlet=\"startDateHeaderTpl\"></ng-container>\r\n <ng-container *ngTemplateOutlet=\"endDateHeaderTpl\"></ng-container>\r\n </div>\r\n <div class=\"x-date-range-portal-body\">\r\n <x-picker-date\r\n class=\"x-date-range-portal-start\"\r\n [display]=\"startDisplay\"\r\n [model]=\"startModel\"\r\n (modelChange)=\"dateChange($event)\"\r\n rangePicker\r\n ></x-picker-date>\r\n <x-picker-date\r\n class=\"x-date-range-portal-end\"\r\n [display]=\"endDisplay\"\r\n [model]=\"endModel\"\r\n (modelChange)=\"dateChange($event)\"\r\n rangePicker\r\n ></x-picker-date>\r\n </div>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #startDateHeaderTpl>\r\n <x-button icon=\"fto-chevrons-left\" size=\"small\" onlyIcon (click)=\"nextYear(-1)\"></x-button>\r\n <x-button icon=\"fto-chevron-left\" size=\"small\" onlyIcon (click)=\"nextMonth(-1)\"></x-button>\r\n <div class=\"x-date-range-portal-year-month\">\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeChange('year')\">{{ startDisplay | date: 'yyyy' }}{{ locale.year }}</x-button>\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeChange('month')\">{{ getLocaleMonth(startDisplay) }}</x-button>\r\n </div>\r\n <x-button icon=\"fto-chevron-right\" size=\"small\" onlyIcon style=\"visibility: hidden\"></x-button>\r\n <x-button icon=\"fto-chevrons-right\" size=\"small\" onlyIcon style=\"visibility: hidden\"></x-button>\r\n</ng-template>\r\n\r\n<ng-template #endDateHeaderTpl>\r\n <x-button icon=\"fto-chevrons-left\" size=\"small\" onlyIcon (click)=\"nextYear(-1)\" style=\"visibility: hidden\"></x-button>\r\n <x-button icon=\"fto-chevron-left\" size=\"small\" onlyIcon (click)=\"nextMonth(-1)\" style=\"visibility: hidden\"></x-button>\r\n <div class=\"x-date-range-portal-year-month\">\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeChange('year')\">{{ endDisplay | date: 'yyyy' }}{{ locale.year }}</x-button>\r\n <x-button type=\"text\" size=\"small\" (click)=\"typeChange('month')\">{{ getLocaleMonth(endDisplay) }}</x-button>\r\n </div>\r\n <x-button icon=\"fto-chevron-right\" size=\"small\" onlyIcon (click)=\"nextMonth(1)\"></x-button>\r\n <x-button icon=\"fto-chevrons-right\" size=\"small\" onlyIcon (click)=\"nextYear(1)\"></x-button>\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";.x-date-range-portal{margin:.0625rem 0;font-size:var(--x-font-size);color:var(--x-text);border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow) var(--x-box-shadow-light-color);background-color:var(--x-background);width:34rem;display:flex;flex-direction:column;font-size:var(--x-font-size-small)}.x-date-range-portal.date-time{width:27rem}.x-date-range-portal.date-hour{width:19.75rem}.x-date-range-portal.date-minute{width:23.375rem}.x-date-range-portal-content{display:flex}.x-date-range-portal-header{display:flex;align-items:center;justify-content:space-between;padding:.4rem;border-bottom:var(--x-border-width) solid var(--x-border)}.x-date-range-portal-preset{display:flex;align-items:center;justify-content:center;border-top:var(--x-border-width) solid var(--x-border)}.x-date-range-portal-preset>x-button{flex:1}.x-date-range-portal-year-month{flex:1;text-align:center}.x-date-range-portal-body{padding:.4rem;display:flex}.x-date-range-portal-start{flex:1;margin-right:.4rem}.x-date-range-portal-end{flex:1;margin-left:.4rem}.x-date-range-portal-footer{display:flex;justify-content:flex-end;border-top:var(--x-border-width) var(--x-border-style) var(--x-border);padding:.5rem}.x-date-range-portal-date{flex:1}.x-date-range-portal-time{display:flex;flex-direction:column}.x-date-range-portal-time-label{padding:.4rem;text-align:center;border-left:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-date-range-portal-time .x-time-picker-frame{border-width:var(--x-border-width) 0 0 var(--x-border-width);box-shadow:none}\n"], components: [{ type: XPickerDateComponent, selector: "x-picker-date" }, { type: i4__namespace.XButtonComponent, selector: "x-button" }], directives: [{ type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "date": i1__namespace.DatePipe }, animations: [i2.XConnectBaseAnimation], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
1621
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDateRangePortalComponent, decorators: [{
1501
1622
  type: i0.Component,
1502
1623
  args: [{
1503
1624
  selector: "" + XDateRangePortalPrefix,
@@ -1505,10 +1626,10 @@
1505
1626
  styleUrls: ['./date-range-portal.component.scss'],
1506
1627
  encapsulation: i0.ViewEncapsulation.None,
1507
1628
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
1508
- animations: [i1.XConnectBaseAnimation],
1509
- providers: [i1$1.DatePipe, i1$1.LowerCasePipe]
1629
+ animations: [i2.XConnectBaseAnimation],
1630
+ providers: [i1.DatePipe, i1.LowerCasePipe]
1510
1631
  }]
1511
- }], ctorParameters: function () { return [{ type: i1__namespace$1.DatePipe }, { type: i1__namespace$1.LowerCasePipe }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.XI18nService }]; }, propDecorators: { placement: [{
1632
+ }], ctorParameters: function () { return [{ type: i1__namespace.DatePipe }, { type: i1__namespace.LowerCasePipe }, { type: i0__namespace.ChangeDetectorRef }, { type: i3__namespace.XI18nService }]; }, propDecorators: { placement: [{
1512
1633
  type: i0.HostBinding,
1513
1634
  args: ['@x-connect-base-animation']
1514
1635
  }], done: [{
@@ -1521,11 +1642,10 @@
1521
1642
 
1522
1643
  var XDateRangeComponent = /** @class */ (function (_super) {
1523
1644
  __extends(XDateRangeComponent, _super);
1524
- function XDateRangeComponent(renderer, configService, elementRef, cdr, portalService, viewContainerRef, datePipe, overlay) {
1645
+ function XDateRangeComponent(renderer, configService, cdr, portalService, viewContainerRef, datePipe, overlay) {
1525
1646
  var _this = _super.call(this) || this;
1526
1647
  _this.renderer = renderer;
1527
1648
  _this.configService = configService;
1528
- _this.elementRef = elementRef;
1529
1649
  _this.cdr = cdr;
1530
1650
  _this.portalService = portalService;
1531
1651
  _this.viewContainerRef = viewContainerRef;
@@ -1533,11 +1653,10 @@
1533
1653
  _this.overlay = overlay;
1534
1654
  _this.modelType = 'date';
1535
1655
  _this.isInput = false;
1536
- _this.isFocus = false;
1537
1656
  _this.enter = false;
1538
1657
  _this.inputClearable = false;
1539
1658
  _this.animating = false;
1540
- _this.displayValue = '';
1659
+ _this.displayValue = [];
1541
1660
  _this.icon = 'fto-calendar';
1542
1661
  _this.maxNodes = 6;
1543
1662
  _this.protalTobottom = true;
@@ -1545,32 +1664,37 @@
1545
1664
  _this.dataChange = new rxjs.Subject();
1546
1665
  _this.positionChange = new rxjs.Subject();
1547
1666
  _this.closeSubject = new rxjs.Subject();
1667
+ _this.startDisplay = '';
1668
+ _this.endDisplay = '';
1669
+ _this.startActive = false;
1670
+ _this.endActive = false;
1548
1671
  _this._unSubject = new rxjs.Subject();
1549
1672
  return _this;
1550
1673
  }
1551
1674
  Object.defineProperty(XDateRangeComponent.prototype, "getRequired", {
1552
1675
  get: function () {
1553
- return this.required && i1.XIsEmpty(this.value);
1676
+ return this.required && i2.XIsEmpty(this.value);
1554
1677
  },
1555
1678
  enumerable: false,
1556
1679
  configurable: true
1557
1680
  });
1558
1681
  XDateRangeComponent.prototype.writeValue = function (value) {
1559
- if (i1.XIsDate(value)) {
1560
- this.modelType = 'date';
1561
- this.numberValue = value.getTime();
1562
- }
1563
- else if (i1.XIsNumber(value)) {
1564
- this.modelType = 'number';
1565
- this.numberValue = value;
1566
- }
1567
- else if (i1.XIsString(value)) {
1568
- this.modelType = 'string';
1569
- var valueTime = new Date(value).getTime();
1570
- this.numberValue = !isNaN(valueTime) ? valueTime : '';
1571
- }
1572
- else if (i1.XIsEmpty(value)) {
1573
- this.numberValue = '';
1682
+ if (i2.XIsUndefined(value))
1683
+ value = [];
1684
+ if (value.length > 0) {
1685
+ if (i2.XIsDate(value[0])) {
1686
+ this.modelType = 'date';
1687
+ this.numberValue = value.getTime();
1688
+ }
1689
+ else if (i2.XIsNumber(value[0])) {
1690
+ this.modelType = 'number';
1691
+ this.numberValue = value;
1692
+ }
1693
+ else if (i2.XIsString(value[0])) {
1694
+ this.modelType = 'string';
1695
+ var valueTime = value.map(function (x) { return new Date(x).getTime(); });
1696
+ this.numberValue = !isNaN(valueTime[0]) ? valueTime : [];
1697
+ }
1574
1698
  }
1575
1699
  this.value = value;
1576
1700
  this.setDisplayValue(this.numberValue);
@@ -1587,7 +1711,8 @@
1587
1711
  this.setPortal();
1588
1712
  };
1589
1713
  XDateRangeComponent.prototype.ngOnChanges = function (changes) {
1590
- if (i1.XIsChange(changes.type)) {
1714
+ var type = changes.type;
1715
+ if (i2.XIsChange(type)) {
1591
1716
  this.setFormat();
1592
1717
  this.setDisplayValue(this.numberValue);
1593
1718
  }
@@ -1598,7 +1723,7 @@
1598
1723
  };
1599
1724
  XDateRangeComponent.prototype.setSubject = function () {
1600
1725
  var _this = this;
1601
- this.closeSubject.pipe(operators.takeUntil(this._unSubject)).subscribe(function (x) {
1726
+ this.closeSubject.pipe(operators.takeUntil(this._unSubject)).subscribe(function () {
1602
1727
  _this.closePortal();
1603
1728
  });
1604
1729
  };
@@ -1628,7 +1753,7 @@
1628
1753
  if (this.disabled)
1629
1754
  return;
1630
1755
  this.enter = true;
1631
- if (!i1.XIsEmpty(this.numberValue)) {
1756
+ if (!i2.XIsEmpty(this.numberValue)) {
1632
1757
  this.icon = '';
1633
1758
  this.inputClearable = true;
1634
1759
  this.cdr.detectChanges();
@@ -1645,9 +1770,9 @@
1645
1770
  }
1646
1771
  };
1647
1772
  XDateRangeComponent.prototype.clearEmit = function () {
1648
- this.value = '';
1649
- this.numberValue = '';
1650
- this.displayValue = '';
1773
+ this.value = [];
1774
+ this.numberValue = [];
1775
+ this.displayValue = [];
1651
1776
  this.mleave();
1652
1777
  this.valueChange.next(this.numberValue);
1653
1778
  this.modelChange();
@@ -1658,10 +1783,11 @@
1658
1783
  }
1659
1784
  };
1660
1785
  XDateRangeComponent.prototype.getValue = function () {
1786
+ var _this = this;
1661
1787
  return this.modelType === 'date'
1662
- ? new Date(this.numberValue)
1788
+ ? this.numberValue.map(function (x) { return new Date(x); })
1663
1789
  : this.modelType === 'string'
1664
- ? this.datePipe.transform(this.numberValue, this.format)
1790
+ ? this.numberValue.map(function (x) { return _this.datePipe.transform(x, _this.format); })
1665
1791
  : this.numberValue;
1666
1792
  };
1667
1793
  XDateRangeComponent.prototype.portalAttached = function () {
@@ -1672,6 +1798,7 @@
1672
1798
  var _a, _b;
1673
1799
  if (this.portalAttached()) {
1674
1800
  (_b = (_a = this.portal) === null || _a === void 0 ? void 0 : _a.overlayRef) === null || _b === void 0 ? void 0 : _b.detach();
1801
+ this.active = false;
1675
1802
  this.cdr.detectChanges();
1676
1803
  return true;
1677
1804
  }
@@ -1681,11 +1808,15 @@
1681
1808
  var _a, _b;
1682
1809
  (_b = (_a = this.portal) === null || _a === void 0 ? void 0 : _a.overlayRef) === null || _b === void 0 ? void 0 : _b.dispose();
1683
1810
  };
1684
- XDateRangeComponent.prototype.showPortal = function () {
1811
+ XDateRangeComponent.prototype.showPortal = function ($event, type) {
1685
1812
  var _this = this;
1686
1813
  var _a;
1814
+ $event.stopPropagation();
1687
1815
  if (this.disabled || this.animating)
1688
1816
  return;
1817
+ this.active = true;
1818
+ this.startActive = type === 'start';
1819
+ this.endActive = type === 'end';
1689
1820
  var config = {
1690
1821
  backdropClass: '',
1691
1822
  positionStrategy: this.setPlacement(),
@@ -1726,19 +1857,29 @@
1726
1857
  positionChange: this.positionChange,
1727
1858
  closePortal: function () { return _this.closeSubject.next(); },
1728
1859
  destroyPortal: function () { return _this.destroyPortal(); },
1729
- nodeEmit: function (node, sure) {
1860
+ nodeEmit: function (dates, sure) {
1730
1861
  if (sure === void 0) { sure = true; }
1731
- return _this.onNodeClick(node, sure);
1862
+ return _this.onNodeClick(dates, sure);
1732
1863
  },
1864
+ startNodeEmit: function (node) { return _this.startNodeClick(node); },
1865
+ endNodeEmit: function (node) { return _this.endNodeClick(node); },
1733
1866
  animating: function (ing) { return (_this.animating = ing); }
1734
1867
  });
1735
1868
  componentRef.changeDetectorRef.detectChanges();
1736
1869
  };
1737
- XDateRangeComponent.prototype.onNodeClick = function (date, sure) {
1870
+ XDateRangeComponent.prototype.startNodeClick = function (node) {
1871
+ this.startDisplay = this.datePipe.transform(node, this.format);
1872
+ this.cdr.detectChanges();
1873
+ };
1874
+ XDateRangeComponent.prototype.endNodeClick = function (node) {
1875
+ this.endDisplay = this.datePipe.transform(node, this.format);
1876
+ this.cdr.detectChanges();
1877
+ };
1878
+ XDateRangeComponent.prototype.onNodeClick = function (dates, sure) {
1738
1879
  if (sure === void 0) { sure = true; }
1739
1880
  this.isInput = false;
1740
1881
  if (sure) {
1741
- this.numberValue = date.getTime();
1882
+ this.numberValue = dates.map(function (x) { return x.getTime(); });
1742
1883
  this.value = this.getValue();
1743
1884
  this.setDisplayValue(this.numberValue);
1744
1885
  this.closeSubject.next();
@@ -1746,7 +1887,7 @@
1746
1887
  this.nodeEmit.emit(this.numberValue);
1747
1888
  }
1748
1889
  else {
1749
- this.setDisplayValue(date.getTime());
1890
+ this.setDisplayValue(dates.map(function (x) { return x.getTime(); }));
1750
1891
  this.cdr.markForCheck();
1751
1892
  }
1752
1893
  };
@@ -1754,16 +1895,16 @@
1754
1895
  this.isInput = true;
1755
1896
  };
1756
1897
  XDateRangeComponent.prototype.setDisplayValue = function (dateNumber) {
1757
- if (this.isInput && isNaN(this.displayValue) && !isNaN(Date.parse(this.displayValue))) {
1758
- this.displayValue = this.datePipe.transform(this.displayValue, this.format);
1759
- this.numberValue = new Date(this.displayValue).getTime();
1760
- this.value = this.getValue();
1761
- this.modelChange();
1762
- this.isInput = false;
1763
- }
1764
- else {
1765
- this.displayValue = this.datePipe.transform(dateNumber, this.format);
1766
- }
1898
+ var _this = this;
1899
+ // if (this.isInput && isNaN(this.startDisplay) && !isNaN(Date.parse(this.displayValue))) {
1900
+ // this.displayValue = this.datePipe.transform(this.displayValue, this.format);
1901
+ // this.numberValue = new Date(this.displayValue).getTime();
1902
+ // this.value = this.getValue();
1903
+ // this.modelChange();
1904
+ // this.isInput = false;
1905
+ // } else {
1906
+ this.displayValue = dateNumber.map(function (x) { return _this.datePipe.transform(x, _this.format); });
1907
+ // }
1767
1908
  };
1768
1909
  XDateRangeComponent.prototype.setPlacement = function () {
1769
1910
  return this.portalService.setPlacement({
@@ -1777,7 +1918,7 @@
1777
1918
  this.portalAttached() && ((_b = (_a = this.portal) === null || _a === void 0 ? void 0 : _a.overlayRef) === null || _b === void 0 ? void 0 : _b.updatePositionStrategy(this.setPlacement()));
1778
1919
  };
1779
1920
  XDateRangeComponent.prototype.setClassMap = function () {
1780
- i1.XClearClass(this.labelMap);
1921
+ i2.XClearClass(this.labelMap);
1781
1922
  this.labelMap["x-text-align-" + this.labelAlign] = this.labelAlign ? true : false;
1782
1923
  };
1783
1924
  XDateRangeComponent.prototype.formControlChanges = function () {
@@ -1786,9 +1927,9 @@
1786
1927
  };
1787
1928
  return XDateRangeComponent;
1788
1929
  }(XDateRangeProperty));
1789
- /** @nocollapse */ XDateRangeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XDateRangeComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i1__namespace.XConfigService }, { token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace$1.XPortalService }, { token: i0__namespace.ViewContainerRef }, { token: i1__namespace$1.DatePipe }, { token: i4__namespace$1.Overlay }], target: i0__namespace.ɵɵFactoryTarget.Component });
1790
- /** @nocollapse */ XDateRangeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.3", type: XDateRangeComponent, selector: "x-date-range", providers: [baseForm.XValueAccessor(XDateRangeComponent), i1$1.DatePipe], viewQueries: [{ propertyName: "dateRange", first: true, predicate: ["dateRange"], descendants: true, static: true }, { propertyName: "inputGroup", first: true, predicate: ["inputGroup"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div #dateRange class=\"x-date-range\" [class.x-date-range-focus]=\"isFocus\">\r\n <div class=\"x-date-range-row\">\r\n <x-input-group #inputGroup class=\"x-date-range-group\" bordered=\"false\" (click)=\"showPortal()\">\r\n <x-input #inputStartCom type=\"text\" placeholder=\"\u5F00\u59CB\u65E5\u671F\" (xFocus)=\"isFocus = true\" (xBlur)=\"isFocus = false\"></x-input>\r\n <x-icon type=\"fto-arrow-right\"></x-icon>\r\n <x-input #inputEndCom type=\"text\" placeholder=\"\u7ED3\u675F\u65E5\u671F\" (xFocus)=\"isFocus = true\" (xBlur)=\"isFocus = false\"></x-input>\r\n <x-icon [type]=\"icon\"></x-icon>\r\n </x-input-group>\r\n </div>\r\n</div>\r\n", styles: ["x-date-range{display:inline-block}.x-date-range{margin:0;padding:0;width:100%}.x-date-range-row{flex:1;display:flex;align-items:center}.x-date-range-group{display:inline-flex;flex:1;width:100%;font-size:var(--x-font-size);background-color:var(--x-background);background-image:none;border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow) #0000;transition:all var(--x-animation-duration-slow)}.x-date-range-group .x-input-group{display:flex;align-items:center}.x-date-range-group .x-input-group>x-icon{color:var(--x-text-400);transition:all var(--x-animation-duration-base);z-index:2;padding:.4rem}.x-date-range-group .x-input-group>x-input input{height:inherit!important;line-height:inherit!important}.x-date-range-group:hover{border-color:var(--x-primary-300)}.x-date-range-focus .x-date-range-group{border-color:var(--x-primary)}"], components: [{ type: i5__namespace.XInputGroupComponent, selector: "x-input-group" }, { type: i5__namespace.XInputComponent, selector: "x-input" }, { type: i6__namespace$1.XIconComponent, selector: "x-icon" }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
1791
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XDateRangeComponent, decorators: [{
1930
+ /** @nocollapse */ XDateRangeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDateRangeComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i2__namespace.XConfigService }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace$1.XPortalService }, { token: i0__namespace.ViewContainerRef }, { token: i1__namespace.DatePipe }, { token: i4__namespace$1.Overlay }], target: i0__namespace.ɵɵFactoryTarget.Component });
1931
+ /** @nocollapse */ XDateRangeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: XDateRangeComponent, selector: "x-date-range", providers: [baseForm.XValueAccessor(XDateRangeComponent), i1.DatePipe], viewQueries: [{ propertyName: "dateRange", first: true, predicate: ["dateRange"], descendants: true, static: true }, { propertyName: "inputGroup", first: true, predicate: ["inputGroup"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div #dateRange class=\"x-date-range\" [class.x-date-range-active]=\"active\">\r\n <div class=\"x-date-range-row\">\r\n <x-input-group #inputGroup class=\"x-date-range-group\" bordered=\"false\" (click)=\"showPortal($event)\">\r\n <x-input\r\n #inputStartCom\r\n type=\"text\"\r\n placeholder=\"\u5F00\u59CB\u65E5\u671F\"\r\n [(active)]=\"startActive\"\r\n (click)=\"showPortal($event, 'start')\"\r\n [(ngModel)]=\"startDisplay\"\r\n ></x-input>\r\n <x-icon type=\"fto-arrow-right\"></x-icon>\r\n <x-input\r\n #inputEndCom\r\n type=\"text\"\r\n placeholder=\"\u7ED3\u675F\u65E5\u671F\"\r\n [(active)]=\"endActive\"\r\n (click)=\"showPortal($event, 'end')\"\r\n [(ngModel)]=\"endDisplay\"\r\n ></x-input>\r\n <x-icon [type]=\"icon\"></x-icon>\r\n </x-input-group>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";x-date-range{display:inline-block}.x-date-range{margin:0;padding:0;width:100%}.x-date-range-row{flex:1;display:flex;align-items:center}.x-date-range-group{display:inline-flex;flex:1;width:100%;font-size:var(--x-font-size);background-color:var(--x-background);background-image:none;border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);box-shadow:var(--x-box-shadow) transparent;transition:all var(--x-animation-duration-slow)}.x-date-range-group .x-input-group{display:flex;align-items:center}.x-date-range-group .x-input-group>x-icon{color:var(--x-text-400);transition:all var(--x-animation-duration-base);z-index:2;padding:.4rem}.x-date-range-group .x-input-group>x-input{width:6rem}.x-date-range-group .x-input-group>x-input input{padding-left:0!important;padding-right:0!important;margin-left:.4rem;margin-right:.4rem}.x-date-range-group .x-input-group>x-input.x-input-active input{background-color:gray}.x-date-range-group:hover{border-color:var(--x-primary-300)}.x-date-range-active .x-date-range-group{border-color:var(--x-primary)}\n"], components: [{ type: i5__namespace.XInputGroupComponent, selector: "x-input-group" }, { type: i5__namespace.XInputComponent, selector: "x-input" }, { type: i6__namespace$1.XIconComponent, selector: "x-icon" }], directives: [{ type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
1932
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDateRangeComponent, decorators: [{
1792
1933
  type: i0.Component,
1793
1934
  args: [{
1794
1935
  selector: "" + XDateRangePrefix,
@@ -1796,9 +1937,9 @@
1796
1937
  styleUrls: ['./date-range.component.scss'],
1797
1938
  encapsulation: i0.ViewEncapsulation.None,
1798
1939
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
1799
- providers: [baseForm.XValueAccessor(XDateRangeComponent), i1$1.DatePipe]
1940
+ providers: [baseForm.XValueAccessor(XDateRangeComponent), i1.DatePipe]
1800
1941
  }]
1801
- }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i1__namespace.XConfigService }, { type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace$1.XPortalService }, { type: i0__namespace.ViewContainerRef }, { type: i1__namespace$1.DatePipe }, { type: i4__namespace$1.Overlay }]; }, propDecorators: { dateRange: [{
1942
+ }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i2__namespace.XConfigService }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace$1.XPortalService }, { type: i0__namespace.ViewContainerRef }, { type: i1__namespace.DatePipe }, { type: i4__namespace$1.Overlay }]; }, propDecorators: { dateRange: [{
1802
1943
  type: i0.ViewChild,
1803
1944
  args: ['dateRange', { static: true }]
1804
1945
  }], inputGroup: [{
@@ -1811,8 +1952,8 @@
1811
1952
  }
1812
1953
  return XDatePickerModule;
1813
1954
  }());
1814
- /** @nocollapse */ XDatePickerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XDatePickerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1815
- /** @nocollapse */ XDatePickerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XDatePickerModule, declarations: [XDatePickerComponent,
1955
+ /** @nocollapse */ XDatePickerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1956
+ /** @nocollapse */ XDatePickerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerModule, declarations: [XDatePickerComponent,
1816
1957
  XDatePickerPortalComponent,
1817
1958
  XPickerDateComponent,
1818
1959
  XPickerMonthComponent,
@@ -1823,7 +1964,7 @@
1823
1964
  XPickerYearProperty,
1824
1965
  XDateRangeComponent,
1825
1966
  XDateRangePortalComponent,
1826
- XDateRangeProperty], imports: [i1$1.CommonModule,
1967
+ XDateRangeProperty], imports: [i1.CommonModule,
1827
1968
  i6.FormsModule,
1828
1969
  i6.ReactiveFormsModule,
1829
1970
  i2$1.XPortalModule,
@@ -1831,15 +1972,15 @@
1831
1972
  i5.XInputModule,
1832
1973
  i4.XButtonModule,
1833
1974
  i6$1.XIconModule,
1834
- i2.XI18nModule,
1975
+ i3.XI18nModule,
1835
1976
  baseForm.XBaseFormModule], exports: [XDatePickerComponent,
1836
1977
  XDateRangeComponent,
1837
1978
  XDatePickerPortalComponent,
1838
1979
  XPickerDateComponent,
1839
1980
  XPickerMonthComponent,
1840
1981
  XPickerYearComponent] });
1841
- /** @nocollapse */ XDatePickerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XDatePickerModule, imports: [[
1842
- i1$1.CommonModule,
1982
+ /** @nocollapse */ XDatePickerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerModule, imports: [[
1983
+ i1.CommonModule,
1843
1984
  i6.FormsModule,
1844
1985
  i6.ReactiveFormsModule,
1845
1986
  i2$1.XPortalModule,
@@ -1847,10 +1988,10 @@
1847
1988
  i5.XInputModule,
1848
1989
  i4.XButtonModule,
1849
1990
  i6$1.XIconModule,
1850
- i2.XI18nModule,
1991
+ i3.XI18nModule,
1851
1992
  baseForm.XBaseFormModule
1852
1993
  ]] });
1853
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.3", ngImport: i0__namespace, type: XDatePickerModule, decorators: [{
1994
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: XDatePickerModule, decorators: [{
1854
1995
  type: i0.NgModule,
1855
1996
  args: [{
1856
1997
  declarations: [
@@ -1876,7 +2017,7 @@
1876
2017
  XPickerYearComponent
1877
2018
  ],
1878
2019
  imports: [
1879
- i1$1.CommonModule,
2020
+ i1.CommonModule,
1880
2021
  i6.FormsModule,
1881
2022
  i6.ReactiveFormsModule,
1882
2023
  i2$1.XPortalModule,
@@ -1884,7 +2025,7 @@
1884
2025
  i5.XInputModule,
1885
2026
  i4.XButtonModule,
1886
2027
  i6$1.XIconModule,
1887
- i2.XI18nModule,
2028
+ i3.XI18nModule,
1888
2029
  baseForm.XBaseFormModule
1889
2030
  ],
1890
2031
  entryComponents: [XDatePickerPortalComponent, XDateRangePortalComponent]
@@ -1918,5 +2059,5 @@
1918
2059
 
1919
2060
  Object.defineProperty(exports, '__esModule', { value: true });
1920
2061
 
1921
- })));
2062
+ }));
1922
2063
  //# sourceMappingURL=ng-nest-ui-date-picker.umd.js.map