@antelopejs/dms 0.19.4 → 0.19.6
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 +47 -0
- package/dist/attachments/bindings.js +4 -2
- package/dist/attachments/bindings.js.map +1 -1
- package/dist/attachments/fields.d.ts +2 -2
- package/dist/attachments/fields.js +3 -2
- package/dist/attachments/fields.js.map +1 -1
- package/dist/attachments/save.d.ts +1 -1
- package/dist/attachments/save.js +2 -2
- package/dist/attachments/save.js.map +1 -1
- package/dist/attachments/table-view.js +13 -4
- package/dist/attachments/table-view.js.map +1 -1
- package/dist/automation/actions.js +2 -1
- package/dist/automation/actions.js.map +1 -1
- package/dist/automation/events.d.ts +5 -1
- package/dist/automation/events.js +10 -7
- package/dist/automation/events.js.map +1 -1
- package/dist/automation/send-notification.d.ts +2 -2
- package/dist/automation/send-notification.js +4 -3
- package/dist/automation/send-notification.js.map +1 -1
- package/dist/automation/sources.js.map +1 -1
- package/dist/automation/triggers.js +3 -5
- package/dist/automation/triggers.js.map +1 -1
- package/dist/db/guard-row.d.ts +2 -1
- package/dist/db/guard-row.js.map +1 -1
- package/dist/db/models/userNotificationPreferences.model.js +2 -1
- package/dist/db/models/userNotificationPreferences.model.js.map +1 -1
- package/dist/db/models/userNotifications.model.js +2 -1
- package/dist/db/models/userNotifications.model.js.map +1 -1
- package/dist/dev/module-update-notifications.js +10 -4
- package/dist/dev/module-update-notifications.js.map +1 -1
- package/dist/hooks/internal/workspace-notifications.js +8 -5
- package/dist/hooks/internal/workspace-notifications.js.map +1 -1
- package/dist/implementations/dms/menu-categories.d.ts +4 -4
- package/dist/implementations/dms/menu-categories.js +1 -0
- package/dist/implementations/dms/menu-categories.js.map +1 -1
- package/dist/implementations/dms/page/module-catalog.js +2 -1
- package/dist/implementations/dms/page/module-catalog.js.map +1 -1
- package/dist/implementations/dms/page/preview-models.d.ts +82 -6
- package/dist/implementations/dms/page/preview-models.js +43 -22
- package/dist/implementations/dms/page/preview-models.js.map +1 -1
- package/dist/implementations/dms/page/preview-pages.js +1 -1
- package/dist/implementations/dms/page/preview-pages.js.map +1 -1
- package/dist/implementations/dms/page/types.d.ts +0 -1
- package/dist/implementations/dms/permission-preview.d.ts +9 -3
- package/dist/implementations/dms/permission-preview.js +29 -2
- package/dist/implementations/dms/permission-preview.js.map +1 -1
- package/dist/implementations/dms-auth/index.d.ts +8 -1
- package/dist/implementations/dms-auth/index.js +62 -50
- package/dist/implementations/dms-auth/index.js.map +1 -1
- package/dist/implementations/dms-auth/session-handoff.js +5 -4
- package/dist/implementations/dms-auth/session-handoff.js.map +1 -1
- package/dist/implementations/dms-auth/token-session.js +2 -1
- package/dist/implementations/dms-auth/token-session.js.map +1 -1
- package/dist/implementations/dms-base/bulk-selection.js +2 -1
- package/dist/implementations/dms-base/bulk-selection.js.map +1 -1
- package/dist/implementations/dms-base/filter-tokens.js +2 -3
- package/dist/implementations/dms-base/filter-tokens.js.map +1 -1
- package/dist/implementations/dms-base/footer-summary.js.map +1 -1
- package/dist/implementations/dms-base/search-route.d.ts +3 -3
- package/dist/implementations/dms-base/search-route.js +4 -3
- package/dist/implementations/dms-base/search-route.js.map +1 -1
- package/dist/implementations/dms-base/table-view.d.ts +7 -7
- package/dist/implementations/dms-base/table-view.js +5 -4
- package/dist/implementations/dms-base/table-view.js.map +1 -1
- package/dist/implementations/dms-notifications/delivery-guard.js +2 -1
- package/dist/implementations/dms-notifications/delivery-guard.js.map +1 -1
- package/dist/pages/public/preview/block-types.d.ts +2 -1
- package/dist/pages/settings/overview/account-summary.js.map +1 -1
- package/dist/pages/settings/users/account-activity-feed.js +2 -1
- package/dist/pages/settings/users/account-activity-feed.js.map +1 -1
- package/dist/pages/settings/users/account-activity.js +29 -1
- package/dist/pages/settings/users/account-activity.js.map +1 -1
- package/dist/pages/settings/users/account-data.d.ts +54 -5
- package/dist/pages/settings/users/account-data.js.map +1 -1
- package/dist/pages/settings/users/member-change-notifications.d.ts +3 -1
- package/dist/pages/settings/users/member-change-notifications.js.map +1 -1
- package/dist/pages/settings/users/member-invite-batch.js +2 -1
- package/dist/pages/settings/users/member-invite-batch.js.map +1 -1
- package/dist/pages/settings/users/member-management.d.ts +2 -2
- package/dist/pages/settings/users/member-management.js.map +1 -1
- package/dist/pages/settings/users/members.js +2 -3
- package/dist/pages/settings/users/members.js.map +1 -1
- package/dist/pages/settings/users/notifications.js.map +1 -1
- package/dist/pages/settings/users/profile-helpers.js +9 -1
- package/dist/pages/settings/users/profile-helpers.js.map +1 -1
- package/dist/pages/settings/users/profile.js +18 -2
- package/dist/pages/settings/users/profile.js.map +1 -1
- package/dist/pages/settings/users/regional-preferences.js +6 -2
- package/dist/pages/settings/users/regional-preferences.js.map +1 -1
- package/dist/pages/settings/users/role-editor-store.d.ts +2 -2
- package/dist/pages/settings/users/role-editor-store.js.map +1 -1
- package/dist/pages/settings/users/two-factor-operations.js +1 -0
- package/dist/pages/settings/users/two-factor-operations.js.map +1 -1
- package/dist/realtime/broker.d.ts +2 -1
- package/dist/realtime/broker.js.map +1 -1
- package/dist/routes/auth/oauth/config.js +2 -1
- package/dist/routes/auth/oauth/config.js.map +1 -1
- package/dist/routes/auth/oauth/providers.d.ts +21 -1
- package/dist/routes/auth/oauth/providers.js +2 -2
- package/dist/routes/auth/oauth/providers.js.map +1 -1
- package/dist/store/declarations.d.ts +1 -8
- package/dist/store/declarations.js +2 -3
- package/dist/store/declarations.js.map +1 -1
- package/dist/store/internal/frontend/frontend-backend-proxies.js +3 -2
- package/dist/store/internal/frontend/frontend-backend-proxies.js.map +1 -1
- package/dist/store/internal/frontend/frontend-modules.js +3 -2
- package/dist/store/internal/frontend/frontend-modules.js.map +1 -1
- package/dist/store/internal/frontend/frontend-public-endpoints.js +8 -9
- package/dist/store/internal/frontend/frontend-public-endpoints.js.map +1 -1
- package/dist/store/internal/frontend/manifest.js +5 -4
- package/dist/store/internal/frontend/manifest.js.map +1 -1
- package/dist/store/operations.js.map +1 -1
- package/dist/store/registry.js +19 -7
- package/dist/store/registry.js.map +1 -1
- package/dist/store/types.d.ts +2 -1
- package/dist/utils/account-notifications.js +8 -5
- package/dist/utils/account-notifications.js.map +1 -1
- package/dist/utils/admin-invite-email.js.map +1 -1
- package/dist/utils/client-ip.js +2 -1
- package/dist/utils/client-ip.js.map +1 -1
- package/dist/utils/email-subjects.js.map +1 -1
- package/dist/utils/export-jobs-run.js +1 -1
- package/dist/utils/export-jobs-run.js.map +1 -1
- package/dist/utils/export-jobs.js +1 -4
- package/dist/utils/export-jobs.js.map +1 -1
- package/dist/utils/jwt-claims.d.ts +2 -1
- package/dist/utils/jwt-claims.js +10 -0
- package/dist/utils/jwt-claims.js.map +1 -1
- package/dist/utils/row-action-rule-evaluator.d.ts +2 -1
- package/dist/utils/row-action-rule-evaluator.js.map +1 -1
- package/dist/utils/sign-in-country.d.ts +1 -1
- package/dist/utils/sign-in-country.js +2 -1
- package/dist/utils/sign-in-country.js.map +1 -1
- package/dist/utils/tenant-instances.js +1 -1
- package/dist/utils/tenant-instances.js.map +1 -1
- package/dist/utils/two-factor-codes.d.ts +1 -0
- package/dist/utils/two-factor-codes.js +6 -0
- package/dist/utils/two-factor-codes.js.map +1 -1
- package/dist/utils/upload-token.js +7 -6
- package/dist/utils/upload-token.js.map +1 -1
- package/dist/utils/user-agent.js.map +1 -1
- package/dist/validation/store.schema.d.ts +3 -0
- package/dist/validation/store.schema.js +2 -1
- package/dist/validation/store.schema.js.map +1 -1
- package/frontend-vue/eslint-globals.generated.d.mts +8 -0
- package/frontend-vue/eslint-globals.generated.mjs +942 -0
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/2fa.vue +1 -1
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/forgot-validation.vue +1 -1
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/signup.vue +1 -2
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/validate.vue +1 -1
- package/frontend-vue/layers/dms-auth/server/accounts.ts +0 -1
- package/frontend-vue/layers/dms-auth/server/actions.ts +0 -2
- package/frontend-vue/layers/dms-auth/server/oauth.ts +0 -2
- package/frontend-vue/layers/dms-auth/server/session.ts +0 -2
- package/frontend-vue/layers/dms-core/app/build/composables/user/preferencesCookie.ts +0 -1
- package/frontend-vue/layers/dms-core/app/build/composables/user/tablePreferences.ts +0 -2
- package/frontend-vue/layers/dms-core/app/build/utils/crossTab.ts +0 -1
- package/frontend-vue/layers/dms-core/app/build/utils/permission-preview.ts +0 -1
- package/frontend-vue/layers/dms-core/app/build/utils/sharedRealtimeConnection.ts +0 -4
- package/frontend-vue/layers/dms-core/app/composables/auth/useAuthFetch.ts +11 -7
- package/frontend-vue/layers/dms-core/app/composables/auth/useMultiAccount.ts +2 -5
- package/frontend-vue/layers/dms-core/app/composables/auth/useSessionRecovery.ts +0 -1
- package/frontend-vue/layers/dms-core/app/composables/data-types/useDataType.ts +0 -2
- package/frontend-vue/layers/dms-core/app/composables/page/useSiteLayout.ts +41 -25
- package/frontend-vue/layers/dms-core/app/composables/realtime/useSseStream.ts +0 -2
- package/frontend-vue/layers/dms-core/app/composables/realtime/useUserRealtime.ts +0 -1
- package/frontend-vue/layers/dms-core/app/composables/useEventedAction.ts +0 -1
- package/frontend-vue/layers/dms-core/app/composables/useFieldErrors.ts +0 -2
- package/frontend-vue/layers/dms-core/app/composables/useTrailingDeduper.ts +10 -11
- package/frontend-vue/layers/dms-core/app/composables/user/usePreferences.ts +0 -1
- package/frontend-vue/layers/dms-core/app/composables/watch/useWatch.ts +0 -1
- package/frontend-vue/layers/dms-core/app/types/module-store.ts +0 -1
- package/frontend-vue/layers/dms-core/app/types/page.ts +0 -2
- package/frontend-vue/layers/dms-core/app/types/watch.ts +0 -1
- package/frontend-vue/layers/dms-core/app/utils/composedText.ts +34 -26
- package/frontend-vue/layers/dms-core/app/utils/dedupedRefresh.ts +0 -2
- package/frontend-vue/layers/dms-core/app/utils/formatter.ts +0 -2
- package/frontend-vue/layers/dms-core/app/utils/menu.ts +0 -1
- package/frontend-vue/layers/dms-core/app/utils/pageQuery.ts +0 -1
- package/frontend-vue/layers/dms-core/app/utils/query-validation.ts +0 -1
- package/frontend-vue/layers/dms-core/app/utils/stringTypeParser.ts +0 -1
- package/frontend-vue/layers/dms-core/app/utils/type-check.ts +0 -3
- package/frontend-vue/layers/dms-layout/app/build/components/layout/CommandPaletteAssistantAnswer.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardHeader.vue +8 -3
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardSidebar.vue +1 -2
- package/frontend-vue/layers/dms-layout/app/build/components/layout/PageHeaderActionBar.vue +1 -5
- package/frontend-vue/layers/dms-layout/app/build/components/layout/PageSkeleton.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/notification/NotificationPopover.vue +0 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/members/MemberRolePicker.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/profile/ProfilePersonalInfo.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/profile/ProfileSummaryRow.vue +2 -3
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityEmail.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityPassword.vue +4 -4
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecuritySessions.vue +1 -2
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityTwoFactor.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/AppearanceAccessibility.vue +2 -2
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/AppearanceDeveloper.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/AppearanceSidebar.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/CssVariablesList.vue +0 -1
- package/frontend-vue/layers/dms-layout/app/build/composables/navigation/useVisitNavBadges.ts +0 -1
- package/frontend-vue/layers/dms-layout/app/build/composables/settings/security/useSecurityFormat.ts +0 -3
- package/frontend-vue/layers/dms-layout/app/build/utils/modules-catalog.ts +0 -1
- package/frontend-vue/layers/dms-layout/app/composables/page/useModuleHistory.ts +0 -1
- package/frontend-vue/layers/dms-layout/app/composables/page/useModulesListing.ts +0 -3
- package/frontend-vue/layers/dms-layout/app/composables/page/usePageComponentPreload.ts +0 -1
- package/frontend-vue/layers/dms-layout/app/custom-pages/settings/roles.vue +0 -1
- package/frontend-vue/layers/dms-layout/app/custom-pages/settings/shortcuts.vue +0 -1
- package/frontend-vue/layers/dms-layout/app/emails/components/EmailLayout.vue +2 -2
- package/frontend-vue/layers/dms-layout/app/pages/[...slug].vue +0 -2
- package/frontend-vue/layers/dms-layout/app/plugins/profile-sync.client.ts +0 -2
- package/frontend-vue/layers/dms-layout/app/utils/breadcrumb.ts +0 -1
- package/frontend-vue/layers/dms-onboarding/app/build/components/onboarding/StepIndicator.vue +12 -6
- package/frontend-vue/layers/dms-ui/app/build/components/chart/internal/ChartSkeleton.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/containers/drawer/DynamicDrawer.vue +10 -16
- package/frontend-vue/layers/dms-ui/app/build/components/containers/modal/DynamicModal.vue +0 -2
- package/frontend-vue/layers/dms-ui/app/build/components/containers/row/RowHeader.vue +0 -1
- package/frontend-vue/layers/dms-ui/app/build/components/period/PeriodRangeCalendar.vue +0 -4
- package/frontend-vue/layers/dms-ui/app/build/components/skeleton/RowSkeleton.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/sortable/SortableList.vue +0 -2
- package/frontend-vue/layers/dms-ui/app/build/components/stat/StatCell.vue +5 -5
- package/frontend-vue/layers/dms-ui/app/build/components/table/Actions.vue +0 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/FiltersRow.vue +0 -4
- package/frontend-vue/layers/dms-ui/app/build/components/table/Menu.vue +0 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuColumns.vue +0 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuDensity.vue +0 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuFilter.vue +0 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuImport.vue +0 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuPage.vue +0 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuRoot.vue +0 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuSort.vue +0 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuViewMode.vue +0 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/Pagination.vue +1 -2
- package/frontend-vue/layers/dms-ui/app/build/components/table/RowSelection.vue +0 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/Table.vue +1 -2
- package/frontend-vue/layers/dms-ui/app/build/components/table/TableBody.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/Tabs.vue +1 -2
- package/frontend-vue/layers/dms-ui/app/build/components/table/Views.vue +1 -2
- package/frontend-vue/layers/dms-ui/app/build/components/table/tableComponentScroll.ts +4 -4
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/CardGridSkeleton.vue +2 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/CardsDisplay.vue +0 -2
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/ExpandedRowDetail.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/actions/actionTargetRows.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/blocks/useGuard.ts +0 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/chart/apexRawOptions.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/chart/apexSeriesStyle.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/chart/apexTheme.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/confirm/useActionConfirm.ts +5 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/containers/closingLayers.ts +2 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/containers/drawerSize.ts +0 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/containers/instanceProvides.ts +14 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/defaultChoiceTypes.ts +0 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/defaultDateCells.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/defaultIdentityCells.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/defaultMediaTypes.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/defaultPrimitiveTypes.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/defaultRelationTypes.ts +1 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/metricCells.ts +0 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/numberSuffix.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/relationRows.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/relationValue.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/twoLineCell.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/useColumnValueRenderer.ts +0 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/form/fieldSaved.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/form/formComponentRealtime.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/form/formComponentValidation.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/form/formState.ts +0 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/form/formValidation.ts +2 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/form/registerFormFunctions.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/form/repeaterTable.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/form/useFormModel.ts +0 -5
- package/frontend-vue/layers/dms-ui/app/build/composables/form/useInstantForm.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/instant-save/useInstantSave.ts +1 -5
- package/frontend-vue/layers/dms-ui/app/build/composables/layout/rowSidePanel.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/layout/sidePanelState.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/live/missedTally.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/live/pageLiveController.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/period/periodQuery.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnActionSizing.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnStructure.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/registerDefaultFunctions.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableRowActionContainers.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableRowActionValues.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewDisplays.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewRealtime.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewTabs.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/usePersistedPagination.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useReorderHandles.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableLiveHold.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTablePreferences.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableReorder.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableRows.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/bulkActions.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/card.ts +0 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/expandedRows.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/groupedRows.ts +0 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/reorder.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/sortableColumns.ts +0 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/tableQuery.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/unsaved-changes/formValue.ts +0 -9
- package/frontend-vue/layers/dms-ui/app/build/composables/unsaved-changes/registry.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/utils/accessibilityPreferences.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreview.ts +1 -5
- package/frontend-vue/layers/dms-ui/app/build/utils/calendarDay.ts +18 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/dispatchQuickActionTarget.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/utils/fetchNotFound.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/utils/fieldOptionsI18n.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/utils/rowClickTrigger.ts +5 -6
- package/frontend-vue/layers/dms-ui/app/build/utils/streamHighlight.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/utils/urlVariables.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/components/PasswordStrength.vue +14 -21
- package/frontend-vue/layers/dms-ui/app/components/RecursiveComponent.vue +0 -2
- package/frontend-vue/layers/dms-ui/app/components/block-preview/BlockPreview.vue +0 -2
- package/frontend-vue/layers/dms-ui/app/components/blocks/BannerBlock.vue +0 -1
- package/frontend-vue/layers/dms-ui/app/components/blocks/CodeBlock.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/components/card/NavCard.vue +1 -2
- package/frontend-vue/layers/dms-ui/app/components/chart/ApexChartHost.vue +0 -4
- package/frontend-vue/layers/dms-ui/app/components/chart/Chart.vue +1 -4
- package/frontend-vue/layers/dms-ui/app/components/chart/ChartCard.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/components/chart/internal/TrendBadge.vue +2 -1
- package/frontend-vue/layers/dms-ui/app/components/code-snippet/CodeSnippet.vue +0 -1
- package/frontend-vue/layers/dms-ui/app/components/confirm/ConfirmModal.vue +5 -5
- package/frontend-vue/layers/dms-ui/app/components/flow-canvas/FlowCanvas.vue +0 -3
- package/frontend-vue/layers/dms-ui/app/components/form/Form.vue +1 -4
- package/frontend-vue/layers/dms-ui/app/components/form/components/Calendar.vue +51 -41
- package/frontend-vue/layers/dms-ui/app/components/form/components/Cascader.vue +3 -1
- package/frontend-vue/layers/dms-ui/app/components/form/components/DatePicker.vue +31 -24
- package/frontend-vue/layers/dms-ui/app/components/form/components/Display.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/components/form/components/Image.vue +4 -5
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputAddress.vue +20 -11
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputNumber.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/components/form/components/Relation.vue +8 -7
- package/frontend-vue/layers/dms-ui/app/components/form/components/imageItems.ts +22 -33
- package/frontend-vue/layers/dms-ui/app/components/key-value-list/KeyValueList.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/components/kpi/KpiCard.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/components/master-detail/MasterDetail.vue +0 -1
- package/frontend-vue/layers/dms-ui/app/components/meter/MeterBlock.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/components/period/usePeriodSelectorInteraction.ts +0 -3
- package/frontend-vue/layers/dms-ui/app/components/table-view/KanbanBoard.vue +2 -3
- package/frontend-vue/layers/dms-ui/app/components/table-view/KanbanDisplay.vue +0 -1
- package/frontend-vue/layers/dms-ui/app/components/table-view/TableView.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/components/top-list/TopListCard.vue +3 -3
- package/frontend-vue/layers/dms-ui/app/composables/chart/apexDatetimeBuckets.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/composables/chart/events.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/composables/chart/localizeSeries.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/composables/chart/useApexChart.ts +2 -8
- package/frontend-vue/layers/dms-ui/app/composables/chart/useApexChart.types.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/composables/chart/useChartFetch.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/composables/confirm/types.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/composables/containers/openDynamicContainer.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/composables/containers/useDrawer.ts +3 -8
- package/frontend-vue/layers/dms-ui/app/composables/form/types/props.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/composables/form/useForm.ts +1 -7
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/action-target.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/column.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/display.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/composables/table-view/useTableViewExport.ts +0 -3
- package/frontend-vue/layers/dms-ui/app/composables/useExportJob.ts +0 -3
- package/frontend-vue/layers/dms-ui/app/utils/blockRefresh.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/utils/cascader.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/utils/metadataRetry.ts +0 -1
- package/frontend-vue/package.json +2 -0
- package/frontend-vue/scripts/probes/frontend-legacy.cjs +0 -2
- package/package.json +9 -1
|
@@ -161,11 +161,11 @@ function switchMethod(method: TwoFactorMethod) {
|
|
|
161
161
|
<template v-else>
|
|
162
162
|
<DmsOtpInput
|
|
163
163
|
ref="codeInput"
|
|
164
|
+
v-model="pin"
|
|
164
165
|
:label="$t('page.auth.code.label')"
|
|
165
166
|
size="xl"
|
|
166
167
|
is-split
|
|
167
168
|
is-centered
|
|
168
|
-
v-model="pin"
|
|
169
169
|
:length="PIN_LENGTH"
|
|
170
170
|
:error="codeError"
|
|
171
171
|
/>
|
|
@@ -164,11 +164,11 @@ async function requestForgotPassword() {
|
|
|
164
164
|
|
|
165
165
|
<DmsOtpInput
|
|
166
166
|
ref="codeInput"
|
|
167
|
+
v-model="state.pin"
|
|
167
168
|
:label="$t('page.auth.code.label')"
|
|
168
169
|
size="xl"
|
|
169
170
|
is-split
|
|
170
171
|
is-centered
|
|
171
|
-
v-model="state.pin"
|
|
172
172
|
:error="codeError"
|
|
173
173
|
:length="PIN_LENGTH"
|
|
174
174
|
:disabled="isLoading"
|
|
@@ -112,8 +112,7 @@ const invitationState = computed<InvitationState>(() => {
|
|
|
112
112
|
});
|
|
113
113
|
const closedInvitation = computed(() =>
|
|
114
114
|
invitationState.value in CLOSED_INVITATION_NOTICES
|
|
115
|
-
?
|
|
116
|
-
CLOSED_INVITATION_NOTICES[invitationState.value as ClosedInvitation]
|
|
115
|
+
? CLOSED_INVITATION_NOTICES[invitationState.value as ClosedInvitation]
|
|
117
116
|
: undefined,
|
|
118
117
|
);
|
|
119
118
|
|
|
@@ -139,11 +139,11 @@ async function requestEmailValidation() {
|
|
|
139
139
|
|
|
140
140
|
<DmsOtpInput
|
|
141
141
|
ref="codeInput"
|
|
142
|
+
v-model="state.pin"
|
|
142
143
|
:label="$t('page.auth.code.label')"
|
|
143
144
|
size="xl"
|
|
144
145
|
is-split
|
|
145
146
|
is-centered
|
|
146
|
-
v-model="state.pin"
|
|
147
147
|
:error="codeError"
|
|
148
148
|
:length="PIN_LENGTH"
|
|
149
149
|
:disabled="isLoading"
|
|
@@ -60,7 +60,6 @@ function accountCookieName(accountId: string): string {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
function descriptor(session: DmsSession, accountId: string): AccountDescriptor {
|
|
63
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The session owner does not prove these optional legacy user fields are strings. This preserves the existing unchecked descriptor projection; parsing or coercing them would change stored account payloads.
|
|
64
63
|
const user = (session.user ?? {}) as SessionUser;
|
|
65
64
|
return {
|
|
66
65
|
accountId,
|
|
@@ -195,7 +195,6 @@ export async function switchAccount(event: DmsServerEvent) {
|
|
|
195
195
|
const descriptor = persistAccountSession(
|
|
196
196
|
event,
|
|
197
197
|
session,
|
|
198
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- readAccount gates a prior accountId read, not this later property access. Preserve unchecked forwarding and repeated getter calls without claiming the current value is validated.
|
|
199
198
|
input.accountId as string,
|
|
200
199
|
);
|
|
201
200
|
return { success: true, user, account: descriptor };
|
|
@@ -252,7 +251,6 @@ export async function validateAccount(event: DmsServerEvent) {
|
|
|
252
251
|
method: "POST",
|
|
253
252
|
body: { token: account.refreshToken },
|
|
254
253
|
});
|
|
255
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- readAccount gates a prior accountId read, not this later property access. Preserve unchecked forwarding and repeated getter calls without claiming the current value is validated.
|
|
256
254
|
storeValidatedAccount(event, account, input.accountId as string, tokens);
|
|
257
255
|
return { valid: true };
|
|
258
256
|
} catch (error) {
|
|
@@ -135,10 +135,8 @@ function errorRedirect(key: string): Response {
|
|
|
135
135
|
return redirect(`${SIGN_IN}?oauth_error=${encodeURIComponent(key)}`);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- Catch values have no shared owner schema; an Error-only parameter would exclude existing thrown payloads.
|
|
139
138
|
function failureRedirect(error: unknown): Response {
|
|
140
139
|
const message = error instanceof Error ? error.message : "";
|
|
141
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- This unchecked status access preserves existing thrown-value handling, including a TypeError for nullish errors; no validated owner exists.
|
|
142
140
|
const status = (error as { status?: unknown }).status;
|
|
143
141
|
return errorRedirect(
|
|
144
142
|
isNumber(status) && message.startsWith(OAUTH_ERROR) ? message : FAILED,
|
|
@@ -20,9 +20,7 @@ interface RefreshFlight {
|
|
|
20
20
|
|
|
21
21
|
const refreshes = new Map<string, RefreshFlight>();
|
|
22
22
|
|
|
23
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- This rejection boundary handles arbitrary thrown values; a backend error owner type would exclude primitive errors.
|
|
24
23
|
export function isRefusal(error: unknown): boolean {
|
|
25
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Unchecked optional property access intentionally preserves primitive boxing and getter behavior; no owner contract validates thrown values.
|
|
26
24
|
const status = (error as { status?: unknown } | undefined)?.status;
|
|
27
25
|
return isNumber(status) && REFUSED.includes(status);
|
|
28
26
|
}
|
|
@@ -135,7 +135,6 @@ export const writeAt = (
|
|
|
135
135
|
let current = tree;
|
|
136
136
|
for (const key of keys.slice(0, -1)) {
|
|
137
137
|
if (!isBranch(current[key])) current[key] = {};
|
|
138
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The branch check and assignment precede a separate property read. An accessor can return another value; preserve that unchecked second lookup instead of caching or validating it.
|
|
139
138
|
current = current[key] as PreferencesTree;
|
|
140
139
|
}
|
|
141
140
|
current[lastKey] = value;
|
|
@@ -197,7 +197,6 @@ const decodeVisibility: ServerFieldCodec["decode"] = (stored, defaultValue) => {
|
|
|
197
197
|
};
|
|
198
198
|
|
|
199
199
|
const encodePagination: ServerFieldCodec["encode"] = (value) => {
|
|
200
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The codec contract accepts unknown and does not validate pagination. Inference cannot justify this legacy assertion; adding a guard would change malformed-input behavior.
|
|
201
200
|
const { pageIndex, pageSize } = value as PaginationEntry;
|
|
202
201
|
return pageIndex === FIRST_PAGE_INDEX ? pageSize : [pageSize, pageIndex];
|
|
203
202
|
};
|
|
@@ -278,7 +277,6 @@ export const decodeServerField = <T>(
|
|
|
278
277
|
const stored = entry?.[codec.key];
|
|
279
278
|
if (stored === undefined) return defaultValue;
|
|
280
279
|
try {
|
|
281
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- T is caller-selected, not validated by the codec. Deriving its return type would widen the existing generic API; preserve the unchecked contract.
|
|
282
280
|
return codec.decode(stored, defaultValue) as T;
|
|
283
281
|
} catch {
|
|
284
282
|
return defaultValue;
|
|
@@ -61,7 +61,6 @@ export function openTabBus(
|
|
|
61
61
|
): TabBus {
|
|
62
62
|
const listeners = new Set<TabMessageHandler>();
|
|
63
63
|
const deliver = (message: Parameters<TabMessageHandler>[0]) => {
|
|
64
|
-
// oxlint-disable-next-line unicorn/no-useless-spread -- Delivery snapshots listeners so removals and additions during callbacks affect only subsequent messages; iterating the live Set changes that behavior.
|
|
65
64
|
for (const listener of [...listeners]) listener(message);
|
|
66
65
|
};
|
|
67
66
|
const channel = canShareAcrossTabs(environment)
|
|
@@ -220,7 +220,6 @@ export function applyPreviewEntryStates<T extends PreviewLockableEntry>(
|
|
|
220
220
|
return items.map((item) => {
|
|
221
221
|
const children = item.children
|
|
222
222
|
? applyPreviewEntryStates(
|
|
223
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The existing recursive API assumes children share T, but its public object[] contract does not prove this. Strengthening that contract would be a separate breaking change.
|
|
224
223
|
item.children as readonly T[],
|
|
225
224
|
stateOf,
|
|
226
225
|
decorate,
|
|
@@ -231,7 +231,6 @@ const connectWithBackoff = (
|
|
|
231
231
|
const readConnectionId = (
|
|
232
232
|
data: Parameters<SseEventHandler>[1],
|
|
233
233
|
): string | null => {
|
|
234
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- SSE decoding returns arbitrary values; inference cannot read this optional property. Keep the existing unchecked property read and subsequent string guard rather than asserting that decoding validated a frame.
|
|
235
234
|
const connectionId = (data as { connectionId?: unknown } | null)
|
|
236
235
|
?.connectionId;
|
|
237
236
|
return isString(connectionId) ? connectionId : null;
|
|
@@ -305,7 +304,6 @@ const lead = ({ options, environment, bus, tabId }: LeaderContext) => {
|
|
|
305
304
|
};
|
|
306
305
|
|
|
307
306
|
const unlisten = bus.listen((raw) => {
|
|
308
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- TabBus transports unknown browser messages, not validated HubMessages. Neither inference nor its owner proves this union; preserve the existing unchecked dispatch, including malformed-message behavior.
|
|
309
307
|
const message = raw as HubMessage;
|
|
310
308
|
if (message.kind === "query")
|
|
311
309
|
bus.post({ kind: "connection", connectionId });
|
|
@@ -328,7 +326,6 @@ const lead = ({ options, environment, bus, tabId }: LeaderContext) => {
|
|
|
328
326
|
bus.post({ kind: "frame", connectionId, event: eventName, data });
|
|
329
327
|
return;
|
|
330
328
|
}
|
|
331
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The SSE owner exposes unparsed data; this is only an unchecked view for the two existing string checks, not proof of a complete SessionFrame.
|
|
332
329
|
const frame = data as SessionFrame | null;
|
|
333
330
|
if (!isString(frame?.sessionId)) return;
|
|
334
331
|
if (!isString(frame.event)) return;
|
|
@@ -372,7 +369,6 @@ export function joinSharedRealtimeConnection(
|
|
|
372
369
|
let connectionId: string | undefined;
|
|
373
370
|
|
|
374
371
|
const unlisten = bus.listen((raw) => {
|
|
375
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- TabBus does not validate its payload. Narrowing its owner to HubMessage or adding validation here would change the current acceptance and failure behavior of malformed messages.
|
|
376
372
|
const message = raw as HubMessage;
|
|
377
373
|
if (message.kind === "connection") {
|
|
378
374
|
const next = message.connectionId ?? undefined;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { isObject } from "../../utils/type-check";
|
|
2
|
+
|
|
1
3
|
export const CONTENT_LANGUAGE_HEADER = "x-content-language";
|
|
2
4
|
|
|
3
5
|
const RETRY_HEADER = "x-auth-retry";
|
|
@@ -28,12 +30,14 @@ function withRetryHeader(
|
|
|
28
30
|
return merged;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- This catch boundary accepts arbitrary rejections; ofetch's FetchError owner would exclude supported non-fetch throws.
|
|
32
33
|
function isUnauthorized(error: unknown): boolean {
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
if (!isObject(error) || error === null) return false;
|
|
35
|
+
const { response } = error;
|
|
36
|
+
return (
|
|
37
|
+
isObject(response) &&
|
|
38
|
+
response !== null &&
|
|
39
|
+
response.status === HTTP_UNAUTHORIZED
|
|
40
|
+
);
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
export const useAuthFetch = () => {
|
|
@@ -126,12 +130,12 @@ export const useAuthFetch = () => {
|
|
|
126
130
|
...defaults,
|
|
127
131
|
...options,
|
|
128
132
|
});
|
|
129
|
-
// SAFETY: retryingFetch resolves with
|
|
133
|
+
// SAFETY: For every type argument a caller picks, retryingFetch resolves with what baseFetch resolves for the caller's request and its options merged over defaults, responseType included, a 401 retry resending them with only the retry header added; raw, native and create are assigned by the next three statements, before authFetch is returned.
|
|
130
134
|
const authFetch = ((
|
|
131
135
|
request: AuthFetchArgs[0],
|
|
132
136
|
options?: AuthFetchArgs[1],
|
|
133
137
|
) => retryingFetch(request, optionsOf(options))) as AuthFetch;
|
|
134
|
-
// SAFETY: retryingRaw resolves with
|
|
138
|
+
// SAFETY: For every type argument a caller picks, retryingRaw resolves with what baseFetch.raw resolves for the caller's request and its options merged over defaults, responseType included, a 401 retry resending them with only the retry header added.
|
|
135
139
|
authFetch.raw = ((request: AuthFetchArgs[0], options?: AuthFetchArgs[1]) =>
|
|
136
140
|
retryingRaw(request, optionsOf(options))) as AuthFetch["raw"];
|
|
137
141
|
authFetch.native = baseFetch.native;
|
|
@@ -37,10 +37,10 @@ function useAccountsStorage(): AccountsRef {
|
|
|
37
37
|
const existing = accountsStorageByApp.get(dmsApp);
|
|
38
38
|
if (existing) return existing;
|
|
39
39
|
|
|
40
|
-
// SAFETY: A newly created effect scope is active, so run synchronously returns this callback's useStorage result.
|
|
41
40
|
const storage = effectScope(true).run(() =>
|
|
42
41
|
useStorage<StoredAccount[]>(STORAGE_KEY, [], undefined),
|
|
43
|
-
)
|
|
42
|
+
);
|
|
43
|
+
if (!storage) throw new Error("The accounts storage scope is inactive");
|
|
44
44
|
dropDuplicates(storage);
|
|
45
45
|
accountsStorageByApp.set(dmsApp, storage);
|
|
46
46
|
return storage;
|
|
@@ -64,9 +64,7 @@ interface UpstreamError {
|
|
|
64
64
|
statusCode?: number;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- Request failures can throw arbitrary JavaScript values. FetchError owner types cannot describe every thrown value.
|
|
68
67
|
function isTokenRejection(error: unknown): boolean {
|
|
69
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Unchecked projection intentionally preserves property access on primitive errors. It does not establish an UpstreamError contract.
|
|
70
68
|
const { status, statusCode } = (error ?? {}) as UpstreamError;
|
|
71
69
|
const upstreamStatus = statusCode ?? status;
|
|
72
70
|
return (
|
|
@@ -124,7 +122,6 @@ async function requestAccountSwitch(account: StoredAccount) {
|
|
|
124
122
|
* @internal
|
|
125
123
|
*/
|
|
126
124
|
export async function refreshSessionSurfaces(
|
|
127
|
-
// oxlint-disable-next-line anti-slop/no-unknown-returns -- Refresh results are awaited and discarded. Deriving from the session fetch owner would reject otherwise valid callbacks with other results.
|
|
128
125
|
refreshUser: () => Promise<unknown>,
|
|
129
126
|
): Promise<void> {
|
|
130
127
|
await refreshUser();
|
|
@@ -11,7 +11,6 @@ export const useSessionRecovery = () => {
|
|
|
11
11
|
|
|
12
12
|
function refreshSession(): Promise<boolean> {
|
|
13
13
|
return runDeduped(
|
|
14
|
-
// oxlint-disable-next-line anti-slop/no-chained-type-assertions, anti-slop/require-safety-comment-for-type-assertion -- DmsAppContext lacks runDeduped's arbitrary property index. Owner-derived holder typing still requires this conversion; preserve the shared app holder without a wrapper or changed identity.
|
|
15
14
|
dmsApp as unknown as Parameters<typeof runDeduped>[0],
|
|
16
15
|
IN_FLIGHT_REFRESH_KEY,
|
|
17
16
|
() =>
|
|
@@ -11,7 +11,6 @@ export type RecordWithDefault<T> = Record<string, T> & { default: T };
|
|
|
11
11
|
* shorter grid rendering), `empty` (drawn instead of the fallback for a
|
|
12
12
|
* null/undefined value), and one per compare mode for filter chips.
|
|
13
13
|
*/
|
|
14
|
-
/* oxlint-disable anti-slop/no-unknown-parameters, anti-slop/no-unknown-returns, anti-slop/no-unsafe-dictionary-type -- These declarations own the open module data-type extension contract. No shared schema exists for plugin values, options, rows or render results; inference from built-in implementations would exclude third-party formats. */
|
|
15
14
|
export type DataTypeFormatter = (
|
|
16
15
|
value: unknown,
|
|
17
16
|
locale: string,
|
|
@@ -44,7 +43,6 @@ export type DataTypeValueComparer = (
|
|
|
44
43
|
* keeps its text, so the query is unchanged.
|
|
45
44
|
*/
|
|
46
45
|
export type DataTypeFilterEditorValue = (text: string, mode: string) => unknown;
|
|
47
|
-
/* oxlint-enable anti-slop/no-unknown-parameters, anti-slop/no-unknown-returns, anti-slop/no-unsafe-dictionary-type */
|
|
48
46
|
|
|
49
47
|
/**
|
|
50
48
|
* Where the rows a value names are read: the `select` route of the table a
|
|
@@ -21,10 +21,6 @@ declare module "#dms/frontend-module" {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
interface MatchRouteOptions {
|
|
25
|
-
includeCategories: boolean;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
24
|
const navigableCategoriesByLayout = new WeakMap<
|
|
29
25
|
SiteLayout,
|
|
30
26
|
Map<string, CategoryInfo>
|
|
@@ -47,9 +43,9 @@ export function findNavigableCategory(
|
|
|
47
43
|
return bySlug.get(slug);
|
|
48
44
|
}
|
|
49
45
|
|
|
50
|
-
interface MatchRouteResult {
|
|
46
|
+
interface MatchRouteResult<Metadata> {
|
|
51
47
|
pattern: string;
|
|
52
|
-
metadata:
|
|
48
|
+
metadata: Metadata;
|
|
53
49
|
params: Record<string, string>;
|
|
54
50
|
}
|
|
55
51
|
|
|
@@ -212,7 +208,6 @@ const useSiteLayoutRequests = () => {
|
|
|
212
208
|
const { resolveError } = useApiErrorPresenter();
|
|
213
209
|
const HTTP_INTERNAL_ERROR = 500;
|
|
214
210
|
|
|
215
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- Fetch rejection values have no shared owner schema; an Error-only input would exclude malformed thrown values that intentionally use the fallback message.
|
|
216
211
|
const handleSiteLayoutError = (error: unknown) => {
|
|
217
212
|
const errorMessage = resolveError(error, {
|
|
218
213
|
fallbackKey: "error.500.description",
|
|
@@ -331,13 +326,14 @@ const useSiteLayoutRequests = () => {
|
|
|
331
326
|
};
|
|
332
327
|
};
|
|
333
328
|
|
|
334
|
-
function
|
|
335
|
-
path
|
|
336
|
-
|
|
337
|
-
options: MatchRouteOptions,
|
|
338
|
-
): MatchRouteResult | null {
|
|
339
|
-
const normalizedPath = withoutTrailingSlash(path) || "/";
|
|
329
|
+
function normalizeRoutePath(path: string): string {
|
|
330
|
+
return withoutTrailingSlash(path) || "/";
|
|
331
|
+
}
|
|
340
332
|
|
|
333
|
+
function exactPageRoute(
|
|
334
|
+
normalizedPath: string,
|
|
335
|
+
layout: SiteLayout,
|
|
336
|
+
): MatchRouteResult<PageInfo> | null {
|
|
341
337
|
if (layout.pages[normalizedPath]) {
|
|
342
338
|
return {
|
|
343
339
|
pattern: normalizedPath,
|
|
@@ -345,14 +341,40 @@ function matchRoute(
|
|
|
345
341
|
params: {},
|
|
346
342
|
};
|
|
347
343
|
}
|
|
344
|
+
return null;
|
|
345
|
+
}
|
|
348
346
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
347
|
+
function matchPageRoute(
|
|
348
|
+
path: string,
|
|
349
|
+
layout: SiteLayout,
|
|
350
|
+
): MatchRouteResult<PageInfo> | null {
|
|
351
|
+
const normalizedPath = normalizeRoutePath(path);
|
|
352
|
+
return (
|
|
353
|
+
exactPageRoute(normalizedPath, layout) ??
|
|
354
|
+
patternPageRoute(normalizedPath, layout)
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
function matchRouteOrCategory(
|
|
359
|
+
path: string,
|
|
360
|
+
layout: SiteLayout,
|
|
361
|
+
): MatchRouteResult<PageInfo | CategoryInfo> | null {
|
|
362
|
+
const normalizedPath = normalizeRoutePath(path);
|
|
363
|
+
const exact = exactPageRoute(normalizedPath, layout);
|
|
364
|
+
if (exact) return exact;
|
|
365
|
+
|
|
366
|
+
const category = findNavigableCategory(layout, normalizedPath);
|
|
352
367
|
if (category) {
|
|
353
368
|
return { pattern: normalizedPath, metadata: category, params: {} };
|
|
354
369
|
}
|
|
355
370
|
|
|
371
|
+
return patternPageRoute(normalizedPath, layout);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
function patternPageRoute(
|
|
375
|
+
normalizedPath: string,
|
|
376
|
+
layout: SiteLayout,
|
|
377
|
+
): MatchRouteResult<PageInfo> | null {
|
|
356
378
|
for (const [pattern, metadata] of Object.entries(layout.pages)) {
|
|
357
379
|
if (pattern.includes(":")) {
|
|
358
380
|
const params = extractRouteParams(pattern, normalizedPath);
|
|
@@ -440,10 +462,7 @@ export const useSiteLayout = () => {
|
|
|
440
462
|
const layout = siteLayout.value;
|
|
441
463
|
if (!layout) return null;
|
|
442
464
|
|
|
443
|
-
|
|
444
|
-
return matchRoute(path, layout, {
|
|
445
|
-
includeCategories: false,
|
|
446
|
-
}) as ReturnType<typeof findMatchingRoute>;
|
|
465
|
+
return matchPageRoute(path, layout);
|
|
447
466
|
};
|
|
448
467
|
|
|
449
468
|
const findMatchingRouteOrCategory = (
|
|
@@ -456,7 +475,7 @@ export const useSiteLayout = () => {
|
|
|
456
475
|
const layout = siteLayout.value;
|
|
457
476
|
if (!layout) return null;
|
|
458
477
|
|
|
459
|
-
return
|
|
478
|
+
return matchRouteOrCategory(path, layout);
|
|
460
479
|
};
|
|
461
480
|
|
|
462
481
|
const probeAndCommitRoute = async (path: string): Promise<boolean> => {
|
|
@@ -465,10 +484,7 @@ export const useSiteLayout = () => {
|
|
|
465
484
|
try {
|
|
466
485
|
const result = await $authFetch<SiteLayoutResponse>(SITE_LAYOUT_ENDPOINT);
|
|
467
486
|
|
|
468
|
-
if (
|
|
469
|
-
matchRoute(path, result.siteLayout, { includeCategories: false }) ===
|
|
470
|
-
null
|
|
471
|
-
) {
|
|
487
|
+
if (matchPageRoute(path, result.siteLayout) === null) {
|
|
472
488
|
return false;
|
|
473
489
|
}
|
|
474
490
|
clearPageLayoutCaches();
|
|
@@ -4,7 +4,6 @@ import { isObject } from "../../utils/type-check";
|
|
|
4
4
|
/** Receives decoded data and the frame's id (null if absent, empty if reset). */
|
|
5
5
|
export type SseEventHandler = (
|
|
6
6
|
eventName: string,
|
|
7
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- The transport forwards arbitrary JSON or raw text. Event consumers own payload parsing; an event-specific schema would narrow this public transport.
|
|
8
7
|
data: unknown,
|
|
9
8
|
id: string | null,
|
|
10
9
|
) => void;
|
|
@@ -18,7 +17,6 @@ export interface SseStreamOptions {
|
|
|
18
17
|
headers?: () => Record<string, string>;
|
|
19
18
|
onEvent: SseEventHandler;
|
|
20
19
|
onOpen?: () => void;
|
|
21
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- Fetch, stream readers, and caller callbacks can all throw arbitrary values. No single Error owner contract covers these failures.
|
|
22
20
|
onError?: (error: unknown) => void;
|
|
23
21
|
/** Called once after cleanup; errors call onError first. Retry on only one callback. */
|
|
24
22
|
onClose?: (reason: SseCloseReason) => void;
|
|
@@ -31,7 +31,6 @@ type RealtimeFrameData = Parameters<
|
|
|
31
31
|
export interface RealtimeEvent {
|
|
32
32
|
topic: string;
|
|
33
33
|
type: string;
|
|
34
|
-
// oxlint-disable-next-line anti-slop/no-unsafe-dictionary-type -- Backend realtime/broker.ts owns the same arbitrary payload contract; topic-specific schemas cannot narrow this public event interface.
|
|
35
34
|
payload?: Record<string, unknown>;
|
|
36
35
|
actorId?: string;
|
|
37
36
|
ts: number;
|
|
@@ -12,7 +12,6 @@ interface EventedActionOptions {
|
|
|
12
12
|
interface ExecuteOptions<TResult> {
|
|
13
13
|
startPayload?: ComponentEventData["data"];
|
|
14
14
|
successPayload?: (result: TResult) => ComponentEventData["data"];
|
|
15
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- JavaScript actions may reject with any value; neither Promise<TResult> nor the component-event owner provides a narrower rejection type.
|
|
16
15
|
errorPayload?: (error: unknown) => ComponentEventData["data"];
|
|
17
16
|
}
|
|
18
17
|
|
|
@@ -481,7 +481,6 @@ export interface HandleApiErrorOptions {
|
|
|
481
481
|
* Bind `errors[field]` to the message element (id `errorId(field)`) and
|
|
482
482
|
* `aria(field)` onto the control; call `clear(field)` when its value changes.
|
|
483
483
|
*/
|
|
484
|
-
/* oxlint-disable anti-slop/require-safety-comment-for-type-assertion -- Object.keys erases F. The options owner and resolveFieldErrors membership check cannot prove runtime extra keys are F. Filtering would change extra-key behavior. */
|
|
485
484
|
export function useFieldErrors<F extends string>(
|
|
486
485
|
options: UseFieldErrorsOptions<F>,
|
|
487
486
|
) {
|
|
@@ -556,7 +555,6 @@ export function useFieldErrors<F extends string>(
|
|
|
556
555
|
await focus(fields[0]!.field as F);
|
|
557
556
|
return !hasUnmatched;
|
|
558
557
|
}
|
|
559
|
-
/* oxlint-enable anti-slop/require-safety-comment-for-type-assertion */
|
|
560
558
|
|
|
561
559
|
/** The toast of an error that belongs to no field. */
|
|
562
560
|
function toastError(
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
interface DeduperHost {
|
|
4
|
-
[key: `$dmsTrailingDeduper:${string}`]: TrailingDeduper | undefined;
|
|
5
|
-
}
|
|
1
|
+
const dedupersByApp = new WeakMap<object, Map<string, TrailingDeduper>>();
|
|
6
2
|
|
|
7
3
|
/**
|
|
8
4
|
* A {@link createTrailingDeduper} scoped to the current DMS app: one instance
|
|
@@ -10,16 +6,19 @@ interface DeduperHost {
|
|
|
10
6
|
* pass never runs in the continuation of another request's promise — where the
|
|
11
7
|
* state it writes, and the DMS app context its task needs, belong to someone else.
|
|
12
8
|
*
|
|
13
|
-
*
|
|
9
|
+
* Kept per app instance rather than in `useDmsState`, which only carries
|
|
14
10
|
* serializable payload.
|
|
15
11
|
*/
|
|
16
12
|
export function useTrailingDeduper(name: string): TrailingDeduper {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
const app = useDmsApp();
|
|
14
|
+
let dedupers = dedupersByApp.get(app);
|
|
15
|
+
if (!dedupers) {
|
|
16
|
+
dedupers = new Map();
|
|
17
|
+
dedupersByApp.set(app, dedupers);
|
|
18
|
+
}
|
|
19
|
+
const existing = dedupers.get(name);
|
|
21
20
|
if (existing) return existing;
|
|
22
21
|
const deduper = createTrailingDeduper();
|
|
23
|
-
|
|
22
|
+
dedupers.set(name, deduper);
|
|
24
23
|
return deduper;
|
|
25
24
|
}
|
|
@@ -78,7 +78,6 @@ export const usePreferences = () => {
|
|
|
78
78
|
|
|
79
79
|
const getPreference = <T = unknown>(keyPath: string, defaultValue?: T): T => {
|
|
80
80
|
const value = readAt(tree.value, keyPath.split("."));
|
|
81
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The stored tree does not validate caller-selected T. Returning the tree value type would change the public generic contract; retain existing unchecked reads.
|
|
82
81
|
return (value === undefined ? defaultValue : value) as T;
|
|
83
82
|
};
|
|
84
83
|
|
|
@@ -9,7 +9,6 @@ function getValueByPath(
|
|
|
9
9
|
let current: unknown = obj;
|
|
10
10
|
for (const key of keys) {
|
|
11
11
|
if (current === null || current === undefined) return undefined;
|
|
12
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion, anti-slop/no-unsafe-dictionary-type -- Event data has no common schema; this unchecked access intentionally retains primitive boxing and arbitrary nested property traversal rather than rejecting non-record values.
|
|
13
12
|
current = (current as Record<string, unknown>)[key];
|
|
14
13
|
}
|
|
15
14
|
return current;
|
|
@@ -133,7 +133,6 @@ export interface StoreDependencyChoice {
|
|
|
133
133
|
/** npm package, never a git or local source. */
|
|
134
134
|
package: string;
|
|
135
135
|
/** Config written to its antelope.config.ts entry. */
|
|
136
|
-
// oxlint-disable-next-line anti-slop/no-unsafe-dictionary-type -- Each installed module owns its config schema; deriving from StoreDependencyChoice on the backend yields the same open dictionary, while a built-in module's schema would exclude third-party config.
|
|
137
136
|
config?: Record<string, unknown>;
|
|
138
137
|
}
|
|
139
138
|
|
|
@@ -142,7 +142,6 @@ export interface LayoutBanner {
|
|
|
142
142
|
/** Link buttons after the text; the last one leads. */
|
|
143
143
|
actions?: BlockAction[];
|
|
144
144
|
component?: string;
|
|
145
|
-
// oxlint-disable-next-line anti-slop/no-unsafe-dictionary-type -- Banner components accept module-defined serialized props; inference cannot describe them and the frontend has no interface-dms dependency from which to derive the backend contract.
|
|
146
145
|
props?: Record<string, unknown>;
|
|
147
146
|
}
|
|
148
147
|
|
|
@@ -194,7 +193,6 @@ export interface ComponentChild<T = object> {
|
|
|
194
193
|
id: string;
|
|
195
194
|
component: ComponentInfo<T>;
|
|
196
195
|
slot?: string;
|
|
197
|
-
// oxlint-disable-next-line anti-slop/no-unsafe-dictionary-type -- Component children carry module-defined sibling metadata independently of generic options T; inferring from built-in children would narrow this public extension contract.
|
|
198
196
|
[key: string]: unknown;
|
|
199
197
|
}
|
|
200
198
|
|
|
@@ -8,7 +8,6 @@ export const ComponentId = {
|
|
|
8
8
|
export type WatchActionFunction = (
|
|
9
9
|
action: WatchAction,
|
|
10
10
|
eventData: ComponentEventData,
|
|
11
|
-
// oxlint-disable-next-line anti-slop/no-unsafe-dictionary-type -- useWatch owns arbitrary mutable component state and also uses Record<string, unknown>; a JSON-only or one-component type would narrow this public callback contract.
|
|
12
11
|
componentState: Ref<Record<string, unknown>>,
|
|
13
12
|
) => void;
|
|
14
13
|
|
|
@@ -48,19 +48,6 @@ type ParamFormatter<Param extends ComposedTextTypedParam> = (
|
|
|
48
48
|
context: ComposedTextContext,
|
|
49
49
|
) => string;
|
|
50
50
|
|
|
51
|
-
type ParamOfType<Type extends ComposedTextParamType> =
|
|
52
|
-
ComposedTextTypedParam extends infer Param
|
|
53
|
-
? Param extends { type: infer Types }
|
|
54
|
-
? Type extends Types
|
|
55
|
-
? Param
|
|
56
|
-
: never
|
|
57
|
-
: never
|
|
58
|
-
: never;
|
|
59
|
-
|
|
60
|
-
type ParamFormatters = {
|
|
61
|
-
[Type in ComposedTextParamType]: ParamFormatter<ParamOfType<Type>>;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
51
|
const DEFAULT_MINOR_DIGITS = 2;
|
|
65
52
|
const DECIMAL_BASE = 10;
|
|
66
53
|
const DEFAULT_DATE_FORMAT: ComposedTextDateFormat = "medium";
|
|
@@ -151,15 +138,41 @@ function formatRelativeParam(
|
|
|
151
138
|
return formatRelativeDistance(param.value, locale, { now });
|
|
152
139
|
}
|
|
153
140
|
|
|
154
|
-
const
|
|
155
|
-
money:
|
|
156
|
-
date:
|
|
157
|
-
datetime:
|
|
158
|
-
relative:
|
|
159
|
-
number:
|
|
160
|
-
count:
|
|
141
|
+
const PARAM_TYPES: Record<ComposedTextParamType, true> = {
|
|
142
|
+
money: true,
|
|
143
|
+
date: true,
|
|
144
|
+
datetime: true,
|
|
145
|
+
relative: true,
|
|
146
|
+
number: true,
|
|
147
|
+
count: true,
|
|
161
148
|
};
|
|
162
149
|
|
|
150
|
+
const formatDateParam = dateFormatter(DATE_FORMATS);
|
|
151
|
+
const formatDateTimeParam = dateFormatter(DATETIME_FORMATS);
|
|
152
|
+
|
|
153
|
+
function formatTypedParam(
|
|
154
|
+
param: ComposedTextTypedParam,
|
|
155
|
+
context: ComposedTextContext,
|
|
156
|
+
): string {
|
|
157
|
+
if (!Object.hasOwn(PARAM_TYPES, param.type)) {
|
|
158
|
+
return String(param.value ?? "");
|
|
159
|
+
}
|
|
160
|
+
switch (param.type) {
|
|
161
|
+
case "money":
|
|
162
|
+
return formatMoney(param, context);
|
|
163
|
+
case "date":
|
|
164
|
+
return formatDateParam(param, context);
|
|
165
|
+
case "datetime":
|
|
166
|
+
return formatDateTimeParam(param, context);
|
|
167
|
+
case "relative":
|
|
168
|
+
return formatRelativeParam(param, context);
|
|
169
|
+
case "number":
|
|
170
|
+
return formatNumberParam(param, context);
|
|
171
|
+
case "count":
|
|
172
|
+
return String(formatNumber(param.value, context.locale));
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
163
176
|
function formatParam(
|
|
164
177
|
param: ComposedTextParam,
|
|
165
178
|
context: ComposedTextContext,
|
|
@@ -169,12 +182,7 @@ function formatParam(
|
|
|
169
182
|
return String(formatNumber(param, context.locale));
|
|
170
183
|
}
|
|
171
184
|
if (isComposedText(param)) return composeText(param, context);
|
|
172
|
-
|
|
173
|
-
const formatter = PARAM_FORMATTERS[param.type] as
|
|
174
|
-
| ParamFormatter<ComposedTextTypedParam>
|
|
175
|
-
| undefined;
|
|
176
|
-
|
|
177
|
-
return formatter ? formatter(param, context) : String(param.value ?? "");
|
|
185
|
+
return formatTypedParam(param, context);
|
|
178
186
|
}
|
|
179
187
|
|
|
180
188
|
function numberOf(param: ComposedTextParam | undefined): number | undefined {
|