infinity-forge 0.3.1 → 0.3.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 (440) hide show
  1. package/dist/system/container/decorators/authorize-http-client-decorator.d.ts +8 -0
  2. package/dist/system/container/decorators/authorize-http-client-decorator.js +118 -0
  3. package/dist/system/container/decorators/authorize-http-client-decorator.js.map +1 -0
  4. package/dist/system/container/decorators/index.d.ts +1 -0
  5. package/dist/system/container/decorators/index.js +18 -0
  6. package/dist/system/container/decorators/index.js.map +1 -0
  7. package/dist/system/container/index.d.ts +2 -0
  8. package/dist/system/container/index.js +19 -0
  9. package/dist/system/container/index.js.map +1 -0
  10. package/dist/system/container/infra/container.d.ts +3 -0
  11. package/dist/system/container/infra/container.js +17 -0
  12. package/dist/system/container/infra/container.js.map +1 -0
  13. package/dist/system/container/infra/index.d.ts +3 -0
  14. package/dist/system/container/infra/index.js +20 -0
  15. package/dist/system/container/infra/index.js.map +1 -0
  16. package/dist/system/container/infra/make-api-url.d.ts +3 -0
  17. package/dist/system/container/infra/make-api-url.js +23 -0
  18. package/dist/system/container/infra/make-api-url.js.map +1 -0
  19. package/dist/system/container/infra/types.d.ts +7 -0
  20. package/dist/system/container/infra/types.js +11 -0
  21. package/dist/system/container/infra/types.js.map +1 -0
  22. package/dist/system/container/main.d.ts +3 -0
  23. package/dist/system/container/main.js +7 -0
  24. package/dist/system/container/main.js.map +1 -0
  25. package/dist/system/data/index.d.ts +1 -0
  26. package/dist/system/data/index.js +18 -0
  27. package/dist/system/data/index.js.map +1 -0
  28. package/dist/system/data/use-cases/auth/index.d.ts +1 -0
  29. package/dist/system/data/use-cases/auth/index.js +18 -0
  30. package/dist/system/data/use-cases/auth/index.js.map +1 -0
  31. package/dist/system/data/use-cases/auth/remote-auth-admin.d.ts +10 -0
  32. package/dist/system/data/use-cases/auth/remote-auth-admin.js +121 -0
  33. package/dist/system/data/use-cases/auth/remote-auth-admin.js.map +1 -0
  34. package/dist/system/data/use-cases/index.d.ts +1 -0
  35. package/dist/system/data/use-cases/index.js +18 -0
  36. package/dist/system/data/use-cases/index.js.map +1 -0
  37. package/dist/system/domain/entities/departament.d.ts +4 -0
  38. package/dist/system/domain/entities/departament.js +3 -0
  39. package/dist/system/domain/entities/departament.js.map +1 -0
  40. package/dist/system/domain/entities/index.d.ts +3 -0
  41. package/dist/system/domain/entities/index.js +20 -0
  42. package/dist/system/domain/entities/index.js.map +1 -0
  43. package/dist/system/domain/entities/roles/index.d.ts +1 -0
  44. package/dist/system/domain/entities/roles/index.js +18 -0
  45. package/dist/system/domain/entities/roles/index.js.map +1 -0
  46. package/dist/system/domain/entities/roles/permission.d.ts +6 -0
  47. package/dist/system/domain/entities/roles/permission.js +3 -0
  48. package/dist/system/domain/entities/roles/permission.js.map +1 -0
  49. package/dist/system/domain/entities/users/index.d.ts +1 -0
  50. package/dist/system/domain/entities/users/index.js +18 -0
  51. package/dist/system/domain/entities/users/index.js.map +1 -0
  52. package/dist/system/domain/entities/users/user-controller.d.ts +9 -0
  53. package/dist/system/domain/entities/users/user-controller.js +3 -0
  54. package/dist/system/domain/entities/users/user-controller.js.map +1 -0
  55. package/dist/system/domain/index.d.ts +3 -0
  56. package/dist/system/domain/index.js +20 -0
  57. package/dist/system/domain/index.js.map +1 -0
  58. package/dist/system/domain/protocols/cache/cache-keys.d.ts +6 -0
  59. package/dist/system/domain/protocols/cache/cache-keys.js +3 -0
  60. package/dist/system/domain/protocols/cache/cache-keys.js.map +1 -0
  61. package/dist/system/domain/protocols/cache/get-storage.d.ts +4 -0
  62. package/dist/system/domain/protocols/cache/get-storage.js +3 -0
  63. package/dist/system/domain/protocols/cache/get-storage.js.map +1 -0
  64. package/dist/system/domain/protocols/cache/index.d.ts +3 -0
  65. package/dist/system/domain/protocols/cache/index.js +20 -0
  66. package/dist/system/domain/protocols/cache/index.js.map +1 -0
  67. package/dist/system/domain/protocols/cache/set-storage.d.ts +4 -0
  68. package/dist/system/domain/protocols/cache/set-storage.js +4 -0
  69. package/dist/system/domain/protocols/cache/set-storage.js.map +1 -0
  70. package/dist/system/domain/protocols/http/errors/http-errors/application-unexpected-error.d.ts +3 -0
  71. package/dist/system/domain/protocols/http/errors/http-errors/application-unexpected-error.js +29 -0
  72. package/dist/system/domain/protocols/http/errors/http-errors/application-unexpected-error.js.map +1 -0
  73. package/dist/system/domain/protocols/http/errors/http-errors/bad-request-error.d.ts +8 -0
  74. package/dist/system/domain/protocols/http/errors/http-errors/bad-request-error.js +11 -0
  75. package/dist/system/domain/protocols/http/errors/http-errors/bad-request-error.js.map +1 -0
  76. package/dist/system/domain/protocols/http/errors/http-errors/index.d.ts +5 -0
  77. package/dist/system/domain/protocols/http/errors/http-errors/index.js +22 -0
  78. package/dist/system/domain/protocols/http/errors/http-errors/index.js.map +1 -0
  79. package/dist/system/domain/protocols/http/errors/http-errors/no-content.d.ts +3 -0
  80. package/dist/system/domain/protocols/http/errors/http-errors/no-content.js +29 -0
  81. package/dist/system/domain/protocols/http/errors/http-errors/no-content.js.map +1 -0
  82. package/dist/system/domain/protocols/http/errors/http-errors/not-found-error.d.ts +3 -0
  83. package/dist/system/domain/protocols/http/errors/http-errors/not-found-error.js +29 -0
  84. package/dist/system/domain/protocols/http/errors/http-errors/not-found-error.js.map +1 -0
  85. package/dist/system/domain/protocols/http/errors/http-errors/unexpected-error.d.ts +3 -0
  86. package/dist/system/domain/protocols/http/errors/http-errors/unexpected-error.js +29 -0
  87. package/dist/system/domain/protocols/http/errors/http-errors/unexpected-error.js.map +1 -0
  88. package/dist/system/domain/protocols/http/errors/index.d.ts +2 -0
  89. package/dist/system/domain/protocols/http/errors/index.js +19 -0
  90. package/dist/system/domain/protocols/http/errors/index.js.map +1 -0
  91. package/dist/system/domain/protocols/http/errors/system-errors-model/index.d.ts +1 -0
  92. package/dist/system/domain/protocols/http/errors/system-errors-model/index.js +18 -0
  93. package/dist/system/domain/protocols/http/errors/system-errors-model/index.js.map +1 -0
  94. package/dist/system/domain/protocols/http/errors/system-errors-model/validation-errors-model.d.ts +11 -0
  95. package/dist/system/domain/protocols/http/errors/system-errors-model/validation-errors-model.js +11 -0
  96. package/dist/system/domain/protocols/http/errors/system-errors-model/validation-errors-model.js.map +1 -0
  97. package/dist/system/domain/protocols/http/http-client.d.ts +28 -0
  98. package/dist/system/domain/protocols/http/http-client.js +18 -0
  99. package/dist/system/domain/protocols/http/http-client.js.map +1 -0
  100. package/dist/system/domain/protocols/http/index.d.ts +2 -0
  101. package/dist/system/domain/protocols/http/index.js +19 -0
  102. package/dist/system/domain/protocols/http/index.js.map +1 -0
  103. package/dist/system/domain/protocols/index.d.ts +2 -0
  104. package/dist/system/domain/protocols/index.js +19 -0
  105. package/dist/system/domain/protocols/index.js.map +1 -0
  106. package/dist/system/domain/use-cases/auth/admin/auth-admin.d.ts +20 -0
  107. package/dist/system/domain/use-cases/auth/admin/auth-admin.js +3 -0
  108. package/dist/system/domain/use-cases/auth/admin/auth-admin.js.map +1 -0
  109. package/dist/system/domain/use-cases/auth/admin/index.d.ts +1 -0
  110. package/dist/system/domain/use-cases/auth/admin/index.js +18 -0
  111. package/dist/system/domain/use-cases/auth/admin/index.js.map +1 -0
  112. package/dist/system/domain/use-cases/auth/index.d.ts +1 -0
  113. package/dist/system/domain/use-cases/auth/index.js +18 -0
  114. package/dist/system/domain/use-cases/auth/index.js.map +1 -0
  115. package/dist/system/domain/use-cases/index.d.ts +1 -0
  116. package/dist/system/domain/use-cases/index.js +18 -0
  117. package/dist/system/domain/use-cases/index.js.map +1 -0
  118. package/dist/system/index.d.ts +1 -3
  119. package/dist/system/index.js +1 -3
  120. package/dist/system/index.js.map +1 -1
  121. package/dist/system/infra/cache/cookie-storage-adapter.d.ts +6 -0
  122. package/dist/system/infra/cache/cookie-storage-adapter.js +108 -0
  123. package/dist/system/infra/cache/cookie-storage-adapter.js.map +1 -0
  124. package/dist/system/infra/cache/index.d.ts +2 -0
  125. package/dist/system/infra/cache/index.js +19 -0
  126. package/dist/system/infra/cache/index.js.map +1 -0
  127. package/dist/system/infra/cache/storage-type.d.ts +2 -0
  128. package/dist/system/infra/cache/storage-type.js +3 -0
  129. package/dist/system/infra/cache/storage-type.js.map +1 -0
  130. package/dist/system/infra/http/axios-http-client.d.ts +4 -0
  131. package/dist/system/infra/http/axios-http-client.js +109 -0
  132. package/dist/system/infra/http/axios-http-client.js.map +1 -0
  133. package/dist/system/infra/http/index.d.ts +1 -0
  134. package/dist/system/infra/http/index.js +18 -0
  135. package/dist/system/infra/http/index.js.map +1 -0
  136. package/dist/system/infra/index.d.ts +4 -0
  137. package/dist/system/infra/index.js +21 -0
  138. package/dist/system/infra/index.js.map +1 -0
  139. package/dist/system/infra/server/headers.d.ts +5 -0
  140. package/dist/system/infra/server/headers.js +3 -0
  141. package/dist/system/infra/server/headers.js.map +1 -0
  142. package/dist/system/infra/server/index.d.ts +1 -0
  143. package/dist/system/infra/server/index.js +18 -0
  144. package/dist/system/infra/server/index.js.map +1 -0
  145. package/dist/system/infra/type-models/birthday.d.ts +1 -0
  146. package/dist/system/infra/type-models/birthday.js +3 -0
  147. package/dist/system/infra/type-models/birthday.js.map +1 -0
  148. package/dist/system/infra/type-models/index.d.ts +2 -0
  149. package/dist/system/infra/type-models/index.js +19 -0
  150. package/dist/system/infra/type-models/index.js.map +1 -0
  151. package/dist/system/infra/type-models/zipcode.d.ts +1 -0
  152. package/dist/system/infra/type-models/zipcode.js +3 -0
  153. package/dist/system/infra/type-models/zipcode.js.map +1 -0
  154. package/dist/system/presentation/components/data/avatar/index.d.ts +4 -0
  155. package/dist/system/presentation/components/data/avatar/index.js +57 -0
  156. package/dist/system/presentation/components/data/avatar/index.js.map +1 -0
  157. package/dist/system/presentation/components/data/avatar/styles.d.ts +2 -0
  158. package/dist/system/presentation/components/data/avatar/styles.js +14 -0
  159. package/dist/system/presentation/components/data/avatar/styles.js.map +1 -0
  160. package/dist/system/presentation/components/data/cards/index.d.ts +1 -0
  161. package/dist/system/presentation/components/data/cards/index.js +18 -0
  162. package/dist/system/presentation/components/data/cards/index.js.map +1 -0
  163. package/dist/system/presentation/components/data/cards/message-card/index.d.ts +2 -0
  164. package/dist/system/presentation/components/data/cards/message-card/index.js +37 -0
  165. package/dist/system/presentation/components/data/cards/message-card/index.js.map +1 -0
  166. package/dist/system/presentation/components/data/cards/message-card/styles.d.ts +2 -0
  167. package/dist/system/presentation/components/data/cards/message-card/styles.js +14 -0
  168. package/dist/system/presentation/components/data/cards/message-card/styles.js.map +1 -0
  169. package/dist/system/presentation/components/data/index.d.ts +9 -0
  170. package/dist/system/presentation/components/data/index.js +26 -0
  171. package/dist/system/presentation/components/data/index.js.map +1 -0
  172. package/dist/system/presentation/components/data/logo/index.d.ts +1 -0
  173. package/dist/system/presentation/components/data/logo/index.js +34 -0
  174. package/dist/system/presentation/components/data/logo/index.js.map +1 -0
  175. package/dist/system/presentation/components/data/logo/styles.d.ts +2 -0
  176. package/dist/system/presentation/components/data/logo/styles.js +14 -0
  177. package/dist/system/presentation/components/data/logo/styles.js.map +1 -0
  178. package/dist/system/presentation/components/data/overlay/index.d.ts +2 -0
  179. package/dist/system/presentation/components/data/overlay/index.js +35 -0
  180. package/dist/system/presentation/components/data/overlay/index.js.map +1 -0
  181. package/dist/system/presentation/components/data/overlay/interfaces.d.ts +7 -0
  182. package/dist/system/presentation/components/data/overlay/interfaces.js +3 -0
  183. package/dist/system/presentation/components/data/overlay/interfaces.js.map +1 -0
  184. package/dist/system/presentation/components/data/overlay/styles.d.ts +7 -0
  185. package/dist/system/presentation/components/data/overlay/styles.js +15 -0
  186. package/dist/system/presentation/components/data/overlay/styles.js.map +1 -0
  187. package/dist/system/presentation/components/data/page-wrapper/index.d.ts +2 -0
  188. package/dist/system/presentation/components/data/page-wrapper/index.js +35 -0
  189. package/dist/system/presentation/components/data/page-wrapper/index.js.map +1 -0
  190. package/dist/system/presentation/components/data/page-wrapper/interfaces.d.ts +5 -0
  191. package/dist/system/presentation/components/data/page-wrapper/interfaces.js +3 -0
  192. package/dist/system/presentation/components/data/page-wrapper/interfaces.js.map +1 -0
  193. package/dist/system/presentation/components/data/page-wrapper/styles.d.ts +4 -0
  194. package/dist/system/presentation/components/data/page-wrapper/styles.js +14 -0
  195. package/dist/system/presentation/components/data/page-wrapper/styles.js.map +1 -0
  196. package/dist/system/presentation/components/data/popover/index.d.ts +2 -0
  197. package/dist/system/presentation/components/data/popover/index.js +10 -0
  198. package/dist/system/presentation/components/data/popover/index.js.map +1 -0
  199. package/dist/system/presentation/components/data/popover/interfaces.d.ts +8 -0
  200. package/dist/system/presentation/components/data/popover/interfaces.js +3 -0
  201. package/dist/system/presentation/components/data/popover/interfaces.js.map +1 -0
  202. package/dist/system/presentation/components/data/sign-in/index.d.ts +1 -0
  203. package/dist/system/presentation/components/data/sign-in/index.js +36 -0
  204. package/dist/system/presentation/components/data/sign-in/index.js.map +1 -0
  205. package/dist/system/presentation/components/data/sign-in/styles.d.ts +4 -0
  206. package/dist/system/presentation/components/data/sign-in/styles.js +14 -0
  207. package/dist/system/presentation/components/data/sign-in/styles.js.map +1 -0
  208. package/dist/system/presentation/components/data/sign-up/index.d.ts +1 -0
  209. package/dist/system/presentation/components/data/sign-up/index.js +36 -0
  210. package/dist/system/presentation/components/data/sign-up/index.js.map +1 -0
  211. package/dist/system/presentation/components/data/sign-up/styles.d.ts +4 -0
  212. package/dist/system/presentation/components/data/sign-up/styles.js +14 -0
  213. package/dist/system/presentation/components/data/sign-up/styles.js.map +1 -0
  214. package/dist/system/presentation/components/data/skeleton/index.d.ts +2 -0
  215. package/dist/system/presentation/components/data/skeleton/index.js +35 -0
  216. package/dist/system/presentation/components/data/skeleton/index.js.map +1 -0
  217. package/dist/system/presentation/components/data/skeleton/interfaces.d.ts +4 -0
  218. package/dist/system/presentation/components/data/skeleton/interfaces.js +3 -0
  219. package/dist/system/presentation/components/data/skeleton/interfaces.js.map +1 -0
  220. package/dist/system/presentation/components/data/skeleton/styles.d.ts +4 -0
  221. package/dist/system/presentation/components/data/skeleton/styles.js +14 -0
  222. package/dist/system/presentation/components/data/skeleton/styles.js.map +1 -0
  223. package/dist/system/presentation/components/index.d.ts +2 -0
  224. package/dist/system/presentation/components/index.js +19 -0
  225. package/dist/system/presentation/components/index.js.map +1 -0
  226. package/dist/system/presentation/components/layout/component.d.ts +4 -0
  227. package/dist/system/presentation/components/layout/component.js +36 -0
  228. package/dist/system/presentation/components/layout/component.js.map +1 -0
  229. package/dist/system/presentation/components/layout/header/components/index.d.ts +2 -0
  230. package/dist/system/presentation/components/layout/header/components/index.js +19 -0
  231. package/dist/system/presentation/components/layout/header/components/index.js.map +1 -0
  232. package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +1 -0
  233. package/dist/system/presentation/components/layout/header/components/menu-right/index.js +38 -0
  234. package/dist/system/presentation/components/layout/header/components/menu-right/index.js.map +1 -0
  235. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.d.ts +2 -0
  236. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +54 -0
  237. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js.map +1 -0
  238. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +6 -0
  239. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.js +3 -0
  240. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.js.map +1 -0
  241. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/styles.d.ts +2 -0
  242. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/styles.js +14 -0
  243. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/styles.js.map +1 -0
  244. package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.d.ts +1 -0
  245. package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +31 -0
  246. package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js.map +1 -0
  247. package/dist/system/presentation/components/layout/header/components/menu-right/messages/styles.d.ts +2 -0
  248. package/dist/system/presentation/components/layout/header/components/menu-right/messages/styles.js +14 -0
  249. package/dist/system/presentation/components/layout/header/components/menu-right/messages/styles.js.map +1 -0
  250. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.d.ts +1 -0
  251. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js +11 -0
  252. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js.map +1 -0
  253. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/styles.d.ts +2 -0
  254. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/styles.js +14 -0
  255. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/styles.js.map +1 -0
  256. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.d.ts +1 -0
  257. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +56 -0
  258. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js.map +1 -0
  259. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/styles.d.ts +2 -0
  260. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/styles.js +14 -0
  261. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/styles.js.map +1 -0
  262. package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.d.ts +1 -0
  263. package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +37 -0
  264. package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js.map +1 -0
  265. package/dist/system/presentation/components/layout/header/components/menu-right/profile/styles.d.ts +2 -0
  266. package/dist/system/presentation/components/layout/header/components/menu-right/profile/styles.js +14 -0
  267. package/dist/system/presentation/components/layout/header/components/menu-right/profile/styles.js.map +1 -0
  268. package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.d.ts +1 -0
  269. package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js +42 -0
  270. package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js.map +1 -0
  271. package/dist/system/presentation/components/layout/header/components/menu-right/settings/styles.d.ts +2 -0
  272. package/dist/system/presentation/components/layout/header/components/menu-right/settings/styles.js +14 -0
  273. package/dist/system/presentation/components/layout/header/components/menu-right/settings/styles.js.map +1 -0
  274. package/dist/system/presentation/components/layout/header/components/menu-right/styles.d.ts +2 -0
  275. package/dist/system/presentation/components/layout/header/components/menu-right/styles.js +14 -0
  276. package/dist/system/presentation/components/layout/header/components/menu-right/styles.js.map +1 -0
  277. package/dist/system/presentation/components/layout/header/components/search-modal/index.d.ts +1 -0
  278. package/dist/system/presentation/components/layout/header/components/search-modal/index.js +39 -0
  279. package/dist/system/presentation/components/layout/header/components/search-modal/index.js.map +1 -0
  280. package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.d.ts +4 -0
  281. package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +61 -0
  282. package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js.map +1 -0
  283. package/dist/system/presentation/components/layout/header/components/search-modal/search-list/styles.d.ts +2 -0
  284. package/dist/system/presentation/components/layout/header/components/search-modal/search-list/styles.js +14 -0
  285. package/dist/system/presentation/components/layout/header/components/search-modal/search-list/styles.js.map +1 -0
  286. package/dist/system/presentation/components/layout/header/components/search-modal/styles.d.ts +2 -0
  287. package/dist/system/presentation/components/layout/header/components/search-modal/styles.js +14 -0
  288. package/dist/system/presentation/components/layout/header/components/search-modal/styles.js.map +1 -0
  289. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.d.ts +1 -0
  290. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +45 -0
  291. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js.map +1 -0
  292. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/styles.d.ts +2 -0
  293. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/styles.js +14 -0
  294. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/styles.js.map +1 -0
  295. package/dist/system/presentation/components/layout/header/index.d.ts +1 -0
  296. package/dist/system/presentation/components/layout/header/index.js +15 -0
  297. package/dist/system/presentation/components/layout/header/index.js.map +1 -0
  298. package/dist/system/presentation/components/layout/header/version-01/index.d.ts +1 -0
  299. package/dist/system/presentation/components/layout/header/version-01/index.js +36 -0
  300. package/dist/system/presentation/components/layout/header/version-01/index.js.map +1 -0
  301. package/dist/system/presentation/components/layout/header/version-01/styles.d.ts +6 -0
  302. package/dist/system/presentation/components/layout/header/version-01/styles.js +37 -0
  303. package/dist/system/presentation/components/layout/header/version-01/styles.js.map +1 -0
  304. package/dist/system/presentation/components/layout/index.d.ts +3 -0
  305. package/dist/system/presentation/components/layout/index.js +20 -0
  306. package/dist/system/presentation/components/layout/index.js.map +1 -0
  307. package/dist/system/presentation/components/layout/menu/components/index.d.ts +2 -0
  308. package/dist/system/presentation/components/layout/menu/components/index.js +19 -0
  309. package/dist/system/presentation/components/layout/menu/components/index.js.map +1 -0
  310. package/dist/system/presentation/components/layout/menu/components/menu/index.d.ts +1 -0
  311. package/dist/system/presentation/components/layout/menu/components/menu/index.js +59 -0
  312. package/dist/system/presentation/components/layout/menu/components/menu/index.js.map +1 -0
  313. package/dist/system/presentation/components/layout/menu/components/menu/styles.d.ts +2 -0
  314. package/dist/system/presentation/components/layout/menu/components/menu/styles.js +14 -0
  315. package/dist/system/presentation/components/layout/menu/components/menu/styles.js.map +1 -0
  316. package/dist/system/presentation/components/layout/menu/components/select-workspace/index.d.ts +1 -0
  317. package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js +78 -0
  318. package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js.map +1 -0
  319. package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.d.ts +2 -0
  320. package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.js +14 -0
  321. package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.js.map +1 -0
  322. package/dist/system/presentation/components/layout/menu/index.d.ts +1 -0
  323. package/dist/system/presentation/components/layout/menu/index.js +15 -0
  324. package/dist/system/presentation/components/layout/menu/index.js.map +1 -0
  325. package/dist/system/presentation/components/layout/menu/version-01/index.d.ts +1 -0
  326. package/dist/system/presentation/components/layout/menu/version-01/index.js +35 -0
  327. package/dist/system/presentation/components/layout/menu/version-01/index.js.map +1 -0
  328. package/dist/system/presentation/components/layout/menu/version-01/styles.d.ts +2 -0
  329. package/dist/system/presentation/components/layout/menu/version-01/styles.js +14 -0
  330. package/dist/system/presentation/components/layout/menu/version-01/styles.js.map +1 -0
  331. package/dist/system/presentation/components/layout/styles.d.ts +4 -0
  332. package/dist/system/presentation/components/layout/styles.js +14 -0
  333. package/dist/system/presentation/components/layout/styles.js.map +1 -0
  334. package/dist/system/presentation/configs/index.d.ts +3 -0
  335. package/dist/system/presentation/configs/index.js +20 -0
  336. package/dist/system/presentation/configs/index.js.map +1 -0
  337. package/dist/system/presentation/configs/menu.d.ts +10 -0
  338. package/dist/system/presentation/configs/menu.js +18 -0
  339. package/dist/system/presentation/configs/menu.js.map +1 -0
  340. package/dist/system/presentation/configs/page-links.d.ts +7 -0
  341. package/dist/system/presentation/configs/page-links.js +319 -0
  342. package/dist/system/presentation/configs/page-links.js.map +1 -0
  343. package/dist/system/presentation/configs/routes.d.ts +10 -0
  344. package/dist/system/presentation/configs/routes.js +14 -0
  345. package/dist/system/presentation/configs/routes.js.map +1 -0
  346. package/dist/system/presentation/hooks/index.d.ts +1 -0
  347. package/dist/system/presentation/hooks/index.js +18 -0
  348. package/dist/system/presentation/hooks/index.js.map +1 -0
  349. package/dist/system/presentation/hooks/ui/index.d.ts +1 -0
  350. package/dist/system/presentation/hooks/ui/index.js +18 -0
  351. package/dist/system/presentation/hooks/ui/index.js.map +1 -0
  352. package/dist/system/presentation/hooks/ui/use-table/component.d.ts +5 -0
  353. package/dist/system/presentation/hooks/ui/use-table/component.js +14 -0
  354. package/dist/system/presentation/hooks/ui/use-table/component.js.map +1 -0
  355. package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/index.d.ts +1 -0
  356. package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/index.js +33 -0
  357. package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/index.js.map +1 -0
  358. package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/styles.d.ts +4 -0
  359. package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/styles.js +14 -0
  360. package/dist/system/presentation/hooks/ui/use-table/components/active-indicator/styles.js.map +1 -0
  361. package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +3 -0
  362. package/dist/system/presentation/hooks/ui/use-table/components/index.js +20 -0
  363. package/dist/system/presentation/hooks/ui/use-table/components/index.js.map +1 -0
  364. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.d.ts +1 -0
  365. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.js +33 -0
  366. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/index.js.map +1 -0
  367. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.d.ts +4 -0
  368. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.js +14 -0
  369. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/active-indicator/styles.js.map +1 -0
  370. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/index.d.ts +2 -0
  371. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/index.js +56 -0
  372. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/index.js.map +1 -0
  373. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.d.ts +7 -0
  374. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.js +3 -0
  375. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.js.map +1 -0
  376. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/styles.d.ts +8 -0
  377. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/styles.js +14 -0
  378. package/dist/system/presentation/hooks/ui/use-table/components/searchbar/styles.js.map +1 -0
  379. package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +2 -0
  380. package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +92 -0
  381. package/dist/system/presentation/hooks/ui/use-table/components/table/index.js.map +1 -0
  382. package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +16 -0
  383. package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.js +3 -0
  384. package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.js.map +1 -0
  385. package/dist/system/presentation/hooks/ui/use-table/components/table/loader-table/index.d.ts +1 -0
  386. package/dist/system/presentation/hooks/ui/use-table/components/table/loader-table/index.js +33 -0
  387. package/dist/system/presentation/hooks/ui/use-table/components/table/loader-table/index.js.map +1 -0
  388. package/dist/system/presentation/hooks/ui/use-table/components/table/loader-table/styles.d.ts +4 -0
  389. package/dist/system/presentation/hooks/ui/use-table/components/table/loader-table/styles.js +14 -0
  390. package/dist/system/presentation/hooks/ui/use-table/components/table/loader-table/styles.js.map +1 -0
  391. package/dist/system/presentation/hooks/ui/use-table/components/table/styles.d.ts +4 -0
  392. package/dist/system/presentation/hooks/ui/use-table/components/table/styles.js +14 -0
  393. package/dist/system/presentation/hooks/ui/use-table/components/table/styles.js.map +1 -0
  394. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +2 -0
  395. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +50 -0
  396. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js.map +1 -0
  397. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +6 -0
  398. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.js +3 -0
  399. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.js.map +1 -0
  400. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/styles.d.ts +4 -0
  401. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/styles.js +14 -0
  402. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/styles.js.map +1 -0
  403. package/dist/system/presentation/hooks/ui/use-table/index.d.ts +5 -0
  404. package/dist/system/presentation/hooks/ui/use-table/index.js +22 -0
  405. package/dist/system/presentation/hooks/ui/use-table/index.js.map +1 -0
  406. package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +58 -0
  407. package/dist/system/presentation/hooks/ui/use-table/interfaces.js +3 -0
  408. package/dist/system/presentation/hooks/ui/use-table/interfaces.js.map +1 -0
  409. package/dist/system/presentation/hooks/ui/use-table/query/index.d.ts +6 -0
  410. package/dist/system/presentation/hooks/ui/use-table/query/index.js +30 -0
  411. package/dist/system/presentation/hooks/ui/use-table/query/index.js.map +1 -0
  412. package/dist/system/presentation/hooks/ui/use-table/query/interfaces.d.ts +33 -0
  413. package/dist/system/presentation/hooks/ui/use-table/query/interfaces.js +3 -0
  414. package/dist/system/presentation/hooks/ui/use-table/query/interfaces.js.map +1 -0
  415. package/dist/system/presentation/hooks/ui/use-table/query/service.d.ts +25 -0
  416. package/dist/system/presentation/hooks/ui/use-table/query/service.js +113 -0
  417. package/dist/system/presentation/hooks/ui/use-table/query/service.js.map +1 -0
  418. package/dist/system/presentation/hooks/ui/use-table/utils/buffer.d.ts +3 -0
  419. package/dist/system/presentation/hooks/ui/use-table/utils/buffer.js +32 -0
  420. package/dist/system/presentation/hooks/ui/use-table/utils/buffer.js.map +1 -0
  421. package/dist/system/presentation/hooks/ui/use-table/utils/filter-empty-values.d.ts +1 -0
  422. package/dist/system/presentation/hooks/ui/use-table/utils/filter-empty-values.js +22 -0
  423. package/dist/system/presentation/hooks/ui/use-table/utils/filter-empty-values.js.map +1 -0
  424. package/dist/system/presentation/hooks/ui/use-table/utils/index.d.ts +4 -0
  425. package/dist/system/presentation/hooks/ui/use-table/utils/index.js +21 -0
  426. package/dist/system/presentation/hooks/ui/use-table/utils/index.js.map +1 -0
  427. package/dist/system/presentation/hooks/ui/use-table/utils/is-object-empty.d.ts +1 -0
  428. package/dist/system/presentation/hooks/ui/use-table/utils/is-object-empty.js +12 -0
  429. package/dist/system/presentation/hooks/ui/use-table/utils/is-object-empty.js.map +1 -0
  430. package/dist/system/presentation/hooks/ui/use-table/utils/update-route.d.ts +6 -0
  431. package/dist/system/presentation/hooks/ui/use-table/utils/update-route.js +31 -0
  432. package/dist/system/presentation/hooks/ui/use-table/utils/update-route.js.map +1 -0
  433. package/dist/system/presentation/index.d.ts +3 -0
  434. package/dist/system/presentation/index.js +20 -0
  435. package/dist/system/presentation/index.js.map +1 -0
  436. package/dist/ui/components/form/input/index.js +1 -1
  437. package/dist/ui/components/form/input/index.js.map +1 -1
  438. package/dist/ui/components/form/select/index.js +3 -4
  439. package/dist/ui/components/form/select/index.js.map +1 -1
  440. package/package.json +5 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/searchbar/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA4C;AAE5C,sCAAwC;AAExC,2BAA6B;AAC7B,qCAA0C;AAC1C,wDAAsD;AAItD,0CAA8B;AAE9B,SAAgB,SAAS,CAAC,EAA2B;;QAAxB,UAAU,gBAAA;IACrC,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAC;IAErB,IAAA,KAAsB,IAAA,gBAAQ,EAAC,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,MAAM,KAAI,EAAE,CAAC,EAAzD,MAAM,QAAA,EAAE,SAAS,QAAwC,CAAC;IAC3D,IAAA,KAAoB,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAlC,KAAK,QAAA,EAAE,QAAQ,QAAmB,CAAC;IAE1C,SAAS,YAAY,CAAC,EAAE;QACtB,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAE3B,IAAA,mBAAW,EAAC,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAG,EAAE,MAAM,QAAA,EAAE,CAAC,CAAC;IAChE,CAAC;IAED,IAAA,iBAAS,EAAC;QACR,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACtB,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,IAAA,iBAAS,EAAC;;QACR,SAAS,CAAC,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,MAAM,KAAI,EAAE,CAAC,CAAC;IACxC,CAAC,EAAE,CAAC,MAAA,MAAM,CAAC,KAAK,0CAAE,MAAM,CAAC,CAAC,CAAC;IAE3B,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,cAAc,YACxB,uBAAC,CAAC,CAAC,SAAS,cAAS,CAAC,CAAC,KAAK,YAC1B,gCAAK,SAAS,EAAC,QAAQ,YAGpB,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,MAAM,KAAI,uBAAC,kCAAe,KAAG,GACxC,GACM,GACR,CACT,CAAC;AACJ,CAAC;AAjCD,8BAiCC"}
