@coreui/angular-pro 4.7.2 → 5.0.0-alpha.1

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 (308) hide show
  1. package/esm2022/lib/accordion/accordion/accordion.component.mjs +3 -3
  2. package/esm2022/lib/accordion/accordion-button/accordion-button.directive.mjs +3 -3
  3. package/esm2022/lib/accordion/accordion-item/accordion-item.component.mjs +3 -3
  4. package/esm2022/lib/accordion/accordion.module.mjs +4 -4
  5. package/esm2022/lib/accordion/accordion.service.mjs +3 -3
  6. package/esm2022/lib/alert/alert-heading.directive.mjs +3 -3
  7. package/esm2022/lib/alert/alert-link.directive.mjs +3 -3
  8. package/esm2022/lib/alert/alert.component.mjs +3 -3
  9. package/esm2022/lib/alert/alert.module.mjs +4 -4
  10. package/esm2022/lib/avatar/avatar.component.mjs +10 -7
  11. package/esm2022/lib/avatar/avatar.module.mjs +4 -4
  12. package/esm2022/lib/backdrop/backdrop.service.mjs +55 -31
  13. package/esm2022/lib/backdrop/index.mjs +2 -0
  14. package/esm2022/lib/backdrop/public_api.mjs +2 -0
  15. package/esm2022/lib/badge/badge.component.mjs +10 -6
  16. package/esm2022/lib/badge/badge.module.mjs +4 -4
  17. package/esm2022/lib/breadcrumb/breadcrumb/breadcrumb.component.mjs +3 -3
  18. package/esm2022/lib/breadcrumb/breadcrumb-item/breadcrumb-item.component.mjs +3 -3
  19. package/esm2022/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.mjs +3 -3
  20. package/esm2022/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.mjs +9 -9
  21. package/esm2022/lib/breadcrumb/breadcrumb.module.mjs +4 -4
  22. package/esm2022/lib/button/button-close.directive.mjs +11 -5
  23. package/esm2022/lib/button/button.directive.mjs +3 -3
  24. package/esm2022/lib/button/button.module.mjs +4 -4
  25. package/esm2022/lib/button-group/button-group/button-group.component.mjs +3 -3
  26. package/esm2022/lib/button-group/button-group.module.mjs +4 -4
  27. package/esm2022/lib/button-group/button-toolbar/button-toolbar.component.mjs +3 -3
  28. package/esm2022/lib/calendar/calendar/calendar-class-view.pipe.mjs +3 -3
  29. package/esm2022/lib/calendar/calendar/calendar.component.mjs +150 -71
  30. package/esm2022/lib/calendar/calendar-month/calendar-class-day.pipe.mjs +5 -4
  31. package/esm2022/lib/calendar/calendar-month/calendar-class-month.pipe.mjs +5 -5
  32. package/esm2022/lib/calendar/calendar-month/calendar-class-row.pipe.mjs +26 -0
  33. package/esm2022/lib/calendar/calendar-month/calendar-class-year.pipe.mjs +3 -3
  34. package/esm2022/lib/calendar/calendar-month/calendar-day-title.pipe.mjs +3 -3
  35. package/esm2022/lib/calendar/calendar-month/calendar-day.directive.mjs +102 -59
  36. package/esm2022/lib/calendar/calendar-month/calendar-day.pipe.mjs +3 -3
  37. package/esm2022/lib/calendar/calendar-month/calendar-month.component.mjs +255 -92
  38. package/esm2022/lib/calendar/calendar-month/calendar-row.directive.mjs +117 -0
  39. package/esm2022/lib/calendar/calendar-month/calendar-weekday.pipe.mjs +3 -3
  40. package/esm2022/lib/calendar/calendar-navigation/calendar-navigation.component.mjs +28 -24
  41. package/esm2022/lib/calendar/calendar.module.mjs +10 -7
  42. package/esm2022/lib/calendar/calendar.service.mjs +8 -5
  43. package/esm2022/lib/calendar/calendar.utils.mjs +100 -17
  44. package/esm2022/lib/callout/callout.component.mjs +3 -3
  45. package/esm2022/lib/callout/callout.module.mjs +4 -4
  46. package/esm2022/lib/card/card-body.component.mjs +3 -3
  47. package/esm2022/lib/card/card-footer.component.mjs +3 -3
  48. package/esm2022/lib/card/card-group.component.mjs +3 -3
  49. package/esm2022/lib/card/card-header-actions.component.mjs +3 -3
  50. package/esm2022/lib/card/card-header.component.mjs +3 -3
  51. package/esm2022/lib/card/card-img-overlay/card-img-overlay.component.mjs +3 -3
  52. package/esm2022/lib/card/card-img.directive.mjs +3 -3
  53. package/esm2022/lib/card/card-link.directive.mjs +3 -3
  54. package/esm2022/lib/card/card-subtitle.directive.mjs +3 -3
  55. package/esm2022/lib/card/card-text.directive.mjs +3 -3
  56. package/esm2022/lib/card/card-title.directive.mjs +3 -3
  57. package/esm2022/lib/card/card.component.mjs +12 -8
  58. package/esm2022/lib/card/card.module.mjs +4 -4
  59. package/esm2022/lib/carousel/carousel/carousel.component.mjs +37 -36
  60. package/esm2022/lib/carousel/carousel-caption/carousel-caption.component.mjs +3 -3
  61. package/esm2022/lib/carousel/carousel-control/carousel-control.component.mjs +3 -3
  62. package/esm2022/lib/carousel/carousel-indicators/carousel-indicators.component.mjs +3 -3
  63. package/esm2022/lib/carousel/carousel-inner/carousel-inner.component.mjs +3 -3
  64. package/esm2022/lib/carousel/carousel-item/carousel-item.component.mjs +3 -3
  65. package/esm2022/lib/carousel/carousel-state.mjs +3 -3
  66. package/esm2022/lib/carousel/carousel.config.mjs +3 -3
  67. package/esm2022/lib/carousel/carousel.module.mjs +4 -4
  68. package/esm2022/lib/carousel/carousel.service.mjs +3 -3
  69. package/esm2022/lib/collapse/collapse.directive.mjs +3 -3
  70. package/esm2022/lib/collapse/collapse.module.mjs +4 -4
  71. package/esm2022/lib/coreui.types.mjs +1 -1
  72. package/esm2022/lib/date-picker/date-picker.component.mjs +8 -12
  73. package/esm2022/lib/date-picker/date-picker.module.mjs +4 -4
  74. package/esm2022/lib/date-range-picker/date-range-picker/custom-range-key.pipe.mjs +3 -3
  75. package/esm2022/lib/date-range-picker/date-range-picker/date-range-picker.component.mjs +168 -163
  76. package/esm2022/lib/date-range-picker/date-range-picker.module.mjs +4 -4
  77. package/esm2022/lib/dropdown/dropdown/dropdown.component.mjs +10 -23
  78. package/esm2022/lib/dropdown/dropdown-close/dropdown-close.directive.mjs +3 -3
  79. package/esm2022/lib/dropdown/dropdown-divider/dropdown-divider.directive.mjs +3 -3
  80. package/esm2022/lib/dropdown/dropdown-header/dropdown-header.directive.mjs +3 -3
  81. package/esm2022/lib/dropdown/dropdown-item/dropdown-item-plain.directive.mjs +3 -3
  82. package/esm2022/lib/dropdown/dropdown-item/dropdown-item.directive.mjs +13 -5
  83. package/esm2022/lib/dropdown/dropdown-menu/dropdown-menu.directive.mjs +77 -41
  84. package/esm2022/lib/dropdown/dropdown.module.mjs +4 -4
  85. package/esm2022/lib/dropdown/dropdown.service.mjs +5 -5
  86. package/esm2022/lib/element-cover/element-cover.component.mjs +3 -3
  87. package/esm2022/lib/element-cover/element-cover.module.mjs +4 -4
  88. package/esm2022/lib/footer/footer.component.mjs +3 -3
  89. package/esm2022/lib/footer/footer.module.mjs +4 -4
  90. package/esm2022/lib/form/form/form.directive.mjs +3 -3
  91. package/esm2022/lib/form/form-check/form-check-input.directive.mjs +3 -3
  92. package/esm2022/lib/form/form-check/form-check-label.directive.mjs +3 -3
  93. package/esm2022/lib/form/form-check/form-check.component.mjs +3 -3
  94. package/esm2022/lib/form/form-control/form-control.directive.mjs +3 -3
  95. package/esm2022/lib/form/form-feedback/form-feedback.component.mjs +3 -3
  96. package/esm2022/lib/form/form-floating/form-floating.directive.mjs +3 -3
  97. package/esm2022/lib/form/form-label/form-label.directive.mjs +3 -3
  98. package/esm2022/lib/form/form-select/form-select.directive.mjs +3 -3
  99. package/esm2022/lib/form/form-text/form-text.directive.mjs +3 -3
  100. package/esm2022/lib/form/form.module.mjs +4 -4
  101. package/esm2022/lib/form/input-group/input-group.component.mjs +3 -3
  102. package/esm2022/lib/form/input-group-text/input-group-text.directive.mjs +3 -3
  103. package/esm2022/lib/grid/col.component.mjs +3 -3
  104. package/esm2022/lib/grid/col.directive.mjs +3 -3
  105. package/esm2022/lib/grid/container.component.mjs +3 -3
  106. package/esm2022/lib/grid/grid.module.mjs +4 -4
  107. package/esm2022/lib/grid/gutter.directive.mjs +3 -3
  108. package/esm2022/lib/grid/row.component.mjs +3 -3
  109. package/esm2022/lib/grid/row.directive.mjs +3 -3
  110. package/esm2022/lib/header/header/header.component.mjs +3 -3
  111. package/esm2022/lib/header/header-brand/header-brand.component.mjs +3 -3
  112. package/esm2022/lib/header/header-divider/header-divider.component.mjs +3 -3
  113. package/esm2022/lib/header/header-nav/header-nav.component.mjs +3 -3
  114. package/esm2022/lib/header/header-text/header-text.component.mjs +3 -3
  115. package/esm2022/lib/header/header-toggler/header-toggler.directive.mjs +3 -3
  116. package/esm2022/lib/header/header.module.mjs +4 -4
  117. package/esm2022/lib/image/img.directive.mjs +3 -3
  118. package/esm2022/lib/image/img.module.mjs +4 -4
  119. package/esm2022/lib/list-group/list-group-item.directive.mjs +3 -3
  120. package/esm2022/lib/list-group/list-group.directive.mjs +3 -3
  121. package/esm2022/lib/list-group/list-group.module.mjs +4 -4
  122. package/esm2022/lib/loading-button/loading-button.component.mjs +3 -3
  123. package/esm2022/lib/loading-button/loading-button.module.mjs +4 -4
  124. package/esm2022/lib/modal/modal/modal.component.mjs +88 -59
  125. package/esm2022/lib/modal/modal-body/modal-body.component.mjs +3 -3
  126. package/esm2022/lib/modal/modal-content/modal-content.component.mjs +3 -3
  127. package/esm2022/lib/modal/modal-dialog/modal-dialog.component.mjs +3 -3
  128. package/esm2022/lib/modal/modal-dismiss/modal-toggle.directive.mjs +3 -3
  129. package/esm2022/lib/modal/modal-footer/modal-footer.component.mjs +3 -3
  130. package/esm2022/lib/modal/modal-header/modal-header.component.mjs +3 -3
  131. package/esm2022/lib/modal/modal-title/modal-title.directive.mjs +3 -3
  132. package/esm2022/lib/modal/modal.module.mjs +4 -4
  133. package/esm2022/lib/modal/modal.service.mjs +3 -3
  134. package/esm2022/lib/multi-select/multi-select/multi-select-search.directive.mjs +3 -3
  135. package/esm2022/lib/multi-select/multi-select/multi-select.component.mjs +16 -13
  136. package/esm2022/lib/multi-select/multi-select-native-select/multi-select-native-select.component.mjs +3 -3
  137. package/esm2022/lib/multi-select/multi-select-optgroup/multi-select-optgroup-label.component.mjs +3 -3
  138. package/esm2022/lib/multi-select/multi-select-optgroup/multi-select-optgroup.component.mjs +3 -3
  139. package/esm2022/lib/multi-select/multi-select-option/multi-select-option.component.mjs +37 -36
  140. package/esm2022/lib/multi-select/multi-select-tag/multi-select-tag.component.mjs +5 -5
  141. package/esm2022/lib/multi-select/multi-select.module.mjs +4 -4
  142. package/esm2022/lib/multi-select/multi-select.service.mjs +3 -3
  143. package/esm2022/lib/nav/nav-item.component.mjs +3 -3
  144. package/esm2022/lib/nav/nav-link.directive.mjs +3 -3
  145. package/esm2022/lib/nav/nav.component.mjs +5 -5
  146. package/esm2022/lib/nav/nav.module.mjs +4 -4
  147. package/esm2022/lib/navbar/navbar-brand/navbar-brand.directive.mjs +3 -3
  148. package/esm2022/lib/navbar/navbar-nav/navbar-nav.component.mjs +3 -3
  149. package/esm2022/lib/navbar/navbar-text/navbar-text.component.mjs +3 -3
  150. package/esm2022/lib/navbar/navbar-toggler/navbar-toggler.directive.mjs +3 -3
  151. package/esm2022/lib/navbar/navbar.component.mjs +9 -13
  152. package/esm2022/lib/navbar/navbar.module.mjs +4 -4
  153. package/esm2022/lib/offcanvas/offcanvas/offcanvas.component.mjs +56 -61
  154. package/esm2022/lib/offcanvas/offcanvas-body/offcanvas-body.component.mjs +3 -3
  155. package/esm2022/lib/offcanvas/offcanvas-header/offcanvas-header.component.mjs +3 -3
  156. package/esm2022/lib/offcanvas/offcanvas-title/offcanvas-title.directive.mjs +3 -3
  157. package/esm2022/lib/offcanvas/offcanvas-toggle/offcanvas-toggle.directive.mjs +3 -3
  158. package/esm2022/lib/offcanvas/offcanvas.module.mjs +4 -4
  159. package/esm2022/lib/offcanvas/offcanvas.service.mjs +3 -3
  160. package/esm2022/lib/pagination/page-item/page-item.component.mjs +3 -3
  161. package/esm2022/lib/pagination/page-item/page-item.directive.mjs +3 -3
  162. package/esm2022/lib/pagination/page-link/page-link.directive.mjs +3 -3
  163. package/esm2022/lib/pagination/pagination/pagination.component.mjs +3 -3
  164. package/esm2022/lib/pagination/pagination.module.mjs +4 -4
  165. package/esm2022/lib/placeholder/placeholder-animation.directive.mjs +3 -3
  166. package/esm2022/lib/placeholder/placeholder.directive.mjs +3 -3
  167. package/esm2022/lib/placeholder/placeholder.module.mjs +4 -4
  168. package/esm2022/lib/popover/popover/popover.component.mjs +3 -3
  169. package/esm2022/lib/popover/popover.directive.mjs +5 -5
  170. package/esm2022/lib/popover/popover.module.mjs +4 -4
  171. package/esm2022/lib/progress/progress-bar.component.mjs +3 -3
  172. package/esm2022/lib/progress/progress.component.mjs +3 -3
  173. package/esm2022/lib/progress/progress.module.mjs +4 -4
  174. package/esm2022/lib/services/class-toggle.service.mjs +3 -3
  175. package/esm2022/lib/services/intersection.service.mjs +3 -3
  176. package/esm2022/lib/services/listeners.service.mjs +3 -3
  177. package/esm2022/lib/shared/html-attr.directive.mjs +3 -3
  178. package/esm2022/lib/shared/public_api.mjs +2 -1
  179. package/esm2022/lib/shared/shared.module.mjs +8 -15
  180. package/esm2022/lib/shared/template-id.directive.mjs +3 -3
  181. package/esm2022/lib/shared/theme.directive.mjs +44 -0
  182. package/esm2022/lib/sidebar/sidebar/sidebar.component.mjs +6 -5
  183. package/esm2022/lib/sidebar/sidebar-backdrop/sidebar-backdrop.service.mjs +3 -3
  184. package/esm2022/lib/sidebar/sidebar-brand/sidebar-brand.component.mjs +3 -3
  185. package/esm2022/lib/sidebar/sidebar-footer/sidebar-footer.component.mjs +3 -3
  186. package/esm2022/lib/sidebar/sidebar-header/sidebar-header.component.mjs +3 -3
  187. package/esm2022/lib/sidebar/sidebar-nav/sidebar-nav-badge.pipe.mjs +3 -3
  188. package/esm2022/lib/sidebar/sidebar-nav/sidebar-nav-divider.component.mjs +3 -3
  189. package/esm2022/lib/sidebar/sidebar-nav/sidebar-nav-group.service.mjs +3 -3
  190. package/esm2022/lib/sidebar/sidebar-nav/sidebar-nav-icon.pipe.mjs +3 -3
  191. package/esm2022/lib/sidebar/sidebar-nav/sidebar-nav-item-class.pipe.mjs +3 -3
  192. package/esm2022/lib/sidebar/sidebar-nav/sidebar-nav-label.component.mjs +3 -3
  193. package/esm2022/lib/sidebar/sidebar-nav/sidebar-nav-link.component.mjs +8 -8
  194. package/esm2022/lib/sidebar/sidebar-nav/sidebar-nav-link.pipe.mjs +3 -3
  195. package/esm2022/lib/sidebar/sidebar-nav/sidebar-nav-title.component.mjs +3 -3
  196. package/esm2022/lib/sidebar/sidebar-nav/sidebar-nav.component.mjs +23 -19
  197. package/esm2022/lib/sidebar/sidebar-nav/sidebar-nav.service.mjs +6 -6
  198. package/esm2022/lib/sidebar/sidebar-toggle/sidebar-toggle.directive.mjs +3 -3
  199. package/esm2022/lib/sidebar/sidebar-toggler/sidebar-toggler.component.mjs +13 -4
  200. package/esm2022/lib/sidebar/sidebar.module.mjs +4 -4
  201. package/esm2022/lib/sidebar/sidebar.service.mjs +3 -3
  202. package/esm2022/lib/smart-pagination/smart-pagination.component.mjs +3 -3
  203. package/esm2022/lib/smart-pagination/smart-pagination.module.mjs +4 -4
  204. package/esm2022/lib/smart-table/smart-table/smart-table.component.mjs +90 -125
  205. package/esm2022/lib/smart-table/smart-table-column-filter/smart-table-column-filter.component.mjs +3 -3
  206. package/esm2022/lib/smart-table/smart-table-filter/filter-input.directive.mjs +3 -3
  207. package/esm2022/lib/smart-table/smart-table-filter/smart-table-filter.component.mjs +3 -3
  208. package/esm2022/lib/smart-table/smart-table-head/smart-table-column-label.pipe.mjs +6 -14
  209. package/esm2022/lib/smart-table/smart-table-head/smart-table-head.component.mjs +48 -37
  210. package/esm2022/lib/smart-table/smart-table-items-per-page-selector/smart-table-items-per-page-selector.component.mjs +3 -3
  211. package/esm2022/lib/smart-table/smart-table.module.mjs +4 -4
  212. package/esm2022/lib/smart-table/smart-table.type.mjs +1 -1
  213. package/esm2022/lib/smart-table/smart-table.utils.mjs +181 -0
  214. package/esm2022/lib/spinner/spinner.component.mjs +3 -3
  215. package/esm2022/lib/spinner/spinner.module.mjs +4 -4
  216. package/esm2022/lib/table/table-active.directive.mjs +3 -3
  217. package/esm2022/lib/table/table-color.directive.mjs +3 -3
  218. package/esm2022/lib/table/table.directive.mjs +3 -3
  219. package/esm2022/lib/table/table.module.mjs +4 -4
  220. package/esm2022/lib/table/table.type.mjs +1 -1
  221. package/esm2022/lib/tabs/tab-content/tab-content.component.mjs +3 -3
  222. package/esm2022/lib/tabs/tab-content-ref.directive.mjs +3 -3
  223. package/esm2022/lib/tabs/tab-pane/tab-pane.component.mjs +5 -7
  224. package/esm2022/lib/tabs/tab.service.mjs +3 -3
  225. package/esm2022/lib/tabs/tabs.module.mjs +4 -4
  226. package/esm2022/lib/time-picker/time-picker-roll-col/time-picker-roll-am-pm.component.mjs +16 -10
  227. package/esm2022/lib/time-picker/time-picker-roll-col/time-picker-roll-col.component.mjs +22 -15
  228. package/esm2022/lib/time-picker/time-picker.component.mjs +89 -115
  229. package/esm2022/lib/time-picker/time-picker.module.mjs +4 -4
  230. package/esm2022/lib/toast/toast/toast.component.mjs +3 -3
  231. package/esm2022/lib/toast/toast-body/toast-body.component.mjs +3 -3
  232. package/esm2022/lib/toast/toast-close.directive.mjs +3 -3
  233. package/esm2022/lib/toast/toast-header/toast-header.component.mjs +3 -3
  234. package/esm2022/lib/toast/toast.module.mjs +4 -4
  235. package/esm2022/lib/toast/toaster/toaster-host.directive.mjs +3 -3
  236. package/esm2022/lib/toast/toaster/toaster.component.mjs +3 -3
  237. package/esm2022/lib/toast/toaster/toaster.service.mjs +3 -3
  238. package/esm2022/lib/tooltip/tooltip/tooltip.component.mjs +3 -3
  239. package/esm2022/lib/tooltip/tooltip.directive.mjs +5 -5
  240. package/esm2022/lib/tooltip/tooltip.module.mjs +4 -4
  241. package/esm2022/lib/utilities/align.directive.mjs +3 -3
  242. package/esm2022/lib/utilities/bg-color.directive.mjs +3 -3
  243. package/esm2022/lib/utilities/border.directive.mjs +3 -3
  244. package/esm2022/lib/utilities/rounded.directive.mjs +3 -3
  245. package/esm2022/lib/utilities/text-color.directive.mjs +3 -3
  246. package/esm2022/lib/utilities/utilities.module.mjs +4 -4
  247. package/esm2022/lib/widget/widget-stat-a/widget-stat-a.component.mjs +5 -5
  248. package/esm2022/lib/widget/widget-stat-b/widget-stat-b.component.mjs +6 -6
  249. package/esm2022/lib/widget/widget-stat-c/widget-stat-c.component.mjs +17 -19
  250. package/esm2022/lib/widget/widget-stat-d/widget-stat-d.component.mjs +5 -5
  251. package/esm2022/lib/widget/widget-stat-e/widget-stat-e.component.mjs +5 -5
  252. package/esm2022/lib/widget/widget-stat-f/widget-stat-f.component.mjs +5 -5
  253. package/esm2022/lib/widget/widget.module.mjs +4 -4
  254. package/esm2022/public-api.mjs +2 -1
  255. package/fesm2022/coreui-angular-pro.mjs +12446 -11687
  256. package/fesm2022/coreui-angular-pro.mjs.map +1 -1
  257. package/lib/avatar/avatar.component.d.ts +4 -3
  258. package/lib/backdrop/backdrop.service.d.ts +7 -10
  259. package/lib/backdrop/index.d.ts +1 -0
  260. package/lib/backdrop/public_api.d.ts +1 -0
  261. package/lib/badge/badge.component.d.ts +5 -3
  262. package/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.d.ts +1 -1
  263. package/lib/button/button-close.directive.d.ts +3 -1
  264. package/lib/calendar/calendar/calendar.component.d.ts +46 -19
  265. package/lib/calendar/calendar-month/calendar-class-row.pipe.d.ts +23 -0
  266. package/lib/calendar/calendar-month/calendar-day.directive.d.ts +16 -26
  267. package/lib/calendar/calendar-month/calendar-month.component.d.ts +45 -27
  268. package/lib/calendar/calendar-month/calendar-row.directive.d.ts +44 -0
  269. package/lib/calendar/calendar-navigation/calendar-navigation.component.d.ts +7 -6
  270. package/lib/calendar/calendar.module.d.ts +2 -1
  271. package/lib/calendar/calendar.service.d.ts +5 -1
  272. package/lib/calendar/calendar.utils.d.ts +25 -6
  273. package/lib/card/card.component.d.ts +3 -1
  274. package/lib/carousel/carousel/carousel.component.d.ts +10 -14
  275. package/lib/coreui.types.d.ts +4 -1
  276. package/lib/date-picker/date-picker.component.d.ts +2 -2
  277. package/lib/date-range-picker/date-range-picker/date-range-picker.component.d.ts +75 -41
  278. package/lib/dropdown/dropdown/dropdown.component.d.ts +2 -9
  279. package/lib/dropdown/dropdown-item/dropdown-item.directive.d.ts +5 -1
  280. package/lib/dropdown/dropdown-menu/dropdown-menu.directive.d.ts +13 -16
  281. package/lib/dropdown/dropdown.service.d.ts +0 -1
  282. package/lib/modal/modal/modal.component.d.ts +13 -13
  283. package/lib/multi-select/multi-select/multi-select.component.d.ts +1 -2
  284. package/lib/multi-select/multi-select-option/multi-select-option.component.d.ts +8 -10
  285. package/lib/nav/nav.component.d.ts +2 -2
  286. package/lib/navbar/navbar.component.d.ts +2 -5
  287. package/lib/offcanvas/offcanvas/offcanvas.component.d.ts +14 -11
  288. package/lib/shared/public_api.d.ts +1 -0
  289. package/lib/shared/shared.module.d.ts +2 -1
  290. package/lib/shared/theme.directive.d.ts +19 -0
  291. package/lib/sidebar/sidebar-nav/sidebar-nav.component.d.ts +5 -2
  292. package/lib/sidebar/sidebar-toggler/sidebar-toggler.component.d.ts +1 -0
  293. package/lib/smart-table/smart-table/smart-table.component.d.ts +36 -51
  294. package/lib/smart-table/smart-table-head/smart-table-column-label.pipe.d.ts +0 -1
  295. package/lib/smart-table/smart-table-head/smart-table-head.component.d.ts +21 -11
  296. package/lib/smart-table/smart-table.type.d.ts +49 -34
  297. package/lib/smart-table/smart-table.utils.d.ts +29 -0
  298. package/lib/table/table.type.d.ts +5 -6
  299. package/lib/time-picker/time-picker-roll-col/time-picker-roll-am-pm.component.d.ts +2 -1
  300. package/lib/time-picker/time-picker-roll-col/time-picker-roll-col.component.d.ts +3 -2
  301. package/lib/time-picker/time-picker.component.d.ts +17 -28
  302. package/lib/widget/widget-stat-a/widget-stat-a.component.d.ts +1 -1
  303. package/lib/widget/widget-stat-b/widget-stat-b.component.d.ts +3 -3
  304. package/lib/widget/widget-stat-c/widget-stat-c.component.d.ts +15 -13
  305. package/lib/widget/widget-stat-e/widget-stat-e.component.d.ts +1 -1
  306. package/lib/widget/widget-stat-f/widget-stat-f.component.d.ts +1 -1
  307. package/package.json +3 -2
  308. package/public-api.d.ts +1 -0
