infinity-forge 0.5.3 → 0.5.4

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 (388) 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 +11 -0
  73. package/dist/system/container/admin/auth/index.d.ts +2 -0
  74. package/dist/system/container/admin/auth/index.js +19 -0
  75. package/dist/system/container/admin/index.d.ts +3 -0
  76. package/dist/system/container/admin/index.js +20 -0
  77. package/dist/system/container/admin/menu/container.js +11 -0
  78. package/dist/system/container/admin/menu/index.d.ts +2 -0
  79. package/dist/system/container/admin/menu/index.js +19 -0
  80. package/dist/system/container/admin/users/container.js +12 -0
  81. package/dist/system/container/admin/users/index.d.ts +2 -0
  82. package/dist/system/container/admin/users/index.js +19 -0
  83. package/dist/system/container/decorators/authorize-http-client-decorator.d.ts +8 -0
  84. package/dist/system/container/decorators/authorize-http-client-decorator.js +117 -0
  85. package/dist/system/container/decorators/index.d.ts +1 -0
  86. package/dist/system/container/decorators/index.js +18 -0
  87. package/dist/system/container/index.d.ts +2 -0
  88. package/dist/system/container/index.js +19 -0
  89. package/dist/system/container/infra/container.js +15 -0
  90. package/dist/system/container/infra/index.d.ts +3 -0
  91. package/dist/system/container/infra/index.js +20 -0
  92. package/dist/system/container/main.d.ts +4 -0
  93. package/dist/system/container/main.js +12 -0
  94. package/dist/system/container/types.js +17 -0
  95. package/dist/system/data/index.d.ts +1 -0
  96. package/dist/system/data/index.js +18 -0
  97. package/dist/system/data/use-cases/auth/index.d.ts +1 -0
  98. package/dist/system/data/use-cases/auth/index.js +18 -0
  99. package/dist/system/data/use-cases/auth/remote-auth-admin.d.ts +10 -0
  100. package/dist/system/data/use-cases/auth/remote-auth-admin.js +116 -0
  101. package/dist/system/data/use-cases/index.d.ts +3 -0
  102. package/dist/system/data/use-cases/index.js +20 -0
  103. package/dist/system/data/use-cases/menu/index.d.ts +1 -0
  104. package/dist/system/data/use-cases/menu/index.js +18 -0
  105. package/dist/system/data/use-cases/menu/remote-get-menu.d.ts +8 -0
  106. package/dist/system/data/use-cases/menu/remote-get-menu.js +109 -0
  107. package/dist/system/data/use-cases/users/index.d.ts +2 -0
  108. package/dist/system/data/use-cases/users/index.js +19 -0
  109. package/dist/system/data/use-cases/users/remote-load-user-admin.d.ts +8 -0
  110. package/dist/system/data/use-cases/users/remote-load-user-admin.js +109 -0
  111. package/dist/system/data/use-cases/users/remote-users.d.ts +12 -0
  112. package/dist/system/data/use-cases/users/remote-users.js +177 -0
  113. package/dist/system/domain/generics/index.d.ts +2 -0
  114. package/dist/system/domain/generics/index.js +19 -0
  115. package/dist/system/domain/index.d.ts +3 -0
  116. package/dist/system/domain/index.js +20 -0
  117. package/dist/system/domain/protocols/cache/get-storage.d.ts +4 -0
  118. package/dist/system/domain/protocols/cache/index.d.ts +3 -0
  119. package/dist/system/domain/protocols/cache/index.js +20 -0
  120. package/dist/system/domain/protocols/cache/set-storage.d.ts +4 -0
  121. package/dist/system/domain/protocols/http/errors/http-errors/index.d.ts +5 -0
  122. package/dist/system/domain/protocols/http/errors/http-errors/index.js +22 -0
  123. package/dist/system/domain/protocols/http/errors/index.d.ts +2 -0
  124. package/dist/system/domain/protocols/http/errors/index.js +19 -0
  125. package/dist/system/domain/protocols/http/errors/system-errors-model/index.d.ts +1 -0
  126. package/dist/system/domain/protocols/http/errors/system-errors-model/index.js +18 -0
  127. package/dist/system/domain/protocols/http/http-client.d.ts +33 -0
  128. package/dist/system/domain/protocols/http/index.d.ts +2 -0
  129. package/dist/system/domain/protocols/http/index.js +19 -0
  130. package/dist/system/domain/protocols/index.d.ts +2 -0
  131. package/dist/system/domain/protocols/index.js +19 -0
  132. package/dist/system/domain/use-cases/auth/admin/index.d.ts +1 -0
  133. package/dist/system/domain/use-cases/auth/admin/index.js +18 -0
  134. package/dist/system/domain/use-cases/auth/index.d.ts +1 -0
  135. package/dist/system/domain/use-cases/auth/index.js +18 -0
  136. package/dist/system/domain/use-cases/index.d.ts +3 -0
  137. package/dist/system/domain/use-cases/index.js +20 -0
  138. package/dist/system/domain/use-cases/menu/index.d.ts +1 -0
  139. package/dist/system/domain/use-cases/menu/index.js +18 -0
  140. package/dist/system/domain/use-cases/menu/load-menu.d.ts +15 -0
  141. package/dist/system/domain/use-cases/users/delete-user.d.ts +10 -0
  142. package/dist/system/domain/use-cases/users/edit-user.d.ts +8 -0
  143. package/dist/system/domain/use-cases/users/get-detail-user.d.ts +10 -0
  144. package/dist/system/domain/use-cases/users/index.d.ts +6 -0
  145. package/dist/system/domain/use-cases/users/index.js +23 -0
  146. package/dist/system/domain/use-cases/users/load-all-users.d.ts +23 -0
  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 +6 -0
  150. package/dist/system/infra/cache/index.d.ts +2 -0
  151. package/dist/system/infra/cache/index.js +19 -0
  152. package/dist/system/infra/cache/storage-type.d.ts +2 -0
  153. package/dist/system/infra/http/axios-http-client.d.ts +4 -0
  154. package/dist/system/infra/http/axios-http-client.js +115 -0
  155. package/dist/system/infra/http/index.d.ts +1 -0
  156. package/dist/system/infra/http/index.js +18 -0
  157. package/dist/system/infra/index.d.ts +3 -0
  158. package/dist/system/infra/index.js +20 -0
  159. package/dist/system/infra/type-models/index.d.ts +2 -0
  160. package/dist/system/infra/type-models/index.js +19 -0
  161. package/dist/system/presentation/components/data/avatar/index.js +2 -2
  162. package/dist/system/presentation/components/data/cards/index.d.ts +1 -1
  163. package/dist/system/presentation/components/data/cards/index.js +1 -1
  164. package/dist/system/presentation/components/data/cards/message-card/index.d.ts +1 -1
  165. package/dist/system/presentation/components/data/cards/message-card/index.js +3 -3
  166. package/dist/system/presentation/components/data/index.d.ts +8 -8
  167. package/dist/system/presentation/components/data/index.js +8 -8
  168. package/dist/system/presentation/components/data/logo/index.js +2 -2
  169. package/dist/system/presentation/components/data/overlay/index.d.ts +1 -1
  170. package/dist/system/presentation/components/data/overlay/index.js +2 -2
  171. package/dist/system/presentation/components/data/page-wrapper/index.d.ts +1 -1
  172. package/dist/system/presentation/components/data/page-wrapper/index.js +2 -2
  173. package/dist/system/presentation/components/data/popover/index.d.ts +1 -1
  174. package/dist/system/presentation/components/data/sign-up/index.js +3 -3
  175. package/dist/system/presentation/components/data/skeleton/index.d.ts +1 -1
  176. package/dist/system/presentation/components/data/skeleton/index.js +2 -2
  177. package/dist/system/presentation/components/index.d.ts +3 -3
  178. package/dist/system/presentation/components/index.js +3 -3
  179. package/dist/system/presentation/components/layout/component.js +3 -3
  180. package/dist/system/presentation/components/layout/header/components/index.d.ts +2 -2
  181. package/dist/system/presentation/components/layout/header/components/index.js +2 -2
  182. package/dist/system/presentation/components/layout/header/components/menu-right/index.js +6 -6
  183. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.d.ts +1 -1
  184. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +3 -3
  185. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +1 -1
  186. package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +4 -4
  187. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js +3 -3
  188. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +3 -3
  189. package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +4 -4
  190. package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js +3 -3
  191. package/dist/system/presentation/components/layout/header/components/search-modal/index.js +4 -4
  192. package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +3 -3
  193. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +2 -2
  194. package/dist/system/presentation/components/layout/header/index.js +1 -1
  195. package/dist/system/presentation/components/layout/header/version-01/index.js +3 -3
  196. package/dist/system/presentation/components/layout/index.d.ts +3 -3
  197. package/dist/system/presentation/components/layout/index.js +3 -3
  198. package/dist/system/presentation/components/layout/menu/components/index.d.ts +2 -2
  199. package/dist/system/presentation/components/layout/menu/components/index.js +2 -2
  200. package/dist/system/presentation/components/layout/menu/components/menu/index.js +3 -3
  201. package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js +2 -2
  202. package/dist/system/presentation/components/layout/menu/index.js +1 -1
  203. package/dist/system/presentation/components/layout/menu/version-01/index.js +3 -3
  204. package/dist/system/presentation/components/pages/index.d.ts +1 -1
  205. package/dist/system/presentation/components/pages/index.js +1 -1
  206. package/dist/system/presentation/components/pages/users/index.d.ts +1 -1
  207. package/dist/system/presentation/components/pages/users/index.js +1 -1
  208. package/dist/system/presentation/components/pages/users/page.js +2 -2
  209. package/dist/system/presentation/components/pages/users/table/columns.d.ts +2 -2
  210. package/dist/system/presentation/components/pages/users/table/delete.js +2 -2
  211. package/dist/system/presentation/components/pages/users/table/edit.d.ts +2 -2
  212. package/dist/system/presentation/components/pages/users/table/edit.js +2 -2
  213. package/dist/system/presentation/components/pages/users/table/index.d.ts +3 -3
  214. package/dist/system/presentation/components/pages/users/table/index.js +3 -3
  215. package/dist/system/presentation/configs/index.d.ts +2 -2
  216. package/dist/system/presentation/configs/index.js +2 -2
  217. package/dist/system/presentation/context/auth/authenticated/index.js +1 -1
  218. package/dist/system/presentation/context/auth/context.d.ts +1 -1
  219. package/dist/system/presentation/context/auth/context.js +2 -2
  220. package/dist/system/presentation/context/auth/index.d.ts +5 -5
  221. package/dist/system/presentation/context/auth/index.js +5 -5
  222. package/dist/system/presentation/context/auth/interfaces.d.ts +1 -1
  223. package/dist/system/presentation/context/auth/login/index.js +3 -3
  224. package/dist/system/presentation/context/auth/private-page/index.js +3 -3
  225. package/dist/system/presentation/context/auth/unauthenticated/index.js +1 -1
  226. package/dist/system/presentation/context/container.js +2 -2
  227. package/dist/system/presentation/context/index.d.ts +2 -2
  228. package/dist/system/presentation/context/index.js +2 -2
  229. package/dist/system/presentation/hooks/index.d.ts +2 -2
  230. package/dist/system/presentation/hooks/index.js +2 -2
  231. package/dist/system/presentation/hooks/menu/index.d.ts +1 -1
  232. package/dist/system/presentation/hooks/menu/index.js +1 -1
  233. package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +1 -1
  234. package/dist/system/presentation/hooks/menu/use-load-menu.js +1 -1
  235. package/dist/system/presentation/hooks/ui/index.d.ts +1 -1
  236. package/dist/system/presentation/hooks/ui/index.js +1 -1
  237. package/dist/system/presentation/hooks/ui/use-table/component.d.ts +4 -0
  238. package/dist/system/presentation/hooks/ui/use-table/component.js +25 -0
  239. package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +1 -1
  240. package/dist/system/presentation/hooks/ui/use-table/components/index.js +1 -1
  241. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +5 -0
  242. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +78 -0
  243. package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +1 -1
  244. package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +7 -7
  245. package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +2 -2
  246. package/dist/system/presentation/hooks/ui/use-table/components/table/loader-table/index.js +1 -1
  247. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +1 -1
  248. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +3 -3
  249. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +1 -1
  250. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +2 -2
  251. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +1 -1
  252. package/dist/system/presentation/hooks/ui/use-table/index.d.ts +3 -0
  253. package/dist/system/presentation/hooks/ui/use-table/index.js +20 -0
  254. package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +59 -0
  255. package/dist/system/presentation/hooks/ui/use-table/query.d.ts +3 -0
  256. package/dist/system/presentation/hooks/ui/use-table/query.js +68 -0
  257. package/dist/system/presentation/index.d.ts +5 -5
  258. package/dist/system/presentation/index.js +5 -5
  259. package/dist/system/presentation/utils/index.d.ts +1 -0
  260. package/dist/system/presentation/utils/index.js +18 -0
  261. package/dist/system/presentation/utils/use-query/index.d.ts +1 -0
  262. package/dist/system/presentation/utils/use-query/index.js +18 -0
  263. package/dist/ui/components/accordion/index..d.ts +1 -1
  264. package/dist/ui/components/accordion/index..js +2 -2
  265. package/dist/ui/components/breadcrumb/index.d.ts +1 -1
  266. package/dist/ui/components/breadcrumb/index.js +1 -1
  267. package/dist/ui/components/button/component.d.ts +1 -1
  268. package/dist/ui/components/button/component.js +2 -2
  269. package/dist/ui/components/button/index.d.ts +2 -2
  270. package/dist/ui/components/button/index.js +2 -2
  271. package/dist/ui/components/button/interfaces.d.ts +1 -1
  272. package/dist/ui/components/container/index.d.ts +1 -1
  273. package/dist/ui/components/error-boundary/component.d.ts +1 -1
  274. package/dist/ui/components/error-boundary/component.js +1 -1
  275. package/dist/ui/components/error-boundary/error-body.d.ts +1 -1
  276. package/dist/ui/components/error-boundary/index.d.ts +2 -2
  277. package/dist/ui/components/error-boundary/index.js +2 -2
  278. package/dist/ui/components/form/checkbox/index.js +2 -2
  279. package/dist/ui/components/form/handler/custom-submit/index.d.ts +16 -0
  280. package/dist/ui/components/form/handler/custom-submit/index.js +22 -0
  281. package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +2 -0
  282. package/dist/ui/components/form/handler/dynamic_form_handler/index.js +62 -0
  283. package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +21 -0
  284. package/dist/ui/components/form/handler/form-handler/index.d.ts +1 -1
  285. package/dist/ui/components/form/handler/form-handler/index.js +5 -5
  286. package/dist/ui/components/form/handler/index.d.ts +1 -1
  287. package/dist/ui/components/form/handler/index.js +1 -1
  288. package/dist/ui/components/form/handler/interfaces.d.ts +18 -0
  289. package/dist/ui/components/form/index.d.ts +12 -12
  290. package/dist/ui/components/form/index.js +12 -12
  291. package/dist/ui/components/form/input/index.d.ts +2 -0
  292. package/dist/ui/components/form/input/index.js +23 -0
  293. package/dist/ui/components/form/input-control/error/index.d.ts +2 -0
  294. package/dist/ui/components/form/input-control/error/index.js +40 -0
  295. package/dist/ui/components/form/input-control/index.d.ts +2 -0
  296. package/dist/ui/components/form/input-control/index.js +38 -0
  297. package/dist/ui/components/form/input-control/loader-input/index.js +34 -0
  298. package/dist/ui/components/form/input-cpf-cnpj/index.d.ts +1 -1
  299. package/dist/ui/components/form/input-cpf-cnpj/index.js +1 -1
  300. package/dist/ui/components/form/input-file/index.d.ts +1 -1
  301. package/dist/ui/components/form/input-file/index.js +1 -1
  302. package/dist/ui/components/form/input-mask/index.d.ts +1 -1
  303. package/dist/ui/components/form/input-mask/index.js +1 -1
  304. package/dist/ui/components/form/input-password/index.d.ts +1 -1
  305. package/dist/ui/components/form/input-password/index.js +2 -2
  306. package/dist/ui/components/form/input-switch/index.d.ts +1 -1
  307. package/dist/ui/components/form/input-switch/index.js +1 -1
  308. package/dist/ui/components/form/radio/index.js +46 -0
  309. package/dist/ui/components/form/select/index.d.ts +2 -0
  310. package/dist/ui/components/form/select/index.js +68 -0
  311. package/dist/ui/components/form/select/interfaces.d.ts +22 -0
  312. package/dist/ui/components/form/textarea/index.d.ts +1 -1
  313. package/dist/ui/components/form/textarea/index.js +1 -1
  314. package/dist/ui/components/index.d.ts +10 -10
  315. package/dist/ui/components/index.js +10 -10
  316. package/dist/ui/components/loader-circle/index.d.ts +2 -0
  317. package/dist/ui/components/loading-screen/index.d.ts +1 -1
  318. package/dist/ui/components/loading-screen/index.js +3 -3
  319. package/dist/ui/components/menu-mobile/components/nav-links/index.d.ts +1 -1
  320. package/dist/ui/components/menu-mobile/components/nav-links/index.js +2 -2
  321. package/dist/ui/components/menu-mobile/components/nav-links/interfaces.d.ts +1 -1
  322. package/dist/ui/components/menu-mobile/index.d.ts +1 -1
  323. package/dist/ui/components/menu-mobile/index.js +4 -4
  324. package/dist/ui/components/menu-mobile/top/index.d.ts +1 -1
  325. package/dist/ui/components/menu-mobile/top/index.js +2 -2
  326. package/dist/ui/components/menu-mobile/top/interfaces.d.ts +1 -1
  327. package/dist/ui/components/next-image/index.d.ts +1 -1
  328. package/dist/ui/components/next-image/index.js +3 -3
  329. package/dist/ui/components/sidebar/index.d.ts +1 -1
  330. package/dist/ui/components/sidebar/index.js +1 -1
  331. package/dist/ui/icons/render/Eye.d.ts +1 -1
  332. package/dist/ui/icons/render/Globe.d.ts +1 -1
  333. package/dist/ui/icons/render/LongArrowRight.d.ts +1 -1
  334. package/dist/ui/index.d.ts +5 -5
  335. package/dist/ui/index.js +5 -5
  336. package/package.json +1 -1
  337. package/dist/system/domain/generics/return-type.d.ts +0 -8
  338. package/dist/system/domain/generics/return-type.js +0 -3
  339. package/dist/system/domain/generics/return-type.js.map +0 -1
  340. package/dist/system/presentation/configs/menu.d.ts +0 -16
  341. package/dist/system/presentation/configs/menu.js +0 -138
  342. package/dist/system/presentation/configs/menu.js.map +0 -1
  343. package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/index.d.ts +0 -1
  344. package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/index.js +0 -33
  345. package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/index.js.map +0 -1
  346. package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/styles.d.ts +0 -4
  347. package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/styles.js +0 -14
  348. package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/styles.js.map +0 -1
  349. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.d.ts +0 -1
  350. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.js +0 -33
  351. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.js.map +0 -1
  352. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.d.ts +0 -4
  353. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.js +0 -14
  354. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.js.map +0 -1
  355. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/index.d.ts +0 -2
  356. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/index.js +0 -56
  357. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/index.js.map +0 -1
  358. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.d.ts +0 -7
  359. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.js +0 -3
  360. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.js.map +0 -1
  361. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/styles.d.ts +0 -8
  362. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/styles.js +0 -14
  363. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/styles.js.map +0 -1
  364. package/dist/system/presentation/hooks/ui/use-table/query/index.d.ts +0 -6
  365. package/dist/system/presentation/hooks/ui/use-table/query/index.js +0 -30
  366. package/dist/system/presentation/hooks/ui/use-table/query/index.js.map +0 -1
  367. package/dist/system/presentation/hooks/ui/use-table/query/interfaces.d.ts +0 -33
  368. package/dist/system/presentation/hooks/ui/use-table/query/interfaces.js +0 -3
  369. package/dist/system/presentation/hooks/ui/use-table/query/interfaces.js.map +0 -1
  370. package/dist/system/presentation/hooks/ui/use-table/query/service.d.ts +0 -25
  371. package/dist/system/presentation/hooks/ui/use-table/query/service.js +0 -113
  372. package/dist/system/presentation/hooks/ui/use-table/query/service.js.map +0 -1
  373. package/dist/system/presentation/hooks/ui/use-table/utils/buffer.d.ts +0 -3
  374. package/dist/system/presentation/hooks/ui/use-table/utils/buffer.js +0 -32
  375. package/dist/system/presentation/hooks/ui/use-table/utils/buffer.js.map +0 -1
  376. package/dist/system/presentation/hooks/ui/use-table/utils/filter-empty-values.d.ts +0 -1
  377. package/dist/system/presentation/hooks/ui/use-table/utils/filter-empty-values.js +0 -22
  378. package/dist/system/presentation/hooks/ui/use-table/utils/filter-empty-values.js.map +0 -1
  379. package/dist/system/presentation/hooks/ui/use-table/utils/index.d.ts +0 -4
  380. package/dist/system/presentation/hooks/ui/use-table/utils/index.js +0 -21
  381. package/dist/system/presentation/hooks/ui/use-table/utils/index.js.map +0 -1
  382. package/dist/system/presentation/hooks/ui/use-table/utils/is-object-empty.d.ts +0 -1
  383. package/dist/system/presentation/hooks/ui/use-table/utils/is-object-empty.js +0 -12
  384. package/dist/system/presentation/hooks/ui/use-table/utils/is-object-empty.js.map +0 -1
  385. package/dist/system/presentation/hooks/ui/use-table/utils/update-route.d.ts +0 -6
  386. package/dist/system/presentation/hooks/ui/use-table/utils/update-route.js +0 -31
  387. package/dist/system/presentation/hooks/ui/use-table/utils/update-route.js.map +0 -1
  388. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,4 +1,4 @@