@@ -0,0 +1,7 @@
1
+ export interface ISearchBar {
2
+ isFetching?: boolean;
3
+ options: {
4
+ label: string;
5
+ value: string;
6
+ }[];
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/searchbar/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface SearchBarStyleProps {
3
+ $error: boolean;
4
+ }
5
+ export declare const SearchBar: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
+ ref?: import("react").Ref<HTMLDivElement>;
7
+ }, SearchBarStyleProps>>;
8
+ export {};
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.SearchBar = void 0;
11
+ var styled_components_1 = __importDefault(require("styled-components"));
12
+ exports.SearchBar = (0, styled_components_1.default)("div")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: flex-end;\n\n .active-indicator {\n top: 6px;\n right: 23px;\n z-index: 3;\n }\n\n .MuiSelect-select {\n width: 100px;\n }\n\n .search {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n width: 370px;\n position: relative;\n transition: 0.3;\n\n input {\n padding: 8px 12px;\n z-index: 1;\n position: relative;\n transition: 0.3;\n font-size: 14px;\n }\n\n input::placeholder {\n color: ", ";\n opacity: 1;\n }\n\n button {\n position: absolute;\n right: 0;\n z-index: 2;\n border-radius: 100%;\n }\n }\n"], ["\n display: flex;\n align-items: flex-end;\n\n .active-indicator {\n top: 6px;\n right: 23px;\n z-index: 3;\n }\n\n .MuiSelect-select {\n width: 100px;\n }\n\n .search {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n width: 370px;\n position: relative;\n transition: 0.3;\n\n input {\n padding: 8px 12px;\n z-index: 1;\n position: relative;\n transition: 0.3;\n font-size: 14px;\n }\n\n input::placeholder {\n color: ", ";\n opacity: 1;\n }\n\n button {\n position: absolute;\n right: 0;\n z-index: 2;\n border-radius: 100%;\n }\n }\n"])), function (props) { return (props.$error ? "#d32f2f" : "rgba(0, 0, 0, 0.87)"); });
13
+ var templateObject_1;
14
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/searchbar/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAuC;AAM1B,QAAA,SAAS,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,kuBAAqB,ugBA+B5C,EAA6D,sJAW3E,KAXc,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,EAAlD,CAAkD,EAW1E"}
@@ -0,0 +1,2 @@
1
+ import { ITableProps } from './interfaces.js';
2
+ export declare function Table({ configs, isFetching, columnsTable, tableInformations }: ITableProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,92 @@
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.Table = void 0;
38
+ var jsx_runtime_1 = require("react/jsx-runtime");
39
+ var router_1 = require("next/router");
40
+ var system_1 = require("../../../../../../../system/index.js");
41
+ var ui_1 = require("../../../../../../../ui/index.js");
42
+ var thead_item_1 = require("./thead-item/index.js");
43
+ var utils_1 = require("../../utils/index.js");
44
+ var loader_table_1 = require("./loader-table/index.js");
45
+ var S = __importStar(require("./styles.js"));
46
+ function Table(_a) {
47
+ var _b, _c, _d, _e;
48
+ var configs = _a.configs, isFetching = _a.isFetching, columnsTable = _a.columnsTable, tableInformations = _a.tableInformations;
49
+ var router = (0, router_1.useRouter)();
50
+ var paramToSearch = ((_c = (((_b = router.query) === null || _b === void 0 ? void 0 : _b.search) || '')) === null || _c === void 0 ? void 0 : _c.toLowerCase()) || '';
51
+ var tableFilered = (configs === null || configs === void 0 ? void 0 : configs.enableSearchInSelf)
52
+ ? (tableInformations === null || tableInformations === void 0 ? void 0 : tableInformations.items) && (tableInformations === null || tableInformations === void 0 ? void 0 : tableInformations.items.length) > 0
53
+ ? (_d = tableInformations === null || tableInformations === void 0 ? void 0 : tableInformations.items) === null || _d === void 0 ? void 0 : _d.filter(function (item) {
54
+ var _a;
55
+ var stringfyItem = item ? JSON.stringify(item) : '';
56
+ return (_a = stringfyItem === null || stringfyItem === void 0 ? void 0 : stringfyItem.toLowerCase()) === null || _a === void 0 ? void 0 : _a.includes(paramToSearch);
57
+ })
58
+ : null
59
+ : null;
60
+ var tableData = tableFilered || (tableInformations === null || tableInformations === void 0 ? void 0 : tableInformations.items) || [];
61
+ function handleChange(_, page) {
62
+ (0, utils_1.updateRoute)({ params: { page: page }, router: router });
63
+ }
64
+ if (configs.isLoading) {
65
+ return (0, jsx_runtime_1.jsx)(loader_table_1.LoaderTable, {});
66
+ }
67
+ if ((tableData === null || tableData === void 0 ? void 0 : tableData.length) === 0) {
68
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: configs === null || configs === void 0 ? void 0 : configs.errorMessage });
69
+ }
70
+ return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'table-component', children: (0, jsx_runtime_1.jsxs)(S.Table, { children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: 'title', children: (0, jsx_runtime_1.jsx)("h3", { className: 'font-18-bold ', children: "Nome da tabela" }) }), (0, jsx_runtime_1.jsxs)("table", { children: [(0, jsx_runtime_1.jsx)("thead", { children: (0, jsx_runtime_1.jsx)("tr", { children: columnsTable === null || columnsTable === void 0 ? void 0 : columnsTable.map(function (colunm, index) {
71
+ return ((0, jsx_runtime_1.jsx)(thead_item_1.THeadItem, { index: index, colunm: colunm, disableOrdenationTable: configs === null || configs === void 0 ? void 0 : configs.disableOrdenationTable }, colunm.id + index));
72
+ }) }) }), !isFetching && (tableInformations === null || tableInformations === void 0 ? void 0 : tableInformations.items) && ((_e = tableInformations === null || tableInformations === void 0 ? void 0 : tableInformations.items) === null || _e === void 0 ? void 0 : _e.length) !== 0 && ((0, jsx_runtime_1.jsx)("tbody", { children: tableData === null || tableData === void 0 ? void 0 : tableData.map(function (table, index) {
73
+ return ((0, jsx_runtime_1.jsx)("tr", { children: columnsTable === null || columnsTable === void 0 ? void 0 : columnsTable.map(function (e, i) {
74
+ var _a, _b, _c, _d;
75
+ function getProps() {
76
+ var _a;
77
+ var props = Object.keys(((_a = e.Component) === null || _a === void 0 ? void 0 : _a.props) || {}).reduce(function (reducer, propriedade) {
78
+ var _a;
79
+ var newReducer = reducer;
80
+ newReducer[propriedade] = table[(_a = e.Component) === null || _a === void 0 ? void 0 : _a.props[propriedade]];
81
+ return __assign({}, newReducer);
82
+ }, {});
83
+ return props;
84
+ }
85
+ var props = ((_a = e.Component) === null || _a === void 0 ? void 0 : _a.allProps) ? table : ((_b = e.Component) === null || _b === void 0 ? void 0 : _b.props) ? getProps() : {};
86
+ var defaultProps = ((_c = e.Component) === null || _c === void 0 ? void 0 : _c.defaultProps) ? (_d = e.Component) === null || _d === void 0 ? void 0 : _d.defaultProps : {};
87
+ return ((0, jsx_runtime_1.jsx)("td", { className: 'font-14-regular', children: e.Component ? (0, jsx_runtime_1.jsx)(e.Component.Element, __assign({}, props, defaultProps)) : table[e.id] }, String(index) + String(i)));
88
+ }) }, table.id + String(index)));
89
+ }) }))] }), isFetching && (0, jsx_runtime_1.jsx)(system_1.Skeleton, { type: 'table', spacing: 0 })] }), !(configs === null || configs === void 0 ? void 0 : configs.disablePagination) && ((0, jsx_runtime_1.jsx)("div", { className: 'pagination', children: (0, jsx_runtime_1.jsx)("p", { className: 'font-14-regular', children: "Mostrando 20 de 125 resultados" }) }))] }) }));
90
+ }
91
+ exports.Table = Table;
92
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAuC;AAEvC,mCAAmC;AACnC,2BAA4B;AAE5B,2CAAwC;AACxC,qCAAyC;AACzC,+CAA4C;AAI5C,0CAA6B;AAE7B,SAAgB,KAAK,CAAC,EAAqE;;QAAnE,OAAO,aAAA,EAAE,UAAU,gBAAA,EAAE,YAAY,kBAAA,EAAE,iBAAiB,uBAAA;IAC1E,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAE1B,IAAM,aAAa,GAAG,CAAA,MAAA,CAAC,CAAC,MAAA,MAAM,CAAC,KAAK,0CAAE,MAAiB,KAAI,EAAE,CAAC,0CAAE,WAAW,EAAE,KAAI,EAAE,CAAA;IAEnF,IAAM,YAAY,GAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB;QAC9C,CAAC,CAAC,CAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,KAAK,KAAI,CAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,KAAK,CAAC,MAAM,IAAG,CAAC;YAC/D,CAAC,CAAC,MAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,KAAK,0CAAE,MAAM,CAAC,UAAC,IAAI;;gBACpC,IAAM,YAAY,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;gBAErD,OAAO,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,WAAW,EAAE,0CAAE,QAAQ,CAAC,aAAa,CAAC,CAAA;YAC7D,CAAC,CAAC;YACJ,CAAC,CAAC,IAAI;QACR,CAAC,CAAC,IAAI,CAAA;IAER,IAAM,SAAS,GAAG,YAAY,KAAI,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,KAAK,CAAA,IAAI,EAAE,CAAA;IAEhE,SAAS,YAAY,CAAC,CAAC,EAAE,IAAY;QACnC,IAAA,mBAAW,EAAC,EAAE,MAAM,EAAE,EAAE,IAAI,MAAA,EAAE,EAAE,MAAM,QAAA,EAAE,CAAC,CAAA;IAC3C,CAAC;IAED,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;QACtB,OAAO,uBAAC,0BAAW,KAAG,CAAA;IACxB,CAAC;IAED,IAAI,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,MAAM,MAAK,CAAC,EAAE,CAAC;QAC5B,OAAO,2DAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,GAAI,CAAA;IACrC,CAAC;IAED,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,iBAAiB,YAC3B,wBAAC,CAAC,CAAC,KAAK,eACN,4CACE,gCAAK,SAAS,EAAC,OAAO,YACpB,+BAAI,SAAS,EAAC,eAAe,+BAAoB,GAC7C,EAEN,8CACE,4CACE,yCACG,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,GAAG,CAAC,UAAC,MAAM,EAAE,KAAK;4CAC/B,OAAO,CACL,uBAAC,sBAAS,IAER,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,sBAAsB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,sBAAsB,IAHlD,MAAM,CAAC,EAAE,GAAG,KAAK,CAItB,CACH,CAAA;wCACH,CAAC,CAAC,GACC,GACC,EAEP,CAAC,UAAU,KAAI,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,KAAK,CAAA,IAAI,CAAA,MAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,KAAK,0CAAE,MAAM,MAAK,CAAC,IAAI,CACpF,4CACG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,GAAG,CAAC,UAAC,KAAK,EAAE,KAAK;wCAC3B,OAAO,CACL,yCACG,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,GAAG,CAAC,UAAC,CAAC,EAAE,CAAC;;gDACtB,SAAS,QAAQ;;oDACf,IAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA,MAAA,CAAC,CAAC,SAAS,0CAAE,KAAK,KAAI,EAAE,CAAC,CAAC,MAAM,CAAC,UAAC,OAAO,EAAE,WAAW;;wDAC9E,IAAI,UAAU,GAAG,OAAO,CAAA;wDAExB,UAAU,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,MAAA,CAAC,CAAC,SAAS,0CAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAA;wDAEhE,oBAAY,UAAU,EAAE;oDAC1B,CAAC,EAAE,EAAE,CAAC,CAAA;oDAEN,OAAO,KAAK,CAAA;gDACd,CAAC;gDAED,IAAM,KAAK,GAAG,CAAA,MAAA,CAAC,CAAC,SAAS,0CAAE,QAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA,MAAA,CAAC,CAAC,SAAS,0CAAE,KAAK,EAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;gDAClF,IAAM,YAAY,GAAG,CAAA,MAAA,CAAC,CAAC,SAAS,0CAAE,YAAY,EAAC,CAAC,CAAC,MAAA,CAAC,CAAC,SAAS,0CAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAA;gDAE/E,OAAO,CACL,+BAAI,SAAS,EAAC,iBAAiB,YAC5B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,uBAAC,CAAC,CAAC,SAAS,CAAC,OAAO,eAAK,KAAK,EAAM,YAAY,EAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,IAD9C,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAEzD,CACN,CAAA;4CACH,CAAC,CAAC,IAtBK,KAAK,CAAC,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAuB5B,CACN,CAAA;oCACH,CAAC,CAAC,GACI,CACT,IACK,EAEP,UAAU,IAAI,uBAAC,iBAAQ,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,CAAC,GAAI,IAChD,EAEL,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,CAAA,IAAI,CAC9B,gCAAK,SAAS,EAAC,YAAY,YACzB,8BAAG,SAAS,EAAC,iBAAiB,+CAAmC,GAG7D,CACP,IACO,GACJ,CACT,CAAA;AACH,CAAC;AApGD,sBAoGC"}
@@ -0,0 +1,16 @@
1
+ import { IColumnTable, IConfigurationsTable } from "../../interfaces.js";
2
+ import { IResponseGetTableInformations } from "../../query/service.js";
3
+ type colunm = keyof any;
4
+ interface IShowHiden {
5
+ text: string;
6
+ filterBased: colunm;
7
+ disable: string[];
8
+ enable: string[];
9
+ }
10
+ interface ITableProps {
11
+ isFetching: boolean;
12
+ columnsTable: IColumnTable[];
13
+ configs: IConfigurationsTable;
14
+ tableInformations?: IResponseGetTableInformations;
15
+ }
16
+ export type { ITableProps, IShowHiden };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare function LoaderTable(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.LoaderTable = void 0;
27
+ var jsx_runtime_1 = require("react/jsx-runtime");
28
+ var S = __importStar(require("./styles.js"));
29
+ function LoaderTable() {
30
+ return ((0, jsx_runtime_1.jsx)(S.LoaderTable, { children: "LOADER COLOCAR" }));
31
+ }
32
+ exports.LoaderTable = LoaderTable;
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/loader-table/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,0CAA8B;AAE9B,SAAgB,WAAW;IACzB,OAAO,CACL,uBAAC,CAAC,CAAC,WAAW,iCAEE,CACjB,CAAC;AACJ,CAAC;AAND,kCAMC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const LoaderTable: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: import("react").Ref<HTMLDivElement>;
4
+ }, never>>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.LoaderTable = void 0;
11
+ var styled_components_1 = __importDefault(require("styled-components"));
12
+ exports.LoaderTable = (0, styled_components_1.default)("div")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n gap: 10px;\n min-height: 180px;\n background-color: #fff;\n border: 1px solid rgba(224, 224, 224, 1);\n"], ["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n gap: 10px;\n min-height: 180px;\n background-color: #fff;\n border: 1px solid rgba(224, 224, 224, 1);\n"])));
13
+ var templateObject_1;
14
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/loader-table/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAuC;AAE1B,QAAA,WAAW,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,oRAAA,iNASvC,KAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const Table: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: import("react").Ref<HTMLDivElement>;
4
+ }, never>>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.Table = void 0;
11
+ var styled_components_1 = __importDefault(require("styled-components"));
12
+ exports.Table = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow-x: hidden;\n width: 100%;\n background-color: #fff;\n border-radius: 6px;\n border: 0.3px solid rgba(0, 0, 0, 0.09);\n\n > div {\n width: 100%;\n overflow-x: auto;\n }\n\n > .pagination {\n height: 64px;\n width: auto;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 20px;\n\n p {\n margin: 0;\n color: #808080;\n }\n }\n\n .title {\n padding: 20px;\n }\n\n table {\n width: 100%;\n border-collapse: collapse;\n\n > div {\n width: 100%;\n }\n\n thead {\n background-color: #f1f1f1;\n height: 48px;\n\n tr {\n height: 40px;\n }\n\n th {\n vertical-align: inherit;\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n padding: 0 12px;\n color: rgba(0, 0, 0, 0.87);\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n z-index: 2;\n text-align: center;\n }\n }\n\n tbody {\n display: table-row-group;\n\n tr {\n height: 51px;\n transition: background 0.1s ease-in-out;\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.02);\n }\n }\n\n td {\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n padding: 8px;\n color: rgba(0, 0, 0, 0.87);\n text-align: center;\n font-weight: 400;\n }\n }\n }\n"], ["\n overflow-x: hidden;\n width: 100%;\n background-color: #fff;\n border-radius: 6px;\n border: 0.3px solid rgba(0, 0, 0, 0.09);\n\n > div {\n width: 100%;\n overflow-x: auto;\n }\n\n > .pagination {\n height: 64px;\n width: auto;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 20px;\n\n p {\n margin: 0;\n color: #808080;\n }\n }\n\n .title {\n padding: 20px;\n }\n\n table {\n width: 100%;\n border-collapse: collapse;\n\n > div {\n width: 100%;\n }\n\n thead {\n background-color: #f1f1f1;\n height: 48px;\n\n tr {\n height: 40px;\n }\n\n th {\n vertical-align: inherit;\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n padding: 0 12px;\n color: rgba(0, 0, 0, 0.87);\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n z-index: 2;\n text-align: center;\n }\n }\n\n tbody {\n display: table-row-group;\n\n tr {\n height: 51px;\n transition: background 0.1s ease-in-out;\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.02);\n }\n }\n\n td {\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n padding: 8px;\n color: rgba(0, 0, 0, 0.87);\n text-align: center;\n font-weight: 400;\n }\n }\n }\n"])));
13
+ var templateObject_1;
14
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,KAAK,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,29CAAA,w5CAgFjC,KAAA"}
@@ -0,0 +1,2 @@
1
+ import { ITHeadItemProps } from './interfaces.js';
2
+ export declare function THeadItem({ colunm, index, disableOrdenationTable }: ITHeadItemProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,50 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.THeadItem = void 0;
27
+ var jsx_runtime_1 = require("react/jsx-runtime");
28
+ var react_1 = require("react");
29
+ var router_1 = require("next/router");
30
+ var ui_1 = require("../../../../../../../../ui/index.js");
31
+ var utils_1 = require("../../../utils/index.js");
32
+ var S = __importStar(require("./styles.js"));
33
+ function THeadItem(_a) {
34
+ var _b, _c;
35
+ var colunm = _a.colunm, index = _a.index, disableOrdenationTable = _a.disableOrdenationTable;
36
+ var router = (0, router_1.useRouter)();
37
+ var isAtualOrd = !!(((_b = router.query) === null || _b === void 0 ? void 0 : _b.ordIndex) === String(index));
38
+ var ascIsActive = !!(((_c = router.query) === null || _c === void 0 ? void 0 : _c.asc) === 'true');
39
+ var _d = (0, react_1.useState)(!!(isAtualOrd && ascIsActive)), asc = _d[0], setAsc = _d[1];
40
+ function handleOrd(ascValue) {
41
+ if (disableOrdenationTable) {
42
+ return;
43
+ }
44
+ (0, utils_1.updateRoute)({ params: { ordIndex: index, asc: ascValue }, router: router });
45
+ setAsc(ascValue);
46
+ }
47
+ return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'thead-item', children: (0, jsx_runtime_1.jsx)("th", { style: { width: colunm.width + 'px' }, children: (0, jsx_runtime_1.jsxs)(S.THeadItem, { children: [(0, jsx_runtime_1.jsx)("span", { onClick: function () { return handleOrd(!asc); }, className: 'font-12-bold uppercase', children: colunm.label }), !disableOrdenationTable && ((0, jsx_runtime_1.jsx)("div", { className: 'ord-actions', children: (0, jsx_runtime_1.jsx)("button", { type: 'button', onClick: function () { return handleOrd(!asc); } }) }))] }) }, colunm.id + index) }));
48
+ }
49
+ exports.THeadItem = THeadItem;
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/thead-item/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAgC;AAChC,sCAAuC;AAEvC,2BAA4B;AAC5B,wCAA4C;AAI5C,0CAA6B;AAE7B,SAAgB,SAAS,CAAC,EAA0D;;QAAxD,MAAM,YAAA,EAAE,KAAK,WAAA,EAAE,sBAAsB,4BAAA;IAC/D,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAE1B,IAAM,UAAU,GAAG,CAAC,CAAC,CAAC,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,QAAQ,MAAK,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;IAC/D,IAAM,WAAW,GAAG,CAAC,CAAC,CAAC,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,GAAG,MAAK,MAAM,CAAC,CAAA;IAE9C,IAAA,KAAgB,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC,UAAU,IAAI,WAAW,CAAC,CAAC,EAAtD,GAAG,QAAA,EAAE,MAAM,QAA2C,CAAA;IAE7D,SAAS,SAAS,CAAC,QAAiB;QAClC,IAAI,sBAAsB,EAAE,CAAC;YAC3B,OAAM;QACR,CAAC;QAED,IAAA,mBAAW,EAAC,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,MAAM,QAAA,EAAE,CAAC,CAAA;QAEnE,MAAM,CAAC,QAAQ,CAAC,CAAA;IAClB,CAAC;IAED,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,YAAY,YACtB,+BAA4B,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,GAAG,IAAI,EAAE,YAC/D,wBAAC,CAAC,CAAC,SAAS,eACV,iCAAM,OAAO,EAAE,cAAM,OAAA,SAAS,CAAC,CAAC,GAAG,CAAC,EAAf,CAAe,EAAE,SAAS,EAAC,wBAAwB,YACrE,MAAM,CAAC,KAAK,GACR,EAEN,CAAC,sBAAsB,IAAI,CAC1B,gCAAK,SAAS,EAAC,aAAa,YAC1B,mCAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,cAAM,OAAA,SAAS,CAAC,CAAC,GAAG,CAAC,EAAf,CAAe,GAE3C,GACL,CACP,IACW,IAbP,MAAM,CAAC,EAAE,GAAG,KAAK,CAcrB,GACC,CACT,CAAA;AACH,CAAC;AArCD,8BAqCC"}
@@ -0,0 +1,6 @@
1
+ import { IColumnTable } from "../../../interfaces.js";
2
+ export interface ITHeadItemProps {
3
+ index: number;
4
+ colunm: IColumnTable;
5
+ disableOrdenationTable?: boolean;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const THeadItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: import("react").Ref<HTMLDivElement>;
4
+ }, never>>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.THeadItem = void 0;
11
+ var styled_components_1 = __importDefault(require("styled-components"));
12
+ exports.THeadItem = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n color: #808080;\n cursor: pointer;\n\n button {\n display: flex;\n padding: 0;\n border: 0;\n width: 12px;\n background-color: transparent;\n\n svg {\n width: 100%;\n height: auto;\n color: #666666;\n }\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n color: #808080;\n cursor: pointer;\n\n button {\n display: flex;\n padding: 0;\n border: 0;\n width: 12px;\n background-color: transparent;\n\n svg {\n width: 100%;\n height: auto;\n color: #666666;\n }\n }\n"])));
13
+ var templateObject_1;
14
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/thead-item/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,SAAS,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,mZAAA,gVAqBrC,KAAA"}
@@ -0,0 +1,5 @@
1
+ export * from "./utils/index.js";
2
+ export * from "./query/index.js";
3
+ export * from "./component.js";
4
+ export * from "./components/index.js";
5
+ export * from "./interfaces.js";
@@ -0,0 +1,22 @@
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("./utils/index.js"), exports);
18
+ __exportStar(require("./query/index.js"), exports);
19
+ __exportStar(require("./component.js"), exports);
20
+ __exportStar(require("./components/index.js"), exports);
21
+ __exportStar(require("./interfaces.js"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/hooks/ui/use-table/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB;AACxB,8CAA4B;AAC5B,+CAA6B;AAC7B,+CAA6B"}
@@ -0,0 +1,58 @@
1
+ import { NextRouter } from "next/router";
2
+ interface IColumnTable {
3
+ id: string;
4
+ label: string;
5
+ width?: number;
6
+ type?: "a-z" | "number" | "date";
7
+ Component?: {
8
+ Element: any;
9
+ props: {
10
+ [key: string]: any;
11
+ };
12
+ allProps?: boolean;
13
+ defaultProps: {
14
+ [key: string]: any;
15
+ };
16
+ };
17
+ }
18
+ interface IParamsTable {
19
+ search?: {
20
+ param: string;
21
+ query: string;
22
+ };
23
+ dateRange: {
24
+ start: Date;
25
+ end: Date;
26
+ };
27
+ ord?: {
28
+ asc: boolean;
29
+ indice: number;
30
+ };
31
+ page?: number;
32
+ }
33
+ interface IConfigurationsTable {
34
+ disableFetch?: boolean;
35
+ tableData?: any;
36
+ tableFullWidth?: boolean;
37
+ disablePagination?: boolean;
38
+ disableOrdenationTable?: boolean;
39
+ disableGetFilter?: boolean;
40
+ errorMessage: string;
41
+ enableSearchInSelf?: boolean;
42
+ isLoading?: boolean;
43
+ }
44
+ interface IUseTableProps {
45
+ configs: IConfigurationsTable;
46
+ router?: NextRouter;
47
+ tableKey: string | null;
48
+ columnsTable: IColumnTable[];
49
+ }
50
+ interface IFiltersOnSubmit {
51
+ json: string;
52
+ value: {
53
+ [key: string]: {
54
+ [key: string]: any;
55
+ };
56
+ };
57
+ }
58
+ export type { IFiltersOnSubmit, IUseTableProps, IParamsTable, IColumnTable, IConfigurationsTable, };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/hooks/ui/use-table/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { IResponseGetTableInformations } from "./service.js";
2
+ import { IUseQueryTable } from "./interfaces.js";
3
+ export declare function useQueryTable({ router, tableKey, configs }: IUseQueryTable): {
4
+ tableIsFetching: boolean;
5
+ tableInformations: IResponseGetTableInformations;
6
+ };
@@ -0,0 +1,30 @@
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.useQueryTable = void 0;
15
+ var react_query_1 = require("@tanstack/react-query");
16
+ var service_1 = require("./service.js");
17
+ function useQueryTable(_a) {
18
+ var router = _a.router, tableKey = _a.tableKey, configs = _a.configs;
19
+ var _b = (0, react_query_1.useQuery)(__assign(__assign({}, service_1.configsQuery), { enabled: (configs === null || configs === void 0 ? void 0 : configs.disableFetch) ? false : !!(router === null || router === void 0 ? void 0 : router.isReady), queryKey: ["table-".concat(tableKey), router === null || router === void 0 ? void 0 : router.query], queryFn: function () {
20
+ return (0, service_1.getTableInformations)({ params: router === null || router === void 0 ? void 0 : router.query, tableKey: tableKey });
21
+ } })), data = _b.data, isFetching = _b.isFetching;
22
+ return {
23
+ tableIsFetching: isFetching,
24
+ tableInformations: (configs === null || configs === void 0 ? void 0 : configs.tableData)
25
+ ? __assign(__assign({}, service_1.defaultResponseTableInformations), { items: configs === null || configs === void 0 ? void 0 : configs.tableData })
26
+ : data,
27
+ };
28
+ }
29
+ exports.useQueryTable = useQueryTable;
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/hooks/ui/use-table/query/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qDAAiD;AAEjD,qCAKmB;AAInB,SAAgB,aAAa,CAAC,EAA6C;QAA3C,MAAM,YAAA,EAAE,QAAQ,cAAA,EAAE,OAAO,aAAA;IAEjD,IAAA,KAAuB,IAAA,sBAAQ,wBAChC,sBAAY,KACf,OAAO,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAC,EAC5D,QAAQ,EAAE,CAAC,gBAAS,QAAQ,CAAE,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,CAAC,EAC9C,OAAO,EAAE;YACP,OAAA,IAAA,8BAAoB,EAAC,EAAE,MAAM,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,EAAE,QAAQ,UAAA,EAAE,CAAC;QAAzD,CAAyD,IAC3D,EANM,IAAI,UAAA,EAAE,UAAU,gBAMtB,CAAC;IAEH,OAAO;QACL,eAAe,EAAE,UAAU;QAC3B,iBAAiB,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS;YACnC,CAAC,CAAC,sBAAK,0CAAgC,KAAE,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,GAAmC;YACrG,CAAC,CAAC,IAAI;KACT,CAAC;AACJ,CAAC;AAhBD,sCAgBC"}
@@ -0,0 +1,33 @@
1
+ import { NextRouter } from "next/router";
2
+ import { IConfigurationsTable } from "../interfaces.js";
3
+ export interface IUseQueryTable {
4
+ router?: NextRouter;
5
+ tableKey: string | null;
6
+ configs?: IConfigurationsTable;
7
+ }
8
+ export interface IFilterDate {
9
+ range: boolean;
10
+ endDate?: string;
11
+ startDate?: string;
12
+ }
13
+ export interface IFilterConfigurationsTable {
14
+ date: IFilterDate;
15
+ searchOptions: {
16
+ label: string;
17
+ value: string;
18
+ }[];
19
+ filters: {
20
+ key: string;
21
+ title: string;
22
+ type: string;
23
+ options: {
24
+ label: string;
25
+ value: string;
26
+ }[];
27
+ }[];
28
+ exportFormats: {
29
+ label: string;
30
+ value: string;
31
+ contentType: string;
32
+ }[];
33
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/hooks/ui/use-table/query/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ /// <reference types="node" />
2
+ import { ParsedUrlQuery } from 'querystring';
3
+ interface IGetTableService {
4
+ params?: ParsedUrlQuery;
5
+ tableKey: string | null;
6
+ }
7
+ export declare function getTablePayload(params: ParsedUrlQuery | undefined): any;
8
+ export interface IResponseGetTableInformations {
9
+ hasNextPage: boolean;
10
+ hasPreviousPage: boolean;
11
+ items: any[];
12
+ pageIndex: number;
13
+ pageSize: number;
14
+ totalCount: number;
15
+ totalPages: number;
16
+ }
17
+ export declare const defaultResponseTableInformations: IResponseGetTableInformations;
18
+ declare function getTableInformations({ params, tableKey, }: IGetTableService): Promise<IResponseGetTableInformations | undefined>;
19
+ declare const configsQuery: {
20
+ retry: number;
21
+ staleTime: number;
22
+ refetchInterval: number;
23
+ refetchOnWindowFocus: boolean;
24
+ };
25
+ export { configsQuery, getTableInformations };