@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
|
@@ -153,7 +153,6 @@ export function useTableViewNavBadges<T extends Data>(
|
|
|
153
153
|
if (count === undefined) continue;
|
|
154
154
|
const fullId = source.to ? source.toPage : pageId;
|
|
155
155
|
const tone =
|
|
156
|
-
// oxlint-disable-next-line anti-slop/no-runtime-typeof -- The shared isObject guard widens the navBadge owner's tone to unknown; typeof preserves its public options union without asserting validation.
|
|
157
156
|
typeof source.navBadge === "object"
|
|
158
157
|
? source.navBadge.tone
|
|
159
158
|
: undefined;
|
package/frontend-vue/layers/dms-ui/app/build/composables/table-view/usePersistedPagination.ts
CHANGED
|
@@ -13,7 +13,6 @@ export interface PersistedPaginationOptions {
|
|
|
13
13
|
* What lists other rows without the user picking it: the hidden filters
|
|
14
14
|
* the page URL sets. A change of value lists from the first page.
|
|
15
15
|
*/
|
|
16
|
-
// oxlint-disable-next-line anti-slop/no-unknown-returns -- The scope is an opaque value serialized for equality, not a query sent to an endpoint. No schema owns all scope values; narrowing would exclude existing serializable callers.
|
|
17
16
|
scope: () => unknown;
|
|
18
17
|
}
|
|
19
18
|
|
|
@@ -111,7 +111,6 @@ export function useReorderHandles(options: ReorderHandlesOptions) {
|
|
|
111
111
|
const delta = STEP_BY_KEY[event.key];
|
|
112
112
|
if (delta === undefined) return;
|
|
113
113
|
event.preventDefault();
|
|
114
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- EventTarget has no focus method, and the DOM event owner does not narrow currentTarget to the handle. A runtime HTMLElement check would change behavior for other focusable targets.
|
|
115
114
|
const handle = event.currentTarget as HTMLElement | null;
|
|
116
115
|
if (step(index, delta)) void nextTick(() => handle?.focus());
|
|
117
116
|
};
|
|
@@ -30,7 +30,6 @@ export interface TableLiveHoldSignals {
|
|
|
30
30
|
* The table's element: whether it is on screen, and where its first row
|
|
31
31
|
* stands for `whileScrolled`.
|
|
32
32
|
*/
|
|
33
|
-
// oxlint-disable-next-line anti-slop/no-unknown-returns -- The resolver may return unparsed or missing element refs. useLocalHold accepts only HTMLElement instances and treats other values as absent; an HTMLElement-only contract would exclude those existing fallback cases.
|
|
34
33
|
tableElement?: () => unknown;
|
|
35
34
|
}
|
|
36
35
|
|
|
@@ -28,8 +28,8 @@ export interface TablePreferences {
|
|
|
28
28
|
set: <T>(field: TableField, value: T, defaultValue: T) => void;
|
|
29
29
|
/**
|
|
30
30
|
* Sets `state` to the local field's stored value once the table is
|
|
31
|
-
* mounted, unless `isValid` refuses it
|
|
32
|
-
* client render the default, so no mismatch.
|
|
31
|
+
* mounted, unless `isValid` refuses it or `state` already holds it: the
|
|
32
|
+
* server and the hydrating client render the default, so no mismatch.
|
|
33
33
|
*/
|
|
34
34
|
restore: <T>(
|
|
35
35
|
field: LocalTableField,
|
|
@@ -138,9 +138,12 @@ export function useTablePreferences(
|
|
|
138
138
|
pending.push({
|
|
139
139
|
field,
|
|
140
140
|
apply: (value) => {
|
|
141
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Storage returns arbitrary preference values, while restore accepts caller-selected T and an optional boolean validator. Neither owner proves T; adding mandatory validation would change restoration behavior.
|
|
142
141
|
const restored = value as typeof state.value;
|
|
143
|
-
|
|
142
|
+
const isUnchanged =
|
|
143
|
+
JSON.stringify(restored) === JSON.stringify(state.value);
|
|
144
|
+
if (!isUnchanged && (!isValid || isValid(restored))) {
|
|
145
|
+
state.value = restored;
|
|
146
|
+
}
|
|
144
147
|
},
|
|
145
148
|
});
|
|
146
149
|
},
|
|
@@ -22,7 +22,6 @@ export interface TableReorderOptions<T> {
|
|
|
22
22
|
isOrderedDisplay: ComputedRef<boolean>;
|
|
23
23
|
/** Lists the rows again, after a move failed. */
|
|
24
24
|
refresh: () => Promise<void> | void;
|
|
25
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- Fetch may reject with any JavaScript value. No error schema owns this callback, and restricting it would exclude existing rejection values.
|
|
26
25
|
onError: (error: unknown) => void;
|
|
27
26
|
}
|
|
28
27
|
|
|
@@ -57,7 +56,6 @@ export function useTableReorder<T>(options: TableReorderOptions<T>) {
|
|
|
57
56
|
...page,
|
|
58
57
|
results: moved.map((row) => {
|
|
59
58
|
const value = values.get(
|
|
60
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- T is unconstrained, while Nuxt get declares object input even though its implementation handles other values. Its owner-derived input type preserves this unchecked dynamic lookup without adding guards.
|
|
61
59
|
String(get(row as Parameters<typeof get>[0], rowIdKey)),
|
|
62
60
|
);
|
|
63
61
|
return value === undefined ? row : { ...row, [reorder.field]: value };
|
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
usePeriodScope,
|
|
21
21
|
} from "#dms-core/app/composables/period/usePeriodScope";
|
|
22
22
|
|
|
23
|
-
// oxlint-disable-next-line anti-slop/no-unsafe-dictionary-type -- Source plugins and data controllers own different query keys and values. TableQueryParams excludes plugin extensions and malformed query handling; retain the open request contract.
|
|
24
23
|
type Query = Record<string, unknown>;
|
|
25
24
|
|
|
26
25
|
/** One count of a batch: its id and its list query. */
|
|
@@ -97,7 +97,6 @@ const COUNT_KEYS = [
|
|
|
97
97
|
* The number of rows a bulk route says it changed: a bare number or one of
|
|
98
98
|
* its count keys, `undefined` when it does not say.
|
|
99
99
|
*/
|
|
100
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- Bulk endpoints have heterogeneous response contracts and callers also pass malformed values. No single response owner can narrow this parser without excluding its undefined-result cases.
|
|
101
100
|
export const readBulkCount = (response: unknown): number | undefined => {
|
|
102
101
|
if (isNumber(response)) return response;
|
|
103
102
|
if (!response || !isObject(response)) return undefined;
|
|
@@ -21,7 +21,6 @@ export interface CardShownKeys {
|
|
|
21
21
|
|
|
22
22
|
/** The id of a row, read with the table's `rowIdKey`. */
|
|
23
23
|
export function cardRowId<T>(item: T, rowIdKey: string): string {
|
|
24
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Unconstrained T cannot satisfy Nuxt get's object declaration. Its owner-derived input type preserves the implementation's null and primitive handling without narrowing the public generic.
|
|
25
24
|
return String(get(item as Parameters<typeof get>[0], rowIdKey) ?? "");
|
|
26
25
|
}
|
|
27
26
|
|
|
@@ -132,7 +131,6 @@ export function cardSubtitle<T>(
|
|
|
132
131
|
identity: CardIdentity,
|
|
133
132
|
shown: CardShownKeys,
|
|
134
133
|
): Parameters<DataTypeFormatter>[0] {
|
|
135
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The row generic has no object constraint. Nuxt get's owner type cannot prove T, and runtime validation would change dynamic field reads on malformed rows.
|
|
136
134
|
const row = item as Parameters<typeof get>[0];
|
|
137
135
|
if (identity.subtitleField) {
|
|
138
136
|
const subtitle: unknown = get(row, identity.subtitleField);
|
|
@@ -151,7 +149,6 @@ export function cardAvatar<T>(
|
|
|
151
149
|
): { key: string } | string | undefined {
|
|
152
150
|
if (!identity.avatarField) return undefined;
|
|
153
151
|
const avatar: unknown = get(
|
|
154
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The row generic has no object constraint. Retain Nuxt get's existing null and primitive lookup behavior rather than validate or narrow T.
|
|
155
152
|
item as Parameters<typeof get>[0],
|
|
156
153
|
identity.avatarField,
|
|
157
154
|
);
|
|
@@ -14,7 +14,6 @@ export function defaultExpandedRows(
|
|
|
14
14
|
single = false,
|
|
15
15
|
): ExpandedRowMap {
|
|
16
16
|
if (mode === "none" || rowIds.length === 0) return {};
|
|
17
|
-
// oxlint-disable-next-line anti-slop/no-known-value-widening -- The exported ExpandedRowMap contract permits boolean-valued entries. Retain that existing caller contract instead of narrowing it to branch-specific known keys or values.
|
|
18
17
|
if (mode === "first" || single) return { [rowIds[0]!]: true };
|
|
19
18
|
return Object.fromEntries(rowIds.map((id) => [id, true]));
|
|
20
19
|
}
|
|
@@ -30,7 +30,6 @@ const DAY_KEY_LENGTH = 10;
|
|
|
30
30
|
|
|
31
31
|
const toDate = (value: Parameters<DataTypeFormatter>[0]): Date | undefined => {
|
|
32
32
|
if (value === null || value === undefined || value === "") return undefined;
|
|
33
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Row values have no date schema. Date's constructor declaration excludes coercible objects and booleans that the implementation already accepts; inference cannot preserve that coercion contract.
|
|
34
33
|
const date = new Date(value as string | number | Date);
|
|
35
34
|
return Number.isNaN(date.getTime()) ? undefined : date;
|
|
36
35
|
};
|
|
@@ -220,7 +219,6 @@ export function orderGroupedRows<T>(
|
|
|
220
219
|
const groupOf = new Map<string, number>();
|
|
221
220
|
const entries = rows.map((row, index) => {
|
|
222
221
|
const key = rowGroupKey(
|
|
223
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- T is unconstrained. Nuxt get's object input declaration cannot prove generic rows or preserve its primitive handling through inference; keep its unchecked lookup.
|
|
224
222
|
get(row as Parameters<typeof get>[0], grouped.groupByField),
|
|
225
223
|
by,
|
|
226
224
|
locale,
|
|
@@ -229,7 +227,6 @@ export function orderGroupedRows<T>(
|
|
|
229
227
|
return { row, index, group: groupOf.get(key)! };
|
|
230
228
|
});
|
|
231
229
|
const direction = sort.desc ? -1 : 1;
|
|
232
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- T is unconstrained and Nuxt get's input owner is object-only. A guard or generic constraint would change accepted rows; keep the dynamic lookup.
|
|
233
230
|
const valueOf = (row: T) => get(row as Parameters<typeof get>[0], sort.id);
|
|
234
231
|
return entries
|
|
235
232
|
.sort(
|
|
@@ -20,7 +20,6 @@ const positionOf = (
|
|
|
20
20
|
row: Parameters<typeof reorderEdits>[0][number],
|
|
21
21
|
field: string,
|
|
22
22
|
): number | undefined => {
|
|
23
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- reorderEdits accepts arbitrary rows. Nuxt get's object declaration cannot describe its null and primitive handling; preserve the unchecked lookup using its owner input type.
|
|
24
23
|
const value = Number(get(row as Parameters<typeof get>[0], field));
|
|
25
24
|
return Number.isFinite(value) ? value : undefined;
|
|
26
25
|
};
|
|
@@ -53,7 +52,6 @@ export function reorderEdits(
|
|
|
53
52
|
rowIdKey: string,
|
|
54
53
|
): ReorderEdit[] {
|
|
55
54
|
const idOf = (row: (typeof rows)[number]) =>
|
|
56
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Arbitrary rows remain part of reorderEdits' contract. The get owner requires objects but its implementation also reads primitives and missing neighbours.
|
|
57
55
|
String(get(row as Parameters<typeof get>[0], rowIdKey));
|
|
58
56
|
const slot = slotBetween(
|
|
59
57
|
positionOf(rows[movedIndex - 1], field),
|
package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/sortableColumns.ts
CHANGED
|
@@ -175,7 +175,6 @@ export const sortDirectionLabelKey = (
|
|
|
175
175
|
desc: boolean,
|
|
176
176
|
): string => `dms.sort.direction.${kind}.${desc ? "desc" : "asc"}`;
|
|
177
177
|
|
|
178
|
-
/* oxlint-disable anti-slop/no-unsafe-dictionary-type -- This error parser accepts arbitrary thrown values, including non-ofetch objects and inherited fields. No common error schema owns these values; validating a FetchError would change which errors match. */
|
|
179
178
|
const isObject = (
|
|
180
179
|
value: Parameters<typeof isUnsortableFieldError>[0],
|
|
181
180
|
): value is Record<string, unknown> => hasObjectType(value) && value !== null;
|
|
@@ -201,7 +200,6 @@ const messagesOf = (error: Record<string, unknown>): string[] => {
|
|
|
201
200
|
* not sortable.`): a sort the route never accepted, or a column whose
|
|
202
201
|
* `@Sortable()` was removed since the page was loaded.
|
|
203
202
|
*/
|
|
204
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- Any JavaScript value may be thrown. FetchError is not the owner of every rejection; inference cannot narrow the input without excluding existing false-result cases.
|
|
205
203
|
export const isUnsortableFieldError = (error: unknown): boolean => {
|
|
206
204
|
if (!isObject(error)) return false;
|
|
207
205
|
const status = statusOf(error);
|
|
@@ -210,4 +208,3 @@ export const isUnsortableFieldError = (error: unknown): boolean => {
|
|
|
210
208
|
UNSORTABLE_FIELD_PATTERN.test(message),
|
|
211
209
|
);
|
|
212
210
|
};
|
|
213
|
-
/* oxlint-enable anti-slop/no-unsafe-dictionary-type */
|
|
@@ -65,7 +65,6 @@ const combineFilters = (
|
|
|
65
65
|
? value
|
|
66
66
|
: [hiddenValue, value];
|
|
67
67
|
}
|
|
68
|
-
// oxlint-disable-next-line anti-slop/no-known-value-widening -- The return owner permits collision arrays for arbitrary filter keys; returning the owner-typed accumulator preserves that contract and inherited-key lookups.
|
|
69
68
|
return combined;
|
|
70
69
|
};
|
|
71
70
|
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
* saved). Typing a value then putting the original back makes it clean again.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
// oxlint-disable-next-line anti-slop/no-unsafe-dictionary-type -- Form controls may hold arbitrary plugin values, including non-JSON instances.
|
|
12
11
|
type PlainObject = Record<string, unknown>;
|
|
13
12
|
|
|
14
13
|
/** Whether a value is a plain object (not a list, a date, a file or an instance). */
|
|
@@ -26,7 +25,6 @@ export function isPlainObject(value: unknown): value is PlainObject {
|
|
|
26
25
|
* filled). A control that empties itself to `""`, `null`, `[]` or `false`
|
|
27
26
|
* leaves its field as clean as one never touched.
|
|
28
27
|
*/
|
|
29
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- Emptiness accepts every value a plugin control can produce without rejecting malformed inputs.
|
|
30
28
|
export function isEmptyFormValue(value: unknown): boolean {
|
|
31
29
|
if (value === undefined || value === null) return true;
|
|
32
30
|
if (value === "" || value === false) return true;
|
|
@@ -42,7 +40,6 @@ export function isEmptyFormValue(value: unknown): boolean {
|
|
|
42
40
|
* by item (order counts), objects key by key (whatever their order), dates by
|
|
43
41
|
* their time; any two empty values are the same (see {@link isEmptyFormValue}).
|
|
44
42
|
*/
|
|
45
|
-
// oxlint-disable-next-line anti-slop/no-unknown-parameters -- Deep comparison intentionally accepts arbitrary control values on both sides.
|
|
46
43
|
export function sameFormValue(left: unknown, right: unknown): boolean {
|
|
47
44
|
if (Object.is(left, right)) return true;
|
|
48
45
|
const isLeftEmpty = isEmptyFormValue(left);
|
|
@@ -77,14 +74,10 @@ export function sameFormValue(left: unknown, right: unknown): boolean {
|
|
|
77
74
|
*/
|
|
78
75
|
export function snapshotFormValue<T>(value: T): T {
|
|
79
76
|
if (Array.isArray(value)) {
|
|
80
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Preserve the existing generic snapshot contract; array subclasses are not validated here.
|
|
81
77
|
return value.map((item) => snapshotFormValue(item)) as T;
|
|
82
78
|
}
|
|
83
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The existing clone returns a Date even for subclasses; do not claim that it verifies every T refinement.
|
|
84
79
|
if (value instanceof Date) return new Date(value.getTime()) as T;
|
|
85
|
-
// oxlint-disable-next-line anti-slop/no-known-value-widening -- The plain-object classifier must accept generic values without restricting plugin control types.
|
|
86
80
|
if (isPlainObject(value)) {
|
|
87
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Preserve the existing generic clone contract without claiming validation of T refinements.
|
|
88
81
|
return Object.fromEntries(
|
|
89
82
|
Object.entries(value).map(([key, part]) => [
|
|
90
83
|
key,
|
|
@@ -97,9 +90,7 @@ export function snapshotFormValue<T>(value: T): T {
|
|
|
97
90
|
|
|
98
91
|
/** The keys whose value differs between the current values and the baseline. */
|
|
99
92
|
export function changedFormKeys(
|
|
100
|
-
// oxlint-disable-next-line anti-slop/no-unsafe-dictionary-type -- Field names and values are defined by plugin controls, not a closed schema.
|
|
101
93
|
current: Readonly<Record<string, unknown>>,
|
|
102
|
-
// oxlint-disable-next-line anti-slop/no-unsafe-dictionary-type -- The saved baseline holds the same arbitrary control values as current.
|
|
103
94
|
baseline: Readonly<Record<string, unknown>>,
|
|
104
95
|
keys: Iterable<string> = new Set([
|
|
105
96
|
...Object.keys(current),
|
|
@@ -190,7 +190,6 @@ export function installBrowserLeaveGuards(
|
|
|
190
190
|
event.returnValue = "";
|
|
191
191
|
});
|
|
192
192
|
|
|
193
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Window's DOM declaration omits the optional Navigation API; retain the unchecked property read and unsupported-browser fallback.
|
|
194
193
|
const navigation = (window as { navigation?: NavigationLike }).navigation;
|
|
195
194
|
navigation?.addEventListener("navigate", (event) => {
|
|
196
195
|
const traverse: TraverseEvent = event;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* oxlint-disable anti-slop/no-unsafe-dictionary-type -- The decoded cookie has no validated field contract; this open property lookup implements per-field fallback without rejecting the entire cookie or changing inherited-field access. */
|
|
2
1
|
/**
|
|
3
2
|
* `auto` follows the operating system's `prefers-reduced-motion`; `on` and
|
|
4
3
|
* `off` pin the choice whatever the system says.
|
|
@@ -44,7 +43,6 @@ function isRecord(
|
|
|
44
43
|
): value is Record<string, unknown> {
|
|
45
44
|
return isObject(value) && value !== null && !Array.isArray(value);
|
|
46
45
|
}
|
|
47
|
-
/* oxlint-enable anti-slop/no-unsafe-dictionary-type */
|
|
48
46
|
|
|
49
47
|
/** The cookie as a value: already parsed, or the raw (URI-encoded) JSON. */
|
|
50
48
|
function decodeCookieValue(
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* oxlint-disable anti-slop/no-unsafe-dictionary-type -- Preview messages and arbitrary block options are the boundary being checked here. JSON-only owner types or strict schemas would reject currently accepted objects, inherited fields, and extra options. */
|
|
2
1
|
/**
|
|
3
2
|
* The block preview's contract: the tree a docs site or a chat hands
|
|
4
3
|
* `DmsBlockPreview`, the `?state=` parameter carrying it, the `postMessage`
|
|
@@ -239,11 +238,9 @@ export function parsePreviewMessage(
|
|
|
239
238
|
const isKnownType =
|
|
240
239
|
isString(data.type) && Object.hasOwn(INBOUND_VALIDATORS, data.type);
|
|
241
240
|
const validate = isKnownType
|
|
242
|
-
?
|
|
243
|
-
INBOUND_VALIDATORS[data.type as string]
|
|
241
|
+
? INBOUND_VALIDATORS[data.type as string]
|
|
244
242
|
: undefined;
|
|
245
243
|
if (!validate?.(data)) return undefined;
|
|
246
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- This legacy parser returns the original object unchecked. Repeated type reads can select an inherited validator such as toString, so successful dispatch does not prove the message union.
|
|
247
244
|
return data as PreviewInboundMessage & typeof data;
|
|
248
245
|
}
|
|
249
246
|
|
|
@@ -409,7 +406,6 @@ function issueFor(
|
|
|
409
406
|
? { key: refused.issue, name: match.name, value: refused.value }
|
|
410
407
|
: undefined;
|
|
411
408
|
}
|
|
412
|
-
/* oxlint-enable anti-slop/no-unsafe-dictionary-type */
|
|
413
409
|
|
|
414
410
|
function resolveNode(
|
|
415
411
|
node: PreviewChildNode,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CalendarDate,
|
|
3
|
+
CalendarDateTime,
|
|
4
|
+
ZonedDateTime,
|
|
5
|
+
toCalendarDate,
|
|
6
|
+
} from "@internationalized/date";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The day a calendar value falls on: a `CalendarDate` as it is, the date part
|
|
10
|
+
* of a `CalendarDateTime` or `ZonedDateTime`, and nothing for any other value.
|
|
11
|
+
*/
|
|
12
|
+
export function toCalendarDay(value: unknown): CalendarDate | undefined {
|
|
13
|
+
if (value instanceof CalendarDate) return value;
|
|
14
|
+
if (value instanceof CalendarDateTime || value instanceof ZonedDateTime) {
|
|
15
|
+
return toCalendarDate(value);
|
|
16
|
+
}
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
@@ -55,7 +55,6 @@ const targetHandlers: Record<
|
|
|
55
55
|
* action's page, `event` dispatches a window `CustomEvent` in place for whoever
|
|
56
56
|
* listens.
|
|
57
57
|
*/
|
|
58
|
-
// oxlint-disable-next-line anti-slop/no-unknown-returns -- The public auto-import contract returns unknown; inference and navigateDms-derived returns reject base-compatible implementations.
|
|
59
58
|
export function dispatchQuickActionTarget(target: QuickActionTarget): unknown {
|
|
60
59
|
const handler = targetHandlers[target.type];
|
|
61
60
|
return handler?.(target);
|
|
@@ -40,11 +40,9 @@ interface FetchFailure {
|
|
|
40
40
|
data?: unknown;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
/* oxlint-disable anti-slop/no-unsafe-dictionary-type -- This representation guard accepts arbitrary thrown and response values; FetchFailure cannot replace the open property lookup result. */
|
|
44
43
|
const isObject = (
|
|
45
44
|
value: Parameters<typeof isObjectType>[0],
|
|
46
45
|
): value is Record<string, unknown> => isObjectType(value) && value !== null;
|
|
47
|
-
/* oxlint-enable anti-slop/no-unsafe-dictionary-type */
|
|
48
46
|
|
|
49
47
|
const statusOf = (error: FetchFailure): number | undefined =>
|
|
50
48
|
error.statusCode ?? error.status ?? error.response?.status;
|
|
@@ -10,7 +10,6 @@ interface FieldWithOptions {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
type Translate = (key: string) => string;
|
|
13
|
-
// oxlint-disable-next-line anti-slop/no-unsafe-dictionary-type -- Custom component options are not restricted to the core JSON options contract; untranslated values must survive unchanged.
|
|
14
13
|
type Options = Record<string, unknown>;
|
|
15
14
|
|
|
16
15
|
const TEXT_OPTIONS = [
|
|
@@ -59,7 +58,6 @@ function translateComponent<C extends ComponentWithOptions>(
|
|
|
59
58
|
component: C,
|
|
60
59
|
processI18n: Translate,
|
|
61
60
|
): C {
|
|
62
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The options owner is object, not an indexed dictionary. This legacy projection reads and spreads arbitrary options without validating their fields.
|
|
63
61
|
const opts = component.options as Options | undefined;
|
|
64
62
|
if (!opts) return component;
|
|
65
63
|
|
|
@@ -32,13 +32,12 @@ const ROW_CONTROL_SELECTOR = [
|
|
|
32
32
|
const isRepeatClick: RowClickGuard = (event) => event.detail > 1;
|
|
33
33
|
|
|
34
34
|
const isOnRowControl: RowClickGuard = (event) => {
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
|
|
35
|
+
const { target } = event;
|
|
36
|
+
const control =
|
|
37
|
+
target instanceof Element ? target.closest(ROW_CONTROL_SELECTOR) : null;
|
|
38
38
|
if (!control) return false;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
return !row || row.contains(control);
|
|
39
|
+
const row = event.currentTarget;
|
|
40
|
+
return !(row instanceof Node) || row.contains(control);
|
|
42
41
|
};
|
|
43
42
|
|
|
44
43
|
const endsTextSelection: RowClickGuard = () => {
|
|
@@ -49,7 +49,6 @@ export function highlightStream<State>(
|
|
|
49
49
|
highlighter: Highlighter,
|
|
50
50
|
put: HighlightedRange,
|
|
51
51
|
): void {
|
|
52
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The CodeMirror-compatible fallback is true regardless of State; retain that unchecked parser default.
|
|
53
52
|
const state = parser.startState?.(INDENT_UNIT) ?? (true as State);
|
|
54
53
|
let pending: { from: number; to: number; classes: string } | null = null;
|
|
55
54
|
const flush = () => {
|
|
@@ -19,7 +19,6 @@ const TOKEN_OPENING = "{{";
|
|
|
19
19
|
export interface ReplaceUrlVariablesContext {
|
|
20
20
|
routeParams?: Record<string, string>;
|
|
21
21
|
routeQuery: MenuRouteState["query"];
|
|
22
|
-
// oxlint-disable-next-line anti-slop/no-unsafe-dictionary-type -- Response bodies retain arbitrary nested values for path lookup; the core JSON contract would exclude existing non-JSON inputs.
|
|
23
22
|
response?: Record<string, unknown>;
|
|
24
23
|
}
|
|
25
24
|
|
|
@@ -40,25 +40,18 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
|
|
42
42
|
<script setup lang="ts">
|
|
43
|
-
|
|
44
|
-
color:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
score: Number,
|
|
58
|
-
strength: {
|
|
59
|
-
// SAFETY: PropType only supplies Vue's static requirement shape; the runtime constructor remains Array.
|
|
60
|
-
type: Array as PropType<{ met: boolean; text: string }[]>,
|
|
61
|
-
required: true,
|
|
62
|
-
},
|
|
63
|
-
});
|
|
43
|
+
interface PasswordStrengthProps {
|
|
44
|
+
color:
|
|
45
|
+
| "error"
|
|
46
|
+
| "primary"
|
|
47
|
+
| "secondary"
|
|
48
|
+
| "success"
|
|
49
|
+
| "info"
|
|
50
|
+
| "warning"
|
|
51
|
+
| "neutral";
|
|
52
|
+
score?: number;
|
|
53
|
+
strength: { met: boolean; text: string }[];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const props = defineProps<PasswordStrengthProps>();
|
|
64
57
|
</script>
|
|
@@ -35,7 +35,6 @@ const props = defineProps<Props>();
|
|
|
35
35
|
|
|
36
36
|
let anchored: ComponentPublicInstance | null = null;
|
|
37
37
|
function anchorBlock(instance: Element | ComponentPublicInstance | null): void {
|
|
38
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Dynamic components can resolve to native elements; preserve the existing unchecked anchor forwarding.
|
|
39
38
|
const block = (instance as ComponentPublicInstance | null) ?? null;
|
|
40
39
|
registerBlockAnchor(props.layoutPath, block, anchored);
|
|
41
40
|
anchored = block;
|
|
@@ -73,7 +72,6 @@ function calculateColumnCount(
|
|
|
73
72
|
): number {
|
|
74
73
|
if (!children) return 0;
|
|
75
74
|
return children.reduce(
|
|
76
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Keep the existing addition behavior even when an unvalidated colSpan is not numeric.
|
|
77
75
|
(sum, child) => sum + ((child.colSpan as number) || 1),
|
|
78
76
|
0,
|
|
79
77
|
);
|
|
@@ -98,9 +98,7 @@ function toPageComponent(node: PreviewResolvedNode): ResolvedComponentInfo {
|
|
|
98
98
|
componentName: node.componentName,
|
|
99
99
|
options: node.issue ? { issue: node.issue } : node.options,
|
|
100
100
|
children: node.children.map(toPageComponent),
|
|
101
|
-
// oxlint-disable-next-line anti-slop/no-conditional-empty-object-spread -- Omit absent keys without replacing spread's own-property definition semantics with assignment.
|
|
102
101
|
...(node.slot ? { slot: node.slot } : {}),
|
|
103
|
-
// oxlint-disable-next-line anti-slop/no-conditional-empty-object-spread -- Preserve omission, property order, and getter evaluation for unvalidated preview nodes.
|
|
104
102
|
...(node.colSpan === undefined ? {} : { colSpan: node.colSpan }),
|
|
105
103
|
};
|
|
106
104
|
}
|
|
@@ -155,7 +155,6 @@ function dismiss(): void {
|
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
function press(action: BlockButtonAction): void {
|
|
158
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Block buttons permit Nuxt UI variants wider than CustomButtonVariant; deriving either owner cannot prove the narrower variant, and this dispatcher forwards the original object unchanged.
|
|
159
158
|
handleCustomButton(action as CustomButton);
|
|
160
159
|
}
|
|
161
160
|
</script>
|
|
@@ -63,7 +63,6 @@ const theme = tv({
|
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
const ui = theme();
|
|
66
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Vue attrs expose unknown class values; inference and the theme's ClassValue owner cannot prove this pass-through input without validating or transforming it.
|
|
67
66
|
const rootClass = computed(() => ui.root({ class: attrs.class as string }));
|
|
68
67
|
const passthrough = computed(() => {
|
|
69
68
|
const { class: _class, ...rest } = attrs;
|
|
@@ -103,8 +102,8 @@ const { t } = useI18n();
|
|
|
103
102
|
</div>
|
|
104
103
|
|
|
105
104
|
<USkeleton
|
|
106
|
-
:aria-label="t('dms.a11y.loading')"
|
|
107
105
|
v-if="props.statePending && !props.state"
|
|
106
|
+
:aria-label="t('dms.a11y.loading')"
|
|
108
107
|
aria-hidden="true"
|
|
109
108
|
class="mt-auto h-[18px] w-28 self-start"
|
|
110
109
|
/>
|
|
@@ -18,7 +18,6 @@ import { ensureApexLocale } from "../../composables/chart/apexLocales";
|
|
|
18
18
|
interface Props {
|
|
19
19
|
apexType: string;
|
|
20
20
|
height: number | string;
|
|
21
|
-
// oxlint-disable-next-line anti-slop/no-unsafe-dictionary-type -- The existing public prop accepts raw Apex overrides; ApexOptions would narrow that contract and cannot type arbitrary dotted-path values.
|
|
22
21
|
options: Record<string, unknown>;
|
|
23
22
|
series: unknown;
|
|
24
23
|
}
|
|
@@ -91,7 +90,6 @@ onBeforeUnmount(() => {
|
|
|
91
90
|
function toApexInput<T>(value: T): T {
|
|
92
91
|
const raw = toRaw(value);
|
|
93
92
|
if (Array.isArray(raw)) {
|
|
94
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Generic T may contain class instances or array properties this existing traversal does not preserve; its callers have no narrower validated options owner.
|
|
95
93
|
return raw.map((entry) => toApexInput(entry)) as T;
|
|
96
94
|
}
|
|
97
95
|
if (raw && isObject(raw) && !(raw instanceof Date)) {
|
|
@@ -99,7 +97,6 @@ function toApexInput<T>(value: T): T {
|
|
|
99
97
|
for (const [key, entry] of Object.entries(raw)) {
|
|
100
98
|
copy[key] = toApexInput(entry);
|
|
101
99
|
}
|
|
102
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Generic T does not establish a plain object; the existing clone drops prototypes and non-enumerable fields, so inference cannot prove it retains T.
|
|
103
100
|
return copy as T;
|
|
104
101
|
}
|
|
105
102
|
return raw;
|
|
@@ -145,7 +142,6 @@ function pushOptionsWithoutGroupBroadcast(
|
|
|
145
142
|
}
|
|
146
143
|
|
|
147
144
|
function axisTypeOf(options: Props["options"]) {
|
|
148
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Raw option overrides leave xaxis unknown; no owner proves this object shape, and validation would change the existing optional-property projection.
|
|
149
145
|
return (options.xaxis as { type?: unknown } | undefined)?.type;
|
|
150
146
|
}
|
|
151
147
|
|
|
@@ -101,7 +101,7 @@ const EMPTY_ICON = "i-ph-chart-line-up";
|
|
|
101
101
|
|
|
102
102
|
const props = withDefaults(defineProps<Props>(), {
|
|
103
103
|
height: DEFAULT_CHART_HEIGHT,
|
|
104
|
-
|
|
104
|
+
xaxisType: "category",
|
|
105
105
|
showGrid: true,
|
|
106
106
|
roundedCorners: true,
|
|
107
107
|
showTooltip: true,
|
|
@@ -137,7 +137,6 @@ function localized(series: ChartSeries[]): ChartSeries[] {
|
|
|
137
137
|
const staticSeries = computed<ChartSeries[]>(() => {
|
|
138
138
|
if (isCircular.value) return [];
|
|
139
139
|
if (!props.staticDataset) return [];
|
|
140
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The prop permits either dataset independently of chart type. This legacy non-circular handoff assumes series without validating or transforming mismatched datasets.
|
|
141
140
|
return localized(props.staticDataset as ChartSeries[]);
|
|
142
141
|
});
|
|
143
142
|
|
|
@@ -145,7 +144,6 @@ const staticDonut = computed<DonutRecord[]>(() => {
|
|
|
145
144
|
if (!isCircular.value) return [];
|
|
146
145
|
if (!props.staticDataset) return [];
|
|
147
146
|
return localizeDonutRecords(
|
|
148
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- The prop permits either dataset independently of chart type. This legacy circular handoff assumes donut records without validating or transforming mismatched datasets.
|
|
149
147
|
props.staticDataset as DonutRecord[],
|
|
150
148
|
processI18n,
|
|
151
149
|
);
|
|
@@ -214,7 +212,6 @@ function buildXyClickPayload(opts: {
|
|
|
214
212
|
const point = series?.data[dataPointIndex];
|
|
215
213
|
const pointValue = readPointValue(point);
|
|
216
214
|
const label =
|
|
217
|
-
// oxlint-disable-next-line anti-slop/no-runtime-typeof -- The shared isObject guard widens this owner union's label to unknown; typeof preserves the ChartSeries field without a cast or changed payload validation.
|
|
218
215
|
typeof point === "object" && point !== null && "label" in point
|
|
219
216
|
? point.label
|
|
220
217
|
: undefined;
|
|
@@ -203,8 +203,8 @@ const hasMeta = computed(
|
|
|
203
203
|
class="text-highlighted mt-2 text-[30px] leading-[1.1] font-[650] tracking-[-0.035em] tabular-nums"
|
|
204
204
|
>
|
|
205
205
|
<USkeleton
|
|
206
|
-
:aria-label="t('dms.a11y.loading')"
|
|
207
206
|
v-if="isFirstLoad"
|
|
207
|
+
:aria-label="t('dms.a11y.loading')"
|
|
208
208
|
class="h-[33px] w-36"
|
|
209
209
|
/>
|
|
210
210
|
<span
|
|
@@ -14,6 +14,7 @@ interface Props {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
const props = withDefaults(defineProps<Props>(), {
|
|
17
|
+
suffix: "",
|
|
17
18
|
variant: "pill",
|
|
18
19
|
});
|
|
19
20
|
|
|
@@ -74,7 +75,7 @@ const hasDelta = computed(
|
|
|
74
75
|
const display = computed(() => {
|
|
75
76
|
if (props.delta === null || props.delta === undefined) return EMPTY_DISPLAY;
|
|
76
77
|
const percent = formatDeltaPercent(props.delta, locale.value);
|
|
77
|
-
return `${percent}${props.suffix
|
|
78
|
+
return `${percent}${props.suffix}`;
|
|
78
79
|
});
|
|
79
80
|
</script>
|
|
80
81
|
|
|
@@ -72,7 +72,6 @@ const hasHead = computed(
|
|
|
72
72
|
);
|
|
73
73
|
const hasFloatingCopy = computed(() => isHeadless.value && props.copy);
|
|
74
74
|
const wrapClass = computed(
|
|
75
|
-
// oxlint-disable-next-line anti-slop/require-safety-comment-for-type-assertion -- Keep String coercion and direct lookup for malformed wrap props; a checked key guard would change those inputs.
|
|
76
75
|
() => WRAP_CLASSES[String(props.wrap) as keyof typeof WRAP_CLASSES],
|
|
77
76
|
);
|
|
78
77
|
const tokens = computed<CodeToken[]>(() =>
|