1
- import { AuthAdmin, UserAdmin } from '@/system';
1
+ import { AuthAdmin, UserAdmin } from '../../../../system/index.js';
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");
29
- var ui_1 = require("@/ui");
30
- var S = __importStar(require("./styles"));
28
+ var context_1 = require("../context.js");
29
+ var ui_1 = require("../../../../../ui/index.js");
30
+ var S = __importStar(require("./styles.js"));
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");
6
- var login_1 = require("../login");
7
- var context_1 = require("../context");
5
+ var ui_1 = require("../../../../../ui/index.js");
6
+ var login_1 = require("../login/index.js");
7
+ var context_1 = require("../context.js");
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");
5
+ var context_1 = require("../context.js");
6
6
  function UnauthenticatedTemplate(_a) {
7
7
  var children = _a.children;
8
8
  var user = (0, context_1.useAuthAdmin)().user;
@@ -28,8 +28,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.InfinityForgeProviders = exports.queryClient = void 0;
30
30
  var jsx_runtime_1 = require("react/jsx-runtime");
31
- var ui_1 = require("@/ui");
32
- var auth_1 = require("./auth");
31
+ var ui_1 = require("../../../ui/index.js");
32
+ var auth_1 = require("./auth/index.js");
33
33
  var dynamic_1 = __importDefault(require("next/dynamic"));
34
34
  var react_query_1 = require("@tanstack/react-query");
35
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; }); }, {
@@ -1,2 +1,2 @@
1
- export * from "./auth";
2
- export * from "./container";
1
+ export * from "./auth/index.js";
2
+ export * from "./container.js";
@@ -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"), exports);
18
- __exportStar(require("./container"), exports);
17
+ __exportStar(require("./auth/index.js"), exports);
18
+ __exportStar(require("./container.js"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export * from './ui';
2
- export * from './menu';
1
+ export * from './ui/index.js';
2
+ export * from './menu/index.js';
@@ -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"), exports);
18
- __exportStar(require("./menu"), exports);
17
+ __exportStar(require("./ui/index.js"), exports);
18
+ __exportStar(require("./menu/index.js"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export * from './use-load-menu';
1
+ export * from './use-load-menu.js';
@@ -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"), exports);
17
+ __exportStar(require("./use-load-menu.js"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export declare function useLoadMenu(): import("@tanstack/react-query/build/legacy/types").UseQueryResult<import("@/system").LoadMenu.Model, Error>;
1
+ export declare function useLoadMenu(): import("@tanstack/react-query/build/legacy/types").UseQueryResult<import("../../../../system/index.js").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");
51
+ var system_1 = require("../../../../system/index.js");
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";
1
+ export * from "./use-table/index.js";
@@ -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"), exports);
17
+ __exportStar(require("./use-table/index.js"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,4 @@
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
+ };
@@ -0,0 +1,25 @@
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";
1
+ export * from "./table/index.js";
@@ -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"), exports);
17
+ __exportStar(require("./table/index.js"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,78 @@
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';
1
+ import { ITableProps } from './interfaces.js';
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");
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"));
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"));
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";
2
- import { IUseTableProps } from "../../interfaces";
1
+ import { List, Pagination } from "../../../../../../../system/index.js";
2
+ import { IUseTableProps } from "../../interfaces.js";
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"));
28
+ var S = __importStar(require("./styles.js"));
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";
1
+ import { PaginationModel } from "../../../../../../../../system/index.js";
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");
31
- var service_1 = require("./service");
32
- var S = __importStar(require("./styles"));
30
+ var ui_1 = require("../../../../../../../../ui/index.js");
31
+ var service_1 = require("./service.js");
32
+ var S = __importStar(require("./styles.js"));
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';
1
+ import { ITHeadItemProps } from './interfaces.js';
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");
31
- var S = __importStar(require("./styles"));
30
+ var ui_1 = require("../../../../../../../../ui/index.js");
31
+ var S = __importStar(require("./styles.js"));
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";
1
+ import { Column } from "../../../interfaces.js";
2
2
  export interface ITHeadItemProps {
3
3
  index: number;
4
4
  colunm: Column;
@@ -0,0 +1,3 @@
1
+ export * from "./component.js";
2
+ export * from "./components/index.js";
3
+ export * from "./interfaces.js";
@@ -0,0 +1,20 @@
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
@@ -0,0 +1,59 @@
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, };
@@ -0,0 +1,3 @@
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>;
@@ -0,0 +1,68 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
50
+ exports.useQueryTable = void 0;
51
+ var router_1 = require("next/router");
52
+ var react_query_1 = require("@tanstack/react-query");
53
+ var system_1 = require("../../../../../system/index.js");
54
+ function useQueryTable(_a) {
55
+ var _this = this;
56
+ var queryKey = _a.queryKey, user = _a.user, requireUser = _a.requireUser, Types = _a.Types, container = _a.container;
57
+ var router = (0, router_1.useRouter)();
58
+ return (0, react_query_1.useQuery)(__assign(__assign({ queryKey: [queryKey], queryFn: function () { return __awaiter(_this, void 0, void 0, function () {
59
+ return __generator(this, function (_a) {
60
+ switch (_a.label) {
61
+ case 0: return [4 /*yield*/, container.get(Types[queryKey]).loadAll(router.query)];
62
+ case 1: return [2 /*return*/, _a.sent()];
63
+ }
64
+ });
65
+ }); } }, system_1.callApiOneTime), { enabled: router.isReady && requireUser ? !!(user) : true }));
66
+ }
67
+ exports.useQueryTable = useQueryTable;
68
+ //# sourceMappingURL=query.js.map
@@ -1,5 +1,5 @@
1
- export * from './utils';
2
- export * from './hooks';
3
- export * from './configs';
4
- export * from './context';
5
- export * from './components';
1
+ export * from './utils/index.js';
2
+ export * from './hooks/index.js';
3
+ export * from './configs/index.js';
4
+ export * from './context/index.js';
5
+ export * from './components/index.js';
@@ -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("./utils"), exports);
18
- __exportStar(require("./hooks"), exports);
19
- __exportStar(require("./configs"), exports);
20
- __exportStar(require("./context"), exports);
21
- __exportStar(require("./components"), exports);
17
+ __exportStar(require("./utils/index.js"), exports);
18
+ __exportStar(require("./hooks/index.js"), exports);
19
+ __exportStar(require("./configs/index.js"), exports);
20
+ __exportStar(require("./context/index.js"), exports);
21
+ __exportStar(require("./components/index.js"), exports);
22
22
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ export * from './use-query/index.js';
@@ -0,0 +1,18 @@
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("./use-query/index.js"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ export * from './call-api-one-time.js';
@@ -0,0 +1,18 @@
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("./call-api-one-time.js"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import { AccordionProps } from './interfaces';
1
+ import { AccordionProps } from './interfaces.js';
2
2
  export declare function Accordion({ title, openIcon, closeIcon, children }: AccordionProps): import("react/jsx-runtime").JSX.Element;
@@ -26,8 +26,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.Accordion = void 0;
27
27
  var jsx_runtime_1 = require("react/jsx-runtime");
28
28
  var react_1 = require("react");
29
- var ui_1 = require("@/ui");
30
- var S = __importStar(require("./styles"));
29
+ var ui_1 = require("../../../ui/index.js");
30
+ var S = __importStar(require("./styles.js"));
31
31
  function Accordion(_a) {
32
32
  var title = _a.title, openIcon = _a.openIcon, closeIcon = _a.closeIcon, children = _a.children;
33
33
  var _b = (0, react_1.useState)(false), isOpen = _b[0], setIsOpen = _b[1];
@@ -1,2 +1,2 @@
1
- import { IBreadcrumbProps } from './interfaces';
1
+ import { IBreadcrumbProps } from './interfaces.js';
2
2
  export declare function Breadcrumb({ links }: IBreadcrumbProps): import("react/jsx-runtime").JSX.Element;