infinity-forge 3.4.7 → 3.4.9

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 (292) hide show
  1. package/dist/sites/components/default-pages/blog/components/blog-item/index.d.ts +1 -1
  2. package/dist/sites/components/default-pages/blog/components/blog-item/index.js +1 -1
  3. package/dist/sites/components/default-pages/blog/components/categorias/index.js +1 -1
  4. package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.d.ts +4 -0
  5. package/dist/sites/components/default-pages/blog/components/featured-blog/featured-blog-item/index.js +42 -0
  6. package/dist/sites/components/default-pages/blog/components/featured-blog/index.js +1 -1
  7. package/dist/sites/components/default-pages/blog/components/side-box-newsletter/index.js +1 -1
  8. package/dist/sites/components/default-pages/blog/components/side-box-search/index.js +1 -1
  9. package/dist/sites/components/default-pages/blog/components/title-blog/index.js +1 -1
  10. package/dist/system/presentation/components/data/buttons/sidebar-button/index.js +1 -1
  11. package/dist/system/presentation/components/data/chat/card-message/index.d.ts +1 -1
  12. package/dist/system/presentation/components/data/chat/card-message/index.js +1 -1
  13. package/dist/system/presentation/components/data/chat/loader/index.js +1 -1
  14. package/dist/system/presentation/components/data/menu/components/menu-item/index.js +80 -0
  15. package/dist/system/presentation/components/data/menu/modes/collapsed-menu/index.js +44 -0
  16. package/dist/system/presentation/components/data/menu/modes/collapsed-menu/styles.js +15 -0
  17. package/dist/system/presentation/components/data/menu/modes/opened/index.js +51 -0
  18. package/dist/system/presentation/components/data/menu/modes/opened/styles.js +15 -0
  19. package/dist/system/presentation/components/data/notifications/card/index.d.ts +1 -1
  20. package/dist/system/presentation/components/data/notifications/card/index.js +1 -1
  21. package/dist/system/presentation/components/data/profile-infos/profile/index.js +1 -1
  22. package/dist/system/presentation/components/data/tab/tab-item/index.js +1 -1
  23. package/dist/system/presentation/components/layout/header/components/menu-right/component.d.ts +6 -0
  24. package/dist/system/presentation/components/layout/header/components/menu-right/component.js +35 -0
  25. package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +3 -0
  26. package/dist/system/presentation/components/layout/header/components/menu-right/index.js +20 -0
  27. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.d.ts +1 -1
  28. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.js +3 -3
  29. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +3 -3
  30. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +1 -1
  31. package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +4 -4
  32. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +3 -3
  33. package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +4 -4
  34. package/dist/system/presentation/components/layout/header/components/search-modal/index.js +40 -0
  35. package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +3 -3
  36. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +2 -2
  37. package/dist/system/presentation/components/layout/header/version-01/index.js +1 -1
  38. package/dist/system/presentation/components/pages/menus/table/columns.d.ts +1 -1
  39. package/dist/system/presentation/components/pages/menus/table/create.d.ts +1 -1
  40. package/dist/system/presentation/components/pages/menus/table/create.js +1 -1
  41. package/dist/system/presentation/components/pages/menus/table/delete.js +1 -1
  42. package/dist/system/presentation/components/pages/menus/table/edit.d.ts +1 -1
  43. package/dist/system/presentation/components/pages/menus/table/edit.js +1 -0
  44. package/dist/system/presentation/components/pages/menus/table/icon/index.js +34 -0
  45. package/dist/system/presentation/components/pages/users/table/columns.d.ts +1 -1
  46. package/dist/system/presentation/components/pages/users/table/create.d.ts +1 -1
  47. package/dist/system/presentation/components/pages/users/table/create.js +1 -1
  48. package/dist/system/presentation/components/pages/users/table/delete.js +1 -1
  49. package/dist/system/presentation/components/pages/users/table/edit.d.ts +1 -1
  50. package/dist/system/presentation/components/pages/users/table/edit.js +1 -0
  51. package/dist/system/presentation/context/auth/components/login/form-login/index.js +12 -0
  52. package/dist/system/presentation/context/auth/components/login/index.js +1 -1
  53. package/dist/system/presentation/context/auth/components/private-page/index.js +1 -1
  54. package/dist/system/presentation/hooks/locales/ibge/use-load-cities-by-uf/index.d.ts +1 -1
  55. package/dist/system/presentation/hooks/locales/ibge/use-load-cities-by-uf/index.js +1 -1
  56. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.d.ts +1 -1
  57. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.js +2 -2
  58. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +1 -1
  59. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +4 -4
  60. package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.d.ts +1 -1
  61. package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.js +2 -2
  62. package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.d.ts +1 -1
  63. package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +3 -3
  64. package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.d.ts +1 -1
  65. package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +2 -2
  66. package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.d.ts +1 -1
  67. package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js +3 -3
  68. package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +2 -0
  69. package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +105 -0
  70. package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +14 -0
  71. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +1 -1
  72. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +3 -3
  73. package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js +2 -2
  74. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +1 -1
  75. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +2 -2
  76. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +1 -1
  77. package/dist/system/presentation/hooks/ui/use-table/query/hook.js +1 -1
  78. package/dist/ui/components/carousel/carousel-lib/core/modules/observer/observer.js +2 -2
  79. package/dist/ui/components/carousel/carousel-lib/core/modules/resize/resize.js +1 -1
  80. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.d.ts +1 -1
  81. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/hook.js +1 -1
  82. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.d.ts +3 -3
  83. package/dist/ui/components/form/input-cep/use-cep/providers/ibge/index.js +3 -3
  84. package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.js +62 -0
  85. package/dist/ui/components/form/input-date-picker/calendar/days/index.d.ts +2 -0
  86. package/dist/ui/components/form/input-date-picker/calendar/days/index.js +87 -0
  87. package/dist/ui/components/form/input-date-picker/calendar/months/index.d.ts +2 -0
  88. package/dist/ui/components/form/input-date-picker/calendar/months/index.js +66 -0
  89. package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.d.ts +1 -1
  90. package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.js +1 -1
  91. package/dist/ui/components/form/input-file/render-files/file-item/index.d.ts +3 -0
  92. package/dist/ui/components/form/input-file/render-files/file-item/index.js +49 -0
  93. package/dist/ui/components/form/input-mask/lib/core/errors/SyntheticChangeError.d.ts +1 -1
  94. package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.d.ts +1 -1
  95. package/dist/ui/components/form/input-mask/lib/core/hooks/useInput.js +2 -2
  96. package/dist/ui/components/form/input-mask/lib/core/index.d.ts +5 -0
  97. package/dist/ui/components/form/input-mask/lib/core/index.js +15 -0
  98. package/dist/ui/components/form/input-mask/lib/core/utils/setInputAttributes.d.ts +1 -1
  99. package/dist/ui/components/form/input-mask/lib/mask/InputMask.d.ts +6 -0
  100. package/dist/ui/components/form/input-mask/lib/mask/InputMask.js +44 -0
  101. package/dist/ui/components/form/input-mask/lib/mask/index.d.ts +5 -0
  102. package/dist/ui/components/form/input-mask/lib/mask/index.js +26 -0
  103. package/dist/ui/components/form/input-mask/lib/mask/types.d.ts +61 -0
  104. package/dist/ui/components/form/input-mask/lib/mask/useMask.d.ts +3 -0
  105. package/dist/ui/components/form/input-mask/lib/mask/useMask.js +150 -0
  106. package/dist/ui/components/form/input-mask/lib/mask/utils/filter.d.ts +1 -1
  107. package/dist/ui/components/form/input-mask/lib/mask/utils/format.d.ts +1 -1
  108. package/dist/ui/components/form/input-mask/lib/mask/utils/formatToParts.d.ts +1 -1
  109. package/dist/ui/components/form/input-mask/lib/mask/utils/formatToReplacementObject.d.ts +1 -1
  110. package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.d.ts +1 -1
  111. package/dist/ui/components/form/input-mask/lib/mask/utils/resolveDetail.js +3 -3
  112. package/dist/ui/components/form/input-mask/lib/mask/utils/resolveSelection.d.ts +2 -2
  113. package/dist/ui/components/form/input-mask/lib/mask/utils/unformat.d.ts +1 -1
  114. package/dist/ui/components/form/input-mask/lib/mask/utils/validate.d.ts +1 -1
  115. package/dist/ui/components/form/input-mask/lib/mask/utils.d.ts +63 -0
  116. package/dist/ui/components/form/input-mask/lib/mask/utils.js +114 -0
  117. package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.d.ts +6 -0
  118. package/dist/ui/components/form/input-mask/lib/number-format/InputNumberFormat.js +58 -0
  119. package/dist/ui/components/form/input-mask/lib/number-format/index.d.ts +4 -0
  120. package/dist/ui/components/form/input-mask/lib/number-format/index.js +11 -0
  121. package/dist/ui/components/form/input-mask/lib/number-format/types.d.ts +26 -0
  122. package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.d.ts +3 -0
  123. package/dist/ui/components/form/input-mask/lib/number-format/useNumberFormat.js +208 -0
  124. package/dist/ui/components/form/input-mask/lib/number-format/utils/localizeValues.d.ts +1 -1
  125. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.d.ts +2 -2
  126. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveDetail.js +1 -1
  127. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveMinimumFractionDigits.d.ts +1 -1
  128. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveOptions.d.ts +1 -1
  129. package/dist/ui/components/form/input-mask/lib/number-format/utils/resolveSelection.d.ts +2 -2
  130. package/dist/ui/components/form/input-seo/input-meta-image/index.d.ts +1 -1
  131. package/dist/ui/components/form/input-seo/input-meta-image/index.js +1 -1
  132. package/dist/ui/components/menu-mobile/components/nav-links/index.js +1 -1
  133. package/package.json +2 -2
  134. package/dist/fonts/arima-bold.ttf +0 -0
  135. package/dist/fonts/baijamjuree-bold.ttf +0 -0
  136. package/dist/fonts/baijamjuree-regular.ttf +0 -0
  137. package/dist/fonts/barlow-bold.ttf +0 -0
  138. package/dist/fonts/barlow-medium.ttf +0 -0
  139. package/dist/fonts/barlow-regular.ttf +0 -0
  140. package/dist/fonts/bigshouldersdisplay-bold.ttf +0 -0
  141. package/dist/fonts/bigshouldersdisplay-medium.ttf +0 -0
  142. package/dist/fonts/bigshouldersdisplay-regular.ttf +0 -0
  143. package/dist/fonts/bigshouldersdisplay-semibold.ttf +0 -0
  144. package/dist/fonts/bricolage-bold.ttf +0 -0
  145. package/dist/fonts/bricolage-medium.ttf +0 -0
  146. package/dist/fonts/bricolage-regular.ttf +0 -0
  147. package/dist/fonts/dmsans-bold.ttf +0 -0
  148. package/dist/fonts/dmsans-medium.ttf +0 -0
  149. package/dist/fonts/dmsans-regular.ttf +0 -0
  150. package/dist/fonts/dmsans-semibold.ttf +0 -0
  151. package/dist/fonts/exo-medium.ttf +0 -0
  152. package/dist/fonts/figtree-bold.ttf +0 -0
  153. package/dist/fonts/figtree-regular.ttf +0 -0
  154. package/dist/fonts/firasans-bold.ttf +0 -0
  155. package/dist/fonts/firasans-medium.ttf +0 -0
  156. package/dist/fonts/firasans-regular.ttf +0 -0
  157. package/dist/fonts/firasans-semibold.ttf +0 -0
  158. package/dist/fonts/heebo-bold.ttf +0 -0
  159. package/dist/fonts/heebo-medium.ttf +0 -0
  160. package/dist/fonts/heebo-regular.ttf +0 -0
  161. package/dist/fonts/heebo-semibold.ttf +0 -0
  162. package/dist/fonts/ibm-bold.ttf +0 -0
  163. package/dist/fonts/ibm-light.ttf +0 -0
  164. package/dist/fonts/ibm-medium.ttf +0 -0
  165. package/dist/fonts/ibm-regular.ttf +0 -0
  166. package/dist/fonts/ibm-semibold.ttf +0 -0
  167. package/dist/fonts/ibm-thin.ttf +0 -0
  168. package/dist/fonts/inter-bold.ttf +0 -0
  169. package/dist/fonts/inter-light.ttf +0 -0
  170. package/dist/fonts/inter-medium.ttf +0 -0
  171. package/dist/fonts/inter-regular.ttf +0 -0
  172. package/dist/fonts/inter-semibold.ttf +0 -0
  173. package/dist/fonts/jakarta-bold.ttf +0 -0
  174. package/dist/fonts/jakarta-light.ttf +0 -0
  175. package/dist/fonts/jakarta-medium.ttf +0 -0
  176. package/dist/fonts/jakarta-regular.ttf +0 -0
  177. package/dist/fonts/kalnia-bold.ttf +0 -0
  178. package/dist/fonts/kalnia-light.ttf +0 -0
  179. package/dist/fonts/kalnia-medium.ttf +0 -0
  180. package/dist/fonts/kalnia-regular.ttf +0 -0
  181. package/dist/fonts/kalnia-semibold.ttf +0 -0
  182. package/dist/fonts/kalnia-thin.ttf +0 -0
  183. package/dist/fonts/khand-bold.ttf +0 -0
  184. package/dist/fonts/khand-medium.ttf +0 -0
  185. package/dist/fonts/khand-regular.ttf +0 -0
  186. package/dist/fonts/khand-semibold.ttf +0 -0
  187. package/dist/fonts/lexend-bold.ttf +0 -0
  188. package/dist/fonts/lexend-light.ttf +0 -0
  189. package/dist/fonts/lexend-medium.ttf +0 -0
  190. package/dist/fonts/lexend-regular.ttf +0 -0
  191. package/dist/fonts/lexend-semibold.ttf +0 -0
  192. package/dist/fonts/manrope-bold.ttf +0 -0
  193. package/dist/fonts/manrope-medium.ttf +0 -0
  194. package/dist/fonts/manrope-regular.ttf +0 -0
  195. package/dist/fonts/manrope-semiBold.ttf +0 -0
  196. package/dist/fonts/montserrat-bold.ttf +0 -0
  197. package/dist/fonts/montserrat-light.ttf +0 -0
  198. package/dist/fonts/montserrat-medium.ttf +0 -0
  199. package/dist/fonts/montserrat-regular.ttf +0 -0
  200. package/dist/fonts/montserrat-semibold.ttf +0 -0
  201. package/dist/fonts/nunito-bold.ttf +0 -0
  202. package/dist/fonts/nunito-medium.ttf +0 -0
  203. package/dist/fonts/nunito-regular.ttf +0 -0
  204. package/dist/fonts/objective-bold.otf +0 -0
  205. package/dist/fonts/objective-medium.otf +0 -0
  206. package/dist/fonts/objective-regular.otf +0 -0
  207. package/dist/fonts/onest-black.ttf +0 -0
  208. package/dist/fonts/onest-bold.ttf +0 -0
  209. package/dist/fonts/onest-extrabold.ttf +0 -0
  210. package/dist/fonts/onest-extralight.ttf +0 -0
  211. package/dist/fonts/onest-light.ttf +0 -0
  212. package/dist/fonts/onest-medium.ttf +0 -0
  213. package/dist/fonts/onest-regular.ttf +0 -0
  214. package/dist/fonts/onest-semibold.ttf +0 -0
  215. package/dist/fonts/onest-thin.ttf +0 -0
  216. package/dist/fonts/opensans-bold.ttf +0 -0
  217. package/dist/fonts/opensans-medium.ttf +0 -0
  218. package/dist/fonts/opensans-regular.ttf +0 -0
  219. package/dist/fonts/oswald-bold.ttf +0 -0
  220. package/dist/fonts/oswald-light.ttf +0 -0
  221. package/dist/fonts/oswald-medium.ttf +0 -0
  222. package/dist/fonts/oswald-regular.ttf +0 -0
  223. package/dist/fonts/oswald-semibold.ttf +0 -0
  224. package/dist/fonts/outfit-bold.ttf +0 -0
  225. package/dist/fonts/outfit-light.ttf +0 -0
  226. package/dist/fonts/outfit-medium.ttf +0 -0
  227. package/dist/fonts/outfit-regular.ttf +0 -0
  228. package/dist/fonts/outfit-semibold.ttf +0 -0
  229. package/dist/fonts/paytone-regular.ttf +0 -0
  230. package/dist/fonts/playfairdisplay-bold.ttf +0 -0
  231. package/dist/fonts/playfairdisplay-medium.ttf +0 -0
  232. package/dist/fonts/playfairdisplay-regular.ttf +0 -0
  233. package/dist/fonts/playfairdisplay-semibold.ttf +0 -0
  234. package/dist/fonts/poppins-bold.ttf +0 -0
  235. package/dist/fonts/poppins-medium.ttf +0 -0
  236. package/dist/fonts/poppins-regular.ttf +0 -0
  237. package/dist/fonts/raleway-bold.ttf +0 -0
  238. package/dist/fonts/raleway-regular.ttf +0 -0
  239. package/dist/fonts/rethinksans-bold.ttf +0 -0
  240. package/dist/fonts/rethinksans-medium.ttf +0 -0
  241. package/dist/fonts/rethinksans-regular.ttf +0 -0
  242. package/dist/fonts/rethinksans-semibold.ttf +0 -0
  243. package/dist/fonts/roboto-bold.ttf +0 -0
  244. package/dist/fonts/roboto-light.ttf +0 -0
  245. package/dist/fonts/roboto-medium.ttf +0 -0
  246. package/dist/fonts/roboto-regular.ttf +0 -0
  247. package/dist/fonts/robotocondensed-black-italic.ttf +0 -0
  248. package/dist/fonts/robotocondensed-black.ttf +0 -0
  249. package/dist/fonts/robotocondensed-bold-italic.ttf +0 -0
  250. package/dist/fonts/robotocondensed-bold.ttf +0 -0
  251. package/dist/fonts/robotocondensed-extrabold-italic.ttf +0 -0
  252. package/dist/fonts/robotocondensed-extrabold.ttf +0 -0
  253. package/dist/fonts/robotocondensed-extralight-italic.ttf +0 -0
  254. package/dist/fonts/robotocondensed-extralight.ttf +0 -0
  255. package/dist/fonts/robotocondensed-light-italic.ttf +0 -0
  256. package/dist/fonts/robotocondensed-light.ttf +0 -0
  257. package/dist/fonts/robotocondensed-medium-italic.ttf +0 -0
  258. package/dist/fonts/robotocondensed-medium.ttf +0 -0
  259. package/dist/fonts/robotocondensed-regular-italic.ttf +0 -0
  260. package/dist/fonts/robotocondensed-regular.ttf +0 -0
  261. package/dist/fonts/robotocondensed-semi-bold-italic.ttf +0 -0
  262. package/dist/fonts/robotocondensed-semi-bold.ttf +0 -0
  263. package/dist/fonts/robotocondensed-thin-italic.ttf +0 -0
  264. package/dist/fonts/robotocondensed-thin.ttf +0 -0
  265. package/dist/fonts/rubik-regular.ttf +0 -0
  266. package/dist/fonts/ruda-bold.ttf +0 -0
  267. package/dist/fonts/ruda-medium.ttf +0 -0
  268. package/dist/fonts/ruda-regular.ttf +0 -0
  269. package/dist/fonts/ruda-semibold.ttf +0 -0
  270. package/dist/fonts/russoone-regular.ttf +0 -0
  271. package/dist/fonts/shentox-regular.otf +0 -0
  272. package/dist/fonts/shentox-semibold.otf +0 -0
  273. package/dist/fonts/sofiasanscondensed-bold.ttf +0 -0
  274. package/dist/fonts/sofiasanscondensed-medium.ttf +0 -0
  275. package/dist/fonts/sofiasanscondensed-regular.ttf +0 -0
  276. package/dist/fonts/sofiasanscondensed-semibold.ttf +0 -0
  277. package/dist/fonts/sora-bold.ttf +0 -0
  278. package/dist/fonts/sora-regular.ttf +0 -0
  279. package/dist/fonts/staatliches-regular.ttf +0 -0
  280. package/dist/fonts/teko-bold.ttf +0 -0
  281. package/dist/fonts/teko-light.ttf +0 -0
  282. package/dist/fonts/teko-medium.ttf +0 -0
  283. package/dist/fonts/teko-regular.ttf +0 -0
  284. package/dist/fonts/teko-semiBold.ttf +0 -0
  285. package/dist/fonts/titilliumweb-bold.ttf +0 -0
  286. package/dist/fonts/titilliumweb-light.ttf +0 -0
  287. package/dist/fonts/titilliumweb-regular.ttf +0 -0
  288. package/dist/fonts/yanone-bold.ttf +0 -0
  289. package/dist/fonts/yanone-light.ttf +0 -0
  290. package/dist/fonts/yanone-medium.ttf +0 -0
  291. package/dist/fonts/yanone-regular.ttf +0 -0
  292. package/dist/fonts/yanone-semibold.ttf +0 -0
