@antelopejs/dms 0.19.6 → 0.20.1
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/CHANGELOG.md +257 -1
- package/README.md +23 -14
- package/bin/control/backend-mode.test.mjs +112 -0
- package/bin/control/backend-records.test.mjs +154 -100
- package/bin/control/backend.mjs +42 -25
- package/bin/control/backend.test.mjs +22 -1
- package/bin/control/base.mjs +6 -1
- package/bin/control/build-cache.mjs +18 -6
- package/bin/control/build-key-refusals.test.mjs +8 -8
- package/bin/control/build-key.mjs +18 -13
- package/bin/control/build-key.test.mjs +26 -1
- package/bin/control/build-layout.test.mjs +57 -14
- package/bin/control/commands-stack.mjs +1 -0
- package/bin/control/forwarder.test.mjs +128 -2
- package/bin/control/helpers/ephemeral-range.mjs +18 -0
- package/bin/control/helpers/fake-run.mjs +86 -17
- package/bin/control/helpers/key-fixture.mjs +9 -6
- package/bin/control/helpers/narrow-range.mjs +35 -0
- package/bin/control/helpers/pids.mjs +10 -0
- package/bin/control/helpers/tree.mjs +4 -4
- package/bin/control/journey-load.mjs +49 -0
- package/bin/control/journey.mjs +6 -41
- package/bin/control/journey.test.mjs +100 -41
- package/bin/control/mail.mjs +8 -2
- package/bin/control/module-root.mjs +7 -3
- package/bin/control/module-root.test.mjs +7 -5
- package/bin/control/mongo-server.test.mjs +64 -19
- package/bin/control/mongo.mjs +12 -3
- package/bin/control/namespaces.test.mjs +50 -31
- package/bin/control/options.mjs +1 -0
- package/bin/control/processes.mjs +72 -1
- package/bin/control/processes.test.mjs +98 -64
- package/bin/control/renderer.test.mjs +2 -2
- package/bin/control/run-ports.test.mjs +141 -0
- package/bin/control/run-state.mjs +9 -3
- package/bin/control/stack.mjs +93 -14
- package/bin/control/tab.test.mjs +1 -1
- package/bin/control/verify/formal.test.mjs +2 -2
- package/bin/control/verify/map.mjs +1 -1
- package/bin/control/verify/verdict.mjs +1 -1
- package/bin/dms-control.mjs +7 -3
- package/checks/dms-components.d.mts +38 -0
- package/data/mockup-example/spec.json +209 -0
- package/data/mockup-spec.schema.json +10957 -0
- package/data/module-store/catalog.json +1 -7
- package/dist/attachments/read.js +2 -1
- package/dist/attachments/read.js.map +1 -1
- package/dist/attachments/save.js +2 -1
- package/dist/attachments/save.js.map +1 -1
- package/dist/attachments/stored-claims.d.ts +2 -0
- package/dist/attachments/stored-claims.js +21 -0
- package/dist/attachments/stored-claims.js.map +1 -0
- package/dist/branding/index.d.ts +2 -0
- package/dist/branding/index.js +19 -0
- package/dist/branding/index.js.map +1 -0
- package/dist/branding/page.d.ts +10 -0
- package/dist/branding/page.js +22 -0
- package/dist/branding/page.js.map +1 -0
- package/dist/branding/register.d.ts +1 -0
- package/dist/branding/register.js +10 -0
- package/dist/branding/register.js.map +1 -0
- package/dist/branding/routes.d.ts +18 -0
- package/dist/branding/routes.js +78 -0
- package/dist/branding/routes.js.map +1 -0
- package/dist/branding/theme-schemas.d.ts +484 -0
- package/dist/branding/theme-schemas.js +52 -0
- package/dist/branding/theme-schemas.js.map +1 -0
- package/dist/builder.d.ts +2 -0
- package/dist/builder.js +64 -0
- package/dist/builder.js.map +1 -0
- package/dist/config/internal/state.d.ts +20 -0
- package/dist/config/internal/state.js +12 -0
- package/dist/config/internal/state.js.map +1 -1
- package/dist/crons/cleanup-user-invites.js +7 -1
- package/dist/crons/cleanup-user-invites.js.map +1 -1
- package/dist/db/guard-row.d.ts +2 -2
- package/dist/db/guard-row.js +1 -1
- package/dist/db/guard-row.js.map +1 -1
- package/dist/db/index.d.ts +1 -0
- package/dist/db/index.js +1 -0
- package/dist/db/index.js.map +1 -1
- package/dist/db/models/attachments.model.d.ts +3 -3
- package/dist/db/models/setupToken.model.d.ts +3 -3
- package/dist/db/models/signInAttempts.model.d.ts +3 -3
- package/dist/db/models/systemState.model.d.ts +3 -3
- package/dist/db/models/userEmailChanges.model.d.ts +3 -3
- package/dist/db/models/userKnownDevices.model.d.ts +3 -3
- package/dist/db/models/userNotificationPreferences.model.d.ts +3 -3
- package/dist/db/models/userNotificationPreferences.model.js +2 -1
- package/dist/db/models/userNotificationPreferences.model.js.map +1 -1
- package/dist/db/models/userNotifications.model.d.ts +3 -3
- package/dist/db/row-id.d.ts +4 -0
- package/dist/db/row-id.js +10 -0
- package/dist/db/row-id.js.map +1 -0
- package/dist/dev/module-update-notifications.js +2 -4
- package/dist/dev/module-update-notifications.js.map +1 -1
- package/dist/implementations/dms/connection-access.d.ts +8 -0
- package/dist/implementations/dms/connection-access.js +23 -0
- package/dist/implementations/dms/connection-access.js.map +1 -0
- package/dist/implementations/dms/dev-handshake.js +2 -5
- package/dist/implementations/dms/dev-handshake.js.map +1 -1
- package/dist/implementations/dms/page/access.d.ts +8 -0
- package/dist/implementations/dms/page/access.js +15 -3
- package/dist/implementations/dms/page/access.js.map +1 -1
- package/dist/implementations/dms/page/controller.d.ts +5 -5
- package/dist/implementations/dms/page/controller.js +9 -6
- package/dist/implementations/dms/page/controller.js.map +1 -1
- package/dist/implementations/dms/page/preview-menu.js +1 -1
- package/dist/implementations/dms/page/preview-menu.js.map +1 -1
- package/dist/implementations/dms/page/preview-models.d.ts +10 -10
- package/dist/implementations/dms/page/registry.js +2 -2
- package/dist/implementations/dms/page/registry.js.map +1 -1
- package/dist/implementations/dms/page/types.d.ts +1 -1
- package/dist/implementations/dms/page.d.ts +2 -1
- package/dist/implementations/dms/page.js +2 -1
- package/dist/implementations/dms/page.js.map +1 -1
- package/dist/implementations/dms-auth/index.d.ts +3 -4
- package/dist/implementations/dms-auth/index.js +39 -62
- package/dist/implementations/dms-auth/index.js.map +1 -1
- package/dist/implementations/dms-auth/session-handoff.d.ts +1 -1
- package/dist/implementations/dms-auth/session-handoff.js +7 -22
- package/dist/implementations/dms-auth/session-handoff.js.map +1 -1
- package/dist/implementations/dms-auth/token-secret.d.ts +7 -1
- package/dist/implementations/dms-auth/token-secret.js +59 -4
- package/dist/implementations/dms-auth/token-secret.js.map +1 -1
- package/dist/implementations/dms-auth/token-session.d.ts +2 -2
- package/dist/implementations/dms-auth/token-session.js +0 -7
- package/dist/implementations/dms-auth/token-session.js.map +1 -1
- package/dist/implementations/dms-base/bulk-selection.js +5 -2
- package/dist/implementations/dms-base/bulk-selection.js.map +1 -1
- package/dist/implementations/dms-base/export-jobs.d.ts +1 -4
- package/dist/implementations/dms-base/export-jobs.js +8 -12
- package/dist/implementations/dms-base/export-jobs.js.map +1 -1
- package/dist/implementations/dms-base/footer-summary.d.ts +2 -1
- package/dist/implementations/dms-base/footer-summary.js +1 -1
- package/dist/implementations/dms-base/footer-summary.js.map +1 -1
- package/dist/implementations/dms-base/search-route.d.ts +3 -3
- package/dist/implementations/dms-base/search-route.js +6 -3
- package/dist/implementations/dms-base/search-route.js.map +1 -1
- package/dist/implementations/dms-base/table-view.d.ts +2 -2
- package/dist/implementations/dms-base/table-view.js +21 -12
- package/dist/implementations/dms-base/table-view.js.map +1 -1
- package/dist/implementations/dms-builder/database.d.ts +13 -0
- package/dist/implementations/dms-builder/database.js +126 -0
- package/dist/implementations/dms-builder/database.js.map +1 -0
- package/dist/implementations/dms-builder/engine/access-grant.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/access-grant.js +275 -0
- package/dist/implementations/dms-builder/engine/access-grant.js.map +1 -0
- package/dist/implementations/dms-builder/engine/access-mongodb.d.ts +20 -0
- package/dist/implementations/dms-builder/engine/access-mongodb.js +30 -0
- package/dist/implementations/dms-builder/engine/access-mongodb.js.map +1 -0
- package/dist/implementations/dms-builder/engine/access-mysql.d.ts +8 -0
- package/dist/implementations/dms-builder/engine/access-mysql.js +11 -0
- package/dist/implementations/dms-builder/engine/access-mysql.js.map +1 -0
- package/dist/implementations/dms-builder/engine/access-postgres.d.ts +8 -0
- package/dist/implementations/dms-builder/engine/access-postgres.js +11 -0
- package/dist/implementations/dms-builder/engine/access-postgres.js.map +1 -0
- package/dist/implementations/dms-builder/engine/analysis-fields.d.ts +25 -0
- package/dist/implementations/dms-builder/engine/analysis-fields.js +272 -0
- package/dist/implementations/dms-builder/engine/analysis-fields.js.map +1 -0
- package/dist/implementations/dms-builder/engine/analysis-input.d.ts +28 -0
- package/dist/implementations/dms-builder/engine/analysis-input.js +38 -0
- package/dist/implementations/dms-builder/engine/analysis-input.js.map +1 -0
- package/dist/implementations/dms-builder/engine/analysis-job.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/analysis-job.js +195 -0
- package/dist/implementations/dms-builder/engine/analysis-job.js.map +1 -0
- package/dist/implementations/dms-builder/engine/analysis-names.d.ts +14 -0
- package/dist/implementations/dms-builder/engine/analysis-names.js +94 -0
- package/dist/implementations/dms-builder/engine/analysis-names.js.map +1 -0
- package/dist/implementations/dms-builder/engine/analysis-relations.d.ts +19 -0
- package/dist/implementations/dms-builder/engine/analysis-relations.js +145 -0
- package/dist/implementations/dms-builder/engine/analysis-relations.js.map +1 -0
- package/dist/implementations/dms-builder/engine/analysis.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/analysis.js +185 -0
- package/dist/implementations/dms-builder/engine/analysis.js.map +1 -0
- package/dist/implementations/dms-builder/engine/block-target.d.ts +23 -0
- package/dist/implementations/dms-builder/engine/block-target.js +80 -0
- package/dist/implementations/dms-builder/engine/block-target.js.map +1 -0
- package/dist/implementations/dms-builder/engine/block-tree.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/block-tree.js +130 -0
- package/dist/implementations/dms-builder/engine/block-tree.js.map +1 -0
- package/dist/implementations/dms-builder/engine/catalog-connection.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/catalog-connection.js +73 -0
- package/dist/implementations/dms-builder/engine/catalog-connection.js.map +1 -0
- package/dist/implementations/dms-builder/engine/catalog-inference.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/catalog-inference.js +387 -0
- package/dist/implementations/dms-builder/engine/catalog-inference.js.map +1 -0
- package/dist/implementations/dms-builder/engine/catalog.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/catalog.js +128 -0
- package/dist/implementations/dms-builder/engine/catalog.js.map +1 -0
- package/dist/implementations/dms-builder/engine/chain.d.ts +21 -0
- package/dist/implementations/dms-builder/engine/chain.js +98 -0
- package/dist/implementations/dms-builder/engine/chain.js.map +1 -0
- package/dist/implementations/dms-builder/engine/column-display.d.ts +41 -0
- package/dist/implementations/dms-builder/engine/column-display.js +267 -0
- package/dist/implementations/dms-builder/engine/column-display.js.map +1 -0
- package/dist/implementations/dms-builder/engine/column-label.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/column-label.js +21 -0
- package/dist/implementations/dms-builder/engine/column-label.js.map +1 -0
- package/dist/implementations/dms-builder/engine/compose-page.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/compose-page.js +346 -0
- package/dist/implementations/dms-builder/engine/compose-page.js.map +1 -0
- package/dist/implementations/dms-builder/engine/config-literal.d.ts +30 -0
- package/dist/implementations/dms-builder/engine/config-literal.js +401 -0
- package/dist/implementations/dms-builder/engine/config-literal.js.map +1 -0
- package/dist/implementations/dms-builder/engine/connection-access-config.d.ts +11 -0
- package/dist/implementations/dms-builder/engine/connection-access-config.js +261 -0
- package/dist/implementations/dms-builder/engine/connection-access-config.js.map +1 -0
- package/dist/implementations/dms-builder/engine/connection-access.d.ts +9 -0
- package/dist/implementations/dms-builder/engine/connection-access.js +207 -0
- package/dist/implementations/dms-builder/engine/connection-access.js.map +1 -0
- package/dist/implementations/dms-builder/engine/database-access.d.ts +21 -0
- package/dist/implementations/dms-builder/engine/database-access.js +98 -0
- package/dist/implementations/dms-builder/engine/database-access.js.map +1 -0
- package/dist/implementations/dms-builder/engine/database-check-input.d.ts +22 -0
- package/dist/implementations/dms-builder/engine/database-check-input.js +42 -0
- package/dist/implementations/dms-builder/engine/database-check-input.js.map +1 -0
- package/dist/implementations/dms-builder/engine/database-check.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/database-check.js +37 -0
- package/dist/implementations/dms-builder/engine/database-check.js.map +1 -0
- package/dist/implementations/dms-builder/engine/database-connection-remove.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/database-connection-remove.js +167 -0
- package/dist/implementations/dms-builder/engine/database-connection-remove.js.map +1 -0
- package/dist/implementations/dms-builder/engine/database-connection.d.ts +7 -0
- package/dist/implementations/dms-builder/engine/database-connection.js +310 -0
- package/dist/implementations/dms-builder/engine/database-connection.js.map +1 -0
- package/dist/implementations/dms-builder/engine/database-host.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/database-host.js +37 -0
- package/dist/implementations/dms-builder/engine/database-host.js.map +1 -0
- package/dist/implementations/dms-builder/engine/database-pin.d.ts +12 -0
- package/dist/implementations/dms-builder/engine/database-pin.js +157 -0
- package/dist/implementations/dms-builder/engine/database-pin.js.map +1 -0
- package/dist/implementations/dms-builder/engine/database-repair.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/database-repair.js +91 -0
- package/dist/implementations/dms-builder/engine/database-repair.js.map +1 -0
- package/dist/implementations/dms-builder/engine/describe-value.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/describe-value.js +16 -0
- package/dist/implementations/dms-builder/engine/describe-value.js.map +1 -0
- package/dist/implementations/dms-builder/engine/display-defaults.d.ts +15 -0
- package/dist/implementations/dms-builder/engine/display-defaults.js +96 -0
- package/dist/implementations/dms-builder/engine/display-defaults.js.map +1 -0
- package/dist/implementations/dms-builder/engine/dms-database.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/dms-database.js +70 -0
- package/dist/implementations/dms-builder/engine/dms-database.js.map +1 -0
- package/dist/implementations/dms-builder/engine/driver-packages.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/driver-packages.js +87 -0
- package/dist/implementations/dms-builder/engine/driver-packages.js.map +1 -0
- package/dist/implementations/dms-builder/engine/emit.d.ts +12 -0
- package/dist/implementations/dms-builder/engine/emit.js +157 -0
- package/dist/implementations/dms-builder/engine/emit.js.map +1 -0
- package/dist/implementations/dms-builder/engine/entry-connections.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/entry-connections.js +123 -0
- package/dist/implementations/dms-builder/engine/entry-connections.js.map +1 -0
- package/dist/implementations/dms-builder/engine/env-lines.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/env-lines.js +66 -0
- package/dist/implementations/dms-builder/engine/env-lines.js.map +1 -0
- package/dist/implementations/dms-builder/engine/expression.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/expression.js +90 -0
- package/dist/implementations/dms-builder/engine/expression.js.map +1 -0
- package/dist/implementations/dms-builder/engine/file-batch.d.ts +17 -0
- package/dist/implementations/dms-builder/engine/file-batch.js +154 -0
- package/dist/implementations/dms-builder/engine/file-batch.js.map +1 -0
- package/dist/implementations/dms-builder/engine/file-paths.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/file-paths.js +18 -0
- package/dist/implementations/dms-builder/engine/file-paths.js.map +1 -0
- package/dist/implementations/dms-builder/engine/guards.d.ts +8 -0
- package/dist/implementations/dms-builder/engine/guards.js +27 -0
- package/dist/implementations/dms-builder/engine/guards.js.map +1 -0
- package/dist/implementations/dms-builder/engine/held-value.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/held-value.js +37 -0
- package/dist/implementations/dms-builder/engine/held-value.js.map +1 -0
- package/dist/implementations/dms-builder/engine/index.d.ts +65 -0
- package/dist/implementations/dms-builder/engine/index.js +84 -0
- package/dist/implementations/dms-builder/engine/index.js.map +1 -0
- package/dist/implementations/dms-builder/engine/indexed-project.d.ts +7 -0
- package/dist/implementations/dms-builder/engine/indexed-project.js +18 -0
- package/dist/implementations/dms-builder/engine/indexed-project.js.map +1 -0
- package/dist/implementations/dms-builder/engine/inherited-variables.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/inherited-variables.js +19 -0
- package/dist/implementations/dms-builder/engine/inherited-variables.js.map +1 -0
- package/dist/implementations/dms-builder/engine/interface-capabilities.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/interface-capabilities.js +28 -0
- package/dist/implementations/dms-builder/engine/interface-capabilities.js.map +1 -0
- package/dist/implementations/dms-builder/engine/interface-ids.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/interface-ids.js +6 -0
- package/dist/implementations/dms-builder/engine/interface-ids.js.map +1 -0
- package/dist/implementations/dms-builder/engine/literal-overrides.d.ts +7 -0
- package/dist/implementations/dms-builder/engine/literal-overrides.js +54 -0
- package/dist/implementations/dms-builder/engine/literal-overrides.js.map +1 -0
- package/dist/implementations/dms-builder/engine/literals.d.ts +9 -0
- package/dist/implementations/dms-builder/engine/literals.js +68 -0
- package/dist/implementations/dms-builder/engine/literals.js.map +1 -0
- package/dist/implementations/dms-builder/engine/local-bindings.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/local-bindings.js +165 -0
- package/dist/implementations/dms-builder/engine/local-bindings.js.map +1 -0
- package/dist/implementations/dms-builder/engine/map-resources-batch.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/map-resources-batch.js +142 -0
- package/dist/implementations/dms-builder/engine/map-resources-batch.js.map +1 -0
- package/dist/implementations/dms-builder/engine/map-resources-pages.d.ts +12 -0
- package/dist/implementations/dms-builder/engine/map-resources-pages.js +242 -0
- package/dist/implementations/dms-builder/engine/map-resources-pages.js.map +1 -0
- package/dist/implementations/dms-builder/engine/map-resources-plan.d.ts +54 -0
- package/dist/implementations/dms-builder/engine/map-resources-plan.js +269 -0
- package/dist/implementations/dms-builder/engine/map-resources-plan.js.map +1 -0
- package/dist/implementations/dms-builder/engine/map-resources-references.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/map-resources-references.js +74 -0
- package/dist/implementations/dms-builder/engine/map-resources-references.js.map +1 -0
- package/dist/implementations/dms-builder/engine/map-resources-repairs.d.ts +18 -0
- package/dist/implementations/dms-builder/engine/map-resources-repairs.js +105 -0
- package/dist/implementations/dms-builder/engine/map-resources-repairs.js.map +1 -0
- package/dist/implementations/dms-builder/engine/map-resources.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/map-resources.js +347 -0
- package/dist/implementations/dms-builder/engine/map-resources.js.map +1 -0
- package/dist/implementations/dms-builder/engine/mapped-choices.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/mapped-choices.js +153 -0
- package/dist/implementations/dms-builder/engine/mapped-choices.js.map +1 -0
- package/dist/implementations/dms-builder/engine/mapped-displays.d.ts +11 -0
- package/dist/implementations/dms-builder/engine/mapped-displays.js +56 -0
- package/dist/implementations/dms-builder/engine/mapped-displays.js.map +1 -0
- package/dist/implementations/dms-builder/engine/mapped-modules.d.ts +10 -0
- package/dist/implementations/dms-builder/engine/mapped-modules.js +120 -0
- package/dist/implementations/dms-builder/engine/mapped-modules.js.map +1 -0
- package/dist/implementations/dms-builder/engine/mapped-routes.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/mapped-routes.js +11 -0
- package/dist/implementations/dms-builder/engine/mapped-routes.js.map +1 -0
- package/dist/implementations/dms-builder/engine/mapping-refusal.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/mapping-refusal.js +11 -0
- package/dist/implementations/dms-builder/engine/mapping-refusal.js.map +1 -0
- package/dist/implementations/dms-builder/engine/mixed-types.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/mixed-types.js +32 -0
- package/dist/implementations/dms-builder/engine/mixed-types.js.map +1 -0
- package/dist/implementations/dms-builder/engine/model-methods-keep.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/model-methods-keep.js +25 -0
- package/dist/implementations/dms-builder/engine/model-methods-keep.js.map +1 -0
- package/dist/implementations/dms-builder/engine/module-loader.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/module-loader.js +30 -0
- package/dist/implementations/dms-builder/engine/module-loader.js.map +1 -0
- package/dist/implementations/dms-builder/engine/module-reload.d.ts +21 -0
- package/dist/implementations/dms-builder/engine/module-reload.js +90 -0
- package/dist/implementations/dms-builder/engine/module-reload.js.map +1 -0
- package/dist/implementations/dms-builder/engine/modules.d.ts +17 -0
- package/dist/implementations/dms-builder/engine/modules.js +193 -0
- package/dist/implementations/dms-builder/engine/modules.js.map +1 -0
- package/dist/implementations/dms-builder/engine/name-words.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/name-words.js +26 -0
- package/dist/implementations/dms-builder/engine/name-words.js.map +1 -0
- package/dist/implementations/dms-builder/engine/native-kind.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/native-kind.js +41 -0
- package/dist/implementations/dms-builder/engine/native-kind.js.map +1 -0
- package/dist/implementations/dms-builder/engine/ops-blocks.d.ts +25 -0
- package/dist/implementations/dms-builder/engine/ops-blocks.js +334 -0
- package/dist/implementations/dms-builder/engine/ops-blocks.js.map +1 -0
- package/dist/implementations/dms-builder/engine/ops-categories.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/ops-categories.js +178 -0
- package/dist/implementations/dms-builder/engine/ops-categories.js.map +1 -0
- package/dist/implementations/dms-builder/engine/ops.d.ts +40 -0
- package/dist/implementations/dms-builder/engine/ops.js +383 -0
- package/dist/implementations/dms-builder/engine/ops.js.map +1 -0
- package/dist/implementations/dms-builder/engine/options-patch.d.ts +9 -0
- package/dist/implementations/dms-builder/engine/options-patch.js +58 -0
- package/dist/implementations/dms-builder/engine/options-patch.js.map +1 -0
- package/dist/implementations/dms-builder/engine/own-connections.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/own-connections.js +21 -0
- package/dist/implementations/dms-builder/engine/own-connections.js.map +1 -0
- package/dist/implementations/dms-builder/engine/page-access.d.ts +31 -0
- package/dist/implementations/dms-builder/engine/page-access.js +159 -0
- package/dist/implementations/dms-builder/engine/page-access.js.map +1 -0
- package/dist/implementations/dms-builder/engine/page-category-move.d.ts +16 -0
- package/dist/implementations/dms-builder/engine/page-category-move.js +121 -0
- package/dist/implementations/dms-builder/engine/page-category-move.js.map +1 -0
- package/dist/implementations/dms-builder/engine/page-delete.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/page-delete.js +53 -0
- package/dist/implementations/dms-builder/engine/page-delete.js.map +1 -0
- package/dist/implementations/dms-builder/engine/page-draft-validation.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/page-draft-validation.js +200 -0
- package/dist/implementations/dms-builder/engine/page-draft-validation.js.map +1 -0
- package/dist/implementations/dms-builder/engine/page-draft.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/page-draft.js +336 -0
- package/dist/implementations/dms-builder/engine/page-draft.js.map +1 -0
- package/dist/implementations/dms-builder/engine/page-structure.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/page-structure.js +48 -0
- package/dist/implementations/dms-builder/engine/page-structure.js.map +1 -0
- package/dist/implementations/dms-builder/engine/paths.d.ts +7 -0
- package/dist/implementations/dms-builder/engine/paths.js +31 -0
- package/dist/implementations/dms-builder/engine/paths.js.map +1 -0
- package/dist/implementations/dms-builder/engine/permissions.d.ts +9 -0
- package/dist/implementations/dms-builder/engine/permissions.js +43 -0
- package/dist/implementations/dms-builder/engine/permissions.js.map +1 -0
- package/dist/implementations/dms-builder/engine/placement.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/placement.js +55 -0
- package/dist/implementations/dms-builder/engine/placement.js.map +1 -0
- package/dist/implementations/dms-builder/engine/planned-page.d.ts +9 -0
- package/dist/implementations/dms-builder/engine/planned-page.js +14 -0
- package/dist/implementations/dms-builder/engine/planned-page.js.map +1 -0
- package/dist/implementations/dms-builder/engine/preview.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/preview.js +346 -0
- package/dist/implementations/dms-builder/engine/preview.js.map +1 -0
- package/dist/implementations/dms-builder/engine/price-currency.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/price-currency.js +53 -0
- package/dist/implementations/dms-builder/engine/price-currency.js.map +1 -0
- package/dist/implementations/dms-builder/engine/probe-client.d.ts +15 -0
- package/dist/implementations/dms-builder/engine/probe-client.js +41 -0
- package/dist/implementations/dms-builder/engine/probe-client.js.map +1 -0
- package/dist/implementations/dms-builder/engine/probe-connections.d.ts +10 -0
- package/dist/implementations/dms-builder/engine/probe-connections.js +43 -0
- package/dist/implementations/dms-builder/engine/probe-connections.js.map +1 -0
- package/dist/implementations/dms-builder/engine/probe-mongodb.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/probe-mongodb.js +92 -0
- package/dist/implementations/dms-builder/engine/probe-mongodb.js.map +1 -0
- package/dist/implementations/dms-builder/engine/probe-mysql.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/probe-mysql.js +136 -0
- package/dist/implementations/dms-builder/engine/probe-mysql.js.map +1 -0
- package/dist/implementations/dms-builder/engine/probe-postgres.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/probe-postgres.js +80 -0
- package/dist/implementations/dms-builder/engine/probe-postgres.js.map +1 -0
- package/dist/implementations/dms-builder/engine/probe-rethinkdb.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/probe-rethinkdb.js +92 -0
- package/dist/implementations/dms-builder/engine/probe-rethinkdb.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-config-entry.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/project-config-entry.js +164 -0
- package/dist/implementations/dms-builder/engine/project-config-entry.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-config-ops.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/project-config-ops.js +184 -0
- package/dist/implementations/dms-builder/engine/project-config-ops.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-config-readers.d.ts +15 -0
- package/dist/implementations/dms-builder/engine/project-config-readers.js +125 -0
- package/dist/implementations/dms-builder/engine/project-config-readers.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-config-remove.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/project-config-remove.js +104 -0
- package/dist/implementations/dms-builder/engine/project-config-remove.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-config-steps.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/project-config-steps.js +30 -0
- package/dist/implementations/dms-builder/engine/project-config-steps.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-config-text.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/project-config-text.js +36 -0
- package/dist/implementations/dms-builder/engine/project-config-text.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-config.d.ts +34 -0
- package/dist/implementations/dms-builder/engine/project-config.js +236 -0
- package/dist/implementations/dms-builder/engine/project-config.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-env-loading.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/project-env-loading.js +175 -0
- package/dist/implementations/dms-builder/engine/project-env-loading.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-env.d.ts +16 -0
- package/dist/implementations/dms-builder/engine/project-env.js +199 -0
- package/dist/implementations/dms-builder/engine/project-env.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-scaffold.d.ts +31 -0
- package/dist/implementations/dms-builder/engine/project-scaffold.js +209 -0
- package/dist/implementations/dms-builder/engine/project-scaffold.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project.d.ts +24 -0
- package/dist/implementations/dms-builder/engine/project.js +281 -0
- package/dist/implementations/dms-builder/engine/project.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-chain-series.d.ts +11 -0
- package/dist/implementations/dms-builder/engine/query-chain-series.js +288 -0
- package/dist/implementations/dms-builder/engine/query-chain-series.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-chain.d.ts +40 -0
- package/dist/implementations/dms-builder/engine/query-chain.js +181 -0
- package/dist/implementations/dms-builder/engine/query-chain.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-emit.d.ts +42 -0
- package/dist/implementations/dms-builder/engine/query-emit.js +200 -0
- package/dist/implementations/dms-builder/engine/query-emit.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-ops-emit.d.ts +11 -0
- package/dist/implementations/dms-builder/engine/query-ops-emit.js +284 -0
- package/dist/implementations/dms-builder/engine/query-ops-emit.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-ops.d.ts +32 -0
- package/dist/implementations/dms-builder/engine/query-ops.js +216 -0
- package/dist/implementations/dms-builder/engine/query-ops.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-plan-execute.d.ts +51 -0
- package/dist/implementations/dms-builder/engine/query-plan-execute.js +129 -0
- package/dist/implementations/dms-builder/engine/query-plan-execute.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-plan.d.ts +39 -0
- package/dist/implementations/dms-builder/engine/query-plan.js +235 -0
- package/dist/implementations/dms-builder/engine/query-plan.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-preview.d.ts +11 -0
- package/dist/implementations/dms-builder/engine/query-preview.js +184 -0
- package/dist/implementations/dms-builder/engine/query-preview.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-route-response.d.ts +9 -0
- package/dist/implementations/dms-builder/engine/query-route-response.js +90 -0
- package/dist/implementations/dms-builder/engine/query-route-response.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-structure.d.ts +35 -0
- package/dist/implementations/dms-builder/engine/query-structure.js +330 -0
- package/dist/implementations/dms-builder/engine/query-structure.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-sync.d.ts +12 -0
- package/dist/implementations/dms-builder/engine/query-sync.js +153 -0
- package/dist/implementations/dms-builder/engine/query-sync.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-template-emit.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/query-template-emit.js +103 -0
- package/dist/implementations/dms-builder/engine/query-template-emit.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-template-series.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/query-template-series.js +206 -0
- package/dist/implementations/dms-builder/engine/query-template-series.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-template.d.ts +53 -0
- package/dist/implementations/dms-builder/engine/query-template.js +211 -0
- package/dist/implementations/dms-builder/engine/query-template.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-where.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/query-where.js +73 -0
- package/dist/implementations/dms-builder/engine/query-where.js.map +1 -0
- package/dist/implementations/dms-builder/engine/relabel-columns.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/relabel-columns.js +79 -0
- package/dist/implementations/dms-builder/engine/relabel-columns.js.map +1 -0
- package/dist/implementations/dms-builder/engine/reserved-names.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/reserved-names.js +20 -0
- package/dist/implementations/dms-builder/engine/reserved-names.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-data.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/resource-data.js +18 -0
- package/dist/implementations/dms-builder/engine/resource-data.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-emit-types.d.ts +42 -0
- package/dist/implementations/dms-builder/engine/resource-emit-types.js +383 -0
- package/dist/implementations/dms-builder/engine/resource-emit-types.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-emit.d.ts +64 -0
- package/dist/implementations/dms-builder/engine/resource-emit.js +242 -0
- package/dist/implementations/dms-builder/engine/resource-emit.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-index.d.ts +30 -0
- package/dist/implementations/dms-builder/engine/resource-index.js +259 -0
- package/dist/implementations/dms-builder/engine/resource-index.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-ops-delete.d.ts +10 -0
- package/dist/implementations/dms-builder/engine/resource-ops-delete.js +379 -0
- package/dist/implementations/dms-builder/engine/resource-ops-delete.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-ops.d.ts +23 -0
- package/dist/implementations/dms-builder/engine/resource-ops.js +210 -0
- package/dist/implementations/dms-builder/engine/resource-ops.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-schema.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/resource-schema.js +20 -0
- package/dist/implementations/dms-builder/engine/resource-schema.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-structure.d.ts +18 -0
- package/dist/implementations/dms-builder/engine/resource-structure.js +299 -0
- package/dist/implementations/dms-builder/engine/resource-structure.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-summary-route.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/resource-summary-route.js +49 -0
- package/dist/implementations/dms-builder/engine/resource-summary-route.js.map +1 -0
- package/dist/implementations/dms-builder/engine/rethinkdb-client.d.ts +34 -0
- package/dist/implementations/dms-builder/engine/rethinkdb-client.js +3 -0
- package/dist/implementations/dms-builder/engine/rethinkdb-client.js.map +1 -0
- package/dist/implementations/dms-builder/engine/scalar-guards.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/scalar-guards.js +23 -0
- package/dist/implementations/dms-builder/engine/scalar-guards.js.map +1 -0
- package/dist/implementations/dms-builder/engine/scan.d.ts +37 -0
- package/dist/implementations/dms-builder/engine/scan.js +249 -0
- package/dist/implementations/dms-builder/engine/scan.js.map +1 -0
- package/dist/implementations/dms-builder/engine/source-index.d.ts +9 -0
- package/dist/implementations/dms-builder/engine/source-index.js +66 -0
- package/dist/implementations/dms-builder/engine/source-index.js.map +1 -0
- package/dist/implementations/dms-builder/engine/source-options.d.ts +7 -0
- package/dist/implementations/dms-builder/engine/source-options.js +65 -0
- package/dist/implementations/dms-builder/engine/source-options.js.map +1 -0
- package/dist/implementations/dms-builder/engine/table-readers.d.ts +17 -0
- package/dist/implementations/dms-builder/engine/table-readers.js +141 -0
- package/dist/implementations/dms-builder/engine/table-readers.js.map +1 -0
- package/dist/implementations/dms-builder/engine/table-view-checks.d.ts +30 -0
- package/dist/implementations/dms-builder/engine/table-view-checks.js +146 -0
- package/dist/implementations/dms-builder/engine/table-view-checks.js.map +1 -0
- package/dist/implementations/dms-builder/engine/table-view-settings.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/table-view-settings.js +298 -0
- package/dist/implementations/dms-builder/engine/table-view-settings.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-app-config.d.ts +17 -0
- package/dist/implementations/dms-builder/engine/theme-app-config.js +317 -0
- package/dist/implementations/dms-builder/engine/theme-app-config.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-assets.d.ts +18 -0
- package/dist/implementations/dms-builder/engine/theme-assets.js +160 -0
- package/dist/implementations/dms-builder/engine/theme-assets.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-config-imports.d.ts +7 -0
- package/dist/implementations/dms-builder/engine/theme-config-imports.js +80 -0
- package/dist/implementations/dms-builder/engine/theme-config-imports.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-draft.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/theme-draft.js +35 -0
- package/dist/implementations/dms-builder/engine/theme-draft.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-entry.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/theme-entry.js +41 -0
- package/dist/implementations/dms-builder/engine/theme-entry.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-font-catalog.d.ts +15 -0
- package/dist/implementations/dms-builder/engine/theme-font-catalog.js +82 -0
- package/dist/implementations/dms-builder/engine/theme-font-catalog.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-fonts.d.ts +12 -0
- package/dist/implementations/dms-builder/engine/theme-fonts.js +154 -0
- package/dist/implementations/dms-builder/engine/theme-fonts.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-layer.d.ts +11 -0
- package/dist/implementations/dms-builder/engine/theme-layer.js +99 -0
- package/dist/implementations/dms-builder/engine/theme-layer.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-literals.d.ts +9 -0
- package/dist/implementations/dms-builder/engine/theme-literals.js +108 -0
- package/dist/implementations/dms-builder/engine/theme-literals.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-scaffold.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/theme-scaffold.js +248 -0
- package/dist/implementations/dms-builder/engine/theme-scaffold.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-stylesheet.d.ts +14 -0
- package/dist/implementations/dms-builder/engine/theme-stylesheet.js +167 -0
- package/dist/implementations/dms-builder/engine/theme-stylesheet.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-svg.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/theme-svg.js +182 -0
- package/dist/implementations/dms-builder/engine/theme-svg.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/theme.js +275 -0
- package/dist/implementations/dms-builder/engine/theme.js.map +1 -0
- package/dist/implementations/dms-builder/engine/value.d.ts +35 -0
- package/dist/implementations/dms-builder/engine/value.js +152 -0
- package/dist/implementations/dms-builder/engine/value.js.map +1 -0
- package/dist/implementations/dms-builder/engine/writable.d.ts +28 -0
- package/dist/implementations/dms-builder/engine/writable.js +310 -0
- package/dist/implementations/dms-builder/engine/writable.js.map +1 -0
- package/dist/implementations/dms-builder/index.d.ts +129 -0
- package/dist/implementations/dms-builder/index.js +293 -0
- package/dist/implementations/dms-builder/index.js.map +1 -0
- package/dist/implementations/dms-notifications/index.d.ts +0 -1
- package/dist/implementations/dms-notifications/index.js +0 -4
- package/dist/implementations/dms-notifications/index.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/mcp/access.d.ts +4 -0
- package/dist/mcp/access.js +11 -0
- package/dist/mcp/access.js.map +1 -0
- package/dist/mcp/backend-url.d.ts +8 -0
- package/dist/mcp/backend-url.js +39 -0
- package/dist/mcp/backend-url.js.map +1 -0
- package/dist/mcp/bridge.d.ts +8 -0
- package/dist/mcp/bridge.js +169 -0
- package/dist/mcp/bridge.js.map +1 -0
- package/dist/mcp/confirmation-gate.d.ts +13 -0
- package/dist/mcp/confirmation-gate.js +79 -0
- package/dist/mcp/confirmation-gate.js.map +1 -0
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/index.js +73 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/json.d.ts +5 -0
- package/dist/mcp/json.js +14 -0
- package/dist/mcp/json.js.map +1 -0
- package/dist/mcp/log-buffer.d.ts +14 -0
- package/dist/mcp/log-buffer.js +65 -0
- package/dist/mcp/log-buffer.js.map +1 -0
- package/dist/mcp/page-verify/accounts.d.ts +35 -0
- package/dist/mcp/page-verify/accounts.js +106 -0
- package/dist/mcp/page-verify/accounts.js.map +1 -0
- package/dist/mcp/page-verify/browser.d.ts +2 -0
- package/dist/mcp/page-verify/browser.js +58 -0
- package/dist/mcp/page-verify/browser.js.map +1 -0
- package/dist/mcp/page-verify/controls.d.ts +13 -0
- package/dist/mcp/page-verify/controls.js +48 -0
- package/dist/mcp/page-verify/controls.js.map +1 -0
- package/dist/mcp/page-verify/failures.d.ts +2 -0
- package/dist/mcp/page-verify/failures.js +52 -0
- package/dist/mcp/page-verify/failures.js.map +1 -0
- package/dist/mcp/page-verify/forms.d.ts +12 -0
- package/dist/mcp/page-verify/forms.js +257 -0
- package/dist/mcp/page-verify/forms.js.map +1 -0
- package/dist/mcp/page-verify/index.d.ts +20 -0
- package/dist/mcp/page-verify/index.js +283 -0
- package/dist/mcp/page-verify/index.js.map +1 -0
- package/dist/mcp/page-verify/interactions.d.ts +8 -0
- package/dist/mcp/page-verify/interactions.js +191 -0
- package/dist/mcp/page-verify/interactions.js.map +1 -0
- package/dist/mcp/page-verify/mockup.d.ts +13 -0
- package/dist/mcp/page-verify/mockup.js +132 -0
- package/dist/mcp/page-verify/mockup.js.map +1 -0
- package/dist/mcp/page-verify/page-probe.d.ts +191 -0
- package/dist/mcp/page-verify/page-probe.js +107 -0
- package/dist/mcp/page-verify/page-probe.js.map +1 -0
- package/dist/mcp/page-verify/playwright.d.ts +147 -0
- package/dist/mcp/page-verify/playwright.js +15 -0
- package/dist/mcp/page-verify/playwright.js.map +1 -0
- package/dist/mcp/page-verify/render.d.ts +41 -0
- package/dist/mcp/page-verify/render.js +293 -0
- package/dist/mcp/page-verify/render.js.map +1 -0
- package/dist/mcp/page-verify/report.d.ts +116 -0
- package/dist/mcp/page-verify/report.js +8 -0
- package/dist/mcp/page-verify/report.js.map +1 -0
- package/dist/mcp/page-verify/targets.d.ts +8 -0
- package/dist/mcp/page-verify/targets.js +39 -0
- package/dist/mcp/page-verify/targets.js.map +1 -0
- package/dist/mcp/project-files.d.ts +20 -0
- package/dist/mcp/project-files.js +175 -0
- package/dist/mcp/project-files.js.map +1 -0
- package/dist/mcp/protocol.d.ts +9 -0
- package/dist/mcp/protocol.js +129 -0
- package/dist/mcp/protocol.js.map +1 -0
- package/dist/mcp/route.d.ts +9 -0
- package/dist/mcp/route.js +109 -0
- package/dist/mcp/route.js.map +1 -0
- package/dist/mcp/server.d.ts +8 -0
- package/dist/mcp/server.js +27 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/tool.d.ts +39 -0
- package/dist/mcp/tool.js +50 -0
- package/dist/mcp/tool.js.map +1 -0
- package/dist/mcp/tools/builder-catalog.d.ts +1 -0
- package/dist/mcp/tools/builder-catalog.js +73 -0
- package/dist/mcp/tools/builder-catalog.js.map +1 -0
- package/dist/mcp/tools/builder-compose.d.ts +1 -0
- package/dist/mcp/tools/builder-compose.js +95 -0
- package/dist/mcp/tools/builder-compose.js.map +1 -0
- package/dist/mcp/tools/builder-pages.d.ts +1 -0
- package/dist/mcp/tools/builder-pages.js +185 -0
- package/dist/mcp/tools/builder-pages.js.map +1 -0
- package/dist/mcp/tools/builder-project.d.ts +1 -0
- package/dist/mcp/tools/builder-project.js +304 -0
- package/dist/mcp/tools/builder-project.js.map +1 -0
- package/dist/mcp/tools/builder-queries.d.ts +12 -0
- package/dist/mcp/tools/builder-queries.js +110 -0
- package/dist/mcp/tools/builder-queries.js.map +1 -0
- package/dist/mcp/tools/builder-resources.d.ts +1 -0
- package/dist/mcp/tools/builder-resources.js +154 -0
- package/dist/mcp/tools/builder-resources.js.map +1 -0
- package/dist/mcp/tools/builder-shared.d.ts +14 -0
- package/dist/mcp/tools/builder-shared.js +44 -0
- package/dist/mcp/tools/builder-shared.js.map +1 -0
- package/dist/mcp/tools/builder-table-view.d.ts +246 -0
- package/dist/mcp/tools/builder-table-view.js +145 -0
- package/dist/mcp/tools/builder-table-view.js.map +1 -0
- package/dist/mcp/tools/builder-theme.d.ts +1 -0
- package/dist/mcp/tools/builder-theme.js +39 -0
- package/dist/mcp/tools/builder-theme.js.map +1 -0
- package/dist/mcp/tools/database.d.ts +1 -0
- package/dist/mcp/tools/database.js +114 -0
- package/dist/mcp/tools/database.js.map +1 -0
- package/dist/mcp/tools/index.d.ts +2 -0
- package/dist/mcp/tools/index.js +36 -0
- package/dist/mcp/tools/index.js.map +1 -0
- package/dist/mcp/tools/json-patch.d.ts +82 -0
- package/dist/mcp/tools/json-patch.js +144 -0
- package/dist/mcp/tools/json-patch.js.map +1 -0
- package/dist/mcp/tools/mockup-annotations.d.ts +1 -0
- package/dist/mcp/tools/mockup-annotations.js +32 -0
- package/dist/mcp/tools/mockup-annotations.js.map +1 -0
- package/dist/mcp/tools/mockup-apply-to-page.d.ts +1 -0
- package/dist/mcp/tools/mockup-apply-to-page.js +32 -0
- package/dist/mcp/tools/mockup-apply-to-page.js.map +1 -0
- package/dist/mcp/tools/mockup-from-page.d.ts +1 -0
- package/dist/mcp/tools/mockup-from-page.js +29 -0
- package/dist/mcp/tools/mockup-from-page.js.map +1 -0
- package/dist/mcp/tools/mockup-patch-spec.d.ts +1 -0
- package/dist/mcp/tools/mockup-patch-spec.js +67 -0
- package/dist/mcp/tools/mockup-patch-spec.js.map +1 -0
- package/dist/mcp/tools/mockup-resolve-annotation.d.ts +1 -0
- package/dist/mcp/tools/mockup-resolve-annotation.js +28 -0
- package/dist/mcp/tools/mockup-resolve-annotation.js.map +1 -0
- package/dist/mcp/tools/mockup-support.d.ts +9 -0
- package/dist/mcp/tools/mockup-support.js +45 -0
- package/dist/mcp/tools/mockup-support.js.map +1 -0
- package/dist/mcp/tools/mockup-write-spec.d.ts +1 -0
- package/dist/mcp/tools/mockup-write-spec.js +16 -0
- package/dist/mcp/tools/mockup-write-spec.js.map +1 -0
- package/dist/mcp/tools/mockup.d.ts +2 -0
- package/dist/mcp/tools/mockup.js +18 -0
- package/dist/mcp/tools/mockup.js.map +1 -0
- package/dist/mcp/tools/page-verify.d.ts +1 -0
- package/dist/mcp/tools/page-verify.js +116 -0
- package/dist/mcp/tools/page-verify.js.map +1 -0
- package/dist/mcp/tools/pages.d.ts +3 -0
- package/dist/mcp/tools/pages.js +77 -0
- package/dist/mcp/tools/pages.js.map +1 -0
- package/dist/mcp/tools/preview-blocks.d.ts +1 -0
- package/dist/mcp/tools/preview-blocks.js +252 -0
- package/dist/mcp/tools/preview-blocks.js.map +1 -0
- package/dist/mcp/tools/query-logs.d.ts +1 -0
- package/dist/mcp/tools/query-logs.js +25 -0
- package/dist/mcp/tools/query-logs.js.map +1 -0
- package/dist/mcp/tools/typecheck.d.ts +1 -0
- package/dist/mcp/tools/typecheck.js +110 -0
- package/dist/mcp/tools/typecheck.js.map +1 -0
- package/dist/mockup/anchor.d.ts +43 -0
- package/dist/mockup/anchor.js +193 -0
- package/dist/mockup/anchor.js.map +1 -0
- package/dist/mockup/annotations.d.ts +88 -0
- package/dist/mockup/annotations.js +169 -0
- package/dist/mockup/annotations.js.map +1 -0
- package/dist/mockup/apply-fate.d.ts +52 -0
- package/dist/mockup/apply-fate.js +148 -0
- package/dist/mockup/apply-fate.js.map +1 -0
- package/dist/mockup/apply-match.d.ts +39 -0
- package/dist/mockup/apply-match.js +129 -0
- package/dist/mockup/apply-match.js.map +1 -0
- package/dist/mockup/apply-names.d.ts +4 -0
- package/dist/mockup/apply-names.js +52 -0
- package/dist/mockup/apply-names.js.map +1 -0
- package/dist/mockup/apply-notes.d.ts +9 -0
- package/dist/mockup/apply-notes.js +16 -0
- package/dist/mockup/apply-notes.js.map +1 -0
- package/dist/mockup/apply-options.d.ts +18 -0
- package/dist/mockup/apply-options.js +117 -0
- package/dist/mockup/apply-options.js.map +1 -0
- package/dist/mockup/apply-plan.d.ts +23 -0
- package/dist/mockup/apply-plan.js +237 -0
- package/dist/mockup/apply-plan.js.map +1 -0
- package/dist/mockup/apply-to-page.d.ts +35 -0
- package/dist/mockup/apply-to-page.js +145 -0
- package/dist/mockup/apply-to-page.js.map +1 -0
- package/dist/mockup/built-sync.d.ts +16 -0
- package/dist/mockup/built-sync.js +53 -0
- package/dist/mockup/built-sync.js.map +1 -0
- package/dist/mockup/compile.d.ts +24 -0
- package/dist/mockup/compile.js +264 -0
- package/dist/mockup/compile.js.map +1 -0
- package/dist/mockup/controller-blocks.d.ts +35 -0
- package/dist/mockup/controller-blocks.js +204 -0
- package/dist/mockup/controller-blocks.js.map +1 -0
- package/dist/mockup/files.d.ts +18 -0
- package/dist/mockup/files.js +36 -0
- package/dist/mockup/files.js.map +1 -0
- package/dist/mockup/fixtures.d.ts +45 -0
- package/dist/mockup/fixtures.js +139 -0
- package/dist/mockup/fixtures.js.map +1 -0
- package/dist/mockup/form-fields.d.ts +3 -0
- package/dist/mockup/form-fields.js +75 -0
- package/dist/mockup/form-fields.js.map +1 -0
- package/dist/mockup/from-page-routes.d.ts +13 -0
- package/dist/mockup/from-page-routes.js +75 -0
- package/dist/mockup/from-page-routes.js.map +1 -0
- package/dist/mockup/from-page-sketch.d.ts +8 -0
- package/dist/mockup/from-page-sketch.js +53 -0
- package/dist/mockup/from-page-sketch.js.map +1 -0
- package/dist/mockup/from-page.d.ts +19 -0
- package/dist/mockup/from-page.js +296 -0
- package/dist/mockup/from-page.js.map +1 -0
- package/dist/mockup/index.d.ts +19 -0
- package/dist/mockup/index.js +59 -0
- package/dist/mockup/index.js.map +1 -0
- package/dist/mockup/json-schema.d.ts +3 -0
- package/dist/mockup/json-schema.js +253 -0
- package/dist/mockup/json-schema.js.map +1 -0
- package/dist/mockup/live-page.d.ts +45 -0
- package/dist/mockup/live-page.js +188 -0
- package/dist/mockup/live-page.js.map +1 -0
- package/dist/mockup/model.d.ts +372 -0
- package/dist/mockup/model.js +125 -0
- package/dist/mockup/model.js.map +1 -0
- package/dist/mockup/owner-controller.d.ts +12 -0
- package/dist/mockup/owner-controller.js +41 -0
- package/dist/mockup/owner-controller.js.map +1 -0
- package/dist/mockup/page.d.ts +19 -0
- package/dist/mockup/page.js +83 -0
- package/dist/mockup/page.js.map +1 -0
- package/dist/mockup/queue.d.ts +1 -0
- package/dist/mockup/queue.js +17 -0
- package/dist/mockup/queue.js.map +1 -0
- package/dist/mockup/routes.d.ts +30 -0
- package/dist/mockup/routes.js +274 -0
- package/dist/mockup/routes.js.map +1 -0
- package/dist/mockup/sample-rows.d.ts +7 -0
- package/dist/mockup/sample-rows.js +30 -0
- package/dist/mockup/sample-rows.js.map +1 -0
- package/dist/mockup/sketch-allowlist.d.ts +11 -0
- package/dist/mockup/sketch-allowlist.js +368 -0
- package/dist/mockup/sketch-allowlist.js.map +1 -0
- package/dist/mockup/sketch-css.d.ts +3 -0
- package/dist/mockup/sketch-css.js +306 -0
- package/dist/mockup/sketch-css.js.map +1 -0
- package/dist/mockup/sketch-html.d.ts +7 -0
- package/dist/mockup/sketch-html.js +243 -0
- package/dist/mockup/sketch-html.js.map +1 -0
- package/dist/mockup/sketch-limits.d.ts +1 -0
- package/dist/mockup/sketch-limits.js +5 -0
- package/dist/mockup/sketch-limits.js.map +1 -0
- package/dist/mockup/sketch-scan.d.ts +1 -0
- package/dist/mockup/sketch-scan.js +136 -0
- package/dist/mockup/sketch-scan.js.map +1 -0
- package/dist/mockup/sketch-tokens.d.ts +22 -0
- package/dist/mockup/sketch-tokens.js +42 -0
- package/dist/mockup/sketch-tokens.js.map +1 -0
- package/dist/mockup/sketch.d.ts +26 -0
- package/dist/mockup/sketch.js +134 -0
- package/dist/mockup/sketch.js.map +1 -0
- package/dist/mockup/source-routes.d.ts +24 -0
- package/dist/mockup/source-routes.js +105 -0
- package/dist/mockup/source-routes.js.map +1 -0
- package/dist/mockup/source.d.ts +29 -0
- package/dist/mockup/source.js +131 -0
- package/dist/mockup/source.js.map +1 -0
- package/dist/mockup/store.d.ts +63 -0
- package/dist/mockup/store.js +296 -0
- package/dist/mockup/store.js.map +1 -0
- package/dist/mockup/validate.d.ts +9 -0
- package/dist/mockup/validate.js +172 -0
- package/dist/mockup/validate.js.map +1 -0
- package/dist/pages/public/preview/index.d.ts +4 -0
- package/dist/pages/public/preview/index.js +3 -3
- package/dist/pages/public/preview/index.js.map +1 -1
- package/dist/pages/settings/users/invite-extension-routes.js.map +1 -1
- package/dist/pages/settings/users/notifications.d.ts +3 -4
- package/dist/pages/settings/users/notifications.js +8 -24
- package/dist/pages/settings/users/notifications.js.map +1 -1
- package/dist/pages/settings/users/permission-tree-nodes.d.ts +3 -3
- package/dist/pages/settings/users/permission-tree-nodes.js.map +1 -1
- package/dist/pages/settings/users/permission-warnings.js.map +1 -1
- package/dist/pages/settings/users/role-editor-store.d.ts +1 -0
- package/dist/pages/settings/users/role-editor-store.js +27 -7
- package/dist/pages/settings/users/role-editor-store.js.map +1 -1
- package/dist/pages/settings/users/role-preview.js +1 -1
- package/dist/pages/settings/users/role-preview.js.map +1 -1
- package/dist/pages/settings/users/roles.js +14 -0
- package/dist/pages/settings/users/roles.js.map +1 -1
- package/dist/pages/settings/users/two-factor-operations.d.ts +0 -1
- package/dist/pages/settings/users/two-factor-operations.js +0 -1
- package/dist/pages/settings/users/two-factor-operations.js.map +1 -1
- package/dist/realtime/sessions.d.ts +9 -0
- package/dist/realtime/sessions.js +6 -0
- package/dist/realtime/sessions.js.map +1 -1
- package/dist/routes/auth/logout.d.ts +2 -2
- package/dist/routes/auth/logout.js +3 -9
- package/dist/routes/auth/logout.js.map +1 -1
- package/dist/routes/auth/refresh.js +6 -8
- package/dist/routes/auth/refresh.js.map +1 -1
- package/dist/routes/auth/switch-tenant.js +8 -11
- package/dist/routes/auth/switch-tenant.js.map +1 -1
- package/dist/routes/auth/two-factor-throttle.js +5 -1
- package/dist/routes/auth/two-factor-throttle.js.map +1 -1
- package/dist/routes/auth.js +1 -1
- package/dist/routes/auth.js.map +1 -1
- package/dist/routes/files.d.ts +2 -2
- package/dist/routes/files.js +2 -2
- package/dist/routes/files.js.map +1 -1
- package/dist/routes/onboarding.js +4 -6
- package/dist/routes/onboarding.js.map +1 -1
- package/dist/routes/realtime.d.ts +3 -3
- package/dist/routes/realtime.js +22 -18
- package/dist/routes/realtime.js.map +1 -1
- package/dist/routes/system-state.d.ts +6 -6
- package/dist/routes/system-state.js +1 -1
- package/dist/routes/system-state.js.map +1 -1
- package/dist/store/catalog.d.ts +2 -2
- package/dist/store/declarations.d.ts +0 -3
- package/dist/store/declarations.js +5 -74
- package/dist/store/declarations.js.map +1 -1
- package/dist/store/internal/frontend/frontend-ready.d.ts +2 -2
- package/dist/store/registry.js +2 -4
- package/dist/store/registry.js.map +1 -1
- package/dist/store/runtime.d.ts +2 -2
- package/dist/store/tarball.js +12 -6
- package/dist/store/tarball.js.map +1 -1
- package/dist/utils/export-jobs-run.d.ts +6 -6
- package/dist/utils/export-jobs-run.js +3 -7
- package/dist/utils/export-jobs-run.js.map +1 -1
- package/dist/utils/export-jobs.js +20 -1
- package/dist/utils/export-jobs.js.map +1 -1
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/owner-only-file.d.ts +1 -0
- package/dist/utils/owner-only-file.js +60 -0
- package/dist/utils/owner-only-file.js.map +1 -0
- package/dist/utils/package-manager/index.d.ts +1 -0
- package/dist/utils/package-manager/index.js +18 -0
- package/dist/utils/package-manager/index.js.map +1 -0
- package/dist/utils/package-manager.d.ts +12 -0
- package/dist/utils/package-manager.js +28 -0
- package/dist/utils/package-manager.js.map +1 -0
- package/dist/utils/page-access.d.ts +4 -0
- package/dist/utils/page-access.js +10 -3
- package/dist/utils/page-access.js.map +1 -1
- package/dist/utils/query-text.d.ts +2 -0
- package/dist/utils/query-text.js +7 -0
- package/dist/utils/query-text.js.map +1 -0
- package/dist/utils/row-action-rule-evaluator.d.ts +2 -2
- package/dist/utils/tenant-instances.js +3 -3
- package/dist/utils/tenant-instances.js.map +1 -1
- package/dist/validation/auth.schema.d.ts +6 -6
- package/dist/validation/regional-preferences.schema.d.ts +4 -4
- package/dist/validation/user-notification-preferences.schema.d.ts +0 -1
- package/dist/validation/user-notification-preferences.schema.js +6 -3
- package/dist/validation/user-notification-preferences.schema.js.map +1 -1
- package/frontend-vue/deferred-plugins.ts +2 -0
- package/frontend-vue/dms.frontend.ts +34 -1
- package/frontend-vue/dms.server.ts +3 -1
- package/frontend-vue/eslint-globals.generated.mjs +7 -1
- package/frontend-vue/layers/dms-auth/app/components/OAuthButtons.vue +1 -1
- package/frontend-vue/layers/dms-auth/app/middleware/auth.ts +18 -9
- package/frontend-vue/layers/dms-auth/server/accounts.ts +2 -8
- package/frontend-vue/layers/dms-auth/server/actions.ts +83 -60
- package/frontend-vue/layers/dms-auth/server/backend-answers.ts +95 -0
- package/frontend-vue/layers/dms-auth/server/oauth.ts +26 -29
- package/frontend-vue/layers/dms-auth/server/session.ts +62 -27
- package/frontend-vue/layers/dms-core/app/build/composables/auth/usePermissionPreview.ts +20 -9
- package/frontend-vue/layers/dms-core/app/build/composables/user/tablePreferences.ts +9 -7
- package/frontend-vue/layers/dms-core/app/build/utils/permission-preview.ts +4 -4
- package/frontend-vue/layers/dms-core/app/build/utils/sharedRealtimeConnection.ts +10 -0
- package/frontend-vue/layers/dms-core/app/composables/realtime/useUserRealtime.ts +2 -0
- package/frontend-vue/layers/dms-core/app/composables/useApiErrorPresenter.ts +1 -1
- package/frontend-vue/layers/dms-core/app/composables/user/usePreferences.ts +0 -16
- package/frontend-vue/layers/dms-core/app/composables/watch/useWatch.ts +4 -0
- package/frontend-vue/layers/dms-core/app/types/menu.ts +5 -0
- package/frontend-vue/layers/dms-core/app/types/page.ts +4 -6
- package/frontend-vue/layers/dms-core/app/utils/regional.ts +1 -2
- package/frontend-vue/layers/dms-layout/app/assets/css/main.css +28 -32
- package/frontend-vue/layers/dms-layout/app/assets/css/status.css +137 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingColorPair.vue +77 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingDeveloperPanel.vue +266 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingEditor.vue +316 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingLogoTile.vue +67 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingPaletteSwatches.vue +63 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingPreview.vue +138 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingSimplePanel.vue +171 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingValueInput.vue +36 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/api.ts +55 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/catalog.ts +209 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/color-input.ts +35 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/device-draft.ts +290 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/errors.ts +23 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/fonts.ts +106 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/header-action.ts +19 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/logo-tiles.ts +73 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/logos.ts +180 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/model.ts +391 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/preview-style.ts +182 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/raster.ts +97 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/theme-types.ts +105 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/useBrandingEditor.ts +256 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/values.ts +103 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardFrame.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/layout/PageHeaderActionsOutlet.vue +50 -32
- package/frontend-vue/layers/dms-layout/app/build/components/layout/PreviewSidebar.vue +62 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/StageCard.vue +5 -5
- package/frontend-vue/layers/dms-layout/app/build/components/notification/NotificationCard.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleCatalogTile.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleStoreBanners.vue +4 -4
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationInboxDisplay.vue +3 -3
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationPreferencesForm.vue +2 -2
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/profile/ProfilePersonalInfo.vue +2 -2
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/region/RegionFormatPreview.vue +3 -3
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RoleEditor.vue +5 -5
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RoleOwnerPanel.vue +3 -3
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolePermissionArea.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolePermissionLeaf.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolesList.vue +5 -5
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolesListItem.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/role-permissions.ts +34 -0
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/role-types.ts +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/useRoleEditor.ts +13 -10
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityBackupCodesModal.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityDialogFrame.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityEmail.vue +6 -6
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityPassword.vue +2 -2
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecuritySessions.vue +2 -2
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityTwoFactor.vue +2 -2
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/AppearanceAccessibility.vue +2 -2
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/CssVariablesList.vue +15 -7
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/ScalePreview.vue +1 -0
- package/frontend-vue/layers/dms-layout/app/build/composables/general/useGithubStarPrompt.ts +7 -3
- package/frontend-vue/layers/dms-layout/app/build/composables/notification/useNotificationGroupsOpen.ts +7 -3
- package/frontend-vue/layers/dms-layout/app/build/composables/settings/security/useSecurityOverview.ts +0 -1
- package/frontend-vue/layers/dms-layout/app/build/mockup/header-action.ts +125 -0
- package/frontend-vue/layers/dms-layout/app/build/mockups/header-action.ts +19 -0
- package/frontend-vue/layers/dms-layout/app/build/utils/module-store-catalog.ts +5 -7
- package/frontend-vue/layers/dms-layout/app/build/utils/modules-catalog.ts +1 -6
- package/frontend-vue/layers/dms-layout/app/components/AppWidgetsDock.vue +36 -2
- package/frontend-vue/layers/dms-layout/app/components/layout/HStack.vue +2 -0
- package/frontend-vue/layers/dms-layout/app/components/layout/VStack.vue +2 -0
- package/frontend-vue/layers/dms-layout/app/components/navigation/CollapsedMenuItem.vue +20 -12
- package/frontend-vue/layers/dms-layout/app/components/navigation/NavigationMenu.vue +63 -2
- package/frontend-vue/layers/dms-layout/app/composables/layout/useServedHeaderActions.ts +10 -3
- package/frontend-vue/layers/dms-layout/app/composables/profile/useUserLanguage.ts +5 -0
- package/frontend-vue/layers/dms-layout/app/composables/useAppWidgets.ts +12 -0
- package/frontend-vue/layers/dms-layout/app/composables/useHeaderActions.ts +4 -4
- package/frontend-vue/layers/dms-layout/app/composables/useMenuLocks.ts +48 -0
- package/frontend-vue/layers/dms-layout/app/custom-layouts/EmptyLayout.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/custom-layouts/PreviewLayout.vue +47 -5
- package/frontend-vue/layers/dms-layout/app/custom-pages/modules-store.vue +11 -8
- package/frontend-vue/layers/dms-layout/app/custom-pages/modules.vue +10 -10
- package/frontend-vue/layers/dms-layout/app/custom-pages/settings/shortcuts.vue +4 -4
- package/frontend-vue/layers/dms-layout/app/entries/branding/BrandingEditor.ts +1 -0
- package/frontend-vue/layers/dms-layout/app/entries/branding/header-action.ts +2 -0
- package/frontend-vue/layers/dms-layout/app/entries/branding/model.ts +5 -0
- package/frontend-vue/layers/dms-layout/app/entries/components/layout/LayoutFooter.ts +2 -0
- package/frontend-vue/layers/dms-layout/app/entries/mockup/header-action.ts +2 -0
- package/frontend-vue/layers/dms-layout/app/entries/mockups/header-action.ts +2 -0
- package/frontend-vue/layers/dms-layout/app/pages/[...slug].vue +4 -0
- package/frontend-vue/layers/dms-layout/app/plugins/dms-mcp-navigate.client.ts +13 -0
- package/frontend-vue/layers/dms-layout/i18n/locales/layout-en-GB.json +181 -12
- package/frontend-vue/layers/dms-layout/i18n/locales/layout-fr-FR.json +181 -12
- package/frontend-vue/layers/dms-layout/server/html-render.ts +3 -6
- package/frontend-vue/layers/dms-onboarding/app/build/components/onboarding/StepMeta.vue +1 -1
- package/frontend-vue/layers/dms-onboarding/app/custom-pages/onboarding.vue +3 -3
- package/frontend-vue/layers/dms-onboarding/app/entries/components/onboarding/steps/StepReady.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/BlockPreviewSketch.vue +77 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupAnnotations.vue +93 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupBlockCatalog.vue +76 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupCommentPanel.vue +85 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupEditOverlay.vue +240 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupEditPanel.vue +91 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupIndex.vue +66 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupInspector.vue +182 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupInspectorField.vue +172 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupIssues.vue +32 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupLayers.vue +44 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPageInspector.vue +92 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPagesList.vue +125 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPromptModal.vue +51 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTopBar.vue +138 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkbench.vue +493 -0
- package/frontend-vue/layers/dms-ui/app/build/components/containers/TargetComponentTree.vue +1 -0
- package/frontend-vue/layers/dms-ui/app/build/components/form/FormFieldControl.vue +16 -8
- package/frontend-vue/layers/dms-ui/app/build/components/form/FormSectionNav.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/build/components/form/FormSections.vue +7 -4
- package/frontend-vue/layers/dms-ui/app/build/components/section/context.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/stat/StatCell.vue +3 -3
- package/frontend-vue/layers/dms-ui/app/build/components/table/FiltersRow.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuColumns.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuDensity.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuFilter.vue +5 -5
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuImport.vue +6 -6
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuPage.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuRoot.vue +6 -6
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuSort.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuViewMode.vue +5 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/RowSelection.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/Table.types.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/{Actions.vue → TableActions.vue} +22 -22
- package/frontend-vue/layers/dms-ui/app/build/components/table/TableBody.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/{Empty.vue → TableEmpty.vue} +2 -2
- package/frontend-vue/layers/dms-ui/app/build/components/table/{Menu.vue → TableMenu.vue} +1 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table/{Pagination.vue → TablePagination.vue} +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/{Table.vue → TableRoot.vue} +3 -3
- package/frontend-vue/layers/dms-ui/app/build/components/table/{Views.vue → TableViews.vue} +37 -14
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/CardRowActions.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/CardsDisplay.vue +9 -5
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/ExpandedRowDetail.vue +4 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewGeometry.ts +53 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewNavigation.ts +23 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockInspector.ts +115 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockPreviewEmbed.ts +78 -9
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupCatalog.ts +45 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupComments.ts +95 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupEditing.ts +323 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupHandoff.ts +62 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSession.ts +115 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSpec.ts +433 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewFrame.ts +94 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/metricCells.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/form/fieldComponentProps.ts +113 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/form/formLayout.ts +4 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/form/formState.ts +7 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/form/useFormModel.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/live/liveStorage.ts +11 -5
- package/frontend-vue/layers/dms-ui/app/build/composables/page/blockAnchors.ts +65 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnActionDescriptors.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnActionRendering.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnActionSizing.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnHeaders.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnStructure.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnTypes.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useTable.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableColumns.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableConfigClipboard.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableContext.ts +4 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableStates.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/clearTableFilters.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/filterEditorValue.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/formatFilterValue.ts +2 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableRowActionContainers.ts +3 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewBindings.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewCounts.ts +4 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewDisplays.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewFilters.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewNavigation.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewQuickFilters.ts +18 -13
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewViews.ts +2 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useGroupedRows.ts +4 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableFooter.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableViews.ts +19 -22
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/groupedRows.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/quickFilters.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/tableCounts.ts +5 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/tableQuery.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/urlFilters.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/views.ts +48 -3
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCards.vue +188 -0
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupThumbnail.vue +137 -0
- package/frontend-vue/layers/dms-ui/app/build/mockups/resync.ts +56 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreview.ts +77 -105
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewMessages.ts +362 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/eyebrow.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/utils/mockup.ts +436 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupCatalog.ts +437 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupDrop.ts +260 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupEdit.ts +487 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupHandoff.ts +20 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupHistory.ts +80 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupInspector.ts +120 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupOutline.ts +91 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupSpec.ts +219 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupStamp.ts +265 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupStream.ts +98 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/sanitizedNodes.ts +27 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/sketch.ts +167 -0
- package/frontend-vue/layers/dms-ui/app/components/RecursiveComponent.vue +1 -0
- package/frontend-vue/layers/dms-ui/app/components/activity-feed/ActivityFeed.vue +4 -4
- package/frontend-vue/layers/dms-ui/app/components/block-preview/BlockPreview.vue +32 -6
- package/frontend-vue/layers/dms-ui/app/components/block-preview/MockupViewer.vue +38 -0
- package/frontend-vue/layers/dms-ui/app/components/blocks/BannerBlock.vue +3 -3
- package/frontend-vue/layers/dms-ui/app/components/blocks/CardBlock.vue +3 -3
- package/frontend-vue/layers/dms-ui/app/components/blocks/KeyValueListBlock.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/components/blocks/LiveToggleBlock.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/components/card/{Card.vue → CardPanel.vue} +2 -2
- package/frontend-vue/layers/dms-ui/app/components/chart/ChartCard.vue +4 -4
- package/frontend-vue/layers/dms-ui/app/components/confirm/ConfirmModal.vue +1 -0
- package/frontend-vue/layers/dms-ui/app/components/flow-canvas/FlowCanvas.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/components/form/{Form.vue → FormBlock.vue} +1 -1
- package/frontend-vue/layers/dms-ui/app/components/form/LocalizedField.vue +34 -25
- package/frontend-vue/layers/dms-ui/app/components/form/components/DatePicker.vue +17 -16
- package/frontend-vue/layers/dms-ui/app/components/form/components/DisplayImage.vue +1 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/DisplayRichText.vue +12 -4
- package/frontend-vue/layers/dms-ui/app/components/form/components/{Calendar.vue → InputCalendar.vue} +11 -10
- package/frontend-vue/layers/dms-ui/app/components/form/components/{Cascader.vue → InputCascader.vue} +0 -6
- package/frontend-vue/layers/dms-ui/app/components/form/components/{Image.vue → InputImage.vue} +1 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/{Relation.vue → InputRelation.vue} +14 -11
- package/frontend-vue/layers/dms-ui/app/components/form/components/{Repeater.vue → InputRepeater.vue} +1 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/{Select.vue → InputSelect.vue} +9 -5
- package/frontend-vue/layers/dms-ui/app/components/form/components/KeyValue.vue +4 -3
- package/frontend-vue/layers/dms-ui/app/components/form/components/SegmentedSelect.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/components/kpi/KpiCard.vue +7 -7
- package/frontend-vue/layers/dms-ui/app/components/meter/MeterBlock.vue +5 -5
- package/frontend-vue/layers/dms-ui/app/components/period/PeriodSelector.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/components/section-header/SectionHeader.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/components/status/StatusSummary.vue +3 -3
- package/frontend-vue/layers/dms-ui/app/components/table-view/ImagePreview.vue +1 -0
- package/frontend-vue/layers/dms-ui/app/components/table-view/KanbanBoard.vue +20 -18
- package/frontend-vue/layers/dms-ui/app/components/table-view/KanbanDisplay.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/components/table-view/TableView.vue +6 -5
- package/frontend-vue/layers/dms-ui/app/components/top-list/TopListCard.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/components/top-list/internal/TopListRow.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/composables/chart/formatValue.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/chart/types.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/confirm/types.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/form/types/props.ts +2 -2
- package/frontend-vue/layers/dms-ui/app/composables/form/useForm.ts +2 -2
- package/frontend-vue/layers/dms-ui/app/composables/tab/useTab.ts +6 -7
- package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/index.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/tableViewDelete.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/tableViewShiftA.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/tableViewShiftN.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/display.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/table-view/useTableViewEmptyState.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/BlockPreviewSketch.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/components/table/TableActions.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/components/table/TableEmpty.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/components/table/TablePagination.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/components/table/TableRoot.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/components/table/TableViews.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/previewNavigation.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useBlockInspector.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupSpec.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/mockups/MockupCards.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/mockups/MockupThumbnail.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/blockPreview.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockup.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupCatalog.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupDrop.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupEdit.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupHistory.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupInspector.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupOutline.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupSpec.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/sketch.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/types/table/base.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/utils/mockupAssistant.ts +59 -0
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-en-GB.json +122 -1
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-fr-FR.json +122 -1
- package/frontend-vue/package.json +4 -3
- package/frontend-vue/scripts/check-autoimport-boundaries.mjs +12 -7
- package/frontend-vue/scripts/check-dms-components.mjs +519 -0
- package/frontend-vue/scripts/check-invariants.mjs +7 -1
- package/frontend-vue/scripts/check-page-invariants.mjs +1 -1
- package/frontend-vue/scripts/dms-components-dependencies.mjs +89 -0
- package/frontend-vue/scripts/probes/frontend-legacy.cjs +22 -22
- package/frontend-vue/scripts/test-dms-components.mjs +255 -0
- package/frontend-vue/server/request-body.ts +21 -0
- package/package.json +79 -25
- package/skills/dms/REFERENCE.md +1 -1
- package/skills/dms/SKILL.md +7 -6
- package/skills/dms-auth/SKILL.md +4 -3
- package/skills/dms-module/REFERENCE.md +1 -1
- package/skills/dms-module/SKILL.md +2 -2
- package/skills/dms-module/cases.json +3 -3
- package/skills/dms-project/REFERENCE.md +4 -2
- package/skills/dms-project/SKILL.md +2 -2
- package/skills/dms-project/scripts/dms-dev.sh +1 -1
- package/frontend-vue/layers/dms-layout/app/entries/components/layout/Footer.ts +0 -2
- package/frontend-vue/layers/dms-onboarding/app/entries/components/onboarding/steps/ready.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/confirm/actionError.ts +0 -21
- package/frontend-vue/layers/dms-ui/app/entries/components/table/Actions.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/entries/components/table/Empty.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/entries/components/table/Pagination.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/entries/components/table/Table.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/entries/components/table/Views.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/entries/composables/confirm/actionError.ts +0 -1
- package/skills/dms-best-practices/REFERENCE.md +0 -95
- package/skills/dms-best-practices/SKILL.md +0 -81
- package/skills/dms-best-practices/cases.json +0 -82
- package/skills/dms-pages/REFERENCE.md +0 -277
- package/skills/dms-pages/SKILL.md +0 -115
- package/skills/dms-pages/cases.json +0 -96
- /package/frontend-vue/layers/dms-layout/app/build/components/layout/{Container.vue → LayoutContainer.vue} +0 -0
- /package/frontend-vue/layers/dms-layout/app/build/components/layout/{Footer.vue → LayoutFooter.vue} +0 -0
- /package/frontend-vue/layers/dms-layout/app/components/layout/{Spacer.vue → StackSpacer.vue} +0 -0
- /package/frontend-vue/layers/dms-onboarding/app/build/components/onboarding/steps/{platform.vue → StepPlatform.vue} +0 -0
- /package/frontend-vue/layers/dms-onboarding/app/build/components/onboarding/steps/{ready.vue → StepReady.vue} +0 -0
- /package/frontend-vue/layers/dms-onboarding/app/components/onboarding/steps/{register.vue → StepRegister.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/build/components/table/{Tabs.vue → TableTabs.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/{types → build/types}/shortcuts-aggregated.d.ts +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/{Placeholder.vue → PlaceholderBlock.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/banner/{Banner.vue → NoticeBanner.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/chart/{Chart.vue → ChartBlock.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/chart/internal/{Sparkline.vue → SparklineChart.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/form/components/{Display.vue → DisplayValue.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/form/components/{Checkbox.vue → InputCheckbox.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/form/components/{File.vue → InputFile.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/form/components/{Slider.vue → InputSlider.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/form/components/{Switch.vue → InputSwitch.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/form/components/{Textarea.vue → InputTextarea.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/grid/{Grid.vue → GridBlock.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/guard/{Guard.vue → GuardBlock.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/meter/{Meter.vue → MeterBar.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/section/{Section.vue → SectionPanel.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/section-header/{Eyebrow.vue → EyebrowLabel.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/segmented/{Segmented.vue → SegmentedControl.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/tab/{Tab.vue → TabBlock.vue} +0 -0
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.mapDescribedResources = mapDescribedResources;
|
|
7
|
+
exports.mapResources = mapResources;
|
|
8
|
+
exports.previewMapResources = previewMapResources;
|
|
9
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
10
|
+
const model_methods_keep_1 = require("./model-methods-keep");
|
|
11
|
+
const catalog_connection_1 = require("./catalog-connection");
|
|
12
|
+
const connection_access_1 = require("./connection-access");
|
|
13
|
+
const display_defaults_1 = require("./display-defaults");
|
|
14
|
+
const emit_1 = require("./emit");
|
|
15
|
+
const map_resources_batch_1 = require("./map-resources-batch");
|
|
16
|
+
const map_resources_references_1 = require("./map-resources-references");
|
|
17
|
+
const mapping_refusal_1 = require("./mapping-refusal");
|
|
18
|
+
const mapped_displays_1 = require("./mapped-displays");
|
|
19
|
+
const mapped_modules_1 = require("./mapped-modules");
|
|
20
|
+
const modules_1 = require("./modules");
|
|
21
|
+
const module_reload_1 = require("./module-reload");
|
|
22
|
+
const ops_1 = require("./ops");
|
|
23
|
+
const placement_1 = require("./placement");
|
|
24
|
+
const resource_emit_types_1 = require("./resource-emit-types");
|
|
25
|
+
const resource_index_1 = require("./resource-index");
|
|
26
|
+
const relabel_columns_1 = require("./relabel-columns");
|
|
27
|
+
const map_resources_pages_1 = require("./map-resources-pages");
|
|
28
|
+
const value_1 = require("./value");
|
|
29
|
+
const writable_1 = require("./writable");
|
|
30
|
+
const DECORATORS_MODULE = "@antelopejs/interface-database-decorators";
|
|
31
|
+
const REGISTER_SCHEMA = "RegisterSchema";
|
|
32
|
+
const START = "start";
|
|
33
|
+
const SELECT_DECORATOR = "Select";
|
|
34
|
+
const ID_FIELD = "_id";
|
|
35
|
+
const FULL_INDEX = `export * from "./database";\nexport * from "./data-api";\n`;
|
|
36
|
+
function batchResolver(plan) {
|
|
37
|
+
const existing = (0, resource_index_1.resourceRefResolver)();
|
|
38
|
+
return (ref) => {
|
|
39
|
+
const planned = plan.resources.find((resource) => resource.ref === ref.resource);
|
|
40
|
+
if (!planned) {
|
|
41
|
+
if (!existing) {
|
|
42
|
+
throw new value_1.UnknownReferenceError(ref.resource);
|
|
43
|
+
}
|
|
44
|
+
return existing(ref);
|
|
45
|
+
}
|
|
46
|
+
const name = planned.names.apiName;
|
|
47
|
+
return {
|
|
48
|
+
text: name,
|
|
49
|
+
import: { name, targetFile: node_path_1.default.join(planned.folder, "data-api.ts") },
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function writeFile(project, transaction, filePath, text) {
|
|
54
|
+
const existing = project.getSourceFile(filePath);
|
|
55
|
+
if (existing) {
|
|
56
|
+
transaction.track(existing);
|
|
57
|
+
existing.replaceWithText(text);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
transaction.track(project.createSourceFile(filePath, text), true);
|
|
61
|
+
}
|
|
62
|
+
function writeResource(project, transaction, resource, resolveRef, connection) {
|
|
63
|
+
const files = {
|
|
64
|
+
database: node_path_1.default.join(resource.folder, "database.ts"),
|
|
65
|
+
dataApi: node_path_1.default.join(resource.folder, "data-api.ts"),
|
|
66
|
+
index: node_path_1.default.join(resource.folder, "index.ts"),
|
|
67
|
+
};
|
|
68
|
+
const database = (0, resource_emit_types_1.buildDatabaseFile)({
|
|
69
|
+
names: resource.names,
|
|
70
|
+
filePath: files.database,
|
|
71
|
+
schema: resource.description.schema,
|
|
72
|
+
fields: resource.tableFields,
|
|
73
|
+
idField: resource.hasKey,
|
|
74
|
+
});
|
|
75
|
+
const previous = project.getSourceFile(files.database);
|
|
76
|
+
const kept = previous
|
|
77
|
+
? (0, model_methods_keep_1.generatedModelMethods)(previous, resource.names.modelName)
|
|
78
|
+
: [];
|
|
79
|
+
writeFile(project, transaction, files.database, database.text);
|
|
80
|
+
const written = project.getSourceFile(files.database);
|
|
81
|
+
if (written && kept.length > 0) {
|
|
82
|
+
(0, model_methods_keep_1.restoreModelMethods)(written, resource.names.modelName, kept);
|
|
83
|
+
}
|
|
84
|
+
const dataApi = (0, resource_emit_types_1.buildDataApiFile)({
|
|
85
|
+
names: resource.names,
|
|
86
|
+
filePath: files.dataApi,
|
|
87
|
+
fields: resource.apiFields,
|
|
88
|
+
routes: resource.routes,
|
|
89
|
+
resolveRef,
|
|
90
|
+
connection,
|
|
91
|
+
});
|
|
92
|
+
writeFile(project, transaction, files.dataApi, dataApi.text);
|
|
93
|
+
writeFile(project, transaction, files.index, FULL_INDEX);
|
|
94
|
+
return files;
|
|
95
|
+
}
|
|
96
|
+
function exportOnce(barrel, specifier) {
|
|
97
|
+
const exported = barrel
|
|
98
|
+
.getExportDeclarations()
|
|
99
|
+
.some((entry) => entry.getModuleSpecifierValue() === specifier);
|
|
100
|
+
if (!exported) {
|
|
101
|
+
(0, placement_1.addSortedExport)(barrel, specifier);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function registerSchemas(barrel, schemas) {
|
|
105
|
+
(0, emit_1.ensureNamedImport)(barrel, REGISTER_SCHEMA, DECORATORS_MODULE);
|
|
106
|
+
const start = barrel.getFunction(START) ??
|
|
107
|
+
barrel.addFunction({
|
|
108
|
+
name: START,
|
|
109
|
+
isExported: true,
|
|
110
|
+
isAsync: true,
|
|
111
|
+
returnType: "Promise<void>",
|
|
112
|
+
});
|
|
113
|
+
const body = start.getBodyText() ?? "";
|
|
114
|
+
for (const schema of schemas) {
|
|
115
|
+
const call = `await ${REGISTER_SCHEMA}(${JSON.stringify(schema)});`;
|
|
116
|
+
if (!body.includes(call)) {
|
|
117
|
+
start.addStatements(call);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function writeAll(input, plan) {
|
|
122
|
+
const project = (0, writable_1.getWritableProject)();
|
|
123
|
+
const barrel = (0, writable_1.resolveRootBarrel)(project, input.module);
|
|
124
|
+
if (!barrel) {
|
|
125
|
+
return {
|
|
126
|
+
result: (0, ops_1.unsupported)(`module "${input.module}" has no src/index.ts`),
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
const records = (0, resource_index_1.mappedRecordsOf)(input.module);
|
|
130
|
+
const unlabelled = (0, relabel_columns_1.unlabelledTargetRefusal)(project, records, plan);
|
|
131
|
+
if (unlabelled) {
|
|
132
|
+
return { result: (0, ops_1.unsupported)(unlabelled) };
|
|
133
|
+
}
|
|
134
|
+
const transaction = new writable_1.Transaction(project);
|
|
135
|
+
transaction.track(barrel);
|
|
136
|
+
const resolveRef = batchResolver(plan);
|
|
137
|
+
const mapped = plan.resources.map((resource) => {
|
|
138
|
+
const files = writeResource(project, transaction, resource, resolveRef, input.connection);
|
|
139
|
+
exportOnce(barrel, (0, placement_1.barrelSpecifier)(barrel, resource.folder));
|
|
140
|
+
return {
|
|
141
|
+
relation: resource.relation,
|
|
142
|
+
ref: resource.ref,
|
|
143
|
+
files: Object.values(files).filter((file) => file !== undefined),
|
|
144
|
+
};
|
|
145
|
+
});
|
|
146
|
+
(0, relabel_columns_1.relabelPointingColumns)(project, transaction, records, plan);
|
|
147
|
+
registerSchemas(barrel, [
|
|
148
|
+
...new Set(plan.resources.map((resource) => resource.description.schema)),
|
|
149
|
+
]);
|
|
150
|
+
return { result: (0, ops_1.commit)(transaction, mapped) };
|
|
151
|
+
}
|
|
152
|
+
function labelOf(record) {
|
|
153
|
+
return record.apiClass
|
|
154
|
+
.getProperties()
|
|
155
|
+
.find((prop) => prop.getName() !== ID_FIELD &&
|
|
156
|
+
prop.getDecorator(SELECT_DECORATOR) !== undefined)
|
|
157
|
+
?.getName();
|
|
158
|
+
}
|
|
159
|
+
function mappedTarget(connection, record, description) {
|
|
160
|
+
return {
|
|
161
|
+
resource: {
|
|
162
|
+
relation: (0, resource_index_1.relationOf)(record),
|
|
163
|
+
label: labelOf(record),
|
|
164
|
+
title: (0, mapped_displays_1.pageOf)(connection, record)?.displayName,
|
|
165
|
+
tableView: record.routes === undefined || record.routes.length > 0,
|
|
166
|
+
writable: false,
|
|
167
|
+
fields: [],
|
|
168
|
+
},
|
|
169
|
+
description,
|
|
170
|
+
names: {
|
|
171
|
+
className: record.className,
|
|
172
|
+
modelName: record.modelName,
|
|
173
|
+
apiName: record.apiName,
|
|
174
|
+
tableName: record.tableName,
|
|
175
|
+
route: record.route,
|
|
176
|
+
},
|
|
177
|
+
ref: record.ref,
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
function referencedOutside(input) {
|
|
181
|
+
const batch = new Set(input.resources.map((resource) => resource.relation));
|
|
182
|
+
return [
|
|
183
|
+
...new Set(input.resources.flatMap((resource) => resource.fields
|
|
184
|
+
.map((field) => field.relation)
|
|
185
|
+
.filter((relation) => relation != null && !batch.has(relation)))),
|
|
186
|
+
];
|
|
187
|
+
}
|
|
188
|
+
function mappedTargets(input, descriptions) {
|
|
189
|
+
const records = (0, resource_index_1.mappedRecordsOf)(input.module);
|
|
190
|
+
return referencedOutside(input).flatMap((relation) => {
|
|
191
|
+
const record = records.get(relation);
|
|
192
|
+
const description = descriptions.find((candidate) => `${candidate.schema}.${candidate.name}` === relation);
|
|
193
|
+
return record && description
|
|
194
|
+
? [mappedTarget(input.connection, record, description)]
|
|
195
|
+
: [];
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
function planned(input, descriptions, defaults) {
|
|
199
|
+
const readOnly = (0, connection_access_1.writableMappingRefusal)(input);
|
|
200
|
+
if (readOnly) {
|
|
201
|
+
return (0, ops_1.invalidConfig)(readOnly);
|
|
202
|
+
}
|
|
203
|
+
const module = (0, modules_1.targetModule)(input.module);
|
|
204
|
+
if (!module || module.isProject) {
|
|
205
|
+
return (0, ops_1.invalidConfig)(`map into a local module bound to the database, not ${module ? "the project's own" : `unknown module "${input.module}"`}`);
|
|
206
|
+
}
|
|
207
|
+
const project = (0, writable_1.getWritableProject)();
|
|
208
|
+
(0, writable_1.refreshFromDisk)(project);
|
|
209
|
+
const src = (0, placement_1.srcDir)(project, input.module);
|
|
210
|
+
if (!src) {
|
|
211
|
+
return (0, ops_1.unsupported)(`module "${input.module}" has no src/index.ts`);
|
|
212
|
+
}
|
|
213
|
+
try {
|
|
214
|
+
const chosen = (0, map_resources_references_1.withDeclaredRelations)(input, descriptions);
|
|
215
|
+
return (0, map_resources_batch_1.planMapping)(chosen, descriptions, src, mappedTargets(chosen, descriptions), defaults);
|
|
216
|
+
}
|
|
217
|
+
catch (error) {
|
|
218
|
+
if (error instanceof mapping_refusal_1.MappingRefusal) {
|
|
219
|
+
return (0, ops_1.invalidConfig)(error.message);
|
|
220
|
+
}
|
|
221
|
+
throw error;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
function recordMapping(input, plan) {
|
|
225
|
+
(0, mapped_modules_1.markMapped)(input.module, {
|
|
226
|
+
connection: input.connection,
|
|
227
|
+
mapped: plan.resources.map((resource) => resource.relation),
|
|
228
|
+
excluded: input.excluded ?? [],
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
function unapprovedRemovals(input, plan) {
|
|
232
|
+
if (input.approvedPageRemovals === undefined) {
|
|
233
|
+
return [];
|
|
234
|
+
}
|
|
235
|
+
const approved = new Set(input.approvedPageRemovals);
|
|
236
|
+
return (0, map_resources_pages_1.pagesToRemove)(input, plan).filter((page) => !approved.has(page));
|
|
237
|
+
}
|
|
238
|
+
function mapDescribedResources(input, descriptions, defaults = new Map()) {
|
|
239
|
+
const plan = planned(input, descriptions, defaults);
|
|
240
|
+
if ("ok" in plan) {
|
|
241
|
+
return plan;
|
|
242
|
+
}
|
|
243
|
+
if (plan.resources.length === 0 && plan.refused.length > 0) {
|
|
244
|
+
return (0, ops_1.invalidConfig)(plan.refused.join("; "));
|
|
245
|
+
}
|
|
246
|
+
if (plan.resources.length === 0) {
|
|
247
|
+
recordMapping(input, plan);
|
|
248
|
+
return { ok: true, data: { resources: [], leftOut: [] }, changes: [] };
|
|
249
|
+
}
|
|
250
|
+
const unapproved = unapprovedRemovals(input, plan);
|
|
251
|
+
if (unapproved.length > 0) {
|
|
252
|
+
return (0, ops_1.invalidConfig)(`pages not approved for removal: ${unapproved.join(", ")}. The mapping would remove them now; nothing was written. Preview the mapping again and ask before removing them.`);
|
|
253
|
+
}
|
|
254
|
+
const { result } = writeAll(input, plan);
|
|
255
|
+
if (!result.ok) {
|
|
256
|
+
return result;
|
|
257
|
+
}
|
|
258
|
+
recordMapping(input, plan);
|
|
259
|
+
const pages = (0, map_resources_pages_1.writePages)(input, plan, result.data);
|
|
260
|
+
const data = {
|
|
261
|
+
resources: result.data,
|
|
262
|
+
leftOut: plan.leftOut,
|
|
263
|
+
category: pages.category,
|
|
264
|
+
};
|
|
265
|
+
const changes = [...result.changes, ...pages.changes].filter(changed);
|
|
266
|
+
const warnings = [
|
|
267
|
+
...(result.warnings ?? []),
|
|
268
|
+
...plan.warnings,
|
|
269
|
+
...pages.warnings,
|
|
270
|
+
];
|
|
271
|
+
return warnings.length > 0
|
|
272
|
+
? { ok: true, data, changes, warnings }
|
|
273
|
+
: { ok: true, data, changes };
|
|
274
|
+
}
|
|
275
|
+
function changed(change) {
|
|
276
|
+
return change.kind !== "modify" || change.diff !== "";
|
|
277
|
+
}
|
|
278
|
+
function describedRelations(input) {
|
|
279
|
+
return [
|
|
280
|
+
...new Set([
|
|
281
|
+
...input.resources.map((resource) => resource.relation),
|
|
282
|
+
...referencedOutside(input),
|
|
283
|
+
]),
|
|
284
|
+
];
|
|
285
|
+
}
|
|
286
|
+
async function mapAndAwaitReload(input, descriptions, defaults) {
|
|
287
|
+
const reload = (0, module_reload_1.watchReloadOf)(input.module);
|
|
288
|
+
let result;
|
|
289
|
+
try {
|
|
290
|
+
result = mapDescribedResources(input, descriptions, defaults);
|
|
291
|
+
}
|
|
292
|
+
catch (error) {
|
|
293
|
+
reload.cancel();
|
|
294
|
+
throw error;
|
|
295
|
+
}
|
|
296
|
+
const root = (0, modules_1.targetModule)(input.module)?.root;
|
|
297
|
+
if (!result.ok || !root || !(0, module_reload_1.changesModule)(result.changes, root)) {
|
|
298
|
+
reload.cancel();
|
|
299
|
+
return result;
|
|
300
|
+
}
|
|
301
|
+
const warning = await reload.loaded();
|
|
302
|
+
return warning
|
|
303
|
+
? { ...result, warnings: [...(result.warnings ?? []), warning] }
|
|
304
|
+
: result;
|
|
305
|
+
}
|
|
306
|
+
async function withDescriptions(input, run) {
|
|
307
|
+
const catalog = (0, catalog_connection_1.catalogOf)(input.connection);
|
|
308
|
+
if (!catalog) {
|
|
309
|
+
return (0, ops_1.invalidConfig)(`dms has no catalog connection "${input.connection}"; declare one in its importOverrides`);
|
|
310
|
+
}
|
|
311
|
+
const relations = describedRelations(input);
|
|
312
|
+
if (relations.length === 0) {
|
|
313
|
+
return run([], new Map());
|
|
314
|
+
}
|
|
315
|
+
try {
|
|
316
|
+
const own = await catalog.DescribeRelations(relations);
|
|
317
|
+
const outside = (0, map_resources_references_1.declaredTargetsOutside)(input, own);
|
|
318
|
+
const descriptions = outside.length > 0
|
|
319
|
+
? [...own, ...(await catalog.DescribeRelations(outside))]
|
|
320
|
+
: own;
|
|
321
|
+
(0, writable_1.refreshFromDisk)((0, writable_1.getWritableProject)());
|
|
322
|
+
return await run(descriptions, await (0, display_defaults_1.displayDefaultsOf)(input, descriptions, catalog));
|
|
323
|
+
}
|
|
324
|
+
catch (error) {
|
|
325
|
+
return (0, ops_1.invalidConfig)(`the catalog of "${input.connection}" refused: ${error instanceof Error ? error.message : String(error)}`);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
function mapResources(input) {
|
|
329
|
+
return withDescriptions(input, (descriptions, defaults) => mapAndAwaitReload(input, descriptions, defaults));
|
|
330
|
+
}
|
|
331
|
+
function previewMapResources(input) {
|
|
332
|
+
return withDescriptions(input, (descriptions, defaults) => {
|
|
333
|
+
const plan = planned(input, descriptions, defaults);
|
|
334
|
+
if ("ok" in plan) {
|
|
335
|
+
return plan.ok ? { ...plan, data: { pagesToRemove: [] } } : plan;
|
|
336
|
+
}
|
|
337
|
+
if (plan.resources.length === 0 && plan.refused.length > 0) {
|
|
338
|
+
return (0, ops_1.invalidConfig)(plan.refused.join("; "));
|
|
339
|
+
}
|
|
340
|
+
return {
|
|
341
|
+
ok: true,
|
|
342
|
+
data: { pagesToRemove: (0, map_resources_pages_1.pagesToRemove)(input, plan) },
|
|
343
|
+
changes: [],
|
|
344
|
+
};
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
//# sourceMappingURL=map-resources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-resources.js","sourceRoot":"","sources":["../../../../src/implementations/dms-builder/engine/map-resources.ts"],"names":[],"mappings":";;;;;AA2WA,sDA0CC;AAuFD,oCAMC;AAGD,kDAiBC;AAtgBD,0DAA6B;AAW7B,6DAG8B;AAC9B,6DAAiD;AACjD,2DAA6D;AAC7D,yDAA6E;AAC7E,iCAA2C;AAC3C,+DAAoD;AAMpD,yEAGoC;AACpC,uDAAmD;AACnD,uDAA2C;AAC3C,qDAA8C;AAC9C,uCAAyC;AACzC,mDAA+D;AAC/D,+BAA2D;AAC3D,2CAAuE;AACvE,+DAA4E;AAC5E,qDAK0B;AAC1B,uDAG2B;AAC3B,+DAAkE;AAClE,mCAAkE;AAClE,yCAKoB;AAEpB,MAAM,iBAAiB,GAAG,2CAA2C,CAAC;AACtE,MAAM,eAAe,GAAG,gBAAgB,CAAC;AACzC,MAAM,KAAK,GAAG,OAAO,CAAC;AACtB,MAAM,gBAAgB,GAAG,QAAQ,CAAC;AAClC,MAAM,QAAQ,GAAG,KAAK,CAAC;AACvB,MAAM,UAAU,GAAG,4DAA4D,CAAC;AAGhF,SAAS,aAAa,CAAC,IAAiB;IACtC,MAAM,QAAQ,GAAG,IAAA,oCAAmB,GAAE,CAAC;IACvC,OAAO,CAAC,GAAG,EAAE,EAAE;QACb,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CACjC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,KAAK,GAAG,CAAC,QAAQ,CAC5C,CAAC;QACF,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,IAAI,CAAC,QAAQ,EAAE,CA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C,EAAE,CAC1G,CAAC;IACJ,CAAC;AACH,CAAC;AAGD,SAAgB,YAAY,CAC1B,KAAwB;IAExB,OAAO,gBAAgB,CAAC,KAAK,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,EAAE,CACxD,iBAAiB,CAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,CAAC,CACjD,CAAC;AACJ,CAAC;AAGD,SAAgB,mBAAmB,CACjC,KAAwB;IAExB,OAAO,gBAAgB,CAAC,KAAK,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,EAAE;QACxD,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;QACpD,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;YACjB,OAAO,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;QACnE,CAAC;QACD,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC3D,OAAO,IAAA,mBAAa,EAAsB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QACrE,CAAC;QACD,OAAO;YACL,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,EAAE,aAAa,EAAE,IAAA,mCAAa,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE;YACnD,OAAO,EAAE,EAAE;SACZ,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mappedChoices = mappedChoices;
|
|
4
|
+
const own_connections_1 = require("./own-connections");
|
|
5
|
+
const catalog_connection_1 = require("./catalog-connection");
|
|
6
|
+
const column_display_1 = require("./column-display");
|
|
7
|
+
const name_words_1 = require("./name-words");
|
|
8
|
+
const mapped_displays_1 = require("./mapped-displays");
|
|
9
|
+
const mapped_modules_1 = require("./mapped-modules");
|
|
10
|
+
const ops_1 = require("./ops");
|
|
11
|
+
const resource_index_1 = require("./resource-index");
|
|
12
|
+
const scalar_guards_1 = require("./scalar-guards");
|
|
13
|
+
const resource_structure_1 = require("./resource-structure");
|
|
14
|
+
const value_1 = require("./value");
|
|
15
|
+
const MAPPED_RULE = "mapped";
|
|
16
|
+
function mapped(value) {
|
|
17
|
+
return { value, rule: MAPPED_RULE, kind: "fact" };
|
|
18
|
+
}
|
|
19
|
+
function isRelationTarget(value) {
|
|
20
|
+
if (!(0, value_1.isPlainObject)(value)) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
const ref = value.$ref;
|
|
24
|
+
return (ref === undefined ||
|
|
25
|
+
((0, value_1.isPlainObject)(ref) &&
|
|
26
|
+
(ref.resource === undefined || (0, scalar_guards_1.isString)(ref.resource))));
|
|
27
|
+
}
|
|
28
|
+
function targetOf(field, relations) {
|
|
29
|
+
const config = field?.dataType?.config;
|
|
30
|
+
const controller = config?.dataApiController;
|
|
31
|
+
const ref = isRelationTarget(controller)
|
|
32
|
+
? controller.$ref?.resource
|
|
33
|
+
: undefined;
|
|
34
|
+
return ref ? relations.get(ref) : undefined;
|
|
35
|
+
}
|
|
36
|
+
function fieldOf(column, sources) {
|
|
37
|
+
const aspects = sources.controller.get(column.name);
|
|
38
|
+
const declared = sources.declared.get(column.name) ??
|
|
39
|
+
column.accepts[0]?.declared ??
|
|
40
|
+
"string";
|
|
41
|
+
const reading = column.accepts.find((entry) => entry.declared === declared);
|
|
42
|
+
const field = {
|
|
43
|
+
column: column.name,
|
|
44
|
+
native: column.native,
|
|
45
|
+
accepts: column.accepts.map((entry) => entry.declared),
|
|
46
|
+
declared: { ...mapped(declared), lossy: reading?.lossy },
|
|
47
|
+
label: mapped(aspects?.label ?? (0, name_words_1.humanized)(column.name)),
|
|
48
|
+
listable: mapped(aspects?.listable ?? false),
|
|
49
|
+
filterable: mapped(aspects?.filterable ?? false),
|
|
50
|
+
sortable: mapped(aspects?.sortable ?? false),
|
|
51
|
+
searchable: mapped(aspects?.searchable ?? false),
|
|
52
|
+
};
|
|
53
|
+
const display = (0, column_display_1.displayOfDataType)(aspects?.dataType);
|
|
54
|
+
if (display) {
|
|
55
|
+
field.display = mapped(display);
|
|
56
|
+
}
|
|
57
|
+
const target = targetOf(aspects, sources.relations);
|
|
58
|
+
if (target) {
|
|
59
|
+
field.relation = { ...mapped(target), implied: false };
|
|
60
|
+
}
|
|
61
|
+
return field;
|
|
62
|
+
}
|
|
63
|
+
function tabsOfPage(page, fields) {
|
|
64
|
+
const column = (0, mapped_displays_1.tabsColumnOf)(page, new Map(fields.flatMap((field) => field.display ? [[field.column, field.display.value]] : [])));
|
|
65
|
+
return column === undefined ? undefined : { column };
|
|
66
|
+
}
|
|
67
|
+
function sourcesOf(record, relations) {
|
|
68
|
+
const structure = (0, resource_structure_1.buildResourceStructure)(record.ref);
|
|
69
|
+
const fields = structure.ok ? structure.data.fields : [];
|
|
70
|
+
const declared = new Map([...(0, resource_structure_1.tableFieldDeclarations)(record.tableClass)].map(([name, entry]) => [
|
|
71
|
+
(0, mapped_displays_1.propertyName)(name),
|
|
72
|
+
(0, mapped_displays_1.propertyName)(entry.field),
|
|
73
|
+
]));
|
|
74
|
+
return {
|
|
75
|
+
declared,
|
|
76
|
+
controller: new Map(fields.map((field) => [(0, mapped_displays_1.propertyName)(field.name), field])),
|
|
77
|
+
relations,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function inModuleOrder(description, sources) {
|
|
81
|
+
const order = [...sources.declared.keys()];
|
|
82
|
+
const rank = (column) => {
|
|
83
|
+
const index = order.indexOf(column.name);
|
|
84
|
+
return index === -1 ? order.length : index;
|
|
85
|
+
};
|
|
86
|
+
return [...description.columns].sort((left, right) => rank(left) - rank(right));
|
|
87
|
+
}
|
|
88
|
+
function relationOf(connection, record, description, relations) {
|
|
89
|
+
const sources = sourcesOf(record, relations);
|
|
90
|
+
const label = [...sources.controller.values()].find((field) => field.selectable && field.name !== "_id");
|
|
91
|
+
const tableView = record.routes === undefined || record.routes.length > 0;
|
|
92
|
+
const page = (0, mapped_displays_1.pageOf)(connection, record);
|
|
93
|
+
const fields = inModuleOrder(description, sources).map((column) => fieldOf(column, sources));
|
|
94
|
+
const tabs = tabsOfPage(page, fields);
|
|
95
|
+
const resource = {
|
|
96
|
+
relation: `${description.schema}.${description.name}`,
|
|
97
|
+
tableView: mapped(tableView),
|
|
98
|
+
writable: mapped(record.routes === undefined),
|
|
99
|
+
label: mapped(label ? (0, mapped_displays_1.propertyName)(label.name) : null),
|
|
100
|
+
title: mapped(page?.displayName ?? (0, name_words_1.humanized)(description.name)),
|
|
101
|
+
fields,
|
|
102
|
+
leftOut: [],
|
|
103
|
+
writes: description.writes,
|
|
104
|
+
};
|
|
105
|
+
if (tabs) {
|
|
106
|
+
resource.tabs = mapped(tabs);
|
|
107
|
+
}
|
|
108
|
+
const keys = new Set(description.key?.columns ?? []);
|
|
109
|
+
return {
|
|
110
|
+
ref: record.ref,
|
|
111
|
+
resource,
|
|
112
|
+
included: resource.fields
|
|
113
|
+
.map((field) => field.column)
|
|
114
|
+
.filter((column) => sources.declared.has(column) &&
|
|
115
|
+
(!keys.has(column) || sources.controller.has(column))),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
async function mappedChoices(connection, module) {
|
|
119
|
+
const catalog = (0, catalog_connection_1.catalogOf)(connection);
|
|
120
|
+
if (!catalog) {
|
|
121
|
+
return (0, ops_1.invalidConfig)(`${(0, own_connections_1.ownModuleId)()} has no catalog connection "${connection}"; declare one in its importOverrides`);
|
|
122
|
+
}
|
|
123
|
+
const records = [...(0, resource_index_1.mappedRecordsOf)(module)].filter(([, record]) => (0, mapped_modules_1.mappedConnectionOfFile)(record.databaseFile) === connection);
|
|
124
|
+
if (records.length === 0) {
|
|
125
|
+
return { ok: true, data: [], changes: [] };
|
|
126
|
+
}
|
|
127
|
+
const schemas = [
|
|
128
|
+
...new Set(records.map(([relation]) => relation.split(".")[0])),
|
|
129
|
+
];
|
|
130
|
+
const present = new Set((await catalog.ListRelations(schemas)).map((summary) => `${summary.schema}.${summary.name}`));
|
|
131
|
+
const found = records.filter(([relation]) => present.has(relation));
|
|
132
|
+
const missing = records
|
|
133
|
+
.map(([relation]) => relation)
|
|
134
|
+
.filter((relation) => !present.has(relation));
|
|
135
|
+
const descriptions = found.length > 0
|
|
136
|
+
? await catalog.DescribeRelations(found.map(([relation]) => relation))
|
|
137
|
+
: [];
|
|
138
|
+
const relations = new Map(records.map(([relation, record]) => [record.ref, relation]));
|
|
139
|
+
const data = found.map(([relation, record]) => relationOf(connection, record, descriptions.find((description) => `${description.schema}.${description.name}` === relation), relations));
|
|
140
|
+
if (missing.length === 0) {
|
|
141
|
+
return { ok: true, data, changes: [] };
|
|
142
|
+
}
|
|
143
|
+
return {
|
|
144
|
+
ok: true,
|
|
145
|
+
data,
|
|
146
|
+
changes: [],
|
|
147
|
+
warnings: missing.map((relation) => ({
|
|
148
|
+
code: "relation_missing",
|
|
149
|
+
message: `${relation} is mapped, but the database no longer has it, or the role cannot see it`,
|
|
150
|
+
})),
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=mapped-choices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapped-choices.js","sourceRoot":"","sources":["../../../../src/implementations/dms-builder/engine/mapped-choices.ts"],"names":[],"mappings":";;AA2MA,sCA0DC;AArQD,uDAAgD;AAchD,6DAAiD;AACjD,qDAAqD;AACrD,6CAAyC;AACzC,uDAAuE;AACvE,qDAA0D;AAC1D,+BAAsC;AACtC,qDAAwE;AACxE,mDAA2C;AAC3C,6DAG8B;AAE9B,mCAAwC;AAGxC,MAAM,WAAW,GAAG,QAA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|
|
|
1
|
+
import type { ColumnDisplay } from "@antelopejs/interface-dms-builder";
|
|
2
|
+
import type { ResourceRecord } from "./resource-index";
|
|
3
|
+
import { type PageRecord } from "./scan";
|
|
4
|
+
export declare function propertyName(name: string): string;
|
|
5
|
+
export declare function pageOf(connection: string, record: ResourceRecord): PageRecord | undefined;
|
|
6
|
+
export interface CurrentColumns {
|
|
7
|
+
displays: Map<string, ColumnDisplay>;
|
|
8
|
+
labels: Map<string, string>;
|
|
9
|
+
}
|
|
10
|
+
export declare function currentColumns(record: ResourceRecord): CurrentColumns;
|
|
11
|
+
export declare function tabsColumnOf(page: PageRecord | undefined, displays: ReadonlyMap<string, ColumnDisplay>): string | undefined;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.propertyName = propertyName;
|
|
7
|
+
exports.pageOf = pageOf;
|
|
8
|
+
exports.currentColumns = currentColumns;
|
|
9
|
+
exports.tabsColumnOf = tabsColumnOf;
|
|
10
|
+
const node_util_1 = require("node:util");
|
|
11
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
12
|
+
const column_display_1 = require("./column-display");
|
|
13
|
+
const map_resources_pages_1 = require("./map-resources-pages");
|
|
14
|
+
const page_structure_1 = require("./page-structure");
|
|
15
|
+
const resource_structure_1 = require("./resource-structure");
|
|
16
|
+
const scan_1 = require("./scan");
|
|
17
|
+
const source_index_1 = require("./source-index");
|
|
18
|
+
const QUOTES = /^["']|["']$/g;
|
|
19
|
+
function propertyName(name) {
|
|
20
|
+
return name.replace(QUOTES, "");
|
|
21
|
+
}
|
|
22
|
+
function pageOf(connection, record) {
|
|
23
|
+
const folder = node_path_1.default.dirname(record.databaseFile);
|
|
24
|
+
const name = node_path_1.default
|
|
25
|
+
.relative(node_path_1.default.dirname(node_path_1.default.dirname(folder)), folder)
|
|
26
|
+
.split(node_path_1.default.sep)
|
|
27
|
+
.join("-");
|
|
28
|
+
const category = (0, source_index_1.findCategoryRecord)(`pages.${connection}`);
|
|
29
|
+
return category && (0, source_index_1.findPageRecord)((0, scan_1.joinSlug)(category.fullSlug, name));
|
|
30
|
+
}
|
|
31
|
+
function currentColumns(record) {
|
|
32
|
+
const structure = (0, resource_structure_1.buildResourceStructure)(record.ref);
|
|
33
|
+
const displays = new Map();
|
|
34
|
+
const labels = new Map();
|
|
35
|
+
for (const field of structure.ok ? structure.data.fields : []) {
|
|
36
|
+
const name = propertyName(field.name);
|
|
37
|
+
if (field.label !== undefined) {
|
|
38
|
+
labels.set(name, field.label);
|
|
39
|
+
}
|
|
40
|
+
const display = (0, column_display_1.displayOfDataType)(field.dataType);
|
|
41
|
+
if (display) {
|
|
42
|
+
displays.set(name, display);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return { displays, labels };
|
|
46
|
+
}
|
|
47
|
+
function tabsColumnOf(page, displays) {
|
|
48
|
+
const structure = page && (0, page_structure_1.buildPageStructure)(page.ref);
|
|
49
|
+
const table = structure?.ok
|
|
50
|
+
? structure.data.blocks.find((block) => block.name === map_resources_pages_1.TABLE_BLOCK)
|
|
51
|
+
: undefined;
|
|
52
|
+
const stored = table?.config?.tabs;
|
|
53
|
+
return [...displays].find(([column, display]) => display.kind === "badge" &&
|
|
54
|
+
(0, node_util_1.isDeepStrictEqual)(stored, (0, column_display_1.tabsOf)(column, display)))?.[0];
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=mapped-displays.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapped-displays.js","sourceRoot":"","sources":["../../../../src/implementations/dms-builder/engine/mapped-displays.ts"],"names":[],"mappings":";;;;;AAcA,oCAEC;AAGD,wBAWC;AASD,wCAeC;AAMD,oCAcC;AA1ED,yCAA8C;AAC9C,0DAA6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EAAE,CAAC;YAC9B,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC;QACD,MAAM,OAAO,GAAG,IAAA,kCAAiB,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAClD,IAAI,OAAO,EAAE,CAAC;YACZ,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC9B,CAAC;IACH,CAAC;IACD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;AAC9B,CAAC;AAMD,SAAgB,YAAY,CAC1B,IAA4B,EAC5B,QAA4C;IAE5C,MAAM,SAAS,GAAG,IAAI,IAAI,IAAA,mCAAkB,EAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvD,MAAM,KAAK,GAAG,SAAS,EAAE,EAAE;QACzB,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,iCAAW,CAAC;QACnE,CAAC,CAAC,SAAS,CAAC;IACd,MAAM,MAAM,GAAG,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC;IACnC,OAAO,CAAC,GAAG,QAAQ,CAAC,CAAC,IAAI,CACvB,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,CACpB,OAAO,CAAC,IAAI,KAAK,OAAO;QACxB,IAAA,6BAAiB,EAAC,MAAM,EAAE,IAAA,uBAAM,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CACrD,EAAE,CAAC,CAAC,CAAC,CAAC;AACT,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ExcludedRelation } from "@antelopejs/interface-dms-builder";
|
|
2
|
+
export interface MappedRecordUpdate {
|
|
3
|
+
connection: string;
|
|
4
|
+
mapped: string[];
|
|
5
|
+
excluded: ExcludedRelation[];
|
|
6
|
+
}
|
|
7
|
+
export declare function recordedConnection(root: string): string | undefined;
|
|
8
|
+
export declare function markMapped(module: string, update: MappedRecordUpdate): void;
|
|
9
|
+
export declare function mappedConnectionOfFile(filepath: string): string | undefined;
|
|
10
|
+
export declare function excludedRelationsOf(module: string): Record<string, string>;
|