keevo-components 1.5.191 → 1.5.193

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 (351) hide show
  1. package/README.md +24 -24
  2. package/esm2020/keevo-components.mjs +5 -0
  3. package/esm2020/lib/api/base-components/base-component-button.mjs +36 -0
  4. package/esm2020/lib/api/base-components/base-component-chart.mjs +92 -0
  5. package/esm2020/lib/api/base-components/base-component-crud-form.mjs +270 -0
  6. package/esm2020/lib/api/base-components/base-component-crud-list.mjs +68 -0
  7. package/esm2020/lib/api/base-components/base-component-crud.mjs +65 -0
  8. package/esm2020/lib/api/base-components/base-component-dropdown-new.mjs +211 -0
  9. package/esm2020/lib/api/base-components/base-component-dropdown.mjs +161 -0
  10. package/esm2020/lib/api/base-components/base-component-input.mjs +94 -0
  11. package/esm2020/lib/api/base-components/base-component-multi-select.mjs +128 -0
  12. package/esm2020/lib/api/base-components/base-component.mjs +49 -0
  13. package/esm2020/lib/api/components/chart/chart.config.mjs +2 -0
  14. package/esm2020/lib/api/components/chart/chart.model.mjs +2 -0
  15. package/esm2020/lib/api/components/chart/orchart.config.mjs +2 -0
  16. package/esm2020/lib/api/components/chart/orchart.item.mjs +2 -0
  17. package/esm2020/lib/api/components/dropdown/filtro.combo.mjs +2 -0
  18. package/esm2020/lib/api/components/error/error.component.mjs +26 -0
  19. package/esm2020/lib/api/components/error/kverror.module.mjs +35 -0
  20. package/esm2020/lib/api/components/table/action-item.mjs +2 -0
  21. package/esm2020/lib/api/components/table/kv-menuitem.mjs +3 -0
  22. package/esm2020/lib/api/components/table/table.config.column.mjs +2 -0
  23. package/esm2020/lib/api/components/table/table.config.mjs +2 -0
  24. package/esm2020/lib/api/components/table/table.paginate.mjs +9 -0
  25. package/esm2020/lib/api/helpers/component-providers.mjs +16 -0
  26. package/esm2020/lib/api/helpers/keevo-validators.mjs +64 -0
  27. package/esm2020/lib/api/helpers/translate-primeng.mjs +23 -0
  28. package/esm2020/lib/api/models/menu/menu.model.mjs +2 -0
  29. package/esm2020/lib/api/models/menu/menucompleto.model.mjs +2 -0
  30. package/esm2020/lib/api/models/menu/sistemamenu.model.mjs +2 -0
  31. package/esm2020/lib/api/modules/primeng.module.mjs +247 -0
  32. package/esm2020/lib/api/services/base.api.service.mjs +74 -0
  33. package/esm2020/lib/api/services/component.service.mjs +27 -0
  34. package/esm2020/lib/api/services/form.service.mjs +84 -0
  35. package/esm2020/lib/api/services/imagens.service.mjs +22 -0
  36. package/esm2020/lib/api/services/notification.service.mjs +67 -0
  37. package/esm2020/lib/api/services/object.service.mjs +26 -0
  38. package/esm2020/lib/buttons/button-personalize/button-personalize.component.mjs +17 -0
  39. package/esm2020/lib/buttons/button-popup/button-popup.component.mjs +31 -0
  40. package/esm2020/lib/buttons/button-secondary/button-secondary.component.mjs +17 -0
  41. package/esm2020/lib/buttons/button-success/button-success.component.mjs +17 -0
  42. package/esm2020/lib/buttons/kvbutton.module.mjs +39 -0
  43. package/esm2020/lib/chart/chart.component.mjs +145 -0
  44. package/esm2020/lib/chart/kvchart.module.mjs +32 -0
  45. package/esm2020/lib/directives/template.directive.mjs +24 -0
  46. package/esm2020/lib/inputs/check/check.component.mjs +26 -0
  47. package/esm2020/lib/inputs/dropdown/dropdown.component.mjs +37 -0
  48. package/esm2020/lib/inputs/editor/editor.component.mjs +70 -0
  49. package/esm2020/lib/inputs/input-calendar/input-calendar.component.mjs +89 -0
  50. package/esm2020/lib/inputs/input-mask/input-mask.component.mjs +23 -0
  51. package/esm2020/lib/inputs/input-number/input-number.component.mjs +59 -0
  52. package/esm2020/lib/inputs/input-password/input-password.component.mjs +33 -0
  53. package/esm2020/lib/inputs/input-text/input-text.component.mjs +21 -0
  54. package/esm2020/lib/inputs/input-text-checkbox/input-text-checkbox.component.mjs +38 -0
  55. package/esm2020/lib/inputs/input-textarea/input-textarea.component.mjs +43 -0
  56. package/esm2020/lib/inputs/input-time/input-time.component.mjs +24 -0
  57. package/esm2020/lib/inputs/kvinputs.module.mjs +108 -0
  58. package/esm2020/lib/inputs/multi-select/multi-select.component.mjs +38 -0
  59. package/esm2020/lib/inputs/radio-group/radio-group.component.mjs +53 -0
  60. package/esm2020/lib/inputs/switch/switch.component.mjs +32 -0
  61. package/esm2020/lib/keevo-components.module.mjs +105 -0
  62. package/esm2020/lib/label/label.component.mjs +15 -0
  63. package/esm2020/lib/label/label.module.mjs +24 -0
  64. package/esm2020/lib/loader/kvloader.module.mjs +28 -0
  65. package/esm2020/lib/loader/loader.component.mjs +17 -0
  66. package/esm2020/lib/loader/loader.service.mjs +29 -0
  67. package/esm2020/lib/login/kvlogin.module.mjs +47 -0
  68. package/esm2020/lib/login/login.component.mjs +52 -0
  69. package/esm2020/lib/menu/kvmenu.module.mjs +43 -0
  70. package/esm2020/lib/menu/menu.component.mjs +237 -0
  71. package/esm2020/lib/orgchart/orgchart.component.mjs +100 -0
  72. package/esm2020/lib/orgchart/orgchart.module.mjs +24 -0
  73. package/esm2020/lib/page-form/kv-page-form.module.mjs +38 -0
  74. package/esm2020/lib/page-form/page-form.component.mjs +144 -0
  75. package/esm2020/lib/picklist/kvpicklist.module.mjs +32 -0
  76. package/esm2020/lib/picklist/picklist.component.mjs +48 -0
  77. package/esm2020/lib/pipes/codigofile.pipe.mjs +19 -0
  78. package/esm2020/lib/pipes/cpfcnpj.pipe.mjs +25 -0
  79. package/esm2020/lib/pipes/pipes.module.mjs +34 -0
  80. package/esm2020/lib/pipes/telefone.pipe.mjs +45 -0
  81. package/esm2020/lib/table/kvtable.module.mjs +32 -0
  82. package/esm2020/lib/table/table.component.mjs +500 -0
  83. package/esm2020/lib/tree-table/kv-treetable.component.mjs +371 -0
  84. package/esm2020/lib/tree-table/kv-treetable.module.mjs +32 -0
  85. package/esm2020/lib/tree-view/kvtree-view.module.mjs +28 -0
  86. package/esm2020/lib/tree-view/tree-view.component.mjs +29 -0
  87. package/esm2020/lib/workspace/kvworkspace.module.mjs +47 -0
  88. package/esm2020/lib/workspace/workspace.component.mjs +77 -0
  89. package/esm2020/public-api.mjs +138 -0
  90. package/fesm2015/keevo-components.mjs +4706 -0
  91. package/fesm2015/keevo-components.mjs.map +1 -0
  92. package/fesm2020/keevo-components.mjs +4697 -0
  93. package/fesm2020/keevo-components.mjs.map +1 -0
  94. package/index.d.ts +5 -0
  95. package/lib/api/base-components/base-component-button.d.ts +14 -0
  96. package/lib/api/base-components/base-component-chart.d.ts +40 -0
  97. package/lib/api/base-components/base-component-crud-form.d.ts +137 -0
  98. package/lib/api/base-components/base-component-crud-list.d.ts +63 -0
  99. package/lib/api/base-components/base-component-crud.d.ts +36 -0
  100. package/lib/api/base-components/base-component-dropdown-new.d.ts +14 -0
  101. package/lib/api/base-components/base-component-dropdown.d.ts +42 -0
  102. package/lib/api/base-components/base-component-input.d.ts +31 -0
  103. package/lib/api/base-components/base-component-multi-select.d.ts +35 -0
  104. package/lib/api/base-components/base-component.d.ts +21 -0
  105. package/lib/api/components/chart/chart.config.d.ts +11 -0
  106. package/lib/api/components/chart/chart.model.d.ts +9 -0
  107. package/lib/api/components/chart/orchart.config.d.ts +35 -0
  108. package/lib/api/components/chart/orchart.item.d.ts +26 -0
  109. package/lib/api/components/dropdown/filtro.combo.d.ts +4 -0
  110. package/lib/api/components/error/error.component.d.ts +12 -0
  111. package/lib/api/components/error/kverror.module.d.ts +10 -0
  112. package/lib/api/components/table/action-item.d.ts +5 -0
  113. package/lib/api/components/table/kv-menuitem.d.ts +9 -0
  114. package/lib/api/components/table/table.config.column.d.ts +21 -0
  115. package/lib/api/components/table/table.config.d.ts +17 -0
  116. package/lib/api/components/table/table.paginate.d.ts +6 -0
  117. package/lib/api/helpers/component-providers.d.ts +2 -0
  118. package/lib/api/helpers/keevo-validators.d.ts +10 -0
  119. package/lib/api/helpers/translate-primeng.d.ts +4 -0
  120. package/lib/api/models/menu/menu.model.d.ts +10 -0
  121. package/{src/lib/api/models/menu/menucompleto.model.ts → lib/api/models/menu/menucompleto.model.d.ts} +6 -7
  122. package/lib/api/models/menu/sistemamenu.model.d.ts +8 -0
  123. package/lib/api/modules/primeng.module.d.ts +60 -0
  124. package/lib/api/services/base.api.service.d.ts +25 -0
  125. package/lib/api/services/component.service.d.ts +11 -0
  126. package/lib/api/services/form.service.d.ts +27 -0
  127. package/lib/api/services/imagens.service.d.ts +8 -0
  128. package/lib/api/services/notification.service.d.ts +25 -0
  129. package/lib/api/services/object.service.d.ts +8 -0
  130. package/lib/buttons/button-personalize/button-personalize.component.d.ts +7 -0
  131. package/lib/buttons/button-popup/button-popup.component.d.ts +13 -0
  132. package/lib/buttons/button-secondary/button-secondary.component.d.ts +7 -0
  133. package/lib/buttons/button-success/button-success.component.d.ts +7 -0
  134. package/lib/buttons/kvbutton.module.d.ts +11 -0
  135. package/lib/chart/chart.component.d.ts +56 -0
  136. package/lib/chart/kvchart.module.d.ts +10 -0
  137. package/lib/directives/template.directive.d.ts +11 -0
  138. package/lib/inputs/check/check.component.d.ts +11 -0
  139. package/lib/inputs/dropdown/dropdown.component.d.ts +14 -0
  140. package/lib/inputs/editor/editor.component.d.ts +39 -0
  141. package/lib/inputs/input-calendar/input-calendar.component.d.ts +27 -0
  142. package/lib/inputs/input-mask/input-mask.component.d.ts +10 -0
  143. package/lib/inputs/input-number/input-number.component.d.ts +19 -0
  144. package/lib/inputs/input-password/input-password.component.d.ts +13 -0
  145. package/lib/inputs/input-text/input-text.component.d.ts +9 -0
  146. package/lib/inputs/input-text-checkbox/input-text-checkbox.component.d.ts +15 -0
  147. package/lib/inputs/input-textarea/input-textarea.component.d.ts +16 -0
  148. package/lib/inputs/input-time/input-time.component.d.ts +10 -0
  149. package/lib/inputs/kvinputs.module.d.ts +25 -0
  150. package/lib/inputs/multi-select/multi-select.component.d.ts +12 -0
  151. package/lib/inputs/radio-group/radio-group.component.d.ts +18 -0
  152. package/lib/inputs/switch/switch.component.d.ts +13 -0
  153. package/lib/keevo-components.module.d.ts +19 -0
  154. package/lib/label/label.component.d.ts +7 -0
  155. package/lib/label/label.module.d.ts +8 -0
  156. package/lib/loader/kvloader.module.d.ts +9 -0
  157. package/lib/loader/loader.component.d.ts +8 -0
  158. package/lib/loader/loader.service.d.ts +10 -0
  159. package/lib/login/kvlogin.module.d.ts +13 -0
  160. package/lib/login/login.component.d.ts +30 -0
  161. package/lib/menu/kvmenu.module.d.ts +12 -0
  162. package/lib/menu/menu.component.d.ts +74 -0
  163. package/lib/orgchart/orgchart.component.d.ts +27 -0
  164. package/lib/orgchart/orgchart.module.d.ts +9 -0
  165. package/lib/page-form/kv-page-form.module.d.ts +11 -0
  166. package/lib/page-form/page-form.component.d.ts +69 -0
  167. package/lib/picklist/kvpicklist.module.d.ts +10 -0
  168. package/lib/picklist/picklist.component.d.ts +20 -0
  169. package/lib/pipes/codigofile.pipe.d.ts +7 -0
  170. package/lib/pipes/cpfcnpj.pipe.d.ts +7 -0
  171. package/lib/pipes/pipes.module.d.ts +10 -0
  172. package/lib/pipes/telefone.pipe.d.ts +7 -0
  173. package/lib/table/kvtable.module.d.ts +10 -0
  174. package/lib/table/table.component.d.ts +105 -0
  175. package/lib/tree-table/kv-treetable.component.d.ts +84 -0
  176. package/lib/tree-table/kv-treetable.module.d.ts +11 -0
  177. package/lib/tree-view/kvtree-view.module.d.ts +9 -0
  178. package/lib/tree-view/tree-view.component.d.ts +14 -0
  179. package/lib/workspace/kvworkspace.module.d.ts +13 -0
  180. package/lib/workspace/workspace.component.d.ts +28 -0
  181. package/package.json +22 -3
  182. package/{src/public-api.ts → public-api.d.ts} +134 -156
  183. package/ng-package.json +0 -7
  184. package/src/assets/.gitkeep +0 -0
  185. package/src/assets/images/LogoEvo.png +0 -0
  186. package/src/assets/images/LogoPequenaEvo.png +0 -0
  187. package/src/assets/images/background.png +0 -0
  188. package/src/assets/images/keepass-logo.png +0 -0
  189. package/src/assets/images/keepass-logo.svg +0 -74
  190. package/src/assets/images/keevo-logo.png +0 -0
  191. package/src/assets/images/logokeevo_2.png +0 -0
  192. package/src/index.ts +0 -1
  193. package/src/lib/api/base-components/base-component-button.ts +0 -27
  194. package/src/lib/api/base-components/base-component-chart.ts +0 -105
  195. package/src/lib/api/base-components/base-component-crud-form.ts +0 -328
  196. package/src/lib/api/base-components/base-component-crud-list.ts +0 -111
  197. package/src/lib/api/base-components/base-component-crud.ts +0 -70
  198. package/src/lib/api/base-components/base-component-dropdown-new.ts +0 -112
  199. package/src/lib/api/base-components/base-component-dropdown.ts +0 -164
  200. package/src/lib/api/base-components/base-component-input.ts +0 -107
  201. package/src/lib/api/base-components/base-component-multi-select.ts +0 -136
  202. package/src/lib/api/base-components/base-component.ts +0 -46
  203. package/src/lib/api/components/chart/chart.config.ts +0 -12
  204. package/src/lib/api/components/chart/chart.model.ts +0 -9
  205. package/src/lib/api/components/chart/orchart.config.ts +0 -41
  206. package/src/lib/api/components/chart/orchart.item.ts +0 -33
  207. package/src/lib/api/components/dropdown/filtro.combo.ts +0 -4
  208. package/src/lib/api/components/error/error.component.html +0 -3
  209. package/src/lib/api/components/error/error.component.scss +0 -5
  210. package/src/lib/api/components/error/error.component.ts +0 -22
  211. package/src/lib/api/components/error/kverror.module.ts +0 -23
  212. package/src/lib/api/components/table/action-item.ts +0 -5
  213. package/src/lib/api/components/table/kv-menuitem.ts +0 -10
  214. package/src/lib/api/components/table/table.config.column.ts +0 -21
  215. package/src/lib/api/components/table/table.config.ts +0 -20
  216. package/src/lib/api/components/table/table.paginate.ts +0 -6
  217. package/src/lib/api/helpers/component-providers.ts +0 -16
  218. package/src/lib/api/helpers/keevo-validators.ts +0 -77
  219. package/src/lib/api/helpers/translate-primeng.ts +0 -25
  220. package/src/lib/api/models/menu/menu.model.ts +0 -10
  221. package/src/lib/api/models/menu/sistemamenu.model.ts +0 -8
  222. package/src/lib/api/modules/primeng.module.ts +0 -125
  223. package/src/lib/api/services/base.api.service.ts +0 -115
  224. package/src/lib/api/services/component.service.ts +0 -22
  225. package/src/lib/api/services/form.service.ts +0 -105
  226. package/src/lib/api/services/imagens.service.ts +0 -20
  227. package/src/lib/api/services/notification.service.ts +0 -82
  228. package/src/lib/api/services/object.service.ts +0 -20
  229. package/src/lib/buttons/button-personalize/button-personalize.component.html +0 -11
  230. package/src/lib/buttons/button-personalize/button-personalize.component.scss +0 -3
  231. package/src/lib/buttons/button-personalize/button-personalize.component.ts +0 -13
  232. package/src/lib/buttons/button-popup/button-popup.component.html +0 -12
  233. package/src/lib/buttons/button-popup/button-popup.component.scss +0 -13
  234. package/src/lib/buttons/button-popup/button-popup.component.ts +0 -30
  235. package/src/lib/buttons/button-secondary/button-secondary.component.html +0 -12
  236. package/src/lib/buttons/button-secondary/button-secondary.component.scss +0 -14
  237. package/src/lib/buttons/button-secondary/button-secondary.component.ts +0 -13
  238. package/src/lib/buttons/button-success/button-success.component.html +0 -11
  239. package/src/lib/buttons/button-success/button-success.component.scss +0 -13
  240. package/src/lib/buttons/button-success/button-success.component.ts +0 -13
  241. package/src/lib/buttons/kvbutton.module.ts +0 -25
  242. package/src/lib/chart/chart.component.html +0 -38
  243. package/src/lib/chart/chart.component.scss +0 -0
  244. package/src/lib/chart/chart.component.spec.ts +0 -28
  245. package/src/lib/chart/chart.component.ts +0 -141
  246. package/src/lib/chart/kvchart.module.ts +0 -20
  247. package/src/lib/directives/template.directive.ts +0 -15
  248. package/src/lib/inputs/check/check.component.html +0 -11
  249. package/src/lib/inputs/check/check.component.scss +0 -13
  250. package/src/lib/inputs/check/check.component.ts +0 -24
  251. package/src/lib/inputs/dropdown/dropdown.component.html +0 -91
  252. package/src/lib/inputs/dropdown/dropdown.component.scss +0 -0
  253. package/src/lib/inputs/dropdown/dropdown.component.ts +0 -28
  254. package/src/lib/inputs/editor/editor.component.html +0 -90
  255. package/src/lib/inputs/editor/editor.component.scss +0 -4
  256. package/src/lib/inputs/editor/editor.component.ts +0 -80
  257. package/src/lib/inputs/input-calendar/input-calendar.component.html +0 -30
  258. package/src/lib/inputs/input-calendar/input-calendar.component.scss +0 -0
  259. package/src/lib/inputs/input-calendar/input-calendar.component.ts +0 -81
  260. package/src/lib/inputs/input-mask/input-mask.component.html +0 -20
  261. package/src/lib/inputs/input-mask/input-mask.component.scss +0 -0
  262. package/src/lib/inputs/input-mask/input-mask.component.ts +0 -20
  263. package/src/lib/inputs/input-number/input-number.component.html +0 -22
  264. package/src/lib/inputs/input-number/input-number.component.scss +0 -0
  265. package/src/lib/inputs/input-number/input-number.component.ts +0 -52
  266. package/src/lib/inputs/input-password/input-password.component.html +0 -23
  267. package/src/lib/inputs/input-password/input-password.component.scss +0 -0
  268. package/src/lib/inputs/input-password/input-password.component.ts +0 -23
  269. package/src/lib/inputs/input-text/input-text.component.html +0 -20
  270. package/src/lib/inputs/input-text/input-text.component.scss +0 -18
  271. package/src/lib/inputs/input-text/input-text.component.ts +0 -17
  272. package/src/lib/inputs/input-text-checkbox/input-text-checkbox.component.html +0 -32
  273. package/src/lib/inputs/input-text-checkbox/input-text-checkbox.component.scss +0 -0
  274. package/src/lib/inputs/input-text-checkbox/input-text-checkbox.component.spec.ts +0 -23
  275. package/src/lib/inputs/input-text-checkbox/input-text-checkbox.component.ts +0 -36
  276. package/src/lib/inputs/input-textarea/input-textarea.component.html +0 -22
  277. package/src/lib/inputs/input-textarea/input-textarea.component.scss +0 -0
  278. package/src/lib/inputs/input-textarea/input-textarea.component.ts +0 -33
  279. package/src/lib/inputs/input-time/input-time.component.html +0 -23
  280. package/src/lib/inputs/input-time/input-time.component.scss +0 -0
  281. package/src/lib/inputs/input-time/input-time.component.ts +0 -20
  282. package/src/lib/inputs/kvinputs.module.ts +0 -64
  283. package/src/lib/inputs/multi-select/multi-select.component.html +0 -28
  284. package/src/lib/inputs/multi-select/multi-select.component.scss +0 -8
  285. package/src/lib/inputs/multi-select/multi-select.component.ts +0 -31
  286. package/src/lib/inputs/radio-group/radio-group.component.html +0 -19
  287. package/src/lib/inputs/radio-group/radio-group.component.scss +0 -15
  288. package/src/lib/inputs/radio-group/radio-group.component.ts +0 -50
  289. package/src/lib/inputs/switch/switch.component.html +0 -12
  290. package/src/lib/inputs/switch/switch.component.scss +0 -3
  291. package/src/lib/inputs/switch/switch.component.ts +0 -30
  292. package/src/lib/keevo-components.module.ts +0 -50
  293. package/src/lib/label/label.component.html +0 -6
  294. package/src/lib/label/label.component.scss +0 -9
  295. package/src/lib/label/label.component.spec.ts +0 -23
  296. package/src/lib/label/label.component.ts +0 -13
  297. package/src/lib/label/label.module.ts +0 -18
  298. package/src/lib/loader/kvloader.module.ts +0 -17
  299. package/src/lib/loader/loader.component.html +0 -1
  300. package/src/lib/loader/loader.component.ts +0 -14
  301. package/src/lib/loader/loader.service.ts +0 -26
  302. package/src/lib/login/kvlogin.module.ts +0 -28
  303. package/src/lib/login/login.component.html +0 -108
  304. package/src/lib/login/login.component.scss +0 -48
  305. package/src/lib/login/login.component.spec.ts +0 -23
  306. package/src/lib/login/login.component.ts +0 -65
  307. package/src/lib/menu/kvmenu.module.ts +0 -27
  308. package/src/lib/menu/menu.component.html +0 -342
  309. package/src/lib/menu/menu.component.scss +0 -210
  310. package/src/lib/menu/menu.component.spec.ts +0 -23
  311. package/src/lib/menu/menu.component.ts +0 -246
  312. package/src/lib/orgchart/orgchart.component.html +0 -58
  313. package/src/lib/orgchart/orgchart.component.scss +0 -21
  314. package/src/lib/orgchart/orgchart.component.ts +0 -118
  315. package/src/lib/orgchart/orgchart.module.ts +0 -14
  316. package/src/lib/page-form/kv-page-form.module.ts +0 -22
  317. package/src/lib/page-form/page-form.component.html +0 -57
  318. package/src/lib/page-form/page-form.component.scss +0 -72
  319. package/src/lib/page-form/page-form.component.spec.ts +0 -28
  320. package/src/lib/page-form/page-form.component.ts +0 -121
  321. package/src/lib/picklist/kvpicklist.module.ts +0 -20
  322. package/src/lib/picklist/picklist.component.html +0 -17
  323. package/src/lib/picklist/picklist.component.scss +0 -0
  324. package/src/lib/picklist/picklist.component.spec.ts +0 -26
  325. package/src/lib/picklist/picklist.component.ts +0 -27
  326. package/src/lib/pipes/codigofile.pipe.ts +0 -15
  327. package/src/lib/pipes/cpfcnpj.pipe.ts +0 -21
  328. package/src/lib/pipes/pipes.module.ts +0 -22
  329. package/src/lib/pipes/telefone.pipe.ts +0 -38
  330. package/src/lib/styles-components.scss +0 -11
  331. package/src/lib/table/kvtable.module.ts +0 -22
  332. package/src/lib/table/table.component.html +0 -473
  333. package/src/lib/table/table.component.scss +0 -240
  334. package/src/lib/table/table.component.spec.ts +0 -28
  335. package/src/lib/table/table.component.ts +0 -546
  336. package/src/lib/tree-table/kv-treetable.component.html +0 -649
  337. package/src/lib/tree-table/kv-treetable.component.scss +0 -315
  338. package/src/lib/tree-table/kv-treetable.component.ts +0 -390
  339. package/src/lib/tree-table/kv-treetable.module.ts +0 -18
  340. package/src/lib/tree-view/kvtree-view.module.ts +0 -19
  341. package/src/lib/tree-view/tree-view.component.html +0 -9
  342. package/src/lib/tree-view/tree-view.component.scss +0 -0
  343. package/src/lib/tree-view/tree-view.component.spec.ts +0 -23
  344. package/src/lib/tree-view/tree-view.component.ts +0 -29
  345. package/src/lib/workspace/kvworkspace.module.ts +0 -29
  346. package/src/lib/workspace/workspace.component.html +0 -108
  347. package/src/lib/workspace/workspace.component.scss +0 -83
  348. package/src/lib/workspace/workspace.component.ts +0 -75
  349. package/tsconfig.lib.json +0 -14
  350. package/tsconfig.lib.prod.json +0 -10
  351. package/tsconfig.spec.json +0 -14
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./workspace.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../api/modules/primeng.module";
5
+ import * as i4 from "@angular/forms";
6
+ import * as i5 from "primeng/progressspinner";
7
+ import * as i6 from "primeng/autocomplete";
8
+ import * as i7 from "../buttons/kvbutton.module";
9
+ export declare class KvWorkspaceModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<KvWorkspaceModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KvWorkspaceModule, [typeof i1.WorkspaceComponent], [typeof i2.CommonModule, typeof i3.PrimeNgModule, typeof i4.ReactiveFormsModule, typeof i5.ProgressSpinnerModule, typeof i6.AutoCompleteModule, typeof i4.FormsModule, typeof i7.KvButtonsModule], [typeof i1.WorkspaceComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<KvWorkspaceModule>;
13
+ }
@@ -0,0 +1,28 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class WorkspaceComponent implements OnInit {
4
+ nomeSistema: string;
5
+ nomeUsuario: string;
6
+ masters: any[];
7
+ somenteMaster: boolean;
8
+ onGetMasterSelecionada: EventEmitter<any>;
9
+ onGetEmpresaSelecionada: EventEmitter<any>;
10
+ empresas: any[];
11
+ masterSelecionada: any;
12
+ empresaSelecionada: any;
13
+ visivel: boolean;
14
+ txtPesquisa: string;
15
+ imgPersonagens: string;
16
+ imgLogoKeevo: string;
17
+ styleBackground: string;
18
+ constructor();
19
+ ngOnInit(): void;
20
+ verificaMasterUnica(): void;
21
+ selecionarMaster(master: any): void;
22
+ verificaEmpresaUnica(): void;
23
+ selecionarEmpresa(empresa: any): void;
24
+ voltar(): void;
25
+ filtrarEmpresa(event: any): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<WorkspaceComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<WorkspaceComponent, "kv-workspace", never, { "nomeSistema": "nomeSistema"; "nomeUsuario": "nomeUsuario"; "masters": "masters"; "somenteMaster": "somenteMaster"; }, { "onGetMasterSelecionada": "onGetMasterSelecionada"; "onGetEmpresaSelecionada": "onGetEmpresaSelecionada"; }, never, never, false, never>;
28
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keevo-components",
3
- "version": "1.5.191",
3
+ "version": "1.5.193",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0",
@@ -24,5 +24,24 @@
24
24
  },
