@darkfrost-1107/scaff-z-react 0.1.7

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 (634) hide show
  1. package/LICENSE.md +5 -0
  2. package/README.md +75 -0
  3. package/dist/_virtual/_rolldown/runtime.cjs +1 -0
  4. package/dist/action-processor.d.ts +2 -0
  5. package/dist/app/config/sqlite.registry.cjs +1 -0
  6. package/dist/app/config/sqlite.registry.esm +37 -0
  7. package/dist/app.config.d.ts +1 -0
  8. package/dist/async-combobox.input.d.ts +4 -0
  9. package/dist/async-multi-select.input.d.ts +4 -0
  10. package/dist/async-select.input.d.ts +4 -0
  11. package/dist/audit-view.d.ts +2 -0
  12. package/dist/back-button.action.d.ts +6 -0
  13. package/dist/badge.d.ts +2 -0
  14. package/dist/base.connector.d.ts +4 -0
  15. package/dist/base.entity.d.ts +2 -0
  16. package/dist/base.node.d.ts +2 -0
  17. package/dist/base.service.d.ts +4 -0
  18. package/dist/breadcrumb.d.ts +2 -0
  19. package/dist/build.router.d.ts +4 -0
  20. package/dist/builder-device.guard.d.ts +2 -0
  21. package/dist/builder.d.ts +2 -0
  22. package/dist/button.d.ts +2 -0
  23. package/dist/calendar.d.ts +2 -0
  24. package/dist/canvas-view.layout.d.ts +2 -0
  25. package/dist/card.d.ts +2 -0
  26. package/dist/checkbox-inline.input.d.ts +4 -0
  27. package/dist/checkbox.d.ts +2 -0
  28. package/dist/checkbox.input.d.ts +4 -0
  29. package/dist/code.input.d.ts +4 -0
  30. package/dist/color.input.d.ts +4 -0
  31. package/dist/combobox.d.ts +2 -0
  32. package/dist/combobox.input.d.ts +4 -0
  33. package/dist/command.d.ts +2 -0
  34. package/dist/component.factory.d.ts +4 -0
  35. package/dist/component.guard.d.ts +2 -0
  36. package/dist/components.registry.d.ts +2 -0
  37. package/dist/context.guard.d.ts +2 -0
  38. package/dist/context.verifier.d.ts +2 -0
  39. package/dist/crypto.service.d.ts +2 -0
  40. package/dist/dark.style.d.ts +2 -0
  41. package/dist/data-table.component.d.ts +2 -0
  42. package/dist/data-table.provider.d.ts +1 -0
  43. package/dist/date.input.d.ts +2 -0
  44. package/dist/deckgl-overlay.d.ts +2 -0
  45. package/dist/detail-tabs.layout.d.ts +6 -0
  46. package/dist/detail-view.layout.d.ts +6 -0
  47. package/dist/device-artifact.guard.d.ts +2 -0
  48. package/dist/device.guard.d.ts +2 -0
  49. package/dist/device.verifier.registry.d.ts +2 -0
  50. package/dist/dialog.d.ts +2 -0
  51. package/dist/dnd.provider.d.ts +2 -0
  52. package/dist/draggeable.d.ts +2 -0
  53. package/dist/droppable.d.ts +2 -0
  54. package/dist/droppeable.d.ts +2 -0
  55. package/dist/dynamic-device.guard.d.ts +2 -0
  56. package/dist/dynamic-icon.d.ts +6 -0
  57. package/dist/email.input.d.ts +4 -0
  58. package/dist/enum.verifier.d.ts +2 -0
  59. package/dist/env.manager.d.ts +2 -0
  60. package/dist/feedback.layout.d.ts +2 -0
  61. package/dist/field.d.ts +2 -0
  62. package/dist/file.input.d.ts +4 -0
  63. package/dist/flow-canvas.d.ts +2 -0
  64. package/dist/flow.renderer.d.ts +2 -0
  65. package/dist/flow.types.d.ts +1 -0
  66. package/dist/form-dialog-layout.d.ts +4 -0
  67. package/dist/form-tab-layout.d.ts +4 -0
  68. package/dist/form.component.d.ts +2 -0
  69. package/dist/grid.layout.d.ts +2 -0
  70. package/dist/guard.d.ts +2 -0
  71. package/dist/hover.d.ts +2 -0
  72. package/dist/icon-box.d.ts +2 -0
  73. package/dist/icon-button.d.ts +2 -0
  74. package/dist/image.input.d.ts +4 -0
  75. package/dist/index.d.ts +2 -0
  76. package/dist/indexeddb.service.d.ts +6 -0
  77. package/dist/input-group.d.ts +2 -0
  78. package/dist/input.d.ts +2 -0
  79. package/dist/interceptor.builder.d.ts +2 -0
  80. package/dist/label.d.ts +2 -0
  81. package/dist/language-toggle.d.ts +2 -0
  82. package/dist/list-select.input.d.ts +4 -0
  83. package/dist/logger.d.ts +2 -0
  84. package/dist/main.connector.d.ts +2 -0
  85. package/dist/main.service.d.ts +6 -0
  86. package/dist/maps.renderer.d.ts +4 -0
  87. package/dist/marker.factory.d.ts +2 -0
  88. package/dist/marker.guard.d.ts +2 -0
  89. package/dist/markers.meta.d.ts +1 -0
  90. package/dist/modules/actions/entities/action.entity.cjs +1 -0
  91. package/dist/modules/actions/entities/action.entity.esm +139 -0
  92. package/dist/modules/artifacts/entities/artifact.entity.cjs +1 -0
  93. package/dist/modules/artifacts/entities/artifact.entity.esm +82 -0
  94. package/dist/modules/integrations/entities/integration.entity.cjs +1 -0
  95. package/dist/modules/integrations/entities/integration.entity.esm +75 -0
  96. package/dist/modules/inventory/entities/category.entity.cjs +1 -0
  97. package/dist/modules/inventory/entities/category.entity.esm +50 -0
  98. package/dist/modules/inventory/entities/inventory-item.entity.cjs +1 -0
  99. package/dist/modules/inventory/entities/inventory-item.entity.esm +68 -0
  100. package/dist/modules/inventory/entities/product-item.entity.cjs +1 -0
  101. package/dist/modules/inventory/entities/product-item.entity.esm +69 -0
  102. package/dist/modules/inventory/entities/zone.entity.cjs +1 -0
  103. package/dist/modules/inventory/entities/zone.entity.esm +50 -0
  104. package/dist/modules/memberships/entities/membership.entity.cjs +1 -0
  105. package/dist/modules/memberships/entities/membership.entity.esm +53 -0
  106. package/dist/modules/organizations/entities/organization.entity.cjs +1 -0
  107. package/dist/modules/organizations/entities/organization.entity.esm +75 -0
  108. package/dist/modules/projects/entities/project.entity.cjs +1 -0
  109. package/dist/modules/projects/entities/project.entity.esm +100 -0
  110. package/dist/modules/test/entities/experiment.entity.cjs +1 -0
  111. package/dist/modules/test/entities/experiment.entity.esm +71 -0
  112. package/dist/modules/tickets/entities/ticket.entity.cjs +1 -0
  113. package/dist/modules/tickets/entities/ticket.entity.esm +92 -0
  114. package/dist/modules/tools/entities/tool.entity.cjs +1 -0
  115. package/dist/modules/tools/entities/tool.entity.esm +129 -0
  116. package/dist/modules/users/entities/user-role.enum.cjs +1 -0
  117. package/dist/modules/users/entities/user-role.enum.esm +6 -0
  118. package/dist/modules/users/entities/user.entity.cjs +1 -0
  119. package/dist/modules/users/entities/user.entity.esm +88 -0
  120. package/dist/nfc.service.d.ts +6 -0
  121. package/dist/nosql.repo.d.ts +2 -0
  122. package/dist/nosql.repo.service.d.ts +4 -0
  123. package/dist/packages/capacitor/app.config.cjs +1 -0
  124. package/dist/packages/capacitor/app.config.d.ts +1 -0
  125. package/dist/packages/capacitor/app.config.esm +7 -0
  126. package/dist/packages/crypto/crypto.service.cjs +1 -0
  127. package/dist/packages/crypto/crypto.service.d.ts +6 -0
  128. package/dist/packages/crypto/crypto.service.esm +17 -0
  129. package/dist/packages/crypto/index.cjs +1 -0
  130. package/dist/packages/crypto/index.d.ts +1 -0
  131. package/dist/packages/crypto/index.esm +2 -0
  132. package/dist/packages/dnd/dnd.provider.cjs +1 -0
  133. package/dist/packages/dnd/dnd.provider.d.ts +3 -0
  134. package/dist/packages/dnd/dnd.provider.esm +8 -0
  135. package/dist/packages/dnd/draggeable.cjs +1 -0
  136. package/dist/packages/dnd/draggeable.d.ts +4 -0
  137. package/dist/packages/dnd/draggeable.esm +12 -0
  138. package/dist/packages/dnd/droppable.cjs +1 -0
  139. package/dist/packages/dnd/droppable.d.ts +8 -0
  140. package/dist/packages/dnd/droppable.esm +14 -0
  141. package/dist/packages/dnd/droppeable.cjs +1 -0
  142. package/dist/packages/dnd/droppeable.d.ts +5 -0
  143. package/dist/packages/dnd/droppeable.esm +13 -0
  144. package/dist/packages/dnd/sortable.cjs +1 -0
  145. package/dist/packages/dnd/sortable.d.ts +11 -0
  146. package/dist/packages/dnd/sortable.esm +18 -0
  147. package/dist/packages/env/env.manager.cjs +1 -0
  148. package/dist/packages/env/env.manager.d.ts +11 -0
  149. package/dist/packages/env/env.manager.esm +69 -0
  150. package/dist/packages/env/index.cjs +1 -0
  151. package/dist/packages/env/index.d.ts +1 -0
  152. package/dist/packages/env/index.esm +2 -0
  153. package/dist/packages/flow/flow.renderer.cjs +1 -0
  154. package/dist/packages/flow/flow.renderer.d.ts +13 -0
  155. package/dist/packages/flow/flow.renderer.esm +50 -0
  156. package/dist/packages/flow/flow.types.cjs +0 -0
  157. package/dist/packages/flow/flow.types.d.ts +30 -0
  158. package/dist/packages/flow/flow.types.esm +0 -0
  159. package/dist/packages/formatters/qr-code/qr.encoder.service.cjs +1 -0
  160. package/dist/packages/formatters/qr-code/qr.encoder.service.d.ts +5 -0
  161. package/dist/packages/formatters/qr-code/qr.encoder.service.esm +17 -0
  162. package/dist/packages/formatters/qr-code/qr.renderer.cjs +1 -0
  163. package/dist/packages/formatters/qr-code/qr.renderer.d.ts +3 -0
  164. package/dist/packages/formatters/qr-code/qr.renderer.esm +16 -0
  165. package/dist/packages/formatters/text-code/text-coder.service.cjs +1 -0
  166. package/dist/packages/formatters/text-code/text-coder.service.d.ts +9 -0
  167. package/dist/packages/formatters/text-code/text-coder.service.esm +36 -0
  168. package/dist/packages/i18n/index.cjs +1 -0
  169. package/dist/packages/i18n/index.d.ts +10 -0
  170. package/dist/packages/i18n/index.esm +18 -0
  171. package/dist/packages/i18n/language-toggle.cjs +1 -0
  172. package/dist/packages/i18n/language-toggle.d.ts +9 -0
  173. package/dist/packages/i18n/language-toggle.esm +73 -0
  174. package/dist/packages/indexeddb/builder.cjs +1 -0
  175. package/dist/packages/indexeddb/builder.d.ts +13 -0
  176. package/dist/packages/indexeddb/builder.esm +35 -0
  177. package/dist/packages/indexeddb/index.cjs +1 -0
  178. package/dist/packages/indexeddb/index.d.ts +5 -0
  179. package/dist/packages/indexeddb/index.esm +5 -0
  180. package/dist/packages/indexeddb/indexeddb.service.cjs +1 -0
  181. package/dist/packages/indexeddb/indexeddb.service.d.ts +21 -0
  182. package/dist/packages/indexeddb/indexeddb.service.esm +59 -0
  183. package/dist/packages/indexeddb/nosql.repo.cjs +1 -0
  184. package/dist/packages/indexeddb/nosql.repo.d.ts +33 -0
  185. package/dist/packages/indexeddb/nosql.repo.esm +69 -0
  186. package/dist/packages/indexeddb/nosql.repo.service.cjs +1 -0
  187. package/dist/packages/indexeddb/nosql.repo.service.d.ts +46 -0
  188. package/dist/packages/indexeddb/nosql.repo.service.esm +87 -0
  189. package/dist/packages/indexeddb/registry.cjs +1 -0
  190. package/dist/packages/indexeddb/registry.d.ts +21 -0
  191. package/dist/packages/indexeddb/registry.esm +22 -0
  192. package/dist/packages/indexeddb/types.cjs +0 -0
  193. package/dist/packages/indexeddb/types.d.ts +33 -0
  194. package/dist/packages/indexeddb/types.esm +0 -0
  195. package/dist/packages/logger/index.cjs +1 -0
  196. package/dist/packages/logger/index.d.ts +2 -0
  197. package/dist/packages/logger/index.esm +3 -0
  198. package/dist/packages/logger/logger.cjs +1 -0
  199. package/dist/packages/logger/logger.d.ts +137 -0
  200. package/dist/packages/logger/logger.esm +186 -0
  201. package/dist/packages/logger/registry.cjs +1 -0
  202. package/dist/packages/logger/registry.d.ts +9 -0
  203. package/dist/packages/logger/registry.esm +17 -0
  204. package/dist/packages/maps/deckgl-overlay.cjs +1 -0
  205. package/dist/packages/maps/deckgl-overlay.d.ts +9 -0
  206. package/dist/packages/maps/deckgl-overlay.esm +12 -0
  207. package/dist/packages/maps/maps.renderer.cjs +1 -0
  208. package/dist/packages/maps/maps.renderer.d.ts +19 -0
  209. package/dist/packages/maps/maps.renderer.esm +25 -0
  210. package/dist/packages/maps/markers/marker.factory.cjs +1 -0
  211. package/dist/packages/maps/markers/marker.factory.d.ts +8 -0
  212. package/dist/packages/maps/markers/marker.factory.esm +58 -0
  213. package/dist/packages/maps/markers/marker.guard.cjs +1 -0
  214. package/dist/packages/maps/markers/marker.guard.d.ts +22 -0
  215. package/dist/packages/maps/markers/marker.guard.esm +37 -0
  216. package/dist/packages/maps/markers/markers.meta.cjs +0 -0
  217. package/dist/packages/maps/markers/markers.meta.d.ts +12 -0
  218. package/dist/packages/maps/markers/markers.meta.esm +0 -0
  219. package/dist/packages/maps/styles/dark.style.cjs +1 -0
  220. package/dist/packages/maps/styles/dark.style.d.ts +1 -0
  221. package/dist/packages/maps/styles/dark.style.esm +93 -0
  222. package/dist/packages/nfc/nfc.service.cjs +1 -0
  223. package/dist/packages/nfc/nfc.service.d.ts +41 -0
  224. package/dist/packages/nfc/nfc.service.esm +104 -0
  225. package/dist/packages/requests/axios/base.connector.cjs +1 -0
  226. package/dist/packages/requests/axios/base.connector.d.ts +37 -0
  227. package/dist/packages/requests/axios/base.connector.esm +25 -0
  228. package/dist/packages/requests/axios/base.service.cjs +1 -0
  229. package/dist/packages/requests/axios/base.service.d.ts +41 -0
  230. package/dist/packages/requests/axios/base.service.esm +11 -0
  231. package/dist/packages/requests/axios/interceptor.builder.cjs +1 -0
  232. package/dist/packages/requests/axios/interceptor.builder.d.ts +26 -0
  233. package/dist/packages/requests/axios/interceptor.builder.esm +20 -0
  234. package/dist/packages/router/build.router.cjs +1 -0
  235. package/dist/packages/router/build.router.d.ts +6 -0
  236. package/dist/packages/router/build.router.esm +9 -0
  237. package/dist/packages/router/route.builder.cjs +1 -0
  238. package/dist/packages/router/route.builder.d.ts +46 -0
  239. package/dist/packages/router/route.builder.esm +50 -0
  240. package/dist/packages/scanner/scanner.formats.cjs +1 -0
  241. package/dist/packages/scanner/scanner.formats.d.ts +51 -0
  242. package/dist/packages/scanner/scanner.formats.esm +96 -0
  243. package/dist/packages/scanner/scanner.service.cjs +1 -0
  244. package/dist/packages/scanner/scanner.service.d.ts +32 -0
  245. package/dist/packages/scanner/scanner.service.esm +32 -0
  246. package/dist/packages/sheets/index.cjs +1 -0
  247. package/dist/packages/sheets/index.d.ts +2 -0
  248. package/dist/packages/sheets/index.esm +3 -0
  249. package/dist/packages/sheets/sheets.connector.cjs +1 -0
  250. package/dist/packages/sheets/sheets.connector.d.ts +6 -0
  251. package/dist/packages/sheets/sheets.connector.esm +21 -0
  252. package/dist/packages/sheets/sheets.service.cjs +1 -0
  253. package/dist/packages/sheets/sheets.service.d.ts +21 -0
  254. package/dist/packages/sheets/sheets.service.esm +38 -0
  255. package/dist/packages/sqlite/base/base.entity.cjs +1 -0
  256. package/dist/packages/sqlite/base/base.entity.d.ts +5 -0
  257. package/dist/packages/sqlite/base/base.entity.esm +41 -0
  258. package/dist/packages/sqlite/repo.service.cjs +1 -0
  259. package/dist/packages/sqlite/repo.service.d.ts +22 -0
  260. package/dist/packages/sqlite/repo.service.esm +52 -0
  261. package/dist/packages/sqlite/sqlite.service.cjs +1 -0
  262. package/dist/packages/sqlite/sqlite.service.d.ts +40 -0
  263. package/dist/packages/sqlite/sqlite.service.esm +77 -0
  264. package/dist/packages/sqlite/templates/test.entity.cjs +1 -0
  265. package/dist/packages/sqlite/templates/test.entity.d.ts +6 -0
  266. package/dist/packages/sqlite/templates/test.entity.esm +62 -0
  267. package/dist/packages/sqlite/templates/test.repo.service.cjs +1 -0
  268. package/dist/packages/sqlite/templates/test.repo.service.d.ts +8 -0
  269. package/dist/packages/sqlite/templates/test.repo.service.esm +26 -0
  270. package/dist/packages/stores/storage.service.cjs +1 -0
  271. package/dist/packages/stores/storage.service.d.ts +5 -0
  272. package/dist/packages/stores/storage.service.esm +22 -0
  273. package/dist/packages/stores/store.hook.cjs +1 -0
  274. package/dist/packages/stores/store.hook.d.ts +23 -0
  275. package/dist/packages/stores/store.hook.esm +22 -0
  276. package/dist/packages/stores/store.service.cjs +1 -0
  277. package/dist/packages/stores/store.service.d.ts +12 -0
  278. package/dist/packages/stores/store.service.esm +48 -0
  279. package/dist/packages/theme/theme-builder.cjs +1 -0
  280. package/dist/packages/theme/theme-builder.d.ts +19 -0
  281. package/dist/packages/theme/theme-builder.esm +25 -0
  282. package/dist/packages/theme/theme-provider.cjs +1 -0
  283. package/dist/packages/theme/theme-provider.d.ts +7 -0
  284. package/dist/packages/theme/theme-provider.esm +17 -0
  285. package/dist/packages/theme/theme-toggle.cjs +1 -0
  286. package/dist/packages/theme/theme-toggle.d.ts +6 -0
  287. package/dist/packages/theme/theme-toggle.esm +33 -0
  288. package/dist/packages/w3/tron/index.cjs +1 -0
  289. package/dist/packages/w3/tron/index.d.ts +4 -0
  290. package/dist/packages/w3/tron/index.esm +4 -0
  291. package/dist/packages/w3/tron/tron-assets.service.cjs +1 -0
  292. package/dist/packages/w3/tron/tron-assets.service.d.ts +38 -0
  293. package/dist/packages/w3/tron/tron-assets.service.esm +116 -0
  294. package/dist/packages/w3/tron/tron-wallet.entity.cjs +1 -0
  295. package/dist/packages/w3/tron/tron-wallet.entity.d.ts +15 -0
  296. package/dist/packages/w3/tron/tron-wallet.entity.esm +88 -0
  297. package/dist/packages/w3/tron/tron-wallet.repo.cjs +1 -0
  298. package/dist/packages/w3/tron/tron-wallet.repo.d.ts +30 -0
  299. package/dist/packages/w3/tron/tron-wallet.repo.esm +52 -0
  300. package/dist/packages/w3/tron/tron.service.cjs +1 -0
  301. package/dist/packages/w3/tron/tron.service.d.ts +124 -0
  302. package/dist/packages/w3/tron/tron.service.esm +406 -0
  303. package/dist/packages/w3/tron/tron.types.cjs +0 -0
  304. package/dist/packages/w3/tron/tron.types.d.ts +129 -0
  305. package/dist/packages/w3/tron/tron.types.esm +0 -0
  306. package/dist/page-container.d.ts +2 -0
  307. package/dist/popover.d.ts +2 -0
  308. package/dist/qr.encoder.service.d.ts +4 -0
  309. package/dist/qr.renderer.d.ts +4 -0
  310. package/dist/registry.d.ts +2 -0
  311. package/dist/repo.service.d.ts +4 -0
  312. package/dist/repository.contract.d.ts +1 -0
  313. package/dist/route.builder.d.ts +4 -0
  314. package/dist/scanner.formats.d.ts +2 -0
  315. package/dist/scanner.service.d.ts +2 -0
  316. package/dist/scroll-area.d.ts +2 -0
  317. package/dist/secret.input.d.ts +4 -0
  318. package/dist/select.d.ts +2 -0
  319. package/dist/select.input.d.ts +4 -0
  320. package/dist/separator.d.ts +2 -0
  321. package/dist/shared/assets/social-icons.cjs +1 -0
  322. package/dist/shared/assets/social-icons.d.ts +2 -0
  323. package/dist/shared/assets/social-icons.esm +30 -0
  324. package/dist/shared/constants/connectors/main.connector.cjs +1 -0
  325. package/dist/shared/constants/connectors/main.connector.d.ts +8 -0
  326. package/dist/shared/constants/connectors/main.connector.esm +38 -0
  327. package/dist/shared/constants/services/main.service.cjs +1 -0
  328. package/dist/shared/constants/services/main.service.d.ts +7 -0
  329. package/dist/shared/constants/services/main.service.esm +26 -0
  330. package/dist/shared/contracts/repository.contract.cjs +0 -0
  331. package/dist/shared/contracts/repository.contract.d.ts +26 -0
  332. package/dist/shared/contracts/repository.contract.esm +0 -0
  333. package/dist/shared/custom/actions/back-button.action.cjs +1 -0
  334. package/dist/shared/custom/actions/back-button.action.d.ts +13 -0
  335. package/dist/shared/custom/actions/back-button.action.esm +20 -0
  336. package/dist/shared/custom/audit/audit-view.cjs +1 -0
  337. package/dist/shared/custom/audit/audit-view.d.ts +46 -0
  338. package/dist/shared/custom/audit/audit-view.esm +73 -0
  339. package/dist/shared/custom/confirm/use-confirm.cjs +1 -0
  340. package/dist/shared/custom/confirm/use-confirm.d.ts +15 -0
  341. package/dist/shared/custom/confirm/use-confirm.esm +57 -0
  342. package/dist/shared/custom/data-table/data-table.component.cjs +1 -0
  343. package/dist/shared/custom/data-table/data-table.component.d.ts +9 -0
  344. package/dist/shared/custom/data-table/data-table.component.esm +26 -0
  345. package/dist/shared/custom/data-table/data-table.provider.cjs +0 -0
  346. package/dist/shared/custom/data-table/data-table.provider.d.ts +1 -0
  347. package/dist/shared/custom/data-table/data-table.provider.esm +0 -0
  348. package/dist/shared/custom/flow/flow-canvas.cjs +1 -0
  349. package/dist/shared/custom/flow/flow-canvas.d.ts +10 -0
  350. package/dist/shared/custom/flow/flow-canvas.esm +23 -0
  351. package/dist/shared/custom/flow/nodes/base.node.cjs +1 -0
  352. package/dist/shared/custom/flow/nodes/base.node.d.ts +9 -0
  353. package/dist/shared/custom/flow/nodes/base.node.esm +51 -0
  354. package/dist/shared/custom/form/form.component.cjs +1 -0
  355. package/dist/shared/custom/form/form.component.d.ts +13 -0
  356. package/dist/shared/custom/form/form.component.esm +26 -0
  357. package/dist/shared/custom/form/index.cjs +1 -0
  358. package/dist/shared/custom/form/index.d.ts +17 -0
  359. package/dist/shared/custom/form/index.esm +2 -0
  360. package/dist/shared/custom/form/inputs/async-combobox.input.cjs +1 -0
  361. package/dist/shared/custom/form/inputs/async-combobox.input.d.ts +18 -0
  362. package/dist/shared/custom/form/inputs/async-combobox.input.esm +91 -0
  363. package/dist/shared/custom/form/inputs/async-multi-select.input.cjs +1 -0
  364. package/dist/shared/custom/form/inputs/async-multi-select.input.d.ts +20 -0
  365. package/dist/shared/custom/form/inputs/async-multi-select.input.esm +127 -0
  366. package/dist/shared/custom/form/inputs/async-select.input.cjs +1 -0
  367. package/dist/shared/custom/form/inputs/async-select.input.d.ts +15 -0
  368. package/dist/shared/custom/form/inputs/async-select.input.esm +71 -0
  369. package/dist/shared/custom/form/inputs/checkbox-inline.input.cjs +1 -0
  370. package/dist/shared/custom/form/inputs/checkbox-inline.input.d.ts +15 -0
  371. package/dist/shared/custom/form/inputs/checkbox-inline.input.esm +41 -0
  372. package/dist/shared/custom/form/inputs/checkbox.input.cjs +1 -0
  373. package/dist/shared/custom/form/inputs/checkbox.input.d.ts +21 -0
  374. package/dist/shared/custom/form/inputs/checkbox.input.esm +50 -0
  375. package/dist/shared/custom/form/inputs/code.input.cjs +1 -0
  376. package/dist/shared/custom/form/inputs/code.input.d.ts +11 -0
  377. package/dist/shared/custom/form/inputs/code.input.esm +58 -0
  378. package/dist/shared/custom/form/inputs/color.input.cjs +1 -0
  379. package/dist/shared/custom/form/inputs/color.input.d.ts +11 -0
  380. package/dist/shared/custom/form/inputs/color.input.esm +47 -0
  381. package/dist/shared/custom/form/inputs/combobox.input.cjs +1 -0
  382. package/dist/shared/custom/form/inputs/combobox.input.d.ts +18 -0
  383. package/dist/shared/custom/form/inputs/combobox.input.esm +73 -0
  384. package/dist/shared/custom/form/inputs/date.input.cjs +1 -0
  385. package/dist/shared/custom/form/inputs/date.input.d.ts +11 -0
  386. package/dist/shared/custom/form/inputs/date.input.esm +52 -0
  387. package/dist/shared/custom/form/inputs/email.input.cjs +1 -0
  388. package/dist/shared/custom/form/inputs/email.input.d.ts +12 -0
  389. package/dist/shared/custom/form/inputs/email.input.esm +47 -0
  390. package/dist/shared/custom/form/inputs/file.input.cjs +1 -0
  391. package/dist/shared/custom/form/inputs/file.input.d.ts +11 -0
  392. package/dist/shared/custom/form/inputs/file.input.esm +95 -0
  393. package/dist/shared/custom/form/inputs/image.input.cjs +1 -0
  394. package/dist/shared/custom/form/inputs/image.input.d.ts +11 -0
  395. package/dist/shared/custom/form/inputs/image.input.esm +90 -0
  396. package/dist/shared/custom/form/inputs/list-select.input.cjs +1 -0
  397. package/dist/shared/custom/form/inputs/list-select.input.d.ts +17 -0
  398. package/dist/shared/custom/form/inputs/list-select.input.esm +53 -0
  399. package/dist/shared/custom/form/inputs/secret.input.cjs +1 -0
  400. package/dist/shared/custom/form/inputs/secret.input.d.ts +11 -0
  401. package/dist/shared/custom/form/inputs/secret.input.esm +53 -0
  402. package/dist/shared/custom/form/inputs/select.input.cjs +1 -0
  403. package/dist/shared/custom/form/inputs/select.input.d.ts +17 -0
  404. package/dist/shared/custom/form/inputs/select.input.esm +44 -0
  405. package/dist/shared/custom/form/inputs/tags.input.cjs +1 -0
  406. package/dist/shared/custom/form/inputs/tags.input.d.ts +16 -0
  407. package/dist/shared/custom/form/inputs/tags.input.esm +80 -0
  408. package/dist/shared/custom/form/inputs/text.input.cjs +1 -0
  409. package/dist/shared/custom/form/inputs/text.input.d.ts +13 -0
  410. package/dist/shared/custom/form/inputs/text.input.esm +47 -0
  411. package/dist/shared/custom/form/inputs/textarea.input.cjs +1 -0
  412. package/dist/shared/custom/form/inputs/textarea.input.d.ts +12 -0
  413. package/dist/shared/custom/form/inputs/textarea.input.esm +36 -0
  414. package/dist/shared/custom/form/layout/form-dialog-layout.cjs +1 -0
  415. package/dist/shared/custom/form/layout/form-dialog-layout.d.ts +25 -0
  416. package/dist/shared/custom/form/layout/form-dialog-layout.esm +37 -0
  417. package/dist/shared/custom/form/layout/form-tab-layout.cjs +1 -0
  418. package/dist/shared/custom/form/layout/form-tab-layout.d.ts +30 -0
  419. package/dist/shared/custom/form/layout/form-tab-layout.esm +69 -0
  420. package/dist/shared/custom/hover/hover.cjs +1 -0
  421. package/dist/shared/custom/hover/hover.d.ts +6 -0
  422. package/dist/shared/custom/hover/hover.esm +20 -0
  423. package/dist/shared/custom/layouts/canvas-view.layout.cjs +1 -0
  424. package/dist/shared/custom/layouts/canvas-view.layout.d.ts +18 -0
  425. package/dist/shared/custom/layouts/canvas-view.layout.esm +15 -0
  426. package/dist/shared/custom/layouts/detail-tabs.layout.cjs +1 -0
  427. package/dist/shared/custom/layouts/detail-tabs.layout.d.ts +27 -0
  428. package/dist/shared/custom/layouts/detail-tabs.layout.esm +32 -0
  429. package/dist/shared/custom/layouts/detail-view.layout.cjs +1 -0
  430. package/dist/shared/custom/layouts/detail-view.layout.d.ts +33 -0
  431. package/dist/shared/custom/layouts/detail-view.layout.esm +64 -0
  432. package/dist/shared/custom/layouts/feedback.layout.cjs +1 -0
  433. package/dist/shared/custom/layouts/feedback.layout.d.ts +14 -0
  434. package/dist/shared/custom/layouts/feedback.layout.esm +20 -0
  435. package/dist/shared/custom/layouts/grid.layout.cjs +1 -0
  436. package/dist/shared/custom/layouts/grid.layout.d.ts +38 -0
  437. package/dist/shared/custom/layouts/grid.layout.esm +39 -0
  438. package/dist/shared/custom/layouts/page-container.cjs +1 -0
  439. package/dist/shared/custom/layouts/page-container.d.ts +6 -0
  440. package/dist/shared/custom/layouts/page-container.esm +12 -0
  441. package/dist/shared/custom/ui/icon-box.cjs +1 -0
  442. package/dist/shared/custom/ui/icon-box.d.ts +12 -0
  443. package/dist/shared/custom/ui/icon-box.esm +21 -0
  444. package/dist/shared/custom/ui/typography.cjs +1 -0
  445. package/dist/shared/custom/ui/typography.d.ts +11 -0
  446. package/dist/shared/custom/ui/typography.esm +30 -0
  447. package/dist/shared/hooks/use-device.cjs +1 -0
  448. package/dist/shared/hooks/use-device.d.ts +10 -0
  449. package/dist/shared/hooks/use-device.esm +37 -0
  450. package/dist/shared/hooks/use-i18n.cjs +1 -0
  451. package/dist/shared/hooks/use-i18n.d.ts +10 -0
  452. package/dist/shared/hooks/use-i18n.esm +15 -0
  453. package/dist/shared/hooks/use-mobile.cjs +1 -0
  454. package/dist/shared/hooks/use-mobile.d.ts +1 -0
  455. package/dist/shared/hooks/use-mobile.esm +14 -0
  456. package/dist/shared/lib/utils.cjs +1 -0
  457. package/dist/shared/lib/utils.d.ts +2 -0
  458. package/dist/shared/lib/utils.esm +8 -0
  459. package/dist/shared/logic/action/action-processor.cjs +1 -0
  460. package/dist/shared/logic/action/action-processor.d.ts +86 -0
  461. package/dist/shared/logic/action/action-processor.esm +30 -0
  462. package/dist/shared/logic/components/components.registry.cjs +1 -0
  463. package/dist/shared/logic/components/components.registry.d.ts +16 -0
  464. package/dist/shared/logic/components/components.registry.esm +26 -0
  465. package/dist/shared/logic/events/startable.cjs +1 -0
  466. package/dist/shared/logic/events/startable.d.ts +7 -0
  467. package/dist/shared/logic/events/startable.esm +32 -0
  468. package/dist/shared/logic/events/use-on-start.hook.cjs +1 -0
  469. package/dist/shared/logic/events/use-on-start.hook.d.ts +12 -0
  470. package/dist/shared/logic/events/use-on-start.hook.esm +15 -0
  471. package/dist/shared/logic/factory/component.factory.cjs +1 -0
  472. package/dist/shared/logic/factory/component.factory.d.ts +9 -0
  473. package/dist/shared/logic/factory/component.factory.esm +28 -0
  474. package/dist/shared/logic/guards/builder-device.guard.cjs +1 -0
  475. package/dist/shared/logic/guards/builder-device.guard.d.ts +5 -0
  476. package/dist/shared/logic/guards/builder-device.guard.esm +10 -0
  477. package/dist/shared/logic/guards/component.guard.cjs +1 -0
  478. package/dist/shared/logic/guards/component.guard.d.ts +5 -0
  479. package/dist/shared/logic/guards/component.guard.esm +13 -0
  480. package/dist/shared/logic/guards/context.guard.cjs +1 -0
  481. package/dist/shared/logic/guards/context.guard.d.ts +13 -0
  482. package/dist/shared/logic/guards/context.guard.esm +9 -0
  483. package/dist/shared/logic/guards/device-artifact.guard.cjs +1 -0
  484. package/dist/shared/logic/guards/device-artifact.guard.d.ts +16 -0
  485. package/dist/shared/logic/guards/device-artifact.guard.esm +44 -0
  486. package/dist/shared/logic/guards/device.guard.cjs +1 -0
  487. package/dist/shared/logic/guards/device.guard.d.ts +17 -0
  488. package/dist/shared/logic/guards/device.guard.esm +40 -0
  489. package/dist/shared/logic/guards/dynamic-device.guard.cjs +1 -0
  490. package/dist/shared/logic/guards/dynamic-device.guard.d.ts +5 -0
  491. package/dist/shared/logic/guards/dynamic-device.guard.esm +10 -0
  492. package/dist/shared/logic/guards/guard.cjs +1 -0
  493. package/dist/shared/logic/guards/guard.d.ts +24 -0
  494. package/dist/shared/logic/guards/guard.esm +18 -0
  495. package/dist/shared/logic/service/base.service.cjs +1 -0
  496. package/dist/shared/logic/service/base.service.d.ts +3 -0
  497. package/dist/shared/logic/service/base.service.esm +5 -0
  498. package/dist/shared/logic/verifiers/context.verifier.cjs +1 -0
  499. package/dist/shared/logic/verifiers/context.verifier.d.ts +7 -0
  500. package/dist/shared/logic/verifiers/context.verifier.esm +31 -0
  501. package/dist/shared/logic/verifiers/device.verifier.registry.cjs +1 -0
  502. package/dist/shared/logic/verifiers/device.verifier.registry.d.ts +13 -0
  503. package/dist/shared/logic/verifiers/device.verifier.registry.esm +36 -0
  504. package/dist/shared/logic/verifiers/enum.verifier.cjs +1 -0
  505. package/dist/shared/logic/verifiers/enum.verifier.d.ts +4 -0
  506. package/dist/shared/logic/verifiers/enum.verifier.esm +9 -0
  507. package/dist/shared/logic/verifiers/value.verifier.cjs +1 -0
  508. package/dist/shared/logic/verifiers/value.verifier.d.ts +5 -0
  509. package/dist/shared/logic/verifiers/value.verifier.esm +9 -0
  510. package/dist/shared/ui/badge.cjs +1 -0
  511. package/dist/shared/ui/badge.d.ts +9 -0
  512. package/dist/shared/ui/badge.esm +27 -0
  513. package/dist/shared/ui/breadcrumb.cjs +1 -0
  514. package/dist/shared/ui/breadcrumb.d.ts +11 -0
  515. package/dist/shared/ui/breadcrumb.esm +70 -0
  516. package/dist/shared/ui/button.cjs +1 -0
  517. package/dist/shared/ui/button.d.ts +11 -0
  518. package/dist/shared/ui/button.esm +47 -0
  519. package/dist/shared/ui/calendar.cjs +1 -0
  520. package/dist/shared/ui/calendar.d.ts +10 -0
  521. package/dist/shared/ui/calendar.esm +92 -0
  522. package/dist/shared/ui/card.cjs +1 -0
  523. package/dist/shared/ui/card.d.ts +11 -0
  524. package/dist/shared/ui/card.esm +56 -0
  525. package/dist/shared/ui/checkbox.cjs +1 -0
  526. package/dist/shared/ui/checkbox.d.ts +4 -0
  527. package/dist/shared/ui/checkbox.esm +20 -0
  528. package/dist/shared/ui/combobox.cjs +1 -0
  529. package/dist/shared/ui/combobox.d.ts +24 -0
  530. package/dist/shared/ui/combobox.esm +163 -0
  531. package/dist/shared/ui/command.cjs +1 -0
  532. package/dist/shared/ui/command.d.ts +18 -0
  533. package/dist/shared/ui/command.esm +87 -0
  534. package/dist/shared/ui/custom/dynamic-icon.cjs +1 -0
  535. package/dist/shared/ui/custom/dynamic-icon.d.ts +13 -0
  536. package/dist/shared/ui/custom/dynamic-icon.esm +15 -0
  537. package/dist/shared/ui/dialog.cjs +1 -0
  538. package/dist/shared/ui/dialog.d.ts +17 -0
  539. package/dist/shared/ui/dialog.esm +95 -0
  540. package/dist/shared/ui/field.cjs +1 -0
  541. package/dist/shared/ui/field.d.ts +24 -0
  542. package/dist/shared/ui/field.esm +107 -0
  543. package/dist/shared/ui/icon-button.cjs +1 -0
  544. package/dist/shared/ui/icon-button.d.ts +6 -0
  545. package/dist/shared/ui/icon-button.esm +14 -0
  546. package/dist/shared/ui/index.cjs +1 -0
  547. package/dist/shared/ui/index.d.ts +23 -0
  548. package/dist/shared/ui/index.esm +24 -0
  549. package/dist/shared/ui/input-group.cjs +1 -0
  550. package/dist/shared/ui/input-group.d.ts +16 -0
  551. package/dist/shared/ui/input-group.esm +77 -0
  552. package/dist/shared/ui/input.cjs +1 -0
  553. package/dist/shared/ui/input.d.ts +3 -0
  554. package/dist/shared/ui/input.esm +14 -0
  555. package/dist/shared/ui/label.cjs +1 -0
  556. package/dist/shared/ui/label.d.ts +4 -0
  557. package/dist/shared/ui/label.esm +14 -0
  558. package/dist/shared/ui/popover.cjs +1 -0
  559. package/dist/shared/ui/popover.d.ts +7 -0
  560. package/dist/shared/ui/popover.esm +35 -0
  561. package/dist/shared/ui/scroll-area.cjs +1 -0
  562. package/dist/shared/ui/scroll-area.d.ts +5 -0
  563. package/dist/shared/ui/scroll-area.esm +36 -0
  564. package/dist/shared/ui/select.cjs +1 -0
  565. package/dist/shared/ui/select.d.ts +15 -0
  566. package/dist/shared/ui/select.esm +99 -0
  567. package/dist/shared/ui/separator.cjs +1 -0
  568. package/dist/shared/ui/separator.d.ts +4 -0
  569. package/dist/shared/ui/separator.esm +16 -0
  570. package/dist/shared/ui/sheet.cjs +1 -0
  571. package/dist/shared/ui/sheet.d.ts +14 -0
  572. package/dist/shared/ui/sheet.esm +89 -0
  573. package/dist/shared/ui/sidebar.cjs +1 -0
  574. package/dist/shared/ui/sidebar.d.ts +69 -0
  575. package/dist/shared/ui/sidebar.esm +348 -0
  576. package/dist/shared/ui/skeleton.cjs +1 -0
  577. package/dist/shared/ui/skeleton.d.ts +2 -0
  578. package/dist/shared/ui/skeleton.esm +12 -0
  579. package/dist/shared/ui/sonner.cjs +1 -0
  580. package/dist/shared/ui/sonner.d.ts +3 -0
  581. package/dist/shared/ui/sonner.esm +29 -0
  582. package/dist/shared/ui/table.cjs +1 -0
  583. package/dist/shared/ui/table.d.ts +10 -0
  584. package/dist/shared/ui/table.esm +66 -0
  585. package/dist/shared/ui/tabs.cjs +1 -0
  586. package/dist/shared/ui/tabs.d.ts +11 -0
  587. package/dist/shared/ui/tabs.esm +45 -0
  588. package/dist/shared/ui/textarea.cjs +1 -0
  589. package/dist/shared/ui/textarea.d.ts +3 -0
  590. package/dist/shared/ui/textarea.esm +13 -0
  591. package/dist/shared/ui/tooltip.cjs +1 -0
  592. package/dist/shared/ui/tooltip.d.ts +7 -0
  593. package/dist/shared/ui/tooltip.esm +36 -0
  594. package/dist/sheet.d.ts +2 -0
  595. package/dist/sheets.connector.d.ts +2 -0
  596. package/dist/sheets.service.d.ts +2 -0
  597. package/dist/sidebar.d.ts +2 -0
  598. package/dist/skeleton.d.ts +2 -0
  599. package/dist/social-icons.d.ts +2 -0
  600. package/dist/sonner.d.ts +2 -0
  601. package/dist/sortable.d.ts +2 -0
  602. package/dist/sqlite.service.d.ts +6 -0
  603. package/dist/startable.d.ts +4 -0
  604. package/dist/storage.service.d.ts +4 -0
  605. package/dist/store.hook.d.ts +4 -0
  606. package/dist/store.service.d.ts +4 -0
  607. package/dist/table.d.ts +2 -0
  608. package/dist/tabs.d.ts +2 -0
  609. package/dist/tags.input.d.ts +4 -0
  610. package/dist/test.entity.d.ts +2 -0
  611. package/dist/test.repo.service.d.ts +6 -0
  612. package/dist/text-coder.service.d.ts +2 -0
  613. package/dist/text.input.d.ts +4 -0
  614. package/dist/textarea.d.ts +2 -0
  615. package/dist/textarea.input.d.ts +4 -0
  616. package/dist/theme-builder.d.ts +2 -0
  617. package/dist/theme-provider.d.ts +2 -0
  618. package/dist/theme-toggle.d.ts +2 -0
  619. package/dist/tooltip.d.ts +2 -0
  620. package/dist/tron-assets.service.d.ts +2 -0
  621. package/dist/tron-wallet.entity.d.ts +2 -0
  622. package/dist/tron-wallet.repo.d.ts +2 -0
  623. package/dist/tron.service.d.ts +2 -0
  624. package/dist/tron.types.d.ts +1 -0
  625. package/dist/types.d.ts +1 -0
  626. package/dist/typography.d.ts +2 -0
  627. package/dist/use-confirm.d.ts +2 -0
  628. package/dist/use-device.d.ts +2 -0
  629. package/dist/use-i18n.d.ts +2 -0
  630. package/dist/use-mobile.d.ts +2 -0
  631. package/dist/use-on-start.hook.d.ts +2 -0
  632. package/dist/utils.d.ts +2 -0
  633. package/dist/value.verifier.d.ts +4 -0
  634. package/package.json +155 -0
