infinity-forge 0.5.0 → 0.5.3

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 (342) hide show
  1. package/dist/index.d.ts +3 -3
  2. package/dist/index.js +3 -3
  3. package/dist/sites/components/brands-carousel/index.d.ts +1 -1
  4. package/dist/sites/components/brands-carousel/index.js +3 -3
  5. package/dist/sites/components/brands-carousel/interfaces.d.ts +1 -1
  6. package/dist/sites/components/carousel/component.d.ts +1 -1
  7. package/dist/sites/components/carousel/component.js +1 -1
  8. package/dist/sites/components/carousel/index.d.ts +1 -1
  9. package/dist/sites/components/carousel/index.js +1 -1
  10. package/dist/sites/components/carousel/interfaces.d.ts +1 -1
  11. package/dist/sites/components/carousel/versions/index.d.ts +1 -1
  12. package/dist/sites/components/carousel/versions/index.js +1 -1
  13. package/dist/sites/components/carousel/versions/version-01/component-01.d.ts +1 -1
  14. package/dist/sites/components/carousel/versions/version-01/component-01.js +1 -1
  15. package/dist/sites/components/counter/component.d.ts +1 -1
  16. package/dist/sites/components/counter/component.js +1 -1
  17. package/dist/sites/components/counter/index.d.ts +1 -1
  18. package/dist/sites/components/counter/index.js +1 -1
  19. package/dist/sites/components/counter/interfaces.d.ts +1 -1
  20. package/dist/sites/components/counter/versions/index.d.ts +1 -1
  21. package/dist/sites/components/counter/versions/index.js +1 -1
  22. package/dist/sites/components/counter/versions/version-01/box/index.d.ts +1 -1
  23. package/dist/sites/components/counter/versions/version-01/box/index.js +2 -2
  24. package/dist/sites/components/counter/versions/version-01/component.d.ts +1 -1
  25. package/dist/sites/components/counter/versions/version-01/component.js +3 -3
  26. package/dist/sites/components/head/component.d.ts +1 -1
  27. package/dist/sites/components/head/index.d.ts +2 -2
  28. package/dist/sites/components/head/index.js +2 -2
  29. package/dist/sites/components/header-link/component.d.ts +1 -1
  30. package/dist/sites/components/header-link/component.js +1 -1
  31. package/dist/sites/components/header-link/index.d.ts +1 -1
  32. package/dist/sites/components/header-link/index.js +1 -1
  33. package/dist/sites/components/header-link/interfaces.d.ts +1 -1
  34. package/dist/sites/components/header-link/versions/index.d.ts +1 -1
  35. package/dist/sites/components/header-link/versions/index.js +1 -1
  36. package/dist/sites/components/header-link/versions/version-01/component.js +2 -2
  37. package/dist/sites/components/header-link/versions/version-01/component.stories.d.ts +1 -1
  38. package/dist/sites/components/header-link/versions/version-01/component.stories.js +2 -2
  39. package/dist/sites/components/index.d.ts +6 -6
  40. package/dist/sites/components/index.js +6 -6
  41. package/dist/sites/components/mvv/component.d.ts +1 -1
  42. package/dist/sites/components/mvv/component.js +1 -1
  43. package/dist/sites/components/mvv/index.d.ts +1 -1
  44. package/dist/sites/components/mvv/index.js +1 -1
  45. package/dist/sites/components/mvv/interfaces.d.ts +1 -1
  46. package/dist/sites/components/mvv/versions/index.d.ts +1 -1
  47. package/dist/sites/components/mvv/versions/index.js +1 -1
  48. package/dist/sites/components/mvv/versions/version-01/component.d.ts +1 -1
  49. package/dist/sites/components/mvv/versions/version-01/component.js +2 -2
  50. package/dist/sites/context/configs/context.d.ts +1 -1
  51. package/dist/sites/context/configs/context.js +3 -3
  52. package/dist/sites/context/configs/index.d.ts +2 -2
  53. package/dist/sites/context/configs/index.js +2 -2
  54. package/dist/sites/context/configs/scripts/acept-cookies/index.js +2 -2
  55. package/dist/sites/context/configs/scripts/acept-ratedr/index.js +2 -2
  56. package/dist/sites/context/configs/scripts/component.d.ts +1 -1
  57. package/dist/sites/context/configs/scripts/component.js +4 -4
  58. package/dist/sites/context/configs/scripts/index.d.ts +5 -5
  59. package/dist/sites/context/configs/scripts/index.js +5 -5
  60. package/dist/sites/context/configs/scripts/interfaces.d.ts +1 -1
  61. package/dist/sites/context/configs/scripts/whatsapp-fixed/index.js +1 -1
  62. package/dist/sites/context/index.d.ts +1 -1
  63. package/dist/sites/context/index.js +1 -1
  64. package/dist/sites/hook/index.d.ts +3 -3
  65. package/dist/sites/hook/index.js +3 -3
  66. package/dist/sites/index.d.ts +3 -3
  67. package/dist/sites/index.js +3 -3
  68. package/dist/sites/interfaces/api-data/index.d.ts +1 -1
  69. package/dist/sites/interfaces/api-data/index.js +1 -1
  70. package/dist/sites/interfaces/index.d.ts +2 -2
  71. package/dist/sites/interfaces/index.js +2 -2
  72. package/dist/system/container/admin/auth/container.js +0 -11
  73. package/dist/system/container/admin/auth/index.d.ts +0 -2
  74. package/dist/system/container/admin/auth/index.js +0 -19
  75. package/dist/system/container/admin/index.d.ts +0 -3
  76. package/dist/system/container/admin/index.js +0 -20
  77. package/dist/system/container/admin/menu/container.js +0 -11
  78. package/dist/system/container/admin/menu/index.d.ts +0 -2
  79. package/dist/system/container/admin/menu/index.js +0 -19
  80. package/dist/system/container/admin/users/container.js +0 -12
  81. package/dist/system/container/admin/users/index.d.ts +0 -2
  82. package/dist/system/container/admin/users/index.js +0 -19
  83. package/dist/system/container/decorators/authorize-http-client-decorator.d.ts +0 -8
  84. package/dist/system/container/decorators/authorize-http-client-decorator.js +0 -117
  85. package/dist/system/container/decorators/index.d.ts +0 -1
  86. package/dist/system/container/decorators/index.js +0 -18
  87. package/dist/system/container/index.d.ts +0 -2
  88. package/dist/system/container/index.js +0 -19
  89. package/dist/system/container/infra/container.js +0 -15
  90. package/dist/system/container/infra/index.d.ts +0 -3
  91. package/dist/system/container/infra/index.js +0 -20
  92. package/dist/system/container/main.d.ts +0 -4
  93. package/dist/system/container/main.js +0 -12
  94. package/dist/system/container/types.js +0 -17
  95. package/dist/system/data/index.d.ts +0 -1
  96. package/dist/system/data/index.js +0 -18
  97. package/dist/system/data/use-cases/auth/index.d.ts +0 -1
  98. package/dist/system/data/use-cases/auth/index.js +0 -18
  99. package/dist/system/data/use-cases/auth/remote-auth-admin.d.ts +0 -10
  100. package/dist/system/data/use-cases/auth/remote-auth-admin.js +0 -116
  101. package/dist/system/data/use-cases/index.d.ts +0 -3
  102. package/dist/system/data/use-cases/index.js +0 -20
  103. package/dist/system/data/use-cases/menu/index.d.ts +0 -1
  104. package/dist/system/data/use-cases/menu/index.js +0 -18
  105. package/dist/system/data/use-cases/menu/remote-get-menu.d.ts +0 -8
  106. package/dist/system/data/use-cases/menu/remote-get-menu.js +0 -109
  107. package/dist/system/data/use-cases/users/index.d.ts +0 -2
  108. package/dist/system/data/use-cases/users/index.js +0 -19
  109. package/dist/system/data/use-cases/users/remote-load-user-admin.d.ts +0 -8
  110. package/dist/system/data/use-cases/users/remote-load-user-admin.js +0 -109
  111. package/dist/system/data/use-cases/users/remote-users.d.ts +0 -12
  112. package/dist/system/data/use-cases/users/remote-users.js +0 -177
  113. package/dist/system/domain/generics/index.d.ts +0 -2
  114. package/dist/system/domain/generics/index.js +0 -19
  115. package/dist/system/domain/index.d.ts +0 -3
  116. package/dist/system/domain/index.js +0 -20
  117. package/dist/system/domain/protocols/cache/get-storage.d.ts +0 -4
  118. package/dist/system/domain/protocols/cache/index.d.ts +0 -3
  119. package/dist/system/domain/protocols/cache/index.js +0 -20
  120. package/dist/system/domain/protocols/cache/set-storage.d.ts +0 -4
  121. package/dist/system/domain/protocols/http/errors/http-errors/index.d.ts +0 -5
  122. package/dist/system/domain/protocols/http/errors/http-errors/index.js +0 -22
  123. package/dist/system/domain/protocols/http/errors/index.d.ts +0 -2
  124. package/dist/system/domain/protocols/http/errors/index.js +0 -19
  125. package/dist/system/domain/protocols/http/errors/system-errors-model/index.d.ts +0 -1
  126. package/dist/system/domain/protocols/http/errors/system-errors-model/index.js +0 -18
  127. package/dist/system/domain/protocols/http/http-client.d.ts +0 -33
  128. package/dist/system/domain/protocols/http/index.d.ts +0 -2
  129. package/dist/system/domain/protocols/http/index.js +0 -19
  130. package/dist/system/domain/protocols/index.d.ts +0 -2
  131. package/dist/system/domain/protocols/index.js +0 -19
  132. package/dist/system/domain/use-cases/auth/admin/index.d.ts +0 -1
  133. package/dist/system/domain/use-cases/auth/admin/index.js +0 -18
  134. package/dist/system/domain/use-cases/auth/index.d.ts +0 -1
  135. package/dist/system/domain/use-cases/auth/index.js +0 -18
  136. package/dist/system/domain/use-cases/index.d.ts +0 -3
  137. package/dist/system/domain/use-cases/index.js +0 -20
  138. package/dist/system/domain/use-cases/menu/index.d.ts +0 -1
  139. package/dist/system/domain/use-cases/menu/index.js +0 -18
  140. package/dist/system/domain/use-cases/menu/load-menu.d.ts +0 -15
  141. package/dist/system/domain/use-cases/users/delete-user.d.ts +0 -10
  142. package/dist/system/domain/use-cases/users/edit-user.d.ts +0 -8
  143. package/dist/system/domain/use-cases/users/get-detail-user.d.ts +0 -10
  144. package/dist/system/domain/use-cases/users/index.d.ts +0 -6
  145. package/dist/system/domain/use-cases/users/index.js +0 -23
  146. package/dist/system/domain/use-cases/users/load-all-users.d.ts +0 -23
  147. package/dist/system/index.d.ts +5 -5
  148. package/dist/system/index.js +5 -5
  149. package/dist/system/infra/cache/cookie-storage-adapter.d.ts +0 -6
  150. package/dist/system/infra/cache/index.d.ts +0 -2
  151. package/dist/system/infra/cache/index.js +0 -19
  152. package/dist/system/infra/cache/storage-type.d.ts +0 -2
  153. package/dist/system/infra/http/axios-http-client.d.ts +0 -4
  154. package/dist/system/infra/http/axios-http-client.js +0 -116
  155. package/dist/system/infra/http/axios-http-client.js.map +1 -1
  156. package/dist/system/infra/http/index.d.ts +0 -1
  157. package/dist/system/infra/http/index.js +0 -18
  158. package/dist/system/infra/index.d.ts +0 -3
  159. package/dist/system/infra/index.js +0 -20
  160. package/dist/system/infra/type-models/index.d.ts +0 -2
  161. package/dist/system/infra/type-models/index.js +0 -19
  162. package/dist/system/presentation/components/data/avatar/index.js +2 -2
  163. package/dist/system/presentation/components/data/cards/index.d.ts +1 -1
  164. package/dist/system/presentation/components/data/cards/index.js +1 -1
  165. package/dist/system/presentation/components/data/cards/message-card/index.d.ts +1 -1
  166. package/dist/system/presentation/components/data/cards/message-card/index.js +3 -3
  167. package/dist/system/presentation/components/data/index.d.ts +8 -8
  168. package/dist/system/presentation/components/data/index.js +8 -8
  169. package/dist/system/presentation/components/data/logo/index.js +2 -2
  170. package/dist/system/presentation/components/data/overlay/index.d.ts +1 -1
  171. package/dist/system/presentation/components/data/overlay/index.js +2 -2
  172. package/dist/system/presentation/components/data/page-wrapper/index.d.ts +1 -1
  173. package/dist/system/presentation/components/data/page-wrapper/index.js +2 -2
  174. package/dist/system/presentation/components/data/popover/index.d.ts +1 -1
  175. package/dist/system/presentation/components/data/sign-up/index.js +3 -3
  176. package/dist/system/presentation/components/data/skeleton/index.d.ts +1 -1
  177. package/dist/system/presentation/components/data/skeleton/index.js +2 -2
  178. package/dist/system/presentation/components/index.d.ts +3 -3
  179. package/dist/system/presentation/components/index.js +3 -3
  180. package/dist/system/presentation/components/layout/component.js +3 -3
  181. package/dist/system/presentation/components/layout/header/components/index.d.ts +2 -2
  182. package/dist/system/presentation/components/layout/header/components/index.js +2 -2
  183. package/dist/system/presentation/components/layout/header/components/menu-right/index.js +6 -6
  184. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.d.ts +1 -1
  185. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +3 -3
  186. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +1 -1
  187. package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +4 -4
  188. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js +3 -3
  189. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +3 -3
  190. package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +4 -4
  191. package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js +3 -3
  192. package/dist/system/presentation/components/layout/header/components/search-modal/index.js +4 -4
  193. package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +3 -3
  194. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +2 -2
  195. package/dist/system/presentation/components/layout/header/index.js +1 -1
  196. package/dist/system/presentation/components/layout/header/version-01/index.js +3 -3
  197. package/dist/system/presentation/components/layout/index.d.ts +3 -3
  198. package/dist/system/presentation/components/layout/index.js +3 -3
  199. package/dist/system/presentation/components/layout/menu/components/index.d.ts +2 -2
  200. package/dist/system/presentation/components/layout/menu/components/index.js +2 -2
  201. package/dist/system/presentation/components/layout/menu/components/menu/index.js +3 -3
  202. package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js +2 -2
  203. package/dist/system/presentation/components/layout/menu/index.js +1 -1
  204. package/dist/system/presentation/components/layout/menu/version-01/index.js +3 -3
  205. package/dist/system/presentation/components/pages/index.d.ts +1 -1
  206. package/dist/system/presentation/components/pages/index.js +1 -1
  207. package/dist/system/presentation/components/pages/users/index.d.ts +1 -1
  208. package/dist/system/presentation/components/pages/users/index.js +1 -1
  209. package/dist/system/presentation/components/pages/users/page.js +2 -2
  210. package/dist/system/presentation/components/pages/users/table/columns.d.ts +2 -2
  211. package/dist/system/presentation/components/pages/users/table/delete.js +2 -2
  212. package/dist/system/presentation/components/pages/users/table/edit.d.ts +2 -2
  213. package/dist/system/presentation/components/pages/users/table/edit.js +2 -2
  214. package/dist/system/presentation/components/pages/users/table/index.d.ts +3 -3
  215. package/dist/system/presentation/components/pages/users/table/index.js +3 -3
  216. package/dist/system/presentation/configs/index.d.ts +2 -2
  217. package/dist/system/presentation/configs/index.js +2 -2
  218. package/dist/system/presentation/context/auth/authenticated/index.js +1 -1
  219. package/dist/system/presentation/context/auth/context.d.ts +1 -1
  220. package/dist/system/presentation/context/auth/context.js +4 -3
  221. package/dist/system/presentation/context/auth/context.js.map +1 -1
  222. package/dist/system/presentation/context/auth/index.d.ts +5 -5
  223. package/dist/system/presentation/context/auth/index.js +5 -5
  224. package/dist/system/presentation/context/auth/interfaces.d.ts +1 -1
  225. package/dist/system/presentation/context/auth/login/index.js +3 -3
  226. package/dist/system/presentation/context/auth/private-page/index.js +3 -3
  227. package/dist/system/presentation/context/auth/unauthenticated/index.js +1 -1
  228. package/dist/system/presentation/context/container.js +33 -3
  229. package/dist/system/presentation/context/container.js.map +1 -1
  230. package/dist/system/presentation/context/index.d.ts +2 -2
  231. package/dist/system/presentation/context/index.js +2 -2
  232. package/dist/system/presentation/hooks/index.d.ts +2 -2
  233. package/dist/system/presentation/hooks/index.js +2 -2
  234. package/dist/system/presentation/hooks/menu/index.d.ts +1 -1
  235. package/dist/system/presentation/hooks/menu/index.js +1 -1
  236. package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +1 -1
  237. package/dist/system/presentation/hooks/menu/use-load-menu.js +1 -1
  238. package/dist/system/presentation/hooks/ui/index.d.ts +1 -1
  239. package/dist/system/presentation/hooks/ui/index.js +1 -1
  240. package/dist/system/presentation/hooks/ui/use-table/component.d.ts +0 -4
  241. package/dist/system/presentation/hooks/ui/use-table/component.js +0 -25
  242. package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +1 -1
  243. package/dist/system/presentation/hooks/ui/use-table/components/index.js +1 -1
  244. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +0 -5
  245. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +0 -78
  246. package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +1 -1
  247. package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +7 -7
  248. package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +2 -2
  249. package/dist/system/presentation/hooks/ui/use-table/components/table/loader-table/index.js +1 -1
  250. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +1 -1
  251. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +3 -3
  252. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +1 -1
  253. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +2 -2
  254. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +1 -1
  255. package/dist/system/presentation/hooks/ui/use-table/index.d.ts +0 -3
  256. package/dist/system/presentation/hooks/ui/use-table/index.js +0 -20
  257. package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +0 -59
  258. package/dist/system/presentation/hooks/ui/use-table/query.d.ts +0 -3
  259. package/dist/system/presentation/hooks/ui/use-table/query.js +0 -68
  260. package/dist/system/presentation/index.d.ts +5 -5
  261. package/dist/system/presentation/index.js +5 -5
  262. package/dist/system/presentation/utils/index.d.ts +0 -1
  263. package/dist/system/presentation/utils/index.js +0 -18
  264. package/dist/system/presentation/utils/use-query/index.d.ts +0 -1
  265. package/dist/system/presentation/utils/use-query/index.js +0 -18
  266. package/dist/tsconfig.tsbuildinfo +1 -0
  267. package/dist/ui/components/accordion/index..d.ts +1 -1
  268. package/dist/ui/components/accordion/index..js +2 -2
  269. package/dist/ui/components/breadcrumb/index.d.ts +1 -1
  270. package/dist/ui/components/breadcrumb/index.js +1 -1
  271. package/dist/ui/components/button/component.d.ts +1 -1
  272. package/dist/ui/components/button/component.js +2 -2
  273. package/dist/ui/components/button/index.d.ts +2 -2
  274. package/dist/ui/components/button/index.js +2 -2
  275. package/dist/ui/components/button/interfaces.d.ts +1 -1
  276. package/dist/ui/components/container/index.d.ts +1 -1
  277. package/dist/ui/components/error-boundary/component.d.ts +1 -1
  278. package/dist/ui/components/error-boundary/component.js +1 -1
  279. package/dist/ui/components/error-boundary/error-body.d.ts +1 -1
  280. package/dist/ui/components/error-boundary/index.d.ts +2 -2
  281. package/dist/ui/components/error-boundary/index.js +2 -2
  282. package/dist/ui/components/form/checkbox/index.js +2 -2
  283. package/dist/ui/components/form/handler/custom-submit/index.d.ts +0 -16
  284. package/dist/ui/components/form/handler/custom-submit/index.js +0 -22
  285. package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +0 -2
  286. package/dist/ui/components/form/handler/dynamic_form_handler/index.js +0 -62
  287. package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +0 -21
  288. package/dist/ui/components/form/handler/form-handler/index.d.ts +1 -1
  289. package/dist/ui/components/form/handler/form-handler/index.js +5 -5
  290. package/dist/ui/components/form/handler/index.d.ts +1 -1
  291. package/dist/ui/components/form/handler/index.js +1 -1
  292. package/dist/ui/components/form/handler/interfaces.d.ts +0 -18
  293. package/dist/ui/components/form/index.d.ts +12 -12
  294. package/dist/ui/components/form/index.js +12 -12
  295. package/dist/ui/components/form/input/index.d.ts +0 -2
  296. package/dist/ui/components/form/input/index.js +0 -23
  297. package/dist/ui/components/form/input-control/error/index.d.ts +0 -2
  298. package/dist/ui/components/form/input-control/error/index.js +0 -40
  299. package/dist/ui/components/form/input-control/index.d.ts +0 -2
  300. package/dist/ui/components/form/input-control/index.js +0 -38
  301. package/dist/ui/components/form/input-control/loader-input/index.js +0 -34
  302. package/dist/ui/components/form/input-cpf-cnpj/index.d.ts +1 -1
  303. package/dist/ui/components/form/input-cpf-cnpj/index.js +1 -1
  304. package/dist/ui/components/form/input-file/index.d.ts +1 -1
  305. package/dist/ui/components/form/input-file/index.js +1 -1
  306. package/dist/ui/components/form/input-mask/index.d.ts +1 -1
  307. package/dist/ui/components/form/input-mask/index.js +1 -1
  308. package/dist/ui/components/form/input-password/index.d.ts +1 -1
  309. package/dist/ui/components/form/input-password/index.js +2 -2
  310. package/dist/ui/components/form/input-switch/index.d.ts +1 -1
  311. package/dist/ui/components/form/input-switch/index.js +1 -1
  312. package/dist/ui/components/form/radio/index.js +0 -46
  313. package/dist/ui/components/form/select/index.d.ts +0 -2
  314. package/dist/ui/components/form/select/index.js +0 -68
  315. package/dist/ui/components/form/select/interfaces.d.ts +0 -22
  316. package/dist/ui/components/form/textarea/index.d.ts +1 -1
  317. package/dist/ui/components/form/textarea/index.js +1 -1
  318. package/dist/ui/components/index.d.ts +10 -10
  319. package/dist/ui/components/index.js +10 -10
  320. package/dist/ui/components/loader-circle/index.d.ts +0 -2
  321. package/dist/ui/components/loading-screen/index.d.ts +1 -1
  322. package/dist/ui/components/loading-screen/index.js +3 -3
  323. package/dist/ui/components/menu-mobile/components/nav-links/index.d.ts +1 -1
  324. package/dist/ui/components/menu-mobile/components/nav-links/index.js +2 -2
  325. package/dist/ui/components/menu-mobile/components/nav-links/interfaces.d.ts +1 -1
  326. package/dist/ui/components/menu-mobile/index.d.ts +1 -1
  327. package/dist/ui/components/menu-mobile/index.js +4 -4
  328. package/dist/ui/components/menu-mobile/top/index.d.ts +1 -1
  329. package/dist/ui/components/menu-mobile/top/index.js +2 -2
  330. package/dist/ui/components/menu-mobile/top/interfaces.d.ts +1 -1
  331. package/dist/ui/components/next-image/index.d.ts +1 -1
  332. package/dist/ui/components/next-image/index.js +3 -3
  333. package/dist/ui/components/sidebar/index.d.ts +1 -1
  334. package/dist/ui/components/sidebar/index.js +1 -1
  335. package/dist/ui/icons/render/Eye.d.ts +1 -1
  336. package/dist/ui/icons/render/Globe.d.ts +1 -1
  337. package/dist/ui/icons/render/LongArrowRight.d.ts +1 -1
  338. package/dist/ui/icons/render/loading.js +1 -1
  339. package/dist/ui/icons/render/loading.js.map +1 -1
  340. package/dist/ui/index.d.ts +5 -5
  341. package/dist/ui/index.js +5 -5
  342. package/package.json +1 -1
