infinity-forge 0.25.6 → 0.26.0

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 (391) 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 +4 -4
  67. package/dist/sites/index.js +4 -4
  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/sites/utils/index.d.ts +1 -1
  73. package/dist/sites/utils/index.js +1 -1
  74. package/dist/system/container/admin/auth/container.js +0 -11
  75. package/dist/system/container/admin/auth/index.d.ts +0 -2
  76. package/dist/system/container/admin/auth/index.js +0 -19
  77. package/dist/system/container/admin/index.d.ts +0 -3
  78. package/dist/system/container/admin/index.js +0 -20
  79. package/dist/system/container/admin/menu/container.js +0 -11
  80. package/dist/system/container/admin/menu/index.d.ts +0 -2
  81. package/dist/system/container/admin/menu/index.js +0 -19
  82. package/dist/system/container/admin/users/container.js +0 -12
  83. package/dist/system/container/admin/users/index.d.ts +0 -2
  84. package/dist/system/container/admin/users/index.js +0 -19
  85. package/dist/system/container/decorators/authorize-http-client-decorator.d.ts +0 -8
  86. package/dist/system/container/decorators/authorize-http-client-decorator.js +0 -117
  87. package/dist/system/container/decorators/index.d.ts +0 -1
  88. package/dist/system/container/decorators/index.js +0 -18
  89. package/dist/system/container/files/container.js +0 -11
  90. package/dist/system/container/files/index.d.ts +0 -2
  91. package/dist/system/container/files/index.js +0 -19
  92. package/dist/system/container/index.d.ts +0 -3
  93. package/dist/system/container/index.js +0 -20
  94. package/dist/system/container/infra/container.js +0 -15
  95. package/dist/system/container/infra/index.d.ts +0 -3
  96. package/dist/system/container/infra/index.js +0 -20
  97. package/dist/system/container/main.d.ts +0 -4
  98. package/dist/system/container/main.js +0 -13
  99. package/dist/system/container/types.js +0 -18
  100. package/dist/system/data/index.d.ts +0 -1
  101. package/dist/system/data/index.js +0 -18
  102. package/dist/system/data/use-cases/auth/index.d.ts +0 -1
  103. package/dist/system/data/use-cases/auth/index.js +0 -18
  104. package/dist/system/data/use-cases/auth/remote-auth-admin.d.ts +0 -10
  105. package/dist/system/data/use-cases/auth/remote-auth-admin.js +0 -116
  106. package/dist/system/data/use-cases/files/index.d.ts +0 -1
  107. package/dist/system/data/use-cases/files/index.js +0 -18
  108. package/dist/system/data/use-cases/files/remote-files.d.ts +0 -9
  109. package/dist/system/data/use-cases/files/remote-files.js +0 -130
  110. package/dist/system/data/use-cases/index.d.ts +0 -4
  111. package/dist/system/data/use-cases/index.js +0 -21
  112. package/dist/system/data/use-cases/menu/index.d.ts +0 -1
  113. package/dist/system/data/use-cases/menu/index.js +0 -18
  114. package/dist/system/data/use-cases/menu/remote-get-menu.d.ts +0 -12
  115. package/dist/system/data/use-cases/menu/remote-get-menu.js +0 -176
  116. package/dist/system/data/use-cases/users/index.d.ts +0 -2
  117. package/dist/system/data/use-cases/users/index.js +0 -19
  118. package/dist/system/data/use-cases/users/remote-load-user-admin.d.ts +0 -8
  119. package/dist/system/data/use-cases/users/remote-load-user-admin.js +0 -109
  120. package/dist/system/data/use-cases/users/remote-users.d.ts +0 -12
  121. package/dist/system/data/use-cases/users/remote-users.js +0 -176
  122. package/dist/system/domain/index.d.ts +0 -4
  123. package/dist/system/domain/index.js +0 -21
  124. package/dist/system/domain/use-cases/index.d.ts +0 -4
  125. package/dist/system/domain/use-cases/index.js +0 -21
  126. package/dist/system/index.d.ts +5 -5
  127. package/dist/system/index.js +5 -5
  128. package/dist/system/infra/cache/cookie-storage-adapter.d.ts +0 -6
  129. package/dist/system/infra/cache/index.d.ts +0 -2
  130. package/dist/system/infra/cache/index.js +0 -19
  131. package/dist/system/infra/cache/storage-type.d.ts +0 -2
  132. package/dist/system/infra/http/axios-http-client.d.ts +0 -4
  133. package/dist/system/infra/http/axios-http-client.js +0 -142
  134. package/dist/system/infra/http/index.d.ts +0 -1
  135. package/dist/system/infra/http/index.js +0 -18
  136. package/dist/system/infra/index.d.ts +0 -3
  137. package/dist/system/infra/index.js +0 -20
  138. package/dist/system/infra/type-models/index.d.ts +0 -2
  139. package/dist/system/infra/type-models/index.js +0 -19
  140. package/dist/system/presentation/components/data/avatar/index.js +2 -2
  141. package/dist/system/presentation/components/data/chat/card-message/index.d.ts +1 -1
  142. package/dist/system/presentation/components/data/chat/card-message/index.js +3 -3
  143. package/dist/system/presentation/components/data/chat/index.d.ts +1 -1
  144. package/dist/system/presentation/components/data/chat/index.js +4 -4
  145. package/dist/system/presentation/components/data/chat/interfaces.d.ts +1 -1
  146. package/dist/system/presentation/components/data/chat/loader/index.js +1 -1
  147. package/dist/system/presentation/components/data/highlight-text/index.d.ts +1 -1
  148. package/dist/system/presentation/components/data/highlight-text/index.js +2 -2
  149. package/dist/system/presentation/components/data/index.d.ts +9 -9
  150. package/dist/system/presentation/components/data/index.js +9 -9
  151. package/dist/system/presentation/components/data/input-search/index.d.ts +1 -1
  152. package/dist/system/presentation/components/data/input-search/index.js +3 -3
  153. package/dist/system/presentation/components/data/logo/index.js +2 -2
  154. package/dist/system/presentation/components/data/overlay/index.d.ts +1 -1
  155. package/dist/system/presentation/components/data/overlay/index.js +2 -2
  156. package/dist/system/presentation/components/data/page-wrapper/index.d.ts +1 -1
  157. package/dist/system/presentation/components/data/page-wrapper/index.js +2 -2
  158. package/dist/system/presentation/components/data/page-wrapper/interfaces.d.ts +1 -1
  159. package/dist/system/presentation/components/data/popover/index.d.ts +1 -1
  160. package/dist/system/presentation/components/data/sign-up/index.js +3 -3
  161. package/dist/system/presentation/components/index.d.ts +3 -3
  162. package/dist/system/presentation/components/index.js +3 -3
  163. package/dist/system/presentation/components/layout/component.d.ts +1 -1
  164. package/dist/system/presentation/components/layout/component.js +4 -4
  165. package/dist/system/presentation/components/layout/header/components/index.d.ts +2 -2
  166. package/dist/system/presentation/components/layout/header/components/index.js +2 -2
  167. package/dist/system/presentation/components/layout/header/components/menu-right/index.js +6 -6
  168. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.d.ts +1 -1
  169. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.js +3 -3
  170. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +3 -3
  171. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +1 -1
  172. package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +4 -4
  173. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js +3 -3
  174. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +3 -3
  175. package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +4 -4
  176. package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js +3 -3
  177. package/dist/system/presentation/components/layout/header/components/search-modal/index.js +4 -4
  178. package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +3 -3
  179. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +2 -2
  180. package/dist/system/presentation/components/layout/header/index.js +1 -1
  181. package/dist/system/presentation/components/layout/header/version-01/index.js +5 -5
  182. package/dist/system/presentation/components/layout/index.d.ts +3 -3
  183. package/dist/system/presentation/components/layout/index.js +3 -3
  184. package/dist/system/presentation/components/layout/menu/components/index.d.ts +2 -2
  185. package/dist/system/presentation/components/layout/menu/components/index.js +2 -2
  186. package/dist/system/presentation/components/layout/menu/components/menu/index.js +3 -3
  187. package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js +4 -4
  188. package/dist/system/presentation/components/layout/menu/index.js +1 -1
  189. package/dist/system/presentation/components/layout/menu/version-01/index.d.ts +1 -1
  190. package/dist/system/presentation/components/layout/menu/version-01/index.js +2 -2
  191. package/dist/system/presentation/components/pages/index.d.ts +2 -2
  192. package/dist/system/presentation/components/pages/index.js +2 -2
  193. package/dist/system/presentation/components/pages/menus/index.d.ts +1 -1
  194. package/dist/system/presentation/components/pages/menus/index.js +1 -1
  195. package/dist/system/presentation/components/pages/menus/page.js +3 -3
  196. package/dist/system/presentation/components/pages/menus/table/columns.d.ts +2 -2
  197. package/dist/system/presentation/components/pages/menus/table/columns.js +1 -1
  198. package/dist/system/presentation/components/pages/menus/table/create.d.ts +2 -2
  199. package/dist/system/presentation/components/pages/menus/table/create.js +2 -2
  200. package/dist/system/presentation/components/pages/menus/table/delete.js +2 -2
  201. package/dist/system/presentation/components/pages/menus/table/edit.d.ts +2 -2
  202. package/dist/system/presentation/components/pages/menus/table/edit.js +2 -2
  203. package/dist/system/presentation/components/pages/menus/table/icon/index.js +1 -1
  204. package/dist/system/presentation/components/pages/menus/table/index.d.ts +4 -4
  205. package/dist/system/presentation/components/pages/menus/table/index.js +4 -4
  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 +3 -3
  209. package/dist/system/presentation/components/pages/users/table/columns.d.ts +2 -2
  210. package/dist/system/presentation/components/pages/users/table/create.d.ts +2 -2
  211. package/dist/system/presentation/components/pages/users/table/create.js +2 -2
  212. package/dist/system/presentation/components/pages/users/table/delete.js +2 -2
  213. package/dist/system/presentation/components/pages/users/table/edit.d.ts +2 -2
  214. package/dist/system/presentation/components/pages/users/table/edit.js +2 -2
  215. package/dist/system/presentation/components/pages/users/table/index.d.ts +4 -4
  216. package/dist/system/presentation/components/pages/users/table/index.js +4 -4
  217. package/dist/system/presentation/configs/index.d.ts +2 -2
  218. package/dist/system/presentation/configs/index.js +2 -2
  219. package/dist/system/presentation/context/auth/authenticated/index.js +1 -1
  220. package/dist/system/presentation/context/auth/context.d.ts +1 -1
  221. package/dist/system/presentation/context/auth/context.js +2 -2
  222. package/dist/system/presentation/context/auth/index.d.ts +5 -5
  223. package/dist/system/presentation/context/auth/index.js +5 -5
  224. package/dist/system/presentation/context/auth/interfaces.d.ts +1 -1
  225. package/dist/system/presentation/context/auth/login/index.js +3 -3
  226. package/dist/system/presentation/context/auth/private-page/index.js +3 -3
  227. package/dist/system/presentation/context/auth/unauthenticated/index.js +1 -1
  228. package/dist/system/presentation/context/container.js +3 -3
  229. package/dist/system/presentation/context/index.d.ts +3 -3
  230. package/dist/system/presentation/context/index.js +3 -3
  231. package/dist/system/presentation/context/system-configs/context.d.ts +1 -1
  232. package/dist/system/presentation/context/system-configs/context.js +1 -1
  233. package/dist/system/presentation/context/system-configs/index.d.ts +2 -2
  234. package/dist/system/presentation/context/system-configs/index.js +2 -2
  235. package/dist/system/presentation/hooks/index.d.ts +2 -2
  236. package/dist/system/presentation/hooks/index.js +2 -2
  237. package/dist/system/presentation/hooks/menu/index.d.ts +1 -1
  238. package/dist/system/presentation/hooks/menu/index.js +1 -1
  239. package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +1 -1
  240. package/dist/system/presentation/hooks/menu/use-load-menu.js +1 -1
  241. package/dist/system/presentation/hooks/ui/index.d.ts +2 -2
  242. package/dist/system/presentation/hooks/ui/index.js +2 -2
  243. package/dist/system/presentation/hooks/ui/use-table/component.d.ts +1 -1
  244. package/dist/system/presentation/hooks/ui/use-table/component.js +2 -2
  245. package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +1 -1
  246. package/dist/system/presentation/hooks/ui/use-table/components/index.js +1 -1
  247. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +0 -5
  248. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +0 -107
  249. package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.d.ts +1 -1
  250. package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +3 -3
  251. package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.d.ts +0 -4
  252. package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +0 -35
  253. package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.d.ts +0 -4
  254. package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js +0 -128
  255. package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +1 -1
  256. package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +9 -9
  257. package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +2 -2
  258. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +1 -1
  259. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +3 -3
  260. package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js +2 -2
  261. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +1 -1
  262. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +2 -2
  263. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +1 -1
  264. package/dist/system/presentation/hooks/ui/use-table/index.d.ts +4 -4
  265. package/dist/system/presentation/hooks/ui/use-table/index.js +4 -4
  266. package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +0 -80
  267. package/dist/system/presentation/hooks/ui/use-table/query/get-query-arguments-table.d.ts +0 -2
  268. package/dist/system/presentation/hooks/ui/use-table/query/hook.d.ts +0 -5
  269. package/dist/system/presentation/hooks/ui/use-table/query/hook.js +0 -50
  270. package/dist/system/presentation/hooks/ui/use-table/query/index.d.ts +0 -2
  271. package/dist/system/presentation/hooks/ui/use-table/query/index.js +0 -19
  272. package/dist/system/presentation/index.d.ts +5 -5
  273. package/dist/system/presentation/index.js +5 -5
  274. package/dist/system/presentation/utils/index.d.ts +0 -1
  275. package/dist/system/presentation/utils/index.js +0 -18
  276. package/dist/system/presentation/utils/use-query/index.d.ts +0 -1
  277. package/dist/system/presentation/utils/use-query/index.js +0 -18
  278. package/dist/ui/components/accordion/index..d.ts +1 -1
  279. package/dist/ui/components/accordion/index..js +2 -2
  280. package/dist/ui/components/breadcrumb/index.d.ts +1 -1
  281. package/dist/ui/components/breadcrumb/index.js +1 -1
  282. package/dist/ui/components/button/component.d.ts +1 -1
  283. package/dist/ui/components/button/component.js +2 -2
  284. package/dist/ui/components/button/index.d.ts +2 -2
  285. package/dist/ui/components/button/index.js +2 -2
  286. package/dist/ui/components/button/interfaces.d.ts +1 -1
  287. package/dist/ui/components/container/index.d.ts +1 -1
  288. package/dist/ui/components/error-boundary/component.d.ts +1 -1
  289. package/dist/ui/components/error-boundary/component.js +1 -1
  290. package/dist/ui/components/error-boundary/error-body.d.ts +1 -1
  291. package/dist/ui/components/error-boundary/index.d.ts +2 -2
  292. package/dist/ui/components/error-boundary/index.js +2 -2
  293. package/dist/ui/components/form/checkbox/index.js +2 -2
  294. package/dist/ui/components/form/handler/component.d.ts +1 -1
  295. package/dist/ui/components/form/handler/component.js +1 -1
  296. package/dist/ui/components/form/handler/custom-submit/index.d.ts +1 -1
  297. package/dist/ui/components/form/handler/custom-submit/index.js +1 -1
  298. package/dist/ui/components/form/handler/dynamic_form_handler/component.d.ts +1 -1
  299. package/dist/ui/components/form/handler/dynamic_form_handler/component.js +4 -4
  300. package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +2 -2
  301. package/dist/ui/components/form/handler/dynamic_form_handler/index.js +2 -2
  302. package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +4 -4
  303. package/dist/ui/components/form/handler/form-handler/index.d.ts +1 -1
  304. package/dist/ui/components/form/handler/form-handler/index.js +15 -6
  305. package/dist/ui/components/form/handler/form-handler/index.js.map +1 -1
  306. package/dist/ui/components/form/handler/index.d.ts +5 -5
  307. package/dist/ui/components/form/handler/index.js +5 -5
  308. package/dist/ui/components/form/handler/interfaces.d.ts +2 -2
  309. package/dist/ui/components/form/index.d.ts +14 -14
  310. package/dist/ui/components/form/index.js +14 -14
  311. package/dist/ui/components/form/input/index.d.ts +1 -1
  312. package/dist/ui/components/form/input/index.js +1 -1
  313. package/dist/ui/components/form/input-control/error/index.d.ts +1 -1
  314. package/dist/ui/components/form/input-control/error/index.js +1 -1
  315. package/dist/ui/components/form/input-control/index.d.ts +1 -1
  316. package/dist/ui/components/form/input-control/index.js +5 -5
  317. package/dist/ui/components/form/input-control/label/index.js +1 -1
  318. package/dist/ui/components/form/input-control/loader-input/index.js +2 -2
  319. package/dist/ui/components/form/input-cpf-cnpj/index.d.ts +1 -1
  320. package/dist/ui/components/form/input-cpf-cnpj/index.js +1 -1
  321. package/dist/ui/components/form/input-currency/index.d.ts +1 -1
  322. package/dist/ui/components/form/input-currency/index.js +1 -1
  323. package/dist/ui/components/form/input-date/index.d.ts +1 -1
  324. package/dist/ui/components/form/input-date/index.js +1 -1
  325. package/dist/ui/components/form/input-file/file-card/index.d.ts +1 -1
  326. package/dist/ui/components/form/input-file/file-card/index.js +3 -3
  327. package/dist/ui/components/form/input-file/index.d.ts +1 -1
  328. package/dist/ui/components/form/input-file/index.js +4 -4
  329. package/dist/ui/components/form/input-mask/index.d.ts +1 -1
  330. package/dist/ui/components/form/input-mask/index.js +1 -1
  331. package/dist/ui/components/form/input-password/index.d.ts +1 -1
  332. package/dist/ui/components/form/input-password/index.js +3 -3
  333. package/dist/ui/components/form/input-switch/index.d.ts +1 -1
  334. package/dist/ui/components/form/input-switch/index.js +1 -1
  335. package/dist/ui/components/form/interfaces.d.ts +1 -1
  336. package/dist/ui/components/form/radio/index.js +2 -2
  337. package/dist/ui/components/form/select/index.d.ts +1 -1
  338. package/dist/ui/components/form/select/index.js +3 -3
  339. package/dist/ui/components/form/select/interfaces.d.ts +1 -1
  340. package/dist/ui/components/form/textarea/index.d.ts +1 -1
  341. package/dist/ui/components/form/textarea/index.js +1 -1
  342. package/dist/ui/components/index.d.ts +10 -10
  343. package/dist/ui/components/index.js +10 -10
  344. package/dist/ui/components/loader-circle/index.d.ts +1 -1
  345. package/dist/ui/components/loading-screen/index.d.ts +1 -1
  346. package/dist/ui/components/loading-screen/index.js +3 -3
  347. package/dist/ui/components/menu-mobile/components/nav-links/index.d.ts +1 -1
  348. package/dist/ui/components/menu-mobile/components/nav-links/index.js +2 -2
  349. package/dist/ui/components/menu-mobile/components/nav-links/interfaces.d.ts +1 -1
  350. package/dist/ui/components/menu-mobile/index.d.ts +1 -1
  351. package/dist/ui/components/menu-mobile/index.js +4 -4
  352. package/dist/ui/components/menu-mobile/top/index.d.ts +1 -1
  353. package/dist/ui/components/menu-mobile/top/index.js +2 -2
  354. package/dist/ui/components/menu-mobile/top/interfaces.d.ts +1 -1
  355. package/dist/ui/components/next-image/index.d.ts +1 -1
  356. package/dist/ui/components/next-image/index.js +3 -3
  357. package/dist/ui/components/sidebar/index.d.ts +1 -1
  358. package/dist/ui/components/sidebar/index.js +1 -1
  359. package/dist/ui/contexts/index.d.ts +3 -3
  360. package/dist/ui/contexts/index.js +3 -3
  361. package/dist/ui/contexts/theme/context.d.ts +1 -1
  362. package/dist/ui/contexts/theme/context.js +1 -1
  363. package/dist/ui/contexts/theme/index.d.ts +2 -2
  364. package/dist/ui/contexts/theme/index.js +2 -2
  365. package/dist/ui/contexts/toast/index.d.ts +1 -1
  366. package/dist/ui/contexts/toast/index.js +3 -3
  367. package/dist/ui/contexts/toast/toast-item/index.d.ts +1 -1
  368. package/dist/ui/contexts/toast/toast-item/index.js +2 -2
  369. package/dist/ui/icons/render/Globe.d.ts +1 -1
  370. package/dist/ui/icons/render/LongArrowRight.d.ts +1 -1
  371. package/dist/ui/index.d.ts +5 -5
  372. package/dist/ui/index.js +5 -5
  373. package/dist/ui/utils/buffer/index.d.ts +1 -1
  374. package/dist/ui/utils/buffer/index.js +1 -1
  375. package/dist/ui/utils/facebook/index.d.ts +1 -1
  376. package/dist/ui/utils/facebook/index.js +1 -1
  377. package/dist/ui/utils/file/index.d.ts +2 -2
  378. package/dist/ui/utils/file/index.js +2 -2
  379. package/dist/ui/utils/file/load-file.d.ts +1 -1
  380. package/dist/ui/utils/file/load-file.js +1 -1
  381. package/dist/ui/utils/file/upload-file.d.ts +1 -1
  382. package/dist/ui/utils/file/upload-file.js +1 -1
  383. package/dist/ui/utils/index.d.ts +7 -7
  384. package/dist/ui/utils/index.js +7 -7
  385. package/dist/ui/utils/libs/index.d.ts +1 -1
  386. package/dist/ui/utils/libs/index.js +1 -1
  387. package/dist/ui/utils/libs/next/index.d.ts +2 -2
  388. package/dist/ui/utils/libs/next/index.js +2 -2
  389. package/dist/ui/utils/validations/index.d.ts +2 -2
  390. package/dist/ui/utils/validations/index.js +2 -2
  391. package/package.json +1 -1
