keevo-components 1.8.45 → 1.8.46

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 (401) hide show
  1. package/esm2022/keevo-components.mjs +5 -0
  2. package/esm2022/lib/api/base-components/base-component-button.mjs +36 -0
  3. package/esm2022/lib/api/base-components/base-component-chart.mjs +92 -0
  4. package/esm2022/lib/api/base-components/base-component-crud-form.mjs +298 -0
  5. package/esm2022/lib/api/base-components/base-component-crud-list.mjs +78 -0
  6. package/esm2022/lib/api/base-components/base-component-crud.mjs +65 -0
  7. package/esm2022/lib/api/base-components/base-component-dropdown-external.mjs +31 -0
  8. package/esm2022/lib/api/base-components/base-component-dropdown.mjs +169 -0
  9. package/esm2022/lib/api/base-components/base-component-input.mjs +94 -0
  10. package/esm2022/lib/api/base-components/base-component-multi-select.mjs +130 -0
  11. package/esm2022/lib/api/base-components/base-component.mjs +51 -0
  12. package/esm2022/lib/api/components/chart/chart.config.mjs +2 -0
  13. package/esm2022/lib/api/components/chart/chart.model.mjs +2 -0
  14. package/esm2022/lib/api/components/chart/orchart.config.mjs +2 -0
  15. package/esm2022/lib/api/components/chart/orchart.item.mjs +2 -0
  16. package/esm2022/lib/api/components/dropdown/filtro.combo.mjs +2 -0
  17. package/esm2022/lib/api/components/table/action-item.mjs +2 -0
  18. package/esm2022/lib/api/components/table/kv-menuitem.mjs +3 -0
  19. package/esm2022/lib/api/components/table/table-dropdown-control.mjs +2 -0
  20. package/esm2022/lib/api/components/table/table.config.column.mjs +2 -0
  21. package/esm2022/lib/api/components/table/table.config.mjs +2 -0
  22. package/esm2022/lib/api/components/table/table.paginate.mjs +9 -0
  23. package/esm2022/lib/api/components/table/tabledit.config.mjs +2 -0
  24. package/esm2022/lib/api/components/table/tableedit.config.column.mjs +2 -0
  25. package/esm2022/lib/api/directives/template/template.directive.mjs +24 -0
  26. package/esm2022/lib/api/helpers/component-providers.mjs +16 -0
  27. package/esm2022/lib/api/helpers/keevo-validators.mjs +72 -0
  28. package/esm2022/lib/api/helpers/translate-primeng.mjs +23 -0
  29. package/esm2022/lib/api/modules/primeng.module.mjs +255 -0
  30. package/esm2022/lib/api/pipes/cpfcnpj.pipe.mjs +25 -0
  31. package/esm2022/lib/api/pipes/mask.pipe.mjs +29 -0
  32. package/esm2022/lib/api/pipes/pipes.module.mjs +34 -0
  33. package/esm2022/lib/api/pipes/telefone.pipe.mjs +45 -0
  34. package/esm2022/lib/api/services/base.api.service.mjs +74 -0
  35. package/esm2022/lib/api/services/breadcrumbs.service.mjs +57 -0
  36. package/esm2022/lib/api/services/component.service.mjs +27 -0
  37. package/esm2022/lib/api/services/form.service.mjs +85 -0
  38. package/esm2022/lib/api/services/imagens.service.mjs +28 -0
  39. package/esm2022/lib/api/services/notification.service.mjs +67 -0
  40. package/esm2022/lib/api/services/object.service.mjs +39 -0
  41. package/esm2022/lib/components/keevo-components.module.mjs +137 -0
  42. package/esm2022/lib/components/kv-avatar/kv-avatar.component.mjs +78 -0
  43. package/esm2022/lib/components/kv-avatar/kv-avatar.module.mjs +32 -0
  44. package/esm2022/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.mjs +31 -0
  45. package/esm2022/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.mjs +31 -0
  46. package/esm2022/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.mjs +17 -0
  47. package/esm2022/lib/components/kv-buttons/kv-button-success/kv-button-success.component.mjs +17 -0
  48. package/esm2022/lib/components/kv-buttons/kv-button.module.mjs +39 -0
  49. package/esm2022/lib/components/kv-carousel/kv-carousel.component.mjs +92 -0
  50. package/esm2022/lib/components/kv-carousel/kv-carousel.module.mjs +28 -0
  51. package/esm2022/lib/components/kv-chart/kv-chart.component.mjs +145 -0
  52. package/esm2022/lib/components/kv-chart/kv-chart.module.mjs +32 -0
  53. package/esm2022/lib/components/kv-error/kv-error.component.mjs +26 -0
  54. package/esm2022/lib/components/kv-error/kv-error.module.mjs +35 -0
  55. package/esm2022/lib/components/kv-inputs/kv-check/kv-check.component.mjs +26 -0
  56. package/esm2022/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.mjs +37 -0
  57. package/esm2022/lib/components/kv-inputs/kv-editor/kv-editor.component.mjs +88 -0
  58. package/esm2022/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.mjs +89 -0
  59. package/esm2022/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.mjs +29 -0
  60. package/esm2022/lib/components/kv-inputs/kv-input-number/kv-input-number.component.mjs +59 -0
  61. package/esm2022/lib/components/kv-inputs/kv-input-password/kv-input-password.component.mjs +33 -0
  62. package/esm2022/lib/components/kv-inputs/kv-input-text/kv-input-text.component.mjs +25 -0
  63. package/esm2022/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.mjs +42 -0
  64. package/esm2022/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.mjs +43 -0
  65. package/esm2022/lib/components/kv-inputs/kv-input-time/kv-input-time.component.mjs +24 -0
  66. package/esm2022/lib/components/kv-inputs/kv-inputs.module.mjs +108 -0
  67. package/esm2022/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.mjs +44 -0
  68. package/esm2022/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.mjs +53 -0
  69. package/esm2022/lib/components/kv-inputs/kv-switch/kv-switch.component.mjs +34 -0
  70. package/esm2022/lib/components/kv-label/kv-label.component.mjs +15 -0
  71. package/esm2022/lib/components/kv-label/kv-label.module.mjs +24 -0
  72. package/esm2022/lib/components/kv-loader/kv-loader.component.mjs +17 -0
  73. package/esm2022/lib/components/kv-loader/kv-loader.module.mjs +28 -0
  74. package/esm2022/lib/components/kv-loader/kv-loader.service.mjs +29 -0
  75. package/esm2022/lib/components/kv-login/kv-login.component.mjs +52 -0
  76. package/esm2022/lib/components/kv-login/kv-login.module.mjs +47 -0
  77. package/esm2022/lib/components/kv-menu/kv-menu.component.mjs +190 -0
  78. package/esm2022/lib/components/kv-menu/kv-menu.module.mjs +47 -0
  79. package/esm2022/lib/components/kv-modal/kv-modal.component.mjs +67 -0
  80. package/esm2022/lib/components/kv-modal/kv-modal.module.mjs +31 -0
  81. package/esm2022/lib/components/kv-orgchart/kv-orgchart.component.mjs +100 -0
  82. package/esm2022/lib/components/kv-orgchart/kv-orgchart.module.mjs +24 -0
  83. package/esm2022/lib/components/kv-page-form/kv-page-form.component.mjs +147 -0
  84. package/esm2022/lib/components/kv-page-form/kv-page-form.module.mjs +38 -0
  85. package/esm2022/lib/components/kv-pick-list/kv-pick-list.component.mjs +48 -0
  86. package/esm2022/lib/components/kv-pick-list/kv-pick-list.module.mjs +32 -0
  87. package/esm2022/lib/components/kv-progress-bar/kv-progress-bar.component.mjs +58 -0
  88. package/esm2022/lib/components/kv-progress-bar/kv-progress-bar.module.mjs +28 -0
  89. package/esm2022/lib/components/kv-table/kv-table.component.mjs +553 -0
  90. package/esm2022/lib/components/kv-table/kv-table.module.mjs +36 -0
  91. package/esm2022/lib/components/kv-table-edit/kv-table-edit.component.mjs +564 -0
  92. package/esm2022/lib/components/kv-table-edit/kv-table-edit.module.mjs +34 -0
  93. package/esm2022/lib/components/kv-tree-table/kv-tree-table.component.mjs +220 -0
  94. package/esm2022/lib/components/kv-tree-table/kv-tree-table.module.mjs +28 -0
  95. package/esm2022/lib/components/kv-tree-view/kv-tree-view.component.mjs +30 -0
  96. package/esm2022/lib/components/kv-tree-view/kv-tree-view.module.mjs +28 -0
  97. package/esm2022/lib/components/kv-workspace/kv-workspace.component.mjs +178 -0
  98. package/esm2022/lib/components/kv-workspace/kv-workspace.module.mjs +51 -0
  99. package/esm2022/public-api.mjs +166 -0
  100. package/fesm2022/keevo-components.mjs +5680 -0
  101. package/fesm2022/keevo-components.mjs.map +1 -0
  102. package/index.d.ts +5 -0
  103. package/lib/api/base-components/base-component-button.d.ts +14 -0
  104. package/lib/api/base-components/base-component-chart.d.ts +40 -0
  105. package/lib/api/base-components/base-component-crud-form.d.ts +145 -0
  106. package/lib/api/base-components/base-component-crud-list.d.ts +63 -0
  107. package/lib/api/base-components/base-component-crud.d.ts +36 -0
  108. package/lib/api/base-components/base-component-dropdown-external.d.ts +15 -0
  109. package/lib/api/base-components/base-component-dropdown.d.ts +44 -0
  110. package/lib/api/base-components/base-component-input.d.ts +31 -0
  111. package/lib/api/base-components/base-component-multi-select.d.ts +35 -0
  112. package/lib/api/base-components/base-component.d.ts +22 -0
  113. package/lib/api/components/chart/chart.config.d.ts +11 -0
  114. package/lib/api/components/chart/chart.model.d.ts +9 -0
  115. package/lib/api/components/chart/orchart.config.d.ts +35 -0
  116. package/lib/api/components/chart/orchart.item.d.ts +26 -0
  117. package/lib/api/components/dropdown/filtro.combo.d.ts +4 -0
  118. package/lib/api/components/table/action-item.d.ts +11 -0
  119. package/lib/api/components/table/kv-menuitem.d.ts +10 -0
  120. package/lib/api/components/table/table-dropdown-control.d.ts +6 -0
  121. package/lib/api/components/table/table.config.column.d.ts +25 -0
  122. package/lib/api/components/table/table.config.d.ts +19 -0
  123. package/lib/api/components/table/table.paginate.d.ts +6 -0
  124. package/lib/api/components/table/tabledit.config.d.ts +8 -0
  125. package/lib/api/components/table/tableedit.config.column.d.ts +10 -0
  126. package/lib/api/directives/template/template.directive.d.ts +11 -0
  127. package/lib/api/helpers/component-providers.d.ts +2 -0
  128. package/lib/api/helpers/keevo-validators.d.ts +11 -0
  129. package/lib/api/helpers/translate-primeng.d.ts +4 -0
  130. package/lib/api/modules/primeng.module.d.ts +62 -0
  131. package/lib/api/pipes/cpfcnpj.pipe.d.ts +7 -0
  132. package/lib/api/pipes/mask.pipe.d.ts +7 -0
  133. package/lib/api/pipes/pipes.module.d.ts +10 -0
  134. package/lib/api/pipes/telefone.pipe.d.ts +7 -0
  135. package/lib/api/services/base.api.service.d.ts +25 -0
  136. package/lib/api/services/breadcrumbs.service.d.ts +15 -0
  137. package/lib/api/services/component.service.d.ts +11 -0
  138. package/lib/api/services/form.service.d.ts +28 -0
  139. package/lib/api/services/imagens.service.d.ts +10 -0
  140. package/lib/api/services/notification.service.d.ts +25 -0
  141. package/lib/api/services/object.service.d.ts +9 -0
  142. package/lib/components/keevo-components.module.d.ts +24 -0
  143. package/lib/components/kv-avatar/kv-avatar.component.d.ts +22 -0
  144. package/lib/components/kv-avatar/kv-avatar.module.d.ts +10 -0
  145. package/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.d.ts +13 -0
  146. package/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.d.ts +13 -0
  147. package/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.d.ts +7 -0
  148. package/lib/components/kv-buttons/kv-button-success/kv-button-success.component.d.ts +7 -0
  149. package/lib/components/kv-buttons/kv-button.module.d.ts +11 -0
  150. package/lib/components/kv-carousel/kv-carousel.component.d.ts +16 -0
  151. package/lib/components/kv-carousel/kv-carousel.module.d.ts +9 -0
  152. package/lib/components/kv-chart/kv-chart.component.d.ts +56 -0
  153. package/lib/components/kv-chart/kv-chart.module.d.ts +10 -0
  154. package/lib/components/kv-error/kv-error.component.d.ts +12 -0
  155. package/lib/components/kv-error/kv-error.module.d.ts +10 -0
  156. package/lib/components/kv-inputs/kv-check/kv-check.component.d.ts +11 -0
  157. package/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.d.ts +14 -0
  158. package/lib/components/kv-inputs/kv-editor/kv-editor.component.d.ts +36 -0
  159. package/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.d.ts +27 -0
  160. package/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.d.ts +12 -0
  161. package/lib/components/kv-inputs/kv-input-number/kv-input-number.component.d.ts +19 -0
  162. package/lib/components/kv-inputs/kv-input-password/kv-input-password.component.d.ts +13 -0
  163. package/lib/components/kv-inputs/kv-input-text/kv-input-text.component.d.ts +10 -0
  164. package/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.d.ts +16 -0
  165. package/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.d.ts +16 -0
  166. package/lib/components/kv-inputs/kv-input-time/kv-input-time.component.d.ts +10 -0
  167. package/lib/components/kv-inputs/kv-inputs.module.d.ts +25 -0
  168. package/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.d.ts +15 -0
  169. package/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.d.ts +18 -0
  170. package/lib/components/kv-inputs/kv-switch/kv-switch.component.d.ts +14 -0
  171. package/lib/components/kv-label/kv-label.component.d.ts +7 -0
  172. package/lib/components/kv-label/kv-label.module.d.ts +8 -0
  173. package/lib/components/kv-loader/kv-loader.component.d.ts +8 -0
  174. package/lib/components/kv-loader/kv-loader.module.d.ts +9 -0
  175. package/lib/components/kv-loader/kv-loader.service.d.ts +10 -0
  176. package/lib/components/kv-login/kv-login.component.d.ts +30 -0
  177. package/lib/components/kv-login/kv-login.module.d.ts +13 -0
  178. package/lib/components/kv-menu/kv-menu.component.d.ts +58 -0
  179. package/lib/components/kv-menu/kv-menu.module.d.ts +13 -0
  180. package/lib/components/kv-modal/kv-modal.component.d.ts +20 -0
  181. package/lib/components/kv-modal/kv-modal.module.d.ts +10 -0
  182. package/lib/components/kv-orgchart/kv-orgchart.component.d.ts +27 -0
  183. package/lib/components/kv-orgchart/kv-orgchart.module.d.ts +9 -0
  184. package/lib/components/kv-page-form/kv-page-form.component.d.ts +70 -0
  185. package/lib/components/kv-page-form/kv-page-form.module.d.ts +11 -0
  186. package/lib/components/kv-pick-list/kv-pick-list.component.d.ts +20 -0
  187. package/lib/components/kv-pick-list/kv-pick-list.module.d.ts +10 -0
  188. package/lib/components/kv-progress-bar/kv-progress-bar.component.d.ts +67 -0
  189. package/lib/components/kv-progress-bar/kv-progress-bar.module.d.ts +9 -0
  190. package/lib/components/kv-table/kv-table.component.d.ts +112 -0
  191. package/lib/components/kv-table/kv-table.module.d.ts +11 -0
  192. package/lib/components/kv-table-edit/kv-table-edit.component.d.ts +115 -0
  193. package/lib/components/kv-table-edit/kv-table-edit.module.d.ts +12 -0
  194. package/lib/components/kv-tree-table/kv-tree-table.component.d.ts +43 -0
  195. package/lib/components/kv-tree-table/kv-tree-table.module.d.ts +9 -0
  196. package/lib/components/kv-tree-view/kv-tree-view.component.d.ts +14 -0
  197. package/lib/components/kv-tree-view/kv-tree-view.module.d.ts +9 -0
  198. package/lib/components/kv-workspace/kv-workspace.component.d.ts +46 -0
  199. package/lib/components/kv-workspace/kv-workspace.module.d.ts +14 -0
  200. package/package.json +16 -3
  201. package/{src/public-api.ts → public-api.d.ts} +14 -41
  202. package/ng-package.json +0 -7
  203. package/src/assets/.gitkeep +0 -0
  204. package/src/assets/images/LogoEvo.png +0 -0
  205. package/src/assets/images/LogoPequenaEvo.png +0 -0
  206. package/src/assets/images/background.png +0 -0
  207. package/src/assets/images/keepass-logo.png +0 -0
  208. package/src/assets/images/keepass-logo.svg +0 -74
  209. package/src/assets/images/keevo-logo.png +0 -0
  210. package/src/assets/images/logokeevo_2.png +0 -0
  211. package/src/index.ts +0 -1
  212. package/src/lib/api/base-components/base-component-button.ts +0 -27
  213. package/src/lib/api/base-components/base-component-chart.ts +0 -105
  214. package/src/lib/api/base-components/base-component-crud-form.ts +0 -361
  215. package/src/lib/api/base-components/base-component-crud-list.ts +0 -121
  216. package/src/lib/api/base-components/base-component-crud.ts +0 -70
  217. package/src/lib/api/base-components/base-component-dropdown-external.ts +0 -29
  218. package/src/lib/api/base-components/base-component-dropdown-new.ts +0 -112
  219. package/src/lib/api/base-components/base-component-dropdown.ts +0 -170
  220. package/src/lib/api/base-components/base-component-input.ts +0 -107
  221. package/src/lib/api/base-components/base-component-multi-select.ts +0 -136
  222. package/src/lib/api/base-components/base-component.ts +0 -47
  223. package/src/lib/api/components/chart/chart.config.ts +0 -12
  224. package/src/lib/api/components/chart/chart.model.ts +0 -9
  225. package/src/lib/api/components/chart/orchart.config.ts +0 -41
  226. package/src/lib/api/components/chart/orchart.item.ts +0 -33
  227. package/src/lib/api/components/dropdown/filtro.combo.ts +0 -4
  228. package/src/lib/api/components/table/action-item.ts +0 -11
  229. package/src/lib/api/components/table/kv-menuitem.ts +0 -11
  230. package/src/lib/api/components/table/table-dropdown-control.ts +0 -6
  231. package/src/lib/api/components/table/table.config.column.ts +0 -27
  232. package/src/lib/api/components/table/table.config.ts +0 -22
  233. package/src/lib/api/components/table/table.paginate.ts +0 -6
  234. package/src/lib/api/components/table/tabledit.config.ts +0 -10
  235. package/src/lib/api/components/table/tableedit.config.column.ts +0 -12
  236. package/src/lib/api/directives/directives.module.ts +0 -16
  237. package/src/lib/api/directives/drag/drag.directive.ts +0 -40
  238. package/src/lib/api/directives/template/template.directive.ts +0 -15
  239. package/src/lib/api/helpers/component-providers.ts +0 -16
  240. package/src/lib/api/helpers/keevo-validators.ts +0 -86
  241. package/src/lib/api/helpers/translate-primeng.ts +0 -25
  242. package/src/lib/api/modules/primeng.module.ts +0 -130
  243. package/src/lib/api/pipes/cpfcnpj.pipe.ts +0 -21
  244. package/src/lib/api/pipes/mask.pipe.ts +0 -24
  245. package/src/lib/api/pipes/pipes.module.ts +0 -23
  246. package/src/lib/api/pipes/telefone.pipe.ts +0 -38
  247. package/src/lib/api/services/base.api.service.ts +0 -115
  248. package/src/lib/api/services/breadcrumbs.service.ts +0 -58
  249. package/src/lib/api/services/component.service.ts +0 -32
  250. package/src/lib/api/services/docs.service.ts +0 -129
  251. package/src/lib/api/services/form.service.ts +0 -115
  252. package/src/lib/api/services/imagens.service.ts +0 -28
  253. package/src/lib/api/services/notification.service.ts +0 -85
  254. package/src/lib/api/services/object.service.ts +0 -33
  255. package/src/lib/components/keevo-components-styles.scss +0 -11
  256. package/src/lib/components/keevo-components.module.ts +0 -65
  257. package/src/lib/components/kv-avatar/kv-avatar.component.html +0 -12
  258. package/src/lib/components/kv-avatar/kv-avatar.component.scss +0 -45
  259. package/src/lib/components/kv-avatar/kv-avatar.component.spec.ts +0 -23
  260. package/src/lib/components/kv-avatar/kv-avatar.component.ts +0 -72
  261. package/src/lib/components/kv-avatar/kv-avatar.module.ts +0 -21
  262. package/src/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.html +0 -15
  263. package/src/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.scss +0 -3
  264. package/src/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.ts +0 -34
  265. package/src/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.html +0 -12
  266. package/src/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.scss +0 -13
  267. package/src/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.ts +0 -35
  268. package/src/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.html +0 -12
  269. package/src/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.scss +0 -14
  270. package/src/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.ts +0 -14
  271. package/src/lib/components/kv-buttons/kv-button-success/kv-button-success.component.html +0 -11
  272. package/src/lib/components/kv-buttons/kv-button-success/kv-button-success.component.scss +0 -13
  273. package/src/lib/components/kv-buttons/kv-button-success/kv-button-success.component.ts +0 -14
  274. package/src/lib/components/kv-buttons/kv-button.module.ts +0 -26
  275. package/src/lib/components/kv-carousel/kv-carousel.component.html +0 -31
  276. package/src/lib/components/kv-carousel/kv-carousel.component.scss +0 -24
  277. package/src/lib/components/kv-carousel/kv-carousel.component.spec.ts +0 -23
  278. package/src/lib/components/kv-carousel/kv-carousel.component.ts +0 -104
  279. package/src/lib/components/kv-carousel/kv-carousel.module.ts +0 -19
  280. package/src/lib/components/kv-chart/kv-chart.component.html +0 -38
  281. package/src/lib/components/kv-chart/kv-chart.component.scss +0 -0
  282. package/src/lib/components/kv-chart/kv-chart.component.spec.ts +0 -28
  283. package/src/lib/components/kv-chart/kv-chart.component.ts +0 -153
  284. package/src/lib/components/kv-chart/kv-chart.module.ts +0 -21
  285. package/src/lib/components/kv-error/kv-error.component.html +0 -3
  286. package/src/lib/components/kv-error/kv-error.component.scss +0 -5
  287. package/src/lib/components/kv-error/kv-error.component.ts +0 -27
  288. package/src/lib/components/kv-error/kv-error.module.ts +0 -26
  289. package/src/lib/components/kv-inputs/kv-check/kv-check.component.html +0 -11
  290. package/src/lib/components/kv-inputs/kv-check/kv-check.component.scss +0 -13
  291. package/src/lib/components/kv-inputs/kv-check/kv-check.component.ts +0 -32
  292. package/src/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.html +0 -91
  293. package/src/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.scss +0 -4
  294. package/src/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.ts +0 -38
  295. package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.html +0 -97
  296. package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.scss +0 -4
  297. package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.ts +0 -99
  298. package/src/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.html +0 -30
  299. package/src/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.scss +0 -0
  300. package/src/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.ts +0 -84
  301. package/src/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.html +0 -22
  302. package/src/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.scss +0 -0
  303. package/src/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.ts +0 -35
  304. package/src/lib/components/kv-inputs/kv-input-number/kv-input-number.component.html +0 -23
  305. package/src/lib/components/kv-inputs/kv-input-number/kv-input-number.component.scss +0 -0
  306. package/src/lib/components/kv-inputs/kv-input-number/kv-input-number.component.ts +0 -61
  307. package/src/lib/components/kv-inputs/kv-input-password/kv-input-password.component.html +0 -23
  308. package/src/lib/components/kv-inputs/kv-input-password/kv-input-password.component.scss +0 -0
  309. package/src/lib/components/kv-inputs/kv-input-password/kv-input-password.component.ts +0 -26
  310. package/src/lib/components/kv-inputs/kv-input-text/kv-input-text.component.html +0 -22
  311. package/src/lib/components/kv-inputs/kv-input-text/kv-input-text.component.scss +0 -18
  312. package/src/lib/components/kv-inputs/kv-input-text/kv-input-text.component.ts +0 -27
  313. package/src/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.html +0 -35
  314. package/src/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.scss +0 -0
  315. package/src/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.spec.ts +0 -23
  316. package/src/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.ts +0 -43
  317. package/src/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.html +0 -22
  318. package/src/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.scss +0 -0
  319. package/src/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.ts +0 -40
  320. package/src/lib/components/kv-inputs/kv-input-time/kv-input-time.component.html +0 -23
  321. package/src/lib/components/kv-inputs/kv-input-time/kv-input-time.component.scss +0 -0
  322. package/src/lib/components/kv-inputs/kv-input-time/kv-input-time.component.ts +0 -27
  323. package/src/lib/components/kv-inputs/kv-inputs.module.ts +0 -70
  324. package/src/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.html +0 -45
  325. package/src/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.scss +0 -8
  326. package/src/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.ts +0 -44
  327. package/src/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.html +0 -19
  328. package/src/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.scss +0 -15
  329. package/src/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.ts +0 -59
  330. package/src/lib/components/kv-inputs/kv-switch/kv-switch.component.html +0 -13
  331. package/src/lib/components/kv-inputs/kv-switch/kv-switch.component.scss +0 -3
  332. package/src/lib/components/kv-inputs/kv-switch/kv-switch.component.ts +0 -41
  333. package/src/lib/components/kv-label/kv-label.component.html +0 -6
  334. package/src/lib/components/kv-label/kv-label.component.scss +0 -9
  335. package/src/lib/components/kv-label/kv-label.component.spec.ts +0 -23
  336. package/src/lib/components/kv-label/kv-label.component.ts +0 -14
  337. package/src/lib/components/kv-label/kv-label.module.ts +0 -17
  338. package/src/lib/components/kv-loader/kv-loader.component.html +0 -1
  339. package/src/lib/components/kv-loader/kv-loader.component.ts +0 -15
  340. package/src/lib/components/kv-loader/kv-loader.module.ts +0 -17
  341. package/src/lib/components/kv-loader/kv-loader.service.ts +0 -31
  342. package/src/lib/components/kv-login/kv-login.component.html +0 -108
  343. package/src/lib/components/kv-login/kv-login.component.scss +0 -48
  344. package/src/lib/components/kv-login/kv-login.component.spec.ts +0 -23
  345. package/src/lib/components/kv-login/kv-login.component.ts +0 -81
  346. package/src/lib/components/kv-login/kv-login.module.ts +0 -33
  347. package/src/lib/components/kv-menu/kv-menu.component.html +0 -259
  348. package/src/lib/components/kv-menu/kv-menu.component.scss +0 -210
  349. package/src/lib/components/kv-menu/kv-menu.component.spec.ts +0 -23
  350. package/src/lib/components/kv-menu/kv-menu.component.ts +0 -192
  351. package/src/lib/components/kv-menu/kv-menu.module.ts +0 -33
  352. package/src/lib/components/kv-modal/kv-modal.component.html +0 -19
  353. package/src/lib/components/kv-modal/kv-modal.component.scss +0 -13
  354. package/src/lib/components/kv-modal/kv-modal.component.spec.ts +0 -21
  355. package/src/lib/components/kv-modal/kv-modal.component.ts +0 -73
  356. package/src/lib/components/kv-modal/kv-modal.module.ts +0 -21
  357. package/src/lib/components/kv-orgchart/kv-orgchart.component.html +0 -58
  358. package/src/lib/components/kv-orgchart/kv-orgchart.component.scss +0 -21
  359. package/src/lib/components/kv-orgchart/kv-orgchart.component.ts +0 -110
  360. package/src/lib/components/kv-orgchart/kv-orgchart.module.ts +0 -14
  361. package/src/lib/components/kv-page-form/kv-page-form.component.html +0 -59
  362. package/src/lib/components/kv-page-form/kv-page-form.component.scss +0 -76
  363. package/src/lib/components/kv-page-form/kv-page-form.component.spec.ts +0 -28
  364. package/src/lib/components/kv-page-form/kv-page-form.component.ts +0 -134
  365. package/src/lib/components/kv-page-form/kv-page-form.module.ts +0 -31
  366. package/src/lib/components/kv-pick-list/kv-pick-list.component.html +0 -17
  367. package/src/lib/components/kv-pick-list/kv-pick-list.component.scss +0 -0
  368. package/src/lib/components/kv-pick-list/kv-pick-list.component.spec.ts +0 -26
  369. package/src/lib/components/kv-pick-list/kv-pick-list.component.ts +0 -34
  370. package/src/lib/components/kv-pick-list/kv-pick-list.module.ts +0 -21
  371. package/src/lib/components/kv-progress-bar/kv-progress-bar.component.html +0 -38
  372. package/src/lib/components/kv-progress-bar/kv-progress-bar.component.scss +0 -110
  373. package/src/lib/components/kv-progress-bar/kv-progress-bar.component.spec.ts +0 -21
  374. package/src/lib/components/kv-progress-bar/kv-progress-bar.component.ts +0 -79
  375. package/src/lib/components/kv-progress-bar/kv-progress-bar.module.ts +0 -19
  376. package/src/lib/components/kv-table/kv-table.component.html +0 -530
  377. package/src/lib/components/kv-table/kv-table.component.scss +0 -265
  378. package/src/lib/components/kv-table/kv-table.component.spec.ts +0 -28
  379. package/src/lib/components/kv-table/kv-table.component.ts +0 -599
  380. package/src/lib/components/kv-table/kv-table.module.ts +0 -23
  381. package/src/lib/components/kv-table-edit/kv-table-edit.component.html +0 -630
  382. package/src/lib/components/kv-table-edit/kv-table-edit.component.scss +0 -365
  383. package/src/lib/components/kv-table-edit/kv-table-edit.component.ts +0 -602
  384. package/src/lib/components/kv-table-edit/kv-table-edit.module.ts +0 -24
  385. package/src/lib/components/kv-tree-table/kv-tree-table.component.html +0 -316
  386. package/src/lib/components/kv-tree-table/kv-tree-table.component.scss +0 -130
  387. package/src/lib/components/kv-tree-table/kv-tree-table.component.spec.ts +0 -21
  388. package/src/lib/components/kv-tree-table/kv-tree-table.component.ts +0 -231
  389. package/src/lib/components/kv-tree-table/kv-tree-table.module.ts +0 -18
  390. package/src/lib/components/kv-tree-view/kv-tree-view.component.html +0 -9
  391. package/src/lib/components/kv-tree-view/kv-tree-view.component.scss +0 -0
  392. package/src/lib/components/kv-tree-view/kv-tree-view.component.spec.ts +0 -23
  393. package/src/lib/components/kv-tree-view/kv-tree-view.component.ts +0 -31
  394. package/src/lib/components/kv-tree-view/kv-tree-view.module.ts +0 -19
  395. package/src/lib/components/kv-workspace/kv-workspace.component.html +0 -57
  396. package/src/lib/components/kv-workspace/kv-workspace.component.scss +0 -117
  397. package/src/lib/components/kv-workspace/kv-workspace.component.ts +0 -196
  398. package/src/lib/components/kv-workspace/kv-workspace.module.ts +0 -35
  399. package/tsconfig.lib.json +0 -14
  400. package/tsconfig.lib.prod.json +0 -10
  401. package/tsconfig.spec.json +0 -14