@@ -75,8 +75,8 @@ var jsx_runtime_1 = require("react/jsx-runtime");
75
75
  var react_1 = require("react");
76
76
  var axios_1 = __importStar(require("axios"));
77
77
  var react_query_1 = require("@tanstack/react-query");
78
- var ui_1 = require("../../../../ui/index.js");
79
- var system_1 = require("../../../../system/index.js");
78
+ var ui_1 = require("@/ui");
79
+ var system_1 = require("@/system");
80
80
  var AuthContext = (0, react_1.createContext)({});
81
81
  function AuthAdminProvider(_a) {
82
82
  var children = _a.children;
@@ -119,8 +119,9 @@ function AuthAdminProvider(_a) {
119
119
  (0, react_query_1.useQuery)(__assign(__assign({ queryKey: ["load_user"], queryFn: loadUser }, system_1.callApiOneTime), { retry: 0 }));
120
120
  (0, react_1.useEffect)(function () {
121
121
  axios_1.default.interceptors.response.use(function (r) { return r; }, function (err) {
122
+ var _a;
122
123
  if (err instanceof axios_1.AxiosError) {
123
- if (err.response.status === 401) {
124
+ if (((_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.status) === 401) {
124
125
  signOut();
125
126
  }
126
127
  }
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/auth/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAsE;AAEtE,6CAAyC;AACzC,qDAAgE;AAEhE,2BAAoC;AACpC,mCAA6I;AAI7I,IAAM,WAAW,GAAG,IAAA,qBAAa,EAAC,EAAsB,CAAC,CAAA;AAEzD,SAAS,iBAAiB,CAAC,EAA2C;QAAzC,QAAQ,cAAA;IAC7B,IAAA,KAAkB,IAAA,gBAAQ,EAA+B,SAAS,CAAC,EAAlE,IAAI,QAAA,EAAE,OAAO,QAAqD,CAAA;IAEzE,IAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IAEpC,SAAe,QAAQ;;;;;4BACR,qBAAM,kBAAS,CAAC,GAAG,CAAsB,cAAK,CAAC,mBAAmB,CAAC,CAAC,IAAI,EAAE,EAAA;;wBAAjF,IAAI,GAAG,SAA0E;wBACvF,OAAO,CAAC,IAAI,CAAC,CAAA;;;;;KACd;IAED,SAAe,MAAM,CAAC,OAAyB;;;;4BAC7C,qBAAM,kBAAS,CAAC,GAAG,CAAkB,cAAK,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAA;;wBAAzE,SAAyE,CAAA;wBACzE,qBAAM,QAAQ,EAAE,EAAA;;wBAAhB,SAAgB,CAAA;;;;;KACjB;IAED,SAAS,OAAO;QACd,OAAO,CAAC,IAAI,CAAC,CAAA;QACb,WAAW,CAAC,iBAAiB,EAAE,CAAC;QAChC,kBAAS,CAAC,GAAG,CAAU,mBAAU,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;IAC1E,CAAC;IAED,IAAA,sBAAQ,sBAAG,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,QAAQ,IAAK,uBAAc,KAAE,KAAK,EAAE,CAAC,IAAG,CAAC;IAEtF,IAAA,iBAAS,EAAC;QACR,eAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAC7B,UAAC,CAAC,IAAK,OAAA,CAAC,EAAD,CAAC,EACR,UAAC,GAAG;YACF,IAAI,GAAG,YAAY,kBAAU,EAAE,CAAC;gBAC9B,IAAI,GAAG,CAAC,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;oBAChC,OAAO,EAAE,CAAA;gBACX,CAAC;YACH,CAAC;YAED,MAAM,GAAG,CAAA;QACX,CAAC,CACF,CAAA;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,CACL,wBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,IAAI,MAAA,EAAE,MAAM,QAAA,EAAE,OAAO,SAAA,EAAE,aACnD,IAAI,KAAK,SAAS,IAAI,uBAAC,kBAAa,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,MAAM,GAAG,EAE9D,QAAQ,IACY,CACxB,CAAA;AACH,CAAC;AAWQ,8CAAiB;AAT1B,SAAS,YAAY;IACnB,IAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,WAAW,CAAC,CAAA;IAEvC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAA;IACtE,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC;AAE2B,oCAAY"}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../src/system/presentation/context/auth/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAsE;AAEtE,6CAAyC;AACzC,qDAAgE;AAEhE,2BAAoC;AACpC,mCAA6I;AAI7I,IAAM,WAAW,GAAG,IAAA,qBAAa,EAAC,EAAsB,CAAC,CAAA;AAEzD,SAAS,iBAAiB,CAAC,EAA2C;QAAzC,QAAQ,cAAA;IAC7B,IAAA,KAAkB,IAAA,gBAAQ,EAA+B,SAAS,CAAC,EAAlE,IAAI,QAAA,EAAE,OAAO,QAAqD,CAAA;IAEzE,IAAM,WAAW,GAAG,IAAA,4BAAc,GAAE,CAAA;IAEpC,SAAe,QAAQ;;;;;4BACR,qBAAM,kBAAS,CAAC,GAAG,CAAsB,cAAK,CAAC,mBAAmB,CAAC,CAAC,IAAI,EAAE,EAAA;;wBAAjF,IAAI,GAAG,SAA0E;wBACvF,OAAO,CAAC,IAAI,CAAC,CAAA;;;;;KACd;IAED,SAAe,MAAM,CAAC,OAAyB;;;;4BAC7C,qBAAM,kBAAS,CAAC,GAAG,CAAkB,cAAK,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAA;;wBAAzE,SAAyE,CAAA;wBACzE,qBAAM,QAAQ,EAAE,EAAA;;wBAAhB,SAAgB,CAAA;;;;;KACjB;IAED,SAAS,OAAO;QACd,OAAO,CAAC,IAAI,CAAC,CAAA;QACb,WAAW,CAAC,iBAAiB,EAAE,CAAC;QAChC,kBAAS,CAAC,GAAG,CAAU,mBAAU,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;IAC1E,CAAC;IAED,IAAA,sBAAQ,sBAAG,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,QAAQ,IAAK,uBAAc,KAAE,KAAK,EAAE,CAAC,IAAG,CAAC;IAEtF,IAAA,iBAAS,EAAC;QACR,eAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAC7B,UAAC,CAAC,IAAK,OAAA,CAAC,EAAD,CAAC,EACR,UAAC,GAAG;;YACF,IAAI,GAAG,YAAY,kBAAU,EAAE,CAAC;gBAC9B,IAAI,CAAA,MAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,QAAQ,0CAAE,MAAM,MAAK,GAAG,EAAE,CAAC;oBAClC,OAAO,EAAE,CAAA;gBACX,CAAC;YACH,CAAC;YAED,MAAM,GAAG,CAAA;QACX,CAAC,CACF,CAAA;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,CACL,wBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,IAAI,MAAA,EAAE,MAAM,QAAA,EAAE,OAAO,SAAA,EAAE,aACnD,IAAI,KAAK,SAAS,IAAI,uBAAC,kBAAa,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,MAAM,GAAG,EAE9D,QAAQ,IACY,CACxB,CAAA;AACH,CAAC;AAWQ,8CAAiB;AAT1B,SAAS,YAAY;IACnB,IAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,WAAW,CAAC,CAAA;IAEvC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAA;IACtE,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC;AAE2B,oCAAY"}
@@ -1,5 +1,5 @@
1
- export * from "./login/index.js";
2
- export * from "./context.js";
3
- export * from "./private-page/index.js";
4
- export * from "./authenticated/index.js";
5
- export * from "./unauthenticated/index.js";
1
+ export * from "./login";
2
+ export * from "./context";
3
+ export * from "./private-page";
4
+ export * from "./authenticated";
5
+ export * from "./unauthenticated";
@@ -14,9 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./login/index.js"), exports);
18
- __exportStar(require("./context.js"), exports);
19
- __exportStar(require("./private-page/index.js"), exports);
20
- __exportStar(require("./authenticated/index.js"), exports);
21
- __exportStar(require("./unauthenticated/index.js"), exports);
17
+ __exportStar(require("./login"), exports);
18
+ __exportStar(require("./context"), exports);
19
+ __exportStar(require("./private-page"), exports);
20
+ __exportStar(require("./authenticated"), exports);
21
+ __exportStar(require("./unauthenticated"), exports);
22
22
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { AuthAdmin, UserAdmin } from '../../../../system/index.js';
1
+ import { AuthAdmin, UserAdmin } from '@/system';
2
2
  export interface IAuthContextType {
3
3
  signOut(): void;
4
4
  user: UserAdmin | undefined | null;
@@ -25,9 +25,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.Login = void 0;
27
27
  var jsx_runtime_1 = require("react/jsx-runtime");
28
- var context_1 = require("../context.js");
29
- var ui_1 = require("../../../../../ui/index.js");
30
- var S = __importStar(require("./styles.js"));
28
+ var context_1 = require("../context");
29
+ var ui_1 = require("@/ui");
30
+ var S = __importStar(require("./styles"));
31
31
  function Login() {
32
32
  var signIn = (0, context_1.useAuthAdmin)().signIn;
33
33
  return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'login', children: (0, jsx_runtime_1.jsxs)(S.Login, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'title', children: (0, jsx_runtime_1.jsxs)("h1", { className: 'font-36-bold', children: ["Bem Vindo! ", (0, jsx_runtime_1.jsx)("br", {}), "Entre com suas credenciais"] }) }), (0, jsx_runtime_1.jsxs)(ui_1.FormHandler, { button: { text: 'Entrar' }, initialData: { emailAddress: "", password: "" }, onSucess: signIn, children: [(0, jsx_runtime_1.jsx)(ui_1.Input, { type: 'email', label: 'Email', name: 'emailAddress', placeholder: 'clienteCodie@digital.com' }), (0, jsx_runtime_1.jsx)(ui_1.InputPassword, { label: 'Senha', name: 'password', placeholder: 'Senha' })] }), (0, jsx_runtime_1.jsxs)("div", { className: 'create-account', children: [(0, jsx_runtime_1.jsx)("span", { className: 'font-16-regular', children: "N\u00E3o tem uma conta?" }), (0, jsx_runtime_1.jsx)("a", { className: 'font-16-bold', href: '/sign-up', children: "Criar Conta" })] })] }) }));
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PrivatePageAdmin = void 0;
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
- var ui_1 = require("../../../../../ui/index.js");
6
- var login_1 = require("../login/index.js");
7
- var context_1 = require("../context.js");
5
+ var ui_1 = require("@/ui");
6
+ var login_1 = require("../login");
7
+ var context_1 = require("../context");
8
8
  function PrivatePageAdmin(_a) {
9
9
  var children = _a.children;
10
10
  var user = (0, context_1.useAuthAdmin)().user;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UnauthenticatedTemplate = void 0;
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
- var context_1 = require("../context.js");
5
+ var context_1 = require("../context");
6
6
  function UnauthenticatedTemplate(_a) {
7
7
  var children = _a.children;
8
8
  var user = (0, context_1.useAuthAdmin)().user;
@@ -1,14 +1,44 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
2
28
  Object.defineProperty(exports, "__esModule", { value: true });
3
29
  exports.InfinityForgeProviders = exports.queryClient = void 0;
4
30
  var jsx_runtime_1 = require("react/jsx-runtime");
5
- var ui_1 = require("../../../ui/index.js");
6
- var auth_1 = require("./auth/index.js");
31
+ var ui_1 = require("@/ui");
32
+ var auth_1 = require("./auth");
33
+ var dynamic_1 = __importDefault(require("next/dynamic"));
7
34
  var react_query_1 = require("@tanstack/react-query");
35
+ var QueryClientProvider = (0, dynamic_1.default)(function () { return Promise.resolve().then(function () { return __importStar(require("@tanstack/react-query")); }).then(function (e) { return e.QueryClientProvider; }); }, {
36
+ ssr: false,
37
+ });
8
38
  exports.queryClient = new react_query_1.QueryClient();
9
39
  function InfinityForgeProviders(_a) {
10
40
  var children = _a.children;
11
- return ((0, jsx_runtime_1.jsx)(react_query_1.QueryClientProvider, { client: exports.queryClient, children: (0, jsx_runtime_1.jsx)(auth_1.AuthAdminProvider, { children: (0, jsx_runtime_1.jsx)(ui_1.ToastProvider, { children: children }) }) }));
41
+ return ((0, jsx_runtime_1.jsx)(QueryClientProvider, { client: exports.queryClient, children: (0, jsx_runtime_1.jsx)(auth_1.AuthAdminProvider, { children: (0, jsx_runtime_1.jsx)(ui_1.ToastProvider, { children: children }) }) }));
12
42
  }
13
43
  exports.InfinityForgeProviders = InfinityForgeProviders;
14
44
  //# sourceMappingURL=container.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/system/presentation/context/container.tsx"],"names":[],"mappings":";;;;AAAA,2BAAoC;AACpC,+BAA0C;AAE1C,qDAAwE;AAE3D,QAAA,WAAW,GAAG,IAAI,yBAAW,EAAE,CAAA;AAE5C,SAAgB,sBAAsB,CAAC,EAAY;QAAV,QAAQ,cAAA;IAC/C,OAAO,CACL,uBAAC,iCAAmB,IAAC,MAAM,EAAE,mBAAW,YACtC,uBAAC,wBAAiB,cAChB,uBAAC,kBAAa,cAAE,QAAQ,GAAiB,GACvB,GACA,CACvB,CAAA;AACH,CAAC;AARD,wDAQC"}
1
+ {"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/system/presentation/context/container.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAoC;AACpC,+BAA0C;AAE1C,yDAAkC;AAElC,qDAAmD;AAEnD,IAAM,mBAAmB,GAAG,IAAA,iBAAO,EACjC,cAAM,OAAA,iEAAO,uBAAuB,OAAE,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,mBAAmB,EAArB,CAAqB,CAAC,EAAlE,CAAkE,EACxE;IACE,GAAG,EAAE,KAAK;CACX,CACF,CAAC;AAEW,QAAA,WAAW,GAAG,IAAI,yBAAW,EAAE,CAAA;AAE5C,SAAgB,sBAAsB,CAAC,EAAY;QAAV,QAAQ,cAAA;IAC/C,OAAO,CACL,uBAAC,mBAAmB,IAAC,MAAM,EAAE,mBAAW,YACtC,uBAAC,wBAAiB,cAChB,uBAAC,kBAAa,cAAE,QAAQ,GAAiB,GACvB,GACA,CACvB,CAAA;AACH,CAAC;AARD,wDAQC"}
@@ -1,2 +1,2 @@
1
- export * from "./auth/index.js";
2
- export * from "./container.js";
1
+ export * from "./auth";
2
+ export * from "./container";
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./auth/index.js"), exports);
18
- __exportStar(require("./container.js"), exports);
17
+ __exportStar(require("./auth"), exports);
18
+ __exportStar(require("./container"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export * from './ui/index.js';
2
- export * from './menu/index.js';
1
+ export * from './ui';
2
+ export * from './menu';
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ui/index.js"), exports);
18
- __exportStar(require("./menu/index.js"), exports);
17
+ __exportStar(require("./ui"), exports);
18
+ __exportStar(require("./menu"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export * from './use-load-menu.js';
1
+ export * from './use-load-menu';
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./use-load-menu.js"), exports);
17
+ __exportStar(require("./use-load-menu"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export declare function useLoadMenu(): import("@tanstack/react-query/build/legacy/types").UseQueryResult<import("../../../../system/index.js").LoadMenu.Model, Error>;
1
+ export declare function useLoadMenu(): import("@tanstack/react-query/build/legacy/types").UseQueryResult<import("@/system").LoadMenu.Model, Error>;
@@ -48,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
48
48
  };
49
49
  Object.defineProperty(exports, "__esModule", { value: true });
50
50
  exports.useLoadMenu = void 0;
51
- var system_1 = require("../../../../system/index.js");
51
+ var system_1 = require("@/system");
52
52
  var react_query_1 = require("@tanstack/react-query");
53
53
  function useLoadMenu() {
54
54
  function fetcher() {
@@ -1 +1 @@
1
- export * from "./use-table/index.js";
1
+ export * from "./use-table";
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./use-table/index.js"), exports);
17
+ __exportStar(require("./use-table"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -1,4 +0,0 @@
1
- import { IUseTableProps } from './interfaces.js';
2
- export declare function useTable<T = any, M = any>(props: IUseTableProps<T, M>): {
3
- Table: import("react/jsx-runtime").JSX.Element;
4
- };
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.useTable = void 0;
15
- var jsx_runtime_1 = require("react/jsx-runtime");
16
- var components_1 = require("./components/index.js");
17
- var query_1 = require("./query.js");
18
- function useTable(props) {
19
- var queryTable = props.query && (0, query_1.useQueryTable)(props.query);
20
- return {
21
- Table: (0, jsx_runtime_1.jsx)(components_1.Table, __assign({}, props, { isFetching: queryTable === null || queryTable === void 0 ? void 0 : queryTable.isFetching, tableInformations: queryTable === null || queryTable === void 0 ? void 0 : queryTable.data })),
22
- };
23
- }
24
- exports.useTable = useTable;
25
- //# sourceMappingURL=component.js.map
@@ -1 +1 @@
1
- export * from "./table/index.js";
1
+ export * from "./table";
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./table/index.js"), exports);
17
+ __exportStar(require("./table"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -1,5 +0,0 @@
1
- import { ActionsTable } from '../../../interfaces.js';
2
- export declare function Actions({ actions, table }: {
3
- actions: ActionsTable;
4
- table: any;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,78 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
- return new (P || (P = Promise))(function (resolve, reject) {
16
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
- step((generator = generator.apply(thisArg, _arguments || [])).next());
20
- });
21
- };
22
- var __generator = (this && this.__generator) || function (thisArg, body) {
23
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
- function verb(n) { return function (v) { return step([n, v]); }; }
26
- function step(op) {
27
- if (f) throw new TypeError("Generator is already executing.");
28
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
- if (y = 0, t) op = [op[0] & 2, t.value];
31
- switch (op[0]) {
32
- case 0: case 1: t = op; break;
33
- case 4: _.label++; return { value: op[1], done: false };
34
- case 5: _.label++; y = op[1]; op = [0]; continue;
35
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
- default:
37
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
- if (t[2]) _.ops.pop();
42
- _.trys.pop(); continue;
43
- }
44
- op = body.call(thisArg, _);
45
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
- }
48
- };
49
- var __importDefault = (this && this.__importDefault) || function (mod) {
50
- return (mod && mod.__esModule) ? mod : { "default": mod };
51
- };
52
- Object.defineProperty(exports, "__esModule", { value: true });
53
- exports.Actions = void 0;
54
- var jsx_runtime_1 = require("react/jsx-runtime");
55
- var react_1 = require("react");
56
- var link_1 = __importDefault(require("next/link"));
57
- var semantic_ui_react_1 = require("semantic-ui-react");
58
- var dynamic_form_handler_1 = require("../../../../../../../../ui/components/form/handler/dynamic_form_handler/index.js");
59
- function Actions(_a) {
60
- var actions = _a.actions, table = _a.table;
61
- var _b = (0, react_1.useState)(false), open = _b[0], setOpen = _b[1];
62
- function onSuccess(data) {
63
- return __awaiter(this, void 0, void 0, function () {
64
- return __generator(this, function (_a) {
65
- switch (_a.label) {
66
- case 0: return [4 /*yield*/, actions.edit.onSucess(data)];
67
- case 1:
68
- _a.sent();
69
- setOpen(false);
70
- return [2 /*return*/];
71
- }
72
- });
73
- });
74
- }
75
- return ((0, jsx_runtime_1.jsxs)("td", { style: { width: '100px' }, children: [actions.edit && ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Modal, { open: open, onClose: function () { return setOpen(false); }, style: { maxWidth: 512, borderRadius: 10 }, trigger: (0, jsx_runtime_1.jsx)("button", { type: 'button', children: "Editar" }), content: (0, jsx_runtime_1.jsx)(dynamic_form_handler_1.DynamicFormHandler, __assign({}, actions.edit, { onSucess: onSuccess, tableItem: table })), onOpen: function () { return setOpen(true); } })), actions.detail && (0, jsx_runtime_1.jsx)(link_1.default, { href: actions.detail(table), children: "Detalhe" }), actions.delete && ((0, jsx_runtime_1.jsx)("button", { type: 'button', onClick: function () { return actions.delete(table); }, children: "Excluir" }))] }));
76
- }
77
- exports.Actions = Actions;
78
- //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import { ITableProps } from './interfaces.js';
1
+ import { ITableProps } from './interfaces';
2
2
  export declare function Table({ configs, isFetching, columnsConfiguration, tableInformations }: ITableProps): import("react/jsx-runtime").JSX.Element;
@@ -37,13 +37,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.Table = void 0;
38
38
  var jsx_runtime_1 = require("react/jsx-runtime");
39
39
  var router_1 = require("next/router");
40
- var ui_1 = require("../../../../../../../ui/index.js");
41
- var system_1 = require("../../../../../../../system/index.js");
42
- var actions_1 = require("./actions/index.js");
43
- var thead_item_1 = require("./thead-item/index.js");
44
- var pagination_1 = require("./pagination/index.js");
45
- var loader_table_1 = require("./loader-table/index.js");
46
- var S = __importStar(require("./styles.js"));
40
+ var ui_1 = require("@/ui");
41
+ var system_1 = require("@/system");
42
+ var actions_1 = require("./actions");
43
+ var thead_item_1 = require("./thead-item");
44
+ var pagination_1 = require("./pagination");
45
+ var loader_table_1 = require("./loader-table");
46
+ var S = __importStar(require("./styles"));
47
47
  function Table(_a) {
48
48
  var _b, _c, _d;
49
49
  var configs = _a.configs, isFetching = _a.isFetching, columnsConfiguration = _a.columnsConfiguration, tableInformations = _a.tableInformations;
@@ -1,5 +1,5 @@
1
- import { List, Pagination } from "../../../../../../../system/index.js";
2
- import { IUseTableProps } from "../../interfaces.js";
1
+ import { List, Pagination } from "@/system";
2
+ import { IUseTableProps } from "../../interfaces";
3
3
  type colunm = keyof any;
4
4
  interface IShowHiden {
5
5
  text: string;
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.LoaderTable = void 0;
27
27
  var jsx_runtime_1 = require("react/jsx-runtime");
28
- var S = __importStar(require("./styles.js"));
28
+ var S = __importStar(require("./styles"));
29
29
  function LoaderTable() {
30
30
  return ((0, jsx_runtime_1.jsx)(S.LoaderTable, { children: "LOADER COLOCAR" }));
31
31
  }
@@ -1,2 +1,2 @@
1
- import { PaginationModel } from "../../../../../../../../system/index.js";
1
+ import { PaginationModel } from "@/system";
2
2
  export declare function Pagination({ page, endPage, pageSize, totalItems, hasNextPage, hasPreviousPage, }: PaginationModel): import("react/jsx-runtime").JSX.Element;
@@ -27,9 +27,9 @@ exports.Pagination = void 0;
27
27
  var jsx_runtime_1 = require("react/jsx-runtime");
28
28
  var react_1 = require("react");
29
29
  var router_1 = require("next/router");
30
- var ui_1 = require("../../../../../../../../ui/index.js");
31
- var service_1 = require("./service.js");
32
- var S = __importStar(require("./styles.js"));
30
+ var ui_1 = require("@/ui");
31
+ var service_1 = require("./service");
32
+ var S = __importStar(require("./styles"));
33
33
  function Pagination(_a) {
34
34
  var page = _a.page, endPage = _a.endPage, pageSize = _a.pageSize, totalItems = _a.totalItems, hasNextPage = _a.hasNextPage, hasPreviousPage = _a.hasPreviousPage;
35
35
  var _b = (0, react_1.useState)(null), pagination = _b[0], setPagination = _b[1];
@@ -1,2 +1,2 @@
1
- import { ITHeadItemProps } from './interfaces.js';
1
+ import { ITHeadItemProps } from './interfaces';
2
2
  export declare function THeadItem({ colunm, index, disableOrdenationTable }: ITHeadItemProps): import("react/jsx-runtime").JSX.Element;
@@ -27,8 +27,8 @@ exports.THeadItem = void 0;
27
27
  var jsx_runtime_1 = require("react/jsx-runtime");
28
28
  var react_1 = require("react");
29
29
  var router_1 = require("next/router");
30
- var ui_1 = require("../../../../../../../../ui/index.js");
31
- var S = __importStar(require("./styles.js"));
30
+ var ui_1 = require("@/ui");
31
+ var S = __importStar(require("./styles"));
32
32
  function THeadItem(_a) {
33
33
  var _b, _c;
34
34
  var colunm = _a.colunm, index = _a.index, disableOrdenationTable = _a.disableOrdenationTable;
@@ -1,4 +1,4 @@
1
- import { Column } from "../../../interfaces.js";
1
+ import { Column } from "../../../interfaces";
2
2
  export interface ITHeadItemProps {
3
3
  index: number;
4
4
  colunm: Column;
@@ -1,3 +0,0 @@
1
- export * from "./component.js";
2
- export * from "./components/index.js";
3
- export * from "./interfaces.js";
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./component.js"), exports);
18
- __exportStar(require("./components/index.js"), exports);
19
- __exportStar(require("./interfaces.js"), exports);
20
- //# sourceMappingURL=index.js.map
@@ -1,59 +0,0 @@
1
- /// <reference types="react" />
2
- import { PaginationModel } from '../../../../../system/index.js';
3
- import { DynamicFormHandlerProps } from '../../../../../ui/components/form/handler/dynamic_form_handler/interfaces.js';
4
- interface Column<T = any> {
5
- id: keyof T;
6
- label: string;
7
- width?: number;
8
- Component?: {
9
- Element: (props: {
10
- [key in keyof T]?: any;
11
- }) => JSX.Element;
12
- allProps?: boolean;
13
- props: {
14
- [key in keyof T]?: any;
15
- };
16
- defaultProps?: {
17
- [key: string]: any;
18
- };
19
- };
20
- }
21
- interface IParamsTable {
22
- page?: number;
23
- }
24
- interface IConfigurationsTable {
25
- tableData?: any;
26
- isLoading?: boolean;
27
- errorMessage: string;
28
- disableGetFilter?: boolean;
29
- disablePagination?: boolean;
30
- enableSearchInSelf?: boolean;
31
- pagination?: PaginationModel;
32
- disableOrdenationTable?: boolean;
33
- }
34
- type QueryTable<M = any> = {
35
- user?: any;
36
- container?: any;
37
- Types?: any;
38
- queryKey: M;
39
- requireUser?: boolean;
40
- };
41
- type ActionsTable<T = any> = {
42
- delete?: (table: {
43
- [key in keyof T]: T[key];
44
- }) => void;
45
- edit?: DynamicFormHandlerProps<T>;
46
- detail?: (table: {
47
- [key in keyof T]: string;
48
- }) => string;
49
- };
50
- type ColumnsConfiguration<T = any> = {
51
- columns: Column<T>[];
52
- actions?: ActionsTable<T>;
53
- };
54
- interface IUseTableProps<T = any, M = any> {
55
- query?: QueryTable<M>;
56
- configs: IConfigurationsTable;
57
- columnsConfiguration: ColumnsConfiguration<T>;
58
- }
59
- export type { Column, QueryTable, ActionsTable, IParamsTable, IUseTableProps, IConfigurationsTable, ColumnsConfiguration, };
@@ -1,3 +0,0 @@
1
- import { List, Pagination } from '../../../../../system/index.js';
2
- import { QueryTable } from './interfaces.js';
3
- export declare function useQueryTable({ queryKey, user, requireUser, Types, container }: QueryTable): import("@tanstack/react-query/build/legacy/types").UseQueryResult<List<any> & Pagination, Error>;