@@ -0,0 +1,38 @@
1
+ import { ENV_MANAGER as e } from "../../../packages/env/env.manager.esm";
2
+ import t from "../../../packages/requests/axios/base.connector.esm";
3
+ //#region src/shared/constants/connectors/main.connector.ts
4
+ function n(e, t) {
5
+ if (!{}.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
6
+ return e;
7
+ }
8
+ var r = 0;
9
+ function i(e) {
10
+ return "__private_" + r++ + "_" + e;
11
+ }
12
+ var a = /* @__PURE__ */ i("instance"), o = class r extends t {
13
+ constructor() {
14
+ super({ config: {
15
+ baseURL: e.get("VITE_MAIN_URL"),
16
+ headers: { "Content-Type": "application/json" },
17
+ withCredentials: !0
18
+ } });
19
+ }
20
+ static get instance() {
21
+ return n(r, a)[a] || (n(r, a)[a] = new r()), n(r, a)[a];
22
+ }
23
+ async healthCheck() {
24
+ try {
25
+ let { data: e } = await this.service.get("/health");
26
+ return e.status === "ok";
27
+ } catch {
28
+ return !1;
29
+ }
30
+ }
31
+ };
32
+ Object.defineProperty(o, a, {
33
+ writable: !0,
34
+ value: void 0
35
+ });
36
+ var s = o.instance;
37
+ //#endregion
38
+ export { s as MAIN_CONNECTOR, o as MainConnector };
@@ -0,0 +1 @@
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../../../packages/requests/axios/base.service.cjs`),t=require(`../connectors/main.connector.cjs`);function n(e,t){if(!{}.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var r=0;function i(e){return`__private_`+ r+++`_`+e}var a=i(`instance`),o=class r extends e{constructor(){super({connector:t.MAIN_CONNECTOR})}static get instance(){return n(r,a)[a]||(n(r,a)[a]=new r),n(r,a)[a]}};Object.defineProperty(o,a,{writable:!0,value:void 0});var s=o.instance;exports.MAIN_SERVICE=s,exports.default=o;
@@ -0,0 +1,7 @@
1
+ import { default as BaseAxiosService } from '../../../packages/requests/axios/base.service';
2
+ export default class MainService extends BaseAxiosService {
3
+ #private;
4
+ protected constructor();
5
+ static get instance(): MainService;
6
+ }
7
+ export declare const MAIN_SERVICE: MainService;
@@ -0,0 +1,26 @@
1
+ import e from "../../../packages/requests/axios/base.service.esm";
2
+ import { MAIN_CONNECTOR as t } from "../connectors/main.connector.esm";
3
+ //#region src/shared/constants/services/main.service.ts
4
+ function n(e, t) {
5
+ if (!{}.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
6
+ return e;
7
+ }
8
+ var r = 0;
9
+ function i(e) {
10
+ return "__private_" + r++ + "_" + e;
11
+ }
12
+ var a = /* @__PURE__ */ i("instance"), o = class r extends e {
13
+ constructor() {
14
+ super({ connector: t });
15
+ }
16
+ static get instance() {
17
+ return n(r, a)[a] || (n(r, a)[a] = new r()), n(r, a)[a];
18
+ }
19
+ };
20
+ Object.defineProperty(o, a, {
21
+ writable: !0,
22
+ value: void 0
23
+ });
24
+ var s = o.instance;
25
+ //#endregion
26
+ export { s as MAIN_SERVICE, o as default };
File without changes
@@ -0,0 +1,26 @@
1
+ import { Logger } from '../../packages/logger/logger';
2
+ /**
3
+ * IRepository
4
+ *
5
+ * Contrato base para cualquier servicio de persistencia.
6
+ * Ahora sigue la convención (payload, logger?) para trazabilidad total.
7
+ */
8
+ export interface IRepository<T> {
9
+ findAll(payload?: any, logger?: Logger): Promise<T[]>;
10
+ findById(id: string, logger?: Logger): Promise<T | null>;
11
+ persist(entity: T, logger?: Logger): Promise<T>;
12
+ remove(entity: T, logger?: Logger): Promise<T>;
13
+ }
14
+ /**
15
+ * IPaginable
16
+ */
17
+ export interface IPaginable<T> {
18
+ findPaginated(params: {
19
+ page: number;
20
+ limit: number;
21
+ }, logger?: Logger): Promise<{
22
+ items: T[];
23
+ total: number;
24
+ hasMore: boolean;
25
+ }>;
26
+ }
File without changes
@@ -0,0 +1 @@
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../lib/utils.cjs`),t=require(`../../ui/button.cjs`);let n=require(`react/jsx-runtime`),r=require(`lucide-react`),i=require(`react-router`);function a({label:a=`Volver`,to:o=-1,className:s,variant:c=`ghost`,...l}){let u=(0,i.useNavigate)();return(0,n.jsxs)(t.Button,{variant:c,onClick:()=>{u(o)},className:e.cn(`text-muted-foreground hover:text-foreground`,s),...l,children:[(0,n.jsx)(r.ChevronLeft,{className:`size-4 mr-2`}),a]})}exports.BackButtonAction=a,exports.default=a;
@@ -0,0 +1,13 @@
1
+ import { ButtonProps } from '../../ui/button';
2
+ interface BackButtonActionProps extends Omit<ButtonProps, "children"> {
3
+ label?: string;
4
+ to?: string | number;
5
+ className?: string;
6
+ }
7
+ /**
8
+ * BackButtonAction
9
+ *
10
+ * Botón de retroceso reutilizable y configurable para acciones de encabezados/layouts.
11
+ */
12
+ export declare function BackButtonAction({ label, to, className, variant, ...props }: BackButtonActionProps): import("react/jsx-runtime").JSX.Element;
13
+ export default BackButtonAction;
@@ -0,0 +1,20 @@
1
+ import { cn as e } from "../../lib/utils.esm";
2
+ import { Button as t } from "../../ui/button.esm";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import { ChevronLeft as i } from "lucide-react";
5
+ import { useNavigate as a } from "react-router";
6
+ //#region src/shared/custom/actions/back-button.action.tsx
7
+ function o({ label: o = "Volver", to: s = -1, className: c, variant: l = "ghost", ...u }) {
8
+ let d = a();
9
+ return /* @__PURE__ */ r(t, {
10
+ variant: l,
11
+ onClick: () => {
12
+ d(s);
13
+ },
14
+ className: e("text-muted-foreground hover:text-foreground", c),
15
+ ...u,
16
+ children: [/* @__PURE__ */ n(i, { className: "size-4 mr-2" }), o]
17
+ });
18
+ }
19
+ //#endregion
20
+ export { o as BackButtonAction, o as default };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../../_virtual/_rolldown/runtime.cjs`),t=require(`../../lib/utils.cjs`),n=require(`../ui/typography.cjs`),r=require(`../ui/icon-box.cjs`);let i=require(`react/jsx-runtime`),a=require(`react`);a=e.__toESM(a);function o({icon:e,title:a,description:o,label:s=`Módulo`,className:c}){return(0,i.jsxs)(`div`,{className:t.cn(`space-y-2`,c),children:[(0,i.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,i.jsx)(r.IconBox,{icon:e,className:`size-10 rounded-xl p-0`}),(0,i.jsx)(`span`,{className:`text-[10px] font-bold tracking-widest uppercase opacity-50 text-foreground`,children:s})]}),(0,i.jsx)(n.Typography,{variant:`h1`,className:`text-4xl md:text-5xl`,children:a}),(0,i.jsx)(n.Typography,{variant:`muted`,className:`max-w-2xl text-lg leading-relaxed`,children:o})]})}function s({children:e,className:n}){return(0,i.jsx)(`div`,{className:t.cn(`flex flex-wrap items-center gap-3`,n),children:e})}function c({children:e,className:n}){return(0,i.jsx)(`main`,{className:t.cn(`animate-in fade-in slide-in-from-bottom-4 duration-700`,n),children:e})}function l({children:e,className:n}){return(0,i.jsx)(`div`,{className:t.cn(`max-w-6xl mx-auto space-y-12 py-12 px-4 md:px-0`,n),children:e})}function u({icon:e,title:t,description:n,label:r,actions:a,children:u}){return(0,i.jsxs)(l,{children:[(0,i.jsxs)(`header`,{className:`flex flex-col md:flex-row md:items-end justify-between gap-8`,children:[(0,i.jsx)(o,{icon:e,title:t,description:n,label:r}),a&&(0,i.jsx)(s,{children:a})]}),(0,i.jsx)(c,{children:u})]})}function d(){return{Container:l,Header:o,Actions:s,Main:c,View:u}}exports.AuditActions=s,exports.AuditContainer=l,exports.AuditHeader=o,exports.AuditItemsView=u,exports.AuditMain=c,exports.useAuditView=d;
@@ -0,0 +1,46 @@
1
+ import { default as React } from 'react';
2
+ import { LucideIcon } from 'lucide-react';
3
+ interface AuditHeaderProps {
4
+ icon: LucideIcon;
5
+ title: string;
6
+ description: string;
7
+ label?: string;
8
+ className?: string;
9
+ }
10
+ export declare function AuditHeader({ icon, title, description, label, className }: AuditHeaderProps): import("react/jsx-runtime").JSX.Element;
11
+ interface AuditActionsProps {
12
+ children: React.ReactNode;
13
+ className?: string;
14
+ }
15
+ export declare function AuditActions({ children, className }: AuditActionsProps): import("react/jsx-runtime").JSX.Element;
16
+ interface AuditMainProps {
17
+ children: React.ReactNode;
18
+ className?: string;
19
+ }
20
+ export declare function AuditMain({ children, className }: AuditMainProps): import("react/jsx-runtime").JSX.Element;
21
+ interface AuditContainerProps {
22
+ children: React.ReactNode;
23
+ className?: string;
24
+ }
25
+ export declare function AuditContainer({ children, className }: AuditContainerProps): import("react/jsx-runtime").JSX.Element;
26
+ interface AuditItemsViewProps {
27
+ icon: LucideIcon;
28
+ title: string;
29
+ description: string;
30
+ label?: string;
31
+ actions?: React.ReactNode;
32
+ children: React.ReactNode;
33
+ }
34
+ export declare function AuditItemsView({ icon, title, description, label, actions, children }: AuditItemsViewProps): import("react/jsx-runtime").JSX.Element;
35
+ /**
36
+ * Hook que provee los componentes de la vista de auditoría por separado.
37
+ * Permite una composición flexible si el orquestador AuditItemsView no es suficiente.
38
+ */
39
+ export declare function useAuditView(): {
40
+ Container: typeof AuditContainer;
41
+ Header: typeof AuditHeader;
42
+ Actions: typeof AuditActions;
43
+ Main: typeof AuditMain;
44
+ View: typeof AuditItemsView;
45
+ };
46
+ export {};
@@ -0,0 +1,73 @@
1
+ import { cn as e } from "../../lib/utils.esm";
2
+ import { Typography as t } from "../ui/typography.esm";
3
+ import { IconBox as n } from "../ui/icon-box.esm";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ import "react";
6
+ //#region src/shared/custom/audit/audit-view.tsx
7
+ function a({ icon: a, title: o, description: s, label: c = "Módulo", className: l }) {
8
+ return /* @__PURE__ */ i("div", {
9
+ className: e("space-y-2", l),
10
+ children: [
11
+ /* @__PURE__ */ i("div", {
12
+ className: "flex items-center gap-3",
13
+ children: [/* @__PURE__ */ r(n, {
14
+ icon: a,
15
+ className: "size-10 rounded-xl p-0"
16
+ }), /* @__PURE__ */ r("span", {
17
+ className: "text-[10px] font-bold tracking-widest uppercase opacity-50 text-foreground",
18
+ children: c
19
+ })]
20
+ }),
21
+ /* @__PURE__ */ r(t, {
22
+ variant: "h1",
23
+ className: "text-4xl md:text-5xl",
24
+ children: o
25
+ }),
26
+ /* @__PURE__ */ r(t, {
27
+ variant: "muted",
28
+ className: "max-w-2xl text-lg leading-relaxed",
29
+ children: s
30
+ })
31
+ ]
32
+ });
33
+ }
34
+ function o({ children: t, className: n }) {
35
+ return /* @__PURE__ */ r("div", {
36
+ className: e("flex flex-wrap items-center gap-3", n),
37
+ children: t
38
+ });
39
+ }
40
+ function s({ children: t, className: n }) {
41
+ return /* @__PURE__ */ r("main", {
42
+ className: e("animate-in fade-in slide-in-from-bottom-4 duration-700", n),
43
+ children: t
44
+ });
45
+ }
46
+ function c({ children: t, className: n }) {
47
+ return /* @__PURE__ */ r("div", {
48
+ className: e("max-w-6xl mx-auto space-y-12 py-12 px-4 md:px-0", n),
49
+ children: t
50
+ });
51
+ }
52
+ function l({ icon: e, title: t, description: n, label: l, actions: u, children: d }) {
53
+ return /* @__PURE__ */ i(c, { children: [/* @__PURE__ */ i("header", {
54
+ className: "flex flex-col md:flex-row md:items-end justify-between gap-8",
55
+ children: [/* @__PURE__ */ r(a, {
56
+ icon: e,
57
+ title: t,
58
+ description: n,
59
+ label: l
60
+ }), u && /* @__PURE__ */ r(o, { children: u })]
61
+ }), /* @__PURE__ */ r(s, { children: d })] });
62
+ }
63
+ function u() {
64
+ return {
65
+ Container: c,
66
+ Header: a,
67
+ Actions: o,
68
+ Main: s,
69
+ View: l
70
+ };
71
+ }
72
+ //#endregion
73
+ export { o as AuditActions, c as AuditContainer, a as AuditHeader, l as AuditItemsView, s as AuditMain, u as useAuditView };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../ui/button.cjs`),t=require(`../../ui/dialog.cjs`);let n=require(`react/jsx-runtime`),r=require(`react`),i=require(`lucide-react`);function a(){let[a,o]=(0,r.useState)(null);return{confirm:e=>{o(e)},ConfirmDialog:(0,n.jsx)(t.Dialog,{open:!!a,onOpenChange:e=>!e&&o(null),children:(0,n.jsx)(t.DialogContent,{className:`sm:max-w-[400px] bg-card border-border p-6 gap-6 outline-none`,children:a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(t.DialogHeader,{className:`flex flex-col items-center text-center gap-4`,children:[(0,n.jsx)(`div`,{className:`size-12 rounded-full ${a.confirmVariant===`destructive`||!a.confirmVariant?`bg-red-500/10`:`bg-primary/10`} flex items-center justify-center`,children:a.icon||(0,n.jsx)(i.AlertTriangle,{className:`size-6 ${a.confirmVariant===`destructive`||!a.confirmVariant?`text-red-500`:`text-primary`}`})}),(0,n.jsxs)(`div`,{className:`space-y-1`,children:[(0,n.jsx)(t.DialogTitle,{className:`text-xl font-bold tracking-tight text-foreground`,children:a.title}),(0,n.jsx)(t.DialogDescription,{asChild:!0,children:(0,n.jsx)(`div`,{className:`text-sm text-muted-foreground/70`,children:a.content})})]})]}),(0,n.jsxs)(t.DialogFooter,{className:`flex flex-col sm:flex-row gap-2 sm:gap-2`,children:[(0,n.jsx)(e.Button,{variant:`ghost`,onClick:()=>o(null),className:`flex-1 font-semibold`,children:a.cancelText||`Cancelar`}),(0,n.jsx)(e.Button,{variant:a.confirmVariant||`destructive`,onClick:()=>{a&&(a.onConfirm(),o(null))},className:`flex-1 font-bold`,children:a.confirmText||`Confirmar`})]})]})})})}}exports.useConfirm=a;
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ interface ConfirmOptions {
3
+ title: ReactNode;
4
+ content: ReactNode;
5
+ confirmText?: string;
6
+ cancelText?: string;
7
+ onConfirm: () => void;
8
+ confirmVariant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
9
+ icon?: ReactNode;
10
+ }
11
+ export declare function useConfirm(): {
12
+ confirm: (opts: ConfirmOptions) => void;
13
+ ConfirmDialog: import("react/jsx-runtime").JSX.Element;
14
+ };
15
+ export {};
@@ -0,0 +1,57 @@
1
+ import { Button as e } from "../../ui/button.esm";
2
+ import { Dialog as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o } from "../../ui/dialog.esm";
3
+ import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
4
+ import { useState as u } from "react";
5
+ import { AlertTriangle as d } from "lucide-react";
6
+ //#region src/shared/custom/confirm/use-confirm.tsx
7
+ function f() {
8
+ let [f, p] = u(null);
9
+ return {
10
+ confirm: (e) => {
11
+ p(e);
12
+ },
13
+ ConfirmDialog: /* @__PURE__ */ c(t, {
14
+ open: !!f,
15
+ onOpenChange: (e) => !e && p(null),
16
+ children: /* @__PURE__ */ c(n, {
17
+ className: "sm:max-w-[400px] bg-card border-border p-6 gap-6 outline-none",
18
+ children: f && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ l(a, {
19
+ className: "flex flex-col items-center text-center gap-4",
20
+ children: [/* @__PURE__ */ c("div", {
21
+ className: `size-12 rounded-full ${f.confirmVariant === "destructive" || !f.confirmVariant ? "bg-red-500/10" : "bg-primary/10"} flex items-center justify-center`,
22
+ children: f.icon || /* @__PURE__ */ c(d, { className: `size-6 ${f.confirmVariant === "destructive" || !f.confirmVariant ? "text-red-500" : "text-primary"}` })
23
+ }), /* @__PURE__ */ l("div", {
24
+ className: "space-y-1",
25
+ children: [/* @__PURE__ */ c(o, {
26
+ className: "text-xl font-bold tracking-tight text-foreground",
27
+ children: f.title
28
+ }), /* @__PURE__ */ c(r, {
29
+ asChild: !0,
30
+ children: /* @__PURE__ */ c("div", {
31
+ className: "text-sm text-muted-foreground/70",
32
+ children: f.content
33
+ })
34
+ })]
35
+ })]
36
+ }), /* @__PURE__ */ l(i, {
37
+ className: "flex flex-col sm:flex-row gap-2 sm:gap-2",
38
+ children: [/* @__PURE__ */ c(e, {
39
+ variant: "ghost",
40
+ onClick: () => p(null),
41
+ className: "flex-1 font-semibold",
42
+ children: f.cancelText || "Cancelar"
43
+ }), /* @__PURE__ */ c(e, {
44
+ variant: f.confirmVariant || "destructive",
45
+ onClick: () => {
46
+ f && (f.onConfirm(), p(null));
47
+ },
48
+ className: "flex-1 font-bold",
49
+ children: f.confirmText || "Confirmar"
50
+ })]
51
+ })] })
52
+ })
53
+ })
54
+ };
55
+ }
56
+ //#endregion
57
+ export { f as useConfirm };
@@ -0,0 +1 @@
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../lib/utils.cjs`),t=require(`../../ui/table.cjs`);let n=require(`react/jsx-runtime`),r=require(`@tanstack/react-table`);function i({columns:i,data:a,fallback:o,className:s}){let c=(0,r.useReactTable)({data:a,columns:i,getCoreRowModel:(0,r.getCoreRowModel)()});return(0,n.jsx)(`div`,{className:e.cn(`w-full`,s),children:(0,n.jsxs)(t.Table,{children:[(0,n.jsx)(t.TableHeader,{children:c.getHeaderGroups().map(e=>(0,n.jsx)(t.TableRow,{children:e.headers.map(e=>(0,n.jsx)(t.TableHead,{children:e.isPlaceholder?null:(0,r.flexRender)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,n.jsx)(t.TableBody,{children:c.getRowModel().rows?.length?c.getRowModel().rows.map(e=>(0,n.jsx)(t.TableRow,{"data-state":e.getIsSelected()&&`selected`,children:e.getVisibleCells().map(e=>(0,n.jsx)(t.TableCell,{children:(0,r.flexRender)(e.column.columnDef.cell,e.getContext())},e.id))},e.id)):(0,n.jsx)(t.TableRow,{children:(0,n.jsx)(t.TableCell,{colSpan:i.length,className:`h-24 text-center border-none`,children:o||`No results.`})})})]})})}exports.DataTable=i;
@@ -0,0 +1,9 @@
1
+ import { ColumnDef } from '@tanstack/react-table';
2
+ interface DataTableProps<TData, TValue> {
3
+ columns: ColumnDef<TData, TValue>[];
4
+ data: TData[];
5
+ fallback?: React.ReactNode;
6
+ className?: string;
7
+ }
8
+ export declare function DataTable<TData, TValue>({ columns, data, fallback, className, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,26 @@
1
+ "use client";
2
+ import { cn as e } from "../../lib/utils.esm";
3
+ import { Table as t, TableBody as n, TableCell as r, TableHead as i, TableHeader as a, TableRow as o } from "../../ui/table.esm";
4
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
5
+ import { flexRender as l, getCoreRowModel as u, useReactTable as d } from "@tanstack/react-table";
6
+ //#region src/shared/custom/data-table/data-table.component.tsx
7
+ function f({ columns: f, data: p, fallback: m, className: h }) {
8
+ let g = d({
9
+ data: p,
10
+ columns: f,
11
+ getCoreRowModel: u()
12
+ });
13
+ return /* @__PURE__ */ s("div", {
14
+ className: e("w-full", h),
15
+ children: /* @__PURE__ */ c(t, { children: [/* @__PURE__ */ s(a, { children: g.getHeaderGroups().map((e) => /* @__PURE__ */ s(o, { children: e.headers.map((e) => /* @__PURE__ */ s(i, { children: e.isPlaceholder ? null : l(e.column.columnDef.header, e.getContext()) }, e.id)) }, e.id)) }), /* @__PURE__ */ s(n, { children: g.getRowModel().rows?.length ? g.getRowModel().rows.map((e) => /* @__PURE__ */ s(o, {
16
+ "data-state": e.getIsSelected() && "selected",
17
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ s(r, { children: l(e.column.columnDef.cell, e.getContext()) }, e.id))
18
+ }, e.id)) : /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s(r, {
19
+ colSpan: f.length,
20
+ className: "h-24 text-center border-none",
21
+ children: m || "No results."
22
+ }) }) })] })
23
+ });
24
+ }
25
+ //#endregion
26
+ export { f as DataTable };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../../packages/flow/flow.renderer.cjs`),t=require(`./nodes/base.node.cjs`);let n=require(`react/jsx-runtime`),r=require(`react`);require(`@xyflow/react`);function i(i){let a=(0,r.useMemo)(()=>({base:t.BaseNode}),[]),o=(0,r.useMemo)(()=>({style:{strokeWidth:2,stroke:`#94a3b8`,strokeDasharray:`5,5`},animated:!1}),[]);return(0,n.jsx)(e.FlowRenderer,{...i,nodeTypes:a,defaultEdgeOptions:o})}exports.FlowCanvas=i;
@@ -0,0 +1,10 @@
1
+ import { ReactFlowProps } from '@xyflow/react';
2
+ /**
3
+ * FLOW_CANVAS
4
+ *
5
+ * Componente de alto nivel para renderizar flujos en RFT.
6
+ * Actúa como una fachada pre-configurada pero transparente de ReactFlow.
7
+ */
8
+ export declare function FlowCanvas(props: ReactFlowProps & {
9
+ config?: any;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { FlowRenderer as e } from "../../../packages/flow/flow.renderer.esm";
2
+ import { BaseNode as t } from "./nodes/base.node.esm";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ import { useMemo as r } from "react";
5
+ import "@xyflow/react";
6
+ //#region src/shared/custom/flow/flow-canvas.tsx
7
+ function i(i) {
8
+ let a = r(() => ({ base: t }), []), o = r(() => ({
9
+ style: {
10
+ strokeWidth: 2,
11
+ stroke: "#94a3b8",
12
+ strokeDasharray: "5,5"
13
+ },
14
+ animated: !1
15
+ }), []);
16
+ return /* @__PURE__ */ n(e, {
17
+ ...i,
18
+ nodeTypes: a,
19
+ defaultEdgeOptions: o
20
+ });
21
+ }
22
+ //#endregion
23
+ export { i as FlowCanvas };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../../lib/utils.cjs`);let t=require(`react/jsx-runtime`),n=require(`@xyflow/react`);function r({data:r,selected:i}){let a=r=>(0,t.jsx)(n.Handle,{id:r.id,type:r.type,position:r.position,isValidConnection:r.isValidConnection,style:r.style,className:e.cn(`w-2 h-2 bg-slate-400 border border-white rounded-full transition-transform hover:scale-125 z-10`,r.position===n.Position.Left&&`!-left-1`,r.position===n.Position.Right&&`!-right-1`,r.position===n.Position.Top&&`!-top-1`,r.position===n.Position.Bottom&&`!-bottom-1`,r.className)},r.id||`${r.type}-${r.position}`);return(0,t.jsxs)(`div`,{className:e.cn(`rft-flow-node relative min-w-[180px] bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-xl shadow-sm transition-all`,i&&`ring-2 ring-primary border-primary shadow-md scale-[1.02]`),children:[r.handles&&r.handles.length>0?r.handles.map(a):[{type:`target`,position:n.Position.Left},{type:`source`,position:n.Position.Right}].map(a),(0,t.jsxs)(`div`,{className:`px-3 py-2 border-b border-slate-100 dark:border-slate-800 bg-slate-50/50 dark:bg-slate-800/50 rounded-t-xl flex items-center justify-between gap-2`,children:[(0,t.jsxs)(`div`,{className:`flex items-center gap-2 overflow-hidden`,children:[r.icon&&(0,t.jsx)(`span`,{className:`text-slate-400 shrink-0`,children:r.icon}),(0,t.jsx)(`span`,{className:`text-[10px] font-bold text-slate-600 dark:text-slate-300 uppercase tracking-wider truncate`,children:r.label})]}),r.status&&(0,t.jsx)(`div`,{className:e.cn(`h-1.5 w-1.5 rounded-full shrink-0`,r.status===`running`&&`bg-blue-500 animate-pulse`,r.status===`success`&&`bg-green-500`,r.status===`error`&&`bg-red-500`,r.status===`idle`&&`bg-slate-300`)})]}),(0,t.jsxs)(`div`,{className:`p-3`,children:[r.description&&(0,t.jsx)(`p`,{className:`text-[10px] text-slate-500 dark:text-slate-400 leading-tight`,children:r.description}),r.children&&(0,t.jsx)(`div`,{className:`mt-2`,children:r.children})]})]})}exports.BaseNode=r;
@@ -0,0 +1,9 @@
1
+ import { RFTNodeComponentProps } from '../../../../packages/flow/flow.types';
2
+ /**
3
+ * BASE_NODE
4
+ *
5
+ * Plantilla de nodo técnica y minimalista:
6
+ * - Sin dependencias de UI complejas (solo divs).
7
+ * - Diseño optimizado para flujos de datos.
8
+ */
9
+ export declare function BaseNode({ data, selected }: RFTNodeComponentProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,51 @@
1
+ import { cn as e } from "../../../lib/utils.esm";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { Handle as r, Position as i } from "@xyflow/react";
4
+ //#region src/shared/custom/flow/nodes/base.node.tsx
5
+ function a({ data: a, selected: o }) {
6
+ let s = (n) => /* @__PURE__ */ t(r, {
7
+ id: n.id,
8
+ type: n.type,
9
+ position: n.position,
10
+ isValidConnection: n.isValidConnection,
11
+ style: n.style,
12
+ className: e("w-2 h-2 bg-slate-400 border border-white rounded-full transition-transform hover:scale-125 z-10", n.position === i.Left && "!-left-1", n.position === i.Right && "!-right-1", n.position === i.Top && "!-top-1", n.position === i.Bottom && "!-bottom-1", n.className)
13
+ }, n.id || `${n.type}-${n.position}`);
14
+ return /* @__PURE__ */ n("div", {
15
+ className: e("rft-flow-node relative min-w-[180px] bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-xl shadow-sm transition-all", o && "ring-2 ring-primary border-primary shadow-md scale-[1.02]"),
16
+ children: [
17
+ a.handles && a.handles.length > 0 ? a.handles.map(s) : [{
18
+ type: "target",
19
+ position: i.Left
20
+ }, {
21
+ type: "source",
22
+ position: i.Right
23
+ }].map(s),
24
+ /* @__PURE__ */ n("div", {
25
+ className: "px-3 py-2 border-b border-slate-100 dark:border-slate-800 bg-slate-50/50 dark:bg-slate-800/50 rounded-t-xl flex items-center justify-between gap-2",
26
+ children: [/* @__PURE__ */ n("div", {
27
+ className: "flex items-center gap-2 overflow-hidden",
28
+ children: [a.icon && /* @__PURE__ */ t("span", {
29
+ className: "text-slate-400 shrink-0",
30
+ children: a.icon
31
+ }), /* @__PURE__ */ t("span", {
32
+ className: "text-[10px] font-bold text-slate-600 dark:text-slate-300 uppercase tracking-wider truncate",
33
+ children: a.label
34
+ })]
35
+ }), a.status && /* @__PURE__ */ t("div", { className: e("h-1.5 w-1.5 rounded-full shrink-0", a.status === "running" && "bg-blue-500 animate-pulse", a.status === "success" && "bg-green-500", a.status === "error" && "bg-red-500", a.status === "idle" && "bg-slate-300") })]
36
+ }),
37
+ /* @__PURE__ */ n("div", {
38
+ className: "p-3",
39
+ children: [a.description && /* @__PURE__ */ t("p", {
40
+ className: "text-[10px] text-slate-500 dark:text-slate-400 leading-tight",
41
+ children: a.description
42
+ }), a.children && /* @__PURE__ */ t("div", {
43
+ className: "mt-2",
44
+ children: a.children
45
+ })]
46
+ })
47
+ ]
48
+ });
49
+ }
50
+ //#endregion
51
+ export { a as BaseNode };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../../_virtual/_rolldown/runtime.cjs`);let t=require(`sonner`),n=require(`react/jsx-runtime`),r=require(`zod`);r=e.__toESM(r);let i=require(`@hookform/resolvers/zod`),a=require(`react-hook-form`);function o({entity:e,defaultValues:r,Render:o,onSubmit:s,resetOnSubmit:c=!0}){let l=(0,a.useForm)({resolver:(0,i.zodResolver)(e),defaultValues:r});async function u(e){t.toast.info(`Procesando Solicitud...`);try{await s(e),t.toast.success(`Solicitud Procesada Exitosamente`),c&&l.reset(r)}catch{t.toast.error(`Error al procesar la solicitud`)}}return(0,n.jsx)(`form`,{onSubmit:l.handleSubmit(u),children:(0,n.jsx)(o,{form:l})})}exports.FormComponent=o;
@@ -0,0 +1,13 @@
1
+ import { default as z } from 'zod';
2
+ import { FieldValues, UseFormReturn, DefaultValues } from 'react-hook-form';
3
+ export interface FormInputProps<T extends FieldValues = any> {
4
+ form: UseFormReturn<T>;
5
+ }
6
+ export interface FormComponentProps<T extends FieldValues = any> {
7
+ entity: z.ZodType<T>;
8
+ defaultValues: DefaultValues<T>;
9
+ Render: React.FC<FormInputProps<T>>;
10
+ onSubmit(data: T): Promise<void>;
11
+ resetOnSubmit?: boolean;
12
+ }
13
+ export declare function FormComponent<T extends FieldValues>({ entity, defaultValues, Render, onSubmit, resetOnSubmit }: FormComponentProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { toast as e } from "sonner";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import "zod";
4
+ import { zodResolver as n } from "@hookform/resolvers/zod";
5
+ import { useForm as r } from "react-hook-form";
6
+ //#region src/shared/custom/form/form.component.tsx
7
+ function i({ entity: i, defaultValues: a, Render: o, onSubmit: s, resetOnSubmit: c = !0 }) {
8
+ let l = r({
9
+ resolver: n(i),
10
+ defaultValues: a
11
+ });
12
+ async function u(t) {
13
+ e.info("Procesando Solicitud...");
14
+ try {
15
+ await s(t), e.success("Solicitud Procesada Exitosamente"), c && l.reset(a);
16
+ } catch {
17
+ e.error("Error al procesar la solicitud");
18
+ }
19
+ }
20
+ return /* @__PURE__ */ t("form", {
21
+ onSubmit: l.handleSubmit(u),
22
+ children: /* @__PURE__ */ t(o, { form: l })
23
+ });
24
+ }
25
+ //#endregion
26
+ export { i as FormComponent };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./form.component.cjs`);exports.FormComponent=e.FormComponent;
@@ -0,0 +1,17 @@
1
+ export * from './form.component';
2
+ export * from './inputs/text.input';
3
+ export * from './inputs/email.input';
4
+ export * from './inputs/secret.input';
5
+ export * from './inputs/textarea.input';
6
+ export * from './inputs/checkbox.input';
7
+ export * from './inputs/checkbox-inline.input';
8
+ export * from './inputs/color.input';
9
+ export * from './inputs/combobox.input';
10
+ export * from './inputs/async-select.input';
11
+ export * from './inputs/list-select.input';
12
+ export * from './inputs/code.input';
13
+ export * from './inputs/file.input';
14
+ export * from './inputs/select.input';
15
+ export * from './inputs/image.input';
16
+ export * from './layout/form-dialog-layout';
17
+ export * from './layout/form-tab-layout';
@@ -0,0 +1,2 @@
1
+ import { FormComponent as e } from "./form.component.esm";
2
+ export { e as FormComponent };
@@ -0,0 +1 @@
1
+ const e=require(`../../../../_virtual/_rolldown/runtime.cjs`),t=require(`../../../ui/field.cjs`),n=require(`../../hover/hover.cjs`),r=require(`../../../ui/combobox.cjs`);let i=require(`react/jsx-runtime`),a=require(`react`);a=e.__toESM(a);let o=require(`lucide-react`),s=require(`react-hook-form`);function c({form:e,name:c,label:l,helper:u,placeholder:d,service:f,itemFactory:p,keyExtractor:m,multiple:h=!1}){let[g,_]=a.useState([]),[v,y]=a.useState(!0);return a.useEffect(()=>{let e=!0;return(async()=>{y(!0);try{let t=await f();e&&_(t)}finally{e&&y(!1)}})(),()=>{e=!1}},[f]),(0,i.jsx)(s.Controller,{control:e.control,name:c,render:({field:{value:e,onChange:a},fieldState:s})=>{let c=h?Array.isArray(e)?e:[]:e||``,f=r.useComboboxAnchor();return(0,i.jsxs)(t.Field,{"data-invalid":s.invalid,children:[(0,i.jsxs)(`div`,{className:`flex items-center gap-2 mb-2`,children:[l&&(0,i.jsx)(t.FieldLabel,{className:`text-sm font-medium`,children:l}),u&&(0,i.jsx)(n.Hover,{children:u}),v&&(0,i.jsx)(o.Loader2,{className:`size-3 animate-spin opacity-50`})]}),(0,i.jsxs)(r.Combobox,{multiple:h,value:c,onValueChange:a,items:g,disabled:v,children:[h?(0,i.jsx)(`div`,{ref:f,className:`w-full`,children:(0,i.jsxs)(r.ComboboxChips,{className:`bg-background border-border w-full min-h-10`,children:[c.map(e=>{let t=g.find(t=>m(t)===e);return(0,i.jsx)(r.ComboboxChip,{value:e,children:t?p(t):e},e)}),(0,i.jsx)(r.ComboboxChipsInput,{placeholder:c.length>0?``:v?`Cargando...`:d||`Seleccionar...`})]})}):(0,i.jsx)(`div`,{ref:f,className:`relative group/combobox w-full`,children:(0,i.jsx)(r.ComboboxInput,{placeholder:v?`Cargando...`:d||`Seleccionar...`,className:`w-full bg-background border-border flex flex-row items-center`})}),(0,i.jsxs)(r.ComboboxContent,{anchor:f.current,className:`bg-card border-border shadow-matte`,children:[(0,i.jsx)(r.ComboboxEmpty,{children:`No se encontraron resultados`}),(0,i.jsx)(r.ComboboxList,{className:`custom-scrollbar`,children:g.map(e=>(0,i.jsx)(r.ComboboxItem,{value:m(e),children:p(e)},m(e)))})]})]}),s.invalid&&s.error&&(0,i.jsx)(t.FieldError,{errors:[s.error],className:`mt-2`})]})}})}module.exports=c;
@@ -0,0 +1,18 @@
1
+ import { FieldValues, Path } from 'react-hook-form';
2
+ import { FormInputProps } from '../form.component';
3
+ import * as React from "react";
4
+ interface AsyncComboboxInputProps<T, TFieldValues extends FieldValues> extends FormInputProps<TFieldValues> {
5
+ name: Path<TFieldValues>;
6
+ label?: string;
7
+ helper?: string;
8
+ placeholder?: string;
9
+ service: () => Promise<T[]>;
10
+ itemFactory: (item: T) => React.ReactNode;
11
+ keyExtractor: (item: T) => string;
12
+ multiple?: boolean;
13
+ }
14
+ /**
15
+ * Input de Combobox con carga asíncrona de datos.
16
+ */
17
+ export default function AsyncComboboxInput<T, TFieldValues extends FieldValues>({ form, name, label, helper, placeholder, service, itemFactory, keyExtractor, multiple, }: AsyncComboboxInputProps<T, TFieldValues>): import("react/jsx-runtime").JSX.Element;
18
+ export {};