@@ -7,9 +7,9 @@ export declare class NavComponent {
7
7
  layout?: 'fill' | 'justified';
8
8
  /**
9
9
  * Set the nav variant to tabs or pills.
10
- * @type {'tabs' | 'pills' | 'underline'}
10
+ * @type 'tabs' | 'pills' | 'underline' | 'underline-border'
11
11
  */
12
- variant?: '' | 'tabs' | 'pills' | 'underline';
12
+ variant?: '' | 'tabs' | 'pills' | 'underline' | 'underline-border';
13
13
  get hostClasses(): any;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<NavComponent, never>;
15
15
  static ɵcmp: i0.ɵɵComponentDeclaration<NavComponent, "c-nav", never, { "layout": { "alias": "layout"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, ["*"], true, never>;
@@ -3,6 +3,7 @@ import { BreakpointObserver } from '@angular/cdk/layout';
3
3
  import { CollapseDirective } from '../collapse';
4
4
  import { Colors } from '../coreui.types';
5
5
  import * as i0 from "@angular/core";
6
+ import * as i1 from "../shared/theme.directive";
6
7
  export declare class NavbarComponent implements AfterContentInit {
7
8
  private hostElement;
8
9
  private breakpointObserver;
@@ -11,10 +12,6 @@ export declare class NavbarComponent implements AfterContentInit {
11
12
  * @type Colors
12
13
  */
13
14
  color?: Colors;
14
- /**
15
- * Sets if the color of text should be colored for a light or dark dark background.
16
- */
17
- colorScheme?: 'dark' | 'light';
18
15
  /**
19
16
  * Defines optional container wrapping children elements.
20
17
  */
@@ -35,5 +32,5 @@ export declare class NavbarComponent implements AfterContentInit {
35
32
  get breakpoint(): string | boolean;
36
33
  ngAfterContentInit(): void;
37
34
  static ɵfac: i0.ɵɵFactoryDeclaration<NavbarComponent, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<NavbarComponent, "c-navbar", never, { "color": { "alias": "color"; "required": false; }; "colorScheme": { "alias": "colorScheme"; "required": false; }; "container": { "alias": "container"; "required": false; }; "expand": { "alias": "expand"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "role": { "alias": "role"; "required": false; }; }, {}, ["collapse"], ["*", "*"], true, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavbarComponent, "c-navbar", never, { "color": { "alias": "color"; "required": false; }; "container": { "alias": "container"; "required": false; }; "expand": { "alias": "expand"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "role": { "alias": "role"; "required": false; }; }, {}, ["collapse"], ["*", "*"], true, [{ directive: typeof i1.ThemeDirective; inputs: { "colorScheme": "colorScheme"; }; outputs: {}; }]>;
39
36
  }
@@ -1,10 +1,10 @@
1
- import { ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
1
  import { AnimationEvent } from '@angular/animations';
3
- import { BooleanInput } from '@angular/cdk/coercion';
2
+ import { ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
4
3
  import { BreakpointObserver } from '@angular/cdk/layout';
5
4
  import { BackdropService } from '../../backdrop/backdrop.service';
6
5
  import { OffcanvasService } from '../offcanvas.service';
7
6
  import * as i0 from "@angular/core";
7
+ import * as i1 from "../../shared/theme.directive";
8
8
  export declare class OffcanvasComponent implements OnInit, OnDestroy {
9
9
  #private;
10
10
  private document;
@@ -15,7 +15,6 @@ export declare class OffcanvasComponent implements OnInit, OnDestroy {
15
15
  private backdropService;
16
16
  private breakpointObserver;
17
17
  constructor(document: Document, platformId: any, renderer: Renderer2, hostElement: ElementRef, offcanvasService: OffcanvasService, backdropService: BackdropService, breakpointObserver: BreakpointObserver);
18
- static ngAcceptInputType_scroll: BooleanInput;
19
18
  /**
20
19
  * Apply a backdrop on body while offcanvas is open.
21
20
  * @type boolean | 'static'
@@ -54,24 +53,24 @@ export declare class OffcanvasComponent implements OnInit, OnDestroy {
54
53
  * @default true
55
54
  */
56
55
  ariaModal: boolean;
57
- /**
58
- * Event triggered on visible change.
59
- */
60
- readonly visibleChange: EventEmitter<boolean>;
61
- get scroll(): boolean;
62
56
  /**
63
57
  * Allow body scrolling while offcanvas is visible.
64
58
  * @type boolean
65
59
  * @default false
66
60
  */
67
- set scroll(value: boolean);
68
- get visible(): boolean;
61
+ scroll: boolean;
69
62
  /**
70
63
  * Toggle the visibility of offcanvas component.
71
64
  * @type boolean
72
65
  * @default false
73
66
  */
74
67
  set visible(value: boolean);
68
+ get visible(): boolean;
69
+ /**
70
+ * Event triggered on visible change.
71
+ * @type EventEmitter<boolean>
72
+ */
73
+ readonly visibleChange: EventEmitter<boolean>;
75
74
  get hostClasses(): any;
76
75
  get ariaHidden(): boolean | null;
77
76
  get tabIndex(): string | null;
@@ -90,5 +89,9 @@ export declare class OffcanvasComponent implements OnInit, OnDestroy {
90
89
  private setBackdrop;
91
90
  private layoutChangeSubscribe;
92
91
  static ɵfac: i0.ɵɵFactoryDeclaration<OffcanvasComponent, never>;
93
- static ɵcmp: i0.ɵɵComponentDeclaration<OffcanvasComponent, "c-offcanvas", ["cOffcanvas"], { "backdrop": { "alias": "backdrop"; "required": false; }; "keyboard": { "alias": "keyboard"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "responsive": { "alias": "responsive"; "required": false; }; "id": { "alias": "id"; "required": false; }; "role": { "alias": "role"; "required": false; }; "ariaModal": { "alias": "ariaModal"; "required": false; }; "scroll": { "alias": "scroll"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, { "visibleChange": "visibleChange"; }, never, ["*"], true, never>;
92
+ static ɵcmp: i0.ɵɵComponentDeclaration<OffcanvasComponent, "c-offcanvas", ["cOffcanvas"], { "backdrop": { "alias": "backdrop"; "required": false; }; "keyboard": { "alias": "keyboard"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "responsive": { "alias": "responsive"; "required": false; }; "id": { "alias": "id"; "required": false; }; "role": { "alias": "role"; "required": false; }; "ariaModal": { "alias": "ariaModal"; "required": false; }; "scroll": { "alias": "scroll"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, { "visibleChange": "visibleChange"; }, never, ["*"], true, [{ directive: typeof i1.ThemeDirective; inputs: { "dark": "dark"; }; outputs: {}; }]>;
93
+ static ngAcceptInputType_keyboard: unknown;
94
+ static ngAcceptInputType_ariaModal: unknown;
95
+ static ngAcceptInputType_scroll: unknown;
96
+ static ngAcceptInputType_visible: unknown;
94
97
  }
@@ -1,3 +1,4 @@
1
1
  export { SharedModule } from './shared.module';
2
2
  export { HtmlAttributesDirective } from './html-attr.directive';
3
3
  export { TemplateIdDirective } from './template-id.directive';
4
+ export { ThemeDirective } from './theme.directive';
@@ -2,9 +2,10 @@ import { ModuleWithProviders } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  import * as i1 from "./html-attr.directive";
4
4
  import * as i2 from "./template-id.directive";
5
+ import * as i3 from "./theme.directive";
5
6
  export declare class SharedModule {
6
7
  static forRoot(): ModuleWithProviders<SharedModule>;
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.HtmlAttributesDirective, typeof i2.TemplateIdDirective], [typeof i1.HtmlAttributesDirective, typeof i2.TemplateIdDirective]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.HtmlAttributesDirective, typeof i2.TemplateIdDirective, typeof i3.ThemeDirective], [typeof i1.HtmlAttributesDirective, typeof i2.TemplateIdDirective, typeof i3.ThemeDirective]>;
9
10
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
10
11
  }
@@ -0,0 +1,19 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ThemeDirective {
3
+ #private;
4
+ /**
5
+ * Add dark theme attribute.
6
+ * @type 'dark' | 'light' | undefined
7
+ */
8
+ set colorScheme(scheme: 'dark' | 'light' | undefined);
9
+ /**
10
+ * Add dark theme attribute.
11
+ * @type boolean
12
+ */
13
+ set dark(darkTheme: boolean);
14
+ setTheme(theme?: string): void;
15
+ unsetTheme(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemeDirective, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ThemeDirective, "[cTheme]", never, { "colorScheme": { "alias": "colorScheme"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; }, {}, never, never, true, never>;
18
+ static ngAcceptInputType_dark: unknown;
19
+ }
@@ -18,6 +18,7 @@ export declare class SidebarNavGroupComponent implements OnInit, OnDestroy {
18
18
  item: any;
19
19
  dropdownMode: 'path' | 'none' | 'close';
20
20
  show?: boolean;
21
+ compact?: boolean;
21
22
  get hostClasses(): any;
22
23
  sidebarNav: ElementRef;
23
24
  navigationEndObservable: Observable<NavigationEnd>;
@@ -34,7 +35,8 @@ export declare class SidebarNavGroupComponent implements OnInit, OnDestroy {
34
35
  onAnimationStart($event: AnimationEvent): void;
35
36
  onAnimationDone($event: AnimationEvent): void;
36
37
  static ɵfac: i0.ɵɵFactoryDeclaration<SidebarNavGroupComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<SidebarNavGroupComponent, "c-sidebar-nav-group", never, { "item": { "alias": "item"; "required": false; }; "dropdownMode": { "alias": "dropdownMode"; "required": false; }; "show": { "alias": "show"; "required": false; }; }, {}, never, never, true, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarNavGroupComponent, "c-sidebar-nav-group", never, { "item": { "alias": "item"; "required": false; }; "dropdownMode": { "alias": "dropdownMode"; "required": false; }; "show": { "alias": "show"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; }, {}, never, never, true, never>;
39
+ static ngAcceptInputType_compact: unknown;
38
40
  }
39
41
  export declare class SidebarNavComponent implements OnChanges {
40
42
  sidebar: SidebarComponent;
@@ -49,11 +51,12 @@ export declare class SidebarNavComponent implements OnChanges {
49
51
  groupItems?: boolean;
50
52
  compact?: boolean;
51
53
  get hostClasses(): any;
52
- get sidebarNavGroupItemsClass(): boolean;
53
54
  role: string;
54
55
  navItemsArray: INavData[];
55
56
  ngOnChanges(changes: SimpleChanges): void;
56
57
  hideMobile(): void;
57
58
  static ɵfac: i0.ɵɵFactoryDeclaration<SidebarNavComponent, [{ optional: true; }, null, null, null, null, null]>;
58
59
  static ɵcmp: i0.ɵɵComponentDeclaration<SidebarNavComponent, "c-sidebar-nav", never, { "navItems": { "alias": "navItems"; "required": false; }; "dropdownMode": { "alias": "dropdownMode"; "required": false; }; "groupItems": { "alias": "groupItems"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; }, {}, never, ["*"], true, never>;
60
+ static ngAcceptInputType_groupItems: unknown;
61
+ static ngAcceptInputType_compact: unknown;
59
62
  }
@@ -2,6 +2,7 @@ import * as i0 from "@angular/core";
2
2
  export declare class SidebarTogglerComponent {
3
3
  role: string;
4
4
  sidebarTogglerClass: boolean;
5
+ get getStyles(): any;
5
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SidebarTogglerComponent, never>;
6
7
  static ɵcmp: i0.ɵɵComponentDeclaration<SidebarTogglerComponent, "c-sidebar-toggler", never, { "role": { "alias": "role"; "required": false; }; }, {}, never, never, true, never>;
7
8
  }
@@ -1,22 +1,19 @@
1
- import { AfterContentInit, EventEmitter, IterableDiffers, KeyValueDiffers, OnChanges, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
2
- import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
1
+ import { AfterContentInit, EventEmitter, IterableDiffers, KeyValueDiffers, OnChanges, QueryList, SimpleChanges, TemplateRef, WritableSignal } from '@angular/core';
3
2
  import { BehaviorSubject } from 'rxjs';
4
3
  import { ITable } from '../../table/table.type';
5
- import { IColumn, IColumnFilter, IColumnFilterValue, IItem, IItemInternal, ISmartTable, ISorter, ISorterValue, ITableFilter, ITableGroupProps, ItemsPerPageSelect } from '../smart-table.type';
4
+ import { IColumn, IColumnFilter, IColumnFilterValue, IGroup, IItem, IItemInternal, ISmartTable, ISorter, ISorterValue, ITableFilter, ITableSectionProps, ItemsPerPageSelect, SortOrder } from '../smart-table.type';
6
5
  import { TemplateIdDirective } from '../../shared';
7
6
  import * as i0 from "@angular/core";
8
7
  export declare class SmartTableComponent implements ISmartTable, AfterContentInit, OnChanges {
9
8
  private iterableDiffers;
10
9
  private keyValueDiffers;
11
- static ngAcceptInputType_activePage: NumberInput;
12
- static ngAcceptInputType_cleaner: BooleanInput;
13
- static ngAcceptInputType_clickableRows: BooleanInput;
14
- static ngAcceptInputType_footer: BooleanInput;
15
- static ngAcceptInputType_header: BooleanInput;
16
- static ngAcceptInputType_itemsPerPage: NumberInput;
17
- static ngAcceptInputType_pagination: BooleanInput;
18
- static ngAcceptInputType_selectable: BooleanInput;
19
10
  constructor(iterableDiffers: IterableDiffers, keyValueDiffers: KeyValueDiffers);
11
+ readonly getColumnKey: (column: string | IColumn) => string;
12
+ readonly getTableDataCellClass: (column: IColumn, item: IItem) => {
13
+ [x: string]: boolean;
14
+ };
15
+ readonly getTableDataCellProps: (column: IColumn, item: IItem) => {};
16
+ readonly getTableDataCellStyles: (column: IColumn, item: IItem) => Partial<CSSStyleDeclaration>;
20
17
  readonly selectedAllSubject: BehaviorSubject<boolean | "indeterminate">;
21
18
  private readonly itemsDiffer;
22
19
  private readonly itemsFilteredDiffer;
@@ -25,28 +22,23 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
25
22
  set activePage(value: number);
26
23
  get activePage(): number;
27
24
  private _activePage;
28
- set cleaner(value: boolean);
29
- get cleaner(): boolean;
30
- private _cleaner;
31
- set clickableRows(value: boolean);
32
- get clickableRows(): boolean;
33
- private _clickableRows;
34
- set columns(value: (string | IColumn)[]);
35
- get columns(): (string | IColumn)[];
36
- private _columns?;
25
+ cleaner: boolean;
26
+ clickableRows: boolean;
27
+ set columns(value: (string | IColumn | IGroup)[]);
28
+ get columns(): IColumn[];
29
+ columns$: WritableSignal<IColumn[]>;
30
+ columnGroups$: WritableSignal<IGroup[][]>;
31
+ showGroups$: import("@angular/core").Signal<boolean>;
37
32
  columnFilter?: boolean | IColumnFilter;
38
33
  set columnFilterValue(value: IColumnFilterValue);
39
34
  get columnFilterValue(): IColumnFilterValue;
40
35
  private _columnFilterValue;
41
36
  columnSorter?: boolean | ISorter;
42
- set footer(value: boolean);
43
- get footer(): boolean;
44
- private _footer;
45
- set header(value: boolean);
46
- get header(): boolean;
47
- private _header;
37
+ footer: boolean;
38
+ header: boolean;
48
39
  set items(value: IItem[]);
49
40
  get items(): IItem[];
41
+ items$: WritableSignal<IItemInternal[]>;
50
42
  private _items;
51
43
  set itemsPerPage(value: number);
52
44
  get itemsPerPage(): number;
@@ -56,15 +48,11 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
56
48
  itemsPerPageSelect?: boolean | ItemsPerPageSelect;
57
49
  loading?: boolean;
58
50
  noItemsLabel: string | TemplateRef<any>;
59
- set pagination(value: boolean);
60
- get pagination(): boolean;
61
- private _pagination;
51
+ pagination: boolean;
62
52
  set selectable(value: boolean);
63
53
  get selectable(): boolean;
64
54
  private _selectable;
65
- set selectAll(value: boolean);
66
- get selectAll(): boolean;
67
- private _selectAll;
55
+ selectAll: boolean;
68
56
  set sorterValue(value: ISorterValue);
69
57
  get sorterValue(): ISorterValue;
70
58
  private _sorterValue;
@@ -76,9 +64,9 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
76
64
  set tableFilterValue(value: string);
77
65
  get tableFilterValue(): string;
78
66
  private _tableFilterValue;
79
- tableBodyProps?: ITableGroupProps;
80
- tableFootProps?: ITableGroupProps;
81
- tableHeadProps?: ITableGroupProps;
67
+ tableBodyProps?: ITableSectionProps;
68
+ tableFootProps?: ITableSectionProps;
69
+ tableHeadProps?: ITableSectionProps;
82
70
  tableProps?: ITable;
83
71
  readonly selectedItemsChange: EventEmitter<IItem[]>;
84
72
  readonly sorterValueChange: EventEmitter<ISorterValue>;
@@ -105,9 +93,8 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
105
93
  get firstItemOnActivePageIndex(): number;
106
94
  get itemsOnActivePage(): IItemInternal[];
107
95
  get currentItems(): IItemInternal[];
108
- get genCols(): string[];
109
- get rawColumnNames(): string[];
110
- get itemsDataColumns(): string[];
96
+ rawColumnNames$: import("@angular/core").Signal<string[]>;
97
+ itemsDataColumns$: import("@angular/core").Signal<string[]>;
111
98
  get sortedItems(): IItemInternal[];
112
99
  get tableFilterEvent(): 'change' | 'input';
113
100
  private _columnFiltered;
@@ -118,9 +105,10 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
118
105
  handleSortChange($event: {
119
106
  columnKey: string;
120
107
  index: number;
108
+ order?: SortOrder;
121
109
  }): void;
122
110
  isSortable(i: number): boolean | undefined;
123
- handleSorterChange(column: string, index: number): void;
111
+ handleSorterChange(column: string, index: number, order?: SortOrder): void;
124
112
  setActivePage($event: number): void;
125
113
  handleColumnFilterChange($event: any): void;
126
114
  handleTableFilterChange($event: {
@@ -131,18 +119,6 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
131
119
  handleItemsPerPageChange(value: number): void;
132
120
  handleRowChecked($event: Event, item: IItemInternal): void;
133
121
  handleSelectAllChange($event: any): void;
134
- tableDataCellProps(item: IItem, colName: string): {
135
- active?: boolean | undefined;
136
- align?: "top" | "middle" | "bottom" | undefined;
137
- color?: string | undefined;
138
- _attributes?: {
139
- [key: string]: any;
140
- } | undefined;
141
- } | undefined;
142
- tableDataCellClasses(item: IItem, colName: string): string | string[] | Set<string> | {
143
- [klass: string]: any;
144
- } | undefined;
145
- getColumnName($event: MouseEvent): string;
146
122
  handleRowClick(param: {
147
123
  $event: MouseEvent;
148
124
  item: IItemInternal;
@@ -151,4 +127,13 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
151
127
  ngOnChanges(changes: SimpleChanges): void;
152
128
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableComponent, never>;
153
129
  static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableComponent, "c-smart-table", ["cSmartTable"], { "activePage": { "alias": "activePage"; "required": false; }; "cleaner": { "alias": "cleaner"; "required": false; }; "clickableRows": { "alias": "clickableRows"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "columnFilter": { "alias": "columnFilter"; "required": false; }; "columnFilterValue": { "alias": "columnFilterValue"; "required": false; }; "columnSorter": { "alias": "columnSorter"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "header": { "alias": "header"; "required": false; }; "items": { "alias": "items"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "itemsPerPageLabel": { "alias": "itemsPerPageLabel"; "required": false; }; "itemsPerPageOptions": { "alias": "itemsPerPageOptions"; "required": false; }; "itemsPerPageSelect": { "alias": "itemsPerPageSelect"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "noItemsLabel": { "alias": "noItemsLabel"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "selectAll": { "alias": "selectAll"; "required": false; }; "sorterValue": { "alias": "sorterValue"; "required": false; }; "tableFilter": { "alias": "tableFilter"; "required": false; }; "tableFilterLabel": { "alias": "tableFilterLabel"; "required": false; }; "tableFilterPlaceholder": { "alias": "tableFilterPlaceholder"; "required": false; }; "tableFilterValue": { "alias": "tableFilterValue"; "required": false; }; "tableBodyProps": { "alias": "tableBodyProps"; "required": false; }; "tableFootProps": { "alias": "tableFootProps"; "required": false; }; "tableHeadProps": { "alias": "tableHeadProps"; "required": false; }; "tableProps": { "alias": "tableProps"; "required": false; }; }, { "selectedItemsChange": "selectedItemsChange"; "sorterValueChange": "sorterValueChange"; "activePageChange": "activePageChange"; "itemsPerPageChange": "itemsPerPageChange"; "rowClick": "rowClick"; "columnFilterValueChange": "columnFilterValueChange"; "filteredItemsChange": "filteredItemsChange"; "tableFilterValueChange": "tableFilterValueChange"; }, ["columnTemplates"], ["[customHeader]"], true, never>;
130
+ static ngAcceptInputType_activePage: unknown;
131
+ static ngAcceptInputType_cleaner: unknown;
132
+ static ngAcceptInputType_clickableRows: unknown;
133
+ static ngAcceptInputType_footer: unknown;
134
+ static ngAcceptInputType_header: unknown;
135
+ static ngAcceptInputType_itemsPerPage: unknown;
136
+ static ngAcceptInputType_pagination: unknown;
137
+ static ngAcceptInputType_selectable: unknown;
138
+ static ngAcceptInputType_selectAll: unknown;
154
139
  }
@@ -3,7 +3,6 @@ import { IColumn } from '../smart-table.type';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SmartTableColumnLabelPipe implements PipeTransform {
5
5
  transform(column: IColumn | string, ...args: unknown[]): unknown;
6
- prettifyName(name: string): string;
7
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableColumnLabelPipe, never>;
8
7
  static ɵpipe: i0.ɵɵPipeDeclaration<SmartTableColumnLabelPipe, "columnLabel", true>;
9
8
  }
@@ -1,21 +1,31 @@
1
- import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
1
+ import { EventEmitter, OnInit, TemplateRef, WritableSignal } from '@angular/core';
2
2
  import { BehaviorSubject } from 'rxjs';
3
- import { IColumn, IColumnFilter, IColumnFilterValue, ISorter, ISorterValue } from '../smart-table.type';
3
+ import { IColumn, IColumnFilter, IColumnFilterValue, IGroup, ISorter, ISorterValue, SortOrder } from '../smart-table.type';
4
4
  import { Colors } from '../../coreui.types';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class SmartTableHeadComponent implements OnInit {
7
7
  #private;
8
8
  constructor();
9
+ protected readonly getTableHeaderCellStyles: (column: IColumn, columnSorter: boolean | ISorter | undefined) => Partial<CSSStyleDeclaration>;
10
+ protected readonly getTableHeaderCellProps: (column: string | IColumn) => {
11
+ [key: string]: any;
12
+ };
13
+ protected readonly getTableHeaderCellClass: (column: IColumn) => {
14
+ [x: string]: boolean;
15
+ };
9
16
  columnFilter?: boolean | IColumnFilter;
10
17
  columnFilterState: IColumnFilterValue;
11
18
  columnSorter?: boolean | ISorter;
12
19
  component?: string;
13
- columns?: (IColumn | string)[];
20
+ set columns(value: (IColumn | IGroup)[] | undefined);
21
+ get columns(): (IColumn | IGroup)[] | undefined;
22
+ set columnGroups(value: IGroup[][]);
23
+ columnGroups$: WritableSignal<IGroup[][]>;
14
24
  selectable?: boolean;
15
- set selectAll(value: boolean);
16
- get selectAll(): boolean;
25
+ selectAll: boolean;
17
26
  set selectedAll(value: boolean | 'indeterminate');
18
27
  get selectedAll(): boolean | 'indeterminate';
28
+ showGroups: boolean;
19
29
  sorterValue?: ISorterValue;
20
30
  set columnFilterTemplates(value: any);
21
31
  get columnFilterTemplates(): any;
@@ -30,14 +40,11 @@ export declare class SmartTableHeadComponent implements OnInit {
30
40
  tfoot: boolean;
31
41
  };
32
42
  ngOnInit(): void;
33
- tableHeaderCellProps(column: IColumn | string): {
34
- [key: string]: any;
35
- };
36
43
  tableHeaderCellColor(column: IColumn | string): Colors;
37
- tableHeaderCellStyles(column: IColumn | string): any;
38
44
  columnKey(column: IColumn | string): string;
39
45
  getColumnSorterState(column: IColumn | string): string | number;
40
- handleSortClick(column: IColumn | string, i: number): void;
46
+ handleSortClick(column: IColumn | string, i: number, order?: SortOrder): void;
47
+ handleSortKeyDown($event: KeyboardEvent, column: IColumn | string, i: number): void;
41
48
  columnFilterEnabled(column: IColumn | string): boolean | ((column: import("../smart-table.type").IItem, value: string) => boolean);
42
49
  columnSorterEnabled(column: IColumn | string): boolean | ((a: import("../smart-table.type").IItem, b: import("../smart-table.type").IItem) => number);
43
50
  handleColumnFilterValueChange($event: {
@@ -48,6 +55,9 @@ export declare class SmartTableHeadComponent implements OnInit {
48
55
  handleSelectAllChecked($event: Event): void;
49
56
  getColumnFilter(column: IColumn | string): string;
50
57
  get columnFilterEvent(): 'change' | 'input';
58
+ getAriaSort(column: IColumn | string): "ascending" | "descending" | null;
51
59
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableHeadComponent, never>;
52
- static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableHeadComponent, "c-smart-table-head", never, { "columnFilter": { "alias": "columnFilter"; "required": false; }; "columnFilterState": { "alias": "columnFilterState"; "required": false; }; "columnSorter": { "alias": "columnSorter"; "required": false; }; "component": { "alias": "component"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "selectAll": { "alias": "selectAll"; "required": false; }; "selectedAll": { "alias": "selectedAll"; "required": false; }; "sorterValue": { "alias": "sorterValue"; "required": false; }; "columnFilterTemplates": { "alias": "columnFilterTemplates"; "required": false; }; "summaryRowTemplate": { "alias": "summaryRowTemplate"; "required": false; }; }, { "columnFilterStateChange": "columnFilterStateChange"; "sorterStateChange": "sorterStateChange"; "selectAllChange": "selectAllChange"; }, never, never, true, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableHeadComponent, "c-smart-table-head", never, { "columnFilter": { "alias": "columnFilter"; "required": false; }; "columnFilterState": { "alias": "columnFilterState"; "required": false; }; "columnSorter": { "alias": "columnSorter"; "required": false; }; "component": { "alias": "component"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "columnGroups": { "alias": "columnGroups"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "selectAll": { "alias": "selectAll"; "required": false; }; "selectedAll": { "alias": "selectedAll"; "required": false; }; "showGroups": { "alias": "showGroups"; "required": false; }; "sorterValue": { "alias": "sorterValue"; "required": false; }; "columnFilterTemplates": { "alias": "columnFilterTemplates"; "required": false; }; "summaryRowTemplate": { "alias": "summaryRowTemplate"; "required": false; }; }, { "columnFilterStateChange": "columnFilterStateChange"; "sorterStateChange": "sorterStateChange"; "selectAllChange": "selectAllChange"; }, never, never, true, never>;
61
+ static ngAcceptInputType_selectAll: unknown;
62
+ static ngAcceptInputType_showGroups: unknown;
53
63
  }
@@ -1,4 +1,4 @@
1
- import { Colors } from '../coreui.types';
1
+ import { Colors, NgCssClass } from '../coreui.types';
2
2
  import { TemplateRef } from '@angular/core';
3
3
  import { ITable, ITableElementProps, ITableRowCellProps } from '../table/table.type';
4
4
  export interface ISmartTable {
@@ -42,7 +42,7 @@ export interface ISmartTable {
42
42
  * Object: item is object with following keys available as column configuration:
43
43
  * - key (required)(String) - define column name equal to item key.
44
44
  * - label (String) - define visible label of column. If not defined, label will be generated automatically based on column name, by converting kebab-case and snake_case to individual words and capitalization of each word.
45
- * - _classes (String/Array/Object) - adds classes to all cels in column
45
+ * - _classes (String/Array/Object) - adds classes to all cells in a column
46
46
  * - _style (String/Array/Object) - adds styles to the column header (useful for defining widths)
47
47
  * - sorter (Boolean) - disables sorting of the column when set to false
48
48
  * - filter (Boolean) - removes filter from column when set to false.
@@ -64,7 +64,7 @@ export interface ISmartTable {
64
64
  */
65
65
  footer?: boolean;
66
66
  /**
67
- * Set to false to remove table header.
67
+ * Set false to remove table header.
68
68
  * @default true
69
69
  */
70
70
  header?: boolean;
@@ -72,7 +72,7 @@ export interface ISmartTable {
72
72
  * Array of objects, where each object represents one item - row in table. Additionally, you can add style classes to each row by passing them by '_classes' key and to single cell by '_cellClasses'.
73
73
  *
74
74
  * Example item:
75
- * { name: 'John' , age: 12, _props: { color: 'success' }, _cellProps: { age: { className: 'fw-bold'}}}
75
+ * { name: 'John' , age: 12, _props: { color: 'success' }, _cellProps: { age: { class: 'fw-bold'}}}
76
76
  * For column generation description see columns prop.
77
77
  * @type Array<IItem>
78
78
  */
@@ -87,21 +87,17 @@ export interface ISmartTable {
87
87
  * Label for items per page selector.
88
88
  * @default 'Items per page:'
89
89
  * @type string
90
- * todo or remove?
91
90
  */
92
91
  itemsPerPageLabel?: string;
93
92
  /**
94
93
  * Items per page selector options.
95
94
  * @default [5, 10, 20, 50]
96
95
  * @type number[]
97
- * todo or remove?
98
96
  */
99
97
  itemsPerPageOptions?: number[];
100
98
  /**
101
99
  * Adds select element over table, which is used for control items per page in pagination.
102
100
  * If you want to customize this element, pass an object with optional values:
103
- * - label (String) - replaces default label text
104
- * - values (Array) - custom array of pagination values
105
101
  * - external (Boolean) - disables automatic 'itemsPerPage' change (use to change pages externally by 'pagination-change' event).
106
102
  */
107
103
  itemsPerPageSelect?: boolean | ItemsPerPageSelect;
@@ -130,7 +126,7 @@ export interface ISmartTable {
130
126
  */
131
127
  /**
132
128
  * Scoped columns.
133
- * @type ScopedColumns
129
+ // * @type ScopedColumns
134
130
  * todo or remove?
135
131
  */
136
132
  /**
@@ -164,15 +160,15 @@ export interface ISmartTable {
164
160
  */
165
161
  sortingIconDescending?: TemplateRef<any>;
166
162
  /**
167
- * Properties to `CTableBody` component.
163
+ * Properties to `TableBody` component.
168
164
  * @link https://coreui.io/angular/docs/components/table/#ctablebody
169
- * todo or remove?
170
165
  */
166
+ tableBodyProps?: ITableSectionProps;
171
167
  /**
172
- * Properties to `CTableFoot` component.
168
+ * Properties to `TableFoot` component.
173
169
  * @link https://coreui.io/angular/docs/components/table/#ctablefoot
174
- * todo or remove?
175
170
  */
171
+ tableFootProps?: ITableSectionProps;
176
172
  /**
177
173
  * When set, displays table filter above table, allowing filtering by specific column.
178
174
  *
@@ -203,14 +199,19 @@ export interface ISmartTable {
203
199
  /**
204
200
  * Properties to `CTableHead` component.
205
201
  * @link https://coreui.io/angular/docs/components/table/#ctablehead
206
- * todo or remove?
207
202
  */
203
+ tableHeadProps?: ITableSectionProps;
208
204
  /**
209
205
  * Properties to `CTable` component.
210
206
  * @link https://coreui.io/angular/docs/components/table/#ctable
211
207
  */
212
208
  tableProps?: ITable;
213
209
  }
210
+ export interface ITableSectionProps extends ITableElementProps {
211
+ align?: 'bottom' | 'middle' | 'top';
212
+ color?: Colors;
213
+ attributes?: Partial<HTMLTableSectionElement>;
214
+ }
214
215
  export interface IColumnFilter {
215
216
  lazy?: boolean;
216
217
  external?: boolean;
@@ -219,15 +220,32 @@ export interface IColumnFilterValue {
219
220
  [key: string]: any;
220
221
  }
221
222
  export interface IColumn {
223
+ children?: IColumn[];
222
224
  filter?: boolean | ((column: IItem, value: string) => boolean);
223
- label?: string;
225
+ group?: string;
224
226
  key: string;
227
+ label?: string;
225
228
  sorter?: boolean | ((a: IItem, b: IItem) => number);
226
- _style?: any;
229
+ _attr?: Partial<HTMLTableCellElement>;
230
+ _style?: Partial<CSSStyleDeclaration>;
227
231
  _props?: ITableHeaderCellProps;
228
- _classes?: string | string[] | Set<string> | {
229
- [klass: string]: any;
230
- };
232
+ _classes?: NgCssClass;
233
+ _colAttr?: Partial<HTMLTableColElement>;
234
+ _colStyle?: Partial<CSSStyleDeclaration>;
235
+ _colProps?: ITableRowCellProps;
236
+ _colClass?: NgCssClass;
237
+ }
238
+ export interface IGroup {
239
+ children?: IGroup[] | IColumn[];
240
+ colspan?: number;
241
+ deep?: number;
242
+ group?: string;
243
+ key: string;
244
+ label?: string;
245
+ _attr?: Partial<HTMLTableCellElement>;
246
+ _class?: NgCssClass;
247
+ _props?: ITableHeaderCellProps;
248
+ _style?: Partial<CSSStyleDeclaration>;
231
249
  }
232
250
  export interface ITableHeaderCellProps {
233
251
  /**
@@ -243,26 +261,27 @@ export interface ISorter {
243
261
  external?: boolean;
244
262
  }
245
263
  export interface IItem {
264
+ _attr?: Partial<HTMLTableRowElement>;
265
+ _class?: NgCssClass;
246
266
  _props?: ITableRowCellProps;
247
- _cellProps?: ITableCellProps;
267
+ _style?: Partial<CSSStyleDeclaration>;
268
+ _cellAttr?: ITableCellProps<HTMLTableCellElement>;
269
+ _cellClass?: ITableCellProps<NgCssClass>;
270
+ _cellProps?: ITableCellProps<ITableRowCellProps>;
271
+ _cellStyle?: ITableCellProps<CSSStyleDeclaration>;
248
272
  _selected?: boolean;
249
273
  _selectable?: boolean;
250
274
  [key: string]: number | string | any;
251
275
  }
252
- export interface ITableCellProps {
253
- _all?: ITableRowCellProps;
254
- _attributes?: {
255
- [key: string]: any;
256
- };
257
- [key: string]: ITableRowCellProps | undefined;
276
+ export interface ITableCellProps<T> {
277
+ _all?: Partial<T>;
278
+ [key: string]: Partial<T> | undefined;
258
279
  }
259
280
  export interface IItemInternal extends IItem {
260
- _id?: number;
281
+ ___id?: number;
261
282
  }
262
283
  export interface ItemsPerPageSelect {
263
284
  external?: boolean;
264
- label?: string;
265
- values?: Array<number>;
266
285
  }
267
286
  export interface ISorterValue {
268
287
  column?: string;
@@ -275,8 +294,4 @@ export interface ITableFilter {
275
294
  placeholder?: string;
276
295
  value?: string | number;
277
296
  }
278
- export interface ITableGroupProps extends ITableElementProps {
279
- attributes?: {
280
- [key: string]: any;
281
- };
282
- }
297
+ export type SortOrder = 'asc' | 'desc' | 0 | undefined;
@@ -0,0 +1,29 @@
1
+ import { IColumn, IGroup, IItem, ISorter } from './smart-table.type';
2
+ export declare const getClickedColumnName: (target: HTMLTextAreaElement, columnNames: string[], selectable: boolean) => string;
3
+ export declare const getColumnKey: (column: IColumn | string) => string;
4
+ export declare const getColumnLabel: (column: IColumn | string) => string;
5
+ export declare const getColumnName: (column: IColumn | string) => string;
6
+ export declare const getColumnNames: (columns: (string | IColumn)[] | undefined, items: IItem[]) => string[];
7
+ export declare const getColumns: (_columns: (IColumn | IGroup)[]) => (IColumn)[];
8
+ export declare const countColumns: (columns: IColumn[], counter?: number) => number;
9
+ export declare const getColumnGroups: (columns: (string | IColumn)[] | undefined) => IGroup[][];
10
+ export declare const getColumnNamesFromItems: (items: IItem[]) => string[];
11
+ export declare const getColumnValues: (items: IItem[], key: string) => any[];
12
+ export declare const convertNgClassToObj: (value: string | Set<string> | string[] | {
13
+ [klass: string]: any;
14
+ } | null | undefined) => {
15
+ [klass: string]: boolean;
16
+ };
17
+ export declare const getTableDataCellClass: (column: IColumn, item: IItem) => {
18
+ [x: string]: boolean;
19
+ };
20
+ export declare const getTableDataCellProps: (column: IColumn, item: IItem) => {};
21
+ export declare const getTableDataCellStyles: (column: IColumn, item: IItem) => Partial<CSSStyleDeclaration>;
22
+ export declare const getTableHeaderCellProps: (column: IColumn | string) => {
23
+ [key: string]: any;
24
+ };
25
+ export declare const getTableHeaderCellClass: (column: IColumn) => {
26
+ [x: string]: boolean;
27
+ };
28
+ export declare const getTableHeaderCellStyles: (column: IColumn, columnSorter: boolean | ISorter | undefined) => Partial<CSSStyleDeclaration>;
29
+ export declare const prettifyName: (name: string) => string;