@antelopejs/dms 0.19.3 → 0.19.5
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 +55 -0
- package/README.md +1 -1
- 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 +40 -16
- package/dist/implementations/dms-auth/index.js.map +1 -1
- package/dist/implementations/dms-auth/session-handoff.js +4 -3
- 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/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 +12 -9
- 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/tableComponentPinning.ts +4 -2
- package/frontend-vue/layers/dms-ui/app/build/components/table/tableComponentScroll.ts +7 -7
- 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 +7 -4
- 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 +10 -2
|
@@ -77,7 +77,6 @@ export function buildLegend(
|
|
|
77
77
|
labels: { colors: theme.muted },
|
|
78
78
|
markers: {
|
|
79
79
|
size: LEGEND_MARKER_SIZE,
|
|
80
|
-
// oxlint-disable-next-line anti-slop/no-shape-in-symbol-names -- ApexOptions owns this literal markers.shape property; renaming it would change the chart configuration.
|
|
81
80
|
shape: "square",
|
|
82
81
|
strokeWidth: 0,
|
|
83
82
|
},
|
|
@@ -198,7 +197,6 @@ function pointLabel(
|
|
|
198
197
|
) {
|
|
199
198
|
const point =
|
|
200
199
|
context.w.config.series[context.seriesIndex]?.data[context.dataPointIndex];
|
|
201
|
-
// oxlint-disable-next-line anti-slop/no-runtime-typeof -- The shared isObject guard widens this owner union's label to unknown; typeof retains the ChartSeries point contract without asserting or validating plugin values.
|
|
202
200
|
if (typeof point !== "object" || point === null || !("label" in point)) {
|
|
203
201
|
return value;
|
|
204
202
|
}
|
|
@@ -94,8 +94,9 @@ export function useActionConfirm() {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
function withoutUndefined<T extends object>(value: T): Partial<T> {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
const defined: Partial<T> = { ...value };
|
|
98
|
+
for (const [key, entry] of Object.entries(value)) {
|
|
99
|
+
if (entry === undefined) Reflect.deleteProperty(defined, key);
|
|
100
|
+
}
|
|
101
|
+
return defined;
|
|
101
102
|
}
|
|
@@ -63,9 +63,9 @@ export const UNCOVERED_ATTRIBUTE = "data-dms-uncovered";
|
|
|
63
63
|
function isClosing(
|
|
64
64
|
mutation: MutationRecord,
|
|
65
65
|
): mutation is MutationRecord & { target: Element } {
|
|
66
|
-
|
|
67
|
-
const target = mutation.target as Element;
|
|
66
|
+
const { target } = mutation;
|
|
68
67
|
return (
|
|
68
|
+
target instanceof Element &&
|
|
69
69
|
target.getAttribute("data-state") === "closed" &&
|
|
70
70
|
target.matches(BLOCKING_SELECTOR)
|
|
71
71
|
);
|
|
@@ -73,7 +73,6 @@ function emptyPreferences(): DrawerSizePreferences {
|
|
|
73
73
|
return { widths: {}, heights: {} };
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- This cookie decoder accepts malformed persisted values and filters them here.
|
|
77
76
|
function readSizes(value: unknown): Record<string, number> {
|
|
78
77
|
if (!isObject(value) || value === null) return {};
|
|
79
78
|
const entries: [string, unknown][] = Object.entries(value);
|
|
@@ -92,7 +91,6 @@ function readSizes(value: unknown): Record<string, number> {
|
|
|
92
91
|
* @internal
|
|
93
92
|
*/
|
|
94
93
|
export function readDrawerSizePreferences(
|
|
95
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- The persisted cookie is decoded here, not trusted as DrawerSizePreferences.
|
|
96
94
|
value: unknown,
|
|
97
95
|
): DrawerSizePreferences {
|
|
98
96
|
if (!isObject(value) || value === null) return emptyPreferences();
|
|
@@ -168,7 +166,6 @@ const ASYNC_WRAPPER_NAME = "AsyncComponentWrapper";
|
|
|
168
166
|
* @internal
|
|
169
167
|
*/
|
|
170
168
|
export function componentSizeKey(component: Component): string | undefined {
|
|
171
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Component's constructor branch does not constrain these metadata fields; retain unchecked name selection and interpolation.
|
|
172
169
|
const named = component as Pick<ComponentOptions, "name" | "__name">;
|
|
173
170
|
const { name, __name } = named;
|
|
174
171
|
const componentName = [name, __name].find(
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { getCurrentInstance, type AppContext } from "vue";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The component instance running now, as the holder of what it and its
|
|
5
|
+
* ancestors provide, or null outside a component.
|
|
6
|
+
*/
|
|
7
|
+
export function currentInstanceProvides(): {
|
|
8
|
+
provides: AppContext["provides"];
|
|
9
|
+
} | null {
|
|
10
|
+
// SAFETY: Holds for every instance Vue 3's runtime-core creates, which is what getCurrentInstance returns when it returns one: createComponentInstance sets its provides to its parent's provides object or, for a root, to one created from appContext.provides, and provide() and a child's inject() read that member; Vue's published ComponentInternalInstance type leaves this @internal member out.
|
|
11
|
+
return getCurrentInstance() as {
|
|
12
|
+
provides: AppContext["provides"];
|
|
13
|
+
} | null;
|
|
14
|
+
}
|
|
@@ -36,7 +36,6 @@ interface StatusOptions {
|
|
|
36
36
|
|
|
37
37
|
function renderStatus(value: CellValue, options: CellOptions) {
|
|
38
38
|
const { processI18n } = getAppTranslation();
|
|
39
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- DataTypeFormatter erases options; status labels and colors remain unchecked rather than rejecting malformed plugin inputs.
|
|
40
39
|
const opts = options as StatusOptions | undefined;
|
|
41
40
|
const isOnline = Boolean(value);
|
|
42
41
|
const onlineLabel = opts?.onlineLabel || "$common.status.online";
|
|
@@ -91,7 +90,6 @@ function renderSelectItem(item: SelectItem) {
|
|
|
91
90
|
}
|
|
92
91
|
|
|
93
92
|
function renderSelect(value: CellValue, options?: CellOptions) {
|
|
94
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The formatter contract erases select options; items are consumed without a runtime schema.
|
|
95
93
|
const opts = options as SelectOptions | undefined;
|
|
96
94
|
const formatOne = (val: CellValue) => {
|
|
97
95
|
const item = opts?.items?.find((opt) => opt.value === val);
|
|
@@ -107,7 +105,6 @@ function renderSelect(value: CellValue, options?: CellOptions) {
|
|
|
107
105
|
const children: (VNode | string)[] = [];
|
|
108
106
|
rendered.forEach((part, index) => {
|
|
109
107
|
if (index > 0) children.push(", ");
|
|
110
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- An unmatched select value is still unknown; Vue receives the original unchecked child as before.
|
|
111
108
|
children.push(part as VNode | string);
|
|
112
109
|
});
|
|
113
110
|
return h("span", { class: "inline-flex items-center gap-1" }, children);
|
|
@@ -57,7 +57,6 @@ export function renderRelativeDate(
|
|
|
57
57
|
) {
|
|
58
58
|
const { processI18n } = getAppTranslation();
|
|
59
59
|
const opts: RelativeDateOptions = options ?? {};
|
|
60
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The string assertion does not validate the input; Date retains its existing native coercion and exceptions for plugin values.
|
|
61
60
|
const date = new Date(value as string);
|
|
62
61
|
if (Number.isNaN(date.getTime())) return String(value);
|
|
63
62
|
|
|
@@ -84,7 +84,6 @@ export function renderIdentity(
|
|
|
84
84
|
subtitleClass: toneClass(subtitle?.tone ?? opts.subtitleTone, "dimmed"),
|
|
85
85
|
emptyLabel: opts.emptyLabel ? processI18n(opts.emptyLabel) : undefined,
|
|
86
86
|
emptyIcon: opts.emptyIcon,
|
|
87
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The row's avatar field has no runtime schema; this existing component handoff remains unchecked.
|
|
88
87
|
avatar: readRowField(row, opts.avatarField) as
|
|
89
88
|
| { key: string }
|
|
90
89
|
| string
|
|
@@ -45,14 +45,12 @@ function renderImage(value: CellValue, options: CellOptions) {
|
|
|
45
45
|
const images = toImageList(value);
|
|
46
46
|
if (!images.length) return "";
|
|
47
47
|
|
|
48
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- DataTypeFormatter erases image options; storage is forwarded without validation.
|
|
49
48
|
const opts = options as ImageOptions | undefined;
|
|
50
49
|
return h(ImagePreview, { images, storage: opts?.storage });
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
function renderFile(value: CellValue, options: CellOptions) {
|
|
54
53
|
const { t } = getAppTranslation();
|
|
55
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- File options are erased by the plugin contract; multiple and storage retain their existing unchecked behavior.
|
|
56
54
|
const opts = options as FileOptions | undefined;
|
|
57
55
|
|
|
58
56
|
if (opts?.multiple && Array.isArray(value)) {
|
package/frontend-vue/layers/dms-ui/app/build/composables/data-types/defaultPrimitiveTypes.ts
CHANGED
|
@@ -92,12 +92,10 @@ function renderText(
|
|
|
92
92
|
if (value === "") return null;
|
|
93
93
|
const tone = readRowTone(
|
|
94
94
|
row,
|
|
95
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Text options have no runtime schema; toneField is read from the original plugin input.
|
|
96
95
|
(options as TextOptions | undefined)?.toneField,
|
|
97
96
|
);
|
|
98
97
|
if (!tone) return value;
|
|
99
98
|
|
|
100
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- A valid tone does not validate the row value as VNodeChild; preserve the existing unchecked Vue child.
|
|
101
99
|
return h("span", { class: DMS_TONE_TEXT[tone] }, [value as VNodeChild]);
|
|
102
100
|
}
|
|
103
101
|
|
|
@@ -94,7 +94,6 @@ function renderRelationBadges(
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
function renderRelation(value: CellValue, options: CellOptions) {
|
|
97
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Relation options cross the erased plugin boundary; multiple and keyMapping retain unchecked reads.
|
|
98
97
|
const opts = options as RelationOptions | undefined;
|
|
99
98
|
const labelKey = opts?.keyMapping?.label || DEFAULT_RELATION_LABEL_KEY;
|
|
100
99
|
const valueKey = opts?.keyMapping?.value || DEFAULT_RELATION_VALUE_KEY;
|
|
@@ -114,8 +113,7 @@ function renderRelation(value: CellValue, options: CellOptions) {
|
|
|
114
113
|
|
|
115
114
|
return h("span", { class: "inline-flex items-center gap-2" }, [
|
|
116
115
|
h(UAvatar, {
|
|
117
|
-
|
|
118
|
-
src: valueObject[avatarKey],
|
|
116
|
+
src: String(valueObject[avatarKey]),
|
|
119
117
|
alt: String(label),
|
|
120
118
|
size: Size.tiny,
|
|
121
119
|
}),
|
|
@@ -124,7 +122,6 @@ function renderRelation(value: CellValue, options: CellOptions) {
|
|
|
124
122
|
}
|
|
125
123
|
|
|
126
124
|
function renderCascaderRelation(value: CellValue, options: CellOptions) {
|
|
127
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- DataTypeFormatter erases cascader options; preserve their unchecked handoff to CascaderPath.
|
|
128
125
|
const opts = options as CascaderRelationOptions | undefined;
|
|
129
126
|
|
|
130
127
|
if (!value) return value;
|
|
@@ -125,7 +125,6 @@ export function progressShares(done: number, failed: number, total: number) {
|
|
|
125
125
|
* end, and "done / total"; green once every item is done.
|
|
126
126
|
*/
|
|
127
127
|
function renderProgress(options: Parameters<DataTypeFormatter>[2], row: Row) {
|
|
128
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- DataTypeFormatter erases options; field names are consumed without validation in the existing progress formatter.
|
|
129
128
|
const opts = (options ?? {}) as ProgressOptions;
|
|
130
129
|
const done = numberOf(readRowField(row, opts.doneField));
|
|
131
130
|
const total = numberOf(readRowField(row, opts.totalField));
|
|
@@ -166,7 +165,6 @@ interface SparklineOptions {
|
|
|
166
165
|
|
|
167
166
|
/** `sparkline`: a small line chart of a list of numbers. */
|
|
168
167
|
function renderSparkline(options: Parameters<DataTypeFormatter>[2], row: Row) {
|
|
169
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The plugin options contract has no sparkline schema; preserve its unchecked field and tone reads.
|
|
170
168
|
const opts = (options ?? {}) as SparklineOptions;
|
|
171
169
|
const series = readRowField(row, opts.field);
|
|
172
170
|
const values = Array.isArray(series)
|
|
@@ -315,7 +313,6 @@ export const registerMetricCellTypes = (
|
|
|
315
313
|
default: (value, _locale, options) =>
|
|
316
314
|
h(MonoCell, {
|
|
317
315
|
value: String(value),
|
|
318
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The open plugin options contract does not validate copy; preserve the existing truthiness conversion.
|
|
319
316
|
copy: !!(options as { copy?: boolean } | undefined)?.copy,
|
|
320
317
|
class: CELL_TEXT_CLASS,
|
|
321
318
|
}),
|
|
@@ -33,10 +33,8 @@ export function withNumberSuffix(format: NumberFormatter): DataTypeFormatter {
|
|
|
33
33
|
const formatted = format(
|
|
34
34
|
value,
|
|
35
35
|
locale,
|
|
36
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- DataTypeFormatter erases plugin options; Intl still receives the original unvalidated object and controls malformed-input behavior.
|
|
37
36
|
options as Intl.NumberFormatOptions | undefined,
|
|
38
37
|
);
|
|
39
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The suffix option has no runtime schema; preserve its current unchecked read and translation behavior.
|
|
40
38
|
const suffix = (options as NumberSuffixOptions | undefined)?.suffix;
|
|
41
39
|
if (!suffix || !isNumber(value) || !isString(formatted)) {
|
|
42
40
|
return formatted;
|
|
@@ -29,7 +29,6 @@ interface RelationSourceOptions {
|
|
|
29
29
|
export function relationSelectSource(
|
|
30
30
|
options: Parameters<NonNullable<DataType["selectSource"]>>[0],
|
|
31
31
|
): DataTypeSelectSource | undefined {
|
|
32
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The plugin contract erases options; only searchUrl is checked below, not keyMapping or the whole asserted shape.
|
|
33
32
|
const opts = options as RelationSourceOptions | undefined;
|
|
34
33
|
if (!isString(opts?.searchUrl)) return undefined;
|
|
35
34
|
return { searchUrl: opts.searchUrl, keyMapping: opts.keyMapping };
|
|
@@ -27,7 +27,6 @@ export function mapRelationBeforeState(
|
|
|
27
27
|
) {
|
|
28
28
|
if (!value) return value;
|
|
29
29
|
|
|
30
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- BeforeStateMapper erases plugin options; relation options are consumed without validation so malformed inputs retain their existing behavior.
|
|
31
30
|
const opts = options as RelationValueOptions | undefined;
|
|
32
31
|
const valueKey = opts?.keyMapping?.value || DEFAULT_RELATION_VALUE_KEY;
|
|
33
32
|
|
|
@@ -71,7 +70,6 @@ export function sameRelationValue(
|
|
|
71
70
|
right: Parameters<DataTypeValueComparer>[1],
|
|
72
71
|
options: Parameters<DataTypeValueComparer>[2],
|
|
73
72
|
): boolean {
|
|
74
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The comparer shares the mapper's erased options contract; this assertion does not validate multiple.
|
|
75
73
|
const isSet = !!(options as RelationValueOptions | undefined)?.multiple;
|
|
76
74
|
const comparable = (value: Parameters<DataTypeValueComparer>[0]) => {
|
|
77
75
|
const ids = relationIds(value, options);
|
|
@@ -46,7 +46,6 @@ function formatColumnValue(
|
|
|
46
46
|
: undefined;
|
|
47
47
|
const format = formatter?.cell ?? formatter?.default;
|
|
48
48
|
if (!format) return String(value);
|
|
49
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- DataTypeFormatter returns unknown; the existing cell forwards that result to Vue without checking VNodeChild.
|
|
50
49
|
return format(value, locale, opts.typeOptions, row) as VNodeChild;
|
|
51
50
|
}
|
|
52
51
|
|
|
@@ -60,7 +59,6 @@ function readPrimary(
|
|
|
60
59
|
const { processText } = getAppComposedText();
|
|
61
60
|
if (opts.primaryField) {
|
|
62
61
|
const text = processText(
|
|
63
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Row fields are open plugin values; processText receives the same unchecked value rather than a newly filtered or coerced one.
|
|
64
62
|
readRowField(row, opts.primaryField) as ComposableText,
|
|
65
63
|
);
|
|
66
64
|
return text || undefined;
|
package/frontend-vue/layers/dms-ui/app/build/composables/data-types/useColumnValueRenderer.ts
CHANGED
|
@@ -45,7 +45,6 @@ function renderEmptyFallback(
|
|
|
45
45
|
isNumeric: boolean,
|
|
46
46
|
): VNodeChild {
|
|
47
47
|
const fallback =
|
|
48
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Plugin options have no fallback schema; this preserves the unchecked value rather than coercing or rejecting malformed inputs.
|
|
49
48
|
(options?.fallback as string) ??
|
|
50
49
|
(surface === "detail" ? DETAIL_FALLBACK : DEFAULT_FALLBACK);
|
|
51
50
|
return isNumeric
|
|
@@ -94,7 +93,6 @@ export function useColumnValueRenderer() {
|
|
|
94
93
|
|
|
95
94
|
if (value === null || value === undefined) {
|
|
96
95
|
if (formatter?.empty) {
|
|
97
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- DataTypeFormatter returns unknown for plugin extensions; the existing render boundary forwards it without VNodeChild validation.
|
|
98
96
|
return formatter.empty(value, locale.value, options, row) as VNodeChild;
|
|
99
97
|
}
|
|
100
98
|
return renderEmptyFallback(options, surface, isNumeric);
|
|
@@ -107,7 +105,6 @@ export function useColumnValueRenderer() {
|
|
|
107
105
|
: value;
|
|
108
106
|
|
|
109
107
|
if (!isString(formatted) && !isNumber(formatted)) {
|
|
110
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Excluding strings and numbers does not validate a VNodeChild; preserve the existing unchecked plugin result handoff.
|
|
111
108
|
return formatted as VNodeChild;
|
|
112
109
|
}
|
|
113
110
|
if (isNumeric) {
|
|
@@ -32,7 +32,6 @@ export function fieldSavedMarker(targets: FieldSavedTargets): MarkFieldSaved {
|
|
|
32
32
|
if (!targets.hasField(id)) return;
|
|
33
33
|
targets.initialValues.value = {
|
|
34
34
|
...targets.initialValues.value,
|
|
35
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Field-saved values are arbitrary form payloads; JSON cloning does not establish FormFieldValue.
|
|
36
35
|
[id]: cloneFormValue(value as FormFieldValue) as FormFieldValue,
|
|
37
36
|
};
|
|
38
37
|
targets.dirty.markClean({ ...targets.dirty.baseline.value, [id]: value });
|
|
@@ -98,7 +98,6 @@ export function formComponentRealtime(source: FormRealtimeSource) {
|
|
|
98
98
|
(event) => {
|
|
99
99
|
const ctx = realtimeContext.value;
|
|
100
100
|
if (!ctx) return;
|
|
101
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- RealtimeTopicEvent owns an open payload, not a validated ids array; retain the original unchecked topic projection rather than rejecting malformed events.
|
|
102
101
|
const eventTyped = event as {
|
|
103
102
|
type: string;
|
|
104
103
|
payload?: { ids?: string[] };
|
|
@@ -48,11 +48,9 @@ export function formComponentValidation(source: FormValidationSource) {
|
|
|
48
48
|
"~standard": {
|
|
49
49
|
version: 1 as const,
|
|
50
50
|
vendor: "dms",
|
|
51
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- Standard Schema accepts arbitrary inputs; the form validator retains its existing unchecked object adapter rather than rejecting or coercing malformed data.
|
|
52
51
|
validate: (value: unknown) =>
|
|
53
52
|
validateFormState(
|
|
54
53
|
schema,
|
|
55
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Standard Schema accepts arbitrary inputs; this unchecked adapter forwards them to the object-state validator unchanged.
|
|
56
54
|
value as Parameters<typeof validateFormState>[1],
|
|
57
55
|
{
|
|
58
56
|
fields: validationFields,
|
|
@@ -95,16 +95,13 @@ function createFormState(props: FormProps) {
|
|
|
95
95
|
|
|
96
96
|
const inactiveFields = computed(() =>
|
|
97
97
|
withConditionFields(allFields.value, state.value, {
|
|
98
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Watch actions own these sets but expose open state. Preserve the existing unchecked iterable behavior for malformed replacements rather than filtering them.
|
|
99
98
|
disabled: state.value.disabledFields as Set<string> | undefined,
|
|
100
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Watch actions expose open state; keep malformed hidden-field replacements observable to the existing Set constructor.
|
|
101
99
|
hidden: state.value.hiddenFields as Set<string> | undefined,
|
|
102
100
|
}),
|
|
103
101
|
);
|
|
104
102
|
const disabledFields = computed(() => inactiveFields.value.disabled);
|
|
105
103
|
const hiddenFields = computed(() => inactiveFields.value.hidden);
|
|
106
104
|
const requiredFields = computed(
|
|
107
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Watch actions expose open state; retaining this unchecked field preserves existing size/has behavior for malformed replacements.
|
|
108
105
|
() => state.value.requiredFields as Set<string> | undefined,
|
|
109
106
|
);
|
|
110
107
|
|
|
@@ -44,8 +44,8 @@ export interface FormValidationIssue {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export type FormValidationResult =
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
| { value: Record<string, unknown> }
|
|
48
|
+
| { issues: FormValidationIssue[] };
|
|
49
49
|
|
|
50
50
|
export interface FormValidationContext {
|
|
51
51
|
fields: readonly FormValidationField[];
|
|
@@ -135,7 +135,6 @@ function emptyValueOf(field: FormValidationField): false | null {
|
|
|
135
135
|
*/
|
|
136
136
|
export async function validateFormState(
|
|
137
137
|
schema: z.ZodObject<Record<string, z.ZodTypeAny>>,
|
|
138
|
-
// oxlint-disable-next-line anti-slop/no-unsafe-dictionary-type -- This is the parsing boundary for a server-defined schema; malformed values must reach validation unchanged.
|
|
139
138
|
state: Record<string, unknown>,
|
|
140
139
|
context: FormValidationContext,
|
|
141
140
|
): Promise<FormValidationResult> {
|
|
@@ -17,7 +17,6 @@ function createFieldSetMutator(stateKey: FieldSetStateKey, flagKey: string) {
|
|
|
17
17
|
const params = readFieldFlagParams(action.params, flagKey);
|
|
18
18
|
if (!params) return;
|
|
19
19
|
const current =
|
|
20
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Watch actions can replace these open state entries; preserve the existing unchecked iterable conversion and falsy fallback.
|
|
21
20
|
(componentState.value[stateKey] as Set<string>) || new Set();
|
|
22
21
|
const nextSet = new Set(current);
|
|
23
22
|
|
|
@@ -40,7 +39,6 @@ function setFieldValue(
|
|
|
40
39
|
if (!params) return;
|
|
41
40
|
const write = resolveFieldValueWrite(
|
|
42
41
|
params,
|
|
43
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Watch actions also receive arbitrary component events; FieldChangePayload's owner does not validate eventData.data, and filtering events would change behavior.
|
|
44
42
|
eventData.data as FieldChangePayload | undefined,
|
|
45
43
|
);
|
|
46
44
|
if (!write) return;
|
|
@@ -31,7 +31,6 @@ export function renderableColumn(
|
|
|
31
31
|
compareModes: [],
|
|
32
32
|
filterComponents: {},
|
|
33
33
|
|
|
34
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- ComponentInfo permits non-JSON options while RenderableColumn requires DataTypeConfig's JSON options; the formatter's unknown owner cannot prove that narrower handoff without changing its existing contract.
|
|
35
34
|
inputComponent: column.component as ComponentInfo<ComponentOptionsData>,
|
|
36
35
|
};
|
|
37
36
|
return { id: column.id, type };
|
|
@@ -69,7 +69,6 @@ export function computeResetState(state: FormState, initialValues: FormData) {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
export function snapshotFormState(state: FormState): FormData {
|
|
72
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Watch state is deliberately open to plugin values and undefined entries. Snapshotting clones them without validation, preserving the existing FormData API.
|
|
73
72
|
return computeResetState(state, state as FormData) as FormData;
|
|
74
73
|
}
|
|
75
74
|
|
|
@@ -121,7 +120,6 @@ export function processBeforeStateMappers(
|
|
|
121
120
|
if (!field.type || result[field.id] === undefined) continue;
|
|
122
121
|
const dataType = getDataType(field.type);
|
|
123
122
|
if (!dataType?.beforeStateMapper) continue;
|
|
124
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Plugin mappers return arbitrary values. Preserve them unchanged rather than imposing FormFieldValue validation at this existing unchecked boundary.
|
|
125
123
|
result[field.id] = dataType.beforeStateMapper(
|
|
126
124
|
result[field.id],
|
|
127
125
|
field.component.options,
|
|
@@ -238,7 +236,6 @@ export function collectSubmitData(
|
|
|
238
236
|
const initial = context.initialValues?.[field.id];
|
|
239
237
|
if (context.onlyChanged && isSameValue(field, value, initial)) continue;
|
|
240
238
|
if (!isClearedField(field, value)) {
|
|
241
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Submission intentionally passes arbitrary populated plugin values through; validating against FormFieldValue would change accepted payloads.
|
|
242
239
|
fieldData[field.id] = submittedFieldValue(field, value) as FormFieldValue;
|
|
243
240
|
continue;
|
|
244
241
|
}
|
|
@@ -247,7 +244,6 @@ export function collectSubmitData(
|
|
|
247
244
|
fieldData[field.id] = clearedFieldValue(initial);
|
|
248
245
|
}
|
|
249
246
|
return {
|
|
250
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Submit defaults are an open prop contract and are merged without validation, including malformed runtime values.
|
|
251
247
|
...(context.submitDefaults as FormData | undefined),
|
|
252
248
|
...fieldData,
|
|
253
249
|
};
|
|
@@ -278,7 +274,6 @@ export function fieldValuesOfSubmitDefaults(
|
|
|
278
274
|
if (!submitDefaults) return values;
|
|
279
275
|
for (const { id } of fields) {
|
|
280
276
|
if (id in submitDefaults) {
|
|
281
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The open submit-default prop is copied unchanged into fields, including values outside the nominal FormFieldValue union.
|
|
282
277
|
values[id] = submitDefaults[id] as FormFieldValue;
|
|
283
278
|
}
|
|
284
279
|
}
|
|
@@ -46,7 +46,6 @@ export interface InstantFormOptions {
|
|
|
46
46
|
/** Sends the changed fields, alone (a partial submit). */
|
|
47
47
|
submit: (changes: FormValues) => Promise<void>;
|
|
48
48
|
/** Says why a save was refused, once its values are put back. */
|
|
49
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- JavaScript promises can reject with any value; the adapter forwards it without narrowing the public callback.
|
|
50
49
|
onRefused: (error: unknown) => void;
|
|
51
50
|
}
|
|
52
51
|
|
|
@@ -61,7 +60,6 @@ export interface InstantForm extends InstantSave<FormValues> {
|
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
const clone = (value: FormValues[string]): FormValues[string] =>
|
|
64
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Form state accepts arbitrary compound values; preserve the unchecked clone adapter without claiming FormFieldValue validation.
|
|
65
63
|
cloneFormValue(value as FormFieldValue | undefined);
|
|
66
64
|
|
|
67
65
|
/**
|
|
@@ -30,7 +30,6 @@ export interface InstantSaveSource<V extends object> {
|
|
|
30
30
|
/** Keeps the changed keys; rejects when they are refused. */
|
|
31
31
|
save: (changes: Partial<V>) => Promise<void>;
|
|
32
32
|
/** Called after a refused save is put back (field errors, a toast). */
|
|
33
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- A rejected save can throw any JavaScript value; Promise<void> has no rejection type to derive for this callback contract.
|
|
34
33
|
onError?: (error: unknown, changes: Partial<V>) => void;
|
|
35
34
|
}
|
|
36
35
|
|
|
@@ -73,7 +72,6 @@ export interface InstantSave<V extends object> {
|
|
|
73
72
|
type Timer = ReturnType<typeof setTimeout>;
|
|
74
73
|
|
|
75
74
|
function saveKeys<V extends object>(values: Partial<V>): InstantSaveKey<V>[] {
|
|
76
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Partial<V> does not guarantee exact string keys at runtime; retain the unchecked Object.keys projection.
|
|
77
75
|
return Object.keys(values) as InstantSaveKey<V>[];
|
|
78
76
|
}
|
|
79
77
|
|
|
@@ -165,7 +163,7 @@ class InstantSaveQueue<V extends object> {
|
|
|
165
163
|
|
|
166
164
|
/** Moves the waiting changes of these keys to a running save. */
|
|
167
165
|
private take(keys: InstantSaveKey<V>[]): Partial<V> {
|
|
168
|
-
// SAFETY:
|
|
166
|
+
// SAFETY: Holds while put<K>(key, value: V[K] | undefined) stays the only writer of pending, so pending holds under each key K a V[K] or undefined: Object.fromEntries then gives each key of keys its own property holding a V[key] or undefined, which Partial<V> admits.
|
|
169
167
|
const changes = Object.fromEntries(
|
|
170
168
|
keys.map((key) => [key, this.pending.get(key)]),
|
|
171
169
|
) as Partial<V>;
|
|
@@ -194,7 +192,6 @@ class InstantSaveQueue<V extends object> {
|
|
|
194
192
|
!this.pending.has(key) &&
|
|
195
193
|
sameFormValue(this.source.read(key), changes[key]);
|
|
196
194
|
if (isShown) {
|
|
197
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The queue API does not require a remembered value; preserve the unchecked rollback lookup.
|
|
198
195
|
this.source.write(key, this.confirmed.get(key) as V[typeof key]);
|
|
199
196
|
}
|
|
200
197
|
this.setState(key, "error");
|
|
@@ -246,7 +243,6 @@ export function useInstantSave<V extends object>(
|
|
|
246
243
|
const keys = saveKeys(changes);
|
|
247
244
|
for (const key of keys) {
|
|
248
245
|
saves.remember(key);
|
|
249
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Partial changes may contain undefined for required source fields; retain the unchecked write-through.
|
|
250
246
|
source.write(key, changes[key] as V[typeof key]);
|
|
251
247
|
saves.put(key, changes[key]);
|
|
252
248
|
}
|
|
@@ -53,7 +53,6 @@ export interface RowSidePanelContent {
|
|
|
53
53
|
positionLabel?: string;
|
|
54
54
|
component: Component;
|
|
55
55
|
/** Props of the component besides `rowData` and `navigation`. */
|
|
56
|
-
// oxlint-disable-next-line anti-slop/no-unsafe-dictionary-type -- The selected module component owns these arbitrary props; Vue Component is an open union and cannot derive one shared prop schema without excluding existing component options.
|
|
57
56
|
componentOptions: Record<string, unknown>;
|
|
58
57
|
row?: Data;
|
|
59
58
|
/** Id of `row`: the key the component is mounted under, the row the table highlights. */
|
|
@@ -43,7 +43,6 @@ function emptyPreferences(): SidePanelPreferences {
|
|
|
43
43
|
return { openId: null, widths: {} };
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- Cookie widths are untrusted, including arrays and primitives. Inference has no source type, and SidePanelPreferences would exclude the malformed values this parser handles.
|
|
47
46
|
function readWidths(value: unknown): Record<string, number> {
|
|
48
47
|
if (!isObject(value) || value === null) return {};
|
|
49
48
|
return Object.fromEntries(
|
|
@@ -59,7 +58,6 @@ function readWidths(value: unknown): Record<string, number> {
|
|
|
59
58
|
*
|
|
60
59
|
* @internal
|
|
61
60
|
*/
|
|
62
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- This public cookie parser accepts arbitrary decoded browser data. Inference is unavailable and its parsed SidePanelPreferences output cannot describe invalid inputs.
|
|
63
61
|
export function readSidePanelPreferences(value: unknown): SidePanelPreferences {
|
|
64
62
|
if (!isObject(value) || value === null) return emptyPreferences();
|
|
65
63
|
const openId = isString(value.openId) ? value.openId : null;
|
|
@@ -40,7 +40,6 @@ export class MissedTally {
|
|
|
40
40
|
/** The rows and events counted since the last reset. */
|
|
41
41
|
readonly total: Readonly<Ref<number>> = readonly(this.count);
|
|
42
42
|
|
|
43
|
-
// oxlint-disable-next-line anti-slop/no-object-parameters -- Any object is an event identity, including events without payload fields; narrowing to a transport shape would reject supported callers.
|
|
44
43
|
add(event: object | undefined): void {
|
|
45
44
|
if (event) {
|
|
46
45
|
if (this.events.has(event)) return;
|
|
@@ -39,7 +39,6 @@ export interface LiveSubscription {
|
|
|
39
39
|
* reaching several blocks counts once in the page's `missedCount`; its
|
|
40
40
|
* `payload.ids` or `payload.count` say how many rows it stands for.
|
|
41
41
|
*/
|
|
42
|
-
// oxlint-disable-next-line anti-slop/no-object-parameters -- Event identity is any object; payload-less events and arbitrary publisher objects must remain accepted.
|
|
43
42
|
trigger(event?: object): void;
|
|
44
43
|
/** Rows and events the block received while paused or held, not read yet. */
|
|
45
44
|
readonly missed: Readonly<Ref<number>>;
|
|
@@ -46,7 +46,6 @@ export interface PeriodChoices {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/** A page URL query, or a selection kept in the preferences. */
|
|
49
|
-
// oxlint-disable-next-line anti-slop/no-unsafe-dictionary-type -- This is the decoding boundary for URL and persisted values, including malformed non-text entries.
|
|
50
49
|
export type PeriodQuery = Record<string, unknown>;
|
|
51
50
|
|
|
52
51
|
/** A source the halves of a selection are read from, in order. */
|
|
@@ -355,7 +354,6 @@ export function isRangeOffered(
|
|
|
355
354
|
* cookie, which must not grow with every page a user ever opened.
|
|
356
355
|
*/
|
|
357
356
|
export function rememberPeriod(
|
|
358
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- A malformed stored value is accepted here; only the outer object is required to retain its existing entries.
|
|
359
357
|
store: unknown,
|
|
360
358
|
key: string,
|
|
361
359
|
query: Record<string, string>,
|
|
@@ -92,7 +92,6 @@ const labelledActionsColumnSize = <T extends Data>(
|
|
|
92
92
|
const { config } = context;
|
|
93
93
|
|
|
94
94
|
const rows = config.data.value;
|
|
95
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The empty-list width calculation intentionally evaluates actions against an empty row. Neither inference nor Data proves caller-selected T; constructing a real row would change this fallback.
|
|
96
95
|
if (rows.length === 0) return shownActionsWidth(context, {} as T);
|
|
97
96
|
return Math.max(...rows.map((value) => shownActionsWidth(context, value)));
|
|
98
97
|
};
|
|
@@ -37,7 +37,6 @@ export const processColumn = <T extends Data>(
|
|
|
37
37
|
const { isNumericColumn } = context;
|
|
38
38
|
|
|
39
39
|
if (!col.id && "accessorKey" in col) {
|
|
40
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- TanStack permits generic keyof T accessors but requires a string id. Inference and its owner types cannot prove this legacy assignment; coercion would change numeric-key behavior.
|
|
41
40
|
col.id = col.accessorKey as string;
|
|
42
41
|
}
|
|
43
42
|
|
package/frontend-vue/layers/dms-ui/app/build/composables/table-view/registerDefaultFunctions.ts
CHANGED
|
@@ -53,7 +53,6 @@ export function registerDefaultFunctions() {
|
|
|
53
53
|
registerFunction(
|
|
54
54
|
TableViewFunctions.CUSTOM_PAGE_FORM_SUCCESS,
|
|
55
55
|
(event: CustomEvent) => {
|
|
56
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- CustomEvent does not declare the function registry's params extension. Its owner supplies no typed event contract; validation would change malformed-event behavior.
|
|
57
56
|
const { params } = event as CustomEvent & { params: FormSuccessParams };
|
|
58
57
|
|
|
59
58
|
navigateDms(
|
package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableRowActionContainers.ts
CHANGED
|
@@ -234,7 +234,6 @@ export const createTableRowFormContainer = <T extends Data>(
|
|
|
234
234
|
return handler?.(resolved, { fetchUrl, submitDefaults });
|
|
235
235
|
}
|
|
236
236
|
if (handler == null) return;
|
|
237
|
-
// oxlint-disable-next-line anti-slop/no-reflect-apply -- Malformed container types can name inherited Object.prototype methods. Preserve their original unbound positional call rather than passing the normal form request.
|
|
238
237
|
return Reflect.apply(handler, undefined, [
|
|
239
238
|
resolved.title,
|
|
240
239
|
resolved.description,
|
|
@@ -9,7 +9,6 @@ export const getItemId = (
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export const getErrorPayload = (error: unknown) => {
|
|
12
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Rejections may be arbitrary JavaScript values, not EventError instances. Its owner describes only the fields forwarded here; inference cannot prove them, and validation would change primitive and malformed-error payloads.
|
|
13
12
|
const err = error as EventError;
|
|
14
13
|
return err?.data || err?.message;
|
|
15
14
|
};
|
|
@@ -38,11 +38,9 @@ export function useTableViewDisplayOptions<T extends Data>(
|
|
|
38
38
|
const resolvedDisplay = (id: string): TableViewDisplayConfig | undefined =>
|
|
39
39
|
resolvedDisplays.find((d) => d.id === id);
|
|
40
40
|
const optionsForDisplay = (id: string) => resolvedDisplay(id)?.options;
|
|
41
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Display options are not discriminated by id in TableViewDisplayConfig; the existing kanban contract remains unchecked here.
|
|
42
41
|
const kanbanOptions = optionsForDisplay(KANBAN_DISPLAY_ID) as
|
|
43
42
|
| KanbanConfig
|
|
44
43
|
| undefined;
|
|
45
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Display options are not discriminated by id in TableViewDisplayConfig; the existing grouped contract remains unchecked here.
|
|
46
44
|
const groupedOptions = optionsForDisplay(GROUPED_DISPLAY_ID) as
|
|
47
45
|
| TableViewGroupedConfig
|
|
48
46
|
| undefined;
|
|
@@ -150,7 +150,6 @@ export function useTableViewRowEvents<T extends Data>(
|
|
|
150
150
|
};
|
|
151
151
|
|
|
152
152
|
useRealtimeTopic(realtimeRowTopic, (event) => {
|
|
153
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- RealtimeTopicHandler leaves payload values unknown; this existing row-topic consumer trusts server ids without validating them.
|
|
154
153
|
const payload = event as { type: string; payload?: { ids?: string[] } };
|
|
155
154
|
const handler = realtimeEventHandlers[payload.type];
|
|
156
155
|
if (!handler) return;
|