@gipisistemas/ngx-core 1.0.10 → 1.0.12

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 (374) hide show
  1. package/README.md +100 -55
  2. package/{projects/ngx-core/src/components/checkbox/checkbox.component.scss → components/checkbox/checkbox.scss} +46 -2
  3. package/components/date-picker/date-picker-calendar.scss +470 -0
  4. package/components/date-picker/date-picker.scss +74 -0
  5. package/components/date-picker/time-picker.scss +125 -0
  6. package/components/filter-listbox/filter-listbox.scss +191 -0
  7. package/components/form-field/form-field.scss +192 -0
  8. package/{projects/ngx-core/src/components/label/label.component.scss → components/label/label.scss} +1 -1
  9. package/{projects/ngx-core/src/components → components}/loading/loading.component.scss +27 -0
  10. package/{projects/ngx-core/src/components/password-requeriments/password-requeriments.component.scss → components/password-requirements/password-requirements.scss} +11 -11
  11. package/{projects/ngx-core/src/components → components}/radio-group/radio-group.component.scss +1 -1
  12. package/components/select/select.scss +243 -0
  13. package/{projects/ngx-core/src/components → components}/split-button/split-button.component.scss +2 -1
  14. package/components/tooltip/tooltip.component.scss +143 -0
  15. package/fesm2022/gipisistemas-ngx-core.mjs +23726 -0
  16. package/fesm2022/gipisistemas-ngx-core.mjs.map +1 -0
  17. package/index.d.ts +6062 -0
  18. package/package.json +54 -77
  19. package/theming/_index.scss +4 -0
  20. package/theming/_palettes.scss +112 -0
  21. package/{projects/ngx-core/src/theming → theming}/_theme.scss +25 -33
  22. package/{projects/ngx-core/src/theming → theming}/_utils.scss +766 -759
  23. package/.editorconfig +0 -18
  24. package/.github/workflows/publish.yaml +0 -35
  25. package/.husky/pre-commit +0 -4
  26. package/.prettierignore +0 -19
  27. package/.prettierrc +0 -11
  28. package/.releaserc.js +0 -28
  29. package/.vscode/extensions.json +0 -4
  30. package/.vscode/launch.json +0 -20
  31. package/.vscode/tasks.json +0 -42
  32. package/CHANGELOG.md +0 -46
  33. package/angular.json +0 -80
  34. package/eslint.config.js +0 -151
  35. package/projects/ngx-core/README.md +0 -168
  36. package/projects/ngx-core/eslint.config.js +0 -15
  37. package/projects/ngx-core/ng-package.json +0 -28
  38. package/projects/ngx-core/package.json +0 -50
  39. package/projects/ngx-core/src/animations/fly-in-out.animation.ts +0 -50
  40. package/projects/ngx-core/src/animations/index.ts +0 -2
  41. package/projects/ngx-core/src/animations/rotate.animation.ts +0 -49
  42. package/projects/ngx-core/src/base/components/base-form-dialog.component.ts +0 -122
  43. package/projects/ngx-core/src/base/components/base-form.component.ts +0 -134
  44. package/projects/ngx-core/src/base/components/base-list-dialog.component.ts +0 -234
  45. package/projects/ngx-core/src/base/components/base-list.component.ts +0 -645
  46. package/projects/ngx-core/src/base/components/base-report.component.ts +0 -310
  47. package/projects/ngx-core/src/base/components/base.component.ts +0 -144
  48. package/projects/ngx-core/src/base/index.ts +0 -25
  49. package/projects/ngx-core/src/base/interfaces/base-report-type.interface.ts +0 -32
  50. package/projects/ngx-core/src/base/models/base-applied-filter.model.ts +0 -14
  51. package/projects/ngx-core/src/base/models/base-authority.model.ts +0 -12
  52. package/projects/ngx-core/src/base/models/base-filter.model.ts +0 -30
  53. package/projects/ngx-core/src/base/models/base-form-dialog-data.model.ts +0 -22
  54. package/projects/ngx-core/src/base/models/base-list-dialog-data.model.ts +0 -21
  55. package/projects/ngx-core/src/base/models/base-menu.model.ts +0 -48
  56. package/projects/ngx-core/src/base/models/base-page.model.ts +0 -27
  57. package/projects/ngx-core/src/base/models/base-query-params.model.ts +0 -19
  58. package/projects/ngx-core/src/base/models/base-sort.model.ts +0 -14
  59. package/projects/ngx-core/src/base/models/base-token.model.ts +0 -29
  60. package/projects/ngx-core/src/base/models/base-user.model.ts +0 -33
  61. package/projects/ngx-core/src/base/models/base.model.ts +0 -37
  62. package/projects/ngx-core/src/base/services/base-auth.service.ts +0 -125
  63. package/projects/ngx-core/src/base/services/base-crud.service.ts +0 -360
  64. package/projects/ngx-core/src/base/services/base.service.ts +0 -197
  65. package/projects/ngx-core/src/components/action-row/action-row.component.ts +0 -24
  66. package/projects/ngx-core/src/components/action-row/index.ts +0 -2
  67. package/projects/ngx-core/src/components/auto-focus/auto-focus.directive.ts +0 -78
  68. package/projects/ngx-core/src/components/auto-focus/index.ts +0 -2
  69. package/projects/ngx-core/src/components/avatar/avatar.component.ts +0 -87
  70. package/projects/ngx-core/src/components/avatar/index.ts +0 -2
  71. package/projects/ngx-core/src/components/base-component/base-control-value-accessor.ts +0 -138
  72. package/projects/ngx-core/src/components/base-component/base-input.ts +0 -68
  73. package/projects/ngx-core/src/components/base-component/index.ts +0 -2
  74. package/projects/ngx-core/src/components/button/button.component.ts +0 -263
  75. package/projects/ngx-core/src/components/button/index.ts +0 -2
  76. package/projects/ngx-core/src/components/button-group/button-group.component.ts +0 -87
  77. package/projects/ngx-core/src/components/button-group/index.ts +0 -1
  78. package/projects/ngx-core/src/components/checkbox/checkbox.component.ts +0 -298
  79. package/projects/ngx-core/src/components/checkbox/index.ts +0 -2
  80. package/projects/ngx-core/src/components/chips/chips.component.ts +0 -170
  81. package/projects/ngx-core/src/components/chips/index.ts +0 -1
  82. package/projects/ngx-core/src/components/confirm-dialog/confirm-dialog.component.ts +0 -146
  83. package/projects/ngx-core/src/components/confirm-dialog/index.ts +0 -5
  84. package/projects/ngx-core/src/components/confirm-dialog/shared/confirm-dialog-types.enum.ts +0 -8
  85. package/projects/ngx-core/src/components/confirm-dialog/shared/confirm-dialog.model.ts +0 -32
  86. package/projects/ngx-core/src/components/confirm-dialog/shared/confirm-dialog.service.ts +0 -59
  87. package/projects/ngx-core/src/components/currency/currency-config.ts +0 -33
  88. package/projects/ngx-core/src/components/currency/currency-input.handler.ts +0 -162
  89. package/projects/ngx-core/src/components/currency/currency-input.manager.ts +0 -64
  90. package/projects/ngx-core/src/components/currency/currency-input.service.ts +0 -386
  91. package/projects/ngx-core/src/components/currency/currency.directive.ts +0 -144
  92. package/projects/ngx-core/src/components/currency/index.ts +0 -2
  93. package/projects/ngx-core/src/components/date-picker/date-picker.component.scss +0 -23
  94. package/projects/ngx-core/src/components/date-picker/date-picker.component.ts +0 -192
  95. package/projects/ngx-core/src/components/date-picker/index.ts +0 -1
  96. package/projects/ngx-core/src/components/date-range-picker/date-range-picker.component.scss +0 -105
  97. package/projects/ngx-core/src/components/date-range-picker/date-range-picker.component.ts +0 -464
  98. package/projects/ngx-core/src/components/date-range-picker/index.ts +0 -6
  99. package/projects/ngx-core/src/components/date-range-picker/shared/calendar/calendar.component.scss +0 -13
  100. package/projects/ngx-core/src/components/date-range-picker/shared/calendar/calendar.component.ts +0 -144
  101. package/projects/ngx-core/src/components/date-range-picker/shared/default-preset-date-options.ts +0 -61
  102. package/projects/ngx-core/src/components/date-range-picker/shared/preset-key.enum.ts +0 -11
  103. package/projects/ngx-core/src/components/date-range-picker/shared/range-selection-strategy.service.ts +0 -84
  104. package/projects/ngx-core/src/components/date-range-picker/shared/select-date-option.interface.ts +0 -39
  105. package/projects/ngx-core/src/components/date-range-picker/shared/selected-date-event.interface.ts +0 -7
  106. package/projects/ngx-core/src/components/datetime-picker/datetime-picker.component.scss +0 -283
  107. package/projects/ngx-core/src/components/datetime-picker/datetime-picker.component.ts +0 -749
  108. package/projects/ngx-core/src/components/datetime-picker/index.ts +0 -1
  109. package/projects/ngx-core/src/components/disable-auto-fill/disable-auto-fill.directive.ts +0 -22
  110. package/projects/ngx-core/src/components/disable-auto-fill/index.ts +0 -2
  111. package/projects/ngx-core/src/components/echarts/echarts.directive.ts +0 -325
  112. package/projects/ngx-core/src/components/echarts/index.ts +0 -5
  113. package/projects/ngx-core/src/components/echarts/shared/echarts-change-filter.ts +0 -63
  114. package/projects/ngx-core/src/components/echarts/shared/echarts-config.interface.ts +0 -6
  115. package/projects/ngx-core/src/components/echarts/shared/echarts-theme.type.ts +0 -1
  116. package/projects/ngx-core/src/components/empty/empty.component.ts +0 -66
  117. package/projects/ngx-core/src/components/empty/index.ts +0 -1
  118. package/projects/ngx-core/src/components/expansion-panel/expansion-panel.component.ts +0 -127
  119. package/projects/ngx-core/src/components/expansion-panel/index.ts +0 -1
  120. package/projects/ngx-core/src/components/field-error/field-error.component.scss +0 -7
  121. package/projects/ngx-core/src/components/field-error/field-error.component.ts +0 -190
  122. package/projects/ngx-core/src/components/field-error/index.ts +0 -2
  123. package/projects/ngx-core/src/components/field-error/shared/field-error-custom-validators.type.ts +0 -6
  124. package/projects/ngx-core/src/components/fieldset/fieldset.component.ts +0 -69
  125. package/projects/ngx-core/src/components/fieldset/index.ts +0 -1
  126. package/projects/ngx-core/src/components/file-drag-and-drop/file-drag-and-drop.component.ts +0 -205
  127. package/projects/ngx-core/src/components/file-drag-and-drop/index.ts +0 -1
  128. package/projects/ngx-core/src/components/flex-layout/flex-layout.directive.ts +0 -248
  129. package/projects/ngx-core/src/components/flex-layout/index.ts +0 -1
  130. package/projects/ngx-core/src/components/form-wrapper/form-wrapper.component.ts +0 -61
  131. package/projects/ngx-core/src/components/form-wrapper/index.ts +0 -2
  132. package/projects/ngx-core/src/components/helpful-tip/helpful-tip.component.ts +0 -37
  133. package/projects/ngx-core/src/components/helpful-tip/index.ts +0 -2
  134. package/projects/ngx-core/src/components/icon/icon.component.ts +0 -165
  135. package/projects/ngx-core/src/components/icon/index.ts +0 -2
  136. package/projects/ngx-core/src/components/index.ts +0 -59
  137. package/projects/ngx-core/src/components/input/index.ts +0 -4
  138. package/projects/ngx-core/src/components/input/input.component.ts +0 -234
  139. package/projects/ngx-core/src/components/input/shared/input-prefix.directive.ts +0 -7
  140. package/projects/ngx-core/src/components/input/shared/input-suffix.directive.ts +0 -7
  141. package/projects/ngx-core/src/components/input/shared/input.directive.ts +0 -83
  142. package/projects/ngx-core/src/components/input-currency/index.ts +0 -1
  143. package/projects/ngx-core/src/components/input-currency/input-currency.component.ts +0 -232
  144. package/projects/ngx-core/src/components/input-file/index.ts +0 -1
  145. package/projects/ngx-core/src/components/input-file/input-file.component.ts +0 -283
  146. package/projects/ngx-core/src/components/input-file/shared/file-upload-event.interface.ts +0 -4
  147. package/projects/ngx-core/src/components/input-group/index.ts +0 -2
  148. package/projects/ngx-core/src/components/input-group/input-group-addon.component.ts +0 -24
  149. package/projects/ngx-core/src/components/input-group/input-group.component.ts +0 -38
  150. package/projects/ngx-core/src/components/input-phone/index.ts +0 -1
  151. package/projects/ngx-core/src/components/input-phone/input-phone.component.ts +0 -249
  152. package/projects/ngx-core/src/components/label/index.ts +0 -1
  153. package/projects/ngx-core/src/components/label/label.component.ts +0 -38
  154. package/projects/ngx-core/src/components/loading/index.ts +0 -2
  155. package/projects/ngx-core/src/components/loading/loading.component.ts +0 -45
  156. package/projects/ngx-core/src/components/lozenge/index.ts +0 -3
  157. package/projects/ngx-core/src/components/lozenge/lozenge.component.ts +0 -70
  158. package/projects/ngx-core/src/components/lozenge/shared/lozenge-fill.type.ts +0 -4
  159. package/projects/ngx-core/src/components/lozenge/shared/lozenge-variant.type.ts +0 -9
  160. package/projects/ngx-core/src/components/month-picker/index.ts +0 -1
  161. package/projects/ngx-core/src/components/month-picker/month-picker.component.scss +0 -33
  162. package/projects/ngx-core/src/components/month-picker/month-picker.component.ts +0 -233
  163. package/projects/ngx-core/src/components/paginator/index.ts +0 -1
  164. package/projects/ngx-core/src/components/paginator/paginator.component.ts +0 -95
  165. package/projects/ngx-core/src/components/password-requeriments/index.ts +0 -4
  166. package/projects/ngx-core/src/components/password-requeriments/password-requeriments.component.ts +0 -162
  167. package/projects/ngx-core/src/components/password-requeriments/shared/password-requeriments.interface.ts +0 -5
  168. package/projects/ngx-core/src/components/password-requeriments/shared/password-validation.util.ts +0 -132
  169. package/projects/ngx-core/src/components/pdf-viewer/index.ts +0 -4
  170. package/projects/ngx-core/src/components/pdf-viewer/pdf-viewer-dialog.component.ts +0 -63
  171. package/projects/ngx-core/src/components/pdf-viewer/pdf-viewer.component.ts +0 -543
  172. package/projects/ngx-core/src/components/pdf-viewer/pdf-viewer.d.ts +0 -7
  173. package/projects/ngx-core/src/components/pdf-viewer/shared/pdf-viewer-dialog.model.ts +0 -17
  174. package/projects/ngx-core/src/components/pdf-viewer/shared/pdf-viewer-dialog.service.ts +0 -101
  175. package/projects/ngx-core/src/components/popover/index.ts +0 -5
  176. package/projects/ngx-core/src/components/popover/popover-target.directive.ts +0 -12
  177. package/projects/ngx-core/src/components/popover/popover-trigger.directive.ts +0 -533
  178. package/projects/ngx-core/src/components/popover/popover.component.ts +0 -346
  179. package/projects/ngx-core/src/components/popover/popover.module.ts +0 -10
  180. package/projects/ngx-core/src/components/popover/shared/popover-animations.ts +0 -31
  181. package/projects/ngx-core/src/components/popover/shared/popover-errors.ts +0 -28
  182. package/projects/ngx-core/src/components/popover/shared/popover-types.type.ts +0 -7
  183. package/projects/ngx-core/src/components/popover/shared/popover.interface.ts +0 -31
  184. package/projects/ngx-core/src/components/radio-button/index.ts +0 -0
  185. package/projects/ngx-core/src/components/radio-button/radio-button.component.ts +0 -104
  186. package/projects/ngx-core/src/components/radio-group/index.ts +0 -2
  187. package/projects/ngx-core/src/components/radio-group/radio-group.component.ts +0 -186
  188. package/projects/ngx-core/src/components/radio-group/shared/option-radio-group.type.ts +0 -1
  189. package/projects/ngx-core/src/components/scroll-fade/index.ts +0 -1
  190. package/projects/ngx-core/src/components/scroll-fade/scroll-fade.directive.ts +0 -130
  191. package/projects/ngx-core/src/components/select/index.ts +0 -4
  192. package/projects/ngx-core/src/components/select/select.component.scss +0 -48
  193. package/projects/ngx-core/src/components/select/select.component.ts +0 -284
  194. package/projects/ngx-core/src/components/select/shared/mat-select-media-tracker.ts +0 -40
  195. package/projects/ngx-core/src/components/select/shared/mat-select-options-helper.ts +0 -62
  196. package/projects/ngx-core/src/components/select/shared/mat-select-styles.scss +0 -429
  197. package/projects/ngx-core/src/components/select/shared/mat-select.directive.ts +0 -1298
  198. package/projects/ngx-core/src/components/select-enum/index.ts +0 -3
  199. package/projects/ngx-core/src/components/select-enum/select-enum.component.scss +0 -37
  200. package/projects/ngx-core/src/components/select-enum/select-enum.component.ts +0 -257
  201. package/projects/ngx-core/src/components/select-enum/shared/option-select-enum.type.ts +0 -8
  202. package/projects/ngx-core/src/components/select-enum/shared/select-check-all.component.ts +0 -104
  203. package/projects/ngx-core/src/components/sidenav/index.ts +0 -2
  204. package/projects/ngx-core/src/components/sidenav/shared/sidenav-arrow-animations.ts +0 -13
  205. package/projects/ngx-core/src/components/sidenav/sidenav.component.ts +0 -267
  206. package/projects/ngx-core/src/components/skeleton/index.ts +0 -2
  207. package/projects/ngx-core/src/components/skeleton/skeleton.component.ts +0 -101
  208. package/projects/ngx-core/src/components/split-button/index.ts +0 -1
  209. package/projects/ngx-core/src/components/split-button/shared/split-button-arrow-animations.ts +0 -17
  210. package/projects/ngx-core/src/components/split-button/split-button.component.ts +0 -328
  211. package/projects/ngx-core/src/components/stepper/index.ts +0 -2
  212. package/projects/ngx-core/src/components/stepper/step.component.ts +0 -67
  213. package/projects/ngx-core/src/components/stepper/stepper.component.ts +0 -98
  214. package/projects/ngx-core/src/components/table/index.ts +0 -9
  215. package/projects/ngx-core/src/components/table/shared/table-column-action-type.enum.ts +0 -1
  216. package/projects/ngx-core/src/components/table/shared/table-column-align-type.enum.ts +0 -34
  217. package/projects/ngx-core/src/components/table/shared/table-column-builder.model.ts +0 -275
  218. package/projects/ngx-core/src/components/table/shared/table-column-condition.enum.ts +0 -6
  219. package/projects/ngx-core/src/components/table/shared/table-column-partial.model.ts +0 -9
  220. package/projects/ngx-core/src/components/table/shared/table-column.model.ts +0 -132
  221. package/projects/ngx-core/src/components/table/shared/table-menu-item-context-builder.model.ts +0 -155
  222. package/projects/ngx-core/src/components/table/shared/table-menu-item-context.model.ts +0 -79
  223. package/projects/ngx-core/src/components/table/table.component.html +0 -341
  224. package/projects/ngx-core/src/components/table/table.component.ts +0 -781
  225. package/projects/ngx-core/src/components/tabs/index.ts +0 -2
  226. package/projects/ngx-core/src/components/tabs/tab-group.component.ts +0 -147
  227. package/projects/ngx-core/src/components/tabs/tab.component.ts +0 -90
  228. package/projects/ngx-core/src/components/tag/index.ts +0 -1
  229. package/projects/ngx-core/src/components/tag/tag.component.ts +0 -82
  230. package/projects/ngx-core/src/components/text-capitalize/index.ts +0 -1
  231. package/projects/ngx-core/src/components/text-capitalize/text-capitalize.directive.ts +0 -73
  232. package/projects/ngx-core/src/components/text-ellipsis/index.ts +0 -2
  233. package/projects/ngx-core/src/components/text-ellipsis/text-ellipsis.directive.ts +0 -42
  234. package/projects/ngx-core/src/components/textarea/index.ts +0 -1
  235. package/projects/ngx-core/src/components/textarea/textarea.component.ts +0 -234
  236. package/projects/ngx-core/src/components/time-clock/index.ts +0 -2
  237. package/projects/ngx-core/src/components/time-clock/shared/time-clock.interface.ts +0 -15
  238. package/projects/ngx-core/src/components/time-clock/time-clock.component.ts +0 -670
  239. package/projects/ngx-core/src/components/toast/index.ts +0 -5
  240. package/projects/ngx-core/src/components/toast/shared/toast-types.enum.ts +0 -8
  241. package/projects/ngx-core/src/components/toast/shared/toast.model.ts +0 -18
  242. package/projects/ngx-core/src/components/toast/shared/toast.service.ts +0 -66
  243. package/projects/ngx-core/src/components/toast/toast.component.ts +0 -116
  244. package/projects/ngx-core/src/components/toggle-switch/index.ts +0 -2
  245. package/projects/ngx-core/src/components/toggle-switch/toggle-switch.component.ts +0 -175
  246. package/projects/ngx-core/src/components/toolbar/index.ts +0 -2
  247. package/projects/ngx-core/src/components/toolbar/toolbar.component.ts +0 -28
  248. package/projects/ngx-core/src/components/top-nav/index.ts +0 -2
  249. package/projects/ngx-core/src/components/top-nav/top-nav.component.ts +0 -25
  250. package/projects/ngx-core/src/components/tree-table/index.ts +0 -8
  251. package/projects/ngx-core/src/components/tree-table/shared/tree-table-arrow-animations.ts +0 -17
  252. package/projects/ngx-core/src/components/tree-table/shared/tree-table-column-builder.model.ts +0 -135
  253. package/projects/ngx-core/src/components/tree-table/shared/tree-table-column-condition.enum.ts +0 -6
  254. package/projects/ngx-core/src/components/tree-table/shared/tree-table-column-partial.model.ts +0 -9
  255. package/projects/ngx-core/src/components/tree-table/shared/tree-table-column.model.ts +0 -64
  256. package/projects/ngx-core/src/components/tree-table/shared/tree-table-menu-item-context-builder.model.ts +0 -155
  257. package/projects/ngx-core/src/components/tree-table/shared/tree-table-menu-item-context.model.ts +0 -79
  258. package/projects/ngx-core/src/components/tree-table/tree-table.component.html +0 -207
  259. package/projects/ngx-core/src/components/tree-table/tree-table.component.ts +0 -358
  260. package/projects/ngx-core/src/components/user-profile/index.ts +0 -2
  261. package/projects/ngx-core/src/components/user-profile/shared/user-profile-arrow-animations.ts +0 -13
  262. package/projects/ngx-core/src/components/user-profile/user-profile.component.ts +0 -159
  263. package/projects/ngx-core/src/components/year-picker/index.ts +0 -1
  264. package/projects/ngx-core/src/components/year-picker/year-picker.component.scss +0 -37
  265. package/projects/ngx-core/src/components/year-picker/year-picker.component.ts +0 -264
  266. package/projects/ngx-core/src/decorators/debounce.decorator.ts +0 -124
  267. package/projects/ngx-core/src/decorators/index.ts +0 -1
  268. package/projects/ngx-core/src/enums/index.ts +0 -3
  269. package/projects/ngx-core/src/enums/menu-type.enum.ts +0 -7
  270. package/projects/ngx-core/src/enums/sort-direction.enum.ts +0 -6
  271. package/projects/ngx-core/src/enums/type-operation-dialog.enum.ts +0 -15
  272. package/projects/ngx-core/src/guards/auth.guard.ts +0 -15
  273. package/projects/ngx-core/src/guards/index.ts +0 -3
  274. package/projects/ngx-core/src/guards/permission.guard.ts +0 -15
  275. package/projects/ngx-core/src/guards/public.guard.ts +0 -21
  276. package/projects/ngx-core/src/interceptors/auth.interceptor.ts +0 -56
  277. package/projects/ngx-core/src/interceptors/error.interceptor.ts +0 -121
  278. package/projects/ngx-core/src/interceptors/index.ts +0 -3
  279. package/projects/ngx-core/src/interfaces/filter-persistence.interface.ts +0 -31
  280. package/projects/ngx-core/src/interfaces/index.ts +0 -3
  281. package/projects/ngx-core/src/interfaces/page-adjust.interface.ts +0 -10
  282. package/projects/ngx-core/src/interfaces/permissions.interface.ts +0 -12
  283. package/projects/ngx-core/src/pipes/index.ts +0 -3
  284. package/projects/ngx-core/src/pipes/money.pipe.ts +0 -41
  285. package/projects/ngx-core/src/pipes/nomalize-text.pipe.ts +0 -32
  286. package/projects/ngx-core/src/pipes/paginator.pipe.ts +0 -44
  287. package/projects/ngx-core/src/providers/allowed-public-routes.provider.ts +0 -36
  288. package/projects/ngx-core/src/providers/app-messages.provider.ts +0 -32
  289. package/projects/ngx-core/src/providers/base-auth-service.provider.ts +0 -11
  290. package/projects/ngx-core/src/providers/echarts-core.provider.ts +0 -11
  291. package/projects/ngx-core/src/providers/index.ts +0 -5
  292. package/projects/ngx-core/src/providers/paginator-intl.provider.ts +0 -40
  293. package/projects/ngx-core/src/public-api.ts +0 -14
  294. package/projects/ngx-core/src/services/cacheable.service.ts +0 -57
  295. package/projects/ngx-core/src/services/dialog.service.ts +0 -126
  296. package/projects/ngx-core/src/services/file-saver.service.ts +0 -86
  297. package/projects/ngx-core/src/services/filter-indexed-db.service.ts +0 -237
  298. package/projects/ngx-core/src/services/filter-persistence.service.ts +0 -359
  299. package/projects/ngx-core/src/services/filter-url.service.ts +0 -151
  300. package/projects/ngx-core/src/services/index.ts +0 -10
  301. package/projects/ngx-core/src/services/moment-date-adapter.service.ts +0 -15
  302. package/projects/ngx-core/src/services/native-date-adapter.service.ts +0 -14
  303. package/projects/ngx-core/src/services/page-adjust.service.ts +0 -149
  304. package/projects/ngx-core/src/services/svg-register.service.ts +0 -59
  305. package/projects/ngx-core/src/signals/filter.signal.ts +0 -138
  306. package/projects/ngx-core/src/signals/index.ts +0 -1
  307. package/projects/ngx-core/src/theming/_index.scss +0 -19
  308. package/projects/ngx-core/src/theming/_palettes.scss +0 -112
  309. package/projects/ngx-core/src/types/booleanish.type.ts +0 -2
  310. package/projects/ngx-core/src/types/implicit-template.type.ts +0 -3
  311. package/projects/ngx-core/src/types/index.ts +0 -8
  312. package/projects/ngx-core/src/types/mixable-object.type.ts +0 -2
  313. package/projects/ngx-core/src/types/nullable.type.ts +0 -2
  314. package/projects/ngx-core/src/types/numberish.type.ts +0 -2
  315. package/projects/ngx-core/src/types/page-event.type.ts +0 -4
  316. package/projects/ngx-core/src/types/uuid.type.ts +0 -2
  317. package/projects/ngx-core/src/types/void-listener.type.ts +0 -2
  318. package/projects/ngx-core/src/utils/array.util.ts +0 -21
  319. package/projects/ngx-core/src/utils/css.util.ts +0 -28
  320. package/projects/ngx-core/src/utils/currency.util.ts +0 -176
  321. package/projects/ngx-core/src/utils/date.util.ts +0 -527
  322. package/projects/ngx-core/src/utils/document.util.ts +0 -1126
  323. package/projects/ngx-core/src/utils/email.util.ts +0 -25
  324. package/projects/ngx-core/src/utils/index.ts +0 -14
  325. package/projects/ngx-core/src/utils/number-to-words.util.ts +0 -249
  326. package/projects/ngx-core/src/utils/number.util.ts +0 -160
  327. package/projects/ngx-core/src/utils/object.util.ts +0 -191
  328. package/projects/ngx-core/src/utils/phone.util.ts +0 -242
  329. package/projects/ngx-core/src/utils/states.util.ts +0 -247
  330. package/projects/ngx-core/src/utils/storage.util.ts +0 -110
  331. package/projects/ngx-core/src/utils/string.util.ts +0 -172
  332. package/projects/ngx-core/src/utils/uuid.util.ts +0 -60
  333. package/projects/ngx-core/tsconfig.lib.json +0 -14
  334. package/projects/ngx-core/tsconfig.lib.prod.json +0 -10
  335. package/scripts/sync-version.js +0 -19
  336. package/tsconfig.json +0 -41
  337. /package/{projects/ngx-core/src/components/action-row/action-row.component.scss → components/action-row/action-row.scss} +0 -0
  338. /package/{projects/ngx-core/src/components/avatar/avatar.component.scss → components/avatar/avatar.scss} +0 -0
  339. /package/{projects/ngx-core/src/components/button/button.component.scss → components/button/button.scss} +0 -0
  340. /package/{projects/ngx-core/src/components/button-group/button-group.component.scss → components/button-group/button-group.scss} +0 -0
  341. /package/{projects/ngx-core/src/components/chips/chips.component.scss → components/chips/chips.scss} +0 -0
  342. /package/{projects/ngx-core/src/components/confirm-dialog/confirm-dialog.component.scss → components/confirm-dialog/confirm-dialog.scss} +0 -0
  343. /package/{projects/ngx-core/src/components/empty/empty.component.scss → components/empty/empty.scss} +0 -0
  344. /package/{projects/ngx-core/src/components/expansion-panel/expansion-panel.component.scss → components/expansion-panel/expansion-panel.scss} +0 -0
  345. /package/{projects/ngx-core/src/components/fieldset/fieldset.component.scss → components/fieldset/fieldset.scss} +0 -0
  346. /package/{projects/ngx-core/src/components/file-drag-and-drop/file-drag-and-drop.component.scss → components/file-drag-and-drop/file-drag-and-drop.scss} +0 -0
  347. /package/{projects/ngx-core/src/components/form-wrapper/form-wrapper.component.scss → components/form-wrapper/form-wrapper.scss} +0 -0
  348. /package/{projects/ngx-core/src/components/helpful-tip/helpful-tip.component.scss → components/helpful-tip/helpful-tip.scss} +0 -0
  349. /package/{projects/ngx-core/src/components/icon/icon.component.scss → components/icon/icon.scss} +0 -0
  350. /package/{projects/ngx-core/src/components → components}/input/input.component.scss +0 -0
  351. /package/{projects/ngx-core/src/components → components}/input-currency/input-currency.component.scss +0 -0
  352. /package/{projects/ngx-core/src/components → components}/input-file/input-file.component.scss +0 -0
  353. /package/{projects/ngx-core/src/components → components}/input-group/input-group.component.scss +0 -0
  354. /package/{projects/ngx-core/src/components → components}/input-phone/input-phone.component.scss +0 -0
  355. /package/{projects/ngx-core/src/components → components}/lozenge/lozenge.component.scss +0 -0
  356. /package/{projects/ngx-core/src/components → components}/paginator/paginator.component.scss +0 -0
  357. /package/{projects/ngx-core/src/components → components}/pdf-viewer/pdf-viewer.component.scss +0 -0
  358. /package/{projects/ngx-core/src/components → components}/popover/popover.component.scss +0 -0
  359. /package/{projects/ngx-core/src/components → components}/radio-button/radio-button.component.scss +0 -0
  360. /package/{projects/ngx-core/src/components → components}/sidenav/sidenav.component.scss +0 -0
  361. /package/{projects/ngx-core/src/components → components}/skeleton/skeleton.component.scss +0 -0
  362. /package/{projects/ngx-core/src/components → components}/stepper/stepper.component.scss +0 -0
  363. /package/{projects/ngx-core/src/components → components}/table/table.component.scss +0 -0
  364. /package/{projects/ngx-core/src/components → components}/tabs/tabs.component.scss +0 -0
  365. /package/{projects/ngx-core/src/components → components}/tag/tag.component.scss +0 -0
  366. /package/{projects/ngx-core/src/components → components}/textarea/textarea.component.scss +0 -0
  367. /package/{projects/ngx-core/src/components → components}/time-clock/time-clock.component.scss +0 -0
  368. /package/{projects/ngx-core/src/components → components}/toast/toast.component.scss +0 -0
  369. /package/{projects/ngx-core/src/components → components}/toggle-switch/toggle-switch.component.scss +0 -0
  370. /package/{projects/ngx-core/src/components → components}/toolbar/toolbar.component.scss +0 -0
  371. /package/{projects/ngx-core/src/components → components}/top-nav/top-nav.component.scss +0 -0
  372. /package/{projects/ngx-core/src/components → components}/tree-table/tree-table.component.scss +0 -0
  373. /package/{projects/ngx-core/src/components → components}/user-profile/user-profile.component.scss +0 -0
  374. /package/{projects/ngx-core/src/theming → theming}/_breakpoints.scss +0 -0
