@coreui/angular-pro 4.1.0 → 4.2.0-next.0

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 (279) hide show
  1. package/README.md +174 -174
  2. package/esm2020/lib/accordion/accordion/accordion.component.mjs +3 -3
  3. package/esm2020/lib/accordion/accordion-button/accordion-button.directive.mjs +3 -3
  4. package/esm2020/lib/accordion/accordion-item/accordion-item.component.mjs +3 -3
  5. package/esm2020/lib/accordion/accordion.module.mjs +4 -4
  6. package/esm2020/lib/accordion/accordion.service.mjs +3 -3
  7. package/esm2020/lib/alert/alert-heading.directive.mjs +3 -3
  8. package/esm2020/lib/alert/alert-link.directive.mjs +3 -3
  9. package/esm2020/lib/alert/alert.component.mjs +3 -3
  10. package/esm2020/lib/alert/alert.module.mjs +4 -4
  11. package/esm2020/lib/avatar/avatar.component.mjs +3 -3
  12. package/esm2020/lib/avatar/avatar.module.mjs +4 -4
  13. package/esm2020/lib/backdrop/backdrop.service.mjs +3 -3
  14. package/esm2020/lib/badge/badge.component.mjs +3 -3
  15. package/esm2020/lib/badge/badge.module.mjs +4 -4
  16. package/esm2020/lib/breadcrumb/breadcrumb/breadcrumb.component.mjs +3 -3
  17. package/esm2020/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.mjs +3 -3
  18. package/esm2020/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.mjs +3 -3
  19. package/esm2020/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.mjs +3 -3
  20. package/esm2020/lib/breadcrumb/breadcrumb.module.mjs +4 -4
  21. package/esm2020/lib/button/button-close.directive.mjs +3 -3
  22. package/esm2020/lib/button/button.directive.mjs +3 -3
  23. package/esm2020/lib/button/button.module.mjs +4 -4
  24. package/esm2020/lib/button-group/button-group/button-group.component.mjs +3 -3
  25. package/esm2020/lib/button-group/button-group.module.mjs +4 -4
  26. package/esm2020/lib/button-group/button-toolbar/button-toolbar.component.mjs +3 -3
  27. package/esm2020/lib/calendar/calendar/calendar-class-view.pipe.mjs +19 -0
  28. package/esm2020/lib/calendar/calendar/calendar.component.mjs +366 -0
  29. package/esm2020/lib/calendar/calendar-month/calendar-class-day.pipe.mjs +28 -0
  30. package/esm2020/lib/calendar/calendar-month/calendar-class-month.pipe.mjs +21 -0
  31. package/esm2020/lib/calendar/calendar-month/calendar-class-year.pipe.mjs +21 -0
  32. package/esm2020/lib/calendar/calendar-month/calendar-day.directive.mjs +81 -0
  33. package/esm2020/lib/calendar/calendar-month/calendar-day.pipe.mjs +18 -0
  34. package/esm2020/lib/calendar/calendar-month/calendar-month.component.mjs +320 -0
  35. package/esm2020/lib/calendar/calendar-month/calendar-weekday.pipe.mjs +20 -0
  36. package/esm2020/lib/calendar/calendar-navigation/calendar-navigation.component.mjs +79 -0
  37. package/esm2020/lib/calendar/calendar.module.mjs +59 -0
  38. package/esm2020/lib/calendar/calendar.service.mjs +60 -0
  39. package/esm2020/lib/calendar/calendar.utils.mjs +273 -0
  40. package/esm2020/lib/calendar/index.mjs +2 -0
  41. package/esm2020/lib/calendar/public_api.mjs +5 -0
  42. package/esm2020/lib/callout/callout.component.mjs +3 -3
  43. package/esm2020/lib/callout/callout.module.mjs +4 -4
  44. package/esm2020/lib/card/card-body.component.mjs +3 -3
  45. package/esm2020/lib/card/card-footer.component.mjs +3 -3
  46. package/esm2020/lib/card/card-group.component.mjs +3 -3
  47. package/esm2020/lib/card/card-header-actions.component.mjs +3 -3
  48. package/esm2020/lib/card/card-header.component.mjs +3 -3
  49. package/esm2020/lib/card/card-img-overlay/card-img-overlay.component.mjs +3 -3
  50. package/esm2020/lib/card/card-img.directive.mjs +3 -3
  51. package/esm2020/lib/card/card-link.directive.mjs +3 -3
  52. package/esm2020/lib/card/card-subtitle.directive.mjs +3 -3
  53. package/esm2020/lib/card/card-text.directive.mjs +3 -3
  54. package/esm2020/lib/card/card-title.directive.mjs +3 -3
  55. package/esm2020/lib/card/card.component.mjs +3 -3
  56. package/esm2020/lib/card/card.module.mjs +4 -4
  57. package/esm2020/lib/carousel/carousel/carousel.component.mjs +3 -3
  58. package/esm2020/lib/carousel/carousel-caption/carousel-caption.component.mjs +3 -3
  59. package/esm2020/lib/carousel/carousel-control/carousel-control.component.mjs +3 -3
  60. package/esm2020/lib/carousel/carousel-indicators/carousel-indicators.component.mjs +3 -3
  61. package/esm2020/lib/carousel/carousel-inner/carousel-inner.component.mjs +3 -3
  62. package/esm2020/lib/carousel/carousel-item/carousel-item.component.mjs +3 -3
  63. package/esm2020/lib/carousel/carousel-state.mjs +3 -3
  64. package/esm2020/lib/carousel/carousel.config.mjs +3 -3
  65. package/esm2020/lib/carousel/carousel.module.mjs +4 -4
  66. package/esm2020/lib/carousel/carousel.service.mjs +3 -3
  67. package/esm2020/lib/collapse/collapse.directive.mjs +3 -3
  68. package/esm2020/lib/collapse/collapse.module.mjs +4 -4
  69. package/esm2020/lib/date-range-picker/date-range-picker/date-range-picker.component.mjs +503 -0
  70. package/esm2020/lib/date-range-picker/date-range-picker.module.mjs +57 -0
  71. package/esm2020/lib/date-range-picker/end-date.directive.mjs +17 -0
  72. package/esm2020/lib/date-range-picker/index.mjs +2 -0
  73. package/esm2020/lib/date-range-picker/public_api.mjs +3 -0
  74. package/esm2020/lib/date-range-picker/start-date.directive.mjs +17 -0
  75. package/esm2020/lib/dropdown/dropdown/dropdown.component.mjs +6 -6
  76. package/esm2020/lib/dropdown/dropdown-close/dropdown-close.directive.mjs +3 -3
  77. package/esm2020/lib/dropdown/dropdown-divider/dropdown-divider.directive.mjs +3 -3
  78. package/esm2020/lib/dropdown/dropdown-header/dropdown-header.directive.mjs +3 -3
  79. package/esm2020/lib/dropdown/dropdown-item/dropdown-item-plain.directive.mjs +3 -3
  80. package/esm2020/lib/dropdown/dropdown-item/dropdown-item.directive.mjs +3 -3
  81. package/esm2020/lib/dropdown/dropdown-menu/dropdown-menu.directive.mjs +3 -3
  82. package/esm2020/lib/dropdown/dropdown.module.mjs +4 -4
  83. package/esm2020/lib/dropdown/dropdown.service.mjs +3 -3
  84. package/esm2020/lib/element-cover/element-cover.component.mjs +3 -3
  85. package/esm2020/lib/element-cover/element-cover.module.mjs +4 -4
  86. package/esm2020/lib/footer/footer.component.mjs +3 -3
  87. package/esm2020/lib/footer/footer.module.mjs +4 -4
  88. package/esm2020/lib/form/form/form.directive.mjs +3 -3
  89. package/esm2020/lib/form/form-check/form-check-input.directive.mjs +3 -3
  90. package/esm2020/lib/form/form-check/form-check-label.directive.mjs +3 -3
  91. package/esm2020/lib/form/form-check/form-check.component.mjs +3 -3
  92. package/esm2020/lib/form/form-control/form-control.directive.mjs +3 -3
  93. package/esm2020/lib/form/form-feedback/form-feedback.component.mjs +3 -3
  94. package/esm2020/lib/form/form-floating/form-floating.directive.mjs +3 -3
  95. package/esm2020/lib/form/form-label/form-label.directive.mjs +3 -3
  96. package/esm2020/lib/form/form-select/form-select.directive.mjs +3 -3
  97. package/esm2020/lib/form/form-text/form-text.directive.mjs +3 -3
  98. package/esm2020/lib/form/form.module.mjs +4 -4
  99. package/esm2020/lib/form/input-group/input-group.component.mjs +3 -3
  100. package/esm2020/lib/form/input-group-text/input-group-text.directive.mjs +3 -3
  101. package/esm2020/lib/grid/col.component.mjs +3 -3
  102. package/esm2020/lib/grid/col.directive.mjs +3 -3
  103. package/esm2020/lib/grid/container.component.mjs +3 -3
  104. package/esm2020/lib/grid/grid.module.mjs +4 -4
  105. package/esm2020/lib/grid/gutter.directive.mjs +3 -3
  106. package/esm2020/lib/grid/row.component.mjs +3 -3
  107. package/esm2020/lib/grid/row.directive.mjs +3 -3
  108. package/esm2020/lib/header/header/header.component.mjs +3 -3
  109. package/esm2020/lib/header/header-brand/header-brand.component.mjs +3 -3
  110. package/esm2020/lib/header/header-divider/header-divider.component.mjs +3 -3
  111. package/esm2020/lib/header/header-nav/header-nav.component.mjs +3 -3
  112. package/esm2020/lib/header/header-text/header-text.component.mjs +3 -3
  113. package/esm2020/lib/header/header-toggler/header-toggler.directive.mjs +3 -3
  114. package/esm2020/lib/header/header.module.mjs +4 -4
  115. package/esm2020/lib/image/img.directive.mjs +3 -3
  116. package/esm2020/lib/image/img.module.mjs +4 -4
  117. package/esm2020/lib/list-group/list-group-item.directive.mjs +3 -3
  118. package/esm2020/lib/list-group/list-group.directive.mjs +3 -3
  119. package/esm2020/lib/list-group/list-group.module.mjs +4 -4
  120. package/esm2020/lib/loading-button/loading-button.component.mjs +3 -3
  121. package/esm2020/lib/loading-button/loading-button.module.mjs +4 -4
  122. package/esm2020/lib/modal/modal/modal.component.mjs +3 -3
  123. package/esm2020/lib/modal/modal-body/modal-body.component.mjs +3 -3
  124. package/esm2020/lib/modal/modal-content/modal-content.component.mjs +3 -3
  125. package/esm2020/lib/modal/modal-dialog/modal-dialog.component.mjs +3 -3
  126. package/esm2020/lib/modal/modal-dismiss/modal-toggle.directive.mjs +3 -3
  127. package/esm2020/lib/modal/modal-footer/modal-footer.component.mjs +3 -3
  128. package/esm2020/lib/modal/modal-header/modal-header.component.mjs +3 -3
  129. package/esm2020/lib/modal/modal-title/modal-title.directive.mjs +3 -3
  130. package/esm2020/lib/modal/modal.module.mjs +4 -4
  131. package/esm2020/lib/modal/modal.service.mjs +3 -3
  132. package/esm2020/lib/multi-select/multi-select/multi-select.component.mjs +3 -3
  133. package/esm2020/lib/multi-select/multi-select-native-select/multi-select-native-select.component.mjs +3 -3
  134. package/esm2020/lib/multi-select/multi-select-optgroup/multi-select-optgroup-label.component.mjs +3 -3
  135. package/esm2020/lib/multi-select/multi-select-optgroup/multi-select-optgroup.component.mjs +3 -3
  136. package/esm2020/lib/multi-select/multi-select-option/multi-select-option.component.mjs +3 -3
  137. package/esm2020/lib/multi-select/multi-select-tag/multi-select-tag.component.mjs +3 -3
  138. package/esm2020/lib/multi-select/multi-select.module.mjs +4 -4
  139. package/esm2020/lib/multi-select/multi-select.service.mjs +3 -3
  140. package/esm2020/lib/nav/nav-item.component.mjs +3 -3
  141. package/esm2020/lib/nav/nav-link.directive.mjs +3 -3
  142. package/esm2020/lib/nav/nav.component.mjs +3 -3
  143. package/esm2020/lib/nav/nav.module.mjs +4 -4
  144. package/esm2020/lib/navbar/navbar-brand/navbar-brand.directive.mjs +3 -3
  145. package/esm2020/lib/navbar/navbar-nav/navbar-nav.component.mjs +3 -3
  146. package/esm2020/lib/navbar/navbar-text/navbar-text.component.mjs +3 -3
  147. package/esm2020/lib/navbar/navbar-toggler/navbar-toggler.directive.mjs +3 -3
  148. package/esm2020/lib/navbar/navbar.component.mjs +3 -3
  149. package/esm2020/lib/navbar/navbar.module.mjs +4 -4
  150. package/esm2020/lib/offcanvas/offcanvas/offcanvas.component.mjs +3 -3
  151. package/esm2020/lib/offcanvas/offcanvas-body/offcanvas-body.component.mjs +3 -3
  152. package/esm2020/lib/offcanvas/offcanvas-header/offcanvas-header.component.mjs +3 -3
  153. package/esm2020/lib/offcanvas/offcanvas-title/offcanvas-title.directive.mjs +3 -3
  154. package/esm2020/lib/offcanvas/offcanvas-toggle/offcanvas-toggle.directive.mjs +3 -3
  155. package/esm2020/lib/offcanvas/offcanvas.module.mjs +4 -4
  156. package/esm2020/lib/offcanvas/offcanvas.service.mjs +3 -3
  157. package/esm2020/lib/pagination/page-item/page-item.component.mjs +3 -3
  158. package/esm2020/lib/pagination/page-item/page-item.directive.mjs +3 -3
  159. package/esm2020/lib/pagination/page-link/page-link.directive.mjs +3 -3
  160. package/esm2020/lib/pagination/pagination/pagination.component.mjs +3 -3
  161. package/esm2020/lib/pagination/pagination.module.mjs +4 -4
  162. package/esm2020/lib/placeholder/placeholder-animation.directive.mjs +3 -3
  163. package/esm2020/lib/placeholder/placeholder.directive.mjs +3 -3
  164. package/esm2020/lib/placeholder/placeholder.module.mjs +4 -4
  165. package/esm2020/lib/popover/popover/popover.component.mjs +3 -3
  166. package/esm2020/lib/popover/popover.directive.mjs +3 -3
  167. package/esm2020/lib/popover/popover.module.mjs +4 -4
  168. package/esm2020/lib/progress/progress-bar.component.mjs +3 -3
  169. package/esm2020/lib/progress/progress.component.mjs +3 -3
  170. package/esm2020/lib/progress/progress.module.mjs +4 -4
  171. package/esm2020/lib/services/class-toggle.service.mjs +3 -3
  172. package/esm2020/lib/services/intersection.service.mjs +3 -3
  173. package/esm2020/lib/services/listeners.service.mjs +3 -3
  174. package/esm2020/lib/shared/html-attr.directive.mjs +3 -3
  175. package/esm2020/lib/shared/shared.module.mjs +4 -4
  176. package/esm2020/lib/shared/template-id.directive.mjs +3 -3
  177. package/esm2020/lib/sidebar/sidebar/sidebar.component.mjs +3 -3
  178. package/esm2020/lib/sidebar/sidebar-backdrop/sidebar-backdrop.service.mjs +3 -3
  179. package/esm2020/lib/sidebar/sidebar-brand/sidebar-brand.component.mjs +3 -3
  180. package/esm2020/lib/sidebar/sidebar-footer/sidebar-footer.component.mjs +3 -3
  181. package/esm2020/lib/sidebar/sidebar-header/sidebar-header.component.mjs +3 -3
  182. package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav-badge.pipe.mjs +3 -3
  183. package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav-divider.component.mjs +3 -3
  184. package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav-icon.pipe.mjs +3 -3
  185. package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav-item-class.pipe.mjs +3 -3
  186. package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav-label.component.mjs +3 -3
  187. package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav-link.component.mjs +6 -6
  188. package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav-link.pipe.mjs +3 -3
  189. package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav-title.component.mjs +3 -3
  190. package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav.component.mjs +6 -6
  191. package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav.service.mjs +6 -6
  192. package/esm2020/lib/sidebar/sidebar-toggle/sidebar-toggle.directive.mjs +3 -3
  193. package/esm2020/lib/sidebar/sidebar-toggler/sidebar-toggler.component.mjs +3 -3
  194. package/esm2020/lib/sidebar/sidebar.module.mjs +4 -4
  195. package/esm2020/lib/sidebar/sidebar.service.mjs +3 -3
  196. package/esm2020/lib/smart-pagination/smart-pagination.component.mjs +3 -3
  197. package/esm2020/lib/smart-pagination/smart-pagination.module.mjs +4 -4
  198. package/esm2020/lib/smart-table/smart-table/smart-table.component.mjs +3 -3
  199. package/esm2020/lib/smart-table/smart-table-filter/smart-table-filter.component.mjs +3 -3
  200. package/esm2020/lib/smart-table/smart-table-head/smart-table-head.component.mjs +3 -3
  201. package/esm2020/lib/smart-table/smart-table-items-per-page-selector/smart-table-items-per-page-selector.component.mjs +3 -3
  202. package/esm2020/lib/smart-table/smart-table.module.mjs +4 -4
  203. package/esm2020/lib/spinner/spinner.component.mjs +3 -3
  204. package/esm2020/lib/spinner/spinner.module.mjs +4 -4
  205. package/esm2020/lib/table/table-active.directive.mjs +3 -3
  206. package/esm2020/lib/table/table-color.directive.mjs +3 -3
  207. package/esm2020/lib/table/table.directive.mjs +3 -3
  208. package/esm2020/lib/table/table.module.mjs +4 -4
  209. package/esm2020/lib/tabs/tab-content/tab-content.component.mjs +3 -3
  210. package/esm2020/lib/tabs/tab-content-ref.directive.mjs +3 -3
  211. package/esm2020/lib/tabs/tab-pane/tab-pane.component.mjs +3 -3
  212. package/esm2020/lib/tabs/tab.service.mjs +3 -3
  213. package/esm2020/lib/tabs/tabs.module.mjs +4 -4
  214. package/esm2020/lib/time-picker/index.mjs +2 -0
  215. package/esm2020/lib/time-picker/public_api.mjs +3 -0
  216. package/esm2020/lib/time-picker/time-picker-roll-col/time-picker-roll-am-pm.component.mjs +103 -0
  217. package/esm2020/lib/time-picker/time-picker-roll-col/time-picker-roll-col.component.mjs +104 -0
  218. package/esm2020/lib/time-picker/time-picker.component.mjs +434 -0
  219. package/esm2020/lib/time-picker/time-picker.module.mjs +50 -0
  220. package/esm2020/lib/time-picker/time.utils.mjs +645 -0
  221. package/esm2020/lib/toast/toast/toast.component.mjs +3 -3
  222. package/esm2020/lib/toast/toast-body/toast-body.component.mjs +3 -3
  223. package/esm2020/lib/toast/toast-close.directive.mjs +3 -3
  224. package/esm2020/lib/toast/toast-header/toast-header.component.mjs +3 -3
  225. package/esm2020/lib/toast/toast.module.mjs +4 -4
  226. package/esm2020/lib/toast/toaster/toaster-host.directive.mjs +3 -3
  227. package/esm2020/lib/toast/toaster/toaster.component.mjs +3 -3
  228. package/esm2020/lib/toast/toaster/toaster.service.mjs +3 -3
  229. package/esm2020/lib/tooltip/tooltip/tooltip.component.mjs +3 -3
  230. package/esm2020/lib/tooltip/tooltip.directive.mjs +3 -3
  231. package/esm2020/lib/tooltip/tooltip.module.mjs +4 -4
  232. package/esm2020/lib/utilities/align.directive.mjs +3 -3
  233. package/esm2020/lib/utilities/bg-color.directive.mjs +3 -3
  234. package/esm2020/lib/utilities/border.directive.mjs +3 -3
  235. package/esm2020/lib/utilities/rounded.directive.mjs +3 -3
  236. package/esm2020/lib/utilities/text-color.directive.mjs +3 -3
  237. package/esm2020/lib/utilities/utilities.module.mjs +4 -4
  238. package/esm2020/lib/widget/widget-stat-a/widget-stat-a.component.mjs +3 -3
  239. package/esm2020/lib/widget/widget-stat-b/widget-stat-b.component.mjs +3 -3
  240. package/esm2020/lib/widget/widget-stat-c/widget-stat-c.component.mjs +3 -3
  241. package/esm2020/lib/widget/widget-stat-d/widget-stat-d.component.mjs +3 -3
  242. package/esm2020/lib/widget/widget-stat-e/widget-stat-e.component.mjs +3 -3
  243. package/esm2020/lib/widget/widget-stat-f/widget-stat-f.component.mjs +3 -3
  244. package/esm2020/lib/widget/widget.module.mjs +4 -4
  245. package/esm2020/public-api.mjs +4 -1
  246. package/fesm2015/coreui-angular-pro.mjs +5009 -1813
  247. package/fesm2015/coreui-angular-pro.mjs.map +1 -1
  248. package/fesm2020/coreui-angular-pro.mjs +4989 -1828
  249. package/fesm2020/coreui-angular-pro.mjs.map +1 -1
  250. package/lib/calendar/calendar/calendar-class-view.pipe.d.ts +7 -0
  251. package/lib/calendar/calendar/calendar.component.d.ts +155 -0
  252. package/lib/calendar/calendar-month/calendar-class-day.pipe.d.ts +15 -0
  253. package/lib/calendar/calendar-month/calendar-class-month.pipe.d.ts +7 -0
  254. package/lib/calendar/calendar-month/calendar-class-year.pipe.d.ts +7 -0
  255. package/lib/calendar/calendar-month/calendar-day.directive.d.ts +29 -0
  256. package/lib/calendar/calendar-month/calendar-day.pipe.d.ts +8 -0
  257. package/lib/calendar/calendar-month/calendar-month.component.d.ts +121 -0
  258. package/lib/calendar/calendar-month/calendar-weekday.pipe.d.ts +8 -0
  259. package/lib/calendar/calendar-navigation/calendar-navigation.component.d.ts +30 -0
  260. package/lib/calendar/calendar.module.d.ts +18 -0
  261. package/lib/calendar/calendar.service.d.ts +33 -0
  262. package/lib/calendar/calendar.utils.d.ts +26 -0
  263. package/lib/calendar/index.d.ts +1 -0
  264. package/lib/calendar/public_api.d.ts +4 -0
  265. package/lib/date-range-picker/date-range-picker/date-range-picker.component.d.ts +235 -0
  266. package/lib/date-range-picker/date-range-picker.module.d.ts +16 -0
  267. package/lib/date-range-picker/end-date.directive.d.ts +8 -0
  268. package/lib/date-range-picker/index.d.ts +1 -0
  269. package/lib/date-range-picker/public_api.d.ts +2 -0
  270. package/lib/date-range-picker/start-date.directive.d.ts +8 -0
  271. package/lib/time-picker/index.d.ts +1 -0
  272. package/lib/time-picker/public_api.d.ts +2 -0
  273. package/lib/time-picker/time-picker-roll-col/time-picker-roll-am-pm.component.d.ts +39 -0
  274. package/lib/time-picker/time-picker-roll-col/time-picker-roll-col.component.d.ts +38 -0
  275. package/lib/time-picker/time-picker.component.d.ts +169 -0
  276. package/lib/time-picker/time-picker.module.d.ts +14 -0
  277. package/lib/time-picker/time.utils.d.ts +57 -0
  278. package/package.json +8 -2
  279. package/public-api.d.ts +3 -0
