@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,186 @@
|
|
|
1
|
+
import { TRACE_REGISTRY as e } from "./registry.esm";
|
|
2
|
+
//#region src/packages/logger/logger.ts
|
|
3
|
+
var t = {
|
|
4
|
+
debug: 0,
|
|
5
|
+
info: 1,
|
|
6
|
+
success: 2,
|
|
7
|
+
warn: 3,
|
|
8
|
+
error: 4,
|
|
9
|
+
silent: 99
|
|
10
|
+
}, n = {
|
|
11
|
+
debug: "color:#94a3b8;font-weight:600;",
|
|
12
|
+
info: "color:#38bdf8;font-weight:600;",
|
|
13
|
+
success: "color:#4ade80;font-weight:600;",
|
|
14
|
+
warn: "color:#fb923c;font-weight:600;",
|
|
15
|
+
error: "color:#f87171;font-weight:600;",
|
|
16
|
+
context: "color:#a78bfa;font-weight:700;background:#1e1b4b;padding:1px 4px;border-radius:3px;",
|
|
17
|
+
trace: "color:#f0abfc;font-weight:700;background:#4a044e;padding:1px 4px;border-radius:3px;",
|
|
18
|
+
ended: "color:#f87171;font-weight:700;",
|
|
19
|
+
dim: "color:#475569;"
|
|
20
|
+
}, r = {
|
|
21
|
+
debug: "[⬡ DEBUG ]",
|
|
22
|
+
info: "[◈ INFO ]",
|
|
23
|
+
success: "[◉ SUCCESS]",
|
|
24
|
+
warn: "[⚠ WARN ]",
|
|
25
|
+
error: "[✖ ERROR ]",
|
|
26
|
+
silent: ""
|
|
27
|
+
}, i = class i {
|
|
28
|
+
constructor(e) {
|
|
29
|
+
this.context = void 0, this.minLevel = void 0, this.capture = void 0, this.broadcast = void 0, this.traceId = void 0, this.parent = void 0, this.startedAt = void 0, this.history = void 0, this.traces = [], this.ended = !1, this.context = e.context, this.capture = e.capture ?? !1, this.broadcast = e.broadcast ?? !1, this.traceId = e._traceId, this.parent = e._parent, this.startedAt = e._startedAt, this.history = e._history ?? [], this.minLevel = t[e.minLevel ?? "warn"];
|
|
30
|
+
}
|
|
31
|
+
debug(e, t) {
|
|
32
|
+
this._log("debug", e, t);
|
|
33
|
+
}
|
|
34
|
+
info(e, t) {
|
|
35
|
+
this._log("info", e, t);
|
|
36
|
+
}
|
|
37
|
+
success(e, t) {
|
|
38
|
+
this._log("success", e, t);
|
|
39
|
+
}
|
|
40
|
+
warn(e, t) {
|
|
41
|
+
this._log("warn", e, t);
|
|
42
|
+
}
|
|
43
|
+
error(e, t) {
|
|
44
|
+
this._log("error", e, t);
|
|
45
|
+
}
|
|
46
|
+
trace(e) {
|
|
47
|
+
let t = e ?? this._generateTraceId(), n = (/* @__PURE__ */ new Date()).toISOString();
|
|
48
|
+
return new i({
|
|
49
|
+
context: this.context,
|
|
50
|
+
minLevel: this._levelName(),
|
|
51
|
+
capture: this.capture,
|
|
52
|
+
broadcast: this.broadcast,
|
|
53
|
+
_traceId: t,
|
|
54
|
+
_history: [],
|
|
55
|
+
_parent: this,
|
|
56
|
+
_startedAt: n
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
child(e) {
|
|
60
|
+
return new i({
|
|
61
|
+
context: `${this.context} › ${e}`,
|
|
62
|
+
minLevel: this._levelName(),
|
|
63
|
+
capture: this.capture,
|
|
64
|
+
broadcast: this.broadcast,
|
|
65
|
+
_traceId: this.traceId,
|
|
66
|
+
_history: this.history,
|
|
67
|
+
_parent: this.parent,
|
|
68
|
+
_startedAt: this.startedAt
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
end(e = "ok") {
|
|
72
|
+
if (!this.traceId) {
|
|
73
|
+
console.warn("[Logger] end() llamado en un logger de módulo, no en un trace. Ignorado.");
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
if (this.ended) {
|
|
77
|
+
console.warn(`[Logger] end() llamado más de una vez en trace #${this.traceId}. Ignorado.`);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
this.ended = !0;
|
|
81
|
+
let t = (/* @__PURE__ */ new Date()).toISOString(), r = this.startedAt ?? t, i = new Date(t).getTime() - new Date(r).getTime(), a = {
|
|
82
|
+
traceId: this.traceId,
|
|
83
|
+
context: this.context,
|
|
84
|
+
startedAt: r,
|
|
85
|
+
endedAt: t,
|
|
86
|
+
durationMs: i,
|
|
87
|
+
status: e,
|
|
88
|
+
entries: [...this.history]
|
|
89
|
+
};
|
|
90
|
+
this.parent?._receiveTrace(a);
|
|
91
|
+
let o = e === "ok" ? "◎" : "✖", s = e === "ok" ? n.success : n.error;
|
|
92
|
+
console.log(`%c${o} %c${this.context}%c #${this.traceId}%c trace ended — ${i}ms [${e}]`, s, n.context, n.trace, n.dim);
|
|
93
|
+
}
|
|
94
|
+
async timeAsync(e, t) {
|
|
95
|
+
let n = this.child(e), r = performance.now();
|
|
96
|
+
n.debug("starting");
|
|
97
|
+
try {
|
|
98
|
+
let e = await t(n), i = (performance.now() - r).toFixed(1);
|
|
99
|
+
return n.success(`done ${i}ms`), e;
|
|
100
|
+
} catch (e) {
|
|
101
|
+
let t = (performance.now() - r).toFixed(1);
|
|
102
|
+
throw n.error(`failed ${t}ms`, e), e;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
time(e, t) {
|
|
106
|
+
let n = this.child(e), r = performance.now();
|
|
107
|
+
n.debug("starting");
|
|
108
|
+
try {
|
|
109
|
+
let e = t(n), i = (performance.now() - r).toFixed(1);
|
|
110
|
+
return n.success(`done ${i}ms`), e;
|
|
111
|
+
} catch (e) {
|
|
112
|
+
let t = (performance.now() - r).toFixed(1);
|
|
113
|
+
throw n.error(`failed ${t}ms`, e), e;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
group(e, t) {
|
|
117
|
+
let r = this.traceId ? ` #${this.traceId}` : "";
|
|
118
|
+
console.groupCollapsed(`%c${this.context}%c${r}%c ${e}`, n.context, n.trace, n.dim), t(), console.groupEnd();
|
|
119
|
+
}
|
|
120
|
+
getTraces() {
|
|
121
|
+
return this.traces;
|
|
122
|
+
}
|
|
123
|
+
dumpTraces() {
|
|
124
|
+
return JSON.stringify(this.traces, null, 2);
|
|
125
|
+
}
|
|
126
|
+
getFailedTraces() {
|
|
127
|
+
return this.traces.filter((e) => e.status === "error");
|
|
128
|
+
}
|
|
129
|
+
clearTraces() {
|
|
130
|
+
this.traces.length = 0;
|
|
131
|
+
}
|
|
132
|
+
getHistory() {
|
|
133
|
+
return this.history;
|
|
134
|
+
}
|
|
135
|
+
dumpHistory() {
|
|
136
|
+
return JSON.stringify(this.history, null, 2);
|
|
137
|
+
}
|
|
138
|
+
getTraceId() {
|
|
139
|
+
return this.traceId;
|
|
140
|
+
}
|
|
141
|
+
_receiveTrace(t) {
|
|
142
|
+
this.traces.push(t), e.register(t);
|
|
143
|
+
}
|
|
144
|
+
_log(e, r, i) {
|
|
145
|
+
if (this.ended) {
|
|
146
|
+
console.warn(`%c[Logger] log ignorado — trace #${this.traceId} ya fue cerrado con end()`, n.ended);
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
if (t[e] < this.minLevel) return;
|
|
150
|
+
let a = (/* @__PURE__ */ new Date()).toISOString(), o = {
|
|
151
|
+
level: e,
|
|
152
|
+
context: this.context,
|
|
153
|
+
message: r,
|
|
154
|
+
timestamp: a,
|
|
155
|
+
...this.traceId !== void 0 && { traceId: this.traceId },
|
|
156
|
+
...i !== void 0 && { data: i }
|
|
157
|
+
};
|
|
158
|
+
(this.capture || this.traceId !== void 0) && this.history.push(o), this.broadcast && this._emit(o), this._print(e, r, a, i);
|
|
159
|
+
}
|
|
160
|
+
_print(e, t, i, a) {
|
|
161
|
+
let o = r[e], s = i.slice(11, 23), c = this.traceId ? `#${this.traceId}` : "", l = e === "error" ? console.error : e === "warn" ? console.warn : console.log, u = c ? `%c${o} %c${this.context}%c ${c}%c ${t} %c${s}` : `%c${o} %c${this.context}%c ${t} %c${s}`, d = c ? [
|
|
162
|
+
n[e],
|
|
163
|
+
n.context,
|
|
164
|
+
n.trace,
|
|
165
|
+
"",
|
|
166
|
+
n.dim
|
|
167
|
+
] : [
|
|
168
|
+
n[e],
|
|
169
|
+
n.context,
|
|
170
|
+
"",
|
|
171
|
+
n.dim
|
|
172
|
+
];
|
|
173
|
+
a === void 0 ? l(u, ...d) : l(u, ...d, a);
|
|
174
|
+
}
|
|
175
|
+
_emit(e) {
|
|
176
|
+
window.dispatchEvent(new CustomEvent("app:log", { detail: e }));
|
|
177
|
+
}
|
|
178
|
+
_levelName() {
|
|
179
|
+
return Object.keys(t).find((e) => t[e] === this.minLevel) ?? "debug";
|
|
180
|
+
}
|
|
181
|
+
_generateTraceId() {
|
|
182
|
+
return Math.random().toString(16).slice(2, 10);
|
|
183
|
+
}
|
|
184
|
+
}, a = new i({ context: "GLOBAL" });
|
|
185
|
+
//#endregion
|
|
186
|
+
export { a as GLOBAL_LOGGER, i as Logger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=new class{constructor(){this.index=new Map}register(e){let t=this.index.get(e.traceId)??[];this.index.set(e.traceId,[...t,e])}getTrace(e){return this.index.get(e)??[]}dump(e){return JSON.stringify(this.getTrace(e),null,2)}};exports.TRACE_REGISTRY=e;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TraceRecord } from './logger';
|
|
2
|
+
declare class TraceRegistry {
|
|
3
|
+
private index;
|
|
4
|
+
register(record: TraceRecord): void;
|
|
5
|
+
getTrace(traceId: string): TraceRecord[];
|
|
6
|
+
dump(traceId: string): string;
|
|
7
|
+
}
|
|
8
|
+
export declare const TRACE_REGISTRY: TraceRegistry;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var e = new class {
|
|
2
|
+
constructor() {
|
|
3
|
+
this.index = /* @__PURE__ */ new Map();
|
|
4
|
+
}
|
|
5
|
+
register(e) {
|
|
6
|
+
let t = this.index.get(e.traceId) ?? [];
|
|
7
|
+
this.index.set(e.traceId, [...t, e]);
|
|
8
|
+
}
|
|
9
|
+
getTrace(e) {
|
|
10
|
+
return this.index.get(e) ?? [];
|
|
11
|
+
}
|
|
12
|
+
dump(e) {
|
|
13
|
+
return JSON.stringify(this.getTrace(e), null, 2);
|
|
14
|
+
}
|
|
15
|
+
}();
|
|
16
|
+
//#endregion
|
|
17
|
+
export { e as TRACE_REGISTRY };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`react`),t=require(`@vis.gl/react-google-maps`),n=require(`@deck.gl/google-maps`);var r=({layers:r})=>{let i=(0,e.useMemo)(()=>new n.GoogleMapsOverlay({interleaved:!0}),[]),a=(0,t.useMap)();return(0,e.useEffect)(()=>(i.setMap(a),()=>i.setMap(null)),[i,a]),(0,e.useEffect)(()=>{i.setProps({layers:r})},[i,r]),null};exports.DeckGlOverlay=r;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LayersList } from '@deck.gl/core';
|
|
2
|
+
export type DeckglOverlayProps = {
|
|
3
|
+
layers?: LayersList;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* A very simple implementation of a component that renders a list of deck.gl layers
|
|
7
|
+
* via the GoogleMapsOverlay into the <Map> component containing it.
|
|
8
|
+
*/
|
|
9
|
+
export declare const DeckGlOverlay: ({ layers }: DeckglOverlayProps) => null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useEffect as e, useMemo as t } from "react";
|
|
2
|
+
import { useMap as n } from "@vis.gl/react-google-maps";
|
|
3
|
+
import { GoogleMapsOverlay as r } from "@deck.gl/google-maps";
|
|
4
|
+
//#region src/packages/maps/deckgl-overlay.ts
|
|
5
|
+
var i = ({ layers: i }) => {
|
|
6
|
+
let a = t(() => new r({ interleaved: !0 }), []), o = n();
|
|
7
|
+
return e(() => (a.setMap(o), () => a.setMap(null)), [a, o]), e(() => {
|
|
8
|
+
a.setProps({ layers: i });
|
|
9
|
+
}, [a, i]), null;
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { i as DeckGlOverlay };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../env/env.manager.cjs`);let t=require(`react/jsx-runtime`),n=require(`@vis.gl/react-google-maps`);function r({config:r,mapContent:i,mapLayout:a}){return(0,t.jsx)(`div`,{className:`relative h-full w-full`,children:(0,t.jsxs)(n.APIProvider,{apiKey:e.ENV_MANAGER.get(`VITE_GOOGLE_MAPS_API_KEY`),children:[(0,t.jsx)(n.Map,{defaultCenter:r.defaultCenter,defaultZoom:r.defaultZoom,mapId:`4f6dde3310be51d7`,gestureHandling:`greedy`,disableDefaultUI:!0,children:i}),a?.map((e,r)=>(0,t.jsx)(n.MapControl,{position:e.position,children:e.renderer},r))]})})}module.exports=r;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ControlPosition } from '@vis.gl/react-google-maps';
|
|
2
|
+
interface MapsRendererConfig {
|
|
3
|
+
defaultCenter: {
|
|
4
|
+
lat: number;
|
|
5
|
+
lng: number;
|
|
6
|
+
};
|
|
7
|
+
defaultZoom: number;
|
|
8
|
+
}
|
|
9
|
+
interface MapLayout {
|
|
10
|
+
renderer: React.ReactNode;
|
|
11
|
+
position: ControlPosition;
|
|
12
|
+
}
|
|
13
|
+
interface MapsRendererProps {
|
|
14
|
+
config: MapsRendererConfig;
|
|
15
|
+
mapContent?: React.ReactNode;
|
|
16
|
+
mapLayout?: MapLayout[];
|
|
17
|
+
}
|
|
18
|
+
export default function MapsRenderer({ config, mapContent, mapLayout }: MapsRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ENV_MANAGER as e } from "../env/env.manager.esm";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { APIProvider as r, Map as i, MapControl as a } from "@vis.gl/react-google-maps";
|
|
4
|
+
//#region src/packages/maps/maps.renderer.tsx
|
|
5
|
+
function o({ config: o, mapContent: s, mapLayout: c }) {
|
|
6
|
+
return /* @__PURE__ */ t("div", {
|
|
7
|
+
className: "relative h-full w-full",
|
|
8
|
+
children: /* @__PURE__ */ n(r, {
|
|
9
|
+
apiKey: e.get("VITE_GOOGLE_MAPS_API_KEY"),
|
|
10
|
+
children: [/* @__PURE__ */ t(i, {
|
|
11
|
+
defaultCenter: o.defaultCenter,
|
|
12
|
+
defaultZoom: o.defaultZoom,
|
|
13
|
+
mapId: "4f6dde3310be51d7",
|
|
14
|
+
gestureHandling: "greedy",
|
|
15
|
+
disableDefaultUI: !0,
|
|
16
|
+
children: s
|
|
17
|
+
}), c?.map((e, n) => /* @__PURE__ */ t(a, {
|
|
18
|
+
position: e.position,
|
|
19
|
+
children: e.renderer
|
|
20
|
+
}, n))]
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { o as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../../_virtual/_rolldown/runtime.cjs`),t=require(`./marker.guard.cjs`);let n=require(`react/jsx-runtime`),r=require(`react`);r=e.__toESM(r);let i=require(`@vis.gl/react-google-maps`);function a(e,t){if(!{}.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var o=0;function s(e){return`__private_`+ o+++`_`+e}function c({marker:e,guard:t}){let a=t.entry(e),[o,s]=r.default.useState(!1),[c,l]=r.default.useState(!1);return a?(0,n.jsx)(i.AdvancedMarker,{position:e.position,title:e.label,onMouseEnter:()=>{s(!0),e.onHover?.(!0)},onMouseLeave:()=>{s(!1),e.onHover?.(!1)},onClick:()=>{l(e=>!e),e.onClick?.(!c)},children:(0,n.jsx)(a,{...e.payload,clicked:c,hovered:o})}):(console.warn(`MarkerFactory: No matched component channel for marker config ID ${e.id}`),null)}var l=s(`guard`),u=s(`instance`),d=class e{static get instance(){return a(e,u)[u]||(a(e,u)[u]=new e),a(e,u)[u]}constructor(){Object.defineProperty(this,l,{writable:!0,value:void 0}),a(this,l)[l]=t.MARKER_GUARD}renderAll(e){return e.map((e,t)=>(0,n.jsx)(c,{marker:e,guard:a(this,l)[l]},e.id||t))}};Object.defineProperty(d,u,{writable:!0,value:void 0});var f=d.instance;exports.MARKER_FACTORY=f,exports.MarkerFactory=d;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MarkerMeta } from './markers.meta';
|
|
2
|
+
export declare class MarkerFactory {
|
|
3
|
+
#private;
|
|
4
|
+
static get instance(): MarkerFactory;
|
|
5
|
+
constructor();
|
|
6
|
+
renderAll(data: MarkerMeta<any>[]): import("react/jsx-runtime").JSX.Element[];
|
|
7
|
+
}
|
|
8
|
+
export declare const MARKER_FACTORY: MarkerFactory;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { MARKER_GUARD as e } from "./marker.guard.esm";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import n from "react";
|
|
4
|
+
import { AdvancedMarker as r } from "@vis.gl/react-google-maps";
|
|
5
|
+
//#region src/packages/maps/markers/marker.factory.tsx
|
|
6
|
+
function i(e, t) {
|
|
7
|
+
if (!{}.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
|
|
8
|
+
return e;
|
|
9
|
+
}
|
|
10
|
+
var a = 0;
|
|
11
|
+
function o(e) {
|
|
12
|
+
return "__private_" + a++ + "_" + e;
|
|
13
|
+
}
|
|
14
|
+
function s({ marker: e, guard: i }) {
|
|
15
|
+
let a = i.entry(e), [o, s] = n.useState(!1), [c, l] = n.useState(!1);
|
|
16
|
+
return a ? /* @__PURE__ */ t(r, {
|
|
17
|
+
position: e.position,
|
|
18
|
+
title: e.label,
|
|
19
|
+
onMouseEnter: () => {
|
|
20
|
+
s(!0), e.onHover?.(!0);
|
|
21
|
+
},
|
|
22
|
+
onMouseLeave: () => {
|
|
23
|
+
s(!1), e.onHover?.(!1);
|
|
24
|
+
},
|
|
25
|
+
onClick: () => {
|
|
26
|
+
l((e) => !e), e.onClick?.(!c);
|
|
27
|
+
},
|
|
28
|
+
children: /* @__PURE__ */ t(a, {
|
|
29
|
+
...e.payload,
|
|
30
|
+
clicked: c,
|
|
31
|
+
hovered: o
|
|
32
|
+
})
|
|
33
|
+
}) : (console.warn(`MarkerFactory: No matched component channel for marker config ID ${e.id}`), null);
|
|
34
|
+
}
|
|
35
|
+
var c = /* @__PURE__ */ o("guard"), l = /* @__PURE__ */ o("instance"), u = class n {
|
|
36
|
+
static get instance() {
|
|
37
|
+
return i(n, l)[l] || (i(n, l)[l] = new n()), i(n, l)[l];
|
|
38
|
+
}
|
|
39
|
+
constructor() {
|
|
40
|
+
Object.defineProperty(this, c, {
|
|
41
|
+
writable: !0,
|
|
42
|
+
value: void 0
|
|
43
|
+
}), i(this, c)[c] = e;
|
|
44
|
+
}
|
|
45
|
+
renderAll(e) {
|
|
46
|
+
return e.map((e, n) => /* @__PURE__ */ t(s, {
|
|
47
|
+
marker: e,
|
|
48
|
+
guard: i(this, c)[c]
|
|
49
|
+
}, e.id || n));
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
Object.defineProperty(u, l, {
|
|
53
|
+
writable: !0,
|
|
54
|
+
value: void 0
|
|
55
|
+
});
|
|
56
|
+
var d = u.instance;
|
|
57
|
+
//#endregion
|
|
58
|
+
export { d as MARKER_FACTORY, u as MarkerFactory };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../../shared/logic/verifiers/context.verifier.cjs`),t=require(`../../../shared/logic/guards/component.guard.cjs`);function n(e,t){if(!{}.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var r=0;function i(e){return`__private_`+ r+++`_`+e}var a=class extends e.ContextVerifier{constructor(){super()}checkType(e){return this.addCriteria(t=>t.type===e)}},o=i(`instance`),s=class e extends t.ComponentGuard{static get instance(){return n(e,o)[o]||(n(e,o)[o]=new e),n(e,o)[o]}constructor(){super()}at(e,t){return this.addChannel(t,new a().checkType(e))}};Object.defineProperty(s,o,{writable:!0,value:void 0});var c=s.instance;c.setFallback(()=>null),exports.MARKER_GUARD=c,exports.MarkerGuard=s,exports.MarkerVerifier=a;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentGuard } from '../../../shared/logic/guards/component.guard';
|
|
2
|
+
import { ContextVerifier } from '../../../shared/logic/verifiers/context.verifier';
|
|
3
|
+
import { MarkerMeta } from './markers.meta';
|
|
4
|
+
/**
|
|
5
|
+
* Verificador que comprueba si la configuración dada coincide con el blueprint
|
|
6
|
+
* del constructor de marcadores dado (actualmente evalúa el tipo).
|
|
7
|
+
*/
|
|
8
|
+
export declare class MarkerVerifier<T extends object> extends ContextVerifier<MarkerMeta<T>> {
|
|
9
|
+
constructor();
|
|
10
|
+
checkType(type: string): this;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Guarda especializada para Marcadores basada en ComponentGuard.
|
|
14
|
+
* Registra canales asociando un MarkerBuilder (blueprint) con un componente funcional.
|
|
15
|
+
*/
|
|
16
|
+
export declare class MarkerGuard extends ComponentGuard<any, MarkerMeta<any>> {
|
|
17
|
+
#private;
|
|
18
|
+
static get instance(): MarkerGuard;
|
|
19
|
+
private constructor();
|
|
20
|
+
at<T extends object>(type: string, component: React.FC<T>): this;
|
|
21
|
+
}
|
|
22
|
+
export declare const MARKER_GUARD: MarkerGuard;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ContextVerifier as e } from "../../../shared/logic/verifiers/context.verifier.esm";
|
|
2
|
+
import { ComponentGuard as t } from "../../../shared/logic/guards/component.guard.esm";
|
|
3
|
+
//#region src/packages/maps/markers/marker.guard.ts
|
|
4
|
+
function n(e, t) {
|
|
5
|
+
if (!{}.hasOwnProperty.call(e, t)) throw TypeError("attempted to use private field on non-instance");
|
|
6
|
+
return e;
|
|
7
|
+
}
|
|
8
|
+
var r = 0;
|
|
9
|
+
function i(e) {
|
|
10
|
+
return "__private_" + r++ + "_" + e;
|
|
11
|
+
}
|
|
12
|
+
var a = class extends e {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
}
|
|
16
|
+
checkType(e) {
|
|
17
|
+
return this.addCriteria((t) => t.type === e);
|
|
18
|
+
}
|
|
19
|
+
}, o = /* @__PURE__ */ i("instance"), s = class e extends t {
|
|
20
|
+
static get instance() {
|
|
21
|
+
return n(e, o)[o] || (n(e, o)[o] = new e()), n(e, o)[o];
|
|
22
|
+
}
|
|
23
|
+
constructor() {
|
|
24
|
+
super();
|
|
25
|
+
}
|
|
26
|
+
at(e, t) {
|
|
27
|
+
return this.addChannel(t, new a().checkType(e));
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
Object.defineProperty(s, o, {
|
|
31
|
+
writable: !0,
|
|
32
|
+
value: void 0
|
|
33
|
+
});
|
|
34
|
+
var c = s.instance;
|
|
35
|
+
c.setFallback(() => null);
|
|
36
|
+
//#endregion
|
|
37
|
+
export { c as MARKER_GUARD, s as MarkerGuard, a as MarkerVerifier };
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=[{elementType:`geometry`,stylers:[{color:`#0a0a0a`}]},{featureType:`water`,elementType:`geometry`,stylers:[{color:`#5e5e5e`}]},{featureType:`water`,elementType:`labels.text`,stylers:[{visibility:`off`}]},{featureType:`landscape`,elementType:`geometry`,stylers:[{color:`#111111`}]},{featureType:`landscape.natural`,elementType:`geometry`,stylers:[{color:`#0d0d0d`}]},{featureType:`road.highway`,elementType:`geometry`,stylers:[{color:`#2a2a2a`},{weight:1.2}]},{featureType:`road.arterial`,elementType:`geometry`,stylers:[{color:`#1f1f1f`}]},{featureType:`road.local`,elementType:`geometry`,stylers:[{color:`#1a1a1a`}]},{featureType:`road.highway`,elementType:`geometry.stroke`,stylers:[{color:`#ffffff`},{weight:.5}]},{featureType:`road.arterial`,elementType:`geometry.stroke`,stylers:[{color:`#888888`},{weight:.3}]},{featureType:`road.local`,elementType:`geometry.stroke`,stylers:[{color:`#444444`},{weight:.2}]},{featureType:`road`,elementType:`labels`,stylers:[{visibility:`off`}]},{featureType:`poi`,stylers:[{visibility:`off`}]},{featureType:`poi.park`,stylers:[{visibility:`off`}]},{featureType:`poi.business`,stylers:[{visibility:`off`}]},{featureType:`poi.medical`,stylers:[{visibility:`off`}]},{featureType:`poi.school`,stylers:[{visibility:`off`}]},{featureType:`transit`,stylers:[{visibility:`off`}]},{featureType:`administrative`,elementType:`labels`,stylers:[{visibility:`off`}]}];exports.darkMapStyle=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const darkMapStyle: google.maps.MapTypeStyle[];
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
//#region src/packages/maps/styles/dark.style.ts
|
|
2
|
+
var e = [
|
|
3
|
+
{
|
|
4
|
+
elementType: "geometry",
|
|
5
|
+
stylers: [{ color: "#0a0a0a" }]
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
featureType: "water",
|
|
9
|
+
elementType: "geometry",
|
|
10
|
+
stylers: [{ color: "#5e5e5e" }]
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
featureType: "water",
|
|
14
|
+
elementType: "labels.text",
|
|
15
|
+
stylers: [{ visibility: "off" }]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
featureType: "landscape",
|
|
19
|
+
elementType: "geometry",
|
|
20
|
+
stylers: [{ color: "#111111" }]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
featureType: "landscape.natural",
|
|
24
|
+
elementType: "geometry",
|
|
25
|
+
stylers: [{ color: "#0d0d0d" }]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
featureType: "road.highway",
|
|
29
|
+
elementType: "geometry",
|
|
30
|
+
stylers: [{ color: "#2a2a2a" }, { weight: 1.2 }]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
featureType: "road.arterial",
|
|
34
|
+
elementType: "geometry",
|
|
35
|
+
stylers: [{ color: "#1f1f1f" }]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
featureType: "road.local",
|
|
39
|
+
elementType: "geometry",
|
|
40
|
+
stylers: [{ color: "#1a1a1a" }]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
featureType: "road.highway",
|
|
44
|
+
elementType: "geometry.stroke",
|
|
45
|
+
stylers: [{ color: "#ffffff" }, { weight: .5 }]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
featureType: "road.arterial",
|
|
49
|
+
elementType: "geometry.stroke",
|
|
50
|
+
stylers: [{ color: "#888888" }, { weight: .3 }]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
featureType: "road.local",
|
|
54
|
+
elementType: "geometry.stroke",
|
|
55
|
+
stylers: [{ color: "#444444" }, { weight: .2 }]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
featureType: "road",
|
|
59
|
+
elementType: "labels",
|
|
60
|
+
stylers: [{ visibility: "off" }]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
featureType: "poi",
|
|
64
|
+
stylers: [{ visibility: "off" }]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
featureType: "poi.park",
|
|
68
|
+
stylers: [{ visibility: "off" }]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
featureType: "poi.business",
|
|
72
|
+
stylers: [{ visibility: "off" }]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
featureType: "poi.medical",
|
|
76
|
+
stylers: [{ visibility: "off" }]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
featureType: "poi.school",
|
|
80
|
+
stylers: [{ visibility: "off" }]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
featureType: "transit",
|
|
84
|
+
stylers: [{ visibility: "off" }]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
featureType: "administrative",
|
|
88
|
+
elementType: "labels",
|
|
89
|
+
stylers: [{ visibility: "off" }]
|
|
90
|
+
}
|
|
91
|
+
];
|
|
92
|
+
//#endregion
|
|
93
|
+
export { e as darkMapStyle };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../shared/logic/service/base.service.cjs`),t=require(`../logger/logger.cjs`),n=require(`../formatters/text-code/text-coder.service.cjs`);let r=require(`@capgo/capacitor-nfc`),i=require(`sonner`);function a(e,t){if(!{}.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var o=0;function s(e){return`__private_`+ o+++`_`+e}var c=t.GLOBAL_LOGGER.child(`NFC_SERVICE`),l=function(e){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}({}),u={TEXT:[84],URI:[85],SMART_POSTER:[83,112]},d=s(`isSupported`),f=s(`handlerKey`),p=s(`Listener`),m=s(`canCancel`),h=s(`instance`),g=class t extends e{static get instance(){return a(t,h)[h]||(a(t,h)[h]=new t),a(t,h)[h]}constructor(){super(),Object.defineProperty(this,d,{writable:!0,value:!1}),Object.defineProperty(this,f,{writable:!0,value:null}),Object.defineProperty(this,p,{writable:!0,value:null}),Object.defineProperty(this,m,{writable:!0,value:!1}),this.isSupported()}async isSupported(){return a(this,d)[d]||(a(this,d)[d]=(await r.CapacitorNfc.isSupported()).supported),a(this,d)[d]}async listenOnce({key:e,event:t}){return await this.listen({key:e,event:async n=>{await t(n),await this.stop(e)}})}async listen({key:e,event:t}){if(!a(this,d)[d])return c.error(`NFC is not supported`);if(a(this,p)[p])return c.error(`NFC is already listening an Event`);a(this,f)[f]=e,await c.timeAsync(`NFC is listening ${e}`,async()=>{await r.CapacitorNfc.startScanning({invalidateAfterFirstRead:!1,androidReaderModeFlags:17}),a(this,p)[p]=await r.CapacitorNfc.addListener(`nfcEvent`,t)})}async write({data:e,allowFormat:t=!1,on_error:a,type:o,tnf:s}){let c=`nfc_write_${Date.now()}`,d=Array.from(n.TEXT_CODER_SERVICE.StringToBytes(`es`)),f=Array.from(n.TEXT_CODER_SERVICE.StringToBytes(e)),p=[d.length&63,...d,...f];return s??=l.WELL_KNOWN,o??=`TEXT`,await this.listenOnce({key:c,event:async e=>{i.toast.success(`NFC Tag Scanned`);try{await r.CapacitorNfc.write({allowFormat:t,records:[{id:[],type:u[o],payload:p,tnf:s}]}),i.toast.success(`NFC Tag Written`)}catch(e){i.toast.error(`NFC Tag Write Failed`),a&&a(e),this.stop(c)}}}),c}async stop(e){if(!a(this,p)[p])return c.error(`NFC is not listening an Event`);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`);await c.timeAsync(`NFC is stop ${e}`,async()=>{await r.CapacitorNfc.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})}async forceCancel(){a(this,m)[m]=!0,await this.stop()}};Object.defineProperty(g,h,{writable:!0,value:void 0});var _=g.instance;exports.NFC_SERVICE=_,exports.NFC_TNF=l,exports.NFC_TYPE=u,exports.default=g;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { default as BaseService } from '../../shared/logic/service/base.service';
|
|
2
|
+
import { NfcEvent } from '@capgo/capacitor-nfc';
|
|
3
|
+
interface ListenConfig {
|
|
4
|
+
key: string;
|
|
5
|
+
event: (data: NfcEvent) => void;
|
|
6
|
+
}
|
|
7
|
+
interface WriteConfig {
|
|
8
|
+
data: string;
|
|
9
|
+
on_error?: (evt: unknown) => void;
|
|
10
|
+
type?: keyof typeof NFC_TYPE;
|
|
11
|
+
tnf?: NFC_TNF;
|
|
12
|
+
allowFormat?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare enum NFC_TNF {
|
|
15
|
+
EMPTY = 0,
|
|
16
|
+
WELL_KNOWN = 1,
|
|
17
|
+
MIME_MEDIA = 2,
|
|
18
|
+
ABSOLUTE_URI = 3,
|
|
19
|
+
EXTERNAL = 4,
|
|
20
|
+
UNKNOWN = 5,
|
|
21
|
+
UNCHANGED = 6,
|
|
22
|
+
RESERVED = 7
|
|
23
|
+
}
|
|
24
|
+
export declare const NFC_TYPE: {
|
|
25
|
+
TEXT: number[];
|
|
26
|
+
URI: number[];
|
|
27
|
+
SMART_POSTER: number[];
|
|
28
|
+
};
|
|
29
|
+
export default class NFCService extends BaseService {
|
|
30
|
+
#private;
|
|
31
|
+
static get instance(): NFCService;
|
|
32
|
+
private constructor();
|
|
33
|
+
isSupported(): Promise<boolean>;
|
|
34
|
+
listenOnce({ key, event }: ListenConfig): Promise<void>;
|
|
35
|
+
listen({ key, event }: ListenConfig): Promise<void>;
|
|
36
|
+
write({ data, allowFormat, on_error, type, tnf }: WriteConfig): Promise<string>;
|
|
37
|
+
stop(key?: string): Promise<void>;
|
|
38
|
+
forceCancel(): Promise<void>;
|
|
39
|
+
}
|
|
40
|
+
export declare const NFC_SERVICE: NFCService;
|
|
41
|
+
export {};
|