@@ -36,8 +36,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.SearchTrigger = void 0;
38
38
  var jsx_runtime_1 = require("react/jsx-runtime");
39
- var ui_1 = require("../../../../../../../../ui");
40
- var S = __importStar(require("./styles"));
39
+ var ui_1 = require("../../../../../../../../ui/index.js");
40
+ var S = __importStar(require("./styles.js"));
41
41
  function SearchTrigger(props) {
42
42
  return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'SearchTrigger', children: (0, jsx_runtime_1.jsxs)(S.SearchTrigger, __assign({ "aria-label": 'Search' }, props, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'LupaIcon' }) }), (0, jsx_runtime_1.jsx)("span", { className: 'placeholder font-14-regular', children: "Pesquisar..." })] })) }));
43
43
  }
@@ -41,4 +41,4 @@ function HeaderVersion01(_a) {
41
41
  return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'HeaderCarbon', children: (0, jsx_runtime_1.jsx)(S.HeaderVersion01, { id: 'header', children: (0, jsx_runtime_1.jsxs)(ui_1.Container, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'left', children: (0, jsx_runtime_1.jsx)("div", { className: 'logo-wrapper', children: (0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'logo', children: (0, jsx_runtime_1.jsx)(link_1.default, { className: 'logo', href: (logo === null || logo === void 0 ? void 0 : logo.href) || '/', children: (0, jsx_runtime_1.jsx)("img", { src: (logo === null || logo === void 0 ? void 0 : logo.src) || '/images/logo.png', alt: 'header-logo' }) }) }) }) }), (0, jsx_runtime_1.jsxs)("div", { className: 'right', children: [showHamburger && ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'open_menu_button', children: (0, jsx_runtime_1.jsx)("button", { className: 'open_menu', onClick: function () { return setOpenMenu(true); }, type: 'button', children: (0, jsx_runtime_1.jsx)("svg", { xmlns: 'http://www.w3.org/2000/svg', fill: 'none', viewBox: '0 0 24 24', "stroke-width": '2', stroke: 'currentColor', children: (0, jsx_runtime_1.jsx)("path", { strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M3.75 6.75h16.5M3.75 12H12m-8.25 5.25h16.5' }) }) }) })), (0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'search_modal', children: (0, jsx_runtime_1.jsx)(system_1.SearchModal, {}) }), (0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'menu-right', children: (0, jsx_runtime_1.jsx)(system_1.MenuRight, { workspaces: workspaces }) })] })] }) }) }));
42
42
  }
43
43
  exports.HeaderVersion01 = HeaderVersion01;
44
- /
44
+ //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
1
  import { Menu } from '../../../../../../system/domain/index.js';
2
2
  import { Column } from '../../../../../../system/presentation/hooks/index.js';
3
- export declare
3
+ export declare const columns: Column<Menu>[];
@@ -1,3 +1,3 @@
1
1
  import { DynamicFormHandlerProps } from '../../../../../../ui/index.js';
2
2
  import { Menu } from '../../../../../../system/index.js';
3
- export declare function useCreateTable(queryKey: string):
3
+ export declare function useCreateTable(queryKey: string): DynamicFormHandlerProps<Menu>;
@@ -69,4 +69,4 @@ function useCreateTable(queryKey) {
69
69
  return createTable;
70
70
  }
71
71
  exports.useCreateTable = useCreateTable;
72
- //
72
+ //# sourceMappingURL=create.js.map
@@ -68,4 +68,4 @@ function useDeleteTable(queryKey) {
68
68
  return { executeDelete: executeDelete };
69
69
  }
70
70
  exports.useDeleteTable = useDeleteTable;
71
- //
71
+ //# sourceMappingURL=delete.js.map
@@ -1,3 +1,3 @@
1
1
  import { DynamicFormHandlerProps } from '../../../../../../ui/index.js';
2
2
  import { Menu } from '../../../../../../system/index.js';
3
- export declare function useEditTable(queryKey: string):
3
+ export declare function useEditTable(queryKey: string): DynamicFormHandlerProps<Menu>;
@@ -75,3 +75,4 @@ function useEditTable(queryKey) {
75
75
  return editTable;
76
76
  }
77
77
  exports.useEditTable = useEditTable;
78
+ //# sourceMappingURL=edit.js.map
@@ -0,0 +1,34 @@
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.IconMenu = void 0;
27
+ var jsx_runtime_1 = require("react/jsx-runtime");
28
+ var S = __importStar(require("./style.js"));
29
+ function IconMenu(_a) {
30
+ var icon = _a.icon;
31
+ return (0, jsx_runtime_1.jsx)(S.IconMenu, { dangerouslySetInnerHTML: { __html: icon || "" } });
32
+ }
33
+ exports.IconMenu = IconMenu;
34
+ //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
1
  import { User } from '../../../../../../system/domain/index.js';
2
2
  import { Column } from '../../../../../../system/presentation/hooks/index.js';
3
- export declare
3
+ export declare const columns: Column<User>[];
@@ -1,3 +1,3 @@
1
1
  import { DynamicFormHandlerProps } from '../../../../../../ui/index.js';
2
2
  import { User } from '../../../../../../system/index.js';
3
- export declare function useCreateTable(queryKey: string):
3
+ export declare function useCreateTable(queryKey: string): DynamicFormHandlerProps<User>;
@@ -72,4 +72,4 @@ function useCreateTable(queryKey) {
72
72
  return createTable;
73
73
  }
74
74
  exports.useCreateTable = useCreateTable;
75
- //
75
+ //# sourceMappingURL=create.js.map
@@ -71,4 +71,4 @@ function useDeleteTable(queryKey) {
71
71
  return { executeDelete: executeDelete };
72
72
  }
73
73
  exports.useDeleteTable = useDeleteTable;
74
- //
74
+ //# sourceMappingURL=delete.js.map
@@ -1,3 +1,3 @@
1
1
  import { DynamicFormHandlerProps } from '../../../../../../ui/index.js';
2
2
  import { User } from '../../../../../../system/index.js';
3
- export declare function useEditTable(queryKey: string):
3
+ export declare function useEditTable(queryKey: string): DynamicFormHandlerProps<User>;
@@ -80,3 +80,4 @@ function useEditTable(queryKey) {
80
80
  return editTable;
81
81
  }
82
82
  exports.useEditTable = useEditTable;
83
+ //# sourceMappingURL=edit.js.map
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FormLogin = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var ui_1 = require("../../../../../../../ui/index.js");
6
+ var context_1 = require("../../../context.js");
7
+ function FormLogin() {
8
+ var signIn = (0, context_1.useAuthAdmin)().signIn;
9
+ return ((0, jsx_runtime_1.jsxs)(ui_1.FormHandler, { button: { text: 'Entrar' }, initialData: { emailAddress: '', password: '' }, onSucess: signIn, debugMode: true, children: [(0, jsx_runtime_1.jsx)(ui_1.Input, { type: 'email', label: 'Email', name: 'emailAddress', placeholder: 'Digite seu usu\u00E1rio' }), (0, jsx_runtime_1.jsx)(ui_1.InputPassword, { name: 'password', label: 'Senha', placeholder: 'Digite sua senha' })] }));
10
+ }
11
+ exports.FormLogin = FormLogin;
12
+ //# sourceMappingURL=index.js.map
@@ -35,4 +35,4 @@ function Login() {
35
35
  return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'login', children: (0, jsx_runtime_1.jsxs)(S.Login, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'content', children: [(0, jsx_runtime_1.jsx)("div", { className: 'empty' }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: 'logo', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: '/images/login-logo.png', alt: ' ' }) }), (0, jsx_runtime_1.jsx)("div", { className: 'text', children: (0, jsx_runtime_1.jsx)("h5", { className: 'font-20-bold', children: "Seja bem vindo!" }) }), (0, jsx_runtime_1.jsx)(form_login_1.FormLogin, {})] }), (0, jsx_runtime_1.jsx)("div", { className: 'contact-footer', children: (0, jsx_runtime_1.jsxs)("span", { children: ["Powered by", ' ', (0, jsx_runtime_1.jsxs)("a", { target: '_blank', href: (_a = Configurations === null || Configurations === void 0 ? void 0 : Configurations.poweredBy) === null || _a === void 0 ? void 0 : _a.link, children: [(_b = Configurations === null || Configurations === void 0 ? void 0 : Configurations.poweredBy) === null || _b === void 0 ? void 0 : _b.name, "."] }), ' ', "Todos os direitos reservados."] }) })] }), (0, jsx_runtime_1.jsx)("div", { className: 'image', children: (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: '/images/login-left.png', alt: 'Imagem de login' }) })] }) }));