@@ -0,0 +1,235 @@
1
+ import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
3
+ import { BooleanInput } from '@angular/cdk/coercion';
4
+ import { BreakpointObserver } from '@angular/cdk/layout';
5
+ import { Colors } from '../../coreui.types';
6
+ import { CalendarComponent } from '../../calendar';
7
+ import { DateFilterType, DayFormatType, WeekdayFormatType } from '../../calendar/calendar.service';
8
+ import { StartDateDirective } from '../start-date.directive';
9
+ import { EndDateDirective } from '../end-date.directive';
10
+ import * as i0 from "@angular/core";
11
+ export interface ICalendarRange {
12
+ [key: string]: Date[];
13
+ }
14
+ export declare type TCustomRange = [string, Date[]];
15
+ /** Must be a valid date string */
16
+ export declare class DateRangePickerComponent implements OnInit, OnDestroy, ControlValueAccessor {
17
+ private breakpointObserver;
18
+ static ngAcceptInputType_disabled: BooleanInput;
19
+ static ngAcceptInputType_navYearFirst: BooleanInput;
20
+ constructor(breakpointObserver: BreakpointObserver);
21
+ /**
22
+ * Set the format of day name.
23
+ * @default 'numeric'
24
+ * @type DayFormatType
25
+ */
26
+ dayFormat: DayFormatType;
27
+ /**
28
+ * The number of calendars that render on desktop devices.
29
+ * @type number
30
+ * @default 2
31
+ */
32
+ set calendars(value: number);
33
+ get calendars(): number;
34
+ private _calendars;
35
+ /**
36
+ * Toggle visibility or set the content of the cleaner button.
37
+ * @type boolean
38
+ * @default true
39
+ */
40
+ set cleaner(value: boolean);
41
+ get cleaner(): boolean;
42
+ private _cleaner;
43
+ /**
44
+ * Set date format.
45
+ * We use date-fns to format dates. Visit https://date-fns.org/v2.28.0/docs/format to check accepted patterns.
46
+ */
47
+ format?: string;
48
+ /**
49
+ * Toggle visibility or set the content of the input indicator.
50
+ * @type boolean
51
+ * @default true
52
+ */
53
+ set indicator(value: boolean);
54
+ get indicator(): boolean;
55
+ private _indicator;
56
+ /**
57
+ * Toggle the readonly state for the component.
58
+ * @type boolean
59
+ * @default false
60
+ */
61
+ set inputReadOnly(value: boolean);
62
+ get inputReadOnly(): boolean;
63
+ private _inputReadOnly;
64
+ /**
65
+ * Reorder year-month navigation, and render year first.
66
+ * @type boolean
67
+ * @default false
68
+ */
69
+ set navYearFirst(value: boolean);
70
+ get navYearFirst(): boolean;
71
+ private _navYearFirst;
72
+ /**
73
+ * Specifies short hints that are visible in start date and end date inputs.
74
+ * type string
75
+ */
76
+ placeholder: string | string[];
77
+ /**
78
+ * Predefined date ranges the user can select from.
79
+ * @type ICalendarRange
80
+ */
81
+ ranges?: object;
82
+ /**
83
+ * Sets the color context of the cancel button to one of CoreUI’s themed colors.
84
+ * @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
85
+ * @default 'secondary'
86
+ */
87
+ rangesButtonsColor?: Colors;
88
+ /**
89
+ * Size the ranges button small or large.
90
+ * @type 'sm' | 'lg' | undefined
91
+ */
92
+ rangesButtonsSize?: 'sm' | 'lg';
93
+ /**
94
+ * Set the ranges button variant to an outlined button or a ghost button.
95
+ * @type 'outline' | 'ghost' | undefined
96
+ */
97
+ rangesButtonsVariant?: 'outline' | 'ghost';
98
+ /**
99
+ * Default icon or character that separates two dates.
100
+ * @type boolean
101
+ * @default true
102
+ */
103
+ set separator(value: boolean);
104
+ get separator(): boolean;
105
+ private _separator;
106
+ /**
107
+ * Size the component small or large.
108
+ * @type 'sm' | 'lg' | undefined
109
+ * @default undefined
110
+ */
111
+ size?: 'sm' | 'lg';
112
+ /**
113
+ * Provide an additional time selection by adding select boxes to choose time.
114
+ * @type boolean
115
+ * @default false
116
+ */
117
+ set timepicker(value: boolean);
118
+ get timepicker(): boolean;
119
+ private _timepicker;
120
+ /**
121
+ * Toggle visibility or set the content of today button.
122
+ * @type string
123
+ * @default 'Today'
124
+ */
125
+ todayButton: string;
126
+ /**
127
+ * Sets the color context of the today button to one of CoreUI’s themed colors.
128
+ * @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
129
+ * @default 'primary'
130
+ */
131
+ todayButtonColor: Colors;
132
+ /**
133
+ * Size the today button small or large.
134
+ * @type 'sm' | 'lg'
135
+ * @default 'sm'
136
+ */
137
+ todayButtonSize: 'sm' | 'lg';
138
+ /**
139
+ * Set the today button variant to an outlined button or a ghost button.
140
+ * @type 'outline' | 'ghost' | undefined
141
+ */
142
+ todayButtonVariant?: 'outline' | 'ghost';
143
+ /**
144
+ * Toggle the visibility of the component.
145
+ * @type boolean
146
+ * @default false
147
+ */
148
+ set visible(value: boolean);
149
+ get visible(): boolean;
150
+ private _visible;
151
+ startDate?: Date | null;
152
+ endDate?: Date | null;
153
+ calendarDate?: Date;
154
+ disabledDates: Date[] | Date[][];
155
+ set firstDayOfWeek(value: number);
156
+ get firstDayOfWeek(): number;
157
+ private _firstDayOfWeek;
158
+ locale: string;
159
+ maxDate: Date | null;
160
+ minDate: Date | null;
161
+ set navigation(value: boolean);
162
+ get navigation(): boolean;
163
+ private _navigation;
164
+ /**
165
+ * Allow range selection.
166
+ * @type boolean
167
+ * @default false
168
+ */
169
+ set range(value: boolean);
170
+ get range(): boolean;
171
+ private _range;
172
+ dateFilter?: DateFilterType;
173
+ set disabled(value: boolean);
174
+ get disabled(): boolean;
175
+ private _disabled;
176
+ set value(value: Date[]);
177
+ get value(): Date[];
178
+ private _value;
179
+ /**
180
+ * Set length or format of day name.
181
+ * @type WeekdayFormatType
182
+ * @default 'short'
183
+ */
184
+ weekdayFormat: WeekdayFormatType;
185
+ readonly valueChange: EventEmitter<Date | Date[] | undefined>;
186
+ calendarCellHover: EventEmitter<Date | null>;
187
+ calendarDateChange: EventEmitter<Date>;
188
+ endDateChange: EventEmitter<Date | null>;
189
+ startDateChange: EventEmitter<Date | null>;
190
+ calendarComponent: CalendarComponent;
191
+ startDateDirective: StartDateDirective;
192
+ endDateDirective: EndDateDirective;
193
+ onBlur(): void;
194
+ isMobile: boolean;
195
+ customRanges: TCustomRange[];
196
+ set startDateValue(value: string);
197
+ get startDateValue(): string;
198
+ private _startDateValue;
199
+ set endDateValue(value: string);
200
+ get endDateValue(): string;
201
+ _endDateValue: string;
202
+ startDatePlaceholder: string;
203
+ endDatePlaceholder: string;
204
+ private layoutChanges;
205
+ startDateInput: FormControl<string | null>;
206
+ endDateInput: FormControl<string | null>;
207
+ dateRangeGroup: FormGroup;
208
+ set inputStartHoverValue(value: Date | null);
209
+ get inputStartHoverValue(): Date | null;
210
+ private _inputStartHoverValue;
211
+ set inputEndHoverValue(value: Date | null);
212
+ get inputEndHoverValue(): Date | null;
213
+ private _inputEndHoverValue;
214
+ ngOnInit(): void;
215
+ ngOnDestroy(): void;
216
+ getCustomRangeKey(customRange: any): any;
217
+ setCustomRange(customRange: any): void;
218
+ handleCalendarCellHover($event: Date | null): void;
219
+ handleCalendarDateChange($event: Date): void;
220
+ handleStartDateChange(date: Date | null): void;
221
+ handleEndDateChange(date: Date | null): void;
222
+ handleClear($event: MouseEvent): void;
223
+ handleStartDateInputChange($event: any): void;
224
+ handleEndDateInputChange($event: any): void;
225
+ forbiddenDate(date: Date): boolean | undefined;
226
+ setInputValue: (elementRef: ElementRef, date: Date | null) => void;
227
+ onChange: any;
228
+ onTouched: any;
229
+ registerOnChange(fn: any): void;
230
+ registerOnTouched(fn: any): void;
231
+ setDisabledState(isDisabled: boolean): void;
232
+ writeValue(value: (Date[])): void;
233
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerComponent, never>;
234
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "c-date-range-picker", ["cDateRangePicker"], { "dayFormat": "dayFormat"; "calendars": "calendars"; "cleaner": "cleaner"; "format": "format"; "indicator": "indicator"; "inputReadOnly": "inputReadOnly"; "navYearFirst": "navYearFirst"; "placeholder": "placeholder"; "ranges": "ranges"; "rangesButtonsColor": "rangesButtonsColor"; "rangesButtonsSize": "rangesButtonsSize"; "rangesButtonsVariant": "rangesButtonsVariant"; "separator": "separator"; "size": "size"; "timepicker": "timepicker"; "todayButton": "todayButton"; "todayButtonColor": "todayButtonColor"; "todayButtonSize": "todayButtonSize"; "todayButtonVariant": "todayButtonVariant"; "visible": "visible"; "startDate": "startDate"; "endDate": "endDate"; "calendarDate": "calendarDate"; "disabledDates": "disabledDates"; "firstDayOfWeek": "firstDayOfWeek"; "locale": "locale"; "maxDate": "maxDate"; "minDate": "minDate"; "navigation": "navigation"; "range": "range"; "dateFilter": "dateFilter"; "disabled": "disabled"; "value": "value"; "weekdayFormat": "weekdayFormat"; }, { "valueChange": "valueChange"; "calendarCellHover": "calendarCellHover"; "calendarDateChange": "calendarDateChange"; "endDateChange": "endDateChange"; "startDateChange": "startDateChange"; }, never, ["*"], false>;
235
+ }
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./date-range-picker/date-range-picker.component";
3
+ import * as i2 from "./start-date.directive";
4
+ import * as i3 from "./end-date.directive";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@angular/forms";
7
+ import * as i6 from "../button/button.module";
8
+ import * as i7 from "../calendar/calendar.module";
9
+ import * as i8 from "../shared/shared.module";
10
+ import * as i9 from "../form/form.module";
11
+ import * as i10 from "../dropdown/dropdown.module";
12
+ export declare class DateRangePickerModule {
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerModule, never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DateRangePickerModule, [typeof i1.DateRangePickerComponent, typeof i2.StartDateDirective, typeof i3.EndDateDirective], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.ButtonModule, typeof i7.CalendarModule, typeof i8.SharedModule, typeof i9.FormModule, typeof i10.DropdownModule], [typeof i1.DateRangePickerComponent]>;
15
+ static ɵinj: i0.ɵɵInjectorDeclaration<DateRangePickerModule>;
16
+ }
@@ -0,0 +1,8 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class EndDateDirective {
4
+ elementRef: ElementRef;
5
+ constructor(elementRef: ElementRef);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<EndDateDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<EndDateDirective, "[cEndDate]", ["cEndDate"], {}, {}, never, never, false>;
8
+ }
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -0,0 +1,2 @@
1
+ export { DateRangePickerComponent, ICalendarRange } from './date-range-picker/date-range-picker.component';
2
+ export { DateRangePickerModule } from './date-range-picker.module';
@@ -0,0 +1,8 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class StartDateDirective {
4
+ elementRef: ElementRef;
5
+ constructor(elementRef: ElementRef);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<StartDateDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StartDateDirective, "[cStartDate]", ["cStartDate"], {}, {}, never, never, false>;
8
+ }
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -0,0 +1,2 @@
1
+ export { TimePickerComponent } from './time-picker.component';
2
+ export { TimePickerModule } from './time-picker.module';
@@ -0,0 +1,39 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnChanges, QueryList, SimpleChanges } from '@angular/core';
2
+ import { DayPeriod } from '../time.utils';
3
+ import * as i0 from "@angular/core";
4
+ export interface IDayPeriod {
5
+ value: string;
6
+ label: string;
7
+ dayPeriod?: DayPeriod;
8
+ disabled?: boolean;
9
+ }
10
+ export declare class DayPeriodElementDirective {
11
+ elementRef: ElementRef;
12
+ constructor(elementRef: ElementRef);
13
+ cDayPeriodElement: IDayPeriod;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<DayPeriodElementDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DayPeriodElementDirective, "[cDayPeriodElement]", ["cDayPeriodElement"], { "cDayPeriodElement": "cDayPeriodElement"; }, {}, never, never, false>;
16
+ }
17
+ export declare class TimePickerRollAmPmComponent implements OnChanges, AfterViewInit {
18
+ elementRef: ElementRef;
19
+ constructor(elementRef: ElementRef);
20
+ private init;
21
+ disabled: boolean;
22
+ elements: IDayPeriod[];
23
+ onClick?: (value: number | string) => void;
24
+ selected?: number | string | null;
25
+ refresh?: boolean;
26
+ selectedChange: EventEmitter<any>;
27
+ get hostClasses(): {
28
+ 'time-picker-roll-col': boolean;
29
+ disabled: boolean;
30
+ };
31
+ dayPeriodElements: QueryList<DayPeriodElementDirective>;
32
+ ngAfterViewInit(): void;
33
+ ngOnChanges(changes: SimpleChanges): void;
34
+ scrollToElement(element: any): void;
35
+ handleElementClick($event: MouseEvent, element: any): void;
36
+ trackByElement(index: number, element: IDayPeriod): string;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerRollAmPmComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerRollAmPmComponent, "c-time-picker-roll-am-pm", never, { "disabled": "disabled"; "elements": "elements"; "onClick": "onClick"; "selected": "selected"; "refresh": "refresh"; }, { "selectedChange": "selectedChange"; }, never, never, false>;
39
+ }
@@ -0,0 +1,38 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnChanges, QueryList, SimpleChanges } from '@angular/core';
2
+ import { ITimeValue } from '../time.utils';
3
+ import * as i0 from "@angular/core";
4
+ export interface ITimePickerRollCol {
5
+ elements: ITimeValue[];
6
+ onClick?: (value: number | string) => void;
7
+ selected?: number | string | null;
8
+ }
9
+ export declare class TimeElementDirective {
10
+ elementRef: ElementRef;
11
+ constructor(elementRef: ElementRef);
12
+ cTimeElement: ITimeValue;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimeElementDirective, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TimeElementDirective, "[cTimeElement]", ["cTimeElement"], { "cTimeElement": "cTimeElement"; }, {}, never, never, false>;
15
+ }
16
+ export declare class TimePickerRollColComponent implements ITimePickerRollCol, OnChanges, AfterViewInit {
17
+ elementRef: ElementRef;
18
+ constructor(elementRef: ElementRef);
19
+ private init;
20
+ disabled: boolean;
21
+ elements: ITimeValue[];
22
+ onClick?: (value: number | string) => void;
23
+ selected?: number | string | null;
24
+ refresh?: boolean;
25
+ selectedChange: EventEmitter<any>;
26
+ get hostClasses(): {
27
+ 'time-picker-roll-col': boolean;
28
+ disabled: boolean;
29
+ };
30
+ timeElements: QueryList<TimeElementDirective>;
31
+ ngAfterViewInit(): void;
32
+ ngOnChanges(changes: SimpleChanges): void;
33
+ scrollToElement(element: any): void;
34
+ handleElementClick($event: MouseEvent, element: any): void;
35
+ trackByElement(index: number, element: ITimeValue): number;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerRollColComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerRollColComponent, "c-time-picker-roll-col", ["cTimePickerRollCol"], { "disabled": "disabled"; "elements": "elements"; "onClick": "onClick"; "selected": "selected"; "refresh": "refresh"; }, { "selectedChange": "selectedChange"; }, never, never, false>;
38
+ }
@@ -0,0 +1,169 @@
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
3
+ import { BooleanInput } from '@angular/cdk/coercion';
4
+ import { DateTimeFormatOptions, DayPeriod, ITimeValue } from './time.utils';
5
+ import * as i0 from "@angular/core";
6
+ export declare class TimePickerComponent implements OnChanges, OnInit, ControlValueAccessor {
7
+ constructor();
8
+ static ngAcceptInputType_cleaner: BooleanInput;
9
+ static ngAcceptInputType_disabled: BooleanInput;
10
+ static ngAcceptInputType_indicator: BooleanInput;
11
+ static ngAcceptInputType_inputReadOnly: BooleanInput;
12
+ static ngAcceptInputType_seconds: BooleanInput;
13
+ /**
14
+ * Toggle visibility or set the content of the cleaner button.
15
+ * @type boolean
16
+ * @default true
17
+ */
18
+ set cleaner(value: boolean);
19
+ get cleaner(): boolean;
20
+ private _cleaner;
21
+ /**
22
+ * Sets DateTime format options including timeZone
23
+ * @type DateTimeFormatOptions
24
+ * @default {}
25
+ * @note The date object doesn't store timeZone, it keeps the local timezone of the browser, regardless if you parsed UTC dates.
26
+ */
27
+ dateTimeFormatOptions: DateTimeFormatOptions;
28
+ /**
29
+ * Toggle the disabled state for the component.
30
+ * @type boolean
31
+ * @default false
32
+ */
33
+ set disabled(value: boolean);
34
+ get disabled(): boolean;
35
+ private _disabled;
36
+ /**
37
+ * Filter available hours to pick.
38
+ * @type (value: number) => boolean;
39
+ * @default undefined
40
+ */
41
+ filterHours?: (value: number) => boolean;
42
+ /**
43
+ * Filter available minutes to pick.
44
+ * @type (value: number) => boolean;
45
+ * @default undefined
46
+ */
47
+ filterMinutes?: (value: number) => boolean;
48
+ /**
49
+ * Filter available seconds to pick.
50
+ * @type (value: number) => boolean;
51
+ * @default undefined
52
+ */
53
+ filterSeconds?: (value: number) => boolean;
54
+ /**
55
+ * Toggle visibility or set the content of the input indicator.
56
+ * @type boolean
57
+ * @default true
58
+ */
59
+ set indicator(value: boolean);
60
+ get indicator(): boolean;
61
+ private _indicator;
62
+ /**
63
+ * Toggle the readonly state for the component.
64
+ * @type boolean
65
+ * @default false
66
+ */
67
+ set inputReadOnly(value: boolean);
68
+ get inputReadOnly(): boolean;
69
+ private _inputReadOnly;
70
+ /**
71
+ * Sets the default locale for components. If not set, it is inherited from the browser.
72
+ * @type string
73
+ * @default default
74
+ */
75
+ locale: string;
76
+ /**
77
+ * Specifies short hint visible in time input.
78
+ * @type string
79
+ * @default 'Select time'
80
+ */
81
+ placeholder: string;
82
+ /**
83
+ * Toggle seconds visibility.
84
+ * @type boolean
85
+ * @default false
86
+ */
87
+ set seconds(value: boolean);
88
+ get seconds(): boolean;
89
+ private _seconds;
90
+ /**
91
+ * Size the component small or large.
92
+ * @type 'sm' | 'lg' | undefined
93
+ * @default undefined
94
+ */
95
+ size?: 'sm' | 'lg';
96
+ /**
97
+ * Initial selected time.
98
+ * @type Date | string | null | number
99
+ * @default undefined
100
+ */
101
+ set time(value: Date | undefined);
102
+ get time(): Date | undefined;
103
+ private _time?;
104
+ private _timeInternal?;
105
+ /**
106
+ * Set the time picker variant to a roll or select.
107
+ * @type 'roll' | 'select'
108
+ * @default 'roll'
109
+ */
110
+ variant: 'roll' | 'select';
111
+ timeChange: EventEmitter<Date | undefined>;
112
+ onBlur(): void;
113
+ listOfHours: ITimeValue[];
114
+ listOfHours12: ITimeValue[];
115
+ listOfMinutes: ITimeValue[];
116
+ listOfSeconds: ITimeValue[];
117
+ hour12: boolean;
118
+ dayPeriods: {
119
+ value: string;
120
+ label: string;
121
+ }[];
122
+ set timeInputValue(value: string);
123
+ get timeInputValue(): string;
124
+ private _timeInputValue;
125
+ selectTime: FormGroup<{
126
+ selectHours: FormControl<number | null>;
127
+ selectMinutes: FormControl<number | null>;
128
+ selectSeconds: FormControl<number | null>;
129
+ selectDayPeriod: FormControl<DayPeriod | null>;
130
+ }>;
131
+ timeInput: FormControl<string | null>;
132
+ set hour(value: number);
133
+ get hour(): number;
134
+ private _hour;
135
+ set minute(value: number);
136
+ get minute(): number;
137
+ private _minute;
138
+ set second(value: number);
139
+ get second(): number;
140
+ private _second;
141
+ set dayPeriod(value: DayPeriod);
142
+ get dayPeriod(): DayPeriod;
143
+ private _dayPeriod;
144
+ setTime(): void;
145
+ clearTime(): void;
146
+ emitTime(time: Date | undefined): void;
147
+ ngOnInit(): void;
148
+ ngOnChanges(changes: SimpleChanges): void;
149
+ setTimeLists(): void;
150
+ updateSelectTime(time?: Date | undefined): void;
151
+ closestTime(timeArray: ITimeValue[], timeSegment: number): ITimeValue;
152
+ listOfTimeSegments(getListOfTimeSegments: (locale: string, dateTimeFormatOptions: DateTimeFormatOptions) => ITimeValue[], filterTimeSegments: ((timeSegmentValue: number) => boolean) | undefined): ITimeValue[];
153
+ handleSelectDayPeriodChange(dayPeriod: DayPeriod): void;
154
+ handleSelectHoursChange(hour: number): void;
155
+ handleSelectMinutesChange(minute: number): void;
156
+ handleSelectSecondsChange(second: number): void;
157
+ patchSelectTimeValues(): void;
158
+ trackByHour(index: number, hour: ITimeValue): ITimeValue;
159
+ onChange: (value: Date | undefined) => void;
160
+ onTouched: () => void;
161
+ writeValue(value: any): void;
162
+ registerOnChange(fn: any): void;
163
+ registerOnTouched(fn: any): void;
164
+ setDisabledState(isDisabled: boolean): void;
165
+ handleTimeInputChange($event: any): void;
166
+ handleClear($event: MouseEvent): void;
167
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerComponent, never>;
168
+ static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerComponent, "c-time-picker-select", ["cTimePickerSelect"], { "cleaner": "cleaner"; "dateTimeFormatOptions": "dateTimeFormatOptions"; "disabled": "disabled"; "filterHours": "filterHours"; "filterMinutes": "filterMinutes"; "filterSeconds": "filterSeconds"; "indicator": "indicator"; "inputReadOnly": "inputReadOnly"; "locale": "locale"; "placeholder": "placeholder"; "seconds": "seconds"; "size": "size"; "time": "time"; "variant": "variant"; }, { "timeChange": "timeChange"; }, never, never, false>;
169
+ }
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./time-picker.component";
3
+ import * as i2 from "./time-picker-roll-col/time-picker-roll-col.component";
4
+ import * as i3 from "./time-picker-roll-col/time-picker-roll-am-pm.component";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@angular/forms";
7
+ import * as i6 from "../form/form.module";
8
+ import * as i7 from "../button/button.module";
9
+ import * as i8 from "../dropdown/dropdown.module";
10
+ export declare class TimePickerModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TimePickerModule, [typeof i1.TimePickerComponent, typeof i2.TimePickerRollColComponent, typeof i2.TimeElementDirective, typeof i3.TimePickerRollAmPmComponent, typeof i3.DayPeriodElementDirective], [typeof i4.CommonModule, typeof i5.ReactiveFormsModule, typeof i6.FormModule, typeof i7.ButtonModule, typeof i8.DropdownModule], [typeof i1.TimePickerComponent]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<TimePickerModule>;
14
+ }
@@ -0,0 +1,57 @@
1
+ export interface DateTimeFormatOptions {
2
+ localeMatcher?: "best fit" | "lookup" | undefined;
3
+ weekday?: "long" | "short" | "narrow" | undefined;
4
+ era?: "long" | "short" | "narrow" | undefined;
5
+ year?: "numeric" | "2-digit" | undefined;
6
+ month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;
7
+ day?: "numeric" | "2-digit" | undefined;
8
+ hour?: "numeric" | "2-digit" | undefined;
9
+ minute?: "numeric" | "2-digit" | undefined;
10
+ second?: "numeric" | "2-digit" | undefined;
11
+ timeZoneName?: "long" | "short" | undefined;
12
+ formatMatcher?: "best fit" | "basic" | undefined;
13
+ hour12?: boolean | undefined;
14
+ timeZone?: string | undefined;
15
+ }
16
+ export declare type DayPeriod = ('am' | 'pm');
17
+ export interface ITimeValue {
18
+ value: number;
19
+ label: string;
20
+ dayPeriod?: DayPeriod;
21
+ disabled?: boolean;
22
+ }
23
+ export interface IDayPeriods {
24
+ am: string;
25
+ pm: string;
26
+ }
27
+ export declare const getSupportedLocale: (locale?: string) => string;
28
+ export declare const isHour12: (locale?: string) => boolean;
29
+ export declare const convert12hTo24h: (abbr: 'am' | 'pm', hour: number) => number;
30
+ export declare const convert24hTo12h: (hour: number) => number;
31
+ export declare const convertTimeToDate: (time: Date | string | null | undefined) => Date | null;
32
+ export declare const getAmPm: (date: Date, locale: string, options?: DateTimeFormatOptions) => DayPeriod;
33
+ export declare const isAm: (date: Date) => boolean;
34
+ export declare const isPm: (date: Date) => boolean;
35
+ export declare const isValidTimeZone: (timeZone: unknown) => boolean;
36
+ export declare const getListOfHours: (locale: string, options?: DateTimeFormatOptions) => {
37
+ value: number;
38
+ dayPeriod: DayPeriod;
39
+ label: string;
40
+ }[];
41
+ export declare const getListOfMinutes: (locale: string, options?: DateTimeFormatOptions, valueAsString?: boolean) => {
42
+ value: number;
43
+ label: string;
44
+ }[];
45
+ export declare const getListOfSeconds: (locale: string, options?: DateTimeFormatOptions, valueAsString?: boolean) => {
46
+ value: number;
47
+ label: string;
48
+ }[];
49
+ export declare const getSelectedHour: (date: Date | null, locale: string) => number | "";
50
+ export declare const getSelectedMinutes: (date: Date | null) => number | "";
51
+ export declare const getSelectedSeconds: (date: Date | null) => number | "";
52
+ export declare const isAmPm: (locale?: string) => boolean;
53
+ export declare const isValidTime: (time: string | Date | number | any) => boolean;
54
+ export declare const getDayPeriods: (locale?: string, options?: DateTimeFormatOptions) => {
55
+ value: string;
56
+ label: string;
57
+ }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreui/angular-pro",
3
- "version": "4.1.0",
3
+ "version": "4.2.0-next.0",
4
4
  "description": "CoreUI Pro Components Library for Angular",
