@antelopejs/dms 0.19.6 → 0.20.0
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 +196 -1
- package/README.md +11 -9
- package/bin/control/backend-mode.test.mjs +72 -0
- package/bin/control/backend.mjs +41 -24
- package/bin/control/backend.test.mjs +18 -0
- package/bin/control/build-cache.mjs +18 -6
- package/bin/control/build-key.mjs +10 -7
- package/bin/control/build-key.test.mjs +25 -1
- package/bin/control/build-layout.test.mjs +53 -11
- package/bin/control/commands-stack.mjs +1 -0
- package/bin/control/forwarder.test.mjs +119 -1
- package/bin/control/helpers/ephemeral-range.mjs +18 -0
- package/bin/control/helpers/fake-run.mjs +75 -5
- package/bin/control/helpers/key-fixture.mjs +9 -6
- package/bin/control/helpers/narrow-range.mjs +35 -0
- package/bin/control/journey-load.mjs +49 -0
- package/bin/control/journey.mjs +6 -41
- package/bin/control/journey.test.mjs +68 -9
- 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/options.mjs +1 -0
- package/bin/control/processes.mjs +59 -0
- package/bin/control/run-ports.test.mjs +126 -0
- package/bin/control/run-state.mjs +9 -3
- package/bin/control/stack.mjs +77 -11
- package/bin/control/verify/map.mjs +1 -1
- package/bin/control/verify/verdict.mjs +1 -1
- package/bin/dms-control.mjs +7 -3
- package/data/mockup-example/spec.json +209 -0
- package/data/mockup-spec.schema.json +10955 -0
- 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 +63 -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/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/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/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.js +21 -60
- 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.js +1 -5
- 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 +266 -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 +84 -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/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 +63 -0
- package/dist/implementations/dms-builder/engine/index.js +82 -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/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 +195 -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 +54 -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 +183 -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 +194 -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 +199 -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 +243 -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 +181 -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 +268 -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 +113 -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.d.ts +8 -0
- package/dist/mockup/sketch.js +150 -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/two-factor-throttle.js +5 -1
- package/dist/routes/auth/two-factor-throttle.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/runtime.d.ts +2 -2
- 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 +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- 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 +8 -3
- 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/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 -8
- package/frontend-vue/layers/dms-layout/i18n/locales/layout-fr-FR.json +181 -8
- 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 +158 -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-page-invariants.mjs +1 -1
- package/frontend-vue/scripts/probes/frontend-legacy.cjs +22 -22
- package/frontend-vue/server/request-body.ts +21 -0
- package/package.json +61 -20
- 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 +1 -1
- package/skills/dms-project/REFERENCE.md +4 -2
- package/skills/dms-project/SKILL.md +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,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isTechnicalTable = isTechnicalTable;
|
|
4
|
+
exports.isHumanLabelName = isHumanLabelName;
|
|
5
|
+
exports.isSecretColumn = isSecretColumn;
|
|
6
|
+
exports.preferredLabel = preferredLabel;
|
|
7
|
+
exports.impliedTargetNames = impliedTargetNames;
|
|
8
|
+
exports.titleOf = titleOf;
|
|
9
|
+
exports.relationColumnTitle = relationColumnTitle;
|
|
10
|
+
const name_words_1 = require("./name-words");
|
|
11
|
+
const TECHNICAL_TABLES = [
|
|
12
|
+
/_migrations$/,
|
|
13
|
+
/^schema_migrations$/,
|
|
14
|
+
/^knex_/,
|
|
15
|
+
/^django_/,
|
|
16
|
+
/^flyway_/,
|
|
17
|
+
/^_/,
|
|
18
|
+
];
|
|
19
|
+
const SECRET_COLUMNS = [
|
|
20
|
+
/^password$/,
|
|
21
|
+
/^passwd$/,
|
|
22
|
+
/^pwd$/,
|
|
23
|
+
/_hash$/,
|
|
24
|
+
/^salt$/,
|
|
25
|
+
/^token$/,
|
|
26
|
+
/^secret$/,
|
|
27
|
+
/^api_key$/,
|
|
28
|
+
];
|
|
29
|
+
const HUMAN_LABELS = [
|
|
30
|
+
"name",
|
|
31
|
+
"full_name",
|
|
32
|
+
"fullname",
|
|
33
|
+
"display_name",
|
|
34
|
+
"displayname",
|
|
35
|
+
"title",
|
|
36
|
+
"label",
|
|
37
|
+
];
|
|
38
|
+
const PREFERRED_LABELS = [
|
|
39
|
+
...HUMAN_LABELS,
|
|
40
|
+
"code",
|
|
41
|
+
"reference",
|
|
42
|
+
];
|
|
43
|
+
const IMPLIED_REFERENCE = /^(.+?)(?:_id|_ref|_code|id)$/;
|
|
44
|
+
const CAMEL_BOUNDARY = /([a-z0-9])([A-Z])/g;
|
|
45
|
+
const TITLE_LENGTH = 40;
|
|
46
|
+
const SENTENCE_END = /[.\n]/;
|
|
47
|
+
function isTechnicalTable(name) {
|
|
48
|
+
return TECHNICAL_TABLES.some((pattern) => pattern.test(name.toLowerCase()));
|
|
49
|
+
}
|
|
50
|
+
function isHumanLabelName(name) {
|
|
51
|
+
return HUMAN_LABELS.includes(name.toLowerCase());
|
|
52
|
+
}
|
|
53
|
+
function isSecretColumn(name) {
|
|
54
|
+
return SECRET_COLUMNS.some((pattern) => pattern.test(name.toLowerCase()));
|
|
55
|
+
}
|
|
56
|
+
function preferredLabel(candidates) {
|
|
57
|
+
for (const preferred of PREFERRED_LABELS) {
|
|
58
|
+
const found = candidates.find((candidate) => candidate.toLowerCase() === preferred);
|
|
59
|
+
if (found) {
|
|
60
|
+
return { column: found, tied: false };
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
if (candidates.length === 0) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
return { column: candidates[0], tied: candidates.length > 1 };
|
|
67
|
+
}
|
|
68
|
+
function impliedTargetNames(column) {
|
|
69
|
+
const snake = column.replace(CAMEL_BOUNDARY, "$1_$2").toLowerCase();
|
|
70
|
+
const match = IMPLIED_REFERENCE.exec(snake);
|
|
71
|
+
if (!match || match[1].length === 0) {
|
|
72
|
+
return [];
|
|
73
|
+
}
|
|
74
|
+
const stem = match[1].replace(/_$/, "");
|
|
75
|
+
const plurals = [stem, `${stem}s`, `${stem}es`];
|
|
76
|
+
if (stem.endsWith("y")) {
|
|
77
|
+
plurals.push(`${stem.slice(0, -1)}ies`);
|
|
78
|
+
}
|
|
79
|
+
return plurals;
|
|
80
|
+
}
|
|
81
|
+
function titleOf(comment, name) {
|
|
82
|
+
const sentence = comment?.split(SENTENCE_END)[0]?.trim();
|
|
83
|
+
if (sentence && sentence.length <= TITLE_LENGTH) {
|
|
84
|
+
return sentence;
|
|
85
|
+
}
|
|
86
|
+
return (0, name_words_1.humanized)(name);
|
|
87
|
+
}
|
|
88
|
+
function relationColumnTitle(comment, name, targetTitle) {
|
|
89
|
+
const title = titleOf(comment, name);
|
|
90
|
+
return title === (0, name_words_1.humanized)(name)
|
|
91
|
+
? { value: (0, name_words_1.singular)(targetTitle), rule: "D3" }
|
|
92
|
+
: { value: title, rule: "L2" };
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=analysis-names.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analysis-names.js","sourceRoot":"","sources":["../../../../src/implementations/dms-builder/engine/analysis-names.ts"],"names":[],"mappings":";;AAoDA,4CAEC;AAMD,4CAEC;AAED,wCAEC;AAQD,wCAaC;AAMD,gDAYC;AAGD,0BAMC;AAMD,kDASC;AAjID,6CAAmD;AAGnD,MAAM,gBAAgB,GAAsB;IAC1C,cAAc;IACd,qBAAqB;IACrB,QAAQ;IACR,UAAU;IACV,UAAU;IACV,IAAI;CACL,CAAC;AAGF,MAAM,cAAc,GAAsB;IACxC,YAAY;IACZ,UAAU;IACV,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,UAAU;IACV,WAAW;CACZ,CAAC;AAGF,MAAM,YAAY,GAAsB;IACtC,MAAM;IACN,WAAW;IACX,UAAU;IACV,cAAc;IACd,aAAa;IACb,OAAO;IACP,OAAO;CACR,CAAC;AAGF,MAAM,gBAAgB,GAAsB;IAC1C,GAAG,YAAY;IACf,MAAM;IACN,WAAW;CACZ,CAAC;AAGF,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;AAGzD,MAAM,cAAc,GAAG,oBAAoB,CAAC;AAG5C,MAAM,YAAY,GAAG,EAAE,CAAC;AACxB,MAAM,YAAY,GAAG,OAAO,CAAC;AAE7B,SAAgB,gBAAgB,CAAC,IAAY;IAC3C,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;AAC9E,CAAC;AAMD,SAAgB,gBAAgB,CAAC,IAAY;IAC3C,OAAO,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,cAAc,CAAC,IAAY;IACzC,OAAO,cAAc,CAAC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,CAAC,EAAE,CAAC;QACvB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAGD,SAAgB,OAAO,CAAC,OAAsB,EAAE,IAAY;IAC1D,MAAM,QAAQ,GAAG,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;IACzD,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,IAAI,YAAY,EAAE,CAAC;QAChD,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,OAAO,IAAA,sBAAS,EAAC,IAAI,CAAC,CAAC;AACzB,CAAC;AAMD,SAAgB,mBAAmB,CACjC,OAAsB,EACtB,IAAY,EACZ,WAAmB;IAEnB,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACrC,OAAO,KAAK,KAAK,IAAA,sBAAS,EAAC,IAAI,CAAC;QAC9B,CAAC,CAAC,EAAE,KAAK,EAAE,IAAA,qBAAQ,EAAC,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE;QAC9C,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AACnC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { OpenItem, Proposed, ProposedExclusion } from "@antelopejs/interface-dms-builder";
|
|
2
|
+
import { type RelationFacts } from "./analysis-input";
|
|
3
|
+
export type RelationVerdict = ProposedVerdict | {
|
|
4
|
+
kind: "excluded";
|
|
5
|
+
exclusion: ProposedExclusion;
|
|
6
|
+
} | {
|
|
7
|
+
kind: "open";
|
|
8
|
+
item: OpenItem;
|
|
9
|
+
};
|
|
10
|
+
export interface ProposedVerdict {
|
|
11
|
+
kind: "proposed";
|
|
12
|
+
tableView: Proposed<boolean>;
|
|
13
|
+
label: Proposed<string | null>;
|
|
14
|
+
open: OpenItem[];
|
|
15
|
+
}
|
|
16
|
+
export interface RelationContext {
|
|
17
|
+
referenced: Set<string>;
|
|
18
|
+
}
|
|
19
|
+
export declare function classifyRelation(facts: RelationFacts, context: RelationContext): RelationVerdict;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.classifyRelation = classifyRelation;
|
|
4
|
+
const analysis_input_1 = require("./analysis-input");
|
|
5
|
+
const analysis_names_1 = require("./analysis-names");
|
|
6
|
+
const LINK_TABLE_REFERENCES = 2;
|
|
7
|
+
const LINK_TABLE_OTHER_COLUMNS = 1;
|
|
8
|
+
function excluded(facts, rule, reason) {
|
|
9
|
+
return {
|
|
10
|
+
kind: "excluded",
|
|
11
|
+
exclusion: { relation: facts.relation, reason, rule },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function statsOnly(rule, kind) {
|
|
15
|
+
return {
|
|
16
|
+
kind: "proposed",
|
|
17
|
+
tableView: { value: false, rule, kind },
|
|
18
|
+
label: { value: null, rule, kind: "fact" },
|
|
19
|
+
open: [],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function isHumanLabelColumn(column) {
|
|
23
|
+
return ((0, analysis_names_1.isHumanLabelName)(column.name) &&
|
|
24
|
+
column.accepts.some((reading) => reading.declared === "string"));
|
|
25
|
+
}
|
|
26
|
+
function labelCandidates(facts) {
|
|
27
|
+
return facts.description.columns
|
|
28
|
+
.filter((column) => isHumanLabelColumn(column) ||
|
|
29
|
+
(0, analysis_input_1.hasTrait)(facts, column.name, "label-candidate"))
|
|
30
|
+
.map((column) => column.name);
|
|
31
|
+
}
|
|
32
|
+
function hasTimeAxis(facts) {
|
|
33
|
+
return facts.description.columns.some((column) => (0, analysis_input_1.hasTrait)(facts, column.name, "time-axis"));
|
|
34
|
+
}
|
|
35
|
+
function isLinkTable(facts) {
|
|
36
|
+
const { key, references, columns } = facts.description;
|
|
37
|
+
if (!key || references.length !== LINK_TABLE_REFERENCES) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
const referring = new Set(references.flatMap((reference) => reference.from.columns));
|
|
41
|
+
const keyIsReferences = key.columns.length === referring.size &&
|
|
42
|
+
key.columns.every((column) => referring.has(column));
|
|
43
|
+
const others = columns.filter((column) => !referring.has(column.name));
|
|
44
|
+
return keyIsReferences && others.length <= LINK_TABLE_OTHER_COLUMNS;
|
|
45
|
+
}
|
|
46
|
+
function labelItem(facts, proposed) {
|
|
47
|
+
const key = facts.description.key?.columns ?? [];
|
|
48
|
+
const columns = facts.description.columns.filter((column) => column.accepts.length > 0 && !(0, analysis_names_1.isSecretColumn)(column.name));
|
|
49
|
+
return {
|
|
50
|
+
id: `label:${facts.relation}`,
|
|
51
|
+
kind: "label",
|
|
52
|
+
relation: facts.relation,
|
|
53
|
+
question: `Which column names a row of ${facts.relation}? It is what its list shows first, and what columns of other tables pointing at it show.`,
|
|
54
|
+
options: columns.map((column) => ({
|
|
55
|
+
value: column.name,
|
|
56
|
+
title: key.length === 1 && key[0] === column.name
|
|
57
|
+
? `${column.name} (the key)`
|
|
58
|
+
: column.name,
|
|
59
|
+
})),
|
|
60
|
+
proposed,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function purposeItem(facts) {
|
|
64
|
+
return {
|
|
65
|
+
id: `purpose:${facts.relation}`,
|
|
66
|
+
kind: "purpose",
|
|
67
|
+
relation: facts.relation,
|
|
68
|
+
question: `What should ${facts.relation} become? Its names, comments and data do not say what it holds.`,
|
|
69
|
+
options: [
|
|
70
|
+
{ value: "tableView", title: "A page to list and edit its rows" },
|
|
71
|
+
{ value: "statsOnly", title: "Counted in stats, no page" },
|
|
72
|
+
{ value: "excluded", title: "Left out" },
|
|
73
|
+
],
|
|
74
|
+
proposed: null,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function labelledTableView(facts) {
|
|
78
|
+
const choice = (0, analysis_names_1.preferredLabel)(labelCandidates(facts));
|
|
79
|
+
return {
|
|
80
|
+
kind: "proposed",
|
|
81
|
+
tableView: { value: true, rule: "R6", kind: "default" },
|
|
82
|
+
label: { value: choice.column, rule: "L1", kind: "default" },
|
|
83
|
+
open: choice.tied ? [labelItem(facts, choice.column)] : [],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function keyLabelledTableView(facts) {
|
|
87
|
+
const key = facts.description.key?.columns ?? [];
|
|
88
|
+
const label = key.length === 1 ? key[0] : null;
|
|
89
|
+
return {
|
|
90
|
+
kind: "proposed",
|
|
91
|
+
tableView: { value: true, rule: "R7", kind: "default" },
|
|
92
|
+
label: { value: label, rule: "R7", kind: "default" },
|
|
93
|
+
open: [labelItem(facts, label)],
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
const hasRows = (facts) => facts.rows !== 0;
|
|
97
|
+
const isKeyed = (facts) => facts.description.key !== null;
|
|
98
|
+
const RELATION_RULES = [
|
|
99
|
+
{
|
|
100
|
+
id: "R1",
|
|
101
|
+
applies: (facts) => facts.description.unmappable !== undefined,
|
|
102
|
+
verdict: (facts) => excluded(facts, "R1", facts.description.unmappable ?? ""),
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
id: "R4",
|
|
106
|
+
applies: (facts) => (0, analysis_names_1.isTechnicalTable)(facts.description.name),
|
|
107
|
+
verdict: (facts) => excluded(facts, "R4", "a framework's or a migration tool's table"),
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
id: "R3",
|
|
111
|
+
applies: (facts) => !hasRows(facts),
|
|
112
|
+
verdict: (facts) => excluded(facts, "R3", "it has no rows"),
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
id: "R2",
|
|
116
|
+
applies: (facts) => !isKeyed(facts),
|
|
117
|
+
verdict: () => statsOnly("R2", "fact"),
|
|
118
|
+
},
|
|
119
|
+
{ id: "R5", applies: isLinkTable, verdict: () => statsOnly("R5", "fact") },
|
|
120
|
+
{
|
|
121
|
+
id: "R6",
|
|
122
|
+
applies: (facts) => labelCandidates(facts).length > 0,
|
|
123
|
+
verdict: labelledTableView,
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
id: "R7",
|
|
127
|
+
applies: (facts, context) => context.referenced.has(facts.relation),
|
|
128
|
+
verdict: keyLabelledTableView,
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
id: "R8",
|
|
132
|
+
applies: hasTimeAxis,
|
|
133
|
+
verdict: () => statsOnly("R8", "default"),
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
id: "R9",
|
|
137
|
+
applies: () => true,
|
|
138
|
+
verdict: (facts) => ({ kind: "open", item: purposeItem(facts) }),
|
|
139
|
+
},
|
|
140
|
+
];
|
|
141
|
+
function classifyRelation(facts, context) {
|
|
142
|
+
const rule = RELATION_RULES.find((candidate) => candidate.applies(facts, context));
|
|
143
|
+
return rule.verdict(facts, context);
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=analysis-relations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analysis-relations.js","sourceRoot":"","sources":["../../../../src/implementations/dms-builder/engine/analysis-relations.ts"],"names":[],"mappings":";;AAoNA,4CAQC;AArND,qDAAgE;AAChE,qDAK0B;AAE1B,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAChC,MAAM,wBAAwB,GAAG,CAAC,CAAC;AA0BnC,SAAS,QAAQ,CACf,KAAoB,EACpB,IAAY,EACZ,MAAc;IAEd,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE;KACtD,CAAC;AACJ,CAAC;AAED,SAAS,SAAS,CAAC,IAAY,EAAE,IAAkB;IACjD,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,EAAE,K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cAAc,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAC7C,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CACjC,CAAC;IACH,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ReferenceCheck, RelationDescription } from "@antelopejs/interface-database-catalog";
|
|
2
|
+
import type { MappingProposal } from "@antelopejs/interface-dms-builder";
|
|
3
|
+
import { type AnalysisInput } from "./analysis-input";
|
|
4
|
+
export declare function impliedReferenceChecks(descriptions: RelationDescription[]): ReferenceCheck[];
|
|
5
|
+
export declare function proposeMapping(input: AnalysisInput): MappingProposal;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.impliedReferenceChecks = impliedReferenceChecks;
|
|
4
|
+
exports.proposeMapping = proposeMapping;
|
|
5
|
+
const analysis_fields_1 = require("./analysis-fields");
|
|
6
|
+
const analysis_input_1 = require("./analysis-input");
|
|
7
|
+
const column_display_1 = require("./column-display");
|
|
8
|
+
const analysis_names_1 = require("./analysis-names");
|
|
9
|
+
const analysis_relations_1 = require("./analysis-relations");
|
|
10
|
+
const FULL_CONTAINMENT = 1;
|
|
11
|
+
function singleKey(description) {
|
|
12
|
+
const columns = description.key?.columns ?? [];
|
|
13
|
+
return columns.length === 1 ? columns[0] : undefined;
|
|
14
|
+
}
|
|
15
|
+
function declaredOf(description, column) {
|
|
16
|
+
return (description.columns
|
|
17
|
+
.find((candidate) => candidate.name === column)
|
|
18
|
+
?.accepts.map((reading) => reading.declared) ?? []);
|
|
19
|
+
}
|
|
20
|
+
function impliedTarget(descriptions, from, column) {
|
|
21
|
+
const declared = declaredOf(from, column);
|
|
22
|
+
const names = (0, analysis_names_1.impliedTargetNames)(column);
|
|
23
|
+
const candidates = descriptions
|
|
24
|
+
.filter((target) => target !== from && names.includes(target.name))
|
|
25
|
+
.sort((left, right) => Number(right.schema === from.schema) -
|
|
26
|
+
Number(left.schema === from.schema));
|
|
27
|
+
return candidates.find((target) => {
|
|
28
|
+
const key = singleKey(target);
|
|
29
|
+
return (key !== undefined &&
|
|
30
|
+
declaredOf(target, key).some((reading) => declared.includes(reading)));
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function impliedReferenceChecks(descriptions) {
|
|
34
|
+
return descriptions.flatMap((from) => {
|
|
35
|
+
const referring = new Set(from.references.flatMap((reference) => reference.from.columns));
|
|
36
|
+
const keyColumns = new Set(from.key?.columns ?? []);
|
|
37
|
+
return from.columns
|
|
38
|
+
.filter((column) => !referring.has(column.name))
|
|
39
|
+
.filter((column) => !keyColumns.has(column.name))
|
|
40
|
+
.flatMap((column) => {
|
|
41
|
+
const target = impliedTarget(descriptions, from, column.name);
|
|
42
|
+
return target
|
|
43
|
+
? [
|
|
44
|
+
{
|
|
45
|
+
from: { relation: (0, analysis_input_1.relationName)(from), column: column.name },
|
|
46
|
+
to: {
|
|
47
|
+
relation: (0, analysis_input_1.relationName)(target),
|
|
48
|
+
column: singleKey(target),
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
]
|
|
52
|
+
: [];
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function referencedRelations(input, facts) {
|
|
57
|
+
const declared = facts
|
|
58
|
+
.filter((relation) => relation.description.referencedBy.length > 0)
|
|
59
|
+
.map((relation) => relation.relation);
|
|
60
|
+
const implied = input.references
|
|
61
|
+
.filter((reference) => reference.match.status === "ok" &&
|
|
62
|
+
reference.match.value.containment >= FULL_CONTAINMENT)
|
|
63
|
+
.map((reference) => reference.to.relation);
|
|
64
|
+
return new Set([...declared, ...implied]);
|
|
65
|
+
}
|
|
66
|
+
function targetsOf(input, classified) {
|
|
67
|
+
const targets = new Map(Object.entries(input.mapped));
|
|
68
|
+
for (const { facts, verdict } of classified) {
|
|
69
|
+
if (verdict.kind === "proposed") {
|
|
70
|
+
targets.set(facts.relation, (0, analysis_fields_1.referenceTarget)(facts.description, verdict.tableView.value));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return targets;
|
|
74
|
+
}
|
|
75
|
+
function proposedResource(input, facts, verdict, targets) {
|
|
76
|
+
const fields = (0, analysis_fields_1.proposeFields)(facts, {
|
|
77
|
+
label: verdict.label.value,
|
|
78
|
+
targets,
|
|
79
|
+
implied: input.references,
|
|
80
|
+
});
|
|
81
|
+
const { description } = facts;
|
|
82
|
+
const resource = {
|
|
83
|
+
relation: facts.relation,
|
|
84
|
+
tableView: verdict.tableView,
|
|
85
|
+
writable: { value: false, rule: "W1", kind: "default" },
|
|
86
|
+
label: verdict.label,
|
|
87
|
+
title: {
|
|
88
|
+
value: (0, analysis_names_1.titleOf)(description.comment, description.name),
|
|
89
|
+
rule: "L2",
|
|
90
|
+
kind: "default",
|
|
91
|
+
},
|
|
92
|
+
fields: fields.fields,
|
|
93
|
+
leftOut: fields.leftOut,
|
|
94
|
+
writes: description.writes,
|
|
95
|
+
};
|
|
96
|
+
const tabs = verdict.tableView.value
|
|
97
|
+
? (0, column_display_1.proposeTabs)(fields.fields.map((field) => ({
|
|
98
|
+
column: field.column,
|
|
99
|
+
display: field.display?.value,
|
|
100
|
+
filterable: field.filterable.value,
|
|
101
|
+
})))
|
|
102
|
+
: undefined;
|
|
103
|
+
if (tabs) {
|
|
104
|
+
resource.tabs = { value: tabs, rule: "T1", kind: "default" };
|
|
105
|
+
}
|
|
106
|
+
if (facts.rows !== null) {
|
|
107
|
+
resource.rows = facts.rows;
|
|
108
|
+
}
|
|
109
|
+
const profiledRows = (0, analysis_input_1.profiledRowsOf)(facts);
|
|
110
|
+
if (profiledRows !== undefined) {
|
|
111
|
+
resource.profiledRows = profiledRows;
|
|
112
|
+
}
|
|
113
|
+
return { resource, open: [...verdict.open, ...fields.open] };
|
|
114
|
+
}
|
|
115
|
+
function withResource(input, facts, item, targets) {
|
|
116
|
+
const key = facts.description.key?.columns ?? [];
|
|
117
|
+
const verdict = {
|
|
118
|
+
kind: "proposed",
|
|
119
|
+
tableView: { value: true, rule: "R9", kind: "default" },
|
|
120
|
+
label: {
|
|
121
|
+
value: key.length === 1 ? key[0] : null,
|
|
122
|
+
rule: "R9",
|
|
123
|
+
kind: "default",
|
|
124
|
+
},
|
|
125
|
+
open: [],
|
|
126
|
+
};
|
|
127
|
+
const proposed = proposedResource(input, facts, verdict, targets);
|
|
128
|
+
return proposed.open.length > 0
|
|
129
|
+
? { ...item, resource: proposed.resource, open: proposed.open }
|
|
130
|
+
: { ...item, resource: proposed.resource };
|
|
131
|
+
}
|
|
132
|
+
function unmappedExclusions(summaries) {
|
|
133
|
+
return summaries
|
|
134
|
+
.filter((summary) => summary.unmappable !== undefined)
|
|
135
|
+
.map((summary) => ({
|
|
136
|
+
relation: (0, analysis_input_1.relationName)(summary),
|
|
137
|
+
reason: summary.unmappable ?? "",
|
|
138
|
+
rule: "R1",
|
|
139
|
+
}));
|
|
140
|
+
}
|
|
141
|
+
function databaseOf(input, resources) {
|
|
142
|
+
const writable = resources.filter((resource) => resource.writes.insert ||
|
|
143
|
+
resource.writes.update ||
|
|
144
|
+
resource.writes.delete).length;
|
|
145
|
+
const writes = writable === 0 ? "none" : writable === resources.length ? "all" : "some";
|
|
146
|
+
return {
|
|
147
|
+
engine: `${input.info.engine} ${input.info.version}`,
|
|
148
|
+
role: input.info.role,
|
|
149
|
+
writes,
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
function proposeMapping(input) {
|
|
153
|
+
const facts = (0, analysis_input_1.factsOf)(input);
|
|
154
|
+
const context = { referenced: referencedRelations(input, facts) };
|
|
155
|
+
const classified = facts.map((relation) => ({
|
|
156
|
+
facts: relation,
|
|
157
|
+
verdict: (0, analysis_relations_1.classifyRelation)(relation, context),
|
|
158
|
+
}));
|
|
159
|
+
const targets = targetsOf(input, classified);
|
|
160
|
+
const resources = [];
|
|
161
|
+
const excluded = unmappedExclusions(input.summaries);
|
|
162
|
+
const open = [];
|
|
163
|
+
for (const { facts: relation, verdict } of classified) {
|
|
164
|
+
if (verdict.kind === "excluded") {
|
|
165
|
+
excluded.push(verdict.exclusion);
|
|
166
|
+
}
|
|
167
|
+
else if (verdict.kind === "open") {
|
|
168
|
+
open.push(withResource(input, relation, verdict.item, targets));
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
const proposed = proposedResource(input, relation, verdict, targets);
|
|
172
|
+
resources.push(proposed.resource);
|
|
173
|
+
open.push(...proposed.open);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return {
|
|
177
|
+
connection: input.connection,
|
|
178
|
+
module: input.module,
|
|
179
|
+
database: databaseOf(input, resources),
|
|
180
|
+
resources,
|
|
181
|
+
excluded,
|
|
182
|
+
open,
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
//# sourceMappingURL=analysis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analysis.js","sourceRoot":"","sources":["../../../../src/implementations/dms-builder/engine/analysis.ts"],"names":[],"mappings":";;AA8EA,wDA0BC;AA0JD,wCA8BC;AApRD,uDAI2B;AAC3B,qDAM0B;AAC1B,qDAA+C;AAC/C,qDAA+D;AAC/D,6DAI8B;AAE9B,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAE3B,SAAS,SAAS,CAAC,WAAgC;IACjD,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,OAAO,IAAI,EAAE,CAAC;IAC/C,OAAO,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACvD,CAAC;AAED,SAAS,UAAU,CACjB,WAAgC,EAChC,MAAc;IAEd,OAAO,CACL,WAAW,CAAC,OAAO;SAChB,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAA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K,CAAC,SAAS,CAAC,CAAC;IACrD,MAAM,IAAI,GAAe,EAAE,CAAC;IAC5B,KAAK,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,UAAU,EAAE,CAAC;QACtD,IAAI,OAAO,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YAChC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACnC,CAAC;aAAM,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACnC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;QAClE,CAAC;aAAM,CAAC;YACN,MAAM,QAAQ,GAAG,gBAAgB,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACrE,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAClC,IAAI,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC9B,CAAC;IACH,CAAC;IACD,OAAO;QACL,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,QAAQ,EAAE,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC;QACtC,SAAS;QACT,QAAQ;QACR,IAAI;KACL,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type CallExpression, type ClassDeclaration, type Expression, type ObjectLiteralExpression } from "ts-morph";
|
|
2
|
+
export interface BlockTarget {
|
|
3
|
+
type?: string;
|
|
4
|
+
factoryCall: CallExpression;
|
|
5
|
+
childCalls: CallExpression[];
|
|
6
|
+
chainExpr: Expression;
|
|
7
|
+
childCall?: CallExpression;
|
|
8
|
+
optionsObj?: ObjectLiteralExpression;
|
|
9
|
+
editable: boolean;
|
|
10
|
+
controllerArg: boolean;
|
|
11
|
+
}
|
|
12
|
+
export type TargetResult = {
|
|
13
|
+
ok: true;
|
|
14
|
+
target: BlockTarget;
|
|
15
|
+
} | {
|
|
16
|
+
ok: false;
|
|
17
|
+
reason: "not_found";
|
|
18
|
+
} | {
|
|
19
|
+
ok: false;
|
|
20
|
+
reason: "opaque";
|
|
21
|
+
detail: string;
|
|
22
|
+
};
|
|
23
|
+
export declare function resolveBlockTarget(cls: ClassDeclaration, segments: string[]): TargetResult;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveBlockTarget = resolveBlockTarget;
|
|
4
|
+
const ts_morph_1 = require("ts-morph");
|
|
5
|
+
const catalog_1 = require("./catalog");
|
|
6
|
+
const chain_1 = require("./chain");
|
|
7
|
+
const literals_1 = require("./literals");
|
|
8
|
+
function staticInitializer(cls, name) {
|
|
9
|
+
for (const prop of cls.getStaticProperties()) {
|
|
10
|
+
if (ts_morph_1.Node.isPropertyDeclaration(prop) && prop.getName() === name) {
|
|
11
|
+
return prop.getInitializer();
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return undefined;
|
|
15
|
+
}
|
|
16
|
+
function childCallById(chain, id) {
|
|
17
|
+
return chain.childCalls.find((call) => (0, literals_1.stringLiteralValue)(call.getArguments()[0]) === id);
|
|
18
|
+
}
|
|
19
|
+
function unwrapBlock(expr) {
|
|
20
|
+
const unwrapped = (0, chain_1.resolveAndUnwrap)(expr);
|
|
21
|
+
const { chain, rootExpr } = unwrapped;
|
|
22
|
+
if (unwrapped.opaqueReason || !chain?.factoryCall || !rootExpr) {
|
|
23
|
+
return {
|
|
24
|
+
ok: false,
|
|
25
|
+
reason: "opaque",
|
|
26
|
+
detail: unwrapped.opaqueReason ?? "",
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
ok: true,
|
|
31
|
+
chain,
|
|
32
|
+
factoryCall: chain.factoryCall,
|
|
33
|
+
chainExpr: rootExpr,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function toTarget({ chain, factoryCall, chainExpr }, childCall) {
|
|
37
|
+
const controllerArg = chain.factory
|
|
38
|
+
? (0, catalog_1.isControllerLeadingBlock)(chain.factory)
|
|
39
|
+
: false;
|
|
40
|
+
const optionsArg = factoryCall.getArguments()[controllerArg ? 1 : 0];
|
|
41
|
+
const optionsObj = optionsArg && ts_morph_1.Node.isObjectLiteralExpression(optionsArg)
|
|
42
|
+
? optionsArg
|
|
43
|
+
: undefined;
|
|
44
|
+
return {
|
|
45
|
+
type: chain.factory,
|
|
46
|
+
factoryCall,
|
|
47
|
+
childCalls: chain.childCalls,
|
|
48
|
+
chainExpr,
|
|
49
|
+
childCall,
|
|
50
|
+
optionsObj,
|
|
51
|
+
editable: !optionsArg || optionsObj !== undefined,
|
|
52
|
+
controllerArg,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function resolveBlockTarget(cls, segments) {
|
|
56
|
+
const [head, ...rest] = segments;
|
|
57
|
+
const init = staticInitializer(cls, head);
|
|
58
|
+
if (!init) {
|
|
59
|
+
return { ok: false, reason: "not_found" };
|
|
60
|
+
}
|
|
61
|
+
let current = unwrapBlock(init);
|
|
62
|
+
if (!current.ok) {
|
|
63
|
+
return current;
|
|
64
|
+
}
|
|
65
|
+
let childCall;
|
|
66
|
+
for (const segment of rest) {
|
|
67
|
+
childCall = childCallById(current.chain, segment);
|
|
68
|
+
const childExpr = childCall?.getArguments()[1];
|
|
69
|
+
if (!childCall || !childExpr || !ts_morph_1.Node.isExpression(childExpr)) {
|
|
70
|
+
return { ok: false, reason: "not_found" };
|
|
71
|
+
}
|
|
72
|
+
const next = unwrapBlock(childExpr);
|
|
73
|
+
if (!next.ok) {
|
|
74
|
+
return next;
|
|
75
|
+
}
|
|
76
|
+
current = next;
|
|
77
|
+
}
|
|
78
|
+
return { ok: true, target: toTarget(current, childCall) };
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=block-target.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block-target.js","sourceRoot":"","sources":["../../../../src/implementations/dms-builder/engine/block-target.ts"],"names":[],"mappings":";;AAqGA,gDA2BC;AAhID,uCAMkB;AAClB,uCAAqD;AACrD,mCAA2D;AAC3D,yCAAgD;AAoBhD,SAAS,iBAAiB,CACxB,GAAqB,EACrB,IAAY;IAEZ,KAAK,MAAM,IAAI,IAAI,GAAG,CAAC,mBAAmB,EAAE,EAAE,CAAC;QAC7C,IAAI,eAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,KAAK,IAAI,EAAE,CAAC;YAChE,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC;QAC/B,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,aAAa,CACpB,KAAgB,EAChB,EAAU;IAEV,OAAO,KAAK,CAAC,UAAU,CAAC,IAAI,CAC1B,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,6BAAkB,EAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAC5D,CAAC;AACJ,CAAC;AASD,SAAS,WAAW,CAClB,IAAgB;IAEhB,MAAM,SAAS,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,CAAC;IACzC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;IACtC,IAAI,SAAS,CAAC,YAAY,IAAI,CAAC,KAAK,EAAE,WAAW,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC/D,OAAO;YACL,EAAE,EAAE,KAAK;YACT,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,SAAS,CAAC,YAAY,IAAI,EAAE;SACrC,CAAC;IACJ,CAAC;IACD,OAAO;QACL,EAAE,EAAE,IAAI;QACR,KAAK;QACL,WAAW,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