@antelopejs/dms 0.25.7-next.1111.gaba637e → 0.25.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +73 -0
- package/README.md +2 -2
- package/data/mockup-spec.schema.json +303 -223
- package/dist/implementations/dms-auth/account-emails.js +2 -2
- package/dist/implementations/dms-auth/account-emails.js.map +1 -1
- package/dist/implementations/dms-auth/index.js +1 -2
- package/dist/implementations/dms-auth/index.js.map +1 -1
- package/dist/implementations/dms-base/group-order.d.ts +18 -0
- package/dist/implementations/dms-base/group-order.js +66 -0
- package/dist/implementations/dms-base/group-order.js.map +1 -0
- package/dist/implementations/dms-base/search-route.js +8 -5
- package/dist/implementations/dms-base/search-route.js.map +1 -1
- package/dist/implementations/dms-builder/engine/cell-displays.js +4 -1
- package/dist/implementations/dms-builder/engine/cell-displays.js.map +1 -1
- package/dist/implementations/dms-builder/engine/mapped-displays.js +5 -1
- package/dist/implementations/dms-builder/engine/mapped-displays.js.map +1 -1
- package/dist/implementations/dms-builder/engine/resource-emit.js +4 -0
- package/dist/implementations/dms-builder/engine/resource-emit.js.map +1 -1
- package/dist/implementations/dms-builder/engine/theme-assets.js +5 -17
- package/dist/implementations/dms-builder/engine/theme-assets.js.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/index.d.ts +0 -1
- package/dist/mcp/index.js +0 -5
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/page-verify/index.d.ts +0 -14
- package/dist/mcp/page-verify/index.js +5 -9
- package/dist/mcp/page-verify/index.js.map +1 -1
- package/dist/mcp/page-verify/mockup.d.ts +1 -2
- package/dist/mcp/page-verify/mockup.js +0 -1
- package/dist/mcp/page-verify/mockup.js.map +1 -1
- package/dist/mcp/page-verify/playwright.d.ts +4 -22
- package/dist/mcp/page-verify/playwright.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-patch-spec.js +1 -1
- package/dist/mcp/tools/mockup-patch-spec.js.map +1 -1
- package/dist/mcp/tools/mockup-read-spec.js +3 -10
- package/dist/mcp/tools/mockup-read-spec.js.map +1 -1
- package/dist/mcp/tools/mockup-write-spec.js +1 -1
- package/dist/mcp/tools/mockup-write-spec.js.map +1 -1
- package/dist/mcp/tools/mockup.js +0 -2
- package/dist/mcp/tools/mockup.js.map +1 -1
- package/dist/mcp/tools/page-verify.d.ts +0 -1
- package/dist/mcp/tools/page-verify.js +1 -5
- package/dist/mcp/tools/page-verify.js.map +1 -1
- package/dist/mockup/apply-notes.d.ts +1 -1
- package/dist/mockup/apply-notes.js +2 -1
- package/dist/mockup/apply-notes.js.map +1 -1
- package/dist/mockup/apply-plan.js +3 -0
- package/dist/mockup/apply-plan.js.map +1 -1
- package/dist/mockup/{fixture-routes.d.ts → capture-routes.d.ts} +6 -11
- package/dist/mockup/capture-routes.js +101 -0
- package/dist/mockup/capture-routes.js.map +1 -0
- package/dist/mockup/capture.d.ts +10 -0
- package/dist/mockup/capture.js +64 -0
- package/dist/mockup/capture.js.map +1 -0
- package/dist/mockup/compile.d.ts +1 -6
- package/dist/mockup/compile.js +25 -29
- package/dist/mockup/compile.js.map +1 -1
- package/dist/mockup/controller-blocks.js +62 -10
- package/dist/mockup/controller-blocks.js.map +1 -1
- package/dist/mockup/display-values.js +1 -1
- package/dist/mockup/display-values.js.map +1 -1
- package/dist/mockup/files.d.ts +2 -2
- package/dist/mockup/files.js +2 -2
- package/dist/mockup/files.js.map +1 -1
- package/dist/mockup/fixture-answers.d.ts +0 -1
- package/dist/mockup/fixture-answers.js +1 -1
- package/dist/mockup/fixture-answers.js.map +1 -1
- package/dist/mockup/fixtures.d.ts +3 -1
- package/dist/mockup/fixtures.js +25 -2
- package/dist/mockup/fixtures.js.map +1 -1
- package/dist/mockup/form-fields.js +10 -1
- package/dist/mockup/form-fields.js.map +1 -1
- package/dist/mockup/generate.js +1 -4
- package/dist/mockup/generate.js.map +1 -1
- package/dist/mockup/header-action.d.ts +47 -0
- package/dist/mockup/header-action.js +46 -0
- package/dist/mockup/header-action.js.map +1 -0
- package/dist/mockup/history-routes.js +17 -2
- package/dist/mockup/history-routes.js.map +1 -1
- package/dist/mockup/index.d.ts +0 -3
- package/dist/mockup/index.js +0 -3
- package/dist/mockup/index.js.map +1 -1
- package/dist/mockup/json-schema-header.d.ts +2 -0
- package/dist/mockup/json-schema-header.js +69 -0
- package/dist/mockup/json-schema-header.js.map +1 -0
- package/dist/mockup/json-schema-layout.d.ts +2 -0
- package/dist/mockup/json-schema-layout.js +61 -0
- package/dist/mockup/json-schema-layout.js.map +1 -0
- package/dist/mockup/json-schema.js +24 -23
- package/dist/mockup/json-schema.js.map +1 -1
- package/dist/mockup/manage.js +1 -1
- package/dist/mockup/manage.js.map +1 -1
- package/dist/mockup/model.d.ts +255 -106
- package/dist/mockup/model.js +82 -86
- package/dist/mockup/model.js.map +1 -1
- package/dist/mockup/modules.d.ts +9 -20
- package/dist/mockup/modules.js +22 -146
- package/dist/mockup/modules.js.map +1 -1
- package/dist/mockup/page-links.d.ts +2 -1
- package/dist/mockup/page-links.js +14 -3
- package/dist/mockup/page-links.js.map +1 -1
- package/dist/mockup/refusals.d.ts +1 -4
- package/dist/mockup/refusals.js +1 -15
- package/dist/mockup/refusals.js.map +1 -1
- package/dist/mockup/routes.d.ts +5 -1
- package/dist/mockup/routes.js +171 -9
- package/dist/mockup/routes.js.map +1 -1
- package/dist/mockup/sample-rows.js +4 -0
- package/dist/mockup/sample-rows.js.map +1 -1
- package/dist/mockup/store.d.ts +2 -1
- package/dist/mockup/store.js +22 -16
- package/dist/mockup/store.js.map +1 -1
- package/dist/mockup/{store-summary.js → summary-fields.js} +1 -1
- package/dist/mockup/summary-fields.js.map +1 -0
- package/dist/mockup/table-columns.js +9 -3
- package/dist/mockup/table-columns.js.map +1 -1
- package/dist/mockup/table-options.d.ts +4 -1
- package/dist/mockup/table-options.js +40 -2
- package/dist/mockup/table-options.js.map +1 -1
- package/dist/mockup/table-param-filters.d.ts +52 -0
- package/dist/mockup/table-param-filters.js +83 -0
- package/dist/mockup/table-param-filters.js.map +1 -0
- package/dist/mockup/table-row-actions.d.ts +2 -0
- package/dist/mockup/table-row-actions.js +85 -0
- package/dist/mockup/table-row-actions.js.map +1 -0
- package/dist/mockup/unknown-keys.d.ts +3 -0
- package/dist/mockup/unknown-keys.js +45 -0
- package/dist/mockup/unknown-keys.js.map +1 -0
- package/dist/mockup/validate.d.ts +7 -1
- package/dist/mockup/validate.js +76 -3
- package/dist/mockup/validate.js.map +1 -1
- package/dist/pages/account.d.ts +1 -0
- package/dist/pages/account.js +1 -0
- package/dist/pages/account.js.map +1 -1
- package/dist/pages/settings/overview/account-summary.d.ts +2 -0
- package/dist/pages/settings/overview/account-summary.js +17 -8
- package/dist/pages/settings/overview/account-summary.js.map +1 -1
- package/dist/pages/settings/settings-index.js +2 -1
- package/dist/pages/settings/settings-index.js.map +1 -1
- package/dist/realtime/sse.js +2 -4
- package/dist/realtime/sse.js.map +1 -1
- package/dist/store/internal/frontend/dev-reload.js +7 -1
- package/dist/store/internal/frontend/dev-reload.js.map +1 -1
- package/dist/utils/account-notifications.js +1 -0
- package/dist/utils/account-notifications.js.map +1 -1
- package/dist/utils/email-change-mail.js +2 -2
- package/dist/utils/email-change-mail.js.map +1 -1
- package/dist/utils/email-plain-text.d.ts +1 -0
- package/dist/utils/email-plain-text.js +95 -0
- package/dist/utils/email-plain-text.js.map +1 -0
- package/dist/utils/export-jobs.js +2 -2
- package/dist/utils/export-jobs.js.map +1 -1
- package/dist/utils/html-email.d.ts +8 -0
- package/dist/utils/html-email.js +9 -0
- package/dist/utils/html-email.js.map +1 -0
- package/dist/utils/image-signatures.d.ts +3 -0
- package/dist/utils/image-signatures.js +22 -0
- package/dist/utils/image-signatures.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/sse-keepalive/index.d.ts +3 -0
- package/dist/utils/sse-keepalive/index.js +8 -0
- package/dist/utils/sse-keepalive/index.js.map +1 -0
- package/dist/validation/allowed-keys.d.ts +2 -0
- package/dist/validation/allowed-keys.js +16 -0
- package/dist/validation/allowed-keys.js.map +1 -0
- package/dist/validation/index.d.ts +1 -0
- package/dist/validation/index.js +1 -0
- package/dist/validation/index.js.map +1 -1
- package/frontend-vue/eslint-globals.generated.mjs +2 -2
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/2fa.vue +3 -0
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/backup.vue +3 -0
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/forgot-validation.vue +3 -0
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/forgot.vue +3 -0
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/login.vue +4 -1
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/recover.vue +3 -0
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/signup.vue +17 -1
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/validate.vue +3 -0
- package/frontend-vue/layers/dms-auth/i18n/locales/auth-fr-FR.json +10 -10
- package/frontend-vue/layers/dms-core/app/build/composables/api-error.ts +8 -0
- package/frontend-vue/layers/dms-core/app/build/composables/field-errors.ts +485 -0
- package/frontend-vue/layers/dms-core/app/build/composables/useHydrated.ts +27 -0
- package/frontend-vue/layers/dms-core/app/composables/data-types/useDataType.ts +3 -2
- package/frontend-vue/layers/dms-core/app/composables/translation/useUniqueLocales.ts +23 -5
- package/frontend-vue/layers/dms-core/app/composables/useApiErrorPresenter.ts +1 -0
- package/frontend-vue/layers/dms-core/app/composables/useFieldErrors.ts +12 -443
- package/frontend-vue/layers/dms-core/app/entries/composables/useHydrated.ts +1 -0
- package/frontend-vue/layers/dms-core/i18n/locales/core-en-GB.json +8 -0
- package/frontend-vue/layers/dms-core/i18n/locales/core-fr-FR.json +8 -0
- package/frontend-vue/layers/dms-core/shared/types/app-config.ts +2 -0
- package/frontend-vue/layers/dms-layout/app/app.config.ts +1 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardHeader.vue +7 -4
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardSidebar.vue +14 -29
- package/frontend-vue/layers/dms-layout/app/build/components/layout/EmptyLayoutBrand.vue +49 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/LayoutFooter.vue +2 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/MockupSidebarMenu.vue +6 -21
- package/frontend-vue/layers/dms-layout/app/build/components/layout/PreviewPageHeader.vue +19 -3
- package/frontend-vue/layers/dms-layout/app/build/components/layout/mockupMenu.ts +9 -110
- package/frontend-vue/layers/dms-layout/app/build/components/notification/NotificationPopover.vue +8 -2
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationInboxItem.vue +6 -9
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationMatrixCategory.vue +6 -2
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationMatrixSubject.vue +27 -22
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationPreferencesForm.vue +8 -10
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/notificationDisplay.ts +39 -3
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/shell/SettingsShell.vue +38 -5
- package/frontend-vue/layers/dms-layout/app/build/composables/settings/profile/useProfilePreferences.ts +1 -3
- package/frontend-vue/layers/dms-layout/app/build/utils/dev-reload-stream.ts +23 -4
- package/frontend-vue/layers/dms-layout/app/custom-layouts/EmptyLayout.vue +39 -31
- package/frontend-vue/layers/dms-layout/app/custom-layouts/PreviewLayout.vue +60 -9
- package/frontend-vue/layers/dms-layout/app/entries/components/pages/settings/shell/SettingsShell.ts +2 -0
- package/frontend-vue/layers/dms-layout/app/error.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/middleware/module-routing.global.ts +7 -1
- package/frontend-vue/layers/dms-layout/app/plugins/dms-menu-sync.client.ts +14 -1
- package/frontend-vue/layers/dms-layout/app/utils/breadcrumb.ts +13 -0
- package/frontend-vue/layers/dms-layout/i18n/locales/layout-en-GB.json +1 -1
- package/frontend-vue/layers/dms-layout/i18n/locales/layout-fr-FR.json +5 -5
- package/frontend-vue/layers/dms-onboarding/app/build/components/onboarding/steps/StepPlatform.vue +3 -0
- package/frontend-vue/layers/dms-onboarding/app/components/onboarding/steps/StepRegister.vue +3 -1
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/BlockPreviewSketch.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupHeaderActions.vue +1 -4
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupInspector.vue +2 -1
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupIssues.vue +22 -1
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupModules.vue +6 -11
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverview.vue +125 -182
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewArrows.vue +110 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewFrameImage.vue +75 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewSlot.vue +114 -12
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewZoom.vue +67 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPinLayer.vue +10 -4
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTopBar.vue +8 -76
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkbench.vue +9 -65
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/ExpandedRowDetail.vue +26 -6
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewCapture.ts +247 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewCaptureAssets.ts +181 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewNavigation.ts +8 -8
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewRaster.ts +45 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockPreviewEmbed.ts +46 -6
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupOverview.ts +109 -35
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPageFrame.ts +5 -18
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupRoutePage.ts +4 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerPages.ts +3 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerShortcuts.ts +0 -6
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useOverviewCaptures.ts +137 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewFrame.ts +68 -13
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewLinks.ts +17 -7
- package/frontend-vue/layers/dms-ui/app/build/composables/confirm/fetchedConfirmDialog.ts +6 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/defaultDisplayComponents.ts +4 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/defaultPrimitiveTypes.ts +38 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/registerFieldTypes.ts +69 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/useColumnValueRenderer.ts +20 -7
- package/frontend-vue/layers/dms-ui/app/build/composables/form/keyValueRows.ts +36 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/form/useInstantForm.ts +4 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewGrouping.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewListing.ts +21 -5
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewSorting.ts +8 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useGroupedRows.ts +32 -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/useTableRows.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/displayOptions.ts +16 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/groupedRows.ts +67 -5
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/tableQuery.ts +5 -0
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCard.vue +73 -48
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCards.vue +18 -11
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupThumbnail.vue +35 -124
- package/frontend-vue/layers/dms-ui/app/build/mockups/manage.ts +7 -3
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewCapture.ts +96 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewChannel.ts +10 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewMessages.ts +84 -149
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewRects.ts +61 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/dotGrid.ts +37 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/legalIdentifier.ts +279 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockup.ts +43 -72
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupCaptures.ts +130 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupFrame.ts +8 -92
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupLinks.ts +35 -1
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupOverview.ts +44 -17
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupShortcuts.ts +3 -14
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupSpec.ts +26 -14
- package/frontend-vue/layers/dms-ui/app/build/utils/previewHeader.ts +154 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/previewPageLayout.ts +149 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/previewPageQuery.ts +42 -0
- package/frontend-vue/layers/dms-ui/app/components/block-preview/BlockPreview.vue +56 -6
- package/frontend-vue/layers/dms-ui/app/components/block-preview/MockupViewer.vue +0 -3
- package/frontend-vue/layers/dms-ui/app/components/confirm/ConfirmModal.vue +7 -7
- package/frontend-vue/layers/dms-ui/app/components/flow-canvas/FlowCanvas.vue +4 -7
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputIdentifier.vue +90 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputPhone.vue +5 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/KeyValue.vue +2 -20
- package/frontend-vue/layers/dms-ui/app/components/key-value-list/KeyValueList.vue +51 -15
- package/frontend-vue/layers/dms-ui/app/composables/form/useForm.ts +3 -8
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/config.ts +10 -0
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/previewCapture.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/previewCaptureAssets.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/usePreviewFrame.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/composables/table-view/utils/displayOptions.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/mockups/manage.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/blockPreview.ts +3 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/legalIdentifier.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupCaptures.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/types/table/query.ts +5 -0
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-en-GB.json +2 -28
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-fr-FR.json +12 -38
- package/frontend-vue/package.json +3 -3
- package/frontend-vue/scripts/check-invariants.mjs +101 -0
- package/package.json +9 -8
- package/skills/dms/SKILL.md +4 -2
- package/skills/dms-module/SKILL.md +3 -0
- package/dist/mcp/mockup-export/capture.d.ts +0 -15
- package/dist/mcp/mockup-export/capture.js +0 -97
- package/dist/mcp/mockup-export/capture.js.map +0 -1
- package/dist/mcp/mockup-export/document.d.ts +0 -4
- package/dist/mcp/mockup-export/document.js +0 -199
- package/dist/mcp/mockup-export/document.js.map +0 -1
- package/dist/mcp/mockup-export/index.d.ts +0 -23
- package/dist/mcp/mockup-export/index.js +0 -90
- package/dist/mcp/mockup-export/index.js.map +0 -1
- package/dist/mcp/mockup-export/plan.d.ts +0 -78
- package/dist/mcp/mockup-export/plan.js +0 -257
- package/dist/mcp/mockup-export/plan.js.map +0 -1
- package/dist/mcp/mockup-export/route.d.ts +0 -13
- package/dist/mcp/mockup-export/route.js +0 -66
- package/dist/mcp/mockup-export/route.js.map +0 -1
- package/dist/mcp/tools/mockup-export-pdf.d.ts +0 -1
- package/dist/mcp/tools/mockup-export-pdf.js +0 -71
- package/dist/mcp/tools/mockup-export-pdf.js.map +0 -1
- package/dist/mockup/database-manifest.d.ts +0 -2
- package/dist/mockup/database-manifest.js +0 -75
- package/dist/mockup/database-manifest.js.map +0 -1
- package/dist/mockup/entities.d.ts +0 -20
- package/dist/mockup/entities.js +0 -213
- package/dist/mockup/entities.js.map +0 -1
- package/dist/mockup/fixture-routes.js +0 -155
- package/dist/mockup/fixture-routes.js.map +0 -1
- package/dist/mockup/json-schema-entities.d.ts +0 -5
- package/dist/mockup/json-schema-entities.js +0 -141
- package/dist/mockup/json-schema-entities.js.map +0 -1
- package/dist/mockup/json.d.ts +0 -8
- package/dist/mockup/json.js +0 -20
- package/dist/mockup/json.js.map +0 -1
- package/dist/mockup/manifest-blocks.d.ts +0 -19
- package/dist/mockup/manifest-blocks.js +0 -65
- package/dist/mockup/manifest-blocks.js.map +0 -1
- package/dist/mockup/module-manifests.d.ts +0 -22
- package/dist/mockup/module-manifests.js +0 -28
- package/dist/mockup/module-manifests.js.map +0 -1
- package/dist/mockup/modules-schema.d.ts +0 -2
- package/dist/mockup/modules-schema.js +0 -42
- package/dist/mockup/modules-schema.js.map +0 -1
- package/dist/mockup/saas-manifest.d.ts +0 -2
- package/dist/mockup/saas-manifest.js +0 -496
- package/dist/mockup/saas-manifest.js.map +0 -1
- package/dist/mockup/state.d.ts +0 -76
- package/dist/mockup/state.js +0 -22
- package/dist/mockup/state.js.map +0 -1
- package/dist/mockup/store-summary.js.map +0 -1
- package/dist/mockup/tenancy.d.ts +0 -19
- package/dist/mockup/tenancy.js +0 -73
- package/dist/mockup/tenancy.js.map +0 -1
- package/dist/mockup/tenant-rows.d.ts +0 -4
- package/dist/mockup/tenant-rows.js +0 -19
- package/dist/mockup/tenant-rows.js.map +0 -1
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupDatabase.vue +0 -165
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTenantBanner.vue +0 -48
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkspaceSwitcher.vue +0 -142
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupDatabase.ts +0 -175
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPdfExport.ts +0 -76
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupTenancy.ts +0 -63
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewNavigation.ts +0 -119
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupEntities.ts +0 -80
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupSchema.ts +0 -177
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupTenancy.ts +0 -151
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupTenants.ts +0 -23
- package/frontend-vue/layers/dms-ui/app/build/utils/recordGuards.ts +0 -15
- package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupTenantBanner.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupWorkspaceSwitcher.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupPdfExport.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupTenancy.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupSchema.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTenancy.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTenants.ts +0 -1
- /package/dist/mockup/{store-summary.d.ts → summary-fields.d.ts} +0 -0
|
@@ -88,137 +88,6 @@
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
|
-
"entities": {
|
|
92
|
-
"type": "object",
|
|
93
|
-
"propertyNames": {
|
|
94
|
-
"pattern": "^[A-Za-z0-9_-]{1,64}$"
|
|
95
|
-
},
|
|
96
|
-
"description": "The app's data model: its tables, by name. The viewer draws them as a diagram of their relations and a browser of their rows. A page fixture { \"entity\": \"<name>\", \"rows\": [...] } holds the rows of one, checked against its fields. Declare an entity before a fixture points at it.",
|
|
97
|
-
"additionalProperties": {
|
|
98
|
-
"type": "object",
|
|
99
|
-
"required": [
|
|
100
|
-
"fields"
|
|
101
|
-
],
|
|
102
|
-
"additionalProperties": false,
|
|
103
|
-
"properties": {
|
|
104
|
-
"tenantScoped": {
|
|
105
|
-
"type": "boolean",
|
|
106
|
-
"description": "true when each tenant has its own rows of this entity, as with a tenant-scoped DMS model. The entity then has a \"tenantId\" string field right after \"id\", declared or implied, and SaaS mode shows a tenant only the rows whose \"tenantId\" is its id."
|
|
107
|
-
},
|
|
108
|
-
"fields": {
|
|
109
|
-
"type": "object",
|
|
110
|
-
"propertyNames": {
|
|
111
|
-
"pattern": "^[A-Za-z0-9_-]{1,64}$"
|
|
112
|
-
},
|
|
113
|
-
"description": "The columns of the entity, by name. \"id\" is the key of every row: leave it out and it is a string field; declare it to give it another type. The viewer draws \"id\" first, then the other fields in this order.",
|
|
114
|
-
"additionalProperties": {
|
|
115
|
-
"oneOf": [
|
|
116
|
-
{
|
|
117
|
-
"type": "object",
|
|
118
|
-
"required": [
|
|
119
|
-
"type"
|
|
120
|
-
],
|
|
121
|
-
"additionalProperties": false,
|
|
122
|
-
"description": "A plain field. Types: string; number; price (an amount); boolean; date (a string \"Date.parse\" reads, such as 2026-11-13); email; url (an absolute URL).",
|
|
123
|
-
"properties": {
|
|
124
|
-
"type": {
|
|
125
|
-
"enum": [
|
|
126
|
-
"string",
|
|
127
|
-
"number",
|
|
128
|
-
"price",
|
|
129
|
-
"boolean",
|
|
130
|
-
"date",
|
|
131
|
-
"email",
|
|
132
|
-
"url"
|
|
133
|
-
]
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"type": "object",
|
|
139
|
-
"required": [
|
|
140
|
-
"type",
|
|
141
|
-
"values"
|
|
142
|
-
],
|
|
143
|
-
"additionalProperties": false,
|
|
144
|
-
"description": "A field that takes one of a fixed list of values.",
|
|
145
|
-
"properties": {
|
|
146
|
-
"type": {
|
|
147
|
-
"const": "enum"
|
|
148
|
-
},
|
|
149
|
-
"values": {
|
|
150
|
-
"type": "array",
|
|
151
|
-
"minItems": 1,
|
|
152
|
-
"items": {
|
|
153
|
-
"type": "string",
|
|
154
|
-
"minLength": 1
|
|
155
|
-
},
|
|
156
|
-
"description": "The values it takes, at least one."
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"type": "object",
|
|
162
|
-
"required": [
|
|
163
|
-
"type",
|
|
164
|
-
"to"
|
|
165
|
-
],
|
|
166
|
-
"additionalProperties": false,
|
|
167
|
-
"description": "A field that holds the id of a row of another entity, drawn as a relation in the diagram.",
|
|
168
|
-
"properties": {
|
|
169
|
-
"type": {
|
|
170
|
-
"const": "ref"
|
|
171
|
-
},
|
|
172
|
-
"to": {
|
|
173
|
-
"type": "string",
|
|
174
|
-
"pattern": "^[A-Za-z0-9_-]{1,64}$",
|
|
175
|
-
"description": "The entity it points to. It must be one of the spec's entities."
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
]
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
"fixtures": {
|
|
186
|
-
"type": "object",
|
|
187
|
-
"required": [
|
|
188
|
-
"tenants"
|
|
189
|
-
],
|
|
190
|
-
"additionalProperties": false,
|
|
191
|
-
"description": "Data the mockup itself draws, beside the data of its pages.",
|
|
192
|
-
"properties": {
|
|
193
|
-
"tenants": {
|
|
194
|
-
"type": "array",
|
|
195
|
-
"description": "The workspaces the viewer's SaaS mode lists in its switcher. A mockup that lists the \"saas\" module can be viewed as one of them: rows of a tenant-scoped entity whose \"tenantId\" is another tenant's are hidden.",
|
|
196
|
-
"items": {
|
|
197
|
-
"type": "object",
|
|
198
|
-
"required": [
|
|
199
|
-
"id",
|
|
200
|
-
"name"
|
|
201
|
-
],
|
|
202
|
-
"additionalProperties": false,
|
|
203
|
-
"properties": {
|
|
204
|
-
"id": {
|
|
205
|
-
"type": "string",
|
|
206
|
-
"minLength": 1,
|
|
207
|
-
"description": "The tenant's id, which \"tenantId\" holds in its rows. Unique."
|
|
208
|
-
},
|
|
209
|
-
"name": {
|
|
210
|
-
"type": "string",
|
|
211
|
-
"description": "The name the switcher shows."
|
|
212
|
-
},
|
|
213
|
-
"plan": {
|
|
214
|
-
"type": "string",
|
|
215
|
-
"description": "The plan, shown under the name in the switcher."
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
91
|
"categories": {
|
|
223
92
|
"type": "array",
|
|
224
93
|
"maxItems": 50,
|
|
@@ -298,55 +167,18 @@
|
|
|
298
167
|
"type": "array",
|
|
299
168
|
"maxItems": 50,
|
|
300
169
|
"uniqueItems": true,
|
|
301
|
-
"description": "The DMS modules the app needs
|
|
170
|
+
"description": "The DMS modules the app needs, by their ids in the module store catalog. Building the mockup installs each one (`ajs project modules add <package>`), and the viewer lists them.",
|
|
302
171
|
"items": {
|
|
303
|
-
"
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
"media",
|
|
314
|
-
"saas"
|
|
315
|
-
],
|
|
316
|
-
"description": "A catalog module's id."
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"type": "object",
|
|
320
|
-
"required": [
|
|
321
|
-
"id",
|
|
322
|
-
"title",
|
|
323
|
-
"pages"
|
|
324
|
-
],
|
|
325
|
-
"additionalProperties": false,
|
|
326
|
-
"description": "A custom module: a menu root listing spec pages. Its id is no catalog id.",
|
|
327
|
-
"properties": {
|
|
328
|
-
"id": {
|
|
329
|
-
"type": "string",
|
|
330
|
-
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
|
|
331
|
-
},
|
|
332
|
-
"title": {
|
|
333
|
-
"type": "string"
|
|
334
|
-
},
|
|
335
|
-
"icon": {
|
|
336
|
-
"type": "string",
|
|
337
|
-
"description": "An icon name, e.g. i-ph-truck."
|
|
338
|
-
},
|
|
339
|
-
"pages": {
|
|
340
|
-
"type": "array",
|
|
341
|
-
"maxItems": 50,
|
|
342
|
-
"description": "The ids of the spec pages the module lists, in menu order. A listed page sets no category.",
|
|
343
|
-
"items": {
|
|
344
|
-
"type": "string",
|
|
345
|
-
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
}
|
|
172
|
+
"enum": [
|
|
173
|
+
"ai",
|
|
174
|
+
"api",
|
|
175
|
+
"automation",
|
|
176
|
+
"database",
|
|
177
|
+
"lang",
|
|
178
|
+
"mailing",
|
|
179
|
+
"marketing",
|
|
180
|
+
"media",
|
|
181
|
+
"saas"
|
|
350
182
|
]
|
|
351
183
|
}
|
|
352
184
|
},
|
|
@@ -458,7 +290,7 @@
|
|
|
458
290
|
"route": {
|
|
459
291
|
"type": "string",
|
|
460
292
|
"pattern": "^:[A-Za-z_][A-Za-z0-9_]*$",
|
|
461
|
-
"description": "A route parameter, \":id\": the page shows one row. An option \"fixture:<key>\" naming a parent's rows reads the row whose _id, else id, is the parameter,
|
|
293
|
+
"description": "A route parameter, \":id\": the page shows one row. An option \"fixture:<key>\" naming a parent's rows reads the row whose _id, else id, is the parameter, a \"page:<id>\" link from a table row passes that row's id, and a TableView lists only the rows of a parent's fixture that belong to it with routeParamFilters, { \"id\": { \"field\": \"orderId\" } }. Needs a parent."
|
|
462
294
|
},
|
|
463
295
|
"icon": {
|
|
464
296
|
"type": "string",
|
|
@@ -476,7 +308,7 @@
|
|
|
476
308
|
"label"
|
|
477
309
|
],
|
|
478
310
|
"additionalProperties": false,
|
|
479
|
-
"description": "A button right of the page title, as a PageHeaderButton of DefaultLayout({ headerActions })
|
|
311
|
+
"description": "A button right of the page title, as a PageHeaderButton of DefaultLayout({ headerActions }) writes it: its look, the page of the mockup it opens and the dialog it asks in first.",
|
|
480
312
|
"properties": {
|
|
481
313
|
"label": {
|
|
482
314
|
"type": "string"
|
|
@@ -504,11 +336,238 @@
|
|
|
504
336
|
"ghost",
|
|
505
337
|
"link"
|
|
506
338
|
]
|
|
339
|
+
},
|
|
340
|
+
"target": {
|
|
341
|
+
"type": "object",
|
|
342
|
+
"required": [
|
|
343
|
+
"type",
|
|
344
|
+
"url"
|
|
345
|
+
],
|
|
346
|
+
"additionalProperties": false,
|
|
347
|
+
"description": "The page of the mockup the button opens: { \"type\": \"page\", \"url\": \"page:<id>\" }.",
|
|
348
|
+
"properties": {
|
|
349
|
+
"type": {
|
|
350
|
+
"const": "page"
|
|
351
|
+
},
|
|
352
|
+
"url": {
|
|
353
|
+
"type": "string",
|
|
354
|
+
"pattern": "^page:"
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
"confirm": {
|
|
359
|
+
"type": "object",
|
|
360
|
+
"required": [
|
|
361
|
+
"title"
|
|
362
|
+
],
|
|
363
|
+
"additionalProperties": false,
|
|
364
|
+
"description": "The dialog the button asks in before it goes, as a fixed ConfirmDialog writes it; confirming opens its target, cancelling stays. A dialog the server words ({ from }), its fields and its component are code.",
|
|
365
|
+
"properties": {
|
|
366
|
+
"title": {
|
|
367
|
+
"type": "string"
|
|
368
|
+
},
|
|
369
|
+
"description": {
|
|
370
|
+
"type": "string"
|
|
371
|
+
},
|
|
372
|
+
"params": {
|
|
373
|
+
"type": "object",
|
|
374
|
+
"additionalProperties": {
|
|
375
|
+
"type": [
|
|
376
|
+
"string",
|
|
377
|
+
"number"
|
|
378
|
+
]
|
|
379
|
+
},
|
|
380
|
+
"description": "Values the texts are interpolated with: {name}."
|
|
381
|
+
},
|
|
382
|
+
"icon": {
|
|
383
|
+
"type": "string"
|
|
384
|
+
},
|
|
385
|
+
"color": {
|
|
386
|
+
"enum": [
|
|
387
|
+
"neutral",
|
|
388
|
+
"primary",
|
|
389
|
+
"secondary",
|
|
390
|
+
"success",
|
|
391
|
+
"warning",
|
|
392
|
+
"error",
|
|
393
|
+
"info"
|
|
394
|
+
]
|
|
395
|
+
},
|
|
396
|
+
"confirmLabel": {
|
|
397
|
+
"type": "string"
|
|
398
|
+
},
|
|
399
|
+
"cancelLabel": {
|
|
400
|
+
"type": "string"
|
|
401
|
+
},
|
|
402
|
+
"impact": {
|
|
403
|
+
"type": "array",
|
|
404
|
+
"items": {
|
|
405
|
+
"type": "object",
|
|
406
|
+
"required": [
|
|
407
|
+
"icon",
|
|
408
|
+
"label"
|
|
409
|
+
],
|
|
410
|
+
"additionalProperties": false,
|
|
411
|
+
"description": "One dependent the action affects, listed above the buttons.",
|
|
412
|
+
"properties": {
|
|
413
|
+
"icon": {
|
|
414
|
+
"type": "string"
|
|
415
|
+
},
|
|
416
|
+
"label": {
|
|
417
|
+
"type": "string"
|
|
418
|
+
},
|
|
419
|
+
"count": {
|
|
420
|
+
"type": [
|
|
421
|
+
"number",
|
|
422
|
+
"string"
|
|
423
|
+
]
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"blocked": {
|
|
429
|
+
"type": "boolean",
|
|
430
|
+
"description": "The action cannot run: the dialog only explains why."
|
|
431
|
+
},
|
|
432
|
+
"confirmText": {
|
|
433
|
+
"type": "string",
|
|
434
|
+
"description": "Text the user types to confirm."
|
|
435
|
+
},
|
|
436
|
+
"confirmTextCaseInsensitive": {
|
|
437
|
+
"type": "boolean"
|
|
438
|
+
}
|
|
439
|
+
}
|
|
507
440
|
}
|
|
508
441
|
}
|
|
509
442
|
},
|
|
510
443
|
"description": "The buttons right of the title, in order, as DefaultLayout({ headerActions }) declares them."
|
|
511
444
|
},
|
|
445
|
+
"layout": {
|
|
446
|
+
"description": "The layout the page is drawn and built in: \"default\" (DefaultLayout, the dashboard frame), \"form-page\" (FormPageLayout, the frame with a readable column), \"settings\" (SettingsLayout, the frame with the settings navigation) or \"empty\" (EmptyLayout, no sidebar, no top bar and no page header). A name, or { type, options } with the layout's options. Absent, the page takes the dashboard frame.",
|
|
447
|
+
"oneOf": [
|
|
448
|
+
{
|
|
449
|
+
"enum": [
|
|
450
|
+
"default",
|
|
451
|
+
"form-page",
|
|
452
|
+
"settings",
|
|
453
|
+
"empty"
|
|
454
|
+
]
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"type": "object",
|
|
458
|
+
"required": [
|
|
459
|
+
"type"
|
|
460
|
+
],
|
|
461
|
+
"additionalProperties": false,
|
|
462
|
+
"properties": {
|
|
463
|
+
"type": {
|
|
464
|
+
"const": "default"
|
|
465
|
+
},
|
|
466
|
+
"options": {
|
|
467
|
+
"type": "object",
|
|
468
|
+
"additionalProperties": false,
|
|
469
|
+
"properties": {
|
|
470
|
+
"fullWidth": {
|
|
471
|
+
"type": "boolean",
|
|
472
|
+
"default": true,
|
|
473
|
+
"description": "The blocks span the whole panel; false keeps them in a readable column."
|
|
474
|
+
},
|
|
475
|
+
"hideHeader": {
|
|
476
|
+
"type": "boolean",
|
|
477
|
+
"description": "Leaves out the page header: its title, icon, description and buttons."
|
|
478
|
+
},
|
|
479
|
+
"fillHeight": {
|
|
480
|
+
"type": "boolean",
|
|
481
|
+
"description": "The page fills the height of the frame, and its last block takes what is left."
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"type": "object",
|
|
489
|
+
"required": [
|
|
490
|
+
"type"
|
|
491
|
+
],
|
|
492
|
+
"additionalProperties": false,
|
|
493
|
+
"properties": {
|
|
494
|
+
"type": {
|
|
495
|
+
"const": "form-page"
|
|
496
|
+
},
|
|
497
|
+
"options": {
|
|
498
|
+
"type": "object",
|
|
499
|
+
"additionalProperties": false,
|
|
500
|
+
"properties": {
|
|
501
|
+
"hideHeader": {
|
|
502
|
+
"type": "boolean",
|
|
503
|
+
"description": "Leaves out the page header: its title, icon, description and buttons."
|
|
504
|
+
},
|
|
505
|
+
"fillHeight": {
|
|
506
|
+
"type": "boolean",
|
|
507
|
+
"description": "The page fills the height of the frame, and its last block takes what is left."
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"type": "object",
|
|
515
|
+
"required": [
|
|
516
|
+
"type"
|
|
517
|
+
],
|
|
518
|
+
"additionalProperties": false,
|
|
519
|
+
"properties": {
|
|
520
|
+
"type": {
|
|
521
|
+
"const": "settings"
|
|
522
|
+
},
|
|
523
|
+
"options": {
|
|
524
|
+
"type": "object",
|
|
525
|
+
"additionalProperties": false,
|
|
526
|
+
"properties": {
|
|
527
|
+
"hideHeader": {
|
|
528
|
+
"type": "boolean",
|
|
529
|
+
"description": "Leaves out the page header: its title, icon, description and buttons."
|
|
530
|
+
},
|
|
531
|
+
"fillHeight": {
|
|
532
|
+
"type": "boolean",
|
|
533
|
+
"description": "The page fills the height of the frame, and its last block takes what is left."
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"type": "object",
|
|
541
|
+
"required": [
|
|
542
|
+
"type"
|
|
543
|
+
],
|
|
544
|
+
"additionalProperties": false,
|
|
545
|
+
"properties": {
|
|
546
|
+
"type": {
|
|
547
|
+
"const": "empty"
|
|
548
|
+
},
|
|
549
|
+
"options": {
|
|
550
|
+
"type": "object",
|
|
551
|
+
"additionalProperties": false,
|
|
552
|
+
"properties": {
|
|
553
|
+
"hideBrand": {
|
|
554
|
+
"type": "boolean",
|
|
555
|
+
"description": "Leaves out the app logo and the theme toggle above the page."
|
|
556
|
+
},
|
|
557
|
+
"hideFooter": {
|
|
558
|
+
"type": "boolean",
|
|
559
|
+
"description": "Leaves out the footer under the page."
|
|
560
|
+
},
|
|
561
|
+
"fillHeight": {
|
|
562
|
+
"type": "boolean",
|
|
563
|
+
"description": "The page fills the height of the window, and its last block takes what is left."
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
]
|
|
570
|
+
},
|
|
512
571
|
"options": {
|
|
513
572
|
"type": "object",
|
|
514
573
|
"additionalProperties": false,
|
|
@@ -570,30 +629,17 @@
|
|
|
570
629
|
{
|
|
571
630
|
"$ref": "#/$defs/generate"
|
|
572
631
|
},
|
|
573
|
-
{
|
|
574
|
-
"$ref": "#/$defs/entityFixture"
|
|
575
|
-
},
|
|
576
632
|
{
|
|
577
633
|
"not": {
|
|
578
634
|
"type": "object",
|
|
579
|
-
"
|
|
580
|
-
|
|
581
|
-
"required": [
|
|
582
|
-
"$generate"
|
|
583
|
-
]
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
"required": [
|
|
587
|
-
"entity",
|
|
588
|
-
"rows"
|
|
589
|
-
]
|
|
590
|
-
}
|
|
635
|
+
"required": [
|
|
636
|
+
"$generate"
|
|
591
637
|
]
|
|
592
638
|
}
|
|
593
639
|
}
|
|
594
640
|
]
|
|
595
641
|
},
|
|
596
|
-
"description": "Data a block reads: an option \"fixture:<key>\" is served from here. A value { \"$generate\": { \"rows\", \"fields\" } } is replaced by generated rows
|
|
642
|
+
"description": "Data a block reads: an option \"fixture:<key>\" is served from here. A value { \"$generate\": { \"rows\", \"fields\" } } is replaced by generated rows."
|
|
597
643
|
},
|
|
598
644
|
"tree": {
|
|
599
645
|
"type": "array",
|
|
@@ -708,29 +754,6 @@
|
|
|
708
754
|
}
|
|
709
755
|
}
|
|
710
756
|
},
|
|
711
|
-
"entityFixture": {
|
|
712
|
-
"type": "object",
|
|
713
|
-
"required": [
|
|
714
|
-
"entity",
|
|
715
|
-
"rows"
|
|
716
|
-
],
|
|
717
|
-
"additionalProperties": false,
|
|
718
|
-
"description": "The rows of an entity, as a fixture. Read as an array of row objects, by a table's `fixture:<key>` as by any other block. Every row is checked against the entity: each key is one of its fields, each value fits the field's type (null always does), and a ref holds the id of a row of its target once the target has rows. The viewer lists them in the data browser.",
|
|
719
|
-
"properties": {
|
|
720
|
-
"entity": {
|
|
721
|
-
"type": "string",
|
|
722
|
-
"pattern": "^[A-Za-z0-9_-]{1,64}$",
|
|
723
|
-
"description": "The name of one of the spec's entities."
|
|
724
|
-
},
|
|
725
|
-
"rows": {
|
|
726
|
-
"type": "array",
|
|
727
|
-
"items": {
|
|
728
|
-
"type": "object"
|
|
729
|
-
},
|
|
730
|
-
"description": "The rows, as objects keyed by field name. A row whose id an earlier row of the entity has is dropped."
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
},
|
|
734
757
|
"node": {
|
|
735
758
|
"oneOf": [
|
|
736
759
|
{
|
|
@@ -10576,6 +10599,12 @@
|
|
|
10576
10599
|
},
|
|
10577
10600
|
"label": {
|
|
10578
10601
|
"type": "string"
|
|
10602
|
+
},
|
|
10603
|
+
"fullWidth": {
|
|
10604
|
+
"type": "boolean"
|
|
10605
|
+
},
|
|
10606
|
+
"hideEmpty": {
|
|
10607
|
+
"type": "boolean"
|
|
10579
10608
|
}
|
|
10580
10609
|
},
|
|
10581
10610
|
"required": [
|
|
@@ -10927,7 +10956,8 @@
|
|
|
10927
10956
|
"required": [
|
|
10928
10957
|
"field"
|
|
10929
10958
|
]
|
|
10930
|
-
}
|
|
10959
|
+
},
|
|
10960
|
+
"description": "Filters the rows by a query parameter of the page's URL, as on a real TableView: { \"<param>\": { field, mode?, visible?, label? } }. In the viewer, the page's query is the viewer's, ?record= included, without the parameters the viewer reads itself: name, page, width, data, state and fixtures. To follow the row a page with a route shows, prefer routeParamFilters."
|
|
10931
10961
|
},
|
|
10932
10962
|
"tabs": {
|
|
10933
10963
|
"type": "array",
|
|
@@ -11267,7 +11297,25 @@
|
|
|
11267
11297
|
"capabilities": {
|
|
11268
11298
|
"type": "object",
|
|
11269
11299
|
"properties": {},
|
|
11270
|
-
"description": "Defaults to search, sort, paginate and filter, all on: the rows route applies tabs, quick filters and column filters. A table that sets it keeps its own value, and tabs, quick filters and queryParamFilters need filter: true."
|
|
11300
|
+
"description": "Defaults to search, sort, paginate and filter, all on: the rows route applies tabs, quick filters and column filters. A table that sets it keeps its own value, and tabs, quick filters, routeParamFilters and queryParamFilters need filter: true."
|
|
11301
|
+
},
|
|
11302
|
+
"routeParamFilters": {
|
|
11303
|
+
"type": "object",
|
|
11304
|
+
"additionalProperties": {
|
|
11305
|
+
"type": "object",
|
|
11306
|
+
"properties": {
|
|
11307
|
+
"field": {
|
|
11308
|
+
"type": "string"
|
|
11309
|
+
},
|
|
11310
|
+
"mode": {
|
|
11311
|
+
"type": "string"
|
|
11312
|
+
}
|
|
11313
|
+
},
|
|
11314
|
+
"required": [
|
|
11315
|
+
"field"
|
|
11316
|
+
]
|
|
11317
|
+
},
|
|
11318
|
+
"description": "Filters the rows by a route parameter of the page, as on a real TableView: { \"<param>\": { field, mode? } }, mode \"is\" by default. On a page with \"route\": \":id\", { \"id\": { \"field\": \"orderId\" } } lists the rows whose orderId is the id of the row the page shows, its sample row until a link names one. The parameter must be the page's route parameter."
|
|
11271
11319
|
},
|
|
11272
11320
|
"formContainer": {
|
|
11273
11321
|
"anyOf": [
|
|
@@ -11497,17 +11545,49 @@
|
|
|
11497
11545
|
"week"
|
|
11498
11546
|
]
|
|
11499
11547
|
},
|
|
11548
|
+
"order": {
|
|
11549
|
+
"anyOf": [
|
|
11550
|
+
{
|
|
11551
|
+
"type": "string",
|
|
11552
|
+
"enum": [
|
|
11553
|
+
"items"
|
|
11554
|
+
]
|
|
11555
|
+
},
|
|
11556
|
+
{
|
|
11557
|
+
"type": "array",
|
|
11558
|
+
"items": {
|
|
11559
|
+
"anyOf": [
|
|
11560
|
+
{
|
|
11561
|
+
"type": "string"
|
|
11562
|
+
},
|
|
11563
|
+
{
|
|
11564
|
+
"type": "number"
|
|
11565
|
+
},
|
|
11566
|
+
{
|
|
11567
|
+
"type": "boolean"
|
|
11568
|
+
}
|
|
11569
|
+
]
|
|
11570
|
+
}
|
|
11571
|
+
}
|
|
11572
|
+
]
|
|
11573
|
+
},
|
|
11500
11574
|
"collapsible": {
|
|
11501
11575
|
"type": "boolean"
|
|
11502
11576
|
},
|
|
11503
11577
|
"count": {
|
|
11504
11578
|
"type": "boolean"
|
|
11579
|
+
},
|
|
11580
|
+
"pinned": {
|
|
11581
|
+
"type": "boolean"
|
|
11582
|
+
},
|
|
11583
|
+
"pinnedLabel": {
|
|
11584
|
+
"type": "string"
|
|
11505
11585
|
}
|
|
11506
11586
|
},
|
|
11507
11587
|
"required": [
|
|
11508
11588
|
"groupByField"
|
|
11509
11589
|
],
|
|
11510
|
-
"description": "The grid with a header row per group of groupByField, a sortable column; by day or week needs a date column."
|
|
11590
|
+
"description": "The grid with a header row per group of groupByField, a sortable column; by day or week needs a date column. order: \"items\" lists the groups in the order of the badge's items, or a list of values gives that order. pinned: true leads it with the rows pinnedRows accepts, under pinnedLabel."
|
|
11511
11591
|
},
|
|
11512
11592
|
"views": {
|
|
11513
11593
|
"type": "object",
|
|
@@ -6,14 +6,14 @@ exports.sendEmailForgotEmail = sendEmailForgotEmail;
|
|
|
6
6
|
const logging_1 = require("@antelopejs/interface-core/logging");
|
|
7
7
|
const html_render_1 = require("@antelopejs/interface-dms/html-render");
|
|
8
8
|
const time_1 = require("@antelopejs/interface-dms/utils/internal/time");
|
|
9
|
-
const interface_email_1 = require("@antelopejs/interface-email");
|
|
10
9
|
const config_1 = require("../../config");
|
|
11
10
|
const email_subjects_1 = require("../../utils/email-subjects");
|
|
11
|
+
const utils_1 = require("../../utils");
|
|
12
12
|
const ResetPasswordTemplate = (0, html_render_1.RegisterHtmlTemplate)("EmailResetPassword");
|
|
13
13
|
const EmailValidationTemplate = (0, html_render_1.RegisterHtmlTemplate)("EmailUserValidation");
|
|
14
14
|
const TwoFactorEmailTemplate = (0, html_render_1.RegisterHtmlTemplate)("EmailTwoFactor");
|
|
15
15
|
async function sendAccountEmail(user, { subject, label, html }) {
|
|
16
|
-
const result = await (0,
|
|
16
|
+
const result = await (0, utils_1.sendHtmlEmail)({
|
|
17
17
|
to: user.email,
|
|
18
18
|
subject: (0, email_subjects_1.builtInEmailSubject)(subject, user.language),
|
|
19
19
|
html,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-emails.js","sourceRoot":"","sources":["../../../src/implementations/dms-auth/account-emails.ts"],"names":[],"mappings":";;;;;AAAA,gEAA6D;AAE7D,uEAG+C;AAC/C,wEAAsF;AACtF,
|
|
1
|
+
{"version":3,"file":"account-emails.js","sourceRoot":"","sources":["../../../src/implementations/dms-auth/account-emails.ts"],"names":[],"mappings":";;;;;AAAA,gEAA6D;AAE7D,uEAG+C;AAC/C,wEAAsF;AACtF,yCAA6C;AAC7C,+DAGoC;AACpC,uCAA4C;AAgB5C,MAAM,qBAAqB,GACzB,IAAA,kCAAoB,EAAoB,oBAAoB,CAAC,CAAC;AAEhE,MAAM,uBAAuB,GAAG,IAAA,kCAAoB,EAClD,qBAAqB,CACtB,CAAC;AAOF,MAAM,sBAAsB,GAC1B,IAAA,kCAAoB,EAAqB,gBAAgB,CAAC,CAAC;AAS7D,KAAK,UAAU,gBAAgB,CAC7B,IAAU,EACV,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAgB;IAEtC,MAAM,MAAM,GAAG,MAAM,IAAA,qBAAa,EAAC;QACjC,EAAE,EAAE,IAAI,CAAC,KAAK;QACd,OAAO,EAAE,IAAA,oCAAmB,EAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC;QACpD,IAAI;KACL,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,iBAAO,CAAC,KAAK,CACX,6BAA6B,KAAK,cAAc,IAAI,CAAC,KAAK,MAAM,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,CACxF,CAAC;QACF,MAAM,IAAI,KAAK,CAAC,yBAAyB,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,iBAAO,CAAC,IAAI,CAAC,cAAc,KAAK,mBAAmB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;AACpE,CAAC;AAEM,KAAK,uBAAuB,IAAU,EAAE,IAAY;IACzD,MAAM,IAAI,GAAG,MAAM,IAAA,0BAAY,EAC7B,sBAAsB,EACtB;QACE,QAAQ,EAAE,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK;QACjC,gBAAgB,EAAE,IAAI;KACvB,EACD,IAAI,CAAC,QAAQ,CACd,CAAC;IACF,MAAM,gBAAgB,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7E,CAAC;AAEM,KAAK,mCAAmC,IAAU;IACvD,MAAM,WAAW,GACf,IAAA,sBAAa,GAAE,CAAC,4BAA4B,GAAG,4BAAqB,CAAC;IAEvE,MAAM,IAAI,GAAG,MAAM,IAAA,0BAAY,EAC7B,uBAAuB,EACvB;QACE,QAAQ,EAAE,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK;QACjC,cAAc,EAAE,IAAI,CAAC,eAAe;QACpC,SAAS,EAAE,GAAG,WAAW,QAAQ;QACjC,cAAc,EAAE,WAAW;KAC5B,EACD,IAAI,CAAC,QAAQ,CACd,CAAC;IACF,MAAM,gBAAgB,CAAC,IAAI,EAAE;QAC3B,OAAO,EAAE,gBAAgB;QACzB,KAAK,EAAE,YAAY;QACnB,IAAI;KACL,CAAC,CAAC;AACL,CAAC;AAEM,KAAK,+BAA+B,IAAU;IACnD,MAAM,WAAW,GACf,IAAA,sBAAa,GAAE,CAAC,4BAA4B,GAAG,4BAAqB,CAAC;IAEvE,MAAM,IAAI,GAAG,MAAM,IAAA,0BAAY,EAC7B,qBAAqB,EACrB;QACE,QAAQ,EAAE,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK;QACjC,SAAS,EAAE,IAAI,CAAC,mBAAmB;QACnC,SAAS,EAAE,GAAG,WAAW,QAAQ;QACjC,cAAc,EAAE,WAAW;KAC5B,EACD,IAAI,CAAC,QAAQ,CACd,CAAC;IACF,MAAM,gBAAgB,CAAC,IAAI,EAAE;QAC3B,OAAO,EAAE,eAAe;QACxB,KAAK,EAAE,gBAAgB;QACvB,IAAI;KACL,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -29,7 +29,6 @@ const node_crypto_1 = require("node:crypto");
|
|
|
29
29
|
const interface_api_1 = require("@antelopejs/interface-api");
|
|
30
30
|
const logging_1 = require("@antelopejs/interface-core/logging");
|
|
31
31
|
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
32
|
-
const interface_email_1 = require("@antelopejs/interface-email");
|
|
33
32
|
const db_1 = require("@antelopejs/interface-dms/auth/db");
|
|
34
33
|
const types_1 = require("@antelopejs/interface-dms/base/types");
|
|
35
34
|
const html_render_1 = require("@antelopejs/interface-dms/html-render");
|
|
@@ -300,7 +299,7 @@ async function sendAdminInviteEmail(email, token, inviteeName, context = {}) {
|
|
|
300
299
|
expiresInDays: invites_1.INVITE_EXPIRY_DAYS,
|
|
301
300
|
...names,
|
|
302
301
|
}, language);
|
|
303
|
-
const result = await (0,
|
|
302
|
+
const result = await (0, utils_1.sendHtmlEmail)({
|
|
304
303
|
to: email,
|
|
305
304
|
subject: (0, utils_1.buildAdminInviteSubject)(names, language),
|
|
306
305
|
html,
|