5
5
  "homepage": "https://coreui.io/angular",
6
6
  "author": {
@@ -23,7 +23,13 @@
23
23
  "@angular/cdk": "^14.0.0",
24
24
  "@angular/common": "^14.0.0",
25
25
  "@angular/core": "^14.0.0",
26
- "@angular/router": "^14.0.0"
26
+ "@angular/router": "^14.0.0",
27
+ "date-fns": "^2.28.0"
28
+ },
29
+ "peerDependenciesMeta": {
30
+ "date-fns": {
31
+ "optional": true
32
+ }
27
33
  },
28
34
  "repository": {
29
35
  "type": "git",
package/public-api.d.ts CHANGED
@@ -7,10 +7,12 @@ export * from './lib/badge';
7
7
  export * from './lib/breadcrumb';
8
8
  export * from './lib/button';
9
9
  export * from './lib/button-group';
10
+ export * from './lib/calendar';
10
11
  export * from './lib/callout';
11
12
  export * from './lib/card';
12
13
  export * from './lib/carousel';
13
14
  export * from './lib/collapse';
15
+ export * from './lib/date-range-picker';
14
16
  export * from './lib/dropdown';
15
17
  export * from './lib/element-cover';
16
18
  export * from './lib/footer';
@@ -36,6 +38,7 @@ export * from './lib/smart-table';
36
38
  export * from './lib/spinner';
37
39
  export * from './lib/table';
38
40
  export * from './lib/tabs';
41
+ export * from './lib/time-picker';
39
42
  export * from './lib/toast';
40
43
  export * from './lib/tooltip';
41
44
  export * from './lib/utilities';