@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,104 @@
|
|
|
1
|
+
import e from "../../shared/logic/service/base.service.esm";
|
|
2
|
+
import { GLOBAL_LOGGER as t } from "../logger/logger.esm";
|
|
3
|
+
import { TEXT_CODER_SERVICE as n } from "../formatters/text-code/text-coder.service.esm";
|
|
4
|
+
import { CapacitorNfc as r } from "@capgo/capacitor-nfc";
|
|
5
|
+
import { toast as i } from "sonner";
|
|
6
|
+
//#region src/packages/nfc/nfc.service.ts
|
|
7
|
+
function a(e, t) {
|
|
8
|
+
if (!{}.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
var o = 0;
|
|
12
|
+
function s(e) {
|
|
13
|
+
return "__private_" + o++ + "_" + e;
|
|
14
|
+
}
|
|
15
|
+
var c = t.child("NFC_SERVICE"), l = /* @__PURE__ */ function(e) {
|
|
16
|
+
return e[e.EMPTY = 0] = "EMPTY", e[e.WELL_KNOWN = 1] = "WELL_KNOWN", e[e.MIME_MEDIA = 2] = "MIME_MEDIA", e[e.ABSOLUTE_URI = 3] = "ABSOLUTE_URI", e[e.EXTERNAL = 4] = "EXTERNAL", e[e.UNKNOWN = 5] = "UNKNOWN", e[e.UNCHANGED = 6] = "UNCHANGED", e[e.RESERVED = 7] = "RESERVED", e;
|
|
17
|
+
}({}), u = {
|
|
18
|
+
TEXT: [84],
|
|
19
|
+
URI: [85],
|
|
20
|
+
SMART_POSTER: [83, 112]
|
|
21
|
+
}, d = /* @__PURE__ */ s("isSupported"), f = /* @__PURE__ */ s("handlerKey"), p = /* @__PURE__ */ s("Listener"), m = /* @__PURE__ */ s("canCancel"), h = /* @__PURE__ */ s("instance"), g = class t extends e {
|
|
22
|
+
static get instance() {
|
|
23
|
+
return a(t, h)[h] || (a(t, h)[h] = new t()), a(t, h)[h];
|
|
24
|
+
}
|
|
25
|
+
constructor() {
|
|
26
|
+
super(), Object.defineProperty(this, d, {
|
|
27
|
+
writable: !0,
|
|
28
|
+
value: !1
|
|
29
|
+
}), Object.defineProperty(this, f, {
|
|
30
|
+
writable: !0,
|
|
31
|
+
value: null
|
|
32
|
+
}), Object.defineProperty(this, p, {
|
|
33
|
+
writable: !0,
|
|
34
|
+
value: null
|
|
35
|
+
}), Object.defineProperty(this, m, {
|
|
36
|
+
writable: !0,
|
|
37
|
+
value: !1
|
|
38
|
+
}), this.isSupported();
|
|
39
|
+
}
|
|
40
|
+
async isSupported() {
|
|
41
|
+
return a(this, d)[d] || (a(this, d)[d] = (await r.isSupported()).supported), a(this, d)[d];
|
|
42
|
+
}
|
|
43
|
+
async listenOnce({ key: e, event: t }) {
|
|
44
|
+
return await this.listen({
|
|
45
|
+
key: e,
|
|
46
|
+
event: async (n) => {
|
|
47
|
+
await t(n), await this.stop(e);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
async listen({ key: e, event: t }) {
|
|
52
|
+
if (!a(this, d)[d]) return c.error("NFC is not supported");
|
|
53
|
+
if (a(this, p)[p]) return c.error("NFC is already listening an Event");
|
|
54
|
+
a(this, f)[f] = e, await c.timeAsync(`NFC is listening ${e}`, async () => {
|
|
55
|
+
await r.startScanning({
|
|
56
|
+
invalidateAfterFirstRead: !1,
|
|
57
|
+
androidReaderModeFlags: 17
|
|
58
|
+
}), a(this, p)[p] = await r.addListener("nfcEvent", t);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
async write({ data: e, allowFormat: t = !1, on_error: a, type: o, tnf: s }) {
|
|
62
|
+
let c = `nfc_write_${Date.now()}`, d = Array.from(n.StringToBytes("es")), f = Array.from(n.StringToBytes(e)), p = [
|
|
63
|
+
d.length & 63,
|
|
64
|
+
...d,
|
|
65
|
+
...f
|
|
66
|
+
];
|
|
67
|
+
return s ??= l.WELL_KNOWN, o ??= "TEXT", await this.listenOnce({
|
|
68
|
+
key: c,
|
|
69
|
+
event: async (e) => {
|
|
70
|
+
i.success("NFC Tag Scanned");
|
|
71
|
+
try {
|
|
72
|
+
await r.write({
|
|
73
|
+
allowFormat: t,
|
|
74
|
+
records: [{
|
|
75
|
+
id: [],
|
|
76
|
+
type: u[o],
|
|
77
|
+
payload: p,
|
|
78
|
+
tnf: s
|
|
79
|
+
}]
|
|
80
|
+
}), i.success("NFC Tag Written");
|
|
81
|
+
} catch (e) {
|
|
82
|
+
i.error("NFC Tag Write Failed"), a && a(e), this.stop(c);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}), c;
|
|
86
|
+
}
|
|
87
|
+
async stop(e) {
|
|
88
|
+
if (!a(this, p)[p]) return c.error("NFC is not listening an Event");
|
|
89
|
+
if (!a(this, m)[m] && e !== a(this, f)[f]) return c.error("NFC Service is Resgarding an Important Event, make that service cancel first");
|
|
90
|
+
await c.timeAsync(`NFC is stop ${e}`, async () => {
|
|
91
|
+
await r.stopScanning(), a(this, p)[p] && (await a(this, p)[p].remove(), a(this, p)[p] = null), a(this, f)[f] && (a(this, f)[f] = null), a(this, m)[m] = !1;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
async forceCancel() {
|
|
95
|
+
a(this, m)[m] = !0, await this.stop();
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
Object.defineProperty(g, h, {
|
|
99
|
+
writable: !0,
|
|
100
|
+
value: void 0
|
|
101
|
+
});
|
|
102
|
+
var _ = g.instance;
|
|
103
|
+
//#endregion
|
|
104
|
+
export { _ as NFC_SERVICE, l as NFC_TNF, u as NFC_TYPE, g as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../../_virtual/_rolldown/runtime.cjs`);let t=require(`axios`);t=e.__toESM(t);function n(e,t){if(!{}.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var r=0;function i(e){return`__private_`+ r+++`_`+e}var a=i(`_axios`),o=class{constructor({config:e,req_interceptors:r,res_interceptors:i}){Object.defineProperty(this,a,{writable:!0,value:void 0}),n(this,a)[a]=t.default.create(e);for(let e of r??[])n(this,a)[a].interceptors.request.use(e.onFulfilled,e.onRejected);for(let e of i??[])n(this,a)[a].interceptors.response.use(e.onFulfilled,e.onRejected)}get service(){return n(this,a)[a]}};module.exports=o;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosResponse, CreateAxiosDefaults, InternalAxiosRequestConfig } from 'axios';
|
|
2
|
+
import { AxiosInterceptor } from './interceptor.builder';
|
|
3
|
+
export interface BaseAxiosConnectorProps {
|
|
4
|
+
config: CreateAxiosDefaults;
|
|
5
|
+
req_interceptors?: AxiosInterceptor<InternalAxiosRequestConfig<unknown>>[];
|
|
6
|
+
res_interceptors?: AxiosInterceptor<AxiosResponse<unknown>>[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Clase base para los conectores de Axios.
|
|
10
|
+
* Proporciona una instancia de Axios y un metodo para verificar la salud del conector.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import AxiosConnector from "./base.connector"
|
|
15
|
+
*
|
|
16
|
+
* class MyConnector extends AxiosConnector {
|
|
17
|
+
* constructor(config: YourConfig = {}) {
|
|
18
|
+
* super(config // comaptible con CreateAxiosDefaults)
|
|
19
|
+
* }
|
|
20
|
+
*
|
|
21
|
+
* public async healthCheck(): Promise<boolean> {
|
|
22
|
+
* // implementa tu logica de health check
|
|
23
|
+
* return this.service.get("/health").then(() => true).catch(() => false)
|
|
24
|
+
* }
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export default abstract class BaseAxiosConnector {
|
|
29
|
+
#private;
|
|
30
|
+
constructor({ config, req_interceptors, res_interceptors }: BaseAxiosConnectorProps);
|
|
31
|
+
get service(): AxiosInstance;
|
|
32
|
+
/**
|
|
33
|
+
* Obligatorio implementar para verificar la salud del conector
|
|
34
|
+
* @returns {Promise<boolean>} True si el conector esta sano, false en caso contrario
|
|
35
|
+
*/
|
|
36
|
+
abstract healthCheck(): Promise<boolean>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import e from "axios";
|
|
2
|
+
//#region src/packages/requests/axios/base.connector.ts
|
|
3
|
+
function t(e, t) {
|
|
4
|
+
if (!{}.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
|
|
5
|
+
return e;
|
|
6
|
+
}
|
|
7
|
+
var n = 0;
|
|
8
|
+
function r(e) {
|
|
9
|
+
return "__private_" + n++ + "_" + e;
|
|
10
|
+
}
|
|
11
|
+
var i = /* @__PURE__ */ r("_axios"), a = class {
|
|
12
|
+
constructor({ config: n, req_interceptors: r, res_interceptors: a }) {
|
|
13
|
+
Object.defineProperty(this, i, {
|
|
14
|
+
writable: !0,
|
|
15
|
+
value: void 0
|
|
16
|
+
}), t(this, i)[i] = e.create(n);
|
|
17
|
+
for (let e of r ?? []) t(this, i)[i].interceptors.request.use(e.onFulfilled, e.onRejected);
|
|
18
|
+
for (let e of a ?? []) t(this, i)[i].interceptors.response.use(e.onFulfilled, e.onRejected);
|
|
19
|
+
}
|
|
20
|
+
get service() {
|
|
21
|
+
return t(this, i)[i];
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { a as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../../shared/logic/service/base.service.cjs`);var t=class extends e{constructor({connector:e}){super(),this.connector=void 0,this.connector=e,this.onReady(()=>{this.connector.healthCheck()})}};module.exports=t;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { default as AxiosConnector } from './base.connector';
|
|
2
|
+
import { default as BaseService } from '../../../shared/logic/service/base.service';
|
|
3
|
+
export interface BaseAxiosServiceProps {
|
|
4
|
+
connector: AxiosConnector;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Clase base para los servicios que utilizan Axios.
|
|
8
|
+
* Proporciona una instancia de AxiosConnector.
|
|
9
|
+
* Si quieres crear una base de axios con otra configuracion, crea una clase que extienda de esta.
|
|
10
|
+
* Extiende las peticiones como metodos de clase del servicio
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import BaseAxiosService from "./base.service"
|
|
15
|
+
* import AxiosConnector from "./default.connector"
|
|
16
|
+
*
|
|
17
|
+
* class MyService extends BaseAxiosService {
|
|
18
|
+
* constructor(connector: AxiosConnector) {
|
|
19
|
+
* super({ connector })
|
|
20
|
+
* }
|
|
21
|
+
*
|
|
22
|
+
* public async getSomething() {
|
|
23
|
+
* return this.connector.service.get("/something")
|
|
24
|
+
* }
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
* Por ultimo exporta la clase como default, y crea una instancia de esta para hacer un singleton
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```typescript
|
|
31
|
+
* import BaseAxiosService from "./base.service"
|
|
32
|
+
* import AxiosConnector from "./default.connector"
|
|
33
|
+
*
|
|
34
|
+
* const connector = new AxiosConnector()
|
|
35
|
+
* const service = new BaseAxiosService({ connector })
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export default abstract class BaseAxiosService extends BaseService {
|
|
39
|
+
protected connector: AxiosConnector;
|
|
40
|
+
constructor({ connector }: BaseAxiosServiceProps);
|
|
41
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e from "../../../shared/logic/service/base.service.esm";
|
|
2
|
+
//#region src/packages/requests/axios/base.service.ts
|
|
3
|
+
var t = class extends e {
|
|
4
|
+
constructor({ connector: e }) {
|
|
5
|
+
super(), this.connector = void 0, this.connector = e, this.onReady(() => {
|
|
6
|
+
this.connector.healthCheck();
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=class{constructor(){this.interceptor=void 0,this.interceptor={onFulfilled:void 0,onRejected:void 0}}withOnFulfilled(e){return this.interceptor.onFulfilled=e,this}withOnRejected(e){return this.interceptor.onRejected=e,this}build(){return this.interceptor}};exports.InterceptorBuilder=e;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface AxiosInterceptor<T> {
|
|
2
|
+
onFulfilled?: (value: T) => T;
|
|
3
|
+
onRejected?: (error: any) => Promise<any>;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Builder para crear interceptores de Axios.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import { InterceptorBuilder } from "./interceptor.builder"
|
|
11
|
+
*
|
|
12
|
+
* const interceptor = new InterceptorBuilder<AxiosRequestConfig>()
|
|
13
|
+
* .withOnFulfilled((config) => {
|
|
14
|
+
* config.headers["Authorization"] = "Bearer " + localStorage.getItem("token")
|
|
15
|
+
* return config
|
|
16
|
+
* })
|
|
17
|
+
* .build()
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class InterceptorBuilder<T> {
|
|
21
|
+
private interceptor;
|
|
22
|
+
constructor();
|
|
23
|
+
withOnFulfilled(onFulfilled: (value: T) => T): this;
|
|
24
|
+
withOnRejected(onRejected: (error: any) => Promise<any>): this;
|
|
25
|
+
build(): AxiosInterceptor<T>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region src/packages/requests/axios/interceptor.builder.ts
|
|
2
|
+
var e = class {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.interceptor = void 0, this.interceptor = {
|
|
5
|
+
onFulfilled: void 0,
|
|
6
|
+
onRejected: void 0
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
withOnFulfilled(e) {
|
|
10
|
+
return this.interceptor.onFulfilled = e, this;
|
|
11
|
+
}
|
|
12
|
+
withOnRejected(e) {
|
|
13
|
+
return this.interceptor.onRejected = e, this;
|
|
14
|
+
}
|
|
15
|
+
build() {
|
|
16
|
+
return this.interceptor;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { e as InterceptorBuilder };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`react/jsx-runtime`),t=require(`react-router`),n=require(`react-router/dom`);function r({routes:r}){return(0,e.jsx)(n.RouterProvider,{router:(0,t.createBrowserRouter)([r.router])})}module.exports=r;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { createBrowserRouter as t } from "react-router";
|
|
3
|
+
import { RouterProvider as n } from "react-router/dom";
|
|
4
|
+
//#region src/packages/router/build.router.tsx
|
|
5
|
+
function r({ routes: r }) {
|
|
6
|
+
return /* @__PURE__ */ e(n, { router: t([r.router]) });
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { r as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=class{constructor(){this._router={},this._routes=[],this.index=null,this._meta={}}setPath(e){return this._router.path=e,this}setLayout(e){return this._router.Component=e,this}getLayout(){return this._router.Component??null}setIndex(e,t={}){return this.index={index:!0,Component:e,handle:t},this}onError(e){return this._router.ErrorBoundary=e,this}appendChilds(...e){return this._routes.push(...e),this}getChilds(){return this._routes}setMeta({...e}){return this._meta={...this._meta,...e},this}getMeta(){return this._meta}getPath(){return this._router.path}get router(){let e=[];if(this.index&&e.push(this.index),this._routes.forEach(t=>e.push(t.router)),this._routes.length==0&&!this.index)throw Error(`You must append at least one`);return this._router.path||(this._router.path=``),this._router.children=e,this._router.handle=this._meta,this._router}};module.exports=e;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { RouteObject } from 'react-router';
|
|
2
|
+
export default class RouteBuilder<T extends {} = {}> {
|
|
3
|
+
private _router;
|
|
4
|
+
private _routes;
|
|
5
|
+
private index;
|
|
6
|
+
private _meta;
|
|
7
|
+
constructor();
|
|
8
|
+
/**
|
|
9
|
+
* Set path name to router
|
|
10
|
+
* @param path
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
setPath(path: string): this;
|
|
14
|
+
/**
|
|
15
|
+
* Set Layout to Wrap Children, aviod if not needed
|
|
16
|
+
* @param layout
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
setLayout(layout: React.ComponentType): this;
|
|
20
|
+
getLayout(): React.ComponentType | null;
|
|
21
|
+
/**
|
|
22
|
+
* Set Index Page Component if required
|
|
23
|
+
* @param main
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
setIndex(main: React.FC, meta?: Partial<T>): this;
|
|
27
|
+
onError(error: React.ComponentType): this;
|
|
28
|
+
/**
|
|
29
|
+
* Append Routers as Child Routers
|
|
30
|
+
* @param child_routers
|
|
31
|
+
* @returns
|
|
32
|
+
*/
|
|
33
|
+
appendChilds(...child_routers: RouteBuilder[]): this;
|
|
34
|
+
getChilds(): RouteBuilder[];
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
setMeta({ ...new_meta }: Partial<T>): this;
|
|
40
|
+
getMeta(): T;
|
|
41
|
+
getPath(): string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Export routes to format
|
|
44
|
+
*/
|
|
45
|
+
get router(): RouteObject;
|
|
46
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
//#region src/packages/router/route.builder.ts
|
|
2
|
+
var e = class {
|
|
3
|
+
constructor() {
|
|
4
|
+
this._router = {}, this._routes = [], this.index = null, this._meta = {};
|
|
5
|
+
}
|
|
6
|
+
setPath(e) {
|
|
7
|
+
return this._router.path = e, this;
|
|
8
|
+
}
|
|
9
|
+
setLayout(e) {
|
|
10
|
+
return this._router.Component = e, this;
|
|
11
|
+
}
|
|
12
|
+
getLayout() {
|
|
13
|
+
return this._router.Component ?? null;
|
|
14
|
+
}
|
|
15
|
+
setIndex(e, t = {}) {
|
|
16
|
+
return this.index = {
|
|
17
|
+
index: !0,
|
|
18
|
+
Component: e,
|
|
19
|
+
handle: t
|
|
20
|
+
}, this;
|
|
21
|
+
}
|
|
22
|
+
onError(e) {
|
|
23
|
+
return this._router.ErrorBoundary = e, this;
|
|
24
|
+
}
|
|
25
|
+
appendChilds(...e) {
|
|
26
|
+
return this._routes.push(...e), this;
|
|
27
|
+
}
|
|
28
|
+
getChilds() {
|
|
29
|
+
return this._routes;
|
|
30
|
+
}
|
|
31
|
+
setMeta({ ...e }) {
|
|
32
|
+
return this._meta = {
|
|
33
|
+
...this._meta,
|
|
34
|
+
...e
|
|
35
|
+
}, this;
|
|
36
|
+
}
|
|
37
|
+
getMeta() {
|
|
38
|
+
return this._meta;
|
|
39
|
+
}
|
|
40
|
+
getPath() {
|
|
41
|
+
return this._router.path;
|
|
42
|
+
}
|
|
43
|
+
get router() {
|
|
44
|
+
let e = [];
|
|
45
|
+
if (this.index && e.push(this.index), this._routes.forEach((t) => e.push(t.router)), this._routes.length == 0 && !this.index) throw Error("You must append at least one");
|
|
46
|
+
return this._router.path || (this._router.path = ""), this._router.children = e, this._router.handle = this._meta, this._router;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
export { e as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e={QR_CODE:0,AZTEC:1,CODABAR:2,CODE_39:3,CODE_93:4,CODE_128:5,DATA_MATRIX:6,MAXICODE:7,ITF:8,EAN_13:9,EAN_8:10,PDF_417:11,RSS_14:12,RSS_EXPANDED:13,UPC_A:14,UPC_E:15,UPC_EAN_EXTENSION:16,ALL:17},t={ALL:{label:`Todos`,description:`Cualquier formato soportado`},QR_CODE:{label:`QR Code`,description:`Código QR estándar`},AZTEC:{label:`Aztec`,description:`Compacto, sin zona de silencio`},CODABAR:{label:`Codabar`,description:`Bibliotecas y bancos de sangre`},CODE_39:{label:`Code 39`,description:`Logística industrial`},CODE_93:{label:`Code 93`,description:`Variante densa de Code 39`},CODE_128:{label:`Code 128`,description:`GS1 y envíos`},DATA_MATRIX:{label:`Data Matrix`,description:`Alta densidad, tamaño pequeño`},MAXICODE:{label:`MaxiCode`,description:`UPS y correo postal`},ITF:{label:`ITF`,description:`Cajas de cartón`},EAN_13:{label:`EAN-13`,description:`Productos de consumo`},EAN_8:{label:`EAN-8`,description:`Productos pequeños`},PDF_417:{label:`PDF 417`,description:`Documentos de identidad, boarding passes`},RSS_14:{label:`RSS 14`,description:`Trazabilidad GS1`},RSS_EXPANDED:{label:`RSS Expanded`,description:`GS1 con atributos adicionales`},UPC_A:{label:`UPC-A`,description:`Productos norteamericanos`},UPC_E:{label:`UPC-E`,description:`Versión comprimida de UPC-A`},UPC_EAN_EXTENSION:{label:`UPC/EAN Ext.`,description:`Suplemento de 2 o 5 dígitos`}};exports.BARCODE_FORMAT_META=t,exports.BarcodeFormat=e;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formatos soportados por @capacitor/barcode-scanner.
|
|
3
|
+
* Valores numéricos de Html5QrcodeSupportedFormats + opción ALL propia del plugin.
|
|
4
|
+
*
|
|
5
|
+
* Uso: pasar el número directamente como `hint` en scanBarcode({ hint: BarcodeFormat.QR_CODE })
|
|
6
|
+
*/
|
|
7
|
+
export declare const BarcodeFormat: {
|
|
8
|
+
/** Código QR estándar */
|
|
9
|
+
readonly QR_CODE: 0;
|
|
10
|
+
/** Aztec — compacto, sin zona de silencio */
|
|
11
|
+
readonly AZTEC: 1;
|
|
12
|
+
/** Codabar — bibliotecas y bancos de sangre */
|
|
13
|
+
readonly CODABAR: 2;
|
|
14
|
+
/** Code 39 — logística industrial */
|
|
15
|
+
readonly CODE_39: 3;
|
|
16
|
+
/** Code 93 — variante densa de Code 39 */
|
|
17
|
+
readonly CODE_93: 4;
|
|
18
|
+
/** Code 128 — GS1, envíos */
|
|
19
|
+
readonly CODE_128: 5;
|
|
20
|
+
/** Data Matrix — pequeño y de alta densidad */
|
|
21
|
+
readonly DATA_MATRIX: 6;
|
|
22
|
+
/** MaxiCode — UPS, correo postal */
|
|
23
|
+
readonly MAXICODE: 7;
|
|
24
|
+
/** ITF (Interleaved 2 of 5) — cajas de cartón */
|
|
25
|
+
readonly ITF: 8;
|
|
26
|
+
/** EAN-13 — productos de consumo */
|
|
27
|
+
readonly EAN_13: 9;
|
|
28
|
+
/** EAN-8 — productos pequeños */
|
|
29
|
+
readonly EAN_8: 10;
|
|
30
|
+
/** PDF417 — documentos de identidad, boarding passes */
|
|
31
|
+
readonly PDF_417: 11;
|
|
32
|
+
/** RSS 14 — trazabilidad GS1 */
|
|
33
|
+
readonly RSS_14: 12;
|
|
34
|
+
/** RSS Expanded — GS1 con atributos adicionales */
|
|
35
|
+
readonly RSS_EXPANDED: 13;
|
|
36
|
+
/** UPC-A — productos norteamericanos */
|
|
37
|
+
readonly UPC_A: 14;
|
|
38
|
+
/** UPC-E — versión comprimida de UPC-A */
|
|
39
|
+
readonly UPC_E: 15;
|
|
40
|
+
/** UPC/EAN Extension — suplemento de 2 o 5 dígitos */
|
|
41
|
+
readonly UPC_EAN_EXTENSION: 16;
|
|
42
|
+
/** ALL — escanea cualquier formato soportado */
|
|
43
|
+
readonly ALL: 17;
|
|
44
|
+
};
|
|
45
|
+
export type BarcodeFormatKey = keyof typeof BarcodeFormat;
|
|
46
|
+
export type BarcodeFormatValue = (typeof BarcodeFormat)[BarcodeFormatKey];
|
|
47
|
+
/** Metadatos legibles para UI */
|
|
48
|
+
export declare const BARCODE_FORMAT_META: Record<BarcodeFormatKey, {
|
|
49
|
+
label: string;
|
|
50
|
+
description: string;
|
|
51
|
+
}>;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
//#region src/packages/scanner/scanner.formats.ts
|
|
2
|
+
var e = {
|
|
3
|
+
QR_CODE: 0,
|
|
4
|
+
AZTEC: 1,
|
|
5
|
+
CODABAR: 2,
|
|
6
|
+
CODE_39: 3,
|
|
7
|
+
CODE_93: 4,
|
|
8
|
+
CODE_128: 5,
|
|
9
|
+
DATA_MATRIX: 6,
|
|
10
|
+
MAXICODE: 7,
|
|
11
|
+
ITF: 8,
|
|
12
|
+
EAN_13: 9,
|
|
13
|
+
EAN_8: 10,
|
|
14
|
+
PDF_417: 11,
|
|
15
|
+
RSS_14: 12,
|
|
16
|
+
RSS_EXPANDED: 13,
|
|
17
|
+
UPC_A: 14,
|
|
18
|
+
UPC_E: 15,
|
|
19
|
+
UPC_EAN_EXTENSION: 16,
|
|
20
|
+
ALL: 17
|
|
21
|
+
}, t = {
|
|
22
|
+
ALL: {
|
|
23
|
+
label: "Todos",
|
|
24
|
+
description: "Cualquier formato soportado"
|
|
25
|
+
},
|
|
26
|
+
QR_CODE: {
|
|
27
|
+
label: "QR Code",
|
|
28
|
+
description: "Código QR estándar"
|
|
29
|
+
},
|
|
30
|
+
AZTEC: {
|
|
31
|
+
label: "Aztec",
|
|
32
|
+
description: "Compacto, sin zona de silencio"
|
|
33
|
+
},
|
|
34
|
+
CODABAR: {
|
|
35
|
+
label: "Codabar",
|
|
36
|
+
description: "Bibliotecas y bancos de sangre"
|
|
37
|
+
},
|
|
38
|
+
CODE_39: {
|
|
39
|
+
label: "Code 39",
|
|
40
|
+
description: "Logística industrial"
|
|
41
|
+
},
|
|
42
|
+
CODE_93: {
|
|
43
|
+
label: "Code 93",
|
|
44
|
+
description: "Variante densa de Code 39"
|
|
45
|
+
},
|
|
46
|
+
CODE_128: {
|
|
47
|
+
label: "Code 128",
|
|
48
|
+
description: "GS1 y envíos"
|
|
49
|
+
},
|
|
50
|
+
DATA_MATRIX: {
|
|
51
|
+
label: "Data Matrix",
|
|
52
|
+
description: "Alta densidad, tamaño pequeño"
|
|
53
|
+
},
|
|
54
|
+
MAXICODE: {
|
|
55
|
+
label: "MaxiCode",
|
|
56
|
+
description: "UPS y correo postal"
|
|
57
|
+
},
|
|
58
|
+
ITF: {
|
|
59
|
+
label: "ITF",
|
|
60
|
+
description: "Cajas de cartón"
|
|
61
|
+
},
|
|
62
|
+
EAN_13: {
|
|
63
|
+
label: "EAN-13",
|
|
64
|
+
description: "Productos de consumo"
|
|
65
|
+
},
|
|
66
|
+
EAN_8: {
|
|
67
|
+
label: "EAN-8",
|
|
68
|
+
description: "Productos pequeños"
|
|
69
|
+
},
|
|
70
|
+
PDF_417: {
|
|
71
|
+
label: "PDF 417",
|
|
72
|
+
description: "Documentos de identidad, boarding passes"
|
|
73
|
+
},
|
|
74
|
+
RSS_14: {
|
|
75
|
+
label: "RSS 14",
|
|
76
|
+
description: "Trazabilidad GS1"
|
|
77
|
+
},
|
|
78
|
+
RSS_EXPANDED: {
|
|
79
|
+
label: "RSS Expanded",
|
|
80
|
+
description: "GS1 con atributos adicionales"
|
|
81
|
+
},
|
|
82
|
+
UPC_A: {
|
|
83
|
+
label: "UPC-A",
|
|
84
|
+
description: "Productos norteamericanos"
|
|
85
|
+
},
|
|
86
|
+
UPC_E: {
|
|
87
|
+
label: "UPC-E",
|
|
88
|
+
description: "Versión comprimida de UPC-A"
|
|
89
|
+
},
|
|
90
|
+
UPC_EAN_EXTENSION: {
|
|
91
|
+
label: "UPC/EAN Ext.",
|
|
92
|
+
description: "Suplemento de 2 o 5 dígitos"
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
//#endregion
|
|
96
|
+
export { t as BARCODE_FORMAT_META, e as BarcodeFormat };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`./scanner.formats.cjs`);let t=require(`@capacitor/barcode-scanner`);var n=new class{async scan(n={}){let r=await t.CapacitorBarcodeScanner.scanBarcode({hint:n.format??e.BarcodeFormat.ALL,cameraDirection:n.cameraDirection??t.CapacitorBarcodeScannerCameraDirection.BACK,scanOrientation:t.CapacitorBarcodeScannerScanOrientation.ADAPTIVE,scanInstructions:n.instructions??`Apuntá la cámara al código`,scanButton:!1});return r.ScanResult?{content:r.ScanResult,format:r.format,scannedAt:new Date().toLocaleTimeString()}:null}async scanQr(t){return this.scan({format:e.BarcodeFormat.QR_CODE,instructions:t})}async scanAll(t){return this.scan({format:e.BarcodeFormat.ALL,instructions:t})}};exports.SCANNER_SERVICE=n;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CapacitorBarcodeScannerCameraDirection } from '@capacitor/barcode-scanner';
|
|
2
|
+
import { BarcodeFormatValue } from './scanner.formats';
|
|
3
|
+
export interface ScanOptions {
|
|
4
|
+
/** Formato a escanear. Default: ALL (17) */
|
|
5
|
+
format?: BarcodeFormatValue;
|
|
6
|
+
/** Texto de instrucción en pantalla */
|
|
7
|
+
instructions?: string;
|
|
8
|
+
/** Dirección de cámara. Default: BACK */
|
|
9
|
+
cameraDirection?: CapacitorBarcodeScannerCameraDirection;
|
|
10
|
+
}
|
|
11
|
+
export interface ScanResult {
|
|
12
|
+
content: string;
|
|
13
|
+
format: number;
|
|
14
|
+
scannedAt: string;
|
|
15
|
+
}
|
|
16
|
+
declare class ScannerService {
|
|
17
|
+
/**
|
|
18
|
+
* Lanza el escáner nativo y devuelve el resultado.
|
|
19
|
+
* Bloqueante hasta que el usuario escanea o cancela.
|
|
20
|
+
*/
|
|
21
|
+
scan(options?: ScanOptions): Promise<ScanResult | null>;
|
|
22
|
+
/**
|
|
23
|
+
* Escanea solo QR codes.
|
|
24
|
+
*/
|
|
25
|
+
scanQr(instructions?: string): Promise<ScanResult | null>;
|
|
26
|
+
/**
|
|
27
|
+
* Escanea cualquier formato de código de barras.
|
|
28
|
+
*/
|
|
29
|
+
scanAll(instructions?: string): Promise<ScanResult | null>;
|
|
30
|
+
}
|
|
31
|
+
export declare const SCANNER_SERVICE: ScannerService;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BarcodeFormat as e } from "./scanner.formats.esm";
|
|
2
|
+
import { CapacitorBarcodeScanner as t, CapacitorBarcodeScannerCameraDirection as n, CapacitorBarcodeScannerScanOrientation as r } from "@capacitor/barcode-scanner";
|
|
3
|
+
var i = new class {
|
|
4
|
+
async scan(i = {}) {
|
|
5
|
+
let a = await t.scanBarcode({
|
|
6
|
+
hint: i.format ?? e.ALL,
|
|
7
|
+
cameraDirection: i.cameraDirection ?? n.BACK,
|
|
8
|
+
scanOrientation: r.ADAPTIVE,
|
|
9
|
+
scanInstructions: i.instructions ?? "Apuntá la cámara al código",
|
|
10
|
+
scanButton: !1
|
|
11
|
+
});
|
|
12
|
+
return a.ScanResult ? {
|
|
13
|
+
content: a.ScanResult,
|
|
14
|
+
format: a.format,
|
|
15
|
+
scannedAt: (/* @__PURE__ */ new Date()).toLocaleTimeString()
|
|
16
|
+
} : null;
|
|
17
|
+
}
|
|
18
|
+
async scanQr(t) {
|
|
19
|
+
return this.scan({
|
|
20
|
+
format: e.QR_CODE,
|
|
21
|
+
instructions: t
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
async scanAll(t) {
|
|
25
|
+
return this.scan({
|
|
26
|
+
format: e.ALL,
|
|
27
|
+
instructions: t
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}();
|
|
31
|
+
//#endregion
|
|
32
|
+
export { i as SCANNER_SERVICE };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./sheets.connector.cjs`),t=require(`./sheets.service.cjs`);exports.SHEETS_SERVICE=t.SHEETS_SERVICE,exports.SheetsAxiosConnector=e.SheetsAxiosConnector,exports.SheetsService=t.SheetsService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../requests/axios/base.connector.cjs`);var t=class extends e{constructor(e){super({config:{baseURL:`https://sheets.googleapis.com/v4/spreadsheets`,headers:{...e?{Authorization:`Bearer ${e}`}:{},"Content-Type":`application/json`}}})}setAccessToken(e){this.service.defaults.headers.common.Authorization=`Bearer ${e}`}async healthCheck(){return!0}};exports.SheetsAxiosConnector=t;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as BaseAxiosConnector } from '../requests/axios/base.connector';
|
|
2
|
+
export declare class SheetsAxiosConnector extends BaseAxiosConnector {
|
|
3
|
+
constructor(access_token?: string);
|
|
4
|
+
setAccessToken(access_token: string): void;
|
|
5
|
+
healthCheck(): Promise<boolean>;
|
|
6
|
+
}
|