@@ -1,107 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __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
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
- return new (P || (P = Promise))(function (resolve, reject) {
39
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
- step((generator = generator.apply(thisArg, _arguments || [])).next());
43
- });
44
- };
45
- var __generator = (this && this.__generator) || function (thisArg, body) {
46
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
47
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
48
- function verb(n) { return function (v) { return step([n, v]); }; }
49
- function step(op) {
50
- if (f) throw new TypeError("Generator is already executing.");
51
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
52
- 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;
53
- if (y = 0, t) op = [op[0] & 2, t.value];
54
- switch (op[0]) {
55
- case 0: case 1: t = op; break;
56
- case 4: _.label++; return { value: op[1], done: false };
57
- case 5: _.label++; y = op[1]; op = [0]; continue;
58
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
59
- default:
60
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
61
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
62
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
63
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
64
- if (t[2]) _.ops.pop();
65
- _.trys.pop(); continue;
66
- }
67
- op = body.call(thisArg, _);
68
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
69
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
70
- }
71
- };
72
- var __importDefault = (this && this.__importDefault) || function (mod) {
73
- return (mod && mod.__esModule) ? mod : { "default": mod };
74
- };
75
- Object.defineProperty(exports, "__esModule", { value: true });
76
- exports.Actions = void 0;
77
- var jsx_runtime_1 = require("react/jsx-runtime");
78
- var react_1 = require("react");
79
- var link_1 = __importDefault(require("next/link"));
80
- var semantic_ui_react_1 = require("semantic-ui-react");
81
- var ui_1 = require("../../../../../../../../ui/index.js");
82
- var S = __importStar(require("./styles.js"));
83
- function Actions(_a) {
84
- var _b;
85
- var actions = _a.actions, table = _a.table;
86
- var _c = (0, react_1.useState)(false), openEdit = _c[0], setOpenEdit = _c[1];
87
- function onSuccessEdit(data) {
88
- return __awaiter(this, void 0, void 0, function () {
89
- return __generator(this, function (_a) {
90
- switch (_a.label) {
91
- case 0: return [4 /*yield*/, actions.edit.onSucess(data, undefined, table)];
92
- case 1:
93
- _a.sent();
94
- setOpenEdit(false);
95
- return [2 /*return*/];
96
- }
97
- });
98
- });
99
- }
100
- var payload = __assign(__assign({}, ((actions === null || actions === void 0 ? void 0 : actions.edit) || {})), { tableItem: table });
101
- return ((0, jsx_runtime_1.jsx)(S.Actions, { children: (0, jsx_runtime_1.jsxs)("div", { children: [actions.edit &&
102
- (((_b = actions.edit) === null || _b === void 0 ? void 0 : _b.link) ? ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Editar', trigger: (0, jsx_runtime_1.jsx)(link_1.default, { className: 'action-button', href: actions.edit.link.href(table), children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconEdit' }) }) })) : ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Modal, { open: openEdit, onClose: function () { return setOpenEdit(false); }, style: { maxWidth: 512, borderRadius: 5 }, trigger: (0, jsx_runtime_1.jsx)("span", { className: 'action-button', children: (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Editar', trigger: (0, jsx_runtime_1.jsx)("button", { type: 'button', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconEdit' }) }) }) }), content: openEdit && (0, jsx_runtime_1.jsx)(ui_1.DynamicFormHandler, __assign({}, payload, { onSucess: onSuccessEdit })), onOpen: function () {
103
- setOpenEdit(true);
104
- } }))), actions.detail && ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Detalhe', trigger: (0, jsx_runtime_1.jsx)(link_1.default, { className: 'action-button', href: actions.detail(table), children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconEye' }) }) })), actions.delete && ((0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { content: 'Excluir', trigger: (0, jsx_runtime_1.jsx)("button", { className: 'action-button', onClick: function () { return actions.delete(table); }, type: 'button', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconDelete' }) }) }))] }) }));
105
- }
106
- exports.Actions = Actions;
107
- //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { ActionsTable } from '../../../interfaces.js';
1
+ import { ActionsTable } from '../../../interfaces';
2
2
  export declare function CreateAction({ actions }: {
3
3
  actions: ActionsTable;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -77,10 +77,10 @@ exports.CreateAction = void 0;
77
77
  var jsx_runtime_1 = require("react/jsx-runtime");
78
78
  var react_1 = require("react");
79
79
  var semantic_ui_react_1 = require("semantic-ui-react");
80
- var ui_1 = require("../../../../../../../../ui/index.js");
81
- var component_1 = require("../../../../../../../../ui/components/form/handler/dynamic_form_handler/component.js");
80
+ var ui_1 = require("@/ui");
81
+ var component_1 = require("@/ui/components/form/handler/dynamic_form_handler/component");
82
82
  var link_1 = __importDefault(require("next/link"));
83
- var S = __importStar(require("./styles.js"));
83
+ var S = __importStar(require("./styles"));
84
84
  function CreateAction(_a) {
85
85
  var _b, _c;
86
86
  var actions = _a.actions;
@@ -1,4 +0,0 @@
1
- import { ExportTable } from '../../../../../../../../system/domain/index.js';
2
- export declare function Export({ exports }: {
3
- exports: ExportTable[];
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,35 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __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.Export = void 0;
27
- var jsx_runtime_1 = require("react/jsx-runtime");
28
- var ui_1 = require("../../../../../../../../ui/index.js");
29
- var S = __importStar(require("./styles.js"));
30
- function Export(_a) {
31
- var exports = _a.exports;
32
- return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Export', children: (0, jsx_runtime_1.jsxs)(S.Export, { className: 'font-14-regular', children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconUpload' }) }), "Exportar"] }) }));
33
- }
34
- exports.Export = Export;
35
- //# sourceMappingURL=index.js.map
@@ -1,4 +0,0 @@
1
- import { TableConfiguration } from '../../../../../../../../system/index.js';
2
- export declare function Filters({ filters }: {
3
- filters: TableConfiguration['filters'];
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,128 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __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
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
- return new (P || (P = Promise))(function (resolve, reject) {
39
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
- step((generator = generator.apply(thisArg, _arguments || [])).next());
43
- });
44
- };
45
- var __generator = (this && this.__generator) || function (thisArg, body) {
46
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
47
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
48
- function verb(n) { return function (v) { return step([n, v]); }; }
49
- function step(op) {
50
- if (f) throw new TypeError("Generator is already executing.");
51
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
52
- 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;
53
- if (y = 0, t) op = [op[0] & 2, t.value];
54
- switch (op[0]) {
55
- case 0: case 1: t = op; break;
56
- case 4: _.label++; return { value: op[1], done: false };
57
- case 5: _.label++; y = op[1]; op = [0]; continue;
58
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
59
- default:
60
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
61
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
62
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
63
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
64
- if (t[2]) _.ops.pop();
65
- _.trys.pop(); continue;
66
- }
67
- op = body.call(thisArg, _);
68
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
69
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
70
- }
71
- };
72
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
73
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
74
- if (ar || !(i in from)) {
75
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
76
- ar[i] = from[i];
77
- }
78
- }
79
- return to.concat(ar || Array.prototype.slice.call(from));
80
- };
81
- Object.defineProperty(exports, "__esModule", { value: true });
82
- exports.Filters = void 0;
83
- var jsx_runtime_1 = require("react/jsx-runtime");
84
- var router_1 = require("next/router");
85
- var system_1 = require("../../../../../../../../system/index.js");
86
- var ui_1 = require("../../../../../../../../ui/index.js");
87
- var S = __importStar(require("./styles.js"));
88
- function Filters(_a) {
89
- var _this = this;
90
- var _b;
91
- var filters = _a.filters;
92
- var router = (0, router_1.useRouter)();
93
- var queryFilters = (_b = router === null || router === void 0 ? void 0 : router.query) === null || _b === void 0 ? void 0 : _b.filters;
94
- var base64FiltersDecoded = (0, ui_1.fromBase64ToString)(queryFilters);
95
- var hasFiltersSelected = (base64FiltersDecoded === null || base64FiltersDecoded === void 0 ? void 0 : base64FiltersDecoded.filters) && Array.isArray(base64FiltersDecoded === null || base64FiltersDecoded === void 0 ? void 0 : base64FiltersDecoded.filters);
96
- var initialData = hasFiltersSelected &&
97
- (base64FiltersDecoded === null || base64FiltersDecoded === void 0 ? void 0 : base64FiltersDecoded.filters.reduce(function (reducer, filter) {
98
- var _a;
99
- return __assign(__assign({}, reducer), (_a = {}, _a[filter === null || filter === void 0 ? void 0 : filter.data] = filter === null || filter === void 0 ? void 0 : filter.search, _a));
100
- }, {}));
101
- function updateFilters(filters) {
102
- (0, ui_1.updateRoute)({ params: { filters: (0, ui_1.toBase64)({ filters: filters }) }, router: router });
103
- }
104
- return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Filters', children: (0, jsx_runtime_1.jsx)(S.Filters, { children: (0, jsx_runtime_1.jsx)(ui_1.FormHandler, { initialData: initialData, children: (0, jsx_runtime_1.jsxs)("div", { className: 'filters', style: { gridTemplateColumns: "repeat(".concat(filters.length + 1, ", 1fr)") }, children: [filters === null || filters === void 0 ? void 0 : filters.map(function (filter) { return ((0, jsx_runtime_1.jsx)(ui_1.Select, { name: filter.data, placeholder: filter.label, onlyOneValue: true, onChangeSelect: function (value) { return __awaiter(_this, void 0, void 0, function () {
105
- var filterSelected, filterAlredyExist, remapedFilters;
106
- var _a, _b;
107
- return __generator(this, function (_c) {
108
- filterSelected = { data: filter === null || filter === void 0 ? void 0 : filter.data, search: value };
109
- if (hasFiltersSelected) {
110
- filterAlredyExist = (_a = base64FiltersDecoded === null || base64FiltersDecoded === void 0 ? void 0 : base64FiltersDecoded.filters) === null || _a === void 0 ? void 0 : _a.find(function (f) { return (f === null || f === void 0 ? void 0 : f.data) === (filter === null || filter === void 0 ? void 0 : filter.data); });
111
- if (filterAlredyExist) {
112
- remapedFilters = (_b = base64FiltersDecoded === null || base64FiltersDecoded === void 0 ? void 0 : base64FiltersDecoded.filters) === null || _b === void 0 ? void 0 : _b.map(function (f) {
113
- return (f === null || f === void 0 ? void 0 : f.data) === (filter === null || filter === void 0 ? void 0 : filter.data) ? filterSelected : f;
114
- });
115
- updateFilters(remapedFilters);
116
- return [2 /*return*/];
117
- }
118
- updateFilters(__spreadArray(__spreadArray([], base64FiltersDecoded === null || base64FiltersDecoded === void 0 ? void 0 : base64FiltersDecoded.filters, true), [filterSelected], false));
119
- }
120
- else {
121
- updateFilters([filterSelected]);
122
- }
123
- return [2 /*return*/];
124
- });
125
- }); }, options: filter.options.map(function (op) { return ({ label: op.text, value: op.value }); }) }, filter.data)); }), (0, jsx_runtime_1.jsx)(system_1.InputSearch, { onChange: function (value) { return (0, ui_1.updateRoute)({ params: { searchString: value }, router: router }); } })] }) }) }) }));
126
- }
127
- exports.Filters = Filters;
128
- //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import { ITableProps } from './interfaces.js';
1
+ import { ITableProps } from './interfaces';
2
2
  export declare function Table({ configs, isFetching, columnsConfiguration, tableInformations }: ITableProps): import("react/jsx-runtime").JSX.Element;