36
36
  }
37
37
  exports.Login = Login;
38
- //# sourceMapping
38
+ //# sourceMappingURL=index.js.map
@@ -138,4 +138,4 @@ function LoginControl(_a) {
138
138
  var noHaveUser = !user && router.isReady && interceptorIsReady && !loading;
139
139
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [Loading && (0, jsx_runtime_1.jsx)(ui_1.LoadingScreen, { size: 30, color: '#000' }), noHaveUser && (0, jsx_runtime_1.jsx)(LoginComponent, {})] }));
140
140
  }
141
- //# sourceMapping
141
+ //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
1
  export declare function useLoadCities({ uf }: {
2
2
  uf: string;
3
- }): Required<import("../../../../../../ui/index.js").Qu
3
+ }): Required<import("../../../../../../ui/index.js").QueryState<any>>;
@@ -57,4 +57,4 @@ function useLoadCities(_a) {
57
57
  });
58
58
  }
59
59
  exports.useLoadCities = useLoadCities;
60
- /
60
+ //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { TableActionDelete } from '../../../../../../../../../system';
1
+ import { TableActionDelete } from '../../../../../../../../../system/index.js';
2
2
  export declare function ActionDelete<T>({ action, table }: {
3
3
  action: TableActionDelete<T>;
4
4
  table: any;
@@ -39,8 +39,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ActionDelete = void 0;
40
40
  var jsx_runtime_1 = require("react/jsx-runtime");
41
41
  var react_1 = require("react");
42
- var ui_1 = require("../../../../../../../../../ui");
43
- var system_1 = require("../../../../../../../../../system");
42
+ var ui_1 = require("../../../../../../../../../ui/index.js");
43
+ var system_1 = require("../../../../../../../../../system/index.js");
44
44
  function ActionDelete(_a) {
45
45
  var _b, _c;
46
46
  var action = _a.action, table = _a.table;
@@ -1,4 +1,4 @@
1
- import { ActionsTable } from '../../../interfaces';
1
+ import { ActionsTable } from '../../../interfaces.js';
2
2
  export declare function Actions({ actions, table }: {
3
3
  actions: ActionsTable;
4
4
  table: any;
@@ -77,10 +77,10 @@ exports.Actions = void 0;
77
77
  var jsx_runtime_1 = require("react/jsx-runtime");
78
78
  var react_1 = require("react");
79
79
  var link_1 = __importDefault(require("next/link"));
80
- var ui_1 = require("../../../../../../../../ui");
81
- var delete_1 = require("./delete");
82
- var S = __importStar(require("./styles"));
83
- var context_1 = require("../../../../../../../../system/presentation/context");
80
+ var ui_1 = require("../../../../../../../../ui/index.js");
81
+ var delete_1 = require("./delete/index.js");
82
+ var S = __importStar(require("./styles.js"));
83
+ var context_1 = require("../../../../../../../../system/presentation/context/index.js");
84
84
  function Actions(_a) {
85
85
  var _this = this;
86
86
  var _b, _c, _d;
@@ -1,2 +1,2 @@
1
- import { ITableProps } from '../interfaces';
1
+ import { ITableProps } from '../interfaces.js';
2
2
  export declare function ActiveFilters({ configs, tableInformations }: ITableProps): import("react/jsx-runtime").JSX.Element;
@@ -35,8 +35,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
35
35
  exports.ActiveFilters = void 0;
36
36
  var jsx_runtime_1 = require("react/jsx-runtime");
37
37
  var router_1 = require("next/router");
38
- var ui_1 = require("../../../../../../../../ui");
39
- var S = __importStar(require("./styles"));
38
+ var ui_1 = require("../../../../../../../../ui/index.js");
39
+ var S = __importStar(require("./styles.js"));
40
40
  function ActiveFilters(_a) {
41
41
  var _b, _c, _d;
42
42
  var configs = _a.configs, tableInformations = _a.tableInformations;
@@ -1,4 +1,4 @@
1
- import { ActionsTable } from '../../../interfaces';
1
+ import { ActionsTable } from '../../../interfaces.js';
2
2
  export declare function CreateAction({ actions }: {
3
3
  actions: ActionsTable;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -41,9 +41,9 @@ exports.CreateAction = void 0;
41
41
  var jsx_runtime_1 = require("react/jsx-runtime");
42
42
  var react_1 = require("react");
43
43
  var link_1 = __importDefault(require("next/link"));
44
- var ui_1 = require("../../../../../../../../ui");
45
- var system_1 = require("../../../../../../../../system");
46
- var S = __importStar(require("./styles"));
44
+ var ui_1 = require("../../../../../../../../ui/index.js");
45
+ var system_1 = require("../../../../../../../../system/index.js");
46
+ var S = __importStar(require("./styles.js"));
47
47
  function CreateAction(_a) {
48
48
  var _b, _c, _d, _e;
49
49
  var actions = _a.actions;
@@ -1,4 +1,4 @@
1
- import { ExportTable } from '../../../../../../../../system/domain';
1
+ import { ExportTable } from '../../../../../../../../system/domain/index.js';
2
2
  export declare function Export({ exports }: {
3
3
  exports: ExportTable[];
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.Export = void 0;
27
27
  var jsx_runtime_1 = require("react/jsx-runtime");
28
- var ui_1 = require("../../../../../../../../ui");
29
- var S = __importStar(require("./styles"));
28
+ var ui_1 = require("../../../../../../../../ui/index.js");
29
+ var S = __importStar(require("./styles.js"));
30
30
  function Export(_a) {
31
31
  var exports = _a.exports;
32
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"] }) }));
@@ -1,2 +1,2 @@
1
- import { ITableProps } from '../interfaces';
1
+ import { ITableProps } from '../interfaces.js';
2
2
  export declare function Filters({ configs, tableInformations }: ITableProps): import("react/jsx-runtime").JSX.Element;
@@ -82,9 +82,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
82
82
  exports.Filters = void 0;
83
83
  var jsx_runtime_1 = require("react/jsx-runtime");
84
84
  var router_1 = require("next/router");
85
- var system_1 = require("../../../../../../../../system");
86
- var ui_1 = require("../../../../../../../../ui");
87
- var S = __importStar(require("./styles"));
85
+ var system_1 = require("../../../../../../../../system/index.js");
86
+ var ui_1 = require("../../../../../../../../ui/index.js");
87
+ var S = __importStar(require("./styles.js"));
88
88
  function Filters(_a) {
89
89
  var _b;
90
90
  var configs = _a.configs, tableInformations = _a.tableInformations;
@@ -0,0 +1,2 @@
1
+ import { ITableProps } from './interfaces.js';
2
+ export declare function Table(props: ITableProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,105 @@
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 react_1 = require("react");
40
+ var router_1 = require("next/router");
41
+ var ui_1 = require("../../../../../../../ui/index.js");
42
+ var export_1 = require("./export/index.js");
43
+ var actions_1 = require("./actions/index.js");
44
+ var filters_1 = require("./filters/index.js");
45
+ var create_1 = require("./create/index.js");
46
+ var thead_item_1 = require("./thead-item/index.js");
47
+ var pagination_1 = require("./pagination/index.js");
48
+ var skeleton_table_1 = require("./skeleton-table/index.js");
49
+ var active_filters_1 = require("./active-filters/index.js");
50
+ var S = __importStar(require("./styles.js"));
51
+ function Table(props) {
52
+ var _a, _b, _c, _d;
53
+ var configs = props.configs, isFetching = props.isFetching, columnsConfiguration = props.columnsConfiguration, tableInformations = props.tableInformations;
54
+ var router = (0, router_1.useRouter)();
55
+ var loadingTable = configs.isLoading || isFetching;
56
+ var pagination = (configs === null || configs === void 0 ? void 0 : configs.pagination) || (tableInformations === null || tableInformations === void 0 ? void 0 : tableInformations.pagination);
57
+ var paramToSearch = ((_b = (((_a = router.query) === null || _a === void 0 ? void 0 : _a.search) || '')) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || '';
58
+ var tableItems = configs.tableData || (tableInformations === null || tableInformations === void 0 ? void 0 : tableInformations.items);
59
+ var tableFilered = (configs === null || configs === void 0 ? void 0 : configs.enableSearchInSelf)
60
+ ? tableItems && tableItems.length > 0
61
+ ? tableItems === null || tableItems === void 0 ? void 0 : tableItems.filter(function (item) {
62
+ var _a;
63
+ var stringfyItem = item ? JSON.stringify(item) : '';
64
+ return (_a = stringfyItem === null || stringfyItem === void 0 ? void 0 : stringfyItem.toLowerCase()) === null || _a === void 0 ? void 0 : _a.includes(paramToSearch);
65
+ })
66
+ : null
67
+ : null;
68
+ var tableData = tableFilered || tableItems || [];
69
+ var tableRef = (0, react_1.useRef)(null);
70
+ return ((0, jsx_runtime_1.jsxs)(ui_1.Error, { name: 'table-component', children: [(0, jsx_runtime_1.jsxs)(S.TopActions, { className: 'top-actions', children: [(0, jsx_runtime_1.jsx)(filters_1.Filters, __assign({}, props)), (0, jsx_runtime_1.jsxs)("div", { className: 'right', children: [(tableInformations === null || tableInformations === void 0 ? void 0 : tableInformations.exports) && ((_c = tableInformations === null || tableInformations === void 0 ? void 0 : tableInformations.exports) === null || _c === void 0 ? void 0 : _c.length) > 0 && ((0, jsx_runtime_1.jsx)(export_1.Export, { exports: tableInformations.exports })), (columnsConfiguration === null || columnsConfiguration === void 0 ? void 0 : columnsConfiguration.actions) && (0, jsx_runtime_1.jsx)(create_1.CreateAction, { actions: columnsConfiguration === null || columnsConfiguration === void 0 ? void 0 : columnsConfiguration.actions })] })] }), (0, jsx_runtime_1.jsx)(active_filters_1.ActiveFilters, __assign({}, props)), (0, jsx_runtime_1.jsx)(S.Table, { children: (0, jsx_runtime_1.jsxs)("div", { ref: tableRef, children: [(0, jsx_runtime_1.jsxs)("table", { children: [(0, jsx_runtime_1.jsx)("thead", { children: (0, jsx_runtime_1.jsxs)("tr", { children: [columnsConfiguration.actions && (0, jsx_runtime_1.jsx)("th", { style: { width: '100px' } }), (_d = columnsConfiguration.columns) === null || _d === void 0 ? void 0 : _d.map(function (colunm, index) {
71
+ if (colunm.enabled === false) {
72
+ return (0, jsx_runtime_1.jsx)(react_1.Fragment, {}, colunm.id + index);
73
+ }
74
+ 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));
75
+ })] }) }), (0, jsx_runtime_1.jsxs)("tbody", { children: [!loadingTable &&
76
+ tableItems &&
77
+ Array.isArray(tableItems) &&
78
+ (tableItems === null || tableItems === void 0 ? void 0 : tableItems.length) !== 0 &&
79
+ (tableData === null || tableData === void 0 ? void 0 : tableData.map(function (table, index) {
80
+ var _a;
81
+ return ((0, jsx_runtime_1.jsxs)("tr", { children: [columnsConfiguration.actions && (0, jsx_runtime_1.jsx)(actions_1.Actions, { actions: columnsConfiguration.actions, table: table }), (_a = columnsConfiguration.columns) === null || _a === void 0 ? void 0 : _a.map(function (e, i) {
82
+ var _a, _b, _c, _d;
83
+ if (e.enabled === false) {
84
+ return (0, jsx_runtime_1.jsx)(react_1.Fragment, {}, e.id + index);
85
+ }
86
+ function getProps() {
87
+ var _a;
88
+ var props = Object.keys(((_a = e.Component) === null || _a === void 0 ? void 0 : _a.props) || {}).reduce(function (reducer, property) {
89
+ var _a;
90
+ var newReducer = reducer;
91
+ newReducer[property] = table[(_a = e.Component) === null || _a === void 0 ? void 0 : _a.props[property]];
92
+ return __assign({}, newReducer);
93
+ }, {});
94
+ return props;
95
+ }
96
+ 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() : {};
97
+ var defaultProps = ((_c = e.Component) === null || _c === void 0 ? void 0 : _c.defaultProps) ? (_d = e.Component) === null || _d === void 0 ? void 0 : _d.defaultProps : {};
98
+ var widthTable = tableRef.current;
99
+ var widthPercentage = (e.width * 100) / ((widthTable === null || widthTable === void 0 ? void 0 : widthTable.offsetWidth) || 0);
100
+ return ((0, jsx_runtime_1.jsx)("td", { className: 'font-14-regular', style: { width: widthPercentage.toFixed(2) + '%' }, children: e.Component ? ((0, jsx_runtime_1.jsx)(e.Component.Element, __assign({}, props, defaultProps, { index: index }))) : (table[e.id]) }, String(index) + String(i)));
101
+ })] }, table.id + String(index)));
102
+ })), loadingTable && ((0, jsx_runtime_1.jsxs)("tr", { style: { height: 0 }, children: [columnsConfiguration.columns.map(function (c, index) { return ((0, jsx_runtime_1.jsx)("td", { children: (0, jsx_runtime_1.jsx)("div", { style: { width: c.width + 'px' } }) }, index)); }), columnsConfiguration.actions && ((0, jsx_runtime_1.jsx)("td", { style: { width: '100%' }, children: (0, jsx_runtime_1.jsx)("div", { style: { width: '100%' } }) }))] }))] })] }), !loadingTable && (tableData === null || tableData === void 0 ? void 0 : tableData.length) === 0 && ((0, jsx_runtime_1.jsxs)("div", { className: 'error_table', children: [(0, jsx_runtime_1.jsxs)("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '60', height: '60', viewBox: '0 0 60 60', fill: 'none', children: [(0, jsx_runtime_1.jsx)("path", { d: 'M49.8 18.3301H24.02C23.05 18.3301 22.26 19.1201 22.26 20.0901C22.26 21.0601 23.05 21.8501 24.02 21.8501H49.8C50.77 21.8501 51.56 21.0601 51.56 20.0901C51.56 19.1201 50.77 18.3301 49.8 18.3301Z', fill: '#828282' }), (0, jsx_runtime_1.jsx)("path", { d: 'M19.85 47.7001C20.19 48.0401 20.64 48.2101 21.09 48.2101C21.54 48.2101 21.99 48.0401 22.33 47.7001C23.02 47.0101 23.02 45.9001 22.33 45.2101L18.3 41.1801L22.33 37.1501C23.02 36.4601 23.02 35.3501 22.33 34.6601C21.64 33.9701 20.53 33.9701 19.84 34.6601L15.81 38.6901L11.78 34.6601C11.09 33.9701 9.97996 33.9701 9.28996 34.6601C8.59996 35.3501 8.59996 36.4601 9.28996 37.1501L13.32 41.1801L9.28996 45.2101C8.59996 45.9001 8.59996 47.0101 9.28996 47.7001C9.62996 48.0401 10.08 48.2101 10.53 48.2101C10.98 48.2101 11.43 48.0401 11.77 47.7001L15.8 43.6701L19.83 47.7001H19.85Z', fill: '#828282' }), (0, jsx_runtime_1.jsx)("path", { d: 'M59.75 9.29004C59.75 6.38004 57.39 4.01004 54.48 4.01004H19.34C16.43 4.00004 14.07 6.36004 14.07 9.27004V25.45C6.17001 26.33 0.0100098 33.04 0.0100098 41.17C0.0100098 49.89 7.11001 56.99 15.83 56.99H54.5C57.41 56.99 59.77 54.62 59.77 51.72V9.29004H59.75ZM15.82 53.48C9.04001 53.48 3.52001 47.96 3.52001 41.18C3.52001 34.4 9.04001 28.88 15.82 28.88C22.6 28.88 28.12 34.4 28.12 41.18C28.12 47.96 22.6 53.48 15.82 53.48ZM54.49 53.48H25.75C28.91 50.92 31.07 47.18 31.54 42.93H49.8C50.77 42.93 51.56 42.14 51.56 41.17C51.56 40.2 50.77 39.41 49.8 39.41H31.54C31.25 36.83 30.34 34.43 28.97 32.38H49.81C50.78 32.38 51.57 31.59 51.57 30.62C51.57 29.65 50.78 28.86 49.81 28.86H25.76C23.47 27.01 20.66 25.78 17.59 25.44V9.27004C17.59 8.30004 18.38 7.51004 19.35 7.51004H54.49C55.46 7.52004 56.25 8.31004 56.25 9.28004V51.72C56.26 52.69 55.48 53.48 54.51 53.48H54.49Z', fill: '#828282' })] }), (0, jsx_runtime_1.jsx)("h3", { children: configs === null || configs === void 0 ? void 0 : configs.errorMessage })] })), loadingTable && (0, jsx_runtime_1.jsx)(skeleton_table_1.SkeletonTable, {})] }) }), !(configs === null || configs === void 0 ? void 0 : configs.disablePagination) && pagination && ((0, jsx_runtime_1.jsxs)(S.TableBottom, { className: 'table-bottom', children: [pagination && ((0, jsx_runtime_1.jsxs)("span", { children: ["Mostrando", ' ', (0, jsx_runtime_1.jsx)("strong", { children: pagination.pageSize > pagination.totalItems ? pagination.totalItems : pagination === null || pagination === void 0 ? void 0 : pagination.pageSize }), ' ', "de ", (0, jsx_runtime_1.jsx)("strong", { children: pagination === null || pagination === void 0 ? void 0 : pagination.totalItems }), " resultados"] })), pagination && (0, jsx_runtime_1.jsx)(pagination_1.PaginationTable, __assign({}, pagination))] }))] }));
103
+ }
104
+ exports.Table = Table;
105
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,14 @@
1
+ import { List, Pagination, TableConfiguration } from '../../../../../../../system/index.js';
2
+ import { IUseTableProps } from '../../interfaces.js';
3
+ type colunm = keyof any;
4
+ interface IShowHiden {
5
+ text: string;
6
+ filterBased: colunm;
7
+ disable: string[];
8
+ enable: string[];
9
+ }
10
+ type ITableProps = {
11
+ isFetching: boolean;
12
+ tableInformations?: TableConfiguration & List<any> & Pagination;
13
+ } & IUseTableProps;
14
+ export type { ITableProps, IShowHiden };
@@ -1,2 +1,2 @@
1
- import { PaginationModel } from '../../../../../../../../system';
1
+ import { PaginationModel } from '../../../../../../../../system/index.js';
2
2
  export declare function PaginationTable({ page, endPage, pages, pageSize, totalItems, hasNextPage, hasPreviousPage }: PaginationModel): import("react/jsx-runtime").JSX.Element;
@@ -26,9 +26,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.PaginationTable = 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");
30
- var service_1 = require("./service");
31
- var S = __importStar(require("./styles"));
29
+ var ui_1 = require("../../../../../../../../ui/index.js");
30
+ var service_1 = require("./service.js");
31
+ var S = __importStar(require("./styles.js"));
32
32
  function PaginationTable(_a) {
33
33
  var page = _a.page, endPage = _a.endPage, pages = _a.pages, pageSize = _a.pageSize, totalItems = _a.totalItems, hasNextPage = _a.hasNextPage, hasPreviousPage = _a.hasPreviousPage;
34
34
  var router = (0, router_1.useRouter)();
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.SkeletonTable = void 0;
27
27
  var jsx_runtime_1 = require("react/jsx-runtime");
28
- var ui_1 = require("../../../../../../../../ui");
29
- var S = __importStar(require("./styles"));
28
+ var ui_1 = require("../../../../../../../../ui/index.js");
29
+ var S = __importStar(require("./styles.js"));
30
30
  function SkeletonTable() {
31
31
  return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'skeleton', children: (0, jsx_runtime_1.jsxs)(S.SkeletonCustom, { "data-testid": 'skeleton', children: [(0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } })] }) }));
32
32
  }
@@ -1,2 +1,2 @@
1
- import { ITHeadItemProps } from './interfaces';
1
+ import { ITHeadItemProps } from './interfaces.js';
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");
30
- var S = __importStar(require("./styles"));
29
+ var ui_1 = require("../../../../../../../../ui/index.js");
30
+ var S = __importStar(require("./styles.js"));
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";
1
+ import { Column } from "../../../interfaces.js";
2
2
  export interface ITHeadItemProps {
3
3
  index: number;
4
4
  colunm: Column;
@@ -49,4 +49,4 @@ function useQueryTable(props) {
49
49
  };
50
50
  }
51
51
  exports.useQueryTable = useQueryTable;
52
- //# sourceMappin
52
+ //# sourceMappingURL=hook.js.map
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //@ts-nocheck
4
- var utils_1 = require("../../../shared/utils");
5
- var window_1 = require("../../../ssr-window/window");
4
+ var utils_1 = require("../../../shared/utils.js");
5
+ var window_1 = require("../../../ssr-window/window.js");
6
6
  function Observer(_a) {
7
7
  var swiper = _a.swiper, extendParams = _a.extendParams, on = _a.on, emit = _a.emit;
8
8
  var observers = [];
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  //@ts-nocheck
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- var window_1 = require("../../../ssr-window/window");
4
+ var window_1 = require("../../../ssr-window/window.js");
5
5
  function Resize(_a) {
6
6
  var swiper = _a.swiper, on = _a.on, emit = _a.emit;
7
7
  var window = (0, window_1.getWindow)();
@@ -1,4 +1,4 @@
1
- import { FieldsProviderCep, InputCepProps } from '../../../../../../../ui';
1
+ import { FieldsProviderCep, InputCepProps } from '../../../../../../../ui/index.js';
2
2
  export declare function useCepIBGE<T = any>({ fields }: InputCepProps<T>): {
3
3
  getCep: (zipCode: any) => Promise<T>;
4
4
  fields: FieldsProviderCep<T>;
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.useCepIBGE = void 0;
40
- var ui_1 = require("../../../../../../../ui");
40
+ var ui_1 = require("../../../../../../../ui/index.js");
41
41
  function useCepIBGE(_a) {
42
42
  var fields = _a.fields;
43
43
  function getCep(zipCode) {
@@ -1,3 +1,3 @@
1
- export * from "./hook";
2
- export * from "./service";
3
- export * from "./interfaces";
1
+ export * from "./hook.js";
2
+ export * from "./service.js";
3
+ export * from "./interfaces.js";
@@ -14,7 +14,7 @@ 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("./hook"), exports);
18
- __exportStar(require("./service"), exports);
19
- __exportStar(require("./interfaces"), exports);
17
+ __exportStar(require("./hook.js"), exports);
18
+ __exportStar(require("./service.js"), exports);
19
+ __exportStar(require("./interfaces.js"), exports);
20
20
  //# sourceMappingURL=index.js.map