@antelopejs/dms 0.25.6 → 0.25.7-next.1111.gaba637e
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 +0 -60
- package/README.md +1 -1
- package/data/mockup-spec.schema.json +223 -303
- 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 +2 -1
- package/dist/implementations/dms-auth/index.js.map +1 -1
- package/dist/implementations/dms-base/search-route.js +5 -8
- package/dist/implementations/dms-base/search-route.js.map +1 -1
- package/dist/implementations/dms-builder/engine/cell-displays.js +1 -4
- package/dist/implementations/dms-builder/engine/cell-displays.js.map +1 -1
- package/dist/implementations/dms-builder/engine/mapped-displays.js +1 -5
- package/dist/implementations/dms-builder/engine/mapped-displays.js.map +1 -1
- package/dist/implementations/dms-builder/engine/resource-emit.js +0 -4
- package/dist/implementations/dms-builder/engine/resource-emit.js.map +1 -1
- package/dist/implementations/dms-builder/engine/theme-assets.js +17 -5
- package/dist/implementations/dms-builder/engine/theme-assets.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/index.js +5 -0
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/mockup-export/capture.d.ts +15 -0
- package/dist/mcp/mockup-export/capture.js +97 -0
- package/dist/mcp/mockup-export/capture.js.map +1 -0
- package/dist/mcp/mockup-export/document.d.ts +4 -0
- package/dist/mcp/mockup-export/document.js +199 -0
- package/dist/mcp/mockup-export/document.js.map +1 -0
- package/dist/mcp/mockup-export/index.d.ts +23 -0
- package/dist/mcp/mockup-export/index.js +90 -0
- package/dist/mcp/mockup-export/index.js.map +1 -0
- package/dist/mcp/mockup-export/plan.d.ts +78 -0
- package/dist/mcp/mockup-export/plan.js +257 -0
- package/dist/mcp/mockup-export/plan.js.map +1 -0
- package/dist/mcp/mockup-export/route.d.ts +13 -0
- package/dist/mcp/mockup-export/route.js +66 -0
- package/dist/mcp/mockup-export/route.js.map +1 -0
- package/dist/mcp/page-verify/index.d.ts +14 -0
- package/dist/mcp/page-verify/index.js +9 -5
- package/dist/mcp/page-verify/index.js.map +1 -1
- package/dist/mcp/page-verify/mockup.d.ts +2 -1
- package/dist/mcp/page-verify/mockup.js +1 -0
- package/dist/mcp/page-verify/mockup.js.map +1 -1
- package/dist/mcp/page-verify/playwright.d.ts +22 -4
- 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-export-pdf.d.ts +1 -0
- package/dist/mcp/tools/mockup-export-pdf.js +71 -0
- package/dist/mcp/tools/mockup-export-pdf.js.map +1 -0
- 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 +10 -3
- 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 +2 -0
- package/dist/mcp/tools/mockup.js.map +1 -1
- package/dist/mcp/tools/page-verify.d.ts +1 -0
- package/dist/mcp/tools/page-verify.js +5 -1
- 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 +1 -2
- package/dist/mockup/apply-notes.js.map +1 -1
- package/dist/mockup/apply-plan.js +0 -3
- package/dist/mockup/apply-plan.js.map +1 -1
- package/dist/mockup/compile.d.ts +6 -1
- package/dist/mockup/compile.js +29 -25
- package/dist/mockup/compile.js.map +1 -1
- package/dist/mockup/controller-blocks.js +10 -62
- package/dist/mockup/controller-blocks.js.map +1 -1
- package/dist/mockup/database-manifest.d.ts +2 -0
- package/dist/mockup/database-manifest.js +75 -0
- package/dist/mockup/database-manifest.js.map +1 -0
- package/dist/mockup/display-values.js +1 -1
- package/dist/mockup/display-values.js.map +1 -1
- package/dist/mockup/entities.d.ts +20 -0
- package/dist/mockup/entities.js +213 -0
- package/dist/mockup/entities.js.map +1 -0
- 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 +1 -0
- package/dist/mockup/fixture-answers.js +1 -1
- package/dist/mockup/fixture-answers.js.map +1 -1
- package/dist/mockup/{capture-routes.d.ts → fixture-routes.d.ts} +11 -6
- package/dist/mockup/fixture-routes.js +155 -0
- package/dist/mockup/fixture-routes.js.map +1 -0
- package/dist/mockup/fixtures.d.ts +1 -3
- package/dist/mockup/fixtures.js +2 -25
- package/dist/mockup/fixtures.js.map +1 -1
- package/dist/mockup/form-fields.js +1 -10
- package/dist/mockup/form-fields.js.map +1 -1
- package/dist/mockup/generate.js +4 -1
- package/dist/mockup/generate.js.map +1 -1
- package/dist/mockup/history-routes.js +2 -17
- package/dist/mockup/history-routes.js.map +1 -1
- package/dist/mockup/index.d.ts +3 -0
- package/dist/mockup/index.js +3 -0
- package/dist/mockup/index.js.map +1 -1
- package/dist/mockup/json-schema-entities.d.ts +5 -0
- package/dist/mockup/json-schema-entities.js +141 -0
- package/dist/mockup/json-schema-entities.js.map +1 -0
- package/dist/mockup/json-schema.js +23 -24
- package/dist/mockup/json-schema.js.map +1 -1
- package/dist/mockup/json.d.ts +8 -0
- package/dist/mockup/json.js +20 -0
- package/dist/mockup/json.js.map +1 -0
- package/dist/mockup/manage.js +1 -1
- package/dist/mockup/manage.js.map +1 -1
- package/dist/mockup/manifest-blocks.d.ts +19 -0
- package/dist/mockup/manifest-blocks.js +65 -0
- package/dist/mockup/manifest-blocks.js.map +1 -0
- package/dist/mockup/model.d.ts +106 -255
- package/dist/mockup/model.js +86 -82
- package/dist/mockup/model.js.map +1 -1
- package/dist/mockup/module-manifests.d.ts +22 -0
- package/dist/mockup/module-manifests.js +28 -0
- package/dist/mockup/module-manifests.js.map +1 -0
- package/dist/mockup/modules-schema.d.ts +2 -0
- package/dist/mockup/modules-schema.js +42 -0
- package/dist/mockup/modules-schema.js.map +1 -0
- package/dist/mockup/modules.d.ts +20 -9
- package/dist/mockup/modules.js +146 -22
- package/dist/mockup/modules.js.map +1 -1
- package/dist/mockup/page-links.d.ts +1 -2
- package/dist/mockup/page-links.js +3 -14
- package/dist/mockup/page-links.js.map +1 -1
- package/dist/mockup/refusals.d.ts +4 -1
- package/dist/mockup/refusals.js +15 -1
- package/dist/mockup/refusals.js.map +1 -1
- package/dist/mockup/routes.d.ts +1 -5
- package/dist/mockup/routes.js +9 -171
- package/dist/mockup/routes.js.map +1 -1
- package/dist/mockup/saas-manifest.d.ts +2 -0
- package/dist/mockup/saas-manifest.js +496 -0
- package/dist/mockup/saas-manifest.js.map +1 -0
- package/dist/mockup/sample-rows.js +0 -4
- package/dist/mockup/sample-rows.js.map +1 -1
- package/dist/mockup/state.d.ts +76 -0
- package/dist/mockup/state.js +22 -0
- package/dist/mockup/state.js.map +1 -0
- package/dist/mockup/{summary-fields.js → store-summary.js} +1 -1
- package/dist/mockup/store-summary.js.map +1 -0
- package/dist/mockup/store.d.ts +1 -2
- package/dist/mockup/store.js +16 -22
- package/dist/mockup/store.js.map +1 -1
- package/dist/mockup/table-columns.js +3 -9
- package/dist/mockup/table-columns.js.map +1 -1
- package/dist/mockup/table-options.d.ts +1 -4
- package/dist/mockup/table-options.js +2 -40
- package/dist/mockup/table-options.js.map +1 -1
- package/dist/mockup/tenancy.d.ts +19 -0
- package/dist/mockup/tenancy.js +73 -0
- package/dist/mockup/tenancy.js.map +1 -0
- package/dist/mockup/tenant-rows.d.ts +4 -0
- package/dist/mockup/tenant-rows.js +19 -0
- package/dist/mockup/tenant-rows.js.map +1 -0
- package/dist/mockup/validate.d.ts +1 -7
- package/dist/mockup/validate.js +3 -76
- package/dist/mockup/validate.js.map +1 -1
- package/dist/pages/account.d.ts +0 -1
- package/dist/pages/account.js +0 -1
- package/dist/pages/account.js.map +1 -1
- package/dist/pages/settings/overview/account-summary.d.ts +0 -2
- package/dist/pages/settings/overview/account-summary.js +8 -17
- package/dist/pages/settings/overview/account-summary.js.map +1 -1
- package/dist/pages/settings/settings-index.js +1 -2
- package/dist/pages/settings/settings-index.js.map +1 -1
- package/dist/realtime/sse.js +4 -2
- package/dist/realtime/sse.js.map +1 -1
- package/dist/store/internal/frontend/dev-reload.js +1 -7
- package/dist/store/internal/frontend/dev-reload.js.map +1 -1
- package/dist/utils/account-notifications.js +0 -1
- 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/export-jobs.js +2 -2
- package/dist/utils/export-jobs.js.map +1 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.js +0 -2
- package/dist/utils/index.js.map +1 -1
- package/dist/validation/index.d.ts +0 -1
- package/dist/validation/index.js +0 -1
- 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 +0 -3
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/backup.vue +0 -3
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/forgot-validation.vue +0 -3
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/forgot.vue +0 -3
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/login.vue +1 -4
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/recover.vue +0 -3
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/signup.vue +1 -17
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/validate.vue +0 -3
- 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 +0 -8
- package/frontend-vue/layers/dms-core/app/composables/data-types/useDataType.ts +2 -3
- package/frontend-vue/layers/dms-core/app/composables/translation/useUniqueLocales.ts +5 -23
- package/frontend-vue/layers/dms-core/app/composables/useApiErrorPresenter.ts +0 -1
- package/frontend-vue/layers/dms-core/app/composables/useFieldErrors.ts +443 -12
- package/frontend-vue/layers/dms-core/i18n/locales/core-en-GB.json +0 -8
- package/frontend-vue/layers/dms-core/i18n/locales/core-fr-FR.json +0 -8
- package/frontend-vue/layers/dms-core/shared/types/app-config.ts +0 -2
- package/frontend-vue/layers/dms-layout/app/app.config.ts +0 -1
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardHeader.vue +4 -7
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardSidebar.vue +29 -14
- package/frontend-vue/layers/dms-layout/app/build/components/layout/LayoutFooter.vue +0 -2
- package/frontend-vue/layers/dms-layout/app/build/components/layout/MockupSidebarMenu.vue +21 -6
- package/frontend-vue/layers/dms-layout/app/build/components/layout/PreviewPageHeader.vue +3 -19
- package/frontend-vue/layers/dms-layout/app/build/components/layout/mockupMenu.ts +110 -9
- package/frontend-vue/layers/dms-layout/app/build/components/notification/NotificationPopover.vue +2 -8
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationInboxItem.vue +9 -6
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationMatrixCategory.vue +2 -6
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationMatrixSubject.vue +22 -27
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationPreferencesForm.vue +10 -8
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/notificationDisplay.ts +3 -39
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/shell/SettingsShell.vue +5 -38
- package/frontend-vue/layers/dms-layout/app/build/composables/settings/profile/useProfilePreferences.ts +3 -1
- package/frontend-vue/layers/dms-layout/app/build/utils/dev-reload-stream.ts +4 -23
- package/frontend-vue/layers/dms-layout/app/custom-layouts/EmptyLayout.vue +31 -39
- package/frontend-vue/layers/dms-layout/app/custom-layouts/PreviewLayout.vue +9 -60
- package/frontend-vue/layers/dms-layout/app/error.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/middleware/module-routing.global.ts +1 -7
- package/frontend-vue/layers/dms-layout/app/plugins/dms-menu-sync.client.ts +1 -14
- package/frontend-vue/layers/dms-layout/app/utils/breadcrumb.ts +0 -13
- 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 +0 -3
- package/frontend-vue/layers/dms-onboarding/app/components/onboarding/steps/StepRegister.vue +1 -3
- 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/MockupDatabase.vue +165 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupHeaderActions.vue +4 -1
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupInspector.vue +1 -2
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupIssues.vue +1 -22
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupModules.vue +11 -6
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverview.vue +182 -125
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewSlot.vue +12 -114
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPinLayer.vue +4 -10
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTenantBanner.vue +48 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTopBar.vue +76 -8
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkbench.vue +65 -9
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkspaceSwitcher.vue +142 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/ExpandedRowDetail.vue +6 -26
- 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/useBlockPreviewEmbed.ts +6 -46
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupDatabase.ts +175 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupOverview.ts +35 -109
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPageFrame.ts +18 -5
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPdfExport.ts +76 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupRoutePage.ts +1 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupTenancy.ts +63 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerPages.ts +1 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerShortcuts.ts +6 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewFrame.ts +13 -68
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewLinks.ts +7 -17
- package/frontend-vue/layers/dms-ui/app/build/composables/confirm/fetchedConfirmDialog.ts +0 -6
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/defaultDisplayComponents.ts +0 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/defaultPrimitiveTypes.ts +0 -38
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/registerFieldTypes.ts +3 -69
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/useColumnValueRenderer.ts +7 -20
- package/frontend-vue/layers/dms-ui/app/build/composables/form/keyValueRows.ts +0 -36
- package/frontend-vue/layers/dms-ui/app/build/composables/form/useInstantForm.ts +0 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewGrouping.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewListing.ts +5 -21
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewSorting.ts +0 -8
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useGroupedRows.ts +4 -32
- 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 +2 -14
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/groupedRows.ts +6 -68
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/tableQuery.ts +0 -5
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCard.vue +48 -73
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCards.vue +11 -18
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupThumbnail.vue +125 -34
- package/frontend-vue/layers/dms-ui/app/build/mockups/manage.ts +3 -7
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewMessages.ts +149 -84
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewNavigation.ts +119 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockup.ts +72 -43
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupEntities.ts +80 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupFrame.ts +92 -8
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupLinks.ts +1 -35
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupOverview.ts +17 -44
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupSchema.ts +177 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupShortcuts.ts +14 -3
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupSpec.ts +14 -26
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupTenancy.ts +151 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupTenants.ts +23 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/recordGuards.ts +15 -0
- package/frontend-vue/layers/dms-ui/app/components/block-preview/BlockPreview.vue +6 -56
- package/frontend-vue/layers/dms-ui/app/components/block-preview/MockupViewer.vue +3 -0
- 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 +7 -4
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputPhone.vue +0 -5
- package/frontend-vue/layers/dms-ui/app/components/form/components/KeyValue.vue +20 -2
- package/frontend-vue/layers/dms-ui/app/components/key-value-list/KeyValueList.vue +15 -51
- package/frontend-vue/layers/dms-ui/app/composables/form/useForm.ts +8 -3
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/config.ts +0 -10
- package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupTenantBanner.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupWorkspaceSwitcher.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupPdfExport.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupTenancy.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/blockPreview.ts +0 -3
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupSchema.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTenancy.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTenants.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/types/table/query.ts +0 -5
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-en-GB.json +28 -2
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-fr-FR.json +38 -12
- package/frontend-vue/scripts/check-invariants.mjs +0 -101
- package/package.json +5 -5
- package/skills/dms/SKILL.md +2 -4
- package/skills/dms-module/SKILL.md +0 -3
- package/dist/implementations/dms-base/group-order.d.ts +0 -18
- package/dist/implementations/dms-base/group-order.js +0 -66
- package/dist/implementations/dms-base/group-order.js.map +0 -1
- package/dist/mockup/capture-routes.js +0 -101
- package/dist/mockup/capture-routes.js.map +0 -1
- package/dist/mockup/capture.d.ts +0 -10
- package/dist/mockup/capture.js +0 -64
- package/dist/mockup/capture.js.map +0 -1
- package/dist/mockup/header-action.d.ts +0 -47
- package/dist/mockup/header-action.js +0 -46
- package/dist/mockup/header-action.js.map +0 -1
- package/dist/mockup/json-schema-header.d.ts +0 -2
- package/dist/mockup/json-schema-header.js +0 -69
- package/dist/mockup/json-schema-header.js.map +0 -1
- package/dist/mockup/json-schema-layout.d.ts +0 -2
- package/dist/mockup/json-schema-layout.js +0 -61
- package/dist/mockup/json-schema-layout.js.map +0 -1
- package/dist/mockup/summary-fields.js.map +0 -1
- package/dist/mockup/table-param-filters.d.ts +0 -52
- package/dist/mockup/table-param-filters.js +0 -83
- package/dist/mockup/table-param-filters.js.map +0 -1
- package/dist/mockup/table-row-actions.d.ts +0 -2
- package/dist/mockup/table-row-actions.js +0 -85
- package/dist/mockup/table-row-actions.js.map +0 -1
- package/dist/mockup/unknown-keys.d.ts +0 -3
- package/dist/mockup/unknown-keys.js +0 -45
- package/dist/mockup/unknown-keys.js.map +0 -1
- package/dist/utils/email-plain-text.d.ts +0 -1
- package/dist/utils/email-plain-text.js +0 -95
- package/dist/utils/email-plain-text.js.map +0 -1
- package/dist/utils/html-email.d.ts +0 -8
- package/dist/utils/html-email.js +0 -9
- package/dist/utils/html-email.js.map +0 -1
- package/dist/utils/image-signatures.d.ts +0 -3
- package/dist/utils/image-signatures.js +0 -22
- package/dist/utils/image-signatures.js.map +0 -1
- package/dist/utils/sse-keepalive/index.d.ts +0 -3
- package/dist/utils/sse-keepalive/index.js +0 -8
- package/dist/utils/sse-keepalive/index.js.map +0 -1
- package/dist/validation/allowed-keys.d.ts +0 -2
- package/dist/validation/allowed-keys.js +0 -16
- package/dist/validation/allowed-keys.js.map +0 -1
- package/frontend-vue/layers/dms-core/app/build/composables/field-errors.ts +0 -485
- package/frontend-vue/layers/dms-core/app/build/composables/useHydrated.ts +0 -27
- package/frontend-vue/layers/dms-core/app/entries/composables/useHydrated.ts +0 -1
- package/frontend-vue/layers/dms-layout/app/build/components/layout/EmptyLayoutBrand.vue +0 -49
- package/frontend-vue/layers/dms-layout/app/entries/components/pages/settings/shell/SettingsShell.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewArrows.vue +0 -110
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewFrameImage.vue +0 -75
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewZoom.vue +0 -67
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewCapture.ts +0 -247
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewCaptureAssets.ts +0 -181
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewRaster.ts +0 -45
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useOverviewCaptures.ts +0 -136
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewCapture.ts +0 -96
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewChannel.ts +0 -10
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewRects.ts +0 -61
- package/frontend-vue/layers/dms-ui/app/build/utils/dotGrid.ts +0 -37
- package/frontend-vue/layers/dms-ui/app/build/utils/legalIdentifier.ts +0 -279
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupCaptures.ts +0 -130
- package/frontend-vue/layers/dms-ui/app/build/utils/previewHeader.ts +0 -154
- package/frontend-vue/layers/dms-ui/app/build/utils/previewPageLayout.ts +0 -149
- package/frontend-vue/layers/dms-ui/app/build/utils/previewPageQuery.ts +0 -42
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputIdentifier.vue +0 -90
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/previewCapture.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/previewCaptureAssets.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/usePreviewFrame.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/composables/table-view/utils/displayOptions.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/mockups/manage.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/legalIdentifier.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupCaptures.ts +0 -1
- /package/dist/mockup/{summary-fields.d.ts → store-summary.d.ts} +0 -0
|
@@ -14,12 +14,14 @@ import {
|
|
|
14
14
|
} from "./mockupMenu";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* The sidebar's menu of a mockup
|
|
18
|
-
* the default section under the real menu's Pages
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* spec
|
|
17
|
+
* The sidebar's menu of a mockup, drawn under the app's own menu: the spec's
|
|
18
|
+
* sections and pages, the default section under the real menu's Pages
|
|
19
|
+
* header, then each module as a root with its sub-sections, drawn by the
|
|
20
|
+
* dashboard's own menu (see `mockupMenu`). Picking a page tells the
|
|
21
|
+
* embedding page, which draws it. While the navigation is `editable`, the
|
|
22
|
+
* spec's sections are edited in place, as in the viewer's page list, and
|
|
23
|
+
* each change is handed to the embedding page, which writes the spec; the
|
|
24
|
+
* modules are never edited. Otherwise the menu only navigates.
|
|
23
25
|
*/
|
|
24
26
|
const props = defineProps<{
|
|
25
27
|
navigation: PreviewNavigation;
|
|
@@ -169,6 +171,19 @@ function holdDrop(event: DragEvent): void {
|
|
|
169
171
|
</template>
|
|
170
172
|
</template>
|
|
171
173
|
|
|
174
|
+
<template #mockup-module-label="{ item }">
|
|
175
|
+
<span
|
|
176
|
+
class="flex min-w-0 items-center gap-1.5"
|
|
177
|
+
:data-dms-preview-module="item['data-dms-preview-module']"
|
|
178
|
+
:data-dms-preview-module-section="
|
|
179
|
+
item['data-dms-preview-module-section']
|
|
180
|
+
"
|
|
181
|
+
>
|
|
182
|
+
<UIcon v-if="item.icon" :name="item.icon" class="size-4 shrink-0" />
|
|
183
|
+
<span class="truncate">{{ item.label }}</span>
|
|
184
|
+
</span>
|
|
185
|
+
</template>
|
|
186
|
+
|
|
172
187
|
<template #mockup-page="{ item, active, ui }">
|
|
173
188
|
<template v-for="entry in [pageOf(item)]" :key="entry?.page">
|
|
174
189
|
<span
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { ButtonProps } from "@nuxt/ui";
|
|
3
3
|
import { PREVIEW_HEADER_ATTRIBUTE } from "#dms-ui/app/entries/composables/block-preview/previewNavigation";
|
|
4
|
-
import {
|
|
5
|
-
import type {
|
|
6
|
-
PreviewHeader,
|
|
7
|
-
PreviewHeaderAction,
|
|
8
|
-
} from "#dms-ui/app/entries/utils/blockPreview";
|
|
4
|
+
import type { PreviewHeader } from "#dms-ui/app/entries/utils/blockPreview";
|
|
9
5
|
import PageHeader from "./PageHeader.vue";
|
|
10
6
|
import { headerButtonProps } from "./headerButton";
|
|
11
7
|
|
|
12
8
|
/**
|
|
13
9
|
* The page header a mockup draws above its blocks: the dashboard's own
|
|
14
10
|
* `PageHeader`, fed by the spec page's fields instead of the page's layout,
|
|
15
|
-
* with its buttons drawn as the page header bar draws them
|
|
16
|
-
*
|
|
17
|
-
* a row action does; one with neither does nothing. Clicking the header
|
|
18
|
-
* while inspecting picks the page.
|
|
11
|
+
* with its buttons drawn as the page header bar draws them and none of what
|
|
12
|
+
* they would do. Clicking it while inspecting picks the page.
|
|
19
13
|
*/
|
|
20
14
|
const props = defineProps<{ header: PreviewHeader }>();
|
|
21
15
|
|
|
@@ -25,20 +19,10 @@ const ACTIONS_CLASS =
|
|
|
25
19
|
|
|
26
20
|
const marker = { [PREVIEW_HEADER_ATTRIBUTE]: "" };
|
|
27
21
|
|
|
28
|
-
const { confirmAction } = useActionConfirm();
|
|
29
|
-
|
|
30
|
-
async function press(action: PreviewHeaderAction): Promise<void> {
|
|
31
|
-
if (action.confirm && !(await confirmAction(action.confirm))) return;
|
|
32
|
-
if (action.target) await navigateDms(action.target.url);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
22
|
const actions = computed(() =>
|
|
36
23
|
(props.header.actions ?? []).map((action): ButtonProps => ({
|
|
37
24
|
...headerButtonProps(action),
|
|
38
25
|
label: action.label,
|
|
39
|
-
...((action.target || action.confirm) && {
|
|
40
|
-
onClick: () => void press(action),
|
|
41
|
-
}),
|
|
42
26
|
})),
|
|
43
27
|
);
|
|
44
28
|
</script>
|
|
@@ -3,6 +3,7 @@ import type {
|
|
|
3
3
|
PreviewNavigation,
|
|
4
4
|
PreviewNavigationCategory,
|
|
5
5
|
PreviewNavigationItem,
|
|
6
|
+
PreviewNavigationModule,
|
|
6
7
|
} from "#dms-ui/app/entries/utils/blockPreview";
|
|
7
8
|
import { DEFAULT_PAGE_ICON } from "../../../utils/dms-icons";
|
|
8
9
|
|
|
@@ -12,8 +13,16 @@ export const MOCKUP_SECTION_SLOT = "mockup-section";
|
|
|
12
13
|
/** The menu slot drawing a mockup page's row. */
|
|
13
14
|
export const MOCKUP_PAGE_SLOT = "mockup-page";
|
|
14
15
|
|
|
16
|
+
/** The menu slot drawing a module's root header and the labels of its sub-sections. */
|
|
17
|
+
export const MOCKUP_MODULE_SLOT = "mockup-module";
|
|
18
|
+
|
|
15
19
|
const SECTION_ID_PREFIX = "mockup-section:";
|
|
16
20
|
const PAGE_ID_PREFIX = "mockup-page:";
|
|
21
|
+
const MODULE_ID_PREFIX = "mockup-module:";
|
|
22
|
+
/** Sets a module's sub-section, its label and its rows, in from the module's root. */
|
|
23
|
+
const MODULE_NESTED_CLASS = "ps-6";
|
|
24
|
+
/** Spaces a sub-section's label from the rows above it. */
|
|
25
|
+
const MODULE_SECTION_LABEL_CLASS = `${MODULE_NESTED_CLASS} pt-3`;
|
|
17
26
|
|
|
18
27
|
/** A mockup section's header: the default section's has no category. */
|
|
19
28
|
export interface MockupMenuSection {
|
|
@@ -37,7 +46,11 @@ export interface MockupMenuPage {
|
|
|
37
46
|
|
|
38
47
|
export type MockupMenuEntry = MockupMenuSection | MockupMenuPage;
|
|
39
48
|
|
|
40
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* A mockup's menu: the groups the sidebar draws, and what each entry of the
|
|
51
|
+
* spec's own sections stands for. A module's header and rows are in `groups`
|
|
52
|
+
* alone: they are read-only, so no entry stands for them.
|
|
53
|
+
*/
|
|
41
54
|
export interface MockupMenu {
|
|
42
55
|
groups: NavigationMenuItem[][];
|
|
43
56
|
entries: ReadonlyMap<string, MockupMenuEntry>;
|
|
@@ -86,25 +99,110 @@ function pageItem(
|
|
|
86
99
|
};
|
|
87
100
|
}
|
|
88
101
|
|
|
102
|
+
/** A module's header: its icon and title, a menu root under the app's own menu. */
|
|
103
|
+
function moduleHeader(module: PreviewNavigationModule): NavigationMenuItem {
|
|
104
|
+
return {
|
|
105
|
+
id: `${MODULE_ID_PREFIX}${module.id}`,
|
|
106
|
+
type: "label",
|
|
107
|
+
label: module.title,
|
|
108
|
+
icon: module.icon,
|
|
109
|
+
slot: MOCKUP_MODULE_SLOT,
|
|
110
|
+
"data-dms-preview-module": module.id,
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** The label of a module's sub-section: its category's title and icon. */
|
|
115
|
+
function moduleSectionLabel(
|
|
116
|
+
module: PreviewNavigationModule,
|
|
117
|
+
category: PreviewNavigationCategory,
|
|
118
|
+
): NavigationMenuItem {
|
|
119
|
+
return {
|
|
120
|
+
id: `${MODULE_ID_PREFIX}${module.id}:${category.id}`,
|
|
121
|
+
type: "label",
|
|
122
|
+
label: category.title,
|
|
123
|
+
icon: category.icon,
|
|
124
|
+
slot: MOCKUP_MODULE_SLOT,
|
|
125
|
+
class: MODULE_SECTION_LABEL_CLASS,
|
|
126
|
+
"data-dms-preview-module-section": category.id,
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* A module page's row: it picks the page like a spec page's, but is no
|
|
132
|
+
* entry, so it is never dragged or edited. A row of a sub-section is set in
|
|
133
|
+
* under its label.
|
|
134
|
+
*/
|
|
135
|
+
function modulePageItem(
|
|
136
|
+
item: PreviewNavigationItem,
|
|
137
|
+
isActive: boolean,
|
|
138
|
+
isNested: boolean,
|
|
139
|
+
select: (id: string) => void,
|
|
140
|
+
): NavigationMenuItem {
|
|
141
|
+
return {
|
|
142
|
+
...(isNested && { class: MODULE_NESTED_CLASS }),
|
|
143
|
+
label: item.label,
|
|
144
|
+
icon: item.icon ?? DEFAULT_PAGE_ICON,
|
|
145
|
+
active: isActive,
|
|
146
|
+
"aria-label": item.label,
|
|
147
|
+
"aria-current": isActive ? "page" : undefined,
|
|
148
|
+
"data-dms-preview-page": item.id,
|
|
149
|
+
onSelect: () => select(item.id),
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/** A module's group: its header, then its root pages, then each sub-section as a label over its pages. */
|
|
154
|
+
function moduleGroup(
|
|
155
|
+
module: PreviewNavigationModule,
|
|
156
|
+
active: string | undefined,
|
|
157
|
+
select: (id: string) => void,
|
|
158
|
+
): NavigationMenuItem[] {
|
|
159
|
+
const group = [moduleHeader(module)];
|
|
160
|
+
for (const section of module.sections) {
|
|
161
|
+
if (section.category) {
|
|
162
|
+
group.push(moduleSectionLabel(module, section.category));
|
|
163
|
+
}
|
|
164
|
+
for (const item of section.items) {
|
|
165
|
+
group.push(
|
|
166
|
+
modulePageItem(
|
|
167
|
+
item,
|
|
168
|
+
item.id === active,
|
|
169
|
+
section.category !== undefined,
|
|
170
|
+
select,
|
|
171
|
+
),
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return group;
|
|
176
|
+
}
|
|
177
|
+
|
|
89
178
|
/**
|
|
90
|
-
* The sidebar's menu of a mockup
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* section
|
|
179
|
+
* The sidebar's menu of a mockup, drawn after the app's own menu: first the
|
|
180
|
+
* spec's own sections, then one group per module, in the spec's order. A
|
|
181
|
+
* section is a label over its pages, the default one (pages without
|
|
182
|
+
* category) under the real menu's Pages header, and each page a row with its
|
|
183
|
+
* icon, the active one highlighted. A section with no page is left out,
|
|
184
|
+
* except while editing, when every category is listed, and the default
|
|
185
|
+
* section too once there are categories to drag its pages from. A module is
|
|
186
|
+
* a root header with its icon and title, then its root pages, then each of
|
|
187
|
+
* its categories as a label over its pages. Its header and rows are
|
|
188
|
+
* read-only: a row picks its page and highlights while active, but is not
|
|
189
|
+
* draggable, and no editing entry stands for it.
|
|
97
190
|
*/
|
|
98
191
|
export function mockupMenu(
|
|
99
192
|
navigation: PreviewNavigation,
|
|
100
193
|
options: MockupMenuOptions,
|
|
101
194
|
): MockupMenu {
|
|
102
195
|
const isEditable = navigation.editable === true;
|
|
196
|
+
const hasCategories = navigation.sections.some(
|
|
197
|
+
(section) => section.category !== undefined,
|
|
198
|
+
);
|
|
103
199
|
const entries = new Map<string, MockupMenuEntry>();
|
|
104
200
|
const groups: NavigationMenuItem[][] = [];
|
|
105
201
|
navigation.sections.forEach((section, index) => {
|
|
106
202
|
const isEmpty = section.items.length === 0;
|
|
107
|
-
const isListed =
|
|
203
|
+
const isListed =
|
|
204
|
+
!isEmpty ||
|
|
205
|
+
(isEditable && (section.category !== undefined || hasCategories));
|
|
108
206
|
if (!isListed) return;
|
|
109
207
|
const id = `${SECTION_ID_PREFIX}${index}`;
|
|
110
208
|
entries.set(id, {
|
|
@@ -129,5 +227,8 @@ export function mockupMenu(
|
|
|
129
227
|
});
|
|
130
228
|
groups.push(group);
|
|
131
229
|
});
|
|
230
|
+
for (const module of navigation.modules ?? []) {
|
|
231
|
+
groups.push(moduleGroup(module, navigation.active, options.select));
|
|
232
|
+
}
|
|
132
233
|
return { groups, entries };
|
|
133
234
|
}
|
package/frontend-vue/layers/dms-layout/app/build/components/notification/NotificationPopover.vue
CHANGED
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
} from "../../../composables/notification/useNotifications";
|
|
11
11
|
import {
|
|
12
12
|
formatNotificationFullTime,
|
|
13
|
-
localizeNotificationParams,
|
|
14
13
|
resolveNotificationTone,
|
|
15
14
|
} from "../pages/settings/notification/notificationDisplay";
|
|
16
15
|
import { DMS_TONE_SOLID, iconWellToneOf } from "#dms-ui/app/entries/utils/tone";
|
|
@@ -55,9 +54,6 @@ const { isLoadingMore, setupObserver, disconnectObserver } = useInfiniteScroll(
|
|
|
55
54
|
const iconWellTone = (notification: UserNotification) =>
|
|
56
55
|
iconWellToneOf(resolveNotificationTone(notification));
|
|
57
56
|
|
|
58
|
-
const paramsOf = (notification: UserNotification) =>
|
|
59
|
-
localizeNotificationParams(notification.params, t);
|
|
60
|
-
|
|
61
57
|
const formatCount = (count: number) =>
|
|
62
58
|
count > MAX_DISPLAYED_COUNT ? `${MAX_DISPLAYED_COUNT}+` : String(count);
|
|
63
59
|
|
|
@@ -220,9 +216,7 @@ const goToNotifications = () => {
|
|
|
220
216
|
|
|
221
217
|
<template #title>
|
|
222
218
|
<div class="text-highlighted mb-0.5 text-xs font-medium">
|
|
223
|
-
{{
|
|
224
|
-
processI18n(notification.title ?? "", paramsOf(notification))
|
|
225
|
-
}}
|
|
219
|
+
{{ processI18n(notification.title ?? "", notification.params) }}
|
|
226
220
|
</div>
|
|
227
221
|
</template>
|
|
228
222
|
|
|
@@ -231,7 +225,7 @@ const goToNotifications = () => {
|
|
|
231
225
|
{{
|
|
232
226
|
processI18n(
|
|
233
227
|
notification.description ?? "",
|
|
234
|
-
|
|
228
|
+
notification.params,
|
|
235
229
|
)
|
|
236
230
|
}}
|
|
237
231
|
</div>
|
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
type NotificationSourceTag,
|
|
6
6
|
SOURCE_TAG_CLASS,
|
|
7
7
|
formatNotificationFullTime,
|
|
8
|
-
localizeNotificationParams,
|
|
9
8
|
resolveNotificationTone,
|
|
10
9
|
} from "./notificationDisplay";
|
|
11
10
|
|
|
@@ -25,9 +24,6 @@ const { t, locale } = useI18n();
|
|
|
25
24
|
const { processI18n } = useTranslation();
|
|
26
25
|
|
|
27
26
|
const isUnread = computed(() => !props.notification.isRead);
|
|
28
|
-
const params = computed(() =>
|
|
29
|
-
localizeNotificationParams(props.notification.params, t),
|
|
30
|
-
);
|
|
31
27
|
const iconWellTone = computed(() => {
|
|
32
28
|
const tone = resolveNotificationTone(props.notification);
|
|
33
29
|
return tone === "neutral" ? "muted" : tone;
|
|
@@ -66,10 +62,17 @@ const actionLabelUi = {
|
|
|
66
62
|
class="block text-left outline-none"
|
|
67
63
|
@click.stop="emit('open')"
|
|
68
64
|
>
|
|
69
|
-
{{
|
|
65
|
+
{{
|
|
66
|
+
processI18n(props.notification.title ?? "", props.notification.params)
|
|
67
|
+
}}
|
|
70
68
|
</button>
|
|
71
69
|
<template #description>
|
|
72
|
-
{{
|
|
70
|
+
{{
|
|
71
|
+
processI18n(
|
|
72
|
+
props.notification.description ?? "",
|
|
73
|
+
props.notification.params,
|
|
74
|
+
)
|
|
75
|
+
}}
|
|
73
76
|
</template>
|
|
74
77
|
<template #meta>
|
|
75
78
|
<time :datetime="props.notification.createdAt" :title="fullTime">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { NotificationCategory } from "../../../../composables/notification/useNotificationCatalog";
|
|
3
3
|
import {
|
|
4
|
-
|
|
4
|
+
MATRIX_GRID_CLASS,
|
|
5
5
|
MODULE_TAG_CLASS,
|
|
6
6
|
SOURCE_TAG_CLASS,
|
|
7
7
|
} from "./notificationDisplay";
|
|
@@ -21,8 +21,6 @@ interface NotificationMatrixCategoryProps {
|
|
|
21
21
|
expanded: boolean;
|
|
22
22
|
/** Id of the element holding the subjects, for `aria-controls`. */
|
|
23
23
|
controls: string;
|
|
24
|
-
/** A mail channel is registered: the matrix has its email column. */
|
|
25
|
-
emailChannel?: boolean;
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
const props = defineProps<NotificationMatrixCategoryProps>();
|
|
@@ -42,12 +40,11 @@ const countLabel = computed(() =>
|
|
|
42
40
|
const iconWellTone = computed(() =>
|
|
43
41
|
props.category.tagKey ? "primary" : "muted",
|
|
44
42
|
);
|
|
45
|
-
const gridClass = computed(() => matrixGridClass(props.emailChannel === true));
|
|
46
43
|
</script>
|
|
47
44
|
|
|
48
45
|
<template>
|
|
49
46
|
<div
|
|
50
|
-
:class="[
|
|
47
|
+
:class="[MATRIX_GRID_CLASS, props.first ? 'border-t-0' : 'border-t']"
|
|
51
48
|
class="border-default min-h-14 bg-[color-mix(in_srgb,var(--dms-bg-muted)_55%,transparent)] py-2.5"
|
|
52
49
|
role="row"
|
|
53
50
|
>
|
|
@@ -121,7 +118,6 @@ const gridClass = computed(() => matrixGridClass(props.emailChannel === true));
|
|
|
121
118
|
/>
|
|
122
119
|
</div>
|
|
123
120
|
<div
|
|
124
|
-
v-if="props.emailChannel"
|
|
125
121
|
class="text-dimmed flex justify-center font-mono text-xs font-medium"
|
|
126
122
|
role="cell"
|
|
127
123
|
>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { NotificationSubject } from "../../../../composables/notification/useNotificationCatalog";
|
|
3
3
|
import type { SaveStatusState } from "#dms-ui/app/components/save-bar/SaveStatus.vue";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
MATRIX_GRID_CLASS,
|
|
6
6
|
MATRIX_SUBJECT_INDENT_CLASS,
|
|
7
7
|
} from "./notificationDisplay";
|
|
8
8
|
|
|
@@ -10,8 +10,6 @@ interface NotificationMatrixSubjectProps {
|
|
|
10
10
|
subject: NotificationSubject;
|
|
11
11
|
enabled: boolean;
|
|
12
12
|
state: SaveStatusState;
|
|
13
|
-
/** A mail channel is registered: the matrix has its email column. */
|
|
14
|
-
emailChannel?: boolean;
|
|
15
13
|
emailEnabled?: boolean;
|
|
16
14
|
}
|
|
17
15
|
|
|
@@ -24,7 +22,6 @@ const emit = defineEmits<{
|
|
|
24
22
|
const { t } = useI18n();
|
|
25
23
|
|
|
26
24
|
const label = computed(() => t(props.subject.labelKey));
|
|
27
|
-
const gridClass = computed(() => matrixGridClass(props.emailChannel === true));
|
|
28
25
|
const isLocked = computed(() => props.subject.locked === true);
|
|
29
26
|
/** E-mail follows the in-app notification: none is sent without it. */
|
|
30
27
|
const isEmailDisabled = computed(() => isLocked.value || !props.enabled);
|
|
@@ -46,7 +43,7 @@ const onToggleEmail = (value: boolean) => {
|
|
|
46
43
|
|
|
47
44
|
<template>
|
|
48
45
|
<div
|
|
49
|
-
:class="
|
|
46
|
+
:class="MATRIX_GRID_CLASS"
|
|
50
47
|
class="border-muted min-h-[50px] border-t py-2"
|
|
51
48
|
role="row"
|
|
52
49
|
>
|
|
@@ -88,28 +85,26 @@ const onToggleEmail = (value: boolean) => {
|
|
|
88
85
|
@update:model-value="onToggle"
|
|
89
86
|
/>
|
|
90
87
|
</div>
|
|
91
|
-
<
|
|
92
|
-
<
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
</div>
|
|
112
|
-
</template>
|
|
88
|
+
<div v-if="props.subject.email" class="flex justify-center" role="cell">
|
|
89
|
+
<USwitch
|
|
90
|
+
:model-value="props.emailEnabled"
|
|
91
|
+
:disabled="isEmailDisabled"
|
|
92
|
+
:title="emailTitle"
|
|
93
|
+
:aria-label="
|
|
94
|
+
t('page.settings.notifications.email_switch', { name: label })
|
|
95
|
+
"
|
|
96
|
+
:aria-busy="props.state === 'saving'"
|
|
97
|
+
data-channel="email"
|
|
98
|
+
@update:model-value="onToggleEmail"
|
|
99
|
+
/>
|
|
100
|
+
</div>
|
|
101
|
+
<div
|
|
102
|
+
v-else
|
|
103
|
+
class="text-dimmed flex justify-center font-mono text-xs font-medium"
|
|
104
|
+
role="cell"
|
|
105
|
+
>
|
|
106
|
+
—
|
|
107
|
+
</div>
|
|
113
108
|
<div class="flex justify-end" role="cell">
|
|
114
109
|
<DmsSaveStatus
|
|
115
110
|
v-if="props.state !== 'idle'"
|
|
@@ -9,7 +9,7 @@ import NotificationMatrixSubject from "./NotificationMatrixSubject.vue";
|
|
|
9
9
|
import {
|
|
10
10
|
categorySubjectsElementId,
|
|
11
11
|
MATRIX_CONTAINER_CLASS,
|
|
12
|
-
|
|
12
|
+
MATRIX_GRID_CLASS,
|
|
13
13
|
} from "./notificationDisplay";
|
|
14
14
|
import DmsRowSkeleton from "#dms-ui/app/entries/components/skeleton/RowSkeleton";
|
|
15
15
|
|
|
@@ -52,8 +52,6 @@ const isCategoryOn = (category: NotificationCategory) => {
|
|
|
52
52
|
|
|
53
53
|
useInstantSaveHeader(() => saveState.value);
|
|
54
54
|
|
|
55
|
-
const gridClass = computed(() => matrixGridClass(hasEmailChannel.value));
|
|
56
|
-
|
|
57
55
|
/** Names the direction the failed switch went back to, as v2 words it. */
|
|
58
56
|
const failureMessage = computed(() => {
|
|
59
57
|
const changes = Object.values(failedChanges.value ?? {});
|
|
@@ -78,7 +76,7 @@ const failureMessage = computed(() => {
|
|
|
78
76
|
>
|
|
79
77
|
<div
|
|
80
78
|
:class="[
|
|
81
|
-
|
|
79
|
+
MATRIX_GRID_CLASS,
|
|
82
80
|
EYEBROW_CLASS,
|
|
83
81
|
'border-default text-dimmed h-[34px] border-b bg-(--dms-bg-muted)',
|
|
84
82
|
]"
|
|
@@ -91,11 +89,17 @@ const failureMessage = computed(() => {
|
|
|
91
89
|
{{ t("page.settings.notifications.column_in_app") }}
|
|
92
90
|
</span>
|
|
93
91
|
<span
|
|
94
|
-
|
|
95
|
-
class="text-center whitespace-nowrap"
|
|
92
|
+
class="flex items-center justify-center gap-1.5 whitespace-nowrap"
|
|
96
93
|
role="columnheader"
|
|
97
94
|
>
|
|
98
95
|
{{ t("page.settings.notifications.column_email") }}
|
|
96
|
+
<UBadge
|
|
97
|
+
v-if="!hasEmailChannel"
|
|
98
|
+
color="neutral"
|
|
99
|
+
size="sm"
|
|
100
|
+
class="tracking-[0.04em]"
|
|
101
|
+
:label="t('page.settings.notifications.soon')"
|
|
102
|
+
/>
|
|
99
103
|
</span>
|
|
100
104
|
<span role="columnheader">
|
|
101
105
|
<span class="sr-only">
|
|
@@ -145,7 +149,6 @@ const failureMessage = computed(() => {
|
|
|
145
149
|
:first="index === 0"
|
|
146
150
|
:expanded="isOpen(category.id)"
|
|
147
151
|
:controls="categorySubjectsElementId(category.id)"
|
|
148
|
-
:email-channel="hasEmailChannel"
|
|
149
152
|
@toggle="(enabled) => toggleCategory(category, enabled)"
|
|
150
153
|
@toggle-expanded="toggleOpen(category.id)"
|
|
151
154
|
/>
|
|
@@ -161,7 +164,6 @@ const failureMessage = computed(() => {
|
|
|
161
164
|
:subject="subject"
|
|
162
165
|
:enabled="isEnabled(subject)"
|
|
163
166
|
:state="rowState(subject)"
|
|
164
|
-
:email-channel="hasEmailChannel"
|
|
165
167
|
:email-enabled="isEmailEnabled(subject)"
|
|
166
168
|
@toggle="(enabled) => toggleSubject(subject, enabled)"
|
|
167
169
|
@toggle-email="(enabled) => toggleEmail(subject, enabled)"
|
|
@@ -9,30 +9,6 @@ import type {
|
|
|
9
9
|
NotificationTone,
|
|
10
10
|
UserNotification,
|
|
11
11
|
} from "../../../../../composables/notification/useNotifications";
|
|
12
|
-
import { isString } from "#dms-core/app/utils/type-check";
|
|
13
|
-
|
|
14
|
-
/** The country a sign-in came from, as an ISO 3166-1 alpha-2 code. */
|
|
15
|
-
const COUNTRY_CODE_PARAM = "countryCode";
|
|
16
|
-
/** The country's name, as the texts interpolate it. */
|
|
17
|
-
const COUNTRY_PARAM = "country";
|
|
18
|
-
const COUNTRY_NAME_KEY_PREFIX = "country.";
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* A notification's parameters as its texts interpolate them: the country
|
|
22
|
-
* named in the reader's language from its code, where the server wrote the
|
|
23
|
-
* name in the language the account read at the time. A code the locale does
|
|
24
|
-
* not name keeps the server's name.
|
|
25
|
-
*/
|
|
26
|
-
export const localizeNotificationParams = (
|
|
27
|
-
params: UserNotification["params"],
|
|
28
|
-
t: (key: string) => string,
|
|
29
|
-
): UserNotification["params"] => {
|
|
30
|
-
const code = params?.[COUNTRY_CODE_PARAM];
|
|
31
|
-
if (!isString(code)) return params;
|
|
32
|
-
const key = `${COUNTRY_NAME_KEY_PREFIX}${code}`;
|
|
33
|
-
const name = t(key);
|
|
34
|
-
return name === key ? params : { ...params, [COUNTRY_PARAM]: name };
|
|
35
|
-
};
|
|
36
12
|
|
|
37
13
|
/**
|
|
38
14
|
* Notifications without a tone stand out in `primary` until read. Mirrors
|
|
@@ -129,24 +105,12 @@ export const MATRIX_CONTAINER_CLASS = "@container/matrix";
|
|
|
129
105
|
/**
|
|
130
106
|
* v2 .cs-matrix grid: subject, in-app, email, state. Under 672px of matrix
|
|
131
107
|
* the state column goes; under 448px (phones) only the subject and in-app
|
|
132
|
-
* columns remain. The email column fits its header on one line,
|
|
133
|
-
* too.
|
|
108
|
+
* columns remain. The email column fits its header on one line, the label
|
|
109
|
+
* and its "Soon" badge, in French too.
|
|
134
110
|
*/
|
|
135
|
-
const MATRIX_GRID_CLASS =
|
|
111
|
+
export const MATRIX_GRID_CLASS =
|
|
136
112
|
"grid grid-cols-[minmax(0,1fr)_80px_120px_168px] items-center gap-x-3 px-[18px] @max-2xl/matrix:grid-cols-[minmax(0,1fr)_80px_120px] @max-2xl/matrix:[&>:nth-child(4)]:hidden @max-md/matrix:grid-cols-[minmax(0,1fr)_60px] @max-md/matrix:[&>:nth-child(n+3)]:hidden";
|
|
137
113
|
|
|
138
|
-
/**
|
|
139
|
-
* The grid without the email column, while no mail channel is registered:
|
|
140
|
-
* subject, in-app, state. A column of dashes under a "Soon" badge said
|
|
141
|
-
* nothing a row could act on; the footer note says it once.
|
|
142
|
-
*/
|
|
143
|
-
const MATRIX_GRID_IN_APP_ONLY_CLASS =
|
|
144
|
-
"grid grid-cols-[minmax(0,1fr)_80px_168px] items-center gap-x-3 px-[18px] @max-2xl/matrix:grid-cols-[minmax(0,1fr)_80px] @max-2xl/matrix:[&>:nth-child(3)]:hidden @max-md/matrix:grid-cols-[minmax(0,1fr)_60px]";
|
|
145
|
-
|
|
146
|
-
/** The row grid of the matrix, with the email column while mail is delivered. */
|
|
147
|
-
export const matrixGridClass = (emailChannel: boolean): string =>
|
|
148
|
-
emailChannel ? MATRIX_GRID_CLASS : MATRIX_GRID_IN_APP_ONLY_CLASS;
|
|
149
|
-
|
|
150
114
|
/**
|
|
151
115
|
* The subject's indent under its category: past the caret and the icon
|
|
152
116
|
* well, under the category's title. Dropped where only two columns remain.
|
package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/shell/SettingsShell.vue
CHANGED
|
@@ -1,36 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import SettingsNav from "./SettingsNav.vue";
|
|
3
|
-
|
|
4
|
-
interface Props {
|
|
5
|
-
/**
|
|
6
|
-
* The settings navigation beside the page: `live`, `inert` (drawn without
|
|
7
|
-
* opening a page, in a mockup preview), or `none` (the page alone).
|
|
8
|
-
*/
|
|
9
|
-
nav?: "live" | "inert" | "none";
|
|
10
|
-
/** The page takes the height the shell is given (`fillHeight`). */
|
|
11
|
-
fillHeight?: boolean;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
15
|
-
nav: "live",
|
|
16
|
-
fillHeight: false,
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
const GRID_CLASS =
|
|
20
|
-
"mx-auto grid w-full max-w-[1200px] gap-4 lg:grid-cols-[216px_minmax(0,1fr)] lg:gap-6 xl:gap-10";
|
|
21
|
-
const CONTENT_CLASS = "@container/settings min-w-0";
|
|
22
|
-
|
|
23
|
-
const fillClass = computed(() =>
|
|
24
|
-
props.fillHeight ? PAGE_FILL_HEIGHT_CLASSES.column : undefined,
|
|
25
|
-
);
|
|
26
|
-
const rootClass = computed(() => [
|
|
27
|
-
props.nav !== "none" && GRID_CLASS,
|
|
28
|
-
fillClass.value,
|
|
29
|
-
]);
|
|
30
|
-
const contentClass = computed(() => [
|
|
31
|
-
props.nav !== "none" && CONTENT_CLASS,
|
|
32
|
-
fillClass.value,
|
|
33
|
-
]);
|
|
34
3
|
</script>
|
|
35
4
|
|
|
36
5
|
<template>
|
|
@@ -39,16 +8,14 @@ const contentClass = computed(() => [
|
|
|
39
8
|
padding already gives the gap; any extra offset pushed the nav below
|
|
40
9
|
its place whenever the content was tall enough, so it jumped on page
|
|
41
10
|
changes and sat higher on short pages. -->
|
|
42
|
-
<div
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
class="lg:sticky lg:top-0 lg:self-start"
|
|
47
|
-
/>
|
|
11
|
+
<div
|
|
12
|
+
class="mx-auto grid w-full max-w-[1200px] gap-4 lg:grid-cols-[216px_minmax(0,1fr)] lg:gap-6 xl:gap-10"
|
|
13
|
+
>
|
|
14
|
+
<SettingsNav class="lg:sticky lg:top-0 lg:self-start" />
|
|
48
15
|
<!-- The content column is a size container: at lg the app sidebar and
|
|
49
16
|
this nav leave it narrower than a phone in landscape, so the pages
|
|
50
17
|
lay out from its width (@…/settings variants), not the viewport's. -->
|
|
51
|
-
<div
|
|
18
|
+
<div class="@container/settings min-w-0">
|
|
52
19
|
<slot />
|
|
53
20
|
</div>
|
|
54
21
|
</div>
|
|
@@ -89,7 +89,9 @@ export function useProfilePreferences() {
|
|
|
89
89
|
|
|
90
90
|
const languageName = computed(() => {
|
|
91
91
|
const tag = locale.value;
|
|
92
|
-
|
|
92
|
+
const name =
|
|
93
|
+
uniqueLocales.value.find((entry) => entry.code === tag)?.name ?? tag;
|
|
94
|
+
return name.charAt(0).toLocaleUpperCase(tag) + name.slice(1);
|
|
93
95
|
});
|
|
94
96
|
const regionSummary = computed(() => {
|
|
95
97
|
if (!isMounted.value) return undefined;
|