@@ -37,15 +37,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.Table = void 0;
38
38
  var jsx_runtime_1 = require("react/jsx-runtime");
39
39
  var router_1 = require("next/router");
40
- var ui_1 = require("../../../../../../../ui/index.js");
41
- var export_1 = require("./export/index.js");
42
- var actions_1 = require("./actions/index.js");
43
- var filters_1 = require("./filters/index.js");
44
- var create_1 = require("./create/index.js");
45
- var thead_item_1 = require("./thead-item/index.js");
46
- var pagination_1 = require("./pagination/index.js");
47
- var skeleton_table_1 = require("./skeleton-table/index.js");
48
- var S = __importStar(require("./styles.js"));
40
+ var ui_1 = require("@/ui");
41
+ var export_1 = require("./export");
42
+ var actions_1 = require("./actions");
43
+ var filters_1 = require("./filters");
44
+ var create_1 = require("./create");
45
+ var thead_item_1 = require("./thead-item");
46
+ var pagination_1 = require("./pagination");
47
+ var skeleton_table_1 = require("./skeleton-table");
48
+ var S = __importStar(require("./styles"));
49
49
  function Table(_a) {
50
50
  var _b, _c, _d, _e;
51
51
  var configs = _a.configs, isFetching = _a.isFetching, columnsConfiguration = _a.columnsConfiguration, tableInformations = _a.tableInformations;
@@ -1,5 +1,5 @@
1
- import { List, Pagination, TableConfiguration } from '../../../../../../../system/index.js';
2
- import { IUseTableProps } from '../../interfaces.js';
1
+ import { List, Pagination, TableConfiguration } from '@/system';
2
+ import { IUseTableProps } from '../../interfaces';
3
3
  type colunm = keyof any;
4
4
  interface IShowHiden {
5
5
  text: string;
@@ -1,2 +1,2 @@
1
- import { PaginationModel } from '../../../../../../../../system/index.js';
1
+ import { PaginationModel } from '@/system';
2
2
  export declare function Pagination({ page, endPage, pageSize, totalItems, hasNextPage, hasPreviousPage }: PaginationModel): import("react/jsx-runtime").JSX.Element;
@@ -27,9 +27,9 @@ exports.Pagination = void 0;
27
27
  var jsx_runtime_1 = require("react/jsx-runtime");
28
28
  var react_1 = require("react");
29
29
  var router_1 = require("next/router");
30
- var ui_1 = require("../../../../../../../../ui/index.js");
31
- var service_1 = require("./service.js");
32
- var S = __importStar(require("./styles.js"));
30
+ var ui_1 = require("@/ui");
31
+ var service_1 = require("./service");
32
+ var S = __importStar(require("./styles"));
33
33
  function Pagination(_a) {
34
34
  var page = _a.page, endPage = _a.endPage, pageSize = _a.pageSize, totalItems = _a.totalItems, hasNextPage = _a.hasNextPage, hasPreviousPage = _a.hasPreviousPage;
35
35
  var _b = (0, react_1.useState)(null), pagination = _b[0], setPagination = _b[1];
@@ -26,8 +26,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.SkeletonTable = void 0;
27
27
  var jsx_runtime_1 = require("react/jsx-runtime");
28
28
  var semantic_ui_react_1 = require("semantic-ui-react");
29
- var ui_1 = require("../../../../../../../../ui/index.js");
30
- var S = __importStar(require("./styles.js"));
29
+ var ui_1 = require("@/ui");
30
+ var S = __importStar(require("./styles"));
31
31
  function SkeletonTable() {
32
32
  return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'skeleton', children: (0, jsx_runtime_1.jsx)(S.SkeletonCustom, { "data-testid": 'skeleton', children: (0, jsx_runtime_1.jsxs)(semantic_ui_react_1.Placeholder, { fluid: true, children: [(0, jsx_runtime_1.jsx)(semantic_ui_react_1.Placeholder.Header, {}), (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Placeholder.Header, {}), (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Placeholder.Header, {}), (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Placeholder.Header, {}), (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Placeholder.Header, {}), (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Placeholder.Header, {}), (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Placeholder.Header, {}), (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Placeholder.Header, {}), (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Placeholder.Header, {}), (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Placeholder.Header, {}), (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Placeholder.Header, {}), (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Placeholder.Header, {})] }) }) }));
33
33
  }
