@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.
- package/LICENSE.md +5 -0
- package/README.md +75 -0
- package/dist/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/action-processor.d.ts +2 -0
- package/dist/app/config/sqlite.registry.cjs +1 -0
- package/dist/app/config/sqlite.registry.esm +37 -0
- package/dist/app.config.d.ts +1 -0
- package/dist/async-combobox.input.d.ts +4 -0
- package/dist/async-multi-select.input.d.ts +4 -0
- package/dist/async-select.input.d.ts +4 -0
- package/dist/audit-view.d.ts +2 -0
- package/dist/back-button.action.d.ts +6 -0
- package/dist/badge.d.ts +2 -0
- package/dist/base.connector.d.ts +4 -0
- package/dist/base.entity.d.ts +2 -0
- package/dist/base.node.d.ts +2 -0
- package/dist/base.service.d.ts +4 -0
- package/dist/breadcrumb.d.ts +2 -0
- package/dist/build.router.d.ts +4 -0
- package/dist/builder-device.guard.d.ts +2 -0
- package/dist/builder.d.ts +2 -0
- package/dist/button.d.ts +2 -0
- package/dist/calendar.d.ts +2 -0
- package/dist/canvas-view.layout.d.ts +2 -0
- package/dist/card.d.ts +2 -0
- package/dist/checkbox-inline.input.d.ts +4 -0
- package/dist/checkbox.d.ts +2 -0
- package/dist/checkbox.input.d.ts +4 -0
- package/dist/code.input.d.ts +4 -0
- package/dist/color.input.d.ts +4 -0
- package/dist/combobox.d.ts +2 -0
- package/dist/combobox.input.d.ts +4 -0
- package/dist/command.d.ts +2 -0
- package/dist/component.factory.d.ts +4 -0
- package/dist/component.guard.d.ts +2 -0
- package/dist/components.registry.d.ts +2 -0
- package/dist/context.guard.d.ts +2 -0
- package/dist/context.verifier.d.ts +2 -0
- package/dist/crypto.service.d.ts +2 -0
- package/dist/dark.style.d.ts +2 -0
- package/dist/data-table.component.d.ts +2 -0
- package/dist/data-table.provider.d.ts +1 -0
- package/dist/date.input.d.ts +2 -0
- package/dist/deckgl-overlay.d.ts +2 -0
- package/dist/detail-tabs.layout.d.ts +6 -0
- package/dist/detail-view.layout.d.ts +6 -0
- package/dist/device-artifact.guard.d.ts +2 -0
- package/dist/device.guard.d.ts +2 -0
- package/dist/device.verifier.registry.d.ts +2 -0
- package/dist/dialog.d.ts +2 -0
- package/dist/dnd.provider.d.ts +2 -0
- package/dist/draggeable.d.ts +2 -0
- package/dist/droppable.d.ts +2 -0
- package/dist/droppeable.d.ts +2 -0
- package/dist/dynamic-device.guard.d.ts +2 -0
- package/dist/dynamic-icon.d.ts +6 -0
- package/dist/email.input.d.ts +4 -0
- package/dist/enum.verifier.d.ts +2 -0
- package/dist/env.manager.d.ts +2 -0
- package/dist/feedback.layout.d.ts +2 -0
- package/dist/field.d.ts +2 -0
- package/dist/file.input.d.ts +4 -0
- package/dist/flow-canvas.d.ts +2 -0
- package/dist/flow.renderer.d.ts +2 -0
- package/dist/flow.types.d.ts +1 -0
- package/dist/form-dialog-layout.d.ts +4 -0
- package/dist/form-tab-layout.d.ts +4 -0
- package/dist/form.component.d.ts +2 -0
- package/dist/grid.layout.d.ts +2 -0
- package/dist/guard.d.ts +2 -0
- package/dist/hover.d.ts +2 -0
- package/dist/icon-box.d.ts +2 -0
- package/dist/icon-button.d.ts +2 -0
- package/dist/image.input.d.ts +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/indexeddb.service.d.ts +6 -0
- package/dist/input-group.d.ts +2 -0
- package/dist/input.d.ts +2 -0
- package/dist/interceptor.builder.d.ts +2 -0
- package/dist/label.d.ts +2 -0
- package/dist/language-toggle.d.ts +2 -0
- package/dist/list-select.input.d.ts +4 -0
- package/dist/logger.d.ts +2 -0
- package/dist/main.connector.d.ts +2 -0
- package/dist/main.service.d.ts +6 -0
- package/dist/maps.renderer.d.ts +4 -0
- package/dist/marker.factory.d.ts +2 -0
- package/dist/marker.guard.d.ts +2 -0
- package/dist/markers.meta.d.ts +1 -0
- package/dist/modules/actions/entities/action.entity.cjs +1 -0
- package/dist/modules/actions/entities/action.entity.esm +139 -0
- package/dist/modules/artifacts/entities/artifact.entity.cjs +1 -0
- package/dist/modules/artifacts/entities/artifact.entity.esm +82 -0
- package/dist/modules/integrations/entities/integration.entity.cjs +1 -0
- package/dist/modules/integrations/entities/integration.entity.esm +75 -0
- package/dist/modules/inventory/entities/category.entity.cjs +1 -0
- package/dist/modules/inventory/entities/category.entity.esm +50 -0
- package/dist/modules/inventory/entities/inventory-item.entity.cjs +1 -0
- package/dist/modules/inventory/entities/inventory-item.entity.esm +68 -0
- package/dist/modules/inventory/entities/product-item.entity.cjs +1 -0
- package/dist/modules/inventory/entities/product-item.entity.esm +69 -0
- package/dist/modules/inventory/entities/zone.entity.cjs +1 -0
- package/dist/modules/inventory/entities/zone.entity.esm +50 -0
- package/dist/modules/memberships/entities/membership.entity.cjs +1 -0
- package/dist/modules/memberships/entities/membership.entity.esm +53 -0
- package/dist/modules/organizations/entities/organization.entity.cjs +1 -0
- package/dist/modules/organizations/entities/organization.entity.esm +75 -0
- package/dist/modules/projects/entities/project.entity.cjs +1 -0
- package/dist/modules/projects/entities/project.entity.esm +100 -0
- package/dist/modules/test/entities/experiment.entity.cjs +1 -0
- package/dist/modules/test/entities/experiment.entity.esm +71 -0
- package/dist/modules/tickets/entities/ticket.entity.cjs +1 -0
- package/dist/modules/tickets/entities/ticket.entity.esm +92 -0
- package/dist/modules/tools/entities/tool.entity.cjs +1 -0
- package/dist/modules/tools/entities/tool.entity.esm +129 -0
- package/dist/modules/users/entities/user-role.enum.cjs +1 -0
- package/dist/modules/users/entities/user-role.enum.esm +6 -0
- package/dist/modules/users/entities/user.entity.cjs +1 -0
- package/dist/modules/users/entities/user.entity.esm +88 -0
- package/dist/nfc.service.d.ts +6 -0
- package/dist/nosql.repo.d.ts +2 -0
- package/dist/nosql.repo.service.d.ts +4 -0
- package/dist/packages/capacitor/app.config.cjs +1 -0
- package/dist/packages/capacitor/app.config.d.ts +1 -0
- package/dist/packages/capacitor/app.config.esm +7 -0
- package/dist/packages/crypto/crypto.service.cjs +1 -0
- package/dist/packages/crypto/crypto.service.d.ts +6 -0
- package/dist/packages/crypto/crypto.service.esm +17 -0
- package/dist/packages/crypto/index.cjs +1 -0
- package/dist/packages/crypto/index.d.ts +1 -0
- package/dist/packages/crypto/index.esm +2 -0
- package/dist/packages/dnd/dnd.provider.cjs +1 -0
- package/dist/packages/dnd/dnd.provider.d.ts +3 -0
- package/dist/packages/dnd/dnd.provider.esm +8 -0
- package/dist/packages/dnd/draggeable.cjs +1 -0
- package/dist/packages/dnd/draggeable.d.ts +4 -0
- package/dist/packages/dnd/draggeable.esm +12 -0
- package/dist/packages/dnd/droppable.cjs +1 -0
- package/dist/packages/dnd/droppable.d.ts +8 -0
- package/dist/packages/dnd/droppable.esm +14 -0
- package/dist/packages/dnd/droppeable.cjs +1 -0
- package/dist/packages/dnd/droppeable.d.ts +5 -0
- package/dist/packages/dnd/droppeable.esm +13 -0
- package/dist/packages/dnd/sortable.cjs +1 -0
- package/dist/packages/dnd/sortable.d.ts +11 -0
- package/dist/packages/dnd/sortable.esm +18 -0
- package/dist/packages/env/env.manager.cjs +1 -0
- package/dist/packages/env/env.manager.d.ts +11 -0
- package/dist/packages/env/env.manager.esm +69 -0
- package/dist/packages/env/index.cjs +1 -0
- package/dist/packages/env/index.d.ts +1 -0
- package/dist/packages/env/index.esm +2 -0
- package/dist/packages/flow/flow.renderer.cjs +1 -0
- package/dist/packages/flow/flow.renderer.d.ts +13 -0
- package/dist/packages/flow/flow.renderer.esm +50 -0
- package/dist/packages/flow/flow.types.cjs +0 -0
- package/dist/packages/flow/flow.types.d.ts +30 -0
- package/dist/packages/flow/flow.types.esm +0 -0
- package/dist/packages/formatters/qr-code/qr.encoder.service.cjs +1 -0
- package/dist/packages/formatters/qr-code/qr.encoder.service.d.ts +5 -0
- package/dist/packages/formatters/qr-code/qr.encoder.service.esm +17 -0
- package/dist/packages/formatters/qr-code/qr.renderer.cjs +1 -0
- package/dist/packages/formatters/qr-code/qr.renderer.d.ts +3 -0
- package/dist/packages/formatters/qr-code/qr.renderer.esm +16 -0
- package/dist/packages/formatters/text-code/text-coder.service.cjs +1 -0
- package/dist/packages/formatters/text-code/text-coder.service.d.ts +9 -0
- package/dist/packages/formatters/text-code/text-coder.service.esm +36 -0
- package/dist/packages/i18n/index.cjs +1 -0
- package/dist/packages/i18n/index.d.ts +10 -0
- package/dist/packages/i18n/index.esm +18 -0
- package/dist/packages/i18n/language-toggle.cjs +1 -0
- package/dist/packages/i18n/language-toggle.d.ts +9 -0
- package/dist/packages/i18n/language-toggle.esm +73 -0
- package/dist/packages/indexeddb/builder.cjs +1 -0
- package/dist/packages/indexeddb/builder.d.ts +13 -0
- package/dist/packages/indexeddb/builder.esm +35 -0
- package/dist/packages/indexeddb/index.cjs +1 -0
- package/dist/packages/indexeddb/index.d.ts +5 -0
- package/dist/packages/indexeddb/index.esm +5 -0
- package/dist/packages/indexeddb/indexeddb.service.cjs +1 -0
- package/dist/packages/indexeddb/indexeddb.service.d.ts +21 -0
- package/dist/packages/indexeddb/indexeddb.service.esm +59 -0
- package/dist/packages/indexeddb/nosql.repo.cjs +1 -0
- package/dist/packages/indexeddb/nosql.repo.d.ts +33 -0
- package/dist/packages/indexeddb/nosql.repo.esm +69 -0
- package/dist/packages/indexeddb/nosql.repo.service.cjs +1 -0
- package/dist/packages/indexeddb/nosql.repo.service.d.ts +46 -0
- package/dist/packages/indexeddb/nosql.repo.service.esm +87 -0
- package/dist/packages/indexeddb/registry.cjs +1 -0
- package/dist/packages/indexeddb/registry.d.ts +21 -0
- package/dist/packages/indexeddb/registry.esm +22 -0
- package/dist/packages/indexeddb/types.cjs +0 -0
- package/dist/packages/indexeddb/types.d.ts +33 -0
- package/dist/packages/indexeddb/types.esm +0 -0
- package/dist/packages/logger/index.cjs +1 -0
- package/dist/packages/logger/index.d.ts +2 -0
- package/dist/packages/logger/index.esm +3 -0
- package/dist/packages/logger/logger.cjs +1 -0
- package/dist/packages/logger/logger.d.ts +137 -0
- package/dist/packages/logger/logger.esm +186 -0
- package/dist/packages/logger/registry.cjs +1 -0
- package/dist/packages/logger/registry.d.ts +9 -0
- package/dist/packages/logger/registry.esm +17 -0
- package/dist/packages/maps/deckgl-overlay.cjs +1 -0
- package/dist/packages/maps/deckgl-overlay.d.ts +9 -0
- package/dist/packages/maps/deckgl-overlay.esm +12 -0
- package/dist/packages/maps/maps.renderer.cjs +1 -0
- package/dist/packages/maps/maps.renderer.d.ts +19 -0
- package/dist/packages/maps/maps.renderer.esm +25 -0
- package/dist/packages/maps/markers/marker.factory.cjs +1 -0
- package/dist/packages/maps/markers/marker.factory.d.ts +8 -0
- package/dist/packages/maps/markers/marker.factory.esm +58 -0
- package/dist/packages/maps/markers/marker.guard.cjs +1 -0
- package/dist/packages/maps/markers/marker.guard.d.ts +22 -0
- package/dist/packages/maps/markers/marker.guard.esm +37 -0
- package/dist/packages/maps/markers/markers.meta.cjs +0 -0
- package/dist/packages/maps/markers/markers.meta.d.ts +12 -0
- package/dist/packages/maps/markers/markers.meta.esm +0 -0
- package/dist/packages/maps/styles/dark.style.cjs +1 -0
- package/dist/packages/maps/styles/dark.style.d.ts +1 -0
- package/dist/packages/maps/styles/dark.style.esm +93 -0
- package/dist/packages/nfc/nfc.service.cjs +1 -0
- package/dist/packages/nfc/nfc.service.d.ts +41 -0
- package/dist/packages/nfc/nfc.service.esm +104 -0
- package/dist/packages/requests/axios/base.connector.cjs +1 -0
- package/dist/packages/requests/axios/base.connector.d.ts +37 -0
- package/dist/packages/requests/axios/base.connector.esm +25 -0
- package/dist/packages/requests/axios/base.service.cjs +1 -0
- package/dist/packages/requests/axios/base.service.d.ts +41 -0
- package/dist/packages/requests/axios/base.service.esm +11 -0
- package/dist/packages/requests/axios/interceptor.builder.cjs +1 -0
- package/dist/packages/requests/axios/interceptor.builder.d.ts +26 -0
- package/dist/packages/requests/axios/interceptor.builder.esm +20 -0
- package/dist/packages/router/build.router.cjs +1 -0
- package/dist/packages/router/build.router.d.ts +6 -0
- package/dist/packages/router/build.router.esm +9 -0
- package/dist/packages/router/route.builder.cjs +1 -0
- package/dist/packages/router/route.builder.d.ts +46 -0
- package/dist/packages/router/route.builder.esm +50 -0
- package/dist/packages/scanner/scanner.formats.cjs +1 -0
- package/dist/packages/scanner/scanner.formats.d.ts +51 -0
- package/dist/packages/scanner/scanner.formats.esm +96 -0
- package/dist/packages/scanner/scanner.service.cjs +1 -0
- package/dist/packages/scanner/scanner.service.d.ts +32 -0
- package/dist/packages/scanner/scanner.service.esm +32 -0
- package/dist/packages/sheets/index.cjs +1 -0
- package/dist/packages/sheets/index.d.ts +2 -0
- package/dist/packages/sheets/index.esm +3 -0
- package/dist/packages/sheets/sheets.connector.cjs +1 -0
- package/dist/packages/sheets/sheets.connector.d.ts +6 -0
- package/dist/packages/sheets/sheets.connector.esm +21 -0
- package/dist/packages/sheets/sheets.service.cjs +1 -0
- package/dist/packages/sheets/sheets.service.d.ts +21 -0
- package/dist/packages/sheets/sheets.service.esm +38 -0
- package/dist/packages/sqlite/base/base.entity.cjs +1 -0
- package/dist/packages/sqlite/base/base.entity.d.ts +5 -0
- package/dist/packages/sqlite/base/base.entity.esm +41 -0
- package/dist/packages/sqlite/repo.service.cjs +1 -0
- package/dist/packages/sqlite/repo.service.d.ts +22 -0
- package/dist/packages/sqlite/repo.service.esm +52 -0
- package/dist/packages/sqlite/sqlite.service.cjs +1 -0
- package/dist/packages/sqlite/sqlite.service.d.ts +40 -0
- package/dist/packages/sqlite/sqlite.service.esm +77 -0
- package/dist/packages/sqlite/templates/test.entity.cjs +1 -0
- package/dist/packages/sqlite/templates/test.entity.d.ts +6 -0
- package/dist/packages/sqlite/templates/test.entity.esm +62 -0
- package/dist/packages/sqlite/templates/test.repo.service.cjs +1 -0
- package/dist/packages/sqlite/templates/test.repo.service.d.ts +8 -0
- package/dist/packages/sqlite/templates/test.repo.service.esm +26 -0
- package/dist/packages/stores/storage.service.cjs +1 -0
- package/dist/packages/stores/storage.service.d.ts +5 -0
- package/dist/packages/stores/storage.service.esm +22 -0
- package/dist/packages/stores/store.hook.cjs +1 -0
- package/dist/packages/stores/store.hook.d.ts +23 -0
- package/dist/packages/stores/store.hook.esm +22 -0
- package/dist/packages/stores/store.service.cjs +1 -0
- package/dist/packages/stores/store.service.d.ts +12 -0
- package/dist/packages/stores/store.service.esm +48 -0
- package/dist/packages/theme/theme-builder.cjs +1 -0
- package/dist/packages/theme/theme-builder.d.ts +19 -0
- package/dist/packages/theme/theme-builder.esm +25 -0
- package/dist/packages/theme/theme-provider.cjs +1 -0
- package/dist/packages/theme/theme-provider.d.ts +7 -0
- package/dist/packages/theme/theme-provider.esm +17 -0
- package/dist/packages/theme/theme-toggle.cjs +1 -0
- package/dist/packages/theme/theme-toggle.d.ts +6 -0
- package/dist/packages/theme/theme-toggle.esm +33 -0
- package/dist/packages/w3/tron/index.cjs +1 -0
- package/dist/packages/w3/tron/index.d.ts +4 -0
- package/dist/packages/w3/tron/index.esm +4 -0
- package/dist/packages/w3/tron/tron-assets.service.cjs +1 -0
- package/dist/packages/w3/tron/tron-assets.service.d.ts +38 -0
- package/dist/packages/w3/tron/tron-assets.service.esm +116 -0
- package/dist/packages/w3/tron/tron-wallet.entity.cjs +1 -0
- package/dist/packages/w3/tron/tron-wallet.entity.d.ts +15 -0
- package/dist/packages/w3/tron/tron-wallet.entity.esm +88 -0
- package/dist/packages/w3/tron/tron-wallet.repo.cjs +1 -0
- package/dist/packages/w3/tron/tron-wallet.repo.d.ts +30 -0
- package/dist/packages/w3/tron/tron-wallet.repo.esm +52 -0
- package/dist/packages/w3/tron/tron.service.cjs +1 -0
- package/dist/packages/w3/tron/tron.service.d.ts +124 -0
- package/dist/packages/w3/tron/tron.service.esm +406 -0
- package/dist/packages/w3/tron/tron.types.cjs +0 -0
- package/dist/packages/w3/tron/tron.types.d.ts +129 -0
- package/dist/packages/w3/tron/tron.types.esm +0 -0
- package/dist/page-container.d.ts +2 -0
- package/dist/popover.d.ts +2 -0
- package/dist/qr.encoder.service.d.ts +4 -0
- package/dist/qr.renderer.d.ts +4 -0
- package/dist/registry.d.ts +2 -0
- package/dist/repo.service.d.ts +4 -0
- package/dist/repository.contract.d.ts +1 -0
- package/dist/route.builder.d.ts +4 -0
- package/dist/scanner.formats.d.ts +2 -0
- package/dist/scanner.service.d.ts +2 -0
- package/dist/scroll-area.d.ts +2 -0
- package/dist/secret.input.d.ts +4 -0
- package/dist/select.d.ts +2 -0
- package/dist/select.input.d.ts +4 -0
- package/dist/separator.d.ts +2 -0
- package/dist/shared/assets/social-icons.cjs +1 -0
- package/dist/shared/assets/social-icons.d.ts +2 -0
- package/dist/shared/assets/social-icons.esm +30 -0
- package/dist/shared/constants/connectors/main.connector.cjs +1 -0
- package/dist/shared/constants/connectors/main.connector.d.ts +8 -0
- package/dist/shared/constants/connectors/main.connector.esm +38 -0
- package/dist/shared/constants/services/main.service.cjs +1 -0
- package/dist/shared/constants/services/main.service.d.ts +7 -0
- package/dist/shared/constants/services/main.service.esm +26 -0
- package/dist/shared/contracts/repository.contract.cjs +0 -0
- package/dist/shared/contracts/repository.contract.d.ts +26 -0
- package/dist/shared/contracts/repository.contract.esm +0 -0
- package/dist/shared/custom/actions/back-button.action.cjs +1 -0
- package/dist/shared/custom/actions/back-button.action.d.ts +13 -0
- package/dist/shared/custom/actions/back-button.action.esm +20 -0
- package/dist/shared/custom/audit/audit-view.cjs +1 -0
- package/dist/shared/custom/audit/audit-view.d.ts +46 -0
- package/dist/shared/custom/audit/audit-view.esm +73 -0
- package/dist/shared/custom/confirm/use-confirm.cjs +1 -0
- package/dist/shared/custom/confirm/use-confirm.d.ts +15 -0
- package/dist/shared/custom/confirm/use-confirm.esm +57 -0
- package/dist/shared/custom/data-table/data-table.component.cjs +1 -0
- package/dist/shared/custom/data-table/data-table.component.d.ts +9 -0
- package/dist/shared/custom/data-table/data-table.component.esm +26 -0
- package/dist/shared/custom/data-table/data-table.provider.cjs +0 -0
- package/dist/shared/custom/data-table/data-table.provider.d.ts +1 -0
- package/dist/shared/custom/data-table/data-table.provider.esm +0 -0
- package/dist/shared/custom/flow/flow-canvas.cjs +1 -0
- package/dist/shared/custom/flow/flow-canvas.d.ts +10 -0
- package/dist/shared/custom/flow/flow-canvas.esm +23 -0
- package/dist/shared/custom/flow/nodes/base.node.cjs +1 -0
- package/dist/shared/custom/flow/nodes/base.node.d.ts +9 -0
- package/dist/shared/custom/flow/nodes/base.node.esm +51 -0
- package/dist/shared/custom/form/form.component.cjs +1 -0
- package/dist/shared/custom/form/form.component.d.ts +13 -0
- package/dist/shared/custom/form/form.component.esm +26 -0
- package/dist/shared/custom/form/index.cjs +1 -0
- package/dist/shared/custom/form/index.d.ts +17 -0
- package/dist/shared/custom/form/index.esm +2 -0
- package/dist/shared/custom/form/inputs/async-combobox.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/async-combobox.input.d.ts +18 -0
- package/dist/shared/custom/form/inputs/async-combobox.input.esm +91 -0
- package/dist/shared/custom/form/inputs/async-multi-select.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/async-multi-select.input.d.ts +20 -0
- package/dist/shared/custom/form/inputs/async-multi-select.input.esm +127 -0
- package/dist/shared/custom/form/inputs/async-select.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/async-select.input.d.ts +15 -0
- package/dist/shared/custom/form/inputs/async-select.input.esm +71 -0
- package/dist/shared/custom/form/inputs/checkbox-inline.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/checkbox-inline.input.d.ts +15 -0
- package/dist/shared/custom/form/inputs/checkbox-inline.input.esm +41 -0
- package/dist/shared/custom/form/inputs/checkbox.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/checkbox.input.d.ts +21 -0
- package/dist/shared/custom/form/inputs/checkbox.input.esm +50 -0
- package/dist/shared/custom/form/inputs/code.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/code.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/code.input.esm +58 -0
- package/dist/shared/custom/form/inputs/color.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/color.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/color.input.esm +47 -0
- package/dist/shared/custom/form/inputs/combobox.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/combobox.input.d.ts +18 -0
- package/dist/shared/custom/form/inputs/combobox.input.esm +73 -0
- package/dist/shared/custom/form/inputs/date.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/date.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/date.input.esm +52 -0
- package/dist/shared/custom/form/inputs/email.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/email.input.d.ts +12 -0
- package/dist/shared/custom/form/inputs/email.input.esm +47 -0
- package/dist/shared/custom/form/inputs/file.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/file.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/file.input.esm +95 -0
- package/dist/shared/custom/form/inputs/image.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/image.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/image.input.esm +90 -0
- package/dist/shared/custom/form/inputs/list-select.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/list-select.input.d.ts +17 -0
- package/dist/shared/custom/form/inputs/list-select.input.esm +53 -0
- package/dist/shared/custom/form/inputs/secret.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/secret.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/secret.input.esm +53 -0
- package/dist/shared/custom/form/inputs/select.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/select.input.d.ts +17 -0
- package/dist/shared/custom/form/inputs/select.input.esm +44 -0
- package/dist/shared/custom/form/inputs/tags.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/tags.input.d.ts +16 -0
- package/dist/shared/custom/form/inputs/tags.input.esm +80 -0
- package/dist/shared/custom/form/inputs/text.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/text.input.d.ts +13 -0
- package/dist/shared/custom/form/inputs/text.input.esm +47 -0
- package/dist/shared/custom/form/inputs/textarea.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/textarea.input.d.ts +12 -0
- package/dist/shared/custom/form/inputs/textarea.input.esm +36 -0
- package/dist/shared/custom/form/layout/form-dialog-layout.cjs +1 -0
- package/dist/shared/custom/form/layout/form-dialog-layout.d.ts +25 -0
- package/dist/shared/custom/form/layout/form-dialog-layout.esm +37 -0
- package/dist/shared/custom/form/layout/form-tab-layout.cjs +1 -0
- package/dist/shared/custom/form/layout/form-tab-layout.d.ts +30 -0
- package/dist/shared/custom/form/layout/form-tab-layout.esm +69 -0
- package/dist/shared/custom/hover/hover.cjs +1 -0
- package/dist/shared/custom/hover/hover.d.ts +6 -0
- package/dist/shared/custom/hover/hover.esm +20 -0
- package/dist/shared/custom/layouts/canvas-view.layout.cjs +1 -0
- package/dist/shared/custom/layouts/canvas-view.layout.d.ts +18 -0
- package/dist/shared/custom/layouts/canvas-view.layout.esm +15 -0
- package/dist/shared/custom/layouts/detail-tabs.layout.cjs +1 -0
- package/dist/shared/custom/layouts/detail-tabs.layout.d.ts +27 -0
- package/dist/shared/custom/layouts/detail-tabs.layout.esm +32 -0
- package/dist/shared/custom/layouts/detail-view.layout.cjs +1 -0
- package/dist/shared/custom/layouts/detail-view.layout.d.ts +33 -0
- package/dist/shared/custom/layouts/detail-view.layout.esm +64 -0
- package/dist/shared/custom/layouts/feedback.layout.cjs +1 -0
- package/dist/shared/custom/layouts/feedback.layout.d.ts +14 -0
- package/dist/shared/custom/layouts/feedback.layout.esm +20 -0
- package/dist/shared/custom/layouts/grid.layout.cjs +1 -0
- package/dist/shared/custom/layouts/grid.layout.d.ts +38 -0
- package/dist/shared/custom/layouts/grid.layout.esm +39 -0
- package/dist/shared/custom/layouts/page-container.cjs +1 -0
- package/dist/shared/custom/layouts/page-container.d.ts +6 -0
- package/dist/shared/custom/layouts/page-container.esm +12 -0
- package/dist/shared/custom/ui/icon-box.cjs +1 -0
- package/dist/shared/custom/ui/icon-box.d.ts +12 -0
- package/dist/shared/custom/ui/icon-box.esm +21 -0
- package/dist/shared/custom/ui/typography.cjs +1 -0
- package/dist/shared/custom/ui/typography.d.ts +11 -0
- package/dist/shared/custom/ui/typography.esm +30 -0
- package/dist/shared/hooks/use-device.cjs +1 -0
- package/dist/shared/hooks/use-device.d.ts +10 -0
- package/dist/shared/hooks/use-device.esm +37 -0
- package/dist/shared/hooks/use-i18n.cjs +1 -0
- package/dist/shared/hooks/use-i18n.d.ts +10 -0
- package/dist/shared/hooks/use-i18n.esm +15 -0
- package/dist/shared/hooks/use-mobile.cjs +1 -0
- package/dist/shared/hooks/use-mobile.d.ts +1 -0
- package/dist/shared/hooks/use-mobile.esm +14 -0
- package/dist/shared/lib/utils.cjs +1 -0
- package/dist/shared/lib/utils.d.ts +2 -0
- package/dist/shared/lib/utils.esm +8 -0
- package/dist/shared/logic/action/action-processor.cjs +1 -0
- package/dist/shared/logic/action/action-processor.d.ts +86 -0
- package/dist/shared/logic/action/action-processor.esm +30 -0
- package/dist/shared/logic/components/components.registry.cjs +1 -0
- package/dist/shared/logic/components/components.registry.d.ts +16 -0
- package/dist/shared/logic/components/components.registry.esm +26 -0
- package/dist/shared/logic/events/startable.cjs +1 -0
- package/dist/shared/logic/events/startable.d.ts +7 -0
- package/dist/shared/logic/events/startable.esm +32 -0
- package/dist/shared/logic/events/use-on-start.hook.cjs +1 -0
- package/dist/shared/logic/events/use-on-start.hook.d.ts +12 -0
- package/dist/shared/logic/events/use-on-start.hook.esm +15 -0
- package/dist/shared/logic/factory/component.factory.cjs +1 -0
- package/dist/shared/logic/factory/component.factory.d.ts +9 -0
- package/dist/shared/logic/factory/component.factory.esm +28 -0
- package/dist/shared/logic/guards/builder-device.guard.cjs +1 -0
- package/dist/shared/logic/guards/builder-device.guard.d.ts +5 -0
- package/dist/shared/logic/guards/builder-device.guard.esm +10 -0
- package/dist/shared/logic/guards/component.guard.cjs +1 -0
- package/dist/shared/logic/guards/component.guard.d.ts +5 -0
- package/dist/shared/logic/guards/component.guard.esm +13 -0
- package/dist/shared/logic/guards/context.guard.cjs +1 -0
- package/dist/shared/logic/guards/context.guard.d.ts +13 -0
- package/dist/shared/logic/guards/context.guard.esm +9 -0
- package/dist/shared/logic/guards/device-artifact.guard.cjs +1 -0
- package/dist/shared/logic/guards/device-artifact.guard.d.ts +16 -0
- package/dist/shared/logic/guards/device-artifact.guard.esm +44 -0
- package/dist/shared/logic/guards/device.guard.cjs +1 -0
- package/dist/shared/logic/guards/device.guard.d.ts +17 -0
- package/dist/shared/logic/guards/device.guard.esm +40 -0
- package/dist/shared/logic/guards/dynamic-device.guard.cjs +1 -0
- package/dist/shared/logic/guards/dynamic-device.guard.d.ts +5 -0
- package/dist/shared/logic/guards/dynamic-device.guard.esm +10 -0
- package/dist/shared/logic/guards/guard.cjs +1 -0
- package/dist/shared/logic/guards/guard.d.ts +24 -0
- package/dist/shared/logic/guards/guard.esm +18 -0
- package/dist/shared/logic/service/base.service.cjs +1 -0
- package/dist/shared/logic/service/base.service.d.ts +3 -0
- package/dist/shared/logic/service/base.service.esm +5 -0
- package/dist/shared/logic/verifiers/context.verifier.cjs +1 -0
- package/dist/shared/logic/verifiers/context.verifier.d.ts +7 -0
- package/dist/shared/logic/verifiers/context.verifier.esm +31 -0
- package/dist/shared/logic/verifiers/device.verifier.registry.cjs +1 -0
- package/dist/shared/logic/verifiers/device.verifier.registry.d.ts +13 -0
- package/dist/shared/logic/verifiers/device.verifier.registry.esm +36 -0
- package/dist/shared/logic/verifiers/enum.verifier.cjs +1 -0
- package/dist/shared/logic/verifiers/enum.verifier.d.ts +4 -0
- package/dist/shared/logic/verifiers/enum.verifier.esm +9 -0
- package/dist/shared/logic/verifiers/value.verifier.cjs +1 -0
- package/dist/shared/logic/verifiers/value.verifier.d.ts +5 -0
- package/dist/shared/logic/verifiers/value.verifier.esm +9 -0
- package/dist/shared/ui/badge.cjs +1 -0
- package/dist/shared/ui/badge.d.ts +9 -0
- package/dist/shared/ui/badge.esm +27 -0
- package/dist/shared/ui/breadcrumb.cjs +1 -0
- package/dist/shared/ui/breadcrumb.d.ts +11 -0
- package/dist/shared/ui/breadcrumb.esm +70 -0
- package/dist/shared/ui/button.cjs +1 -0
- package/dist/shared/ui/button.d.ts +11 -0
- package/dist/shared/ui/button.esm +47 -0
- package/dist/shared/ui/calendar.cjs +1 -0
- package/dist/shared/ui/calendar.d.ts +10 -0
- package/dist/shared/ui/calendar.esm +92 -0
- package/dist/shared/ui/card.cjs +1 -0
- package/dist/shared/ui/card.d.ts +11 -0
- package/dist/shared/ui/card.esm +56 -0
- package/dist/shared/ui/checkbox.cjs +1 -0
- package/dist/shared/ui/checkbox.d.ts +4 -0
- package/dist/shared/ui/checkbox.esm +20 -0
- package/dist/shared/ui/combobox.cjs +1 -0
- package/dist/shared/ui/combobox.d.ts +24 -0
- package/dist/shared/ui/combobox.esm +163 -0
- package/dist/shared/ui/command.cjs +1 -0
- package/dist/shared/ui/command.d.ts +18 -0
- package/dist/shared/ui/command.esm +87 -0
- package/dist/shared/ui/custom/dynamic-icon.cjs +1 -0
- package/dist/shared/ui/custom/dynamic-icon.d.ts +13 -0
- package/dist/shared/ui/custom/dynamic-icon.esm +15 -0
- package/dist/shared/ui/dialog.cjs +1 -0
- package/dist/shared/ui/dialog.d.ts +17 -0
- package/dist/shared/ui/dialog.esm +95 -0
- package/dist/shared/ui/field.cjs +1 -0
- package/dist/shared/ui/field.d.ts +24 -0
- package/dist/shared/ui/field.esm +107 -0
- package/dist/shared/ui/icon-button.cjs +1 -0
- package/dist/shared/ui/icon-button.d.ts +6 -0
- package/dist/shared/ui/icon-button.esm +14 -0
- package/dist/shared/ui/index.cjs +1 -0
- package/dist/shared/ui/index.d.ts +23 -0
- package/dist/shared/ui/index.esm +24 -0
- package/dist/shared/ui/input-group.cjs +1 -0
- package/dist/shared/ui/input-group.d.ts +16 -0
- package/dist/shared/ui/input-group.esm +77 -0
- package/dist/shared/ui/input.cjs +1 -0
- package/dist/shared/ui/input.d.ts +3 -0
- package/dist/shared/ui/input.esm +14 -0
- package/dist/shared/ui/label.cjs +1 -0
- package/dist/shared/ui/label.d.ts +4 -0
- package/dist/shared/ui/label.esm +14 -0
- package/dist/shared/ui/popover.cjs +1 -0
- package/dist/shared/ui/popover.d.ts +7 -0
- package/dist/shared/ui/popover.esm +35 -0
- package/dist/shared/ui/scroll-area.cjs +1 -0
- package/dist/shared/ui/scroll-area.d.ts +5 -0
- package/dist/shared/ui/scroll-area.esm +36 -0
- package/dist/shared/ui/select.cjs +1 -0
- package/dist/shared/ui/select.d.ts +15 -0
- package/dist/shared/ui/select.esm +99 -0
- package/dist/shared/ui/separator.cjs +1 -0
- package/dist/shared/ui/separator.d.ts +4 -0
- package/dist/shared/ui/separator.esm +16 -0
- package/dist/shared/ui/sheet.cjs +1 -0
- package/dist/shared/ui/sheet.d.ts +14 -0
- package/dist/shared/ui/sheet.esm +89 -0
- package/dist/shared/ui/sidebar.cjs +1 -0
- package/dist/shared/ui/sidebar.d.ts +69 -0
- package/dist/shared/ui/sidebar.esm +348 -0
- package/dist/shared/ui/skeleton.cjs +1 -0
- package/dist/shared/ui/skeleton.d.ts +2 -0
- package/dist/shared/ui/skeleton.esm +12 -0
- package/dist/shared/ui/sonner.cjs +1 -0
- package/dist/shared/ui/sonner.d.ts +3 -0
- package/dist/shared/ui/sonner.esm +29 -0
- package/dist/shared/ui/table.cjs +1 -0
- package/dist/shared/ui/table.d.ts +10 -0
- package/dist/shared/ui/table.esm +66 -0
- package/dist/shared/ui/tabs.cjs +1 -0
- package/dist/shared/ui/tabs.d.ts +11 -0
- package/dist/shared/ui/tabs.esm +45 -0
- package/dist/shared/ui/textarea.cjs +1 -0
- package/dist/shared/ui/textarea.d.ts +3 -0
- package/dist/shared/ui/textarea.esm +13 -0
- package/dist/shared/ui/tooltip.cjs +1 -0
- package/dist/shared/ui/tooltip.d.ts +7 -0
- package/dist/shared/ui/tooltip.esm +36 -0
- package/dist/sheet.d.ts +2 -0
- package/dist/sheets.connector.d.ts +2 -0
- package/dist/sheets.service.d.ts +2 -0
- package/dist/sidebar.d.ts +2 -0
- package/dist/skeleton.d.ts +2 -0
- package/dist/social-icons.d.ts +2 -0
- package/dist/sonner.d.ts +2 -0
- package/dist/sortable.d.ts +2 -0
- package/dist/sqlite.service.d.ts +6 -0
- package/dist/startable.d.ts +4 -0
- package/dist/storage.service.d.ts +4 -0
- package/dist/store.hook.d.ts +4 -0
- package/dist/store.service.d.ts +4 -0
- package/dist/table.d.ts +2 -0
- package/dist/tabs.d.ts +2 -0
- package/dist/tags.input.d.ts +4 -0
- package/dist/test.entity.d.ts +2 -0
- package/dist/test.repo.service.d.ts +6 -0
- package/dist/text-coder.service.d.ts +2 -0
- package/dist/text.input.d.ts +4 -0
- package/dist/textarea.d.ts +2 -0
- package/dist/textarea.input.d.ts +4 -0
- package/dist/theme-builder.d.ts +2 -0
- package/dist/theme-provider.d.ts +2 -0
- package/dist/theme-toggle.d.ts +2 -0
- package/dist/tooltip.d.ts +2 -0
- package/dist/tron-assets.service.d.ts +2 -0
- package/dist/tron-wallet.entity.d.ts +2 -0
- package/dist/tron-wallet.repo.d.ts +2 -0
- package/dist/tron.service.d.ts +2 -0
- package/dist/tron.types.d.ts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/typography.d.ts +2 -0
- package/dist/use-confirm.d.ts +2 -0
- package/dist/use-device.d.ts +2 -0
- package/dist/use-i18n.d.ts +2 -0
- package/dist/use-mobile.d.ts +2 -0
- package/dist/use-on-start.hook.d.ts +2 -0
- package/dist/utils.d.ts +2 -0
- package/dist/value.verifier.d.ts +4 -0
- package/package.json +155 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.esm";
|
|
2
|
+
import { BackButtonAction as t } from "../actions/back-button.action.esm";
|
|
3
|
+
import { Typography as n } from "../ui/typography.esm";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import "react";
|
|
6
|
+
//#region src/shared/custom/layouts/detail-view.layout.tsx
|
|
7
|
+
function a({ backLabel: a, backTo: o, referenceLabel: s, icon: c, title: l, badge: u, description: d, metaBlock: f, children: p, sidebar: m, className: h }) {
|
|
8
|
+
return /* @__PURE__ */ i("div", {
|
|
9
|
+
className: e("max-w-[1200px] mx-auto p-6 space-y-8 animate-in fade-in slide-in-from-bottom-4 duration-700", h),
|
|
10
|
+
children: [
|
|
11
|
+
(a || s) && /* @__PURE__ */ i("nav", {
|
|
12
|
+
className: "flex items-center justify-between border-b pb-4 border-border/40",
|
|
13
|
+
children: [a ? /* @__PURE__ */ r(t, {
|
|
14
|
+
label: a,
|
|
15
|
+
to: o,
|
|
16
|
+
className: "hover:bg-accent/10"
|
|
17
|
+
}) : /* @__PURE__ */ r("div", {}), s && /* @__PURE__ */ r(n, {
|
|
18
|
+
variant: "extra-small",
|
|
19
|
+
className: "font-medium uppercase tracking-tighter",
|
|
20
|
+
children: s
|
|
21
|
+
})]
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ i("div", {
|
|
24
|
+
className: "flex flex-col md:flex-row items-center justify-between gap-8 bg-card/30 p-8 rounded-[2.5rem] border border-border/50 backdrop-blur-xl shadow-2xl shadow-primary/5",
|
|
25
|
+
children: [/* @__PURE__ */ i("div", {
|
|
26
|
+
className: "flex flex-col md:flex-row items-center gap-6",
|
|
27
|
+
children: [c, /* @__PURE__ */ i("div", {
|
|
28
|
+
className: "space-y-2 text-center md:text-left",
|
|
29
|
+
children: [/* @__PURE__ */ i("div", {
|
|
30
|
+
className: "flex flex-wrap items-center justify-center md:justify-start gap-3",
|
|
31
|
+
children: [/* @__PURE__ */ r(n, {
|
|
32
|
+
variant: "h1",
|
|
33
|
+
className: "font-black tracking-tight text-3xl md:text-4xl",
|
|
34
|
+
children: l
|
|
35
|
+
}), u]
|
|
36
|
+
}), typeof d == "string" ? /* @__PURE__ */ r(n, {
|
|
37
|
+
variant: "small",
|
|
38
|
+
className: "text-muted-foreground font-medium block max-w-xl leading-relaxed",
|
|
39
|
+
children: d
|
|
40
|
+
}) : d]
|
|
41
|
+
})]
|
|
42
|
+
}), f && /* @__PURE__ */ r("div", {
|
|
43
|
+
className: "flex flex-col items-center md:items-end gap-3 bg-muted/20 p-6 rounded-3xl border border-border/40 backdrop-blur-sm self-stretch md:self-auto justify-center min-w-[200px]",
|
|
44
|
+
children: f
|
|
45
|
+
})]
|
|
46
|
+
}),
|
|
47
|
+
m ? /* @__PURE__ */ i("div", {
|
|
48
|
+
className: "grid grid-cols-1 lg:grid-cols-4 gap-8 items-start",
|
|
49
|
+
children: [/* @__PURE__ */ r("div", {
|
|
50
|
+
className: "lg:col-span-3 space-y-6 w-full",
|
|
51
|
+
children: p
|
|
52
|
+
}), /* @__PURE__ */ r("div", {
|
|
53
|
+
className: "space-y-6 w-full",
|
|
54
|
+
children: m
|
|
55
|
+
})]
|
|
56
|
+
}) : /* @__PURE__ */ r("div", {
|
|
57
|
+
className: "w-full",
|
|
58
|
+
children: p
|
|
59
|
+
})
|
|
60
|
+
]
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
export { a as DetailViewLayout, a 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`);let r=require(`react/jsx-runtime`),i=require(`react`);i=e.__toESM(i);function a({feedback:e,message:i,className:a}){return(0,r.jsxs)(`div`,{className:t.cn(`py-12 flex flex-col items-center justify-center space-y-4 animate-in fade-in zoom-in-95 duration-500`,a),children:[(0,r.jsx)(`div`,{className:`flex items-center justify-center`,children:e}),(0,r.jsx)(n.Typography,{variant:`muted`,className:`max-w-[280px] text-center`,children:i})]})}exports.FeedbackLayout=a;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface FeedbackLayoutProps {
|
|
3
|
+
/** Elemento de feedback visual (ej. IconBox) */
|
|
4
|
+
feedback: React.ReactNode;
|
|
5
|
+
/** Mensaje a mostrar, será envuelto automáticamente en un Typography muted */
|
|
6
|
+
message: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Layout de Feedback para estados de la aplicación (vacío, error, éxito).
|
|
11
|
+
* Centraliza un elemento visual y un mensaje descriptivo.
|
|
12
|
+
*/
|
|
13
|
+
export declare function FeedbackLayout({ feedback, message, className }: FeedbackLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.esm";
|
|
2
|
+
import { Typography as t } from "../ui/typography.esm";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import "react";
|
|
5
|
+
//#region src/shared/custom/layouts/feedback.layout.tsx
|
|
6
|
+
function i({ feedback: i, message: a, className: o }) {
|
|
7
|
+
return /* @__PURE__ */ r("div", {
|
|
8
|
+
className: e("py-12 flex flex-col items-center justify-center space-y-4 animate-in fade-in zoom-in-95 duration-500", o),
|
|
9
|
+
children: [/* @__PURE__ */ n("div", {
|
|
10
|
+
className: "flex items-center justify-center",
|
|
11
|
+
children: i
|
|
12
|
+
}), /* @__PURE__ */ n(t, {
|
|
13
|
+
variant: "muted",
|
|
14
|
+
className: "max-w-[280px] text-center",
|
|
15
|
+
children: a
|
|
16
|
+
})]
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { i as FeedbackLayout };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../../_virtual/_rolldown/runtime.cjs`),t=require(`../../lib/utils.cjs`);let n=require(`react/jsx-runtime`),r=require(`react`);r=e.__toESM(r);function i({cols:e={initial:1,md:2},gap:r=5,alignX:i=`center`,alignY:a=`start`,className:o,children:s}){let c={start:`justify-items-start`,center:`justify-items-center`,end:`justify-items-end`,stretch:`justify-items-stretch`},l={start:`items-start`,center:`items-center`,end:`items-end`,stretch:`items-stretch`},u=typeof e==`number`||typeof e==`string`?e:e.initial||1,d=typeof e==`object`?e.sm:void 0,f=typeof e==`object`?e.md:void 0,p=typeof e==`object`?e.lg:void 0,m=typeof e==`object`?e.xl:void 0,h=e=>{if(!(!e&&e!==0))return typeof e==`number`?`repeat(${e}, minmax(0, 1fr))`:e};return(0,n.jsx)(`div`,{className:`@container w-full`,children:(0,n.jsx)(`div`,{style:{"--grid-gap":typeof r==`number`?`${r*.25}rem`:r,"--cols-initial":h(u),...d&&{"--cols-sm":h(d)},...f&&{"--cols-md":h(f)},...p&&{"--cols-lg":h(p)},...m&&{"--cols-xl":h(m)}},className:t.cn(`grid`,`gap-(--grid-gap)`,`grid-cols-(--cols-initial)`,d&&`@sm:grid-cols-(--cols-sm)`,f&&`@md:grid-cols-(--cols-md)`,p&&`@lg:grid-cols-(--cols-lg)`,m&&`@xl:grid-cols-(--cols-xl)`,c[i],l[a],o),children:s})})}exports.GridLayout=i;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type GridColDef = number | string;
|
|
3
|
+
export interface GridLayoutProps {
|
|
4
|
+
/**
|
|
5
|
+
* Número de columnas o template string.
|
|
6
|
+
* Puede ser un número fijo, un string (ej. "1fr auto auto" o "repeat(2, 1fr)") o un objeto para diferentes breakpoints.
|
|
7
|
+
* @default "{ initial: 1, md: 2 }"
|
|
8
|
+
*/
|
|
9
|
+
cols?: GridColDef | {
|
|
10
|
+
initial?: GridColDef;
|
|
11
|
+
sm?: GridColDef;
|
|
12
|
+
md?: GridColDef;
|
|
13
|
+
lg?: GridColDef;
|
|
14
|
+
xl?: GridColDef;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Espaciado entre elementos basado en la escala de Tailwind.
|
|
18
|
+
* @default 5
|
|
19
|
+
*/
|
|
20
|
+
gap?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Alineación horizontal (justify-items).
|
|
23
|
+
* @default "center"
|
|
24
|
+
*/
|
|
25
|
+
alignX?: "start" | "center" | "end" | "stretch";
|
|
26
|
+
/**
|
|
27
|
+
* Alineación vertical (align-items).
|
|
28
|
+
* @default "start"
|
|
29
|
+
*/
|
|
30
|
+
alignY?: "start" | "center" | "end" | "stretch";
|
|
31
|
+
className?: string;
|
|
32
|
+
children: React.ReactNode;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Componente de Layout basado en Grid para estandarizar la disposición de elementos.
|
|
36
|
+
* Utiliza Container Queries (@container) de forma exclusiva para garantizar respuestas basadas en el contenedor.
|
|
37
|
+
*/
|
|
38
|
+
export declare function GridLayout({ cols, gap, alignX, alignY, className, children }: GridLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.esm";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import "react";
|
|
4
|
+
//#region src/shared/custom/layouts/grid.layout.tsx
|
|
5
|
+
function n({ cols: n = {
|
|
6
|
+
initial: 1,
|
|
7
|
+
md: 2
|
|
8
|
+
}, gap: r = 5, alignX: i = "center", alignY: a = "start", className: o, children: s }) {
|
|
9
|
+
let c = {
|
|
10
|
+
start: "justify-items-start",
|
|
11
|
+
center: "justify-items-center",
|
|
12
|
+
end: "justify-items-end",
|
|
13
|
+
stretch: "justify-items-stretch"
|
|
14
|
+
}, l = {
|
|
15
|
+
start: "items-start",
|
|
16
|
+
center: "items-center",
|
|
17
|
+
end: "items-end",
|
|
18
|
+
stretch: "items-stretch"
|
|
19
|
+
}, u = typeof n == "number" || typeof n == "string" ? n : n.initial || 1, d = typeof n == "object" ? n.sm : void 0, f = typeof n == "object" ? n.md : void 0, p = typeof n == "object" ? n.lg : void 0, m = typeof n == "object" ? n.xl : void 0, h = (e) => {
|
|
20
|
+
if (!(!e && e !== 0)) return typeof e == "number" ? `repeat(${e}, minmax(0, 1fr))` : e;
|
|
21
|
+
};
|
|
22
|
+
return /* @__PURE__ */ t("div", {
|
|
23
|
+
className: "@container w-full",
|
|
24
|
+
children: /* @__PURE__ */ t("div", {
|
|
25
|
+
style: {
|
|
26
|
+
"--grid-gap": typeof r == "number" ? `${r * .25}rem` : r,
|
|
27
|
+
"--cols-initial": h(u),
|
|
28
|
+
...d && { "--cols-sm": h(d) },
|
|
29
|
+
...f && { "--cols-md": h(f) },
|
|
30
|
+
...p && { "--cols-lg": h(p) },
|
|
31
|
+
...m && { "--cols-xl": h(m) }
|
|
32
|
+
},
|
|
33
|
+
className: e("grid", "gap-(--grid-gap)", "grid-cols-(--cols-initial)", d && "@sm:grid-cols-(--cols-sm)", f && "@md:grid-cols-(--cols-md)", p && "@lg:grid-cols-(--cols-lg)", m && "@xl:grid-cols-(--cols-xl)", c[i], l[a], o),
|
|
34
|
+
children: s
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { n as GridLayout };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../../_virtual/_rolldown/runtime.cjs`),t=require(`../../lib/utils.cjs`);let n=require(`react/jsx-runtime`),r=require(`react`);r=e.__toESM(r);function i({className:e,animate:r=!0,...i}){return(0,n.jsx)(`div`,{className:t.cn(`t-page-container`,r&&`animate-in fade-in zoom-in-95 duration-500`,e),...i})}exports.PageContainer=i;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface PageContainerProps extends React.ComponentProps<"div"> {
|
|
3
|
+
animate?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function PageContainer({ className, animate, ...props }: PageContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.esm";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import "react";
|
|
4
|
+
//#region src/shared/custom/layouts/page-container.tsx
|
|
5
|
+
function n({ className: n, animate: r = !0, ...i }) {
|
|
6
|
+
return /* @__PURE__ */ t("div", {
|
|
7
|
+
className: e("t-page-container", r && "animate-in fade-in zoom-in-95 duration-500", n),
|
|
8
|
+
...i
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as PageContainer };
|
|
@@ -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`);function n({icon:n,className:r,iconClassName:i,size:a=`md`}){return(0,t.jsx)(`div`,{className:e.cn(`bg-muted/30 flex items-center justify-center text-muted-foreground border border-border/50 shadow-sm shrink-0`,{sm:`size-8 rounded-lg`,md:`size-12 rounded-2xl`,lg:`size-16 rounded-3xl`,xl:`size-24 rounded-[2.5rem]`}[a],r),children:(0,t.jsx)(n,{className:e.cn({sm:`size-4`,md:`size-6`,lg:`size-8`,xl:`size-12`}[a],i)})})}exports.IconBox=n;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LucideIcon } from 'lucide-react';
|
|
2
|
+
interface IconBoxProps {
|
|
3
|
+
icon: LucideIcon;
|
|
4
|
+
className?: string;
|
|
5
|
+
iconClassName?: string;
|
|
6
|
+
size?: "sm" | "md" | "lg" | "xl";
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Componente IconBox para renderizar iconos dentro de un contenedor estilizado.
|
|
10
|
+
*/
|
|
11
|
+
export declare function IconBox({ icon: Icon, className, iconClassName, size }: IconBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.esm";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/shared/custom/ui/icon-box.tsx
|
|
4
|
+
function n({ icon: n, className: r, iconClassName: i, size: a = "md" }) {
|
|
5
|
+
return /* @__PURE__ */ t("div", {
|
|
6
|
+
className: e("bg-muted/30 flex items-center justify-center text-muted-foreground border border-border/50 shadow-sm shrink-0", {
|
|
7
|
+
sm: "size-8 rounded-lg",
|
|
8
|
+
md: "size-12 rounded-2xl",
|
|
9
|
+
lg: "size-16 rounded-3xl",
|
|
10
|
+
xl: "size-24 rounded-[2.5rem]"
|
|
11
|
+
}[a], r),
|
|
12
|
+
children: /* @__PURE__ */ t(n, { className: e({
|
|
13
|
+
sm: "size-4",
|
|
14
|
+
md: "size-6",
|
|
15
|
+
lg: "size-8",
|
|
16
|
+
xl: "size-12"
|
|
17
|
+
}[a], i) })
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { n as IconBox };
|
|
@@ -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`);function n({children:n,variant:r=`p`,className:i}){let a={h1:`text-4xl font-black tracking-tighter text-foreground`,h2:`text-2xl font-bold tracking-tight text-foreground`,h3:`text-lg font-semibold text-foreground`,p:`text-base text-foreground`,span:`text-sm`,muted:`text-sm text-muted-foreground font-medium`,small:`text-sm font-medium`,"extra-small":`text-xs font-medium`},o={h1:`h1`,h2:`h2`,h3:`h3`,p:`p`,span:`span`,muted:`p`,small:`p`,"extra-small":`p`}[r]||`p`,s=a[r];return(0,t.jsx)(o,{className:e.cn(s,i),children:n})}exports.Typography=n;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type TypographyVariant = "h1" | "h2" | "h3" | "p" | "span" | "muted" | "small" | "extra-small";
|
|
2
|
+
interface TypographyProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
variant?: TypographyVariant;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Componente de tipografía personalizado para estandarizar el texto en la aplicación.
|
|
9
|
+
*/
|
|
10
|
+
export declare function Typography({ children, variant, className }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.esm";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/shared/custom/ui/typography.tsx
|
|
4
|
+
function n({ children: n, variant: r = "p", className: i }) {
|
|
5
|
+
let a = {
|
|
6
|
+
h1: "text-4xl font-black tracking-tighter text-foreground",
|
|
7
|
+
h2: "text-2xl font-bold tracking-tight text-foreground",
|
|
8
|
+
h3: "text-lg font-semibold text-foreground",
|
|
9
|
+
p: "text-base text-foreground",
|
|
10
|
+
span: "text-sm",
|
|
11
|
+
muted: "text-sm text-muted-foreground font-medium",
|
|
12
|
+
small: "text-sm font-medium",
|
|
13
|
+
"extra-small": "text-xs font-medium"
|
|
14
|
+
}, o = {
|
|
15
|
+
h1: "h1",
|
|
16
|
+
h2: "h2",
|
|
17
|
+
h3: "h3",
|
|
18
|
+
p: "p",
|
|
19
|
+
span: "span",
|
|
20
|
+
muted: "p",
|
|
21
|
+
small: "p",
|
|
22
|
+
"extra-small": "p"
|
|
23
|
+
}[r] || "p", s = a[r];
|
|
24
|
+
return /* @__PURE__ */ t(o, {
|
|
25
|
+
className: e(s, i),
|
|
26
|
+
children: n
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { n as Typography };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`react`);var t=function(e){return e.VERTICAL_MOBILE=`VERTICAL_MOBILE`,e.HORIZONTAL_MOBILE=`HORIZONTAL_MOBILE`,e.VERTICAL_TABLET=`VERTICAL_TABLET`,e.HORIZONTAL_TABLET=`HORIZONTAL_TABLET`,e.MINIFIED_BROWSER=`MINIFIED_BROWSER`,e.FULL_SCREEN_BROWSER=`FULL_SCREEN_BROWSER`,e.AMPLIFIED_BROWSER=`AMPLIFIED_BROWSER`,e}({});function n(){let[n,r]=(0,e.useState)(t.FULL_SCREEN_BROWSER);return(0,e.useEffect)(()=>{let e=()=>{let e=window.innerWidth,n=window.innerHeight,i=n>0?e/n:1;if(e<=480&&i<1){r(t.VERTICAL_MOBILE);return}if(n<=480&&i>1.7){r(t.HORIZONTAL_MOBILE);return}if(e>480&&e<=1024){r(i<1?t.VERTICAL_TABLET:i>=1.2&&i<=1.7?t.HORIZONTAL_TABLET:i>1?t.MINIFIED_BROWSER:t.VERTICAL_TABLET);return}if(e>1024&&e<=1440){r(t.FULL_SCREEN_BROWSER);return}if(e>1440){r(t.AMPLIFIED_BROWSER);return}r(t.FULL_SCREEN_BROWSER)};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),n}exports.DeviceType=t,exports.useDevice=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum DeviceType {
|
|
2
|
+
VERTICAL_MOBILE = "VERTICAL_MOBILE",
|
|
3
|
+
HORIZONTAL_MOBILE = "HORIZONTAL_MOBILE",
|
|
4
|
+
VERTICAL_TABLET = "VERTICAL_TABLET",
|
|
5
|
+
HORIZONTAL_TABLET = "HORIZONTAL_TABLET",
|
|
6
|
+
MINIFIED_BROWSER = "MINIFIED_BROWSER",
|
|
7
|
+
FULL_SCREEN_BROWSER = "FULL_SCREEN_BROWSER",
|
|
8
|
+
AMPLIFIED_BROWSER = "AMPLIFIED_BROWSER"
|
|
9
|
+
}
|
|
10
|
+
export declare function useDevice(): DeviceType;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { useEffect as e, useState as t } from "react";
|
|
2
|
+
//#region src/shared/hooks/use-device.ts
|
|
3
|
+
var n = /* @__PURE__ */ function(e) {
|
|
4
|
+
return e.VERTICAL_MOBILE = "VERTICAL_MOBILE", e.HORIZONTAL_MOBILE = "HORIZONTAL_MOBILE", e.VERTICAL_TABLET = "VERTICAL_TABLET", e.HORIZONTAL_TABLET = "HORIZONTAL_TABLET", e.MINIFIED_BROWSER = "MINIFIED_BROWSER", e.FULL_SCREEN_BROWSER = "FULL_SCREEN_BROWSER", e.AMPLIFIED_BROWSER = "AMPLIFIED_BROWSER", e;
|
|
5
|
+
}({});
|
|
6
|
+
function r() {
|
|
7
|
+
let [r, i] = t(n.FULL_SCREEN_BROWSER);
|
|
8
|
+
return e(() => {
|
|
9
|
+
let e = () => {
|
|
10
|
+
let e = window.innerWidth, t = window.innerHeight, r = t > 0 ? e / t : 1;
|
|
11
|
+
if (e <= 480 && r < 1) {
|
|
12
|
+
i(n.VERTICAL_MOBILE);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
if (t <= 480 && r > 1.7) {
|
|
16
|
+
i(n.HORIZONTAL_MOBILE);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (e > 480 && e <= 1024) {
|
|
20
|
+
i(r < 1 ? n.VERTICAL_TABLET : r >= 1.2 && r <= 1.7 ? n.HORIZONTAL_TABLET : r > 1 ? n.MINIFIED_BROWSER : n.VERTICAL_TABLET);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (e > 1024 && e <= 1440) {
|
|
24
|
+
i(n.FULL_SCREEN_BROWSER);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (e > 1440) {
|
|
28
|
+
i(n.AMPLIFIED_BROWSER);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
i(n.FULL_SCREEN_BROWSER);
|
|
32
|
+
};
|
|
33
|
+
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
34
|
+
}, []), r;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { n as DeviceType, r as useDevice };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`react-i18next`);var t=t=>{let{t:n,i18n:r}=(0,e.useTranslation)(t);return{t:n,currentLanguage:r.language,changeLanguage:e=>{r.changeLanguage(e)},i18n:r}};exports.useI18n=t;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook compartido para acceder a las traducciones.
|
|
3
|
+
* Proporciona una capa de abstracción sobre react-i18next.
|
|
4
|
+
*/
|
|
5
|
+
export declare const useI18n: (namespace?: string) => {
|
|
6
|
+
t: import('i18next').TFunction<string, undefined>;
|
|
7
|
+
currentLanguage: string;
|
|
8
|
+
changeLanguage: (lng: string) => void;
|
|
9
|
+
i18n: import('i18next').i18n;
|
|
10
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useTranslation as e } from "react-i18next";
|
|
2
|
+
//#region src/shared/hooks/use-i18n.ts
|
|
3
|
+
var t = (t) => {
|
|
4
|
+
let { t: n, i18n: r } = e(t);
|
|
5
|
+
return {
|
|
6
|
+
t: n,
|
|
7
|
+
currentLanguage: r.language,
|
|
8
|
+
changeLanguage: (e) => {
|
|
9
|
+
r.changeLanguage(e);
|
|
10
|
+
},
|
|
11
|
+
i18n: r
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { t as useI18n };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../_virtual/_rolldown/runtime.cjs`);let t=require(`react`);t=e.__toESM(t);var n=768;function r(){let[e,r]=t.useState(void 0);return t.useEffect(()=>{let e=window.matchMedia(`(max-width: ${n-1}px)`),t=()=>{r(window.innerWidth<n)};return e.addEventListener(`change`,t),r(window.innerWidth<n),()=>e.removeEventListener(`change`,t)},[]),!!e}exports.useIsMobile=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useIsMobile(): boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
//#region src/shared/hooks/use-mobile.ts
|
|
3
|
+
var t = 768;
|
|
4
|
+
function n() {
|
|
5
|
+
let [n, r] = e.useState(void 0);
|
|
6
|
+
return e.useEffect(() => {
|
|
7
|
+
let e = window.matchMedia(`(max-width: ${t - 1}px)`), n = () => {
|
|
8
|
+
r(window.innerWidth < t);
|
|
9
|
+
};
|
|
10
|
+
return e.addEventListener("change", n), r(window.innerWidth < t), () => e.removeEventListener("change", n);
|
|
11
|
+
}, []), !!n;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { n as useIsMobile };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`clsx`),t=require(`tailwind-merge`);function n(...n){return(0,t.twMerge)((0,e.clsx)(n))}exports.cn=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../../modules/actions/entities/action.entity.cjs`);require(`lucide-react`),require(`zod`);var t=new class{constructor(){this.entries=new Map}register(t,n){return this.entries.set(t,{type:t,kind:e.ActionKind.ATOMIC,processor:n}),t}registerPipeline(t,n){return this.entries.set(t,{type:t,kind:e.ActionKind.COMPOSABLE,pipeline:n}),t}getEntry(e){return this.entries.get(e)}get(e){return this.entries.get(e)?.processor}};exports.ACTION_PROCESSOR_REGISTRY=t;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { LucideIcon } from 'lucide-react';
|
|
3
|
+
import { FormInputProps } from '../../custom/form/form.component';
|
|
4
|
+
import { FieldValues } from 'react-hook-form';
|
|
5
|
+
import { ActionNature, ActionKind } from '../../../modules/actions/entities/action.entity';
|
|
6
|
+
/**
|
|
7
|
+
* PipelineContext
|
|
8
|
+
*
|
|
9
|
+
* Interfaz para el acceso y modificación del payload general durante la ejecución
|
|
10
|
+
* de una secuencia de acciones (Composite Actions).
|
|
11
|
+
*/
|
|
12
|
+
export interface PipelineContext {
|
|
13
|
+
/** ID único del pipeline actual */
|
|
14
|
+
pipelineId?: string;
|
|
15
|
+
/** Recupera un valor del payload general */
|
|
16
|
+
get: <T = any>(key: string) => T | undefined;
|
|
17
|
+
/** Modifica o añade un valor al payload general */
|
|
18
|
+
set: <T = any>(key: string, value: T) => void;
|
|
19
|
+
/** Recupera todo el payload general actual */
|
|
20
|
+
getAll: () => Record<string, any>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* PipelineStepDefinition
|
|
24
|
+
* Definición de un paso dentro de un pipeline registrado.
|
|
25
|
+
*/
|
|
26
|
+
export interface PipelineStepDefinition {
|
|
27
|
+
name: string;
|
|
28
|
+
type: string;
|
|
29
|
+
payload?: any;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* PipelineDefinition
|
|
33
|
+
* La "Fórmula" o plantilla de un flujo de acciones.
|
|
34
|
+
*/
|
|
35
|
+
export interface PipelineDefinition {
|
|
36
|
+
name: string;
|
|
37
|
+
steps: PipelineStepDefinition[];
|
|
38
|
+
initialContext?: Record<string, any>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* ActionProcessor
|
|
42
|
+
* Interfaz base para acciones Atómicas.
|
|
43
|
+
*/
|
|
44
|
+
export interface ActionProcessor<PAYLOAD extends FieldValues = any> {
|
|
45
|
+
execute: (payload: PAYLOAD, context?: PipelineContext) => Promise<any>;
|
|
46
|
+
schema?: z.ZodType<PAYLOAD>;
|
|
47
|
+
Form?: React.FC<FormInputProps<PAYLOAD>>;
|
|
48
|
+
icon?: LucideIcon;
|
|
49
|
+
nature?: ActionNature;
|
|
50
|
+
description?: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* ActionRegistryEntry
|
|
54
|
+
* Representa una entrada unificada en el registro.
|
|
55
|
+
*/
|
|
56
|
+
export interface ActionRegistryEntry {
|
|
57
|
+
type: string;
|
|
58
|
+
kind: ActionKind;
|
|
59
|
+
processor?: ActionProcessor;
|
|
60
|
+
pipeline?: PipelineDefinition;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* ActionRegistry
|
|
64
|
+
* Registry central para los procesadores de acciones y definiciones de pipelines.
|
|
65
|
+
*/
|
|
66
|
+
declare class ActionRegistry {
|
|
67
|
+
private entries;
|
|
68
|
+
/**
|
|
69
|
+
* Registra un procesador Atómico.
|
|
70
|
+
*/
|
|
71
|
+
register(type: string, processor: ActionProcessor): string;
|
|
72
|
+
/**
|
|
73
|
+
* Registra una definición de Pipeline (Composable).
|
|
74
|
+
*/
|
|
75
|
+
registerPipeline(type: string, definition: PipelineDefinition): string;
|
|
76
|
+
/**
|
|
77
|
+
* Obtiene la entrada completa para un tipo de acción.
|
|
78
|
+
*/
|
|
79
|
+
getEntry(type: string): ActionRegistryEntry | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Helper para compatibilidad con código existente que solo busca el procesador.
|
|
82
|
+
*/
|
|
83
|
+
get(type: string): ActionProcessor | undefined;
|
|
84
|
+
}
|
|
85
|
+
export declare const ACTION_PROCESSOR_REGISTRY: ActionRegistry;
|
|
86
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ActionKind as e } from "../../../modules/actions/entities/action.entity.esm";
|
|
2
|
+
import "lucide-react";
|
|
3
|
+
import "zod";
|
|
4
|
+
var t = new class {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.entries = /* @__PURE__ */ new Map();
|
|
7
|
+
}
|
|
8
|
+
register(t, n) {
|
|
9
|
+
return this.entries.set(t, {
|
|
10
|
+
type: t,
|
|
11
|
+
kind: e.ATOMIC,
|
|
12
|
+
processor: n
|
|
13
|
+
}), t;
|
|
14
|
+
}
|
|
15
|
+
registerPipeline(t, n) {
|
|
16
|
+
return this.entries.set(t, {
|
|
17
|
+
type: t,
|
|
18
|
+
kind: e.COMPOSABLE,
|
|
19
|
+
pipeline: n
|
|
20
|
+
}), t;
|
|
21
|
+
}
|
|
22
|
+
getEntry(e) {
|
|
23
|
+
return this.entries.get(e);
|
|
24
|
+
}
|
|
25
|
+
get(e) {
|
|
26
|
+
return this.entries.get(e)?.processor;
|
|
27
|
+
}
|
|
28
|
+
}();
|
|
29
|
+
//#endregion
|
|
30
|
+
export { t as ACTION_PROCESSOR_REGISTRY };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../../_virtual/_rolldown/runtime.cjs`);let t=require(`react/jsx-runtime`),n=require(`react`);n=e.__toESM(n);var r=class e{constructor(){this.registry=new Map}static get instance(){return e._instance||=new e,e._instance}register(e,t){return this.registry.set(e,t),e}resolve(e){let n=this.registry.get(e.type);if(!n)throw Error(`Component ${e.type} not found`);return(0,t.jsx)(n,{...e.params})}get(e){return this.registry.get(e)}};r._instance=void 0;var i=r.instance;exports.COMPONENT_REGISTRY=i;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ComponentItem {
|
|
3
|
+
type: string;
|
|
4
|
+
params: Record<string, any>;
|
|
5
|
+
}
|
|
6
|
+
declare class ComponentRegistryFactory {
|
|
7
|
+
private registry;
|
|
8
|
+
private constructor();
|
|
9
|
+
private static _instance;
|
|
10
|
+
static get instance(): ComponentRegistryFactory;
|
|
11
|
+
register<T extends object>(type: string, component: React.ComponentType<T>): string;
|
|
12
|
+
resolve(item: ComponentItem): React.ReactNode;
|
|
13
|
+
get(type: string): React.ComponentType;
|
|
14
|
+
}
|
|
15
|
+
export declare const COMPONENT_REGISTRY: ComponentRegistryFactory;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
//#region src/shared/logic/components/components.registry.tsx
|
|
4
|
+
var t = class t {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.registry = /* @__PURE__ */ new Map();
|
|
7
|
+
}
|
|
8
|
+
static get instance() {
|
|
9
|
+
return t._instance ||= new t(), t._instance;
|
|
10
|
+
}
|
|
11
|
+
register(e, t) {
|
|
12
|
+
return this.registry.set(e, t), e;
|
|
13
|
+
}
|
|
14
|
+
resolve(t) {
|
|
15
|
+
let n = this.registry.get(t.type);
|
|
16
|
+
if (!n) throw Error(`Component ${t.type} not found`);
|
|
17
|
+
return /* @__PURE__ */ e(n, { ...t.params });
|
|
18
|
+
}
|
|
19
|
+
get(e) {
|
|
20
|
+
return this.registry.get(e);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
t._instance = void 0;
|
|
24
|
+
var n = t.instance;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { n as COMPONENT_REGISTRY };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t){if(!{}.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var t=0;function n(e){return`__private_`+ t+++`_`+e}var r=n(`_isReady`),i=n(`_onReady`),a=class{constructor(){Object.defineProperty(this,r,{writable:!0,value:void 0}),Object.defineProperty(this,i,{writable:!0,value:void 0}),e(this,r)[r]=!1,e(this,i)[i]=[]}setReady(){e(this,r)[r]=!0;for(let t of e(this,i)[i])t()}isReady(){return e(this,r)[r]}onReady(t){e(this,r)[r]?t():e(this,i)[i].push(t)}};module.exports=a;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//#region src/shared/logic/events/startable.ts
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
if (!{}.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
|
|
4
|
+
return e;
|
|
5
|
+
}
|
|
6
|
+
var t = 0;
|
|
7
|
+
function n(e) {
|
|
8
|
+
return "__private_" + t++ + "_" + e;
|
|
9
|
+
}
|
|
10
|
+
var r = /* @__PURE__ */ n("_isReady"), i = /* @__PURE__ */ n("_onReady"), a = class {
|
|
11
|
+
constructor() {
|
|
12
|
+
Object.defineProperty(this, r, {
|
|
13
|
+
writable: !0,
|
|
14
|
+
value: void 0
|
|
15
|
+
}), Object.defineProperty(this, i, {
|
|
16
|
+
writable: !0,
|
|
17
|
+
value: void 0
|
|
18
|
+
}), e(this, r)[r] = !1, e(this, i)[i] = [];
|
|
19
|
+
}
|
|
20
|
+
setReady() {
|
|
21
|
+
e(this, r)[r] = !0;
|
|
22
|
+
for (let t of e(this, i)[i]) t();
|
|
23
|
+
}
|
|
24
|
+
isReady() {
|
|
25
|
+
return e(this, r)[r];
|
|
26
|
+
}
|
|
27
|
+
onReady(t) {
|
|
28
|
+
e(this, r)[r] ? t() : e(this, i)[i].push(t);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { a as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../../_virtual/_rolldown/runtime.cjs`);let e=require(`react`);function t(t,n){let r=(0,e.useRef)(!1),i=(0,e.useRef)(n);i.current=n,(0,e.useEffect)(()=>{let e=Array.isArray(t)?t:[t],n=()=>{e.every(e=>e.isReady())&&!r.current&&(r.current=!0,i.current())};return e.forEach(e=>{e.onReady(n)}),()=>{}},[t])}exports.useOnStart=t;
|