ng-prime-tools 1.0.71 → 1.0.73

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 (594) hide show
  1. package/README.md +381 -258
  2. package/fesm2022/ng-prime-tools.mjs +349 -330
  3. package/fesm2022/ng-prime-tools.mjs.map +1 -1
  4. package/package.json +15 -9
  5. package/types/ng-prime-tools.d.ts +1992 -0
  6. package/types/ng-prime-tools.d.ts.map +1 -0
  7. package/esm2022/lib/enums/align.enum.mjs +0 -8
  8. package/esm2022/lib/enums/badge-type.enum.mjs +0 -21
  9. package/esm2022/lib/enums/button-color.enum.mjs +0 -10
  10. package/esm2022/lib/enums/form-input-type.enum.mjs +0 -16
  11. package/esm2022/lib/enums/index.mjs +0 -2
  12. package/esm2022/lib/enums/input-validation.enum.mjs +0 -9
  13. package/esm2022/lib/enums/public-api.mjs +0 -10
  14. package/esm2022/lib/enums/search-criteria-type.enum.mjs +0 -10
  15. package/esm2022/lib/enums/severity.enum.mjs +0 -8
  16. package/esm2022/lib/enums/table-type.enum.mjs +0 -17
  17. package/esm2022/lib/models/axis-chart-config.model.mjs +0 -2
  18. package/esm2022/lib/models/axis-chart-data.model.mjs +0 -2
  19. package/esm2022/lib/models/badge.model.mjs +0 -2
  20. package/esm2022/lib/models/bread-crumb-config.model.mjs +0 -2
  21. package/esm2022/lib/models/button.model.mjs +0 -2
  22. package/esm2022/lib/models/card-config.model.mjs +0 -2
  23. package/esm2022/lib/models/chart-config.model.mjs +0 -2
  24. package/esm2022/lib/models/filter-option.model.mjs +0 -2
  25. package/esm2022/lib/models/footer-config.model.mjs +0 -2
  26. package/esm2022/lib/models/footer.model.mjs +0 -2
  27. package/esm2022/lib/models/form-button.model.mjs +0 -2
  28. package/esm2022/lib/models/form-check-field.model.mjs +0 -2
  29. package/esm2022/lib/models/form-date-field.model.mjs +0 -2
  30. package/esm2022/lib/models/form-drop-down-field.model.mjs +0 -2
  31. package/esm2022/lib/models/form-field-group.model.mjs +0 -2
  32. package/esm2022/lib/models/form-field.model.mjs +0 -2
  33. package/esm2022/lib/models/form-multi-select.model.mjs +0 -2
  34. package/esm2022/lib/models/form-number-field.model.mjs +0 -2
  35. package/esm2022/lib/models/form-switch-field.model.mjs +0 -2
  36. package/esm2022/lib/models/form-text-area-field.model.mjs +0 -2
  37. package/esm2022/lib/models/form-text-field.model.mjs +0 -2
  38. package/esm2022/lib/models/icon-image-style.model.mjs +0 -2
  39. package/esm2022/lib/models/icon-style.model.mjs +0 -2
  40. package/esm2022/lib/models/image-style.model.mjs +0 -2
  41. package/esm2022/lib/models/index.mjs +0 -2
  42. package/esm2022/lib/models/login-model.mjs +0 -2
  43. package/esm2022/lib/models/login-page-config.model.mjs +0 -2
  44. package/esm2022/lib/models/menu-config.model.mjs +0 -2
  45. package/esm2022/lib/models/menu-item.model.mjs +0 -2
  46. package/esm2022/lib/models/menu.model.mjs +0 -2
  47. package/esm2022/lib/models/metric-card-data.model.mjs +0 -2
  48. package/esm2022/lib/models/metric-indicateur-data.model.mjs +0 -2
  49. package/esm2022/lib/models/metric-panel-data.model.mjs +0 -2
  50. package/esm2022/lib/models/nav-bar-menu-config.model.mjs +0 -2
  51. package/esm2022/lib/models/page-skeleton-config.model.mjs +0 -2
  52. package/esm2022/lib/models/pattern.model.mjs +0 -2
  53. package/esm2022/lib/models/pt-confirm-dialog-config.model.mjs +0 -2
  54. package/esm2022/lib/models/pt-dialog-config.model.mjs +0 -3
  55. package/esm2022/lib/models/public-api.mjs +0 -58
  56. package/esm2022/lib/models/search-criteria.model.mjs +0 -2
  57. package/esm2022/lib/models/side-menu-bar-config.model.mjs +0 -2
  58. package/esm2022/lib/models/table-column.model.mjs +0 -2
  59. package/esm2022/lib/models/text-style.model.mjs +0 -2
  60. package/esm2022/lib/models/title-style.model.mjs +0 -2
  61. package/esm2022/lib/models/toast-message.model.mjs +0 -2
  62. package/esm2022/lib/multi-search-criteria/index.mjs +0 -2
  63. package/esm2022/lib/multi-search-criteria/multi-search-criteria.component.mjs +0 -154
  64. package/esm2022/lib/multi-search-criteria/multi-search-criteria.module.mjs +0 -48
  65. package/esm2022/lib/multi-search-criteria/public-api.mjs +0 -3
  66. package/esm2022/lib/ng-prime-tools.module.mjs +0 -277
  67. package/esm2022/lib/pipes/custom-currency.mjs +0 -44
  68. package/esm2022/lib/pipes/custom-date.pipe.mjs +0 -44
  69. package/esm2022/lib/pt-advanced-prime-table/date-utility.service.mjs +0 -43
  70. package/esm2022/lib/pt-advanced-prime-table/index.mjs +0 -2
  71. package/esm2022/lib/pt-advanced-prime-table/pt-advanced-prime-table.component.mjs +0 -1050
  72. package/esm2022/lib/pt-advanced-prime-table/pt-advanced-prime-table.module.mjs +0 -80
  73. package/esm2022/lib/pt-advanced-prime-table/public-api.mjs +0 -4
  74. package/esm2022/lib/pt-bread-crumb/index.mjs +0 -2
  75. package/esm2022/lib/pt-bread-crumb/pt-bread-crumb.component.mjs +0 -50
  76. package/esm2022/lib/pt-bread-crumb/pt-bread-crumb.module.mjs +0 -19
  77. package/esm2022/lib/pt-bread-crumb/pt-bread-crumb.service.mjs +0 -92
  78. package/esm2022/lib/pt-bread-crumb/public-api.mjs +0 -3
  79. package/esm2022/lib/pt-button/index.mjs +0 -2
  80. package/esm2022/lib/pt-button/pt-button.component.mjs +0 -115
  81. package/esm2022/lib/pt-button/pt-button.module.mjs +0 -19
  82. package/esm2022/lib/pt-button/public-api.mjs +0 -3
  83. package/esm2022/lib/pt-card/index.mjs +0 -2
  84. package/esm2022/lib/pt-card/pt-card.component.mjs +0 -206
  85. package/esm2022/lib/pt-card/pt-card.module.mjs +0 -19
  86. package/esm2022/lib/pt-card/public-api.mjs +0 -3
  87. package/esm2022/lib/pt-chart/index.mjs +0 -2
  88. package/esm2022/lib/pt-chart/pt-chart.component.mjs +0 -71
  89. package/esm2022/lib/pt-chart/pt-chart.module.mjs +0 -18
  90. package/esm2022/lib/pt-chart/public-api.mjs +0 -3
  91. package/esm2022/lib/pt-chart-comparison/index.mjs +0 -2
  92. package/esm2022/lib/pt-chart-comparison/pt-chart-comparison.component.mjs +0 -143
  93. package/esm2022/lib/pt-chart-comparison/pt-chart-comparison.module.mjs +0 -18
  94. package/esm2022/lib/pt-chart-comparison/public-api.mjs +0 -3
  95. package/esm2022/lib/pt-check-box-input/index.mjs +0 -2
  96. package/esm2022/lib/pt-check-box-input/pt-check-box-input.component.mjs +0 -62
  97. package/esm2022/lib/pt-check-box-input/pt-check-box-input.module.mjs +0 -20
  98. package/esm2022/lib/pt-check-box-input/public-api.mjs +0 -3
  99. package/esm2022/lib/pt-confirm-dialog/index.mjs +0 -2
  100. package/esm2022/lib/pt-confirm-dialog/pt-confirm-dialog.component.mjs +0 -374
  101. package/esm2022/lib/pt-confirm-dialog/pt-confirm-dialog.module.mjs +0 -21
  102. package/esm2022/lib/pt-confirm-dialog/public-api.mjs +0 -3
  103. package/esm2022/lib/pt-date-input/index.mjs +0 -2
  104. package/esm2022/lib/pt-date-input/pt-date-input.component.mjs +0 -86
  105. package/esm2022/lib/pt-date-input/pt-date-input.module.mjs +0 -20
  106. package/esm2022/lib/pt-date-input/pt-date.service.mjs +0 -62
  107. package/esm2022/lib/pt-date-input/public-api.mjs +0 -3
  108. package/esm2022/lib/pt-dialog/index.mjs +0 -2
  109. package/esm2022/lib/pt-dialog/pt-dialog.component.mjs +0 -171
  110. package/esm2022/lib/pt-dialog/pt-dialog.module.mjs +0 -19
  111. package/esm2022/lib/pt-dialog/public-api.mjs +0 -3
  112. package/esm2022/lib/pt-dropdown/index.mjs +0 -2
  113. package/esm2022/lib/pt-dropdown/pt-dropdown.component.mjs +0 -177
  114. package/esm2022/lib/pt-dropdown/pt-dropdown.module.mjs +0 -20
  115. package/esm2022/lib/pt-dropdown/public-api.mjs +0 -3
  116. package/esm2022/lib/pt-footer/index.mjs +0 -2
  117. package/esm2022/lib/pt-footer/pt-footer.component.mjs +0 -41
  118. package/esm2022/lib/pt-footer/pt-footer.module.mjs +0 -19
  119. package/esm2022/lib/pt-footer/public-api.mjs +0 -3
  120. package/esm2022/lib/pt-form-builder/index.mjs +0 -2
  121. package/esm2022/lib/pt-form-builder/pt-dynamic-form-field/pt-dynamic-form-field-module.mjs +0 -59
  122. package/esm2022/lib/pt-form-builder/pt-dynamic-form-field/pt-dynamic-form-field.component.mjs +0 -55
  123. package/esm2022/lib/pt-form-builder/pt-form-builder.component.mjs +0 -167
  124. package/esm2022/lib/pt-form-builder/pt-form-builder.module.mjs +0 -32
  125. package/esm2022/lib/pt-form-builder/public-api.mjs +0 -3
  126. package/esm2022/lib/pt-group/index.mjs +0 -2
  127. package/esm2022/lib/pt-group/pt-group.component.mjs +0 -39
  128. package/esm2022/lib/pt-group/pt-group.module.mjs +0 -19
  129. package/esm2022/lib/pt-group/public-api.mjs +0 -3
  130. package/esm2022/lib/pt-line-chart/index.mjs +0 -2
  131. package/esm2022/lib/pt-line-chart/pt-line-chart.component.mjs +0 -104
  132. package/esm2022/lib/pt-line-chart/pt-line-chart.module.mjs +0 -20
  133. package/esm2022/lib/pt-line-chart/public-api.mjs +0 -3
  134. package/esm2022/lib/pt-login-page/index.mjs +0 -2
  135. package/esm2022/lib/pt-login-page/pt-login-card/pt-login-card.component.mjs +0 -153
  136. package/esm2022/lib/pt-login-page/pt-login-page.component.mjs +0 -53
  137. package/esm2022/lib/pt-login-page/pt-login-page.module.mjs +0 -43
  138. package/esm2022/lib/pt-login-page/public-api.mjs +0 -3
  139. package/esm2022/lib/pt-menu/index.mjs +0 -2
  140. package/esm2022/lib/pt-menu/pt-menu.component.mjs +0 -97
  141. package/esm2022/lib/pt-menu/pt-menu.module.mjs +0 -18
  142. package/esm2022/lib/pt-menu/public-api.mjs +0 -3
  143. package/esm2022/lib/pt-menu-fancy/index.mjs +0 -2
  144. package/esm2022/lib/pt-menu-fancy/pt-menu-fancy.component.mjs +0 -105
  145. package/esm2022/lib/pt-menu-fancy/pt-menu-fancy.module.mjs +0 -19
  146. package/esm2022/lib/pt-menu-fancy/public-api.mjs +0 -3
  147. package/esm2022/lib/pt-metric-card/index.mjs +0 -2
  148. package/esm2022/lib/pt-metric-card/pt-metric-card.component.mjs +0 -194
  149. package/esm2022/lib/pt-metric-card/pt-metric-card.module.mjs +0 -18
  150. package/esm2022/lib/pt-metric-card/public-api.mjs +0 -3
  151. package/esm2022/lib/pt-metric-card-group/index.mjs +0 -2
  152. package/esm2022/lib/pt-metric-card-group/pt-metric-card-group.component.mjs +0 -18
  153. package/esm2022/lib/pt-metric-card-group/pt-metric-card-group.module.mjs +0 -19
  154. package/esm2022/lib/pt-metric-card-group/public-api.mjs +0 -3
  155. package/esm2022/lib/pt-metric-panel/index.mjs +0 -2
  156. package/esm2022/lib/pt-metric-panel/pt-metric-panel.component.mjs +0 -93
  157. package/esm2022/lib/pt-metric-panel/pt-metric-panel.module.mjs +0 -19
  158. package/esm2022/lib/pt-metric-panel/public-api.mjs +0 -3
  159. package/esm2022/lib/pt-multi-select/index.mjs +0 -2
  160. package/esm2022/lib/pt-multi-select/pt-multi-select.component.mjs +0 -85
  161. package/esm2022/lib/pt-multi-select/pt-multi-select.module.mjs +0 -20
  162. package/esm2022/lib/pt-multi-select/public-api.mjs +0 -3
  163. package/esm2022/lib/pt-nav-bar-menu/index.mjs +0 -2
  164. package/esm2022/lib/pt-nav-bar-menu/pt-nav-bar-menu.component.mjs +0 -331
  165. package/esm2022/lib/pt-nav-bar-menu/pt-nav-bar-menu.module.mjs +0 -20
  166. package/esm2022/lib/pt-nav-bar-menu/public-api.mjs +0 -3
  167. package/esm2022/lib/pt-number-input/index.mjs +0 -2
  168. package/esm2022/lib/pt-number-input/pt-number-input.component.mjs +0 -100
  169. package/esm2022/lib/pt-number-input/pt-number-input.module.mjs +0 -43
  170. package/esm2022/lib/pt-number-input/public-api.mjs +0 -3
  171. package/esm2022/lib/pt-page-skeleton/index.mjs +0 -2
  172. package/esm2022/lib/pt-page-skeleton/pt-page-skeleton.component.mjs +0 -59
  173. package/esm2022/lib/pt-page-skeleton/pt-page-skeleton.module.mjs +0 -44
  174. package/esm2022/lib/pt-page-skeleton/public-api.mjs +0 -3
  175. package/esm2022/lib/pt-side-bar-menu/index.mjs +0 -2
  176. package/esm2022/lib/pt-side-bar-menu/pt-side-bar-menu.component.mjs +0 -214
  177. package/esm2022/lib/pt-side-bar-menu/pt-side-bar-menu.module.mjs +0 -21
  178. package/esm2022/lib/pt-side-bar-menu/public-api.mjs +0 -3
  179. package/esm2022/lib/pt-switch-input/index.mjs +0 -2
  180. package/esm2022/lib/pt-switch-input/pt-switch-input.component.mjs +0 -70
  181. package/esm2022/lib/pt-switch-input/pt-switch-input.module.mjs +0 -20
  182. package/esm2022/lib/pt-switch-input/public-api.mjs +0 -3
  183. package/esm2022/lib/pt-text-area-input/index.mjs +0 -2
  184. package/esm2022/lib/pt-text-area-input/pt-text-area-input.component.mjs +0 -103
  185. package/esm2022/lib/pt-text-area-input/pt-text-area-input.module.mjs +0 -36
  186. package/esm2022/lib/pt-text-area-input/public-api.mjs +0 -3
  187. package/esm2022/lib/pt-text-input/index.mjs +0 -2
  188. package/esm2022/lib/pt-text-input/pt-text-input.component.mjs +0 -115
  189. package/esm2022/lib/pt-text-input/pt-text-input.module.mjs +0 -36
  190. package/esm2022/lib/pt-text-input/public-api.mjs +0 -3
  191. package/esm2022/lib/pt-toast-notifier/index.mjs +0 -2
  192. package/esm2022/lib/pt-toast-notifier/pt-toast-notifier.component.mjs +0 -29
  193. package/esm2022/lib/pt-toast-notifier/pt-toast-notifier.module.mjs +0 -21
  194. package/esm2022/lib/pt-toast-notifier/public-api.mjs +0 -3
  195. package/esm2022/lib/types/date-format.type.mjs +0 -2
  196. package/esm2022/lib/types/date-input.type.mjs +0 -2
  197. package/esm2022/lib/types/index.mjs +0 -2
  198. package/esm2022/lib/types/public-api.mjs +0 -2
  199. package/esm2022/lib/utils/date.util.mjs +0 -69
  200. package/esm2022/lib/utils/text.util.mjs +0 -23
  201. package/esm2022/ng-prime-tools.mjs +0 -5
  202. package/esm2022/public-api.mjs +0 -51
  203. package/index.d.ts +0 -6
  204. package/lib/enums/align.enum.d.ts +0 -6
  205. package/lib/enums/align.enum.d.ts.map +0 -1
  206. package/lib/enums/badge-type.enum.d.ts +0 -20
  207. package/lib/enums/badge-type.enum.d.ts.map +0 -1
  208. package/lib/enums/button-color.enum.d.ts +0 -9
  209. package/lib/enums/button-color.enum.d.ts.map +0 -1
  210. package/lib/enums/form-input-type.enum.d.ts +0 -15
  211. package/lib/enums/form-input-type.enum.d.ts.map +0 -1
  212. package/lib/enums/index.d.ts +0 -2
  213. package/lib/enums/index.d.ts.map +0 -1
  214. package/lib/enums/input-validation.enum.d.ts +0 -8
  215. package/lib/enums/input-validation.enum.d.ts.map +0 -1
  216. package/lib/enums/public-api.d.ts +0 -9
  217. package/lib/enums/public-api.d.ts.map +0 -1
  218. package/lib/enums/search-criteria-type.enum.d.ts +0 -9
  219. package/lib/enums/search-criteria-type.enum.d.ts.map +0 -1
  220. package/lib/enums/severity.enum.d.ts +0 -7
  221. package/lib/enums/severity.enum.d.ts.map +0 -1
  222. package/lib/enums/table-type.enum.d.ts +0 -16
  223. package/lib/enums/table-type.enum.d.ts.map +0 -1
  224. package/lib/models/axis-chart-config.model.d.ts +0 -17
  225. package/lib/models/axis-chart-config.model.d.ts.map +0 -1
  226. package/lib/models/axis-chart-data.model.d.ts +0 -5
  227. package/lib/models/axis-chart-data.model.d.ts.map +0 -1
  228. package/lib/models/badge.model.d.ts +0 -8
  229. package/lib/models/badge.model.d.ts.map +0 -1
  230. package/lib/models/bread-crumb-config.model.d.ts +0 -7
  231. package/lib/models/bread-crumb-config.model.d.ts.map +0 -1
  232. package/lib/models/button.model.d.ts +0 -18
  233. package/lib/models/button.model.d.ts.map +0 -1
  234. package/lib/models/card-config.model.d.ts +0 -28
  235. package/lib/models/card-config.model.d.ts.map +0 -1
  236. package/lib/models/chart-config.model.d.ts +0 -33
  237. package/lib/models/chart-config.model.d.ts.map +0 -1
  238. package/lib/models/filter-option.model.d.ts +0 -5
  239. package/lib/models/filter-option.model.d.ts.map +0 -1
  240. package/lib/models/footer-config.model.d.ts +0 -8
  241. package/lib/models/footer-config.model.d.ts.map +0 -1
  242. package/lib/models/footer.model.d.ts +0 -5
  243. package/lib/models/footer.model.d.ts.map +0 -1
  244. package/lib/models/form-button.model.d.ts +0 -10
  245. package/lib/models/form-button.model.d.ts.map +0 -1
  246. package/lib/models/form-check-field.model.d.ts +0 -4
  247. package/lib/models/form-check-field.model.d.ts.map +0 -1
  248. package/lib/models/form-date-field.model.d.ts +0 -11
  249. package/lib/models/form-date-field.model.d.ts.map +0 -1
  250. package/lib/models/form-drop-down-field.model.d.ts +0 -13
  251. package/lib/models/form-drop-down-field.model.d.ts.map +0 -1
  252. package/lib/models/form-field-group.model.d.ts +0 -7
  253. package/lib/models/form-field-group.model.d.ts.map +0 -1
  254. package/lib/models/form-field.model.d.ts +0 -16
  255. package/lib/models/form-field.model.d.ts.map +0 -1
  256. package/lib/models/form-multi-select.model.d.ts +0 -5
  257. package/lib/models/form-multi-select.model.d.ts.map +0 -1
  258. package/lib/models/form-number-field.model.d.ts +0 -11
  259. package/lib/models/form-number-field.model.d.ts.map +0 -1
  260. package/lib/models/form-switch-field.model.d.ts +0 -4
  261. package/lib/models/form-switch-field.model.d.ts.map +0 -1
  262. package/lib/models/form-text-area-field.model.d.ts +0 -11
  263. package/lib/models/form-text-area-field.model.d.ts.map +0 -1
  264. package/lib/models/form-text-field.model.d.ts +0 -11
  265. package/lib/models/form-text-field.model.d.ts.map +0 -1
  266. package/lib/models/icon-image-style.model.d.ts +0 -12
  267. package/lib/models/icon-image-style.model.d.ts.map +0 -1
  268. package/lib/models/icon-style.model.d.ts +0 -9
  269. package/lib/models/icon-style.model.d.ts.map +0 -1
  270. package/lib/models/image-style.model.d.ts +0 -14
  271. package/lib/models/image-style.model.d.ts.map +0 -1
  272. package/lib/models/index.d.ts +0 -2
  273. package/lib/models/index.d.ts.map +0 -1
  274. package/lib/models/login-model.d.ts +0 -7
  275. package/lib/models/login-model.d.ts.map +0 -1
  276. package/lib/models/login-page-config.model.d.ts +0 -25
  277. package/lib/models/login-page-config.model.d.ts.map +0 -1
  278. package/lib/models/menu-config.model.d.ts +0 -10
  279. package/lib/models/menu-config.model.d.ts.map +0 -1
  280. package/lib/models/menu-item.model.d.ts +0 -11
  281. package/lib/models/menu-item.model.d.ts.map +0 -1
  282. package/lib/models/menu.model.d.ts +0 -13
  283. package/lib/models/menu.model.d.ts.map +0 -1
  284. package/lib/models/metric-card-data.model.d.ts +0 -35
  285. package/lib/models/metric-card-data.model.d.ts.map +0 -1
  286. package/lib/models/metric-indicateur-data.model.d.ts +0 -9
  287. package/lib/models/metric-indicateur-data.model.d.ts.map +0 -1
  288. package/lib/models/metric-panel-data.model.d.ts +0 -7
  289. package/lib/models/metric-panel-data.model.d.ts.map +0 -1
  290. package/lib/models/nav-bar-menu-config.model.d.ts +0 -30
  291. package/lib/models/nav-bar-menu-config.model.d.ts.map +0 -1
  292. package/lib/models/page-skeleton-config.model.d.ts +0 -14
  293. package/lib/models/page-skeleton-config.model.d.ts.map +0 -1
  294. package/lib/models/pattern.model.d.ts +0 -12
  295. package/lib/models/pattern.model.d.ts.map +0 -1
  296. package/lib/models/pt-confirm-dialog-config.model.d.ts +0 -18
  297. package/lib/models/pt-confirm-dialog-config.model.d.ts.map +0 -1
  298. package/lib/models/pt-dialog-config.model.d.ts +0 -42
  299. package/lib/models/pt-dialog-config.model.d.ts.map +0 -1
  300. package/lib/models/public-api.d.ts +0 -44
  301. package/lib/models/public-api.d.ts.map +0 -1
  302. package/lib/models/search-criteria.model.d.ts +0 -15
  303. package/lib/models/search-criteria.model.d.ts.map +0 -1
  304. package/lib/models/side-menu-bar-config.model.d.ts +0 -21
  305. package/lib/models/side-menu-bar-config.model.d.ts.map +0 -1
  306. package/lib/models/table-column.model.d.ts +0 -47
  307. package/lib/models/table-column.model.d.ts.map +0 -1
  308. package/lib/models/text-style.model.d.ts +0 -8
  309. package/lib/models/text-style.model.d.ts.map +0 -1
  310. package/lib/models/title-style.model.d.ts +0 -9
  311. package/lib/models/title-style.model.d.ts.map +0 -1
  312. package/lib/models/toast-message.model.d.ts +0 -7
  313. package/lib/models/toast-message.model.d.ts.map +0 -1
  314. package/lib/multi-search-criteria/index.d.ts +0 -2
  315. package/lib/multi-search-criteria/index.d.ts.map +0 -1
  316. package/lib/multi-search-criteria/multi-search-criteria.component.d.ts +0 -32
  317. package/lib/multi-search-criteria/multi-search-criteria.component.d.ts.map +0 -1
  318. package/lib/multi-search-criteria/multi-search-criteria.module.d.ts +0 -16
  319. package/lib/multi-search-criteria/multi-search-criteria.module.d.ts.map +0 -1
  320. package/lib/multi-search-criteria/public-api.d.ts +0 -3
  321. package/lib/multi-search-criteria/public-api.d.ts.map +0 -1
  322. package/lib/ng-prime-tools.module.d.ts +0 -34
  323. package/lib/ng-prime-tools.module.d.ts.map +0 -1
  324. package/lib/pipes/custom-currency.d.ts +0 -8
  325. package/lib/pipes/custom-currency.d.ts.map +0 -1
  326. package/lib/pipes/custom-date.pipe.d.ts +0 -8
  327. package/lib/pipes/custom-date.pipe.d.ts.map +0 -1
  328. package/lib/pt-advanced-prime-table/date-utility.service.d.ts +0 -8
  329. package/lib/pt-advanced-prime-table/date-utility.service.d.ts.map +0 -1
  330. package/lib/pt-advanced-prime-table/index.d.ts +0 -2
  331. package/lib/pt-advanced-prime-table/index.d.ts.map +0 -1
  332. package/lib/pt-advanced-prime-table/pt-advanced-prime-table.component.d.ts +0 -189
  333. package/lib/pt-advanced-prime-table/pt-advanced-prime-table.component.d.ts.map +0 -1
  334. package/lib/pt-advanced-prime-table/pt-advanced-prime-table.module.d.ts +0 -25
  335. package/lib/pt-advanced-prime-table/pt-advanced-prime-table.module.d.ts.map +0 -1
  336. package/lib/pt-advanced-prime-table/public-api.d.ts +0 -4
  337. package/lib/pt-advanced-prime-table/public-api.d.ts.map +0 -1
  338. package/lib/pt-bread-crumb/index.d.ts +0 -2
  339. package/lib/pt-bread-crumb/index.d.ts.map +0 -1
  340. package/lib/pt-bread-crumb/pt-bread-crumb.component.d.ts +0 -23
  341. package/lib/pt-bread-crumb/pt-bread-crumb.component.d.ts.map +0 -1
  342. package/lib/pt-bread-crumb/pt-bread-crumb.module.d.ts +0 -10
  343. package/lib/pt-bread-crumb/pt-bread-crumb.module.d.ts.map +0 -1
  344. package/lib/pt-bread-crumb/pt-bread-crumb.service.d.ts +0 -17
  345. package/lib/pt-bread-crumb/pt-bread-crumb.service.d.ts.map +0 -1
  346. package/lib/pt-bread-crumb/public-api.d.ts +0 -3
  347. package/lib/pt-bread-crumb/public-api.d.ts.map +0 -1
  348. package/lib/pt-button/index.d.ts +0 -2
  349. package/lib/pt-button/index.d.ts.map +0 -1
  350. package/lib/pt-button/pt-button.component.d.ts +0 -25
  351. package/lib/pt-button/pt-button.component.d.ts.map +0 -1
  352. package/lib/pt-button/pt-button.module.d.ts +0 -10
  353. package/lib/pt-button/pt-button.module.d.ts.map +0 -1
  354. package/lib/pt-button/public-api.d.ts +0 -3
  355. package/lib/pt-button/public-api.d.ts.map +0 -1
  356. package/lib/pt-card/index.d.ts +0 -2
  357. package/lib/pt-card/index.d.ts.map +0 -1
  358. package/lib/pt-card/pt-card.component.d.ts +0 -89
  359. package/lib/pt-card/pt-card.component.d.ts.map +0 -1
  360. package/lib/pt-card/pt-card.module.d.ts +0 -10
  361. package/lib/pt-card/pt-card.module.d.ts.map +0 -1
  362. package/lib/pt-card/public-api.d.ts +0 -3
  363. package/lib/pt-card/public-api.d.ts.map +0 -1
  364. package/lib/pt-chart/index.d.ts +0 -2
  365. package/lib/pt-chart/index.d.ts.map +0 -1
  366. package/lib/pt-chart/pt-chart.component.d.ts +0 -17
  367. package/lib/pt-chart/pt-chart.component.d.ts.map +0 -1
  368. package/lib/pt-chart/pt-chart.module.d.ts +0 -9
  369. package/lib/pt-chart/pt-chart.module.d.ts.map +0 -1
  370. package/lib/pt-chart/public-api.d.ts +0 -3
  371. package/lib/pt-chart/public-api.d.ts.map +0 -1
  372. package/lib/pt-chart-comparison/index.d.ts +0 -2
  373. package/lib/pt-chart-comparison/index.d.ts.map +0 -1
  374. package/lib/pt-chart-comparison/pt-chart-comparison.component.d.ts +0 -27
  375. package/lib/pt-chart-comparison/pt-chart-comparison.component.d.ts.map +0 -1
  376. package/lib/pt-chart-comparison/pt-chart-comparison.module.d.ts +0 -9
  377. package/lib/pt-chart-comparison/pt-chart-comparison.module.d.ts.map +0 -1
  378. package/lib/pt-chart-comparison/public-api.d.ts +0 -3
  379. package/lib/pt-chart-comparison/public-api.d.ts.map +0 -1
  380. package/lib/pt-check-box-input/index.d.ts +0 -2
  381. package/lib/pt-check-box-input/index.d.ts.map +0 -1
  382. package/lib/pt-check-box-input/pt-check-box-input.component.d.ts +0 -17
  383. package/lib/pt-check-box-input/pt-check-box-input.component.d.ts.map +0 -1
  384. package/lib/pt-check-box-input/pt-check-box-input.module.d.ts +0 -11
  385. package/lib/pt-check-box-input/pt-check-box-input.module.d.ts.map +0 -1
  386. package/lib/pt-check-box-input/public-api.d.ts +0 -3
  387. package/lib/pt-check-box-input/public-api.d.ts.map +0 -1
  388. package/lib/pt-confirm-dialog/index.d.ts +0 -2
  389. package/lib/pt-confirm-dialog/index.d.ts.map +0 -1
  390. package/lib/pt-confirm-dialog/pt-confirm-dialog.component.d.ts +0 -44
  391. package/lib/pt-confirm-dialog/pt-confirm-dialog.component.d.ts.map +0 -1
  392. package/lib/pt-confirm-dialog/pt-confirm-dialog.module.d.ts +0 -11
  393. package/lib/pt-confirm-dialog/pt-confirm-dialog.module.d.ts.map +0 -1
  394. package/lib/pt-confirm-dialog/public-api.d.ts +0 -3
  395. package/lib/pt-confirm-dialog/public-api.d.ts.map +0 -1
  396. package/lib/pt-date-input/index.d.ts +0 -2
  397. package/lib/pt-date-input/index.d.ts.map +0 -1
  398. package/lib/pt-date-input/pt-date-input.component.d.ts +0 -25
  399. package/lib/pt-date-input/pt-date-input.component.d.ts.map +0 -1
  400. package/lib/pt-date-input/pt-date-input.module.d.ts +0 -11
  401. package/lib/pt-date-input/pt-date-input.module.d.ts.map +0 -1
  402. package/lib/pt-date-input/pt-date.service.d.ts +0 -11
  403. package/lib/pt-date-input/pt-date.service.d.ts.map +0 -1
  404. package/lib/pt-date-input/public-api.d.ts +0 -3
  405. package/lib/pt-date-input/public-api.d.ts.map +0 -1
  406. package/lib/pt-dialog/index.d.ts +0 -2
  407. package/lib/pt-dialog/index.d.ts.map +0 -1
  408. package/lib/pt-dialog/pt-dialog.component.d.ts +0 -36
  409. package/lib/pt-dialog/pt-dialog.component.d.ts.map +0 -1
  410. package/lib/pt-dialog/pt-dialog.module.d.ts +0 -10
  411. package/lib/pt-dialog/pt-dialog.module.d.ts.map +0 -1
  412. package/lib/pt-dialog/public-api.d.ts +0 -3
  413. package/lib/pt-dialog/public-api.d.ts.map +0 -1
  414. package/lib/pt-dropdown/index.d.ts +0 -2
  415. package/lib/pt-dropdown/index.d.ts.map +0 -1
  416. package/lib/pt-dropdown/pt-dropdown.component.d.ts +0 -36
  417. package/lib/pt-dropdown/pt-dropdown.component.d.ts.map +0 -1
  418. package/lib/pt-dropdown/pt-dropdown.module.d.ts +0 -11
  419. package/lib/pt-dropdown/pt-dropdown.module.d.ts.map +0 -1
  420. package/lib/pt-dropdown/public-api.d.ts +0 -3
  421. package/lib/pt-dropdown/public-api.d.ts.map +0 -1
  422. package/lib/pt-footer/index.d.ts +0 -2
  423. package/lib/pt-footer/index.d.ts.map +0 -1
  424. package/lib/pt-footer/pt-footer.component.d.ts +0 -11
  425. package/lib/pt-footer/pt-footer.component.d.ts.map +0 -1
  426. package/lib/pt-footer/pt-footer.module.d.ts +0 -10
  427. package/lib/pt-footer/pt-footer.module.d.ts.map +0 -1
  428. package/lib/pt-footer/public-api.d.ts +0 -3
  429. package/lib/pt-footer/public-api.d.ts.map +0 -1
  430. package/lib/pt-form-builder/index.d.ts +0 -2
  431. package/lib/pt-form-builder/index.d.ts.map +0 -1
  432. package/lib/pt-form-builder/pt-dynamic-form-field/pt-dynamic-form-field-module.d.ts +0 -18
  433. package/lib/pt-form-builder/pt-dynamic-form-field/pt-dynamic-form-field-module.d.ts.map +0 -1
  434. package/lib/pt-form-builder/pt-dynamic-form-field/pt-dynamic-form-field.component.d.ts +0 -29
  435. package/lib/pt-form-builder/pt-dynamic-form-field/pt-dynamic-form-field.component.d.ts.map +0 -1
  436. package/lib/pt-form-builder/pt-form-builder.component.d.ts +0 -50
  437. package/lib/pt-form-builder/pt-form-builder.component.d.ts.map +0 -1
  438. package/lib/pt-form-builder/pt-form-builder.module.d.ts +0 -12
  439. package/lib/pt-form-builder/pt-form-builder.module.d.ts.map +0 -1
  440. package/lib/pt-form-builder/public-api.d.ts +0 -3
  441. package/lib/pt-form-builder/public-api.d.ts.map +0 -1
  442. package/lib/pt-group/index.d.ts +0 -2
  443. package/lib/pt-group/index.d.ts.map +0 -1
  444. package/lib/pt-group/pt-group.component.d.ts +0 -12
  445. package/lib/pt-group/pt-group.component.d.ts.map +0 -1
  446. package/lib/pt-group/pt-group.module.d.ts +0 -10
  447. package/lib/pt-group/pt-group.module.d.ts.map +0 -1
  448. package/lib/pt-group/public-api.d.ts +0 -3
  449. package/lib/pt-group/public-api.d.ts.map +0 -1
  450. package/lib/pt-line-chart/index.d.ts +0 -2
  451. package/lib/pt-line-chart/index.d.ts.map +0 -1
  452. package/lib/pt-line-chart/pt-line-chart.component.d.ts +0 -15
  453. package/lib/pt-line-chart/pt-line-chart.component.d.ts.map +0 -1
  454. package/lib/pt-line-chart/pt-line-chart.module.d.ts +0 -11
  455. package/lib/pt-line-chart/pt-line-chart.module.d.ts.map +0 -1
  456. package/lib/pt-line-chart/public-api.d.ts +0 -3
  457. package/lib/pt-line-chart/public-api.d.ts.map +0 -1
  458. package/lib/pt-login-page/index.d.ts +0 -2
  459. package/lib/pt-login-page/index.d.ts.map +0 -1
  460. package/lib/pt-login-page/pt-login-card/pt-login-card.component.d.ts +0 -19
  461. package/lib/pt-login-page/pt-login-card/pt-login-card.component.d.ts.map +0 -1
  462. package/lib/pt-login-page/pt-login-page.component.d.ts +0 -16
  463. package/lib/pt-login-page/pt-login-page.component.d.ts.map +0 -1
  464. package/lib/pt-login-page/pt-login-page.module.d.ts +0 -14
  465. package/lib/pt-login-page/pt-login-page.module.d.ts.map +0 -1
  466. package/lib/pt-login-page/public-api.d.ts +0 -3
  467. package/lib/pt-login-page/public-api.d.ts.map +0 -1
  468. package/lib/pt-menu/index.d.ts +0 -2
  469. package/lib/pt-menu/index.d.ts.map +0 -1
  470. package/lib/pt-menu/pt-menu.component.d.ts +0 -33
  471. package/lib/pt-menu/pt-menu.component.d.ts.map +0 -1
  472. package/lib/pt-menu/pt-menu.module.d.ts +0 -9
  473. package/lib/pt-menu/pt-menu.module.d.ts.map +0 -1
  474. package/lib/pt-menu/public-api.d.ts +0 -3
  475. package/lib/pt-menu/public-api.d.ts.map +0 -1
  476. package/lib/pt-menu-fancy/index.d.ts +0 -2
  477. package/lib/pt-menu-fancy/index.d.ts.map +0 -1
  478. package/lib/pt-menu-fancy/pt-menu-fancy.component.d.ts +0 -35
  479. package/lib/pt-menu-fancy/pt-menu-fancy.component.d.ts.map +0 -1
  480. package/lib/pt-menu-fancy/pt-menu-fancy.module.d.ts +0 -10
  481. package/lib/pt-menu-fancy/pt-menu-fancy.module.d.ts.map +0 -1
  482. package/lib/pt-menu-fancy/public-api.d.ts +0 -3
  483. package/lib/pt-menu-fancy/public-api.d.ts.map +0 -1
  484. package/lib/pt-metric-card/index.d.ts +0 -2
  485. package/lib/pt-metric-card/index.d.ts.map +0 -1
  486. package/lib/pt-metric-card/pt-metric-card.component.d.ts +0 -89
  487. package/lib/pt-metric-card/pt-metric-card.component.d.ts.map +0 -1
  488. package/lib/pt-metric-card/pt-metric-card.module.d.ts +0 -9
  489. package/lib/pt-metric-card/pt-metric-card.module.d.ts.map +0 -1
  490. package/lib/pt-metric-card/public-api.d.ts +0 -3
  491. package/lib/pt-metric-card/public-api.d.ts.map +0 -1
  492. package/lib/pt-metric-card-group/index.d.ts +0 -2
  493. package/lib/pt-metric-card-group/index.d.ts.map +0 -1
  494. package/lib/pt-metric-card-group/pt-metric-card-group.component.d.ts +0 -8
  495. package/lib/pt-metric-card-group/pt-metric-card-group.component.d.ts.map +0 -1
  496. package/lib/pt-metric-card-group/pt-metric-card-group.module.d.ts +0 -10
  497. package/lib/pt-metric-card-group/pt-metric-card-group.module.d.ts.map +0 -1
  498. package/lib/pt-metric-card-group/public-api.d.ts +0 -3
  499. package/lib/pt-metric-card-group/public-api.d.ts.map +0 -1
  500. package/lib/pt-metric-panel/index.d.ts +0 -2
  501. package/lib/pt-metric-panel/index.d.ts.map +0 -1
  502. package/lib/pt-metric-panel/pt-metric-panel.component.d.ts +0 -55
  503. package/lib/pt-metric-panel/pt-metric-panel.component.d.ts.map +0 -1
  504. package/lib/pt-metric-panel/pt-metric-panel.module.d.ts +0 -10
  505. package/lib/pt-metric-panel/pt-metric-panel.module.d.ts.map +0 -1
  506. package/lib/pt-metric-panel/public-api.d.ts +0 -3
  507. package/lib/pt-metric-panel/public-api.d.ts.map +0 -1
  508. package/lib/pt-multi-select/index.d.ts +0 -2
  509. package/lib/pt-multi-select/index.d.ts.map +0 -1
  510. package/lib/pt-multi-select/pt-multi-select.component.d.ts +0 -22
  511. package/lib/pt-multi-select/pt-multi-select.component.d.ts.map +0 -1
  512. package/lib/pt-multi-select/pt-multi-select.module.d.ts +0 -11
  513. package/lib/pt-multi-select/pt-multi-select.module.d.ts.map +0 -1
  514. package/lib/pt-multi-select/public-api.d.ts +0 -3
  515. package/lib/pt-multi-select/public-api.d.ts.map +0 -1
  516. package/lib/pt-nav-bar-menu/index.d.ts +0 -2
  517. package/lib/pt-nav-bar-menu/index.d.ts.map +0 -1
  518. package/lib/pt-nav-bar-menu/pt-nav-bar-menu.component.d.ts +0 -98
  519. package/lib/pt-nav-bar-menu/pt-nav-bar-menu.component.d.ts.map +0 -1
  520. package/lib/pt-nav-bar-menu/pt-nav-bar-menu.module.d.ts +0 -11
  521. package/lib/pt-nav-bar-menu/pt-nav-bar-menu.module.d.ts.map +0 -1
  522. package/lib/pt-nav-bar-menu/public-api.d.ts +0 -3
  523. package/lib/pt-nav-bar-menu/public-api.d.ts.map +0 -1
  524. package/lib/pt-number-input/index.d.ts +0 -2
  525. package/lib/pt-number-input/index.d.ts.map +0 -1
  526. package/lib/pt-number-input/pt-number-input.component.d.ts +0 -18
  527. package/lib/pt-number-input/pt-number-input.component.d.ts.map +0 -1
  528. package/lib/pt-number-input/pt-number-input.module.d.ts +0 -14
  529. package/lib/pt-number-input/pt-number-input.module.d.ts.map +0 -1
  530. package/lib/pt-number-input/public-api.d.ts +0 -3
  531. package/lib/pt-number-input/public-api.d.ts.map +0 -1
  532. package/lib/pt-page-skeleton/index.d.ts +0 -2
  533. package/lib/pt-page-skeleton/index.d.ts.map +0 -1
  534. package/lib/pt-page-skeleton/pt-page-skeleton.component.d.ts +0 -19
  535. package/lib/pt-page-skeleton/pt-page-skeleton.component.d.ts.map +0 -1
  536. package/lib/pt-page-skeleton/pt-page-skeleton.module.d.ts +0 -15
  537. package/lib/pt-page-skeleton/pt-page-skeleton.module.d.ts.map +0 -1
  538. package/lib/pt-page-skeleton/public-api.d.ts +0 -3
  539. package/lib/pt-page-skeleton/public-api.d.ts.map +0 -1
  540. package/lib/pt-side-bar-menu/index.d.ts +0 -2
  541. package/lib/pt-side-bar-menu/index.d.ts.map +0 -1
  542. package/lib/pt-side-bar-menu/pt-side-bar-menu.component.d.ts +0 -43
  543. package/lib/pt-side-bar-menu/pt-side-bar-menu.component.d.ts.map +0 -1
  544. package/lib/pt-side-bar-menu/pt-side-bar-menu.module.d.ts +0 -12
  545. package/lib/pt-side-bar-menu/pt-side-bar-menu.module.d.ts.map +0 -1
  546. package/lib/pt-side-bar-menu/public-api.d.ts +0 -3
  547. package/lib/pt-side-bar-menu/public-api.d.ts.map +0 -1
  548. package/lib/pt-switch-input/index.d.ts +0 -2
  549. package/lib/pt-switch-input/index.d.ts.map +0 -1
  550. package/lib/pt-switch-input/pt-switch-input.component.d.ts +0 -18
  551. package/lib/pt-switch-input/pt-switch-input.component.d.ts.map +0 -1
  552. package/lib/pt-switch-input/pt-switch-input.module.d.ts +0 -11
  553. package/lib/pt-switch-input/pt-switch-input.module.d.ts.map +0 -1
  554. package/lib/pt-switch-input/public-api.d.ts +0 -3
  555. package/lib/pt-switch-input/public-api.d.ts.map +0 -1
  556. package/lib/pt-text-area-input/index.d.ts +0 -2
  557. package/lib/pt-text-area-input/index.d.ts.map +0 -1
  558. package/lib/pt-text-area-input/pt-text-area-input.component.d.ts +0 -20
  559. package/lib/pt-text-area-input/pt-text-area-input.component.d.ts.map +0 -1
  560. package/lib/pt-text-area-input/pt-text-area-input.module.d.ts +0 -13
  561. package/lib/pt-text-area-input/pt-text-area-input.module.d.ts.map +0 -1
  562. package/lib/pt-text-area-input/public-api.d.ts +0 -3
  563. package/lib/pt-text-area-input/public-api.d.ts.map +0 -1
  564. package/lib/pt-text-input/index.d.ts +0 -2
  565. package/lib/pt-text-input/index.d.ts.map +0 -1
  566. package/lib/pt-text-input/pt-text-input.component.d.ts +0 -22
  567. package/lib/pt-text-input/pt-text-input.component.d.ts.map +0 -1
  568. package/lib/pt-text-input/pt-text-input.module.d.ts +0 -13
  569. package/lib/pt-text-input/pt-text-input.module.d.ts.map +0 -1
  570. package/lib/pt-text-input/public-api.d.ts +0 -3
  571. package/lib/pt-text-input/public-api.d.ts.map +0 -1
  572. package/lib/pt-toast-notifier/index.d.ts +0 -2
  573. package/lib/pt-toast-notifier/index.d.ts.map +0 -1
  574. package/lib/pt-toast-notifier/pt-toast-notifier.component.d.ts +0 -12
  575. package/lib/pt-toast-notifier/pt-toast-notifier.component.d.ts.map +0 -1
  576. package/lib/pt-toast-notifier/pt-toast-notifier.module.d.ts +0 -10
  577. package/lib/pt-toast-notifier/pt-toast-notifier.module.d.ts.map +0 -1
  578. package/lib/pt-toast-notifier/public-api.d.ts +0 -3
  579. package/lib/pt-toast-notifier/public-api.d.ts.map +0 -1
  580. package/lib/types/date-format.type.d.ts +0 -2
  581. package/lib/types/date-format.type.d.ts.map +0 -1
  582. package/lib/types/date-input.type.d.ts +0 -2
  583. package/lib/types/date-input.type.d.ts.map +0 -1
  584. package/lib/types/index.d.ts +0 -2
  585. package/lib/types/index.d.ts.map +0 -1
  586. package/lib/types/public-api.d.ts +0 -2
  587. package/lib/types/public-api.d.ts.map +0 -1
  588. package/lib/utils/date.util.d.ts +0 -7
  589. package/lib/utils/date.util.d.ts.map +0 -1
  590. package/lib/utils/text.util.d.ts +0 -11
  591. package/lib/utils/text.util.d.ts.map +0 -1
  592. package/ng-prime-tools.d.ts.map +0 -1
  593. package/public-api.d.ts +0 -35
  594. package/public-api.d.ts.map +0 -1