@@ -1,2 +1,2 @@
1
- import { ITHeadItemProps } from './interfaces.js';
1
+ import { ITHeadItemProps } from './interfaces';
2
2
  export declare function THeadItem({ colunm, disableOrdenationTable }: ITHeadItemProps): import("react/jsx-runtime").JSX.Element;
@@ -26,8 +26,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.THeadItem = void 0;
27
27
  var jsx_runtime_1 = require("react/jsx-runtime");
28
28
  var router_1 = require("next/router");
29
- var ui_1 = require("../../../../../../../../ui/index.js");
30
- var S = __importStar(require("./styles.js"));
29
+ var ui_1 = require("@/ui");
30
+ var S = __importStar(require("./styles"));
31
31
  function THeadItem(_a) {
32
32
  var colunm = _a.colunm, disableOrdenationTable = _a.disableOrdenationTable;
33
33
  var router = (0, router_1.useRouter)();
@@ -1,4 +1,4 @@
1
- import { Column } from "../../../interfaces.js";
1
+ import { Column } from "../../../interfaces";
2
2
  export interface ITHeadItemProps {
3
3
  index: number;
4
4
  colunm: Column;
@@ -1,4 +1,4 @@
1
- export * from './query/index.js';
2
- export * from './component.js';
3
- export * from './components/index.js';
4
- export * from './interfaces.js';
1
+ export * from './query';
2
+ export * from './component';
3
+ export * from './components';
4
+ export * from './interfaces';
@@ -14,8 +14,8 @@ 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("./query/index.js"), exports);
18
- __exportStar(require("./component.js"), exports);
19
- __exportStar(require("./components/index.js"), exports);
20
- __exportStar(require("./interfaces.js"), exports);
17
+ __exportStar(require("./query"), exports);
18
+ __exportStar(require("./component"), exports);
19
+ __exportStar(require("./components"), exports);
20
+ __exportStar(require("./interfaces"), exports);
21
21
  //# sourceMappingURL=index.js.map
@@ -1,80 +0,0 @@
1
- /// <reference types="react" />
2
- import { PaginationModel } from '../../../../../system/index.js';
3
- import { IconsNames, DynamicFormHandlerProps } from '../../../../../ui/index.js';
4
- interface Column<T = any> {
5
- id: keyof T;
6
- label: string;
7
- width?: number;
8
- hasAsc?: boolean;
9
- Component?: {
10
- Element: (props: {
11
- [key in keyof T]?: any;
12
- }) => JSX.Element;
13
- allProps?: boolean;
14
- props: {
15
- [key in keyof T]?: any;
16
- };
17
- defaultProps?: {
18
- [key: string]: any;
19
- };
20
- };
21
- }
22
- interface IParamsTable {
23
- page?: number;
24
- }
25
- interface IConfigurationsTable {
26
- tableData?: any;
27
- isLoading?: boolean;
28
- errorMessage: string;
29
- disableGetFilter?: boolean;
30
- disablePagination?: boolean;
31
- enableSearchInSelf?: boolean;
32
- pagination?: PaginationModel;
33
- disableOrdenationTable?: boolean;
34
- }
35
- type QueryTable<M = any> = {
36
- user?: any;
37
- container?: any;
38
- Types?: any;
39
- queryKey: M;
40
- requireUser?: boolean;
41
- queryKeyParams?: string;
42
- dynamicFiltersFromApi?: boolean;
43
- debugMode?: boolean;
44
- };
45
- type TableActionCreate<T = any> = {
46
- link?: {
47
- href: string;
48
- };
49
- text?: string;
50
- icon?: IconsNames;
51
- } & DynamicFormHandlerProps<T>;
52
- type TableActionEdit<T = any> = {
53
- link?: {
54
- href: (table: {
55
- [key in keyof T]: string;
56
- }) => string;
57
- text: string;
58
- icon?: IconsNames;
59
- };
60
- } & DynamicFormHandlerProps<T>;
61
- type ActionsTable<T = any> = {
62
- edit?: TableActionEdit<T>;
63
- create?: TableActionCreate<T>;
64
- delete?: (table: {
65
- [key in keyof T]: T[key];
66
- }) => void;
67
- detail?: (table: {
68
- [key in keyof T]: string;
69
- }) => string;
70
- };
71
- type ColumnsConfiguration<T = any> = {
72
- columns: Column<T>[];
73
- actions?: ActionsTable<T>;
74
- };
75
- interface IUseTableProps<T = any, M = any> {
76
- query?: QueryTable<M>;
77
- configs: IConfigurationsTable;
78
- columnsConfiguration: ColumnsConfiguration<T>;
79
- }
80
- export type { Column, QueryTable, ActionsTable, IParamsTable, IUseTableProps, TableActionEdit, TableActionCreate, IConfigurationsTable, ColumnsConfiguration, };
@@ -1,2 +0,0 @@
1
- import { QueryTable } from '../interfaces.js';
2
- export declare function useGetQueryArgumentsTable(props: QueryTable): QueryTable;
@@ -1,5 +0,0 @@
1
- import { QueryTable } from '../interfaces.js';
2
- export declare function useQueryTable(props: QueryTable): {
3
- data: any;
4
- isLoading: boolean;
5
- };
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.useQueryTable = void 0;
18
- var swr_1 = __importDefault(require("swr"));
19
- var router_1 = require("next/router");
20
- var ui_1 = require("../../../../../../ui/index.js");
21
- function useQueryTable(props) {
22
- var _a;
23
- var query = (0, router_1.useRouter)().query;
24
- var enabled = props.requireUser ? props.user : true;
25
- var REMOTE = props.container && ((_a = props.container) === null || _a === void 0 ? void 0 : _a.get(props.Types[props.queryKey]));
26
- var queryFiltersBase64 = (0, ui_1.fromBase64ToString)(query.filters);
27
- var params = __assign(__assign({}, query), { orderColumn: undefined, asc: undefined, order: query.orderColumn && { column: query.orderColumn, asc: !!(query.asc === 'true') }, filters: queryFiltersBase64.filters });
28
- var tableResponse = (0, swr_1.default)(REMOTE && (props.queryKeyParams || props.queryKey), function () { return REMOTE.loadAll(params); });
29
- var configurations = (0, swr_1.default)(REMOTE && props.dynamicFiltersFromApi && "".concat(props.queryKey, "/Table"), function () { return REMOTE.loadTable(); });
30
- if (props.debugMode) {
31
- console.log({
32
- enabled: enabled,
33
- REMOTE: REMOTE,
34
- KEY_TABLE: props.queryKey,
35
- queryFiltersBase64: queryFiltersBase64,
36
- params: params,
37
- data: tableResponse.data,
38
- isLoading: tableResponse.isLoading,
39
- error: tableResponse.error,
40
- loadAll: REMOTE.loadAll,
41
- configurations: configurations,
42
- });
43
- }
44
- return {
45
- data: __assign(__assign({}, tableResponse.data), configurations === null || configurations === void 0 ? void 0 : configurations.data),
46
- isLoading: (configurations === null || configurations === void 0 ? void 0 : configurations.isLoading) || tableResponse.isLoading || tableResponse.isValidating,
47
- };
48
- }
49
- exports.useQueryTable = useQueryTable;
50
- //# sourceMappingURL=hook.js.map
@@ -1,2 +0,0 @@
1
- export * from './hook.js';
2
- export * from './get-query-arguments-table.js';
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./hook.js"), exports);
18
- __exportStar(require("./get-query-arguments-table.js"), exports);
19
- //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
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';
1
+ export * from './utils';
2
+ export * from './hooks';
3
+ export * from './configs';
4
+ export * from './context';
5
+ export * from './components';
@@ -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/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);
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);
22
22
  //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- export * from './use-query/index.js';