@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
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.readGroupOrder = readGroupOrder;
|
|
4
|
-
exports.listGroupedPage = listGroupedPage;
|
|
5
|
-
const interface_api_util_1 = require("@antelopejs/interface-api-util");
|
|
6
|
-
const group_order_1 = require("@antelopejs/interface-dms/base/table-view/internal/group-order");
|
|
7
|
-
const GROUP_ORDER_KEY = "groupOrder";
|
|
8
|
-
const HTTP_BAD_REQUEST = 400;
|
|
9
|
-
const DESCENDING = "desc";
|
|
10
|
-
function parseGroupOrder(raw) {
|
|
11
|
-
let json;
|
|
12
|
-
try {
|
|
13
|
-
json = JSON.parse(raw);
|
|
14
|
-
}
|
|
15
|
-
catch {
|
|
16
|
-
(0, interface_api_util_1.assert)(false, HTTP_BAD_REQUEST, `${GROUP_ORDER_KEY} is not JSON.`);
|
|
17
|
-
}
|
|
18
|
-
const parsed = group_order_1.groupOrderSchema.safeParse(json);
|
|
19
|
-
(0, interface_api_util_1.assert)(parsed.success, HTTP_BAD_REQUEST, `${GROUP_ORDER_KEY} must list 1 to ${group_order_1.MAX_GROUP_ORDER_VALUES} strings, numbers or booleans.`);
|
|
20
|
-
return parsed.data;
|
|
21
|
-
}
|
|
22
|
-
function readGroupOrder(reqCtx, params, meta, pluck) {
|
|
23
|
-
const raw = reqCtx.url.searchParams.get(GROUP_ORDER_KEY);
|
|
24
|
-
if (raw === null)
|
|
25
|
-
return undefined;
|
|
26
|
-
const field = params.sortKey;
|
|
27
|
-
(0, interface_api_util_1.assert)(field && meta.fields[field]?.sortable && (!pluck || pluck.has(field)), HTTP_BAD_REQUEST, `${GROUP_ORDER_KEY} orders the values of the sorted field: sort on a sortable, listed field.`);
|
|
28
|
-
const values = parseGroupOrder(raw);
|
|
29
|
-
return {
|
|
30
|
-
field,
|
|
31
|
-
values: params.sortDirection === DESCENDING ? values.reverse() : values,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
function groupSelections(query, { field, values }) {
|
|
35
|
-
const valueOf = (row) => row.key(field).default(null);
|
|
36
|
-
const listed = values.map((value) => query.filter((row) => valueOf(row).eq(value)));
|
|
37
|
-
const others = query.filter((row) => {
|
|
38
|
-
const unlisted = values
|
|
39
|
-
.slice(1)
|
|
40
|
-
.reduce((all, value) => all.and(valueOf(row).ne(value)), valueOf(row).ne(values[0]));
|
|
41
|
-
return valueOf(row).eq(null).or(unlisted);
|
|
42
|
-
});
|
|
43
|
-
return [...listed, others];
|
|
44
|
-
}
|
|
45
|
-
async function listGroupedPage(query, order, window, readPage) {
|
|
46
|
-
const selections = groupSelections(query, order);
|
|
47
|
-
const counts = await Promise.all(selections.map((selection) => selection.count().run()));
|
|
48
|
-
const reads = [];
|
|
49
|
-
let skip = window.offset;
|
|
50
|
-
let left = window.limit;
|
|
51
|
-
selections.forEach((selection, index) => {
|
|
52
|
-
const count = counts[index];
|
|
53
|
-
if (left <= 0)
|
|
54
|
-
return;
|
|
55
|
-
if (skip >= count) {
|
|
56
|
-
skip -= count;
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
const taken = Math.min(left, count - skip);
|
|
60
|
-
reads.push(readPage(selection, { offset: skip, limit: taken }));
|
|
61
|
-
skip = 0;
|
|
62
|
-
left -= taken;
|
|
63
|
-
});
|
|
64
|
-
return (await Promise.all(reads)).flat();
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=group-order.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"group-order.js","sourceRoot":"","sources":["../../../src/implementations/dms-base/group-order.ts"],"names":[],"mappings":";;;;AACA,uEAAwD;AAWxD,gGAGwE;AAOxE,MAAM,eAAe,GAAG,YAAY,CAAC;AAErC,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,UAAU,GAAG,MAAM,CAAC;AAU1B,SAAS,eAAe,CAAC,GAAW;IAClC,IAAI,IAAa,CAAC;IAClB,IAAI,CAAC;QACH,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAAC,MAAM,CAAC;QACP,IAAA,2BAAM,EAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,eAAe,eAAe,CAAC,CAAC;IACrE,CAAC;IACD,MAAM,MAAM,GAAG,8BAAgB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAChD,IAAA,2BAAM,EACJ,MAAM,CAAC,OAAO,EACd,gBAAgB,EAChB,GAAG,eAAe,mBAAmB,oCAAsB,gCAAgC,CAC5F,CAAC;IACF,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB,CAAC;AAOD,wBACE,MAAsB,EACtB,MAAiC,EACjC,IAAiB,EACjB,KAA8B;IAE9B,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IACzD,IAAI,GAAG,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IACnC,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC;IAC7B,IAAA,2BAAM,EACJ,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,QAAQ,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EACrE,gBAAgB,EAChB,GAAG,eAAe,2EAA2E,CAC9F,CAAC;IACF,MAA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E;IAE5E,MAAM,UAAU,GAAG,eAAe,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACjD,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,GAAG,CAC9B,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,CACvD,CAAC;IACF,MAAM,KAAK,GAAqB,EAAE,CAAC;IACnC,IAAI,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;IACzB,IAAI,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC;IACxB,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE;QACtC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5B,IAAI,IAAI,IAAI,CAAC;YAAE,OAAO;QACtB,IAAI,IAAI,IAAI,KAAK,EAAE,CAAC;YAClB,IAAI,IAAI,KAAK,CAAC;YACd,OAAO;QACT,CAAC;QACD,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC,CAAC;QAC3C,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;QAChE,IAAI,GAAG,CAAC,CAAC;QACT,IAAI,IAAI,KAAK,CAAC;IAChB,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AAC3C,CAAC"}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.registerCaptureRoutes = registerCaptureRoutes;
|
|
16
|
-
const interface_api_1 = require("@antelopejs/interface-api");
|
|
17
|
-
const zod_1 = require("zod");
|
|
18
|
-
const capture_1 = require("./capture");
|
|
19
|
-
const fixtures_1 = require("./fixtures");
|
|
20
|
-
const model_1 = require("./model");
|
|
21
|
-
const owner_controller_1 = require("./owner-controller");
|
|
22
|
-
const refusals_1 = require("./refusals");
|
|
23
|
-
const source_1 = require("./source");
|
|
24
|
-
const HTTP_BAD_REQUEST = 400;
|
|
25
|
-
const HTTP_CONFLICT = 409;
|
|
26
|
-
const CAPTURE_CACHE_CONTROL = "private, max-age=31536000, immutable";
|
|
27
|
-
const firstPageSchema = zod_1.z
|
|
28
|
-
.object({ pages: zod_1.z.array(zod_1.z.object({ id: zod_1.z.string() })).min(1) })
|
|
29
|
-
.catch({ pages: [{ id: "" }] });
|
|
30
|
-
function firstPageOf(spec) {
|
|
31
|
-
try {
|
|
32
|
-
return firstPageSchema.parse(JSON.parse(spec)).pages[0]?.id ?? "";
|
|
33
|
-
}
|
|
34
|
-
catch {
|
|
35
|
-
return "";
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
function refused(status, key) {
|
|
39
|
-
return new interface_api_1.HTTPResult(status, { message: `$dms.refusals.mockup.${key}` });
|
|
40
|
-
}
|
|
41
|
-
function registerCaptureRoutes(store) {
|
|
42
|
-
const { mockupsDir } = store;
|
|
43
|
-
function nameOf(raw) {
|
|
44
|
-
const name = (0, model_1.parseMockupName)(raw);
|
|
45
|
-
if (!name)
|
|
46
|
-
throw (0, refusals_1.notFound)("mockup");
|
|
47
|
-
return name;
|
|
48
|
-
}
|
|
49
|
-
class MockupCaptureController extends (0, interface_api_1.Controller)(fixtures_1.MOCKUP_API, owner_controller_1.MockupOwnerController) {
|
|
50
|
-
async upload(rawName, bytes, context) {
|
|
51
|
-
await this.assertOwner();
|
|
52
|
-
const name = nameOf(rawName);
|
|
53
|
-
const page = model_1.pageIdSchema.safeParse(context.url.searchParams.get("page"));
|
|
54
|
-
if (!page.success)
|
|
55
|
-
throw refused(HTTP_BAD_REQUEST, "capture_page_missing");
|
|
56
|
-
const written = await (0, source_1.withSpecLock)(mockupsDir, name, async () => {
|
|
57
|
-
const spec = await (0, source_1.readSpecText)(mockupsDir, name);
|
|
58
|
-
if (spec === undefined)
|
|
59
|
-
return (0, refusals_1.notFound)("mockup");
|
|
60
|
-
if (firstPageOf(spec) !== page.data) {
|
|
61
|
-
return refused(HTTP_CONFLICT, "capture_not_first_page");
|
|
62
|
-
}
|
|
63
|
-
if (!(await (0, capture_1.writeCapture)(mockupsDir, name, bytes))) {
|
|
64
|
-
return refused(HTTP_BAD_REQUEST, "capture_not_image");
|
|
65
|
-
}
|
|
66
|
-
return (0, capture_1.captureUpdatedAt)(mockupsDir, name);
|
|
67
|
-
});
|
|
68
|
-
if (!(written instanceof Date))
|
|
69
|
-
throw written ?? (0, refusals_1.notFound)("mockup");
|
|
70
|
-
return { capturedAt: written.toISOString() };
|
|
71
|
-
}
|
|
72
|
-
async download(rawName, context) {
|
|
73
|
-
await this.assertOwner();
|
|
74
|
-
const stored = await (0, capture_1.readCapture)(mockupsDir, nameOf(rawName));
|
|
75
|
-
if (!stored)
|
|
76
|
-
throw (0, refusals_1.notFound)("capture");
|
|
77
|
-
context.response.addHeader("Cache-Control", CAPTURE_CACHE_CONTROL);
|
|
78
|
-
context.response.addHeader("X-Content-Type-Options", "nosniff");
|
|
79
|
-
context.response.getWriteStream(stored.contentType).end(stored.bytes);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, interface_api_1.Put)(":name/capture"),
|
|
84
|
-
__param(0, (0, interface_api_1.Parameter)("name")),
|
|
85
|
-
__param(1, (0, interface_api_1.RawBody)(capture_1.MAX_CAPTURE_BYTES)),
|
|
86
|
-
__param(2, (0, interface_api_1.Context)()),
|
|
87
|
-
__metadata("design:type", Function),
|
|
88
|
-
__metadata("design:paramtypes", [String, Buffer, Object]),
|
|
89
|
-
__metadata("design:returntype", Promise)
|
|
90
|
-
], MockupCaptureController.prototype, "upload", null);
|
|
91
|
-
__decorate([
|
|
92
|
-
(0, interface_api_1.Get)(":name/capture"),
|
|
93
|
-
__param(0, (0, interface_api_1.Parameter)("name")),
|
|
94
|
-
__param(1, (0, interface_api_1.Context)()),
|
|
95
|
-
__metadata("design:type", Function),
|
|
96
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
97
|
-
__metadata("design:returntype", Promise)
|
|
98
|
-
], MockupCaptureController.prototype, "download", null);
|
|
99
|
-
return MockupCaptureController;
|
|
100
|
-
}
|
|
101
|
-
//# sourceMappingURL=capture-routes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"capture-routes.js","sourceRoot":"","sources":["../../src/mockup/capture-routes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DASmC;AACnC,6BAAwB;AACxB,uCAKmB;AACnB,yCAAwC;AACxC,mCAAwD;AACxD,yDAA2D;AAC3D,yCAAsC;AACtC,qCAAsD;AAGtD,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,aAAa,GAAG,GAAG,CAAC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zB,MAAM,MAAM,GAAG,MAAM,IAAA,qBAAW,EAAC,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;YAC9D,IAAI,CAAC,MAAM;gBAAE,MAAM,IAAA,mBAAQ,EAAC,SAAS,CAAC,CAAC;YACvC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,eAAe,EAAE,qBAAqB,CAAC,CAAC;YACnE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,wBAAwB,EAAE,SAAS,CAAC,CAAC;YAChE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACxE,CAAC;KACF;IAtCO;QADL,IAAA,mBAAG,EAAC,eAAe,CAAC;QAElB,WAAA,IAAA,yBAAS,EAAC,MAAM,CAAC,CAAA;QACjB,WAAA,IAAA,uBAAO,EAAC,2BAAiB,CAAC,CAAA;QAC1B,WAAA,IAAA,uBAAO,GAAE,CAAA;;iDADyB,MAAM;;yDAqB1C;IAIK;QADL,IAAA,mBAAG,EAAC,eAAe,CAAC;QAElB,WAAA,IAAA,yBAAS,EAAC,MAAM,CAAC,CAAA;QACjB,WAAA,IAAA,uBAAO,GAAE,CAAA;;;;2DAQX;IAEH,OAAO,uBAAuB,CAAC;AACjC,CAAC"}
|
package/dist/mockup/capture.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { MockupName } from "./model";
|
|
2
|
-
export declare const MAX_CAPTURE_BYTES: number;
|
|
3
|
-
export interface StoredCapture {
|
|
4
|
-
bytes: Buffer;
|
|
5
|
-
contentType: string;
|
|
6
|
-
updatedAt: Date;
|
|
7
|
-
}
|
|
8
|
-
export declare function captureUpdatedAt(mockupsDir: string, name: MockupName): Promise<Date | undefined>;
|
|
9
|
-
export declare function readCapture(mockupsDir: string, name: MockupName): Promise<StoredCapture | undefined>;
|
|
10
|
-
export declare function writeCapture(mockupsDir: string, name: MockupName, bytes: Buffer): Promise<boolean>;
|
package/dist/mockup/capture.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MAX_CAPTURE_BYTES = void 0;
|
|
4
|
-
exports.captureUpdatedAt = captureUpdatedAt;
|
|
5
|
-
exports.readCapture = readCapture;
|
|
6
|
-
exports.writeCapture = writeCapture;
|
|
7
|
-
const promises_1 = require("node:fs/promises");
|
|
8
|
-
const node_path_1 = require("node:path");
|
|
9
|
-
const image_signatures_1 = require("../utils/image-signatures");
|
|
10
|
-
const files_1 = require("./files");
|
|
11
|
-
exports.MAX_CAPTURE_BYTES = 4 * 1024 * 1024;
|
|
12
|
-
const CAPTURE_FORMATS = [
|
|
13
|
-
{ extension: "webp", contentType: "image/webp", matches: image_signatures_1.isWebp },
|
|
14
|
-
{ extension: "png", contentType: "image/png", matches: image_signatures_1.isPng },
|
|
15
|
-
];
|
|
16
|
-
function fileOf(mockupsDir, name, format) {
|
|
17
|
-
return (0, node_path_1.join)((0, files_1.mockupDirectory)(mockupsDir, name), `${files_1.CAPTURE_BASENAME}.${format.extension}`);
|
|
18
|
-
}
|
|
19
|
-
function newest(captures) {
|
|
20
|
-
return captures
|
|
21
|
-
.flatMap((capture) => capture ?? [])
|
|
22
|
-
.sort((left, right) => right.updatedAt.getTime() - left.updatedAt.getTime())[0];
|
|
23
|
-
}
|
|
24
|
-
async function captureUpdatedAt(mockupsDir, name) {
|
|
25
|
-
const found = await Promise.all(CAPTURE_FORMATS.map(async (format) => {
|
|
26
|
-
try {
|
|
27
|
-
const { mtime } = await (0, promises_1.stat)(fileOf(mockupsDir, name, format));
|
|
28
|
-
return { updatedAt: mtime };
|
|
29
|
-
}
|
|
30
|
-
catch (error) {
|
|
31
|
-
if ((0, files_1.parseFsError)(error).code === files_1.MISSING_FILE)
|
|
32
|
-
return undefined;
|
|
33
|
-
throw error;
|
|
34
|
-
}
|
|
35
|
-
}));
|
|
36
|
-
return newest(found)?.updatedAt;
|
|
37
|
-
}
|
|
38
|
-
async function readCapture(mockupsDir, name) {
|
|
39
|
-
const found = await Promise.all(CAPTURE_FORMATS.map(async (format) => {
|
|
40
|
-
const path = fileOf(mockupsDir, name, format);
|
|
41
|
-
try {
|
|
42
|
-
const [bytes, { mtime }] = await Promise.all([
|
|
43
|
-
(0, promises_1.readFile)(path),
|
|
44
|
-
(0, promises_1.stat)(path),
|
|
45
|
-
]);
|
|
46
|
-
return { bytes, contentType: format.contentType, updatedAt: mtime };
|
|
47
|
-
}
|
|
48
|
-
catch (error) {
|
|
49
|
-
if ((0, files_1.parseFsError)(error).code === files_1.MISSING_FILE)
|
|
50
|
-
return undefined;
|
|
51
|
-
throw error;
|
|
52
|
-
}
|
|
53
|
-
}));
|
|
54
|
-
return newest(found);
|
|
55
|
-
}
|
|
56
|
-
async function writeCapture(mockupsDir, name, bytes) {
|
|
57
|
-
const format = CAPTURE_FORMATS.find(({ matches }) => matches(bytes));
|
|
58
|
-
if (!format)
|
|
59
|
-
return false;
|
|
60
|
-
await (0, files_1.writeAtomically)(fileOf(mockupsDir, name, format), bytes);
|
|
61
|
-
await Promise.all(CAPTURE_FORMATS.filter((other) => other !== format).map((other) => (0, promises_1.rm)(fileOf(mockupsDir, name, other), { force: true })));
|
|
62
|
-
return true;
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=capture.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"capture.js","sourceRoot":"","sources":["../../src/mockup/capture.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAsD;AACtD,yCAAiC;AACjC,gEAA0D;AAC1D,mCAMiB;AAIJ,QAAA,iBAAiB,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AASjD,MAAM,eAAe,GAA6B;IAChD,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,yBAAM,E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,EAAE,CAChE,IAAA,aAAE,EAAC,MAAM,CAAC,UAAU,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CACrD,CACF,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ButtonVariant } from "@antelopejs/interface-dms/base/types/button";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
export declare const PAGE_LINK_PREFIX = "page:";
|
|
4
|
-
export declare const headerActionSchema: z.ZodObject<{
|
|
5
|
-
label: z.ZodString;
|
|
6
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
7
|
-
color: z.ZodOptional<z.ZodEnum<{
|
|
8
|
-
error: "error";
|
|
9
|
-
info: "info";
|
|
10
|
-
neutral: "neutral";
|
|
11
|
-
primary: "primary";
|
|
12
|
-
secondary: "secondary";
|
|
13
|
-
success: "success";
|
|
14
|
-
warning: "warning";
|
|
15
|
-
}>>;
|
|
16
|
-
variant: z.ZodOptional<z.ZodEnum<typeof ButtonVariant>>;
|
|
17
|
-
target: z.ZodOptional<z.ZodObject<{
|
|
18
|
-
type: z.ZodLiteral<"page">;
|
|
19
|
-
url: z.ZodString;
|
|
20
|
-
}, z.core.$strict>>;
|
|
21
|
-
confirm: z.ZodOptional<z.ZodObject<{
|
|
22
|
-
title: z.ZodString;
|
|
23
|
-
description: z.ZodOptional<z.ZodString>;
|
|
24
|
-
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
25
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
26
|
-
color: z.ZodOptional<z.ZodEnum<{
|
|
27
|
-
error: "error";
|
|
28
|
-
info: "info";
|
|
29
|
-
neutral: "neutral";
|
|
30
|
-
primary: "primary";
|
|
31
|
-
secondary: "secondary";
|
|
32
|
-
success: "success";
|
|
33
|
-
warning: "warning";
|
|
34
|
-
}>>;
|
|
35
|
-
confirmLabel: z.ZodOptional<z.ZodString>;
|
|
36
|
-
cancelLabel: z.ZodOptional<z.ZodString>;
|
|
37
|
-
impact: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38
|
-
icon: z.ZodString;
|
|
39
|
-
label: z.ZodString;
|
|
40
|
-
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
41
|
-
}, z.core.$strict>>>;
|
|
42
|
-
blocked: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
-
confirmText: z.ZodOptional<z.ZodString>;
|
|
44
|
-
confirmTextCaseInsensitive: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
-
}, z.core.$strict>>;
|
|
46
|
-
}, z.core.$strict>;
|
|
47
|
-
export type MockupHeaderAction = z.infer<typeof headerActionSchema>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.headerActionSchema = exports.PAGE_LINK_PREFIX = void 0;
|
|
4
|
-
const button_1 = require("@antelopejs/interface-dms/base/types/button");
|
|
5
|
-
const tone_1 = require("@antelopejs/interface-dms/base/types/tone");
|
|
6
|
-
const zod_1 = require("zod");
|
|
7
|
-
exports.PAGE_LINK_PREFIX = "page:";
|
|
8
|
-
const headerActionTargetSchema = zod_1.z
|
|
9
|
-
.object({
|
|
10
|
-
type: zod_1.z.literal("page"),
|
|
11
|
-
url: zod_1.z.string().startsWith(exports.PAGE_LINK_PREFIX),
|
|
12
|
-
})
|
|
13
|
-
.strict();
|
|
14
|
-
const confirmImpactSchema = zod_1.z
|
|
15
|
-
.object({
|
|
16
|
-
icon: zod_1.z.string(),
|
|
17
|
-
label: zod_1.z.string(),
|
|
18
|
-
count: zod_1.z.union([zod_1.z.number(), zod_1.z.string()]).optional(),
|
|
19
|
-
})
|
|
20
|
-
.strict();
|
|
21
|
-
const headerActionConfirmSchema = zod_1.z
|
|
22
|
-
.object({
|
|
23
|
-
title: zod_1.z.string(),
|
|
24
|
-
description: zod_1.z.string().optional(),
|
|
25
|
-
params: zod_1.z.record(zod_1.z.string(), zod_1.z.union([zod_1.z.string(), zod_1.z.number()])).optional(),
|
|
26
|
-
icon: zod_1.z.string().optional(),
|
|
27
|
-
color: zod_1.z.enum(tone_1.TONES).optional(),
|
|
28
|
-
confirmLabel: zod_1.z.string().optional(),
|
|
29
|
-
cancelLabel: zod_1.z.string().optional(),
|
|
30
|
-
impact: zod_1.z.array(confirmImpactSchema).optional(),
|
|
31
|
-
blocked: zod_1.z.boolean().optional(),
|
|
32
|
-
confirmText: zod_1.z.string().optional(),
|
|
33
|
-
confirmTextCaseInsensitive: zod_1.z.boolean().optional(),
|
|
34
|
-
})
|
|
35
|
-
.strict();
|
|
36
|
-
exports.headerActionSchema = zod_1.z
|
|
37
|
-
.object({
|
|
38
|
-
label: zod_1.z.string(),
|
|
39
|
-
icon: zod_1.z.string().optional(),
|
|
40
|
-
color: zod_1.z.enum(tone_1.TONES).optional(),
|
|
41
|
-
variant: zod_1.z.nativeEnum(button_1.ButtonVariant).optional(),
|
|
42
|
-
target: headerActionTargetSchema.optional(),
|
|
43
|
-
confirm: headerActionConfirmSchema.optional(),
|
|
44
|
-
})
|
|
45
|
-
.strict();
|
|
46
|
-
//# sourceMappingURL=header-action.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"header-action.js","sourceRoot":"","sources":["../../src/mockup/header-action.ts"],"names":[],"mappings":";;;AAAA,wEAA4E;AAC5E,oEAAkE;AAClE,6BAAwB;AAGX,QAAA,gBAAgB,GAAG,OAAO,CAAC;AAOxC,MAAM,wBAAwB,GAAG,OAAC;KAC/B,MAAM,CAAC;IACN,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACvB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,QAAA,gBAAgB,CAAC;CAC7C,CAAC;KACD,MAAM,EAAE,C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AAkB,GAAG,OAAC;KAChC,MAAM,CAAC;IACN,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,OAAC,CAAC,IAAI,CAAC,YAAK,CAAC,CAAC,QAAQ,EAAE;IAC/B,OAAO,EAAE,OAAC,CAAC,UAAU,CAAC,sBAAa,CAAC,CAAC,QAAQ,EAAE;IAC/C,MAAM,EAAE,wBAAwB,CAAC,QAAQ,EAAE;IAC3C,OAAO,EAAE,yBAAyB,CAAC,QAAQ,EAAE;CAC9C,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HEADER_ACTION = void 0;
|
|
4
|
-
const button_1 = require("@antelopejs/interface-dms/base/types/button");
|
|
5
|
-
const tone_1 = require("@antelopejs/interface-dms/base/types/tone");
|
|
6
|
-
const CONFIRM_IMPACT = {
|
|
7
|
-
type: "object",
|
|
8
|
-
required: ["icon", "label"],
|
|
9
|
-
additionalProperties: false,
|
|
10
|
-
description: "One dependent the action affects, listed above the buttons.",
|
|
11
|
-
properties: {
|
|
12
|
-
icon: { type: "string" },
|
|
13
|
-
label: { type: "string" },
|
|
14
|
-
count: { type: ["number", "string"] },
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
const HEADER_ACTION_CONFIRM = {
|
|
18
|
-
type: "object",
|
|
19
|
-
required: ["title"],
|
|
20
|
-
additionalProperties: false,
|
|
21
|
-
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.",
|
|
22
|
-
properties: {
|
|
23
|
-
title: { type: "string" },
|
|
24
|
-
description: { type: "string" },
|
|
25
|
-
params: {
|
|
26
|
-
type: "object",
|
|
27
|
-
additionalProperties: { type: ["string", "number"] },
|
|
28
|
-
description: "Values the texts are interpolated with: {name}.",
|
|
29
|
-
},
|
|
30
|
-
icon: { type: "string" },
|
|
31
|
-
color: { enum: [...tone_1.TONES] },
|
|
32
|
-
confirmLabel: { type: "string" },
|
|
33
|
-
cancelLabel: { type: "string" },
|
|
34
|
-
impact: { type: "array", items: CONFIRM_IMPACT },
|
|
35
|
-
blocked: {
|
|
36
|
-
type: "boolean",
|
|
37
|
-
description: "The action cannot run: the dialog only explains why.",
|
|
38
|
-
},
|
|
39
|
-
confirmText: {
|
|
40
|
-
type: "string",
|
|
41
|
-
description: "Text the user types to confirm.",
|
|
42
|
-
},
|
|
43
|
-
confirmTextCaseInsensitive: { type: "boolean" },
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
exports.HEADER_ACTION = {
|
|
47
|
-
type: "object",
|
|
48
|
-
required: ["label"],
|
|
49
|
-
additionalProperties: false,
|
|
50
|
-
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.",
|
|
51
|
-
properties: {
|
|
52
|
-
label: { type: "string" },
|
|
53
|
-
icon: { type: "string", description: "An icon name, e.g. i-ph-plus." },
|
|
54
|
-
color: { enum: [...tone_1.TONES] },
|
|
55
|
-
variant: { enum: Object.values(button_1.ButtonVariant) },
|
|
56
|
-
target: {
|
|
57
|
-
type: "object",
|
|
58
|
-
required: ["type", "url"],
|
|
59
|
-
additionalProperties: false,
|
|
60
|
-
description: 'The page of the mockup the button opens: { "type": "page", "url": "page:<id>" }.',
|
|
61
|
-
properties: {
|
|
62
|
-
type: { const: "page" },
|
|
63
|
-
url: { type: "string", pattern: "^page:" },
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
confirm: HEADER_ACTION_CONFIRM,
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
//# sourceMappingURL=json-schema-header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json-sch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,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iCAAiC;SAC/C;QACD,0BAA0B,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAChD;CACF,CAAC;AAGW,QAAA,aAAa,GAAe;IACvC,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EACT,mLAAmL;IACrL,UAAU,EAAE;QACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,+BAA+B,EAAE;QACtE,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,GAAG,YAAK,CAAC,EAAE;QAC3B,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,sBAAa,CAAC,EAAE;QAC/C,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC;YACzB,oBAAoB,EAAE,KAAK;YAC3B,WAAW,EACT,kFAAkF;YACpF,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBACvB,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE;aAC3C;SACF;QACD,OAAO,EAAE,qBAAqB;KAC/B;CACF,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PAGE_LAYOUT = void 0;
|
|
4
|
-
const model_1 = require("./model");
|
|
5
|
-
const BOOLEAN = { type: "boolean" };
|
|
6
|
-
const FRAMED_LAYOUT_OPTIONS = {
|
|
7
|
-
hideHeader: {
|
|
8
|
-
...BOOLEAN,
|
|
9
|
-
description: "Leaves out the page header: its title, icon, description and buttons.",
|
|
10
|
-
},
|
|
11
|
-
fillHeight: {
|
|
12
|
-
...BOOLEAN,
|
|
13
|
-
description: "The page fills the height of the frame, and its last block takes what is left.",
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
const LAYOUT_OPTIONS = {
|
|
17
|
-
default: {
|
|
18
|
-
fullWidth: {
|
|
19
|
-
...BOOLEAN,
|
|
20
|
-
default: true,
|
|
21
|
-
description: "The blocks span the whole panel; false keeps them in a readable column.",
|
|
22
|
-
},
|
|
23
|
-
...FRAMED_LAYOUT_OPTIONS,
|
|
24
|
-
},
|
|
25
|
-
"form-page": FRAMED_LAYOUT_OPTIONS,
|
|
26
|
-
settings: FRAMED_LAYOUT_OPTIONS,
|
|
27
|
-
empty: {
|
|
28
|
-
hideBrand: {
|
|
29
|
-
...BOOLEAN,
|
|
30
|
-
description: "Leaves out the app logo and the theme toggle above the page.",
|
|
31
|
-
},
|
|
32
|
-
hideFooter: {
|
|
33
|
-
...BOOLEAN,
|
|
34
|
-
description: "Leaves out the footer under the page.",
|
|
35
|
-
},
|
|
36
|
-
fillHeight: {
|
|
37
|
-
...BOOLEAN,
|
|
38
|
-
description: "The page fills the height of the window, and its last block takes what is left.",
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
exports.PAGE_LAYOUT = {
|
|
43
|
-
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.',
|
|
44
|
-
oneOf: [
|
|
45
|
-
{ enum: [...model_1.MOCKUP_LAYOUTS] },
|
|
46
|
-
...model_1.MOCKUP_LAYOUTS.map((type) => ({
|
|
47
|
-
type: "object",
|
|
48
|
-
required: ["type"],
|
|
49
|
-
additionalProperties: false,
|
|
50
|
-
properties: {
|
|
51
|
-
type: { const: type },
|
|
52
|
-
options: {
|
|
53
|
-
type: "object",
|
|
54
|
-
additionalProperties: false,
|
|
55
|
-
properties: LAYOUT_OPTIONS[type],
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
})),
|
|
59
|
-
],
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=json-schema-layout.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json-schema-layout.js","sourceRoot":"","sources":["../../src/mockup/json-schema-layout.ts"],"names":[],"mappings":";;;AAAA,mCAIiB;AAEjB,MAAM,OAAO,GAAe,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AAEhD,MAAM,qBAAqB,GAAe;IACxC,UAAU,EAAE;QACV,GAAG,OAAO;QACV,WAAW,EACT,uEAAuE;KAC1E;IACD,UAAU,EAAE;QACV,GAAG,OAAO;QACV,WAAW,EACT,gFAAgF;KACnF;CACF,CAAC;AAGF,MAAM,cAAc,GAAyC;IAC3D,OAAO,EAAE;QACP,SAAS,EAAE;YACT,GAAG,OAAO;YACV,OAAO,EAAE,IAAI;YACb,WAAW,EACT,yEAAyE;SAC5E;QACD,GAAG,qBAAqB;KACzB;IACD,WAAW,EAAE,qBAAqB;IAClC,QAAQ,EAAE,qBAAqB;IAC/B,KAAK,EAAE;QACL,SAAS,EAAE;YACT,GAAG,OAAO;YACV,WAAW,EACT,8DAA8D;SACjE;QACD,UAAU,EAAE;YACV,GAAG,OAAO;YACV,WAAW,EAAE,uCAAuC;SACrD;QACD,UAAU,EAAE;YACV,GAAG,OAAO;YACV,WAAW,EACT,iFAAiF;SACpF;KACF;CACF,CAAC;AAGW,QAAA,WAAW,GAAe;IACrC,WAAW,EACT,0YAA0Y;IAC5Y,KAAK,EAAE;QACL,EAAE,IAAI,EAAE,CAAC,GAAG,sBAAc,CAAC,EAAE;QAC7B,GAAG,sBAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAc,EAAE,CAAC,CAAC;YAC3C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,CAAC,MAAM,CAAC;YAClB,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE;gBACrB,OAAO,EAAE;oBACP,IAAI,EAAE,QAAQ;oBACd,oBAAoB,EAAE,KAAK;oBAC3B,UAAU,EAAE,cAAc,CAAC,IAAI,CAAC;iBACjC;aACF;SACF,CAAC,CAAC;KACJ;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"summary-fields.js","sourceRoot":"","sources":["../../src/mockup/summary-fields.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAgE;AAEhE,MAAM,aAAa,GAAG,OAAC;KACpB,MAAM,CAAC;IACN,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;IAC7C,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;IACrC,MAAM,EAAE,0BAAkB,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;IACtD,KAAK,EAAE,yBAAiB,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;CACrD,CAAC;KACD,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;AAKxB,2BAAkC,IAAY;IAC5C,IAAI,CAAC;QACH,OAAO,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IACxC,CAAC;AACH,CAAC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { BlockTypeDescriptor } from "@antelopejs/interface-dms/base/block-types";
|
|
2
|
-
import type { TableViewOptions } from "@antelopejs/interface-dms/base/table-view";
|
|
3
|
-
import type { FixtureScope } from "./fixtures";
|
|
4
|
-
import type { MockupIssue } from "./model";
|
|
5
|
-
interface ParamFilterOptions {
|
|
6
|
-
queryParamFilters?: TableViewOptions["queryParamFilters"];
|
|
7
|
-
routeParamFilters?: TableViewOptions["routeParamFilters"];
|
|
8
|
-
capabilities?: {
|
|
9
|
-
filter?: boolean;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export declare function paramFilterIssues(options: ParamFilterOptions, pointer: string, route: FixtureScope["route"]): MockupIssue[];
|
|
13
|
-
export declare function fixtureQueryIssue(key: string, pointer: string): MockupIssue | undefined;
|
|
14
|
-
export declare function paramFilterOptions(config: BlockTypeDescriptor["config"]): {
|
|
15
|
-
routeParamFilters: {
|
|
16
|
-
type: import("@antelopejs/interface-dms/base").BlockOptionType;
|
|
17
|
-
optional?: boolean;
|
|
18
|
-
nullable?: boolean;
|
|
19
|
-
default?: unknown;
|
|
20
|
-
enum?: Array<string | number | boolean>;
|
|
21
|
-
properties?: Record<string, import("@antelopejs/interface-dms/base").BlockOptionSchema>;
|
|
22
|
-
items?: import("@antelopejs/interface-dms/base").BlockOptionSchema;
|
|
23
|
-
values?: import("@antelopejs/interface-dms/base").BlockOptionSchema;
|
|
24
|
-
keys?: import("@antelopejs/interface-dms/base").BlockOptionSchema;
|
|
25
|
-
oneOf?: import("@antelopejs/interface-dms/base").BlockOptionSchema[];
|
|
26
|
-
discriminator?: string;
|
|
27
|
-
prefixItems?: import("@antelopejs/interface-dms/base").BlockOptionSchema[];
|
|
28
|
-
allOf?: import("@antelopejs/interface-dms/base").BlockOptionSchema[];
|
|
29
|
-
truncated?: boolean;
|
|
30
|
-
ui?: import("@antelopejs/interface-dms/base").BlockOptionUi;
|
|
31
|
-
description: string;
|
|
32
|
-
};
|
|
33
|
-
queryParamFilters: {
|
|
34
|
-
type: import("@antelopejs/interface-dms/base").BlockOptionType;
|
|
35
|
-
optional?: boolean;
|
|
36
|
-
nullable?: boolean;
|
|
37
|
-
default?: unknown;
|
|
38
|
-
enum?: Array<string | number | boolean>;
|
|
39
|
-
properties?: Record<string, import("@antelopejs/interface-dms/base").BlockOptionSchema>;
|
|
40
|
-
items?: import("@antelopejs/interface-dms/base").BlockOptionSchema;
|
|
41
|
-
values?: import("@antelopejs/interface-dms/base").BlockOptionSchema;
|
|
42
|
-
keys?: import("@antelopejs/interface-dms/base").BlockOptionSchema;
|
|
43
|
-
oneOf?: import("@antelopejs/interface-dms/base").BlockOptionSchema[];
|
|
44
|
-
discriminator?: string;
|
|
45
|
-
prefixItems?: import("@antelopejs/interface-dms/base").BlockOptionSchema[];
|
|
46
|
-
allOf?: import("@antelopejs/interface-dms/base").BlockOptionSchema[];
|
|
47
|
-
truncated?: boolean;
|
|
48
|
-
ui?: import("@antelopejs/interface-dms/base").BlockOptionUi;
|
|
49
|
-
description: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
export {};
|