package/README.md CHANGED
@@ -7,6 +7,7 @@ An advanced PrimeNG tools library for Angular.
7
7
  - [Introduction](#introduction)
8
8
  - [Installation](#installation)
9
9
  - [Compatibility](#compatibility)
10
+ - [PrimeNG Theme Configuration](#primeng-theme-configuration)
10
11
  - [Usage](#usage)
11
12
  - [pt-advanced-prime-table](#pt-advanced-prime-table)
12
13
  - [Inputs](#inputs)
@@ -24,114 +25,185 @@ An advanced PrimeNG tools library for Angular.
24
25
 
25
26
  ## Introduction
26
27
 
27
- `ng-prime-tools` is a collection of advanced tools built on top of PrimeNG for Angular applications.
28
+ `ng-prime-tools` is a collection of advanced reusable UI tools built on top of PrimeNG for Angular applications.
28
29
 
29
- To include the necessary steps for installing `ng-prime-tools` along with its dependencies, you can update the installation instructions as follows:
30
+ The library provides configurable components for advanced tables, dynamic forms, dashboards, cards, menus, dialogs, charts, search criteria, page skeletons, and other common application needs.
31
+
32
+ Version `2.x` targets Angular 21 and PrimeNG 21.
30
33
 
31
34
  ## Installation
32
35
 
33
- To install `ng-prime-tools` and its necessary dependencies, use the following commands:
36
+ Install `ng-prime-tools` with its required peer dependencies:
34
37
 
35
38
  ```bash
36
39
  npm install ng-prime-tools
40
+ npm install primeng @primeng/themes primeicons primeflex
37
41
  npm install chart.js chartjs-plugin-datalabels
38
42
  ```
39
43
 
40
- This ensures that all required libraries are properly installed and available for use in your project.
44
+ For Angular 21, use a compatible Node.js, TypeScript, and RxJS environment.
45
+
46
+ Recommended versions:
47
+
48
+ - Node.js: `^20.19.0 || ^22.12.0 || ^24.0.0`
49
+ - TypeScript: `>=5.9.0 <6.0.0`
50
+ - RxJS: `^7.4.0`
51
+ - Zone.js: `~0.15.1`
52
+
53
+ Angular 21 officially supports Node.js `^20.19.0 || ^22.12.0 || ^24.0.0`, TypeScript `>=5.9.0 <6.0.0`, and RxJS `^6.5.3 || ^7.4.0`. For this library, RxJS `^7.4.0` is recommended.
41
54
 
42
55
  ## Compatibility
43
56
 
44
- - **Angular Version**: 17.3.1 or higher
45
- - **PrimeNG Version**: 17.18.0 or higher
57
+ | Library | Version |
58
+ | ------------------------- | ---------------- |
59
+ | Angular | `^21.0.0` |
60
+ | PrimeNG | `^21.0.0` |
61
+ | @primeng/themes | `^21.0.0` |
62
+ | PrimeIcons | `^7.0.0` |
63
+ | PrimeFlex | `^4.0.0` |
64
+ | Chart.js | `^4.4.4` |
65
+ | chartjs-plugin-datalabels | `^2.2.0` |
66
+ | RxJS | `^7.4.0` |
67
+ | TypeScript | `>=5.9.0 <6.0.0` |
68
+ | Zone.js | `~0.15.1` |
69
+
70
+ `ng-prime-tools` version `2.x` targets Angular 21 and PrimeNG 21.
71
+
72
+ For Angular 17 / PrimeNG 17 applications, use the previous `1.x` version of the library.
73
+
74
+ ## PrimeNG Theme Configuration
75
+
76
+ PrimeNG 21 uses the styled-mode theme system with presets such as Aura, Material, Lara, and Nora. It no longer relies on the old global CSS imports from `primeng/resources/...`.
77
+
78
+ Remove these old style entries from `angular.json` if they exist:
79
+
80
+ ```json
81
+ "node_modules/primeng/resources/themes/saga-blue/theme.css",
82
+ "node_modules/primeng/resources/primeng.min.css"
83
+ ```
84
+
85
+ Keep only the application stylesheet and the icon/layout libraries:
86
+
87
+ ```json
88
+ "styles": [
89
+ "src/styles.css",
90
+ "node_modules/primeicons/primeicons.css",
91
+ "node_modules/@fortawesome/fontawesome-free/css/all.min.css",
92
+ "node_modules/primeflex/primeflex.css"
93
+ ]
94
+ ```
95
+
96
+ Then configure PrimeNG using `providePrimeNG`.
97
+
98
+ Example `app.config.ts`:
99
+
100
+ ```typescript
101
+ import { ApplicationConfig } from "@angular/core";
102
+ import { provideRouter } from "@angular/router";
103
+ import { provideAnimations } from "@angular/platform-browser/animations";
104
+ import { providePrimeNG } from "primeng/config";
105
+ import Aura from "@primeng/themes/aura";
106
+
107
+ import { routes } from "./app.routes";
108
+
109
+ export const appConfig: ApplicationConfig = {
110
+ providers: [
111
+ provideRouter(routes),
112
+ provideAnimations(),
113
+ providePrimeNG({
114
+ theme: {
115
+ preset: Aura,
116
+ },
117
+ }),
118
+ ],
119
+ };
120
+ ```
46
121
 
47
122
  ## Usage
48
123
 
49
124
  ### pt-advanced-prime-table
50
125
 
51
- To use the `pt-advanced-prime-table` component, follow these steps:
52
-
53
- 1. **Import the Module:**
54
-
55
- Import the `NgAdvancedPrimeTableModule` in your Angular module or standalone component.
56
-
57
- ```typescript
58
- import { NgAdvancedPrimeTableModule, TableColumn, TableTypeEnum } from "ng-prime-tools";
59
- ```
60
-
61
- 2. **Add the Component:**
62
-
63
- Add the `pt-advanced-prime-table` component to your template:
64
-
65
- ```html
66
- <pt-advanced-prime-table [columns]="columns" [data]="data" [hasSearchFilter]="true" [hasColumnFilter]="true" [isPaginated]="true" [totalRecords]="totalRecords" [isSortable]="true"></pt-advanced-prime-table>
67
- ```
68
-
69
- 3. **Define the Inputs:**
70
-
71
- In your component, define the necessary inputs for the table:
72
-
73
- ```typescript
74
- import { Component, OnInit } from "@angular/core";
75
- import { NgAdvancedPrimeTableModule } from "ng-prime-tools/pt-advanced-prime-table";
76
- import { TableColumn } from "ng-prime-tools/models";
77
- import { TableTypeEnum } from "ng-prime-tools/enums";
78
-
79
- @Component({
80
- selector: "app-root",
81
- standalone: true,
82
- imports: [NgAdvancedPrimeTableModule],
83
- templateUrl: "./app.component.html",
84
- styleUrls: ["./app.component.css"],
85
- })
86
- export class AppComponent implements OnInit {
87
- columns: TableColumn[] = [];
88
- data: any[] = [];
89
- totalRecords: number = 0;
90
-
91
- ngOnInit(): void {
92
- this.columns = [
93
- {
94
- title: "Name",
95
- code: "name",
96
- type: TableTypeEnum.STRING,
97
- isEditable: true,
98
- },
99
- {
100
- title: "Date",
101
- code: "date",
102
- type: TableTypeEnum.DATE,
103
- isEditable: true,
104
- },
105
- {
106
- title: "Amount",
107
- code: "amount",
108
- type: TableTypeEnum.AMOUNT,
109
- currency: "USD",
110
- isEditable: true,
111
- },
112
- ];
113
-
114
- this.data = [
115
- { name: "John Doe", date: "11/06/2024", amount: 100 },
116
- { name: "Jane Doe", date: "20/06/2024", amount: 200 },
117
- ];
118
-
119
- this.totalRecords = this.data.length;
120
- }
121
- }
122
- ```
126
+ To use the `pt-advanced-prime-table` component, follow these steps.
127
+
128
+ #### Import the module
129
+
130
+ Import `PTAdvancedPrimeTableModule` in your Angular module or standalone component.
131
+
132
+ ```typescript
133
+ import { PTAdvancedPrimeTableModule, TableColumn, TableTypeEnum } from "ng-prime-tools";
134
+ ```
135
+
136
+ #### Add the component
137
+
138
+ Add the `pt-advanced-prime-table` component to your template:
139
+
140
+ ```html
141
+ <pt-advanced-prime-table [columns]="columns" [data]="data" [hasSearchFilter]="true" [hasColumnFilter]="true" [isPaginated]="true" [totalRecords]="totalRecords" [isSortable]="true"></pt-advanced-prime-table>
142
+ ```
143
+
144
+ #### Define the inputs
145
+
146
+ ```typescript
147
+ import { Component, OnInit } from "@angular/core";
148
+ import { CommonModule } from "@angular/common";
149
+ import { PTAdvancedPrimeTableModule, TableColumn, TableTypeEnum } from "ng-prime-tools";
150
+
151
+ @Component({
152
+ selector: "app-root",
153
+ standalone: true,
154
+ imports: [CommonModule, PTAdvancedPrimeTableModule],
155
+ templateUrl: "./app.component.html",
156
+ styleUrls: ["./app.component.css"],
157
+ })
158
+ export class AppComponent implements OnInit {
159
+ columns: TableColumn[] = [];
160
+ data: any[] = [];
161
+ totalRecords = 0;
162
+
163
+ ngOnInit(): void {
164
+ this.columns = [
165
+ {
166
+ title: "Name",
167
+ code: "name",
168
+ type: TableTypeEnum.STRING,
169
+ isEditable: true,
170
+ },
171
+ {
172
+ title: "Date",
173
+ code: "date",
174
+ type: TableTypeEnum.DATE,
175
+ isEditable: true,
176
+ },
177
+ {
178
+ title: "Amount",
179
+ code: "amount",
180
+ type: TableTypeEnum.AMOUNT,
181
+ currency: "USD",
182
+ isEditable: true,
183
+ },
184
+ ];
185
+
186
+ this.data = [
187
+ { name: "John Doe", date: "11/06/2024", amount: 100 },
188
+ { name: "Jane Doe", date: "20/06/2024", amount: 200 },
189
+ ];
190
+
191
+ this.totalRecords = this.data.length;
192
+ }
193
+ }
194
+ ```
123
195
 
124
196
  ### Inputs
125
197
 
126
198
  - **data** (`any[]`): The data to be displayed in the table.
127
- - **columns** (`TableColumn[]`): The columns configuration for the table.
199
+ - **columns** (`TableColumn[]`): The column configuration for the table.
128
200
  - **totalRecords** (`number`): The total number of records.
129
201
  - **rowsPerPage** (`number[]`): The number of rows per page options for pagination.
130
- - **hasSearchFilter** (`boolean`): Whether the table has a global search filter.
131
- - **hasColumnFilter** (`boolean`): Whether the table has column-specific filters.
132
- - **isPaginated** (`boolean`): Whether the table is paginated.
133
- - **actions** (`any[]`): The actions available for the table rows.
134
- - **isSortable** (`boolean`): Whether the table columns are sortable.
202
+ - **hasSearchFilter** (`boolean`): Enables or disables the global search filter.
203
+ - **hasColumnFilter** (`boolean`): Enables or disables column-specific filters.
204
+ - **isPaginated** (`boolean`): Enables or disables pagination.
205
+ - **actions** (`any[]`): The actions available for table rows.
206
+ - **isSortable** (`boolean`): Enables or disables sortable columns.
135
207
 
136
208
  ### Outputs
137
209
 
@@ -140,26 +212,22 @@ To use the `pt-advanced-prime-table` component, follow these steps:
140
212
 
141
213
  ### Example
142
214
 
143
- Here's a complete example of how to use the `pt-advanced-prime-table` component:
144
-
145
215
  ```typescript
146
216
  import { Component, OnInit } from "@angular/core";
147
217
  import { CommonModule } from "@angular/common";
148
- import { NgAdvancedPrimeTableModule } from "ng-prime-tools/pt-advanced-prime-table";
149
- import { TableColumn } from "ng-prime-tools/models";
150
- import { TableTypeEnum } from "ng-prime-tools/enums";
218
+ import { PTAdvancedPrimeTableModule, TableColumn, TableTypeEnum } from "ng-prime-tools";
151
219
 
152
220
  @Component({
153
221
  selector: "app-root",
154
222
  standalone: true,
155
- imports: [CommonModule, NgAdvancedPrimeTableModule],
223
+ imports: [CommonModule, PTAdvancedPrimeTableModule],
156
224
  templateUrl: "./app.component.html",
157
225
  styleUrls: ["./app.component.css"],
158
226
  })
159
227
  export class AppComponent implements OnInit {
160
228
  columns: TableColumn[] = [];
161
229
  data: any[] = [];
162
- totalRecords: number = 0;
230
+ totalRecords = 0;
163
231
 
164
232
  ngOnInit(): void {
165
233
  this.columns = [
@@ -200,133 +268,133 @@ export class AppComponent implements OnInit {
200
268
 
201
269
  ### multi-search-criteria
202
270
 
203
- To use the `multi-search-criteria` component, follow these steps:
204
-
205
- 1. **Import the Module:**
206
-
207
- Import the `MultiSearchCriteriaModule` in your Angular module or standalone component.
208
-
209
- ```typescript
210
- import { MultiSearchCriteriaModule, SearchCriteria, SearchCriteriaTypeEnum } from "ng-prime-tools";
211
- ```
212
-
213
- 2. **Add the Component:**
214
-
215
- Add the `multi-search-criteria` component to your template:
216
-
217
- ```html
218
- <multi-search-criteria [title]="'Multi-Criteria Search'" [criteria]="criteria" [data]="data" [mode]="'dynamic'" (filteredData)="onFilteredData($event)" (searchCriteria)="onSearchData($event)"></multi-search-criteria>
219
- ```
220
-
221
- 3. **Define the Inputs:**
222
-
223
- In your component, define the necessary inputs for the criteria:
224
-
225
- ```typescript
226
- import { Component, OnInit } from "@angular/core";
227
- import { CommonModule } from "@angular/common";
228
- import { MultiSearchCriteriaModule, SearchCriteria, SearchCriteriaTypeEnum, FilterOption } from "ng-prime-tools";
229
-
230
- @Component({
231
- selector: "app-root",
232
- standalone: true,
233
- imports: [CommonModule, MultiSearchCriteriaModule],
234
- templateUrl: "./app.component.html",
235
- styleUrls: ["./app.component.css"],
236
- })
237
- export class AppComponent implements OnInit {
238
- criteria: SearchCriteria[] = [];
239
- data: any[] = [];
240
- filteredData: any[] = [];
241
- totalRecords: number = 0;
242
-
243
- ngOnInit(): void {
244
- this.criteria = [
245
- {
246
- title: "Name",
247
- code: "name",
248
- type: SearchCriteriaTypeEnum.STRING,
249
- },
250
- {
251
- title: "Date Range",
252
- code: "dateRange",
253
- type: SearchCriteriaTypeEnum.DATERANGE,
254
- },
255
- {
256
- title: "Amount",
257
- code: "amount",
258
- type: SearchCriteriaTypeEnum.AMOUNT,
259
- currency: "USD",
260
- },
261
- {
262
- title: "Type",
263
- code: "type",
264
- type: SearchCriteriaTypeEnum.MULTISELECT,
265
- filterOptions: [
266
- { label: "Invoice", value: "Invoice" },
267
- { label: "Bill", value: "Bill" },
268
- ],
269
- },
270
- ];
271
-
272
- this.data = [
273
- { name: "ZAK JAAI", date: "11/06/2024", amount: 100, type: "Invoice" },
274
- { name: "ZAK2 JAAI", date: "20/06/2024", amount: 200, type: "Bill" },
275
- ];
276
-
277
- this.filteredData = [...this.data];
278
- this.totalRecords = this.data.length;
279
- }
280
-
281
- onFilteredData(filteredData: any[]): void {
282
- this.filteredData = filteredData;
283
- this.totalRecords = filteredData.length;
284
- }
285
-
286
- onSearchData(searchCriteria: { [key: string]: any }): void {
287
- console.log(searchCriteria);
288
- }
289
- }
290
- ```
271
+ To use the `multi-search-criteria` component, follow these steps.
291
272
 
292
- ### Inputs
273
+ #### Import the module
274
+
275
+ ```typescript
276
+ import { MultiSearchCriteriaModule, SearchCriteria, SearchCriteriaTypeEnum } from "ng-prime-tools";
277
+ ```
278
+
279
+ #### Add the component
280
+
281
+ ```html
282
+ <multi-search-criteria [title]="'Multi-Criteria Search'" [criteria]="criteria" [data]="data" [mode]="'dynamic'" (filteredData)="onFilteredData($event)" (searchCriteria)="onSearchData($event)"></multi-search-criteria>
283
+ ```
293
284
 
294
- - **title** (`
285
+ #### Define the inputs
295
286
 
296
- string`): The title of the multi-search criteria panel.
287
+ ```typescript
288
+ import { Component, OnInit } from "@angular/core";
289
+ import { CommonModule } from "@angular/common";
290
+ import { MultiSearchCriteriaModule, SearchCriteria, SearchCriteriaTypeEnum, FilterOption } from "ng-prime-tools";
297
291
 
292
+ @Component({
293
+ selector: "app-root",
294
+ standalone: true,
295
+ imports: [CommonModule, MultiSearchCriteriaModule],
296
+ templateUrl: "./app.component.html",
297
+ styleUrls: ["./app.component.css"],
298
+ })
299
+ export class AppComponent implements OnInit {
300
+ criteria: SearchCriteria[] = [];
301
+ data: any[] = [];
302
+ filteredData: any[] = [];
303
+ totalRecords = 0;
304
+
305
+ ngOnInit(): void {
306
+ this.criteria = [
307
+ {
308
+ title: "Name",
309
+ code: "name",
310
+ type: SearchCriteriaTypeEnum.STRING,
311
+ },
312
+ {
313
+ title: "Date Range",
314
+ code: "dateRange",
315
+ type: SearchCriteriaTypeEnum.DATERANGE,
316
+ },
317
+ {
318
+ title: "Amount",
319
+ code: "amount",
320
+ type: SearchCriteriaTypeEnum.AMOUNT,
321
+ currency: "USD",
322
+ },
323
+ {
324
+ title: "Type",
325
+ code: "type",
326
+ type: SearchCriteriaTypeEnum.MULTISELECT,
327
+ filterOptions: [
328
+ { label: "Invoice", value: "Invoice" },
329
+ { label: "Bill", value: "Bill" },
330
+ ] as FilterOption[],
331
+ },
332
+ ];
333
+
334
+ this.data = [
335
+ {
336
+ name: "ZAK JAAI",
337
+ date: "11/06/2024",
338
+ amount: 100,
339
+ type: "Invoice",
340
+ },
341
+ {
342
+ name: "ZAK2 JAAI",
343
+ date: "20/06/2024",
344
+ amount: 200,
345
+ type: "Bill",
346
+ },
347
+ ];
348
+
349
+ this.filteredData = [...this.data];
350
+ this.totalRecords = this.data.length;
351
+ }
352
+
353
+ onFilteredData(filteredData: any[]): void {
354
+ this.filteredData = filteredData;
355
+ this.totalRecords = filteredData.length;
356
+ }
357
+
358
+ onSearchData(searchCriteria: { [key: string]: any }): void {
359
+ console.log(searchCriteria);
360
+ }
361
+ }
362
+ ```
363
+
364
+ ### Inputs
365
+
366
+ - **title** (`string`): The title of the multi-search criteria panel.
298
367
  - **criteria** (`SearchCriteria[]`): The search criteria configuration.
299
- - **data** (`any[]`): The data to be filtered (used in static mode).
300
- - **mode** (`'static' | 'dynamic'`): The mode of the multi-search criteria component.
301
- - `'static'`: Filters the data directly within the component.
302
- - `'dynamic'`: Emits the search criteria to be handled externally (e.g., for server-side filtering).
368
+ - **data** (`any[]`): The data to be filtered when the component is used in static mode.
369
+ - **mode** (`'static' | 'dynamic'`): The filtering mode.
370
+ - `'static'`: Filters the provided data directly inside the component.
371
+ - `'dynamic'`: Emits the search criteria so that the parent component or backend can handle filtering.
303
372
 
304
373
  ### Outputs
305
374
 
306
- - **filteredData** (`EventEmitter<any[]>`): Emitted with the filtered data (only in static mode).
307
- - **searchCriteria** (`EventEmitter<{ [key: string]: any }>`): Emitted with the search criteria (only in dynamic mode).
375
+ - **filteredData** (`EventEmitter<any[]>`): Emitted with the filtered data in static mode.
376
+ - **searchCriteria** (`EventEmitter<{ [key: string]: any }>`): Emitted with the search criteria in dynamic mode.
308
377
 
309
378
  ### Example
310
379
 
311
- Here's a complete example of how to use the `multi-search-criteria` component in dynamic mode:
312
-
313
380
  ```typescript
314
381
  import { Component, OnInit } from "@angular/core";
315
382
  import { CommonModule } from "@angular/common";
316
- import { MultiSearchCriteriaModule, SearchCriteria, SearchCriteriaTypeEnum, FilterOption } from "ng-prime-tools";
383
+ import { MultiSearchCriteriaModule, SearchCriteria, SearchCriteriaTypeEnum, FilterOption, PTAdvancedPrimeTableModule, TableColumn, TableTypeEnum } from "ng-prime-tools";
317
384
 
318
385
  @Component({
319
386
  selector: "app-root",
320
387
  standalone: true,
321
- imports: [CommonModule, MultiSearchCriteriaModule],
388
+ imports: [CommonModule, MultiSearchCriteriaModule, PTAdvancedPrimeTableModule],
322
389
  templateUrl: "./app.component.html",
323
390
  styleUrls: ["./app.component.css"],
324
391
  })
325
392
  export class AppComponent implements OnInit {
326
393
  criteria: SearchCriteria[] = [];
394
+ columns: TableColumn[] = [];
327
395
  data: any[] = [];
328
396
  filteredData: any[] = [];
329
- totalRecords: number = 0;
397
+ totalRecords = 0;
330
398
 
331
399
  ngOnInit(): void {
332
400
  this.criteria = [
@@ -353,13 +421,42 @@ export class AppComponent implements OnInit {
353
421
  filterOptions: [
354
422
  { label: "Invoice", value: "Invoice" },
355
423
  { label: "Bill", value: "Bill" },
356
- ],
424
+ ] as FilterOption[],
425
+ },
426
+ ];
427
+
428
+ this.columns = [
429
+ {
430
+ title: "Name",
431
+ code: "name",
432
+ type: TableTypeEnum.STRING,
433
+ },
434
+ {
435
+ title: "Amount",
436
+ code: "amount",
437
+ type: TableTypeEnum.AMOUNT,
438
+ currency: "USD",
439
+ },
440
+ {
441
+ title: "Type",
442
+ code: "type",
443
+ type: TableTypeEnum.STRING,
357
444
  },
358
445
  ];
359
446
 
360
447
  this.data = [
361
- { name: "ZAK JAAI", date: "11/06/2024", amount: 100, type: "Invoice" },
362
- { name: "ZAK2 JAAI", date: "20/06/2024", amount: 200, type: "Bill" },
448
+ {
449
+ name: "ZAK JAAI",
450
+ date: "11/06/2024",
451
+ amount: 100,
452
+ type: "Invoice",
453
+ },
454
+ {
455
+ name: "ZAK2 JAAI",
456
+ date: "20/06/2024",
457
+ amount: 200,
458
+ type: "Bill",
459
+ },
363
460
  ];
364
461
 
365
462
  this.filteredData = [...this.data];
@@ -373,7 +470,6 @@ export class AppComponent implements OnInit {
373
470
 
374
471
  onSearchData(searchCriteria: { [key: string]: any }): void {
375
472
  console.log(searchCriteria);
376
- // Perform server-side search or any other external data fetching logic
377
473
  }
378
474
  }
379
475
  ```
@@ -393,15 +489,26 @@ The `FormBuilder` component is a powerful and flexible tool for dynamically gene
393
489
  The `FormBuilder` leverages several input components to build comprehensive forms:
394
490
 
395
491
  - **`pt-check-box-input`**: A customizable checkbox input component.
396
- - **`pt-date-input`**: A versatile date input component supporting both single date and date range selections.
397
- - **`pt-dropdown`**: A dropdown input component for selecting from a list of options.
492
+ - **`pt-date-input`**: A date input component based on PrimeNG DatePicker.
493
+ - **`pt-dropdown`**: A select input component based on PrimeNG Select.
398
494
  - **`pt-form-builder`**: The form builder component that dynamically renders form fields.
399
495
  - **`pt-multi-select`**: A multi-select dropdown component for selecting multiple values from a list.
400
496
  - **`pt-number-input`**: A numeric input component with support for validation and formatting.
401
- - **`pt-switch-input`**: A switch input component, ideal for toggling settings.
402
- - **`pt-text-area-input`**: A text area input component for larger, multi-line text entries.
497
+ - **`pt-switch-input`**: A toggle switch input component based on PrimeNG ToggleSwitch.
498
+ - **`pt-text-area-input`**: A text area input component based on PrimeNG Textarea.
403
499
  - **`pt-text-input`**: A standard text input component with support for icons, placeholders, and validation.
404
500
 
501
+ #### PrimeNG component mapping
502
+
503
+ During the Angular 21 / PrimeNG 21 migration, the following PrimeNG components were replaced:
504
+
505
+ | Old PrimeNG API | New PrimeNG API |
506
+ | ---------------------------------------- | --------------------------------------- |
507
+ | `InputSwitchModule` / `p-inputSwitch` | `ToggleSwitchModule` / `p-toggleswitch` |
508
+ | `CalendarModule` / `p-calendar` | `DatePickerModule` / `p-datepicker` |
509
+ | `DropdownModule` / `p-dropdown` | `SelectModule` / `p-select` |
510
+ | `InputTextareaModule` / `pInputTextarea` | `TextareaModule` / `pTextarea` |
511
+
405
512
  #### Example
406
513
 
407
514
  Below is an example of how to use the `FormBuilder` component to create a user registration form with various input fields:
@@ -410,7 +517,7 @@ Below is an example of how to use the `FormBuilder` component to create a user r
410
517
  import { Component, OnInit } from "@angular/core";
411
518
  import { CommonModule } from "@angular/common";
412
519
  import { ReactiveFormsModule } from "@angular/forms";
413
- import { FormFieldGroup, FormInputTypeEnum, ButtonColorEnum, FormButton, PTFormBuilderModule, InputValidationEnum, FormTextField, FormCheckBoxField, FormSwitchField, FormNumberField, FormDateField, FormDropdownField, FormMultiSelectField, FormTextAreaField } from "ng-prime-tools";
520
+ import { ButtonColorEnum, FormButton, FormCheckBoxField, FormDateField, FormDropdownField, FormFieldGroup, FormInputTypeEnum, FormMultiSelectField, FormNumberField, FormSwitchField, FormTextAreaField, FormTextField, InputValidationEnum, PTFormBuilderModule } from "ng-prime-tools";
414
521
 
415
522
  @Component({
416
523
  selector: "app-form-builder-tester",
@@ -423,16 +530,16 @@ export class FormBuilderTesterComponent implements OnInit {
423
530
  mainGroup: FormFieldGroup = { fields: [], groups: [] };
424
531
  buttons: FormButton[] = [];
425
532
 
426
- ngOnInit() {
533
+ ngOnInit(): void {
427
534
  this.initializeSettings();
428
535
  }
429
536
 
430
- initializeSettings() {
537
+ initializeSettings(): void {
431
538
  this.initializeMainGroup();
432
539
  this.initializeButtons();
433
540
  }
434
541
 
435
- initializeMainGroup() {
542
+ initializeMainGroup(): void {
436
543
  this.mainGroup = {
437
544
  groups: [this.createNameGroup(), this.createSubscriptionGroup(), this.createAgeGroup(), this.createBirthdateGroup(), this.createDateRangeGroup(), this.createAmountGroup(), this.createCountryGroup(), this.createHobbiesGroup(), this.createDescriptionGroup()],
438
545
  };
@@ -611,7 +718,7 @@ export class FormBuilderTesterComponent implements OnInit {
611
718
  };
612
719
  }
613
720
 
614
- initializeButtons() {
721
+ initializeButtons(): void {
615
722
  this.buttons = [
616
723
  {
617
724
  text: "Custom Action",
@@ -619,16 +726,24 @@ export class FormBuilderTesterComponent implements OnInit {
619
726
  color: ButtonColorEnum.SUCCESS,
620
727
  icon: "pi pi-check",
621
728
  },
622
- { text: "Submit", color: ButtonColorEnum.PRIMARY, isSubmit: true },
623
- { text: "Clear", color: ButtonColorEnum.SECONDARY, isClear: true },
729
+ {
730
+ text: "Submit",
731
+ color: ButtonColorEnum.PRIMARY,
732
+ isSubmit: true,
733
+ },
734
+ {
735
+ text: "Clear",
736
+ color: ButtonColorEnum.SECONDARY,
737
+ isClear: true,
738
+ },
624
739
  ];
625
740
  }
626
741
 
627
- customAction() {
742
+ customAction(): void {
628
743
  console.log("Custom action executed");
629
744
  }
630
745
 
631
- onFormSubmit(formData: { [key: string]: any }) {
746
+ onFormSubmit(formData: { [key: string]: any }): void {
632
747
  console.log("Form submitted with data:", formData);
633
748
  }
634
749
  }
@@ -636,15 +751,33 @@ export class FormBuilderTesterComponent implements OnInit {
636
751
 
637
752
  ## Changelog
638
753
 
754
+ ### Version 2.0.0 - Release Date: 25/05/2026
755
+
756
+ - Migrated the library to **Angular 21**.
757
+ - Migrated PrimeNG dependencies to **PrimeNG 21**.
758
+ - Updated the library peer dependencies for Angular 21, PrimeNG 21, RxJS 7, and TypeScript 5.9.
759
+ - Replaced deprecated PrimeNG components:
760
+ - `InputSwitchModule` / `p-inputSwitch` → `ToggleSwitchModule` / `p-toggleswitch`
761
+ - `CalendarModule` / `p-calendar` → `DatePickerModule` / `p-datepicker`
762
+ - `DropdownModule` / `p-dropdown` → `SelectModule` / `p-select`
763
+ - `InputTextareaModule` / `pInputTextarea` → `TextareaModule` / `pTextarea`
764
+ - Updated PrimeNG theme configuration to use `@primeng/themes` and `providePrimeNG`.
765
+ - Removed old PrimeNG CSS resource imports:
766
+ - `primeng/resources/themes/...`
767
+ - `primeng/resources/primeng.min.css`
768
+ - Updated severity handling to support PrimeNG 21 severity values, including `warn` instead of the old `warning` value.
769
+ - Updated Angular templates progressively to support the latest Angular syntax and PrimeNG 21 compatibility.
770
+ - Removed obsolete Angular tooling such as TSLint, Codelyzer, and Protractor from the migration target.
771
+
639
772
  ### Version 1.0.31 - Release Date: 16/04/2025
640
773
 
641
- - pt-advanced-table : Fixing the filters with asynchronous data and composed types.
774
+ - pt-advanced-table: Fixing the filters with asynchronous data and composed types.
642
775
 
643
776
  ### Version 1.0.30 - Release Date: 10/04/2025
644
777
 
645
778
  - fixing the disabling btn in pt-login
646
779
 
647
- ### Version 1.0.28 - 1.O.29 - Release Date: 05/04/2025
780
+ ### Version 1.0.28 - 1.0.29 - Release Date: 05/04/2025
648
781
 
649
782
  - Changing style of pt-button when disabled
650
783
 
@@ -689,7 +822,7 @@ export class FormBuilderTesterComponent implements OnInit {
689
822
  ### Version 1.0.18 - Release Date: 22/01/2025
690
823
 
691
824
  - fixing search in sidebar position
692
- - pt-card : adding background color transparency and pattern image transparency
825
+ - pt-card: adding background color transparency and pattern image transparency
693
826
 
694
827
  ### Version 1.0.17 - Release Date: 21/01/2025
695
828
 
@@ -705,7 +838,7 @@ export class FormBuilderTesterComponent implements OnInit {
705
838
 
706
839
  ### Version 1.0.14 - Release Date: 15/11/2024
707
840
 
708
- - fix metric-card 'fixedWidth' param
841
+ - fix metric-card `fixedWidth` param
709
842
  - adding design for icons in metric cards
710
843
  - fix issue having multiple charts using pt-chart
711
844
 
@@ -727,79 +860,69 @@ export class FormBuilderTesterComponent implements OnInit {
727
860
  ### Version 1.0.10 - Release Date: 25/09/2024
728
861
 
729
862
  - **New Components:**
730
-
731
- - **`pt-bar`:** Introduced a new bar component to visually represent progress or metrics in a horizontal bar layout.
732
- - **`pt-text-input`:** Added a customizable text input component to handle various form input needs with validation and error handling.
733
- - **`pt-page-skeleton`:** Introduced a page skeleton component for loading states, offering a clean UI while data is being fetched.
734
- - **`pt-footer`:** A new footer component providing a customizable and responsive footer layout for pages.
735
- - **`pt-menu-fancy`:** Added a new fancy menu component for stylish navigation menus with enhanced layout options.
736
- - **`pt-button`:** Introduced a highly customizable button component with various styles, icons, and action support.
737
- - **`pt-confirm-dialog`:** Added a flexible dialog component for modal-based interactions, supporting customizable content, actions, and layout.
863
+ - **`pt-bar`**: Introduced a new bar component to visually represent progress or metrics in a horizontal bar layout.
864
+ - **`pt-text-input`**: Added a customizable text input component to handle various form input needs with validation and error handling.
865
+ - **`pt-page-skeleton`**: Introduced a page skeleton component for loading states, offering a clean UI while data is being fetched.
866
+ - **`pt-footer`**: A new footer component providing a customizable and responsive footer layout for pages.
867
+ - **`pt-menu-fancy`**: Added a new fancy menu component for stylish navigation menus with enhanced layout options.
868
+ - **`pt-button`**: Introduced a highly customizable button component with various styles, icons, and action support.
869
+ - **`pt-confirm-dialog`**: Added a flexible dialog component for modal-based interactions, supporting customizable content, actions, and layout.
738
870
 
739
871
  - **Enhancements to `pt-advanced-prime-table`:**
740
- - **Dynamic Column Width:** Enhanced the table to support dynamic column width adjustments based on content, ensuring alignment between header and body cells.
741
- - **Customizable Sticky Headers:** Improved sticky header behavior, allowing users to define `max-height` for tables with large datasets.
742
- - **Improved Icon Handling:** Optimized column and icon width calculations for better alignment and a more consistent visual experience.
872
+ - **Dynamic Column Width:** Enhanced the table to support dynamic column width adjustments based on content.
873
+ - **Customizable Sticky Headers:** Improved sticky header behavior for tables with large datasets.
874
+ - **Improved Icon Handling:** Optimized column and icon width calculations.
743
875
  - **Cell Alignment Fixes:** Resolved issues with header and body cell misalignment when header content wraps.
744
876
 
745
877
  ### Version 1.0.9 - Release Date: 02/09/2024
746
878
 
747
879
  - **`pt-advanced-prime-table`:**
880
+ - **Loading Indicator:** Added loading spinner functionality.
881
+ - **Vertical Scrolling:** Enabled vertical scrolling for large datasets.
882
+ - **Empty Record Message:** Introduced a customizable empty-state message.
748
883
 
749
- - **Loading Indicator:** Added loading spinner functionality to provide visual feedback during data fetching.
750
- - **Vertical Scrolling:** Enabled vertical scrolling to handle large datasets and improve usability.
751
- - **Empty Record Message:** Introduced a customizable message for when no data is available in the table.
752
-
753
- - **`pt-metric-card-group` & `pt-metric-card`:** Introduced a new metric card component and its group, designed for displaying key performance indicators in a visually appealing way.
754
- - **`pt-chart`:** Added a new chart component that supports various chart types (line, bar, doughnut, pie, etc.), with extensive customization options.
755
- - **`pt-card`:** Introduced a new card component for displaying content within a bordered and customizable container.
756
- - **`pt-menu`:** Added a new menu component to be used within cards, supporting various actions and a customizable layout.
884
+ - **`pt-metric-card-group` & `pt-metric-card`**: Introduced metric card components for KPI display.
885
+ - **`pt-chart`**: Added chart component support for line, bar, doughnut, pie, and other chart types.
886
+ - **`pt-card`**: Introduced a configurable card component.
887
+ - **`pt-menu`**: Added a menu component for cards and actions.
757
888
 
758
889
  #### Version 1.0.8
759
890
 
760
- Fix bug on size of buttons exports
891
+ - Fix bug on size of buttons exports.
761
892
 
762
893
  #### Version 1.0.7
763
894
 
764
- Adding export to pdf and excel buttons in the `pt-advanced-prime-table`.
895
+ - Adding export to PDF and Excel buttons in the `pt-advanced-prime-table`.
765
896
 
766
- ```
767
- [hasExportExcel]="true"
768
- [hasExportPDF]="true"
769
- (exportExcelEvent)="onExportExcel()"
770
- (exportPdfEvent)="onExportPDF()"
897
+ ```html
898
+ <pt-advanced-prime-table [hasExportExcel]="true" [hasExportPDF]="true" (exportExcelEvent)="onExportExcel()" (exportPdfEvent)="onExportPDF()"></pt-advanced-prime-table>
771
899
  ```
772
900
 
773
901
  #### Version 1.0.6
774
902
 
775
- - **FormBuilder Component:**
776
- Introduced a powerful and flexible `FormBuilder` component that allows developers to dynamically create forms with various input types. The `FormBuilder` supports nested groups, input validation, and customizable form behavior. This component simplifies the process of building complex forms by providing a consistent and reusable structure.
777
-
903
+ - **FormBuilder Component:** Introduced a flexible `FormBuilder` component for dynamically creating forms with various input types.
778
904
  - **New Input Components:**
779
- - **`pt-check-box-input`**: A customizable checkbox input component for boolean selections.
780
- - **`pt-date-input`**: A versatile date input component supporting both single date and date range selections with customizable formats.
781
- - **`pt-dropdown`**: A dropdown input component for selecting single options from a list.
782
- - **`pt-multi-select`**: A multi-select dropdown component for selecting multiple values from a list.
783
- - **`pt-number-input`**: A numeric input component with support for validation (e.g., min/max values) and formatting.
784
- - **`pt-switch-input`**: A switch input component for toggling between two states.
785
- - **`pt-text-area-input`**: A text area input component for multi-line text entries with customizable rows and validation.
786
- - **`pt-text-input`**: A standard text input component with support for icons, placeholders, and input validation.
905
+ - **`pt-check-box-input`**: A customizable checkbox input component.
906
+ - **`pt-date-input`**: A date input component supporting single date and range selections.
907
+ - **`pt-dropdown`**: A select input component for choosing a single option.
908
+ - **`pt-multi-select`**: A multi-select component for choosing multiple values.
909
+ - **`pt-number-input`**: A numeric input component with validation and formatting support.
910
+ - **`pt-switch-input`**: A toggle switch input component.
911
+ - **`pt-text-area-input`**: A multi-line text area input component.
912
+ - **`pt-text-input`**: A standard text input component.
787
913
 
788
914
  ### Version 1.0.5
789
915
 
790
916
  - **`multi-search-criteria` Component**
791
-
792
917
  - Added support for `mode` input to handle dynamic and static filtering.
793
- - `mode` input can be set to `'dynamic'` or `'static'`. When set to `'dynamic'`, the component emits search criteria for backend filtering. When set to `'static'`, the component filters data locally.
794
918
  - Fixed the bug in the `selectAll` functionality for multi-select filters.
795
- - Users can select or deselect all options in a multi-select filter.
796
919
 
797
920
  - **`pt-advanced-prime-table` Component**
798
921
  - Added support for customizable amount formatting.
799
- - New inputs for columns of type `AMOUNT`:
800
- - `thousandSeparator` (`comma` or `space`): Specifies the character used for thousands separator.
801
- - `decimalSeparator` (`comma` or `dot`): Specifies the character used for decimal separator.
802
- - Updated the `customCurrency` pipe to handle optional currency display and customizable separators.
922
+ - New inputs for columns of type `AMOUNT`:
923
+ - `thousandSeparator` (`comma` or `space`)
924
+ - `decimalSeparator` (`comma` or `dot`)
925
+ - Updated the `customCurrency` pipe to handle optional currency display and customizable separators.
803
926
 
804
927
  ### Version 1.0.4
805
928