@antelopejs/dms 0.9.8 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +171 -0
- package/README.md +1 -1
- package/data/module-store/catalog.json +2 -2
- package/dist/attachments/table-view.js +2 -2
- package/dist/attachments/table-view.js.map +1 -1
- package/dist/automation/actions.d.ts +2 -0
- package/dist/automation/actions.js +116 -71
- package/dist/automation/actions.js.map +1 -1
- package/dist/automation/i18n.d.ts +4 -0
- package/dist/automation/i18n.js +19 -0
- package/dist/automation/i18n.js.map +1 -0
- package/dist/automation/send-notification.d.ts +21 -0
- package/dist/automation/send-notification.js +163 -0
- package/dist/automation/send-notification.js.map +1 -0
- package/dist/automation/triggers.js +19 -25
- package/dist/automation/triggers.js.map +1 -1
- package/dist/client-origin-cors.d.ts +1 -0
- package/dist/client-origin-cors.js +19 -0
- package/dist/client-origin-cors.js.map +1 -0
- package/dist/config.d.ts +3 -2
- package/dist/config.js +5 -7
- package/dist/config.js.map +1 -1
- package/dist/frontend-module.d.ts +4 -0
- package/dist/frontend-module.js +37 -0
- package/dist/frontend-module.js.map +1 -0
- package/dist/implementations/dms/client-ip.js +1 -1
- package/dist/implementations/dms/client-ip.js.map +1 -1
- package/dist/implementations/dms/dev-reload.d.ts +5 -0
- package/dist/implementations/dms/dev-reload.js +23 -3
- package/dist/implementations/dms/dev-reload.js.map +1 -1
- package/dist/implementations/dms/frontend-modules.d.ts +2 -4
- package/dist/implementations/dms/frontend-modules.js +38 -94
- package/dist/implementations/dms/frontend-modules.js.map +1 -1
- package/dist/implementations/dms/frontend-ready.d.ts +12 -2
- package/dist/implementations/dms/frontend-ready.js +34 -4
- package/dist/implementations/dms/frontend-ready.js.map +1 -1
- package/dist/implementations/dms/layout-banners.d.ts +2 -1
- package/dist/implementations/dms/layout-banners.js +9 -0
- package/dist/implementations/dms/layout-banners.js.map +1 -1
- package/dist/implementations/dms/manifest.d.ts +7 -2
- package/dist/implementations/dms/manifest.js +12 -7
- package/dist/implementations/dms/manifest.js.map +1 -1
- package/dist/implementations/dms/page.d.ts +4 -3
- package/dist/implementations/dms/page.js +49 -18
- package/dist/implementations/dms/page.js.map +1 -1
- package/dist/implementations/dms/permissions-resolver.d.ts +2 -2
- package/dist/implementations/dms/permissions-resolver.js +2 -2
- package/dist/implementations/dms/permissions-resolver.js.map +1 -1
- package/dist/implementations/dms/realtime.js +1 -0
- package/dist/implementations/dms/realtime.js.map +1 -1
- package/dist/implementations/dms-base/bulk-selection.d.ts +1 -1
- package/dist/implementations/dms-base/bulk-selection.js +23 -1
- package/dist/implementations/dms-base/bulk-selection.js.map +1 -1
- package/dist/implementations/dms-base/filter-tokens.js +5 -3
- package/dist/implementations/dms-base/filter-tokens.js.map +1 -1
- package/dist/implementations/dms-base/search-route.d.ts +1 -0
- package/dist/implementations/dms-base/search-route.js +35 -13
- package/dist/implementations/dms-base/search-route.js.map +1 -1
- package/dist/implementations/dms-base/table-view.js +11 -6
- package/dist/implementations/dms-base/table-view.js.map +1 -1
- package/dist/implementations/dms-notifications/index.d.ts +2 -2
- package/dist/implementations/dms-notifications/index.js +5 -5
- package/dist/implementations/dms-notifications/index.js.map +1 -1
- package/dist/index.js +32 -55
- package/dist/index.js.map +1 -1
- package/dist/pages/modules/index.d.ts +1 -0
- package/dist/pages/modules/index.js +1 -0
- package/dist/pages/modules/index.js.map +1 -1
- package/dist/pages/modules/modules-store.d.ts +9 -0
- package/dist/pages/modules/modules-store.js +30 -0
- package/dist/pages/modules/modules-store.js.map +1 -0
- package/dist/pages/settings/users/account-credentials.js +2 -2
- package/dist/pages/settings/users/account-credentials.js.map +1 -1
- package/dist/pages/settings/users/account-data-store.js +25 -8
- package/dist/pages/settings/users/account-data-store.js.map +1 -1
- package/dist/pages/settings/users/invite-extension-routes.js +9 -3
- package/dist/pages/settings/users/invite-extension-routes.js.map +1 -1
- package/dist/pages/settings/users/member-management.js +13 -14
- package/dist/pages/settings/users/member-management.js.map +1 -1
- package/dist/pages/settings/users/profile.d.ts +1 -4
- package/dist/pages/settings/users/profile.js +0 -35
- package/dist/pages/settings/users/profile.js.map +1 -1
- package/dist/pages/settings/users/role-editor-store.js +26 -18
- package/dist/pages/settings/users/role-editor-store.js.map +1 -1
- package/dist/pages/settings/users/role-editor.d.ts +0 -1
- package/dist/pages/settings/users/role-editor.js +1 -2
- package/dist/pages/settings/users/role-editor.js.map +1 -1
- package/dist/pages/settings/users/role-preview.js +1 -2
- package/dist/pages/settings/users/role-preview.js.map +1 -1
- package/dist/pages/settings/users/roles.js +2 -2
- package/dist/pages/settings/users/roles.js.map +1 -1
- package/dist/pages/settings/users/two-factor-operations.js.map +1 -1
- package/dist/realtime/broker.d.ts +6 -0
- package/dist/realtime/broker.js +8 -1
- package/dist/realtime/broker.js.map +1 -1
- package/dist/realtime/presence.d.ts +8 -3
- package/dist/realtime/presence.js +8 -4
- package/dist/realtime/presence.js.map +1 -1
- package/dist/realtime/sessions.d.ts +11 -1
- package/dist/realtime/sessions.js +21 -3
- package/dist/realtime/sessions.js.map +1 -1
- package/dist/realtime/table-view.d.ts +2 -2
- package/dist/realtime/table-view.js +4 -3
- package/dist/realtime/table-view.js.map +1 -1
- package/dist/routes/auth/client-ip.d.ts +1 -0
- package/dist/routes/auth/client-ip.js +18 -0
- package/dist/routes/auth/client-ip.js.map +1 -1
- package/dist/routes/auth/oauth/config.d.ts +2 -1
- package/dist/routes/auth/oauth/config.js +5 -1
- package/dist/routes/auth/oauth/config.js.map +1 -1
- package/dist/routes/auth/session-handoff.d.ts +0 -1
- package/dist/routes/auth/session-handoff.js +0 -2
- package/dist/routes/auth/session-handoff.js.map +1 -1
- package/dist/routes/auth.js +3 -2
- package/dist/routes/auth.js.map +1 -1
- package/dist/routes/index.d.ts +0 -1
- package/dist/routes/index.js +0 -1
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/realtime.d.ts +13 -1
- package/dist/routes/realtime.js +114 -29
- package/dist/routes/realtime.js.map +1 -1
- package/dist/startup-config.d.ts +2 -0
- package/dist/startup-config.js +62 -0
- package/dist/startup-config.js.map +1 -0
- package/dist/store/interfaces.d.ts +3 -2
- package/dist/store/interfaces.js +16 -6
- package/dist/store/interfaces.js.map +1 -1
- package/dist/store/listing.js +25 -15
- package/dist/store/listing.js.map +1 -1
- package/dist/store/operations.js +5 -2
- package/dist/store/operations.js.map +1 -1
- package/dist/store/requirements.js +3 -2
- package/dist/store/requirements.js.map +1 -1
- package/dist/store/runtime.d.ts +10 -1
- package/dist/store/runtime.js +33 -6
- package/dist/store/runtime.js.map +1 -1
- package/dist/store/types.d.ts +10 -0
- package/dist/utils/ensure-default-tenant.d.ts +2 -1
- package/dist/utils/ensure-default-tenant.js +13 -1
- package/dist/utils/ensure-default-tenant.js.map +1 -1
- package/dist/utils/export-jobs.js +2 -1
- package/dist/utils/export-jobs.js.map +1 -1
- package/dist/validation/auth.schema.d.ts +2 -2
- package/dist/validation/member-invite.schema.d.ts +2 -10
- package/dist/validation/member-invite.schema.js +2 -15
- package/dist/validation/member-invite.schema.js.map +1 -1
- package/frontend-vue/dms.frontend.ts +24 -5
- package/frontend-vue/dms.server.ts +17 -0
- package/frontend-vue/layers/dms-auth/server/accounts.ts +3 -4
- package/frontend-vue/layers/dms-core/app/build/composables/renderNow.ts +33 -0
- package/frontend-vue/layers/dms-core/app/build/composables/user/tablePreferences.ts +5 -1
- package/frontend-vue/layers/dms-core/app/build/utils/crossTab.ts +199 -0
- package/frontend-vue/layers/dms-core/app/build/utils/sharedRealtimeConnection.ts +410 -0
- package/frontend-vue/layers/dms-core/app/composables/auth/useApiData.ts +77 -12
- package/frontend-vue/layers/dms-core/app/composables/data-types/useDataType.ts +26 -0
- package/frontend-vue/layers/dms-core/app/composables/live/livePauseSource.ts +29 -0
- package/frontend-vue/layers/dms-core/app/composables/period/compareResolvers.ts +150 -9
- package/frontend-vue/layers/dms-core/app/composables/period/usePeriod.ts +6 -4
- package/frontend-vue/layers/dms-core/app/composables/period/usePeriodScope.ts +27 -1
- package/frontend-vue/layers/dms-core/app/composables/realtime/useUserRealtime.ts +256 -119
- package/frontend-vue/layers/dms-core/app/composables/translation/useComposedText.ts +21 -8
- package/frontend-vue/layers/dms-core/app/composables/translation/useTranslation.ts +25 -5
- package/frontend-vue/layers/dms-core/app/composables/useApiError.ts +3 -5
- package/frontend-vue/layers/dms-core/app/composables/useFieldErrors.ts +61 -26
- package/frontend-vue/layers/dms-core/app/plugins/dev-error-log.ts +16 -0
- package/frontend-vue/layers/dms-core/app/types/user.ts +6 -0
- package/frontend-vue/layers/dms-core/app/utils/composedText.ts +7 -2
- package/frontend-vue/layers/dms-core/app/utils/formatter.ts +134 -35
- package/frontend-vue/layers/dms-core/app/utils/url-interpolation.ts +18 -1
- package/frontend-vue/layers/dms-core/i18n/locales/core-en-GB.json +136 -2
- package/frontend-vue/layers/dms-core/i18n/locales/core-fr-FR.json +136 -2
- 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/assets/css/main.css +11 -1
- package/frontend-vue/layers/dms-layout/app/assets/fonts/Geist-Italic-Variable.woff2 +0 -0
- package/frontend-vue/layers/dms-layout/app/assets/fonts/Geist-Variable.woff2 +0 -0
- package/frontend-vue/layers/dms-layout/app/assets/fonts/GeistMono-Italic-Variable.woff2 +0 -0
- package/frontend-vue/layers/dms-layout/app/assets/fonts/GeistMono-Variable.woff2 +0 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardBanners.vue +3 -2
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardHeader.vue +41 -21
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardPageBody.vue +6 -2
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardSidebar.vue +4 -19
- package/frontend-vue/layers/dms-layout/app/build/components/layout/Footer.vue +11 -107
- package/frontend-vue/layers/dms-layout/app/build/components/layout/GithubStarPrompt.vue +18 -7
- package/frontend-vue/layers/dms-layout/app/build/components/layout/PageHeaderActionsOutlet.vue +4 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/RowSidePanel.vue +43 -82
- package/frontend-vue/layers/dms-layout/app/build/components/layout/SidebarUserMenu.vue +44 -3
- package/frontend-vue/layers/dms-layout/app/build/components/layout/UserIdentity.vue +11 -3
- package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleCatalogTile.vue +132 -35
- package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleManageMenu.vue +59 -0
- package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleSourceLabel.vue +25 -0
- package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleStoreBanners.vue +73 -0
- package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleStoreOperation.vue +116 -0
- package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleStoreRequirements.vue +8 -3
- package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleStoreTile.vue +85 -207
- package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleTile.vue +10 -3
- package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleTileSkeleton.vue +68 -0
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationInboxDisplay.vue +24 -8
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationInboxItem.vue +8 -5
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/region/RegionTimeZoneInput.vue +1 -0
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/role-permissions.ts +19 -0
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/useRoleEditor.ts +2 -1
- package/frontend-vue/layers/dms-layout/app/build/composables/layout/useSidePanelWidth.ts +31 -70
- package/frontend-vue/layers/dms-layout/app/build/composables/notification/useNotificationGroupsOpen.ts +11 -1
- package/frontend-vue/layers/dms-layout/app/build/utils/dev-reload-stream.ts +81 -0
- package/frontend-vue/layers/dms-layout/app/build/utils/github-repository.ts +2 -2
- package/frontend-vue/layers/dms-layout/app/build/utils/module-store-catalog.ts +232 -36
- package/frontend-vue/layers/dms-layout/app/build/utils/modules-catalog.ts +122 -14
- package/frontend-vue/layers/dms-layout/app/composables/layout/useLayoutBanners.ts +32 -3
- package/frontend-vue/layers/dms-layout/app/composables/layout/useServedHeaderActions.ts +49 -11
- package/frontend-vue/layers/dms-layout/app/composables/page/useModuleHistory.ts +3 -2
- package/frontend-vue/layers/dms-layout/app/composables/page/useModuleStore.ts +59 -4
- package/frontend-vue/layers/dms-layout/app/composables/page/useModuleStoreActions.ts +194 -0
- package/frontend-vue/layers/dms-layout/app/composables/page/usePageComponentPreload.ts +23 -3
- package/frontend-vue/layers/dms-layout/app/composables/page/usePageLayout.ts +4 -2
- package/frontend-vue/layers/dms-layout/app/composables/page/usePageRecordDeletion.ts +162 -0
- package/frontend-vue/layers/dms-layout/app/composables/page/useSiteLayout.ts +6 -1
- package/frontend-vue/layers/dms-layout/app/custom-layouts/DefaultLayout.vue +6 -2
- package/frontend-vue/layers/dms-layout/app/custom-layouts/SettingsLayout.vue +6 -2
- package/frontend-vue/layers/dms-layout/app/custom-pages/modules-store.vue +291 -0
- package/frontend-vue/layers/dms-layout/app/custom-pages/modules.vue +87 -474
- package/frontend-vue/layers/dms-layout/app/middleware/module-routing.global.ts +3 -0
- package/frontend-vue/layers/dms-layout/app/pages/[...slug].vue +13 -22
- package/frontend-vue/layers/dms-layout/app/plugins/command-palette-navigation.client.ts +11 -10
- package/frontend-vue/layers/dms-layout/app/plugins/command-palette-personal-pages.client.ts +22 -52
- package/frontend-vue/layers/dms-layout/app/plugins/command-palette-quick-actions.client.ts +7 -7
- package/frontend-vue/layers/dms-layout/app/plugins/command-palette-session.client.ts +11 -10
- package/frontend-vue/layers/dms-layout/app/plugins/dms-dev-reload.client.ts +14 -9
- package/frontend-vue/layers/dms-layout/app/theme/actions.ts +5 -4
- package/frontend-vue/layers/dms-layout/app/theme/form-controls.ts +9 -4
- package/frontend-vue/layers/dms-layout/app/theme/surfaces.ts +22 -6
- package/frontend-vue/layers/dms-layout/app/types/module-store.ts +9 -0
- package/frontend-vue/layers/dms-layout/app/types/page.ts +15 -1
- package/frontend-vue/layers/dms-layout/app/utils/account-menu.ts +11 -0
- package/frontend-vue/layers/dms-layout/app/utils/breadcrumb.ts +57 -0
- package/frontend-vue/layers/dms-layout/app/utils/pageQuery.ts +26 -0
- package/frontend-vue/layers/dms-layout/i18n/locales/layout-en-GB.json +45 -18
- package/frontend-vue/layers/dms-layout/i18n/locales/layout-fr-FR.json +44 -17
- package/frontend-vue/layers/dms-ui/app/build/components/containers/TargetComponentTree.vue +31 -0
- package/frontend-vue/layers/dms-ui/app/build/components/containers/constants.ts +25 -0
- package/frontend-vue/layers/dms-ui/app/build/components/containers/drawer/DynamicDrawer.vue +244 -15
- package/frontend-vue/layers/dms-ui/app/build/components/containers/modal/DynamicModal.vue +42 -25
- package/frontend-vue/layers/dms-ui/app/build/components/containers/row/RowHeader.vue +153 -0
- package/frontend-vue/layers/dms-ui/app/build/components/containers/row/RowNotFound.vue +44 -0
- package/frontend-vue/layers/dms-ui/app/build/components/containers/row/drawerRowHeader.ts +35 -0
- package/frontend-vue/layers/dms-ui/app/build/components/form/FormEntries.vue +44 -9
- package/frontend-vue/layers/dms-ui/app/build/components/form/FormErrorSummary.vue +11 -4
- package/frontend-vue/layers/dms-ui/app/build/components/form/FormFieldControl.vue +38 -5
- package/frontend-vue/layers/dms-ui/app/build/components/form/FormFieldNotes.vue +29 -5
- package/frontend-vue/layers/dms-ui/app/build/components/form/FormLoadError.vue +5 -1
- package/frontend-vue/layers/dms-ui/app/build/components/form/FormSectionNav.vue +3 -1
- package/frontend-vue/layers/dms-ui/app/build/components/form/FormSections.vue +106 -27
- package/frontend-vue/layers/dms-ui/app/build/components/table/Actions.vue +12 -4
- package/frontend-vue/layers/dms-ui/app/build/components/table/Empty.vue +4 -2
- package/frontend-vue/layers/dms-ui/app/build/components/table/FiltersRow.vue +48 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/Pagination.vue +55 -54
- package/frontend-vue/layers/dms-ui/app/build/components/table/RowSelection.vue +2 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/Table.vue +396 -288
- package/frontend-vue/layers/dms-ui/app/build/components/table/Tabs.vue +2 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/Views.vue +2 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/CardAvatar.vue +59 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/CardGridSkeleton.vue +19 -2
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/CardRowActions.vue +38 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/CardsDisplay.vue +148 -104
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/LiveHoldBanner.vue +17 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/actions/bulkSelection.ts +43 -9
- package/frontend-vue/layers/dms-ui/app/build/composables/actions/rowComponentOptions.ts +76 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/actions/rowNavigation.ts +172 -27
- package/frontend-vue/layers/dms-ui/app/build/composables/actions/useActionTargets.ts +270 -46
- package/frontend-vue/layers/dms-ui/app/build/composables/confirm/actionError.ts +6 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/confirm/confirmDialogTexts.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/containers/closingLayers.ts +186 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/containers/context.ts +14 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/containers/drawerSize.ts +229 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/containers/useResizableSize.ts +175 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/metricCells.ts +18 -35
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/numberSuffix.ts +44 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/registerDefaults.ts +123 -27
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/registerFieldTypes.ts +2 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/relationFilter.ts +75 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/relationRows.ts +92 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/relationValue.ts +39 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/twoLineCell.ts +3 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/useColumnValueRenderer.ts +6 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/form/createFormFields.ts +15 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/form/fieldSaved.ts +40 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/form/fieldValueRule.ts +62 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/form/formEntryContext.ts +5 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/form/formFooter.ts +42 -7
- package/frontend-vue/layers/dms-ui/app/build/composables/form/formLayout.ts +106 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/form/formRecordLoad.ts +11 -5
- package/frontend-vue/layers/dms-ui/app/build/composables/form/formSections.ts +32 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/form/formValidation.ts +36 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/form/readonlyValue.ts +19 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/form/registerFormFunctions.ts +27 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/form/repeaterTable.ts +78 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/form/serverFieldErrors.ts +49 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/form/toasterClearance.ts +118 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/form/useInstantForm.ts +12 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/live/currentPageLive.ts +41 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/live/livePoller.ts +10 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/live/pageReadClock.ts +28 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/live/shortcuts.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/live/usePageLiveHost.ts +17 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/live/useUpdatedLabel.ts +38 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/page-toolbar/pageToolbarContext.ts +75 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/page-toolbar/toolbarControlHeight.ts +29 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/period/periodComparison.ts +52 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/period/periodDisplay.ts +21 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/period/periodShortLabels.ts +28 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/period/usePeriodDraft.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useRelationFilterLabels.ts +97 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useRowScrollAnchor.ts +106 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useTable.ts +9 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableColumns.ts +1 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/archivedCount.ts +31 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/filterEditorValue.ts +38 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/formatFilterValue.ts +33 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/scrollEdges.ts +31 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useCardFields.ts +33 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useMobileDisplay.ts +48 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useScrolledPastTop.ts +41 -18
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableFooter.ts +3 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableLinkedVisit.ts +78 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableLiveHold.ts +135 -22
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableRows.ts +56 -25
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableViewRowActions.ts +90 -35
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableViews.ts +86 -10
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/bulkActions.ts +14 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/card.ts +127 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/compareValues.ts +13 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/expandedRows.ts +28 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/groupedRows.ts +114 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/linkedArrival.ts +308 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/locateRow.ts +106 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/pageArrival.ts +34 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/pinnedRows.ts +17 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/quickFilters.ts +41 -33
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/recordLink.ts +24 -8
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/tableCounts.ts +113 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/tableQuery.ts +27 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/views.ts +22 -6
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/writeError.ts +21 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/addressSuggestions.ts +49 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/codeHighlight.ts +67 -29
- package/frontend-vue/layers/dms-ui/app/build/utils/eyebrow.ts +12 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/fieldOptionsI18n.ts +51 -11
- package/frontend-vue/layers/dms-ui/app/build/utils/htmlGrammar.ts +79 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/inputWidth.ts +53 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/numberAdjustment.ts +6 -3
- package/frontend-vue/layers/dms-ui/app/build/utils/relativeDate.ts +19 -5
- package/frontend-vue/layers/dms-ui/app/build/utils/scrollWithin.ts +99 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/shellParser.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/utils/streamHighlight.ts +90 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/urlVariables.ts +36 -14
- package/frontend-vue/layers/dms-ui/app/components/PasswordStrength.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/components/RecursiveComponent.vue +9 -1
- package/frontend-vue/layers/dms-ui/app/components/blocks/LiveToggleBlock.vue +80 -32
- package/frontend-vue/layers/dms-ui/app/components/blocks/PageToolbarBlock.vue +137 -0
- package/frontend-vue/layers/dms-ui/app/components/blocks/StatGroupBlock.vue +5 -0
- package/frontend-vue/layers/dms-ui/app/components/chart/ApexChartHost.vue +16 -2
- package/frontend-vue/layers/dms-ui/app/components/chart/Chart.vue +24 -5
- package/frontend-vue/layers/dms-ui/app/components/chart/ChartCard.vue +41 -23
- package/frontend-vue/layers/dms-ui/app/components/code-snippet/CodeSnippet.vue +23 -12
- package/frontend-vue/layers/dms-ui/app/components/confirm/ConfirmModal.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/components/container-footer/ContainerFooter.vue +34 -0
- package/frontend-vue/layers/dms-ui/app/components/field-row/FieldRow.vue +25 -2
- package/frontend-vue/layers/dms-ui/app/components/flow-canvas/FlowCanvas.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/components/form/Form.vue +119 -36
- package/frontend-vue/layers/dms-ui/app/components/form/components/Cascader.vue +53 -22
- package/frontend-vue/layers/dms-ui/app/components/form/components/DatePicker.vue +20 -1
- package/frontend-vue/layers/dms-ui/app/components/form/components/Display.vue +13 -1
- package/frontend-vue/layers/dms-ui/app/components/form/components/Image.vue +8 -3
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputAddress.vue +53 -5
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputCode.vue +29 -5
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputNumber.vue +45 -8
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputPercentage.vue +28 -5
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputSecret.vue +5 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputText.vue +19 -2
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputTime.vue +2 -1
- package/frontend-vue/layers/dms-ui/app/components/form/components/Relation.vue +226 -65
- package/frontend-vue/layers/dms-ui/app/components/form/components/Repeater.vue +80 -30
- package/frontend-vue/layers/dms-ui/app/components/form/components/RepeaterTable.vue +210 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/Select.vue +4 -2
- package/frontend-vue/layers/dms-ui/app/components/grid/GridRow.vue +11 -2
- package/frontend-vue/layers/dms-ui/app/components/key-value-list/KeyValueList.vue +79 -70
- package/frontend-vue/layers/dms-ui/app/components/kpi/KpiCard.vue +117 -21
- package/frontend-vue/layers/dms-ui/app/components/meter/Meter.vue +2 -1
- package/frontend-vue/layers/dms-ui/app/components/period/PeriodSelector.vue +113 -34
- package/frontend-vue/layers/dms-ui/app/components/save-bar/SaveBar.vue +14 -2
- package/frontend-vue/layers/dms-ui/app/components/section-header/Eyebrow.vue +6 -1
- package/frontend-vue/layers/dms-ui/app/components/segmented/Segmented.vue +13 -0
- package/frontend-vue/layers/dms-ui/app/components/stat-group/StatGroup.vue +52 -3
- package/frontend-vue/layers/dms-ui/app/components/tab/Tab.vue +2 -1
- package/frontend-vue/layers/dms-ui/app/components/table-view/CascaderPath.vue +74 -25
- package/frontend-vue/layers/dms-ui/app/components/table-view/KanbanBoard.vue +48 -44
- package/frontend-vue/layers/dms-ui/app/components/table-view/KanbanDisplay.vue +4 -1
- package/frontend-vue/layers/dms-ui/app/components/table-view/TableView.vue +426 -97
- package/frontend-vue/layers/dms-ui/app/components/top-list/TopListCard.vue +33 -5
- package/frontend-vue/layers/dms-ui/app/composables/chart/apexCategoryLabels.ts +68 -0
- package/frontend-vue/layers/dms-ui/app/composables/chart/apexDatetimeBuckets.ts +306 -0
- package/frontend-vue/layers/dms-ui/app/composables/chart/formatValue.ts +4 -3
- package/frontend-vue/layers/dms-ui/app/composables/chart/heatmapColors.ts +93 -0
- package/frontend-vue/layers/dms-ui/app/composables/chart/localizeSeries.ts +62 -0
- package/frontend-vue/layers/dms-ui/app/composables/chart/useApexChart.ts +116 -8
- package/frontend-vue/layers/dms-ui/app/composables/chart/useApexChart.types.ts +7 -0
- package/frontend-vue/layers/dms-ui/app/composables/containers/types.ts +84 -1
- package/frontend-vue/layers/dms-ui/app/composables/containers/useDrawer.ts +69 -8
- package/frontend-vue/layers/dms-ui/app/composables/form/types/field-saved.ts +11 -0
- package/frontend-vue/layers/dms-ui/app/composables/form/types/field.ts +16 -0
- package/frontend-vue/layers/dms-ui/app/composables/form/types/functions.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/composables/form/useForm.ts +189 -28
- package/frontend-vue/layers/dms-ui/app/composables/live/usePageLive.ts +29 -12
- package/frontend-vue/layers/dms-ui/app/composables/page-toolbar/usePageToolbarSize.ts +30 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/kanban.ts +4 -2
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/action-target.ts +22 -3
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/config.ts +4 -0
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/display.ts +24 -1
- package/frontend-vue/layers/dms-ui/app/plugins/closing-layers.client.ts +10 -0
- package/frontend-vue/layers/dms-ui/app/plugins/live-pause-source.ts +15 -0
- package/frontend-vue/layers/dms-ui/app/plugins/register.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/types/input-number.ts +3 -2
- package/frontend-vue/layers/dms-ui/app/types/page-toolbar.ts +7 -0
- package/frontend-vue/layers/dms-ui/app/types/row-action.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/types/row-navigation.ts +17 -0
- package/frontend-vue/layers/dms-ui/app/types/table/query.ts +2 -1
- package/frontend-vue/layers/dms-ui/app/utils/blockRefresh.ts +3 -1
- package/frontend-vue/layers/dms-ui/app/utils/cascader.ts +94 -3
- package/frontend-vue/layers/dms-ui/app/utils/componentTree.ts +24 -0
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-en-GB.json +20 -5
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-fr-FR.json +20 -5
- package/frontend-vue/package.json +6 -2
- package/package.json +11 -10
- package/skills/dms/SKILL.md +1 -1
- package/skills/dms-auth/SKILL.md +5 -3
- package/skills/dms-best-practices/REFERENCE.md +2 -0
- package/skills/dms-best-practices/SKILL.md +4 -0
- package/skills/dms-module/SKILL.md +3 -2
- package/skills/dms-pages/REFERENCE.md +129 -16
- package/skills/dms-pages/SKILL.md +1 -1
- package/skills/dms-project/DEV-SERVERS.md +23 -1
- package/skills/dms-project/REFERENCE.md +1 -1
- package/skills/dms-project/SKILL.md +4 -1
- package/skills/dms-project/scripts/dms-dev.sh +205 -17
- package/dist/hooks/tenant-instances.d.ts +0 -1
- package/dist/hooks/tenant-instances.js +0 -13
- package/dist/hooks/tenant-instances.js.map +0 -1
- package/dist/routes/startup-gate.d.ts +0 -7
- package/dist/routes/startup-gate.js +0 -39
- package/dist/routes/startup-gate.js.map +0 -1
- package/frontend-vue/layers/dms-core/app/composables/period/periodRenderNow.ts +0 -42
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../src/store/operations.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../src/store/operations.ts"],"names":[],"mappings":";;AA6EA,4CAEC;AAED,gCA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,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,cAAc,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;QACxD,KAAK,OAAO,CAAC,GAAG,EAAE,CAChB,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE;YAClC,UAAU,CAAC,SAAS,CAAC,CAAC;QACxB,CAAC,CAAC,CACH,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE,CACzB,iBAAO,CAAC,KAAK,CAAC,uBAAuB,IAAI,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CACjE,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,UAAU,CAAC,SAAS,CAAC,CAAC;QACtB,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -75,7 +75,8 @@ async function assertNoDependents(context) {
|
|
|
75
75
|
const module = await (0, runtime_1.describeRuntimeModule)(context.key);
|
|
76
76
|
if (!module || !(0, runtime_1.isLive)(module))
|
|
77
77
|
return;
|
|
78
|
-
const dependents = await (0, interfaces_1.findDependents)(module, await runningModules());
|
|
79
|
-
(0, interface_api_util_1.assert)(dependents.
|
|
78
|
+
const dependents = await (0, interfaces_1.findDependents)(module, await runningModules(), context.projectPath);
|
|
79
|
+
(0, interface_api_util_1.assert)(!dependents.usedByProject, HTTP_CONFLICT, "error.store_module_used_by_project");
|
|
80
|
+
(0, interface_api_util_1.assert)(dependents.modules.length === 0, HTTP_CONFLICT, "error.store_module_required");
|
|
80
81
|
}
|
|
81
82
|
//# sourceMappingURL=requirements.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requirements.js","sourceRoot":"","sources":["../../src/store/requirements.ts"],"names":[],"mappings":";;AAgDA,gCAEC;AAOD,wDAeC;AAED,wCAIC;AAMD,4CA0BC;AAMD,8CAwBC;
|
|
1
|
+
{"version":3,"file":"requirements.js","sourceRoot":"","sources":["../../src/store/requ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,IAAA,2BAAc,EACrC,MAAM,EACN,MAAM,cAAc,EAAE,EACtB,OAAO,CAAC,WAAW,CACpB,CAAC;IACF,IAAA,2BAAM,EACJ,CAAC,UAAU,CAAC,aAAa,EACzB,aAAa,EACb,oCAAoC,CACrC,CAAC;IACF,IAAA,2BAAM,EACJ,UAAU,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAC/B,aAAa,EACb,6BAA6B,CAC9B,CAAC;AACJ,CAAC"}
|
package/dist/store/runtime.d.ts
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
import type { RuntimeModule } from "./types";
|
|
1
|
+
import type { ModuleSourceKind, RuntimeModule } from "./types";
|
|
2
|
+
interface PackageSource {
|
|
3
|
+
type: string;
|
|
4
|
+
package?: string;
|
|
5
|
+
version?: string;
|
|
6
|
+
remote?: string;
|
|
7
|
+
}
|
|
2
8
|
export interface StoreModuleLoad {
|
|
3
9
|
package: string;
|
|
4
10
|
range: string;
|
|
5
11
|
config?: unknown;
|
|
6
12
|
}
|
|
13
|
+
export declare function sourceKindOf(source: PackageSource): ModuleSourceKind;
|
|
7
14
|
export declare function isLive(module: RuntimeModule | undefined): boolean;
|
|
15
|
+
export declare function findWorkingCopy(packageName: string, runtime: Iterable<RuntimeModule>): RuntimeModule | undefined;
|
|
8
16
|
export declare function listRuntimeModules(): Promise<Map<string, RuntimeModule>>;
|
|
9
17
|
export declare function loadStoreModule(moduleId: string, load: StoreModuleLoad): Promise<void>;
|
|
10
18
|
export declare function unloadStoreModule(moduleId: string): Promise<void>;
|
|
11
19
|
export declare function describeRuntimeModule(moduleId: string): Promise<RuntimeModule | undefined>;
|
|
20
|
+
export {};
|
package/dist/store/runtime.js
CHANGED
|
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.sourceKindOf = sourceKindOf;
|
|
6
7
|
exports.isLive = isLive;
|
|
8
|
+
exports.findWorkingCopy = findWorkingCopy;
|
|
7
9
|
exports.listRuntimeModules = listRuntimeModules;
|
|
8
10
|
exports.loadStoreModule = loadStoreModule;
|
|
9
11
|
exports.unloadStoreModule = unloadStoreModule;
|
|
@@ -14,16 +16,29 @@ const modules_1 = require("@antelopejs/interface-core/modules");
|
|
|
14
16
|
const PACKAGE_SOURCE_TYPE = "package";
|
|
15
17
|
const PACKAGE_JSON = "package.json";
|
|
16
18
|
const LIVE_STATUSES = new Set(["constructed", "active"]);
|
|
19
|
+
const GIT_SOURCE_TYPE = "git";
|
|
20
|
+
const GIT_HOSTS = [
|
|
21
|
+
["github", "github"],
|
|
22
|
+
["gitlab", "gitlab"],
|
|
23
|
+
];
|
|
24
|
+
const REMOTE_HOST = /^(?:[a-z+]+:\/\/)?(?:[^@/]+@)?([^/:]+)/i;
|
|
25
|
+
function sourceKindOf(source) {
|
|
26
|
+
if (source.type === PACKAGE_SOURCE_TYPE)
|
|
27
|
+
return "npm";
|
|
28
|
+
if (source.type !== GIT_SOURCE_TYPE)
|
|
29
|
+
return "local";
|
|
30
|
+
const host = REMOTE_HOST.exec(source.remote ?? "")?.[1]?.toLowerCase() ?? "";
|
|
31
|
+
return GIT_HOSTS.find(([word]) => host.includes(word))?.[1] ?? "git";
|
|
32
|
+
}
|
|
17
33
|
function isLive(module) {
|
|
18
34
|
return module !== undefined && LIVE_STATUSES.has(module.status);
|
|
19
35
|
}
|
|
20
|
-
async function
|
|
36
|
+
async function loadedManifest(localPath) {
|
|
21
37
|
try {
|
|
22
|
-
|
|
23
|
-
return manifest.version;
|
|
38
|
+
return JSON.parse(await (0, promises_1.readFile)(node_path_1.default.join(localPath, PACKAGE_JSON), "utf-8"));
|
|
24
39
|
}
|
|
25
40
|
catch {
|
|
26
|
-
return
|
|
41
|
+
return {};
|
|
27
42
|
}
|
|
28
43
|
}
|
|
29
44
|
async function describeModule(moduleId) {
|
|
@@ -31,10 +46,13 @@ async function describeModule(moduleId) {
|
|
|
31
46
|
const info = await (0, modules_1.GetModuleInfo)(moduleId);
|
|
32
47
|
const source = info.source;
|
|
33
48
|
const isPackage = source.type === PACKAGE_SOURCE_TYPE;
|
|
49
|
+
const manifest = await loadedManifest(info.localPath);
|
|
34
50
|
return {
|
|
35
51
|
id: moduleId,
|
|
36
|
-
packageName: isPackage ? source.package :
|
|
37
|
-
version:
|
|
52
|
+
packageName: isPackage ? source.package : manifest.name,
|
|
53
|
+
version: manifest.version,
|
|
54
|
+
isPackageSource: isPackage,
|
|
55
|
+
sourceKind: sourceKindOf(source),
|
|
38
56
|
status: info.status,
|
|
39
57
|
localPath: info.localPath,
|
|
40
58
|
};
|
|
@@ -43,6 +61,15 @@ async function describeModule(moduleId) {
|
|
|
43
61
|
return undefined;
|
|
44
62
|
}
|
|
45
63
|
}
|
|
64
|
+
function findWorkingCopy(packageName, runtime) {
|
|
65
|
+
for (const module of runtime) {
|
|
66
|
+
if (module.isPackageSource || module.packageName !== packageName)
|
|
67
|
+
continue;
|
|
68
|
+
if (isLive(module))
|
|
69
|
+
return module;
|
|
70
|
+
}
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
46
73
|
async function listRuntimeModules() {
|
|
47
74
|
const described = await Promise.all((await (0, modules_1.ListModules)()).map((moduleId) => describeModule(moduleId)));
|
|
48
75
|
return new Map(described
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/store/runtime.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/store/runtime.ts"],"names":[],"mappings":";;;;;AAsDA,oCAKC;AAED,wBAEC;AAyCD,0CASC;AAGD,gDAWC;AAOD,0CAqBC;AAGD,8CAKC;AAED,sDAIC;AAzKD,+CAA4C;AAC5C,0DAA6B;AAC7B,gEAM4C;AAG5C,MAAM,mBAAmB,GAAG,SAAS,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MAAM,CAAC,CAAC,MAAM,EAA2B,EAAE,CAAC,MAAM,KAAK,SAAS,CAAC;SACjE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CACxC,CAAC;AACJ,CAAC;AAOM,KAAK,UAAU,eAAe,CACnC,QAAgB,EAChB,IAAqB;IAErB,IAAI,CAAC;QACH,MAAM,IAAA,oBAAU,EACd,QAAQ,EACR;YACE,MAAM,EAAE;gBACN,IAAI,EAAE,mBAAmB;gBACzB,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,OAAO,EAAE,IAAI,CAAC,KAAK;aACpB;YACD,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,EAAE;SAC1B,EACD,IAAI,CACL,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,iBAAiB,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;QACzD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAGM,KAAK,UAAU,iBAAiB,CAAC,QAAgB;IACtD,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,QAAQ,CAAC,CAAC;IAC9C,IAAI,CAAC,MAAM;QAAE,OAAO;IACpB,MAAM,IAAA,oBAAU,EAAC,QAAQ,CAAC,CAAC;IAC3B,MAAM,IAAA,uBAAa,EAAC,QAAQ,CAAC,CAAC;AAChC,CAAC;AAEM,KAAK,UAAU,qBAAqB,CACzC,QAAgB;IAEhB,OAAO,cAAc,CAAC,QAAQ,CAAC,CAAC;AAClC,CAAC"}
|
package/dist/store/types.d.ts
CHANGED
|
@@ -21,10 +21,13 @@ export interface PackageRelease {
|
|
|
21
21
|
dependencies?: Record<string, string>;
|
|
22
22
|
implements?: string[];
|
|
23
23
|
}
|
|
24
|
+
export type ModuleSourceKind = "npm" | "github" | "gitlab" | "git" | "local";
|
|
24
25
|
export interface RuntimeModule {
|
|
25
26
|
id: string;
|
|
26
27
|
packageName?: string;
|
|
27
28
|
version?: string;
|
|
29
|
+
isPackageSource: boolean;
|
|
30
|
+
sourceKind?: ModuleSourceKind;
|
|
28
31
|
status: string;
|
|
29
32
|
localPath: string;
|
|
30
33
|
}
|
|
@@ -47,6 +50,10 @@ export interface MissingInterface {
|
|
|
47
50
|
interfacePackage: string;
|
|
48
51
|
candidates: InterfaceImplementation[];
|
|
49
52
|
}
|
|
53
|
+
export interface ModuleDependents {
|
|
54
|
+
modules: string[];
|
|
55
|
+
usedByProject: boolean;
|
|
56
|
+
}
|
|
50
57
|
export interface FrontendBreak {
|
|
51
58
|
name: string;
|
|
52
59
|
range: string;
|
|
@@ -68,6 +75,8 @@ export interface StoreListingEntry {
|
|
|
68
75
|
description: string;
|
|
69
76
|
state: StoreModuleState;
|
|
70
77
|
installedVersion?: string;
|
|
78
|
+
source: ModuleSourceKind;
|
|
79
|
+
isWorkingCopy?: boolean;
|
|
71
80
|
declaredRange?: string;
|
|
72
81
|
latestVersion?: string;
|
|
73
82
|
updateAvailable: boolean;
|
|
@@ -80,6 +89,7 @@ export interface StoreListingEntry {
|
|
|
80
89
|
frontendRequirement?: FrontendRequirement;
|
|
81
90
|
missingInterfaces: MissingInterface[];
|
|
82
91
|
dependents: string[];
|
|
92
|
+
usedByProject: boolean;
|
|
83
93
|
}
|
|
84
94
|
export interface StoreListing {
|
|
85
95
|
enabled: boolean;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare function ensureDefaultTenantExists(): Promise<
|
|
1
|
+
export declare function ensureDefaultTenantExists(): Promise<boolean>;
|
|
2
|
+
export declare function provisionDefaultTenant(): Promise<void>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ensureDefaultTenantExists = ensureDefaultTenantExists;
|
|
4
|
+
exports.provisionDefaultTenant = provisionDefaultTenant;
|
|
4
5
|
const logging_1 = require("@antelopejs/interface-core/logging");
|
|
5
6
|
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
6
7
|
const constants_1 = require("@antelopejs/interface-dms/constants");
|
|
7
8
|
const db_1 = require("@antelopejs/interface-dms/db");
|
|
9
|
+
const tenant_provisioning_1 = require("@antelopejs/interface-dms/tenant-provisioning");
|
|
8
10
|
function buildDefaultTenant() {
|
|
9
11
|
const now = new Date();
|
|
10
12
|
return {
|
|
@@ -19,9 +21,19 @@ async function ensureDefaultTenantExists() {
|
|
|
19
21
|
const existing = await tenants.get(constants_1.DEFAULT_TENANT_ID);
|
|
20
22
|
if (existing) {
|
|
21
23
|
logging_1.Logging.Info(`Default tenant '${constants_1.DEFAULT_TENANT_ID}' already exists.`);
|
|
22
|
-
return;
|
|
24
|
+
return false;
|
|
23
25
|
}
|
|
24
26
|
await tenants.insert(buildDefaultTenant());
|
|
25
27
|
logging_1.Logging.Info(`Default tenant '${constants_1.DEFAULT_TENANT_ID}' created.`);
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
async function provisionDefaultTenant() {
|
|
31
|
+
try {
|
|
32
|
+
await (0, tenant_provisioning_1.ProvisionTenant)({ tenantId: constants_1.DEFAULT_TENANT_ID, extras: {} });
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
await (0, interface_database_decorators_1.GetModel)(db_1.TenantModel).delete(constants_1.DEFAULT_TENANT_ID);
|
|
36
|
+
throw error;
|
|
37
|
+
}
|
|
26
38
|
}
|
|
27
39
|
//# sourceMappingURL=ensure-default-tenant.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensure-default-tenant.js","sourceRoot":"","sources":["../../src/utils/ensure-default-tenant.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"ensure-default-tenant.js","sourceRoot":"","sources":["../../src/utils/ensure-default-tenant.ts"],"names":[],"mappings":";;AAwBA,8DAWC;AAUD,wDAOC;AApDD,gEAA6D;AAC7D,6FAAqE;AACrE,mEAG6C;AAC7C,qDAAwE;AACxE,uFAAgF;AAEhF,SAAS,kBAAkB;IACzB,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;IACvB,OAAO;QACL,GAAG,EAAE,6BAAiB;QACtB,IAAI,EAAE,+BAAmB;QACzB,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,GAAG;KACf,CAAC;AACJ,CAAC;AAOM,KAAK,UAAU,yBAAyB;IAC7C,MAAM,OAAO,GAAG,IAAA,wCAAQ,EAAC,gBAAW,CAAC,CAAC;IACtC,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,6BAAiB,CAAC,CAAC;IACtD,IAAI,QAAQ,EAAE,CAAC;QACb,iBAAO,CAAC,IAAI,CAAC,mBAAmB,6BAAiB,mBAAmB,CAAC,CAAC;QACtE,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAC3C,iBAAO,CAAC,IAAI,CAAC,mBAAmB,6BAAiB,YAAY,CAAC,CAAC;IAC/D,OAAO,IAAI,CAAC;AACd,CAAC;AAUM,KAAK,UAAU,sBAAsB;IAC1C,IAAI,CAAC;QACH,MAAM,IAAA,qCAAe,EAAC,EAAE,QAAQ,EAAE,6BAAiB,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAA,wCAAQ,EAAC,gBAAW,CAAC,CAAC,MAAM,CAAC,6BAAiB,CAAC,CAAC;QACtD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -59,7 +59,8 @@ class CsvWriter {
|
|
|
59
59
|
this.filePath = filePath;
|
|
60
60
|
}
|
|
61
61
|
writeHeaders(headers) {
|
|
62
|
-
|
|
62
|
+
const headerLine = (0, sync_1.stringify)([headers], { header: false });
|
|
63
|
+
node_fs_1.default.writeFileSync(this.filePath, `${headerLine}`);
|
|
63
64
|
}
|
|
64
65
|
appendRow(headers, row) {
|
|
65
66
|
const csvRowContent = (0, sync_1.stringify)([row], {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-jobs.js","sourceRoot":"","sources":["../../src/utils/export-jobs.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"export-jobs.js","sourceRoot":"","sources":["../../src/utils/export-jobs.ts"],"names":[],"mappings":";;;;;;AA0GA,kCAIC;AAwBD,sCAKC;AAqDD,oCAIC;AAED,8DAKC;AAED,sDAsCC;AAED,0DAUC;AAED,0DAQC;AAiDD,kEAQC;AAMD,8DASC;AAED,8DAgBC;AAMD,kDAIC;AA7WD,sDAAyB;AACzB,sDAAyB;AACzB,0DAA6B;AAC7B,6CAAuC;AACvC,uEAAwD;AACxD,6FAAqE;AACrE,iEAAmD;AACnD,+EAK4C;AAC5C,qDAA2D;AAC3D,0DAAyE;AACzE,gEAAoE;AACpE,uEAG+C;AAC/C,6CAA+C;AAC/C,sCAA6C;AAC7C,6FAAwF;AAExF,qDAAuD;AACvD,qDAAgD;AAChD,4EASoD;AACpD,wEAAsF;AAatF,0EAMoD;AALlD,+GAAA,gBAAgB,OAAA;AAChB,oHAAA,qBAAqB,OAAA;AACrB,6GAAA,cAAc,OAAA;AACd,qHAAA,sBAAsB,OAAA;AACtB,4GAAA,aAAa,OAAA;AAEf,mFAAmG;AAA1F,2HAAA,4BAA4B,OAAA;AACrC,MAAM,iBAAiB,GAAG,aAAa,CAAC;AACxC,MAAM,qBAAqB,GAAG,oBAAoB,CAAC;AACnD,MAAM,uBAAuB,GAAG,EAAE,GAAG,EAAE,CAAC;AAExC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AACjC,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;AAClD,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAEjC,SAAS,YAAY,CAAC,KAAc;IAClC,IAAI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MAAM,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC;AACnC,CAAC;AAED,SAAS,uBAAuB,CAAC,OAAe;IAC9C,OAAO,OAAO,CAAC,OAAO,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,CAAC;AACvE,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAY,EAAE,SAAiB;IACjE,MAAM,SAAS,GAAG,uBAAuB,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;IACpE,MAAM,QAAQ,GAAG,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAC/C,OAAO,GAAG,QAAQ,IAAI,SAAS,IAAI,SAAS,EAAE,CAAC;AACjD,CAAC"}
|
|
@@ -42,14 +42,14 @@ export declare const authSchema: {
|
|
|
42
42
|
code: string;
|
|
43
43
|
state: string;
|
|
44
44
|
state_cookie: string;
|
|
45
|
-
language?: string | undefined;
|
|
46
45
|
invite?: string | undefined;
|
|
46
|
+
language?: string | undefined;
|
|
47
47
|
}, {
|
|
48
48
|
code: string;
|
|
49
49
|
state: string;
|
|
50
50
|
state_cookie: string;
|
|
51
|
-
language?: string | undefined;
|
|
52
51
|
invite?: string | undefined;
|
|
52
|
+
language?: string | undefined;
|
|
53
53
|
}>;
|
|
54
54
|
refresh: z.ZodObject<{
|
|
55
55
|
token: z.ZodString;
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const INVITE_NAME_MAX_LENGTH = 100;
|
|
3
3
|
export declare const INVITE_FULL_NAME_MAX_LENGTH: number;
|
|
4
4
|
export declare const INVITE_EMAILS_MAX = 50;
|
|
5
|
-
export declare const memberInviteSchema: z.ZodEffects<z.
|
|
5
|
+
export declare const memberInviteSchema: z.ZodEffects<z.ZodObject<{
|
|
6
6
|
emails: z.ZodArray<z.ZodString, "many">;
|
|
7
7
|
name: z.ZodOptional<z.ZodString>;
|
|
8
8
|
firstname: z.ZodOptional<z.ZodString>;
|
|
@@ -42,15 +42,7 @@ export declare const memberInviteSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
42
42
|
roles?: string[] | undefined;
|
|
43
43
|
firstname?: string | undefined;
|
|
44
44
|
lastname?: string | undefined;
|
|
45
|
-
}
|
|
46
|
-
language: string;
|
|
47
|
-
asTenantOwner: boolean;
|
|
48
|
-
emails: string[];
|
|
49
|
-
name?: string | undefined;
|
|
50
|
-
roles?: string[] | undefined;
|
|
51
|
-
firstname?: string | undefined;
|
|
52
|
-
lastname?: string | undefined;
|
|
53
|
-
}, unknown>;
|
|
45
|
+
}>;
|
|
54
46
|
export type MemberInvitePayload = z.infer<typeof memberInviteSchema>;
|
|
55
47
|
export interface InviteeNameParts {
|
|
56
48
|
firstname?: string;
|
|
@@ -7,20 +7,7 @@ const zod_1 = require("zod");
|
|
|
7
7
|
exports.INVITE_NAME_MAX_LENGTH = 100;
|
|
8
8
|
exports.INVITE_FULL_NAME_MAX_LENGTH = exports.INVITE_NAME_MAX_LENGTH * 2;
|
|
9
9
|
exports.INVITE_EMAILS_MAX = 50;
|
|
10
|
-
const LEGACY_EMAIL_KEY = "email";
|
|
11
|
-
const EMAILS_KEY = "emails";
|
|
12
10
|
const NAME_SEPARATOR = /\s+/;
|
|
13
|
-
function acceptLegacySingleEmail(payload) {
|
|
14
|
-
if (typeof payload !== "object" || payload === null)
|
|
15
|
-
return payload;
|
|
16
|
-
const record = payload;
|
|
17
|
-
if (record[EMAILS_KEY] !== undefined)
|
|
18
|
-
return payload;
|
|
19
|
-
const email = record[LEGACY_EMAIL_KEY];
|
|
20
|
-
if (typeof email !== "string")
|
|
21
|
-
return payload;
|
|
22
|
-
return { ...record, [EMAILS_KEY]: [email] };
|
|
23
|
-
}
|
|
24
11
|
const inviteNamePart = zod_1.z.string().trim().max(exports.INVITE_NAME_MAX_LENGTH);
|
|
25
12
|
const memberInviteObjectSchema = zod_1.z.object({
|
|
26
13
|
emails: zod_1.z
|
|
@@ -34,10 +21,10 @@ const memberInviteObjectSchema = zod_1.z.object({
|
|
|
34
21
|
language: zod_1.z.string(),
|
|
35
22
|
asTenantOwner: zod_1.z.boolean(),
|
|
36
23
|
});
|
|
37
|
-
exports.memberInviteSchema =
|
|
24
|
+
exports.memberInviteSchema = memberInviteObjectSchema.refine((data) => data.asTenantOwner || (data.roles && data.roles.length > 0), {
|
|
38
25
|
message: "$page.settings.members.invite.roles_required",
|
|
39
26
|
path: ["roles"],
|
|
40
|
-
})
|
|
27
|
+
});
|
|
41
28
|
function resolveInviteeNameParts(payload) {
|
|
42
29
|
if (payload.firstname || payload.lastname || !payload.name) {
|
|
43
30
|
return { firstname: payload.firstname, lastname: payload.lastname };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"member-invite.schema.js","sourceRoot":"","sources":["../../src/validation/member-invite.schema.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"member-invite.schema.js","sourceRoot":"","sources":["../../src/validation/member-invite.schema.ts"],"names":[],"mappings":";;;AA6DA,0DAQC;AAMD,gDAEC;AA7ED,6BAAwB;AAOX,QAAA,sBAAsB,GAAG,GAAG,CAAC;AAG7B,QAAA,2BAA2B,GAAG,8BAAsB,GAAG,CAAC,CAAC;AAMzD,QAAA,iBAAiB,GAAG,EAAE,CAAC;AAEpC,MAAM,cAAc,GAAG,KAAK,CAAC;AAO7B,MAAM,cAAc,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,8BAAsB,CAAC,CAAC;AAErE,MAAM,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,OAAC;SACN,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC;SAC9C,GAAG,CAAC,CAAC,EAAE,+CAA+C,CAAC;SACvD,GAAG,CAAC,yBAAiB,EAAE,+CAA+C,CAAC;IAC1E,IAAI,E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AAC"}
|
|
@@ -18,8 +18,10 @@ import permissionPreviewPrepaintPlugin from "./layers/dms-layout/app/plugins/per
|
|
|
18
18
|
import regionalPreferencesPlugin from "./layers/dms-layout/app/plugins/regional-preferences";
|
|
19
19
|
import seoPlugin from "./layers/dms-layout/app/plugins/seo";
|
|
20
20
|
import sidePanelHostPlugin from "./layers/dms-layout/app/plugins/side-panel-host";
|
|
21
|
+
import livePauseSourcePlugin from "./layers/dms-ui/app/plugins/live-pause-source";
|
|
21
22
|
import onboardingMiddleware from "./layers/dms-onboarding/app/middleware/onboarding.global";
|
|
22
23
|
import onboardingPreloadPlugin from "./layers/dms-onboarding/app/plugins/onboarding-preload";
|
|
24
|
+
import closingLayersPlugin from "./layers/dms-ui/app/plugins/closing-layers.client";
|
|
23
25
|
import registerPlugin from "./layers/dms-ui/app/plugins/register";
|
|
24
26
|
import shortcutsPlugin from "./layers/dms-ui/app/plugins/shortcuts";
|
|
25
27
|
import tableViewDisplaysPlugin from "./layers/dms-ui/app/plugins/table-view-displays";
|
|
@@ -92,8 +94,11 @@ function lazyComponent(loader: VueLoader): Component {
|
|
|
92
94
|
return defineAsyncComponent(async () => (await loader()).default);
|
|
93
95
|
}
|
|
94
96
|
|
|
95
|
-
//
|
|
96
|
-
//
|
|
97
|
+
// Not a compatibility path: two current contracts name these components.
|
|
98
|
+
// Templates use the component's own name (`<DmsSection>`, `<DmsFieldRow>`,
|
|
99
|
+
// `<DmsActivityFeed>`), while the backend blocks follow the `dms-xxx-block`
|
|
100
|
+
// vocabulary that `block-vocabulary.test.ts` enforces. Each entry maps the
|
|
101
|
+
// template name to the block name, so both resolve to one component.
|
|
97
102
|
const COMPONENT_ALIASES: Record<string, string> = {
|
|
98
103
|
ActivityFeed: "ActivityFeedBlock",
|
|
99
104
|
Section: "SectionBlock",
|
|
@@ -159,11 +164,21 @@ function registerPlugins(sdk: Parameters<DmsFrontendModule["setup"]>[0]): void {
|
|
|
159
164
|
const clientOnly = { clientOnly: true };
|
|
160
165
|
if (import.meta.env.DEV) {
|
|
161
166
|
sdk.registerPlugin(async (context) => {
|
|
162
|
-
const plugin =
|
|
163
|
-
"./layers/dms-layout/app/plugins/dms-dev-reload.client"
|
|
164
|
-
);
|
|
167
|
+
const plugin =
|
|
168
|
+
await import("./layers/dms-layout/app/plugins/dms-dev-reload.client");
|
|
165
169
|
await plugin.default(context);
|
|
166
170
|
}, clientOnly);
|
|
171
|
+
// Browser only: the server already logs a render that fails, with its
|
|
172
|
+
// stack. First, so an error a later plugin's work raises is logged too.
|
|
173
|
+
sdk.registerPlugin(
|
|
174
|
+
async (context) => {
|
|
175
|
+
const plugin = await import(
|
|
176
|
+
"./layers/dms-core/app/plugins/dev-error-log"
|
|
177
|
+
);
|
|
178
|
+
await plugin.default(context);
|
|
179
|
+
},
|
|
180
|
+
{ ...clientOnly, enforce: "pre" },
|
|
181
|
+
);
|
|
167
182
|
}
|
|
168
183
|
// Before any data is read, a higher-priority module's plugins included:
|
|
169
184
|
// every key lives in the session's scope, and a new scope aborts the reads
|
|
@@ -183,6 +198,10 @@ function registerPlugins(sdk: Parameters<DmsFrontendModule["setup"]>[0]): void {
|
|
|
183
198
|
sdk.registerPlugin(seoPlugin);
|
|
184
199
|
sdk.registerPlugin(faviconPlugin);
|
|
185
200
|
sdk.registerPlugin(sidePanelHostPlugin);
|
|
201
|
+
// Not deferred: a page's first poll reads it.
|
|
202
|
+
sdk.registerPlugin(livePauseSourcePlugin, clientOnly);
|
|
203
|
+
// Not deferred: the first dialog the user closes needs it.
|
|
204
|
+
sdk.registerPlugin(closingLayersPlugin, clientOnly);
|
|
186
205
|
sdk.registerPlugin(registerPlugin);
|
|
187
206
|
sdk.registerPlugin(shortcutsPlugin);
|
|
188
207
|
sdk.registerPlugin(tableViewDisplaysPlugin);
|
|
@@ -8,11 +8,28 @@ import { renderHtml } from "./layers/dms-layout/server/html-render";
|
|
|
8
8
|
// provider sign-in routes, the session logic the server runs outside them,
|
|
9
9
|
// the e-mail render the backend asks for, and the backend prefixes the
|
|
10
10
|
// browser reaches through it. The renderer proxies no path on its own.
|
|
11
|
+
|
|
12
|
+
// The largest upload the DMS stack signs: Media's limit, above the DMS's own
|
|
13
|
+
// `uploads.maxSize` default (100 MiB).
|
|
14
|
+
const STORAGE_UPLOAD_MAX_BYTES = 500 * 1024 * 1024;
|
|
15
|
+
// Named rather than inline so the renderer this repository builds against,
|
|
16
|
+
// which predates `maxBodyBytes`, type-checks it.
|
|
17
|
+
const STORAGE_UPLOADS = {
|
|
18
|
+
auth: "none",
|
|
19
|
+
maxBodyBytes: STORAGE_UPLOAD_MAX_BYTES,
|
|
20
|
+
} as const;
|
|
21
|
+
|
|
11
22
|
export default defineDmsServer((server) => {
|
|
12
23
|
// The backend's API and the DMS's own routes (menu, page, page layouts,
|
|
13
24
|
// permissions, realtime), with the session's token added server-side.
|
|
14
25
|
server.registerBackendProxy("/api/**");
|
|
15
26
|
server.registerBackendProxy("/dms/**");
|
|
27
|
+
// The storage's signed URLs (file fields, exports, profile photos, media),
|
|
28
|
+
// authenticated by the token they carry, never by the member's session, so
|
|
29
|
+
// a backend reachable only through the frontend still takes uploads and
|
|
30
|
+
// serves files.
|
|
31
|
+
server.registerBackendProxy("/file-storage/upload/**", STORAGE_UPLOADS);
|
|
32
|
+
server.registerBackendProxy("/file-storage/files/**", { auth: "none" });
|
|
16
33
|
|
|
17
34
|
server.registerRoute("GET", "/api/_auth/session", session.readSessionRoute);
|
|
18
35
|
server.registerRoute(
|
|
@@ -38,12 +38,11 @@ interface SessionUser {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
|
-
* Whether a session, or a stored account, outlives the browser
|
|
42
|
-
* that
|
|
43
|
-
* the flag existed carries none, and keeps the lifetime it was given then.
|
|
41
|
+
* Whether a session, or a stored account, outlives the browser: only one a
|
|
42
|
+
* login that ticked "keep me signed in" wrote (`persistent: true`).
|
|
44
43
|
*/
|
|
45
44
|
export function isPersistent(session?: { persistent?: unknown }): boolean {
|
|
46
|
-
return session?.persistent
|
|
45
|
+
return session?.persistent === true;
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
function lifetime(persistent: boolean): number | undefined {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { getCurrentInstance } from "vue";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The instant a server render reads the clock at, handed to the browser with
|
|
5
|
+
* the page: the periods' bounds and the relative dates read it.
|
|
6
|
+
*/
|
|
7
|
+
const RENDER_NOW_STATE_KEY = "dms-render-now";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The instant, in milliseconds, a component reads the clock at while its
|
|
11
|
+
* text must match the server's, or `null` for the clock's.
|
|
12
|
+
*
|
|
13
|
+
* A server render reads every such clock of the request at one instant, which
|
|
14
|
+
* it transfers; the browser hydrating that render reads the same one, so a
|
|
15
|
+
* text measured from now ("3 min ago", a relative period's bounds) hydrates
|
|
16
|
+
* as the server wrote it, even across a minute or midnight. Anywhere else (a
|
|
17
|
+
* client navigation, a later render, a call outside a component) it is
|
|
18
|
+
* `null`: the text follows the clock.
|
|
19
|
+
*/
|
|
20
|
+
export function serverRenderNow(): number | null {
|
|
21
|
+
if (!getCurrentInstance()) return null;
|
|
22
|
+
if (typeof window === "undefined") {
|
|
23
|
+
return useDmsState<number>(RENDER_NOW_STATE_KEY, () => Date.now(), {
|
|
24
|
+
transfer: true,
|
|
25
|
+
}).value;
|
|
26
|
+
}
|
|
27
|
+
if (!isDmsHydrating()) return null;
|
|
28
|
+
const transferred = useDmsState<number | null>(
|
|
29
|
+
RENDER_NOW_STATE_KEY,
|
|
30
|
+
() => null,
|
|
31
|
+
).value;
|
|
32
|
+
return typeof transferred === "number" ? transferred : null;
|
|
33
|
+
}
|
|
@@ -13,7 +13,9 @@ export type ServerTableField =
|
|
|
13
13
|
| "paginationScope"
|
|
14
14
|
| "activeTab"
|
|
15
15
|
| "viewMode"
|
|
16
|
-
| "activeView"
|
|
16
|
+
| "activeView"
|
|
17
|
+
| "linkScope"
|
|
18
|
+
| "shownLink";
|
|
17
19
|
|
|
18
20
|
/**
|
|
19
21
|
* @internal
|
|
@@ -224,6 +226,8 @@ export const SERVER_TABLE_FIELDS: Record<ServerTableField, ServerFieldCodec> = {
|
|
|
224
226
|
activeTab: plainField("t"),
|
|
225
227
|
viewMode: plainField("d"),
|
|
226
228
|
activeView: plainField("w"),
|
|
229
|
+
linkScope: plainField("l"),
|
|
230
|
+
shownLink: plainField("k"),
|
|
227
231
|
};
|
|
228
232
|
|
|
229
233
|
/** @internal Whether `field` is kept in the cookie. */
|