@antelopejs/dms 0.21.3-next.1001.ge3bf721 → 0.21.3-next.1003.g014f36d
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/data/mockup-example/spec.json +11 -36
- package/data/mockup-spec.schema.json +917 -23
- package/dist/builder.js +0 -2
- package/dist/builder.js.map +1 -1
- package/dist/implementations/dms-builder/engine/access-grant.js +6 -6
- package/dist/implementations/dms-builder/engine/access-grant.js.map +1 -1
- package/dist/implementations/dms-builder/engine/analysis-job.js +2 -1
- package/dist/implementations/dms-builder/engine/analysis-job.js.map +1 -1
- package/dist/implementations/dms-builder/engine/category-section.d.ts +23 -0
- package/dist/implementations/dms-builder/engine/category-section.js +84 -0
- package/dist/implementations/dms-builder/engine/category-section.js.map +1 -0
- package/dist/implementations/dms-builder/engine/cell-displays.d.ts +17 -0
- package/dist/implementations/dms-builder/engine/cell-displays.js +194 -0
- package/dist/implementations/dms-builder/engine/cell-displays.js.map +1 -0
- package/dist/implementations/dms-builder/engine/column-display.js +2 -2
- package/dist/implementations/dms-builder/engine/column-display.js.map +1 -1
- package/dist/implementations/dms-builder/engine/column-groups-write.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/column-groups-write.js +79 -0
- package/dist/implementations/dms-builder/engine/column-groups-write.js.map +1 -0
- package/dist/implementations/dms-builder/engine/column-groups.d.ts +27 -0
- package/dist/implementations/dms-builder/engine/column-groups.js +36 -0
- package/dist/implementations/dms-builder/engine/column-groups.js.map +1 -0
- package/dist/implementations/dms-builder/engine/column-presentation.d.ts +13 -0
- package/dist/implementations/dms-builder/engine/column-presentation.js +121 -0
- package/dist/implementations/dms-builder/engine/column-presentation.js.map +1 -0
- package/dist/implementations/dms-builder/engine/compose-page.js +4 -4
- package/dist/implementations/dms-builder/engine/compose-page.js.map +1 -1
- package/dist/implementations/dms-builder/engine/connection-access-switch.d.ts +11 -0
- package/dist/implementations/dms-builder/engine/connection-access-switch.js +61 -0
- package/dist/implementations/dms-builder/engine/connection-access-switch.js.map +1 -0
- package/dist/implementations/dms-builder/engine/connection-access.js +1 -1
- package/dist/implementations/dms-builder/engine/connection-access.js.map +1 -1
- package/dist/implementations/dms-builder/engine/connection-targets.js +3 -3
- package/dist/implementations/dms-builder/engine/connection-targets.js.map +1 -1
- package/dist/implementations/dms-builder/engine/database-connection.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/database-connection.js +24 -0
- package/dist/implementations/dms-builder/engine/database-connection.js.map +1 -1
- package/dist/implementations/dms-builder/engine/display-defaults.d.ts +2 -1
- package/dist/implementations/dms-builder/engine/display-defaults.js +2 -1
- package/dist/implementations/dms-builder/engine/display-defaults.js.map +1 -1
- package/dist/implementations/dms-builder/engine/dms-database.js +2 -2
- package/dist/implementations/dms-builder/engine/dms-database.js.map +1 -1
- package/dist/implementations/dms-builder/engine/emit.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/emit.js +9 -0
- package/dist/implementations/dms-builder/engine/emit.js.map +1 -1
- package/dist/implementations/dms-builder/engine/index.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/index.js +2 -0
- package/dist/implementations/dms-builder/engine/index.js.map +1 -1
- package/dist/implementations/dms-builder/engine/map-resources-batch.js +22 -1
- package/dist/implementations/dms-builder/engine/map-resources-batch.js.map +1 -1
- package/dist/implementations/dms-builder/engine/map-resources-pages.js +91 -41
- package/dist/implementations/dms-builder/engine/map-resources-pages.js.map +1 -1
- package/dist/implementations/dms-builder/engine/map-resources-plan.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/map-resources-plan.js +7 -2
- package/dist/implementations/dms-builder/engine/map-resources-plan.js.map +1 -1
- package/dist/implementations/dms-builder/engine/map-resources-presentation.d.ts +10 -0
- package/dist/implementations/dms-builder/engine/map-resources-presentation.js +33 -0
- package/dist/implementations/dms-builder/engine/map-resources-presentation.js.map +1 -0
- package/dist/implementations/dms-builder/engine/map-resources.js +2 -1
- package/dist/implementations/dms-builder/engine/map-resources.js.map +1 -1
- package/dist/implementations/dms-builder/engine/mapped-choices.js +3 -3
- package/dist/implementations/dms-builder/engine/mapped-choices.js.map +1 -1
- package/dist/implementations/dms-builder/engine/mapped-displays.d.ts +2 -1
- package/dist/implementations/dms-builder/engine/mapped-displays.js +6 -3
- package/dist/implementations/dms-builder/engine/mapped-displays.js.map +1 -1
- package/dist/implementations/dms-builder/engine/mapped-modules.js +5 -5
- package/dist/implementations/dms-builder/engine/mapped-modules.js.map +1 -1
- package/dist/implementations/dms-builder/engine/ops-categories.d.ts +3 -1
- package/dist/implementations/dms-builder/engine/ops-categories.js +45 -40
- package/dist/implementations/dms-builder/engine/ops-categories.js.map +1 -1
- package/dist/implementations/dms-builder/engine/page-draft-validation.js +3 -3
- package/dist/implementations/dms-builder/engine/page-draft-validation.js.map +1 -1
- package/dist/implementations/dms-builder/engine/page-draft.js +2 -1
- package/dist/implementations/dms-builder/engine/page-draft.js.map +1 -1
- package/dist/implementations/dms-builder/engine/page-structure.js +1 -0
- package/dist/implementations/dms-builder/engine/page-structure.js.map +1 -1
- package/dist/implementations/dms-builder/engine/plain-object.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/plain-object.js +7 -0
- package/dist/implementations/dms-builder/engine/plain-object.js.map +1 -0
- package/dist/implementations/dms-builder/engine/planned-page.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/planned-page.js +1 -0
- package/dist/implementations/dms-builder/engine/planned-page.js.map +1 -1
- package/dist/implementations/dms-builder/engine/preview.js +3 -3
- package/dist/implementations/dms-builder/engine/preview.js.map +1 -1
- package/dist/implementations/dms-builder/engine/project-config-entry.js +2 -2
- package/dist/implementations/dms-builder/engine/project-config-entry.js.map +1 -1
- package/dist/implementations/dms-builder/engine/project-config-text.js +2 -2
- package/dist/implementations/dms-builder/engine/project-config-text.js.map +1 -1
- package/dist/implementations/dms-builder/engine/project-config.js +2 -2
- package/dist/implementations/dms-builder/engine/project-config.js.map +1 -1
- package/dist/implementations/dms-builder/engine/project-scaffold.js +3 -3
- package/dist/implementations/dms-builder/engine/project-scaffold.js.map +1 -1
- package/dist/implementations/dms-builder/engine/project.js +3 -3
- package/dist/implementations/dms-builder/engine/project.js.map +1 -1
- package/dist/implementations/dms-builder/engine/query-plan.js +2 -2
- package/dist/implementations/dms-builder/engine/query-plan.js.map +1 -1
- package/dist/implementations/dms-builder/engine/query-preview.js +2 -2
- package/dist/implementations/dms-builder/engine/query-preview.js.map +1 -1
- package/dist/implementations/dms-builder/engine/query-structure.js +2 -2
- package/dist/implementations/dms-builder/engine/query-structure.js.map +1 -1
- package/dist/implementations/dms-builder/engine/query-sync.js +2 -2
- package/dist/implementations/dms-builder/engine/query-sync.js.map +1 -1
- package/dist/implementations/dms-builder/engine/query-template.js +6 -6
- package/dist/implementations/dms-builder/engine/query-template.js.map +1 -1
- package/dist/implementations/dms-builder/engine/resource-emit-types.js +5 -0
- package/dist/implementations/dms-builder/engine/resource-emit-types.js.map +1 -1
- package/dist/implementations/dms-builder/engine/resource-emit.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/resource-emit.js +1 -0
- package/dist/implementations/dms-builder/engine/resource-emit.js.map +1 -1
- package/dist/implementations/dms-builder/engine/resource-guards.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/resource-guards.js +38 -0
- package/dist/implementations/dms-builder/engine/resource-guards.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-ops-delete.d.ts +2 -2
- package/dist/implementations/dms-builder/engine/resource-ops-delete.js +18 -38
- package/dist/implementations/dms-builder/engine/resource-ops-delete.js.map +1 -1
- package/dist/implementations/dms-builder/engine/resource-ops.js +5 -0
- package/dist/implementations/dms-builder/engine/resource-ops.js.map +1 -1
- package/dist/implementations/dms-builder/engine/resource-structure.js +22 -3
- package/dist/implementations/dms-builder/engine/resource-structure.js.map +1 -1
- package/dist/implementations/dms-builder/engine/row-writes.d.ts +2 -1
- package/dist/implementations/dms-builder/engine/row-writes.js +2 -1
- package/dist/implementations/dms-builder/engine/row-writes.js.map +1 -1
- package/dist/implementations/dms-builder/engine/scan.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/scan.js +17 -3
- package/dist/implementations/dms-builder/engine/scan.js.map +1 -1
- package/dist/implementations/dms-builder/engine/source-index.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/source-index.js +16 -0
- package/dist/implementations/dms-builder/engine/source-index.js.map +1 -1
- package/dist/implementations/dms-builder/engine/table-readers.js +2 -2
- package/dist/implementations/dms-builder/engine/table-readers.js.map +1 -1
- package/dist/implementations/dms-builder/engine/theme-assets.js.map +1 -1
- package/dist/implementations/dms-builder/engine/theme-declaration.d.ts +13 -0
- package/dist/implementations/dms-builder/engine/theme-declaration.js +72 -0
- package/dist/implementations/dms-builder/engine/theme-declaration.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-registration.d.ts +18 -0
- package/dist/implementations/dms-builder/engine/theme-registration.js +210 -0
- package/dist/implementations/dms-builder/engine/theme-registration.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-scaffold.js +41 -147
- package/dist/implementations/dms-builder/engine/theme-scaffold.js.map +1 -1
- package/dist/implementations/dms-builder/engine/theme-stylesheet.js +18 -1
- package/dist/implementations/dms-builder/engine/theme-stylesheet.js.map +1 -1
- package/dist/implementations/dms-builder/engine/theme.js +2 -0
- package/dist/implementations/dms-builder/engine/theme.js.map +1 -1
- package/dist/implementations/dms-builder/engine/value.d.ts +0 -1
- package/dist/implementations/dms-builder/engine/value.js +0 -4
- package/dist/implementations/dms-builder/engine/value.js.map +1 -1
- package/dist/implementations/dms-builder/index.d.ts +7 -3
- package/dist/implementations/dms-builder/index.js +6 -0
- package/dist/implementations/dms-builder/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/access.d.ts +3 -0
- package/dist/mcp/access.js +16 -0
- package/dist/mcp/access.js.map +1 -1
- package/dist/mcp/analysis-summary.d.ts +51 -0
- package/dist/mcp/analysis-summary.js +99 -0
- package/dist/mcp/analysis-summary.js.map +1 -0
- package/dist/mcp/bridge.d.ts +1 -0
- package/dist/mcp/bridge.js +15 -3
- package/dist/mcp/bridge.js.map +1 -1
- package/dist/mcp/index.js +2 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/protocol.js +15 -9
- package/dist/mcp/protocol.js.map +1 -1
- package/dist/mcp/redact.d.ts +2 -1
- package/dist/mcp/redact.js.map +1 -1
- package/dist/mcp/route.d.ts +1 -1
- package/dist/mcp/route.js +8 -3
- package/dist/mcp/route.js.map +1 -1
- package/dist/mcp/tool.d.ts +2 -0
- package/dist/mcp/tool.js +1 -0
- package/dist/mcp/tool.js.map +1 -1
- package/dist/mcp/tools/builder-analysis.d.ts +2 -0
- package/dist/mcp/tools/builder-analysis.js +124 -0
- package/dist/mcp/tools/builder-analysis.js.map +1 -0
- package/dist/mcp/tools/builder-connection-access.d.ts +7 -0
- package/dist/mcp/tools/builder-connection-access.js +58 -0
- package/dist/mcp/tools/builder-connection-access.js.map +1 -0
- package/dist/mcp/tools/builder-map-resources.d.ts +1 -0
- package/dist/mcp/tools/builder-map-resources.js +179 -0
- package/dist/mcp/tools/builder-map-resources.js.map +1 -0
- package/dist/mcp/tools/builder-pages.js +28 -7
- package/dist/mcp/tools/builder-pages.js.map +1 -1
- package/dist/mcp/tools/builder-project.js +37 -231
- package/dist/mcp/tools/builder-project.js.map +1 -1
- package/dist/mcp/tools/builder-resources.d.ts +18 -0
- package/dist/mcp/tools/builder-resources.js +73 -4
- package/dist/mcp/tools/builder-resources.js.map +1 -1
- package/dist/mcp/tools/builder-theme.js +4 -4
- package/dist/mcp/tools/builder-theme.js.map +1 -1
- package/dist/mcp/tools/database.js +1 -1
- package/dist/mcp/tools/database.js.map +1 -1
- package/dist/mcp/tools/json-patch.d.ts +10 -0
- package/dist/mcp/tools/json-patch.js +35 -0
- package/dist/mcp/tools/json-patch.js.map +1 -1
- package/dist/mcp/tools/mockup-annotations.js +3 -2
- package/dist/mcp/tools/mockup-annotations.js.map +1 -1
- package/dist/mcp/tools/mockup-apply-to-page.js +1 -1
- package/dist/mcp/tools/mockup-apply-to-page.js.map +1 -1
- package/dist/mcp/tools/mockup-from-page.js +7 -4
- package/dist/mcp/tools/mockup-from-page.js.map +1 -1
- package/dist/mcp/tools/mockup-patch-spec.js +10 -3
- package/dist/mcp/tools/mockup-patch-spec.js.map +1 -1
- package/dist/mcp/tools/mockup-read-spec.d.ts +1 -0
- package/dist/mcp/tools/mockup-read-spec.js +45 -0
- package/dist/mcp/tools/mockup-read-spec.js.map +1 -0
- package/dist/mcp/tools/mockup-resolve-annotation.js +8 -9
- package/dist/mcp/tools/mockup-resolve-annotation.js.map +1 -1
- package/dist/mcp/tools/mockup-support.d.ts +4 -2
- package/dist/mcp/tools/mockup-support.js +18 -11
- package/dist/mcp/tools/mockup-support.js.map +1 -1
- package/dist/mcp/tools/mockup-write-spec.js +8 -3
- package/dist/mcp/tools/mockup-write-spec.js.map +1 -1
- package/dist/mcp/tools/mockup.js +2 -0
- package/dist/mcp/tools/mockup.js.map +1 -1
- package/dist/mcp/tools/preview-blocks.js +3 -6
- package/dist/mcp/tools/preview-blocks.js.map +1 -1
- package/dist/mcp/tools/theme-schemas.d.ts +201 -0
- package/dist/{branding → mcp/tools}/theme-schemas.js +1 -5
- package/dist/mcp/tools/theme-schemas.js.map +1 -0
- package/dist/mockup/anchor.d.ts +33 -0
- package/dist/mockup/anchor.js +19 -4
- package/dist/mockup/anchor.js.map +1 -1
- package/dist/mockup/annotations-file.d.ts +105 -0
- package/dist/mockup/annotations-file.js +96 -0
- package/dist/mockup/annotations-file.js.map +1 -0
- package/dist/mockup/annotations.d.ts +133 -55
- package/dist/mockup/annotations.js +169 -97
- package/dist/mockup/annotations.js.map +1 -1
- package/dist/mockup/apply-notes.d.ts +1 -1
- package/dist/mockup/apply-notes.js +1 -0
- package/dist/mockup/apply-notes.js.map +1 -1
- package/dist/mockup/apply-plan.d.ts +2 -0
- package/dist/mockup/apply-plan.js +25 -3
- package/dist/mockup/apply-plan.js.map +1 -1
- package/dist/mockup/apply-to-page.js +3 -3
- package/dist/mockup/apply-to-page.js.map +1 -1
- package/dist/mockup/block-catalog.d.ts +8 -0
- package/dist/mockup/block-catalog.js +32 -0
- package/dist/mockup/block-catalog.js.map +1 -0
- package/dist/mockup/compile.d.ts +6 -2
- package/dist/mockup/compile.js +138 -46
- package/dist/mockup/compile.js.map +1 -1
- package/dist/mockup/controller-blocks.d.ts +2 -0
- package/dist/mockup/controller-blocks.js +162 -41
- package/dist/mockup/controller-blocks.js.map +1 -1
- package/dist/mockup/data-access.d.ts +3 -0
- package/dist/mockup/data-access.js +110 -0
- package/dist/mockup/data-access.js.map +1 -0
- package/dist/mockup/display-values.d.ts +13 -0
- package/dist/mockup/display-values.js +46 -0
- package/dist/mockup/display-values.js.map +1 -0
- package/dist/mockup/example.d.ts +2 -0
- package/dist/mockup/example.js +19 -0
- package/dist/mockup/example.js.map +1 -0
- package/dist/mockup/fixture-answers.d.ts +16 -0
- package/dist/mockup/fixture-answers.js +295 -0
- package/dist/mockup/fixture-answers.js.map +1 -0
- package/dist/mockup/fixtures.d.ts +40 -7
- package/dist/mockup/fixtures.js +85 -19
- package/dist/mockup/fixtures.js.map +1 -1
- package/dist/mockup/form-fields.d.ts +1 -0
- package/dist/mockup/form-fields.js +28 -0
- package/dist/mockup/form-fields.js.map +1 -1
- package/dist/mockup/form-page-modes.d.ts +8 -0
- package/dist/mockup/form-page-modes.js +67 -0
- package/dist/mockup/form-page-modes.js.map +1 -0
- package/dist/mockup/from-page.d.ts +1 -0
- package/dist/mockup/from-page.js +10 -4
- package/dist/mockup/from-page.js.map +1 -1
- package/dist/mockup/generate.d.ts +86 -0
- package/dist/mockup/generate.js +281 -0
- package/dist/mockup/generate.js.map +1 -0
- package/dist/mockup/history-routes.d.ts +34 -0
- package/dist/mockup/history-routes.js +265 -0
- package/dist/mockup/history-routes.js.map +1 -0
- package/dist/mockup/history.d.ts +62 -0
- package/dist/mockup/history.js +248 -0
- package/dist/mockup/history.js.map +1 -0
- package/dist/mockup/index.d.ts +6 -0
- package/dist/mockup/index.js +17 -0
- package/dist/mockup/index.js.map +1 -1
- package/dist/mockup/json-schema-sketch.d.ts +5 -0
- package/dist/mockup/json-schema-sketch.js +93 -0
- package/dist/mockup/json-schema-sketch.js.map +1 -0
- package/dist/mockup/json-schema.js +158 -7
- package/dist/mockup/json-schema.js.map +1 -1
- package/dist/mockup/live-page.d.ts +4 -2
- package/dist/mockup/live-page.js +105 -3
- package/dist/mockup/live-page.js.map +1 -1
- package/dist/mockup/manage-routes.d.ts +17 -0
- package/dist/mockup/manage-routes.js +120 -0
- package/dist/mockup/manage-routes.js.map +1 -0
- package/dist/mockup/manage.d.ts +20 -0
- package/dist/mockup/manage.js +108 -0
- package/dist/mockup/manage.js.map +1 -0
- package/dist/mockup/model.d.ts +589 -12
- package/dist/mockup/model.js +196 -30
- package/dist/mockup/model.js.map +1 -1
- package/dist/mockup/page-links.d.ts +20 -0
- package/dist/mockup/page-links.js +68 -0
- package/dist/mockup/page-links.js.map +1 -0
- package/dist/mockup/page-placement.d.ts +8 -0
- package/dist/mockup/page-placement.js +68 -0
- package/dist/mockup/page-placement.js.map +1 -0
- package/dist/mockup/page.js +5 -3
- package/dist/mockup/page.js.map +1 -1
- package/dist/mockup/route-patterns.d.ts +6 -0
- package/dist/mockup/route-patterns.js +16 -0
- package/dist/mockup/route-patterns.js.map +1 -0
- package/dist/mockup/routes.d.ts +2 -0
- package/dist/mockup/routes.js +200 -14
- package/dist/mockup/routes.js.map +1 -1
- package/dist/mockup/row-filters.d.ts +8 -0
- package/dist/mockup/row-filters.js +107 -0
- package/dist/mockup/row-filters.js.map +1 -0
- package/dist/mockup/sample-routes.js +8 -2
- package/dist/mockup/sample-routes.js.map +1 -1
- package/dist/mockup/sample-rows.d.ts +1 -1
- package/dist/mockup/sample-rows.js +5 -4
- package/dist/mockup/sample-rows.js.map +1 -1
- package/dist/mockup/sidebar.d.ts +2 -0
- package/dist/mockup/sidebar.js +34 -0
- package/dist/mockup/sidebar.js.map +1 -0
- package/dist/mockup/sketch-allowlist.d.ts +2 -1
- package/dist/mockup/sketch-allowlist.js +1 -1
- package/dist/mockup/sketch-allowlist.js.map +1 -1
- package/dist/mockup/sketch-html.d.ts +2 -1
- package/dist/mockup/sketch-html.js +74 -24
- package/dist/mockup/sketch-html.js.map +1 -1
- package/dist/mockup/sketch-limits.d.ts +4 -0
- package/dist/mockup/sketch-limits.js +5 -1
- package/dist/mockup/sketch-limits.js.map +1 -1
- package/dist/mockup/sketch.d.ts +15 -8
- package/dist/mockup/sketch.js +78 -33
- package/dist/mockup/sketch.js.map +1 -1
- package/dist/mockup/source-routes.js +1 -1
- package/dist/mockup/source-routes.js.map +1 -1
- package/dist/mockup/source.d.ts +6 -3
- package/dist/mockup/source.js +19 -23
- package/dist/mockup/source.js.map +1 -1
- package/dist/mockup/store.d.ts +15 -1
- package/dist/mockup/store.js +110 -2
- package/dist/mockup/store.js.map +1 -1
- package/dist/mockup/table-archive.d.ts +7 -0
- package/dist/mockup/table-archive.js +58 -0
- package/dist/mockup/table-archive.js.map +1 -0
- package/dist/mockup/table-columns.d.ts +57 -0
- package/dist/mockup/table-columns.js +136 -0
- package/dist/mockup/table-columns.js.map +1 -0
- package/dist/mockup/table-forms.d.ts +22 -0
- package/dist/mockup/table-forms.js +192 -0
- package/dist/mockup/table-forms.js.map +1 -0
- package/dist/mockup/table-options.d.ts +461 -0
- package/dist/mockup/table-options.js +231 -0
- package/dist/mockup/table-options.js.map +1 -0
- package/dist/mockup/table-title.d.ts +3 -0
- package/dist/mockup/table-title.js +28 -0
- package/dist/mockup/table-title.js.map +1 -0
- package/dist/mockup/validate.js +11 -0
- package/dist/mockup/validate.js.map +1 -1
- package/dist/pages/public/preview/index.d.ts +4 -0
- package/dist/pages/public/preview/index.js +5 -1
- package/dist/pages/public/preview/index.js.map +1 -1
- package/dist/pages/settings/users/appearance.d.ts +0 -1
- package/dist/pages/settings/users/appearance.js +0 -6
- package/dist/pages/settings/users/appearance.js.map +1 -1
- package/frontend-vue/dms.frontend.ts +3 -17
- package/frontend-vue/eslint-globals.generated.mjs +8 -7
- package/frontend-vue/layers/dms-core/shared/types/app-config.ts +0 -12
- package/frontend-vue/layers/dms-layout/app/app.config.ts +0 -1
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardFrame.vue +5 -16
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardHeader.vue +1 -4
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardSidePanel.vue +8 -6
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardSidebar.vue +91 -12
- package/frontend-vue/layers/dms-layout/app/build/components/layout/MockupSidebarMenu.vue +242 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/PageHeaderActionBar.vue +2 -9
- package/frontend-vue/layers/dms-layout/app/build/components/layout/PreviewPageHeader.vue +45 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/PreviewTopBar.vue +135 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/dashboardNavbar.ts +6 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/headerButton.ts +26 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/mockupMenu.ts +138 -0
- package/frontend-vue/layers/dms-layout/app/build/mockups/created-mockups.ts +112 -0
- package/frontend-vue/layers/dms-layout/app/build/mockups/created-toast.ts +69 -0
- package/frontend-vue/layers/dms-layout/app/build/mockups/header-action.ts +1 -1
- package/frontend-vue/layers/dms-layout/app/components/navigation/NavigationMenu.vue +16 -0
- package/frontend-vue/layers/dms-layout/app/custom-layouts/MockupLayout.vue +35 -0
- package/frontend-vue/layers/dms-layout/app/custom-layouts/PreviewLayout.vue +26 -28
- package/frontend-vue/layers/dms-layout/app/entries/components/layout/MockupSidebarMenu.ts +2 -0
- package/frontend-vue/layers/dms-layout/app/entries/components/layout/PreviewPageHeader.ts +2 -0
- package/frontend-vue/layers/dms-layout/app/entries/components/layout/PreviewTopBar.ts +2 -0
- package/frontend-vue/layers/dms-layout/app/entries/components/layout/mockupMenu.ts +1 -0
- package/frontend-vue/layers/dms-layout/app/entries/mockups/created-toast.ts +2 -0
- package/frontend-vue/layers/dms-layout/app/error.vue +8 -4
- package/frontend-vue/layers/dms-layout/i18n/locales/layout-en-GB.json +4 -192
- package/frontend-vue/layers/dms-layout/i18n/locales/layout-fr-FR.json +4 -192
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/BlockPreviewSketch.vue +13 -3
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupBlockCatalog.vue +2 -1
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupCanvasChrome.vue +66 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupEditOverlay.vue +91 -53
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupEditPanel.vue +12 -3
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupHeaderActions.vue +143 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupHistoryPanel.vue +124 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupIconInput.vue +18 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupInspector.vue +43 -22
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupModeBanner.vue +33 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverview.vue +564 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewSlot.vue +110 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPageInspector.vue +77 -2
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPagesList.vue +349 -76
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPinCard.vue +251 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPinLayer.vue +188 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPinTray.vue +61 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPlacementChip.vue +36 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupReplaceModal.vue +33 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupResolveBar.vue +49 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupSectionDeleteModal.vue +48 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupShortcutTip.vue +23 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupShortcutsModal.vue +69 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupSketchStatePicker.vue +51 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupStatusBanners.vue +39 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTitle.vue +90 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTopBar.vue +198 -70
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupVersionBanner.vue +87 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkbench.vue +326 -406
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewNavigation.ts +18 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockInspector.ts +41 -8
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockPreviewEmbed.ts +84 -13
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupAssistantRuns.ts +71 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupDocument.ts +75 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupEditing.ts +153 -38
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupFrameSize.ts +65 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupGridLayout.ts +43 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupHandoff.ts +67 -28
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupOverview.ts +431 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPageFrame.ts +142 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPanels.ts +59 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPins.ts +468 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupRealData.ts +44 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupRoutePage.ts +52 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSectionEditing.ts +284 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSectionWrites.ts +80 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSession.ts +21 -10
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupShortcutKeys.ts +27 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSketchStates.ts +48 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupToolModes.ts +67 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupVersions.ts +168 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerHandoff.ts +114 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerPages.ts +70 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerShortcuts.ts +131 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewFrame.ts +27 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewLinks.ts +114 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/layout/sidePanelState.ts +25 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/layout/useSideRailWidth.ts +53 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableRowActionContainers.ts +3 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewBindings.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewNavigation.ts +11 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/types.ts +8 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableRows.ts +14 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableViewConfig.ts +3 -1
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCard.vue +189 -0
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCards.vue +129 -113
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupRenameModal.vue +116 -0
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupThumbnail.vue +32 -30
- package/frontend-vue/layers/dms-ui/app/build/mockups/manage.ts +56 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreview.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewMessages.ts +250 -11
- package/frontend-vue/layers/dms-ui/app/build/utils/mockup.ts +191 -71
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupCard.ts +60 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupCatalog.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupEdit.ts +55 -44
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupFrame.ts +180 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupLinks.ts +66 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupOverview.ts +378 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupOverviewArrows.ts +160 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupPageTree.ts +89 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupPins.ts +152 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupRealData.ts +36 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupSectionEdits.ts +57 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupSections.ts +264 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupShortcuts.ts +226 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupSketchStates.ts +91 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupSpec.ts +89 -6
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupVersions.ts +117 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/sketch.ts +56 -5
- package/frontend-vue/layers/dms-ui/app/components/block-preview/BlockPreview.vue +17 -0
- package/frontend-vue/layers/dms-ui/app/components/block-preview/MockupViewer.vue +16 -16
- package/frontend-vue/layers/dms-ui/app/components/chart/ChartCard.vue +7 -2
- package/frontend-vue/layers/dms-ui/app/components/table-view/KanbanBoard.vue +7 -1
- package/frontend-vue/layers/dms-ui/app/components/table-view/TableView.vue +3 -2
- package/frontend-vue/layers/dms-ui/app/composables/chart/types.ts +2 -1
- package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupIconInput.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupSectionEditing.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupVersions.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupCard.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupFrame.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupLinks.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupOverview.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupOverviewArrows.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupPageTree.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupRealData.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupSections.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupShortcuts.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupVersions.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/utils/mockupAssistant.ts +62 -8
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-en-GB.json +131 -18
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-fr-FR.json +131 -18
- package/package.json +5 -5
- package/dist/branding/index.d.ts +0 -2
- package/dist/branding/index.js +0 -19
- package/dist/branding/index.js.map +0 -1
- package/dist/branding/page.d.ts +0 -10
- package/dist/branding/page.js +0 -22
- package/dist/branding/page.js.map +0 -1
- package/dist/branding/register.d.ts +0 -1
- package/dist/branding/register.js +0 -10
- package/dist/branding/register.js.map +0 -1
- package/dist/branding/routes.d.ts +0 -18
- package/dist/branding/routes.js +0 -78
- package/dist/branding/routes.js.map +0 -1
- package/dist/branding/theme-schemas.d.ts +0 -484
- package/dist/branding/theme-schemas.js.map +0 -1
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingColorPair.vue +0 -80
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingDeveloperPanel.vue +0 -266
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingEditor.vue +0 -316
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingLogoTile.vue +0 -67
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingPaletteSwatches.vue +0 -63
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingPreview.vue +0 -138
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingSimplePanel.vue +0 -171
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingValueInput.vue +0 -36
- package/frontend-vue/layers/dms-layout/app/build/branding/api.ts +0 -55
- package/frontend-vue/layers/dms-layout/app/build/branding/catalog.ts +0 -209
- package/frontend-vue/layers/dms-layout/app/build/branding/color-input.ts +0 -35
- package/frontend-vue/layers/dms-layout/app/build/branding/device-draft.ts +0 -291
- package/frontend-vue/layers/dms-layout/app/build/branding/errors.ts +0 -23
- package/frontend-vue/layers/dms-layout/app/build/branding/fonts.ts +0 -106
- package/frontend-vue/layers/dms-layout/app/build/branding/header-action.ts +0 -19
- package/frontend-vue/layers/dms-layout/app/build/branding/logo-tiles.ts +0 -73
- package/frontend-vue/layers/dms-layout/app/build/branding/logos.ts +0 -178
- package/frontend-vue/layers/dms-layout/app/build/branding/model.ts +0 -395
- package/frontend-vue/layers/dms-layout/app/build/branding/preview-style.ts +0 -184
- package/frontend-vue/layers/dms-layout/app/build/branding/raster.ts +0 -100
- package/frontend-vue/layers/dms-layout/app/build/branding/theme-types.ts +0 -105
- package/frontend-vue/layers/dms-layout/app/build/branding/useBrandingEditor.ts +0 -284
- package/frontend-vue/layers/dms-layout/app/build/branding/values.ts +0 -104
- package/frontend-vue/layers/dms-layout/app/build/components/layout/PreviewSidebar.vue +0 -62
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/AppearanceDeveloper.vue +0 -50
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/CssVariablesList.vue +0 -322
- package/frontend-vue/layers/dms-layout/app/build/mockup/header-action.ts +0 -125
- package/frontend-vue/layers/dms-layout/app/entries/branding/BrandingEditor.ts +0 -1
- package/frontend-vue/layers/dms-layout/app/entries/branding/header-action.ts +0 -2
- package/frontend-vue/layers/dms-layout/app/entries/branding/model.ts +0 -5
- package/frontend-vue/layers/dms-layout/app/entries/mockup/header-action.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupAnnotations.vue +0 -93
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupCommentPanel.vue +0 -85
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupComments.ts +0 -95
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
type SidePanelWidthBounds,
|
|
8
8
|
useAppSidePanels,
|
|
9
9
|
} from "../../../composables/useAppSidePanels";
|
|
10
|
+
import { SIDE_RAIL_WIDTH_VARIABLE, useSideRailWidth } from "./useSideRailWidth";
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Set to the panel's width in px by the panel itself and by the dashboard
|
|
@@ -191,3 +192,27 @@ export function useActiveSidePanel(): ActiveSidePanel {
|
|
|
191
192
|
});
|
|
192
193
|
return { panel, bounds, width };
|
|
193
194
|
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* The attributes of a surface that keeps room free on its right for what
|
|
198
|
+
* the DMS draws there: the open side panel's width, from `lg`, and the width
|
|
199
|
+
* of a module's folded rail, at any size. Both reach `roomClass` as the
|
|
200
|
+
* variables {@link SIDE_PANEL_WIDTH_VARIABLE} and {@link SIDE_RAIL_WIDTH_VARIABLE}.
|
|
201
|
+
* It is empty while there is neither, so the surface keeps its own layout.
|
|
202
|
+
*
|
|
203
|
+
* @internal
|
|
204
|
+
*/
|
|
205
|
+
export function useSidePanelRoom(
|
|
206
|
+
roomClass: string,
|
|
207
|
+
): ComputedRef<{ class?: string; style?: Record<string, string> }> {
|
|
208
|
+
const { panel, width } = useActiveSidePanel();
|
|
209
|
+
const railWidth = useSideRailWidth();
|
|
210
|
+
return computed(() => {
|
|
211
|
+
const hasRail = railWidth.value > 0;
|
|
212
|
+
if (!panel.value && !hasRail) return {};
|
|
213
|
+
const style: Record<string, string> = {};
|
|
214
|
+
if (panel.value) Object.assign(style, sidePanelWidthStyle(width.value));
|
|
215
|
+
if (hasRail) style[SIDE_RAIL_WIDTH_VARIABLE] = `${railWidth.value}px`;
|
|
216
|
+
return { class: roomClass, style };
|
|
217
|
+
});
|
|
218
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { useMutationObserver, useResizeObserver } from "@vueuse/core";
|
|
2
|
+
import type { Ref } from "vue";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A bar fixed on the right edge of the window that a module draws on the
|
|
6
|
+
* page, outside the side panel host, while its panel is folded. The assistant's
|
|
7
|
+
* fold bar is one: `data-dms-side-rail` is the marker a module puts on its bar,
|
|
8
|
+
* and `.dms-assistant-fold` is the assistant's own class, which carries no
|
|
9
|
+
* marker yet.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export const SIDE_RAIL_SELECTOR = "[data-dms-side-rail], .dms-assistant-fold";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Set to the rail's width in px on a surface that keeps room free for it, as
|
|
17
|
+
* {@link SIDE_PANEL_WIDTH_VARIABLE} does for the open panel.
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
export const SIDE_RAIL_WIDTH_VARIABLE = "--dms-side-rail-width";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The width in px of the rail on the right edge, 0 while none is drawn. A
|
|
25
|
+
* module mounts its rail on its own, after the page, so the page watches the
|
|
26
|
+
* document for it and for its size. Client only: the server renders no rail.
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export function useSideRailWidth(): Readonly<Ref<number>> {
|
|
31
|
+
const width = ref(0);
|
|
32
|
+
const body = shallowRef<HTMLElement | null>(null);
|
|
33
|
+
const rail = shallowRef<HTMLElement | null>(null);
|
|
34
|
+
|
|
35
|
+
function findRail(): void {
|
|
36
|
+
rail.value = document.querySelector<HTMLElement>(SIDE_RAIL_SELECTOR);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function measure(): void {
|
|
40
|
+
width.value = rail.value
|
|
41
|
+
? Math.round(rail.value.getBoundingClientRect().width)
|
|
42
|
+
: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
onMounted(() => {
|
|
46
|
+
body.value = document.body;
|
|
47
|
+
findRail();
|
|
48
|
+
});
|
|
49
|
+
useMutationObserver(body, findRail, { childList: true, subtree: true });
|
|
50
|
+
useResizeObserver(rail, measure);
|
|
51
|
+
watch(rail, measure);
|
|
52
|
+
return width;
|
|
53
|
+
}
|
package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableRowActionContainers.ts
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
TableRowAction,
|
|
8
8
|
FormContainerType,
|
|
9
9
|
DEFAULT_FORM_CONTAINER_TYPE,
|
|
10
|
+
DEFAULT_FORM_DRAWER_DIRECTION,
|
|
10
11
|
} from "./types";
|
|
11
12
|
import DmsFormBlock from "../../../components/form/FormBlock.vue";
|
|
12
13
|
import { get } from "@nuxt/ui/runtime/utils/index.js";
|
|
@@ -136,6 +137,8 @@ const createContainerOpeners = (
|
|
|
136
137
|
title,
|
|
137
138
|
description,
|
|
138
139
|
containerId,
|
|
140
|
+
direction:
|
|
141
|
+
config.formContainer?.direction ?? DEFAULT_FORM_DRAWER_DIRECTION,
|
|
139
142
|
component: DmsFormBlock,
|
|
140
143
|
componentOptions: {
|
|
141
144
|
...processedOptions,
|
|
@@ -51,6 +51,7 @@ export function tableViewBindings<T extends Data>(scope: TableViewScope<T>) {
|
|
|
51
51
|
listLoadError: scope.listState.listLoadError,
|
|
52
52
|
listNotFound: scope.listState.listNotFound,
|
|
53
53
|
shownResults: scope.listState.shownResults,
|
|
54
|
+
displayedRows: scope.rowNavigation.displayedRows,
|
|
54
55
|
activeDisplayBlockedByError:
|
|
55
56
|
scope.listPagination.activeDisplayBlockedByError,
|
|
56
57
|
viewItems: scope.countsData.viewItems,
|
|
@@ -24,15 +24,21 @@ export function useTableViewRowNavigation<T extends Data>(
|
|
|
24
24
|
const ADJACENT_ROWS_TIMEOUT_MS = 15_000;
|
|
25
25
|
const listsServerPages = computed(() => !isActiveDisplaySelfManaged.value);
|
|
26
26
|
|
|
27
|
-
const selfManagedRows = shallowRef<Data[]>(
|
|
27
|
+
const selfManagedRows = shallowRef<Data[] | undefined>(undefined);
|
|
28
28
|
const setSelfManagedRows = (rows: T[]) => {
|
|
29
29
|
selfManagedRows.value = rows;
|
|
30
30
|
};
|
|
31
31
|
watch(activeDisplayId, () => {
|
|
32
|
-
selfManagedRows.value =
|
|
32
|
+
selfManagedRows.value = undefined;
|
|
33
33
|
});
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
/**
|
|
35
|
+
* The rows the active display shows: the list's page, or the rows a
|
|
36
|
+
* self-managed display (the board) reported, undefined until it reports.
|
|
37
|
+
*/
|
|
38
|
+
const displayedRows = computed((): Data[] | undefined =>
|
|
39
|
+
listsServerPages.value ? (shownResults.value ?? []) : selfManagedRows.value,
|
|
40
|
+
);
|
|
41
|
+
const navigableRows = (): Data[] => displayedRows.value ?? [];
|
|
36
42
|
const loadedRowsOffset = () => {
|
|
37
43
|
if (isAccumulating || !listsServerPages.value) return 0;
|
|
38
44
|
const { pageIndex, pageSize } = paginationState.value;
|
|
@@ -70,6 +76,7 @@ export function useTableViewRowNavigation<T extends Data>(
|
|
|
70
76
|
};
|
|
71
77
|
return {
|
|
72
78
|
listsServerPages,
|
|
79
|
+
displayedRows,
|
|
73
80
|
navigableRows,
|
|
74
81
|
loadedRowsOffset,
|
|
75
82
|
loadAdjacentRows,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { DrawerDirection } from "../../../composables/containers/types";
|
|
2
|
+
|
|
1
3
|
export enum TableRowAction {
|
|
2
4
|
view = "view",
|
|
3
5
|
edit = "edit",
|
|
@@ -12,3 +14,9 @@ export enum FormContainerType {
|
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export const DEFAULT_FORM_CONTAINER_TYPE = FormContainerType.page;
|
|
17
|
+
|
|
18
|
+
/** The edges a table view's `drawer` form slides in from. */
|
|
19
|
+
export type FormDrawerDirection = Extract<DrawerDirection, "bottom" | "right">;
|
|
20
|
+
|
|
21
|
+
/** The edge a `drawer` form slides in from when its container names none. */
|
|
22
|
+
export const DEFAULT_FORM_DRAWER_DIRECTION: FormDrawerDirection = "bottom";
|
|
@@ -103,6 +103,15 @@ function packCountQueries(
|
|
|
103
103
|
|
|
104
104
|
type SourceCapabilities = TableViewSourceConfig["capabilities"];
|
|
105
105
|
|
|
106
|
+
/** The archive toggle's side of the rows, `true` for the archived ones. */
|
|
107
|
+
const SHOW_ARCHIVED_QUERY_KEY = "showArchived";
|
|
108
|
+
|
|
109
|
+
/** The query keys a source route receives whatever its capabilities. */
|
|
110
|
+
const ALWAYS_SENT_QUERY_KEYS: ReadonlySet<string> = new Set([
|
|
111
|
+
LIVE_HELD_AT_QUERY_KEY,
|
|
112
|
+
SHOW_ARCHIVED_QUERY_KEY,
|
|
113
|
+
]);
|
|
114
|
+
|
|
106
115
|
const QUERY_KEY_CAPABILITIES: Array<
|
|
107
116
|
[matches: (key: string) => boolean, capability: keyof SourceCapabilities]
|
|
108
117
|
> = [
|
|
@@ -114,8 +123,10 @@ const QUERY_KEY_CAPABILITIES: Array<
|
|
|
114
123
|
|
|
115
124
|
/**
|
|
116
125
|
* The part of the list query a source route handles, by its capabilities: a
|
|
117
|
-
* key no capability names
|
|
118
|
-
*
|
|
126
|
+
* key no capability names never reaches it. The live hold's bound always
|
|
127
|
+
* does, and so does the archive toggle's `showArchived`, which only a table
|
|
128
|
+
* in archive mode sends, as a mockup's table is: a route not reading them
|
|
129
|
+
* lists as usual.
|
|
119
130
|
*/
|
|
120
131
|
export function sourceRouteQuery(
|
|
121
132
|
query: Query,
|
|
@@ -123,7 +134,7 @@ export function sourceRouteQuery(
|
|
|
123
134
|
): Query {
|
|
124
135
|
return Object.fromEntries(
|
|
125
136
|
Object.entries(query).filter(([key]) => {
|
|
126
|
-
if (key
|
|
137
|
+
if (ALWAYS_SENT_QUERY_KEYS.has(key)) return true;
|
|
127
138
|
const entry = QUERY_KEY_CAPABILITIES.find(([matches]) => matches(key));
|
|
128
139
|
return !!entry && !!capabilities[entry[1]];
|
|
129
140
|
}),
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
KANBAN_DISPLAY_ID,
|
|
9
9
|
GROUPED_DISPLAY_ID,
|
|
10
10
|
} from "../../../composables/table-view/types";
|
|
11
|
-
import type { FormContainerType } from "./types";
|
|
11
|
+
import type { FormContainerType, FormDrawerDirection } from "./types";
|
|
12
12
|
import { buildInitialColumnVisibility } from "./utils/columnVisibility";
|
|
13
13
|
import type { TableViewFormPages } from "./utils/formTexts";
|
|
14
14
|
|
|
@@ -44,6 +44,8 @@ const withBuiltinDefaults = (
|
|
|
44
44
|
export interface FormContainer {
|
|
45
45
|
type: FormContainerType;
|
|
46
46
|
size?: ModalSize;
|
|
47
|
+
/** The edge a `drawer` slides in from; `bottom` without one. */
|
|
48
|
+
direction?: FormDrawerDirection;
|
|
47
49
|
/** Titles and descriptions of the add, edit and details forms. */
|
|
48
50
|
pages?: TableViewFormPages;
|
|
49
51
|
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { formatRelativeTime } from "#dms-core/app/utils/formatter";
|
|
4
|
+
import type { MockupSource, MockupSummary } from "../utils/mockup";
|
|
5
|
+
import { badgeOf, stageOf } from "../utils/mockupCard";
|
|
6
|
+
import MockupThumbnail from "./MockupThumbnail.vue";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* One mockup of the Mockups page: its first page drawn full, its title and
|
|
10
|
+
* stage, when it last changed, where it came from, its open comments, and a
|
|
11
|
+
* menu to open, rename, copy or delete it. The whole card opens the viewer,
|
|
12
|
+
* and a built mockup lists the real pages it made, each a link of its own.
|
|
13
|
+
*/
|
|
14
|
+
const props = defineProps<{
|
|
15
|
+
mockup: MockupSummary;
|
|
16
|
+
/** The path of the page being turned back into its mockup, while it is. */
|
|
17
|
+
resyncing?: string;
|
|
18
|
+
}>();
|
|
19
|
+
|
|
20
|
+
const emit = defineEmits<{
|
|
21
|
+
open: [];
|
|
22
|
+
rename: [];
|
|
23
|
+
duplicate: [];
|
|
24
|
+
delete: [];
|
|
25
|
+
resync: [path: string];
|
|
26
|
+
}>();
|
|
27
|
+
|
|
28
|
+
const VIEWER_PATH = "/mockup";
|
|
29
|
+
const META_SEPARATOR = " · ";
|
|
30
|
+
const SOURCE_KEYS: Record<MockupSource, string> = {
|
|
31
|
+
chat: "dms.mockup.source_chat",
|
|
32
|
+
"claude-code": "dms.mockup.source_claude_code",
|
|
33
|
+
codex: "dms.mockup.source_codex",
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const { t, locale } = useI18n();
|
|
37
|
+
|
|
38
|
+
const badge = computed(() => badgeOf(stageOf(props.mockup)));
|
|
39
|
+
const label = computed(() => props.mockup.title || props.mockup.name);
|
|
40
|
+
const viewerLink = computed(
|
|
41
|
+
() => `${VIEWER_PATH}?name=${encodeURIComponent(props.mockup.name)}`,
|
|
42
|
+
);
|
|
43
|
+
const updated = computed(() =>
|
|
44
|
+
t("dms.mockup.card_updated", {
|
|
45
|
+
time: formatRelativeTime(props.mockup.updatedAt, t, locale.value),
|
|
46
|
+
}),
|
|
47
|
+
);
|
|
48
|
+
const updatedExact = computed(() =>
|
|
49
|
+
new Date(props.mockup.updatedAt).toLocaleString(locale.value),
|
|
50
|
+
);
|
|
51
|
+
const meta = computed(() => {
|
|
52
|
+
const { pages, source } = props.mockup;
|
|
53
|
+
const parts = [t("dms.mockup.card_pages", { count: pages }, pages)];
|
|
54
|
+
if (source) {
|
|
55
|
+
parts.push(
|
|
56
|
+
t("dms.mockup.card_source", { source: t(SOURCE_KEYS[source]) }),
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
return parts.join(META_SEPARATOR);
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
const menu = computed(() => [
|
|
63
|
+
[
|
|
64
|
+
{
|
|
65
|
+
label: t("dms.mockup.card_open"),
|
|
66
|
+
icon: "i-lucide-external-link",
|
|
67
|
+
onSelect: () => emit("open"),
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
[
|
|
71
|
+
{
|
|
72
|
+
label: t("dms.mockup.card_rename"),
|
|
73
|
+
icon: "i-lucide-pencil",
|
|
74
|
+
onSelect: () => emit("rename"),
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
label: t("dms.mockup.card_duplicate"),
|
|
78
|
+
icon: "i-lucide-copy",
|
|
79
|
+
onSelect: () => emit("duplicate"),
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
[
|
|
83
|
+
{
|
|
84
|
+
label: t("dms.mockup.remove"),
|
|
85
|
+
icon: "i-lucide-trash-2",
|
|
86
|
+
color: "error" as const,
|
|
87
|
+
onSelect: () => emit("delete"),
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
]);
|
|
91
|
+
</script>
|
|
92
|
+
|
|
93
|
+
<template>
|
|
94
|
+
<li
|
|
95
|
+
class="bg-default ring-default hover:ring-accented focus-within:ring-primary relative flex flex-col overflow-hidden rounded-lg ring-1 transition-shadow"
|
|
96
|
+
:data-dms-mockup-card="mockup.name"
|
|
97
|
+
>
|
|
98
|
+
<MockupThumbnail :name="mockup.name" />
|
|
99
|
+
<div class="flex flex-1 flex-col gap-2 p-3.5">
|
|
100
|
+
<div class="flex items-start gap-2">
|
|
101
|
+
<h3 class="min-w-0 flex-1 truncate pt-0.5 text-sm font-semibold">
|
|
102
|
+
<DmsLink
|
|
103
|
+
:to="viewerLink"
|
|
104
|
+
class="text-highlighted outline-none after:absolute after:inset-0"
|
|
105
|
+
data-dms-mockup-open
|
|
106
|
+
>
|
|
107
|
+
{{ label }}
|
|
108
|
+
</DmsLink>
|
|
109
|
+
</h3>
|
|
110
|
+
<UDropdownMenu :items="menu" :content="{ align: 'end' }">
|
|
111
|
+
<UButton
|
|
112
|
+
icon="i-lucide-ellipsis"
|
|
113
|
+
color="neutral"
|
|
114
|
+
variant="ghost"
|
|
115
|
+
size="xs"
|
|
116
|
+
class="relative -mt-0.5 -mr-1.5"
|
|
117
|
+
:aria-label="t('dms.mockup.card_actions', { name: label })"
|
|
118
|
+
data-dms-mockup-menu
|
|
119
|
+
/>
|
|
120
|
+
</UDropdownMenu>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="flex flex-wrap items-center gap-1.5">
|
|
123
|
+
<UBadge
|
|
124
|
+
:color="badge.color"
|
|
125
|
+
variant="subtle"
|
|
126
|
+
size="sm"
|
|
127
|
+
data-dms-mockup-status
|
|
128
|
+
>
|
|
129
|
+
{{ t(`dms.mockup.${badge.key}`, badge.params ?? {}) }}
|
|
130
|
+
</UBadge>
|
|
131
|
+
<UBadge
|
|
132
|
+
v-if="mockup.openComments > 0"
|
|
133
|
+
color="primary"
|
|
134
|
+
variant="subtle"
|
|
135
|
+
size="sm"
|
|
136
|
+
icon="i-lucide-message-square"
|
|
137
|
+
data-dms-mockup-comments
|
|
138
|
+
>
|
|
139
|
+
{{
|
|
140
|
+
t(
|
|
141
|
+
"dms.mockup.card_comments",
|
|
142
|
+
{ count: mockup.openComments },
|
|
143
|
+
mockup.openComments,
|
|
144
|
+
)
|
|
145
|
+
}}
|
|
146
|
+
</UBadge>
|
|
147
|
+
</div>
|
|
148
|
+
<p class="text-muted text-xs" data-dms-mockup-meta>{{ meta }}</p>
|
|
149
|
+
<p class="text-dimmed text-xs">
|
|
150
|
+
<time
|
|
151
|
+
:datetime="mockup.updatedAt"
|
|
152
|
+
:title="updatedExact"
|
|
153
|
+
data-dms-mockup-updated
|
|
154
|
+
v-text="updated"
|
|
155
|
+
/>
|
|
156
|
+
</p>
|
|
157
|
+
<ul
|
|
158
|
+
v-if="mockup.status === 'built'"
|
|
159
|
+
class="border-default mt-auto flex flex-wrap gap-x-3 gap-y-1 border-t pt-2.5"
|
|
160
|
+
:aria-label="t('dms.mockup.built_pages')"
|
|
161
|
+
>
|
|
162
|
+
<li
|
|
163
|
+
v-for="page in mockup.builtPages"
|
|
164
|
+
:key="page.path"
|
|
165
|
+
class="flex items-center gap-1"
|
|
166
|
+
>
|
|
167
|
+
<DmsLink
|
|
168
|
+
:to="page.path"
|
|
169
|
+
class="text-primary relative text-xs hover:underline"
|
|
170
|
+
data-dms-mockup-page
|
|
171
|
+
>
|
|
172
|
+
{{ page.title }}
|
|
173
|
+
</DmsLink>
|
|
174
|
+
<button
|
|
175
|
+
v-if="page.changed && page.pageId"
|
|
176
|
+
type="button"
|
|
177
|
+
class="text-warning relative text-xs hover:underline disabled:opacity-50"
|
|
178
|
+
:disabled="resyncing !== undefined"
|
|
179
|
+
:title="t('dms.mockup.resync_hint')"
|
|
180
|
+
data-dms-mockup-resync
|
|
181
|
+
@click="emit('resync', page.path)"
|
|
182
|
+
>
|
|
183
|
+
{{ t("dms.mockup.resync") }}
|
|
184
|
+
</button>
|
|
185
|
+
</li>
|
|
186
|
+
</ul>
|
|
187
|
+
</div>
|
|
188
|
+
</li>
|
|
189
|
+
</template>
|