25
25
  "keywords": [
26
26
  "keevo components library"
27
- ]
28
- }
27
+ ],
28
+ "module": "fesm2015/keevo-components.mjs",
29
+ "es2020": "fesm2020/keevo-components.mjs",
30
+ "esm2020": "esm2020/keevo-components.mjs",
31
+ "fesm2020": "fesm2020/keevo-components.mjs",
32
+ "fesm2015": "fesm2015/keevo-components.mjs",
33
+ "typings": "index.d.ts",
34
+ "exports": {
35
+ "./package.json": {
36
+ "default": "./package.json"
37
+ },
38
+ ".": {
39
+ "types": "./index.d.ts",
40
+ "esm2020": "./esm2020/keevo-components.mjs",
41
+ "es2020": "./fesm2020/keevo-components.mjs",
42
+ "es2015": "./fesm2015/keevo-components.mjs",
43
+ "node": "./fesm2015/keevo-components.mjs",
44
+ "default": "./fesm2020/keevo-components.mjs"
45
+ }
46
+ }
47
+ }
@@ -1,156 +1,134 @@
1
- /*
2
- * Public API Surface of keevo-components
3
- */
4
-
5
- /**
6
- * Classes base de componentes
7
- */
8
- export * from './lib/api/base-components/base-component';
9
- export * from './lib/api/base-components/base-component-button';
10
- export * from './lib/api/base-components/base-component-chart';
11
- export * from './lib/api/base-components/base-component-crud';
12
- export * from './lib/api/base-components/base-component-crud-form';
13
- export * from './lib/api/base-components/base-component-crud-list';
14
- export * from './lib/api/base-components/base-component-dropdown';
15
- export * from './lib/api/base-components/base-component-input';
16
- export * from './lib/api/base-components/base-component-multi-select';
17
- export * from './lib/api/base-components/base-component-dropdown-new'
18
-
19
- /**
20
- * Helpers
21
- */
22
- export * from './lib/api/helpers/component-providers';
23
- export * from './lib/api/helpers/translate-primeng';
24
- export * from './lib/api/helpers/keevo-validators'
25
-
26
- /**
27
- * Pipes
28
- */
29
- export * from './lib/pipes/codigofile.pipe'
30
- export * from './lib/pipes/cpfcnpj.pipe'
31
- export * from './lib/pipes/telefone.pipe'
32
- export * from './lib/pipes/pipes.module'
33
-
34
- /**
35
- * Services
36
- */
37
- export * from './lib/api/services/base.api.service'
38
- export * from './lib/api/services/component.service';
39
- export * from './lib/api/services/form.service'
40
- export * from './lib/api/services/notification.service';
41
- export * from './lib/api/services/object.service';
42
-
43
- /**
44
- * PrimeNG
45
- */
46
- export * from './lib/api/modules/primeng.module';
47
- export * from './lib/keevo-components.module';
48
-
49
- /**
50
- * Charts
51
- */
52
- export * from './lib/api/components/chart/chart.config';
53
- export * from './lib/api/components/chart/chart.model';
54
- export * from './lib/chart/chart.component';
55
- export * from './lib/chart/kvchart.module';
56
-
57
- /**
58
- * Error
59
- */
60
- export * from './lib/api/components/error/error.component';
61
- export * from './lib/api/components/error/kverror.module';
62
-
63
- /**
64
- * Buttons
65
- */
66
- export * from './lib/buttons/button-personalize/button-personalize.component';
67
- export * from './lib/buttons/button-secondary/button-secondary.component';
68
- export * from './lib/buttons/button-success/button-success.component';
69
- export * from './lib/buttons//button-popup/button-popup.component';
70
- export * from './lib/buttons/kvbutton.module';
71
-
72
- /**
73
- * Inputs
74
- */
75
- export * from './lib/inputs/check/check.component';
76
- export * from './lib/inputs/dropdown/dropdown.component';
77
- export * from './lib/inputs/input-calendar/input-calendar.component';
78
- export * from './lib/inputs/input-mask/input-mask.component';
79
- export * from './lib/inputs/input-number/input-number.component';
80
- export * from './lib/inputs/input-password/input-password.component';
81
- export * from './lib/inputs/input-text-checkbox/input-text-checkbox.component';
82
- export * from './lib/inputs/input-text/input-text.component';
83
- export * from './lib/inputs/input-textarea/input-textarea.component';
84
- export * from './lib/inputs/input-time/input-time.component';
85
- export * from './lib/inputs/kvinputs.module';
86
- export * from './lib/inputs/multi-select/multi-select.component';
87
- export * from './lib/inputs/radio-group/radio-group.component';
88
- export * from './lib/inputs/switch/switch.component';
89
- export * from './lib/inputs/editor/editor.component';
90
- export * from './lib/api/components/dropdown/filtro.combo';
91
-
92
- /**
93
- * Orgchart
94
- */
95
- export * from './lib/orgchart/orgchart.component'
96
- export * from './lib/orgchart/orgchart.module'
97
-
98
- /**
99
- * Picklist
100
- */
101
- export * from './lib/picklist/kvpicklist.module';
102
- export * from './lib/picklist/picklist.component';
103
-
104
- /**
105
- * Table
106
- */
107
- export * from './lib/table/kvtable.module';
108
- export * from './lib/table/table.component';
109
- export * from './lib/api/components/table/action-item';
110
- export * from './lib/api/components/table/kv-menuitem';
111
- export * from './lib/api/components/table/table.config';
112
- export * from './lib/api/components/table/table.config.column';
113
- export * from './lib/api/components/table/table.paginate';
114
-
115
- /**
116
- * TreeTable
117
- */
118
- export * from './lib/tree-table/kv-treetable.component'
119
- export * from './lib/tree-table/kv-treetable.module'
120
-
121
- /**
122
- * Treeview
123
- */
124
- export * from './lib/tree-view/kvtree-view.module';
125
- export * from './lib/tree-view/tree-view.component';
126
-
127
- /**
128
- * Componente de menu + layout
129
- */
130
- export * from './lib/menu/kvmenu.module';
131
- export * from './lib/menu/menu.component';
132
-
133
- /**
134
- * Componente de login
135
- */
136
- export * from './lib/login/kvlogin.module';
137
- export * from './lib/login/login.component';
138
-
139
- /**
140
- * Componente de workspaces
141
- */
142
- export * from './lib/workspace/kvworkspace.module';
143
- export * from './lib/workspace/workspace.component';
144
-
145
- /**
146
- * Formulário base
147
- */
148
- export * from './lib/page-form/page-form.component'
149
- export * from './lib/page-form/kv-page-form.module'
150
-
151
- /**
152
- * Loader
153
- */
154
- export * from './lib/loader/loader.component';
155
- export * from './lib/loader/kvloader.module';
156
- export * from './lib/loader/loader.service';
1
+ /**
2
+ * Classes base de componentes
3
+ */
4
+ export * from './lib/api/base-components/base-component';
5
+ export * from './lib/api/base-components/base-component-button';
6
+ export * from './lib/api/base-components/base-component-chart';
7
+ export * from './lib/api/base-components/base-component-crud';
8
+ export * from './lib/api/base-components/base-component-crud-form';
9
+ export * from './lib/api/base-components/base-component-crud-list';
10
+ export * from './lib/api/base-components/base-component-dropdown';
11
+ export * from './lib/api/base-components/base-component-input';
12
+ export * from './lib/api/base-components/base-component-multi-select';
13
+ export * from './lib/api/base-components/base-component-dropdown-new';
14
+ /**
15
+ * Helpers
16
+ */
17
+ export * from './lib/api/helpers/component-providers';
18
+ export * from './lib/api/helpers/translate-primeng';
19
+ export * from './lib/api/helpers/keevo-validators';
20
+ /**
21
+ * Pipes
22
+ */
23
+ export * from './lib/pipes/codigofile.pipe';
24
+ export * from './lib/pipes/cpfcnpj.pipe';
25
+ export * from './lib/pipes/telefone.pipe';
26
+ export * from './lib/pipes/pipes.module';
27
+ /**
28
+ * Services
29
+ */
30
+ export * from './lib/api/services/base.api.service';
31
+ export * from './lib/api/services/component.service';
32
+ export * from './lib/api/services/form.service';
33
+ export * from './lib/api/services/notification.service';
34
+ export * from './lib/api/services/object.service';
35
+ /**
36
+ * PrimeNG
37
+ */
38
+ export * from './lib/api/modules/primeng.module';
39
+ export * from './lib/keevo-components.module';
40
+ /**
41
+ * Charts
42
+ */
43
+ export * from './lib/api/components/chart/chart.config';
44
+ export * from './lib/api/components/chart/chart.model';
45
+ export * from './lib/chart/chart.component';
46
+ export * from './lib/chart/kvchart.module';
47
+ /**
48
+ * Error
49
+ */
50
+ export * from './lib/api/components/error/error.component';
51
+ export * from './lib/api/components/error/kverror.module';
52
+ /**
53
+ * Buttons
54
+ */
55
+ export * from './lib/buttons/button-personalize/button-personalize.component';
56
+ export * from './lib/buttons/button-secondary/button-secondary.component';
57
+ export * from './lib/buttons/button-success/button-success.component';
58
+ export * from './lib/buttons//button-popup/button-popup.component';
59
+ export * from './lib/buttons/kvbutton.module';
60
+ /**
61
+ * Inputs
62
+ */
63
+ export * from './lib/inputs/check/check.component';
64
+ export * from './lib/inputs/dropdown/dropdown.component';
65
+ export * from './lib/inputs/input-calendar/input-calendar.component';
66
+ export * from './lib/inputs/input-mask/input-mask.component';
67
+ export * from './lib/inputs/input-number/input-number.component';
68
+ export * from './lib/inputs/input-password/input-password.component';
69
+ export * from './lib/inputs/input-text-checkbox/input-text-checkbox.component';
70
+ export * from './lib/inputs/input-text/input-text.component';
71
+ export * from './lib/inputs/input-textarea/input-textarea.component';
72
+ export * from './lib/inputs/input-time/input-time.component';
73
+ export * from './lib/inputs/kvinputs.module';
74
+ export * from './lib/inputs/multi-select/multi-select.component';
75
+ export * from './lib/inputs/radio-group/radio-group.component';
76
+ export * from './lib/inputs/switch/switch.component';
77
+ export * from './lib/inputs/editor/editor.component';
78
+ export * from './lib/api/components/dropdown/filtro.combo';
79
+ /**
80
+ * Orgchart
81
+ */
82
+ export * from './lib/orgchart/orgchart.component';
83
+ export * from './lib/orgchart/orgchart.module';
84
+ /**
85
+ * Picklist
86
+ */
87
+ export * from './lib/picklist/kvpicklist.module';
88
+ export * from './lib/picklist/picklist.component';
89
+ /**
90
+ * Table
91
+ */
92
+ export * from './lib/table/kvtable.module';
93
+ export * from './lib/table/table.component';
94
+ export * from './lib/api/components/table/action-item';
95
+ export * from './lib/api/components/table/kv-menuitem';
96
+ export * from './lib/api/components/table/table.config';
97
+ export * from './lib/api/components/table/table.config.column';
98
+ export * from './lib/api/components/table/table.paginate';
99
+ /**
100
+ * TreeTable
101
+ */
102
+ export * from './lib/tree-table/kv-treetable.component';
103
+ export * from './lib/tree-table/kv-treetable.module';
104
+ /**
105
+ * Treeview
106
+ */
107
+ export * from './lib/tree-view/kvtree-view.module';
108
+ export * from './lib/tree-view/tree-view.component';
109
+ /**
110
+ * Componente de menu + layout
111
+ */
112
+ export * from './lib/menu/kvmenu.module';
113
+ export * from './lib/menu/menu.component';
114
+ /**
115
+ * Componente de login
116
+ */
117
+ export * from './lib/login/kvlogin.module';
118
+ export * from './lib/login/login.component';
119
+ /**
120
+ * Componente de workspaces
121
+ */
122
+ export * from './lib/workspace/kvworkspace.module';
123
+ export * from './lib/workspace/workspace.component';
124
+ /**
125
+ * Formulário base
126
+ */
127
+ export * from './lib/page-form/page-form.component';
128
+ export * from './lib/page-form/kv-page-form.module';
129
+ /**
130
+ * Loader
131
+ */
132
+ export * from './lib/loader/loader.component';
133
+ export * from './lib/loader/kvloader.module';
134
+ export * from './lib/loader/loader.service';
package/ng-package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/keevo-components",
4
- "lib": {
5
- "entryFile": "./src/public-api.ts"
6
- }
7
- }
File without changes
Binary file
Binary file
Binary file
@@ -1,74 +0,0 @@
1
- <?xml version="1.0" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
3
- "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
- <svg version="1.0" xmlns="http://www.w3.org/2000/svg"
5
- width="1073.000000pt" height="626.000000pt" viewBox="0 0 1073.000000 626.000000"
6
- preserveAspectRatio="xMidYMid meet">
7
-
8
- <g transform="translate(0.000000,626.000000) scale(0.100000,-0.100000)"
9
- fill="#000000" stroke="none">
10
- <path d="M1871 6249 c-514 -58 -965 -329 -1246 -749 -172 -257 -267 -541 -290
11
- -862 l-7 -98 -115 0 c-126 0 -157 -10 -187 -60 -15 -26 -16 -182 -16 -1865 0
12
- -1683 1 -1839 16 -1865 37 -62 17 -60 633 -60 l561 0 2 1658 3 1657 21 45 c26
13
- 54 84 114 139 142 56 29 149 35 213 14 68 -23 143 -91 173 -158 l24 -53 5
14
- -1266 5 -1266 991 876 c603 534 1008 884 1033 895 l41 19 -1 586 c0 427 -3
15
- 595 -12 621 -7 19 -27 44 -46 57 l-34 23 -1558 0 c-857 0 -1560 3 -1562 8 -10
16
- 19 16 232 42 333 134 527 562 932 1088 1028 154 28 244 33 374 21 472 -43 884
17
- -312 1111 -725 53 -98 89 -125 163 -125 85 0 153 59 162 141 11 93 -148 341
18
- -342 534 -263 262 -563 417 -929 480 -113 19 -346 27 -455 14z m1571 -2025
19
- c51 -17 109 -67 134 -116 25 -49 30 -131 9 -184 -38 -99 -115 -153 -218 -154
20
- -136 0 -236 97 -237 230 0 166 155 278 312 224z"/>
21
- <path d="M5188 3641 l-33 -29 -3 -1070 -2 -1069 23 -34 c30 -45 83 -60 133
22
- -36 60 29 64 52 64 344 l0 258 84 73 c47 41 88 73 93 72 4 -1 226 -167 493
23
- -369 267 -202 495 -373 507 -379 47 -25 112 -3 138 48 20 38 19 69 -3 103 -9
24
- 15 -229 188 -488 385 -258 196 -471 361 -473 365 -1 5 179 169 401 365 221
25
- 197 409 370 416 385 18 38 8 88 -25 121 -20 21 -35 26 -73 26 l-47 0 -509
26
- -450 -509 -450 -5 647 c-4 495 -8 653 -18 670 -34 60 -111 71 -164 24z"/>
27
- <path d="M7593 3204 c-208 -45 -406 -173 -532 -343 -63 -85 -133 -231 -157
28
- -331 -28 -112 -27 -346 3 -455 133 -488 619 -777 1101 -654 85 21 217 81 288
29
- 130 70 48 180 155 194 189 29 71 -24 150 -101 150 -35 0 -48 -8 -121 -76 -95
30
- -87 -178 -136 -286 -171 -276 -88 -584 19 -758 263 -54 75 -101 183 -110 248
31
- l-7 46 758 0 757 0 35 35 36 36 -6 97 c-25 397 -300 730 -681 827 -81 21 -121
32
- 25 -225 24 -69 -1 -154 -7 -188 -15z m352 -220 c33 -8 98 -33 145 -56 69 -33
33
- 102 -58 176 -132 76 -76 98 -105 132 -176 39 -83 71 -185 60 -195 -2 -3 -309
34
- -4 -680 -3 l-675 3 14 55 c35 141 139 297 252 383 169 127 371 169 576 121z"/>
35
- <path d="M9696 3199 c-87 -12 -233 -60 -313 -105 -215 -120 -385 -345 -444
36
- -589 -31 -125 -31 -305 -1 -429 84 -342 354 -608 693 -682 97 -21 281 -21 378
37
- 0 186 41 370 149 484 284 30 36 37 52 37 87 0 74 -63 123 -133 104 -15 -4 -64
38
- -42 -108 -83 -135 -127 -290 -190 -469 -190 -116 0 -196 20 -310 76 -69 33
39
- -102 58 -170 127 -105 105 -166 215 -195 349 l-7 32 754 0 c729 0 754 1 785
40
- 20 45 27 55 72 43 185 -14 117 -34 191 -81 293 -130 283 -403 484 -709 522
41
- -96 11 -136 11 -234 -1z m294 -234 c30 -8 93 -33 140 -56 109 -54 236 -177
42
- 292 -284 31 -61 78 -190 78 -216 0 -5 -287 -9 -680 -9 -374 0 -680 3 -680 6 0
43
- 31 40 144 73 209 57 111 181 235 292 292 73 38 153 64 230 77 50 7 196 -3 255
44
- -19z"/>
45
- <path d="M3205 1930 c-363 -321 -661 -584 -663 -586 -2 -1 189 -149 425 -328
46
- l428 -325 197 -1 197 0 34 33 c26 24 37 44 41 77 4 25 6 420 4 879 l-3 834
47
- -660 -583z"/>
48
- <path d="M8015 987 c-123 -41 -210 -142 -234 -272 -14 -77 -15 -659 -1 -686
49
- 12 -22 68 -27 88 -7 8 8 12 67 12 201 l0 189 37 -32 c66 -58 127 -80 224 -80
50
- 76 0 93 4 147 30 137 69 207 215 181 378 -18 115 -86 210 -185 258 -66 32
51
- -203 43 -269 21z m210 -106 c23 -10 59 -39 82 -64 150 -172 13 -450 -209 -424
52
- -123 15 -205 104 -216 234 -8 107 51 212 143 254 53 24 147 24 200 0z"/>
53
- <path d="M8873 986 c-96 -31 -189 -120 -220 -209 -28 -82 -24 -207 9 -279 33
54
- -72 93 -137 155 -168 42 -22 61 -25 153 -25 116 0 154 13 219 74 18 17 35 31
55
- 37 31 2 0 4 -20 4 -45 0 -39 4 -47 25 -57 19 -8 31 -8 51 0 l25 12 -3 218 c-3
56
- 201 -5 220 -26 263 -34 70 -84 122 -153 159 -53 28 -74 33 -148 36 -55 3 -101
57
- -1 -128 -10z m205 -102 c187 -78 202 -357 25 -461 -41 -24 -59 -28 -118 -28
58
- -146 1 -244 102 -245 253 0 104 46 183 133 227 60 30 147 34 205 9z"/>
59
- <path d="M9673 991 c-120 -31 -190 -139 -152 -238 25 -66 99 -112 222 -137
60
- 139 -29 197 -65 197 -123 0 -52 -84 -103 -171 -103 -56 0 -136 28 -173 60 -53
61
- 47 -106 37 -106 -20 0 -33 40 -72 105 -101 70 -32 235 -39 302 -14 90 35 143
62
- 103 143 186 0 92 -61 152 -188 184 -210 53 -232 66 -232 131 0 54 57 88 146
63
- 87 63 0 106 -17 157 -59 46 -38 97 -30 97 16 0 70 -106 132 -234 136 -45 2
64
- -95 -1 -113 -5z"/>
65
- <path d="M10342 986 c-54 -18 -108 -58 -127 -96 -22 -43 -19 -126 6 -166 35
66
- -56 97 -86 252 -119 140 -30 189 -106 113 -173 -73 -64 -217 -52 -309 24 -33
67
- 28 -69 31 -91 8 -47 -47 15 -113 138 -149 84 -25 225 -18 289 14 111 54 147
68
- 185 76 275 -31 39 -108 74 -209 96 -100 21 -142 40 -164 72 -38 53 -1 109 85
69
- 127 69 15 138 -1 190 -45 57 -47 119 -44 119 7 0 28 -49 78 -104 106 -63 32
70
- -195 41 -264 19z"/>
71
- <path d="M1952 821 l-144 -126 156 -3 c86 -1 226 -1 312 0 l157 3 -159 121
72
- c-87 66 -163 123 -169 126 -5 3 -75 -51 -153 -121z"/>
73
- </g>
74
- </svg>
Binary file
Binary file
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './public-api';
@@ -1,27 +0,0 @@
1
- import {
2
- Component,
3
- EventEmitter,
4
- Input,
5
- Output
6
- } from '@angular/core';
7
-
8
- @Component({
9
- template: '',
10
- })
11
- export class BaseComponentButton {
12
-
13
- @Input() icon: string = '';
14
- @Input() label: string = '';
15
- @Input() loading: boolean = false;
16
- @Input() disabled: boolean = false;
17
- @Input() color: string = 'bg-blue-100';
18
-
19
-
20
- @Output() onClick: EventEmitter<any> = new EventEmitter();
21
-
22
- constructor() { }
23
-
24
- click(event: any): void {
25
- this.onClick.emit();
26
- }
27
- }
@@ -1,105 +0,0 @@
1
- import { Component, EventEmitter, OnInit, Output, ViewChild } from "@angular/core";
2
- import { Observable } from "rxjs";
3
-
4
- import { chartModel } from "../components/chart/chart.model";
5
- import { ChartConfig, ChartDatasetConfig } from "../components/chart/chart.config";
6
- import { ChartComponent, PeriodosChart } from "../../chart/chart.component";
7
-
8
- @Component({
9
- template: ''
10
- })
11
- export abstract class BaseChartComponent implements OnInit {
12
-
13
- chartConfig!: ChartConfig;
14
- selectedData: number = 0;
15
- enablePeriodos: number[] = [];
16
- periodos = PeriodosChart;
17
-
18
- @ViewChild(ChartComponent) chartComponent?: ChartComponent;
19
-
20
- @Output() onPrintReport: EventEmitter<any> = new EventEmitter();
21
-
22
- constructor() { }
23
-
24
- protected changeData(event: any) {
25
- if (event) {
26
- this.selectedData = event?.value;
27
- this.loadData();
28
- }
29
- }
30
-
31
- ngOnInit(): void {
32
- this.loadData()
33
- }
34
-
35
- abstract loadData(): void;
36
-
37
- protected loadGraphic(obs: Observable<any>) {
38
- obs
39
- .subscribe({
40
- next: (data: any) => {
41
- this.chartConfig = this.assembleGraphic(data as chartModel[]);
42
- this.chartComponent?.reInit(this.chartConfig);
43
- },
44
- error: (error: any) => { },
45
- });
46
- }
47
-
48
- protected assembleGraphic(data: chartModel[]) {
49
- let labels: string[] = [];
50
- let datasets: ChartDatasetConfig[] = [];
51
-
52
- // Tratando legendas
53
- data.map((element: any) => {
54
- if (element.labels && !labels.includes(element.labels)) {
55
- labels.push(element.labels);
56
- }
57
- });
58
-
59
- //Descobrindo quantas dimensões tem o gráfico
60
- let numDatasets = Math.max(...data.map(o => o.numDatasets));
61
-
62
- //Populando datasets
63
- for (let i = 0; i <= numDatasets; i++) {
64
- let backgroundColor: string[] = [];
65
- let hoverBackgroundColor: string[] = [];
66
- let borderColor: string[] = [];
67
- let values: number[] = [];
68
- let labelDataset: string = '';
69
-
70
- data.filter((obj) => {
71
- return obj.numDatasets === i;
72
- }).map((obj) => {
73
- if (obj.backgroundColor && !backgroundColor.includes(obj.backgroundColor)) {
74
- backgroundColor.push(obj.backgroundColor);
75
- }
76
- if (obj.borderColor && !borderColor.includes(obj.borderColor)) {
77
- borderColor.push(obj.borderColor);
78
- }
79
- if (obj.hoverBackgroundColor && !hoverBackgroundColor.includes(obj.hoverBackgroundColor)) {
80
- hoverBackgroundColor.push(obj.hoverBackgroundColor);
81
- }
82
- if (obj.labelDataset) labelDataset = obj.labelDataset;
83
-
84
- values.push(obj.datasets);
85
- });
86
-
87
- datasets.push(
88
- {
89
- label: labelDataset,
90
- backgroundColor: backgroundColor,
91
- hoverBackgroundColor: hoverBackgroundColor,
92
- borderColor: borderColor?.length === 0 ? undefined : borderColor,
93
- data: values
94
- }
95
- );
96
- }
97
-
98
- let dados: ChartConfig = {
99
- labels: labels,
100
- datasets: datasets
101
- };
102
-
103
- return dados;
104
- }
105
- }