@sapphire-ion/framework 0.30.26 → 0.30.28

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 (469) hide show
  1. package/build.ps1 +39 -0
  2. package/ng-package.json +10 -0
  3. package/package.json +37 -41
  4. package/src/lib/classes/comparison/comparison-operator.ts +17 -0
  5. package/src/lib/classes/comparison/comparison-value-type.ts +34 -0
  6. package/src/lib/classes/comparison/comparison.ts +45 -0
  7. package/src/lib/classes/comparison/properties/bool-property.ts +16 -0
  8. package/src/lib/classes/comparison/properties/date-property.ts +28 -0
  9. package/src/lib/classes/comparison/properties/datetime-property.ts +28 -0
  10. package/src/lib/classes/comparison/properties/decimal-property.ts +28 -0
  11. package/src/lib/classes/comparison/properties/enum-property.ts +28 -0
  12. package/src/lib/classes/comparison/properties/implicit-property.ts +13 -0
  13. package/src/lib/classes/comparison/properties/int-property.ts +28 -0
  14. package/src/lib/classes/comparison/properties/long-property.ts +28 -0
  15. package/src/lib/classes/comparison/properties/string-property.ts +16 -0
  16. package/src/lib/classes/comparison/properties/time-property.ts +28 -0
  17. package/{lib/classes/credentials.d.ts → src/lib/classes/credentials.ts} +5 -5
  18. package/src/lib/classes/environment.ts +35 -0
  19. package/src/lib/classes/filters/view-filtros.ts +18 -0
  20. package/src/lib/classes/infinite-scroll.ts +112 -0
  21. package/src/lib/classes/inputs/table-field-form-builder.ts +12 -0
  22. package/src/lib/classes/inputs/table-field.ts +58 -0
  23. package/src/lib/classes/page-option.ts +8 -0
  24. package/src/lib/classes/routes/default-routing-factory.ts +24 -0
  25. package/src/lib/classes/routes/id-preloader-configuration.ts +21 -0
  26. package/src/lib/classes/routes/route-data.ts +9 -0
  27. package/{themes → src/lib}/compiled-styles.scss +2338 -2338
  28. package/src/lib/components/_inputs_new/classes/input-control-base.ts +85 -0
  29. package/src/lib/components/_inputs_new/classes/input-provider-factory.ts +16 -0
  30. package/src/lib/components/_inputs_new/input-string/input-string.component.html +4 -0
  31. package/src/lib/components/_inputs_new/input-string/input-string.component.ts +15 -0
  32. package/src/lib/components/_inputs_new/inputs.module.ts +16 -0
  33. package/src/lib/components/carousel/carousel-image/carousel-image.component.html +4 -0
  34. package/src/lib/components/carousel/carousel-image/carousel-image.component.ts +15 -0
  35. package/src/lib/components/carousel/carousel-item/carousel-item.component.html +3 -0
  36. package/src/lib/components/carousel/carousel-item/carousel-item.component.ts +14 -0
  37. package/src/lib/components/carousel/carousel.component.html +22 -0
  38. package/src/lib/components/carousel/carousel.component.ts +83 -0
  39. package/src/lib/components/carousel/carousel.module.ts +20 -0
  40. package/src/lib/components/carousel/i-carousel-item.component.ts +8 -0
  41. package/src/lib/components/content-block/content-block.component.html +6 -0
  42. package/src/lib/components/content-block/content-block.component.ts +25 -0
  43. package/src/lib/components/default/default-list/abstract-list.ts +56 -0
  44. package/src/lib/components/default/default-list/default-list.component.html +60 -0
  45. package/src/lib/components/default/default-list/default-list.component.ts +71 -0
  46. package/src/lib/components/default/default-list/header-list/header-list.component.html +32 -0
  47. package/src/lib/components/default/default-list/header-list/header-list.component.ts +85 -0
  48. package/src/lib/components/default/default-list/list.ts +121 -0
  49. package/src/lib/components/default/default-pagination/default-pagination.component.html +52 -0
  50. package/src/lib/components/default/default-pagination/default-pagination.component.ts +118 -0
  51. package/src/lib/components/default/default-table/default-table.component.html +105 -0
  52. package/src/lib/components/default/default-table/default-table.component.ts +197 -0
  53. package/src/lib/components/default/default-table/th-filter/th-filter.component.html +61 -0
  54. package/src/lib/components/default/default-table/th-filter/th-filter.component.ts +178 -0
  55. package/src/lib/components/default/default-view/abstract-view.ts +25 -0
  56. package/src/lib/components/default/default-view/default-view.component.html +81 -0
  57. package/src/lib/components/default/default-view/default-view.component.ts +34 -0
  58. package/src/lib/components/default/default-view/header-view/header-view.component.html +64 -0
  59. package/src/lib/components/default/default-view/header-view/header-view.component.ts +54 -0
  60. package/src/lib/components/default/default-view/view.ts +171 -0
  61. package/src/lib/components/default/default.module.ts +55 -0
  62. package/src/lib/components/default-page/default.page.html +53 -0
  63. package/src/lib/components/default-page/default.page.ts +77 -0
  64. package/src/lib/components/drag-drop-file/drag-drop-file.directive.ts +44 -0
  65. package/src/lib/components/drag-drop-file/drag-drop-file.module.ts +21 -0
  66. package/src/lib/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.html +5 -0
  67. package/src/lib/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.ts +17 -0
  68. package/src/lib/components/drawer/default-drawer-end/default-drawer-end.component.html +12 -0
  69. package/src/lib/components/drawer/default-drawer-end/default-drawer-end.component.ts +35 -0
  70. package/src/lib/components/drawer/drawer-group/drawer-group.component.html +61 -0
  71. package/src/lib/components/drawer/drawer-group/drawer-group.component.ts +44 -0
  72. package/src/lib/components/drawer/drawer.component.html +56 -0
  73. package/src/lib/components/drawer/drawer.component.ts +119 -0
  74. package/src/lib/components/drawer/menu.ts +20 -0
  75. package/src/lib/components/filter/filter.component.html +31 -0
  76. package/src/lib/components/filter/filter.component.ts +133 -0
  77. package/src/lib/components/http-responses-pages/forbidden-403/forbidden-403.component.html +35 -0
  78. package/src/lib/components/http-responses-pages/forbidden-403/forbidden-403.component.ts +19 -0
  79. package/src/lib/components/image/image.component.html +17 -0
  80. package/src/lib/components/image/image.component.ts +95 -0
  81. package/src/lib/components/info-popover/info-popover.component.html +23 -0
  82. package/src/lib/components/info-popover/info-popover.component.ts +75 -0
  83. package/src/lib/components/inputs/custom-input.ts +67 -0
  84. package/src/lib/components/inputs/custom-signal-input.ts +70 -0
  85. package/src/lib/components/inputs/input-bool/input-bool.component.html +18 -0
  86. package/src/lib/components/inputs/input-bool/input-bool.component.ts +36 -0
  87. package/src/lib/components/inputs/input-bool/input-bool.configuration.ts +14 -0
  88. package/src/lib/components/inputs/input-color/input-color.component.html +132 -0
  89. package/src/lib/components/inputs/input-color/input-color.component.ts +561 -0
  90. package/{lib/components/inputs/input-configuration.d.ts → src/lib/components/inputs/input-configuration.ts} +18 -8
  91. package/src/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.html +26 -0
  92. package/src/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.ts +78 -0
  93. package/src/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.configuration.ts +4 -0
  94. package/src/lib/components/inputs/input-date/input-date.component.html +40 -0
  95. package/src/lib/components/inputs/input-date/input-date.component.ts +98 -0
  96. package/src/lib/components/inputs/input-date/input-date.configuration.ts +6 -0
  97. package/src/lib/components/inputs/input-decimal/input-decimal.component.html +24 -0
  98. package/src/lib/components/inputs/input-decimal/input-decimal.component.ts +296 -0
  99. package/src/lib/components/inputs/input-decimal/input-decimal.configuration.ts +42 -0
  100. package/src/lib/components/inputs/input-default-configurations.ts +15 -0
  101. package/src/lib/components/inputs/input-file/download-button/download-button.component.html +56 -0
  102. package/src/lib/components/inputs/input-file/download-button/download-button.component.ts +85 -0
  103. package/src/lib/components/inputs/input-file/input-file.component.html +101 -0
  104. package/src/lib/components/inputs/input-file/input-file.component.ts +120 -0
  105. package/src/lib/components/inputs/input-file/input-file.configuration.ts +8 -0
  106. package/src/lib/components/inputs/input-loading/input-loading.component.html +3 -0
  107. package/src/lib/components/inputs/input-loading/input-loading.component.ts +13 -0
  108. package/src/lib/components/inputs/input-provider-factory.ts +15 -0
  109. package/src/lib/components/inputs/input-select/ISelect.ts +26 -0
  110. package/src/lib/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.html +16 -0
  111. package/src/lib/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.ts +38 -0
  112. package/src/lib/components/inputs/input-select/input-select-option/input-select-option.component.html +15 -0
  113. package/src/lib/components/inputs/input-select/input-select-option/input-select-option.component.ts +47 -0
  114. package/src/lib/components/inputs/input-select/input-select-template.directive.ts +8 -0
  115. package/src/lib/components/inputs/input-select/input-select.component.html +66 -0
  116. package/src/lib/components/inputs/input-select/input-select.component.ts +323 -0
  117. package/src/lib/components/inputs/input-select/input.select.configuration.ts +188 -0
  118. package/src/lib/components/inputs/input-string/input-string.component.html +22 -0
  119. package/src/lib/components/inputs/input-string/input-string.component.ts +36 -0
  120. package/src/lib/components/inputs/input-string/input-string.configuration.ts +18 -0
  121. package/src/lib/components/inputs/input-textarea/input-textarea.component.html +25 -0
  122. package/src/lib/components/inputs/input-textarea/input-textarea.component.ts +35 -0
  123. package/src/lib/components/inputs/input-type.ts +16 -0
  124. package/src/lib/components/inputs/input-validators.ts +76 -0
  125. package/src/lib/components/inputs/inputs.module.ts +64 -0
  126. package/src/lib/components/loading/loading.component.html +28 -0
  127. package/src/lib/components/loading/loading.component.ts +29 -0
  128. package/src/lib/components/login/login-admin/login-admin.component.html +28 -0
  129. package/src/lib/components/login/login-admin/login-admin.component.ts +51 -0
  130. package/src/lib/components/login/login.component.html +104 -0
  131. package/src/lib/components/login/login.component.ts +97 -0
  132. package/src/lib/components/main-content/main-content.component.html +61 -0
  133. package/src/lib/components/main-content/main-content.component.ts +55 -0
  134. package/src/lib/components/stepper/step/step.component.html +11 -0
  135. package/src/lib/components/stepper/step/step.component.ts +44 -0
  136. package/src/lib/components/stepper/stepper.component.html +3 -0
  137. package/src/lib/components/stepper/stepper.component.ts +36 -0
  138. package/src/lib/components/stepper/stepper.module.ts +15 -0
  139. package/src/lib/components/tabs/tab/tab.component.html +8 -0
  140. package/src/lib/components/tabs/tab/tab.component.scss +0 -0
  141. package/src/lib/components/tabs/tab/tab.component.ts +28 -0
  142. package/src/lib/components/tabs/tabs/tabs.component.html +14 -0
  143. package/src/lib/components/tabs/tabs/tabs.component.ts +42 -0
  144. package/src/lib/components/tabs/tabs.module.ts +15 -0
  145. package/src/lib/components/text-tooltip/text-tooltip.component.html +8 -0
  146. package/src/lib/components/text-tooltip/text-tooltip.component.scss +0 -0
  147. package/src/lib/components/text-tooltip/text-tooltip.component.ts +45 -0
  148. package/src/lib/components/tooltip/tooltip.component.html +53 -0
  149. package/src/lib/components/tooltip/tooltip.component.ts +16 -0
  150. package/src/lib/core.module.ts +26 -0
  151. package/src/lib/directives/ng-var.directive.ts +26 -0
  152. package/src/lib/guards/auth.guard.ts +19 -0
  153. package/src/lib/guards/error.interceptor.ts +107 -0
  154. package/src/lib/guards/token.interceptor.ts +28 -0
  155. package/src/lib/index.ts +175 -0
  156. package/src/lib/pipes/secure.pipe.ts +39 -0
  157. package/src/lib/services/auth.service.ts +150 -0
  158. package/src/lib/services/crypto.service.ts +164 -0
  159. package/src/lib/services/environment.service.ts +17 -0
  160. package/src/lib/services/generics.service.ts +85 -0
  161. package/src/lib/services/route/route.cache.service.ts +17 -0
  162. package/src/lib/services/route/route.provider.service.ts +49 -0
  163. package/src/lib/services/usuario.service.ts +44 -0
  164. package/src/lib/services/utils.service.ts +161 -0
  165. package/src/lib/services/web/api-url-provider.service.ts +48 -0
  166. package/src/lib/services/web/http.ativo.service.ts +52 -0
  167. package/src/lib/services/web/http.service.ts +184 -0
  168. package/src/lib/services/web/storage.service.ts +131 -0
  169. package/{themes → src/lib}/styles/core.styles.scss +4 -0
  170. package/src/public-api.ts +5 -0
  171. package/tailwind.config.js +27 -0
  172. package/tsconfig.lib.json +29 -0
  173. package/tsconfig.lib.prod.json +23 -0
  174. package/tsconfig.spec.json +27 -0
  175. package/esm2022/lib/classes/comparison/comparison-operator.mjs +0 -18
  176. package/esm2022/lib/classes/comparison/comparison-value-type.mjs +0 -25
  177. package/esm2022/lib/classes/comparison/comparison.mjs +0 -41
  178. package/esm2022/lib/classes/comparison/properties/bool-property.mjs +0 -15
  179. package/esm2022/lib/classes/comparison/properties/date-property.mjs +0 -27
  180. package/esm2022/lib/classes/comparison/properties/datetime-property.mjs +0 -27
  181. package/esm2022/lib/classes/comparison/properties/decimal-property.mjs +0 -27
  182. package/esm2022/lib/classes/comparison/properties/enum-property.mjs +0 -27
  183. package/esm2022/lib/classes/comparison/properties/implicit-property.mjs +0 -12
  184. package/esm2022/lib/classes/comparison/properties/int-property.mjs +0 -27
  185. package/esm2022/lib/classes/comparison/properties/long-property.mjs +0 -27
  186. package/esm2022/lib/classes/comparison/properties/string-property.mjs +0 -15
  187. package/esm2022/lib/classes/comparison/properties/time-property.mjs +0 -27
  188. package/esm2022/lib/classes/credentials.mjs +0 -2
  189. package/esm2022/lib/classes/environment.mjs +0 -32
  190. package/esm2022/lib/classes/filters/view-filtros.mjs +0 -18
  191. package/esm2022/lib/classes/infinite-scroll.mjs +0 -90
  192. package/esm2022/lib/classes/inputs/table-field-form-builder.mjs +0 -10
  193. package/esm2022/lib/classes/inputs/table-field.mjs +0 -69
  194. package/esm2022/lib/classes/page-option.mjs +0 -2
  195. package/esm2022/lib/classes/routes/default-routing-factory.mjs +0 -23
  196. package/esm2022/lib/classes/routes/id-preloader-configuration.mjs +0 -22
  197. package/esm2022/lib/classes/routes/route-data.mjs +0 -9
  198. package/esm2022/lib/components/carousel/carousel-image/carousel-image.component.mjs +0 -18
  199. package/esm2022/lib/components/carousel/carousel-item/carousel-item.component.mjs +0 -15
  200. package/esm2022/lib/components/carousel/carousel.component.mjs +0 -79
  201. package/esm2022/lib/components/carousel/carousel.module.mjs +0 -31
  202. package/esm2022/lib/components/carousel/i-carousel-item.component.mjs +0 -16
  203. package/esm2022/lib/components/content-block/content-block.component.mjs +0 -27
  204. package/esm2022/lib/components/default/default-list/abstract-list.mjs +0 -49
  205. package/esm2022/lib/components/default/default-list/default-list.component.mjs +0 -99
  206. package/esm2022/lib/components/default/default-list/header-list/header-list.component.mjs +0 -98
  207. package/esm2022/lib/components/default/default-list/list.mjs +0 -110
  208. package/esm2022/lib/components/default/default-pagination/default-pagination.component.mjs +0 -123
  209. package/esm2022/lib/components/default/default-table/default-table.component.mjs +0 -222
  210. package/esm2022/lib/components/default/default-table/th-filter/th-filter.component.mjs +0 -186
  211. package/esm2022/lib/components/default/default-view/abstract-view.mjs +0 -22
  212. package/esm2022/lib/components/default/default-view/default-view.component.mjs +0 -51
  213. package/esm2022/lib/components/default/default-view/header-view/header-view.component.mjs +0 -75
  214. package/esm2022/lib/components/default/default-view/view.mjs +0 -175
  215. package/esm2022/lib/components/default/default.module.mjs +0 -87
  216. package/esm2022/lib/components/default-page/default.page.mjs +0 -73
  217. package/esm2022/lib/components/drag-drop-file/drag-drop-file.directive.mjs +0 -60
  218. package/esm2022/lib/components/drag-drop-file/drag-drop-file.module.mjs +0 -31
  219. package/esm2022/lib/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.mjs +0 -15
  220. package/esm2022/lib/components/drawer/default-drawer-end/default-drawer-end.component.mjs +0 -34
  221. package/esm2022/lib/components/drawer/drawer-group/drawer-group.component.mjs +0 -49
  222. package/esm2022/lib/components/drawer/drawer.component.mjs +0 -117
  223. package/esm2022/lib/components/drawer/menu.mjs +0 -15
  224. package/esm2022/lib/components/filter/filter.component.mjs +0 -127
  225. package/esm2022/lib/components/http-responses-pages/forbidden-403/forbidden-403.component.mjs +0 -17
  226. package/esm2022/lib/components/image/image.component.mjs +0 -91
  227. package/esm2022/lib/components/info-popover/info-popover.component.mjs +0 -91
  228. package/esm2022/lib/components/inputs/custom-input.mjs +0 -77
  229. package/esm2022/lib/components/inputs/custom-signal-input.mjs +0 -74
  230. package/esm2022/lib/components/inputs/input-bool/input-bool.component.mjs +0 -43
  231. package/esm2022/lib/components/inputs/input-bool/input-bool.configuration.mjs +0 -16
  232. package/esm2022/lib/components/inputs/input-color/input-color.component.mjs +0 -487
  233. package/esm2022/lib/components/inputs/input-configuration.mjs +0 -2
  234. package/esm2022/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.mjs +0 -93
  235. package/esm2022/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.configuration.mjs +0 -6
  236. package/esm2022/lib/components/inputs/input-date/input-date.component.mjs +0 -122
  237. package/esm2022/lib/components/inputs/input-date/input-date.configuration.mjs +0 -8
  238. package/esm2022/lib/components/inputs/input-decimal/input-decimal.component.mjs +0 -269
  239. package/esm2022/lib/components/inputs/input-decimal/input-decimal.configuration.mjs +0 -45
  240. package/esm2022/lib/components/inputs/input-default-configurations.mjs +0 -14
  241. package/esm2022/lib/components/inputs/input-file/download-button/download-button.component.mjs +0 -91
  242. package/esm2022/lib/components/inputs/input-file/input-file.component.mjs +0 -131
  243. package/esm2022/lib/components/inputs/input-file/input-file.configuration.mjs +0 -11
  244. package/esm2022/lib/components/inputs/input-loading/input-loading.component.mjs +0 -16
  245. package/esm2022/lib/components/inputs/input-provider-factory.mjs +0 -15
  246. package/esm2022/lib/components/inputs/input-select/ISelect.mjs +0 -11
  247. package/esm2022/lib/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.mjs +0 -42
  248. package/esm2022/lib/components/inputs/input-select/input-select-option/input-select-option.component.mjs +0 -46
  249. package/esm2022/lib/components/inputs/input-select/input-select-template.directive.mjs +0 -16
  250. package/esm2022/lib/components/inputs/input-select/input-select.component.mjs +0 -322
  251. package/esm2022/lib/components/inputs/input-select/input.select.configuration.mjs +0 -164
  252. package/esm2022/lib/components/inputs/input-string/input-string.component.mjs +0 -50
  253. package/esm2022/lib/components/inputs/input-string/input-string.configuration.mjs +0 -18
  254. package/esm2022/lib/components/inputs/input-textarea/input-textarea.component.mjs +0 -47
  255. package/esm2022/lib/components/inputs/input-type.mjs +0 -18
  256. package/esm2022/lib/components/inputs/input-validators.mjs +0 -90
  257. package/esm2022/lib/components/inputs/inputs.module.mjs +0 -105
  258. package/esm2022/lib/components/loading/loading.component.mjs +0 -34
  259. package/esm2022/lib/components/login/login-admin/login-admin.component.mjs +0 -52
  260. package/esm2022/lib/components/login/login.component.mjs +0 -102
  261. package/esm2022/lib/components/main-content/main-content.component.mjs +0 -62
  262. package/esm2022/lib/components/stepper/step/step.component.mjs +0 -43
  263. package/esm2022/lib/components/stepper/stepper.component.mjs +0 -36
  264. package/esm2022/lib/components/stepper/stepper.module.mjs +0 -25
  265. package/esm2022/lib/components/tabs/tab/tab.component.mjs +0 -41
  266. package/esm2022/lib/components/tabs/tabs/tabs.component.mjs +0 -56
  267. package/esm2022/lib/components/tabs/tabs.module.mjs +0 -22
  268. package/esm2022/lib/components/text-tooltip/text-tooltip.component.mjs +0 -51
  269. package/esm2022/lib/components/tooltip/tooltip.component.mjs +0 -21
  270. package/esm2022/lib/core.module.mjs +0 -29
  271. package/esm2022/lib/directives/ng-var.directive.mjs +0 -29
  272. package/esm2022/lib/guards/auth.guard.mjs +0 -26
  273. package/esm2022/lib/guards/error.interceptor.mjs +0 -106
  274. package/esm2022/lib/guards/token.interceptor.mjs +0 -25
  275. package/esm2022/lib/index.mjs +0 -173
  276. package/esm2022/lib/pipes/secure.pipe.mjs +0 -42
  277. package/esm2022/lib/services/auth.service.mjs +0 -146
  278. package/esm2022/lib/services/environment.service.mjs +0 -26
  279. package/esm2022/lib/services/generics.service.mjs +0 -84
  280. package/esm2022/lib/services/route/route.cache.service.mjs +0 -15
  281. package/esm2022/lib/services/route/route.provider.service.mjs +0 -42
  282. package/esm2022/lib/services/usuario.service.mjs +0 -49
  283. package/esm2022/lib/services/utils.service.mjs +0 -149
  284. package/esm2022/lib/services/web/api-url-provider.service.mjs +0 -29
  285. package/esm2022/lib/services/web/http.ativo.service.mjs +0 -55
  286. package/esm2022/lib/services/web/http.service.mjs +0 -169
  287. package/esm2022/lib/services/web/storage.service.mjs +0 -128
  288. package/esm2022/public-api.mjs +0 -5
  289. package/esm2022/sapphire-ion-framework.mjs +0 -5
  290. package/fesm2022/sapphire-ion-framework.mjs +0 -6237
  291. package/fesm2022/sapphire-ion-framework.mjs.map +0 -1
  292. package/index.d.ts +0 -5
  293. package/lib/classes/comparison/comparison-operator.d.ts +0 -9
  294. package/lib/classes/comparison/comparison-value-type.d.ts +0 -23
  295. package/lib/classes/comparison/comparison.d.ts +0 -25
  296. package/lib/classes/comparison/properties/bool-property.d.ts +0 -7
  297. package/lib/classes/comparison/properties/date-property.d.ts +0 -11
  298. package/lib/classes/comparison/properties/datetime-property.d.ts +0 -11
  299. package/lib/classes/comparison/properties/decimal-property.d.ts +0 -11
  300. package/lib/classes/comparison/properties/enum-property.d.ts +0 -11
  301. package/lib/classes/comparison/properties/implicit-property.d.ts +0 -6
  302. package/lib/classes/comparison/properties/int-property.d.ts +0 -11
  303. package/lib/classes/comparison/properties/long-property.d.ts +0 -11
  304. package/lib/classes/comparison/properties/string-property.d.ts +0 -7
  305. package/lib/classes/comparison/properties/time-property.d.ts +0 -11
  306. package/lib/classes/environment.d.ts +0 -13
  307. package/lib/classes/filters/view-filtros.d.ts +0 -10
  308. package/lib/classes/infinite-scroll.d.ts +0 -26
  309. package/lib/classes/inputs/table-field-form-builder.d.ts +0 -5
  310. package/lib/classes/inputs/table-field.d.ts +0 -20
  311. package/lib/classes/page-option.d.ts +0 -7
  312. package/lib/classes/routes/default-routing-factory.d.ts +0 -8
  313. package/lib/classes/routes/id-preloader-configuration.d.ts +0 -28
  314. package/lib/classes/routes/route-data.d.ts +0 -5
  315. package/lib/components/carousel/carousel-image/carousel-image.component.d.ts +0 -10
  316. package/lib/components/carousel/carousel-item/carousel-item.component.d.ts +0 -9
  317. package/lib/components/carousel/carousel.component.d.ts +0 -32
  318. package/lib/components/carousel/carousel.module.d.ts +0 -12
  319. package/lib/components/carousel/i-carousel-item.component.d.ts +0 -9
  320. package/lib/components/content-block/content-block.component.d.ts +0 -15
  321. package/lib/components/default/default-list/abstract-list.d.ts +0 -21
  322. package/lib/components/default/default-list/default-list.component.d.ts +0 -44
  323. package/lib/components/default/default-list/header-list/header-list.component.d.ts +0 -45
  324. package/lib/components/default/default-list/list.d.ts +0 -38
  325. package/lib/components/default/default-pagination/default-pagination.component.d.ts +0 -36
  326. package/lib/components/default/default-table/default-table.component.d.ts +0 -72
  327. package/lib/components/default/default-table/th-filter/th-filter.component.d.ts +0 -20
  328. package/lib/components/default/default-view/abstract-view.d.ts +0 -18
  329. package/lib/components/default/default-view/default-view.component.d.ts +0 -26
  330. package/lib/components/default/default-view/header-view/header-view.component.d.ts +0 -26
  331. package/lib/components/default/default-view/view.d.ts +0 -56
  332. package/lib/components/default/default.module.d.ts +0 -28
  333. package/lib/components/default-page/default.page.d.ts +0 -35
  334. package/lib/components/drag-drop-file/drag-drop-file.directive.d.ts +0 -14
  335. package/lib/components/drag-drop-file/drag-drop-file.module.d.ts +0 -10
  336. package/lib/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.d.ts +0 -9
  337. package/lib/components/drawer/default-drawer-end/default-drawer-end.component.d.ts +0 -13
  338. package/lib/components/drawer/drawer-group/drawer-group.component.d.ts +0 -22
  339. package/lib/components/drawer/drawer.component.d.ts +0 -23
  340. package/lib/components/drawer/menu.d.ts +0 -9
  341. package/lib/components/filter/filter.component.d.ts +0 -29
  342. package/lib/components/http-responses-pages/forbidden-403/forbidden-403.component.d.ts +0 -8
  343. package/lib/components/image/image.component.d.ts +0 -23
  344. package/lib/components/info-popover/info-popover.component.d.ts +0 -15
  345. package/lib/components/inputs/custom-input.d.ts +0 -36
  346. package/lib/components/inputs/custom-signal-input.d.ts +0 -38
  347. package/lib/components/inputs/input-bool/input-bool.component.d.ts +0 -19
  348. package/lib/components/inputs/input-bool/input-bool.configuration.d.ts +0 -17
  349. package/lib/components/inputs/input-color/input-color.component.d.ts +0 -80
  350. package/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.d.ts +0 -24
  351. package/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.configuration.d.ts +0 -5
  352. package/lib/components/inputs/input-date/input-date.component.d.ts +0 -30
  353. package/lib/components/inputs/input-date/input-date.configuration.d.ts +0 -7
  354. package/lib/components/inputs/input-decimal/input-decimal.component.d.ts +0 -41
  355. package/lib/components/inputs/input-decimal/input-decimal.configuration.d.ts +0 -25
  356. package/lib/components/inputs/input-default-configurations.d.ts +0 -13
  357. package/lib/components/inputs/input-file/download-button/download-button.component.d.ts +0 -36
  358. package/lib/components/inputs/input-file/input-file.component.d.ts +0 -39
  359. package/lib/components/inputs/input-file/input-file.configuration.d.ts +0 -11
  360. package/lib/components/inputs/input-loading/input-loading.component.d.ts +0 -7
  361. package/lib/components/inputs/input-provider-factory.d.ts +0 -4
  362. package/lib/components/inputs/input-select/ISelect.d.ts +0 -21
  363. package/lib/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.d.ts +0 -18
  364. package/lib/components/inputs/input-select/input-select-option/input-select-option.component.d.ts +0 -24
  365. package/lib/components/inputs/input-select/input-select-template.directive.d.ts +0 -8
  366. package/lib/components/inputs/input-select/input-select.component.d.ts +0 -66
  367. package/lib/components/inputs/input-select/input.select.configuration.d.ts +0 -87
  368. package/lib/components/inputs/input-string/input-string.component.d.ts +0 -19
  369. package/lib/components/inputs/input-string/input-string.configuration.d.ts +0 -14
  370. package/lib/components/inputs/input-textarea/input-textarea.component.d.ts +0 -18
  371. package/lib/components/inputs/input-type.d.ts +0 -16
  372. package/lib/components/inputs/input-validators.d.ts +0 -19
  373. package/lib/components/inputs/inputs.module.d.ts +0 -29
  374. package/lib/components/loading/loading.component.d.ts +0 -18
  375. package/lib/components/login/login-admin/login-admin.component.d.ts +0 -20
  376. package/lib/components/login/login.component.d.ts +0 -29
  377. package/lib/components/main-content/main-content.component.d.ts +0 -17
  378. package/lib/components/stepper/step/step.component.d.ts +0 -15
  379. package/lib/components/stepper/stepper.component.d.ts +0 -17
  380. package/lib/components/stepper/stepper.module.d.ts +0 -10
  381. package/lib/components/tabs/tab/tab.component.d.ts +0 -19
  382. package/lib/components/tabs/tabs/tabs.component.d.ts +0 -18
  383. package/lib/components/tabs/tabs.module.d.ts +0 -12
  384. package/lib/components/text-tooltip/text-tooltip.component.d.ts +0 -16
  385. package/lib/components/tooltip/tooltip.component.d.ts +0 -7
  386. package/lib/core.module.d.ts +0 -11
  387. package/lib/directives/ng-var.directive.d.ts +0 -12
  388. package/lib/guards/auth.guard.d.ts +0 -11
  389. package/lib/guards/error.interceptor.d.ts +0 -32
  390. package/lib/guards/token.interceptor.d.ts +0 -11
  391. package/lib/index.d.ts +0 -109
  392. package/lib/pipes/secure.pipe.d.ts +0 -15
  393. package/lib/services/auth.service.d.ts +0 -47
  394. package/lib/services/environment.service.d.ts +0 -10
  395. package/lib/services/generics.service.d.ts +0 -22
  396. package/lib/services/route/route.cache.service.d.ts +0 -7
  397. package/lib/services/route/route.provider.service.d.ts +0 -13
  398. package/lib/services/usuario.service.d.ts +0 -21
  399. package/lib/services/utils.service.d.ts +0 -36
  400. package/lib/services/web/api-url-provider.service.d.ts +0 -13
  401. package/lib/services/web/http.ativo.service.d.ts +0 -31
  402. package/lib/services/web/http.service.d.ts +0 -50
  403. package/lib/services/web/storage.service.d.ts +0 -25
  404. package/public-api.d.ts +0 -1
  405. /package/{themes → src/lib}/components/_inputs_new/input-string/input-string.component.scss +0 -0
  406. /package/{themes → src/lib}/components/_inputs_new/inputs.scss +0 -0
  407. /package/{themes → src/lib}/components/carousel/carousel-image/carousel-image.component.scss +0 -0
  408. /package/{themes → src/lib}/components/carousel/carousel-item/carousel-item.component.scss +0 -0
  409. /package/{themes → src/lib}/components/carousel/carousel.component.scss +0 -0
  410. /package/{themes → src/lib}/components/content-block/content-block.component.scss +0 -0
  411. /package/{themes → src/lib}/components/default/default-list/default-list.component.scss +0 -0
  412. /package/{themes → src/lib}/components/default/default-list/header-list/header-list.component.scss +0 -0
  413. /package/{themes → src/lib}/components/default/default-pagination/default-pagination.component.scss +0 -0
  414. /package/{themes → src/lib}/components/default/default-table/default-table.component.scss +0 -0
  415. /package/{themes → src/lib}/components/default/default-table/th-filter/th-filter.component.scss +0 -0
  416. /package/{themes → src/lib}/components/default/default-view/default-view.component.scss +0 -0
  417. /package/{themes → src/lib}/components/default/default-view/header-view/header-view.component.scss +0 -0
  418. /package/{themes → src/lib}/components/default-page/default.page.scss +0 -0
  419. /package/{themes → src/lib}/components/drag-drop-file/drag-drop-overlay/drag-drop-overlay.component.scss +0 -0
  420. /package/{themes → src/lib}/components/drawer/default-drawer-end/default-drawer-end.component.scss +0 -0
  421. /package/{themes → src/lib}/components/drawer/drawer-group/drawer-group.component.scss +0 -0
  422. /package/{themes → src/lib}/components/drawer/drawer.component.scss +0 -0
  423. /package/{themes → src/lib}/components/filter/filter.component.scss +0 -0
  424. /package/{themes → src/lib}/components/http-responses-pages/forbidden-403/forbidden-403.component.scss +0 -0
  425. /package/{themes → src/lib}/components/image/image.component.scss +0 -0
  426. /package/{themes → src/lib}/components/info-popover/info-popover.component.scss +0 -0
  427. /package/{themes → src/lib}/components/inputs/input-bool/input-bool.component.scss +0 -0
  428. /package/{themes → src/lib}/components/inputs/input-color/input-color.component.scss +0 -0
  429. /package/{themes/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.scss → src/lib/components/inputs/input-color/input-color.configuration.ts} +0 -0
  430. /package/{themes/components/inputs/input-loading/input-loading.component.scss → src/lib/components/inputs/input-cpf-cnpj/input-cpf-cnpj.component.scss} +0 -0
  431. /package/{themes → src/lib}/components/inputs/input-date/input-date.component.scss +0 -0
  432. /package/{themes → src/lib}/components/inputs/input-decimal/input-decimal.component.scss +0 -0
  433. /package/{themes → src/lib}/components/inputs/input-file/download-button/download-button.component.scss +0 -0
  434. /package/{themes → src/lib}/components/inputs/input-file/input-file.component.scss +0 -0
  435. /package/{themes/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.scss → src/lib/components/inputs/input-loading/input-bool.configuration.ts} +0 -0
  436. /package/{themes/components/inputs/input-select/input-select-option/input-select-option.component.scss → src/lib/components/inputs/input-loading/input-loading.component.scss} +0 -0
  437. /package/{themes/components/inputs/input-string/input-string.component.scss → src/lib/components/inputs/input-select/input-select-internal-option/input-select-internal-option.component.scss} +0 -0
  438. /package/{themes/components/inputs/input-textarea/input-textarea.component.scss → src/lib/components/inputs/input-select/input-select-option/input-select-option.component.scss} +0 -0
  439. /package/{themes → src/lib}/components/inputs/input-select/input-select.component.scss +0 -0
  440. /package/{themes/components/loading/loading.component.scss → src/lib/components/inputs/input-string/input-string.component.scss} +0 -0
  441. /package/{themes/components/stepper/stepper.component.scss → src/lib/components/inputs/input-textarea/input-textarea.component.scss} +0 -0
  442. /package/{themes → src/lib}/components/inputs/inputs.scss +0 -0
  443. /package/{themes/components/tabs/tab/tab.component.scss → src/lib/components/loading/loading.component.scss} +0 -0
  444. /package/{themes → src/lib}/components/login/login-admin/login-admin.component.scss +0 -0
  445. /package/{themes → src/lib}/components/login/login.component.scss +0 -0
  446. /package/{themes → src/lib}/components/main-content/main-content.component.scss +0 -0
  447. /package/{themes → src/lib}/components/stepper/step/step.component.scss +0 -0
  448. /package/{themes/components/text-tooltip/text-tooltip.component.scss → src/lib/components/stepper/stepper.component.scss} +0 -0
  449. /package/{themes → src/lib}/components/tabs/tabs/tabs.component.scss +0 -0
  450. /package/{themes → src/lib}/components/tooltip/tooltip.component.scss +0 -0
  451. /package/{themes → src/lib}/styles/components.scss +0 -0
  452. /package/{themes → src/lib}/styles/ionic/ion-action-sheet.scss +0 -0
  453. /package/{themes → src/lib}/styles/ionic/ion-alert.scss +0 -0
  454. /package/{themes → src/lib}/styles/ionic/ion-button.scss +0 -0
  455. /package/{themes → src/lib}/styles/ionic/ion-card.scss +0 -0
  456. /package/{themes → src/lib}/styles/ionic/ion-content.scss +0 -0
  457. /package/{themes → src/lib}/styles/ionic/ion-datetime.scss +0 -0
  458. /package/{themes → src/lib}/styles/ionic/ion-item.scss +0 -0
  459. /package/{themes → src/lib}/styles/ionic/ion-list.scss +0 -0
  460. /package/{themes → src/lib}/styles/ionic/ion-modal.scss +0 -0
  461. /package/{themes → src/lib}/styles/ionic/ion-popover.scss +0 -0
  462. /package/{themes → src/lib}/styles/ionic/ion-progress-bar.scss +0 -0
  463. /package/{themes → src/lib}/styles/ionic/ion-searchbar.scss +0 -0
  464. /package/{themes → src/lib}/styles/ionic/ion-toast.scss +0 -0
  465. /package/{themes → src/lib}/styles/ionic.scss +0 -0
  466. /package/{themes → src/lib}/styles/login-default.scss +0 -0
  467. /package/{themes → src/lib}/styles/mixins.scss +0 -0
  468. /package/{themes → src/lib}/styles/styles.scss +0 -0
  469. /package/{themes → src/lib}/styles/translucid.scss +0 -0
