keevo-components 1.8.42 → 1.8.45

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/ng-package.json +7 -0
  2. package/package.json +3 -16
  3. package/src/assets/.gitkeep +0 -0
  4. package/src/assets/images/LogoEvo.png +0 -0
  5. package/src/assets/images/LogoPequenaEvo.png +0 -0
  6. package/src/assets/images/background.png +0 -0
  7. package/src/assets/images/keepass-logo.png +0 -0
  8. package/src/assets/images/keepass-logo.svg +74 -0
  9. package/src/assets/images/keevo-logo.png +0 -0
  10. package/src/assets/images/logokeevo_2.png +0 -0
  11. package/src/index.ts +1 -0
  12. package/src/lib/api/base-components/base-component-button.ts +27 -0
  13. package/src/lib/api/base-components/base-component-chart.ts +105 -0
  14. package/src/lib/api/base-components/base-component-crud-form.ts +361 -0
  15. package/src/lib/api/base-components/base-component-crud-list.ts +121 -0
  16. package/src/lib/api/base-components/base-component-crud.ts +70 -0
  17. package/src/lib/api/base-components/base-component-dropdown-external.ts +29 -0
  18. package/src/lib/api/base-components/base-component-dropdown-new.ts +112 -0
  19. package/src/lib/api/base-components/base-component-dropdown.ts +170 -0
  20. package/src/lib/api/base-components/base-component-input.ts +107 -0
  21. package/src/lib/api/base-components/base-component-multi-select.ts +136 -0
  22. package/src/lib/api/base-components/base-component.ts +47 -0
  23. package/src/lib/api/components/chart/chart.config.ts +12 -0
  24. package/src/lib/api/components/chart/chart.model.ts +9 -0
  25. package/src/lib/api/components/chart/orchart.config.ts +41 -0
  26. package/src/lib/api/components/chart/orchart.item.ts +33 -0
  27. package/src/lib/api/components/dropdown/filtro.combo.ts +4 -0
  28. package/src/lib/api/components/table/action-item.ts +11 -0
  29. package/src/lib/api/components/table/kv-menuitem.ts +11 -0
  30. package/src/lib/api/components/table/table-dropdown-control.ts +6 -0
  31. package/src/lib/api/components/table/table.config.column.ts +27 -0
  32. package/src/lib/api/components/table/table.config.ts +22 -0
  33. package/src/lib/api/components/table/table.paginate.ts +6 -0
  34. package/src/lib/api/components/table/tabledit.config.ts +10 -0
  35. package/src/lib/api/components/table/tableedit.config.column.ts +12 -0
  36. package/src/lib/api/directives/directives.module.ts +16 -0
  37. package/src/lib/api/directives/drag/drag.directive.ts +40 -0
  38. package/src/lib/api/directives/template/template.directive.ts +15 -0
  39. package/src/lib/api/helpers/component-providers.ts +16 -0
  40. package/src/lib/api/helpers/keevo-validators.ts +86 -0
  41. package/src/lib/api/helpers/translate-primeng.ts +25 -0
  42. package/src/lib/api/modules/primeng.module.ts +130 -0
  43. package/src/lib/api/pipes/cpfcnpj.pipe.ts +21 -0
  44. package/src/lib/api/pipes/mask.pipe.ts +24 -0
  45. package/src/lib/api/pipes/pipes.module.ts +23 -0
  46. package/src/lib/api/pipes/telefone.pipe.ts +38 -0
  47. package/src/lib/api/services/base.api.service.ts +115 -0
  48. package/src/lib/api/services/breadcrumbs.service.ts +58 -0
  49. package/src/lib/api/services/component.service.ts +32 -0
  50. package/src/lib/api/services/docs.service.ts +129 -0
  51. package/src/lib/api/services/form.service.ts +115 -0
  52. package/src/lib/api/services/imagens.service.ts +28 -0
  53. package/src/lib/api/services/notification.service.ts +85 -0
  54. package/src/lib/api/services/object.service.ts +33 -0
  55. package/src/lib/components/keevo-components-styles.scss +11 -0
  56. package/src/lib/components/keevo-components.module.ts +65 -0
  57. package/src/lib/components/kv-avatar/kv-avatar.component.html +12 -0
  58. package/src/lib/components/kv-avatar/kv-avatar.component.scss +45 -0
  59. package/src/lib/components/kv-avatar/kv-avatar.component.spec.ts +23 -0
  60. package/src/lib/components/kv-avatar/kv-avatar.component.ts +72 -0
  61. package/src/lib/components/kv-avatar/kv-avatar.module.ts +21 -0
  62. package/src/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.html +15 -0
  63. package/src/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.scss +3 -0
  64. package/src/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.ts +34 -0
  65. package/src/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.html +12 -0
  66. package/src/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.scss +13 -0
  67. package/src/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.ts +35 -0
  68. package/src/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.html +12 -0
  69. package/src/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.scss +14 -0
  70. package/src/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.ts +14 -0
  71. package/src/lib/components/kv-buttons/kv-button-success/kv-button-success.component.html +11 -0
  72. package/src/lib/components/kv-buttons/kv-button-success/kv-button-success.component.scss +13 -0
  73. package/src/lib/components/kv-buttons/kv-button-success/kv-button-success.component.ts +14 -0
  74. package/src/lib/components/kv-buttons/kv-button.module.ts +26 -0
  75. package/src/lib/components/kv-carousel/kv-carousel.component.html +31 -0
  76. package/src/lib/components/kv-carousel/kv-carousel.component.scss +24 -0
  77. package/src/lib/components/kv-carousel/kv-carousel.component.spec.ts +23 -0
  78. package/src/lib/components/kv-carousel/kv-carousel.component.ts +104 -0
  79. package/src/lib/components/kv-carousel/kv-carousel.module.ts +19 -0
  80. package/src/lib/components/kv-chart/kv-chart.component.html +38 -0
  81. package/src/lib/components/kv-chart/kv-chart.component.scss +0 -0
  82. package/src/lib/components/kv-chart/kv-chart.component.spec.ts +28 -0
  83. package/src/lib/components/kv-chart/kv-chart.component.ts +153 -0
  84. package/src/lib/components/kv-chart/kv-chart.module.ts +21 -0
  85. package/src/lib/components/kv-error/kv-error.component.html +3 -0
  86. package/src/lib/components/kv-error/kv-error.component.scss +5 -0
  87. package/src/lib/components/kv-error/kv-error.component.ts +27 -0
  88. package/src/lib/components/kv-error/kv-error.module.ts +26 -0
  89. package/src/lib/components/kv-inputs/kv-check/kv-check.component.html +11 -0
  90. package/src/lib/components/kv-inputs/kv-check/kv-check.component.scss +13 -0
  91. package/src/lib/components/kv-inputs/kv-check/kv-check.component.ts +32 -0
  92. package/src/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.html +91 -0
  93. package/src/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.scss +4 -0
  94. package/src/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.ts +38 -0
  95. package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.html +97 -0
  96. package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.scss +4 -0
  97. package/src/lib/components/kv-inputs/kv-editor/kv-editor.component.ts +99 -0
  98. package/src/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.html +30 -0
  99. package/src/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.scss +0 -0
  100. package/src/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.ts +84 -0
  101. package/src/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.html +22 -0
  102. package/src/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.scss +0 -0
  103. package/src/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.ts +35 -0
  104. package/src/lib/components/kv-inputs/kv-input-number/kv-input-number.component.html +23 -0
  105. package/src/lib/components/kv-inputs/kv-input-number/kv-input-number.component.scss +0 -0
  106. package/src/lib/components/kv-inputs/kv-input-number/kv-input-number.component.ts +61 -0
  107. package/src/lib/components/kv-inputs/kv-input-password/kv-input-password.component.html +23 -0
  108. package/src/lib/components/kv-inputs/kv-input-password/kv-input-password.component.scss +0 -0
  109. package/src/lib/components/kv-inputs/kv-input-password/kv-input-password.component.ts +26 -0
  110. package/src/lib/components/kv-inputs/kv-input-text/kv-input-text.component.html +22 -0
  111. package/src/lib/components/kv-inputs/kv-input-text/kv-input-text.component.scss +18 -0
  112. package/src/lib/components/kv-inputs/kv-input-text/kv-input-text.component.ts +27 -0
  113. package/src/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.html +35 -0
  114. package/src/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.scss +0 -0
  115. package/src/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.spec.ts +23 -0
  116. package/src/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.ts +43 -0
  117. package/src/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.html +22 -0
  118. package/src/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.scss +0 -0
  119. package/src/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.ts +40 -0
  120. package/src/lib/components/kv-inputs/kv-input-time/kv-input-time.component.html +23 -0
  121. package/src/lib/components/kv-inputs/kv-input-time/kv-input-time.component.scss +0 -0
  122. package/src/lib/components/kv-inputs/kv-input-time/kv-input-time.component.ts +27 -0
  123. package/src/lib/components/kv-inputs/kv-inputs.module.ts +70 -0
  124. package/src/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.html +45 -0
  125. package/src/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.scss +8 -0
  126. package/src/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.ts +44 -0
  127. package/src/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.html +19 -0
  128. package/src/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.scss +15 -0
  129. package/src/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.ts +59 -0
  130. package/src/lib/components/kv-inputs/kv-switch/kv-switch.component.html +13 -0
  131. package/src/lib/components/kv-inputs/kv-switch/kv-switch.component.scss +3 -0
  132. package/src/lib/components/kv-inputs/kv-switch/kv-switch.component.ts +41 -0
  133. package/src/lib/components/kv-label/kv-label.component.html +6 -0
  134. package/src/lib/components/kv-label/kv-label.component.scss +9 -0
  135. package/src/lib/components/kv-label/kv-label.component.spec.ts +23 -0
  136. package/src/lib/components/kv-label/kv-label.component.ts +14 -0
  137. package/src/lib/components/kv-label/kv-label.module.ts +17 -0
  138. package/src/lib/components/kv-loader/kv-loader.component.html +1 -0
  139. package/src/lib/components/kv-loader/kv-loader.component.ts +15 -0
  140. package/src/lib/components/kv-loader/kv-loader.module.ts +17 -0
  141. package/src/lib/components/kv-loader/kv-loader.service.ts +31 -0
  142. package/src/lib/components/kv-login/kv-login.component.html +108 -0
  143. package/src/lib/components/kv-login/kv-login.component.scss +48 -0
  144. package/src/lib/components/kv-login/kv-login.component.spec.ts +23 -0
  145. package/src/lib/components/kv-login/kv-login.component.ts +81 -0
  146. package/src/lib/components/kv-login/kv-login.module.ts +33 -0
  147. package/src/lib/components/kv-menu/kv-menu.component.html +259 -0
  148. package/src/lib/components/kv-menu/kv-menu.component.scss +210 -0
  149. package/src/lib/components/kv-menu/kv-menu.component.spec.ts +23 -0
  150. package/src/lib/components/kv-menu/kv-menu.component.ts +192 -0
  151. package/src/lib/components/kv-menu/kv-menu.module.ts +33 -0
  152. package/src/lib/components/kv-modal/kv-modal.component.html +19 -0
  153. package/src/lib/components/kv-modal/kv-modal.component.scss +13 -0
  154. package/src/lib/components/kv-modal/kv-modal.component.spec.ts +21 -0
  155. package/src/lib/components/kv-modal/kv-modal.component.ts +73 -0
  156. package/src/lib/components/kv-modal/kv-modal.module.ts +21 -0
  157. package/src/lib/components/kv-orgchart/kv-orgchart.component.html +58 -0
  158. package/src/lib/components/kv-orgchart/kv-orgchart.component.scss +21 -0
  159. package/src/lib/components/kv-orgchart/kv-orgchart.component.ts +110 -0
  160. package/src/lib/components/kv-orgchart/kv-orgchart.module.ts +14 -0
  161. package/src/lib/components/kv-page-form/kv-page-form.component.html +59 -0
  162. package/src/lib/components/kv-page-form/kv-page-form.component.scss +76 -0
  163. package/src/lib/components/kv-page-form/kv-page-form.component.spec.ts +28 -0
  164. package/src/lib/components/kv-page-form/kv-page-form.component.ts +134 -0
  165. package/src/lib/components/kv-page-form/kv-page-form.module.ts +31 -0
  166. package/src/lib/components/kv-pick-list/kv-pick-list.component.html +17 -0
  167. package/src/lib/components/kv-pick-list/kv-pick-list.component.scss +0 -0
  168. package/src/lib/components/kv-pick-list/kv-pick-list.component.spec.ts +26 -0
  169. package/src/lib/components/kv-pick-list/kv-pick-list.component.ts +34 -0
  170. package/src/lib/components/kv-pick-list/kv-pick-list.module.ts +21 -0
  171. package/src/lib/components/kv-progress-bar/kv-progress-bar.component.html +38 -0
  172. package/src/lib/components/kv-progress-bar/kv-progress-bar.component.scss +110 -0
  173. package/src/lib/components/kv-progress-bar/kv-progress-bar.component.spec.ts +21 -0
  174. package/src/lib/components/kv-progress-bar/kv-progress-bar.component.ts +79 -0
  175. package/src/lib/components/kv-progress-bar/kv-progress-bar.module.ts +19 -0
  176. package/src/lib/components/kv-table/kv-table.component.html +530 -0
  177. package/src/lib/components/kv-table/kv-table.component.scss +265 -0
  178. package/src/lib/components/kv-table/kv-table.component.spec.ts +28 -0
  179. package/src/lib/components/kv-table/kv-table.component.ts +599 -0
  180. package/src/lib/components/kv-table/kv-table.module.ts +23 -0
  181. package/src/lib/components/kv-table-edit/kv-table-edit.component.html +630 -0
  182. package/src/lib/components/kv-table-edit/kv-table-edit.component.scss +365 -0
  183. package/src/lib/components/kv-table-edit/kv-table-edit.component.ts +602 -0
  184. package/src/lib/components/kv-table-edit/kv-table-edit.module.ts +24 -0
  185. package/src/lib/components/kv-tree-table/kv-tree-table.component.html +316 -0
  186. package/src/lib/components/kv-tree-table/kv-tree-table.component.scss +130 -0
  187. package/src/lib/components/kv-tree-table/kv-tree-table.component.spec.ts +21 -0
  188. package/src/lib/components/kv-tree-table/kv-tree-table.component.ts +231 -0
  189. package/src/lib/components/kv-tree-table/kv-tree-table.module.ts +18 -0
  190. package/src/lib/components/kv-tree-view/kv-tree-view.component.html +9 -0
  191. package/src/lib/components/kv-tree-view/kv-tree-view.component.scss +0 -0
  192. package/src/lib/components/kv-tree-view/kv-tree-view.component.spec.ts +23 -0
  193. package/src/lib/components/kv-tree-view/kv-tree-view.component.ts +31 -0
  194. package/src/lib/components/kv-tree-view/kv-tree-view.module.ts +19 -0
  195. package/src/lib/components/kv-workspace/kv-workspace.component.html +57 -0
  196. package/src/lib/components/kv-workspace/kv-workspace.component.scss +117 -0
  197. package/src/lib/components/kv-workspace/kv-workspace.component.ts +196 -0
  198. package/src/lib/components/kv-workspace/kv-workspace.module.ts +35 -0
  199. package/{public-api.d.ts → src/public-api.ts} +41 -14
  200. package/tsconfig.lib.json +14 -0
  201. package/tsconfig.lib.prod.json +10 -0
  202. package/tsconfig.spec.json +14 -0
  203. package/esm2022/keevo-components.mjs +0 -5
  204. package/esm2022/lib/api/base-components/base-component-button.mjs +0 -36
  205. package/esm2022/lib/api/base-components/base-component-chart.mjs +0 -92
  206. package/esm2022/lib/api/base-components/base-component-crud-form.mjs +0 -298
  207. package/esm2022/lib/api/base-components/base-component-crud-list.mjs +0 -78
  208. package/esm2022/lib/api/base-components/base-component-crud.mjs +0 -65
  209. package/esm2022/lib/api/base-components/base-component-dropdown-external.mjs +0 -31
  210. package/esm2022/lib/api/base-components/base-component-dropdown.mjs +0 -169
  211. package/esm2022/lib/api/base-components/base-component-input.mjs +0 -94
  212. package/esm2022/lib/api/base-components/base-component-multi-select.mjs +0 -130
  213. package/esm2022/lib/api/base-components/base-component.mjs +0 -51
  214. package/esm2022/lib/api/components/chart/chart.config.mjs +0 -2
  215. package/esm2022/lib/api/components/chart/chart.model.mjs +0 -2
  216. package/esm2022/lib/api/components/chart/orchart.config.mjs +0 -2
  217. package/esm2022/lib/api/components/chart/orchart.item.mjs +0 -2
  218. package/esm2022/lib/api/components/dropdown/filtro.combo.mjs +0 -2
  219. package/esm2022/lib/api/components/table/action-item.mjs +0 -2
  220. package/esm2022/lib/api/components/table/kv-menuitem.mjs +0 -3
  221. package/esm2022/lib/api/components/table/table-dropdown-control.mjs +0 -2
  222. package/esm2022/lib/api/components/table/table.config.column.mjs +0 -2
  223. package/esm2022/lib/api/components/table/table.config.mjs +0 -2
  224. package/esm2022/lib/api/components/table/table.paginate.mjs +0 -9
  225. package/esm2022/lib/api/components/table/tabledit.config.mjs +0 -2
  226. package/esm2022/lib/api/components/table/tableedit.config.column.mjs +0 -2
  227. package/esm2022/lib/api/directives/template/template.directive.mjs +0 -24
  228. package/esm2022/lib/api/helpers/component-providers.mjs +0 -16
  229. package/esm2022/lib/api/helpers/keevo-validators.mjs +0 -72
  230. package/esm2022/lib/api/helpers/translate-primeng.mjs +0 -23
  231. package/esm2022/lib/api/modules/primeng.module.mjs +0 -255
  232. package/esm2022/lib/api/pipes/cpfcnpj.pipe.mjs +0 -25
  233. package/esm2022/lib/api/pipes/mask.pipe.mjs +0 -29
  234. package/esm2022/lib/api/pipes/pipes.module.mjs +0 -34
  235. package/esm2022/lib/api/pipes/telefone.pipe.mjs +0 -45
  236. package/esm2022/lib/api/services/base.api.service.mjs +0 -74
  237. package/esm2022/lib/api/services/breadcrumbs.service.mjs +0 -57
  238. package/esm2022/lib/api/services/component.service.mjs +0 -27
  239. package/esm2022/lib/api/services/form.service.mjs +0 -85
  240. package/esm2022/lib/api/services/imagens.service.mjs +0 -28
  241. package/esm2022/lib/api/services/notification.service.mjs +0 -67
  242. package/esm2022/lib/api/services/object.service.mjs +0 -39
  243. package/esm2022/lib/components/keevo-components.module.mjs +0 -137
  244. package/esm2022/lib/components/kv-avatar/kv-avatar.component.mjs +0 -78
  245. package/esm2022/lib/components/kv-avatar/kv-avatar.module.mjs +0 -32
  246. package/esm2022/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.mjs +0 -31
  247. package/esm2022/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.mjs +0 -31
  248. package/esm2022/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.mjs +0 -17
  249. package/esm2022/lib/components/kv-buttons/kv-button-success/kv-button-success.component.mjs +0 -17
  250. package/esm2022/lib/components/kv-buttons/kv-button.module.mjs +0 -39
  251. package/esm2022/lib/components/kv-carousel/kv-carousel.component.mjs +0 -92
  252. package/esm2022/lib/components/kv-carousel/kv-carousel.module.mjs +0 -28
  253. package/esm2022/lib/components/kv-chart/kv-chart.component.mjs +0 -145
  254. package/esm2022/lib/components/kv-chart/kv-chart.module.mjs +0 -32
  255. package/esm2022/lib/components/kv-error/kv-error.component.mjs +0 -26
  256. package/esm2022/lib/components/kv-error/kv-error.module.mjs +0 -35
  257. package/esm2022/lib/components/kv-inputs/kv-check/kv-check.component.mjs +0 -26
  258. package/esm2022/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.mjs +0 -37
  259. package/esm2022/lib/components/kv-inputs/kv-editor/kv-editor.component.mjs +0 -88
  260. package/esm2022/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.mjs +0 -89
  261. package/esm2022/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.mjs +0 -29
  262. package/esm2022/lib/components/kv-inputs/kv-input-number/kv-input-number.component.mjs +0 -59
  263. package/esm2022/lib/components/kv-inputs/kv-input-password/kv-input-password.component.mjs +0 -33
  264. package/esm2022/lib/components/kv-inputs/kv-input-text/kv-input-text.component.mjs +0 -21
  265. package/esm2022/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.mjs +0 -42
  266. package/esm2022/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.mjs +0 -43
  267. package/esm2022/lib/components/kv-inputs/kv-input-time/kv-input-time.component.mjs +0 -24
  268. package/esm2022/lib/components/kv-inputs/kv-inputs.module.mjs +0 -108
  269. package/esm2022/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.mjs +0 -44
  270. package/esm2022/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.mjs +0 -53
  271. package/esm2022/lib/components/kv-inputs/kv-switch/kv-switch.component.mjs +0 -34
  272. package/esm2022/lib/components/kv-label/kv-label.component.mjs +0 -15
  273. package/esm2022/lib/components/kv-label/kv-label.module.mjs +0 -24
  274. package/esm2022/lib/components/kv-loader/kv-loader.component.mjs +0 -17
  275. package/esm2022/lib/components/kv-loader/kv-loader.module.mjs +0 -28
  276. package/esm2022/lib/components/kv-loader/kv-loader.service.mjs +0 -29
  277. package/esm2022/lib/components/kv-login/kv-login.component.mjs +0 -52
  278. package/esm2022/lib/components/kv-login/kv-login.module.mjs +0 -47
  279. package/esm2022/lib/components/kv-menu/kv-menu.component.mjs +0 -188
  280. package/esm2022/lib/components/kv-menu/kv-menu.module.mjs +0 -47
  281. package/esm2022/lib/components/kv-modal/kv-modal.component.mjs +0 -67
  282. package/esm2022/lib/components/kv-modal/kv-modal.module.mjs +0 -31
  283. package/esm2022/lib/components/kv-orgchart/kv-orgchart.component.mjs +0 -100
  284. package/esm2022/lib/components/kv-orgchart/kv-orgchart.module.mjs +0 -24
  285. package/esm2022/lib/components/kv-page-form/kv-page-form.component.mjs +0 -147
  286. package/esm2022/lib/components/kv-page-form/kv-page-form.module.mjs +0 -38
  287. package/esm2022/lib/components/kv-pick-list/kv-pick-list.component.mjs +0 -48
  288. package/esm2022/lib/components/kv-pick-list/kv-pick-list.module.mjs +0 -32
  289. package/esm2022/lib/components/kv-progress-bar/kv-progress-bar.component.mjs +0 -58
  290. package/esm2022/lib/components/kv-progress-bar/kv-progress-bar.module.mjs +0 -28
  291. package/esm2022/lib/components/kv-table/kv-table.component.mjs +0 -550
  292. package/esm2022/lib/components/kv-table/kv-table.module.mjs +0 -36
  293. package/esm2022/lib/components/kv-table-edit/kv-table-edit.component.mjs +0 -564
  294. package/esm2022/lib/components/kv-table-edit/kv-table-edit.module.mjs +0 -34
  295. package/esm2022/lib/components/kv-tree-table/kv-tree-table.component.mjs +0 -215
  296. package/esm2022/lib/components/kv-tree-table/kv-tree-table.module.mjs +0 -28
  297. package/esm2022/lib/components/kv-tree-view/kv-tree-view.component.mjs +0 -30
  298. package/esm2022/lib/components/kv-tree-view/kv-tree-view.module.mjs +0 -28
  299. package/esm2022/lib/components/kv-workspace/kv-workspace.component.mjs +0 -178
  300. package/esm2022/lib/components/kv-workspace/kv-workspace.module.mjs +0 -51
  301. package/esm2022/public-api.mjs +0 -166
  302. package/fesm2022/keevo-components.mjs +0 -5667
  303. package/fesm2022/keevo-components.mjs.map +0 -1
  304. package/index.d.ts +0 -5
  305. package/lib/api/base-components/base-component-button.d.ts +0 -14
  306. package/lib/api/base-components/base-component-chart.d.ts +0 -40
  307. package/lib/api/base-components/base-component-crud-form.d.ts +0 -145
  308. package/lib/api/base-components/base-component-crud-list.d.ts +0 -63
  309. package/lib/api/base-components/base-component-crud.d.ts +0 -36
  310. package/lib/api/base-components/base-component-dropdown-external.d.ts +0 -15
  311. package/lib/api/base-components/base-component-dropdown.d.ts +0 -44
  312. package/lib/api/base-components/base-component-input.d.ts +0 -31
  313. package/lib/api/base-components/base-component-multi-select.d.ts +0 -35
  314. package/lib/api/base-components/base-component.d.ts +0 -22
  315. package/lib/api/components/chart/chart.config.d.ts +0 -11
  316. package/lib/api/components/chart/chart.model.d.ts +0 -9
  317. package/lib/api/components/chart/orchart.config.d.ts +0 -35
  318. package/lib/api/components/chart/orchart.item.d.ts +0 -26
  319. package/lib/api/components/dropdown/filtro.combo.d.ts +0 -4
  320. package/lib/api/components/table/action-item.d.ts +0 -11
  321. package/lib/api/components/table/kv-menuitem.d.ts +0 -10
  322. package/lib/api/components/table/table-dropdown-control.d.ts +0 -6
  323. package/lib/api/components/table/table.config.column.d.ts +0 -25
  324. package/lib/api/components/table/table.config.d.ts +0 -19
  325. package/lib/api/components/table/table.paginate.d.ts +0 -6
  326. package/lib/api/components/table/tabledit.config.d.ts +0 -8
  327. package/lib/api/components/table/tableedit.config.column.d.ts +0 -10
  328. package/lib/api/directives/template/template.directive.d.ts +0 -11
  329. package/lib/api/helpers/component-providers.d.ts +0 -2
  330. package/lib/api/helpers/keevo-validators.d.ts +0 -11
  331. package/lib/api/helpers/translate-primeng.d.ts +0 -4
  332. package/lib/api/modules/primeng.module.d.ts +0 -62
  333. package/lib/api/pipes/cpfcnpj.pipe.d.ts +0 -7
  334. package/lib/api/pipes/mask.pipe.d.ts +0 -7
  335. package/lib/api/pipes/pipes.module.d.ts +0 -10
  336. package/lib/api/pipes/telefone.pipe.d.ts +0 -7
  337. package/lib/api/services/base.api.service.d.ts +0 -25
  338. package/lib/api/services/breadcrumbs.service.d.ts +0 -15
  339. package/lib/api/services/component.service.d.ts +0 -11
  340. package/lib/api/services/form.service.d.ts +0 -28
  341. package/lib/api/services/imagens.service.d.ts +0 -10
  342. package/lib/api/services/notification.service.d.ts +0 -25
  343. package/lib/api/services/object.service.d.ts +0 -9
  344. package/lib/components/keevo-components.module.d.ts +0 -24
  345. package/lib/components/kv-avatar/kv-avatar.component.d.ts +0 -22
  346. package/lib/components/kv-avatar/kv-avatar.module.d.ts +0 -10
  347. package/lib/components/kv-buttons/kv-button-personalize/kv-button-personalize.component.d.ts +0 -13
  348. package/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.d.ts +0 -13
  349. package/lib/components/kv-buttons/kv-button-secondary/kv-button-secondary.component.d.ts +0 -7
  350. package/lib/components/kv-buttons/kv-button-success/kv-button-success.component.d.ts +0 -7
  351. package/lib/components/kv-buttons/kv-button.module.d.ts +0 -11
  352. package/lib/components/kv-carousel/kv-carousel.component.d.ts +0 -16
  353. package/lib/components/kv-carousel/kv-carousel.module.d.ts +0 -9
  354. package/lib/components/kv-chart/kv-chart.component.d.ts +0 -56
  355. package/lib/components/kv-chart/kv-chart.module.d.ts +0 -10
  356. package/lib/components/kv-error/kv-error.component.d.ts +0 -12
  357. package/lib/components/kv-error/kv-error.module.d.ts +0 -10
  358. package/lib/components/kv-inputs/kv-check/kv-check.component.d.ts +0 -11
  359. package/lib/components/kv-inputs/kv-dropdown/kv-dropdown.component.d.ts +0 -14
  360. package/lib/components/kv-inputs/kv-editor/kv-editor.component.d.ts +0 -36
  361. package/lib/components/kv-inputs/kv-input-calendar/kv-input-calendar.component.d.ts +0 -27
  362. package/lib/components/kv-inputs/kv-input-mask/kv-input-mask.component.d.ts +0 -12
  363. package/lib/components/kv-inputs/kv-input-number/kv-input-number.component.d.ts +0 -19
  364. package/lib/components/kv-inputs/kv-input-password/kv-input-password.component.d.ts +0 -13
  365. package/lib/components/kv-inputs/kv-input-text/kv-input-text.component.d.ts +0 -9
  366. package/lib/components/kv-inputs/kv-input-text-checkbox/kv-input-text-checkbox.component.d.ts +0 -16
  367. package/lib/components/kv-inputs/kv-input-textarea/kv-input-textarea.component.d.ts +0 -16
  368. package/lib/components/kv-inputs/kv-input-time/kv-input-time.component.d.ts +0 -10
  369. package/lib/components/kv-inputs/kv-inputs.module.d.ts +0 -25
  370. package/lib/components/kv-inputs/kv-multi-select/kv-multi-select.component.d.ts +0 -15
  371. package/lib/components/kv-inputs/kv-radio-group/kv-radio-group.component.d.ts +0 -18
  372. package/lib/components/kv-inputs/kv-switch/kv-switch.component.d.ts +0 -14
  373. package/lib/components/kv-label/kv-label.component.d.ts +0 -7
  374. package/lib/components/kv-label/kv-label.module.d.ts +0 -8
  375. package/lib/components/kv-loader/kv-loader.component.d.ts +0 -8
  376. package/lib/components/kv-loader/kv-loader.module.d.ts +0 -9
  377. package/lib/components/kv-loader/kv-loader.service.d.ts +0 -10
  378. package/lib/components/kv-login/kv-login.component.d.ts +0 -30
  379. package/lib/components/kv-login/kv-login.module.d.ts +0 -13
  380. package/lib/components/kv-menu/kv-menu.component.d.ts +0 -58
  381. package/lib/components/kv-menu/kv-menu.module.d.ts +0 -13
  382. package/lib/components/kv-modal/kv-modal.component.d.ts +0 -20
  383. package/lib/components/kv-modal/kv-modal.module.d.ts +0 -10
  384. package/lib/components/kv-orgchart/kv-orgchart.component.d.ts +0 -27
  385. package/lib/components/kv-orgchart/kv-orgchart.module.d.ts +0 -9
  386. package/lib/components/kv-page-form/kv-page-form.component.d.ts +0 -70
  387. package/lib/components/kv-page-form/kv-page-form.module.d.ts +0 -11
  388. package/lib/components/kv-pick-list/kv-pick-list.component.d.ts +0 -20
  389. package/lib/components/kv-pick-list/kv-pick-list.module.d.ts +0 -10
  390. package/lib/components/kv-progress-bar/kv-progress-bar.component.d.ts +0 -67
  391. package/lib/components/kv-progress-bar/kv-progress-bar.module.d.ts +0 -9
  392. package/lib/components/kv-table/kv-table.component.d.ts +0 -111
  393. package/lib/components/kv-table/kv-table.module.d.ts +0 -11
  394. package/lib/components/kv-table-edit/kv-table-edit.component.d.ts +0 -115
  395. package/lib/components/kv-table-edit/kv-table-edit.module.d.ts +0 -12
  396. package/lib/components/kv-tree-table/kv-tree-table.component.d.ts +0 -42
  397. package/lib/components/kv-tree-table/kv-tree-table.module.d.ts +0 -9
  398. package/lib/components/kv-tree-view/kv-tree-view.component.d.ts +0 -14
  399. package/lib/components/kv-tree-view/kv-tree-view.module.d.ts +0 -9
  400. package/lib/components/kv-workspace/kv-workspace.component.d.ts +0 -46
  401. package/lib/components/kv-workspace/kv-workspace.module.d.ts +0 -14