package/README.md CHANGED
@@ -1,6 +1,16 @@
1
- # GIPI NGX-CORE
1
+ # GIPI - ngx-core
2
2
 
3
- NGX-CORE é um projeto modular que fornece componentes, interceptadores, guardas de rotas, estilos e utilitários para acelerar o desenvolvimento das aplicações da GIPI Sistemas. Projetada para ser flexível e escalável, ela facilita a criação de interfaces padronizadas e a implementação de funcionalidades essenciais para os projetos.
3
+ Este projeto foi gerado utilizando o [Angular CLI](https://github.com/angular/angular-cli) - _versão `19.2.0`_.
4
+
5
+ ## 📝 Sobre
6
+
7
+ A biblioteca `ngx-core` fornece utilitários, temas e componentes reutilizáveis para projetos Angular, facilitando o desenvolvimento de interfaces consistentes e responsivas.
8
+
9
+ ## 🧩 Pré-requisitos
10
+
11
+ - [Node](https://nodejs.org/en/download) - _vesão `^18.19.1 || ^20.11.1 || ^22.0.0`._
12
+ - [Angular](https://angular.dev/) - _versão `20.x.x`._
13
+ - [Angular Material](https://material.angular.io/) - _versão `20.x.x`_.
4
14
 
5
15
  ## ⚠️ Estrutura de Commits (Conventional Commits)
6
16
 
@@ -27,95 +37,130 @@ Sempre coloque dois pontos e um espaço depois do tipo.
27
37
  Somente commits fix, feat ou com BREAKING CHANGE geram versão.
28
38
  Outros tipos (chore, docs, refactor, etc.) não geram release automaticamente.
29
39
 
30
- ## 🚀 Servidor de desenvolvimento
40
+ ## 🛠️ Desenvolvimento
31
41
 
32
- Para iniciar um servidor de desenvolvimento local, execute:
42
+ Para compilar a biblioteca em modo de desenvolvimento, execute:
33
43
 
34
44
  ```bash
35
- ng run watch
45
+ npm run watch
36
46
  ```
37
47
 
38
- Após iniciar o servidor, o diretório `/dist` será gerado automaticamente. Se ele já existir, será excluído e recriado, garantindo uma versão sempre atualizada da saída do projeto. Além disso, qualquer modificação nos arquivos do projeto acionará uma nova `build` automaticamente, aplicando as mudanças sem necessidade de reconstrução manual.
39
-
40
- ## 🏗 Estrutura de código
41
-
42
- **Ainda falta detalhar**
43
-
44
- ## 🏨 Building
45
-
46
- Para gerar a `build` do projeto, execute:
48
+ Isso executará o comando:
47
49
 
48
50
  ```bash
49
- ng build
51
+ ng build --watch --configuration development
50
52
  ```
51
53
 
52
- Isso compilará seu projeto e armazenará os artefatos de build no diretório `dist/`. Por padrão, o build de produção otimiza seu aplicativo para desempenho e velocidade.
54
+ Uma vez compilada. A biblioteca será recarregada automaticamente sempre que houver modificações nos arquivos.
53
55
 
54
- ## 📦 Instalação
56
+ ## 🖥️ Utilização no aplicativo
55
57
 
56
58
  Para utilizar esta biblioteca, siga os passos abaixo:
57
59
 
58
- ### 1️⃣ Instale os pacotes necessários
60
+ ### 1️⃣ Instalar a biblioteca no aplicativo
59
61
 
60
- Execute o seguinte comando para instalar as dependências obrigatórias:
62
+ Instale a biblioteca no seu aplicativo Angular executando:
61
63
 
62
64
  ```bash
63
- npm install extensao moment-timezone
65
+ npm install caminho-da-lib\\dist\\ngx-core
64
66
  ```
65
67
 
66
- ### 2️⃣ Adicione o Angular Material
68
+ Substitua `caminho-da-lib` pelo caminho correto onde a biblioteca foi compilada.
67
69
 
68
- Se ainda não tiver o Angular Material instalado, execute:
70
+ ### 2️⃣ Configurar `preserveSymlinks`
69
71
 
70
- ```bash
71
- ng add @angular/material
72
- ```
73
-
74
- Siga as instruções do assistente de instalação para configurar o Material corretamente.
75
-
76
- ## ⚙️ Configuração
77
-
78
- Para evitar erros durante a execução, é necessário realizar algumas configurações no projeto Angular.
72
+ É necessário definir `preserveSymlinks: true` no arquivo `angular.json` para evitar o seguinte erro:
79
73
 
80
- ### 1️⃣ Configurar preserveSymlinks
74
+ ```plaintext
75
+ core.mjs:7195 ERROR RuntimeError: NG0203: inject() must be called from an injection context...
76
+ ```
81
77
 
82
- É necessário definir `preserveSymlinks: true` no arquivo `angular.json` para evitar o seguinte erro:
83
- `core.mjs:7195 ERROR RuntimeError: NG0203: inject() must be called from an injection context...`
78
+ 🔹 No `angular.json`, dentro de `projects -> nome-do-projeto -> architect -> build -> options`, adicione:
84
79
 
85
- 🔹 No `angular.json`, dentro de `projects -> gipi-web -> architect -> build -> options`, adicione: `"preserveSymlinks": true`
80
+ ```json
81
+ "preserveSymlinks": true
82
+ ```
86
83
 
87
- ### 2️⃣ Adicionar os Providers Necessários
84
+ ### 3️⃣ Adicionar os providers necessários
88
85
 
86
+ Esses providers são essenciais para o funcionamento da biblioteca.
89
87
  No `main.ts` ou no arquivo de configuração `app.config.ts`, adicione os seguintes providers:
90
88
 
91
89
  ```typescript
92
- import { provideHttpClient, withInterceptors } from "@angular/common/http";
93
- import { importProvidersFrom, inject, provideAppInitializer } from "@angular/core";
94
- import { FormsModule } from "@angular/forms";
90
+ import { bootstrapApplication } from "@angular/platform-browser";
91
+ import { AppComponent } from "./app/app.component";
92
+ import { importProvidersFrom } from "@angular/core";
95
93
  import { MatSnackBarModule } from "@angular/material/snack-bar";
96
- import { AuthService } from "@domain/auth/services/auth.service";
97
- import { authInterceptor, DEFAULT_MESSAGES, errorInterceptor, provideALlowedPublicRoutes, provideAppMessages, provideBaseAuthService } from "@gipisistemas/ngx-core";
98
- import { appRoutes } from "./app.routes";
94
+ import { provideHttpClient, withInterceptorsFromDi } from "@angular/common/http";
95
+ import { provideAppMessages, DEFAULT_MESSAGES } from "@gipisistemas/ngx-core";
99
96
 
100
97
  bootstrapApplication(AppComponent, {
101
98
  providers: [
102
- ...importProvidersFrom([MatSnackBarModule, FormsModule]),
103
- provideBaseAuthService(AuthService),
104
- // Rotas públicas que não podem redirecionar para a rota / mesmo que autenticado
105
- provideALlowedPublicRoutes(["/oauth/change-password", "/oauth/confirm-access"]),
106
- provideAppInitializer(() => {
107
- const authService = inject(AuthService);
108
- return authService.load();
109
- }),
110
- provideHttpClient(withInterceptors([authInterceptor, errorInterceptor])),
99
+ // ...outros providers
100
+ importProvidersFrom(MatSnackBarModule),
101
+ provideHttpClient(withInterceptorsFromDi()),
111
102
  provideAppMessages(DEFAULT_MESSAGES),
112
- providePaginatorIntl(),
113
103
  ],
114
104
  }).catch((err) => console.error(err));
115
105
  ```
116
106
 
117
- Esses providers são essenciais para o funcionamento da biblioteca.
107
+ ### 4️⃣ Temas e estilos globais
108
+
109
+ Definição de temas:
110
+
111
+ 🔹 Se não informar o `$custom-theme` no mixin `all-component-themes` a biblioteca irá aderir as paletas de cores, fontes e densidades padrão.
112
+
113
+ ##### Palettes
114
+
115
+ - primary: `$palette-primary`
116
+ - secondary: `$palette-secondary`
117
+ - success: `$palette-success`
118
+ - information: `$palette-information`
119
+ - warning: `$palette-warning`
120
+ - danger: `$palette-danger`
121
+ - white: `$palette-white`
122
+ - black: `$palette-black`
123
+ - pastels: `$palette-pastels`
124
+
125
+ ##### Typography
126
+
127
+ - font-family: `'Roboto, sans-serif'`
128
+ - font-size: `1.4rem`
129
+ - font-base: `62.5%` - _100% equivale a 16px; Logo 62.5% de 16px = 10px; Assim 1rem equivale 10px;_
130
+
131
+ ##### Density
118
132
 
119
- ## 🔗 Recursos Adicionais
133
+ - scale: `0`
134
+
135
+ Utilizando tema customizado:
136
+
137
+ ```scss
138
+ @use "@gipisistemas/ngx-core" as ngx-core;
139
+
140
+ $custom-theme: ngx-core.define-theme(
141
+ (
142
+ palettes: (
143
+ primary: $palette-primary,
144
+ secondary: $palette-secondary,
145
+ // ... other palettes
146
+ ),
147
+ typography: (
148
+ font-family: "Roboto, sans-serif",
149
+ font-size: 1.4rem,
150
+ font-base: 62.5%,
151
+ ),
152
+ )
153
+ );
154
+
155
+ @include ngx-core.all-component-themes($custom-theme);
156
+ ```
157
+
158
+ Utilizando tema padrão:
159
+
160
+ ```scss
161
+ @use "@gipisistemas/ngx-core" as ngx-core;
162
+ @include ngx-core.all-component-themes();
163
+ ```
120
164
 
121
- Para obter mais informações sobre como usar o Angular CLI, incluindo referências detalhadas de comandos, visite a página [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli).
165
+ ## 🚀 Produção
166
+ Ainda será implementado
@@ -1,14 +1,19 @@
1
1
  @use '../../theming/utils' as utils;
2
+ @use '../../theming/breakpoints' as breakpoints;
2
3
 
3
4
  @mixin checkbox-theme($theme: ()) {
4
5
  $font-family: utils.get-font-family($theme);
5
6
  $font-size: utils.get-font-size($theme);
6
7
  $font-color: utils.get-font-color($theme);
8
+
7
9
  $white-100: utils.get-color($theme, white, 100);
10
+
8
11
  $primary-500: utils.get-color($theme, primary, 500);
12
+
13
+ $secondary-100: utils.get-color($theme, secondary, 100);
9
14
  $secondary-200: utils.get-color($theme, secondary, 200);
10
- $secondary-500: utils.get-color($theme, secondary, 500);
11
15
  $secondary-300: utils.get-color($theme, secondary, 300);
16
+ $secondary-500: utils.get-color($theme, secondary, 500);
12
17
 
13
18
  .g-checkbox {
14
19
  display: flex;
@@ -126,7 +131,7 @@
126
131
  }
127
132
  }
128
133
 
129
- > label {
134
+ .g-checkbox-label {
130
135
  display: flex;
131
136
  align-items: center;
132
137
  gap: 0.2rem;
@@ -145,4 +150,43 @@
145
150
  }
146
151
  }
147
152
  }
153
+
154
+ .g-checkbox-group {
155
+ display: flex;
156
+ flex-direction: column;
157
+ gap: 0.4rem;
158
+ width: fit-content;
159
+ user-select: none;
160
+ font-family: $font-family;
161
+
162
+ .g-checkbox-group-container {
163
+ display: flex;
164
+ flex-direction: column;
165
+ gap: 0.8rem;
166
+ }
167
+
168
+ &.g-checkbox-group-disabled .g-checkbox-group-container {
169
+ cursor: not-allowed;
170
+ }
171
+
172
+ .g-checkbox-group-select-all {
173
+ margin-bottom: 0.4rem;
174
+ }
175
+
176
+ .g-checkbox-group-options {
177
+ display: flex;
178
+ flex-direction: column;
179
+ gap: 0.8rem;
180
+ border-left: 2px solid $secondary-100;
181
+ margin-left: 1rem;
182
+ padding-left: 1.6rem;
183
+ }
184
+
185
+ @include breakpoints.mobile-view() {
186
+ .g-checkbox-group-horizontal .g-checkbox-group-options {
187
+ flex-direction: column;
188
+ gap: 0.8rem;
189
+ }
190
+ }
191
+ }
148
192
  }