@@ -1,115 +0,0 @@
1
- import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
2
- import { Injectable } from '@angular/core';
3
- import { Observable } from 'rxjs';
4
-
5
- const httpOptions = {
6
- headers: new HttpHeaders({
7
- 'Content-Type': 'application/json',
8
- Accept: 'application/json',
9
- 'Access-Control-Allow-Headers': 'Content-Type',
10
- }),
11
- };
12
-
13
- @Injectable({
14
- providedIn: 'root',
15
- })
16
- export class BaseApiService {
17
- constructor(private http: HttpClient) { }
18
-
19
- delete(
20
- baseUrl: string,
21
- rota: string) {
22
- return this.http.delete(`${baseUrl}${rota}`);
23
- }
24
-
25
- deleteAllBody<T>(
26
- baseUrl: string,
27
- rota: string,
28
- body: T): Observable<T[]> {
29
- return this.http.delete(`${baseUrl}${rota}`, {
30
- headers: new HttpHeaders({
31
- 'Content-Type': 'application/json',
32
- }),
33
- body: body
34
- }) as Observable<T[]>;
35
- }
36
-
37
- deleteAllHeaders<T>(
38
- baseUrl: string,
39
- rota: string,
40
- headers: HttpHeaders): Observable<T> {
41
- return this.http.delete(`${baseUrl}${rota}`, {
42
- headers: headers,
43
- }) as Observable<T>;
44
- }
45
-
46
- get<T>(
47
- baseUrl: string,
48
- rota: string): Observable<T> {
49
- return this.http.get(`${baseUrl}${rota}`) as Observable<T>;
50
- }
51
-
52
- getHeaders<T>(
53
- baseUrl: string,
54
- rota: string,
55
- headers: HttpHeaders): Observable<T> {
56
- return this.http.get(`${baseUrl}${rota}`, {
57
- headers: headers,
58
- }) as Observable<T>;
59
- }
60
-
61
- getAll<T>(
62
- baseUrl: string,
63
- rota: string): Observable<T[]> {
64
- return this.http.get(`${baseUrl}${rota}`) as Observable<T[]>;
65
- }
66
-
67
- getAllHeaders<T>(
68
- baseUrl: string,
69
- rota: string,
70
- headers: HttpHeaders): Observable<T[]> {
71
- return this.http.get(`${baseUrl}${rota}`, {
72
- headers: headers,
73
- }) as Observable<T[]>;
74
- }
75
-
76
- getAllParams<T>(
77
- baseUrl: string,
78
- rota: string,
79
- params?: HttpParams): Observable<T[]> {
80
- return this.http.get(`${baseUrl}${rota}`, {
81
- params: params,
82
- }) as Observable<T[]>;
83
- }
84
-
85
- getArquivo(
86
- baseUrl: string,
87
- rota: string,
88
- id?: string,
89
- paramCabecalho?: { headers: HttpHeaders }
90
- ): Observable<any> {
91
- return this.http.get<any>(`${baseUrl}${rota}/${id}`, paramCabecalho);
92
- }
93
-
94
- getArquivos(
95
- baseUrl: string,
96
- rota: string,
97
- paramCabecalho?: { headers: HttpHeaders }
98
- ): Observable<any> {
99
- return this.http.get<any>(`${baseUrl}${rota}`, paramCabecalho) as Observable<any>;
100
- }
101
-
102
- post<T>(
103
- baseUrl: string,
104
- rota: string,
105
- data?: T): Observable<T> {
106
- return this.http.post(`${baseUrl}${rota}`, data) as Observable<T>;
107
- }
108
-
109
- put<T>(
110
- baseUrl: string,
111
- rota: string,
112
- data: T): Observable<T> {
113
- return this.http.put(`${baseUrl}${rota}`, data) as Observable<T>;
114
- }
115
- }
@@ -1,58 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
-
3
- import {
4
- ActivatedRoute,
5
- NavigationEnd,
6
- Router
7
- } from '@angular/router';
8
-
9
- import { filter } from 'rxjs/operators';
10
- import { BehaviorSubject } from 'rxjs';
11
-
12
- @Injectable({
13
- providedIn: 'root',
14
- })
15
- export class BreadcrumbsService {
16
- private breadcrumbsSubject = new BehaviorSubject<{ label: string; routerLink: string }[]>([]);
17
- breadcrumbs$ = this.breadcrumbsSubject.asObservable();
18
-
19
- constructor(private router: Router, private activatedRoute: ActivatedRoute) {
20
- this.router.events
21
- .pipe(filter((event) => event instanceof NavigationEnd))
22
- .subscribe(() => {
23
- const breadcrumbs = this.parseRoute(this.router.routerState.root);
24
- this.breadcrumbsSubject.next(breadcrumbs);
25
- });
26
- }
27
-
28
- private parseRoute(route: ActivatedRoute, url: string = '', breadcrumbs: { label: string; routerLink: string }[] = []): { label: string; routerLink: string }[] {
29
- const path = route.routeConfig && route.routeConfig.path ? route.routeConfig.path : '';
30
- const label = route.routeConfig && route.routeConfig.data ? route.routeConfig.data['breadcrumb'] : '';
31
-
32
- if (path && label) {
33
- if (url === '') {
34
- breadcrumbs.push({
35
- label: label,
36
- routerLink: `/${path}`,
37
- });
38
- } else {
39
- breadcrumbs.push({
40
- label: label,
41
- routerLink: `${url}/${path}`,
42
- });
43
- }
44
- }
45
-
46
- const nextRoute = route.firstChild;
47
- if (nextRoute) {
48
- if (url === '') {
49
- return this.parseRoute(nextRoute, path, breadcrumbs);
50
- } else {
51
- return this.parseRoute(nextRoute, `${url}/${path}`, breadcrumbs);
52
- }
53
- }
54
-
55
- return breadcrumbs;
56
- }
57
-
58
- }
@@ -1,32 +0,0 @@
1
- import {
2
- ChangeDetectorRef,
3
- Injectable,
4
- Injector
5
- } from '@angular/core';
6
-
7
- import {
8
- FormControl,
9
- FormControlName,
10
- FormGroupDirective,
11
- NgControl
12
- } from '@angular/forms';
13
-
14
- @Injectable()
15
- export class ComponentService {
16
-
17
- constructor(public readonly injector: Injector, public changeDetectorRef: ChangeDetectorRef) { }
18
-
19
- getFormControl(): FormControl<any> | undefined {
20
- try {
21
- const control = this.injector.get(NgControl);
22
- if (control.constructor === FormControlName) {
23
- return this.injector.get(FormGroupDirective).getControl(control as FormControlName);
24
- }
25
-
26
- return undefined;
27
- }
28
- catch (ex) {
29
- return undefined;
30
- }
31
- }
32
- }
@@ -1,129 +0,0 @@
1
- import { Injectable } from "@angular/core";
2
- import { FormControl } from "@angular/forms";
3
-
4
- @Injectable({
5
- providedIn: 'root'
6
- })
7
- export class DocsService {
8
-
9
- public static validaCpfCnpj(cpfcnpj: string): boolean {
10
- cpfcnpj = cpfcnpj.replace(/\D/g, '');
11
-
12
- if (cpfcnpj.length === 11) {
13
- return DocsService.validaCpf(cpfcnpj);
14
- } else if (cpfcnpj.length === 14) {
15
- return DocsService.validaCnpj(cpfcnpj);
16
- } else {
17
- return false;
18
- }
19
- }
20
-
21
- public static validaCpf(cpf: string) {
22
- cpf = cpf.replace(/\D+/g, '');
23
- if (
24
- !cpf ||
25
- cpf.length !== 11 ||
26
- cpf === '0'.repeat(11) ||
27
- cpf === '1'.repeat(11) ||
28
- cpf === '2'.repeat(11) ||
29
- cpf === '3'.repeat(11) ||
30
- cpf === '4'.repeat(11) ||
31
- cpf === '5'.repeat(11) ||
32
- cpf === '6'.repeat(11) ||
33
- cpf === '7'.repeat(11) ||
34
- cpf === '8'.repeat(11) ||
35
- cpf === '9'.repeat(11)
36
- ) {
37
- return false;
38
- }
39
- let soma = 0;
40
- let resto;
41
- for (let i = 1; i <= 9; i++) {
42
- soma = soma + parseInt(cpf.substring(i - 1, i)) * (11 - i);
43
- }
44
- resto = (soma * 10) % 11;
45
- if (resto === 10 || resto === 11) {
46
- resto = 0;
47
- }
48
- if (resto !== parseInt(cpf.substring(9, 10))) {
49
- return false;
50
- }
51
- soma = 0;
52
- for (let i = 1; i <= 10; i++) {
53
- soma = soma + parseInt(cpf.substring(i - 1, i)) * (12 - i);
54
- }
55
- resto = (soma * 10) % 11;
56
- if (resto === 10 || resto === 11) {
57
- resto = 0;
58
- }
59
- if (resto !== parseInt(cpf.substring(10, 11))) {
60
- return false;
61
- }
62
- return true;
63
- }
64
-
65
- public static validaCnpj(cnpj: string) {
66
- cnpj = cnpj.replace(/\D+/g, '');
67
- if (
68
- !cnpj ||
69
- cnpj.length !== 14 ||
70
- cnpj === '0'.repeat(14) ||
71
- cnpj === '1'.repeat(14) ||
72
- cnpj === '2'.repeat(14) ||
73
- cnpj === '3'.repeat(14) ||
74
- cnpj === '4'.repeat(14) ||
75
- cnpj === '5'.repeat(14) ||
76
- cnpj === '6'.repeat(14) ||
77
- cnpj === '7'.repeat(14) ||
78
- cnpj === '8'.repeat(14) ||
79
- cnpj === '9'.repeat(14)
80
- ) {
81
- return false;
82
- }
83
- let tamanho = cnpj.length - 2;
84
- let numeros: any = cnpj.substring(0, tamanho);
85
- const digitos = cnpj.substring(tamanho);
86
- let soma = 0;
87
- let pos: number = tamanho - 7;
88
- for (let i = tamanho; i >= 1; i--) {
89
- soma += numeros.charAt(tamanho - i) * pos--;
90
- if (pos < 2) {
91
- pos = 9;
92
- }
93
- }
94
- let resultado = soma % 11 < 2 ? 0 : 11 - (soma % 11);
95
- if (resultado !== (+digitos.charAt(0))) {
96
- return false;
97
- }
98
- tamanho = tamanho + 1;
99
- numeros = cnpj.substring(0, tamanho);
100
- soma = 0;
101
- pos = tamanho - 7;
102
- for (let i = tamanho; i >= 1; i--) {
103
- soma += numeros.charAt(tamanho - i) * pos--;
104
- if (pos < 2) {
105
- pos = 9;
106
- }
107
- }
108
- resultado = soma % 11 < 2 ? 0 : 11 - (soma % 11);
109
- if (resultado !== (+digitos.charAt(1))) {
110
- return false;
111
- }
112
- return true;
113
- }
114
-
115
- public static validatorCpfCnpj(fc: FormControl) {
116
-
117
- if (!fc.value) return false;
118
-
119
- if (fc.value.replace(/\D+/g, '') === '00000000000' || fc.value.replace(/\D+/g, '') === '000000000000000') {
120
- return false;
121
- } else if (fc.value.replace(/\D+/g, '').length === 11) {
122
- return DocsService.validaCpf(fc.value) ? false : { cpfCnpj: true };
123
- } else if (fc.value.replace(/\D+/g, '').length === 14) {
124
- return DocsService.validaCnpj(fc.value) ? false : { cpfCnpj: true };
125
- } else {
126
- return { cpfCnpj: true };
127
- }
128
- }
129
- }
@@ -1,115 +0,0 @@
1
- import {
2
- Injectable,
3
- Type
4
- } from '@angular/core';
5
-
6
- import {
7
- FormGroup,
8
- ValidatorFn
9
- } from '@angular/forms';
10
-
11
- import { ObjectService } from './object.service';
12
- import { DialogService } from 'primeng/dynamicdialog';
13
-
14
- export interface paramsDialog {
15
- id?: any;
16
- closable?: boolean;
17
- maximizable?: boolean;
18
- popup?: boolean;
19
- height?: string;
20
- width?: string;
21
- styleClass?: string;
22
- header?: string;
23
- }
24
-
25
- @Injectable({
26
- providedIn: 'root'
27
- })
28
- export class FormService {
29
-
30
- static disableControl(formGroup: FormGroup, controName: string) {
31
- formGroup?.controls[controName]?.disable();
32
- }
33
-
34
- static disableAndClearControl(formGroup: FormGroup, controName: string, value?: any) {
35
- this.disableControl(formGroup, controName);
36
- this.setControlValue(formGroup, controName, null || value);
37
- }
38
-
39
- static enableControl(formGroup: FormGroup, controName: string) {
40
- formGroup?.controls[controName]?.enable();
41
- }
42
-
43
- static getFormValue<T>(formGroup: FormGroup, controName: string): T {
44
- return <T>formGroup?.controls[controName]?.value;
45
- }
46
-
47
- static hasControlError(formGroup: FormGroup, control: string, errorCode?: string): boolean {
48
- const formControl = formGroup.get(control);
49
- let hasError: boolean = false;
50
-
51
- if (!formControl) return false;
52
- if (errorCode) hasError = formControl.hasError(errorCode);
53
- else hasError = formControl.errors ? true : false;
54
-
55
- return hasError && formControl.touched;
56
- }
57
-
58
- static invalidForm(formGroup: FormGroup, notification?: any) {
59
- const keys = Object.keys(formGroup.getRawValue());
60
-
61
- keys.forEach(k => {
62
- const control = formGroup.controls[k];
63
-
64
- if (notification) {
65
- if (notification?.item2) {
66
- const item = ObjectService.findObject(notification.item2, 'property', k);
67
- if (item) control.setErrors({ backendError: true, erroMessage: item.message });
68
- }
69
- else {
70
- const item = ObjectService.findObject(notification, 'key', k);
71
- if (item) control.setErrors({ backendError: true, erroMessage: item.message });
72
- }
73
- }
74
-
75
- if (!control.valid) {
76
- control.markAsTouched();
77
- }
78
- });
79
- }
80
-
81
- static openDialog(
82
- dialogService: DialogService,
83
- componentType: Type<any>,
84
- callBackFunction: Function,
85
- paramsDialog?: paramsDialog
86
- ) {
87
- const ref = dialogService.open(componentType, {
88
- closable: paramsDialog?.closable || false,
89
- maximizable: paramsDialog?.maximizable || false,
90
- height: paramsDialog?.height || 'auto',
91
- width: paramsDialog?.width,
92
- styleClass: paramsDialog?.styleClass,
93
- showHeader: true,
94
- header: paramsDialog?.header,
95
- data: { id: paramsDialog?.id, popup: paramsDialog?.popup && true }
96
- });
97
-
98
- ref.onClose.subscribe((data: any) => {
99
- if (data) callBackFunction(data);
100
- });
101
- }
102
-
103
- static setControlValue(formGroup: FormGroup, controName: string, value: any) {
104
- formGroup?.controls[controName]?.setValue(value);
105
- }
106
-
107
- static setValidators(formGroup: FormGroup, controName: string, validators: ValidatorFn | ValidatorFn[] | null) {
108
- formGroup?.controls[controName]?.setValidators(validators);
109
- formGroup?.controls[controName]?.updateValueAndValidity();
110
- }
111
-
112
- static clearValidators(formGroup: FormGroup, controName: string) {
113
- formGroup?.controls[controName]?.updateValueAndValidity();
114
- }
115
- }