@@ -0,0 +1,630 @@
1
+
2
+
3
+ <div class="card" >
4
+ <p-toast></p-toast>
5
+
6
+ <p-panel
7
+ *ngIf="filtrosAvancados"
8
+ header="Filtros avançados"
9
+ [toggleable]="true"
10
+ [collapsed]="true"
11
+ (collapsedChange)="collapsed = !collapsed"
12
+ [style]="{ 'margin-bottom': '2px' }"
13
+ >
14
+ <ng-template pTemplate="headericons">
15
+ <i
16
+ *ngIf="!collapsed"
17
+ class="pi pi-filter"
18
+ ></i>
19
+ <!-- Ícone quando o painel está aberto -->
20
+ <i
21
+ *ngIf="collapsed"
22
+ class="pi pi-minus"
23
+ ></i>
24
+ <!-- Ícone quando o painel está fechado -->
25
+ </ng-template>
26
+ <ng-content></ng-content>
27
+ </p-panel>
28
+
29
+ <p-contextMenu #cm [model]="items"></p-contextMenu>
30
+ <p-table
31
+ #te
32
+ [reorderableColumns]="config.reorderableColumns || false"
33
+ *ngIf="config"
34
+ [value]="dataSource"
35
+ [dataKey]="config.dataKey"
36
+ [tableStyle]="{ 'min-width': '50rem' }"
37
+ [columns]="config.columns"
38
+ [editMode]="'row'"
39
+ [scrollable]="true"
40
+ scrollHeight="400px"
41
+ appendTo="body"
42
+ [styleClass]="'p-datatable-sm'"
43
+ [(selection)]="selectedItems"
44
+ [rowSelectable]="isRowSelectable"
45
+ [globalFilterFields]="globalFilterFields"
46
+ [rows]="rows"
47
+ [paginator]="paginator"
48
+ [rowsPerPageOptions]="rowsPerPageOptions"
49
+ [showCurrentPageReport]="true"
50
+ currentPageReportTemplate="{first} - {last} de {{ totalRecords }}"
51
+ (selectionChange)="selectionChange($event)"
52
+ [rowHover]="true"
53
+ [totalRecords]="totalRecords"
54
+ [lazy]="config.lazy"
55
+ (onLazyLoad)="paginate($event)"
56
+ [groupRowsBy]="config.fieldGroup"
57
+ [showFirstLastIcon]="showFirstLastIcon"
58
+ [pageLinks]="pageLinksOptions"
59
+ [scrollable]="isTableScrollable"
60
+ [scrollHeight]="scrollHeight"
61
+ [rowTrackBy]="rowTrackBy "
62
+ [(contextMenuSelection)]="selectedProduct"
63
+ [contextMenu]=" isEditableTable() ? cm : null"
64
+ >
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+ <!-- ----------------------------------------------------------------------------------------------------------------------------------- -->
74
+
75
+ <ng-template
76
+ pTemplate="caption"
77
+ *ngIf="config.enableCation"
78
+ >
79
+ <div class="flex flex-row flex-wrap justify-content-between align-items-center grid formgrid p-fluid col-12">
80
+ <div class="col-12 flex flex-column">
81
+ <div
82
+ *ngIf="config.title"
83
+ class="text-md font-bold my-3"
84
+ >
85
+ {{ config.title }}
86
+ </div>
87
+ <div
88
+ *ngIf="config.subtitle"
89
+ class="text-sm mb-4 font-medium"
90
+ >
91
+ {{ config.subtitle }}
92
+ </div>
93
+ </div>
94
+
95
+ <div class="flex flex-row align-items-center md:col-6 lg:col-4 {{
96
+ tamanhoTela < 768 ? 'col-10' : 'col-12'
97
+ }} mt-1 mb-2 ">
98
+ <span
99
+ *ngIf="config.enableFilter"
100
+ class="p-input-icon-left"
101
+ >
102
+ <i class="pi pi-search"></i>
103
+
104
+ <input
105
+ pInputText
106
+ pAutoFocus
107
+ [autofocus]="true"
108
+ type="text"
109
+ (input)="onGlobalFilter(te, $event)"
110
+ placeholder="Pesquisar..."
111
+ class="h-2rem"
112
+ />
113
+ </span>
114
+
115
+ </div>
116
+
117
+ <div class="flex flex-row col-1 justify-content-end">
118
+ <div
119
+ *ngFor="let action of config.actionsLote"
120
+ class="btns-options"
121
+ [style]="{ 'margin-right': '7px' }"
122
+ >
123
+ <button
124
+ id="actionLoteBtns"
125
+ pButton
126
+ *ngIf="
127
+ (selectedItems.length > 0 || action.showAcoesLote) &&
128
+ exibirCampo(action, this.action)
129
+ "
130
+ class="actionLoteBtns p-button-raised p-button-text"
131
+ (click)="
132
+ action?.command(commandEvent); activeItemLote(selectedItems)
133
+ "
134
+ [pTooltip]="retornarCampo(action, selectedItems, 'tooltip')"
135
+ [tooltipPosition]="'bottom'"
136
+ [style.backgroundColor]="
137
+ retornarCampo(action, selectedItems, 'btnColor')
138
+ "
139
+ [disabled]="retornarCampo(action, selectedItems, 'disabled')"
140
+ >
141
+ <span
142
+ class="material-symbols-outlined md-22"
143
+ [style.color]="
144
+ retornarCampo(action, selectedItems, 'iconBtnColor')
145
+ "
146
+ >
147
+ {{ retornarCampo(action, selectedItems, "icon") }}
148
+ </span>
149
+ </button>
150
+ </div>
151
+ </div>
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+ </div>
168
+ </ng-template>
169
+
170
+ <ng-template
171
+ pTemplate="header"
172
+ let-columns
173
+ >
174
+ <tr>
175
+ <th
176
+ style="width: 4rem; border-left: solid 4px transparent"
177
+ *ngIf="config.enableSelect"
178
+ >
179
+ <p-tableHeaderCheckbox (click)="activeItemLote(selectedItems)"></p-tableHeaderCheckbox>
180
+ </th>
181
+
182
+ <th
183
+ *ngFor="let col of columns"
184
+ [pSortableColumn]="col.field"
185
+ [pSortableColumnDisabled]="col.sortable === false"
186
+ [style.min-width]="col.width"
187
+ pReorderableColumn
188
+ class="text-sm"
189
+ >
190
+ <div
191
+ [class]="
192
+ centralizarColunas(col) && alignColunasHeader(col) == ''
193
+ ? 'flex flex-row justify-content-center'
194
+ : 'flex flex-row'
195
+ "
196
+ [style]="alignColunasHeader(col)"
197
+ >
198
+ <span>{{ col.header }}</span>
199
+ <p-sortIcon
200
+ *ngIf="col.sortable === true"
201
+ [field]="col.field"
202
+ style="font-size: 10px"
203
+ ></p-sortIcon>
204
+
205
+ <span
206
+ *ngIf="col.headerTooltip"
207
+ class="material-symbols-outlined flex align-items-center"
208
+ [pTooltip]="col.headerTooltip"
209
+ >info</span>
210
+ </div>
211
+ </th>
212
+ <th *ngIf="config.actions && config.actions.length > 0"></th>
213
+ <th *ngIf="isEditableTable()" id="th-edit" style="width: 20px">Editar</th>
214
+ </tr>
215
+ </ng-template>
216
+
217
+
218
+ <!-- ----------------------------------------------------------------------------------------------------------------------------------- -->
219
+
220
+
221
+
222
+
223
+ <ng-template pTemplate="body" let-rowData let-editing="editing" let-ri="rowIndex" let-columns="columns"
224
+ let-rowgroup="rowgroup" let-rowspan="rowspan">
225
+ <tr [pEditableRow]="rowData" [pEditableRowDisabled]="false"
226
+ [pContextMenuRow]="{rowData, editing}"
227
+ >
228
+
229
+
230
+ <td
231
+ *ngIf="config.enableSelect"
232
+ [style]="applyStyle(rowData, { field: 'check-box', header: '' })"
233
+ >
234
+ <!--<p-tableCheckbox *ngIf="isVisibleCheckbox(rowData)"-->
235
+ <p-tableCheckbox
236
+ [value]="rowData"
237
+ [disabled]="isDisabledCheckbox(rowData)"
238
+ (click)="activeItemLote(selectedItems)"
239
+ ></p-tableCheckbox>
240
+ </td>
241
+
242
+
243
+ <ng-container *ngFor="let col of columns; let i = index">
244
+
245
+
246
+
247
+
248
+
249
+
250
+ <!-- ----------------------------------------------------------------------------------------------------------------------------------- -->
251
+ <!-- ----------------------------------------------------------------------------------------------------------------------------------- -->
252
+ <!-- ----------------------------------------------------------------------------------------------------------------------------------- -->
253
+
254
+ <!-- Celula que armazena os controles de edição para os campos -->
255
+ <td *ngIf="col.fieldControlType"
256
+ [id]="'rowTable'+ rowData[config.dataKey]"
257
+ pSelectableRowDblClick=""
258
+ (click)="activeItem(rowData)"
259
+ (dblclick)="dbClickEdit()"
260
+ pSelectableRowDblClick=""
261
+ class="rowTable" [style]="
262
+ applyStyle(rowData, col) +
263
+ centralizarColunas(col) +
264
+ alignColunas(col) " [pTooltip]="returnTooltipRow(rowData, col)"
265
+ >
266
+ <p-cellEditor [ngClass]="{'switch': col.fieldControlType == 'switch'}">
267
+ <!-- Controle de edição do campo -->
268
+ <ng-template pTemplate="input">
269
+
270
+ <ng-container [ngSwitch]="col.fieldControlType">
271
+
272
+ <ng-container *ngSwitchCase="'text'">
273
+ <div [style.width]="col.width" class="grid formgrid p-fluid" >
274
+ <kv-input-text [disabled]="isDisableEditRowCellFunction(rowData, col)" class="cellControl col" [(ngModel)]="rowData[col.field]" [required]="col.required ?? true"></kv-input-text>
275
+ </div>
276
+ </ng-container>
277
+
278
+ <ng-container *ngSwitchCase="'number'">
279
+ <div [style.width]="col.width" class="grid formgrid p-fluid" >
280
+ <kv-input-number [disabled]="isDisableEditRowCellFunction(rowData, col)" class="cellControl col" [(ngModel)]="rowData[col.field]" [required]="col.required ?? true"></kv-input-number>
281
+ </div>
282
+ </ng-container>
283
+
284
+ <ng-container *ngSwitchCase="'mask'">
285
+ <div [style.width]="col.width" class="grid formgrid p-fluid" >
286
+ <kv-input-mask [disabled]="isDisableEditRowCellFunction(rowData, col)" class="cellControl col" [mask]="col.mask" [required]="col.required ?? true" [(ngModel)]="rowData[col.field]"></kv-input-mask>
287
+ </div>
288
+ </ng-container>
289
+
290
+ <ng-container *ngSwitchCase="'switch'">
291
+ <div [style.width]="col.width" class="grid formgrid p-fluid" >
292
+ <kv-switch [disabled]="isDisableEditRowCellFunction(rowData, col)" class="cellControl col" [(ngModel)]="rowData[col.field]" ></kv-switch>
293
+ </div>
294
+ </ng-container>
295
+
296
+ <ng-container *ngSwitchCase="'calendar'">
297
+ <div [style.width]="col.width">
298
+ <div [style.width]="col.width" class="grid formgrid p-fluid" >
299
+ <kv-input-calendar class="cellControl col" [(ngModel)]="rowData[col.field]"></kv-input-calendar>
300
+ </div>
301
+ </div>
302
+ </ng-container>
303
+ <ng-container *ngSwitchCase="'dropdown'">
304
+ <div [style.width]="col.width" class="grid formgrid p-fluid" >
305
+ <p-dropdown
306
+ [disabled]="isDisableEditRowCellFunction(rowData, col)"
307
+ class="cellControl col"
308
+ appendTo="body"
309
+ [optionLabel]="col.fieldDropDownControl.descricaoobjeto"
310
+ [optionValue]="col.fieldDropDownControl.idobjeto"
311
+ [options]="col.fieldDropDownControl.fieldControlDropdownSource"
312
+ [(ngModel)]="rowData[col.field]"
313
+ >
314
+ </p-dropdown>
315
+ </div>
316
+ </ng-container>
317
+ </ng-container>
318
+ </ng-template>
319
+
320
+
321
+
322
+
323
+ <!-- ----------------------------------------------------------------------------------------------------------------------------------- -->
324
+
325
+
326
+
327
+
328
+ <!-- Valor atual do campo -->
329
+ <ng-template pTemplate="output">
330
+ <ng-container [ngSwitch]="col.fieldControlType">
331
+ <ng-container *ngSwitchCase="'dropdown'">
332
+ <ng-container *ngIf="rowData[col.field]">
333
+ {{
334
+ retornaDescricaoDrop(
335
+ rowData,
336
+ col
337
+ )
338
+ }}
339
+ <!-- {{rowData[col.field]}} -->
340
+ </ng-container>
341
+ </ng-container>
342
+
343
+ <ng-container *ngSwitchCase="'switch'">
344
+ <kv-switch [(ngModel)]="rowData[col.field]" [disabled]="true"></kv-switch>
345
+ </ng-container>
346
+
347
+ <ng-container *ngSwitchCase="'calendar'">
348
+ {{ rowData[col.field] | date }}
349
+ </ng-container>
350
+
351
+ <ng-container *ngSwitchCase="'mask'">
352
+ {{ rowData[col.field] | mask:col.mask }}
353
+ </ng-container>
354
+
355
+ <ng-container *ngSwitchDefault>
356
+ {{ rowData[col.field] }}
357
+ </ng-container>
358
+
359
+ </ng-container>
360
+ </ng-template>
361
+ </p-cellEditor>
362
+ </td>
363
+
364
+
365
+ <!-- ----------------------------------------------------------------------------------------------------------------------------------- -->
366
+ <!-- ----------------------------------------------------------------------------------------------------------------------------------- -->
367
+ <!-- ----------------------------------------------------------------------------------------------------------------------------------- -->
368
+
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+ <td *ngIf="rowgroup && !col.template && !col.fieldControlType" [attr.rowspan]="rowgroup && col.grouped ? rowspan : null"
383
+ class="rowTable" [style]="
384
+ applyStyle(rowData, col) +
385
+ centralizarColunas(col) +
386
+ alignColunas(col)
387
+ " [pTooltip]="returnTooltipRow(rowData, col)">
388
+ <span class="p-column-title">{{ col.header }}:</span>
389
+
390
+ <span *ngIf="!isBooleanField(rowData, col); else booleanField" [class]="returnRowClass(rowData, col)">
391
+ <span *ngIf="
392
+ !isChipField(col) && !col.iconField && !isImageField(col)
393
+ ">
394
+ <i *ngIf="col.icon" [class]="col.icon + ' mr-2'"></i>
395
+ {{ transformValue(rowData, col) }}
396
+ </span>
397
+
398
+ <div *ngIf="isChipField(col) && !col.iconField">
399
+ <span [class]="returnClassChip(rowData, col)" [pTooltip]="returnTooltipIcon(rowData, col)">{{
400
+ transformValue(rowData, col) }}</span>
401
+ </div>
402
+ </span>
403
+
404
+ <span *ngIf="isImageField(col)">
405
+ <span>
406
+ <img class="image" [src]="loadImage(rowData, col)" />
407
+ </span>
408
+ </span>
409
+
410
+ <i *ngIf="col.iconField" [ngClass]="{
411
+ 'material-icons': col.indIconMaterial,
412
+ 'material-symbols-outlined mr-2': !col.indIconMaterial
413
+ }" [pTooltip]="returnTooltipIcon(rowData, col)">
414
+ {{ returnClassIcon(rowData, col) }}
415
+ </i>
416
+
417
+ <ng-template #booleanField>
418
+ <i *ngIf="!col.iconField && !isSwitchField(col)" [ngClass]="
419
+ rowData[col.field] ? 'text-green-500' : 'text-red-500'
420
+ "><span class="material-symbols-outlined">
421
+ {{ rowData[col.field] ? "check" : "close" }}
422
+ </span>
423
+ </i>
424
+
425
+ <span *ngIf="isSwitchField(col)" [class]="returnRowClass(rowData, col)">
426
+ <kv-switch (onSwitchChange)="onSwitchChange($event, rowData, col)"
427
+ [disabled]="col?.onlyReadField ?? true" [switchValue]="transformValue(rowData, col)">
428
+ </kv-switch>
429
+ </span>
430
+ </ng-template>
431
+ </td>
432
+
433
+ <td *ngIf="!rowgroup && !col.grouped && !col.template && !col.fieldControlType" [style]="
434
+ applyStyle(rowData, col) +
435
+ centralizarColunas(col) +
436
+ alignColunas(col)
437
+ " class="rowTable" [pTooltip]="returnTooltipRow(rowData, col)">
438
+ <span class="p-column-title">{{ col.header }}:</span>
439
+
440
+ <span *ngIf="!isBooleanField(rowData, col); else booleanField" [class]="returnRowClass(rowData, col)">
441
+ <span *ngIf="
442
+ !isChipField(col) && !col.iconField && !isImageField(col)
443
+ ">
444
+ <i *ngIf="col.icon" [class]="col.icon + ' mr-2'"></i>
445
+ {{ transformValue(rowData, col) }}
446
+ </span>
447
+
448
+ <div *ngIf="isChipField(col) && !col.iconField">
449
+ <span [class]="returnClassChip(rowData, col)" [pTooltip]="returnTooltipIcon(rowData, col)">
450
+ {{ transformValue(rowData, col) }}</span>
451
+ </div>
452
+ </span>
453
+
454
+ <span *ngIf="isImageField(col)">
455
+ <span>
456
+ <img class="image" [src]="loadImage(rowData, col)" />
457
+ </span>
458
+ </span>
459
+
460
+ <i *ngIf="col.iconField" [ngClass]="{
461
+ 'material-icons': col.indIconMaterial,
462
+ 'material-symbols-outlined mr-2': !col.indIconMaterial
463
+ }" [pTooltip]="returnTooltipIcon(rowData, col)">
464
+ {{ returnClassIcon(rowData, col) }}
465
+ </i>
466
+
467
+ <ng-template #booleanField>
468
+ <i *ngIf="!col.iconField && !isSwitchField(col)" [ngClass]="
469
+ rowData[col.field] ? 'text-green-500' : 'text-red-500'
470
+ "><span class="material-symbols-outlined">
471
+ {{ rowData[col.field] ? "check" : "close" }}
472
+ </span>
473
+ </i>
474
+
475
+ <span *ngIf="isSwitchField(col)" [class]="returnRowClass(rowData, col)">
476
+ <kv-switch (onSwitchChange)="onSwitchChange($event, rowData, col)"
477
+ [disabled]="col?.onlyReadField ?? true" [switchValue]="transformValue(rowData, col)">
478
+ </kv-switch>
479
+ </span>
480
+ </ng-template>
481
+ </td>
482
+
483
+ <td *ngIf="col.template && !col.fieldControlType" [style]="
484
+ applyStyle(rowData, col) +
485
+ centralizarColunas(col) +
486
+ alignColunas(col)
487
+ " class="rowTable">
488
+ <span class="p-column-title">{{ col.header }}:</span>
489
+ <ng-container *ngIf="getCustomTemplate(col.template.name)"
490
+ [ngTemplateOutlet]="getCustomTemplate(col.template.name)"
491
+ [ngTemplateOutletContext]="{ $implicit: rowData }">
492
+ </ng-container>
493
+ </td>
494
+
495
+ </ng-container>
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+ <!-- ------------------------------------------------------------------------------------------------------------------------------------------- -->
508
+ <!-- Controle de ação -->
509
+ <td [ngClass]="{'td-tools': isEditableTable(), 'td-tools-sticky': !isEditableTable() }"
510
+ *ngIf="config.actions && config.actions.length > 0 && !editing"
511
+ [style]="applyStyle(rowData, { field: 'btns-options', header: '' })"
512
+ >
513
+ <div
514
+ class="flex flex-row justify-content-end w-full gap-1"
515
+ *ngIf="acoesLinhaTabela"
516
+ >
517
+ <div
518
+ *ngFor="let action of config.actions"
519
+ class="mr-1"
520
+ >
521
+ <!-- <button
522
+ id="actionBtns"
523
+ pButton
524
+ *ngIf="exibirCampo(action, rowData)"
525
+ class="actionBtns p-button-text p-button-raised"
526
+ (click)="activeItem(rowData); action?.command(commandEvent)"
527
+ [pTooltip]="retornarCampo(action, rowData, 'tooltip')"
528
+ [tooltipPosition]="
529
+ action.tooltipPosition ? action.tooltipPosition : 'bottom'
530
+ "
531
+ [disabled]="callDisabled(action, rowData)"
532
+ >
533
+ <span class="material-symbols-outlined md-19">
534
+ {{ retornarCampo(action, rowData, "icon") }}</span
535
+ >
536
+ </button> -->
537
+
538
+ <span
539
+ class="material-symbols-outlined {{
540
+ callDisabled(action, rowData)
541
+ ? 'text-gray-400 cursor-auto'
542
+ : 'cursor-pointer'
543
+ }}"
544
+ style="font-size: 20px"
545
+ (click)="isButtonDisable(action, rowData, commandEvent)"
546
+ [pTooltip]="retornarCampo(action, rowData, 'tooltip')"
547
+ [tooltipPosition]="
548
+ action.tooltipPosition ? action.tooltipPosition : 'bottom'
549
+ "
550
+ >
551
+ {{ retornarCampo(action, rowData, "icon") }}
552
+ </span>
553
+ </div>
554
+ </div>
555
+ <div
556
+ class="flex flex-row justify-content-end w-full"
557
+ *ngIf="!acoesLinhaTabela"
558
+ >
559
+ <!-- <button
560
+ id="moreVertBtn"
561
+ pButton
562
+ class="actionBtns p-button-text p-button-raised"
563
+ (click)="menu.toggle($event); activeItem(rowData)"
564
+ > -->
565
+ <span
566
+ class="material-symbols-outlined cursor-pointer icon-more-horiz"
567
+ style="font-size: 20px"
568
+ (click)="menu.toggle($event); activeItem(rowData)"
569
+ >
570
+ more_horiz
571
+ </span>
572
+ <!-- </button> -->
573
+
574
+ <div *ngFor="let action of config.actions">
575
+ {{ criarMenusModal(rowData) }}
576
+ </div>
577
+
578
+ <!-- <div *ngFor="let action of config.actions">
579
+ {{ criarMenusModal(rowData) }}
580
+ </div> -->
581
+
582
+ <p-menu
583
+ #menu
584
+ [popup]="true"
585
+ [model]="menuItems"
586
+ appendTo="body"
587
+ ></p-menu>
588
+ </div>
589
+ </td>
590
+
591
+ <td
592
+ class="td-tools"
593
+ *ngIf="config.actions && config.actions.length > 0 && editing"
594
+ [style]="applyStyle(rowData, { field: 'btns-options', header: '' })"
595
+ >
596
+ <div
597
+ class="flex flex-row justify-content-end w-full gap-1"
598
+ *ngIf="acoesLinhaTabela"
599
+ >
600
+
601
+ </div>
602
+ <div
603
+ class="flex flex-row justify-content-end w-full"
604
+ *ngIf="!acoesLinhaTabela"
605
+ >
606
+ </div>
607
+ </td>
608
+
609
+
610
+
611
+ <!-- ------------------------------------------------------------------------------------------------------------------------------------------- -->
612
+ <!-- Controle de edição -->
613
+ <td class="td-edit" *ngIf="this.isEditableTable()" >
614
+ <div class="flex align-items-center justify-content-center gap-2">
615
+ <button [style.height]="'28px'" [id]="'rowEdit' + rowData[config.dataKey] " [style.width]="'28px'" [disabled]="isDisableEditRowFunction(rowData)" *ngIf="!editing" pButton pRipple type="button" pInitEditableRow icon="pi pi-pencil"
616
+ (click)="onRowEditInit(rowData)" class="p-button-rounded p-button-text"></button>
617
+ <button [style.height]="'28px'" [style.width]="'28px'" [disabled]="isDisableEditRowFunction(rowData)" *ngIf="editing" pButton pRipple type="button" pSaveEditableRow icon="pi pi-check"
618
+ (click)="onRowEditSave(rowData, ri)" [id]="'rowSave' + rowData[config.dataKey] " class="p-button-rounded p-button-text p-button-success mr-2"></button>
619
+ <button [style.height]="'28px'" [style.width]="'28px'" [disabled]="isDisableEditRowFunction(rowData)" *ngIf="editing" pButton pRipple type="button" pCancelEditableRow icon="pi pi-times"
620
+ (click)="onRowEditCancel(rowData, ri)" [id]="'rowCancel' + rowData[config.dataKey] " class="p-button-rounded p-button-text p-button-danger"></button>
621
+ </div>
622
+ </td>
623
+
624
+
625
+
626
+
627
+ </tr>
628
+ </ng-template>
629
+ </p-table>
630
+ </div>