@@ -0,0 +1,76 @@
1
+ import { AbstractControl } from "@angular/forms";
2
+
3
+ export class ControlError {
4
+ constructor(public message: string){}
5
+ }
6
+
7
+ export class FormValidators{
8
+ static readonly CPFError : ControlError = new ControlError("CPF incompleto");
9
+ static readonly CnpjError : ControlError = new ControlError("CNPJ incompleto");
10
+ static readonly CPFCnpjError: ControlError = new ControlError("CPF / CNPJ incompleto");
11
+ static CPFValidator(control: AbstractControl): ControlError | null {
12
+ if(control.value != null){
13
+ if(control.value.length != 11){ return FormValidators.CPFError; }
14
+ return null;
15
+ }
16
+ return FormValidators.CPFError;
17
+ }
18
+ static CnpjValidator(control: AbstractControl): ControlError | null {
19
+ if(control.value != null){
20
+ if(control.value.length != 14){ return FormValidators.CnpjError; }
21
+ return null;
22
+ }
23
+ return FormValidators.CnpjError;
24
+ }
25
+ static CPFCpnjValidator(control: AbstractControl): ControlError | null {
26
+ if(control.value != null){
27
+ if(control.value.length < 11){
28
+ return FormValidators.CPFError;
29
+ }else
30
+ if(control.value.length > 11 && control.value.length != 14){
31
+ return FormValidators.CnpjError;
32
+ }
33
+ return null;
34
+ }
35
+ return null;
36
+ }
37
+
38
+ static readonly PositiveNonZeroNumberError: ControlError = new ControlError("%fieldName% deve ser maior que 0!");
39
+ static PositiveNonZeroNumberValidator(fieldName: string): (control: AbstractControl) => ControlError | null {
40
+ return ((control: AbstractControl): ControlError | null => {
41
+ const Error = FormValidators.PositiveNonZeroNumberError.message.replace("%fieldName%", fieldName);
42
+ if(control.value != null){
43
+ if(control.value <= 0){ return new ControlError(Error); }
44
+ return null;
45
+ }
46
+ return new ControlError(Error);;
47
+ })
48
+ }
49
+
50
+ static readonly PositiveNumberError: ControlError = new ControlError("%fieldName% deve ser maior ou igual que 0!");
51
+ static PositiveNumberValidator(fieldName: string): (control: AbstractControl) => ControlError | null {
52
+ return ((control: AbstractControl): ControlError | null => {
53
+ const Error = FormValidators.PositiveNumberError.message.replace("%fieldName%", fieldName);
54
+ if(control.value != null){
55
+ if(control.value < 0){ return new ControlError(Error); }
56
+ return null;
57
+ }
58
+ return new ControlError(Error);
59
+ })
60
+ }
61
+
62
+ static readonly ValueBetweenError = new ControlError("%fieldName% deve ser maior ou igual a %min% e menor ou igual a %max%");
63
+ static ValueBetweenValidator(min: number, max: number, fieldName: string, equalMin: boolean = true, equalMax: boolean = true): (control: AbstractControl) => ControlError | null {
64
+ return ((control: AbstractControl): ControlError | null => {
65
+ const Error = FormValidators.ValueBetweenError.message.replace("%fieldName%", fieldName).replace("%min%", min.toString()).replace("%max%", max.toString());
66
+ if(control.value != null){
67
+ if(control.value < min && equalMin){ return new ControlError(Error); }else
68
+ if(control.value > max && equalMax){ return new ControlError(Error); }else
69
+ if(control.value <= min && !equalMin){ return new ControlError(Error); }else
70
+ if(control.value >= max && !equalMax){ return new ControlError(Error); }
71
+ return null;
72
+ }
73
+ return new ControlError(Error);
74
+ });
75
+ }
76
+ }
@@ -0,0 +1,64 @@
1
+ import { ScrollingModule } from '@angular/cdk/scrolling';
2
+ import { NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import { IonicModule } from '@ionic/angular';
5
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
6
+ import { MaskitoDirective } from '@maskito/angular';
7
+
8
+ import { NgVarDirective } from '../../directives/ng-var.directive';
9
+
10
+ import { InputBoolComponent } from './input-bool/input-bool.component';
11
+ import { InputDateComponent } from './input-date/input-date.component';
12
+
13
+ import { InputDecimalComponent } from './input-decimal/input-decimal.component';
14
+
15
+ import { InputFileComponent } from './input-file/input-file.component';
16
+ import { DownloadButtonComponent } from './input-file/download-button/download-button.component';
17
+
18
+ import { LoadingComponent } from '../loading/loading.component';
19
+ import { InputSelectComponent } from './input-select/input-select.component';
20
+ import { InputStringComponent } from './input-string/input-string.component';
21
+ import { InputTextareaComponent } from './input-textarea/input-textarea.component';
22
+ import { InputLoadingComponent } from './input-loading/input-loading.component';
23
+ import { InputColorComponent } from './input-color/input-color.component';
24
+ import { InputCpfCnpjComponent } from './input-cpf-cnpj/input-cpf-cnpj.component';
25
+ import { InputSelectOptionComponent } from './input-select/input-select-option/input-select-option.component';
26
+ import { InputSelectTemplateDirective } from './input-select/input-select-template.directive';
27
+ import { InputSelectInternalOptionComponent } from './input-select/input-select-internal-option/input-select-internal-option.component';
28
+ import { TextTooltipComponent } from "../text-tooltip/text-tooltip.component";
29
+ import { ImageComponent } from '../image/image.component';
30
+ const declare_export = [
31
+ InputBoolComponent ,
32
+ InputDateComponent ,
33
+ InputDecimalComponent ,
34
+ InputFileComponent ,
35
+ DownloadButtonComponent,
36
+
37
+ InputSelectComponent ,
38
+ InputSelectOptionComponent ,
39
+ InputSelectTemplateDirective,
40
+
41
+ InputStringComponent ,
42
+ InputTextareaComponent,
43
+ InputLoadingComponent ,
44
+ InputColorComponent ,
45
+ InputCpfCnpjComponent
46
+ ]
47
+
48
+ @NgModule({
49
+ declarations: [ ...declare_export, InputSelectInternalOptionComponent ],
50
+ exports : [ ...declare_export ],
51
+ imports: [
52
+ CommonModule,
53
+ IonicModule,
54
+ ReactiveFormsModule,
55
+ FormsModule,
56
+ NgVarDirective,
57
+ LoadingComponent,
58
+ MaskitoDirective,
59
+ ScrollingModule,
60
+ TextTooltipComponent,
61
+ ImageComponent
62
+ ],
63
+ })
64
+ export class InputsModule { }
@@ -0,0 +1,28 @@
1
+ @switch (type) {
2
+ @case (1) {
3
+ <div class="w-full text-center h-16 flex items-center justify-center">
4
+ <div class="flex items-center justify-center">
5
+ <ion-spinner></ion-spinner>
6
+ </div>
7
+ @if(text){
8
+ <span>{{text}}</span>
9
+ }
10
+ </div>
11
+ }
12
+ @case (2) {
13
+ <div class="w-full text-center h-16 flex items-center justify-center">
14
+ <div class="flex items-center justify-center">
15
+ <ion-spinner></ion-spinner>
16
+ @if (text) {
17
+ <span class="ml-3">{{text}}</span>
18
+ }
19
+ </div>
20
+ </div>
21
+ }
22
+ @case (3) {
23
+ <div class="absolute top-0 left-0 size-full opacity-0 -z-50 default-transition -translate-y-12 flex items-center justify-center !translucid-background"
24
+ [ngClass]="{'!z-20 !opacity-100 !translate-y-0': loading}">
25
+ <loading [type]="2" [text]="text"></loading>
26
+ </div>
27
+ }
28
+ }
@@ -0,0 +1,29 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import { Component, Input, OnInit } from '@angular/core';
3
+ import { IonicModule } from '@ionic/angular';
4
+
5
+ @Component({
6
+ standalone: true,
7
+ imports: [ CommonModule, IonicModule ],
8
+ selector: 'loading',
9
+ templateUrl: './loading.component.html',
10
+ styleUrls: ['./loading.component.scss'],
11
+ })
12
+ export class LoadingComponent implements OnInit {
13
+
14
+ /** Texto exibido */
15
+ @Input() text : string = "Carregando, por favor aguarde...";
16
+ /** Tipo do loading
17
+ * 1 - Componente basico - h-16 de altura
18
+ * 2 - Componente basico - h-16 de altura
19
+ * 3 - Componente absoluto, preenche o elemento superior relativo
20
+ */
21
+ @Input() type : 1 | 2 | 3 = 1;
22
+ /** Utilizado no tipo 3, quando inativo é hidden */
23
+ @Input() loading : boolean = true;
24
+
25
+ constructor() { }
26
+
27
+ ngOnInit() {}
28
+
29
+ }
@@ -0,0 +1,28 @@
1
+ @if (this.authService.isAdmin || !this.apiUrlProviderService.production) {
2
+ <ion-button (click)="adminPopover.present($event)" fill="outline" class="aspect-square h-8 z-50" size="small">
3
+ <ion-icon name="shield" slot="icon-only"></ion-icon>
4
+ </ion-button>
5
+ <ion-popover id="admin-popover" #adminPopover>
6
+ <ng-template>
7
+ <ion-content class="p-2 bg-transparent">
8
+ <div class="p-2">
9
+ <input-select
10
+ [(ngModel)]="idUsuario"
11
+ label="Logar como..."
12
+ (change)="SelectUser($event)"
13
+ [configuration]="selectUserConfiguration"
14
+ ></input-select>
15
+
16
+ <div class="rounded-2xl mt-2 overflow-hidden border border-primary/30">
17
+ <div class="py-2 text-center border-b border-b-medium/30">
18
+ <span class="font-poppins"> API </span>
19
+ </div>
20
+ <ion-item lines="none" style="--border-width: 0 !important;">
21
+ <ion-input [(ngModel)]="apiUrl" (ngModelChange)="SetApiUrl()"></ion-input>
22
+ </ion-item>
23
+ </div>
24
+ </div>
25
+ </ion-content>
26
+ </ng-template>
27
+ </ion-popover>
28
+ }
@@ -0,0 +1,51 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import { Component, OnInit } from '@angular/core';
3
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
4
+ import { IonicModule } from '@ionic/angular';
5
+
6
+ import { ApiUrlProviderService } from '../../../services/web/api-url-provider.service';
7
+ import { UsuarioService } from '../../../services/usuario.service';
8
+ import { AuthService } from '../../../services/auth.service';
9
+
10
+ import { InputsModule } from '../../../components/inputs/inputs.module';
11
+ import { InputSelectConfiguration } from '../../../components/inputs/input-select/input.select.configuration';
12
+
13
+ @Component({
14
+ standalone: true,
15
+ imports: [
16
+ CommonModule,
17
+ IonicModule,
18
+ FormsModule,
19
+ ReactiveFormsModule,
20
+ InputsModule
21
+ ],
22
+ selector: 'login-admin',
23
+ templateUrl: './login-admin.component.html',
24
+ styleUrls: ['./login-admin.component.scss'],
25
+ })
26
+ export class LoginAdminComponent implements OnInit {
27
+
28
+ constructor(
29
+ public apiUrlProviderService: ApiUrlProviderService,
30
+ public authService: AuthService,
31
+ private usuarioService: UsuarioService,
32
+ ) { }
33
+
34
+ idUsuario: number | null;
35
+
36
+ async ngOnInit() {
37
+ try{
38
+ this.idUsuario = (await this.authService.LoadToken()).id;
39
+ }catch{}
40
+ }
41
+
42
+ public selectUserConfiguration: InputSelectConfiguration = new InputSelectConfiguration('id', ((v) => { return v.nome + ' - ' + v.apelido; }), false, true, this.usuarioService);
43
+ SelectUser(event: number){
44
+ if(event){ this.authService.BypassLogin(event).then(() => window.location.reload() ) }
45
+ }
46
+
47
+ apiUrl: string = this.apiUrlProviderService.apiUrl;
48
+ SetApiUrl(){
49
+ this.apiUrlProviderService.apiUrl = this.apiUrl;
50
+ }
51
+ }
@@ -0,0 +1,104 @@
1
+ <!-- <div class="size-full flex justify-center items-center relative">
2
+ <div class="landscape:w-4/5 portrait:w-full landscape:h-2/3 portrait:h-full landscape:max-w-[60rem] translucid-border landscape:rounded-3xl landscape:backdrop-blur-xl overflow-hidden">
3
+ <div class="size-full flex portrait:flex-col" style="background-color: color-mix(in srgb, var(--ion-color-light) 20%, transparent 80%);">
4
+ <div class="shrink-0 w-96 portrait:w-full portrait:h-32 h-full p-3">
5
+ <div class="rounded-2xl size-full overflow-x-hidden">
6
+ <ng-content class="size-full"></ng-content>
7
+ </div>
8
+ </div>
9
+ <div class="grow flex items-center justify-center h-full py-3 pr-3 portrait:pl-3">
10
+ <div class="w-96 h-full flex flex-col items-center justify-center gap-2" *ngIf="frm" [formGroup]="frm">
11
+
12
+ <ion-text class="text-5xl my-10 portrait:mt-[-5rem]"> Login </ion-text>
13
+
14
+ <ion-card class="w-full backdrop-blur-xl">
15
+ <ion-card-content>
16
+ <ion-item lines="none" label="Senha" labelPlacement="stacked" class="rounded-2xl my-3 w-full">
17
+ <ion-icon name="person" slot="start"></ion-icon>
18
+ <ion-input placeholder="Usuário / User" formControlName="apelido"></ion-input>
19
+ </ion-item>
20
+ </ion-card-content>
21
+ </ion-card>
22
+
23
+ <ion-card class="w-full backdrop-blur-xl">
24
+ <ion-card-content>
25
+ <ion-item lines="none" class="rounded-2xl my-3 w-full">
26
+ <ion-icon name="lock-closed" slot="start"></ion-icon>
27
+ <ion-input type="password" formControlName="senha" placeholder="Senha / Password">
28
+ <ion-input-password-toggle slot="end"></ion-input-password-toggle>
29
+ </ion-input>
30
+ </ion-item>
31
+ </ion-card-content>
32
+ </ion-card>
33
+
34
+ <div class="w-full">
35
+ <a href="">Esqueceu a senha?</a>
36
+ </div>
37
+
38
+ <div class="flex w-full">
39
+ <ion-button class="rounded-2xl shadow-xl default-transition w-full" expand="block" (click)="Login()" [disabled]="loading">
40
+ <ion-spinner class="default-transition" [ngClass]="{'-translate-x-12 opacity-0 size-0': !loading, 'mr-2' : loading}" slot="start"></ion-spinner>
41
+ <ion-icon class="default-transition" [ngClass]="{'-translate-x-12 opacity-0 size-0': loading}" name="enter-outline" slot="start" ></ion-icon>
42
+ <span class="default-transition" > Login </span>
43
+ </ion-button>
44
+
45
+ <ion-button class="shrink-0 aspect-square ml-3" color="dark" hidden>
46
+ <svg class="size-8" slot="icon-only" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" width="64" height="64"><defs><path id="A" d="M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z"/></defs><clipPath id="B"><use xlink:href="#A"/></clipPath><g transform="matrix(.727273 0 0 .727273 -.954545 -1.45455)"><path d="M0 37V11l17 13z" clip-path="url(#B)" fill="#fbbc05"/><path d="M0 11l17 13 7-6.1L48 14V0H0z" clip-path="url(#B)" fill="#ea4335"/><path d="M0 37l30-23 7.9 1L48 0v48H0z" clip-path="url(#B)" fill="#34a853"/><path d="M48 48L17 24l-4-3 35-10z" clip-path="url(#B)" fill="#4285f4"/></g></svg>
47
+ </ion-button>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ </div> -->
54
+
55
+ <div #loginContainer class="size-full flex justify-center items-center relative portrait:p-4">
56
+ <div class="landscape:w-4/5 landscape:h-2/3 landscape:xl:max-w-[60rem] portrait:size-full translucid-border backdrop-blur-xl rounded-3xl overflow-hidden">
57
+ <div class="size-full flex portrait:flex-col" style="background-color: color-mix(in srgb, var(--ion-color-light) 20%, transparent 80%);">
58
+ <div class="shrink-0 w-96 portrait:w-full portrait:h-40 landscape:h-full p-2">
59
+ <div class="size-full rounded-2xl overflow-hidden">
60
+ <ng-content select="[slot=logo]" class="size-full"></ng-content>
61
+ </div>
62
+ </div>
63
+ <div class="shrink size-full flex flex-col items-center justify-center gap-3 px-10 relative" *ngIf="frm" [formGroup]="frm">
64
+ <ion-text class="h-24 text-5xl"> Login </ion-text>
65
+
66
+ <ion-card class="w-full backdrop-blur-xl">
67
+ <ion-card-content>
68
+ <ion-item lines="none" label="Senha" labelPlacement="stacked" class="rounded-2xl my-3 w-full">
69
+ <ion-icon name="person" slot="start"></ion-icon>
70
+ <ion-input placeholder="Usuário / User" formControlName="apelido"></ion-input>
71
+ </ion-item>
72
+ </ion-card-content>
73
+ </ion-card>
74
+
75
+ <ion-card class="w-full backdrop-blur-xl">
76
+ <ion-card-content>
77
+ <ion-item lines="none" class="rounded-2xl my-3 w-full">
78
+ <ion-icon name="lock-closed" slot="start"></ion-icon>
79
+ <ion-input type="password" formControlName="senha" placeholder="Senha / Password">
80
+ <ion-input-password-toggle slot="end"></ion-input-password-toggle>
81
+ </ion-input>
82
+ </ion-item>
83
+ </ion-card-content>
84
+ </ion-card>
85
+
86
+ <div class="flex w-full">
87
+ <ion-button class="transition-all rounded-2xl shadow-xl default-transition w-full" expand="block" (click)="Login()" [disabled]="loading">
88
+ <ion-spinner class="default-transition" [ngClass]="{'-translate-x-12 opacity-0 size-0': !loading, 'mr-2' : loading}" slot="start"></ion-spinner>
89
+ <ion-icon class="default-transition" [ngClass]="{'-translate-x-12 opacity-0 size-0': loading}" name="enter-outline" slot="start" ></ion-icon>
90
+ <span class="default-transition"> Login </span>
91
+ </ion-button>
92
+
93
+ <!-- <ion-button class="shrink-0 aspect-square ml-3" color="dark" hidden>
94
+ <svg class="size-8" slot="icon-only" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" width="64" height="64"><defs><path id="A" d="M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z"/></defs><clipPath id="B"><use xlink:href="#A"/></clipPath><g transform="matrix(.727273 0 0 .727273 -.954545 -1.45455)"><path d="M0 37V11l17 13z" clip-path="url(#B)" fill="#fbbc05"/><path d="M0 11l17 13 7-6.1L48 14V0H0z" clip-path="url(#B)" fill="#ea4335"/><path d="M0 37l30-23 7.9 1L48 0v48H0z" clip-path="url(#B)" fill="#34a853"/><path d="M48 48L17 24l-4-3 35-10z" clip-path="url(#B)" fill="#4285f4"/></g></svg>
95
+ </ion-button> -->
96
+ </div>
97
+
98
+ <div class="w-full">
99
+ <ng-content select="[slot=end]"></ng-content>
100
+ </div>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ </div>
@@ -0,0 +1,97 @@
1
+ import { FormBuilder, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
2
+ import { Component, EventEmitter, HostListener, OnInit, Output, ViewChild } from '@angular/core';
3
+ import { IonicModule, NavController } from '@ionic/angular';
4
+ import { CommonModule } from '@angular/common';
5
+ import { Router } from '@angular/router';
6
+
7
+ import { EnvironmentService } from '../../services/environment.service';
8
+ import { ApiUrlProviderService } from '../../services/web/api-url-provider.service';
9
+ import { GenericService } from '../../services/generics.service';
10
+ import { AuthService } from '../../services/auth.service';
11
+
12
+ @Component({
13
+ standalone: true,
14
+ imports: [
15
+ CommonModule,
16
+ IonicModule,
17
+ FormsModule,
18
+ ReactiveFormsModule,
19
+ ],
20
+ selector: 'login',
21
+ templateUrl: './login.component.html',
22
+ styleUrls: ['./login.component.scss'],
23
+ })
24
+ export class DefaultLoginComponent implements OnInit {
25
+
26
+ constructor(
27
+ private fb: FormBuilder,
28
+ private genericService: GenericService,
29
+ private navController: NavController,
30
+ private authService: AuthService,
31
+ public apiUrlProviderService: ApiUrlProviderService,
32
+ public coreService: EnvironmentService,
33
+ private router: Router
34
+ ) {
35
+ this.genericService.SetTitle("Login");
36
+ }
37
+
38
+ async ngOnInit() {
39
+ this.CreateForm();
40
+
41
+ if(!this.coreService.environment.production){
42
+ this.frm.patchValue(this.coreService.environment.defaultCredentials);
43
+ }
44
+ const Token = await this.authService.LoadToken()
45
+ if(this.authService.isTokenValid(Token)){
46
+ this.router.navigate(["/"]);
47
+ }
48
+ }
49
+
50
+ frm: FormGroup;
51
+ CreateForm(): void{
52
+ this.frm = this.fb.group({
53
+ apelido : [null ,Validators.required],
54
+ senha : [null, Validators.required]
55
+ });
56
+ }
57
+
58
+ loading: boolean;
59
+ submitted: boolean = false;
60
+
61
+ @Output() OnLogin: EventEmitter<any> = new EventEmitter<any>();
62
+ @ViewChild('loginContainer') loginContainer: HTMLElement;
63
+
64
+ @HostListener('window:keydown', ['$event'])
65
+ async Login($event?: KeyboardEvent): Promise<void>{
66
+ if($event && $event.key != 'Enter'){ return; }
67
+ if($event && !this.loginContainer.contains(document.activeElement)){
68
+ return; // Prevent login if the active element is not within the login container
69
+ }
70
+ if(this.loading){ return; }
71
+
72
+ this.submitted = true;
73
+ this.loading = true;
74
+
75
+ if(!this.frm.valid){
76
+ this.loading = false;
77
+ this.genericService.PresentToast("Usuario / Senha não informado!"); return;
78
+ }
79
+
80
+ try{
81
+ const Token = await this.authService.Login(this.frm.value);
82
+
83
+ this.loading = false;
84
+ this.navController.navigateRoot("/");
85
+ this.genericService.PresentToast("Logado com sucesso!", "checkmark-circle");
86
+ this.OnLogin.emit(Token);
87
+ }
88
+ catch (status){
89
+ if(status == 401){
90
+ this.genericService.PresentToast("Usuário / Senha inválido (s)!");
91
+ }else{
92
+ this.genericService.PresentToast("Ocorreu um erro ao realizar o login!");
93
+ }
94
+ this.loading = false;
95
+ }
96
+ }
97
+ }
@@ -0,0 +1,61 @@
1
+ <div class="size-full flex flex-col" [ngClass]="{'bg-light/50': fullScreen}" #target>
2
+ <div class="w-full h-14 relative shrink-0">
3
+ <ion-card class="m-0 rounded-none size-full border-none">
4
+ <ion-card-content class="p-0 px-2 size-full flex">
5
+ <div class="w-1/2 h-full flex items-center justify-start">
6
+ @if (!fullScreen) {
7
+ <ion-menu-button [routerLink]="['/']" [autoHide]="true"></ion-menu-button>
8
+ }
9
+ <ng-content select="[slot=start]"></ng-content>
10
+ </div>
11
+
12
+ <div class="w-1/2 h-full flex items-center justify-end gap-2">
13
+ <ng-content select="[slot=end]"></ng-content>
14
+
15
+ <ion-button (click)="FullScreen()" fill="outline" color="dark" size="small" class="size-10 aspect-square portrait:hidden">
16
+ <ion-icon slot="icon-only" name="expand"></ion-icon>
17
+ </ion-button>
18
+
19
+ @if (!fullScreen) {
20
+ <ion-button (click)="userPopover.present($event)" size="small" class="size-10 aspect-square">
21
+ <span class="uppercase text-white">{{Token ? Token.Nome[0] : ''}}</span>
22
+ </ion-button>
23
+ <ion-popover #userPopover [dismissOnSelect]="true" triggerAction="click">
24
+ <ng-template>
25
+ <ion-content>
26
+ <div class="size-full">
27
+ <div class="w-full px-3 flex items-center">
28
+ <div class="size-10 shrink-0 aspect-square rounded-2xl text-sm flex items-center justify-center default-transition" style="background-color: var(--ion-color-primary);">
29
+ <span class="uppercase text-white">{{Token ? Token.Nome[0] : ''}}</span>
30
+ </div>
31
+ <div class="grow min-w-10 p-2 justify-center items-center whitespace-nowrap text-ellipsis overflow-hidden block default-transition" [ngClass]="{'opacity-0 w-0': colapsed}">
32
+ <span>{{Token ? Token.Nome : ''}}</span> <br>
33
+ <ion-text color="secondary" class="text-sm">
34
+ &#64;{{Token ? Token.Apelido : ''}}
35
+ </ion-text>
36
+ </div>
37
+ </div>
38
+ <div class="w-full">
39
+ <ng-content class="size-full" select="[slot=user-popover]"></ng-content>
40
+ </div>
41
+ <div class="w-full px-3 py-2 translucid-border !border-x-0 !border-b-0 flex items-center justify-between">
42
+ <ion-text> Log Out </ion-text>
43
+ <ion-button (click)="authService.Loggout()" class="size-10 shrink-0" size="small" color="danger">
44
+ <ion-icon slot="icon-only" name="exit-outline"></ion-icon>
45
+ </ion-button>
46
+ </div>
47
+ </div>
48
+ </ion-content>
49
+ </ng-template>
50
+ </ion-popover>
51
+ }
52
+ </div>
53
+ </ion-card-content>
54
+ </ion-card>
55
+ </div>
56
+ <div class="size-full relative p-2 bg-light">
57
+ <div class="size-full relative rounded-2xl bg-primary/30 content-shadow overflow-hidden">
58
+ <ng-content></ng-content>
59
+ </div>
60
+ </div>
61
+ </div>
@@ -0,0 +1,55 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import { Component, Input, OnInit, ViewChild } from '@angular/core';
3
+ import { IonicModule } from '@ionic/angular';
4
+ import { RouterLinkWithHref } from '@angular/router';
5
+ import { DrawerComponent } from '../drawer/drawer.component';
6
+ import { AuthService } from '../../services/auth.service';
7
+
8
+ @Component({
9
+ standalone: true,
10
+ imports: [ CommonModule, IonicModule, RouterLinkWithHref ],
11
+ selector: 'main-content',
12
+ templateUrl: './main-content.component.html',
13
+ styleUrls: ['./main-content.component.scss'],
14
+ })
15
+ export class MainContentComponent implements OnInit {
16
+
17
+ @Input() colapsed: boolean = false;
18
+ @Input() drawerComponent: DrawerComponent;
19
+
20
+ constructor(
21
+ public authService: AuthService
22
+ ) { }
23
+
24
+ Token: any;
25
+ ngOnInit(): void {
26
+ this.authService.LoadToken().then((res) => {
27
+ this.Token = res;
28
+ });
29
+ }
30
+
31
+ get fullScreen(): boolean {
32
+ if(document.fullscreenElement != null){
33
+ return true;
34
+ }
35
+ return false;
36
+ };
37
+ @ViewChild('target') FullScreenConteiner;
38
+ FullScreen(): void{
39
+ if(!this.fullScreen){
40
+ const elem = this.FullScreenConteiner.nativeElement;
41
+
42
+ if (elem.requestFullscreen) {
43
+ elem.requestFullscreen();
44
+ } else if (elem.msRequestFullscreen) {
45
+ elem.msRequestFullscreen();
46
+ } else if (elem.mozRequestFullScreen) {
47
+ elem.mozRequestFullScreen();
48
+ } else if (elem.webkitRequestFullscreen) {
49
+ elem.webkitRequestFullscreen();
50
+ }
51
+ }else{
52
+ document.exitFullscreen()
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,11 @@
1
+ <div class="px-1 flex flex-col items-center justify-center text-center animated">
2
+ <div [ngClass]="{'selected': selected}" class="default-transition min-h-8 min-w-8 bg-red-400 flex items-center justify-center rounded-2xl step">
3
+ <div class="wrapper"><ng-content select="ion-icon, ion-text"></ng-content></div>
4
+ <div class="default">
5
+ {{index + 1}}
6
+ </div>
7
+ </div>
8
+
9
+ <ion-text> {{label}} </ion-text>
10
+ <ion-progress-bar [color]="selected ? 'secondary' : 'primary'" class="h-2 ease-in-out" [value]="_fill"></ion-progress-bar>
11
+ </div>
@@ -0,0 +1,44 @@
1
+ import { Component, Input, OnInit } from '@angular/core';
2
+ import { StepperComponent } from '../stepper.component';
3
+
4
+ @Component({
5
+ selector: 'step',
6
+ templateUrl: './step.component.html',
7
+ styleUrls: ['./step.component.scss'],
8
+ })
9
+ export class StepComponent implements OnInit {
10
+
11
+ @Input() label : string = "Label";
12
+
13
+ constructor() { }
14
+
15
+ ngOnInit() {
16
+ }
17
+
18
+ parent: StepperComponent;
19
+
20
+ get index(): number{
21
+ if(this.parent && this.parent.lstSteps){
22
+ return this.parent.lstSteps.toArray().indexOf(this);
23
+ }
24
+ return 0;
25
+ }
26
+
27
+ get fill(): boolean{
28
+ if(this.parent){
29
+ return this.parent.lstSteps.toArray().indexOf(this) == this.parent._model;
30
+ }
31
+ return false;
32
+ };
33
+
34
+ get selected(): boolean{
35
+ if(this.parent){
36
+ return this.parent.lstSteps.toArray().indexOf(this) <= this.parent._model;
37
+ }
38
+ return false;
39
+ };
40
+
41
+ get _fill(){
42
+ return this.fill ? 1 : 0;
43
+ }
44
+ }
@@ -0,0 +1,3 @@
1
+ <div class="flex w-full justify-evenly">
2
+ <ng-content selector="step" class="grow"></ng-content>
3
+ </div>