@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,12 @@
|
|
|
1
|
+
import { default as StartableEvent } from './startable';
|
|
2
|
+
/**
|
|
3
|
+
* useOnStart
|
|
4
|
+
*
|
|
5
|
+
* Hook arquitectónico diseñado para capturar el estado de inicialización de elementos
|
|
6
|
+
* que heredan de StartableEvent. Ejecuta una función de inicialización específica
|
|
7
|
+
* una vez que todos los objetivos proporcionados están listos.
|
|
8
|
+
*
|
|
9
|
+
* @param targets Uno o varios servicios/elementos que extienden StartableEvent.
|
|
10
|
+
* @param action Función de inicialización a ejecutar.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useOnStart(targets: StartableEvent | StartableEvent[], action: () => void): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useEffect as e, useRef as t } from "react";
|
|
2
|
+
//#region src/shared/logic/events/use-on-start.hook.ts
|
|
3
|
+
function n(n, r) {
|
|
4
|
+
let i = t(!1), a = t(r);
|
|
5
|
+
a.current = r, e(() => {
|
|
6
|
+
let e = Array.isArray(n) ? n : [n], t = () => {
|
|
7
|
+
e.every((e) => e.isReady()) && !i.current && (i.current = !0, a.current());
|
|
8
|
+
};
|
|
9
|
+
return e.forEach((e) => {
|
|
10
|
+
e.onReady(t);
|
|
11
|
+
}), () => {};
|
|
12
|
+
}, [n]);
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { n as useOnStart };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../../_virtual/_rolldown/runtime.cjs`);let t=require(`react/jsx-runtime`),n=require(`react`);n=e.__toESM(n);function r(e,t){if(!{}.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var i=0;function a(e){return`__private_`+ i+++`_`+e}var o=a(`_guard`),s=class{constructor(e){Object.defineProperty(this,o,{writable:!0,value:void 0}),r(this,o)[o]=e}render(e){let n=r(this,o)[o].entry(e);return n?(0,t.jsx)(n,{...e}):null}map(e){return e.map(e=>this.render(e))}};module.exports=s;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ContextGuard } from '../guards/context.guard';
|
|
3
|
+
declare class ComponentFactory<T extends object> {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(guard: ContextGuard<T, React.FC<T>>);
|
|
6
|
+
render(data: T): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
map(data: T[]): (import("react/jsx-runtime").JSX.Element | null)[];
|
|
8
|
+
}
|
|
9
|
+
export default ComponentFactory;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
//#region src/shared/logic/factory/component.factory.tsx
|
|
4
|
+
function t(e, t) {
|
|
5
|
+
if (!{}.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
|
|
6
|
+
return e;
|
|
7
|
+
}
|
|
8
|
+
var n = 0;
|
|
9
|
+
function r(e) {
|
|
10
|
+
return "__private_" + n++ + "_" + e;
|
|
11
|
+
}
|
|
12
|
+
var i = /* @__PURE__ */ r("_guard"), a = class {
|
|
13
|
+
constructor(e) {
|
|
14
|
+
Object.defineProperty(this, i, {
|
|
15
|
+
writable: !0,
|
|
16
|
+
value: void 0
|
|
17
|
+
}), t(this, i)[i] = e;
|
|
18
|
+
}
|
|
19
|
+
render(n) {
|
|
20
|
+
let r = t(this, i)[i].entry(n);
|
|
21
|
+
return r ? /* @__PURE__ */ e(r, { ...n }) : null;
|
|
22
|
+
}
|
|
23
|
+
map(e) {
|
|
24
|
+
return e.map((e) => this.render(e));
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { a as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../../packages/env/env.manager.cjs`),t=require(`./device.guard.cjs`);var n=class extends t.DeviceGuard{asFC(){return super.asFC(()=>e.ENV_MANAGER.get(`VITE_DEVICE`))}};exports.BuilderDeviceGuard=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ENV_MANAGER as e } from "../../../packages/env/env.manager.esm";
|
|
2
|
+
import { DeviceGuard as t } from "./device.guard.esm";
|
|
3
|
+
//#region src/shared/logic/guards/builder-device.guard.ts
|
|
4
|
+
var n = class extends t {
|
|
5
|
+
asFC() {
|
|
6
|
+
return super.asFC(() => e.get("VITE_DEVICE"));
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as BuilderDeviceGuard };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../../_virtual/_rolldown/runtime.cjs`);const e=require(`./context.guard.cjs`);let t=require(`react/jsx-runtime`);var n=class extends e.ContextGuard{asFC(e){return n=>{let r=e(),i=this.entry(r);return i?(0,t.jsx)(i,{...n}):null}}};exports.ComponentGuard=n;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ContextGuard } from './context.guard';
|
|
2
|
+
declare class ComponentGuard<PROPS extends object, CONTEXT = PROPS> extends ContextGuard<CONTEXT, React.FC<PROPS>> {
|
|
3
|
+
asFC(getter: () => CONTEXT): (props: PROPS) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
}
|
|
5
|
+
export { ComponentGuard };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ContextGuard as e } from "./context.guard.esm";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/shared/logic/guards/component.guard.tsx
|
|
4
|
+
var n = class extends e {
|
|
5
|
+
asFC(e) {
|
|
6
|
+
return (n) => {
|
|
7
|
+
let r = e(), i = this.entry(r);
|
|
8
|
+
return i ? /* @__PURE__ */ t(i, { ...n }) : null;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as ComponentGuard };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./guard.cjs`);var t=class extends e.Guard{entry(e){return super.entry(e)}};exports.ContextGuard=t;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Guard } from './guard';
|
|
2
|
+
/**
|
|
3
|
+
* ContextGuard
|
|
4
|
+
*
|
|
5
|
+
* Especialización de Guard que permite la resolución de resultados basados en un contexto.
|
|
6
|
+
*/
|
|
7
|
+
declare class ContextGuard<ENTRY, RETURN> extends Guard<ENTRY, RETURN> {
|
|
8
|
+
/**
|
|
9
|
+
* Expone el método entry de forma pública para su evaluación manual.
|
|
10
|
+
*/
|
|
11
|
+
entry(value: ENTRY): RETURN | null;
|
|
12
|
+
}
|
|
13
|
+
export { ContextGuard };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../../packages/env/env.manager.cjs`),t=require(`./context.guard.cjs`),n=require(`../verifiers/device.verifier.registry.cjs`);var r=class extends t.ContextGuard{atMobile(e){return this.addChannel(e,n.MobileDeviceVerifier)}atTablet(e){return this.addChannel(e,n.TabletDeviceVerifier)}atDesktop(e){return this.addChannel(e,n.DesktopDeviceVerifier)}atNative(e){return this.addChannel(e,n.NativeDeviceVerifier)}atHorizontal(e){return this.addChannel(e,n.HorizontalDeviceVerifier)}atVertical(e){return this.addChannel(e,n.VerticalDeviceVerifier)}atNarrow(e){return this.addChannel(e,n.NarrowDeviceVerifier)}atWide(e){return this.addChannel(e,n.WideDeviceVerifier)}atTouch(e){return this.addChannel(e,n.TouchDeviceVerifier)}atMinified(e){return this.addChannel(e,n.MinifiedDeviceVerifier)}atAmplified(e){return this.addChannel(e,n.AmplifiedDeviceVerifier)}build(){return super.entry(e.ENV_MANAGER.get(`VITE_DEVICE`))}};exports.DeviceArtifactGuard=r;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DeviceType } from '../../hooks/use-device';
|
|
2
|
+
import { ContextGuard } from './context.guard';
|
|
3
|
+
export declare class DeviceArtifactGuard<T> extends ContextGuard<DeviceType, T> {
|
|
4
|
+
atMobile(artifact: T): this;
|
|
5
|
+
atTablet(artifact: T): this;
|
|
6
|
+
atDesktop(artifact: T): this;
|
|
7
|
+
atNative(artifact: T): this;
|
|
8
|
+
atHorizontal(artifact: T): this;
|
|
9
|
+
atVertical(artifact: T): this;
|
|
10
|
+
atNarrow(artifact: T): this;
|
|
11
|
+
atWide(artifact: T): this;
|
|
12
|
+
atTouch(artifact: T): this;
|
|
13
|
+
atMinified(artifact: T): this;
|
|
14
|
+
atAmplified(artifact: T): this;
|
|
15
|
+
build(): T | null;
|
|
16
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ENV_MANAGER as e } from "../../../packages/env/env.manager.esm";
|
|
2
|
+
import { ContextGuard as t } from "./context.guard.esm";
|
|
3
|
+
import { AmplifiedDeviceVerifier as n, DesktopDeviceVerifier as r, HorizontalDeviceVerifier as i, MinifiedDeviceVerifier as a, MobileDeviceVerifier as o, NarrowDeviceVerifier as s, NativeDeviceVerifier as c, TabletDeviceVerifier as l, TouchDeviceVerifier as u, VerticalDeviceVerifier as d, WideDeviceVerifier as f } from "../verifiers/device.verifier.registry.esm";
|
|
4
|
+
//#region src/shared/logic/guards/device-artifact.guard.ts
|
|
5
|
+
var p = class extends t {
|
|
6
|
+
atMobile(e) {
|
|
7
|
+
return this.addChannel(e, o);
|
|
8
|
+
}
|
|
9
|
+
atTablet(e) {
|
|
10
|
+
return this.addChannel(e, l);
|
|
11
|
+
}
|
|
12
|
+
atDesktop(e) {
|
|
13
|
+
return this.addChannel(e, r);
|
|
14
|
+
}
|
|
15
|
+
atNative(e) {
|
|
16
|
+
return this.addChannel(e, c);
|
|
17
|
+
}
|
|
18
|
+
atHorizontal(e) {
|
|
19
|
+
return this.addChannel(e, i);
|
|
20
|
+
}
|
|
21
|
+
atVertical(e) {
|
|
22
|
+
return this.addChannel(e, d);
|
|
23
|
+
}
|
|
24
|
+
atNarrow(e) {
|
|
25
|
+
return this.addChannel(e, s);
|
|
26
|
+
}
|
|
27
|
+
atWide(e) {
|
|
28
|
+
return this.addChannel(e, f);
|
|
29
|
+
}
|
|
30
|
+
atTouch(e) {
|
|
31
|
+
return this.addChannel(e, u);
|
|
32
|
+
}
|
|
33
|
+
atMinified(e) {
|
|
34
|
+
return this.addChannel(e, a);
|
|
35
|
+
}
|
|
36
|
+
atAmplified(e) {
|
|
37
|
+
return this.addChannel(e, n);
|
|
38
|
+
}
|
|
39
|
+
build() {
|
|
40
|
+
return super.entry(e.get("VITE_DEVICE"));
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
//#endregion
|
|
44
|
+
export { p as DeviceArtifactGuard };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./component.guard.cjs`),t=require(`../verifiers/device.verifier.registry.cjs`);var n=class extends e.ComponentGuard{atMobile(e){return this.addChannel(e,t.MobileDeviceVerifier)}atTablet(e){return this.addChannel(e,t.TabletDeviceVerifier)}atDesktop(e){return this.addChannel(e,t.DesktopDeviceVerifier)}atNative(e){return this.addChannel(e,t.NativeDeviceVerifier)}atHorizontal(e){return this.addChannel(e,t.HorizontalDeviceVerifier)}atVertical(e){return this.addChannel(e,t.VerticalDeviceVerifier)}atNarrow(e){return this.addChannel(e,t.NarrowDeviceVerifier)}atWide(e){return this.addChannel(e,t.WideDeviceVerifier)}atTouch(e){return this.addChannel(e,t.TouchDeviceVerifier)}atMinified(e){return this.addChannel(e,t.MinifiedDeviceVerifier)}atAmplified(e){return this.addChannel(e,t.AmplifiedDeviceVerifier)}};exports.DeviceGuard=n;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeviceType } from '../../hooks/use-device';
|
|
2
|
+
import { ComponentGuard } from './component.guard';
|
|
3
|
+
type DeviceContext = DeviceType;
|
|
4
|
+
declare class DeviceGuard<T extends object> extends ComponentGuard<T, DeviceContext> {
|
|
5
|
+
atMobile(component: React.FC<T>): this;
|
|
6
|
+
atTablet(component: React.FC<T>): this;
|
|
7
|
+
atDesktop(component: React.FC<T>): this;
|
|
8
|
+
atNative(component: React.FC<T>): this;
|
|
9
|
+
atHorizontal(component: React.FC<T>): this;
|
|
10
|
+
atVertical(component: React.FC<T>): this;
|
|
11
|
+
atNarrow(component: React.FC<T>): this;
|
|
12
|
+
atWide(component: React.FC<T>): this;
|
|
13
|
+
atTouch(component: React.FC<T>): this;
|
|
14
|
+
atMinified(component: React.FC<T>): this;
|
|
15
|
+
atAmplified(component: React.FC<T>): this;
|
|
16
|
+
}
|
|
17
|
+
export { DeviceGuard };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ComponentGuard as e } from "./component.guard.esm";
|
|
2
|
+
import { AmplifiedDeviceVerifier as t, DesktopDeviceVerifier as n, HorizontalDeviceVerifier as r, MinifiedDeviceVerifier as i, MobileDeviceVerifier as a, NarrowDeviceVerifier as o, NativeDeviceVerifier as s, TabletDeviceVerifier as c, TouchDeviceVerifier as l, VerticalDeviceVerifier as u, WideDeviceVerifier as d } from "../verifiers/device.verifier.registry.esm";
|
|
3
|
+
//#region src/shared/logic/guards/device.guard.ts
|
|
4
|
+
var f = class extends e {
|
|
5
|
+
atMobile(e) {
|
|
6
|
+
return this.addChannel(e, a);
|
|
7
|
+
}
|
|
8
|
+
atTablet(e) {
|
|
9
|
+
return this.addChannel(e, c);
|
|
10
|
+
}
|
|
11
|
+
atDesktop(e) {
|
|
12
|
+
return this.addChannel(e, n);
|
|
13
|
+
}
|
|
14
|
+
atNative(e) {
|
|
15
|
+
return this.addChannel(e, s);
|
|
16
|
+
}
|
|
17
|
+
atHorizontal(e) {
|
|
18
|
+
return this.addChannel(e, r);
|
|
19
|
+
}
|
|
20
|
+
atVertical(e) {
|
|
21
|
+
return this.addChannel(e, u);
|
|
22
|
+
}
|
|
23
|
+
atNarrow(e) {
|
|
24
|
+
return this.addChannel(e, o);
|
|
25
|
+
}
|
|
26
|
+
atWide(e) {
|
|
27
|
+
return this.addChannel(e, d);
|
|
28
|
+
}
|
|
29
|
+
atTouch(e) {
|
|
30
|
+
return this.addChannel(e, l);
|
|
31
|
+
}
|
|
32
|
+
atMinified(e) {
|
|
33
|
+
return this.addChannel(e, i);
|
|
34
|
+
}
|
|
35
|
+
atAmplified(e) {
|
|
36
|
+
return this.addChannel(e, t);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
export { f as DeviceGuard };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../hooks/use-device.cjs`),t=require(`./device.guard.cjs`);var n=class extends t.DeviceGuard{asFC(){return super.asFC(e.useDevice)}};exports.DynamicDeviceGuard=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useDevice as e } from "../../hooks/use-device.esm";
|
|
2
|
+
import { DeviceGuard as t } from "./device.guard.esm";
|
|
3
|
+
//#region src/shared/logic/guards/dynamic-device.guard.ts
|
|
4
|
+
var n = class extends t {
|
|
5
|
+
asFC() {
|
|
6
|
+
return super.asFC(e);
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as DynamicDeviceGuard };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=class{constructor(){this._channels=[],this._fallback=null}addChannel(e,t){return this._channels.push([e,t]),this}setFallback(e){return this._fallback=e,this}entry(e){for(let[t,n]of this._channels)if(n.verify(e))return t;return this._fallback}};exports.Guard=e;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ContextVerifier } from '../verifiers/context.verifier';
|
|
2
|
+
/**
|
|
3
|
+
* Guard
|
|
4
|
+
*
|
|
5
|
+
* Clase base abstracta para la implementación del patrón Guardián en RFT.
|
|
6
|
+
* Un Guardián gestiona múltiples "canales" asociados a verificadores de contexto.
|
|
7
|
+
*/
|
|
8
|
+
declare abstract class Guard<ENTRY, RETURN> {
|
|
9
|
+
protected _channels: [RETURN, ContextVerifier<ENTRY>][];
|
|
10
|
+
protected _fallback: RETURN | null;
|
|
11
|
+
/**
|
|
12
|
+
* Añade un canal de resolución basado en un verificador.
|
|
13
|
+
*/
|
|
14
|
+
addChannel(result: RETURN, verifier: ContextVerifier<ENTRY>): this;
|
|
15
|
+
/**
|
|
16
|
+
* Define el resultado por defecto si ningún canal matchea.
|
|
17
|
+
*/
|
|
18
|
+
setFallback(result: RETURN): this;
|
|
19
|
+
/**
|
|
20
|
+
* Evalúa el contexto y devuelve el resultado del primer canal que matchee.
|
|
21
|
+
*/
|
|
22
|
+
protected entry(value: ENTRY): RETURN | null;
|
|
23
|
+
}
|
|
24
|
+
export { Guard };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/shared/logic/guards/guard.ts
|
|
2
|
+
var e = class {
|
|
3
|
+
constructor() {
|
|
4
|
+
this._channels = [], this._fallback = null;
|
|
5
|
+
}
|
|
6
|
+
addChannel(e, t) {
|
|
7
|
+
return this._channels.push([e, t]), this;
|
|
8
|
+
}
|
|
9
|
+
setFallback(e) {
|
|
10
|
+
return this._fallback = e, this;
|
|
11
|
+
}
|
|
12
|
+
entry(e) {
|
|
13
|
+
for (let [t, n] of this._channels) if (n.verify(e)) return t;
|
|
14
|
+
return this._fallback;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { e as Guard };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../events/startable.cjs`);var t=class extends e{};module.exports=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});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(`_criteria`),i=n(`_index`),a=class{constructor(){Object.defineProperty(this,r,{writable:!0,value:[[]]}),Object.defineProperty(this,i,{writable:!0,value:0})}addCriteria(t){return e(this,r)[r][e(this,i)[i]].push(t),this}next(){return e(this,i)[i]++,e(this,r)[r].push([]),this}verify(t){return e(this,r)[r].some(e=>e.every(e=>e(t)))}};exports.ContextVerifier=a;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//#region src/shared/logic/verifiers/context.verifier.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("_criteria"), i = /* @__PURE__ */ n("_index"), a = class {
|
|
11
|
+
constructor() {
|
|
12
|
+
Object.defineProperty(this, r, {
|
|
13
|
+
writable: !0,
|
|
14
|
+
value: [[]]
|
|
15
|
+
}), Object.defineProperty(this, i, {
|
|
16
|
+
writable: !0,
|
|
17
|
+
value: 0
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
addCriteria(t) {
|
|
21
|
+
return e(this, r)[r][e(this, i)[i]].push(t), this;
|
|
22
|
+
}
|
|
23
|
+
next() {
|
|
24
|
+
return e(this, i)[i]++, e(this, r)[r].push([]), this;
|
|
25
|
+
}
|
|
26
|
+
verify(t) {
|
|
27
|
+
return e(this, r)[r].some((e) => e.every((e) => e(t)));
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { a as ContextVerifier };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../hooks/use-device.cjs`),t=require(`./enum.verifier.cjs`);var n=new t.EnumVerifier([e.DeviceType.HORIZONTAL_MOBILE,e.DeviceType.VERTICAL_MOBILE]),r=new t.EnumVerifier([e.DeviceType.HORIZONTAL_TABLET,e.DeviceType.VERTICAL_TABLET]),i=new t.EnumVerifier([e.DeviceType.FULL_SCREEN_BROWSER,e.DeviceType.AMPLIFIED_BROWSER,e.DeviceType.MINIFIED_BROWSER]),a=new t.EnumVerifier([e.DeviceType.VERTICAL_MOBILE,e.DeviceType.HORIZONTAL_MOBILE,e.DeviceType.VERTICAL_TABLET,e.DeviceType.HORIZONTAL_TABLET]),o=new t.EnumVerifier([e.DeviceType.HORIZONTAL_MOBILE,e.DeviceType.HORIZONTAL_TABLET,e.DeviceType.AMPLIFIED_BROWSER]),s=new t.EnumVerifier([e.DeviceType.VERTICAL_MOBILE,e.DeviceType.VERTICAL_TABLET]),c=new t.EnumVerifier([e.DeviceType.VERTICAL_MOBILE,e.DeviceType.MINIFIED_BROWSER]),l=new t.EnumVerifier([e.DeviceType.HORIZONTAL_TABLET,e.DeviceType.FULL_SCREEN_BROWSER,e.DeviceType.AMPLIFIED_BROWSER]),u=new t.EnumVerifier([e.DeviceType.VERTICAL_MOBILE,e.DeviceType.HORIZONTAL_MOBILE,e.DeviceType.VERTICAL_TABLET,e.DeviceType.HORIZONTAL_TABLET]),d=new t.EnumVerifier([e.DeviceType.MINIFIED_BROWSER,e.DeviceType.VERTICAL_MOBILE,e.DeviceType.VERTICAL_TABLET]),f=new t.EnumVerifier([e.DeviceType.AMPLIFIED_BROWSER,e.DeviceType.HORIZONTAL_MOBILE,e.DeviceType.HORIZONTAL_TABLET]);exports.AmplifiedDeviceVerifier=f,exports.DesktopDeviceVerifier=i,exports.HorizontalDeviceVerifier=o,exports.MinifiedDeviceVerifier=d,exports.MobileDeviceVerifier=n,exports.NarrowDeviceVerifier=c,exports.NativeDeviceVerifier=a,exports.TabletDeviceVerifier=r,exports.TouchDeviceVerifier=u,exports.VerticalDeviceVerifier=s,exports.WideDeviceVerifier=l;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DeviceType } from '../../hooks/use-device';
|
|
2
|
+
import { EnumVerifier } from './enum.verifier';
|
|
3
|
+
export declare const MobileDeviceVerifier: EnumVerifier<DeviceType>;
|
|
4
|
+
export declare const TabletDeviceVerifier: EnumVerifier<DeviceType>;
|
|
5
|
+
export declare const DesktopDeviceVerifier: EnumVerifier<DeviceType>;
|
|
6
|
+
export declare const NativeDeviceVerifier: EnumVerifier<DeviceType>;
|
|
7
|
+
export declare const HorizontalDeviceVerifier: EnumVerifier<DeviceType>;
|
|
8
|
+
export declare const VerticalDeviceVerifier: EnumVerifier<DeviceType>;
|
|
9
|
+
export declare const NarrowDeviceVerifier: EnumVerifier<DeviceType>;
|
|
10
|
+
export declare const WideDeviceVerifier: EnumVerifier<DeviceType>;
|
|
11
|
+
export declare const TouchDeviceVerifier: EnumVerifier<DeviceType>;
|
|
12
|
+
export declare const MinifiedDeviceVerifier: EnumVerifier<DeviceType>;
|
|
13
|
+
export declare const AmplifiedDeviceVerifier: EnumVerifier<DeviceType>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DeviceType as e } from "../../hooks/use-device.esm";
|
|
2
|
+
import { EnumVerifier as t } from "./enum.verifier.esm";
|
|
3
|
+
//#region src/shared/logic/verifiers/device.verifier.registry.ts
|
|
4
|
+
var n = new t([e.HORIZONTAL_MOBILE, e.VERTICAL_MOBILE]), r = new t([e.HORIZONTAL_TABLET, e.VERTICAL_TABLET]), i = new t([
|
|
5
|
+
e.FULL_SCREEN_BROWSER,
|
|
6
|
+
e.AMPLIFIED_BROWSER,
|
|
7
|
+
e.MINIFIED_BROWSER
|
|
8
|
+
]), a = new t([
|
|
9
|
+
e.VERTICAL_MOBILE,
|
|
10
|
+
e.HORIZONTAL_MOBILE,
|
|
11
|
+
e.VERTICAL_TABLET,
|
|
12
|
+
e.HORIZONTAL_TABLET
|
|
13
|
+
]), o = new t([
|
|
14
|
+
e.HORIZONTAL_MOBILE,
|
|
15
|
+
e.HORIZONTAL_TABLET,
|
|
16
|
+
e.AMPLIFIED_BROWSER
|
|
17
|
+
]), s = new t([e.VERTICAL_MOBILE, e.VERTICAL_TABLET]), c = new t([e.VERTICAL_MOBILE, e.MINIFIED_BROWSER]), l = new t([
|
|
18
|
+
e.HORIZONTAL_TABLET,
|
|
19
|
+
e.FULL_SCREEN_BROWSER,
|
|
20
|
+
e.AMPLIFIED_BROWSER
|
|
21
|
+
]), u = new t([
|
|
22
|
+
e.VERTICAL_MOBILE,
|
|
23
|
+
e.HORIZONTAL_MOBILE,
|
|
24
|
+
e.VERTICAL_TABLET,
|
|
25
|
+
e.HORIZONTAL_TABLET
|
|
26
|
+
]), d = new t([
|
|
27
|
+
e.MINIFIED_BROWSER,
|
|
28
|
+
e.VERTICAL_MOBILE,
|
|
29
|
+
e.VERTICAL_TABLET
|
|
30
|
+
]), f = new t([
|
|
31
|
+
e.AMPLIFIED_BROWSER,
|
|
32
|
+
e.HORIZONTAL_MOBILE,
|
|
33
|
+
e.HORIZONTAL_TABLET
|
|
34
|
+
]);
|
|
35
|
+
//#endregion
|
|
36
|
+
export { f as AmplifiedDeviceVerifier, i as DesktopDeviceVerifier, o as HorizontalDeviceVerifier, d as MinifiedDeviceVerifier, n as MobileDeviceVerifier, c as NarrowDeviceVerifier, a as NativeDeviceVerifier, r as TabletDeviceVerifier, u as TouchDeviceVerifier, s as VerticalDeviceVerifier, l as WideDeviceVerifier };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./context.verifier.cjs`);var t=class extends e.ContextVerifier{constructor(e){super(),this.addCriteria(t=>e.includes(t))}};exports.EnumVerifier=t;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ContextVerifier as e } from "./context.verifier.esm";
|
|
2
|
+
//#region src/shared/logic/verifiers/enum.verifier.ts
|
|
3
|
+
var t = class extends e {
|
|
4
|
+
constructor(e) {
|
|
5
|
+
super(), this.addCriteria((t) => e.includes(t));
|
|
6
|
+
}
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as EnumVerifier };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./context.verifier.cjs`);var t=class extends e.ContextVerifier{addComparator(e,t,n){return this.addCriteria(r=>n?n(r[e],t):r[e]===t),this}};module.exports=t;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ContextVerifier as e } from "./context.verifier.esm";
|
|
2
|
+
//#region src/shared/logic/verifiers/value.verifier.ts
|
|
3
|
+
var t = class extends e {
|
|
4
|
+
addComparator(e, t, n) {
|
|
5
|
+
return this.addCriteria((r) => n ? n(r[e], t) : r[e] === t), this;
|
|
6
|
+
}
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t 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`);let n=require(`react/jsx-runtime`),r=require(`react`);r=e.__toESM(r);let i=require(`class-variance-authority`),a=require(`radix-ui`);var o=(0,i.cva)(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function s({className:e,variant:r=`default`,asChild:i=!1,...s}){return(0,n.jsx)(i?a.Slot.Root:`span`,{"data-slot":`badge`,"data-variant":r,className:t.cn(o({variant:r}),e),...s})}exports.Badge=s,exports.badgeVariants=o;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "link" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { cn as e } from "../lib/utils.esm";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import "react";
|
|
4
|
+
import { cva as n } from "class-variance-authority";
|
|
5
|
+
import { Slot as r } from "radix-ui";
|
|
6
|
+
//#region src/shared/ui/badge.tsx
|
|
7
|
+
var i = n("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
8
|
+
variants: { variant: {
|
|
9
|
+
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
10
|
+
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
11
|
+
destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
|
|
12
|
+
outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
|
|
13
|
+
ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
|
|
14
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
15
|
+
} },
|
|
16
|
+
defaultVariants: { variant: "default" }
|
|
17
|
+
});
|
|
18
|
+
function a({ className: n, variant: a = "default", asChild: o = !1, ...s }) {
|
|
19
|
+
return /* @__PURE__ */ t(o ? r.Root : "span", {
|
|
20
|
+
"data-slot": "badge",
|
|
21
|
+
"data-variant": a,
|
|
22
|
+
className: e(i({ variant: a }), n),
|
|
23
|
+
...s
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { a as Badge, i as badgeVariants };
|
|
@@ -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);let i=require(`radix-ui`),a=require(`lucide-react`);function o({className:e,...r}){return(0,n.jsx)(`nav`,{"aria-label":`breadcrumb`,"data-slot":`breadcrumb`,className:t.cn(e),...r})}function s({className:e,...r}){return(0,n.jsx)(`ol`,{"data-slot":`breadcrumb-list`,className:t.cn(`flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground sm:gap-2.5`,e),...r})}function c({className:e,...r}){return(0,n.jsx)(`li`,{"data-slot":`breadcrumb-item`,className:t.cn(`inline-flex items-center gap-1.5`,e),...r})}function l({asChild:e,className:r,...a}){return(0,n.jsx)(e?i.Slot.Root:`a`,{"data-slot":`breadcrumb-link`,className:t.cn(`transition-colors hover:text-foreground`,r),...a})}function u({className:e,...r}){return(0,n.jsx)(`span`,{"data-slot":`breadcrumb-page`,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:t.cn(`font-normal text-foreground`,e),...r})}function d({children:e,className:r,...i}){return(0,n.jsx)(`li`,{"data-slot":`breadcrumb-separator`,role:`presentation`,"aria-hidden":`true`,className:t.cn(`[&>svg]:size-3.5`,r),...i,children:e??(0,n.jsx)(a.ChevronRightIcon,{})})}function f({className:e,...r}){return(0,n.jsxs)(`span`,{"data-slot":`breadcrumb-ellipsis`,role:`presentation`,"aria-hidden":`true`,className:t.cn(`flex size-5 items-center justify-center [&>svg]:size-4`,e),...r,children:[(0,n.jsx)(a.MoreHorizontalIcon,{}),(0,n.jsx)(`span`,{className:`sr-only`,children:`More`})]})}exports.Breadcrumb=o,exports.BreadcrumbEllipsis=f,exports.BreadcrumbItem=c,exports.BreadcrumbLink=l,exports.BreadcrumbList=s,exports.BreadcrumbPage=u,exports.BreadcrumbSeparator=d;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function Breadcrumb({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<"a"> & {
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|